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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
[#include "/business/pages/include/static.html" /]
<link rel="stylesheet" href="${common_static}/static/css/reset.css" />
<style>
.personcont {
    width: 98%;
    margin: 1%;
    font: 12px "宋体";
    min-width: 800px;
}
.personalist {
    background:#f0f0f0;border-bottom:dotted 1px #d1d1d1;
    margin: 0px 15px;
    border-left: solid 1px #d1d1d1;
    border-right: solid 1px #d1d1d1;
    line-height: 30px;
    padding: 0;
}
.personalist:first-child{border-top: solid 1px #d1d1d1;}
.personalistnon {
    background:#fff;
    padding: 8px 0;
    overflow: hidden;
    zoom: 1;
    border-bottom: dotted 1px #d1d1d1;
}
.personalistnon:last-child{border-bottom: solid 1px #d1d1d1;}
.personalistl {
    width: 15%;
    float: left;
}
.personalisttit {
    background: #f0f0f0;
    border-width: 0 0 1px 0;
    line-height: 41px;
}
 
.personalist span {
    color: #434343;
    font-weight: bold;
}
.personalist span.span {
}
.personalist_chk {
    margin: 0px 5px 0px 16px;
    position: relative;
    top: 3px;
}
.personalist_chkbox {
    margin:6px 8px 11px 20%;
    float:left;
}
.personalist_chkboxthree {
    margin:6px 8px 12px 30%;
    float:left;    
}
.personalistr {
    float: left;
    width: 85%;
}
.personalistr li {
    float: left;
    color: #666;
    list-style: none;
    margin-bottom: 0px;
}
.personalistr li.li {
    color: #333;
}
.personalistr li.li a {
    color: #666;
}
.personalistr li.li a:hover {
    color: #00f;
}
 
</style>
<script type="text/javascript">
 
 
function _onFormSubmit(){
    if(!confirm('确定要重新分配人员吗?')) return false;
    //document.getElementById("myform").target = window.top.openDialog(1,30,30,'操作提示:');
    document.getElementById("myform").target = window.top.openDialog("1","操作",
                                     {},
                                     {"width":30,"height":30,"noclose":true},
                                     [{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
    document.getElementById("btnOK").click();
}
 
function onUserClick(userid){
    var url = '${base}/business/pages/xtgl/jsgl/userInRole.html?userid='+userid;
    window.top.openDialog("user","人员角色",
                         {},
                         {"width":20,"height":85},
                         [{btnId:"btnSure", btnName:"提交", btnStyle:"bluebtn"}],
                         url);  
}
 
function onDialogBtnClick(btnID, dialogID, config){
        if(btnID == "btnSure"){
            _onFormSubmit();
        }
    }
 
function closeWin(){
       window.top.closeDialog(0);
}
 
    $(document).ready(function(){
        
        //点击一级功能菜单
        $("input[name='selectAll']").bind({
            click : function(){
               var $item = $(this).parents("div").next("div[class='personalistr']");
                if($(this).attr("class") == "personalist_chk"){
                   $item = $(this).parents("div").next("div[class='personalistr personalisttit']");
                }
                if(this.checked){
                    $($item.find(":checkbox")).each(function(){
                        this.checked = true;
                    });
                } else {
                    $($item.find(":checkbox")).each(function(){
                        this.checked = false;
                    });
                }
            }
        });    
    });    
</script>
<title>无标题文档</title>
</head>
 
<body>
<form action="userJsListSubmit.html" method="post" id="myform">
<input type="hidden" value="${RequestParameters.id}" name="roleid" />
<div class="personcont">
[#if ZZJGList ?? && ZZJGList?size > 0]
[#list ZZJGList as zzjg]
  <div class="personalist clearfix">
    <div class="personalistl personalisttit">
      <input class="personalist_chk" name="selectAll" type="checkbox" value="" />
      <span>${zzjg.JGMC}:</span></div>
    <div class="personalistr personalisttit">
    [#if data.PARTNERLIST?? && data.PARTNERLIST?size > 0]
    [#list data.PARTNERLIST as a]
      [#if a.SSBMBH == zzjg.ID]
      <li class="li">
        <input class="personalist_chk" name="userid" type="checkbox" [#if a.CHECKED??]checked="checked"[/#if] value="${a.ID}"/>
        <a href="#" onclick="return onUserClick('${a.ID}')">${a.ZSXM}</a></li>
        [/#if]
    [/#list]
    [/#if]
    </div>
  </div>
  [#if zzjg.ejTree?? && zzjg.ejTree?size>0]
  [#list zzjg.ejTree as ej]
  <div class="personalist clearfix personalistnon">
    <div class="personalistl">
      <input class="personalist_chk personalist_chkbox" name="selectAll" type="checkbox" value="" />
      <span class="span">${ej.JGMC}:</span> </div>
    <div class="personalistr" id="menu">
    [#if data.PARTNERLIST?? && data.PARTNERLIST?size > 0]
    [#list data.PARTNERLIST as a]
      [#if a.SSBMBH == ej.ID]
      <li class="li">
        <input class="personalist_chk" name="userid" type="checkbox" [#if a.CHECKED??]checked="checked"[/#if] value="${a.ID}"/>
        <a href="#" onclick="return onUserClick('${a.ID}')">${a.ZSXM}</a></li>
        [/#if]
    [/#list]
    [/#if]
    </div>
  </div>
  [#if ej.sjTree?? && ej.sjTree?size>0]
  [#list ej.sjTree as sj]
  <div class="personalist clearfix personalistnon">
    <div class="personalistl">
      <input class="personalist_chk personalist_chkboxthree" name="selectAll" type="checkbox" value="" />
      <span class="span">${sj.JGMC}:</span></div>
    <div class="personalistr" id="menu">
    [#if data.PARTNERLIST?? && data.PARTNERLIST?size > 0]
    [#list data.PARTNERLIST as a]
      [#if a.SSBMBH == sj.ID]
      <li class="li">
        <input class="personalist_chk" name="userid" type="checkbox" [#if a.CHECKED??]checked="checked"[/#if] value="${a.ID}"/>
        <a href="#" onclick="return onUserClick('${a.ID}')">${a.ZSXM}</a></li>
        [/#if]
    [/#list]
    [/#if]
    </div>
  </div>
  [/#list]
  [/#if]
  [/#list]
  [/#if]
  [/#list]
[/#if]
</div>
 <input type="submit" id="btnOK" value="提交" style="display:none;"  />
</form>
</body>
</html>