/// <summary> /// Handles the SelectedIndexChanged event of the ddLSalesProcess 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 ddLSalesProcess_SelectedIndexChanged(object sender, EventArgs e) { string opportunityId = this.EntityContext.EntityID.ToString(); string pluginID = ddLSalesProcess.SelectedItem.Value; ISalesProcesses salesProcess = EntityFactory.Create <ISalesProcesses>(); salesProcess.InitSalesProcess(pluginID, opportunityId); IPanelRefreshService refresher = PageWorkItem.Services.Get <IPanelRefreshService>(); refresher.RefreshAll(); }
/// <summary> /// Handles the SelectedIndexChanged event of the ddLSalesProcess 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 ddLSalesProcess_SelectedIndexChanged(object sender, EventArgs e) { string opportunityId = this.EntityContext.EntityID.ToString(); string pluginID = ddLSalesProcess.SelectedItem.Value; ISalesProcesses salesProcess = EntityFactory.Create <ISalesProcesses>(); salesProcess.InitSalesProcess(pluginID, opportunityId); IPanelRefreshService refresher = PageWorkItem.Services.Get <IPanelRefreshService>(); this.UpdateSnapShot(); if (_salesProcess != null) { IList <ISalesProcessAudit> list = _salesProcess.GetSalesProcessAudits(); LoadStagesDropDown(list); } else { LoadStagesDropDown(null); } refresher.RefreshAll(); }