From 259584df9c06ade70f1f351affb35d4922e1263d Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 07 十一月 2025 16:23:13 +0800
Subject: [PATCH] 这个打印送货单,你们给我做两种,做一张打印没得数量的,做一张打印有数量的。送货单格式就是32开,就哎就是A4排一半。你们打了测试,注意,美观。 把那个把它做出来,下一批就用这个自动打。 不是不是打印的要数量都是有数量,要没得数量都没得数量。就是点打印的时候就两个按钮嘛,一个是有数量打印,或者或者或者空白送货单打印。 现在这个现在的送货单都是没有数量噻。现在那个要的,比如你那里再打你那个打印关闭的按钮,要把搞成两个打印嘛,就是打印空白送货单和打印送货单。 好点打印空白送货单的,就是现在这样子。点打印送货单,打印的就是那个跟有有就是有数据的送货单。作业本送货统计查询,状态查询需要修改逻辑

---
 CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx.cs |  112 ++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 105 insertions(+), 7 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx.cs
index c4fbc6d..a7af205 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx.cs
@@ -36,6 +36,16 @@
         public string printCount = "";
         public string[] Width = new string[7];
         public string[] Lenth = new string[7];
+        public string xialapr = "";
+        public string orderIdstrrrr = "";
+
+        public string shukuanhuace = "";
+        public string shukuanhuaceneiye1 = "";
+        public string shukuanhuaceneiye2 = "";
+        public string shukuanhuaceneiye3 = "";
+        public string shukuanhuaceneiye4 = "";
+        public string shukuanhuaceneiye5 = "";
+
         //鍒濆鍖�
         public AgSpecialOrderEdit()
         {
@@ -81,6 +91,12 @@
                 {
                     PressesDeskHtml += "<option value='" + item.ParName + "'>" + item.ParName + "</option>";
                 }
+            }
+            var sss = bll_EC_MemberDictionaryBLL.SelectListByMemberIdAndParType(CurrentUser.MemberId, "鐗堟潗瑙勬牸");
+            foreach (var eC_MemberDictionary in sss)
+            {
+                xialapr += " <div class=\"xialaprp\">" + eC_MemberDictionary.ParName + "</div>";
+
             }
             if (m_EC_MemberDictionaryList_o != null && m_EC_MemberDictionaryList_o.Count > 0)
             {
@@ -160,6 +176,8 @@
                 return false;
             }
 
+           
+            orderIdstrrrr = orderIdStr;
             EC_OrderPrintParameterBLL _eC_OrderPrintParameterBLL = new EC_OrderPrintParameterBLL();
             EC_OrderPrintParameter _eC_OrderPrintParameter = _eC_OrderPrintParameterBLL.GetModel(orderId.Value);
             InquiryCommonModel _inquiryCommonModel = null;
@@ -177,7 +195,54 @@
 
             EC_SpecialOrders m_EC_SpecialOrders = bll_EC_SpecialOrdersBLL.GetModelByOrderId(orderId);
             if (m_EC_SpecialOrders == null)
