Ejemplo n.º 1
0
 /// <summary>
 /// Called when [my dialog closing].
 /// </summary>
 /// <param name="from">From.</param>
 /// <param name="e">The <see cref="Sage.Platform.WebPortal.Services.WebDialogClosingEventArgs"/> instance containing the event data.</param>
 protected override void OnMyDialogClosing(object from, WebDialogClosingEventArgs e)
 {
     base.OnMyDialogClosing(from, e);
     //we nned to refresh the salesprocess page or we will get un wanted postbacks on the Stages DDL.
     Session.Remove("MANAGESTAGESACTIVE");
     Sage.Platform.WebPortal.Services.IPanelRefreshService refresher = PageWorkItem.Services.Get <Sage.Platform.WebPortal.Services.IPanelRefreshService>();
     refresher.RefreshAll();
 }
Ejemplo n.º 2
0
 public void OnStepClosing(object from, WebDialogClosingEventArgs e)
 {
     IPanelRefreshService refresher = PageWorkItem.Services.Get<IPanelRefreshService>();
     if (refresher != null)
     {
         refresher.RefreshAll();
     }
 }
Ejemplo n.º 3
0
    public void OnStepClosing(object from, WebDialogClosingEventArgs e)
    {
        IPanelRefreshService refresher = PageWorkItem.Services.Get <IPanelRefreshService>();

        if (refresher != null)
        {
            refresher.RefreshAll();
        }
    }
Ejemplo n.º 4
0
 /// <summary>
 /// Called when this smartpart is in a dialog that is closing.
 /// </summary>
 /// <param name="from">The dialog service.</param>
 /// <param name="e">The <see cref="T:Sage.Platform.WebPortal.Services.WebDialogClosingEventArgs"/> instance containing the event data.</param>
 protected override void OnMyDialogClosing(object from, WebDialogClosingEventArgs e)
 {
     base.OnMyDialogClosing(from, e);
     if (!_Saved)
     {
         try
         {
             SaveContact(false);
             _Saved = true;
         }
         catch (Exception ex)
         {
             handleException(ex);
         }
     }
     Refresh();
 }
    /// <summary>
    /// Called when this smartpart is in a dialog that is closing.
    /// </summary>
    /// <param name="from">The dialog service.</param>
    /// <param name="e">The <see cref="T:Sage.Platform.WebPortal.Services.WebDialogClosingEventArgs"/> instance containing the event data.</param>
    protected override void OnMyDialogClosing(object from, WebDialogClosingEventArgs e)
    {
        base.OnMyDialogClosing(from, e);

        if (!_Saved)
        {
            try
            {
                SaveAccount(false);
                _Saved = true;
            }
            catch (Exception ex)
            {
                handleException(ex);
            }
        }
    }
Ejemplo n.º 6
0
    //---------------------------------------------------------------------------------------------------------------
    //---------------------------------------------------------------------------------------------------------------
    public void OnDialogClosing(object from, WebDialogClosingEventArgs e)
    {
        try
            {
                string strAcct = Page.Session["SpAcct"].ToString();		//might have been setup if accessed Contact real-time scores first!
                ErrorPanel.Visible = false;
                EmarketingSetupOptionsPanel.Visible = false;
                CreateNewAcctStep1Panel.Visible = false;
                CreateNewAcctStep2Panel.Visible = false;
                LoginPanel.Visible = true;
                MainOptionsPanel.Visible = false;
                SetupSDataPanel.Visible = false;
                MapUsersPanel.Visible = false;
                MapMailMergeFieldsPanel.Visible = false;
                AddUsersPanel.Visible = false;
                ImportAccountPanel.Visible = false;
            }
            catch
            {
                // reset dialog to account setup
                ErrorPanel.Visible = false;
                EmarketingSetupOptionsPanel.Visible = true;
                CreateNewAcctStep1Panel.Visible = false;
                CreateNewAcctStep2Panel.Visible = false;
                LoginPanel.Visible = false;
                MainOptionsPanel.Visible = false;
                SetupSDataPanel.Visible = false;
                MapUsersPanel.Visible = false;
                MapMailMergeFieldsPanel.Visible = false;
                AddUsersPanel.Visible = false;
                ImportAccountPanel.Visible = false;
            }

            try
            {
                StringBuilder sb = new StringBuilder();
                if (Page.Session["SpAcct"] != null)
                    sb.Append(" var acctLbl = document.getElementById('ctl00_TabControl_element_SpeOptionsForm_element_view_SpeOptionsForm_SpeOptionsForm_AcctNameLbl'); acctLbl.innerHTML='" + Page.Session["SpAcct"].ToString() + "';");
                if (Page.Session["SpServer"] != null)
                    sb.Append(" var serLbl = document.getElementById('ctl00_TabControl_element_SpeOptionsForm_element_view_SpeOptionsForm_SpeOptionsForm_ServerNameLbl'); serLbl.innerHTML='" + Page.Session["SpServer"].ToString() + "';");
                if (Page.Session["SpUid"] != null)
                    sb.Append(" var uidLbl = document.getElementById('ctl00_TabControl_element_SpeOptionsForm_element_view_SpeOptionsForm_SpeOptionsForm_UserNameLbl'); uidLbl.innerHTML='" + Page.Session["SpUid"].ToString() + "';");

                ScriptManager.RegisterClientScriptBlock(Page, GetType(), "SpUpdateLbls_clientscript", sb.ToString(), true);
            }
            catch
            {
            }
    }
Ejemplo n.º 7
0
 /// <summary>
 /// Called when [my dialog closing].
 /// </summary>
 /// <param name="from">From.</param>
 /// <param name="e">The <see cref="Sage.Platform.WebPortal.Services.WebDialogClosingEventArgs"/> instance containing the event data.</param>
 protected override void OnMyDialogClosing(object from, WebDialogClosingEventArgs e)
 {
     base.OnMyDialogClosing(from, e);
     //we nned to refresh the salesprocess page or we will get un wanted postbacks on the Stages DDL.
     Session.Remove("MANAGESTAGESACTIVE");
     IPanelRefreshService refresher = PageWorkItem.Services.Get<IPanelRefreshService>();
     refresher.RefreshAll();
 }
Ejemplo n.º 8
0
 protected override void OnMyDialogClosing(object from, WebDialogClosingEventArgs e)
 {
     DialogService.DialogParameters.Clear();
     IsClosing = true;
     base.OnMyDialogClosing(from, e);
 }
Ejemplo n.º 9
0
 protected override void OnMyDialogClosing(object from, WebDialogClosingEventArgs e)
 {
     DialogService.DialogParameters.Clear();
     IsClosing = true;
     base.OnMyDialogClosing(from, e);
 }