From d3dd87dbb75c485ca1c9431faffe2d9cae786e97 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期一, 19 五月 2025 09:44:09 +0800
Subject: [PATCH] 其它入库

---
 DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs |   70 ++++++++++++++++++++++++++++++-----
 1 files changed, 60 insertions(+), 10 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs b/DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs
index ea35aa7..237b7be 100644
--- a/DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs
+++ b/DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs
@@ -40,15 +40,23 @@
             toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick;
             toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick;
             toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick;
+            toolBarMenu1.xlsInService = "XlsInItemJyxm&"+ strType;
+            //绫诲瀷锛宨qc,ipqc宸℃锛宨pqc棣栨鏌�,fqc锛宨qc鐨勬牱鍝佸�奸粯璁や负5锛屽叾瀹冧负1
             txt_ftype.Text = strType;
             if (strType == "iqc")
                 dfValue = 5;
-            this.gvMx1.InitNewRow += (s, e) =>
+            //濡傛灉鏄痠pqc宸℃锛屾樉绀哄伐浣�
+            if (strType != "ipqc宸℃")
             {
-                this.gvMx1.SetRowCellValue(e.RowHandle, "ypsl", dfValue);
-                int newIndex = gvMx1.DataRowCount + 1;
-                this.gvMx1.SetRowCellValue(e.RowHandle, "forder", newIndex);
-            };
+                gvMx1.Columns["stationName"].Visible = false;
+            }
+            //鏂拌鍒濆鍊�
+            this.gvMx1.InitNewRow += (s, e) =>
+        {
+            this.gvMx1.SetRowCellValue(e.RowHandle, "ypsl", dfValue);
+            int newIndex = gvMx1.DataRowCount + 1;
+            this.gvMx1.SetRowCellValue(e.RowHandle, "forder", newIndex);
+        };
             this.toolBarMenu1.getXmlConfig();
             Form parentForm = this.FindForm();
             Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1);
@@ -73,7 +81,7 @@
                     Gs.DevApp.ToolBox.MsgHelper.ShowInformation("璇峰厛淇濆瓨褰撳墠淇℃伅锛�");
                     return;
                 }
-                if ((txt_foneChecked.Checked==false))
+                if ((txt_foneChecked.Checked == false))
                 {
                     Gs.DevApp.ToolBox.MsgHelper.ShowInformation("璇ラ」鐩湭瀹℃牳锛屾殏涓嶈兘澶嶅埗鍒板叾瀹冪墿鏂欙紒");
                     return;
@@ -244,6 +252,13 @@
         private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e)
         {
             toolBarMenu1.isSetBtn = false;
+            string _orgId = txt_fSubsidiary.GetId();
+            if (string.IsNullOrEmpty(_orgId))
+            {
+                MsgHelper.Warning("璇烽�夋嫨浣跨敤缁勭粐锛�");
+                txt_fSubsidiary.Focus();
+                return;
+            }
             string _ItemId = txt_itemId.GetId();
             if (string.IsNullOrEmpty(_ItemId))
             {
@@ -344,6 +359,7 @@
                             FupAllow = Gs.DevApp.ToolBox.UtilityHelper.GetDecimal(row["FupAllow"].ToString()),
                             FdownAllow = Gs.DevApp.ToolBox.UtilityHelper.GetDecimal(row["FdownAllow"].ToString()),
                             ypsl = Gs.DevApp.ToolBox.UtilityHelper.GetDecimal(row["ypsl"].ToString()),
+                            stationName = row["stationName"].ToString(),
                         });
                     }
                 }
@@ -434,7 +450,10 @@
                 MsgHelper.Warning("鎻愮ず锛�" + ex.Message);
             }
         }
-
+        /// <summary>
+        /// 璇诲彇瀹炰綋
+        /// </summary>
+        /// <param name="strGuid"></param>
         private void getModel(string strGuid)
         {
             bool isEdit = false;
@@ -586,6 +605,7 @@
             _getListJybz();
             _getListJssp();
             _getListJysp();
+            _getListStation();
         }
         /// <summary>
         /// 璇诲彇妫�楠岄」鐩�
@@ -608,7 +628,32 @@
                 MsgHelper.Warning("鎻愮ず锛�" + ex.Message);
             }
         }
-
+        /// <summary>
+        /// 璇诲彇妫�楠屽伐浣�
+        /// </summary>
+        private void _getListStation()
+        {
+            string _where = " and 1=1 and s_type='宸ヤ綅淇℃伅' and  pid<>'00000000-0000-0000-0000-000000000000'";
+            var pgq = new PageQueryModel(1, 999999, "a.defect_name", "asc", "", _where);
+            var json = JsonConvert.SerializeObject(pgq);
+            try
+            {
+                var strReturn =
+                    UtilityHelper.HttpPost("", "MesDefectCodeManager/GetListPage", json);
+                var dd = UtilityHelper.ReturnToTablePage(strReturn);
+                var dt = dd.rtnData.list;
+                foreach (DataRow dr in dt.Rows)
+                {
+                    //tlMenu.KeyFieldName = "guid";
+                    //tlMenu.ParentFieldName = "pid";
+                    rptStation.Items.Add(dr["defectName"].ToString());
+                }
+            }
+            catch (Exception ex)
+            {
+                MsgHelper.Warning("鎻愮ず锛�" + ex.Message);
+            }
+        }
         /// <summary>
         /// 璇诲彇妫�楠屽伐鍏�
         /// </summary>
@@ -663,8 +708,8 @@
         {
             rptJSSP.Items.AddRange(new string[] {
                 "0.010---(AQL_0_0010)"
-                , "0.015---(AQL_0_0015)"
-                , "0.025---(AQL_0_0025)"
+                ,"0.015---(AQL_0_0015)"
+                ,"0.025---(AQL_0_0025)"
                 ,"0.040---(AQL_0_0040)"
                 ,"0.065---(AQL_0_0065)"
                 ,"0.10---(AQL_0_010)"
@@ -715,6 +760,11 @@
                 gvMx1.SetRowCellValue(dataIndex, "sampleSizeName", _txt);
             }
         }
+        /// <summary>
+        /// 绉诲嚭鏄庣粏
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
         private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
         {
             gvMx1.CloseEditor();

--
Gitblit v1.9.3