public TimeSheetRecord(TimeSheetRecord tsRecord) { _fromTime = tsRecord.FromTime; _toTime = tsRecord.ToTime; _timeSheetType = tsRecord.TimeSheetType; _status = tsRecord.Status; }
public Color GetColorByTimeSheetStatus(TimeSheetStatus status) { if (this.StatusColors != null && this.StatusColors.Count > 0) { foreach (TimeSheetStatusColor statusColor in this.StatusColors) { if (statusColor.Status == status) { return(statusColor.Color); } } } return(Color.Empty); }
public TimeSheetDay(TimeSheetDay tsDay) { // Copy status _status = tsDay.Status; _catalog = tsDay.Catalog; // Copy shifts if (tsDay.ShiftItems != null) { this.ShiftItems = new List <ShiftRecord>(); this.ShiftItems.AddRange(tsDay.ShiftItems); } // Copy leaves if (tsDay.LeaveItems != null) { this.LeaveItems = new List <LeaveRecord>(); this.LeaveItems.AddRange(tsDay.LeaveItems); } // Copy day _day = tsDay.Day; }
public TimeSheetStatusColor(TimeSheetStatus status, Color color) { this.Status = status; this.Color = color; }