private void LoadOfferSettings()
 {
     Offer        = m_Offer.GetOffer(OfferID, LoadOfferOptions.None);
     IsTemplate   = Offer.IsTemplate;
     FromTemplate = Offer.FromTemplate;
     NumTiers     = Offer.NumbersOfTier;
 }
Beispiel #2
0
 private void LoadOfferSettings()
 {
     Offer        = m_Offer.GetOffer(OfferID, LoadOfferOptions.None);
     Engine       = (Engines)Offer.EngineID;
     IsTemplate   = Offer.IsTemplate;
     FromTemplate = Offer.FromTemplate;
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        ResolveDependencies();
        GetQueryStrings();
        if (objOffer == null)
        {
            if (OfferID == 0)
            {
                DisplayError(PhraseLib.Lookup("error.invalidoffer", LanguageID));
                return;
            }
            objOffer = m_Offer.GetOffer(OfferID, CMS.AMS.Models.LoadOfferOptions.CustomerCondition);
        }
        AssignPageTitle("mediatype.imgurl");
        if (!IsPostBack)
        {
            SetControlText();

            if (DeliverableID != 0)
            {
                AMSResult <PassThrough> result = m_PassThroughRewards.GetPassThroughReward(DeliverableID, objOffer.EngineID);
                if (result.ResultType == AMSResultType.Success)
                {
                    objPassThrough = result.Result;
                }
                else
                {
                    DisplayError(result.GetLocalizedMessage <PassThrough>(LanguageID));
                    return;
                }
                BindImageUrl();
            }
            SetPassThroughForLoad();
        }
        HideDisplayInfoMsg();
        PreviewImg.Visible = false;
    }