protected override void InitControls() { ctBegin.Value = DateTime.Now.AddMonths(-1); ctEnd.Value = DateTime.Now; ctAccepter.DataSource = BllEquipmentAllQuery.GetWhoRepair(UserStatics.OptrType); ctAccepter.DisplayMember = "Name"; ctGroupMonitor.DataSource = BllEquipmentAllQuery.GetGroupMonitor(UserStatics.OptrType); ctGroupMonitor.DisplayMember = "Name"; ctManageType.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "管理分类"); ctManageType.DisplayMember = "Name"; ctMonitor.DataSource = BllEquipmentAllQuery.GetRepairMonitor(UserStatics.OptrType); ctMonitor.DisplayMember = "Name"; }
protected override void resetDataGridView() { TableForLoad = BllEquipmentAllQuery.GetTableByTimeSpan(ctBegin.Value.ToShortDateString(), ctEnd.Value.AddDays(1).ToShortDateString(), UserStatics.OptrType); reloadDataGridView(); }
protected override void InitData() { ActionTable = UserStatics.GetUserActions(ModuleId); TableForLoad = BllEquipmentAllQuery.GetTableByTimeSpan(ctBegin.Value.ToShortDateString(), ctEnd.Value.AddDays(1).ToShortDateString(), UserStatics.OptrType); }