private void inputLogic() { try { DialogResult msgOk = comInfo.warningMessage("출고 승인시 출고 품목의 재고가 감소되며\n승인 이후 되돌릴 수 없습니다.\n정말로 승인하시겠습니까?"); if (msgOk == DialogResult.No) { return; } wnDm wDm = new wnDm(); int rsNum = wDm.approval_Product_Output( txt_approval_date.Text , txt_Output_date.Text , txt_Output_cd.Text , txt_cust_cd.Text , txt_plan_date.Text , txt_plan_cd.Text , txt_tax_cd.Text , ProductGrid , TotalSumGrid ); if (rsNum == 0) { //input_list(tdInputGrid, "where convert(varchar(10), Z.INTIME, 120) = convert(varchar(10), getDate(), 120) "); //input_list(inputGrid, "where Z.INPUT_DATE >= '" + start_date.Text.ToString() + "' and Z.INPUT_DATE <= '" + end_date.Text.ToString() + "'"); input_list("WHERE 1=1"); resetSetting(); MessageBox.Show("성공적으로 승인하였습니다."); } else if (rsNum == 1) { MessageBox.Show("저장에 실패하였습니다"); } else if (rsNum == 2) { MessageBox.Show("조건 검사 중 에러"); } else if (rsNum == 3) { MessageBox.Show("발주수량보다 초과 입력 하셨습니다. \n 체크 후 다시 저장 하시기 바랍니다."); } else { MessageBox.Show("Exception 에러"); } } catch (Exception ex) { MessageBox.Show(ex + ""); Console.WriteLine(ex.StackTrace); Console.WriteLine(ex.Message + ex); } }