zzr99
2022-01-19 dfd0831df7b8245b7af6b6be28efd18b29fab17d
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
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using SQLHelper;
 
namespace BLL
{
    class ClsXt_SystemParameterHlp
    {
        private string mvarReportTitle;
 
        public string MvarReportTitle
        {
            get { return mvarReportTitle; }
            set { mvarReportTitle = value; }
        }
        public string WherePart;
        public string ClsName;
        //
        public ClsXt_SystemParameter_Model oModel = new ClsXt_SystemParameter_Model();
        //
        //
        public ClsXt_SystemParameterHlp()
        {
            mvarReportTitle = "系统参数设置";
            ClsName = "系统参数";
        }
       
        public bool GetInfoByID(long sItemID,ref string s)
        {
            DataSet DS ;
            ClsCN oCn = new ClsCN();
            try
            {
                DS = oCn.RunProcReturn("Select * from Xt_SystemParameter Where HItemID=" + sItemID + "", "Xt_SystemParameter");
                if (DS.Tables[0].Rows.Count  == 0)
                    return false;
                else
                {
                    oModel.HInterID = DBUtility.ClsPub.isLong(DS.Tables[0].Rows[0]["HInterID"]);
                    oModel.HItemID = DBUtility.ClsPub.isLong(DS.Tables[0].Rows[0]["HItemID"]);
                    oModel.HModClass = DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HModClass"]);
                    oModel.HKey = DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HKey"]);
                    oModel.HCaption = DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HCaption"]);
                    oModel.HValue = DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HValue"]);
                    oModel.HReadonly = DBUtility.ClsPub.isBool(DS.Tables[0].Rows[0]["HReadonly"]);
                    oModel.HExplanation = DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HExplanation"]);
                    oModel.HFarmat = DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HFarmat"]);
                    return true;
                }
            }
            catch (Exception e)
            {
                s = e.Message;
                return false;
            }
        }
       
    }
}