Beispiel #1
0
        private void plan_del()
        {
            ComInfo      comInfo = new ComInfo();
            DialogResult msgOk   = comInfo.deleteConfrim("견적서", txt_esti_date.Text.ToString() + " - " + txt_esti_cd.Text.ToString());

            if (msgOk == DialogResult.No)
            {
                return;
            }

            wnDm wDm   = new wnDm();
            int  rsNum = wDm.deleteEstimate(txt_esti_date.Text.ToString(), txt_esti_cd.Text.ToString());

            if (rsNum == 0)
            {
                resetSetting();

                esti_list(estiGrid, "where A.ESTI_DATE >= '" + start_date.Text.ToString() + "' and  A.ESTI_DATE <= '" + end_date.Text.ToString() + "'");

                MessageBox.Show("성공적으로 삭제하였습니다.");
            }
            else if (rsNum == 1)
            {
                MessageBox.Show("삭제에 실패하였습니다.");
            }
        }