예제 #1
0
        private void btn_Back_Click(object sender, EventArgs e)
        {
            UCProgramOutStandards uCProgramOutStandards = new UCProgramOutStandards(pnl_container, sub_id, isAdmin);

            this.Dispose();
            cMain.loadUC(pnl_container, uCProgramOutStandards);
        }
예제 #2
0
        private void btn_delete_Click(object sender, EventArgs e)
        {
            CProgramOutStandards cPOS = new CProgramOutStandards();
            var result = MessageBox.Show("Chắc chắn xóa?", "Thông báo", MessageBoxButtons.OKCancel);

            if (result == DialogResult.OK)
            {
                cPOS.Delete(subId, CDRId);
            }
            this.Dispose();
            UCProgramOutStandards uCProgramOutStandards = new UCProgramOutStandards(pnl_contain, subId, isAdmin);

            cMain.loadUC(pnl_contain, uCProgramOutStandards);
        }
예제 #3
0
 private void btn_Edit_Click(object sender, EventArgs e)
 {
     if (txt_CDRID.Text != "" && txt_Description.Text != "")
     {
         outcome.ID_CDR          = this.txt_CDRID.Text;
         outcome.Description_CDR = this.txt_Description.Text;
         outcome.ID_CDIO         = CDIOs;
         cPOS.Update(subId, POSId, outcome);
         MessageBox.Show("Sửa thông tin thành công");
         UCProgramOutStandards uCProgramOutStandards = new UCProgramOutStandards(pnl_container, subId, isAdmin);
         cMain.loadUC(pnl_container, uCProgramOutStandards);
     }
     else
     {
         MessageBox.Show("Vui lòng điền đầy đủ thông tin");
     }
 }
예제 #4
0
        private void btn_CDR_Click(object sender, EventArgs e)
        {
            UCProgramOutStandards uCProgramOutStandards = new UCProgramOutStandards(pnl_container, Sub_id, isAdmin);

            cMain.loadUC(pnl_container, uCProgramOutStandards);
        }