public ValidationIssueCollection GetResults(Hours entry, HoursEntryMode entryMode, EntryApp entryApp) { return(GetResults(new List <Hours>() { entry }, entryMode, entryApp, EntryType.Full)); }
public ValidationIssueCollection GetResults(List <Hours> entries, HoursEntryMode entryMode, EntryApp entryApp, EntryType entryType, bool isPrecheck = false) { var repo = new ResolutionServiceRepository(_context); var service = new ResolutionService(entries, repo) { EntryMode = entryMode, EntryType = entryType, IsPreCheck = isPrecheck }; return(service.Resolve(entryApp)); }
public void Prepare(Hours entry, HoursEntryMode entryMode) { var repo = new ResolutionServiceRepository(_context); var service = new ResolutionService(new List <Hours>() { entry }, repo) { EntryMode = entryMode }; _preparedService = service; }
protected HoursEntryServiceBase(CoreContext context, HoursEntryMode entryMode = HoursEntryMode.ProviderEntry)// default to more restricted of modes { Context = context; SessionReportService = new SessionReportService(Context); EntryMode = entryMode; }
public ValidationIssueCollection GetResults(List <Hours> entries, HoursEntryMode entryMode, EntryApp entryApp) { return(GetResults(entries, entryMode, entryApp, EntryType.Full)); }
public ValidationIssueCollection GetResults(Hours entry, HoursEntryMode entryMode, EntryApp entryApp, EntryType entryType, bool isPrecheck = false) { return(GetResults(new List <Hours> { entry }, entryMode, entryApp, entryType, isPrecheck)); }