private void _ucbtIN_REG_Click(object sender, EventArgs e) { // pfrmPOPMain_WEIGHING_COSMETICSEntity.CORP_CODE = _pCORP_CODE; _pfrmPOPMain_RAWMATERIAL_COSMETICSEntity.USER_CODE = _pUserEntity.USER_CODE; int cnt = 0; DataTable tDataTable = _gdMAIN_VIEW.GridControl.DataSource as DataTable; if (CoFAS_DevExpressManager.ShowQuestionMessage("입고를 하시겠습니까?") == DialogResult.Yes) { _pfrmPOPMain_RAWMATERIAL_COSMETICSEntity.CRUD = "C"; bool isError; isError = new frmPOPMain_RAWMATERIAL_COSMETICSBusiness().frmPOPMain_RAWMATERIAL_COSMETICS_Info_Save(_pfrmPOPMain_RAWMATERIAL_COSMETICSEntity, tDataTable); if (isError) { CoFAS_DevExpressManager.ShowInformationMessage("저장 오류 발생! 데이터를 확인 하세요."); // CoFAS_DevExpressManager.ShowInformationMessage(_pMSG_SAVE_ERROR); } else { //정상 처리 CoFAS_DevExpressManager.ShowInformationMessage("저장 처리 되었습니다."); // CoFAS_DevExpressManager.ShowInformationMessage(_pMSG_SAVE); _pLocation_Code = _pfrmPOPMain_RAWMATERIAL_COSMETICSEntity.RTN_KEY; //저장 위치 MainFind_DisplayData(); } } }
private void _ucbtINSPECT_REG_Click(object sender, EventArgs e) { DataTable tDataTable = _gdMAIN_VIEW.GridControl.DataSource as DataTable; if (_pfrmPOPMain_RAWMATERIAL_COSMETICSEntity.ORDER_ID == "" || _pfrmPOPMain_RAWMATERIAL_COSMETICSEntity.ORDER_ID == null) { CoFAS_DevExpressManager.ShowInformationMessage("발주를 먼저 선택해주세요."); return; } if (_pINSPECT_CHECK_YN) { CoFAS_DevExpressManager.ShowInformationMessage("이미 시험을 의뢰했습니다."); return; } //입고된것이 있다면 if (Convert.ToDecimal(_pfrmPOPMain_RAWMATERIAL_COSMETICSEntity.IN_QTY) > 0) { //검사등록 if (CoFAS_DevExpressManager.ShowQuestionMessage("'" + _pfrmPOPMain_RAWMATERIAL_COSMETICSEntity.PART_NAME + "'을(를) 시험의뢰 하시겠습니까?") == DialogResult.Yes) { _pfrmPOPMain_RAWMATERIAL_COSMETICSEntity.CRUD = "U"; _pfrmPOPMain_RAWMATERIAL_COSMETICSEntity.USER_CODE = _pUSER_CODE; //_pPOPSelect_INSPECT_COSMETICSEntity.PART_CODE = _luPART_CODE.Text; frmPOPInputSamplingQty frmkey = new frmPOPInputSamplingQty(); frmkey.titleName = "의뢰수량입력"; if (frmkey.ShowDialog() == DialogResult.OK) { string PopupValue = frmkey.ReturnValue1; //검체채취량 string PopupValue2 = frmkey.ReturnValue2; //검체채취일 DisplayMessage(_ucbtINSPECT_REG.Name + " -> " + PopupValue); _pfrmPOPMain_RAWMATERIAL_COSMETICSEntity.SAMPLING_RESULT = PopupValue; _pfrmPOPMain_RAWMATERIAL_COSMETICSEntity.SAMPLING_DATE = PopupValue2; bool isError; isError = new frmPOPMain_RAWMATERIAL_COSMETICSBusiness().frmPOPMain_RAWMATERIAL_COSMETICS_INSPECT_Save(_pfrmPOPMain_RAWMATERIAL_COSMETICSEntity, tDataTable); if (isError) { //CoFAS_DevExpressManager.ShowInformationMessage("저장 오류 발생! 데이터를 확인 하세요."); // CoFAS_DevExpressManager.ShowInformationMessage("저장 오류 발생! 데이터를 확인 하세요."); } else { //정상 처리 //CoFAS_DevExpressManager.ShowInformationMessage("저장 처리 되었습니다."); CoFAS_DevExpressManager.ShowInformationMessage("저장 처리 되었습니다."); // _pLocation_Code = _pPOPSelect_INSPECT_COSMETICSEntity.RTN_KEY; //저장 위치 _pfrmPOPMain_RAWMATERIAL_COSMETICSEntity.CRUD = "R"; _pfrmPOPMain_RAWMATERIAL_COSMETICSEntity.INOUT_ID = ""; _pfrmPOPMain_RAWMATERIAL_COSMETICSEntity.PART_CODE = ""; _pfrmPOPMain_RAWMATERIAL_COSMETICSEntity.PART_NAME = ""; _pINSPECT_CHECK_YN = false; MainFind_DisplayData(); // MainFind_DisplayData(); } } } } else { CoFAS_DevExpressManager.ShowInformationMessage("입고수량이 있어야 합니다."); return; } }