1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using SQLHelper;
 
namespace BLL
{
    public class ClsGy_UserGroup_View : DBUtility.ClsGy_Base_View
    {
        public BLL.ClsGy_UserGroup_Model omodel = new BLL.ClsGy_UserGroup_Model();
        SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); 
        //
        public ClsGy_UserGroup_View()
        {
            base.MvarReportTitle = "角色设置";
            base.MvarItemKey = "System_UserGroup";
            base.SQLName = "Select GroupID HGroupID,GroupID HGroupID,GroupName 角色名称 from System_UserGroup   Order by GroupName ";
        }
        //
        public void Dispose()
        {
            GC.SuppressFinalize(this);
        }
        //
 
        //返回项目信息
        public override bool GetInfoByID(Int64 sItemID)
        {
            DataSet DS;
            try
            {
                DS = oCn.RunProcReturn("Select * from " + MvarItemKey + " Where GroupID='" + sItemID + "'", MvarItemKey, ref DBUtility.ClsPub.sExeReturnInfo);
                if (DS.Tables[0].Rows.Count == 0)
                    return false;
                else
                {
                    return GetInfo(DS);
                }
            }
            catch (Exception e)
            {
                throw (e);
            }
        }
 
        //返回项目信息
        public override bool GetInfo(DataSet DS)
        {
            try
            {
                omodel = new BLL.ClsGy_UserGroup_Model();
                omodel.GroupID = Convert.ToInt64(DS.Tables[0].Rows[0]["GroupID"]);
                omodel.GroupName = DS.Tables[0].Rows[0]["GroupName"].ToString().Trim();
                return true;
 
            }
            catch (Exception e)
            {
                throw (e);
            }
        }
 
 
 
    }
}