From 3b3804a451ff7cb7eaa9cc6c3af62d7092caa6ce Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 16 四月 2026 08:48:30 +0800
Subject: [PATCH] 设备增加    印刷设备  把厚道对应的机台都放到印刷设备     完成

---
 CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx.cs |   85 +++++++++++++++++++++++++++++++++++++++---
 1 files changed, 78 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 57a91a1..1ca094f 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx.cs
@@ -48,6 +48,10 @@
         public string shukuanhuaceneiye5 = "";
         public string PrintTypeId = "";
         AfterParameterInfoBLL _afterParameterInfoBLL = null;
+        OA_ShebeiManageBLL bll_oA_ShebeiManageBLL = null;
+        OA_StaffBLL bll_OA_StaffBLL = null;
+        public string shebeilist = "";
+        public List<OA_ShebeiManage> oA_ShebeiManages = new List<OA_ShebeiManage>();
         //鍒濆鍖�
         public AgSpecialOrderEdit()
         {
@@ -57,6 +61,8 @@
             bll_OA_OutOfStorageBLL = new OA_OutOfStorageBLL();
             bll_EC_CuttingPaperSpecBLL = new EC_CuttingPaperSpecBLL();
             _afterParameterInfoBLL = new AfterParameterInfoBLL();
+            bll_oA_ShebeiManageBLL = new OA_ShebeiManageBLL();
+            bll_OA_StaffBLL = new OA_StaffBLL();
         }
 
         //椤甸潰鍔犺浇
@@ -80,6 +86,14 @@
             List<EC_MemberDictionary> m_EC_MemberDictionaryList_paperSpec = bll_EC_MemberDictionaryBLL.SelectListByMemberIdAndParType(CurrentUser.MemberId, "鑷甫绾歌鏍�") as List<EC_MemberDictionary>;
             List<EC_MemberDictionary> m_EC_MemberDictionaryList_filmSpec = bll_EC_MemberDictionaryBLL.SelectListByMemberIdAndParType(CurrentUser.MemberId, "鑷甫鑿叉灄瑙勬牸") as List<EC_MemberDictionary>;
             List<EC_MemberDictionary> m_EC_MemberDictionaryList_ctpSpec = bll_EC_MemberDictionaryBLL.SelectListByMemberIdAndParType(CurrentUser.MemberId, "鑷甫CTP瑙勬牸") as List<EC_MemberDictionary>;
+
+            //鍒濆鍖栬澶囧垪琛�
+            var a_ShebeiCate = bll_oA_ShebeiManageBLL.GetDataByType(CurrentUser.MemberId).Where(x => x.Name == "鐢熶骇璁惧" || x.Name == "鍗板埛璁惧" || x.Name == "瑁呰璁惧").ToList();
+            if (a_ShebeiCate != null && a_ShebeiCate.Count > 0)
+            {
+                oA_ShebeiManages = bll_oA_ShebeiManageBLL.GetDataByCate(CurrentUser.MemberId, a_ShebeiCate[0].Keyid + "," + a_ShebeiCate[1].Keyid + "," + a_ShebeiCate[2].Keyid, true, 2).ToList();
+                shebeilist = JsonHelper.GetJsonStringByObject(oA_ShebeiManages);
+            }
 
             Pagination pa = new Pagination();
             pa.PageSize = 15;
@@ -321,12 +335,22 @@
             {
                 m_EC_SpecialHoudaosList = new List<EC_SpecialHoudaos>();
                 EC_SpecialHoudaos m_EC_SpecialHoudaos = new EC_SpecialHoudaos();
+                m_EC_SpecialHoudaos.PSF_Shuliang = _eC_OrderBasic.OrderExtend.SurplusPrintNum.ToString2();
+                m_EC_SpecialHoudaos.PSF_Beishu = "1";
                 m_EC_SpecialHoudaosList.Add(m_EC_SpecialHoudaos);
                 
             }
 
             var ssssss = _inquiryCommonModel.AfterWorkList;
             var inquiryInsideModels = _inquiryCommonModel.InquiryInsideList;
+            List<string> houdaosssss = new List<string>();
+            houdaosssss.Add("鎶橀〉");
+            houdaosssss.Add("楠戦┈閽�");
+            houdaosssss.Add("鑳惰");
+            houdaosssss.Add("鍘嬬棔");
+            houdaosssss.Add("鐑噾");
+            houdaosssss.Add("绮樹俊灏�");
+            houdaosssss.Add("绮橀〉");
             foreach (var c_SpecialHoudaos in m_EC_SpecialHoudaosList)
             {
                 List<int> houdaolist = new List<int>();
@@ -385,7 +409,45 @@
                        
 
                 }
+                
+                foreach (var houdao in houdaosssss)
+                {
+                    if (sysInquiry_Afters.Count(x => x.ParameterName == houdao) <= 0)
+                    {
+
+                        if (houdao == c_SpecialHoudaos.PSF_Houdaogongxu)
+                        {
+                            select += "<option value='" + houdao + "' selected=\"selected\" >" + houdao + "</option>";
+                        }
+                        else
+                        {
+                            select += "<option value='" + houdao + "' >" + houdao + "</option>";
+                        }
+                    }
+
+                      
+                }
+                string houdaoduibi = c_SpecialHoudaos.PSF_Houdaogongxu;
                 c_SpecialHoudaos.PSF_Houdaogongxu = select;
