Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 public HomeController(
     IUsersService usersService,
     IStatService statService)
 {
     _usersService = usersService;
     _statService = statService;
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
 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;
 }
Esempio n. 8
0
        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;
        }
Esempio n. 9
0
        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;
        }
Esempio n. 10
0
        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);
        }
Esempio n. 11
0
        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();
        }
Esempio n. 12
0
        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;
        }
Esempio n. 13
0
        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);
        }
Esempio n. 14
0
 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;
 }
Esempio n. 15
0
        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();
        }
Esempio n. 16
0
        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();
        }
Esempio n. 17
0
 public GetStatsCommand(IStatService statService, UserService userService)
 {
     _statService = statService;
     _userService = userService;
 }
 public StatsController(IStatService stats)
 {
     _stats = stats;
 }
Esempio n. 19
0
 /// <summary>
 /// Init Stat Controller
 /// </summary>
 /// <param name="statService">Stat Service</param>
 public StatController(IStatService statService)
 {
     _statService = statService;
 }
Esempio n. 20
0
 public CountryService(ICountryAggregateManager dbManager, ICountryNameMappingService countryNameMappingService, IStatService statService)
 {
     this.dbManager = dbManager;
     this.countryNameMappingService = countryNameMappingService;
     this.statService = statService;
 }
Esempio n. 21
0
 public AggregateCountryPopulation(IStatService statService, ISqlQueries sql)
 {
     this.statService = statService;
     this.sql         = sql;
 }
Esempio n. 22
0
 public HomeModel(IStatService statService, ILogger <HomeModel> logger)
 {
     _logger          = logger;
     this.statService = statService;
 }
 public AustinStatsPageModel(IStatService statService, ILogger <AustinStatsPageModel> logger)
 {
     _logger          = logger;
     this.statService = statService;
 }
Esempio n. 24
0
 public HomeController(IStatService statService, IMapper mapper, IUserInterfaceManager userInterfaceManager)
     : base(userInterfaceManager)
 {
     this.statService = statService;
     this.mapper = mapper;
 }
Esempio n. 25
0
 public StatsController(IStatService statService)
 {
     this.statService = statService;
 }
Esempio n. 26
0
 public HomeController(IConfig config, IStatService statService)
 {
     _config      = config;
     _statService = statService;
 }
Esempio n. 27
0
 public StatsController(IStatService statService) =>
Esempio n. 28
0
 public TagsController(ITagService tagService, IStatService statService, IUserInterfaceManager userInterfaceManager)
     : base(userInterfaceManager)
 {
     this.tagService = tagService;
     this.statService = statService;
 }
Esempio n. 29
0
 public FeedService(IStatService statService)
 {
     this.statService = statService;
 }
Esempio n. 30
0
 public AmountHelper(AppSettings appSettings, IStatService statService)
 {
     _appSettings = appSettings;
     _statService = statService;
 }
Esempio n. 31
0
 public SamStatsPageModel(IStatService statService, ILogger <SamStatsPageModel> logger)
 {
     _logger          = logger;
     this.statService = statService;
 }
Esempio n. 32
0
 public SaveStatsCommand(IStatService statService, IGeocodingService geocodingService)
 {
     _statService      = statService;
     _geocodingService = geocodingService;
 }