Exemplo n.º 1
0
 public static InterestStorageLevyCommisionPLData Create(System.Data.DataRow dr)
 {
      var data = new InterestStorageLevyCommisionPLData();
      CreateHelper(dr, data);
     data.Type = BusinessTypeEnum.Levy;
     data.OriginAmount = (decimal)dr["Levy"];
     data.EquvAmount = data.OriginAmount * data.ExchangeRate;
     return data;
 }
 public static FlexInterface.Common.InterestStorageLevyCommisionPLData Create(System.Data.DataRow dr)
 {
     var data = new InterestStorageLevyCommisionPLData();
     CreateHelper(dr, data);
     data.Type = FlexInterface.Common.BusinessTypeEnum.InterestPL;
     data.OriginAmount = (decimal)dr["InterestPLValued"];
     data.EquvAmount = data.ExchangeRate * data.OriginAmount;
     return data;
 }
Exemplo n.º 3
0
 private InterestStorageLevyCommisionPLData GetPLData()
 {
     InterestStorageLevyCommisionPLData interestData = new InterestStorageLevyCommisionPLData();
     interestData.Type = this._businessType;
     interestData.FromMt4LoginID = "person001";
     interestData.ToMt4LoginID = "WF0002";
     interestData.FromTradeDay = DateTime.Now.AddDays(-10);
     interestData.ToTradeDay = DateTime.Now;
     interestData.OriginAmount = 2345.5678m;
     interestData.ExchangeRate = 7.8889m;
     interestData.EquvAmount = interestData.OriginAmount * interestData.ExchangeRate;
     interestData.CurrencyCode = "HKD";
     interestData.FromCustomerNo = "MinCustomerNo";
     interestData.ToCustomerNo = "MaxCustomerNo";
     interestData.ProductName = "LLS伦敦金";
     return interestData;
 }