| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | } |
| | | } |
| | | |
| | | //å§å¤ä¸è¯åä» |
| | | 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"; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |