WELOA.Web/gz/admin/login_projectA.aspx.cs
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GZBLL;
using WELOA.Model;
namespace Web.gz.admin
{
public partial class login_projectA : System.Web.UI.Page
{
private GZ_Project projectBLL = new GZ_Project();
protected void btAddProject_Click(object sender, EventArgs e)
{
string strProject = this.tbProject.Text.Trim();
Polytechnic Polytechnic = this.projectBLL.AddProject(strProject);
if (Polytechnic.nException > 0)
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常2,请联系管理员处理。')</script>");
}
else
{
if (Polytechnic.rowscount > 0)
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('模块重复,请修改。')</script>");
}
if (Polytechnic.rowsnum > 0)
{
this.tbProject.Text = "";
DateSetInformation DateSetInformation = this.projectBLL.selecttree();
if (DateSetInformation.nException > 0)
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常3,请联系管理员处理。')</script>");
}
else
{
this.GridView1.DataSource = DateSetInformation.ds.Tables[0];
this.GridView1.DataBind();
}
}
else
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('添加失败,请联系管理员处理。')</script>");
}
}
}
protected void btDelProject_Click(object sender, EventArgs e)
{
string strProject = this.tbProject.Text.Trim();
if (strProject != "")
{
Polytechnic Polytechnic = this.projectBLL.DelProject(strProject);
if (Polytechnic.nException > 0)
{
后面还有 167 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
