WebUI/AdminM/Category/ek_dictionaryList.aspx.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HModel;
using Bll;
using System.Data;
using System.Text;
namespace WebUI.AdminM
{
public partial class ek_dictionaryList : System.Web.UI.Page
{
public string ch_id = "0";
public string GetMenu_Type(string Menu_Type)
{
if (Menu_Type == "1")
{
return "父节";
}
if (Menu_Type == "2")
{
return "子节";
}
if (Menu_Type == "3")
{
return "子节-" + Menu_Type;
}
return "其他";
}
public StringBuilder TableTree_Menu = new StringBuilder();
public void GetMenuTreeTable()
{
if (Request.QueryString["cid"] != null)
{
string cid = Request.QueryString["cid"].ToString();
ch_id = cid;
List<ek_dictionary> list = null;
if(cid=="0")
list = Bll_ek_dictionary.GetEntityListByWhere(ek_dictionary._.parent_id == cid);
else
list = Bll_ek_dictionary.GetEntityListByWhere(ek_dictionary._.id == cid);
List<ek_dictionary> listall = Bll_ek_dictionary.GetAllEntityList();
int eRowIndex = 0;
foreach (ek_dictionary drv in list)
{
int trID = int.Parse(drv.id.ToString());// "node-" + eRowIndex.ToString();
this.TableTree_Menu.Append("<tr id='" + trID + "'>");
this.TableTree_Menu.Append("<td style='width: 230px;padding-left:20px;'><span class=\"folder\">" + drv.title +"[" + drv.id + "]" + "</span></td>");
this.TableTree_Menu.Append("<td style='width: 60px;text-align:center;'>" + this.GetMenu_Type(drv.class_layer.ToString()) + "</td>");
后面还有 85 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。