개정판 8847ea67
dev issue #1203 : MSSQL 설정 창 추가 및 데이터 구조 변경
Change-Id: I7f310aba7b221ea99c3e5b8070fb89c7a85460e3
DTI_PID/SPPIDConverter/DB/Project_Info.cs | ||
---|---|---|
7 | 7 |
|
8 | 8 |
namespace Converter.BaseModel |
9 | 9 |
{ |
10 |
public enum ID2DB_Type |
|
11 |
{ |
|
12 |
SQLite, |
|
13 |
MSSQL |
|
14 |
} |
|
10 | 15 |
public class Project_Info |
11 | 16 |
{ |
12 | 17 |
private static Project_Info projectInfo; |
... | ... | |
19 | 24 |
private string _SvgImageDirPath; |
20 | 25 |
private string _SPPID_ImageDirPath; |
21 | 26 |
|
27 |
public ID2DB_Type DBType { get; set; } |
|
28 |
public string ServerIP { get; set; } |
|
29 |
public string Port { get; set; } |
|
30 |
public string DBUser { get; set; } |
|
31 |
public string DBPassword { get; set; } |
|
32 |
|
|
22 | 33 |
public string DefaultPath { |
23 | 34 |
get { return _DefaultPath; } |
24 | 35 |
set { |
... | ... | |
42 | 53 |
{ |
43 | 54 |
get { return _DBFilePath; } |
44 | 55 |
} |
56 |
|
|
45 | 57 |
public string TempDirPath |
46 | 58 |
{ |
47 | 59 |
get { return _TempDirPath; } |
... | ... | |
51 | 63 |
{ |
52 | 64 |
get { return _ImageDirPath; } |
53 | 65 |
} |
66 |
|
|
54 | 67 |
public string SvgImageDirPath |
55 | 68 |
{ |
56 | 69 |
get { return _SvgImageDirPath; } |
... | ... | |
63 | 76 |
|
64 | 77 |
public bool Enable { get => _Enable; set => _Enable = value; } |
65 | 78 |
|
66 |
|
|
67 | 79 |
public static Project_Info GetInstance() |
68 | 80 |
{ |
69 | 81 |
if (projectInfo == null) |
내보내기 Unified diff