From f6043f17982667a9e028ff7aa5cd7c2f8318a791 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期五, 08 八月 2025 14:07:40 +0800 Subject: [PATCH] 20250807 设计订单提成最新修改 试卷按照p数 自动合集p数、根据p数算提成 --- CY_ECommercePlatform/CY.WebForm/Pages/business/SHejiOrderEdit.aspx.cs | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 100 insertions(+), 5 deletions(-) diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/SHejiOrderEdit.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/business/SHejiOrderEdit.aspx.cs index 1b6b2cd..66d6d13 100644 --- a/CY_ECommercePlatform/CY.WebForm/Pages/business/SHejiOrderEdit.aspx.cs +++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/SHejiOrderEdit.aspx.cs @@ -304,10 +304,10 @@ //this.rptCustormer.DataSource = corporateClients; //this.rptCustormer.DataBind(); - this.selPrintTypes.DataSource = _sysInquiry_PrintingTypeBLL.SelectUsedModlesByFirm(CurrentUser.MemberId).OrderBy(x=>x.orderNumHome); + this.selPrintTypes.DataSource = _sysInquiry_PrintingTypeBLL.SelectUsedModlesByFirm(CurrentUser.MemberId).Where(x=> x.KeyId != 37 && x.KeyId != 31).OrderBy(x=>x.orderNumHome); this.selPrintTypes.DataBind(); this.selPrintTypes.Items.Insert(0, new ListItem("璇烽�夋嫨", "")); - this.selPrintTypes.Items.Add(new ListItem("鍏朵粬", "-1")); + //this.selPrintTypes.Items.Add(new ListItem("鍏朵粬", "-1")); this.selExigencyDegree.DataSource = _sys_DictionaryBLL.GetDataByType("OA_绱ф�ョ▼搴�"); this.selExigencyDegree.DataBind(); @@ -330,64 +330,159 @@ this.selCustormerManagers.DataBind(); this.selCustormerManagers.Items.Insert(0, new ListItem("鏃�", "0")); - + var ToUpSetData = Request["ToUpSetData"]; var oA_Staffs = oA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, null, null).Where(x => x.DepartmentId == 13); this.SelShejirenyuan29.DataSource = oA_Staffs; this.SelShejirenyuan29.DataBind(); + if (string.IsNullOrEmpty(ToUpSetData)) + { + var StaffId = CurrentUser.StaffId; + this.SelShejirenyuan29.Value = StaffId.ToString(); + } this.SelShejirenyuan6.DataSource = oA_Staffs; this.SelShejirenyuan6.DataBind(); + if (string.IsNullOrEmpty(ToUpSetData)) + { + var StaffId = CurrentUser.StaffId; + this.SelShejirenyuan6.Value = StaffId.ToString(); + } this.SelShejirenyuanneiye6.DataSource = oA_Staffs; this.SelShejirenyuanneiye6.DataBind(); + if (string.IsNullOrEmpty(ToUpSetData)) + { + var StaffId = CurrentUser.StaffId; + this.SelShejirenyuanneiye6.Value = StaffId.ToString(); + } this.SelShejirenyuan15.DataSource = oA_Staffs; this.SelShejirenyuan15.DataBind(); + if (string.IsNullOrEmpty(ToUpSetData)) + { + var StaffId = CurrentUser.StaffId; + this.SelShejirenyuan15.Value = StaffId.ToString(); + } this.SelShejirenyuanneiye15.DataSource = oA_Staffs; this.SelShejirenyuanneiye15.DataBind(); + if (string.IsNullOrEmpty(ToUpSetData)) + { + var StaffId = CurrentUser.StaffId; + this.SelShejirenyuanneiye15.Value = StaffId.ToString(); + } this.SelShejirenyuan14.DataSource = oA_Staffs; this.SelShejirenyuan14.DataBind(); + if (string.IsNullOrEmpty(ToUpSetData)) + { + var StaffId = CurrentUser.StaffId; + this.SelShejirenyuan14.Value = StaffId.ToString(); + } this.SelShejirenyuan27.DataSource = oA_Staffs; this.SelShejirenyuan27.DataBind(); + if (string.IsNullOrEmpty(ToUpSetData)) + { + var StaffId = CurrentUser.StaffId; + this.SelShejirenyuan27.Value = StaffId.ToString(); + } this.SelShejirenyuan21.DataSource = oA_Staffs; this.SelShejirenyuan21.DataBind(); + if (string.IsNullOrEmpty(ToUpSetData)) + { + var StaffId = CurrentUser.StaffId; + this.SelShejirenyuan21.Value = StaffId.ToString(); + } this.SelShejirenyuan7.DataSource = oA_Staffs; this.SelShejirenyuan7.DataBind(); + if (string.IsNullOrEmpty(ToUpSetData)) + { + var StaffId = CurrentUser.StaffId; + this.SelShejirenyuan7.Value = StaffId.ToString(); + } this.SelShejirenyuan38.DataSource = oA_Staffs; this.SelShejirenyuan38.DataBind(); + if (string.IsNullOrEmpty(ToUpSetData)) + { + var StaffId = CurrentUser.StaffId; + this.SelShejirenyuan38.Value = StaffId.ToString(); + } this.SelShejirenyuanneiye38.DataSource = oA_Staffs; this.SelShejirenyuanneiye38.DataBind(); + if (string.IsNullOrEmpty(ToUpSetData)) + { + var StaffId = CurrentUser.StaffId; + this.SelShejirenyuanneiye38.Value = StaffId.ToString(); + } this.SelShejirenyuan20.DataSource = oA_Staffs; this.SelShejirenyuan20.DataBind(); + if (string.IsNullOrEmpty(ToUpSetData)) + { + var StaffId = CurrentUser.StaffId; + this.SelShejirenyuan20.Value = StaffId.ToString(); + } this.SelShejirenyuan16.DataSource = oA_Staffs; this.SelShejirenyuan16.DataBind(); + if (string.IsNullOrEmpty(ToUpSetData)) + { + var StaffId = CurrentUser.StaffId; + this.SelShejirenyuan16.Value = StaffId.ToString(); + } this.SelShejirenyuan22.DataSource = oA_Staffs; this.SelShejirenyuan22.DataBind(); + if (string.IsNullOrEmpty(ToUpSetData)) + { + var StaffId = CurrentUser.StaffId; + this.SelShejirenyuan22.Value = StaffId.ToString(); + } this.SelShejirenyuan39.DataSource = oA_Staffs; this.SelShejirenyuan39.DataBind(); + if (string.IsNullOrEmpty(ToUpSetData)) + { + var StaffId = CurrentUser.StaffId; + this.SelShejirenyuan39.Value = StaffId.ToString(); + } this.SelShejirenyuan23.DataSource = oA_Staffs; this.SelShejirenyuan23.DataBind(); + if (string.IsNullOrEmpty(ToUpSetData)) + { + var StaffId = CurrentUser.StaffId; + this.SelShejirenyuan23.Value = StaffId.ToString(); + } this.SelShejirenyuan25.DataSource = oA_Staffs; this.SelShejirenyuan25.DataBind(); + if (string.IsNullOrEmpty(ToUpSetData)) + { + var StaffId = CurrentUser.StaffId; + this.SelShejirenyuan25.Value = StaffId.ToString(); + } this.SelShejirenyuan26.DataSource = oA_Staffs; this.SelShejirenyuan26.DataBind(); + if (string.IsNullOrEmpty(ToUpSetData)) + { + var StaffId = CurrentUser.StaffId; + this.SelShejirenyuan26.Value = StaffId.ToString(); + } this.SelShejirenyuan1111.DataSource = oA_Staffs; this.SelShejirenyuan1111.DataBind(); + if (string.IsNullOrEmpty(ToUpSetData)) + { + var StaffId = CurrentUser.StaffId; + this.SelShejirenyuan1111.Value = StaffId.ToString(); + } } } @@ -1017,7 +1112,7 @@ } else if (PrintTypeId == 38) { - eC_OrderExtend.Shejicount = this.ShijuanprintCount.Value.ToInt32() ?? 0; //Request["printCount"].ToString().ToInt32(); + eC_OrderExtend.Shejicount = this.txtShejileixingName38.Value.ToInt32() ?? 0; //Request["printCount"].ToString().ToInt32(); eC_OrderExtend.Shejirenyuan = this.SelShejirenyuan38.Value.ToInt32(); var oA_Staff = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuan); if (oA_Staff != null) @@ -1041,7 +1136,7 @@ - eC_OrderExtend.Shejicountneiye = this.DatikaprintCount.Value.ToInt32()??0; //Request["printCount"].ToString().ToInt32(); + eC_OrderExtend.Shejicountneiye = this.txtShejileixingNameneiye38.Value.ToInt32()??0; //Request["printCount"].ToString().ToInt32(); eC_OrderExtend.Shejirenyuanneiye = this.SelShejirenyuanneiye38.Value.ToInt32(); var oA_Staff1 = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuanneiye); if (oA_Staff1 != null) -- Gitblit v1.9.1