/// <summary> /// Handles the Init event of the Page control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> protected void Page_Init(object sender, EventArgs e) { _Context = ApplicationContext.Current.Services.Get <IContextService>(); _State = _Context.GetContext("AddProductStateInfo") as AddProductStateInfo; if (_State == null) { _State = new AddProductStateInfo(); } _UserOptions = ApplicationContext.Current.Services.Get <IUserOptionsService>(); }
/// <summary> /// Handles the Init event of the Page control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> protected void Page_Init(object sender, EventArgs e) { grdProducts.Columns[6].Visible = BusinessRuleHelper.IsMultiCurrencyEnabled(); _Context = ApplicationContext.Current.Services.Get <IContextService>(); _State = _Context.GetContext("AddProductStateInfo") as AddProductStateInfo; if (_State == null) { _State = new AddProductStateInfo(); } }
/// <summary> /// Handles the Init event of the Page control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> protected void Page_Init(object sender, EventArgs e) { grdProducts.Columns[6].Visible = BusinessRuleHelper.IsMultiCurrencyEnabled(); _Context = ApplicationContext.Current.Services.Get<IContextService>(); _State = _Context.GetContext("AddProductStateInfo") as AddProductStateInfo; if (_State == null) {_State = new AddProductStateInfo();} }
/// <summary> /// Handles the Init event of the Page control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> protected void Page_Init(object sender, EventArgs e) { ScriptManager.GetCurrent(Page).Scripts.Add(new ScriptReference("~/SmartParts/Opportunity/AddOpportunityProduct.js")); _Context = ApplicationContext.Current.Services.Get<IContextService>(); _State = _Context.GetContext("AddProductStateInfo") as AddProductStateInfo; if (_State == null) { _State = new AddProductStateInfo(); } }
/// <summary> /// Handles the Init event of the Page control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> protected void Page_Init(object sender, EventArgs e) { _Context = ApplicationContext.Current.Services.Get<IContextService>(); _State = _Context.GetContext("AddProductStateInfo") as AddProductStateInfo; if (_State == null) { _State = new AddProductStateInfo(); } _UserOptions = ApplicationContext.Current.Services.Get<IUserOptionsService>(); }