当前位置: 首页>>代码示例>>C#>>正文


C# User_Object.Is_Aggregation_Curator方法代码示例

本文整理汇总了C#中SobekCM.Library.Users.User_Object.Is_Aggregation_Curator方法的典型用法代码示例。如果您正苦于以下问题:C# User_Object.Is_Aggregation_Curator方法的具体用法?C# User_Object.Is_Aggregation_Curator怎么用?C# User_Object.Is_Aggregation_Curator使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SobekCM.Library.Users.User_Object的用法示例。


在下文中一共展示了User_Object.Is_Aggregation_Curator方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Add_Internal_Header_HTML

        /// <summary> Adds the internal header HTML for this specific HTML writer </summary>
        /// <param name="Output"> Stream to which to write the HTML for the internal header information </param>
        /// <param name="Current_User"> Currently logged on user, to determine specific rights </param>
        public override void Add_Internal_Header_HTML(TextWriter Output, User_Object Current_User)
        {
            if ((Current_User != null) && ( currentMode.Aggregation.Length > 0 ) && ( currentMode.Aggregation.ToUpper() != "ALL" ) && ((Current_User.Is_Aggregation_Curator(currentMode.Aggregation)) || (Current_User.Is_Internal_User) || ( Current_User.Can_Edit_All_Items( currentMode.Aggregation ))))
            {
                Output.WriteLine("  <table cellspacing=\"0\" id=\"internalheader_aggr\">");
                Output.WriteLine("    <tr height=\"45px\">");
                Output.WriteLine("      <td align=\"left\" width=\"100px\">");
                Output.WriteLine("          <button title=\"Hide Internal Header\" class=\"intheader_button_aggr hide_intheader_button_aggr\" onclick=\"return hide_internal_header();\" alt=\"Hide Internal Header\"></button>");
                Output.WriteLine("      </td>");

                Output.WriteLine("      <td align=\"center\" valign=\"middle\">");

                // Add button to view private items
                Display_Mode_Enum displayMode = currentMode.Mode;
                string submode = currentMode.Info_Browse_Mode;

                currentMode.Mode = Display_Mode_Enum.Aggregation_Private_Items;
                currentMode.Info_Browse_Mode = String.Empty;
                Output.WriteLine("          <button title=\"View Private Items\" class=\"intheader_button_aggr view_private_items\" onclick=\"window.location.href='" + currentMode.Redirect_URL() + "';return false;\" ></button>");

                // Add button to view item count information
                currentMode.Mode = Display_Mode_Enum.Aggregation_Item_Count;
                Output.WriteLine("          <button title=\"View Item Count\" class=\"intheader_button_aggr show_item_count\" onclick=\"window.location.href='" + currentMode.Redirect_URL() + "';return false;\"></button>");

                // Add button to view usage statistics information
                currentMode.Mode = Display_Mode_Enum.Aggregation_Usage_Statistics;
                Output.WriteLine("          <button title=\"View Usage Statistics\" class=\"intheader_button_aggr show_usage_statistics\" onclick=\"window.location.href='" + currentMode.Redirect_URL() + "';return false;\"></button>");

                // Add admin view is system administrator
                if ((Current_User.Is_System_Admin) || (Current_User.Is_Aggregation_Curator(Hierarchy_Object.Code)))
                {
                    currentMode.Mode = Display_Mode_Enum.Administrative;
                    currentMode.Admin_Type = Admin_Type_Enum.Aggregation_Single;
                    Output.WriteLine("          <button title=\"Edit Administrative Information\" class=\"intheader_button_aggr admin_view_button\" onclick=\"window.location.href='" + currentMode.Redirect_URL() + "';return false;\" ></button>");
                }
                else
                {
                    currentMode.Mode = Display_Mode_Enum.Aggregation_Admin_View;
                    Output.WriteLine("          <button title=\"View Administrative Information\" class=\"intheader_button_aggr admin_view_button\" onclick=\"window.location.href='" + currentMode.Redirect_URL() + "';return false;\" ></button>");
                }
                Output.WriteLine("      </td>");

                currentMode.Info_Browse_Mode = submode;
                currentMode.Mode = displayMode;

                // Add the HELP icon next
                Output.WriteLine("      <td align=\"left\" width=\"30px\">");
                Output.WriteLine("        <span class=\"intheader_help\"><a href=\"" + SobekCM_Library_Settings.Help_URL(currentMode.Base_URL) + "help/aggrheader\" title=\"Help regarding this header\" ><img src=\"" + currentMode.Base_URL + "default/images/help_button_darkgray.jpg\" alt=\"?\" title=\"Help regarding this header\" /></a></span>");
                Output.WriteLine("      </td>");

                Add_Internal_Header_Search_Box(Output);

                Output.WriteLine("    </tr>");

                Output.WriteLine("  </table>");
            }
            else
            {
                base.Add_Internal_Header_HTML(Output, Current_User);
            }
        }
开发者ID:randomyed,项目名称:SobekCM-Web-Application,代码行数:64,代码来源:Aggregation_HtmlSubwriter.cs


注:本文中的SobekCM.Library.Users.User_Object.Is_Aggregation_Curator方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。