| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346 |
- <%@ page contentType="text/html;charset=GBK"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html>
- <head>
- <title>档案到期提起配置</title>
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
- <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript">
- var initDialog;
- var isInit = "${requestScope.init }";
- $(function() {
- if(isInit == "false"){
- initDialog = $.ligerDialog({content:"还未启动定时功能,是否启动?", title:"系统提示",type:"question",width:300,height:70,allowClose : false,
- buttons:[ { text:"是",onclick:function(){initDataDictionary();} } ,
- {text:"否",onclick:function(btn){closeWindow();} }
- ]
- });
- }
- });
- function initDataDictionary(){
- initDialog.close();
- $.ligerDialog.waitting('正在启动中,请稍候...');
- $.ajax({
- type : "POST",
- url : "amsDueConfigAction.do?task=initTiming&time=" + new Date().getTime(),
- timeout : 10000,
- cache : false,
- dataType : "json",
- success : function(data) {
- var success = data.success;
- if (success != undefined) {
- $.ligerDialog.success(success);
- $.ligerDialog.closeWaitting();
- //submitType();
- }else{
- $.ligerDialog.closeWaitting();
- showAjaxError(null, data.error);
- }
- },
- error : showAjaxError
- });
- }
- $(function() {
- loadTypeTree("selectbutton1", {type : "deptuser",backId : "configInfo1.due_target",backName : "due_target_name1",tab : 1});
- loadTypeTree("selectbutton2", {type : "deptuser",backId : "configInfo2.due_target",backName : "due_target_name2",tab : 1});
- });
- $(document).ready(function(){
- var due_way_value_p = $("#due_ways1").val();
- var due_ways_p = due_way_value_p.split(",");
- $("input[name='due_ways_p']").each(function(){
- var vl=$(this).val();
- for(var i=0;i<due_ways_p.length;i++){
- if(vl == due_ways_p[i]){
- $(this).attr("checked",true);
- }
- }
- });
- var due_way_value_d = $("#due_ways2").val();
- var due_ways_d = due_way_value_d.split(",");
- $("input[name='due_ways_d']").each(function(){
- var vl=$(this).val();
- for(var i=0;i<due_ways_d.length;i++){
- if(vl == due_ways_d[i]){
- $(this).attr("checked",true);
- }
- }
- });
- });
- function editDueConfig(){
- var rs= $.validate({
- name:"configInfo1.due_days",
- model:[
- //{type:"require",msg:"到期提醒天数不能为空!"},
- {type:"isNumber",msg:"到期提醒天数只能为数字!"},
- {type:"size",min:1,msg:"到期提醒天数不能小于1!"}]});
- var rs= $.validate({
- name:"configInfo2.due_days",
- model:[
- //{type:"require",msg:"到期提醒天数不能为空!"},
- {type:"isNumber",msg:"到期提醒天数只能为数字!"},
- {type:"size",min:1,msg:"到期提醒天数不能小于1!"}]});
- //rs = $.validate({
- // name : "due_target",
- // model : [{type : "require",
- // msg : "到期提醒对象不能为空!"}]})&&rs;
- //rs = $.validate({
- // name : "due_time_hour",
- // model : [{type : "require",
- // msg : "到期提醒时间不能为空!"}]})&&rs;
- //rs = $.validate({
- // name : "due_time_minute",
- // model : [{type : "require",
- // msg : "到期提醒时间不能为空!"}]})&&rs;
- //rs = $.validate({
- // name : "due_isneed",
- // model : [{type : "require",
- // msg : "是否提醒不能为空!"}]})&&rs;
- if(!rs)return;
- var due_ways_value_p="";
- var due_ways_value_d="";
- $("input[name='due_ways_p']:checked").each(function(){
- if(due_ways_value_p==""){
- due_ways_value_p+=$(this).val();
- }else{
- due_ways_value_p+=","+$(this).val();
- }
- });
- $("input[name='due_ways_d']:checked").each(function(){
- if(due_ways_value_d==""){
- due_ways_value_d+=$(this).val();
- }else{
- due_ways_value_d+=","+$(this).val();
- }
- });
- $("#due_ways1").val(due_ways_value_p);
- $("#due_ways2").val(due_ways_value_d);
- $("#addDueConfigForm").submit();
- }
- </script>
- <style type="text/css">
- body {padding: 5px;margin: 0;}
- #layout1 {width: 100%;margin: 0;padding: 0;}
- .l-button {margin-left: 1px;}
- #deptBtn {width: 100%;background: #e5ecf9;text-align: center;height: 25px;padding-top: 3px}
- #leftBtn{width: 100%;background: #e5ecf9;height: 25px;padding-top: 3px}
- .l-layout-left {overflow-y: auto;}
- </style>
- </head>
- <body>
- <%@ include file="/include/button.jsp"%>
- <%@ include file="/include/message.jsp"%>
- <form id="addDueConfigForm" name="addDueConfigForm" method="post" action="amsRemindConfigAction.do?task=editRemindConfig">
- <div class="container">
- <div id="title" class="form-button">
- <input type="button" value="保存" class="l-button" onclick="editDueConfig()" id="editDueConfigBtn" />
- <input type="button" value="关闭" class="l-button" onclick="closeWindow();" />
- </div>
- <div class="container-layout">
- <div class="forum-container">
- <center>
- <table class="l-table-edit line">
- <tr>
- <th colspan="4">档案到期提醒配置:</th>
- </tr>
- <tr>
- <td class="l-table-edit-text">预警提醒方式:</td>
- <td class="l-table-edit-td">
- <input type="checkbox" id="due_ways_p" name="due_ways_p" value="1"/> 系统消息
- <input type="checkbox" id="due_ways_p" name="due_ways_p" value="2"/> 邮件
- <input type="checkbox" id="due_ways_p" name="due_ways_p" value="3"/> 短信
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">预警提前天数:</td>
- <td class="l-table-edit-td" colspan="3">
- <input id="due_days" name="configInfo1.due_days" type='text' value="${configInfoPaper.due_days }" style="width:60px;"/> 天
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">预警时间:</td>
- <td class="l-table-edit-td" colspan="3">
- <select id="due_time_hour" name="configInfo1.due_time_hour" style="width:60px;">
- <c:choose>
- <c:when test="${due_time_hour_paper != null}">
- <option value="${due_time_hour_paper }" selected="selected">${due_time_hour_paper }</option>
- </c:when>
- <c:otherwise>
- <option value="" selected="selected">-选择-</option>
- </c:otherwise>
- </c:choose>
- <c:forEach items="${hourList }" var="item">
- <c:if test="${due_time_hour_paper!=item }">
- <option value="${item}">${item}</option>
- </c:if>
- </c:forEach>
- </select> 时
- <select id="due_time_minute" name="configInfo1.due_time_minute" style="width:60px;">
- <c:choose>
- <c:when test="${due_time_minute_paper != null}">
- <option value="${due_time_minute_paper }" selected="selected">${due_time_minute_paper }</option>
- </c:when>
- <c:otherwise>
- <option value="" selected="selected">-选择-</option>
- </c:otherwise>
- </c:choose>
- <c:forEach items="${timeList}" var="item">
- <c:if test="${due_time_minute_paper!=item }">
- <option value="${item}" >${item}</option>
- </c:if>
- </c:forEach>
- </select> 分
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">是否提醒:</td>
- <td class="l-table-edit-td" colspan="3">
- <select id="due_isneed" name="configInfo1.due_isneed" style="width:80px;">
- <c:choose>
- <c:when test="${configInfoPaper.due_isneed == '1'}">
- <option value="1">是</option>
- <option value="0">否</option>
- </c:when>
- <c:when test="${configInfoPaper.due_isneed == '0'}">
- <option value="0">否</option>
- <option value="1">是</option>
- </c:when>
- <c:otherwise>
- <option value="">-选择-</option>
- <option value="1">是</option>
- <option value="0">否</option>
- </c:otherwise>
- </c:choose>
- </select>
- <div style="display: inline; color: red;">(关闭后所有档案将不进行到期提醒)</div>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">默认提醒对象:</td>
- <td class="l-table-edit-td">
- <input type="text" id="due_target_name" name="due_target_name1" style="width: 200px;" value="${due_target_paper}">
- <input type="hidden" id="due_target" name="configInfo1.due_target" value="${configInfoPaper.due_target}">
- <input type="button" class="l-button" id="selectbutton1" value="选择" />
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text"></td>
- <td class="l-table-edit-td" ></td>
- </tr>
-
- <tr>
- <th colspan="4">纸质借阅到期提醒配置:</th>
- </tr>
- <tr>
- <td class="l-table-edit-text">预警提醒方式:</td>
- <td class="l-table-edit-td">
- <input type="checkbox" id="due_ways_d" name="due_ways_d" value="1"/> 系统消息
- <input type="checkbox" id="due_ways_d" name="due_ways_d" value="2"/> 邮件
- <input type="checkbox" id="due_ways_d" name="due_ways_d" value="3"/> 短信
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">预警提前天数:</td>
- <td class="l-table-edit-td" colspan="3">
- <input id="due_days" name="configInfo2.due_days" type='text' value="${configInfoDZD.due_days }" style="width:60px;"/> 天
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">预警时间:</td>
- <td class="l-table-edit-td" colspan="3">
- <select id="due_time_hour" name="configInfo2.due_time_hour" style="width:60px;">
- <c:choose>
- <c:when test="${due_time_hour_dzd != null}">
- <option value="${due_time_hour_dzd }" selected="selected">${due_time_hour_dzd }</option>
- </c:when>
- <c:otherwise>
- <option value="" selected="selected">-选择-</option>
- </c:otherwise>
- </c:choose>
- <c:forEach items="${hourList }" var="item">
- <c:if test="${due_time_hour_dzd!=item }">
- <option value="${item}">${item}</option>
- </c:if>
- </c:forEach>
- </select> 时
- <select id="due_time_minute" name="configInfo2.due_time_minute" style="width:60px;">
- <c:choose>
- <c:when test="${due_time_minute_dzd != null}">
- <option value="${due_time_minute_dzd }" selected="selected">${due_time_minute_dzd }</option>
- </c:when>
- <c:otherwise>
- <option value="" selected="selected">-选择-</option>
- </c:otherwise>
- </c:choose>
- <c:forEach items="${timeList}" var="item">
- <c:if test="${due_time_minute_dzd!=item }">
- <option value="${item}" >${item}</option>
- </c:if>
- </c:forEach>
- </select> 分
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">是否提醒:</td>
- <td class="l-table-edit-td" colspan="3">
- <select id="due_isneed" name="configInfo2.due_isneed" style="width:80px;">
- <c:choose>
- <c:when test="${configInfoDZD.due_isneed == '1'}">
- <option value="1">是</option>
- <option value="0">否</option>
- </c:when>
- <c:when test="${configInfoDZD.due_isneed == '0'}">
- <option value="0">否</option>
- <option value="1">是</option>
- </c:when>
- <c:otherwise>
- <option value="">-选择-</option>
- <option value="1">是</option>
- <option value="0">否</option>
- </c:otherwise>
- </c:choose>
- </select>
- <div style="display: inline; color: red;">(关闭后所有借阅将不进行到期提醒)</div>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">默认提醒对象:</td>
- <td class="l-table-edit-td">
- <input type="text" id="due_target_name" name="due_target_name2" style="width: 200px;" value="${due_target_dzd}">
- <input type="hidden" id="due_target" name="configInfo2.due_target" value="${configInfoDZD.due_target}">
- <input type="button" class="l-button" id="selectbutton2" value="选择" />
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text"></td>
- <td class="l-table-edit-td"></td>
- </tr>
-
- </table>
- <input id="tabid" name="tabid" value="${param.tabid }" type="hidden"/>
- <input id="serverDate" name="serverDate" value="${serverDate }" type="hidden"/>
- <input type="hidden" id="due_ways1" name="configInfo1.due_ways" value="${configInfoPaper.due_ways }"/>
- <input type="hidden" id="universalid" name="configInfo1.universalid" value="${configInfoPaper.universalid }"/>
- <input type="hidden" id="due_ways2" name="configInfo2.due_ways" value="${configInfoDZD.due_ways }"/>
- <input type="hidden" id="universalid" name="configInfo2.universalid" value="${configInfoDZD.universalid }"/>
- </center>
- </div>
- </div>
- </div>
- </form>
- </body>
- </html>
|