Ejemplo n.º 1
0
 public ValidationIssueCollection GetResults(Hours entry, HoursEntryMode entryMode, EntryApp entryApp)
 {
     return(GetResults(new List <Hours>()
     {
         entry
     }, entryMode, entryApp, EntryType.Full));
 }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
 protected HoursEntryServiceBase(CoreContext context, HoursEntryMode entryMode = HoursEntryMode.ProviderEntry)// default to more restricted of modes
 {
     Context = context;
     SessionReportService = new SessionReportService(Context);
     EntryMode            = entryMode;
 }
Ejemplo n.º 5
0
 public ValidationIssueCollection GetResults(List <Hours> entries, HoursEntryMode entryMode, EntryApp entryApp)
 {
     return(GetResults(entries, entryMode, entryApp, EntryType.Full));
 }
Ejemplo n.º 6
0
 public ValidationIssueCollection GetResults(Hours entry, HoursEntryMode entryMode, EntryApp entryApp, EntryType entryType, bool isPrecheck = false)
 {
     return(GetResults(new List <Hours> {
         entry
     }, entryMode, entryApp, entryType, isPrecheck));
 }