username@email.com
2025-03-31 1be1829cbb03b11d10a800ebb8ad72eb9241a103
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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SendAllCor.aspx.cs" Inherits="CY.WebForm.Pages.business.SendAllCor" %>
 
<!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 id="Head1" runat="server">
    <title>合作客户管理</title>
    <uc:CMSHead ID="CMSHead1" runat="server" />
    <script type="text/javascript">
        //查看
        function onViewDeatil(keyid) {
            top.Dialog.open({ URL: "/Pages/business/CorporateClientsDetail.aspx?Keyid=" + keyid, Title: "查看合作客户", Width: 900, Height: 580 });
        }
        //访问记录
        function onView(keyid) {
            top.Dialog.open({ URL: "/Pages/business/CustomerAccessRecordDetailList.aspx?type=cor&Keyid=" + keyid, Title: "查看访问记录", Width: 900, Height: 490 });
        }
        //群发邮件
        function SendAllEmail() {
            var keyid = "";
            var keyidszs = "";
            $(".SelectCheck:checked").each(function (ii, vv) {
                if ($(vv).attr("value_email") != "" && $(vv).attr("value_email") != null) {
                    keyid = keyid + "|" + $(vv).attr("value_email");
                    keyidszs = keyidszs + "," + $(vv).attr("value_cid");
                }
            });
            if (keyid == "")
                alertMsg("未选中任何客户或所选客户未填写邮箱");
            else
                top.Dialog.open({ URL: "/Pages/business/SendAllEmail.aspx?Keyid=" + keyid + "&keyidszs=" + keyidszs + "&sendfrom=corporate", Title: "群发邮件", Width: 880, Height: 665, Modal: false });
        }
        //商业信函
        function SendAllLetters() {
            var keyid = "";
            $(".SelectCheck:checked").each(function (ii, vv) {
                if ($(vv).attr("value_cid") != "" && $(vv).attr("value_cid") != null) {
                    keyid = keyid + "," + $(vv).attr("value_cid");
                }
            });
            if (keyid == "")
                alertMsg("未选中任何客户");
            else {
                top.Dialog.open({ URL: "/Pages/business/SendAllLettersChange.aspx?Keyid=" + keyid + "&&sendfrom=corporate", Title: "商业信函", Width: 400, Height: 180, Modal: false });
            }
        }
        //群发短信
        function SendAllSMS() {
            var keyid = "";
            var keyidszs = "";
            $(".SelectCheck:checked").each(function (ii, vv) {
                if ($(vv).attr("value_mobile") != "" && $(vv).attr("value_mobile") != null) {
                    keyid = keyid + "|" + $(vv).attr("value_mobile");
                    keyidszs = keyidszs + "," + $(vv).attr("value_cid");
                }
            });
            if (keyid == "")
                alertMsg("未选中任何客户或所选客户未填写手机");
            else
                top.Dialog.open({ URL: "/Pages/business/SendAllSMS.aspx?Keyid=" + keyid + "&keyidszs=" + keyidszs + "&sendfrom=corporate", Title: "群发短信", Width: 560, Height: 275, Modal: false });
        }
        //客户转移
        function ShiftIntention() {
            var keyid = "";
            $(".SelectCheck:checked").each(function (ii, vv) {
                keyid = keyid + "|" + $(vv).attr("value_cid");
            });
            if (keyid == "")
                alertMsg("未选中任何客户");
            else
                top.Dialog.open({ URL: "/Pages/business/ShiftIntOrCus.aspx?type=cor&Keyid=" + keyid, Title: "客户转移", Width: 300, Height: 120, Modal: false });
        }
        //批量访问
        function StorageVolume() {
            var keyid = "";
            $(".SelectCheck:checked").each(function (ii, vv) {
                keyid = keyid + "|" + $(vv).attr("value_cid");
            });
            if (keyid == "")
                alertMsg("未选中任何客户");
            else
                top.Dialog.open({ URL: "/Pages/business/IntentionCustomerBatchAccess.aspx?type=cor&Keyid=" + keyid, Title: "批量访问", Width: 560, Height: 265, Modal: false });
        }
        //打印合作客户资料
        function PrintCorList() {
            var keyid = "";
            $(".SelectCheck:checked").each(function (ii, vv) {
                keyid = keyid + "," + $(vv).attr("value_cid");
            });
            if (keyid == "")
                alertMsg("未选中任何客户");
            else {
                openWindowTransferData("/Pages/business/PrintCorList.aspx", "Keyid", keyid);
            }
        }
        //打印合作客户A表
        function PrintCorATable() {
            var keyid = "";
            $(".SelectCheck:checked").each(function (ii, vv) {
                keyid = keyid + "," + $(vv).attr("value_cid");
            });
            if (keyid == "")
                alertMsg("未选中任何客户");
            else {
                openWindowTransferData("/Pages/business/PrintCorATable.aspx", "Keyid", keyid);
            }
        }
        //打印合作客户B表
        function PrintCorBTable() {
            var keyid = "";
            $(".SelectCheck:checked").each(function (ii, vv) {
                keyid = keyid + "," + $(vv).attr("value_cid");
            });
            if (keyid == "")
                alertMsg("未选中任何客户");
            else {
                openWindowTransferData("/Pages/business/PrintCorBTable.aspx", "Keyid", keyid);
            }
        }
