Esempio n. 1
0
        public static async Task <bool> CanAssignOperative(this WorkOrder wo, IScheduleOfRatesGateway scheduleOfRatesGateway)
        {
            if (wo.AssignedToPrimary is null)
            {
                return(false);
            }

            var contractor = await scheduleOfRatesGateway.GetContractor(wo.AssignedToPrimary.ContractorReference);

            return(contractor.CanAssignOperative);
        }
Esempio n. 2
0
        public static async Task <bool> ContractorUsingDrs(this WorkOrder wo, IScheduleOfRatesGateway scheduleOfRatesGateway)
        {
            if (wo.AssignedToPrimary is null)
            {
                return(false);
            }

            var contractor = await scheduleOfRatesGateway.GetContractor(wo.AssignedToPrimary.ContractorReference);

            return(contractor.UseExternalScheduleManager);
        }