public frmPhongVan(long ID, long DTD_ID, TrangThaiForm TTForm)
 {
     InitializeComponent();
     this.IDKey = ID;
     this.DTD_ID = DTD_ID;
     this.TForm = TTForm;
     this.InitControl();
     this.InitData();
     this.InitEnabledControl();
     this.InitNghiepVu();
     this.InitButtonImage();
 }
Exemple #2
0
 private void btnLuu_Click(object sender, EventArgs e)
 {
     btnDatLich.Enabled = true;
     cboVTTD.Enabled    = true;
     if (cnnVT_UV.UpdateTrangThaiPD(dsPD))
     {
         MessageBox.Show("Cập nhật thành công");
     }
     else
     {
         MessageBox.Show("Cập nhật không thành công!\nHãy lưu lại", "Cảnh báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     dsDeCu.Clear();
     dsPD.Clear();
     ttForm = TrangThaiForm.PheDuyet;
     frmXemDuyetUV_Load(sender, e);
 }
Exemple #3
0
 private void btnDatLich_Click(object sender, EventArgs e)
 {
     if (ttForm == TrangThaiForm.PheDuyet)
     {
         ttForm = TrangThaiForm.XemPheDuyet;
         //Set_TrangThaiForm(ttForm);
         //List<clsUngVienUngTuyen> dsUVPheDuyet = ctrPD.GetUVPheDuyetChuaCoLich();
         //LoadToListView(dsUVPheDuyet);
         //btnDatLich.Enabled = true;
         frmXemDuyetUV_Load(sender, e);
     }
     else
     {
         frmLichPhongVan frmLichPV = new frmLichPhongVan();
         frmLichPV.ShowDialog();
     }
 }
Exemple #4
0
        public void Set_TrangThaiForm(TrangThaiForm tt)
        {
            if (ttForm == TrangThaiForm.PheDuyet) // trang thai phe duyet ung vien
            {
                lvwDSUV.CheckBoxes = false;
                lblDSUV.Text       = "Danh Sách Ứng Viên Đề Cử";
                btnDatLich.Enabled = false;
                btnDatLich.Visible = false;
                // btnPheDuyetUV.Visible = true;
                btnPheDuyetUV.Enabled = false;
                btnLuu.Visible        = false;
                // btnChuyenDS.Visible = true;
                btnChuyenDS.Enabled = false;
                btnHuy.Visible      = false;
                //pnlPheDuyet.Visible = true;
            }
            else if (ttForm == TrangThaiForm.XemDeCu) // trang thai xem danh sach de cu
            {
                lvwDSUV.CheckBoxes    = false;
                btnDatLich.Visible    = false;
                lblDSUV.Text          = "Danh Sách Ứng Viên Đề Cử";
                btnPheDuyetUV.Visible = false;
                btnLuu.Visible        = false;
                btnChuyenDS.Visible   = false;
                btnHuy.Visible        = false;
                //btnThoat.Location = new Point(this.Size.Width/2 , this.Size.Height - 30);
                btnThoat.Anchor = AnchorStyles.Bottom & AnchorStyles.Right;
                //pnlPheDuyet.Visible = false;

                btnReset.Visible = false;
            }
            else if (ttForm == TrangThaiForm.XemPheDuyet) // trang thai xem danh sach phe duyet
            {
                lvwDSUV.CheckBoxes    = false;
                lblDSUV.Text          = "Danh Sách Ứng Viên Đã Phê Duyệt";
                btnDatLich.Enabled    = false;
                btnDatLich.Visible    = true;
                btnPheDuyetUV.Visible = false;
                btnLuu.Visible        = false;
                btnChuyenDS.Visible   = false;
                btnHuy.Visible        = false;
                //pnlPheDuyet.Visible = true;
            }
        }
 public TrangThaiPresenter(TrangThaiForm view) => _view = view;