private void dept_del() { wnDm wDm = new wnDm(); int rsNum = wDm.deleteDept(txtDeptCd.Text.ToString()); if (rsNum == 0) { btnDelete.Enabled = false; txtDeptCd.Enabled = true; txtDeptCd.Text = ""; txtDeptNm.Text = ""; txtDeptCmt.Text = ""; lbl_dept_gbn.Text = ""; dept_list(); MessageBox.Show("성공적으로 삭제하였습니다."); } else if (rsNum == 1) { MessageBox.Show("삭제에 실패하였습니다"); } else { MessageBox.Show("Exception 에러"); } }