Web/Managers/basemanage/ls_admin.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Bll;
using Model;
namespace Web.Managers.basemanage
{
public partial class ls_admin : Web.Managers.MasterPage
{
public int iCanLayer;
BLinkSort ibn = new BLinkSort();
protected int iMaxLayer;
protected void Page_Load(object sender, EventArgs e)
{
MTableSet mts = (new BTableSet()).GetModel("LinkSort");
iMaxLayer = mts.SortLayer;
iCanLayer = (new BTableSet()).GetModel("LinkSort").SortLayer;
ltname.Text = this.MenuName;
if (!base.IsPostBack)
{
ltname.Text = base.MenuName;
binddata();
}
}
/// <summary>
/// 绑定分类
/// </summary>
private void binddata()
{
Repeater1.DataSource = ibn.GetSortTree(0, true, ref iMaxLayer);
Repeater1.DataBind();
}
/// <summary>
/// 修改
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void lbedit_Click(object sender, EventArgs e)
{
string id = string.Empty;
int m = 0;
foreach (Control c in Repeater1.Items)
{
CheckBox cb = (CheckBox)c.FindControl("cbid");
if (cb.Checked)
{
id = cb.ToolTip;
m++;
}
}
switch (m)
{
case 0:
base.ShowMsg(Page, "至少选择一项!");
break;
后面还有 71 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
