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


C# ModuleController.UpdateTabModuleOrder方法代码示例

本文整理汇总了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);
        }
开发者ID:huayang912,项目名称:cs-dotnetnuke,代码行数:28,代码来源:ActionBase.ascx.cs

示例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);
        }
开发者ID:huayang912,项目名称:cs-dotnetnuke,代码行数:10,代码来源:ActionBase.ascx.cs

示例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);
        }
开发者ID:rut5949,项目名称:Dnn.Platform,代码行数:9,代码来源:ModuleServiceController.cs

示例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);
            }
        }
开发者ID:biganth,项目名称:Curt,代码行数:26,代码来源:Pane.cs

示例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);
        }
开发者ID:hungnt-me,项目名称:Dnn.Platform,代码行数:10,代码来源:ActionManager.cs

示例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);
            }
        }
开发者ID:huayang912,项目名称:cs-dotnetnuke,代码行数:17,代码来源:Skin.ascx.cs


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