From d15f9ddeef5168a71007b568d7349042931a92e3 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期三, 14 五月 2025 15:23:00 +0800 Subject: [PATCH] 系统表格中工价为16开工价;32开下浮30%;32开以下减半;8开上浮30%,4开以上上浮1半 --- CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanWentiList.aspx | 1146 ++++++++++++++++++++++++++++----------------------------- 1 files changed, 564 insertions(+), 582 deletions(-) diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanWentiList.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanWentiList.aspx index 771417a..4d7e123 100644 --- a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanWentiList.aspx +++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanWentiList.aspx @@ -1,582 +1,564 @@ -锘�<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeliverPlanWentiList.aspx.cs" Inherits="CY.WebForm.Pages.business.DeliverPlanWentiList" %> - -<!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/DeliverPlanPaicheZhuyishixiang.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/DeliverPlanPaicheEdit.aspx", Title: "鏂板閫佽揣鍗�", Width: 900, Height: 750 }); - } - //杩借矗 - function Xiugai(keyid) { - top.Dialog.open({ URL: "/Pages/business/DeliverPlanWentiEdit.aspx?keyid=" + keyid, 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 danjuyijiao(Keyid, Transferstatus) { - - - top.Dialog.open({ URL: "/Pages/business/DeliverPlanYijiao.aspx?ids=" + Keyid, Title: "鍗曟嵁绉讳氦", Width: 600, Height: 300 }); - } - - //宸ヤ綔鑰冭瘎 - function wanjie(Keyid) { - - var msg = ('纭瀹岀粨鍚�?'); - top.Dialog.confirm(msg, function () { - top.Dialog.open({ URL: "/Pages/business/DeliverPlanWentiEdit.aspx?Target=wanjie&&keyid=" + Keyid, 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) { - 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=3', '_blank', 'height=750,width=900,top=' + t + ',left=' + l + ',toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no'); - } - - /* -鎵撳嵃閫佽揣鍗� -*/ - function ToPrintdelev() { - var DeliveryTime = $("#txtDeliveryTime").val(); - var CarId = $("#selCarId").val(); - var DriverId = $("#selDriverId").val(); - var CustormerName = $("#txtCustormerName").val(); - var BusinessManager = $("#selBusinessManager").val(); - - // OpenWindowByUrl(); - OpenWindowByUrl('/Pages/business/DeliverPlanPrint.aspx?DeliverTime=' + DeliveryTime + '&CarId=' + CarId + '&DriverId=' + DriverId + '&CustormerName=' + CustormerName + '&BusinessManager=' + BusinessManager, '', ''); - } - </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 class="ali03"> - 鍙嶉鏃堕棿锛� - </td> - <td style="width: 215px"> - <input id="txtBeginDate" type="text" runat="server" class='date w80px' maxlength='10' />-<input id="txtEndDate" type="text" runat="server" class='date w80px' maxlength='10' /> - </td> - - <td class="ali03"> - 鍙嶉浜猴細 - </td> - <td> - <select keepdefaultstyle='true' id='selDriverIddo' runat="server" datatextfield='Name' datavaluefield='Keyid'> - </select> - </td> - <td class="ali03"> - 璐d换浜猴細 - </td> - <td> - <select keepdefaultstyle='true' id='selZerenren' runat="server" datatextfield='Name' datavaluefield='Keyid'> - </select> - </td> - <td class="ali03"> - 瀹㈡埛鍗曚綅锛� - </td> - <td> - <input id='txtCustormerName' runat="server" maxlength='50' /> - </td> - - - - - - </tr> - - <tr> - <td class="ali03"> - 鏄惁瀹岀粨锛� - </td> - <td > - <select keepdefaultstyle='true' id='selWanjiestatus' runat="server" > - <option value="">鍏ㄩ儴</option> - <option value="1">瀹岀粨</option> - <option value="0">鏈畬缁�</option> - </select> - </td> - <td colspan="6"> - - <asp:button id="btn_Search" text="鏌ヨ" runat="server" padding="0px" OnClick="btn_Search_Click" /> <input type="button" value='閲嶇疆' onclick='document.body.innerHTML="";window.location=window.location;' /> - - - - </td> - </tr> - - - </table> - </div> - - <%-- <div class="center" style=" margin-left:0px;"> - <div class="left"> - <div class="right"> - <div class="padding_top5 padding_left10"> - 杞﹁締锛� <select keepdefaultstyle='true' id='CarId' runat="server" datatextfield='CarNumber' datavaluefield='Keyid'> </select> <div class="box_tool_line"> - </div> 椹鹃┒鍛橈細 <select keepdefaultstyle='true' id='DriverId' runat="server" datatextfield='Name' datavaluefield='Keyid'> </select> - <div class="box_tool_line"> - </div> - - </div> - </div> - </div> - - </div> - <div class="box_tool_min"> - <div class="center" style=" margin-left:0px;"> - <div class="left"> - <div class="right"> - <div class="padding_top5 padding_left10"> - - <a href="javascript:;" onclick="ToAllAccept2();"><span class="icon_edit">鏂板閫佽揣</span></a> - <div class="box_tool_line"> - </div> - <a href="javascript:;" onclick="ToAllAccept1();"><span class="icon_edit">鍗曟嵁绉讳氦</span></a> - <div class="box_tool_line"> - </div> - <a href="javascript:;" onclick="ToPrintdelev()"><span class="icon_edit">鎵撳嵃</span></a> - <div class="clear"> - </div> - </div> - </div> - </div> - </div> - <div class="clear"> - </div> - </div>--%> - <div clear="fl"> - <table class="tableStyle tableStyleXS" useclick="false" usecheckbox="true" sortmode="false"> - <thead> - <tr> - <th width="25"> - </th> - <th width="25"> - 椤哄簭 - </th> - - <th style="text-align: center;" width="70"> - 鍙嶉鏃堕棿 - </th> - - <th width="60"> - 鍙嶉浜� - </th> - <th width="100"> - 瀹㈡埛鍗曚綅 - </th> - <th style="text-align: center;"width="200"> - 鍙嶉闂 - </th> - - - - <th width="70"> - 璐d换浜� - </th> - <th width="70"> - 杩借矗缃氭 - </th> - - - - - - - <th width="60"> - 鏄惁瀹岀粨 - </th> - - - <th width="100"> - 鎿嶄綔 - </th> - </tr> - </thead> - <tbody> - <asp:repeater id="RepClientList" runat="server"> - <itemtemplate> - <tr> - <td> - <input type="checkbox" name='ckId' value_keyid="<%#Eval("Keyid")%>" value="{ - id:'<%#Eval("Keyid")%>', - DeliverTime: '<%#Eval("DeliverTime", "{0:yyyy-MM-dd}")%>', - BuyerId:'<%#Eval("BuyerId")%>', - CarId:'<%#Eval("CarId")%>', - DriverId:'<%#Eval("DriverId")%>', - }" id='ckBox<%#Container.ItemIndex%>' id='ckBox<%#Container.ItemIndex%>' class='ckBox' /> - </td> - - <td> - <%#Container.ItemIndex + (UCPager1.PageSize *( UCPager1.PageIndex-1)+1)%> - </td> - - <td> - <%#Eval("DeliveredTime", "{0:yyyy-MM-dd}")%> - </td> - - <td> - <%#Eval("DriverName")%> - </td> - - <td> - <%#Eval("CompanyName")%> - </td> - - <td> - <%#Eval("wentifankui")%> - </td> - <td> - <%#Eval("ZerenrenName")%> - </td> - <td> - <%#Eval("Fakuan","{0:F2}")%> - </td> - - - <td> - <%#Eval("WanjiestatusName")%> - </td> - - - - - <td style="text-align: center;"> - - <a href='javascript:void(0)' menu_member_case_id="case_Zhuize" menu_member_case_name="杩借矗" title='鐐瑰嚮淇敼' class='a_under' onclick='Xiugai("<%#Eval("Keyid")%>","<%#Eval("Transferstatus")%>")'> 杩借矗 </a> - - - <a href='javascript:void(0)' menu_member_case_id="case_Wanjie" menu_member_case_name="瀹岀粨" title='鐐瑰嚮瀹岀粨' class='a_under' onclick='wanjie("<%#Eval("Keyid")%>")'> 瀹岀粨 </a> - - - </td> - </tr> - </itemtemplate> - </asp:repeater> - <tr> - <td colspan="7" align="right"> - 鍚堣锛� - </td> - - - <td > - <span id="heji" runat="server" ></span> - </td> - - <td colspan="2"> - - </td> - - - - </tr> - </tbody> - </table> - <uc:ucpager id="UCPager1" runat="server" /> - </div> - </div> - </form> -</body> -</html> - +锘�<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeliverPlanWentiList.aspx.cs" Inherits="CY.WebForm.Pages.business.DeliverPlanWentiList" %> + +<!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/DeliverPlanPaicheZhuyishixiang.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/DeliverPlanWentiAdd.aspx", Title: "闂鍙嶉", Width: 900, Height: 750 }); + } + //杩借矗 + function Xiugai(keyid) { + top.Dialog.open({ URL: "/Pages/business/DeliverPlanWentiEdit.aspx?keyid=" + keyid, 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; + + + + + cks.each( + function () { + var ckVal = $(this).val(); + + var ckValJson = eval('(' + ckVal + ')'); + + ids = ids + ',' + ckValJson.id; + if (ckValJson.Wanjiestatus == "1") { + isCan = false; + } + } + ); + + + if (!isCan) { + alertMsg('璇烽�夋嫨鏈畬缁撶殑璁㈠崟锛�'); + return; + } + else { + if (ids != '') { + ids = ids.substring(1); + + } + + var msg = ('纭鍒犻櫎鍗曟嵁鍚�?') ; + top.Dialog.confirm(msg, function () { + DoAcceptAll(ids); + }); + } + } + + /* +鎵归噺澶勭悊鍙楃悊璁㈠崟 +*/ + var DoAcceptAll = function (orderIds) { + CallServer({ Target: "AcceptOrderAll", ids: orderIds }, 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 danjuyijiao(Keyid, Transferstatus) { + + + top.Dialog.open({ URL: "/Pages/business/DeliverPlanYijiao.aspx?ids=" + Keyid, Title: "鍗曟嵁绉讳氦", Width: 600, Height: 300 }); + } + + //宸ヤ綔鑰冭瘎 + function wanjie(Keyid) { + + var msg = ('纭瀹岀粨鍚�?'); + top.Dialog.confirm(msg, function () { + top.Dialog.open({ URL: "/Pages/business/DeliverPlanWentiEdit.aspx?Target=wanjie&&keyid=" + Keyid, 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) { + 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=3', '_blank', 'height=750,width=900,top=' + t + ',left=' + l + ',toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no'); + } + + /* +鎵撳嵃閫佽揣鍗� +*/ + function ToPrintdelev() { + var DeliveryTime = $("#txtDeliveryTime").val(); + var CarId = $("#selCarId").val(); + var DriverId = $("#selDriverId").val(); + var CustormerName = $("#txtCustormerName").val(); + var BusinessManager = $("#selBusinessManager").val(); + + // OpenWindowByUrl(); + OpenWindowByUrl('/Pages/business/DeliverPlanPrint.aspx?DeliverTime=' + DeliveryTime + '&CarId=' + CarId + '&DriverId=' + DriverId + '&CustormerName=' + CustormerName + '&BusinessManager=' + BusinessManager, '', ''); + } + </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 class="ali03"> + 鍙嶉鏃堕棿锛� + </td> + <td style="width: 215px"> + <input id="txtBeginDate" type="text" runat="server" class='date w80px' maxlength='10' />-<input id="txtEndDate" type="text" runat="server" class='date w80px' maxlength='10' /> + </td> + + <td class="ali03"> + 鍙嶉浜猴細 + </td> + <td> + <select keepdefaultstyle='true' id='selDriverIddo' runat="server" datatextfield='Name' datavaluefield='Keyid'> + </select> + </td> + <td class="ali03"> + 璐d换浜猴細 + </td> + <td> + <select keepdefaultstyle='true' id='selZerenren' runat="server" datatextfield='Name' datavaluefield='Keyid'> + </select> + </td> + <td class="ali03"> + 瀹㈡埛鍗曚綅锛� + </td> + <td> + <input id='txtCustormerName' runat="server" maxlength='50' /> + </td> + + + + + + </tr> + + <tr> + <td class="ali03"> + 鏄惁瀹岀粨锛� + </td> + <td > + <select keepdefaultstyle='true' id='selWanjiestatus' runat="server" > + <option value="">鍏ㄩ儴</option> + <option value="1">瀹岀粨</option> + <option value="0">鏈畬缁�</option> + </select> + </td> + <td colspan="6"> + + <asp:button id="btn_Search" text="鏌ヨ" runat="server" padding="0px" OnClick="btn_Search_Click" /> <input type="button" value='閲嶇疆' onclick='document.body.innerHTML="";window.location=window.location;' /> + + + + </td> + </tr> + + + </table> + </div> + + + <div class="box_tool_min"> + <div class="center" style=" margin-left:0px;"> + <div class="left"> + <div class="right"> + <div class="padding_top5 padding_left10"> + <a href="javascript:;" menu_member_case_id="case_adWentifankui" menu_member_case_name="鏂板闂鍙嶉" onclick="ToAddorder();"><span class="icon_edit">闂鍙嶉</span></a> + <div class="box_tool_line"> + </div> + <a href="javascript:;" menu_member_case_id="case_Piliangdel" menu_member_case_name="鎵归噺鍒犻櫎" onclick="ToAllAccept1();"><span class="icon_edit">鎵归噺鍒犻櫎</span></a> + <div class="clear"> + </div> + </div> + </div> + </div> + </div> + <div class="clear"> + </div> + </div> + <div clear="fl"> + <table class="tableStyle tableStyleXS" useclick="false" usecheckbox="true" sortmode="false"> + <thead> + <tr> + <th width="25"> + </th> + <th width="25"> + 椤哄簭 + </th> + + <th style="text-align: center;" width="70"> + 鍙嶉鏃堕棿 + </th> + + <th width="60"> + 鍙嶉浜� + </th> + <th width="100"> + 瀹㈡埛鍗曚綅 + </th> + <th style="text-align: center;"width="200"> + 闂鎻忚堪 + </th> + + + + <th width="70"> + 璐d换浜� + </th> + <th width="70"> + 杩借矗缃氭 + </th> + + + + + + + <th width="60"> + 鏄惁瀹岀粨 + </th> + + + <th width="100"> + 鎿嶄綔 + </th> + </tr> + </thead> + <tbody> + <asp:repeater id="RepClientList" runat="server"> + <itemtemplate> + <tr> + <td> + <input type="checkbox" name='ckId' value_keyid="<%#Eval("Keyid")%>" value="{ + id:'<%#Eval("Keyid")%>', + DeliverTime: '<%#Eval("DeliverTime", "{0:yyyy-MM-dd}")%>', + BuyerId:'<%#Eval("BuyerId")%>', + CarId:'<%#Eval("CarId")%>', + DriverId:'<%#Eval("DriverId")%>', + Wanjiestatus:'<%#Eval("Wanjiestatus")%>', + }" id='ckBox<%#Container.ItemIndex%>' id='ckBox<%#Container.ItemIndex%>' class='ckBox' /> + </td> + + <td> + <%#Container.ItemIndex + (UCPager1.PageSize *( UCPager1.PageIndex-1)+1)%> + </td> + + <td> + <%#Eval("DeliveredTime", "{0:yyyy-MM-dd}")%> + </td> + + <td> + <%#Eval("DriverName")%> + </td> + + <td> + <%#Eval("CompanyName")%> + </td> + + <td> + <%#Eval("wentifankui")%> + </td> + <td> + <%#Eval("ZerenrenName")%> + </td> + <td> + <%#Eval("Fakuan","{0:F2}")%> + </td> + + + <td> + <%#Eval("WanjiestatusName")%> + </td> + + + + + <td style="text-align: center;"> + + <a href='javascript:void(0)' menu_member_case_id="case_Zhuize" menu_member_case_name="杩借矗" title='鐐瑰嚮淇敼' class='a_under' onclick='Xiugai("<%#Eval("Keyid")%>","<%#Eval("Transferstatus")%>")'> 杩借矗 </a> + + + <a href='javascript:void(0)' menu_member_case_id="case_Wanjie" menu_member_case_name="瀹岀粨" title='鐐瑰嚮瀹岀粨' class='a_under' onclick='wanjie("<%#Eval("Keyid")%>")'> 瀹岀粨 </a> + + + </td> + </tr> + </itemtemplate> + </asp:repeater> + <tr> + <td colspan="7" align="right"> + 鍚堣锛� + </td> + + + <td > + <span id="heji" runat="server" ></span> + </td> + + <td colspan="2"> + + </td> + + + + </tr> + </tbody> + </table> + <uc:ucpager id="UCPager1" runat="server" /> + </div> + </div> + </form> +</body> +</html> + -- Gitblit v1.9.1