Web_ScienceManage/ProjectInfoAuditUpdate.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;
using BLL;
public partial class ProjectInfoAuditUpdate : System.Web.UI.Page
{
public Users users = new Users();
public ProjectInfo st = new ProjectInfo();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["Users"] != null)
{
users = (Users)Session["Users"];
}
else
{
users = new Users();
Response.Write("<script>parent.window.location.href='login.aspx'</script>");
}
if (!IsPostBack)
{
if (Request.QueryString["uid"] != null)
{
st = ProjectInfoBLL.GetIdByProjectInfo(Convert.ToInt32(Request.QueryString["uid"]));
}
}
}
protected void btnAdd_Click(object sender, EventArgs e)
{
try
{
ProjectInfo st = ProjectInfoBLL.GetIdByProjectInfo(Convert.ToInt32(Request.QueryString["uid"]));
st.AuditState = ddlAuditState.SelectedValue;
st.AuditWhy = txtAuditWhy.Value.Trim();
if (ProjectInfoBLL.UpdateProjectInfo(st) > 0)
{
this.Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('修改成功!');window.location.replace('ProjectInfoAudit.aspx')</script>");
return;
}
else
{
this.Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('修改失败!');</script>");
return;
}
后面还有 11 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。