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); } } }