Backup/WebApp/Admin/Module_Manage.aspx.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using RM.Common;
namespace RM.WebApp.Admin
{
public partial class Module_Manage : AdminBasic
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.IsAuthority(0);
RM.BLL.Module ModuleBLL = new RM.BLL.Module();
ddlParent.DataSource = ModuleBLL.GetList("Depth=0");
ddlParent.DataBind();
ListItem item = new ListItem("=作为顶级模块=","0");
ddlParent.Items.Insert(0, item);
ddlParent.Attributes.Add("onchange", "ParentChange(this);");
txtUrl.Attributes.Add("disabled", "true");
}
}
protected string showModule(object mName, object mDepth)
{
int depth = Convert.ToInt32(mDepth);
string name = mName.ToString();
if (depth == 0)
{
name = "<b>" + name + "</b>";
}
else
{
name = "├─" + name;
}
return name;
}
protected void btn_Save_Click(object sender, EventArgs e)
{
int ModuleID = Convert.ToInt32(hfID.Value);
int ParentID = Convert.ToInt32(ddlParent.SelectedValue);
if (txtName.Text.Trim() == "")
{
ClientScript.RegisterStartupScript(this.GetType(), "namenull", JS.Alert("名称不能为空."));
return;
}
if (txtUrl.Text.Trim() == "" && ParentID > 0)
{
ClientScript.RegisterStartupScript(this.GetType(), "tagnull", JS.Alert("URL不能为空."));
后面还有 160 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。