From 97e4a58f895c8b020f7dcd736fd608000b6db18b Mon Sep 17 00:00:00 2001
From: yxj <yxj@hz-kingdee.com>
Date: 星期五, 12 七月 2024 16:58:27 +0800
Subject: [PATCH] 新增网页版单位换算列表所需调用方法
---
BaseSet/公用资料/生产基础资料/Gy_Process.cs | 137 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 136 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 d66843d..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"
@@ -500,7 +500,47 @@
}
else
{
- txtHWasterWHID.Text = "";
+ 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 = "";
+ }
+ //
+ 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();
@@ -609,6 +649,10 @@
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.HWHID = DBUtility.ClsPub.isLong(txtHWHID.Tag.ToString());
oProc.oModel.HTypeFlow = chkHTypeFlow.Checked;
oProc.oModel.HTypeCount = chkHTypeCount.Checked;
oProc.oModel.HAutoTrunFlag = chkHAutoTrunFlag.Checked;
@@ -736,6 +780,20 @@
}
}
+ 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)
@@ -751,5 +809,82 @@
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";
+ }
+ }
+
+ //鑹搧浠�
+ 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