Esempio n. 1
0
 private void BtnTongQuan_ThongBao_Click(object sender, EventArgs e)
 {
     ClearPanelUser();
     USCTongQuan.Dispose();
     USCTongQuan = new UserControlTongQuanMain(1918, 913);
     pnlUserControl.Controls.Add(USCTongQuan);
     ResetColorTab();
 }
Esempio n. 2
0
 private void BtnTabTongQuan_Click(object sender, EventArgs e)
 {
     ClearPanelUser();
     USCTongQuan.Dispose();
     USCTongQuan = new UserControlTongQuanMain(1918, 913);
     pnlUserControl.Controls.Add(USCTongQuan);
     ResetColorTab();
     pnlButtonTongQuan.Visible           = true;
     btnTabTongQuan.Appearance.BackColor = Green_Hover;
 }
Esempio n. 3
0
 public FormWork(string username)
 {
     InitializeComponent();
     btnQuanLiTaiKhoan.Visible = false;
     if (username == "admin")
     {
         simpleButton1.Text        = username;
         ThongTinDangNhap.Username = username;
         ThongTinDangNhap.ChucVu   = "admin";
         btnQuanLiTaiKhoan.Visible = true;
     }
     else
     {
         Stelia_BUS.Stelia_BUS bus = new Stelia_BUS.Stelia_BUS();
         DTO_NhanVien[]        nv  = bus.search_NhanVien(username);
         ThongTinDangNhap.Username = username;
         ThongTinDangNhap.ChucVu   = nv[0].CHUCVU;
         simpleButton1.Text        = nv[0].HOTEN;
         if (ThongTinDangNhap.ChucVu == "Quản lí kho")
         {
             Disable_Moderator_Kho();
         }
         if (ThongTinDangNhap.ChucVu == "Quản lí nhân sự")
         {
             Disable_Moderator_Nhan_Su();
         }
         if (ThongTinDangNhap.ChucVu == "Thu ngân")
         {
             Disable_Moderator_Kho();
             Disable_Moderator_Nhan_Su();
             Enable_Thu_Ngan();
         }
         if (ThongTinDangNhap.ChucVu == "Tạp vụ" || ThongTinDangNhap.ChucVu == "Bảo vệ")
         {
             Disable_Moderator_Kho();
             Disable_Moderator_Nhan_Su();
             btnBaoCao.Enabled = false;
             btnQuanLy.Enabled = false;
         }
     }
     pnlUserControl.Controls.Add(USCTongQuan);
     USCTongQuan.Dispose();
     USCTongQuan = new UserControlTongQuanMain(1918, 913);
     pnlUserControl.Controls.Add(USCTongQuan);
 }