Esempio n. 1
0
 /// <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)
 {
     if (Visible)
     {
         SmartPart smartPart = MatchOptions;
         if (smartPart != null)
         {
             smartPart.InitSmartPart(ParentWorkItem, PageWorkItem.Services.Get <IPageWorkItemLocator>());
             smartPart.DialogService = DialogService;
             EntityBoundSmartPart entitySmartPart = smartPart as EntityBoundSmartPart;
             if (entitySmartPart != null)
             {
                 entitySmartPart.InitEntityBoundSmartPart(PageWorkItem.Services.Get <IEntityContextService>());
             }
         }
         tabFilters.Attributes.Add("onclick", "javascript:OnTabFiltersClick()");
         tabOptions.Attributes.Add("onclick", "javascript:OnTabOptionsClick()");
     }
 }
Esempio n. 2
0
    /// <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)
    {
        if (!Visible)
        {
            return;
        }
        SmartPart smartPart = MatchOptions;

        if (smartPart != null)
        {
            smartPart.InitSmartPart(ParentWorkItem, PageWorkItem.Services.Get <IPageWorkItemLocator>());
            smartPart.DialogService = DialogService;
            EntityBoundSmartPart entitySmartPart = smartPart as EntityBoundSmartPart;
            if (entitySmartPart != null)
            {
                entitySmartPart.InitEntityBoundSmartPart(PageWorkItem.Services.Get <IEntityContextService>());
            }
        }
        tabFilters.Attributes.Add("onClick", "return Sage.UI.Forms.LeadSearchForDuplicates.onTabFiltersClick();");
        tabOptions.Attributes.Add("onClick", "return Sage.UI.Forms.LeadSearchForDuplicates.onTabOptionsClick();");
    }