hytos / DTI_PID / SPPIDConverter / DB / SPPID_DBInfo.cs @ ca7d0ada
이력 | 보기 | 이력해설 | 다운로드 (2.38 KB)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
4 |
using System.Text; |
5 |
using System.Threading.Tasks; |
6 |
|
7 |
namespace Converter.SPPID.DB |
8 |
{ |
9 |
public class SPPID_DBInfo |
10 |
{ |
11 |
private static SPPID_DBInfo sPPIDInfo; |
12 |
|
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 |
|
21 |
private List<string> _PlantList = new List<string>(); |
22 |
private string _SelectedPlant = string.Empty; |
23 |
|
24 |
private string _PlantPath = string.Empty; |
25 |
private string _Plant = string.Empty; |
26 |
private string _PlantDic = string.Empty; |
27 |
private string _PlantPID = string.Empty; |
28 |
private string _PlantPIDDic = string.Empty; |
29 |
|
30 |
private bool _Enable = false; |
31 |
|
32 |
public string DBType { get => _DBType; set => _DBType = value; } |
33 |
public string Service { get => _Service; set => _Service = value; } |
34 |
public string Site { get => _Site; set => _Site = value; } |
35 |
public string ServerIP { get => _ServerIP; set => _ServerIP = value; } |
36 |
public string Port { get => _Port; set => _Port = value; } |
37 |
public string DBUser { get => _DBUser; set => _DBUser = value; } |
38 |
public string DBPassword { get => _DBPassword; set => _DBPassword = value; } |
39 |
public List<string> PlantList { get => _PlantList; set => _PlantList = value; } |
40 |
public string SelectedPlant { get => _SelectedPlant; set => _SelectedPlant = value; } |
41 |
public string PlantPath { get => _PlantPath; set => _PlantPath = value; } |
42 |
public string Plant { get => _Plant; set => _Plant = value; } |
43 |
public string PlantDic { get => _PlantDic; set => _PlantDic = value; } |
44 |
public string PlantPID { get => _PlantPID; set => _PlantPID = value; } |
45 |
public string PlantPIDDic { get => _PlantPIDDic; set => _PlantPIDDic = value; } |
46 |
public bool Enable { get => _Enable; set => _Enable = value; } |
47 |
|
48 |
public static SPPID_DBInfo GetInstance() |
49 |
{ |
50 |
if (sPPIDInfo == null) |
51 |
sPPIDInfo = new SPPID_DBInfo(); |
52 |
|
53 |
return sPPIDInfo; |
54 |
} |
55 |
|
56 |
|
57 |
public static void Clear() |
58 |
{ |
59 |
sPPIDInfo = new SPPID_DBInfo(); |
60 |
} |
61 |
} |
62 |
} |