WELOA.Web/gz/admin/login_viewcolumnnum.aspx.cs

(开头部分) 3KB

这里只显示每个文件的开头 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_viewcolumnnum : System.Web.UI.Page
    {
        
       
        private GZ_Info infoBLL = new GZ_Info();
       

        
        protected void btnEdit_Click(object sender, EventArgs e)
        {
            int nViewNum = Convert.ToInt32(this.tbNum.Text.Trim());
            DateSetInformation DateSetInformation = this.infoBLL.selectgzinfo();
            if (DateSetInformation.nException > 0)
            {
                this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常1,请联系管理员处理。')</script>");
            }
            else if (DateSetInformation.ds.Tables[0].Rows.Count > 0)
            {
                DateSetInformation = null;
                Polytechnic Polytechnic = this.infoBLL.updategzinfo(nViewNum);
                if (Polytechnic.nException > 0)
                {
                    this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常2,请联系管理员处理。')</script>");
                }
                else if (Polytechnic.rowsnum > 0)
                {
                    DateSetInformation = this.infoBLL.selectgzinfo();
                    if (DateSetInformation.nException > 0)
                    {
                        this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常3,请联系管理员处理。')</script>");
                    }
                    else
                    {
                        this.tbNum.Text = DateSetInformation.ds.Tables[0].Rows[0]["gzcolnum"].ToString();
                        this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('修改成功。')</script>");
                    }
                }
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.Session["rank"] == null)
            {
                this.Session.Clear();
                base.Response.Write("<script language=javascript >window.parent.location.href='../../admin/default.aspx'</script>");
            }
            else if (this.Session["rank"].ToString() == "")
            {
后面还有 19 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。