public void UpdateBy(DefaultListingPdfReportSetting setting) { OwnerName = setting.OwnerName; IsEmployerVisible = setting.IsEmployerVisible; IsOwnerNameVisible = setting.IsOwnerNameVisible; AreShortHalfHoursEnabled = setting.AreShortHalfHoursEnabled; AreWorkedHoursVisible = setting.AreWorkedHoursVisible; AreLunchHoursVisible = setting.AreLunchHoursVisible; AreOtherHoursVisible = setting.AreOtherHoursVisible; AreTotalWorkedHoursVisible = setting.AreTotalWorkedHoursVisible; IsVacationVisible = setting.IsVacationVisible; AreSiknessHoursVisible = setting.AreSiknessHoursVisible; AreHolidaysHoursVisible = setting.AreHolidaysHoursVisible; IsHourlyWageVisible = setting.IsHourlyWageVisible; AreVacationDaysVisible = setting.AreVacationDaysVisible; AreDietsVisible = setting.AreDietsVisible; ArePaidHolidaysVisible = setting.ArePaidHolidaysVisible; AreBonusesVisible = setting.AreBonusesVisible; AreDollarsVisible = setting.AreDollarsVisible; IsPrepaymentVisible = setting.IsPrepaymentVisible; IsSicknessVisible = setting.IsSicknessVisible; }
public DefaultSettings(string identifier) { _id = identifier; Time = new TimeSetting( new Time("06:00"), new Time("14:30"), new Time("10:30"), new Time("11:00"), new Time("00:00") ); TimeTickInMinutes = 5; Pdfsetting = new DefaultListingPdfReportSetting(); Pdfsetting.ResetSettings(); }
public bool IsEqual(object obj) { if (obj == null) { return(false); } if (object.ReferenceEquals(this, obj)) { return(true); } if (obj.GetType() != this.GetType()) { return(false); } DefaultListingPdfReportSetting setting = (DefaultListingPdfReportSetting)obj; if (string.IsNullOrEmpty(OwnerName)) { if (!string.IsNullOrEmpty(setting.OwnerName)) { return(false); } } else { if (!OwnerName.Equals(setting.OwnerName)) { return(false); } } if (IsEmployerVisible != setting.IsEmployerVisible) { return(false); } if (IsOwnerNameVisible != setting.IsOwnerNameVisible) { return(false); } if (AreShortHalfHoursEnabled != setting.AreShortHalfHoursEnabled) { return(false); } if (AreWorkedHoursVisible != setting.AreWorkedHoursVisible) { return(false); } if (AreLunchHoursVisible != setting.AreLunchHoursVisible) { return(false); } if (AreOtherHoursVisible != setting.AreOtherHoursVisible) { return(false); } if (AreTotalWorkedHoursVisible != setting.AreTotalWorkedHoursVisible) { return(false); } if (IsVacationVisible != setting.IsVacationVisible) { return(false); } if (AreSiknessHoursVisible != setting.AreSiknessHoursVisible) { return(false); } if (AreHolidaysHoursVisible != setting.AreHolidaysHoursVisible) { return(false); } if (IsHourlyWageVisible != setting.IsHourlyWageVisible) { return(false); } if (AreVacationDaysVisible != setting.AreVacationDaysVisible) { return(false); } if (AreDietsVisible != setting.AreDietsVisible) { return(false); } if (ArePaidHolidaysVisible != setting.ArePaidHolidaysVisible) { return(false); } if (AreBonusesVisible != setting.AreBonusesVisible) { return(false); } if (AreDollarsVisible != setting.AreDollarsVisible) { return(false); } if (IsPrepaymentVisible != setting.IsPrepaymentVisible) { return(false); } if (IsSicknessVisible != setting.IsSicknessVisible) { return(false); } return(true); }
public DefaultListingPdfReportSetting(DefaultListingPdfReportSetting setting) { UpdateBy(setting); }