WELOA.DAL/Wage/gz_projectB_DAO.cs

(开头部分) 19KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using WELOA.Model;
using System.Configuration;
using System.Data;
using LSDAL_SQL;

namespace GZDAL_SQL
{
public class gz_projectB_DAO
{
    
    private DateSetInformation dsinfo = new DateSetInformation();
    private ls_exception exlog = new ls_exception();
    private ls_publicclass publicclassDAO = new ls_publicclass();
    private Polytechnic trinfo = new Polytechnic();

    
    public Polytechnic delField(string strDepartment)
    {
        string strField = "[" + strDepartment + "]";
        this.trinfo = this.publicclassDAO.delField("[gz_project_b]", strField);
        return this.trinfo;
    }

    public Polytechnic delField(string strProjectA, string strField)
    {
        this.trinfo.nException = -1;
        using (SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["lsstring"].ConnectionString))
        {
            SqlCommand command = connection.CreateCommand();
            command.CommandText = "DELETE  gz_project_b  WHERE [所属模块]= @strProjectA AND [字段名称] = @strField ";
            command.Parameters.AddWithValue("@strProjectA", strProjectA);
            command.Parameters.AddWithValue("@strField", strField);
            if (connection.State == ConnectionState.Closed)
            {
                connection.Open();
            }
            try
            {
                this.trinfo.rowsnum = command.ExecuteNonQuery();
            }
            catch (Exception exception)
            {
                this.exlog.insexception("gz_projectB_DAO.cs delField", exception.Message);
                this.trinfo.nException = 1;
                return this.trinfo;
            }
        }
        return this.trinfo;
    }

    public Polytechnic delProjectA(string strProjectA)
    {
        this.trinfo.nException = -1;
        using (SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["lsstring"].ConnectionString))
        {
后面还有 420 行代码,解锁后查看完整代码

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

AI 解读

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

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