Hidistro.UI.Web/Admin/WeiXin/EditMenu.cs

(开头部分) 11KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

namespace Hidistro.UI.Web.Admin.WeiXin
{
    using Hidistro.ControlPanel.Store;
    using Hidistro.Core;
    using Hidistro.Entities.VShop;
    using Hidistro.UI.ControlPanel.Utility;
    using System;
    using System.Text;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;
    using System.Linq;

    public class EditMenu : AdminPage
    {
        protected Button btnAddMenu;
        protected DropDownList ddlType;
        protected DropDownList ddlValue;
        protected HiddenField hdfIframeHeight;
        private int id;
        protected int iframeHeight;
        protected int iNameByteWidth;
        protected Literal lblParent;
        protected HtmlGenericControl liBind;
        protected HtmlGenericControl liParent;
        protected HtmlGenericControl liUrl;
        protected HtmlGenericControl liValue;
        private int oneLineHeight;
        private int parentid;
        protected TextBox txtMenuName;
        protected TextBox txtUrl;

        protected EditMenu()
            : base("m06", "wxp04")
        {
            this.iNameByteWidth = 8;
            this.iframeHeight = 240;
            this.oneLineHeight = 0x2c;
            this.id = Globals.RequestQueryNum("MenuID");
            this.parentid = Globals.RequestQueryNum("PID");
        }

        private void btnAddMenu_Click(object sender, EventArgs e)
        {
            if ((this.ddlType.SelectedValue == "1") && (this.ddlValue.Items.Count <= 0))
            {
                this.ShowMsgToTarget("关键字不能为空", false, "parent");
            }
            else
            {
                MenuInfo menu = new MenuInfo();
                if (this.id > 0)
                {
                    menu = VShopHelper.GetMenu(this.id);
                }
                else
                {
                    menu.ParentMenuId = this.parentid;
                    if (!VShopHelper.CanAddMenu(menu.ParentMenuId))
                    {
                        this.ShowMsgToTarget("一级菜单不能超过三个,对应二级菜单不能超过五个", false, "parent");
后面还有 221 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。