WELOA.Web/sb/admin/login_system.aspx.cs
(开头部分) 28KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WELOA.Model;
using LSBLL;
using SBBLL;
using System.Text;
namespace Web.sb.admin
{
public partial class login_system : System.Web.UI.Page
{
private DateSetInformation dsinfo = new DateSetInformation();
private LS_Staff staffBLL = new LS_Staff();
private SB_System systemBLL = new SB_System();
private Polytechnic trinfo = new Polytechnic();
protected void btAddCategories_Click(object sender, EventArgs e)
{
this.trinfo = this.systemBLL.insCategories(this.tbAddCategories.Text.Trim(), this.tbCategoriesnumber.Text.Trim());
if (this.trinfo.nException > 0)
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常2,请联系管理员处理。')</script>");
}
else if (this.trinfo.strFail == "repeat")
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('类别名称或编码有重复,请检查。')</script>");
}
else if (this.trinfo.rowsnum > 0)
{
this.showcategories();
this.lbMessageCategories.Text = " 添加成功!";
this.tbAddCategories.Text = "";
this.tbCategoriesnumber.Text = "";
this.Page.SetFocus(this.tbAddCategories);
}
}
protected void btAddLosscause_Click(object sender, EventArgs e)
{
string strLosscause = this.tbAddLosscause.Text.Trim();
this.trinfo = this.systemBLL.insLosscause(strLosscause);
if (this.trinfo.nException > 0)
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常10,请联系管理员处理。')</script>");
}
else if (this.trinfo.nException > 0)
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常11,请联系管理员处理。')</script>");
}
else if (this.trinfo.rowscount > 0)
{
后面还有 592 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
