private void delete_Haccp_Doc(string path, string staff_cd) { wnDm wDm = new wnDm(); if (System.IO.File.Exists(@path)) { try { System.IO.File.Delete(@path); } catch (System.IO.IOException e) { Console.WriteLine(e.Message); return; } } int rst = wDm.Delete_Haccp_Doc(path, staff_cd); if (rst == 0) { MessageBox.Show("성공적으로 삭제했습니다"); fn_insert_list("where STAFF_CD = '" + txt_staff_cd.Text + "' and INPUT_DATE >= '" + txt_lower_date.Text + "' and INPUT_DATE <= '" + txt_upper_date.Text + "' " + ((txt_docs_srch.Text == null || txt_docs_srch.Text.ToString().Equals("")) ? "" : "and FNAME like '%" + txt_docs_srch.Text.ToString() + "%' ")); } else if (rst == 1) { MessageBox.Show("삭제에 실패했습니다."); } else if (rst == 9) { MessageBox.Show("sql오류 발생"); } }