Exemplo n.º 1
0
 public void loadData()
 {
     loadLayout();
     gridControlPhong.DataSource = null;
     checkedComboBoxCoSo.Properties.DataSource      = CoSo.getAll();
     checkedComboBoxLoaiPhong.Properties.DataSource = LoaiPhong.getAll();
 }
Exemplo n.º 2
0
        private void frmSuaPermission_Load(object sender, EventArgs e)
        {
            //Load ds hạng mục
            listBoxControl_quyenHangMuc.DataSource = Permission.ENTITY_LIST;

            //load ds quyền cố định
            listBoxControl_quyenCoDinh.DataSource = Permission.STAND_ALONE_LIST;

            //load ds quyền hiện có
            gridControl_DSQuyen.DataSource = input;

            //load ds coso
            gridControl_CoSo.DataSource = CoSo.getAll();

            //load ds day
            gridControl_Day.DataSource = DayyFilter.getAll();
            gridView_Day.ExpandAllGroups();

            //load ds tang
            gridControl_Tang.DataSource = TangFilter.getAll();
            gridView_Tang.ExpandAllGroups();

            //load ds phong
            gridControl_Phong.DataSource = PhongFilter2.getAll();
            gridView_Phong.ExpandAllGroups();
        }
        public void loadData()
        {
            checkedComboBoxEdit_tinhTrang.Properties.DataSource =
                TinhTrang.getAll();

            //ucTreeLoaiTB2
            ucTreeLoaiTB2.loadData(LoaiThietBi.getAll());
            ucTreeLoaiTB2.Dock = DockStyle.Fill;
            panelLoaiTB.Controls.Clear();
            panelLoaiTB.Controls.Add(ucTreeLoaiTB2);

            checkedComboBoxEdit_coso.Properties.DataSource = null;
            checkedComboBoxEdit_coso.Properties.DataSource = CoSo.getAll();

            //datetime
            dateEdit_to.EditValue = ServerTimeHelper.getNow();

            gridControlThongKe.DataSource = null;

            //checkPermission
            btnOK.Enabled = /*btnPrint.Enabled =*/ simpleButton_View.Enabled = simpleButton_Design.Enabled = Permission.canDo(Permission._THONGKE_INBAOCAO);

            layout.load(gridViewThongKe);
        }