Exemplo n.º 1
0
        /// <summary>
        ///     更新规划行
        /// </summary>
        /// <param name="line">规划行DTO</param>
        /// <param name="caacProgrammingLine">规划行</param>
        private void UpdateCaacProgrammingLine(CaacProgrammingLineDTO line, CaacProgrammingLine caacProgrammingLine)
        {
            //获取
            AircraftCategory aircraftCategory = _aircraftCategoryRepository.Get(line.AircraftCategoryId);

            // 更新订单行
            caacProgrammingLine.SetAircraftCategory(aircraftCategory);
            caacProgrammingLine.SetCaacProgramming(line.Year, line.Number);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 新增民航局五年规划行
        /// </summary>
        /// <returns></returns>
        public CaacProgrammingLine AddNewCaacProgrammingLine()
        {
            var caacProgrammingLine = new CaacProgrammingLine
            {
                CaacProgrammingId = Id,
            };

            caacProgrammingLine.GenerateNewIdentity();
            CaacProgrammingLines.Add(caacProgrammingLine);

            return caacProgrammingLine;
        }