Exemplo n.º 1
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            try
            {
                int  rsNum = 2;
                wnDm wdm   = new wnDm();
                rsNum = wdm.Delete_Haccp_Input(txt_chk_date.Text, txt_input_cd.Text);

                if (rsNum == 0)
                {
                    resetSetting();
                    input_list(dataCcpGrid, "where A.INPUT_DATE >= '" + start_date.Text.ToString() + "' and  A.INPUT_DATE <= '" + end_date.Text.ToString() + "'");
                    MessageBox.Show("성공적으로 삭제하였습니다.");
                }
                else if (rsNum == 1)
                {
                    MessageBox.Show("삭제에 실패하였습니다");
                }
                else
                {
                    MessageBox.Show("Exception 에러");
                }
            }

            catch (Exception e2)
            {
                MessageBox.Show("시스템 에러: " + e2.Message.ToString());
            }
        }