+
+                //鏈洪暱閫夐」
+                string selectjizhang = "<option value='0'>璇烽�夋嫨</option>";
+                if (!string.IsNullOrEmpty(houdaoduibi))
+                {
+                    var oA_ShebeiManageshoudao = oA_ShebeiManages.Where(x => x.Name.Contains(houdaoduibi));
+                    foreach (var a_ShebeiManage in oA_ShebeiManageshoudao)
+                    {
+                        if (a_ShebeiManage.Zerenren == c_SpecialHoudaos.PSF_JichangId)
+                        {
+                            selectjizhang += "<option value='" + a_ShebeiManage.Zerenren.Value.ToString() + "' selected=\"selected\" >" + a_ShebeiManage.ZerenrenName + "</option>";
+                        }
+                        else
+                        {
+                            selectjizhang += "<option value='" + a_ShebeiManage.Zerenren.Value.ToString() + "' >" + a_ShebeiManage.ZerenrenName + "</option>";
+                        }
+                    }
+                }
+                c_SpecialHoudaos.PSF_Jichang = selectjizhang;
             }
 
             this.RepeaterHoudaoList.DataSource = m_EC_SpecialHoudaosList;
@@ -550,7 +612,7 @@
                 string[] selHoudaogongxu = Request["selHoudaogongxu"].ToString2().Split(',');
                 string[] txtShuliang = Request["txtShuliang"].ToString2().Split(',');
                 string[] txtBeishu = Request["txtBeishu"].ToString2().Split(',');
-                string[] txtJichang = Request["txtJichang"].ToString2().Split(',');
+                string[] selJichang = Request["selJichang"].ToString2().Split(',');
                 string[] txtYaoqiu = Request["txtYaoqiu"].ToString2().Split(',');
 
                 //if (PSF_Forumsid.Length != PSF_Component.Length || PSF_Forumsid.Length != PSF_PNum.Length || PSF_Forumsid.Length != PSF_PressesDesk.Length || PSF_Forumsid.Length != PSF_PrintedColorPositive.Length || PSF_Forumsid.Length != PSF_PrintedColorRear.Length || PSF_Forumsid.Length != PSF_Typesetting.Length || PSF_Forumsid.Length != PSF_PrintedCount.Length || PSF_Forumsid.Length != PSF_PrintedPositive.Length || PSF_Forumsid.Length != PSF_LastNum.Length || PSF_Forumsid.Length != PSF_SheetSource.Length || PSF_Forumsid.Length != PSF_SpecificationsSheet.Length || PSF_Forumsid.Length != PSF_EditionCount.Length || PSF_Forumsid.Length != PSF_PaperSource.Length || PSF_Forumsid.Length != PSF_PaperId.Length || PSF_Forumsid.Length != PSF_PaperName.Length || PSF_Forumsid.Length != PSF_MaterialSpecifications.Length || PSF_Forumsid.Length != PSF_BigPaperCount.Length || PSF_Forumsid.Length != PSF_OpenSpecifications.Length || PSF_Forumsid.Length != PSF_OpenWidth.Length || PSF_Forumsid.Length != PSF_OpenLength.Length || PSF_Forumsid.Length != PSF_Note.Length)
@@ -895,13 +957,22 @@
                     m_EC_SpecialHoudaos.PSF_Houdaogongxu = selHoudaogongxu[i].ToString2().Replace("锛�+-+锛�", ",");
                     m_EC_SpecialHoudaos.PSF_Shuliang = txtShuliang[i] ;
                     m_EC_SpecialHoudaos.PSF_Beishu = txtBeishu[i];
-                    m_EC_SpecialHoudaos.PSF_Jichang = txtJichang[i];
+                    m_EC_SpecialHoudaos.PSF_JichangId = selJichang[i].ToInt32();
+                    if (m_EC_SpecialHoudaos.PSF_JichangId.HasValue && m_EC_SpecialHoudaos.PSF_JichangId.Value > 0)
+                    {
+                        var oA_Staff = bll_OA_StaffBLL.GetModelByKeyid(m_EC_SpecialHoudaos.PSF_JichangId);
+                        if (oA_Staff != null)
+                        {
+                            m_EC_SpecialHoudaos.PSF_Jichang = oA_Staff.Name;
+                        }
+                    }
+                    else
+                    {
+                        m_EC_SpecialHoudaos.PSF_Jichang = "";
+                    }
+
                     m_EC_SpecialHoudaos.PSF_Yaoqiu = txtYaoqiu[i].Trim();
-                    if(!string.IsNullOrEmpty(m_EC_SpecialHoudaos.PSF_Houdaogongxu)
-                        || !string.IsNullOrEmpty(m_EC_SpecialHoudaos.PSF_Shuliang)
-                        || !string.IsNullOrEmpty(m_EC_SpecialHoudaos.PSF_Beishu)
-                        || !string.IsNullOrEmpty(m_EC_SpecialHoudaos.PSF_Jichang)
-                        || !string.IsNullOrEmpty(m_EC_SpecialHoudaos.PSF_Yaoqiu)){
+                    if(!string.IsNullOrEmpty(m_EC_SpecialHoudaos.PSF_Houdaogongxu)){
                         m_EC_SpecialHoudaosList.Add(m_EC_SpecialHoudaos);
                     }
                 }

--
Gitblit v1.9.1