private void order_del() { ComInfo comInfo = new ComInfo(); DialogResult msgOk = comInfo.deleteConfrim("발주서", txt_order_date.Text.ToString() + " - " + txt_order_cd.Text.ToString()); if (msgOk == DialogResult.No) { return; } wnDm wDm = new wnDm(); int rsNum = wDm.deleteOrder(txt_order_date.Text.ToString(), txt_order_cd.Text.ToString()); if (rsNum == 0) { resetSetting(); StringBuilder sb = new StringBuilder(); sb.AppendLine("and A.ORDER_DATE >= '" + start_date.Text.ToString() + "' and A.ORDER_DATE <= '" + end_date.Text.ToString() + "'"); string str = queryStr(sb.ToString()); order_list(orderGrid, str); MessageBox.Show("성공적으로 삭제하였습니다."); } else if (rsNum == 1) { MessageBox.Show("삭제에 실패하였습니다."); } }