private void btnThongKe_ItemClick(object sender, ItemClickEventArgs e) { ucThongKe uc = new ucThongKe(); uc.Dock = DockStyle.Fill; panelMain.Controls.Clear(); panelMain.Controls.Add(uc); }
private void init() { //Hiện tên người dùng if (Global.current_quantrivien_login != null) { if (Global.current_quantrivien_login.hoten != null) { barBtnUser.Caption = Global.current_quantrivien_login.hoten; } else { barBtnUser.Caption = "[Unknown]"; } } //Việt hóa DevExpress.XtraGrid.Localization.GridLocalizer.Active = new MyGridLocalizer(); DevExpress.XtraTreeList.Localization.TreeListLocalizer.Active = new MyTreeListLocalizer(); DevExpress.XtraEditors.Controls.Localizer.Active = new MyLocalizer(); _ucQuanLyViTri = new ucQuanLyViTri(); _ucQuanLyPhong = new ucQuanLyPhong(); _ucQuanLyPhong.selectPageDonViTaiSan = new ucQuanLyPhong.SelectPageDonViTaiSan(SelectPageDonViTaiSan); _ucQuanLyDonVi = new ucQuanLyDonVi(); _ucQuanLyLoaiTS = new ucQuanLyLoaiTS(); //_ucQuanLyTaiSan = new ucQuanLyTaiSan(); _ucQuanLyDonVi_TaiSan = new ucQuanLyDonVi_TaiSan(); //_ucPhanQuyen = new ucPhanQuyen(); _ucThongKe = new ucThongKe(); //_ucLogHeThong = new ucLogHeThong(); _ucQuanLyViTri.Dock = DockStyle.Fill; _ucQuanLyPhong.Dock = DockStyle.Fill; _ucQuanLyDonVi.Dock = DockStyle.Fill; _ucQuanLyLoaiTS.Dock = DockStyle.Fill; //_ucQuanLyTaiSan.Dock = DockStyle.Fill; _ucQuanLyDonVi_TaiSan.Dock = DockStyle.Fill; //_ucPhanQuyen.Dock = DockStyle.Fill; _ucThongKe.Dock = DockStyle.Fill; //_ucLogHeThong.Dock = DockStyle.Fill; addRibbonPage(_ucQuanLyViTri.getRibbonControl()); addRibbonPage(_ucQuanLyPhong.getRibbonControl()); addRibbonPage(_ucQuanLyDonVi.getRibbonControl()); addRibbonPage(_ucQuanLyLoaiTS.getRibbonControl()); //addRibbonPage(_ucQuanLyTaiSan.getRibbonControl()); addRibbonPage(_ucQuanLyDonVi_TaiSan.getRibbonControl()); //addRibbonPage(_ucPhanQuyen.getRibbonControl()); addRibbonPage(_ucThongKe.getRibbonControl()); //addRibbonPage(_ucLogHeThong.getRibbonControl()); drawEnd = true; ribbonMain.SelectedPage = ribbonMain.Pages.GetPageByName(rbnPageLoaiTS); ribbonMain.SelectedPage = ribbonMain.Pages.GetPageByName(rbnPageViTri); BackstageHideAllOnlyShowThongTinPhanMem(); ThongTinPhanMem(); }
public static UserControl Check(int id) { UserControl uc = null; switch (id) { case 1: uc = new ucThem(); break; case 2: uc = new ucHoaDon(); break; case 3: uc = new ucNhanVien(); break; case 4: uc = new ucVatLieu(); break; case 6: uc = new ucBangPhanCong(); break; case 7: uc = new ucSanPham(); break; case 9: uc = new ucThongKe(); break; case 10: uc = new ucHoaDonNhap(); break; case 11: uc = new ucDatLich(); break; case 12: uc = new ucBlog(); break; } return(uc); }
private void btnthongke_Click(object sender, EventArgs e) { var thongke = new ucThongKe(); cls_Main.LoadUserControl(cls_Controls._pn_UControls, thongke, 7); }