Example #1
0
        public decimal?GetActiveHourlyRate(DateTime refDate, Cases.Case @case, Services.Service service)
        {
            // precedence: Case, Service, Provider, Static
            var caseRate = GetCaseRateAtDate(refDate, @case);

            if (caseRate != null)
            {
                return(caseRate.Rate);
            }
            var serviceRate = GetServiceRateAtDate(refDate, service);

            if (serviceRate != null)
            {
                return(serviceRate.Rate);
            }
            var providerRate = GetProviderRateAtDate(refDate);

            if (providerRate != null)
            {
                if (providerRate.Type == RateType.Hourly)
                {
                    return(providerRate.Rate);
                }
                else
                {
                    throw new NotImplementedException();
                    // need a salary to hours conversion... waiting on client
                }
            }
            return(HourlyRate);
        }
Example #2
0
 public ServiceRate GetServiceRateAtDate(DateTime refDate, Services.Service service)
 {
     return(ServiceRates
            .Where(x => x.EffectiveDate <= refDate && x.ServiceID == service.ID)
            .OrderByDescending(x => x.EffectiveDate)
            .FirstOrDefault());
 }
Example #3
0
        public ActionResult AttendaceRecrod()
        {
            Services.Service service = new Services.Service();

            var RecrodList = new List <AttendanceSystem.Models.GetString>();
            var MemberList = new List <AttendanceSystem.Models.GetMember>();

            RecrodList = service.GetJsonFunction();
            MemberList = service.GetMemberFunction();
            var Result = service.CompareFunction(RecrodList, MemberList); //AttendanceSystem.Models.Service.GetMemberFunction();

            return(View(Result));
        }
Example #4
0
        public static void Main(string[] args)
        {
            logger.Warn("Starting DSMR parser service.");

            if (Environment.UserInteractive)
            {
                RunInteractive();
            }
            else
            {
                logger.Info("Starting Windows service.");
                using (var service = new Services.Service(new Server())) {
                    ServiceBase.Run(service);
                }
            }
        }
 public LoginControl(Services.Service service)
 {
     InitializeComponent();
     this.service = service;
 }
 public LoginControl(Services.Service service)
 {
     InitializeComponent();
     this.service = service;
 }