Пример #1
0
 public IEnumerable<StockBonusDto> Get(string stockCode)
 {
     #if DEBUG
     /*test code for communication*************************************/
     var dto = new StockBonusDto()
     {
         ShareSplitCount = 100,
     };
     var result = new List<StockBonusDto>();
     result.Add(dto);
     return result;
     /*test code for communication*************************************/
     #else
     var appService = new StockBonusAppService();
     return appService.Get(stockCode).ToDto();
     #endif
 }
Пример #2
0
        public static StockBonusDto ToDto(this IStockBonus self)
        {
            StockBonusDto outputData = new StockBonusDto
            {
                ActualDispatchRate = self.ActualDispatchRate,
                BAndHDividendAfterTax = self.BAndHDividendAfterTax,
                BAndHPreTaxDividend = self.BAndHPreTaxDividend,
                BonusRate = self.BonusRate,
                CapitalStockBaseDate = self.CapitalStockBaseDate,
                CapitalStockBeforeDispatch = self.CapitalStockBeforeDispatch,
                CapitalSurplusIncreaseRate = self.CapitalSurplusIncreaseRate,
                ConvertibleBondDate = self.ConvertibleBondDate,
                DateOfDeclaration = self.DateOfDeclaration,
                Description = self.Description,
                DispatchExpiryDate = self.DispatchExpiryDate,
                DispatchListingDate = self.DispatchListingDate,
                DispatchPrice = self.DispatchPrice,
                DispatchRate = self.DispatchRate,
                DividendAfterTax = self.DividendAfterTax,
                ExchangeRate = self.ExchangeRate,
                ExdividendDate = self.ExdividendDate,
                ExpirationDate = self.ExpirationDate,
                IncreaseRate = self.IncreaseRate,
                IssuingObject = self.IssuingObject,
                LastTradingDay = self.LastTradingDay,
                PreTaxDividend = self.PreTaxDividend,
                RegisterDate = self.RegisterDate,
                ReserveSurplusIncreaseRate = self.ReserveSurplusIncreaseRate,
                ResolutionOfShareholdersMeetingDate = self.ResolutionOfShareholdersMeetingDate,
                ShareSplitCount = self.ShareSplitCount,
                StartOrArriveDate = self.StartOrArriveDate,
                TotalDispatch = self.TotalDispatch,
                TransferredAllottedPrice = self.TransferredAllottedPrice,
                TransferredAllottedRate = self.TransferredAllottedRate,
                Type = self.Type
            };

            return outputData;
        }