hytos / DTI_PID / SPPIDConverter / DB / SPPID_DBInfo.cs @ 04133d37
이력 | 보기 | 이력해설 | 다운로드 (3.18 KB)
1 | 23eb98bf | gaqhf | using System; |
---|---|---|---|
2 | using System.Collections.Generic; |
||
3 | using System.Linq; |
||
4 | using System.Text; |
||
5 | using System.Threading.Tasks; |
||
6 | |||
7 | b8e2644e | gaqhf | namespace Converter.SPPID.DB |
8 | 23eb98bf | gaqhf | { |
9 | 2e1e3c12 | gaqhf | public class SPPID_DBInfo |
10 | 23eb98bf | gaqhf | { |
11 | 2e1e3c12 | gaqhf | private static SPPID_DBInfo sPPIDInfo; |
12 | 23eb98bf | gaqhf | |
13 | private string _DBType = string.Empty; |
||
14 | private string _Service = string.Empty; |
||
15 | private string _Site = string.Empty; |
||
16 | private string _ServerIP = string.Empty; |
||
17 | private string _Port = string.Empty; |
||
18 | private string _DBUser = string.Empty; |
||
19 | private string _DBPassword = string.Empty; |
||
20 | 2e92b956 | gaqhf | private string _SQLSERVER_DBNAME = string.Empty; |
21 | 23eb98bf | gaqhf | |
22 | private List<string> _PlantList = new List<string>(); |
||
23 | private string _SelectedPlant = string.Empty; |
||
24 | |||
25 | private string _PlantPath = string.Empty; |
||
26 | private string _Plant = string.Empty; |
||
27 | private string _PlantDic = string.Empty; |
||
28 | private string _PlantPID = string.Empty; |
||
29 | private string _PlantPIDDic = string.Empty; |
||
30 | |||
31 | 04133d37 | gaqhf | private string _Plant_DataBase = string.Empty; |
32 | private string _PlantDic_DataBase = string.Empty; |
||
33 | private string _PlantPID_DataBase = string.Empty; |
||
34 | private string _PlantPIDDic_DataBase = string.Empty; |
||
35 | |||
36 | 23eb98bf | gaqhf | private bool _Enable = false; |
37 | |||
38 | public string DBType { get => _DBType; set => _DBType = value; } |
||
39 | public string Service { get => _Service; set => _Service = value; } |
||
40 | public string Site { get => _Site; set => _Site = value; } |
||
41 | public string ServerIP { get => _ServerIP; set => _ServerIP = value; } |
||
42 | public string Port { get => _Port; set => _Port = value; } |
||
43 | public string DBUser { get => _DBUser; set => _DBUser = value; } |
||
44 | public string DBPassword { get => _DBPassword; set => _DBPassword = value; } |
||
45 | public List<string> PlantList { get => _PlantList; set => _PlantList = value; } |
||
46 | public string SelectedPlant { get => _SelectedPlant; set => _SelectedPlant = value; } |
||
47 | public string PlantPath { get => _PlantPath; set => _PlantPath = value; } |
||
48 | public string Plant { get => _Plant; set => _Plant = value; } |
||
49 | public string PlantDic { get => _PlantDic; set => _PlantDic = value; } |
||
50 | public string PlantPID { get => _PlantPID; set => _PlantPID = value; } |
||
51 | public string PlantPIDDic { get => _PlantPIDDic; set => _PlantPIDDic = value; } |
||
52 | public bool Enable { get => _Enable; set => _Enable = value; } |
||
53 | 2e92b956 | gaqhf | public string SQLSERVER_DBNAME { get => _SQLSERVER_DBNAME; set => _SQLSERVER_DBNAME = value; } |
54 | 04133d37 | gaqhf | public string Plant_DataBase { get => _Plant_DataBase; set => _Plant_DataBase = value; } |
55 | public string PlantDic_DataBase { get => _PlantDic_DataBase; set => _PlantDic_DataBase = value; } |
||
56 | public string PlantPID_DataBase { get => _PlantPID_DataBase; set => _PlantPID_DataBase = value; } |
||
57 | public string PlantPIDDic_DataBase { get => _PlantPIDDic_DataBase; set => _PlantPIDDic_DataBase = value; } |
||
58 | 23eb98bf | gaqhf | |
59 | 2e1e3c12 | gaqhf | public static SPPID_DBInfo GetInstance() |
60 | 23eb98bf | gaqhf | { |
61 | if (sPPIDInfo == null) |
||
62 | 2e1e3c12 | gaqhf | sPPIDInfo = new SPPID_DBInfo(); |
63 | 23eb98bf | gaqhf | |
64 | return sPPIDInfo; |
||
65 | } |
||
66 | ec0c7045 | gaqhf | |
67 | |||
68 | public static void Clear() |
||
69 | { |
||
70 | sPPIDInfo = new SPPID_DBInfo(); |
||
71 | } |
||
72 | 23eb98bf | gaqhf | } |
73 | } |