本文整理汇总了C#中DotNetNuke.Entities.Modules.ModuleController.UpdateTabModuleOrder方法的典型用法代码示例。如果您正苦于以下问题:C# ModuleController.UpdateTabModuleOrder方法的具体用法?C# ModuleController.UpdateTabModuleOrder怎么用?C# ModuleController.UpdateTabModuleOrder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DotNetNuke.Entities.Modules.ModuleController
的用法示例。
在下文中一共展示了ModuleController.UpdateTabModuleOrder方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MoveUpDown
private void MoveUpDown( ModuleAction Command )
{
ModuleController objModules = new ModuleController();
switch (Command.CommandName)
{
case ModuleActionType.MoveTop:
objModules.UpdateModuleOrder(PortalModule.TabId, PortalModule.ModuleConfiguration.ModuleID, 0, Command.CommandArgument);
break;
case ModuleActionType.MoveUp:
objModules.UpdateModuleOrder(PortalModule.TabId, PortalModule.ModuleConfiguration.ModuleID, PortalModule.ModuleConfiguration.ModuleOrder - 3, Command.CommandArgument);
break;
case ModuleActionType.MoveDown:
objModules.UpdateModuleOrder(PortalModule.TabId, PortalModule.ModuleConfiguration.ModuleID, PortalModule.ModuleConfiguration.ModuleOrder + 3, Command.CommandArgument);
break;
case ModuleActionType.MoveBottom:
objModules.UpdateModuleOrder(PortalModule.TabId, PortalModule.ModuleConfiguration.ModuleID, (PortalModule.ModuleConfiguration.PaneModuleCount * 2) + 1, Command.CommandArgument);
break;
}
objModules.UpdateTabModuleOrder(PortalModule.TabId, PortalModule.PortalId);
// Redirect to the same page to pick up changes
Response.Redirect(Request.RawUrl, true);
}
示例2: MoveToPane
private void MoveToPane( ModuleAction Command )
{
ModuleController objModules = new ModuleController();
objModules.UpdateModuleOrder(PortalModule.TabId, PortalModule.ModuleConfiguration.ModuleID, -1, Command.CommandArgument);
objModules.UpdateTabModuleOrder(PortalModule.TabId, PortalModule.PortalId);
// Redirect to the same page to pick up changes
Response.Redirect(Request.RawUrl, true);
}
示例3: MoveModule
public HttpResponseMessage MoveModule(MoveModuleDTO postData)
{
var moduleController = new ModuleController();
moduleController.UpdateModuleOrder(postData.TabId, postData.ModuleId, postData.ModuleOrder, postData.Pane);
moduleController.UpdateTabModuleOrder(postData.TabId);
return Request.CreateResponse(HttpStatusCode.OK);
}
示例4: ModuleMoveToPanePostBack
/// -----------------------------------------------------------------------------
/// <summary>
/// ModuleMoveToPanePostBack excutes when a module is moved by Drag-and-Drop
/// </summary>
/// <param name="args">A ClientAPIPostBackEventArgs object</param>
/// <history>
/// [cnurse] 12/05/2007 Moved from Skin.vb
/// </history>
/// -----------------------------------------------------------------------------
private void ModuleMoveToPanePostBack(ClientAPIPostBackEventArgs args)
{
var portalSettings = (PortalSettings)HttpContext.Current.Items["PortalSettings"];
if (TabPermissionController.CanAdminPage())
{
var moduleId = Convert.ToInt32(args.EventArguments["moduleid"]);
var paneName = Convert.ToString(args.EventArguments["pane"]);
var moduleOrder = Convert.ToInt32(args.EventArguments["order"]);
var moduleController = new ModuleController();
moduleController.UpdateModuleOrder(portalSettings.ActiveTab.TabID, moduleId, moduleOrder, paneName);
moduleController.UpdateTabModuleOrder(portalSettings.ActiveTab.TabID);
//Redirect to the same page to pick up changes
PaneControl.Page.Response.Redirect(PaneControl.Page.Request.RawUrl, true);
}
}
示例5: MoveToPane
private void MoveToPane(ModuleAction Command)
{
var objModules = new ModuleController();
objModules.UpdateModuleOrder(ModuleContext.TabId, ModuleContext.ModuleId, -1, Command.CommandArgument);
objModules.UpdateTabModuleOrder(ModuleContext.TabId);
//Redirect to the same page to pick up changes
Response.Redirect(Request.RawUrl, true);
}
示例6: ModuleMoveToPanePostBack
private void ModuleMoveToPanePostBack( ClientAPIPostBackEventArgs args )
{
PortalSettings portalSettings = (PortalSettings)HttpContext.Current.Items["PortalSettings"];
// if (PortalSecurity.IsInRole(portalSettings.AdministratorRoleName.ToString()) || PortalSecurity.IsInRoles(portalSettings.ActiveTab.AdministratorRoles.ToString()))
{
int intModuleID = Convert.ToInt32(args.EventArguments["moduleid"]);
string strPaneName = args.EventArguments["pane"].ToString();
int intOrder = Convert.ToInt32(args.EventArguments["order"]);
ModuleController objModules = new ModuleController();
objModules.UpdateModuleOrder(portalSettings.ActiveTab.TabID, intModuleID, intOrder, strPaneName);
objModules.UpdateTabModuleOrder(portalSettings.ActiveTab.TabID, portalSettings.ActiveTab.PortalID);
// Redirect to the same page to pick up changes
Response.Redirect(Request.RawUrl, true);
}
}