WELOA.BLL/Wage/GZ_Project.cs

(开头部分) 18KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GZDAL_SQL;
using WELOA.Model;
using System.Xml;
using LSDAL_SQL;

namespace GZBLL
{
    public class GZ_Project
    {
        
        private gz_projectDAO projectDAO = new gz_projectDAO();
        private Polytechnic trinfo = new Polytechnic();

        
        public Polytechnic AddProject(string strProject)
        {
            this.trinfo = this.projectDAO.selectProjectRows(strProject);
            if ((this.trinfo.nException <= 0) && (this.trinfo.rowscount <= 0))
            {
                this.trinfo = null;
                this.trinfo = new Polytechnic();
                this.trinfo = this.projectDAO.selectProjectMaxId();
                if (this.trinfo.nException > 0)
                {
                    return this.trinfo;
                }
                int nId = this.trinfo.rowscount + 1;
                this.trinfo = null;
                string strTableName = "gz_wage" + nId.ToString();
                this.trinfo = new Polytechnic();
                this.trinfo = this.projectDAO.AddProjectA(nId, strProject, strTableName);
                if (this.trinfo.nException > 0)
                {
                    return this.trinfo;
                }
                int rowsnum = this.trinfo.rowsnum;
                this.trinfo = null;
                this.trinfo = new Polytechnic();
                this.trinfo = this.projectDAO.selectTableRows(strTableName);
                if (this.trinfo.nException > 0)
                {
                    return this.trinfo;
                }
                if (this.trinfo.rowscount > 0)
                {
                    this.trinfo.rowscount = 0;
                    this.trinfo = null;
                    this.trinfo = new Polytechnic();
                    this.trinfo = this.projectDAO.delTable(strTableName);
                    if (this.trinfo.nException > 0)
                    {
                        return this.trinfo;
                    }
                }
                this.trinfo = null;
                this.trinfo = new Polytechnic();
后面还有 400 行代码,解锁后查看完整代码

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

AI 解读

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

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