Web/Managers/basemanage/pls_add.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 Bll;
using Model;
using System.Data;
using Common;
namespace Web.Managers.basemanage
{
public partial class pls_add : Web.Managers.MasterPage
{
BCommentSort ibp = new BCommentSort();
public int icanlayer;
protected void Page_Load(object sender, EventArgs e)
{
if (!base.IsPostBack)
{
MTableSet mts = (new BTableSet()).GetModel("CommentSort");
MSiteSettings mss=base.GetTopSiteSettingsModel();
icanlayer = mts.SortLayer;
AdvanceField(mts.FieldList,mss);
bindsort();
ltname.Text = base.MenuName;
if (base.Request.QueryString["id"] != null && Funs.isInt2(base.Request.QueryString["id"].ToString()))
{
MCommentSort mpt = ibp.GetModel(int.Parse(base.Request.QueryString["id"].ToString()));
ltaction.Text = mpt.PS_Id.ToString();
base.SelectDropDownList(ref ddlparentid, mpt.PS_Parentid.ToString());
tbname.Text = mpt.PS_Name;
tbtitle.Text = mpt.PS_Title;
tbkeywords.Text = mpt.PS_Keywords;
tbdescription.Text = mpt.PS_Description;
uploadUrl0.Value = mpt.PS_Pic;
uploadUrl1.Value = mpt.PS_Pic2;
tburl.Text = mpt.PS_Url;
tbmemo.Text = mpt.PS_Memo;
}
else
{
tburl.Text = mts.FilePath + (ibp.GetMaxId() + 1).ToString();
ltaction.Text = "add";
if (base.Request.QueryString["add"] != null && Funs.isInt2(base.Request.QueryString["add"].ToString()))
{
base.SelectDropDownList(ref ddlparentid, base.Request.QueryString["add"].ToString());
}
}
}
}
private void bindsort()
{
int layer = icanlayer;
DataTable dt = null;
switch (layer)
{
后面还有 142 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
