Dal/GroupsManage.cs

(开头部分) 3KB

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

using System;
using System.Collections.Generic;
using System.Text;
using US.Model;
using System.Data;
using System.Data.SqlClient;
using US.DBUtility;


namespace US.Dal
{
   public class GroupsManage
    {
       public int GroupsAdd(GroupInfo g)
       {
           SqlParameter[] parameter;
           parameter = SQLHelper.GetCachedParameters("AddGroup");
           if (parameter == null)
           {
               parameter = new SqlParameter[] { 
                   new SqlParameter("@flag",SqlDbType.Int,4),
                   new SqlParameter("@i_GId",SqlDbType.Int,4),
                   new SqlParameter("@vc_GName",SqlDbType.VarChar,50),
                   new SqlParameter("@txt_PurviewList",SqlDbType.NText),
                   new SqlParameter("@ret",SqlDbType.Int,4)
               };
               SQLHelper.CacheParameters("AddGroup",parameter);
           }
           parameter[0].Value = 1;
           parameter[1].Value = 0;
           parameter[2].Value = g.Vc_GName;
           parameter[3].Value = g.Txt_PurviewList;
           parameter[4].Direction = ParameterDirection.Output;
           SQLHelper.ExecuteNonQuery(SQLHelper.ConnectionStringLocalTransaction, CommandType.StoredProcedure, "AddGroup", parameter);
           return Convert.ToInt32(parameter[4].Value);
       }
       public int Groupsupdate(GroupInfo g)
       {
           SqlParameter[] parameter;
           parameter = SQLHelper.GetCachedParameters("AddGroup");
           if (parameter == null)
           {
               parameter = new SqlParameter[] { 
                   new SqlParameter("@flag",SqlDbType.Int,4),
                   new SqlParameter("@i_GId",SqlDbType.Int,4),
                   new SqlParameter("@vc_GName",SqlDbType.VarChar,50),
                   new SqlParameter("@txt_PurviewList",SqlDbType.NText),
                   new SqlParameter("@ret",SqlDbType.Int,4)
               };
               SQLHelper.CacheParameters("AddGroup", parameter);
           }
           parameter[0].Value = 2;
           parameter[1].Value = g.I_GId;
           parameter[2].Value = g.Vc_GName;
           parameter[3].Value = g.Txt_PurviewList;
           parameter[4].Direction = ParameterDirection.Output;
           SQLHelper.ExecuteNonQuery(SQLHelper.ConnectionStringLocalTransaction, CommandType.StoredProcedure, "AddGroup", parameter);
           return Convert.ToInt32(parameter[4].Value);
       }
       public int Groupsdelete(GroupInfo g)
后面还有 24 行代码,购买后查看完整代码

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

AI 解读 AI

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

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