private void output_del() { ComInfo comInfo = new ComInfo(); DialogResult msgOk = comInfo.deleteConfrim("이슈", txt_이슈일자.Text.ToString() + " - " + txt_out_cd.Text.ToString()); if (msgOk == DialogResult.No) { return; } if (txt_jang_cd == null || txt_jang_cd.Text == null) { txt_jang_cd.Text = ""; } wnDm wDm = new wnDm(); int rsNum = wDm.delete이슈(txt_이슈일자.Text.ToString(), txt_out_cd.Text.ToString()); if (rsNum == 0) { resetSetting(); output_list(dgv등록이슈, "where convert(varchar(10), A.INTIME, 120) = convert(varchar(10), getDate(), 120) "); output_list(outputGrid, "where A.OUTPUT_DATE >= '" + txt_start_date.Text.ToString() + "' and A.OUTPUT_DATE <= '" + txt_end_date.Text.ToString() + "'"); MessageBox.Show("성공적으로 삭제하였습니다."); //int rsNum2 = wDm.updateStRaw(inputRmGrid); //if (rsNum2 == 0) //{ // resetSetting(); // input_list(tdInputGrid, "where convert(varchar(10), A.INTIME, 120) = convert(varchar(10), getDate(), 120) "); // input_list(inputGrid, "where A.INPUT_DATE >= '" + start_date.Text.ToString() + "' and A.INPUT_DATE <= '" + end_date.Text.ToString() + "'"); //} //else if (rsNum == 1) //{ // MessageBox.Show("저장에 실패하였습니다"); //} //else //{ // MessageBox.Show("Exception 에러"); //} } else if (rsNum == 1) { MessageBox.Show("삭제에 실패하였습니다."); } }