/// <summary>
        ///     更新接机行
        /// </summary>
        /// <param name="line">接机行DTO</param>
        /// <param name="receptionLine">接机行</param>
        private void UpdateReceptionLine(EnginePurchaseReceptionLineDTO line, EnginePurchaseReceptionLine receptionLine)
        {
            //获取合同发动机
            PurchaseContractEngine purchaseConEngine =
                _contractEngineRepository.GetFiltered(p => p.Id == line.ContractEngineId)
                    .OfType<PurchaseContractEngine>().FirstOrDefault();

            // 更新订单行
            receptionLine.ReceivedAmount = line.ReceivedAmount;
            receptionLine.AcceptedAmount = line.AcceptedAmount;
            receptionLine.SetCompleted();
            receptionLine.DeliverDate = line.DeliverDate;
            receptionLine.DeliverPlace = line.DeliverPlace;
            receptionLine.SetContractEngine(purchaseConEngine);
            receptionLine.Note = line.Note;
        }
        /// <summary>
        ///     插入新接机行
        /// </summary>
        /// <param name="reception">接机项目</param>
        /// <param name="line">接机行DTO</param>
        private void InsertReceptionLine(EnginePurchaseReception reception, EnginePurchaseReceptionLineDTO line)
        {
            //获取合同发动机
            PurchaseContractEngine purchaseConEngine =
                _contractEngineRepository.GetFiltered(p => p.Id == line.ContractEngineId)
                    .OfType<PurchaseContractEngine>().FirstOrDefault();

            // 添加接机行
            EnginePurchaseReceptionLine newRecepitonLine =
                reception.AddNewEnginePurchaseReceptionLine(line.ReceivedAmount);
            newRecepitonLine.AcceptedAmount = line.AcceptedAmount;
            newRecepitonLine.SetCompleted();
            newRecepitonLine.DeliverDate = line.DeliverDate;
            newRecepitonLine.DeliverPlace = line.DeliverPlace;
            newRecepitonLine.SetContractEngine(purchaseConEngine);
            newRecepitonLine.Note = line.Note;
        }