コード例 #1
0
ファイル: Reference.cs プロジェクト: unicloud/FRP
 public static PlanHistoryDTO CreatePlanHistoryDTO(global::System.Guid ID, global::System.Guid planAircraftId, int planYear, int versionNumber, int performAnnual, int performMonth)
 {
     PlanHistoryDTO planHistoryDTO = new PlanHistoryDTO();
     planHistoryDTO.Id = ID;
     planHistoryDTO.PlanAircraftId = planAircraftId;
     planHistoryDTO.PlanYear = planYear;
     planHistoryDTO.VersionNumber = versionNumber;
     planHistoryDTO.PerformAnnual = performAnnual;
     planHistoryDTO.PerformMonth = performMonth;
     return planHistoryDTO;
 }
コード例 #2
0
ファイル: Reference.cs プロジェクト: unicloud/FRP
 public void AddToPlanHistories(PlanHistoryDTO planHistoryDTO)
 {
     base.AddObject("PlanHistories", planHistoryDTO);
 }
コード例 #3
0
ファイル: Reference.cs プロジェクト: unicloud/FRP
 public static PlanHistoryDTO CreatePlanHistoryDTO(
             global::System.Guid ID, 
             int seatingCapacity, 
             decimal carryingCapacity, 
             int performMonth, 
             bool isValid, 
             bool isSubmit, 
             bool needRequest, 
             int year, 
             int deltaCargo, 
             int deltaPnr, 
             int canRequest, 
             int canDeliver, 
             global::System.Guid planId, 
             global::System.Guid actionCategoryId, 
             global::System.Guid targetCategoryId, 
             global::System.Guid aircraftTypeId, 
             global::System.Guid airlinesId, 
             global::System.Guid performAnnualId, 
             int planType, 
             int relatedStatus, 
             int manageStatus, 
             bool paIsLock, 
             global::System.Collections.ObjectModel.ObservableCollection<ActionCateDTO> actionCategories, 
             global::System.Collections.ObjectModel.ObservableCollection<AircraftCateDTO> aircraftCategories, 
             global::System.Collections.ObjectModel.ObservableCollection<AircraftTyDTO> aircraftTypes)
 {
     PlanHistoryDTO planHistoryDTO = new PlanHistoryDTO();
     planHistoryDTO.Id = ID;
     planHistoryDTO.SeatingCapacity = seatingCapacity;
     planHistoryDTO.CarryingCapacity = carryingCapacity;
     planHistoryDTO.PerformMonth = performMonth;
     planHistoryDTO.IsValid = isValid;
     planHistoryDTO.IsSubmit = isSubmit;
     planHistoryDTO.NeedRequest = needRequest;
     planHistoryDTO.Year = year;
     planHistoryDTO.DeltaCargo = deltaCargo;
     planHistoryDTO.DeltaPnr = deltaPnr;
     planHistoryDTO.CanRequest = canRequest;
     planHistoryDTO.CanDeliver = canDeliver;
     planHistoryDTO.PlanId = planId;
     planHistoryDTO.ActionCategoryId = actionCategoryId;
     planHistoryDTO.TargetCategoryId = targetCategoryId;
     planHistoryDTO.AircraftTypeId = aircraftTypeId;
     planHistoryDTO.AirlinesId = airlinesId;
     planHistoryDTO.PerformAnnualId = performAnnualId;
     planHistoryDTO.PlanType = planType;
     planHistoryDTO.RelatedStatus = relatedStatus;
     planHistoryDTO.ManageStatus = manageStatus;
     planHistoryDTO.PaIsLock = paIsLock;
     if ((actionCategories == null))
     {
         throw new global::System.ArgumentNullException("actionCategories");
     }
     planHistoryDTO.ActionCategories = actionCategories;
     if ((aircraftCategories == null))
     {
         throw new global::System.ArgumentNullException("aircraftCategories");
     }
     planHistoryDTO.AircraftCategories = aircraftCategories;
     if ((aircraftTypes == null))
     {
         throw new global::System.ArgumentNullException("aircraftTypes");
     }
     planHistoryDTO.AircraftTypes = aircraftTypes;
     return planHistoryDTO;
 }