Exemple #1
0
 public virtual LaborRule SetDefaultProperty()
 {
     //TODO:Verify who set DefaultMaxLaborHour value to cache
     this.MaxLaborHour = new TimeSpan(ApplicationCache.Get<int>(Global.DefaultMaxLaborHour), 0, 0);
     this.MinLaborHour = new TimeSpan(ApplicationCache.Get<int>(Global.DefaultMinLaborHour), 0, 0);
     //xGroupingArrangeShift = new GroupingArrangeShift();
     DayOffRule = new DayOffRule();
     DayOffMask = new MaskOfDay();
     return this;
 }
Exemple #2
0
 public virtual LaborRule SetDefaultProperty()
 {
     //TODO:Verify who set DefaultMaxLaborHour value to cache
     this.MaxLaborHour = new TimeSpan(ApplicationCache.Get <int>(Global.DefaultMaxLaborHour), 0, 0);
     this.MinLaborHour = new TimeSpan(ApplicationCache.Get <int>(Global.DefaultMinLaborHour), 0, 0);
     //xGroupingArrangeShift = new GroupingArrangeShift();
     DayOffRule = new DayOffRule();
     DayOffMask = new MaskOfDay();
     return(this);
 }
Exemple #3
0
 public FWException(string agentId, DateTime start, DateTime end, int fw, DayOffRule rule)
     : base(agentId, start, end, LaborRuleCategory.Gap, string.Format(LanguageReader.GetValue("Shifts_FWException"), fw,
     rule.MinFWTimes, rule.MaxFWTimes))
 {
     TimeRangeDisplayText = string.Format("{0:yyyy MM/dd} - {1:yyyy MM/dd}", start, end);
 }