From fe7e285ea4e863e6196bebdf73895faef002dada Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期五, 25 八月 2023 17:16:08 +0800
Subject: [PATCH] PDA异常反馈单及列表

---
 BaseSet/公用资料/生产基础资料/Gy_Process.cs |   36 ++++++++++++++++++++++++++++++++----
 1 files changed, 32 insertions(+), 4 deletions(-)

diff --git "a/BaseSet/\345\205\254\347\224\250\350\265\204\346\226\231/\347\224\237\344\272\247\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Process.cs" "b/BaseSet/\345\205\254\347\224\250\350\265\204\346\226\231/\347\224\237\344\272\247\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Process.cs"
index 85ab8e1..47a96b4 100644
--- "a/BaseSet/\345\205\254\347\224\250\350\265\204\346\226\231/\347\224\237\344\272\247\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Process.cs"
+++ "b/BaseSet/\345\205\254\347\224\250\350\265\204\346\226\231/\347\224\237\344\272\247\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Process.cs"
@@ -533,6 +533,16 @@
                     txtHWWWasterWHID.Text = "";
                 }
                 //
+                if (oWH.GetInfoByID(oProcHlp.omodel.HWHID))
+                {
+                    txtHWHID.Text = oWH.omodel.HName;
+                    txtHWHID.Tag = oWH.omodel.HItemID.ToString();
+                }
+                else
+                {
+                    txtHWHID.Text = "";
+                }
+                //
                 txtHNumber.Text = oProcHlp.omodel.HNumber.ToString();
                 txtHRemark.Text = oProcHlp.omodel.HRemark;
                 txtHProcCheckNote.Text = oProcHlp.omodel.HProcCheckNote;
@@ -642,6 +652,7 @@
             oProc.oModel.HBadCountDevelopWHID = DBUtility.ClsPub.isLong(txtHBadCountDevelopWHID.Tag.ToString());
             oProc.oModel.HWWBadWHID = DBUtility.ClsPub.isLong(txtHWWBadWHID.Tag.ToString());
             oProc.oModel.HWWWasterWHID = DBUtility.ClsPub.isLong(txtHWWWasterWHID.Tag.ToString());
+            oProc.oModel.HWHID = DBUtility.ClsPub.isLong(txtHWHID.Tag.ToString());
             oProc.oModel.HTypeFlow = chkHTypeFlow.Checked;
             oProc.oModel.HTypeCount = chkHTypeCount.Checked;
             oProc.oModel.HAutoTrunFlag = chkHAutoTrunFlag.Checked;
@@ -853,10 +864,27 @@
             }
         }
 
+        //鑹搧浠�
+        private void cmdHWHID_Click(object sender, EventArgs e)
+        {
+            DAL.ClsGy_Warehouse_View oWare = new DAL.ClsGy_Warehouse_View();
+            if (oWare.RefreshView())
+            {
+                this.txtHWHID.Text = oWare.oModel.HName;
+                this.txtHWHID.Tag = oWare.oModel.HItemID.ToString();
+            }
+            else
+            {
+                this.txtHWHID.Text = "";
+            }
+        }
 
-
-
-
-
+        private void txtHWHID_TextChanged(object sender, EventArgs e)
+        {
+            if (txtHWHID.Text.Length == 0)
+            {
+                txtHWHID.Tag = "0";
+            }
+        }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1