From e6b5088ef0d91b2e20eecbf615e8357b55670e7f Mon Sep 17 00:00:00 2001
From: jhz <jhz@hz-kingdee.com>
Date: 星期二, 05 十一月 2024 12:07:30 +0800
Subject: [PATCH] 仓位选择

---
 BaseSet/公用资料/公用基础资料/Gy_Material.cs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git "a/BaseSet/\345\205\254\347\224\250\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Material.cs" "b/BaseSet/\345\205\254\347\224\250\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Material.cs"
index aec32db..0e1a5f7 100644
--- "a/BaseSet/\345\205\254\347\224\250\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Material.cs"
+++ "b/BaseSet/\345\205\254\347\224\250\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Material.cs"
@@ -917,10 +917,12 @@
             {
                 this.txtHWhID.Text = oWare.oModel.HName;
                 this.txtHWhID.Tag = oWare.oModel.HItemID.ToString();
+                this.txtHSPID.Text = "";
             }
             else
             {
                 this.txtHWhID.Text = "";
+                this.txtHSPID.Text = "";
             }
         }
 
@@ -1021,7 +1023,7 @@
         private void cmdHSPID_Click(object sender, EventArgs e)
         {
             DAL.ClsGy_StockPlace_View oStock = new DAL.ClsGy_StockPlace_View();
-            if (oStock.RefreshView())
+            if (oStock.RefreshViewByWh(DBUtility.ClsPub.isLong(txtHWhID.Tag)))
             {
                 this.txtHSPID.Text = oStock.oModel.HName;
                 this.txtHSPID.Tag = oStock.oModel.HItemID.ToString();

--
Gitblit v1.9.1