From 84f084b5b5a4593d4e4e30d2c95b91ca0e0e3384 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期二, 29 三月 2022 13:23:18 +0800
Subject: [PATCH] 查询过滤 仓库发料 拣料配送列表上查 页面优化

---
 BaseSet/公用资料/生产基础资料/Gy_Process.cs |  176 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 175 insertions(+), 1 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 5dd9a26..85ab8e1 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"
@@ -444,6 +444,7 @@
             DAL.ClsIF_Department_View oDept = new DAL.ClsIF_Department_View();
             //DAL.ClsK3_Process_View oProc = new DAL.ClsK3_Process_View();
             DAL.ClsGy_ProcMul_View oPm = new DAL.ClsGy_ProcMul_View();
+            DAL.ClsGy_Warehouse_View oWH = new DAL.ClsGy_Warehouse_View();
             if (oProcHlp.GetInfoByID(sItemID))
             {
                 txtHNumber.Text = oProcHlp.omodel.HNumber.ToString();
@@ -481,6 +482,57 @@
                 {
                     txtHProcMulID.Text = "";
                 }
+                //
+                if (oWH.GetInfoByID(oProcHlp.omodel.HBadWHID))
+                {
+                    txtHBadWHID.Text = oWH.omodel.HName;
+                    txtHBadWHID.Tag = oWH.omodel.HItemID.ToString();
+                }
+                else
+                {
+                    txtHBadWHID.Text = ""; 
+                }
+                //
+                if (oWH.GetInfoByID(oProcHlp.omodel.HWasterWHID))
+                {
+                    txtHWasterWHID.Text = oWH.omodel.HName; 
+                    txtHWasterWHID.Tag = oWH.omodel.HItemID.ToString();
+                }
+                else
+                {
+                    txtHWasterWHID.Text = "";
+                }
+                //
+                if (oWH.GetInfoByID(oProcHlp.omodel.HBadCountDevelopWHID))
+                {
+                    txtHBadCountDevelopWHID.Text = oWH.omodel.HName;
+                    txtHBadCountDevelopWHID.Tag = oWH.omodel.HItemID.ToString();
+                }
+                else
+                {
+                    txtHBadCountDevelopWHID.Text = "";
+                }
+                //
+                if (oWH.GetInfoByID(oProcHlp.omodel.HWWBadWHID))
+                {
+                    txtHWWBadWHID.Text = oWH.omodel.HName;
+                    txtHWWBadWHID.Tag = oWH.omodel.HItemID.ToString();
+                }
+                else
+                {
+                    txtHWWBadWHID.Text = "";
+                }
+                //
+                if (oWH.GetInfoByID(oProcHlp.omodel.HWWWasterWHID))
+                {
+                    txtHWWWasterWHID.Text = oWH.omodel.HName;
+                    txtHWWWasterWHID.Tag = oWH.omodel.HItemID.ToString();
+                }
+                else
+                {
+                    txtHWWWasterWHID.Text = "";
+                }
+                //
                 txtHNumber.Text = oProcHlp.omodel.HNumber.ToString();
                 txtHRemark.Text = oProcHlp.omodel.HRemark;
                 txtHProcCheckNote.Text = oProcHlp.omodel.HProcCheckNote;
@@ -489,6 +541,7 @@
                 txtHFixPrice.Text = oProcHlp.omodel.HFixPrice.ToString();
                 txtHOverFixPrice.Text = oProcHlp.omodel.HOverFixPrice.ToString();
                 cmbHBillSubType.Text = oProcHlp.omodel.HBillSubType;
+                
                 if (oProcHlp.omodel.HStopflag)
                     chkHStopflag.Checked = true;
                 else
@@ -584,6 +637,11 @@
             oProc.oModel.HFixPrice = DBUtility.ClsPub.isDoule(txtHFixPrice.Text);
             oProc.oModel.HOverFixPrice = DBUtility.ClsPub.isDoule(txtHOverFixPrice.Text);
             oProc.oModel.HProcMulID = DBUtility.ClsPub.isLong(txtHProcMulID.Tag.ToString());
+            oProc.oModel.HBadWHID = DBUtility.ClsPub.isLong(txtHBadWHID.Tag.ToString());
+            oProc.oModel.HWasterWHID = DBUtility.ClsPub.isLong(txtHWasterWHID.Tag.ToString());
+            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.HTypeFlow = chkHTypeFlow.Checked;
             oProc.oModel.HTypeCount = chkHTypeCount.Checked;
             oProc.oModel.HAutoTrunFlag = chkHAutoTrunFlag.Checked;
@@ -683,6 +741,122 @@
             DBUtility.Gy_BaseFun.DataToExcel(this.Text, grdMain);
         }
 
