username@email.com
2025-05-21 a980cd04341d71216e0f59bd4b7327fe9fc50032
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
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeliverPlanDakaList.aspx.cs" Inherits="CY.WebForm.Pages.business.DeliverPlanDakaList" %>
 
<!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 src="../../js/business/Order.js" type="text/javascript"></script>--%>
    <script type="text/javascript">
        //工作考评
        function View(Keyid, BuyerId, DeliverTime,Sort) {
            //if (Keyid == '00000000-0000-0000-0000-000000000000') {
            //    alert("请先安排送货!");
            //    return;
            //}
           
            top.Dialog.open({ URL: "/Pages/business/DeliverPlanSort.aspx?Keyid=" + Keyid + "&BuyerId=" + BuyerId + "&DeliverTime=" + DeliverTime + "&Sort=" + Sort, Title: "送货安排排序", Width: 300, Height: 300 });
        }
 
        //工作考评
        function ViewZhuyishixiang(Keyid, BuyerId, DeliverTime) {
            //if (Keyid == '00000000-0000-0000-0000-000000000000') {
            //    alert("请先安排送货!");
            //    return;
            //}
 
            top.Dialog.open({ URL: "/Pages/business/DeliverPlanZhuyishixiang.aspx?Keyid=" + Keyid + "&BuyerId=" + BuyerId + "&DeliverTime=" + DeliverTime , Title: "送货安排注意事项", Width: 800, Height: 300 });
        }
 
        //工作考评
        function ViewGongzuokaoping(Keyid, BuyerId, DeliverTime) {
            //if (Keyid == '00000000-0000-0000-0000-000000000000') {
            //    alert("请先安排送货!");
            //    return;
            //}
 
            top.Dialog.open({ URL: "/Pages/business/DeliverPlanGongzuokaoping.aspx?Keyid=" + Keyid + "&BuyerId=" + BuyerId + "&DeliverTime=" + DeliverTime , Title: "送货安排工作考评", Width: 800, Height: 300 });
        }
 
        
        //送货安排
        function ToAddorder() {
            top.Dialog.open({ URL: "/Pages/business/DeliverPlanEdit.aspx", Title: "新增送货单", Width: 900, Height: 750 });
        }
       
        //送货安排
        function outAfterWorks(Keyid, BuyerId, DeliveredTime) {
            top.Dialog.open({ URL: "/Pages/business/OrderProductionprogress.aspx?SellerOrderId=" + SellerOrderId + "&Keyid=" + Keyid + "&works=" + works, Title: works, Width: 300, Height: 300 });
        }
        //打印
        function outAfterWorks(Keyid) {
            if (Keyid == '00000000-0000-0000-0000-000000000000') {
                alert("请先安排送货!");
                return;
            }
            top.Dialog.open({ URL: "/Pages/business/DeliverPlanPrint.aspx?Keyid=" + Keyid + "&DelayTime=2021-04-09", Title: "工作考评", Width: 1000, Height: 800 });
        }
 
        ///批量受理
        function ToAllAccept1() {
           
            var ids = '';
            var cks = $("input[name='ckId']:checked");
            if (cks.length == 0) { alertMsg('没有选中任何项!'); return; } else { }
            var isCan = true;
            var DeliverTime = '';
            var BuyerId = '';
           
 
        
            cks.each(
                function () {
                    var ckVal = $(this).val();
 
                    var ckValJson = eval('(' + ckVal + ')');
 
                    ids = ids + ',' + ckValJson.id;
                    //orderShowIds = orderShowIds + ',' + ckValJson.ordershowId;
 
                    DeliverTime = DeliverTime + ',' + ckValJson.DeliverTime;
                    BuyerId = BuyerId + ',' + ckValJson.BuyerId;
                }
            );
            
            
            if (!isCan) {
               // alertMsg('请选择未受理的订单!');
            }
            else {
                if (ids != '') {
                    ids = ids.substring(1);
                    DeliverTime = DeliverTime.substring(1);
                    BuyerId = BuyerId.substring(1);
                }
                
                var msg =  ('确认移交单据吗?') ;
                top.Dialog.confirm(msg, function () {
                    DoAcceptAll(ids, DeliverTime, BuyerId);
                });
            }
        }
 
        /*
批量处理受理订单
*/
        var DoAcceptAll = function (orderIds, DeliverTime, BuyerId) {
            CallServer({ Target: "AcceptOrderAll", ids: orderIds, DeliverTimes: DeliverTime, BuyerIds: BuyerId }, function (data, textStatus) {
                if ('1' == data) {
                    alertMsg('操作成功!');
                    RefreshDIVOpener();   //关闭页面
                } else {
                    alertMsg('-1' == data ? '移交单据失败!' : '移交单据失败!');
                    //dialog.close();
                }
            });
        }
 
 
        ///批量受理
        function ToAllAccept3() {
 
            var ids = '';
            var cks = $("input[name='ckId']:checked");
            if (cks.length == 0) { alertMsg('没有选中任何项!'); return; } else { }
            var isCan = true;
            var DeliverTime = '';
            var BuyerId = '';
 
            //var carid = $("#selCarIddo").val();
            //var driverid = $("#selDriverIddo").val();
 
            //if (carid == "") { alertMsg('请选择车辆!'); return; } else { }
            //if (driverid == "") { alertMsg('请选择驾驶员!'); return; } else { }
 
            cks.each(
                function () {
                    var ckVal = $(this).val();
 
                    var ckValJson = eval('(' + ckVal + ')');
 
                    ids = ids + ',' + ckValJson.id;
                    //orderShowIds = orderShowIds + ',' + ckValJson.ordershowId;
 
                    DeliverTime = DeliverTime + ',' + ckValJson.DeliverTime;
                    BuyerId = BuyerId + ',' + ckValJson.BuyerId;
                }
            );
 
 
            if (!isCan) {
                // alertMsg('请选择未受理的订单!');
            }
            else {
                if (ids != '') {
                    ids = ids.substring(1);
                    //DeliverTime = DeliverTime.substring(1);
                    //BuyerId = BuyerId.substring(1);
                }
 
                top.Dialog.open({ URL: "/Pages/business/DeliverPlanPaiche.aspx?ids=" + ids, Title: "安排车辆", Width: 600, Height: 300 });
            }
        }
 
 
 
        ///批量受理
        function ToAllAccept4() {
 
            var ids = '';
            var cks = $("input[name='ckId']:checked");
            if (cks.length == 0) { alertMsg('没有选中任何项!'); return; } else { }
            var isCan = true;
            var DeliverTime = '';
            var BuyerId = '';
 
            //var carid = $("#selCarIddo").val();
            //var driverid = $("#selDriverIddo").val();
 
            //if (carid == "") { alertMsg('请选择车辆!'); return; } else { }
            //if (driverid == "") { alertMsg('请选择驾驶员!'); return; } else { }
 
            cks.each(
                function () {
                    var ckVal = $(this).val();
 
                    var ckValJson = eval('(' + ckVal + ')');
 
                    ids = ids + ',' + ckValJson.id;
                    //orderShowIds = orderShowIds + ',' + ckValJson.ordershowId;
 
                    DeliverTime = DeliverTime + ',' + ckValJson.DeliverTime;
                    BuyerId = BuyerId + ',' + ckValJson.BuyerId;
                }
            );
 
 
            if (!isCan) {
                // alertMsg('请选择未受理的订单!');
            }
            else {
                if (ids != '') {
                    ids = ids.substring(1);
                    //DeliverTime = DeliverTime.substring(1);
                    //BuyerId = BuyerId.substring(1);
                }
 
                top.Dialog.open({ URL: "/Pages/business/DeliverPlanYijiao.aspx?ids=" + ids, Title: "单据移交", Width: 600, Height: 300 });
            }
        }
 
 
 
 
        ///批量受理
        function ToAllAccept2() {
 
            var ids = '';
            var cks = $("input[name='ckId']:checked");
            if (cks.length == 0) { alertMsg('没有选中任何项!'); return; } else { }
            var isCan = true;
            var DeliverTime = '';
            var BuyerId = '';
 
            var carid = $("#selCarIddo").val();
            var driverid = $("#selDriverIddo").val();
 
            if (carid == "") { alertMsg('请选择车辆!'); return; } else { }
            if (driverid == "") { alertMsg('请选择驾驶员!'); return; } else { }
 
            cks.each(
                function () {
                    var ckVal = $(this).val();
 
                    var ckValJson = eval('(' + ckVal + ')');
 
                    ids = ids + ',' + ckValJson.id;
                    //orderShowIds = orderShowIds + ',' + ckValJson.ordershowId;
 
                    DeliverTime = DeliverTime + ',' + ckValJson.DeliverTime;
                    BuyerId = BuyerId + ',' + ckValJson.BuyerId;
                }
            );
 
 
            if (!isCan) {
                // alertMsg('请选择未受理的订单!');
            }
            else {
                if (ids != '') {
                    ids = ids.substring(1);
                    DeliverTime = DeliverTime.substring(1);
                    BuyerId = BuyerId.substring(1);
                }
 
                var msg = ('确认派车吗?');
                top.Dialog.confirm(msg, function () {
                    DoAcceptAll2(ids, DeliverTime, BuyerId, carid, driverid);
                });
            }
        }
 
        /*
批量处理受理订单
*/
        var DoAcceptAll2 = function (orderIds, DeliverTime, BuyerId, carid, driverid) {
            CallServer({ Target: "AcceptOrderAll2", ids: orderIds, DeliverTimes: DeliverTime, BuyerIds: BuyerId, Carid: carid, Driverid: driverid}, function (data, textStatus) {
                if ('1' == data) {
                    alertMsg('操作成功!');
                    RefreshDIVOpener();   //关闭页面
                } else {
                    alertMsg('-1' == data ? '派车失败!' : '派车失败!');
                    //dialog.close();
                }
            });
        }
 
 
        /*
打印送货单
*/
        function ToPrintDriverorder(DriverId) {
         
            OpenWindowByUrl('/Pages/business/DeliverOrderPrint.aspx?deliverorderId=' + DriverId, '', '');
        }
 
 
 
 
        //维护
        function onViewuplod(keyid, AttachmentType) {
            var l = (screen.availWidth - 500) / 2;
            var t = (screen.availHeight - 300) / 2;
            // window.open({ URL: "/Pages/business/CorporateClientsUpLoadContract.aspx?Keyid=" + keyid, Title: "查看合同", Width: 900, Height: 750 });
            window.open('/Pages/business/DeliverPlanFujianShow.aspx?Keyid=' + keyid + '&AttachmentType=' + AttachmentType, '_blank', 'height=750,width=900,top=' + t + ',left=' + l + ',toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no');
        }
 
        function showProgress() {
            document.getElementById('progressBar').style.display = 'block';
 
 
            setTimeout(function () {
                document.getElementById('progressBar').style.display = 'none';
            }, 2000); // 10000毫秒等于10秒
 
        }
 
        /*
打印送货单
*/
        function ToPrintdelev() {
            var DeliverTimestart = $("#txtDeliverTimestart").val();
            var DeliverTimeend = $("#txtDeliverTimeend").val();
            var CarId = $("#selCarId").val();
            var DriverId = $("#selDriverId").val();
           // OpenWindowByUrl();
            //OpenWindowByUrl('/Pages/business/DeliverPlanPrint.aspx?DeliverTime=' + DeliveryTime + '&CarId=' + CarId + '&DriverId=' + DriverId, '', '');
            OpenWindowByUrl('/Pages/business/DeliverPlanLishiPrint.aspx?DeliverTimestart=' + DeliverTimestart + '&DeliverTimeend=' + DeliverTimeend + '&CarId=' + CarId + '&DriverId=' + DriverId, '', '');
        }
    </script>
    <style type="text/css">
        .tableStyleXS th { padding: 1px 0 1px 3px; background-image:none; border-bottom:1px solid #CCC; }
        .tableStyleXS td { padding: 1px 0 1px 3px; }
        .TableNewStyle select { width: 80px; }
        .td_hide span { text-decoration: default; display: none; text-align: center; }
        span.hand_no { cursor: default; display: block; font-size: 12px; }
        span.hand_no:hover { text-decoration: none; }
        span.hand_yes { cursor: pointer; display: block; font-size: 12px; }
        .td_hide { cursor: pointer; }
    </style>
</head>
<body>
     <form id="form1" runat="server">
    <div id="scrollContent" style="width: auto;">
        <div class="box1">
            <table class="TableNewStyle" style="width: 100%;">
                 <tr>
                     
                    
                 
                     
                     
                        <td style="width:5%" >
                      
                    </td>
                    <td style="width:15%">
                        
                    </td> <td style="width:5%" >
                      
                    </td>
                    <td style="width:15%">
                        
                    </td> <td style="width:5%" >
                      
                    </td>
                    <td style="width:15%">
                        
                    </td>
                     </tr>
                 <tr>
                      <td class="ali03">
                        打卡时间:
                    </td>
                     
                    <td  >
                         <input id="txtCreatTimestart" type="text" runat="server" class='date w80px' maxlength='10' />-<input id="txtCreatTimeend" type="text" runat="server" class='date w80px' maxlength='10' />
                         </td>
                      <td class="ali03">
                        打卡类型:
                    </td>
                    <td  >
                        <select keepdefaultstyle='true' id='selClockType' runat="server" datatextfield='CarNumber' datavaluefield='Keyid'>
                            <option value="">请选择</option>
                               <option value="1">上班</option>
                               <option value="2">下班</option>
                               <option value="3">草稿</option>
                        </select>
                    </td>
                      <td class="ali03">
                        车辆:
                    </td>
                    <td  >
                        <select keepdefaultstyle='true' id='selCarId' runat="server" datatextfield='CarNumber' datavaluefield='Keyid'>
                        </select>
                    </td>
                     <td class="ali03"  >
                        驾驶员:
                    </td>
                    <td   >
                         <input id='txtCreater' runat="server" maxlength='50' />
                        
                    </td>
                     </tr>
                
                      <tr>
 
                         
                       
                    <td colspan="8">
                    
                           <asp:button id="btn_Search" text="查询" runat="server"  padding="0px" OnClick="btn_Search_Click" />&nbsp;<input type="button" value='重置' onclick='document.body.innerHTML="";window.location=window.location;' />
 
                       
                        &nbsp;<asp:Button ID="Button1" Text="导出" OnClientClick="showProgress();return true;" runat="server" OnClick="btn_Daochu_Click" />
                        <div id="progressBar" style="display:none; position:fixed; top:50%; left:50%; transform:translate(-50%, -50%);border:1px solid black;height:50px;background-color:azure;">
    正在导出Excel文件,请稍候...
</div>
                            
                    </td>
                </tr>
                
                
            </table>
        </div>
            
          
        <div clear="fl">
            <table class="tableStyle tableStyleXS" useclick="false" usecheckbox="true" sortmode="false">
                <thead>
                    <tr>
                          
                        <th width="25">
                            编号
                        </th>
                          <th width="60">
                            车辆
                        </th>
                        <th width="40">
                            驾驶员
                        </th>
                          <th width="85">
                            打卡时间
                        </th>
                         <th width="60">
                            打卡类型
                        </th>
                        <th  style="text-align: center;"width="200">
                            未装货情况
                        </th>
                         <th  style="text-align: center;"width="200">
                            车况
                        </th>
                        <th style="text-align: center;"width="200">
                            备注
                        </th>
                         <th width="60">
                            里程(公里)
                        </th>
                           <th width="60">
                            里程图片
                        </th>
                           <th width="60">
                            装货图片
                        </th>
                        <th width="60">
                            车况图片
                        </th>
                        
                          
                      
                    </tr>
                </thead>
                <tbody>
                    <asp:repeater id="RepClientList" runat="server">
                        <itemtemplate>
                            <tr>
                                 
                                
                                <td>
                                   <%#Container.ItemIndex + (UCPager1.PageSize *( UCPager1.PageIndex-1)+1)%>
                                </td>
                                  <td>
                                    <%#Eval("CarName")%>
                                </td>
                                <td>
                                    <%#Eval("Creater")%>
                                </td>
                                <td>
                                      <%#Eval("CreatTime", "{0:yyyy-MM-dd HH:mm:dd}")%>
                                </td>
                                 <td>
                                    <%#Eval("ClockTypeName")%>  
                                </td>
                                <td>
                                    <%#Eval("EmptyCause")%>  
                                </td>
                                
                                <td>
                                    <%#Eval("CarCondition")%>   
                                </td>
                                <td>
                                   <%#Eval("Remark")%>     
                                </td>
                                  <td>
                                   <%#Eval("Mileage")%>     
                                </td>
                                <td>
                                    <a   title='里程图片' class='a_under' href="<%#Eval("MileageImg").ToString() %>" target="view_window"   > <%#Eval("MileageImgName")%>   </a> 
                                </td>
                                <td>
                                      <a href='javascript:void(0)' title='装货图片' class='a_under' onclick='onViewuplod("<%#Eval("Id")%>","4")'> <%#Eval("ZhuangcheImg")%>  </a> 
                                </td>
                                <td>
                                    <a href='javascript:void(0)' title='车况图片' class='a_under' onclick='onViewuplod("<%#Eval("Id")%>","5")'> <%#Eval("CarConditionImg")%>    </a> 
                                </td>
                                 
                                
                                  
                                 
                            </tr>
                        </itemtemplate>
                    </asp:repeater>    
 
                </tbody>
            </table>
            <uc:ucpager id="UCPager1" runat="server" />
        </div>
    </div>
    </form>
</body>
</html>