private void jumun_del() { ComInfo comInfo = new ComInfo(); DialogResult msgOk = comInfo.deleteConfrim("주문서", txt_jumun_date.Text.ToString() + " - " + txt_jumun_cd.Text.ToString()); if (msgOk == DialogResult.No) { return; } if (chk_complete_yn.Checked == true && chk_complete_yn.Enabled == false) { MessageBox.Show("이미 납품된 주문서는 삭제할 수 없습니다."); return; } wnDm wDm = new wnDm(); int rsNum = wDm.deleteJumun(txt_jumun_date.Text.ToString(), txt_jumun_cd.Text.ToString()); if (rsNum == 0) { resetSetting(); jumun_list(); MessageBox.Show("성공적으로 삭제하였습니다."); } else if (rsNum == 1) { MessageBox.Show("삭제에 실패하였습니다."); } }