2025-05-14 | username@email.com | ![]() |
2025-05-14 | username@email.com | ![]() |
CY_ECommercePlatform/CY.BLL/OA/OA_DeliverPlanPaicheBLL.cs
@@ -250,7 +250,7 @@ public IEnumerable<OA_DeliverPlan> SelectModelPageWenti(Pagination pa, Guid FirmId, string DeliveredTimeStart, string DeliveredTimeEnd, string DriverId, string Zerenren , string CustormerName , string Wanjiestatus ) { string Condition = " and od.FirmId ='" + FirmId + "' and od.shifouDelivery = 1 and od.DeliveredTime is not null and od.wentifankui is not null and od.wentifankui!='' "; string Condition = " and od.FirmId ='" + FirmId + "' and od.DeliveredTime is not null and od.wentifankui is not null and od.wentifankui!='' "; // and od.shifouDelivery = 1 string sort = "DeliveredTime desc "; CY_ECommercePlatform/CY.WebForm/CY.WebForm.csproj
@@ -1888,6 +1888,7 @@ <Content Include="Pages\business\Baozhengjinfukuan.aspx" /> <Content Include="Pages\business\BaozhengjinCuishou.aspx" /> <Content Include="Pages\business\DeliverPlanDakaList.aspx" /> <Content Include="Pages\business\DeliverPlanWentiAdd.aspx" /> <Content Include="Pages\business\DeliverPlanWentiEdit.aspx" /> <Content Include="Pages\business\DeliverPlanPaicheEdit.aspx" /> <Content Include="Pages\business\DeliverPlanFujianShow.aspx" /> @@ -3382,6 +3383,13 @@ <Compile Include="Pages\business\DeliverPlanDakaList.aspx.designer.cs"> <DependentUpon>DeliverPlanDakaList.aspx</DependentUpon> </Compile> <Compile Include="Pages\business\DeliverPlanWentiAdd.aspx.cs"> <DependentUpon>DeliverPlanWentiAdd.aspx</DependentUpon> <SubType>ASPXCodeBehind</SubType> </Compile> <Compile Include="Pages\business\DeliverPlanWentiAdd.aspx.designer.cs"> <DependentUpon>DeliverPlanWentiAdd.aspx</DependentUpon> </Compile> <Compile Include="Pages\business\DeliverPlanWentiEdit.aspx.cs"> <DependentUpon>DeliverPlanWentiEdit.aspx</DependentUpon> <SubType>ASPXCodeBehind</SubType> CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanWentiAdd.aspx
New file @@ -0,0 +1,199 @@ <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeliverPlanWentiAdd.aspx.cs" Inherits="CY.WebForm.Pages.business.DeliverPlanWentiAdd" %> <!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" /> <!--前台页面start--> <link rel="stylesheet" type="text/css" href="../../Styles/base.css" /> <link href="../../Styles/changes.css" rel="stylesheet" type="text/css" /> <link href="../../Styles/ParticularWQJ.css" rel="stylesheet" type="text/css" /> <!--前台页面end--> <script type="text/javascript" language="javascript"> function ReBindClients() { $.ajax({ url: "/Pages/business/OrderEdit.aspx", type: "POST", dataType: "html", data: { Target: "ReBindClients"}, global: false, cache: false, async: false, success: function (data) { $("#selBuyerId").html(data); } }); } function custormerChange(sel) { CallServer({ Target: "GetCommunication", id: sel.value }, function (data, textStatus) { var jobj = false; try { jobj = eval('[' + data + ']')[0]; } catch (ex) { global.DealDataException(ex); return; } if (jobj) { /* document.getElementById('txtLianxiren').value = jobj.BusinessManagers;*/ //document.getElementById('txtDizhi').value = jobj.Province + jobj.City + jobj.County + jobj.DetailedAddress ; //document.getElementById('txtDianhua').value = jobj.CompanyPhone; document.getElementById('txtCompanyName').value = jobj.CompanyName; } else; }); } //为Select新增过滤功能 function SelectAddSearch() { $("select[SelInputHtml='True']").each(function (i, v) { $(this).unbind("blur"); var old = $(this).html(); var oldObject = $(this).clone(); var sign = "selectS" + i; $(v).attr("sign", sign); var inputClass = "input_" + sign; var html = "<span style='margin-left:10px'>过滤:</span><input type='text' class='" + inputClass + "' style='width:80px;height:18px;line-height:18px;'/>"; $(v).after(html); $("." + inputClass).blur(function () { var nowval = $(this).val().trim(); var output = ""; if (nowval == "" || nowval == null) { output = old; } else { output += "<option value=''>请选择</option>"; var valueArr = new Array(); oldObject.find("option").each(function (ii, vv) { var value = $.trim($(vv).attr("value")); var text = $.trim($(vv).text()); if (text.indexOf(nowval) >= 0) valueArr.push(value + "|||" + text); }); for (var ss in valueArr) { var s = valueArr[ss]; if (s.split("|||").length == 2) { var value1 = s.split("|||")[0]; var text1 = s.split("|||")[1]; output += "<option value='" + value1 + "'>" + text1 + "</option>"; } } } $(v).html(output); }); }); } window.FastKeyDistinctived = true; //例外快捷键(不使用通用快捷键) var keyDownHook = new KeyBehaviorHook('keydown'); keyDownHook.Regist(window.Keys.S, "ClickElement('btnSave')", window.WithKey.Ctrl); //Ctrl+s 保存 keyDownHook.Regist(window.Keys.Enter, "ClickElement('btnSave')", window.WithKey.Ctrl); //Ctrl+Enter 保存 keyDownHook.Regist(window.Keys.R, "ClickElement('btnReset')", window.WithKey.Ctrl); //Ctrl+R 重置 keyDownHook.Regist(window.Keys.Q, "ClickElement('btnBackList')", window.WithKey.Ctrl); //Ctrl+Q 退出(Quit) $(function () { SelectAddSearch(); keyDownHook.Binding(); global.SetReqMsg(); }); </script> </head> <body style='padding: 0; margin: 0;'> <form id="form1" runat="server" style='padding: 0; margin: 0;' class='form2'> <table class="table2" id="tbBasic"> <thead> <tr> <th colspan="8"> 基本信息 </th> </tr> </thead> <tr style=" height:1px;"> <td style="border:none;width: 100px;"> </td> <td style="border:none; width:300px;"> </td> <td style="border:none;width: 100px;"> </td> <td style="border:none;"> </td> </tr> <tr> <td align="right"> 反馈人: </td> <td align="left" colspan="3"> <select keepdefaultstyle='true' id='selFankuiren' runat="server" datatextfield='Name' datavaluefield='Keyid' class="Sreq"> </select> </td> </tr> <tr> <td align="right"> 客户单位: </td> <td align="left"> <span id='spnCustormerControl'><select id='selBuyerId' runat="server" keepdefaultstyle='true' datavaluefield='MemberId' datatextfield='CompanyName' onchange='custormerChange(this)' selinputhtml="True" sign="" style=" width:123px;"></select> <%--<input type="button" value='新增' keepdefaultstyle='true' onclick="top.Dialog.open({ URL: '/Pages/business/CorporateClientsEdit.aspx', Title: '新增客户', Width: 900, Height: 680});" />--%> </span> </td> <td align="right"> 客户单位: </td> <td align="left"> <input id='txtCompanyName' runat="server" maxlength="200" class='Sreq' style="width:200px;" /> </td> </tr> <tr> <td style="width: 100px; text-align:right;"> 问题描述: </td> <td style=" text-align:left;" colspan="3"> <textarea id="txtRemark" name="txtRemark" runat="server" style="width: 692px; height: 30px;" maxlength="200" class="req" ></textarea> </td> </tr> <tr> <td class="contentLeft" colspan="4" style=" padding-left:300px;"> <asp:Button ID="btnSaves" runat="server" Text="保存反馈" OnClick="btnSave_ServerClick" /> </td> </tr> </table> </form> </body> <script type="text/javascript" language="javascript"> </script> </html> CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanWentiAdd.aspx.cs
New file @@ -0,0 +1,302 @@ /** * OrderEdit.aspx.cs * * 功 能: 订单列表 * 类 名: OrderEdit * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── * V0.01 2013-5-8 13:55 吴崎均 初版 * V0.02 2013-5-8 15:47 吴崎均 实现下拉数据绑定与数据级联 * V0.03 2013-5-8 18:00 吴崎均 初步完成新增线下订单(未调试) * */ using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CY.BLL.Sys; using CY.BLL; using CY.Model; using CY.Infrastructure.Common; using CY.WebForm.Pages.common; using CY.BLL.EC; using CY.Model.Inquiry; namespace CY.WebForm.Pages.business { public partial class DeliverPlanWentiAdd : BasePage { public int Orderid = 0; public int printNum = 0; OA_CarManageBll _OA_CarManageBll = null; OA_DeliverPlanPaicheBLL oA_DeliverPlanBLL = null; OA_StaffBLL _OA_StaffBLL = null; //初始化 public DeliverPlanWentiAdd() { _OA_CarManageBll = new OA_CarManageBll(); oA_DeliverPlanBLL = new OA_DeliverPlanPaicheBLL(); _OA_StaffBLL = new OA_StaffBLL(); } /// <summary> /// 页面加载事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { try { switch (Request["Target"]) { case "GetCommunication": LoadCommunication(); break; case "ReBindClients": Response.Write(ReLoadClients()); break; default: Page_Load_Default(); return; } } catch (Exception ex) { PAGEHandleException(ex); Response.Clear(); //Response.Write("-1"); Response.Write(ex.Message); } Response.End(); } /// <summary> /// 默认执行方法 /// </summary> private void Page_Load_Default() { if (!IsPostBack && !IsCallback) { Sys_DictionaryBLL _sys_DictionaryBLL = new Sys_DictionaryBLL();//字典业务逻辑操作类对象 SysInquiry_PrintingTypeBLL _sysInquiry_PrintingTypeBLL = new SysInquiry_PrintingTypeBLL();//印刷业务类型业务逻辑操作类对象 OA_CorporateClientsBLL _oA_CorporateClientsBLL = new OA_CorporateClientsBLL(); EC_OrderBasicBLL _eC_OrderBasicBLL = new EC_OrderBasicBLL(); IList<OA_CorporateClients> corporateClients = _oA_CorporateClientsBLL.SelectListByFirmId(CurrentUser.MemberId) as IList<OA_CorporateClients>; if (null != corporateClients) { corporateClients.Where(cc => CurrentUser.MemberId.Equals(cc.MemberId) && corporateClients.Remove(cc)); } this.selBuyerId.DataSource = corporateClients; this.selBuyerId.DataBind(); this.selBuyerId.Items.Insert(0, new ListItem("请选择", "")); var oA_Staffs = _OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId,false,false); this.selFankuiren.DataSource = oA_Staffs; this.selFankuiren.DataTextField = "Name"; this.selFankuiren.DataValueField = "Keyid"; this.selFankuiren.DataBind(); this.selFankuiren.Items.Insert(0, new ListItem("请选择", "")); this.selFankuiren.Value = CurrentUser.StaffId.Value.ToString(); } } /// <summary> /// 保存点击事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnSave_ServerClick(object sender, EventArgs e) { if (SaveOrder()) { //操作成功 JavaScript.MessageBox("操作成功", this, true,true); } else { //操作失败 JavaScript.MessageBox("操作失败", this); } } /// <summary> /// 加载客户联系方式 /// </summary> private void LoadCommunication() { Response.Clear(); string id = Request["id"]; if (string.IsNullOrEmpty(id)) { Response.Write("-2"); return; } OA_CorporateClientsBLL _oA_CorporateClientsBLL = new OA_CorporateClientsBLL(); OA_CorporateClients m_OA_CorporateClients = _oA_CorporateClientsBLL.SelectModelByFirmIdandMemberId(CurrentUser.MemberId, id.ToGuid2()); OA_CustomerCommunications _oA_CustomerCommunications = _oA_CorporateClientsBLL.GetModel_CustomerCommunications(m_OA_CorporateClients.Keyid); _oA_CustomerCommunications.DegreeImportanId = m_OA_CorporateClients.DegreeImportanId; _oA_CustomerCommunications.AccountManagerId = m_OA_CorporateClients.AccountManagerId; _oA_CustomerCommunications.BusinessManagerId = m_OA_CorporateClients.BusinessManagerId; _oA_CustomerCommunications.CompanyName = m_OA_CorporateClients.CompanyName; Response.Write(null == _oA_CustomerCommunications ? "" : JsonHelper.GetJsonStringByObject(_oA_CustomerCommunications)); } /// <summary> /// 保存订单 /// </summary> private bool SaveOrder() { bool isWin = false; try { var keyid = Request["keyid"]; EC_OrderBasicBLL _eC_OrderBasicBLL = new EC_OrderBasicBLL(); OA_CorporateClientsBLL _oA_CorporateClientsBLL = new OA_CorporateClientsBLL(); string SellerOrderId = ""; OA_DeliverPlan oA_DeliverPlan = new OA_DeliverPlan(); oA_DeliverPlan.Lianxiren = ""; oA_DeliverPlan.Keyid = Guid.NewGuid(); oA_DeliverPlan.FirmId = CurrentUser.MemberId; oA_DeliverPlan.DeliverTime = DateTime.Now; oA_DeliverPlan.DeliveredTime = oA_DeliverPlan.DeliverTime; if (string.IsNullOrWhiteSpace(this.selBuyerId.Value)) { oA_DeliverPlan.BuyerId = Guid.Empty; oA_DeliverPlan.BusinessManagerId = 0; oA_DeliverPlan.Biddingcompany = 0; } else { oA_DeliverPlan.BuyerId = this.selBuyerId.Value.ToGuid2(); OA_CorporateClients oA_CorporateClients = _oA_CorporateClientsBLL.SelectModelByFirmIdandMemberId(CurrentUser.MemberId, this.selBuyerId.Value.ToGuid2()); oA_DeliverPlan.BusinessManagerId = oA_CorporateClients.BusinessManagerId ?? 0; oA_DeliverPlan.Biddingcompany = oA_CorporateClients.Biddingcompany ?? 0; } //oA_DeliverPlan.DeliveredTime = null; oA_DeliverPlan.Zhuyishixiang = ""; oA_DeliverPlan.Gongzuokaoping = ""; oA_DeliverPlan.CarId = 0; oA_DeliverPlan.DriverId = this.selFankuiren.Value.ToInt32(); oA_DeliverPlan.Transferstatus = 1; oA_DeliverPlan.TransfersTime = null; oA_DeliverPlan.Sort = 1; oA_DeliverPlan.Creater = CurrentUser.TrueMemberId; oA_DeliverPlan.CreateTime = DateTime.Now; oA_DeliverPlan.Updater = CurrentUser.TrueMemberId; oA_DeliverPlan.LastUpdateTime = DateTime.Now; oA_DeliverPlan.SellerOrderId = SellerOrderId; oA_DeliverPlan.Dianhua = ""; oA_DeliverPlan.Dizhi = ""; oA_DeliverPlan.wentifankui = this.txtRemark.Value; oA_DeliverPlan.Remark = ""; oA_DeliverPlan.shifouDelivery = 0; oA_DeliverPlan.CompanyName = this.txtCompanyName.Value; isWin = oA_DeliverPlanBLL.InsertModel(oA_DeliverPlan); } catch (Exception ex) { isWin = false; } return isWin; } /// <summary> /// 重新加载客户列表 /// </summary> /// <returns></returns> private string ReLoadClients() { try { string res = "<option value=''>请选择</option>"; OA_CorporateClientsBLL bll_OA_CorporateClientsBLL = new OA_CorporateClientsBLL(); IList<OA_CorporateClients> m_OA_CorporateClientsList = bll_OA_CorporateClientsBLL.SelectListByFirmId(CurrentUser.MemberId) as IList<OA_CorporateClients>; if (null != m_OA_CorporateClientsList) { m_OA_CorporateClientsList.Where(cc => CurrentUser.MemberId.Equals(cc.MemberId) && m_OA_CorporateClientsList.Remove(cc)); if (m_OA_CorporateClientsList.Count > 0) { foreach (var m_OA_CorporateClients in m_OA_CorporateClientsList) { res = res + ("<option value='" + m_OA_CorporateClients.MemberId + "'>" + m_OA_CorporateClients.CompanyName + "</option>"); } } } return res; } catch (Exception ex) { PAGEHandleException(ex); return ""; } } } } CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanWentiAdd.aspx.designer.cs
New file @@ -0,0 +1,89 @@ //------------------------------------------------------------------------------ // <自动生成> // 此代码由工具生成。 // // 对此文件的更改可能导致不正确的行为,如果 // 重新生成代码,则所做更改将丢失。 // </自动生成> //------------------------------------------------------------------------------ namespace CY.WebForm.Pages.business { public partial class DeliverPlanWentiAdd { /// <summary> /// Head1 控件。 /// </summary> /// <remarks> /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// </remarks> protected global::System.Web.UI.HtmlControls.HtmlHead Head1; /// <summary> /// CMSHead1 控件。 /// </summary> /// <remarks> /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// </remarks> protected global::CY.WebForm.Pages.common.CMSHead CMSHead1; /// <summary> /// form1 控件。 /// </summary> /// <remarks> /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// </remarks> protected global::System.Web.UI.HtmlControls.HtmlForm form1; /// <summary> /// selFankuiren 控件。 /// </summary> /// <remarks> /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// </remarks> protected global::System.Web.UI.HtmlControls.HtmlSelect selFankuiren; /// <summary> /// selBuyerId 控件。 /// </summary> /// <remarks> /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// </remarks> protected global::System.Web.UI.HtmlControls.HtmlSelect selBuyerId; /// <summary> /// txtCompanyName 控件。 /// </summary> /// <remarks> /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// </remarks> protected global::System.Web.UI.HtmlControls.HtmlInputText txtCompanyName; /// <summary> /// txtRemark 控件。 /// </summary> /// <remarks> /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// </remarks> protected global::System.Web.UI.HtmlControls.HtmlTextArea txtRemark; /// <summary> /// btnSaves 控件。 /// </summary> /// <remarks> /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// </remarks> protected global::System.Web.UI.WebControls.Button btnSaves; } } CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanWentiEdit.aspx
@@ -135,7 +135,7 @@ <tr> <td align="right"> 反馈问题: 问题描述: </td> <td align="left" colspan="3"> <span id="spnwentifankui" runat="server" > </span> 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"> 责任人: </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"> 责任人 </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"> 责任人: </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"> 责任人 </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> CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanWentiList.aspx.cs
@@ -54,7 +54,7 @@ case "wanjie": AcceptAll(); break; case "AcceptOrderAll2": case "AcceptOrderAll": AcceptAll2(); break; default: @@ -77,7 +77,7 @@ //this.selDriverId.Items.Insert(0, new ListItem("全部", "")); this.selDriverIddo.DataSource = bll_OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, null, null).Where(x => x.BF_IsDriver == true);//.Where(x => x.SM_Post.Equals("驾驶员")); this.selDriverIddo.DataSource = bll_OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, null, null);//.Where(x => x.BF_IsDriver == true); this.selDriverIddo.DataTextField = "Name"; this.selDriverIddo.DataValueField = "Keyid"; this.selDriverIddo.DataBind(); @@ -199,27 +199,17 @@ public void AcceptAll2() { Response.Clear(); int? carid = Request["CarId"].ToInt32(); //this.CarId.Value.ToGuid2(); int? driverId = Request["DriverId"].ToInt32(); //this.DriverId.Value.ToGuid2(); string ids = string.Empty; string DeliverTimes = string.Empty; string BuyerIds = string.Empty; if (Request["ids"] != null) { ids = Request["ids"].ToString(); } if (Request["DeliverTimes"] != null) { DeliverTimes = Request["DeliverTimes"].ToString(); } if (Request["BuyerIds"] != null) { BuyerIds = Request["BuyerIds"].ToString(); } string[] idsArray = ids.Split(','); string[] DeliverTimesArray = DeliverTimes.Split(','); string[] BuyerIdsArray = BuyerIds.Split(','); if (idsArray != null && idsArray.Length > 0) { @@ -227,33 +217,13 @@ { bool result = true; OA_DeliverPlan oA_DeliverPlan = _OA_DeliverPlanPaicheBLL.GetModelByKeyid(idsArray[i].ToGuid2(), BuyerIdsArray[i].ToGuid2(), DeliverTimesArray[i].ToDateTime2()); if (oA_DeliverPlan == null) OA_DeliverPlan oA_DeliverPlan = _OA_DeliverPlanPaicheBLL.GetModelByKeyid(idsArray[i].ToGuid2(), null, null); if (oA_DeliverPlan != null) { oA_DeliverPlan = new OA_DeliverPlan(); oA_DeliverPlan.Keyid = Guid.NewGuid(); oA_DeliverPlan.FirmId = CurrentUser.MemberId; oA_DeliverPlan.DeliverTime = DeliverTimesArray[i].ToDateTime2(); oA_DeliverPlan.BuyerId = BuyerIdsArray[i].ToGuid2(); oA_DeliverPlan.DeliveredTime = null; oA_DeliverPlan.Zhuyishixiang = ""; oA_DeliverPlan.Gongzuokaoping = ""; oA_DeliverPlan.CarId = carid; oA_DeliverPlan.DriverId = driverId; oA_DeliverPlan.Transferstatus = 1; oA_DeliverPlan.TransfersTime = null; oA_DeliverPlan.Sort = 1; oA_DeliverPlan.Creater = CurrentUser.TrueMemberId; oA_DeliverPlan.CreateTime = DateTime.Now; oA_DeliverPlan.Updater = CurrentUser.TrueMemberId; oA_DeliverPlan.LastUpdateTime = DateTime.Now; oA_DeliverPlan.wentifankui = ""; result = _OA_DeliverPlanPaicheBLL.InsertModel(oA_DeliverPlan); } else { oA_DeliverPlan.CarId = carid; oA_DeliverPlan.DriverId = driverId; oA_DeliverPlan.LastUpdateTime = DateTime.Now; oA_DeliverPlan.Updater = CurrentUser.TrueMemberId; result = _OA_DeliverPlanPaicheBLL.UpdateModel(oA_DeliverPlan); } if (!result) CY_ECommercePlatform/CY.WebForm/Pages/business/OrderList.aspx
@@ -12,6 +12,12 @@ dialog.open({ URL: "/Pages/business/EvaluationSeller.aspx?orderid=" + orderid, Title: "卖家评价", Width: 580, Height: 300 }); } //新增问题反馈 function ToAddorder() { top.Dialog.open({ URL: "/Pages/business/DeliverPlanWentiAdd.aspx", Title: "问题反馈", Width: 900, Height: 750 }); } function OpenComplainan(orderId, orderCode, firmId) { var url = "/Pages/business/ComplainanEdit.aspx?orderId=" + orderId; url += "&orderCode=" + orderCode; @@ -396,6 +402,10 @@ <%-- <div class="box_tool_line"> </div> <a href="javascript:;" onclick="ToWaixieFukuan()"><span class="icon_edit">外协付款申请</span></a>--%> <div class="box_tool_line"> </div> <a href="javascript:;" menu_member_case_id="case_adWentifankui" menu_member_case_name="新增问题反馈" onclick="ToAddorder();"><span class="icon_edit">问题反馈</span></a> <div class="clear"> </div> </div> CY_ECommercePlatform/CY.WebForm/Pages/business/SHejiOrderEdit.aspx.cs
@@ -554,6 +554,8 @@ EC_OrderBasic eC_OrderBasic = new EC_OrderBasic();//订单主要信息 OA_StaffBLL oA_StaffBLL = new BLL.OA_StaffBLL(); OA_ShejijijianBLL bll_OA_ShejijijianBLLBLL = new OA_ShejijijianBLL(); CY.BLL.Inquiry.PaperSizeDetailBLL _paperSizeDetailBLL = new CY.BLL.Inquiry.PaperSizeDetailBLL();//查询纸张尺寸 EC_OrderPrintParameter orderPrintParameter = null; InquiryCommonModel _inquiryCommonModel = null; eC_OrderExtend.Keyid = MyConvert.ConvertToInt32(txtKeyid.Value); @@ -642,6 +644,82 @@ var PrintTypeId = MyConvert.ConvertToInt32(Request["selPrintTypes"]); #region 绑定设计信息 封面的数值就是1 内页的数量需要计算所有的内页页码的总和 //系统表格中工价为16开工价;32开下浮30%;32开以下减半;8开上浮30%,4开以上上浮1半 仅限于:黑白印件、书刊、画册、DM但、报纸5种,其他不管 decimal gongjia = new decimal(1); if(PrintTypeId == 29 || PrintTypeId == 6 || PrintTypeId == 15 || PrintTypeId == 14 || PrintTypeId == 7) { var paperSize = Request["paperSize"]; if (paperSize != "-1") { var paperSizeDetail = _paperSizeDetailBLL.GetPaperSizeDetail(PrintTypeId.Value, paperSize.ToInt32().Value); if (paperSizeDetail != null) { if (paperSizeDetail.Name.IndexOf("48开") >= 0 || paperSizeDetail.Name.IndexOf("64开") >= 0) { gongjia = new decimal(0.5); } else if (paperSizeDetail.Name.IndexOf("32开") >= 0) { gongjia = new decimal(0.7); } else if (paperSizeDetail.Name.IndexOf("16开") >= 0) { gongjia = new decimal(1); } else if (paperSizeDetail.Name.IndexOf("8开") >= 0 || paperSizeDetail.Name.IndexOf("6开") >= 0) { gongjia = new decimal(1.3); } else if(paperSizeDetail.Name.IndexOf("4开") >= 0 || paperSizeDetail.Name.IndexOf("3开") >= 0 || paperSizeDetail.Name.IndexOf("2开") >= 0 || paperSizeDetail.Name.IndexOf("全开") >= 0) { gongjia = new decimal(1.5); } } } else { decimal sikai = 420 * 570; if (PrintTypeId == 29) { sikai = 380 * 680; } decimal bakai = 420 * 285; decimal sanshierkai = 130 * 185; var txtFirstSize = Request["txtFirstSize"].ToDecimal2()??0; var txtSecondSize = Request["txtSecondSize"].ToDecimal2() ?? 0; var chicun = txtFirstSize * txtSecondSize; if (chicun>= sikai) { gongjia = new decimal(1.5); } else if (chicun >= bakai) { gongjia = new decimal(1.3); } else if (chicun == sanshierkai) { gongjia = new decimal(0.7); } else if (chicun < sanshierkai) { gongjia = new decimal(0.5); } } } if (PrintTypeId == 29) { eC_OrderExtend.Shejicount = 1;// Request["printCount"].ToString().ToInt32(); @@ -660,7 +738,7 @@ var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(),"", eC_OrderExtend.Shejileixing.ToString(),null).FirstOrDefault(); if (shejijijian != null) { eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney; eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney * gongjia; if (eC_OrderExtend.ShejiUnitPrice.HasValue) { eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount; @@ -683,7 +761,7 @@ var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "1", eC_OrderExtend.Shejileixing.ToString(), null).FirstOrDefault(); if (shejijijian != null) { eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney; eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney * gongjia; if (eC_OrderExtend.ShejiUnitPrice.HasValue) { eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount; @@ -733,7 +811,7 @@ var shejijijian1 = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "2", eC_OrderExtend.Shejileixingneiye.ToString(), null).FirstOrDefault(); if (shejijijian1 != null) { eC_OrderExtend.ShejiUnitPriceneiye = shejijijian1.Shejilemoney; eC_OrderExtend.ShejiUnitPriceneiye = shejijijian1.Shejilemoney * gongjia; if (eC_OrderExtend.ShejiUnitPriceneiye.HasValue) { eC_OrderExtend.ShejiSumPriceneiye = eC_OrderExtend.ShejiUnitPriceneiye * eC_OrderExtend.Shejicountneiye; @@ -770,7 +848,7 @@ var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "1", eC_OrderExtend.Shejileixing.ToString(), null).FirstOrDefault(); if (shejijijian != null) { eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney; eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney * gongjia; if (eC_OrderExtend.ShejiUnitPrice.HasValue) { eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount; @@ -818,7 +896,7 @@ var shejijijian1 = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "2", eC_OrderExtend.Shejileixingneiye.ToString(), null).FirstOrDefault(); if (shejijijian1 != null) { eC_OrderExtend.ShejiUnitPriceneiye = shejijijian1.Shejilemoney; eC_OrderExtend.ShejiUnitPriceneiye = shejijijian1.Shejilemoney * gongjia; if (eC_OrderExtend.ShejiUnitPriceneiye.HasValue) { eC_OrderExtend.ShejiSumPriceneiye = eC_OrderExtend.ShejiUnitPriceneiye * eC_OrderExtend.Shejicountneiye; @@ -858,7 +936,7 @@ var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "", eC_OrderExtend.Shejileixing.ToString(), null).FirstOrDefault(); if (shejijijian != null) { eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney; eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney * gongjia; if (eC_OrderExtend.ShejiUnitPrice.HasValue) { eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount; @@ -930,7 +1008,7 @@ var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "", eC_OrderExtend.Shejileixing.ToString(), null).FirstOrDefault(); if (shejijijian != null) { eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney; eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney * gongjia; if (eC_OrderExtend.ShejiUnitPrice.HasValue) { eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount; CY_ECommercePlatform/CY.WebForm/Pages/work/Adm_zhanghaomimaAdd.aspx
@@ -45,10 +45,10 @@ <tr> <td class="ali03"> 产品项目: 项目: </td> <td > <input id="txtchanpinxiangmu" type="text" class="w700px req" runat="server" maxlength="100" msg="请填写产品项目"/> <input id="txtchanpinxiangmu" type="text" class="w700px req" runat="server" maxlength="100" msg="请填写项目"/> </td> </tr> <tr> CY_ECommercePlatform/CY.WebForm/Pages/work/Adm_zhanghaomimaDetail.aspx
@@ -27,7 +27,7 @@ <tr> <td class="ali03"> 产品项目: 项目: </td> <td > CY_ECommercePlatform/CY.WebForm/Pages/work/Adm_zhanghaomimaList.aspx
@@ -71,7 +71,7 @@ </select> </td> <td class="ali03"> 产品项目: 项目: </td> <td> <input type="text" id="txtchanpinxiangmu" runat="server" class="w120px" /> @@ -115,7 +115,7 @@ 类别 </th> <th style="text-align: center"> 产品项目 项目 </th> <th style="text-align: center"> 账号