</script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="scrollContent">
        <div class="box1" paneltitle="功能面板" roller="false">
            <table class="TableNewStyle" width="100%">
                <tr>
                    <td class="ali03">
                        建档时间:
                    </td>
                    <td>
                        <input id="txtRegTimeStart" type="text" class="date w90px" datefmt="yyyy-MM-dd" runat="server" />-<input id="txtRegTimeEnd" type="text" class="date w90px" datefmt="yyyy-MM-dd" runat="server" />
                    </td>
                    <td class="ali03">
                        客户编号:
                    </td>
                    <td>
                        <input type="text" runat="server" id="txtUserNum" />
                    </td>
                    <td class="ali03">
                        客户名称:
                    </td>
                    <td>
                        <input type="text" runat="server" id="txtquery_userName" />
                    </td>
                    <td class="ali03">
                        客户来源:
                    </td>
                    <td>
                        <select id="selSourcesInfoId" runat="server" datatextfield="Name" datavaluefield="Keyid" keepdefaultstyle='true'>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="ali03 ">
                        客户类型:
                    </td>
                    <td>
                        <select id="selCustomerTypeId" runat="server" datatextfield="Name" datavaluefield="Keyid" keepdefaultstyle='true'>
                        </select>
                    </td>
                    <td class="ali03">
                        所属行业:
                    </td>
                    <td>
                        <select id="selCustomerIndustriesId" runat="server" datatextfield="Name" datavaluefield="Keyid" keepdefaultstyle='true' class=" w122px">
                        </select>
                    </td>
                    <td class="ali03 ">
                        客户级别:
                    </td>
                    <td>
                        <select id="selDegreeImportanId" runat="server" datatextfield="Name" datavaluefield="Keyid" keepdefaultstyle='true' class=" w122px">
                        </select>
                    </td>
                    <td class="ali03 ">
                        客户信誉:
                    </td>
                    <td>
                        <select id="selTurnoverIntentionId" runat="server" datatextfield="Name" datavaluefield="Keyid" keepdefaultstyle='true' class=" w122px">
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="ali03">
                        所在区域:
                    </td>
                    <td>
                        <asp:DropDownList ID="selectProvince" runat="server" keepDefaultStyle="true" AutoPostBack="true" OnSelectedIndexChanged="ChangeProvince" Width="70px">
                    </asp:DropDownList>
                    <asp:DropDownList ID="selectCity" runat="server" keepDefaultStyle="true" AutoPostBack="true" OnSelectedIndexChanged="ChangeCity" Width="70px">
                    </asp:DropDownList>
                    <asp:DropDownList ID="selectCounty" runat="server" keepDefaultStyle="true" AutoPostBack="false" Width="70px">
                    </asp:DropDownList>
                    </td>
                    <td class="ali03 ">
                        业务经理:
                    </td>
                    <td>
                        <select id="selBusinessManagerId" runat="server" keepdefaultstyle='true'>
                            <option value="">全部</option>
                        </select>
                    </td>
                    <td class="ali03 ">
                        客户经理:
                    </td>
                    <td>
                        <select id="selAccountManagerId" runat="server" keepdefaultstyle='true'>
                            <option value="">全部</option>
                        </select>
                    </td>
                    <td class="ali03">
                        下单数量:
                    </td>
                    <td>
                        <select id="selOrderCount" keepdefaultstyle="true" runat="server" style="width: 74px">
                            <option selected="selected" value="">全部</option>
                            <option value="&gt;=">>=</option>
                            <option value="&lt;="><=</option>
                        </select>
                        <input type="text" class="w40px" runat="server" id="txtOrderCount" />
                    </td>
                </tr>
                <tr>
                    <td class="ali03">
                        下单产值:
                    </td>
                    <td>
                        <select id="selOrderMoney" runat="server" keepdefaultstyle="true" style="width: 74px">
                            <option selected="selected" value="">全部</option>
                            <option value="&gt;=">>=</option>
                            <option value="&lt;="><=</option>
                        </select>
                        <input type="text" class="w40px" runat="server" id="txtOrderMoney" />
                    </td>
                    <td class="ali03">
                        未下单时间:
                    </td>
                    <td>
                        <select id="selLastOrderTime" runat="server" keepdefaultstyle="true" style="width: 74px">
                            <option selected="selected" value="">全部</option>
                            <option value="&gt;=">>=</option>
                            <option value="&lt;="><=</option>
                        </select>
                        <input type="text" class="w40px" runat="server" id="txtLastOrderTime" />
                    </td>
                    <td class="ali03" colspan="3">
                    </td>
                    <td>
                        <asp:Button ID="btn_Search" Text="查询" runat="server" padding="0px" OnClick="btn_Search_Click" />
                        <input type="button" onclick="resetSearch()" value="重置" />
                    </td>
                </tr>
            </table>
        </div>
        <div class="box_tool_min ">
            <div class="left padding_top5 padding_left10">
                <a href="javascript:;" onclick="ShiftIntention()" menu_member_case_id="case_ShiftIntention" menu_member_case_name="转移客户"><span class="icon_add">转移客户</span></a>
                <div class="box_tool_line">
                </div>
                <a href="javascript:;" onclick="StorageVolume()" menu_member_case_id="case_StorageVolume" menu_member_case_name="批量访问"><span class="icon_add">批量访问</span></a>
                <div class="box_tool_line">
                </div>
                <a href="javascript:;" onclick="SendAllSMS()" menu_member_case_id="case_SendAllSMS" menu_member_case_name="群发短信"><span class="icon_reply">群发短信</span></a>
                <div class="box_tool_line">
                </div>
                <a href="javascript:;" onclick="SendAllEmail()" menu_member_case_id="case_SendAllEmail" menu_member_case_name="群发邮件"><span class="icon_reply">群发邮件</span></a>
                <div class="box_tool_line">
                </div>
                <a href="javascript:;" onclick="SendAllLetters()" menu_member_case_id="case_SendAllLetters" menu_member_case_name="商业信函"><span class="icon_reply">商业信函</span></a>
                <div class="box_tool_line">
                </div>
                <a href="javascript:;" onclick="PrintCorList()" menu_member_case_id="case_PrintCorList" menu_member_case_name="打印客户资料"><span class="icon_reply">打印客户资料</span></a>
                <div class="box_tool_line">
                </div>
                <%--<a href="javascript:;" onclick="PrintCorVisit()"><span class="icon_reply">打印访问记录</span></a>
                <div class="box_tool_line">
                </div>--%>
                <a href="javascript:;" onclick="PrintCorATable()" menu_member_case_id="case_PrintCorATable" menu_member_case_name="打印A表"><span class="icon_reply">打印A表</span></a>
                <div class="box_tool_line">
                </div>
                <a href="javascript:;" onclick="PrintCorBTable()" menu_member_case_id="case_PrintCorBTable" menu_member_case_name="打印B表"><span class="icon_reply">打印B表</span></a>
                <div class="clear">
                </div>
            </div>
        </div>
        <div>
            <asp:Repeater ID="RepClientList" runat="server">
                <HeaderTemplate>
                    <table class="tableStyle" useclick="false" usecheckbox="true" sortmode="true" style="text-align:center;">
                        <tr>
                            <th width="25">
                            </th>
                            <th>
                                客户编号
                            </th>
                            <th>
                                客户全称
                            </th>
                            <th>
                                市县区域
                            </th>
                            <th>
                                客户来源
                            </th>
                            <th>
                                上门
                            </th>
                            <th>
                                电话
                            </th>
                            <th>
                                QQ
                            </th>
                            <th>
                                短信
                            </th>
                            <th>
                                商函
                            </th>
                            <th>
                                Email
                            </th>
                            <th>
                                客户级别
                            </th>
                            <th>
                                访问次数
                            </th>
                            <th>
                                业务经理
                            </th>
                            <th>
                                客户经理
                            </th>
                            <th width="120">
                                操作
                            </th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            <input type="checkbox" class="SelectCheck" value_mobile="<%#Eval("Mobile")%>" value_email="<%#Eval("Email")%>" value_cid="<%#Eval("CustomerId")%>" />
                        </td>
                        <td>
                            <%#Eval("CustomerId")%>
                        </td>
                        <td>
                            <a class="a_under" onclick="onViewDeatil('<%#Eval("Keyid")%>')">
                                <%#Eval("CompanyName")%></a>
                        </td>
                        <td>
                            <%#Eval("City").ToString().IndexOf("其他") >= 0 ? Eval("Province") : Eval("City")%><%#Eval("County")%>
                        </td>
                        <td>
                            <%#Eval("SourcesInfoIdName")%>
                        </td>
                        <td>
                            <%#Eval("Nupdoor")??0%>
                        </td>
                        <td>
                            <%# Eval("Nphone")??0%>
                        </td>
                        <td>
                            <%#Eval("Nqq")??0%>
                        </td>
                        <td>
                            <%# Eval("Nmessage")??0%>
                        </td>
                        <td>
                            <%# Eval("NDirectMail")??0%>
                        </td>
                        <td>
                            <%#Eval("Nemial")??0%>
                        </td>
                        <td>
                            <%#Eval("DegreeImportanIdName")%>
                        </td>
                        <td>
                            <%#Eval("Nall")??0%>
                        </td>
                        <td>
                            <%#Eval("BusinessmanagerName")%>
                        </td>
                        <td>
                            <%#Eval("AccountmanagerName")%>
                        </td>
                        <td class="Operate">
                            <a class="a_under" menu_member_case_id="case_visitrecord" menu_member_case_name="访问记录" onclick="onView('<%#Eval("CustomerId")%>')">访问记录</a>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
        </div>
    </div>
    </form>
</body>
</html>