cy
2022-06-28 2ba5c891b24d4d0cd6ce7ef833592e4f576ee5e8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>AddXtgn.html</title>
    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
    <meta http-equiv="description" content="this is my page"/>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <script type="text/javascript" src="${common_static}/static/equip/js/jquery-1.11.1.min.js"></script>
    <link rel="stylesheet" type="text/css" href="${common_static}/static/style/flow/clientInfo.css"/>
    [@formui /]
    [#include "/component/DatePicker.html" /]
    [#include "/component/combobox.html" /]
      <script type="text/javascript">
    $(document).ready(function() {
    $.formValidator.initConfig({formID:"myform",onError:function(msg){alert(msg)},onSuccess:function(){
        var dealers = document.getElementsByName("admins");
        if(!dealers || dealers.length == 0){alert("请选择办理人员!");return false;}
        else {
            var isAdmins = false;
            for(var i=0;i<dealers.length;i++){
                if(dealers[i].checked) {isAdmins=true;}
            }
            if(!isAdmins){
                alert("请选择主要负责人!");
                return false;
            }
        }
        
        if (!confirm('确定提交表单?')){   
                return false;  
            } 
            
        document.getElementById("myform").target = window.top.openDialog(101,30,30,'操作提示:');
        return true;
    }});
    $("#deal_note").formValidator({empty:false,onShow:"请输入办理意见"}).inputValidator({min:1,max:2000,onError:"办理意见不能为空"});
    });
    
    $(function(){
        $(window.parent.document).find("#iframeBox").load(function(){
            var main = $(window.parent.document).find("#iframeBox");
            main.height($(document).height());
        });
    });
    
    function ondutyer_idChanged(ids,text){
        if(ids){
            $("#container").empty();
            var arrText = text.split(",");
            var html = "";
            for(var i=0;i<ids.length;i++){
                html+='<input type="radio" name="admins" value="'+ ids[i] +'"/>'+ arrText[i] +'  ';
            }
            $("#container").append(html);
        }
    }
    
    function closeWin(){
           window.top.closeDialog(100);
    }
    
    function _onFormSubmit(){
        document.getElementById("btnOK").click();
    }
    </script>
  </head>
  <body>
   <div class="pad_10" style="margin-top: 10px;">
<div class="col-tab">
<div id="div_setting_1" class="contentList pad_10">
  <form action="" method="post"  id="myform" name="myform" >
  <table align="center" width="98%"  class="table_form contentWrap">
    <tr>
          <th width="10%" align="right">选择办理人:</th>
          <td>
          [@combobox  id="dutyer_id"  style="width:350px;"  multiple="true" editable="false"
                                textField="USER_NAME" valueField="USER_ID" url="${base}/interface/partner/getPartnerUserList.html"
           /]
            <font color="red">*</font>
           <div id="dutyer_idTip" style="width:250px;"></div>      
          </td>
    </tr>
    <tr>
          <th width="10%" align="right">选择主要负责人:</th>
          <td id="container">
          </td>
    </tr>
    <tr >
       <th align="right" >要求处理时间:</th>
       <td> 
        [@datepicker id="dispatcher_require_date"  /]
        <font color="red">*</font>
           <div id="dispatcher_require_dateTip" style="width:250px;"></div>     
       </td>
    </tr>
    <tr>
    <th align="right" >紧急程度:</th>
    <td>
        <input type="radio" name="urgent_degree" value="1"/>
        <span>非常紧急</span>
        <input type="radio" name="urgent_degree" value="2"/>
        <span>紧急</span>
        <input type="radio" name="urgent_degree" value="3" checked/>
        <span>一般</span>
        <input type="radio" name="urgent_degree" value="4"/>
        <span>不紧急</span>
    <td>
    </tr>
    <tr>
       <th align="right">处理意见:</th>    
       <td><textarea name="deal_note" id="deal_note" style="width:60%;" cols="45" rows="4" class="input-text"></textarea></td>
    </tr>
  </table>
   <div align="center">
    <input type="submit" id="btnOK" value="提交" style="display:none;"/>
  </div>
  <div class="clearB"></div>
  </form>
</div>
</div>
</div>
  </body>
</html>