Exemplo n.º 1
0
        /// <summary>
        /// 新增航空公司五年规划行
        /// </summary>
        /// <returns></returns>
        public AirProgrammingLine AddNewAirProgrammingLine()
        {
            var airProgrammingLine = new AirProgrammingLine
            {
                AirProgrammingId = Id,
            };

            airProgrammingLine.GenerateNewIdentity();
            AirProgrammingLines.Add(airProgrammingLine);

            return airProgrammingLine;
        }
Exemplo n.º 2
0
        /// <summary>
        ///     更新规划行
        /// </summary>
        /// <param name="line">规划行DTO</param>
        /// <param name="airProgrammingLine">规划行</param>
        private void UpdateAirProgrammingLine(AirProgrammingLineDTO line, AirProgrammingLine airProgrammingLine)
        {
            //获取
            AircraftSeries aircraftSeries = _aircraftSeriesRepository.Get(line.AircraftSeriesId);

            // 更新订单行
            airProgrammingLine.SetAircraftSeries(aircraftSeries);
            airProgrammingLine.SetAirProgramming(line.Year, line.BuyNum, line.LeaseNum, line.ExportNum);
        }