ch
2022-05-30 f9ef44a67fbf73f073efe65600bc25e204fde04f
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
68
69
70
71
72
73
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using SQLHelper;
 
namespace BLL
{
    class ClsXt_XtgnbHlp
    {
        private string mvarReportTitle;
 
        public string MvarReportTitle
        {
            get { return mvarReportTitle; }
            set { mvarReportTitle = value; }
        }
        public string WherePart;
        public string ClsName;
        //
        public long id;
        public string gnbm;
        public string gnsy;
        public string gnmc;
        public string gnms;
        public string sjgnbm;
        public bool mjbz;
        public bool MenuList;
        public bool RightFlag;
        public bool useflag;
        public bool NetMenuList;
        //
        //
        public ClsXt_XtgnbHlp()
        {
            mvarReportTitle = "系统功能表设置";
            ClsName = "系统功能表";
        }
       
        public bool GetInfoByID(long sItemID,ref string s)
        {
            DataSet DS ;
            ClsCN oCn = new ClsCN();
            try
            {
                DS = oCn.RunProcReturn("Select * from Xt_Xtgnb Where id=" + sItemID + "", "Xt_Xtgnb");
                if (DS.Tables[0].Rows.Count  == 0)
                    return false;
                else
                {
                    id =DBUtility.ClsPub.isLong(DS.Tables[0].Rows[0]["id"]);
                    gnbm = DS.Tables[0].Rows[0]["gnbm"].ToString();
                    gnsy = DS.Tables[0].Rows[0]["gnsy"].ToString();
                    gnmc = DS.Tables[0].Rows[0]["gnmc"].ToString();
                    gnms = DS.Tables[0].Rows[0]["gnms"].ToString();
                    sjgnbm = DS.Tables[0].Rows[0]["sjgnbm"].ToString().Trim();
                    mjbz = DBUtility.ClsPub.isBool( DS.Tables[0].Rows[0]["mjbz"]);
                    MenuList = DBUtility.ClsPub.isBool( DS.Tables[0].Rows[0]["MenuList"]);
                    RightFlag = DBUtility.ClsPub.isBool( DS.Tables[0].Rows[0]["RightFlag"]);
                    useflag = DBUtility.ClsPub.isBool( DS.Tables[0].Rows[0]["useflag"]);
                    NetMenuList = DBUtility.ClsPub.isBool( DS.Tables[0].Rows[0]["NetMenuList"]);
                    return true;
                }
            }
            catch (Exception e)
            {
                s = e.Message;
                return false;
            }
        }
       
    }
}