using YLErp.Model.Enum; namespace YLErp.Model { public class FinancialVoucherGenerator { public static FinancialStatement GetFinancialStatement(FinancialVoucherAbstractEnum abstractEnum, bool isSamePeer, string clientName, double cashAmount, bool isCashOut = false, bool isBuy = false, string contractCode = null, double optionFee = 0.0, double strikeFee = 0.0, double unWindFee = 0.0) { //switch (abstractEnum) //{ // case FinancialVoucherAbstractEnum.DepositWithdraw: // return DepositWithdrawGenerator.GetFinancialStatement(isSamePeer, clientName, cashAmount, isCashOut); // case FinancialVoucherAbstractEnum.AROrAPOptionFee: // return AROrAPOptionFeeGenerator.GetFinancialStatement(isSamePeer, clientName, isBuy, contractCode, optionFee); // case FinancialVoucherAbstractEnum.MaturityInvestmentIncome: // return MaturityInvestmentIncomeGenerator.GetFinancialStatement(isSamePeer, clientNamet, isBuy, contractCode, cashAmoun,); // case FinancialVoucherAbstractEnum.TerminationInvestmentIncome: // return TerminationInvestmentIncomeGenerator.GetFinancialStatement(isSamePeer, clientName, cashAmount, isBuy, contractCode); // default: // return null; //} return null; } } }