private void BindReport() { IStatService service = ServiceFactory.GetService <IStatService>(); List <OrganizationStatDetailInfo> list = service.GetList_OrgDetail(this.OrgId, null, null, this.CurrencyKind, this.DeviceKind, this.DeviceModel); this.lelReportTitle.Text = this.OrgId.ToString().GetOrgName(); this.lelOperationTime.Text = "操作时间:" + ((this.StartTime.IsNullOrEmpty() && this.EndTime.IsNullOrEmpty()) ? "全部" : "{0} 至 {1}".FormatWith(this.StartTime, this.EndTime)); this.lelCurrencyKind.Text = "纸币种类:" + this.CurrencyKind.ToString().GetDictValue((int)BasicDictionary.DictKindEnum.CurrencyKind, "全部"); this.lelDeviceKind.Text = "设备类别:" + this.DeviceKind.ToString().GetDictValue((int)BasicDictionary.DictKindEnum.DeviceKind, "全部"); this.lelDeviceModel.Text = "设备型号:" + this.DeviceModel.ToString().GetDictValue((int)BasicDictionary.DictKindEnum.DeviceModel, "全部"); List <string> xValueList = new List <string>(); List <double> yValueList = new List <double>(); foreach (var item in list) { xValueList.Add(item.FaceAmount); yValueList.Add(item.Sum); } this.chartDetailt.Series["defaultSeries"].Points.DataBindXY(xValueList.ToArray(), yValueList.ToArray()); this.gvList.DataSource = list; this.gvList.DataBind(); }
public HomeController( IUsersService usersService, IStatService statService) { _usersService = usersService; _statService = statService; }
public StatController(IStatService statService, IAuthorService authorService, ITagService tagService, IUserInterfaceManager userInterfaceManager, IMapper mapper) : base(userInterfaceManager) { this.statService = statService; this.authorService = authorService; this.tagService = tagService; this.mapper = mapper; }
public StatsController( IMapper mapper, IStatService statService ) { _mapper = mapper; _statService = statService; }
public PollingService(AnkietyzatorDbContext context, IMapper mapper, IQuestionService questionService, IStatService statService) { _questionService = questionService; _statService = statService; _mapper = mapper; _context = context; }
public AccountController( IUsersService usersService, IMembershipService membershipService, IStatService statService) { _usersService = usersService; _membershipService = membershipService; _statService = statService; }
public PersonalCabinetController( IUsersService usersService, IAccountsService accountsService, ITradingSystemService tradingSystemService, IStatService statService) { _usersService = usersService; _accountsService = accountsService; _tradingSystemService = tradingSystemService; _statService = statService; }
private void BindOrgStatList() { IStatService service = ServiceFactory.GetService <IStatService>(); this.Paging.CurrentPageIndex = this.objANP.CurrentPageIndex; this.Paging.PageSize = this.objANP.PageSize; this.gvList.DataSource = service.GetList_Org(this.OrgId.ToInt(0), this.StartTime, this.EndTime, this.CurrencyKind.ToInt(0), this.DeviceKind.ToInt(0), this.DeviceModel.ToInt(0), this.Paging); this.gvList.DataBind(); this.objANP.RecordCount = this.Paging.RowCount.Value; }
private void BindDeviceStatList() { IStatService service = ServiceFactory.GetService <IStatService>(); this.Paging.CurrentPageIndex = this.objANP.CurrentPageIndex; this.Paging.PageSize = this.objANP.PageSize; this.gvList.DataSource = service.GetList_Device(this.OrgId.ToInt(0), this.OrgId.ToInt(0).ToString().GetOrgFullPath(), this.DeviceKind.ToInt(0), this.DeviceModel.ToInt(0), this.Paging); this.gvList.DataBind(); this.objANP.RecordCount = this.Paging.RowCount.Value; }
protected void btnExport_Click(object sender, EventArgs e) { IStatService service = ServiceFactory.GetService <IStatService>(); var statCurrencyList = service.GetList_Currency(this.OrgId.ToInt(), this.StartTime, this.EndTime, this.DeviceNumber, this.DeviceKind.ToInt(0), this.DeviceModel.ToInt(0), null); DataTable temp = statCurrencyList.ToDataTable(); string filePath = FileHelper.ConvertPath("~/App_File/Export/" + FileHelper.GetFileNamebyGuid(".xls")); temp.SaveToExcel(filePath); FileHelper.DownloadFile(filePath, DateTime.Now.ToString("yyyy-MM-dd") + ".xls", "application/ms-excel", true); }
private void BindReport() { IStatService service = ServiceFactory.GetService <IStatService>(); List <OrganizationStatDetailInfo> list = service.GetList_OrgDetail(this.OrgId, null, null, this.CurrencyKind, this.DeviceKind, this.DeviceModel); this.rvDetail.LocalReport.ReportPath = Server.MapPath("~/App_Report/Stat_Org_Detail.rdlc"); this.rvDetail.LocalReport.EnableExternalImages = true; this.BindReportParameter(this.rvDetail); this.BindReportDataSet(this.rvDetail, list); this.rvDetail.LocalReport.Refresh(); }
public GameService(ILogger logger, IGameCache gameCache, IUserRepository userRepository, IGameRepository gameRepository, IBoardRepository boardRepository, ILexiconService lexiconService, IStatService statService, IGameQueueService gameQueueService) { this.userRepository = userRepository; this.gameRepository = gameRepository; this.boardRepository = boardRepository; this.gameCache = gameCache; this.lexiconService = lexiconService; this.statService = statService; this.gameQueueService = gameQueueService; this.logger = logger; }
public void SetUpDependencies() { dbManager = Mock.Of <ICountryAggregateManager> (); countryNameMappingService = Mock.Of <ICountryNameMappingService>(); statService = Mock.Of <IStatService>(); countryService = new CountryService(dbManager, countryNameMappingService, statService); Mock.Get(dbManager) .Setup(d => d.GetCountriesAndPopulation()) .Returns(Task.FromResult(CreateDatasetOne())); Mock.Get(statService) .Setup(s => s.GetCountryPopulationsAsync()) .Returns(Task.FromResult(CreateDatasetTwo())); Mock.Get(countryNameMappingService) .Setup(c => c.MapCountryNameToIso3166(It.IsAny <string>())) .Returns((string s) => s); }
public BotEngine(AppSettings appSettings, IMessageParser messageParser, IWithdrawalService withdrawalService, IStatService statService, IAmountHelper amountHelper, LiteCollection <Reward> rewardCollection, LiteCollection <FriendTagMap> friendTagMapCollection, LiteCollection <UserTweetMap> userTweetMapCollection, LiteCollection <MessageCursor> messageCursorCollection, LiteCollection <AddressToUserMap> addressToUserMapCollection) { _appSettings = appSettings; _messageParser = messageParser; _withdrawalService = withdrawalService; _statService = statService; _amountHelper = amountHelper; _rewardCollection = rewardCollection; _friendTagMapCollection = friendTagMapCollection; _userTweetMapCollection = userTweetMapCollection; _messageCursorCollection = messageCursorCollection; _addressToUserMapCollection = addressToUserMapCollection; }
private void BindDeviceStatList() { IStatService service = ServiceFactory.GetService <IStatService>(); this.Paging.CurrentPageIndex = this.objANP.CurrentPageIndex; this.Paging.PageSize = this.objANP.PageSize; if (this.IsPostBack) { this.gvList.DataSource = service.GetList_Device(this.OrgId.ToInt(0), this.OrgId.ToInt(0).ToString().GetOrgFullPath(), this.DeviceKind.ToInt(0), this.DeviceModel.ToInt(0), this.Paging); this.objANP.RecordCount = this.Paging.RowCount; } else { this.gvList.DataSource = new List <DeviceStatInfo>(); this.objANP.RecordCount = 0; } this.gvList.DataBind(); }
private void BindCurrencyStatList() { IStatService service = ServiceFactory.GetService <IStatService>(); this.Paging.CurrentPageIndex = this.objANP.CurrentPageIndex; this.Paging.PageSize = this.objANP.PageSize; if (this.IsPostBack) { this.gvList.DataSource = service.GetList_Currency(this.OrgId.ToInt(), this.StartTime, this.EndTime, this.DeviceNumber, this.DeviceKind.ToInt(0), this.DeviceModel.ToInt(0), this.Paging); this.objANP.RecordCount = this.Paging.RowCount; } else { this.gvList.DataSource = new List <CurrencyStatInfo>(); this.objANP.RecordCount = 0; } this.gvList.DataBind(); }
public GetStatsCommand(IStatService statService, UserService userService) { _statService = statService; _userService = userService; }
public StatsController(IStatService stats) { _stats = stats; }
/// <summary> /// Init Stat Controller /// </summary> /// <param name="statService">Stat Service</param> public StatController(IStatService statService) { _statService = statService; }
public CountryService(ICountryAggregateManager dbManager, ICountryNameMappingService countryNameMappingService, IStatService statService) { this.dbManager = dbManager; this.countryNameMappingService = countryNameMappingService; this.statService = statService; }
public AggregateCountryPopulation(IStatService statService, ISqlQueries sql) { this.statService = statService; this.sql = sql; }
public HomeModel(IStatService statService, ILogger <HomeModel> logger) { _logger = logger; this.statService = statService; }
public AustinStatsPageModel(IStatService statService, ILogger <AustinStatsPageModel> logger) { _logger = logger; this.statService = statService; }
public HomeController(IStatService statService, IMapper mapper, IUserInterfaceManager userInterfaceManager) : base(userInterfaceManager) { this.statService = statService; this.mapper = mapper; }
public StatsController(IStatService statService) { this.statService = statService; }
public HomeController(IConfig config, IStatService statService) { _config = config; _statService = statService; }
public StatsController(IStatService statService) =>
public TagsController(ITagService tagService, IStatService statService, IUserInterfaceManager userInterfaceManager) : base(userInterfaceManager) { this.tagService = tagService; this.statService = statService; }
public FeedService(IStatService statService) { this.statService = statService; }
public AmountHelper(AppSettings appSettings, IStatService statService) { _appSettings = appSettings; _statService = statService; }
public SamStatsPageModel(IStatService statService, ILogger <SamStatsPageModel> logger) { _logger = logger; this.statService = statService; }
public SaveStatsCommand(IStatService statService, IGeocodingService geocodingService) { _statService = statService; _geocodingService = geocodingService; }