Ejemplo n.º 1
1
    /// <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)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
        if (BindingSource != null)
        {
            if (BindingSource.Current != null)
            {
                tinfo.Title = _stage.Id != null
                                  ? (_mode == "Complete"
                                         ? GetLocalResourceObject("DialogTitleComplete").ToString()
                                         : GetLocalResourceObject("DialogTitleEdit").ToString())
                                  : GetLocalResourceObject("DialogTitleAdd").ToString();
            }
        }

        foreach (Control c in Form_LTools.Controls)
        {
            tinfo.LeftTools.Add(c);
        }
        foreach (Control c in Form_CTools.Controls)
        {
            tinfo.CenterTools.Add(c);
        }
        foreach (Control c in Form_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        return tinfo;
    }
Ejemplo n.º 2
0
    /// <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)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
        if (BindingSource != null)
        {
            if (BindingSource.Current != null)
            {
                if (_task.Id != null)
                {
                    if (_mode.ToUpper().Equals("EDIT"))
                        tinfo.Title = GetLocalResourceObject("DialogTitleEdit").ToString();
                    else
                        tinfo.Title = GetLocalResourceObject("DialogTitleComplete").ToString();
                }
                else
                {
                    tinfo.Title = GetLocalResourceObject("DialogTitleAdd").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.º 3
0
 public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
 {
     ToolsSmartPartInfo ti = new ToolsSmartPartInfo();
     ti.Title = "Task Management";
     ti.Description = "Task Management";
     return ti;
 }
    /// <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)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        foreach (Control c in Controls)
        {
            SmartPartToolsContainer cont = c as SmartPartToolsContainer;
            if (cont != null)
            {
                switch (cont.ToolbarLocation)
                {
                    case SmartPartToolsLocation.Right:
                        foreach (Control tool in cont.Controls)
                        {
                            tinfo.RightTools.Add(tool);
                        }
                        break;
                    case SmartPartToolsLocation.Center:
                        foreach (Control tool in cont.Controls)
                        {
                            tinfo.CenterTools.Add(tool);
                        }
                        break;
                    case SmartPartToolsLocation.Left:
                        foreach (Control tool in cont.Controls)
                        {
                            tinfo.LeftTools.Add(tool);
                        }
                        break;
                }
            }
        }
        return tinfo;
        //tinfo.ImagePath = Page.ResolveClientUrl("ImageResource.axd?scope=global&type=Global_Images&key=Companies_24x24"); return tinfo;
    }
    public override ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
        if (BindingSource != null)
        {
            if (BindingSource.Current != null)
            {
                IEvent address = (IEvent)BindingSource.Current;
               // txtEntityId.Value = "";// _parentEntityReference.Id.ToString();

                if (_parentEntityReference is IEvent)
                {
                    tinfo.Title = Mode.Value == "ADD" ? "Insert Event" : "Event Detail";
                }
            }
        }

        foreach (Control c in AddressForm_LTools.Controls)
            tinfo.LeftTools.Add(c);
        foreach (Control c in AddressForm_CTools.Controls)
            tinfo.CenterTools.Add(c);
        foreach (Control c in AddressForm_RTools.Controls)
            tinfo.RightTools.Add(c);
        return tinfo;
    }
Ejemplo n.º 6
0
 public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
 {
     ToolsSmartPartInfo ti = new ToolsSmartPartInfo();
     ti.RightTools.Add(cmdAddProfile);
     ti.RightTools.Add(cmdFilter);
     return ti;
 }
    /// <summary>
    /// Gets the smart part info.
    /// </summary>
    /// <param name="smartPartInfoType">Type of the smart part info.</param>
    /// <returns></returns>
    public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
        tinfo.ImagePath = Page.ResolveClientUrl("~/images/icons/Note_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)
 {
     ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
     foreach (Control c in Controls)
     {
         SmartPartToolsContainer cont = c as SmartPartToolsContainer;
         if (cont != null)
         {
             switch (cont.ToolbarLocation)
             {
                 case SmartPartToolsLocation.Right:
                     foreach (Control tool in cont.Controls)
                     {
                         tinfo.RightTools.Add(tool);
                     }
                     break;
                 case SmartPartToolsLocation.Center:
                     foreach (Control tool in cont.Controls)
                     {
                         tinfo.CenterTools.Add(tool);
                     }
                     break;
                 case SmartPartToolsLocation.Left:
                     foreach (Control tool in cont.Controls)
                     {
                         tinfo.LeftTools.Add(tool);
                     }
                     break;
             }
         }
     }
     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)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
        //tinfo.ImagePath = Page.ResolveClientUrl("~/images/icons/Library_3D_32x32.gif");

        return tinfo;
    }
    public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
        if (BindingSource != null)
        {
            if (BindingSource.Current != null)
            {
                _assoc = (IAssociation)BindingSource.Current;
                if (_assoc.Id != null)
                {
                    Mode.Value = "UPDATE";
                    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");
                }
                else
                {
                    //new association
                    Mode.Value = "ADD";
                    tinfo.Title = GetLocalResourceObject("DialogTitleEdit").ToString();
                    IAccount account = GetParentEntity() as IAccount;
                    string Id = string.Empty;
                    if (account != null)
                    {
                        Id = account.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");
                    hdtAccountId.Value = Id;
                    luFromIDDialog.LookupResultValue = account.Id;
                    //luToIDDialog.LookupResultValue = null;
                    luFromIDText.LookupResultValue = account.Id;
                    luFowardRelatedTo.LookupResultValue = account.Id;
                }
            }
        }

        foreach (Control c in AssociationForm_LTools.Controls)
        {
            tinfo.LeftTools.Add(c);
        }
        foreach (Control c in AssociationForm_CTools.Controls)
        {
            tinfo.CenterTools.Add(c);
        }
        foreach (Control c in AssociationForm_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        return tinfo;
    }
 public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
 {
     ToolsSmartPartInfo ti = new ToolsSmartPartInfo();
     ti.Title = GetLocalResourceObject("Title").ToString();
     ti.Description = ti.Title;
     ti.RightTools.Add(btnSave);
     return ti;
 }
    public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        tinfo.Title = GetLocalResourceObject("DialogTitle").ToString();

        return tinfo;
    }
    public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        var tinfo = new ToolsSmartPartInfo();
        tinfo.ImagePath = "/SlxClient/ImageResource.axd?scope=global&type=Global_Images&key=Task_Main_24x24";
        tinfo.Title = "Task Console";

        return tinfo;
    }
    public override ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
        if (BindingSource != null)
        {
            if (BindingSource.Current != null)
            {
                IAddress address = (IAddress)BindingSource.Current;
                txtEntityId.Value = "";// _parentEntityReference.Id.ToString();

                if (address.Id != null)
                {
                    cbxIsPrimary.Enabled = (address.IsPrimary != true);
                    cbxIsShipping.Enabled = (address.IsMailing != true);
                    Mode.Value = "UPDATE";
                }
                else
                {
                    Mode.Value = "ADD";
                    pklDecription.PickListValue = GetLocalResourceObject("DefaultDescription").ToString();
                }

                if (_parentEntityReference is IAccount)
                {
                    ViewState["parentEntityID"] = _parentEntityReference.Id;
                    ViewState["parentEntity"] = "Account";

                    tinfo.Title = Mode.Value == "ADD"
                                      ? GetLocalResourceObject("DialogTitleAccountAdd").ToString()
                                      : GetLocalResourceObject("DialogTitleAccountEdit").ToString();
                }
                if (_parentEntityReference is IContact)
                {
                    ViewState["parentEntityID"] = _parentEntityReference.Id;
                    ViewState["parentEntity"] = "Contact";
                    tinfo.Title = Mode.Value == "ADD"
                                      ? GetLocalResourceObject("DialogTitleContactAdd").ToString()
                                      : GetLocalResourceObject("DialogTitleContactEdit").ToString();
                }

                if (!(_parentEntityReference is IAccount || _parentEntityReference is IContact))
                {
                    tinfo.Title = Mode.Value == "ADD"
                                      ? GetLocalResourceObject("DialogTitleAdd").ToString()
                                      : GetLocalResourceObject("DialogTitleEdit").ToString();
                }
            }
        }

        foreach (Control c in AddressForm_LTools.Controls)
            tinfo.LeftTools.Add(c);
        foreach (Control c in AddressForm_CTools.Controls)
            tinfo.CenterTools.Add(c);
        foreach (Control c in AddressForm_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 ToolsSmartPartInfo();
     foreach (Control c in ContactMarketing_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return tinfo;
 }
Ejemplo n.º 16
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)
 {
     var tinfo = new ToolsSmartPartInfo();
     foreach (Control c in AuthorizeService_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)
 {
     ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
     foreach (Control c in SelectOperatingAccount_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return tinfo;
 }
Ejemplo n.º 18
0
 /// <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)
 {
     ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
     foreach (Control c in ImportRunTest_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return tinfo;
 }
Ejemplo n.º 19
0
 /// <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)
 {
     ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
     foreach (Control c in this.pnlDeDup_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)
 {
     ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
     foreach (Control c in SearchResults_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return tinfo;
 }
Ejemplo n.º 21
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)
 {
     ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
     foreach (Control c in ICUpdatePricing_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)
 {
     ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
     Label lbl = new Label();
     lbl.Text = GetLocalResourceObject("NewDocuments_Title").ToString();
     tinfo.ImagePath = Page.ResolveClientUrl("~/images/icons/Library_3D_32x32.gif");
     tinfo.LeftTools.Add(lbl);
     return tinfo;
 }
 /// <summary>
 /// Retrieves 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)
 {
     var tinfo = new ToolsSmartPartInfo();
     foreach (Control c in MergeContactAddress_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return tinfo;
 }
Ejemplo n.º 24
0
 public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
 {
     ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
     foreach (Control c in Reseller_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)
 {
     var tinfo = new ToolsSmartPartInfo();
     foreach (Control c in AccountMarketing_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return tinfo;
 }
Ejemplo n.º 26
0
 /// <summary>
 /// Gets the smart part info.
 /// </summary>
 /// <param name="smartPartInfoType">Type of the smart part info.</param>
 /// <returns></returns>
 public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
 {
     ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
     foreach (Control c in LitRequest_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return tinfo;
 }
 public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
 {
     ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
     foreach (Control c in RemoveDeletedConfirm_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return tinfo;
 }
 public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
 {
     ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
     foreach (Control c in ActivityReminders_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return tinfo;
 }
Ejemplo n.º 29
0
 /// <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)
 {
     var tinfo = new ToolsSmartPartInfo();
     foreach (Control c in UserClientSystem_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return tinfo;
 }
Ejemplo n.º 30
0
 public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
 {
     var tinfo = new ToolsSmartPartInfo();
     foreach (Control c in wnTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return tinfo;
 }
Ejemplo n.º 31
0
    public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        foreach (Control c in Reseller_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        return(tinfo);
    }
Ejemplo n.º 32
0
    public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        var tinfo = new ToolsSmartPartInfo();

        foreach (Control c in wnTools.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)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        foreach (Control c in MatchOptions_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        return(tinfo);
    }
    /// <summary>
    /// Retrieves 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)
    {
        var tinfo = new ToolsSmartPartInfo();

        foreach (Control c in MergeAddress_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        return(tinfo);
    }
Ejemplo n.º 35
0
    public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        foreach (Control c in ActivityReminders_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        return(tinfo);
    }
Ejemplo n.º 36
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)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        foreach (Control c in CampaignLeadSource_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)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        foreach (Control c in LitRequest_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        return(tinfo);
    }
Ejemplo n.º 38
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)
    {
        var tinfo = new ToolsSmartPartInfo();

        foreach (Control c in AccountMarketing_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        return(tinfo);
    }
Ejemplo n.º 39
0
    /// <summary>
    /// Gets the smart part info.
    /// </summary>
    /// <param name="smartPartInfoType">Type of the smart part info.</param>
    /// <returns></returns>
    public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
        Label lbl = new Label();

        lbl.Text        = GetLocalResourceObject("NewDocuments_Title").ToString();
        tinfo.ImagePath = Page.ResolveClientUrl("~/images/icons/Library_3D_32x32.gif");
        tinfo.LeftTools.Add(lbl);
        return(tinfo);
    }
Ejemplo n.º 40
0
    /// <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)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        foreach (Control c in ImportRunTest_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        return(tinfo);
    }
    public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        if (BindingSource != null)
        {
            if (BindingSource.Current != null)
            {
                _assoc = (IAssociation)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 = GetParentEntity() as IContact;

                    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 = contact != null?contact.Id.ToString() : String.Empty;

                    Mode.Value = "ADD";
                }
            }
        }
        foreach (Control c in AssociationForm_LTools.Controls)
        {
            tinfo.LeftTools.Add(c);
        }
        foreach (Control c in AssociationForm_CTools.Controls)
        {
            tinfo.CenterTools.Add(c);
        }
        foreach (Control c in AssociationForm_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)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        foreach (Control c in ReplaceTeamMember_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        tinfo.Title = GetTitle();
        return(tinfo);
    }
Ejemplo n.º 43
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)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        foreach (Control c in LeadMatching_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        tinfo.Title = GetLocalResourceObject("DialogTitle").ToString();
        return(tinfo);
    }
    public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        var tinfo = new ToolsSmartPartInfo();

        switch (PickListHelper.StringToDialogTypes(_mode))
        {
        case PickListHelper.DialogTypes.Edit:
            tinfo.Description = GetLocalResourceObject("DialogTitleEdit").ToString();
            tinfo.Title       = GetLocalResourceObject("DialogTitleEdit").ToString();
            break;

        case PickListHelper.DialogTypes.Localize:
            tinfo.Description = GetLocalResourceObject("DialogTitleLocalize").ToString();
            tinfo.Title       = GetLocalResourceObject("DialogTitleLocalize").ToString();
            break;

        default:
            tinfo.Description = GetLocalResourceObject("DialogTitleAdd").ToString();
            tinfo.Title       = GetLocalResourceObject("DialogTitleAdd").ToString();
            break;
        }

        foreach (Control c in Controls)
        {
            var cont = c as SmartPartToolsContainer;
            if (cont != null)
            {
                switch (cont.ToolbarLocation)
                {
                case SmartPartToolsLocation.Right:
                    foreach (Control tool in cont.Controls)
                    {
                        tinfo.RightTools.Add(tool);
                    }
                    break;

                case SmartPartToolsLocation.Center:
                    foreach (Control tool in cont.Controls)
                    {
                        tinfo.CenterTools.Add(tool);
                    }
                    break;

                case SmartPartToolsLocation.Left:
                    foreach (Control tool in cont.Controls)
                    {
                        tinfo.LeftTools.Add(tool);
                    }
                    break;
                }
            }
        }
        return(tinfo);
    }
Ejemplo n.º 45
0
    public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        var tinfo = new ToolsSmartPartInfo();

        tinfo.CenterTools.Add(DayViewBtn);
        tinfo.CenterTools.Add(WeekViewBtn);
        tinfo.CenterTools.Add(MonthViewBtn);
        tinfo.CenterTools.Add(UserList);
        tinfo.RightTools.Add(CalendarHelpLink);
        return(tinfo);
    }
Ejemplo n.º 46
0
    /// <summary>
    /// Gets the smart part info.
    /// </summary>
    /// <param name="smartPartInfoType">Type of the smart part info.</param>
    /// <returns></returns>
    public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        tinfo.Description = GetLocalResourceObject("PageDescription.Text").ToString();
        tinfo.Title       = GetLocalResourceObject("PageDescription.Title").ToString();
        foreach (Control c in LitRequest_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        return(tinfo);
    }
Ejemplo n.º 47
0
    public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        tinfo.Description = GetLocalResourceObject("SpeedSearch_Description").ToString();
        tinfo.Title       = GetLocalResourceObject("SpeedSearch_Title").ToString();
        foreach (Control c in this.SpeedSearch_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        tinfo.ImagePath = Page.ResolveClientUrl("images/icons/Speed_Search_24x24.gif"); return(tinfo);
    }
Ejemplo n.º 48
0
    public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        Label lbl = new Label();

        lbl.Text = GetLocalResourceObject("Notes_Caption").ToString();

        tinfo.LeftTools.Add(lbl);
        tinfo.ImagePath = Page.ResolveClientUrl("~/images/icons/Note_24x24.gif");

        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)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        Label lblNewContracts = new Label();

        lblNewContracts.Text = GetLocalResourceObject("Contracts_Caption").ToString();

        tinfo.LeftTools.Add(lblNewContracts);
        tinfo.ImagePath = Page.ResolveClientUrl("~/images/icons/Contract_detail_24x24.png");

        return(tinfo);
    }
    public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        if (_mode == "EDIT")
        {
            tinfo.Description = GetLocalResourceObject("DialogTitleEdit").ToString();
            tinfo.Title       = GetLocalResourceObject("DialogTitleEdit").ToString();
        }
        else
        {
            tinfo.Description = GetLocalResourceObject("DialogTitleAdd").ToString();
            tinfo.Title       = GetLocalResourceObject("DialogTitleAdd").ToString();
        }


        foreach (Control c in Controls)
        {
            SmartPartToolsContainer cont = c as SmartPartToolsContainer;
            if (cont != null)
            {
                switch (cont.ToolbarLocation)
                {
                case SmartPartToolsLocation.Right:
                    foreach (Control tool in cont.Controls)
                    {
                        tinfo.RightTools.Add(tool);
                    }
                    break;

                case SmartPartToolsLocation.Center:
                    foreach (Control tool in cont.Controls)
                    {
                        tinfo.CenterTools.Add(tool);
                    }
                    break;

                case SmartPartToolsLocation.Left:
                    foreach (Control tool in cont.Controls)
                    {
                        tinfo.LeftTools.Add(tool);
                    }
                    break;
                }
            }
        }

        return(tinfo);
    }
Ejemplo n.º 51
0
    /// <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)
    {
        ToolsSmartPartInfo tinfo         = new ToolsSmartPartInfo();
        ImportManager      importManager = Page.Session["importManager"] as ImportManager;

        if (importManager != null)
        {
            tinfo.Title       = String.Format(GetLocalResourceObject("dialog_StepSelectFile_Title").ToString(), Path.GetFileName(importManager.SourceFileName));
            tinfo.Description = importManager.SourceFileName;
        }
        foreach (Control c in pnlImportLead_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        return(tinfo);
    }
Ejemplo n.º 52
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)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        if (BindingSource != null)
        {
            if (BindingSource.Current != null)
            {
                tinfo.Description = BindingSource.Current.ToString();
                tinfo.Title       = BindingSource.Current.ToString();
            }
        }

        foreach (Control c in Controls)
        {
            SmartPartToolsContainer cont = c as SmartPartToolsContainer;
            if (cont != null)
            {
                switch (cont.ToolbarLocation)
                {
                case SmartPartToolsLocation.Right:
                    foreach (Control tool in cont.Controls)
                    {
                        tinfo.RightTools.Add(tool);
                    }
                    break;

                case SmartPartToolsLocation.Center:
                    foreach (Control tool in cont.Controls)
                    {
                        tinfo.CenterTools.Add(tool);
                    }
                    break;

                case SmartPartToolsLocation.Left:
                    foreach (Control tool in cont.Controls)
                    {
                        tinfo.LeftTools.Add(tool);
                    }
                    break;
                }
            }
        }

        return(tinfo);
    }
    public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        var spi   = new ToolsSmartPartInfo();
        var ttobj = GetGlobalResourceObject("Portal", "Help_ToolTip");
        var tt    = (ttobj != null) ? ttobj.ToString() : "Help";

        spi.RightTools.Add(new PageLink
        {
            ID          = "NotesHistoryHelp",
            LinkType    = enumPageLinkType.HelpFileName,
            ToolTip     = tt,
            Target      = "MCWebHelp",
            NavigateUrl = "noteshistory",
            ImageUrl    =
                ResolveUrl("~/ImageResource.axd?scope=global&type=Global_Images&key=Help_16x16")
        });
        return(spi);
    }
Ejemplo n.º 54
0
    public override ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        foreach (Control c in Items_LTools.Controls)
        {
            tinfo.LeftTools.Add(c);
        }
        foreach (Control c in Items_CTools.Controls)
        {
            tinfo.CenterTools.Add(c);
        }
        foreach (Control c in Items_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)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        foreach (Control c in Opportunities_LTools.Controls)
        {
            tinfo.LeftTools.Add(c);
        }
        foreach (Control c in Opportunities_CTools.Controls)
        {
            tinfo.CenterTools.Add(c);
        }
        foreach (Control c in Opportunities_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        return(tinfo);
    }
    public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        foreach (Control c in Address_LTools.Controls)
        {
            tinfo.LeftTools.Add(c);
        }
        foreach (Control c in Address_CTools.Controls)
        {
            tinfo.CenterTools.Add(c);
        }
        foreach (Control c in Address_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        return(tinfo);
    }
    public override ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        foreach (Control c in ScheduleCompleteActivity_LTools.Controls)
        {
            tinfo.LeftTools.Add(c);
        }
        foreach (Control c in ScheduleCompleteActivity_CTools.Controls)
        {
            tinfo.CenterTools.Add(c);
        }
        foreach (Control c in ScheduleCompleteActivity_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        return(tinfo);
    }
Ejemplo n.º 58
0
    /// <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)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        foreach (Control c in ImportActionAddNote_LTools.Controls)
        {
            tinfo.LeftTools.Add(c);
        }
        foreach (Control c in ImportActionAddNote_CTools.Controls)
        {
            tinfo.CenterTools.Add(c);
        }
        foreach (Control c in ImportActionAddNote_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        tinfo.Title = GetLocalResourceObject("Title").ToString();
        return(tinfo);
    }
    public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        // TODO: refactor
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        foreach (Control c in LeftTools.Controls)
        {
            tinfo.LeftTools.Add(c);
        }
        foreach (Control c in CenterTools.Controls)
        {
            tinfo.CenterTools.Add(c);
        }
        foreach (Control c in RightTools.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)
    {
        var tinfo = new ToolsSmartPartInfo();
        var localResourceObject = GetLocalResourceObject("PageDescription.Text");

        if (localResourceObject != null)
        {
            tinfo.Description = localResourceObject.ToString();
        }
        var resourceObject = GetLocalResourceObject("PageDescription.Title");

        if (resourceObject != null)
        {
            tinfo.Title = resourceObject.ToString();
        }
        foreach (Control c in LitRequest_RTools.Controls)
        {
            tinfo.RightTools.Add(c);
        }
        return(tinfo);
    }