public static FillLevelReading CreateFillLevelReading(DateTime dueDateBegin, DateTime dueDateEnd, ResponsibleSubject appointmentResponsibleSubject, WasteContainer readingContainer, Series series) { var dueDateAppointment = AppointmentModelFactory.CreateAppointment(dueDateBegin, dueDateEnd, series.IsAllDay); return(new FillLevelReading { AppointmentResponsibleSubject = appointmentResponsibleSubject, DueDate = dueDateAppointment, ReadingContainer = readingContainer, RelatedSeries = series }); }
public static MeterReading CreateMeterReading(DateTime dueDateBegin, DateTime dueDateEnd, double counterReading, ResponsibleSubject appointmentResponsibleSubject, Meter readingMeter, Series series) { var dueDateAppointment = AppointmentModelFactory.CreateAppointment(dueDateBegin, dueDateEnd, series.IsAllDay); return(new MeterReading { AppointmentResponsibleSubject = appointmentResponsibleSubject, DueDate = dueDateAppointment, CounterReading = counterReading, ReadingMeter = readingMeter, RelatedSeries = series }); }
public static Approval_Inspection CreateInspection(Collection <ConditionInspection> conditionInspections, DateTime dueDateBegin, DateTime dueDateEnd, ResponsibleSubject responsibleSubject, Series series, float progress) { var dueDateAppointment = AppointmentModelFactory.CreateAppointment(dueDateBegin, dueDateEnd, series.IsAllDay); return(new Approval_Inspection { AppointmentResponsibleSubject = responsibleSubject, DueDate = dueDateAppointment, RelatedSeries = series, ConditionInspections = conditionInspections, Progress = progress }); }