Пример #1
0
        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
            });
        }
Пример #2
0
        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
            });
        }
Пример #3
0
        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
            });
        }