コード例 #1
0
        private void plan_del()
        {
            ComInfo      comInfo = new ComInfo();
            DialogResult msgOk   = comInfo.deleteConfrim("계획/수주", txt_plan_date.Text.ToString() + " - " + txt_plan_cd.Text.ToString());

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

            wnDm wDm   = new wnDm();
            int  rsNum = wDm.deletePlan(txt_plan_date.Text.ToString(), txt_plan_cd.Text.ToString());

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

                plan_list(planGrid, "where A.PLAN_DATE >= '" + start_date.Text.ToString() + "' and  A.PLAN_DATE <= '" + end_date.Text.ToString() + "'");

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