Web/BBS/BanKuaiView.aspx.cs
(开头部分) 11KB这里只显示每个文件的开头 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;
public partial class BBS_BanKuaiView : System.Web.UI.Page
{
public string BanKuaiName = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
BanKuaiName = ZWL.DBUtility.DbHelperSQL.GetSHSL("select BanKuaiName from ERPBBSBanKuai where ID="+Request.QueryString["ID"].ToString());
if (!Page.IsPostBack)
{
ZWL.Common.PublicMethod.CheckSession();
DataBindToGridview();
//判断是否能访问该版块
if (CheckAllowIn() == false)
{
ZWL.Common.MessageBox.ShowAndRedirect(this, "您没有访问此版块的权限!请咨询系统管理员!", "BanKuaiList.aspx");
}
//判断是否显示 置顶、删除 按钮(版主所有)
string BanZhuList = ZWL.DBUtility.DbHelperSQL.GetSHSL("select BanZhuList from ERPBBSBanKuai where ID="+Request.QueryString["ID"].ToString());
if (ZWL.Common.PublicMethod.StrIFIn("," + ZWL.Common.PublicMethod.GetSessionValue("UserName") + ",", "," + BanZhuList + ",") == true)
{
ImageButton3.Visible = true;
ImageButton6.Visible = true;
ImageButton7.Visible = true;
}
else
{
ImageButton3.Visible = false;
ImageButton6.Visible = false;
ImageButton7.Visible = false;
}
}
}
public bool CheckAllowIn()
{
bool IfExsit = false;
string JiaoSeXianZhi = ZWL.DBUtility.DbHelperSQL.GetSHSL("select JiaoSeXianZhiList from ERPBBSBanKuai where ID=" + Request.QueryString["ID"].ToString());
string BuMenXianZhi = ZWL.DBUtility.DbHelperSQL.GetSHSL("select BuMenXianZhi from ERPBBSBanKuai where ID=" + Request.QueryString["ID"].ToString());
string UserXianZhi = ZWL.DBUtility.DbHelperSQL.GetSHSL("select UserXianZhi from ERPBBSBanKuai where ID=" + Request.QueryString["ID"].ToString());
if (ZWL.Common.PublicMethod.StrIFIn(",所有角色,", ","+JiaoSeXianZhi+",") == true)
{
IfExsit = true;
}
if (ZWL.Common.PublicMethod.StrIFIn(",所有部门,", "," + BuMenXianZhi + ",") == true)
{
IfExsit = true;
}
后面还有 219 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。