private void btnCmd_Click(object pSender, EventArgs pEventArgs) { SimpleButton pCmd = pSender as SimpleButton; string sCls = pCmd.Name.Substring(6, 2); switch (sCls) { case "10": // 실적등록 frmPopupKeypad frmkey = new frmPopupKeypad(); frmkey.titleName = pCmd.Text; if (frmkey.ShowDialog() == DialogResult.OK) { string PopupValue = frmkey.ReturnValue1; DisplayMessage(pCmd.Text + " -> " + PopupValue); } break; case "20": // 불량처리 frmPOPBad frmb = new frmPOPBad(); frmb.titleName = pCmd.Text; if (frmb.ShowDialog() == DialogResult.OK) { string PopupValue = frmb.ReturnValue1; DisplayMessage(pCmd.Text + " -> " + PopupValue); } break; case "30": // 비가동 등록 frmPOPStop frmStop = new frmPOPStop(); if (frmStop.ShowDialog() == DialogResult.OK) { } break; case "40": //작업표준서 frmPOPDocument frmdoc = new frmPOPDocument(); if (frmdoc.ShowDialog() == DialogResult.OK) { } break; case "50": //작업지시 frmPOPOrder_T01 frmOr = new frmPOPOrder_T01(_pUserEntity); if (frmOr.ShowDialog() == DialogResult.OK) { } break; default: break; } }
private void btnCmd_Click(object pSender, EventArgs pEventArgs) { SimpleButton pCmd = pSender as SimpleButton; string sCls = pCmd.Name.Substring(6, 2); switch (sCls) { case "10": // 실적등록 frmPopupKeypad frmkey = new frmPopupKeypad(); frmkey.titleName = pCmd.Text; if (frmkey.ShowDialog() == DialogResult.OK) { string PopupValue = frmkey.ReturnValue1; _lbPRODUCTION_OK_QTY.Text = PopupValue; _gdMAIN.Enabled = true; DisplayMessage(pCmd.Text + " -> " + PopupValue); } break; case "20": // 불량처리 frmPOPBad frmb = new frmPOPBad(); frmb.titleName = pCmd.Text; if (frmb.ShowDialog() == DialogResult.OK) { string PopupValue = frmb.ReturnValue1; DisplayMessage(pCmd.Text + " -> " + PopupValue); } break; case "30": // 비가동 등록 frmPOPStop frmStop = new frmPOPStop(); if (frmStop.ShowDialog() == DialogResult.OK) { } break; case "40": //작업표준서 frmPOPDocument frmdoc = new frmPOPDocument(); if (frmdoc.ShowDialog() == DialogResult.OK) { } break; case "50": //작업지시 frmPOPOrder_T03 frmOr = new frmPOPOrder_T03(_pUserEntity); frmOr.ShowDialog(); if (frmOr.dtReturn == null) { frmOr.Dispose(); return; } if (frmOr.dtReturn != null && frmOr.dtReturn.Rows.Count > 0) { _lbCONTRACT_NUMBER.Text = frmOr.dtReturn.Rows[0]["CONTRACT_NUMBER"].ToString(); _lbORDER_NUMBER.Text = frmOr.dtReturn.Rows[0]["ORDER_NUMBER"].ToString(); _lbVEND_PART_CODE.Text = frmOr.dtReturn.Rows[0]["VEND_PART_CODE"].ToString(); _lbPART_NAME.Text = frmOr.dtReturn.Rows[0]["PART_NAME"].ToString(); _lbPRODUCTION_ORDER_DATE.Text = frmOr.dtReturn.Rows[0]["PRODUCTION_ORDER_DATE"].ToString(); _lbPRODUCTION_ORDER_QTY.Text = frmOr.dtReturn.Rows[0]["PRODUCTION_ORDER_QTY"].ToString(); _lbTPRODUCTION_OK_QTY.Text = frmOr.dtReturn.Rows[0]["PRODUCTION_OK_QTY"].ToString(); _lbTPRODUCTION_PASS_QTY.Text = frmOr.dtReturn.Rows[0]["PRODUCTION_NG_QTY"].ToString(); _lbTPRODUCTION_NG_QTY.Text = frmOr.dtReturn.Rows[0]["PRODUCTION_PASS_QTY"].ToString(); sPRODUCTION_ORDER_ID = frmOr.dtReturn.Rows[0]["PRODUCTION_ORDER_ID"].ToString(); sREFERENCE_ID = frmOr.dtReturn.Rows[0]["REFERENCE_ID"].ToString(); _lbLOT_NO.Text = ""; _lbPRODUCTION_OK_QTY.Text = ""; //_lbPRODUCTION_NG_QTY.Text = ""; _lbPRODUCTION_PASS_QTY.Text = ""; } break; default: break; } }