Ejemplo n.º 1
0
        public void CheckInterfaceRuleGroup(ShiftPair pair)
        {
            BWorkGroupCalendar  busWorkGroup = new BWorkGroupCalendar();
            WorkGroupRepository workRep      = new WorkGroupRepository(false);
            IList <WorkGroup>   list         = workRep.GetAllWorkGroupByShift(pair.ShiftId);

            foreach (WorkGroup workGroup in list)
            {
                busWorkGroup.CheckInterfaceRuleGroup(workGroup.ID);
            }
        }
Ejemplo n.º 2
0
 protected void UpdateCFP(ShiftPair obj, UIActionType action)
 {
     //return;
     if (action == UIActionType.ADD || action == UIActionType.EDIT || action == UIActionType.DELETE)
     {
         BWorkGroupCalendar  busWorkGroup = new BWorkGroupCalendar();
         WorkGroupRepository workRep      = new WorkGroupRepository(false);
         IList <WorkGroup>   list         = workRep.GetAllWorkGroupByShift(obj.ShiftId);
         foreach (WorkGroup workGroup in list)
         {
             DateTime?firstUse = shiftRepository.GetFirstShiftUsedInWorkGroup(obj.ShiftId, workGroup.ID);
             if (firstUse != null && firstUse > Utility.GTSMinStandardDateTime)
             {
                 busWorkGroup.UpdateCFPByWorkGroupId(workGroup.ID, (DateTime)firstUse);
             }
         }
     }
 }