wzp
2023-03-02 adee7a71ba7ab1b63cab63381dfe1846437853d6
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
 
 
using Dao;
using System.Reflection;
 
public abstract class Const
{
  private static GwSetting _CurrentSetting;
  private static string _MachineID;
 
  public static GwSetting CurrentSetting
  {
    get
    {
      if (Const._CurrentSetting == null)
      {
        using (GwSettingDao gwSettingDao = new GwSettingDao())
          Const._CurrentSetting = gwSettingDao.GetCurrentSetting();
      }
      return Const._CurrentSetting;
    }
  }
 
  public static string Version
  {
    get
    {
      return "数据库版本:" + Const.CurrentSetting.Version + " 管理平台版本:" + Assembly.GetAssembly(typeof (UserDao)).GetName().Version.ToString();
    }
  }
 
  public static string Title
  {
    get
    {
      return Const.CurrentSetting.GwName;
    }
  }
}