username@email.com
2025-03-05 9eaaeff84fedc8424ee9c7ea31bfd60cc1e8ff4e
CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanList.aspx
@@ -116,6 +116,99 @@
        }
        ///批量受理
        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 });
            }
        }
        ///批量受理
@@ -285,7 +378,7 @@
                
                      <tr>
                           <td class="ali03">
                          <%-- <td class="ali03">
                        新增送货车辆:
                    </td>
                    <td  >
@@ -298,14 +391,17 @@
                    <td   >
                        <select keepdefaultstyle='true' id='selDriverIddo' runat="server" datatextfield='Name' datavaluefield='Keyid'>
                        </select>
                    </td>
                    </td>--%>
                       
                    <td colspan="5">
                      <input type="button" value='派车' onclick='ToAllAccept2();' /> &nbsp; &nbsp;
                        <input type="button" value='新增送货'  onclick='ToAddorder();'  /> &nbsp; &nbsp;
                             <input type="button" value='单据移交' onclick='ToAllAccept1();' />
                           &nbsp; &nbsp; <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;' />
                    <td colspan="9">
                           <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; &nbsp; <input type="button" value='新增送货'  onclick='ToAddorder();'  /> &nbsp; &nbsp;
                              <input type="button" value='派车' onclick='ToAllAccept3();' /> &nbsp; &nbsp;
                         <input type="button" value='单据移交' onclick='ToAllAccept4();' />
                         &nbsp;&nbsp;<input type="button" value='打印全部' onclick='ToPrintdelev();' />
                    </td>
                </tr>
                
@@ -453,7 +549,7 @@
                                   <a href='javascript:void(0)' title='点击修改工作考评' class='a_under' onclick='ViewGongzuokaoping("<%#Eval("Keyid")%>","<%#Eval("BuyerId")%>","<%#Eval("DeliverTime", "{0:yyyy-MM-dd}")%>")' ><%#Eval("Gongzuokaoping").ToString()==""?"修改工作考评":Eval("Gongzuokaoping")%>    </a>    
                                </td>
                                <td style="text-align: center;">
                                    <%#(Eval("TransferstatusName").ToString()==""||Eval("TransferstatusName").ToString()=="未移交")?"未移交":"√"%>
                                    <%#Eval("TransferName")==null || Eval("TransferName").ToString()==""?"未移交":Eval("TransferName")%>
                                </td>
                                   <td>
                                 <a href='javascript:void(0)' title='打印送货单' class='a_under' onclick='ToPrintDriverorder("<%#Eval("Keyid")%>")'>  打印  </a>