private void GetInstantWinData() { if (objInstantWin != null) { hdnAwardLimitEnterprise.Value = objInstantWin.AwardLimitEnterprise.ToString(); hdnChanceOfWinning.Value = objInstantWin.ChanceOfWinning.ToString(); hdnChanceOfWinningEnterprise.Value = objInstantWin.ChanceOfWinningEnterprise.ToString(); hdnDisallowEdit.Value = objInstantWin.DisallowEdit.ToString(); hdnNumPrizesAllowed.Value = objInstantWin.NumPrizesAllowed.ToString(); hdnUnlimited.Value = objInstantWin.Unlimited.ToString(); hdnProgramType.Value = (objInstantWin.ProgramType == InstantWinProgramType.Random) ? "random" : "sequence"; hdnDeleted.Value = objInstantWin.Deleted.ToString(); hdnOfferID.Value = OfferID.ToString(); hdnFromTemplate.Value = objOffer.FromTemplate.ToString(); hdnIsTemplate.Value = objOffer.IsTemplate.ToString(); string PromoBrkrIP = m_CacheData.GetSystemOption_UE_ByOptionId(186); hdnGetWinnersURL.Value = "http://" + PromoBrkrIP + "/ams-broker-promotion/instantwin/allwinners"; StoreGroup StoresSelected = StoreGroup.UnKnown; var StoreInformation = m_Offer.GetCountOfUEOfferLocations(OfferID, ref StoresSelected).Result; hdnNoOfStores.Value = StoreInformation.Item1.ToString(); hdnStores.Value = StoreInformation.Item2; } }
protected void Page_Load(object sender, EventArgs e) { infobar.InnerHtml = statusbar.InnerHtml = ""; (this.Master as logix_LogixMasterPage).Tab_Name = "8_4"; AssignPageTitle("term.cardranges"); ResolveDependencies(); SetPageData(); Int32 intCardRangeConfig = m_CacheData.GetSystemOption_UE_ByOptionId(221).ConvertToInt32(); if (intCardRangeConfig == 0) { Server.Transfer("configuration.aspx", false); return; } if (!IsPostBack) { //Get List of Numeric Cardtypes from Cache itself for performance. Card Description is fetched from PhraseLib for Localization List <CardType> lstNumericCards = SystemCacheData.CardTypes.Where(m => m.NumericOnly == true && m.CardTypeID != 2 && m.CardTypeID != 8).ToList(); ddlCardTypes.DataSource = (from item in lstNumericCards select new { Text = PhraseLib.Lookup(item.PhraseID, LanguageID).Replace("'", "'"), Value = item.CardTypeID.ToString() }).ToList(); ddlCardTypes.DataTextField = "Text"; ddlCardTypes.DataValueField = "Value"; ddlCardTypes.DataBind(); populateCardTypeWithRange(); } }
public static String FetchWinners(String offerId, String storeNames) { var ajaxProcessingFunctions = new AjaxProcessingFunctions(); ICacheData cache = CurrentRequest.Resolver.Resolve <ICacheData>(); string PromoBrkrAddress = String.Format("http://{0}/ams-broker-promotion/instantwin/allwinners", cache.GetSystemOption_UE_ByOptionId(186)); return(ajaxProcessingFunctions.HttpPost(PromoBrkrAddress, offerId.ConvertToInt32(), storeNames)); }