public void ProcessCheckingForWinningBets(GameMode gameMode) { RaiseEvent(LotteryDataWorkerEventStages.INIT, ResourcesUtils.GetMessage("lot_data_worker_cls_msg_1")); LotteryBetDao lotteryBetDao = LotteryBetDaoImpl.GetInstance(); List <LotteryBet> lotteryBetArr = lotteryBetDao.ExtractLotteryBetsCheckWinningNumber(gameMode); foreach (LotteryBet lotteryBet in lotteryBetArr) { ProcessWinningBet(lotteryBet); } RaiseEvent(LotteryDataWorkerEventStages.FINISH, ResourcesUtils.GetMessage("lot_data_worker_cls_msg_2")); }
public ReportDataServices(LotteryDetails lotteryDetails) { this.lotteryDetails = lotteryDetails; this.lotteryDataDerivation = new LotteryDataDerivation(GameMode); this.lotteryTicketPanelDao = LotteryTicketPanelDaoImpl.GetInstance(); this.lotteryOutletDao = LotteryOutletDaoImpl.GetInstance(); this.lotteryBetDao = LotteryBetDaoImpl.GetInstance(); this.userSettingDao = UserSettingDaoImpl.GetInstance(); this.lotteryScheduleDao = LotteryScheduleDaoImpl.GetInstance(); this.lotteryWinningBetDao = LotteryWinningBetDaoImpl.GetInstance(); this.lotteryDataWorker = new LotteryDataWorker(); this.lotteryDrawResultDao = LotteryDrawResultDaoImpl.GetInstance(); }
public LotteryDataServices(LotteryDetails lotteryDetails) { this.lotteryDetails = lotteryDetails; this.userSetting = new UserSettings(); this.lotteryDataDerivation = new LotteryDataDerivation(this.LotteryDetails.GameMode); this.lotteryTicketPanelDao = LotteryTicketPanelDaoImpl.GetInstance(); this.lotteryOutletDao = LotteryOutletDaoImpl.GetInstance(); this.lotteryBetDao = LotteryBetDaoImpl.GetInstance(); this.userSettingDao = UserSettingDaoImpl.GetInstance(); this.lotteryScheduleDao = LotteryScheduleDaoImpl.GetInstance(); this.lotteryWinningBetDao = LotteryWinningBetDaoImpl.GetInstance(); this.lotteryDataWorker = new LotteryDataWorker(); this.lotteryDrawResultDao = LotteryDrawResultDaoImpl.GetInstance(); this.lotterySeqGenDao = LotterySequenceGenDaoImpl.GetInstance(); this.lotteryWinningCombinationDao = LotteryWinningCombinationDaoImpl.GetInstance(); }
public void ProcessAdjustCorrectTargetDrawDate(GameMode gameMode) { //LotteryWinningCombinationDao lotteryWinningCombinationDao = LotteryWinningCombinationDaoImpl.GetInstance(); LotteryBetDao lotteryBetDao = LotteryBetDaoImpl.GetInstance(); LotteryDrawResultDao lotteryDrawResultDao = LotteryDrawResultDaoImpl.GetInstance(); List <LotteryBet> lotteryBetArr = lotteryBetDao.GetDashboardLatestBets(gameMode, DateTime.Now.AddDays(-9999), DateTime.Now); foreach (LotteryBet lotteryBet in lotteryBetArr) { DateTime dt = lotteryDrawResultDao.GetNextDrawDate(gameMode, lotteryBet.GetTargetDrawDate()); if (!((DateTime.Now.Year - dt.Year) >= 12)) { lotteryBetDao.UpdateTargetDrawDate(lotteryBet.GetId(), dt); } } }