本文整理汇总了C#中SobekCM.Core.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.Core.Users.User_Object
的用法示例。
在下文中一共展示了User_Object.Is_Aggregation_Curator方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Write_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 Write_Internal_Header_HTML(TextWriter Output, User_Object Current_User)
{
if ((Current_User != null) && ( (Current_User.Is_Aggregation_Curator(RequestSpecificValues.Current_Mode.Aggregation))
|| (Current_User.Is_Internal_User)
|| ( Current_User.Can_Edit_All_Items( RequestSpecificValues.Current_Mode.Aggregation ))))
{
bool isAll = (RequestSpecificValues.Current_Mode.Aggregation.Length == 0) || (RequestSpecificValues.Current_Mode.Aggregation.ToUpper() == "ALL");
Output.WriteLine(" <table id=\"sbk_InternalHeader\">");
Output.WriteLine(" <tr style=\"height:45px;\">");
Output.WriteLine(" <td style=\"text-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 style=\"text-align:center; vertical-align:middle\">");
// Add button to view private items
Display_Mode_Enum displayMode = RequestSpecificValues.Current_Mode.Mode;
Aggregation_Type_Enum aggrType = RequestSpecificValues.Current_Mode.Aggregation_Type;
string submode = RequestSpecificValues.Current_Mode.Info_Browse_Mode;
RequestSpecificValues.Current_Mode.Mode = Display_Mode_Enum.Aggregation;
RequestSpecificValues.Current_Mode.Aggregation_Type = Aggregation_Type_Enum.Private_Items;
RequestSpecificValues.Current_Mode.Info_Browse_Mode = String.Empty;
Output.WriteLine(" <button title=\"View Private Items\" class=\"intheader_button_aggr view_private_items\" onclick=\"window.location.href='" + UrlWriterHelper.Redirect_URL(RequestSpecificValues.Current_Mode) + "';return false;\" ></button>");
// For the ALL top-level collectin, just send them to the top-level existing stats pages
if (isAll)
{
RequestSpecificValues.Current_Mode.Mode = Display_Mode_Enum.Statistics;
// Add button to view item count information
RequestSpecificValues.Current_Mode.Statistics_Type = Statistics_Type_Enum.Item_Count_Standard_View;
Output.WriteLine(" <button title=\"View Item Count\" class=\"intheader_button_aggr show_item_count\" onclick=\"window.location.href='" + UrlWriterHelper.Redirect_URL(RequestSpecificValues.Current_Mode) + "';return false;\"></button>");
// Add button to view usage statistics information
RequestSpecificValues.Current_Mode.Statistics_Type = Statistics_Type_Enum.Usage_Overall;
Output.WriteLine(" <button title=\"View Usage Statistics\" class=\"intheader_button_aggr show_usage_statistics\" onclick=\"window.location.href='" + UrlWriterHelper.Redirect_URL(RequestSpecificValues.Current_Mode) + "';return false;\"></button>");
// Add admin view is system administrator
if ((Current_User.Is_System_Admin) || (Current_User.Is_Portal_Admin) || (Current_User.Is_Aggregation_Curator(RequestSpecificValues.Hierarchy_Object.Code)))
{
// Add button to view manage menu
RequestSpecificValues.Current_Mode.Mode = Display_Mode_Enum.Aggregation;
RequestSpecificValues.Current_Mode.Aggregation_Type = Aggregation_Type_Enum.Manage_Menu;
Output.WriteLine(" <button title=\"View All Management Options\" class=\"intheader_button_aggr manage_aggr_button\" onclick=\"window.location.href='" + UrlWriterHelper.Redirect_URL(RequestSpecificValues.Current_Mode) + "';return false;\"></button>");
RequestSpecificValues.Current_Mode.Mode = Display_Mode_Enum.Administrative;
RequestSpecificValues.Current_Mode.Admin_Type = Admin_Type_Enum.Aggregation_Single;
string prevAggrCode = RequestSpecificValues.Current_Mode.Aggregation;
RequestSpecificValues.Current_Mode.Aggregation = "all";
Output.WriteLine(" <button title=\"Edit Administrative Information\" class=\"intheader_button_aggr admin_view_button\" onclick=\"window.location.href='" + UrlWriterHelper.Redirect_URL(RequestSpecificValues.Current_Mode) + "';return false;\" ></button>");
RequestSpecificValues.Current_Mode.Aggregation = prevAggrCode;
}
}
else
{
// Add button to view item count information
RequestSpecificValues.Current_Mode.Aggregation_Type = Aggregation_Type_Enum.Item_Count;
Output.WriteLine(" <button title=\"View Item Count\" class=\"intheader_button_aggr show_item_count\" onclick=\"window.location.href='" + UrlWriterHelper.Redirect_URL(RequestSpecificValues.Current_Mode) + "';return false;\"></button>");
// Add button to view usage statistics information
RequestSpecificValues.Current_Mode.Aggregation_Type = Aggregation_Type_Enum.Usage_Statistics;
Output.WriteLine(" <button title=\"View Usage Statistics\" class=\"intheader_button_aggr show_usage_statistics\" onclick=\"window.location.href='" + UrlWriterHelper.Redirect_URL(RequestSpecificValues.Current_Mode) + "';return false;\"></button>");
// Add admin view is system administrator
if ((Current_User.Is_System_Admin) || (Current_User.Is_Portal_Admin) || (Current_User.Is_Aggregation_Curator(RequestSpecificValues.Hierarchy_Object.Code)))
{
// Add button to view manage menu
RequestSpecificValues.Current_Mode.Mode = Display_Mode_Enum.Aggregation;
RequestSpecificValues.Current_Mode.Aggregation_Type = Aggregation_Type_Enum.Manage_Menu;
Output.WriteLine(" <button title=\"View All Management Options\" class=\"intheader_button_aggr manage_aggr_button\" onclick=\"window.location.href='" + UrlWriterHelper.Redirect_URL(RequestSpecificValues.Current_Mode) + "';return false;\"></button>");
// Add the admin button
RequestSpecificValues.Current_Mode.Mode = Display_Mode_Enum.Administrative;
RequestSpecificValues.Current_Mode.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='" + UrlWriterHelper.Redirect_URL(RequestSpecificValues.Current_Mode) + "';return false;\" ></button>");
}
}
Output.WriteLine(" </td>");
RequestSpecificValues.Current_Mode.Info_Browse_Mode = submode;
RequestSpecificValues.Current_Mode.Mode = displayMode;
RequestSpecificValues.Current_Mode.Aggregation_Type = aggrType;
// Add the HELP icon next
Output.WriteLine(" <td style=\"text-align:left; width:30px;\">");
Output.WriteLine(" <span id=\"sbk_InternalHeader_Help\"><a href=\"" + UI_ApplicationCache_Gateway.Settings.Help_URL(RequestSpecificValues.Current_Mode.Base_URL) + "help/aggrheader\" title=\"Help regarding this header\" ><img src=\""+ Static_Resources.Help_Button_Darkgray_Jpg + "\" alt=\"?\" title=\"Help regarding this header\" /></a></span>");
Output.WriteLine(" </td>");
Write_Internal_Header_Search_Box(Output);
Output.WriteLine(" </tr>");
//.........这里部分代码省略.........