/// <summary>
        ///     更新接机行
        /// </summary>
        /// <param name="line">接机行DTO</param>
        /// <param name="receptionLine">接机行</param>
        private void UpdateReceptionLine(AircraftPurchaseReceptionLineDTO line,
            AircraftPurchaseReceptionLine receptionLine)
        {
            //获取合同飞机
            PurchaseContractAircraft purchaseConAc =
                _contractAircraftRepository.GetFiltered(p => p.Id == line.ContractAircraftId)
                    .OfType<PurchaseContractAircraft>().FirstOrDefault();

            // 更新订单行
            receptionLine.ReceivedAmount = line.ReceivedAmount;
            receptionLine.AcceptedAmount = line.AcceptedAmount;
            receptionLine.SetCompleted();
            receptionLine.DeliverDate = line.DeliverDate;
            receptionLine.DeliverPlace = line.DeliverPlace;
            receptionLine.DailNumber = line.DailNumber;
            receptionLine.FlightNumber = line.FlightNumber;
            receptionLine.SetContractAircraft(purchaseConAc);
            receptionLine.Note = line.Note;
        }
        /// <summary>
        ///     插入新接机行
        /// </summary>
        /// <param name="reception">接机项目</param>
        /// <param name="line">接机行DTO</param>
        private void InsertReceptionLine(AircraftPurchaseReception reception, AircraftPurchaseReceptionLineDTO line)
        {
            //获取合同飞机
            PurchaseContractAircraft purchaseConAc =
                _contractAircraftRepository.GetFiltered(p => p.Id == line.ContractAircraftId)
                    .OfType<PurchaseContractAircraft>().FirstOrDefault();

            // 添加接机行
            AircraftPurchaseReceptionLine newRecepitonLine =
                reception.AddNewAircraftPurchaseReceptionLine(line.ReceivedAmount);
            newRecepitonLine.AcceptedAmount = line.AcceptedAmount;
            newRecepitonLine.SetCompleted();
            newRecepitonLine.DeliverDate = line.DeliverDate;
            newRecepitonLine.DeliverPlace = line.DeliverPlace;
            newRecepitonLine.DailNumber = line.DailNumber;
            newRecepitonLine.FlightNumber = line.FlightNumber;
            newRecepitonLine.SetContractAircraft(purchaseConAc);
            newRecepitonLine.Note = line.Note;
        }