| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- <%@ 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">
- <HEAD>
- <TITLE>合同预警配置</TITLE>
- <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
- <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <link href="/shares/css/yw/master1/reset.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>
- <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>
- <link rel="stylesheet" type="text/css"
- href="/shares/css/yw/master1/${sessionScope.loginFrom}/jquery.jscrollpane.codrops1.css" />
- <!-- the mousewheel plugin -->
- <script type="text/javascript"
- src="/shares/js/yw/master1/jquery.mousewheel.js"></script>
- <!-- the jScrollPane script -->
- <script type="text/javascript"
- src="/shares/js/yw/master1/jquery.jscrollpane.min.js"></script>
- <script type="text/javascript"
- src="/shares/js/yw/master1/scroll-startstop.events.jquery.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/scroll.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- var warn_way_value=$("#warn_way_value").val();
- var warn_target_value=$("#warn_target_value").val();
- var warn_target=warn_target_value.split(",");
- var warn_ways=warn_way_value.split(",");
- $("input[name='warn_target']").each(function(){
- var vl=$(this).val();
- for(var i=0;i<warn_target.length;i++){
- if(vl==warn_target[i]){
- $(this).attr("checked",true);
- }
- }
- });
- $("input[name='warn_ways']").each(function(){
- var vl=$(this).val();
- for(var i=0;i<warn_ways.length;i++){
- if(vl==warn_ways[i]){
- $(this).attr("checked",true);
- }
- }
- });
- });
- function editContractConfig(){
- var rs= $.validate({name:"warn_days",model:[{type:"require",msg:"预警天数不能为空!"},
- {type:"isNumber",msg:"预警天数只能为数字!"},
- {type:"size",min:1,msg:"预警天数不能小于1!"}]});
- if(!rs)return;
- var warn_target_value="";
- $("input[name='warn_target']:checked").each(function(){
- if(warn_target_value==""){
- warn_target_value+=$(this).val();
- }else{
- warn_target_value+=","+$(this).val();
- }
- });
- $("#warn_target_value").val(warn_target_value);
- var warn_ways_value="";
- $("input[name='warn_ways']:checked").each(function(){
- if(warn_ways_value==""){
- warn_ways_value+=$(this).val();
- }else{
- warn_ways_value+=","+$(this).val();
- }
- });
- $("#warn_way_value").val(warn_ways_value);
- $("#addContractConfigForm").submit();
- }
- </script>
- <style type="text/css">
- /* body { */
- /* padding: 5px; */
- /* margin: 0; */
- /* } */
- body {
- background: #fff;
- overflow: hidden;
- }
- </style>
- </HEAD>
- <BODY ontouchmove="event.preventDefault();">
- <%@ include file="/include/button.jsp"%>
- <%@ include file="/include/message.jsp"%>
- <div class="s_title b10 f6">
- <img src="/shares/images/master1/gg_ico.png" width="27" height="26" />
- 合同预警配置
- <div class="article_title">
- <input class="art_back" title="返回" name=""
- onclick="history.back(-1);" type="button" style="width: 50px;"/>
- <input class="art_sub" title="保存" onclick="editContractConfig()"
- id="editContractConfigBtn" type="button" />
- </div>
- </div>
- <div id="jp-container" class="jp-container liuyan" style="padding-top: 30px;">
- <div class="l-content">
- <form id="addContractConfigForm" name="addContractConfigForm" method="post" action="MTContractConfigurationAction.do?task=editContractConfig">
- <div id="layout1">
- <div position="center" id="center" title="新增转移" class="forum-container">
- <input id="tabid" name="tabid" value="${param.tabid }" type="hidden"/>
- <input id="serverDate" name="serverDate" value="${serverDate }" type="hidden"/>
- <input type="hidden" id="warn_target_value" name="warn_target_value" value="${configInfo.warn_target }"/>
- <input type="hidden" id="warn_way_value" name="warn_way_value" value="${configInfo.warn_ways }"/>
- <table border="0" cellspacing="1" cellpadding="0" class="l-table-edit line">
-
- <tr>
- <td class="l-table-edit-text">预警对象:</td>
- <td class="l-table-edit-td">
- <c:forEach items="${targetList }" var="item">
- <input type="checkbox" id="warn_target" name="warn_target" value="${item.warn_target_value }"/> ${item.warn_target_name }
- </c:forEach>
- </td>
- </tr>
-
- <tr>
- <td class="l-table-edit-text">预警方式:</td>
- <td class="l-table-edit-td">
- <c:forEach items="${waysList }" var="item">
- <input type="checkbox" id="warn_ways" name="warn_ways" value="${item.warn_way_value }"/> ${item.warn_way_name }
- </c:forEach>
- </td>
- </tr>
-
- <tr>
- <td class="l-table-edit-text">预警天数:</td>
- <td class="l-table-edit-td" colspan="3">
- <input id="warn_days" name="warn_days" type='text' value="${configInfo.warn_days }" style="width:50px;"/> 天
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">预警时间:</td>
- <td class="l-table-edit-td" colspan="3">
- <select id="warn_time_hour" name="warn_time_hour" style="width:50px;">
- <option value="${configInfo.warn_time_hour }" selected="selected">${configInfo.warn_time_hour }</option>
- <c:forEach items="${hourList }" var="item">
- <c:if test="${configInfo.warn_time_hour!=item }">
- <option value="${item}" >${item}</option>
- </c:if>
- </c:forEach>
- </select> 时
- <select id="warn_time_minute" name="warn_time_minute" style="width:50px;">
- <option value="${configInfo.warn_time_minute }" selected="selected">${configInfo.warn_time_minute }</option>
- <c:forEach items="${timeList }" var="item">
- <c:if test="${configInfo.warn_time_minute!=item }">
- <option value="${item}" >${item}</option>
- </c:if>
- </c:forEach>
- </select> 分
- <%-- <select id="warn_time_second" name="warn_time_second" style="width:50px;">
- <option value="${configInfo.warn_time_second }" selected="selected">${configInfo.warn_time_second }</option>
- <c:forEach items="${timeList }" var="item">
- <option value="${item}" >${item}</option>
- </c:forEach>
- </select> 秒 --%>
- </td>
-
- </tr>
- <tr>
- <td class="l-table-edit-text">是否预警:</td>
- <td class="l-table-edit-td" colspan="3">
- <select id="warn_isneed" name="warn_isneed" style="width:50px;">
- <c:choose>
- <c:when test="${configInfo.warn_isneed=='1' }">
- <option value="1" selected="selected">是</option>
- </c:when>
- <c:otherwise>
- <option value="0" selected="selected">否</option>
- </c:otherwise>
- </c:choose>
- <c:if test="${configInfo.warn_isneed=='0' }">
- <option value="1" >是</option>
- </c:if>
- <c:if test="${configInfo.warn_isneed=='1' }">
- <option value="0" >否</option>
- </c:if>
- </select>
- </td>
- </tr>
- </table>
- </div>
- </div>
- </form>
- </div>
- </div>
- </BODY>
- </HTML>
|