Ejemplo n.º 1
0
 /// <summary>
 /// Gets the smart part info.
 /// </summary>
 /// <param name="smartPartInfoType">Type of the smart part info.</param>
 /// <returns></returns>
 public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
 {
     Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo tinfo = new Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo();
     if (this.BindingSource != null)
     {
         if (this.BindingSource.Current != null)
         {
             //
         }
     }
     if (GetLocalResourceObject("Title") != null)
     {
         tinfo.Title = GetLocalResourceObject("Title").ToString();
     }
     foreach (Control c in this.ManageStages_LTools.Controls)
     {
         tinfo.LeftTools.Add(c);
     }
     foreach (Control c in this.ManageStages_CTools.Controls)
     {
         tinfo.CenterTools.Add(c);
     }
     foreach (Control c in this.ManageStages_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return(tinfo);
 }
 public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
 {
     Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo tinfo = new Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo();
     if (this.BindingSource != null)
     {
         if (this.BindingSource.Current != null)
         {
             //tinfo.Description = this.BindingSource.Current.ToString();
             //tinfo.Title = this.BindingSource.Current.ToString();
         }
     }
     foreach (Control c in this.AccountAssociations_LTools.Controls)
     {
         tinfo.LeftTools.Add(c);
     }
     foreach (Control c in this.AccountAssociations_CTools.Controls)
     {
         tinfo.CenterTools.Add(c);
     }
     foreach (Control c in this.AccountAssociations_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return tinfo;
 }
Ejemplo n.º 3
0
    /// <summary>
    /// Gets the smart part info.
    /// </summary>
    /// <param name="smartPartInfoType">Type of the smart part info.</param>
    /// <returns></returns>
    public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo tinfo =
            new Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo();
        if (this.BindingSource != null)
        {
            if (this.BindingSource.Current != null)
            {
                tinfo.Title = GetLocalResourceObject("DialogTitle").ToString();

            }
        }

        foreach (Control c in this.Form_LTools.Controls)
        {
            tinfo.LeftTools.Add(c);
        }
        foreach (Control c in this.Form_CTools.Controls)
        {
            tinfo.CenterTools.Add(c);
        }
        foreach (Control c in this.Form_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        return tinfo;
    }
Ejemplo n.º 4
0
 public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
 {
     Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo tinfo = new Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo();
     if (this.BindingSource != null)
     {
         if (this.BindingSource.Current != null)
         {
             //tinfo.Description = this.BindingSource.Current.ToString();
             //tinfo.Title = this.BindingSource.Current.ToString();
         }
     }
     foreach (Control c in this.AccountAssociations_LTools.Controls)
     {
         tinfo.LeftTools.Add(c);
     }
     foreach (Control c in this.AccountAssociations_CTools.Controls)
     {
         tinfo.CenterTools.Add(c);
     }
     foreach (Control c in this.AccountAssociations_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return(tinfo);
 }
Ejemplo n.º 5
0
    public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo tinfo = new Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo();

        tinfo.Description = "Web Info";
        tinfo.Title = "Web Info";

        Literal spacer = new Literal();
        spacer.Text = " ";

        Label label1 = new Label();
        label1.Text = "WebSites ";

        tinfo.CenterTools.Add(label1);
        tinfo.CenterTools.Add(ddlUrls);

        tinfo.RightTools.Add(cmdAdd);
        tinfo.RightTools.Add(spacer);
        tinfo.RightTools.Add(cmdEdit);
        tinfo.RightTools.Add(spacer);
        tinfo.RightTools.Add(cmdDelete);
        tinfo.RightTools.Add(spacer);
        tinfo.RightTools.Add(cmdRefresh);

        return tinfo;
    }
Ejemplo n.º 6
0
 /// <summary>
 /// Tries to retrieve smart part information compatible with type
 /// smartPartInfoType.
 /// </summary>
 /// <param name="smartPartInfoType">Type of information to retrieve.</param>
 /// <returns>
 /// The <see cref="T:Sage.Platform.Application.UI.ISmartPartInfo"/> instance or null if none exists in the smart part.
 /// </returns>
 public override ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
 {
     Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo tinfo = new Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo();
     foreach (Control c in this.ContactMarketing_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return tinfo;
 }
 /// <summary>
 /// Gets the smart part info.
 /// </summary>
 /// <param name="smartPartInfoType">Type of the smart part info.</param>
 /// <returns></returns>
 public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
 {
     Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo tinfo = new Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo();
     foreach (Control c in this.LitRequest_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return tinfo;
 }
Ejemplo n.º 8
0
    public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo tinfo = new Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo();

        foreach (Control c in this.AddOpportunityProducts_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        return(tinfo);
    }
Ejemplo n.º 9
0
 /// <summary>
 /// Tries to retrieve smart part information compatible with type
 /// smartPartInfoType.
 /// </summary>
 /// <param name="smartPartInfoType">Type of information to retrieve.</param>
 /// <returns>
 /// The <see cref="T:Sage.Platform.Application.UI.ISmartPartInfo"/> instance or null if none exists in the smart part.
 /// </returns>
 public override ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
 {
     Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo tinfo = new Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo();
     foreach (Control c in this.pnlSendTicketEmail_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     tinfo.ImagePath = Page.ResolveClientUrl("~/images/icons/Send_Write_email_24x24.gif");
     return tinfo;
 }
    public override ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo tinfo = new Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo();

        foreach (Control c in this.OppSummary_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        return(tinfo);
    }
 /// <summary>
 /// Tries to retrieve smart part information compatible with type
 /// smartPartInfoType.
 /// </summary>
 /// <param name="smartPartInfoType">Type of information to retrieve.</param>
 /// <returns>
 /// The <see cref="T:Sage.Platform.Application.UI.ISmartPartInfo"/> instance or null if none exists in the smart part.
 /// </returns>
 public override ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
 {
     Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo tinfo = new Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo();
     foreach (Control c in this.pnlSendTicketEmail_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     tinfo.ImagePath = Page.ResolveClientUrl("~/images/icons/Send_Write_email_24x24.gif");
     return(tinfo);
 }
 /// <summary>
 /// Gets the smart part info.
 /// </summary>
 /// <param name="smartPartInfoType">Type of the smart part info.</param>
 /// <returns></returns>
 public override ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
 {
     Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo tinfo = new Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo();
     foreach (Control c in this.LitRequests_LTools.Controls)
     {
         tinfo.LeftTools.Add(c);
     }
     foreach (Control c in this.LitRequests_CTools.Controls)
     {
         tinfo.CenterTools.Add(c);
     }
     foreach (Control c in this.LitRequests_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return(tinfo);
 }
Ejemplo n.º 13
0
 public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
 {
     Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo tinfo = new Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo();
     foreach (Control c in this.MoveContact_LTools.Controls)
     {
         tinfo.LeftTools.Add(c);
     }
     foreach (Control c in this.MoveContact_CTools.Controls)
     {
         tinfo.CenterTools.Add(c);
     }
     foreach (Control c in this.MoveContact_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return tinfo;
 }
 /// <summary>
 /// Gets the smart part info.
 /// </summary>
 /// <param name="smartPartInfoType">Type of the smart part info.</param>
 /// <returns></returns>
 public override ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
 {
     Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo tinfo = new Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo();
     foreach (Control c in this.LitRequests_LTools.Controls)
     {
         tinfo.LeftTools.Add(c);
     }
     foreach (Control c in this.LitRequests_CTools.Controls)
     {
         tinfo.CenterTools.Add(c);
     }
     foreach (Control c in this.LitRequests_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return tinfo;
 }
Ejemplo n.º 15
0
 public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
 {
     Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo tinfo = new Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo();
     foreach (Control c in this.ScheduleProcess_LTools.Controls)
     {
         tinfo.LeftTools.Add(c);
     }
     foreach (Control c in this.ScheduleProcess_CTools.Controls)
     {
         tinfo.CenterTools.Add(c);
     }
     foreach (Control c in this.ScheduleProcess_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return(tinfo);
 }
    public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo tinfo = new Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo();
        if (this.BindingSource != null)
        {
            if (this.BindingSource.Current != null)
            {
                tinfo.Description = "Web Info Add/Edit";
                tinfo.Title = "Web Info Add/Edit";
            }
        }

        Literal spacer = new Literal();
        spacer.Text = " ";

        tinfo.RightTools.Add(chkShare);
        tinfo.RightTools.Add(spacer);
        tinfo.RightTools.Add(cmdSave);

        return tinfo;
    }
    /// <summary>
    /// Tries to retrieve smart part information compatible with type
    /// smartPartInfoType.
    /// </summary>
    /// <param name="smartPartInfoType">Type of information to retrieve.</param>
    /// <returns>
    /// The <see cref="T:Sage.Platform.Application.UI.ISmartPartInfo"/> instance or null if none exists in the smart part.
    /// </returns>
    public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo tinfo = new Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo();
        foreach (Control c in this.pnlImportLeadTemplate_LTools.Controls)
        {
            tinfo.LeftTools.Add(c);
        }
        foreach (Control c in this.pnlImportLeadTemplate_CTools.Controls)
        {
            tinfo.CenterTools.Add(c);
        }
        foreach (Control c in this.pnlImportLeadTemplate_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }

        pnlImportLeadTemplate_LTools.Visible = false;
        pnlImportLeadTemplate_CTools.Visible = false;
        pnlImportLeadTemplate_RTools.Visible = false;

        return(tinfo);
    }
    /// <summary>
    /// Tries to retrieve smart part information compatible with type
    /// smartPartInfoType.
    /// </summary>
    /// <param name="smartPartInfoType">Type of information to retrieve.</param>
    /// <returns>
    /// The <see cref="T:Sage.Platform.Application.UI.ISmartPartInfo"/> instance or null if none exists in the smart part.
    /// </returns>
    public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo tinfo = new Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo();
        foreach (Control c in this.pnlImportLeadTemplate_LTools.Controls)
        {
            tinfo.LeftTools.Add(c);
        }
        foreach (Control c in this.pnlImportLeadTemplate_CTools.Controls)
        {
            tinfo.CenterTools.Add(c);
        }
        foreach (Control c in this.pnlImportLeadTemplate_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }

        pnlImportLeadTemplate_LTools.Visible = false;
        pnlImportLeadTemplate_CTools.Visible = false;
        pnlImportLeadTemplate_RTools.Visible = false;

        return tinfo;
    }
    public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo tinfo = new Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo();
        if (this.BindingSource != null)
        {

            if (this.BindingSource.Current != null)
            {
                //tinfo.Description = this.BindingSource.Current.ToString();
                // tinfo.Title = "this.BindingSource.Current.ToString();

                _assoc = (IAssociation)this.BindingSource.Current;
                if (_assoc.Id != null)
                {
                    tinfo.Title = GetLocalResourceObject("DialogTitleEdit").ToString();
                    divFromIDDialog.Style.Add("display", "none");
                    divFromIDText.Style.Add("display", "blocked");
                    divToIDDialog.Style.Add("display", "none");
                    divToIDText.Style.Add("display", "blocked");
                    divBackRelationToAdd.Style.Add("display", "none");
                    divBackRelationToEdit.Style.Add("display", "blocked");
                    Mode.Value = "UPDATE";
                }
                else
                {
                    //new association
                    tinfo.Title = GetLocalResourceObject("DialogTitleAdd").ToString();

                    IContact contact = this.GetParentEntity() as IContact;
                    string Id = string.Empty;
                    if (contact != null)
                    {
                        Id = contact.Id.ToString();
                    }

                    divFromIDDialog.Style.Add("display", "none");
                    divFromIDText.Style.Add("display", "blocked");
                    divToIDDialog.Style.Add("display", "blocked");
                    divToIDText.Style.Add("display", "none");
                    divBackRelationToAdd.Style.Add("display", "blocked");
                    divBackRelationToEdit.Style.Add("display", "none");
                    luFromIDDialog.LookupResultValue = contact.Id;
                    luFromIDText.LookupResultValue = contact.Id;
                    luFowardRelatedTo.LookupResultValue = contact.Id;
                    hdtContactId.Value = Id;
                    Mode.Value = "ADD";
                }
            }
        }
        foreach (Control c in this.AssociationForm_LTools.Controls)
        {
            tinfo.LeftTools.Add(c);
        }
        foreach (Control c in this.AssociationForm_CTools.Controls)
        {
            tinfo.CenterTools.Add(c);
        }
        foreach (Control c in this.AssociationForm_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        return tinfo;
    }
    public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo tinfo = new Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo();
        if (this.BindingSource != null)
        {
            if (this.BindingSource.Current != null)
            {
                //tinfo.Description = this.BindingSource.Current.ToString();
                // tinfo.Title = "this.BindingSource.Current.ToString();

                _assoc = (IAssociation)this.BindingSource.Current;
                if (_assoc.Id != null)
                {
                    tinfo.Title = GetLocalResourceObject("DialogTitleEdit").ToString();
                    divFromIDDialog.Style.Add("display", "none");
                    divFromIDText.Style.Add("display", "blocked");
                    divToIDDialog.Style.Add("display", "none");
                    divToIDText.Style.Add("display", "blocked");
                    divBackRelationToAdd.Style.Add("display", "none");
                    divBackRelationToEdit.Style.Add("display", "blocked");
                    Mode.Value = "UPDATE";
                }
                else
                {
                    //new association
                    tinfo.Title = GetLocalResourceObject("DialogTitleAdd").ToString();

                    IContact contact = this.GetParentEntity() as IContact;
                    string   Id      = string.Empty;
                    if (contact != null)
                    {
                        Id = contact.Id.ToString();
                    }


                    divFromIDDialog.Style.Add("display", "none");
                    divFromIDText.Style.Add("display", "blocked");
                    divToIDDialog.Style.Add("display", "blocked");
                    divToIDText.Style.Add("display", "none");
                    divBackRelationToAdd.Style.Add("display", "blocked");
                    divBackRelationToEdit.Style.Add("display", "none");
                    luFromIDDialog.LookupResultValue    = contact.Id;
                    luFromIDText.LookupResultValue      = contact.Id;
                    luFowardRelatedTo.LookupResultValue = contact.Id;
                    hdtContactId.Value = Id;
                    Mode.Value         = "ADD";
                }
            }
        }
        foreach (Control c in this.AssociationForm_LTools.Controls)
        {
            tinfo.LeftTools.Add(c);
        }
        foreach (Control c in this.AssociationForm_CTools.Controls)
        {
            tinfo.CenterTools.Add(c);
        }
        foreach (Control c in this.AssociationForm_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        return(tinfo);
    }
Ejemplo n.º 21
0
 //---------------------------------------------------------------------------------------------------------------
 //---------------------------------------------------------------------------------------------------------------
 public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
 {
     Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo tinfo = new Sage.Platform.WebPortal.SmartParts.ToolsSmartPartInfo();
     return tinfo;
 }