Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!EX_Admin.Power("tab_edit", "导航设置"))
            {
                WindowNoPower();
            }
            int id = RequestTool.RequestInt("id", 0);

            model = B_Lebi_Tab.GetModel(id);
            if (model == null)
            {
                model = new Lebi_Tab();
            }
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!EX_Admin.Power("tab_edit", "导航设置"))
            {
                PageReturnMsg = PageNoPowerMsg();
            }

            id  = RequestTool.RequestInt("id", 0);
            tab = B_Lebi_Tab.GetModel(id);
            if (tab == null)
            {
                Response.Write("参数错误");
                Response.End();
                return;
            }
            string where = "tabid=" + id;
            models       = B_Lebi_TabChild.GetList(where, "sort desc");
        }
Exemplo n.º 3
0
 /// <summary>
 /// 安全方式绑定表单数据
 /// </summary>
 public static Lebi_Tab SafeBindForm(Lebi_Tab model)
 {
     return(D_Lebi_Tab.Instance.SafeBindForm(model));
 }