public IEnumerable<ClaimFinancialAmount> ReadClaimDetailAmountData(ClaimDetail claimDetail, bool includeEstimated, StaticValues.AmountType amountType)
        {
            ArgumentCheck.ArgumentNullCheck(claimDetail, "claimDetail");
            ArgumentCheck.ArgumentNullCheck(amountType, "amountType");

            if (_Logger.IsDebugEnabled)
            {
                _Logger.Debug(string.Format("ReadClaimDetailAmountData({0}, {1}, {2})", claimDetail.ClaimDetailID, includeEstimated, amountType));
            }

            var flattenedTransactions = claimDetail.ClaimHeader
                .GetFlattenedTransactionData()
                .Where(t => t.TransactionGroupIsInProgress && t.ClaimDetailReference == claimDetail.ClaimDetailReference);

            var amounts = flattenedTransactions.Where(t => t.AmountType == (short)amountType);
            if (!includeEstimated) amounts = amounts.Where(t => t.ReserveType != (short)StaticValues.ReserveType.Estimated);
            amounts = amounts.Where(t => t.TransactionAmountOriginal != null);

            return amounts.Select(t => CreateClaimFinancialAmount(t));
        }
        public IEnumerable<ClaimFinancialAmount> ReadClaimDetailAmountData(ClaimDetail claimDetail, StaticValues.AmountType amountType)
        {
            ArgumentCheck.ArgumentNullCheck(claimDetail, "claimDetail");
            ArgumentCheck.ArgumentNullCheck(amountType, "amountType");

            if (_Logger.IsDebugEnabled)
            {
                _Logger.Debug(string.Format("ReadClaimDetailAmountData({0}, {1})", claimDetail.ClaimDetailID, amountType));
            }

            var flattenedTransactions = claimDetail.ClaimHeader
                .GetFlattenedTransactionData()
                .Where(t => t.TransactionGroupIsInProgress && t.ClaimDetailReference == claimDetail.ClaimDetailReference);

            var amounts = from t in flattenedTransactions
                          where t.AmountType == (short)amountType
                          && t.TransactionAmountOriginal != null
                          select CreateClaimFinancialAmount(t);

            return amounts.ToList();
        }
 public IEnumerable<ClaimFinancialAmount> ReadClaimDetailAmountData(ClaimDetail claimDetail, StaticValues.AmountType amountType, FinancialAmountParticipationFilter filter, bool? isIndemnityMovementExcluded, bool? isFeeMovementExcluded, bool? isRecoveryMovementExcluded, bool isExcludedFromCurrent = false)
 {
     throw new System.NotImplementedException();
 }
 public IEnumerable<ClaimFinancialAmount> ReadClaimDetailAmountDataWithReinsurance(ClaimDetail claimDetail, bool includeEstimated, StaticValues.AmountType amountType, FinancialAmountParticipationFilter filter, bool isExcludedFromCurrent = false)
 {
     throw new System.NotImplementedException();
 }
 public IEnumerable<ClaimFinancialAmount> ReadClaimDetailAmountData(ClaimDetail claimDetail, StaticValues.AmountType amountType, FinancialAmountParticipationFilter filter)
 {
     throw new System.NotImplementedException();
 }