Esempio n. 1
0
 public BrokerWMPFeeViewModel(int innerCode, WMPRepository repository)
 {
     BrokerFeeData = repository.GetWmpBrokerFeeById(innerCode);
     ManageFee     = BrokerFeeData.Where(m => m.FEE_TYPE == 5).Select(m => new Tuple <string, string, string, string>(m.ANNU_YLD, m.UNT_NV, m.FEE, m.REMARK)).ToList();
     CustodianFee  = BrokerFeeData.Where(m => m.FEE_TYPE == 6).Select(m => new Tuple <string, string, string, string>(m.ANNU_YLD, m.UNT_NV, m.FEE, m.REMARK)).ToList();;
     SubscribeFee  = BrokerFeeData.Where(m => m.FEE_TYPE == 1).Select(m => new Tuple <string, string, string>(m.MNY, m.TERM, m.FEE)).ToList();
     PurchaseFee   = BrokerFeeData.Where(m => m.FEE_TYPE == 3).Select(m => new Tuple <string, string, string>(m.MNY, m.TERM, m.FEE)).ToList();
     RedeemFee     = BrokerFeeData.Where(m => m.FEE_TYPE == 7).Select(m => new Tuple <string, string, string>(m.MNY, m.TERM, m.FEE)).ToList();
     InnerCode     = innerCode;
 }