WELOA.Web/admin/login_permission.aspx.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LSBLL;
using System.Data;
using WELOA.Model;
namespace Web.admin
{
public partial class login_permission : System.Web.UI.Page
{
private LS_Departmentandpost departmentandpostBLL = new LS_Departmentandpost();
private DataSet ds = null;
private DateSetInformation dsinfo = new DateSetInformation();
private LS_Permission permissionBLL = new LS_Permission();
private Polytechnic trinfo = new Polytechnic();
protected void btTijiao_Click(object sender, EventArgs e)
{
string strPost = this.ddlPostList.Text.Trim();
string strDepartment = "";
string strPrivileges = "";
for (int i = 0; i < this.cblColumns.Items.Count; i++)
{
strDepartment = this.cblColumns.Items[i].Text.Trim();
if (this.cblColumns.Items[i].Selected)
{
strPrivileges = "是";
}
else
{
strPrivileges = "";
}
this.trinfo = this.permissionBLL.updataPrivileges(strPost, strDepartment, strPrivileges);
if (this.trinfo.nException > 0)
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常4,请联系管理员处理。')</script>");
return;
}
}
base.Response.Redirect("login_permission.aspx");
}
protected void ddlPostList_SelectedIndexChanged(object sender, EventArgs e)
{
this.cblColumns.ClearSelection();
this.dsinfo = this.permissionBLL.selectXiangmu(this.ddlPostList.Text);
if (this.dsinfo.nException > 0)
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常5,请联系管理员处理。')</script>");
}
else
{
后面还有 135 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