+            {
                 m_EC_SpecialOrders = new EC_SpecialOrders();
+                if (_eC_OrderBasic.PrintTypeId == 15 || _eC_OrderBasic.PrintTypeId == 6)
+                {
+                    shukuanhuace = "true";
+                    if (_inquiryCommonModel.InquiryInsideList != null && _inquiryCommonModel.InquiryInsideList.Count > 0)
+                    {
+                        if (_inquiryCommonModel.InquiryInsideList.Count == 1)
+                        {
+                            shukuanhuaceneiye1 = _inquiryCommonModel.InquiryInsideList[0].PageNum.ToString();
+                        }
+                        else if (_inquiryCommonModel.InquiryInsideList.Count == 2)
+                        {
+                            shukuanhuaceneiye1 = _inquiryCommonModel.InquiryInsideList[0].PageNum.ToString();
+                            shukuanhuaceneiye2 = _inquiryCommonModel.InquiryInsideList[1].PageNum.ToString();
+                        }
+                        else if (_inquiryCommonModel.InquiryInsideList.Count == 3)
+                        {
+                            shukuanhuaceneiye1 = _inquiryCommonModel.InquiryInsideList[0].PageNum.ToString();
+                            shukuanhuaceneiye2 = _inquiryCommonModel.InquiryInsideList[1].PageNum.ToString();
+                            shukuanhuaceneiye3 = _inquiryCommonModel.InquiryInsideList[2].PageNum.ToString();
+                        }
+                        else if (_inquiryCommonModel.InquiryInsideList.Count == 4)
+                        {
+                            shukuanhuaceneiye1 = _inquiryCommonModel.InquiryInsideList[0].PageNum.ToString();
+                            shukuanhuaceneiye2 = _inquiryCommonModel.InquiryInsideList[1].PageNum.ToString();
+                            shukuanhuaceneiye3 = _inquiryCommonModel.InquiryInsideList[2].PageNum.ToString();
+                            shukuanhuaceneiye4 = _inquiryCommonModel.InquiryInsideList[3].PageNum.ToString();
+                        }
+                        else if (_inquiryCommonModel.InquiryInsideList.Count == 5)
+                        {
+                            shukuanhuaceneiye1 = _inquiryCommonModel.InquiryInsideList[0].PageNum.ToString();
+                            shukuanhuaceneiye2 = _inquiryCommonModel.InquiryInsideList[1].PageNum.ToString();
+                            shukuanhuaceneiye3 = _inquiryCommonModel.InquiryInsideList[2].PageNum.ToString();
+                            shukuanhuaceneiye4 = _inquiryCommonModel.InquiryInsideList[3].PageNum.ToString();
+                            shukuanhuaceneiye5 = _inquiryCommonModel.InquiryInsideList[4].PageNum.ToString();
+                        }
+                         
+
+
+                    }
+                }
+                else
+                {
+                    shukuanhuace = "false";
+                }
+            }
+               
 
             keyid = m_EC_SpecialOrders.Keyid.ToString2();
 
@@ -211,11 +276,11 @@
             this.spanOrderPrintNum.InnerText = _eC_OrderBasic.OrderExtend.PrintNum.ToString2();
             if (_eC_OrderBasic.PrintTypeId == 13)
             {
-                this.spanOrderPrintDemand.InnerText = "鍗板埛鏁伴噺锛�(" + _inquiryCommonModel.PrintBoxNumber + "娆�,姣忔" + _eC_OrderBasic.OrderExtend.PrintNum + "鐩�)锛�" + _inquiryCommonModel.PrintDemand;
+                this.spanOrderPrintDemand.InnerHtml = "鍗板埛鏁伴噺锛�(" + _inquiryCommonModel.PrintBoxNumber + "娆�,姣忔" + _eC_OrderBasic.OrderExtend.PrintNum + "鐩�)锛�" + _inquiryCommonModel.PrintDemand;
             }
             else
             {
-                this.spanOrderPrintDemand.InnerText = "鍗板埛鏁伴噺锛�(" + _eC_OrderBasic.OrderExtend.PrintNum + ")锛�" + _inquiryCommonModel.PrintDemand;
+                this.spanOrderPrintDemand.InnerHtml = "鍗板埛鏁伴噺锛�(" + _eC_OrderBasic.OrderExtend.PrintNum + ")锛�" + _inquiryCommonModel.PrintDemand;
             }
             this.spanOrderAfterWorksDemand.InnerText = _inquiryCommonModel.AfterWorksDemand;
             this.spanOrderDeliveryModeName.InnerText = _inquiryCommonModel.DeliveryModeName;
@@ -229,8 +294,11 @@
             {
                 m_EC_SpecialForumsList = new List<EC_SpecialForums>();
                 EC_SpecialForums m_EC_SpecialForums = new EC_SpecialForums();
+                //m_EC_SpecialForums.PSF_Note = _inquiryCommonModel.AfterWorksDemand;
                 m_EC_SpecialForums.PSF_Forumsid = 1;
+                m_EC_SpecialForums.PSF_CTPCount = 1;
                 m_EC_SpecialForumsList.Add(m_EC_SpecialForums);
+                this.txtPSO_Work.InnerText = _inquiryCommonModel.AfterWorksDemand;
             }
             this.RepClientList.DataSource = m_EC_SpecialForumsList;
             this.RepClientList.DataBind();
@@ -346,6 +414,7 @@
                 string[] PSF_PrintedColorPositive = Request["PSF_PrintedColorPositive"].ToString2().Split(',');
                 string[] PSF_PrintedColorRear = Request["PSF_PrintedColorRear"].ToString2().Split(',');
                 string[] PSF_Typesetting = Request["PSF_Typesetting"].ToString2().Split(',');
