From ba381be6a5aac58df11e2e7b6b19f012bd9ff5a1 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期三, 04 十二月 2024 10:34:30 +0800 Subject: [PATCH] 开票申请 --- CY_ECommercePlatform/CY.WebForm/Pages/business/OrderDeatil.aspx.cs | 26 +++++++++++++++++++++++++- 1 files changed, 25 insertions(+), 1 deletions(-) diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/OrderDeatil.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/business/OrderDeatil.aspx.cs index e95fd01..dcc717a 100644 --- a/CY_ECommercePlatform/CY.WebForm/Pages/business/OrderDeatil.aspx.cs +++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/OrderDeatil.aspx.cs @@ -39,7 +39,7 @@ public partial class OrderDeatil : BasePage { EC_OrderBasicBLL _eC_OrderBasicBLL = new EC_OrderBasicBLL(); - + Sys_DictionaryBLL _sys_DictionaryBLL = new Sys_DictionaryBLL();//瀛楀吀涓氬姟閫昏緫鎿嶄綔绫诲璞� /// <summary> /// 椤甸潰鍔犺浇浜嬩欢 /// </summary> @@ -56,6 +56,10 @@ case "print": int orderId = Request["orderIdStr"].ToString().ToInt32().Value; UpdatePrintState(orderId); + break; + case "Printfengqian": + int orderIds = Request["orderIdStr"].ToString().ToInt32().Value; + UpdatePrintfengqianState(orderIds); break; default: Page_Load_Default(); @@ -136,6 +140,11 @@ { _inquiryCommonModel.PrintDemand = _inquiryCommonModel.PrintCountName + "锛�" + _inquiryCommonModel.PrintDemand; } + var sys_Dictionarie = _sys_DictionaryBLL.GetDataByType("鍗板埛鍗曚綅").FirstOrDefault(x=>x.MeanValue == _inquiryCommonModel.Unit); + if (sys_Dictionarie != null) + { + _eC_OrderBasic.UnitName = sys_Dictionarie.Name; + } rptOrder.DataSource = new List<EC_OrderBasic>() { _eC_OrderBasic }; rptOrder.DataBind(); rptAccpteWay.DataSource = "鑷彁".Equals(_inquiryCommonModel.DeliveryModeName) ? null : new List<EC_AcceptWayByOrder>() { _eC_AcceptWayByOrder }; @@ -163,5 +172,20 @@ } } } + + + /// <summary> + /// 鏀瑰彉鎵撳嵃灏佺鐘舵�� + /// </summary> + private void UpdatePrintfengqianState(int orderId) + { + + if (CurrentUser != null) + { + + _eC_OrderBasicBLL.UpdatePrintfengqianState(orderId); + + } + } } } \ No newline at end of file -- Gitblit v1.9.1