void doCreate() { if (MsgBox.Show("원가마감하겠습니까?", "확인!!", MessageBoxButtons.YesNo) != DialogResult.Yes) { return; } try { var res = DBTranHelper.ProcedureCall("CreateCostPrice", new DataMap() { { "CLOSING_YM", datClosingYm.GetDateChar6() } }); if (res.ErrorNumber != 0) { throw new Exception(res.ErrorMessage); } ShowMsgBox("생성하였습니다."); DataLoad(null); } catch (Exception ex) { ShowErrBox(ex); } }
void doCreate() { if (MsgBox.Show("선택한 연도의 캘린더를 생성하겠습니까?", "확인!!", MessageBoxButtons.YesNo) != DialogResult.Yes) { return; } try { var res = DBTranHelper.ProcedureCall("CreateCalendar", new DataMap() { { "CAL_YEAR", datCalYear.GetDateChar4().ToIntegerNullToZero() } }); if (res.ErrorNumber != 0) { throw new Exception(res.ErrorMessage); } ShowMsgBox("생성하였습니다."); DataLoad(null); } catch (Exception ex) { ShowErrBox(ex); } }