From fa8310bfd01c7f3123077d6d2f6a96a92645a034 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 09 四月 2026 08:43:30 +0800
Subject: [PATCH] 板材填了就减少库存   根据  板材规格    数量(张)和  发版套数  算出库存需要减少的量,减少库存  完成

---
 CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderDetail.aspx.cs |   33 ++++++++++++++++++++++++++++-----
 1 files changed, 28 insertions(+), 5 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderDetail.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderDetail.aspx.cs
index c4e340e..799f80e 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderDetail.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderDetail.aspx.cs
@@ -20,6 +20,8 @@
     {
         EC_SpecialOrdersBLL bll_EC_SpecialOrdersBLL = null;
         string orderIdStr = string.Empty;
+        public string PrintTypeId = "";
+        public string therowspan = "";
         //鍒濆鍖�
         public AgSpecialOrderDetail()
         {
@@ -95,7 +97,7 @@
             {
                 _inquiryCommonModel = SerializationHelper.DeSerialize(typeof(InquiryCommonModel), _eC_OrderPrintParameter.PrintParameter) as InquiryCommonModel;
             }
-
+            PrintTypeId = _eC_OrderBasic.PrintTypeId.ToString();
             #endregion
 
             EC_SpecialOrders m_EC_SpecialOrders = bll_EC_SpecialOrdersBLL.GetModelByOrderId(orderId);
@@ -109,7 +111,7 @@
 
             this.spanSpecialNum.InnerText = string.IsNullOrEmpty(m_EC_SpecialOrders.PSO_OrderNum) ? bll_EC_SpecialOrdersBLL.GetPSO_OrderNum(CurrentUser.MemberId) : m_EC_SpecialOrders.PSO_OrderNum;
             this.spanSpecialExigency.InnerText = _eC_OrderBasic.OrderExtend.ExigencyCase.Name;
-            this.spanSpecialTime.InnerText = m_EC_SpecialOrders.PSO_OrderTime == null ? DateTime.Now.ToString("yyyy-MM-dd HH:mm") : m_EC_SpecialOrders.PSO_OrderTime.Value.ToString("yyyy-MM-dd HH:mm");
+            this.spanSpecialTime.InnerText = m_EC_SpecialOrders.PSO_OrderTime == null ? DateTime.Now.ToString("yyyy-MM-dd") : m_EC_SpecialOrders.PSO_OrderTime.Value.ToString("yyyy-MM-dd");
             this.spanSpecialOprator.InnerText = string.IsNullOrEmpty(m_EC_SpecialOrders.Operator) ? CurrentUser.ShortName : m_EC_SpecialOrders.Operator;
 
             if (string.IsNullOrEmpty(m_EC_SpecialOrders.PSO_Work))
@@ -120,10 +122,10 @@
             {
                 this.txtPSO_Work_o.InnerText = m_EC_SpecialOrders.PSO_Work;
             }
-
+            this.txtPSO_Work_o_TR.Visible = false;
             if (string.IsNullOrEmpty(m_EC_SpecialOrders.PSO_Remarks))
             {
-                this.txtPSO_Remarks_o_TR.Visible = false;
+               // this.txtPSO_Remarks_o_TR.Visible = false;
             }
             else
             {
@@ -131,9 +133,10 @@
             }
 
             this.spanOrderNum.InnerText = _eC_OrderBasic.SellerOrderId;
+            this.spanPrintNum.InnerText = m_EC_SpecialOrders.OrderNum.ToString2() ; 
             //this.spanOrderType.InnerText = _eC_OrderBasic.OrderType.Name;
             this.spanOrderTitle.InnerText = _eC_OrderBasic.DocumentName;
-            this.spanOrderDeliveryTime.InnerText = _eC_OrderBasic.DeliveryTime == null ? "" : _eC_OrderBasic.DeliveryTime.Value.ToString("yyyy-MM-dd HH:mm");
+            this.spanOrderDeliveryTime.InnerText = _eC_OrderBasic.DeliveryTime == null ? "" : _eC_OrderBasic.DeliveryTime.Value.ToString("yyyy-MM-dd");
 
             this.spanOrderCustormName.InnerText = _eC_OrderBasic.BuyerName;
             this.spanOrderCustormLevel.InnerText = _eC_OrderBasic.OrderExtend.CustomerLevel.Name;
@@ -202,6 +205,26 @@
             }
             this.RepClientList.DataSource = m_EC_SpecialForumsList;
             this.RepClientList.DataBind();
+
+
+            List<EC_SpecialHoudaos> m_EC_SpecialHoudaosList = bll_EC_SpecialOrdersBLL.GetEC_SpecialHoudaosListByKeyid(m_EC_SpecialOrders.Keyid) as List<EC_SpecialHoudaos>;
+            this.RepeaterHoudaoList.DataSource = m_EC_SpecialHoudaosList;
+            this.RepeaterHoudaoList.DataBind();
+
+            if (m_EC_SpecialHoudaosList == null || m_EC_SpecialHoudaosList.Count <= 0)
+            {
+                this.Tr1.Visible = false;
+            }
+            if(m_EC_SpecialHoudaosList != null)
+            {
+                therowspan = (m_EC_SpecialHoudaosList.Count + 1) + "";
+            }
+            else
+            {
+                therowspan =  "1";
+            }
+            
+
             return true;
         }
         /// <summary>

--
Gitblit v1.9.1