protected override void Add() { if (Document.Created == default(DateTime)) { Document.Created = DateTime.Now; } if (Document.CalibrationTime == null) { Document.CalibrationTime = DateTime.Now; } if (SelectedCustomerContact == null) { CustomerContactRepository.Add(new CustomerContact { Name = Document.CustomerContact }); } AddInspectionInfoCommand.Execute(null); TachographDocumentRepository.AddOrUpdate(Document); ConnectHelper.Upload(Document); }
protected override void Add() { if (IsReadOnly) { return; } Document.Created = DateTime.Now; UndownloadabilityRepository.Add(Document); ConnectHelper.Upload(Document); }
protected override void Add() { if (IsHistoryMode) { return; } Document.Created = DateTime.Now; LetterForDecommissioningRepository.Add(Document); ConnectHelper.Upload(Document); }
protected override void Add() { if (IsReadOnly || IsHistoryMode) { return; } Document.Created = DateTime.Now; Repository.AddOrUpdate(Document.Downcast <QCReport>()); var settingsRepository = GetInstance <ISettingsRepository <WorkshopSettings> >(); var workshopSettings = settingsRepository.GetWorkshopSettings(); workshopSettings.CentreQuarterlyCheckDate = DateTime.Now.Date; settingsRepository.Save(workshopSettings); ConnectHelper.Upload(Document.Downcast <QCReport>()); }
protected override void Update() { UndownloadabilityRepository.AddOrUpdate(Document); ConnectHelper.Upload(Document, true); }
protected override void Update() { LetterForDecommissioningRepository.AddOrUpdate(Document); ConnectHelper.Upload(Document, true); }
protected override void Update() { TachographDocumentRepository.AddOrUpdate(Document); ConnectHelper.Upload(Document, true); }