Esempio n. 1
0
        /// <summary>
        ///     创建航空公司五年规划
        /// </summary>
        /// <returns>航空公司五年规划</returns>
        public static AirProgramming CreateAirProgramming()
        {
            var airProgramming = new AirProgramming
            {
                CreateDate = DateTime.Now,
            };

            airProgramming.GenerateNewIdentity();
            return airProgramming;
        }
Esempio n. 2
0
        /// <summary>
        ///     插入规划行
        /// </summary>
        /// <param name="airProgramming">航空公司五年规划</param>
        /// <param name="line">规划行DTO</param>
        private void InsertAirProgrammingLine(AirProgramming airProgramming, AirProgrammingLineDTO line)
        {
            //获取
            AircraftSeries aircraftSeries = _aircraftSeriesRepository.Get(line.AircraftSeriesId);

            // 添加接机行
            AirProgrammingLine newAirProgrammingLine =
                airProgramming.AddNewAirProgrammingLine();
            newAirProgrammingLine.SetAircraftSeries(aircraftSeries);
            newAirProgrammingLine.SetAirProgramming(line.Year, line.BuyNum, line.LeaseNum, line.ExportNum);
        }