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

(开头部分) 33KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LSBLL;
using System.Data;
using GZBLL;
using WELOA.Model;
using System.Text;

namespace Web.gz.admin
{
    public partial class login_projectB : System.Web.UI.Page
    {
        
        private LS_Departmentandpost departmentBLL = new LS_Departmentandpost();
        private DataSet ds = null;
 
        private GZ_ProjectB projectB_BLL = new GZ_ProjectB();
        private GZ_Project projectBLL = new GZ_Project();
       
        private GZ_Wage wageBLL = new GZ_Wage();

        
        protected void btAddProject_Click(object sender, EventArgs e)
        {
            string strProjectA = this.ddlProjectA.Text.Trim();
            string strField = this.tbAddField.Text.Trim();
            Polytechnic Polytechnic = this.projectB_BLL.insField(strProjectA, strField);
            Polytechnic Polytechnic2 = this.wageBLL.insproject(strProjectA, strField);
            if ((Polytechnic.nException > 0) || (Polytechnic2.nException > 0))
            {
                this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常,请联系管理员处理。')</script>");
            }
            else if (Polytechnic.rowscount > 0)
            {
                this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('字段名重复,请重填。')</script>");
            }
            else if (Polytechnic.rowsnum > 0)
            {
                this.lbAddMessage.Text = "字段:" + this.tbAddField.Text + " 添加成功!";
                this.tbAddField.Text = "";
                this.gvlist();
                DateSetInformation DateSetInformation = this.projectB_BLL.selectFieldList(this.ddlProjectA.Text.Trim());
                if (DateSetInformation.nException > 0)
                {
                    this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常,请联系管理员处理。')</script>");
                }
                else
                {
                    int num;
                    this.cblField.Items.Clear();
                    for (num = 0; num < DateSetInformation.ds.Tables[0].Rows.Count; num++)
                    {
                        this.cblField.Items.Add(DateSetInformation.ds.Tables[0].Rows[num][2].ToString());
                    }
                    DateSetInformation DateSetInformation2 = this.projectB_BLL.selectFieldAndDepartment(this.ddlProjectA.Text, this.ddlDepartment.Text);
                    if (DateSetInformation2.nException > 0)
后面还有 608 行代码,解锁后查看完整代码

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

AI 解读

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

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