Ejemplo n.º 1
0
 public void fillDrawInfoLabels(DateTime pDrawDate, long pGroupId)
 {
     
     this.clearDrawInfoLabels();
     if (pGroupId != 0)
     {
         DrawTypeService drawTypeService = new DrawTypeService();
         LDT_LotteryDrawType drawType = drawTypeService.getById(pGroupId);
         if (drawType != null)
         {
             this.setPosNameLabel(ParameterService.getSystemSalePoint().LPS_DisplayName);
             this.setDrawTitleLabel("Sorteo:");
             this.setGroupNameLabel(drawType.LDT_DisplayName);
             this.setDayDrawLabel(UtilityService.getDayName(pDrawDate));
             this.setDateDrawLabel(UtilityService.getSimpleDate(pDrawDate));
         }
         PrizeFactorService prizeFactorService = new PrizeFactorService();
         LPF_LotteryPrizeFactor prizeFactor = prizeFactorService.getByPointSaleAndGroup(ParameterService.getSalePointId(), pGroupId);
         if (prizeFactor != null)
         {
             string prizes = Convert.ToInt32(prizeFactor.LPF_FirtsPrizeFactor) + "% | "
                 + Convert.ToInt32(prizeFactor.LPF_SecondPrizeFactor) + "% | "
                 + Convert.ToInt32(prizeFactor.LPF_ThirdPrizeFactor) + "%"
                 ;
             this.setPayDrawTitleLabel("Paga:");
             this.setPrizeFactorDrawLabel(prizes);
         }
     }
     
 }
Ejemplo n.º 2
0
        public bool validatePrizeFactorAsync(long pGroupId)
        {
            bool validFactor = false;
            PrizeFactorService     prizeFactorService = new PrizeFactorService();
            LPF_LotteryPrizeFactor prizeFactor        = prizeFactorService.getByGroup(pGroupId);

            if (prizeFactor != null)
            {
                validFactor = true;
            }
            return(validFactor);
        }
Ejemplo n.º 3
0
        public bool validatePrizeFactor(long pGroupId, Func <long, bool> pProcessResponseFunction)
        {
            bool validFactor = false;
            PrizeFactorService     prizeFactorService = new PrizeFactorService();
            LPF_LotteryPrizeFactor prizeFactor        = prizeFactorService.getByGroup(pGroupId);

            if (prizeFactor == null)
            {
                ConcreteMessageService.displayPrizeFactorNotFoundMessage();
            }
            else
            {
                validFactor = pProcessResponseFunction(pGroupId);
            }
            return(validFactor);
        }