public TimeTableOneDayViewModel(TimeTableOneDayInfomationItem weekTimeTable)
 {
     this.DateDay            = weekTimeTable.DateDay;
     this.DateMonth          = weekTimeTable.DateMonth;
     this.IsLightOffOffSetOn = weekTimeTable.IsLightOffOffSetOn;
     this.IsLightOnOffSetOn  = weekTimeTable.IsLightOnOffSetOn;
     this.IsLuxOff           = weekTimeTable.IsLuxOff;
     this.IsLuxOn            = weekTimeTable.IsLuxOn;
     this.TimeOff            = weekTimeTable.TimeOff;
     this.TimeOn             = weekTimeTable.TimeOn;
 }
        public TimeTableOneDayInfomationItem BackToWeekTimeTableItemInfomation()
        {
            var weekTimeTable = new TimeTableOneDayInfomationItem();

            weekTimeTable.DateDay            = this.DateDay;
            weekTimeTable.DateMonth          = this.DateMonth;
            weekTimeTable.IsLightOffOffSetOn = this.IsLightOffOffSetOn;
            weekTimeTable.IsLightOnOffSetOn  = this.IsLightOnOffSetOn;
            weekTimeTable.IsLuxOff           = this.IsLuxOff;
            weekTimeTable.IsLuxOn            = this.IsLuxOn;
            weekTimeTable.TimeOff            = this.TimeOff;
            weekTimeTable.TimeOn             = this.TimeOn;
            return(weekTimeTable);
        }
예제 #3
0
 public OneDayTimeTableViewModel(TimeTableOneDayInfomationItem weekTimeTable)
 {
     this.RuleSectionId      = weekTimeTable.RuleSectionId;
     this.TimetableSectionId = weekTimeTable.TimetableSectionId;
     this.DayOfWeekUsed      = weekTimeTable.DayOfWeekUsed;
     this.Date               = weekTimeTable.Date;
     this.DateDay            = weekTimeTable.DateDay;
     this.DateMonth          = weekTimeTable.DateMonth;
     this.IsLightOffOffSetOn = weekTimeTable.IsUsedOffSet;
     this.IsLightOnOffSetOn  = weekTimeTable.IsUsedOnSet;
     this.IsLuxOff           = weekTimeTable.IsUsedLuxOff;
     this.IsLuxOn            = weekTimeTable.IsUsedLuxOn;
     this.TimeOff            = weekTimeTable.TimeOff;
     this.TimeOn             = weekTimeTable.TimeOn;
 }
예제 #4
0
        public TimeTableOneDayInfomationItem BackToWeekTimeTableItemInfomation()
        {
            var weekTimeTable = new TimeTableOneDayInfomationItem();

            weekTimeTable.RuleSectionId      = this.RuleSectionId;
            weekTimeTable.TimetableSectionId = this.TimetableSectionId;
            weekTimeTable.DayOfWeekUsed      = this.DayOfWeekUsed;
            weekTimeTable.Date         = this.Date;
            weekTimeTable.DateDay      = this.DateDay;
            weekTimeTable.DateMonth    = this.DateMonth;
            weekTimeTable.IsUsedOffSet = this.IsLightOffOffSetOn;
            weekTimeTable.IsUsedOnSet  = this.IsLightOnOffSetOn;
            weekTimeTable.IsUsedLuxOff = this.IsLuxOff;
            weekTimeTable.IsUsedLuxOn  = this.IsLuxOn;
            weekTimeTable.TimeOff      = this.TimeOff;
            weekTimeTable.TimeOn       = this.TimeOn;
            return(weekTimeTable);
        }
예제 #5
0
 public bool Compare(TimeTableOneDayInfomationItem weekTimeTable)
 {
     if (this.RuleSectionId != weekTimeTable.RuleSectionId)
     {
         return(false);
     }
     if (this.TimetableSectionId != weekTimeTable.TimetableSectionId)
     {
         return(false);
     }
     if (this.DayOfWeekUsed != weekTimeTable.DayOfWeekUsed)
     {
         return(false);
     }
     if (this.Date != weekTimeTable.Date)
     {
         return(false);
     }
     if (this.IsLightOffOffSetOn != weekTimeTable.IsUsedOffSet)
     {
         return(false);
     }
     if (this.IsLightOnOffSetOn != weekTimeTable.IsUsedOnSet)
     {
         return(false);
     }
     if (this.IsLuxOff != weekTimeTable.IsUsedLuxOff)
     {
         return(false);
     }
     if (this.IsLuxOn != weekTimeTable.IsUsedLuxOn)
     {
         return(false);
     }
     if (this.TimeOff != weekTimeTable.TimeOff)
     {
         return(false);
     }
     if (this.TimeOn != weekTimeTable.TimeOn)
     {
         return(false);
     }
     return(true);
 }
 public bool Compare(TimeTableOneDayInfomationItem weekTimeTable)
 {
     if (this.DateDay != weekTimeTable.DateDay)
     {
         return(false);
     }
     if (this.DateMonth != weekTimeTable.DateMonth)
     {
         return(false);
     }
     if (this.IsLightOffOffSetOn != weekTimeTable.IsLightOffOffSetOn)
     {
         return(false);
     }
     if (this.IsLightOnOffSetOn != weekTimeTable.IsLightOnOffSetOn)
     {
         return(false);
     }
     if (this.IsLuxOff != weekTimeTable.IsLuxOff)
     {
         return(false);
     }
     if (this.IsLuxOn != weekTimeTable.IsLuxOn)
     {
         return(false);
     }
     if (this.TimeOff != weekTimeTable.TimeOff)
     {
         return(false);
     }
     if (this.TimeOn != weekTimeTable.TimeOn)
     {
         return(false);
     }
     return(true);
 }