cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>等级协议</title>
<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>
[#include "/business/pages/include/static.html" /]
</head>
 
<body>
<div class="fs_main clearfix" style="margin-top:10px;">
    <div class="fs_main fs_edit nopadding" style="border:1px solid #dadbdf ;" >
        <div class="deal_switch">
            <div class="dls_btn" id="dlsBtn">
                <a class="basicinfo focus"><span>人员</span></a>
                <a id="group" class="basicinfo"><span>${Constants.CUSTOMER_CONSTANTS}联系人</span></a>
            </div>
        </div>
        <div class="deal_switch_wrap">
            <div class="deal_switch_con iframecon" style="display:block;" >
            
            <div class="personcont">
[#if zzjglist ?? && zzjglist?size > 0]
[#list zzjglist as zzjg]
  <div class="personalist clearfix">
    <div class="personalistl personalisttit">
      <span class="personalist_chk">${zzjg.JGMC}:</span></div>
    <div class="personalistr personalisttit">
    [#if userlist?? && userlist?size > 0]
    [#list userlist as a]
      [#if a.SSBMBH == zzjg.ID]
      <li class="li">
        <input class="personalist_chk" name="userid" type="checkbox" tname="${a.ZSXM}" t="1" [#if sl?contains(a.ID+"")]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">
      <span class="span personalist_chk personalist_chkbox">${ej.JGMC}:</span> </div>
    <div class="personalistr" id="menu">
    [#if userlist?? && userlist?size > 0]
    [#list userlist as a]
      [#if a.SSBMBH == ej.ID]
      <li class="li">
        <input class="personalist_chk" name="userid" type="checkbox" tname="${a.ZSXM}" t="1" [#if sl?contains(a.ID+"")]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">
      <span class="span personalist_chk personalist_chkboxthree">${sj.JGMC}:</span></div>
    <div class="personalistr" id="menu">
    [#if userlist?? && userlist?size > 0]
    [#list userlist as a]
      [#if a.SSBMBH == sj.ID]
      <li class="li">
        <input class="personalist_chk" name="userid" type="checkbox" tname="${a.ZSXM}" t="1" [#if sl?contains(a.ID+"")]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>
            
            
            
        
            </div>
            <div class="deal_switch_con iframecon" style="display:none;" id="main">
                <table class="display_form common_list_table">
                    <tr class="title">
                                <td width="8%">序号</td>
                                <td width="10%">联系人名称</td>
                                <td width="15%">业务科室</td>
                                <td width="15%">职务</td>
                                <td width="20%">手机号码</td>
                                <td width="15%">重要等级</td>
                            </tr>
                            [#if users?? && users?size>0]
                                [#list users as user]
                                <tr class="linkTr">
                                    <td><input class="pos orderId" type="checkbox" value="${user.ID}" t="2" tname="${user.CONTACT_NAME}" [#if sl?contains(user.ID)]checked="checked"[/#if]/>${user_index+1}</td>
                                    <td>${user.CONTACT_NAME}</td>
                                    <td>${user.YWKS}</td>
                                    <td>${user.ZW}</td>
                                    <td>${user.MOBILE}</td>
                                    <td>${user.LEVEL_NAME}</td>
                                </tr>
                                [/#list]
                                [#else]
                                <tr><td colspan="6"><div class="loadpos"><span class="nodata"></span></div></td></tr>
                            [/#if]
                            </table>
            </div>
        </div>
    </div>
</div>
 
<script type="text/javascript">
var customerId = '${RequestParameters.customerId}';
var pnum = '${RequestParameters.num}';
var iframeNum = '${RequestParameters.iframeNum}'; 
$(function() {
    $("#dlsBtn>.basicinfo").click(function() {
        var indx = $(this).index();
        $("#dlsBtn>.basicinfo").removeClass("focus");
        $(this).addClass("focus");
        $(".deal_switch_wrap>.deal_switch_con").hide();
        $(".deal_switch_wrap>.deal_switch_con:eq("+indx+")").show();
    });
    
    $("#selExecutors :checkbox").click(function() {
        var $dom = $(this);
        var value = $dom.val();
        $("#selExecutors :checkbox:checked").not(this).each(function() {
            var v = $(this).val();
            if(v == value) {
                $dom.attr("checked",false);
                window.top.popupTips("请不要选择重复人员");
                return;
            }
        });
        
        
    });
    
})
 
 
function onDialogBtnClick(btnID, dialogID, config){
        if(btnID == "btnSure"){
            var $checkedCheckbox = $(":checkbox:checked");
            var labelId = new Array();
            var labelName = new Array();
            $checkedCheckbox.each(function() {
                labelId.push($(this).val()+"-"+$(this).attr("groupType")+"-"+$(this).attr("t"));
                labelName.push($(this).attr("tname"));
            });
            
            var labelIds = labelId.join(",");
            var labelNames = labelName.join(",");
            
            if(labelIds.length==0) {
                popupTips("请选择通知人员");
                return;
            }
            window.top.document.getElementById("iframe"+iframeNum).contentWindow.showName(labelIds,labelNames,pnum);
            window.top.hideDialog(dialogID);
        }
    }
</script>
 
 
</body>
</html>