-        
+        private void cmdHBadWHID_Click(object sender, EventArgs e)
+        {
+            DAL.ClsGy_Warehouse_View oWare = new DAL.ClsGy_Warehouse_View();
+            if (oWare.RefreshView())
+            {
+                this.txtHBadWHID.Text = oWare.oModel.HName;
+                this.txtHBadWHID.Tag = oWare.oModel.HItemID.ToString();
+            }
+            else
+            {
+                this.txtHBadWHID.Text = "";
+            }
+        }
+
+        private void cmdHWasterWHID_Click(object sender, EventArgs e)
+        {
+            DAL.ClsGy_Warehouse_View oWare = new DAL.ClsGy_Warehouse_View();
+            if (oWare.RefreshView())
+            {
+                this.txtHWasterWHID.Text = oWare.oModel.HName;
+                this.txtHWasterWHID.Tag = oWare.oModel.HItemID.ToString();
+            }
+            else
+            {
+                this.txtHWasterWHID.Text = "";
+            }
+        }
+
+        private void cmdHBadCountDevelopWHID_Click(object sender, EventArgs e)
+        {
+            DAL.ClsGy_Warehouse_View oWare = new DAL.ClsGy_Warehouse_View();
+            if (oWare.RefreshView())
+            {
+                this.txtHBadCountDevelopWHID.Text = oWare.oModel.HName;
+                this.txtHBadCountDevelopWHID.Tag = oWare.oModel.HItemID.ToString();
+            }
+            else
+            {
+                this.txtHBadCountDevelopWHID.Text = "";
+            }
+        }
+
+        private void txtHBadWHID_TextChanged(object sender, EventArgs e)
+        {
+            if (txtHBadWHID.Text.Length == 0)
+            {
+                txtHBadWHID.Tag = "0";
+            }
+        }
+
+        private void txtHWasterWHID_TextChanged(object sender, EventArgs e)
+        {
+            if (txtHWasterWHID.Text.Length == 0)
+            {
+                txtHWasterWHID.Tag = "0";
+            }
+        }
+
+        private void txtHBadCountDevelopWHID_TextChanged(object sender, EventArgs e)
+        {
+            if (txtHBadCountDevelopWHID.Text.Length == 0)
+            {
+                txtHBadCountDevelopWHID.Tag = "0";
+            }
+        }
+
+        //濮斿涓嶈壇鍝佷粨
+        private void cmdHWWBadWHID_Click(object sender, EventArgs e)
+        {
+            DAL.ClsGy_Warehouse_View oWare = new DAL.ClsGy_Warehouse_View();
+            if (oWare.RefreshView())
+            {
+                this.txtHWWBadWHID.Text = oWare.oModel.HName;
+                this.txtHWWBadWHID.Tag = oWare.oModel.HItemID.ToString();
+            }
+            else
+            {
+                this.txtHWWBadWHID.Text = "";
+            }
+        }
+
+        private void txtHWWBadWHID_TextChanged(object sender, EventArgs e)
+        {
+            if (txtHWWBadWHID.Text.Length == 0)
+            {
+                txtHWWBadWHID.Tag = "0";
+            }
+        }
+
+        //濮斿鎶ュ簾浠�
+        private void cmdHWWWasterWHID_Click(object sender, EventArgs e)
+        {
+            DAL.ClsGy_Warehouse_View oWare = new DAL.ClsGy_Warehouse_View();
+            if (oWare.RefreshView())
+            {
+                this.txtHWWWasterWHID.Text = oWare.oModel.HName;
+                this.txtHWWWasterWHID.Tag = oWare.oModel.HItemID.ToString();
+            }
+            else
+            {
+                this.txtHWWWasterWHID.Text = "";
+            }
+        }
+
+        private void txtHWWWasterWHID_TextChanged(object sender, EventArgs e)
+        {
+            if (txtHWWWasterWHID.Text.Length == 0)
+            {
+                txtHWWWasterWHID.Tag = "0";
+            }
+        }
+
+
+
+
+
+
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1