private void _ucbtWORK_ORDER_Click(object sender, EventArgs e) { //_pPOPProductionOrderCommonEntity.COMMON_TYPE = "frmPOPMain_PRODUCT_MIX"; //작업지시 frmPOPOrder_T01 frmOr = new frmPOPOrder_T01(_pUserEntity); frmOr.ShowDialog(); if (frmOr.dtReturn == null) { frmOr.Dispose(); return; } if (frmOr.dtReturn != null && frmOr.dtReturn.Rows.Count > 0) { _luORDER_ID.Text = frmOr.dtReturn.Rows[0]["PRODUCTION_ORDER_ID"].ToString(); _luORDER_DATE.Text = frmOr.dtReturn.Rows[0]["PRODUCTION_ORDER_DATE"].ToString(); _luORDER_QTY.Text = frmOr.dtReturn.Rows[0]["PRODUCTION_ORDER_QTY"].ToString() + " (" + frmOr.dtReturn.Rows[0]["CODE_UNIT"].ToString() + ") "; _luPART_NAME.Text = frmOr.dtReturn.Rows[0]["PART_NAME"].ToString(); _luPART_CODE.Text = frmOr.dtReturn.Rows[0]["PART_CODE"].ToString(); _luOK_QTY.Text = frmOr.dtReturn.Rows[0]["PRODUCTION_OK_QTY"].ToString() + " (" + frmOr.dtReturn.Rows[0]["CODE_UNIT"].ToString() + ") "; _luNG_QTY.Text = frmOr.dtReturn.Rows[0]["PRODUCTION_NG_QTY"].ToString() + " (" + frmOr.dtReturn.Rows[0]["CODE_UNIT"].ToString() + ") "; or_num = (int)Convert.ToDouble(frmOr.dtReturn.Rows[0]["PRODUCTION_ORDER_QTY"].ToString()); ok_num = (int)Convert.ToDouble(frmOr.dtReturn.Rows[0]["PRODUCTION_OK_QTY"].ToString()); ng_num = (int)Convert.ToDouble(frmOr.dtReturn.Rows[0]["PRODUCTION_NG_QTY"].ToString()); unit = frmOr.dtReturn.Rows[0]["CODE_UNIT"].ToString(); c_yn = frmOr.dtReturn.Rows[0]["COMPLETE_YN"].ToString(); Print_cmd = frmOr.dtReturn.Rows[0]["PRINT_CMD"].ToString(); re_num = (int)Convert.ToDouble(ok_num.ToString()) + (int)Convert.ToDouble(ng_num.ToString()); _luRESULT_QTY.Text = re_num.ToString() + " (" + unit + ") "; if (or_num <= re_num) { _luRESULT_QTY.ForeColor = Color.Red; } else { _luRESULT_QTY.ForeColor = Color.Black; } _pORDER_ID = frmOr.dtReturn.Rows[0]["PRODUCTION_ORDER_ID"].ToString(); } frmOr.Dispose(); }
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; } }