WELOA.Web/gz/admin/login_wageclear.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 WELOA.Model;
using GZBLL;

namespace Web.gz.admin
{
    public partial class login_wageclear : System.Web.UI.Page
    {
        
        private DateSetInformation dsinfo = new DateSetInformation();
        
       
        private GZ_Project projectBLL = new GZ_Project();
       
        private string strDate;
        private string strProjectA;
        private GZ_Wage wageBLL = new GZ_Wage();

        
        protected void btDel_Click(object sender, EventArgs e)
        {
            this.strProjectA = this.ddlProjectA.Text;
            this.strDate = this.date1.Text.Trim();
            Polytechnic Polytechnic = this.wageBLL.delData(this.strProjectA, this.strDate);
            if (Polytechnic.nException > 0)
            {
                this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常6,请联系管理员处理。')</script>");
            }
            else
            {
                this.lbRowscountview.Text = "共删除" + Polytechnic.rowsnum.ToString() + "条数据。";
            }
        }

        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() == "")
            {
                this.Session.Clear();
                base.Response.Write("<script language=javascript >window.parent.location.href='../../admin/default.aspx'</script>");
            }
            else if ((this.Session["rank"].ToString() != "超级管理员") && (this.Session["rank"].ToString() != "工资管理员"))
            {
                base.Response.Write("<script language=javascript >alert('您没有管理权限。');window.parent.location.href='../../navigation/admin/main.aspx'</script>");
            }
            this.lbRowscountview.Text = "";
            if (!this.Page.IsPostBack)
            {
                this.dsinfo = this.projectBLL.selecttree();
                if (this.dsinfo.nException > 0)
后面还有 14 行代码,解锁后查看完整代码

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

AI 解读

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

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