/// <summary> Add controls to the placeholder below the search box </summary> /// <param name="MainPlaceHolder"> Placeholder into which to place controls to be rendered</param> /// <param name="Tracer"> Trace object keeps a list of each method executed and important milestones in rendering</param> /// <remarks> This adds the results from the dataset into the space below the search box.<br /><br /> /// This creates and uses a <see cref="PagedResults_HtmlSubwriter"/> to write the results. </remarks> public override void Add_Secondary_Controls(PlaceHolder MainPlaceHolder, Custom_Tracer Tracer) { if (Tracer != null) { Tracer.Add_Trace("DataSet_Browse_Info_AggregationViewer.Add_Secondary_Controls", "Adding HTML"); } writeResult = new PagedResults_HtmlSubwriter(resultsStatistics, pagedResults, codeManager, translator, itemList, currentUser, currentMode, Tracer) { Skin = htmlSkin, Mode = currentMode, Current_Aggregation = currentCollection, Browse_Title = browseObject.Get_Label(currentMode.Language) }; writeResult.Add_Controls(MainPlaceHolder, Tracer); //if ( resultsStatistics.Total_Items > 0) //{ // Literal literal = new Literal // { // Text = "<div class=\"sbkPrsw_ResultsNavBar\">" + Environment.NewLine + " " + writeResult.Buttons + "" + Environment.NewLine + " " + writeResult.Showing_Text + Environment.NewLine + "</div>" + Environment.NewLine + "<br />" + Environment.NewLine // }; // MainPlaceHolder.Controls.Add(literal); //} }
/// <summary> Adds controls to the main navigational page </summary> /// <param name="MainPlaceHolder"> Main place holder ( "mainPlaceHolder" ) in the itemNavForm form, widely used throughout the application</param> /// <param name="Tracer"> Trace object keeps a list of each method executed and important milestones in rendering </param> /// <param name="PopulateNodeEvent"> Event is used to populate the a tree node without doing a full refresh of the page </param> /// <returns> Sorted tree with the results in hierarchical structure with volumes and issues under the titles </returns> /// <remarks> This uses a <see cref="PagedResults_HtmlSubwriter"/> instance to render the items </remarks> public void Add_Controls(PlaceHolder MainPlaceHolder, Custom_Tracer Tracer, TreeNodeEventHandler PopulateNodeEvent) { if (RequestSpecificValues.Results_Statistics == null) { return; } if (writeResult == null) { Tracer.Add_Trace("Search_Results_HtmlSubwriter.Add_Controls", "Building Result DataSet Writer"); writeResult = new PagedResults_HtmlSubwriter(RequestSpecificValues, RequestSpecificValues.Results_Statistics, RequestSpecificValues.Paged_Results); } Tracer.Add_Trace("Search_Results_HtmlSubwriter.Add_Controls", "Add controls"); writeResult.Add_Controls(MainPlaceHolder, Tracer); }
/// <summary> Adds controls to the main navigational page </summary> /// <param name="placeHolder"> Main place holder ( "mainPlaceHolder" ) in the itemNavForm form, widely used throughout the application</param> /// <param name="Tracer"> Trace object keeps a list of each method executed and important milestones in rendering </param> /// <param name="populate_node_event"> Event is used to populate the a tree node without doing a full refresh of the page </param> /// <returns> Sorted tree with the results in hierarchical structure with volumes and issues under the titles </returns> /// <remarks> This uses a <see cref="PagedResults_HtmlSubwriter"/> instance to render the items </remarks> public void Add_Controls(PlaceHolder placeHolder, Custom_Tracer Tracer, TreeNodeEventHandler populate_node_event) { if (resultsStatistics == null) { return; } if (writeResult == null) { Tracer.Add_Trace("Search_Results_HtmlSubwriter.Add_Controls", "Building Result DataSet Writer"); writeResult = new PagedResults_HtmlSubwriter(resultsStatistics, pagedResults, codeManager, translations, allItemsTable, currentUser, currentMode, Tracer) { Hierarchy_Object = Hierarchy_Object, Skin = htmlSkin, Mode = currentMode }; } Tracer.Add_Trace("Search_Results_HtmlSubwriter.Add_Controls", "Add controls"); writeResult.Add_Controls(placeHolder, Tracer); }
/// <summary> Adds controls to the main navigational page </summary> /// <param name="placeHolder"> Main place holder ( "mainPlaceHolder" ) in the itemNavForm form, widely used throughout the application</param> /// <param name="Tracer"> Trace object keeps a list of each method executed and important milestones in rendering </param> /// <param name="populate_node_event"> Event is used to populate the a tree node without doing a full refresh of the page </param> /// <returns> Sorted tree with the results in hierarchical structure with volumes and issues under the titles </returns> /// <remarks> This uses a <see cref="PagedResults_HtmlSubwriter"/> instance to render the browse </remarks> public void Add_Controls(PlaceHolder placeHolder, Custom_Tracer Tracer, TreeNodeEventHandler populate_node_event) { if ((RequestSpecificValues.Paged_Results != null) && (RequestSpecificValues.Results_Statistics != null)) { if (writeResult == null) { Tracer.Add_Trace("Public_Folder_HtmlSubwriter.Add_Controls", "Building Result DataSet Writer"); writeResult = new PagedResults_HtmlSubwriter(RequestSpecificValues, RequestSpecificValues.Results_Statistics, RequestSpecificValues.Paged_Results) { Browse_Title = RequestSpecificValues.Public_Folder.FolderName, Folder_Owner_Name = RequestSpecificValues.Public_Folder.Name, Folder_Owner_Email = RequestSpecificValues.Public_Folder.Email }; } Tracer.Add_Trace("Public_Folder_HtmlSubwriter.Add_Controls", "Add controls"); writeResult.Add_Controls(placeHolder, Tracer); } }
/// <summary> Adds controls to the main navigational page </summary> /// <param name="placeHolder"> Main place holder ( "mainPlaceHolder" ) in the itemNavForm form, widely used throughout the application</param> /// <param name="Tracer"> Trace object keeps a list of each method executed and important milestones in rendering </param> /// <param name="populate_node_event"> Event is used to populate the a tree node without doing a full refresh of the page </param> /// <returns> Sorted tree with the results in hierarchical structure with volumes and issues under the titles </returns> /// <remarks> This uses a <see cref="PagedResults_HtmlSubwriter"/> instance to render the browse </remarks> public void Add_Controls(PlaceHolder placeHolder, Custom_Tracer Tracer, TreeNodeEventHandler populate_node_event) { if ((pagedResults != null) && (resultsStatistics != null)) { if (writeResult == null) { Tracer.Add_Trace("Public_Folder_HtmlSubwriter.Add_Controls", "Building Result DataSet Writer"); writeResult = new PagedResults_HtmlSubwriter(resultsStatistics, pagedResults, codeManager, translations, allItemsTable, currentUser, currentMode, Tracer) { Current_Aggregation = Current_Aggregation, Skin = htmlSkin, Mode = currentMode, Browse_Title = publicFolder.FolderName, Folder_Owner_Name = publicFolder.Name, Folder_Owner_Email = publicFolder.Email }; } Tracer.Add_Trace("Public_Folder_HtmlSubwriter.Add_Controls", "Add controls"); writeResult.Add_Controls(placeHolder, Tracer); } }
/// <summary> Add controls to the placeholder below the search box </summary> /// <param name="MainPlaceHolder"> Placeholder into which to place controls to be rendered</param> /// <param name="Tracer"> Trace object keeps a list of each method executed and important milestones in rendering</param> /// <remarks> This adds the results from the dataset into the space below the search box.<br /><br /> /// This creates and uses a <see cref="PagedResults_HtmlSubwriter"/> to write the results. </remarks> public override void Add_Secondary_Controls(PlaceHolder MainPlaceHolder, Custom_Tracer Tracer) { if (Tracer != null) { Tracer.Add_Trace("DataSet_Browse_Info_AggregationViewer.Add_Secondary_Controls", "Adding HTML"); } writeResult = new PagedResults_HtmlSubwriter(RequestSpecificValues, ViewBag.Results_Statistics, ViewBag.Paged_Results) { Browse_Title = ViewBag.Browse_Object.Label }; writeResult.Add_Controls(MainPlaceHolder, Tracer); //if ( resultsStatistics.Total_Items > 0) //{ // Literal literal = new Literal // { // Text = "<div class=\"sbkPrsw_ResultsNavBar\">" + Environment.NewLine + " " + writeResult.Buttons + "" + Environment.NewLine + " " + writeResult.Showing_Text + Environment.NewLine + "</div>" + Environment.NewLine + "<br />" + Environment.NewLine // }; // MainPlaceHolder.Controls.Add(literal); //} }