Ejemplo n.º 1
0
 /// <summary>
 ///     完成运力增减计划
 /// </summary>
 /// <param name="planDetail">计划明细</param>
 /// <param name="aircraft">飞机</param>
 /// <param name="editAircraft">飞机</param>
 /// <returns>
 ///     <see cref="IFleetPlanService" />
 /// </returns>
 public void CompletePlan(PlanHistoryDTO planDetail, AircraftDTO aircraft, ref AircraftDTO editAircraft)
 {
     using (var pb = new FleetPlanServiceHelper())
     {
         pb.CompletePlan(planDetail, aircraft, ref editAircraft, this);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 ///     移除所有权历史
 /// </summary>
 /// <param name="ownership">
 ///     <see cref="IFleetPlanService" />
 /// </param>
 public void RemoveOwnership(OwnershipHistoryDTO ownership)
 {
     using (var pb = new FleetPlanServiceHelper())
     {
         pb.RemoveOwnership(ownership, this);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 ///     移除运力增减计划明细
 /// </summary>
 /// <param name="planDetail">
 ///     <see cref="IFleetPlanService" />
 /// </param>
 public void RemovePlanDetail(PlanHistoryDTO planDetail)
 {
     using (var pb = new FleetPlanServiceHelper())
     {
         //pb.RemovePlanDetail(planDetail, this);
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 ///     获取所有有效的计划
 /// </summary>
 /// <returns>
 ///     <see cref="IFleetPlanService" />
 /// </returns>
 public ObservableCollection<PlanDTO> GetAllValidPlan()
 {
     using (var pb = new FleetPlanServiceHelper())
     {
         return pb.GetAllValidPlan(this);
     }
 }
Ejemplo n.º 5
0
 /// <summary>
 ///     创建运力增减计划明细
 /// </summary>
 /// <param name="plan">计划</param>
 /// <param name="allPlanHistories"></param>
 /// <param name="planAircraft">计划飞机</param>
 /// <param name="aircraft">计划飞机</param>
 /// <param name="actionType">活动类型</param>
 /// <param name="planType">判断是否运营\变更计划</param>
 /// <returns></returns>
 public PlanHistoryDTO CreatePlanHistory(PlanDTO plan,
     QueryableDataServiceCollectionView<PlanHistoryDTO> allPlanHistories, ref PlanAircraftDTO planAircraft,
     AircraftDTO aircraft, string actionType, int planType)
 {
     using (var pb = new FleetPlanServiceHelper())
     {
         return pb.CreatePlanHistory(plan, allPlanHistories, ref planAircraft, aircraft, actionType, planType,
             this);
     }
 }
Ejemplo n.º 6
0
 /// <summary>
 ///     创建新年度的初始化计划
 /// </summary>
 /// <param name="lastPlan"></param>
 /// <param name="allPlanHistories"></param>
 /// <param name="newAnnual"></param>
 /// <returns>
 ///     <see cref="IFleetPlanService" />
 /// </returns>
 public PlanDTO CreateNewYearPlan(PlanDTO lastPlan,
     QueryableDataServiceCollectionView<PlanHistoryDTO> allPlanHistories, AnnualDTO newAnnual)
 {
     using (var pb = new FleetPlanServiceHelper())
     {
         return pb.CreateNewYearPlan(lastPlan, allPlanHistories, newAnnual);
     }
 }
Ejemplo n.º 7
0
 /// <summary>
 ///     创建新版本的运力增减计划
 /// </summary>
 /// <param name="lastPlan"></param>
 /// <param name="allPlanHistories"></param>
 /// <returns>
 ///     <see cref="IFleetPlanService" />
 /// </returns>
 public PlanDTO CreateNewVersionPlan(PlanDTO lastPlan,
     QueryableDataServiceCollectionView<PlanHistoryDTO> allPlanHistories)
 {
     using (var pb = new FleetPlanServiceHelper())
     {
         return pb.CreateNewVersionPlan(lastPlan, allPlanHistories);
     }
 }
Ejemplo n.º 8
0
 /// <summary>
 ///     创建所有权历史
 /// </summary>
 /// <param name="aircraft">
 ///     <see cref="IFleetPlanService" />
 /// </param>
 /// <returns>
 ///     <see cref="IFleetPlanService" />
 /// </returns>
 public OwnershipHistoryDTO CreateNewOwnership(AircraftDTO aircraft)
 {
     using (var pb = new FleetPlanServiceHelper())
     {
         return pb.CreateNewOwnership(aircraft, this);
     }
 }