Beispiel #1
0
        public ModelViewMonitorOrder Update(ModelViewMonitorOrder data)
        {
            EntityMonitorOrder newData = new EntityMonitorOrder()
            {
                VisitID            = data.VisitID,
                OrderID            = data.OrderID,
                CauseOrderID       = data.CauseOrderID,
                CreateDate         = data.CreateDate,
                DurationExecute    = data.DurationExecute,
                DurationOrder      = data.DurationOrder,
                DurationTransport  = data.DurationTransport,
                DurationVisit      = data.DurationVisit,
                EndOrderDate       = data.EndOrderDate,
                EndServiceDate     = data.EndServiceDate,
                EndVisitDate       = data.EndVisitDate,
                LatitudeEndOrder   = data.LatitudeEndOrder,
                LatitudeEndVisit   = data.LatitudeEndVisit,
                LatitudeStartOrder = data.LatitudeStartOrder,
                LatitudeStartVisit = data.LatitudeStartVisit,
                LogitudeEndOrder   = data.LogitudeEndOrder,
                LogitudeEndVisit   = data.LogitudeEndVisit,
                LogitudeStartOrder = data.LogitudeStartOrder,
                LogitudeStartVisit = data.LogitudeStartVisit,
                ModifyDate         = data.ModifyDate,
                NoteOrder          = data.NoteOrder,
                NoteVisit          = data.NoteVisit,
                SequenceVisit      = data.SequenceVisit,
                StartOrderDate     = data.StartOrderDate,
                StartServiceDate   = data.StartServiceDate,
                StartVisitDate     = data.StartVisitDate,
                Status             = data.Status,
                StatusOrderID      = data.StatusOrderID,
                StatusVisitID      = data.StatusVisitID,
                LatitudeAddress    = data.LatitudeAddress,
                LogitudeAddress    = data.LogitudeAddress,
                ExtraKilometrer    = data.ExtraKilometrer
            };

            new RepositoryMonitorOrder().Update(newData);
            return(data);
        }
Beispiel #2
0
 public ModelViewMonitorOrder Update(ModelViewMonitorOrder data)
 {
     return(new BusinessMonitor().Update(data));
 }
Beispiel #3
0
 public ModelViewMonitorOrder Insert(ModelViewMonitorOrder data)
 {
     return(new BusinessMonitor().Insert(data));
 }