+                string[] PSF_Typesettinghide = Request["PSF_Typesettinghide"].ToString2().Split(',');
                 string[] PSF_PrintedCount = Request["PSF_PrintedCount"].ToString2().Split(',');
                 string[] PSF_PrintedPositive = Request["PSF_PrintedPositive"].ToString2().Split(',');
                 string[] PSF_LastNum = Request["PSF_LastNum"].ToString2().Split(',');
@@ -364,7 +433,9 @@
 
                 string[] PSF_BigPaperCount = Request["PSF_BigPaperCount"].ToString2().Split(',');
                 string[] PSF_OpenSpecifications = Request["PSF_OpenSpecifications"].ToString2().Split(',');
+                string[] PSF_Qitadingdanhao = Request["PSF_Qitadingdanhao"].ToString2().Split(',');
                 string[] PSF_OpenWidth = Request["PSF_OpenWidth"].ToString2().Split(',');
+                string[] PSF_OpenWidthName = Request["PSF_OpenWidthName"].ToString2().Split(',');
                 string[] PSF_OpenLength = Request["PSF_OpenLength"].ToString2().Split(',');
 
                 string[] selPlateType = Request["selPlateType"].ToString2().Split(',');
@@ -435,7 +506,15 @@
                     m_EC_SpecialForums.PSF_PressesDesk = PSF_PressesDesk[i].ToString2().Replace("锛�+-+锛�", ",");
                     m_EC_SpecialForums.PSF_PrintedColorPositive = PSF_PrintedColorPositive[i].ToString2().Replace("锛�+-+锛�", ",");
                     m_EC_SpecialForums.PSF_PrintedColorRear = PSF_PrintedColorRear[i].ToString2().Replace("锛�+-+锛�", ",");
-                    m_EC_SpecialForums.PSF_Typesetting = PSF_Typesetting[i].ToString2().Replace("锛�+-+锛�", ",");
+                    if (PSF_PressesDesk[i].IndexOf("鏁扮爜") >= 0)
+                    {
+                        m_EC_SpecialForums.PSF_Typesetting = PSF_Typesettinghide[i].ToString2().Replace("锛�+-+锛�", ",");
+                    }
+                    else
+                    {
+                        m_EC_SpecialForums.PSF_Typesetting = PSF_Typesetting[i].ToString2().Replace("锛�+-+锛�", ",");
+                    }
+                       
                     
                     if (PSF_PrintedCount[i].ToInt32() == null)
                     {
@@ -484,16 +563,35 @@
                     //}
                     m_EC_SpecialForums.PSF_BigPaperCount = 0;
                     m_EC_SpecialForums.PSF_OpenSpecifications = PSF_OpenSpecifications[i].ToString2().Replace("锛�+-+锛�", ",");
-                    
-                    if (PSF_OpenWidth[i].ToInt32() == null)
+
+                    if (PSF_PressesDesk[i].IndexOf("涓庡叾浠栬鍗曞悎鐗�") >= 0  )
                     {
-                        m_EC_SpecialForums.PSF_OpenWidth = 0;
+                        m_EC_SpecialForums.PSF_PaperName = PSF_Qitadingdanhao[i];
+                    }
+                    if (PSF_PressesDesk[i].IndexOf("杞浆") >= 0 || PSF_PressesDesk[i].IndexOf("榛戠櫧") >= 0)
+                    {
+                        if (PSF_OpenWidthName[i].ToInt32() == null)
+                        {
+                            m_EC_SpecialForums.PSF_OpenWidth = 0;
+                        }
+                        else
+                        {
+                            m_EC_SpecialForums.PSF_OpenWidth = PSF_OpenWidthName[i].ToInt32();
+                        }
                     }
                     else
                     {
-                        m_EC_SpecialForums.PSF_OpenWidth = PSF_OpenWidth[i].ToInt32();
+                        if (PSF_OpenWidth[i].ToInt32() == null)
+                        {
+                            m_EC_SpecialForums.PSF_OpenWidth = 0;
+                        }
+                        else
+                        {
+                            m_EC_SpecialForums.PSF_OpenWidth = PSF_OpenWidth[i].ToInt32();
+                        }
                     }
                    
+                   
                     if (PSF_OpenLength[i].ToInt32() == null)
                     {
                         m_EC_SpecialForums.PSF_OpenLength = 0;

--
Gitblit v1.9.1