王 垚
2022-04-06 9167264eeb081fdbb94d8a1d2f76f35a6ccdd5fe
BaseSet/¹«ÓÃ×ÊÁÏ/Éú²ú»ù´¡×ÊÁÏ/Gy_Process.cs
@@ -513,6 +513,26 @@
                    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;
@@ -620,6 +640,8 @@
            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;
@@ -785,5 +807,56 @@
            }
        }
        //委外不良品仓
        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";
            }
        }
    }
}