Exemplo n.º 1
0
        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";
        }
Exemplo n.º 2
0
 protected override void resetDataGridView()
 {
     TableForLoad = BllEquipmentAllQuery.GetTableByTimeSpan(ctBegin.Value.ToShortDateString(), ctEnd.Value.AddDays(1).ToShortDateString(), UserStatics.OptrType);
     reloadDataGridView();
 }
Exemplo n.º 3
0
 protected override void InitData()
 {
     ActionTable  = UserStatics.GetUserActions(ModuleId);
     TableForLoad = BllEquipmentAllQuery.GetTableByTimeSpan(ctBegin.Value.ToShortDateString(), ctEnd.Value.AddDays(1).ToShortDateString(), UserStatics.OptrType);
 }