| | |
| | | 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(); |
| | |
| | | { |
| | | 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 = ""; |
| | | } |
| | | // |
| | | txtHNumber.Text = oProcHlp.omodel.HNumber.ToString(); |
| | | txtHRemark.Text = oProcHlp.omodel.HRemark; |
| | | txtHProcCheckNote.Text = oProcHlp.omodel.HProcCheckNote; |
| | |
| | | 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 |
| | |
| | | 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.HTypeFlow = chkHTypeFlow.Checked; |
| | | oProc.oModel.HTypeCount = chkHTypeCount.Checked; |
| | | oProc.oModel.HAutoTrunFlag = chkHAutoTrunFlag.Checked; |
| | |
| | | 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 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"; |
| | | } |
| | | } |
| | | } |
| | | } |