Пример #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);
        }