프로젝트

일반

사용자정보

통계
| 개정판:

hytos / DTI_PID / SPPIDConverter / DB / SPPID_DBInfo.cs @ 04133d37

이력 | 보기 | 이력해설 | 다운로드 (3.18 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
        private string _SQLSERVER_DBNAME = string.Empty;
21

    
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
        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
        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
        public string SQLSERVER_DBNAME { get => _SQLSERVER_DBNAME; set => _SQLSERVER_DBNAME = value; }
54
        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

    
59
        public static SPPID_DBInfo GetInstance()
60
        {
61
            if (sPPIDInfo == null)
62
                sPPIDInfo = new SPPID_DBInfo();
63

    
64
            return sPPIDInfo;
65
        }
66

    
67

    
68
        public static void Clear()
69
        {
70
            sPPIDInfo = new SPPID_DBInfo();
71
        }
72
    }
73
}
클립보드 이미지 추가 (최대 크기: 500 MB)