コード例 #1
0
        /// <summary>
        /// 绑定小窗口链接
        /// </summary>
        public void BingDataItems()
        {
            hlMegamenuModule_Top.Attributes.Add("data-href", ViewIframeUrl((Int32)EnumPosition.Top));
            hlMegamenuModule_Left.Attributes.Add("data-href", ViewIframeUrl((Int32)EnumPosition.Left));
            hlMegamenuModule_Right.Attributes.Add("data-href", ViewIframeUrl((Int32)EnumPosition.Right));
            hlMegamenuModule_Bottom.Attributes.Add("data-href", ViewIframeUrl((Int32)EnumPosition.Bottom));


            WebHelper.BindList(ddlTabType, typeof(EnumTabType));


            DNNGo_ThemePlugin_MenuOptions OptionItem = ArticleItem;

            WebHelper.SelectedListByValue(ddlTabType, OptionItem.TabType);
        }
コード例 #2
0
        /// <summary>
        /// 更新绑定
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void cmdUpdate_Click(object sender, EventArgs e)
        {
            try
            {
                DNNGo_ThemePlugin_MenuOptions OptionItem = ArticleItem;

                OptionItem.TabType = WebHelper.GetIntParam(Request, ddlTabType.UniqueID, (Int32)EnumTabType.SliderNenu);

                OptionItem.Options = SetItemSettings();


                OptionItem.LastIP   = WebHelper.UserHost;
                OptionItem.LastTime = DateTime.Now;
                OptionItem.LastUser = UserId;

                if (OptionItem.ID > 0)
                {
                    OptionItem.Update();
                }
                else
                {
                    OptionItem.TabID    = EditTabID;
                    OptionItem.ModuleId = ModuleId;
                    OptionItem.PortalId = PortalId;
                    OptionItem.Insert();
                }



                mTips.IsPostBack = false;
                mTips.LoadMessage("UpdateSettingsSuccess", EnumTips.Success, this, new String[] { "" });

                Response.Redirect(xUrl("EditTabID", EditTabID.ToString(), "MegaMenu"), false);
            }
            catch (Exception ex)
            {
                DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(this, ex);
            }
        }