SenBiTeSolution.UI/ManageWeb/Frameset/Menu.aspx.cs

(开头部分) 1KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Data;
using SenBiTeSolution.DAL;

namespace SenBiTeSolution.UI.ManageWeb.Frameset
{
    public partial class Menu : System.Web.UI.Page
    {
        protected bool haveMenu = false;
        protected string url = "";
        protected string name = "";

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindParentModules();                
            }

            Response.Write(name);
    
        }

        /// <summary>
        /// 绑定父级模块
        /// </summary>
        protected void BindParentModules()
        {
            t_Modules modules=new t_Modules ();
            DataSet dataSet = modules.GetParentModules();
            if (dataSet != null && dataSet.Tables[0] != null && dataSet.Tables[0].Rows.Count > 0)
            {
                haveMenu = true;                
                rpt_Parent.DataSource = dataSet.Tables[0].DefaultView;
                rpt_Parent.DataBind();
            }
            else
            {
                haveMenu = false;
            }
        }

        /// <summary>
        /// 根据父模块编号得到子模块集合
        /// </summary>
        /// <param name="parentId"></param>
        /// <returns></returns>
        protected DataView GetChildModules(string parentId)
        {
            t_Modules modules = new t_Modules();
            DataSet dataSet = modules.GetChildModules(parentId);
            if (dataSet != null && dataSet.Tables[0] != null && dataSet.Tables[0].Rows.Count > 0)
            {
                return dataSet.Tables[0].DefaultView;
后面还有 9 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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