/// <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); } }
/// <summary> /// 移除所有权历史 /// </summary> /// <param name="ownership"> /// <see cref="IFleetPlanService" /> /// </param> public void RemoveOwnership(OwnershipHistoryDTO ownership) { using (var pb = new FleetPlanServiceHelper()) { pb.RemoveOwnership(ownership, this); } }
/// <summary> /// 移除运力增减计划明细 /// </summary> /// <param name="planDetail"> /// <see cref="IFleetPlanService" /> /// </param> public void RemovePlanDetail(PlanHistoryDTO planDetail) { using (var pb = new FleetPlanServiceHelper()) { //pb.RemovePlanDetail(planDetail, this); } }
/// <summary> /// 获取所有有效的计划 /// </summary> /// <returns> /// <see cref="IFleetPlanService" /> /// </returns> public ObservableCollection<PlanDTO> GetAllValidPlan() { using (var pb = new FleetPlanServiceHelper()) { return pb.GetAllValidPlan(this); } }
/// <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); } }
/// <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); } }
/// <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); } }
/// <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); } }