コード例 #1
0
        public Domain.Planning.Plan CreateDomainPlan(
            PAI.FRATIS.SFL.Domain.Planning.PlanConfig planConfig,
            Drayage.Optimization.Model.Planning.Plan planModel,
            int run,
            bool userCreated)
        {
            var plan = new PAI.FRATIS.SFL.Domain.Planning.Plan()
            {
                Run         = run,
                UserCreated = userCreated,
                PlanConfig  = planConfig
            };

            _mapperService.MapModelToDomain(planModel, plan);

            plan.SubscriberId = planConfig.SubscriberId;
            _planService.Insert(plan);

            return(plan);
        }
コード例 #2
0
 public void RecalculatePlanStatistics(Drayage.Optimization.Model.Planning.Plan plan)
 {
     _planGenerator.RecalculatePlanStatistics(plan);
 }