개정판 78cffba9
Insert Dialog Final & Convert Validation 완료
Change-Id: I1132b9a0c0e9e3aab0bf5e79770529f81bec4a81
ConvertService/ServiceBase/Markus.Service.StationController/ViewModel/FinalPDFAddDialogViewModel.cs | ||
---|---|---|
56 | 56 |
OnPropertyChanged(() => FinalPDFAdd_DocInfo_ID); |
57 | 57 |
} |
58 | 58 |
} |
59 |
|
|
60 |
private string _Project_NO_Border = "#FF000000"; |
|
61 |
public string Project_NO_Border |
|
62 |
{ |
|
63 |
get { return _Project_NO_Border; } |
|
64 |
set |
|
65 |
{ |
|
66 |
if (FinalPDFAdd_Project_NO != null) |
|
67 |
{ |
|
68 |
_Project_NO_Border = "#FF000000"; |
|
69 |
OnPropertyChanged(() => Project_NO_Border); |
|
70 |
} |
|
71 |
else |
|
72 |
{ |
|
73 |
_Project_NO_Border = "#FFFF0000"; |
|
74 |
OnPropertyChanged(() => Project_NO_Border); |
|
75 |
} |
|
76 |
} |
|
77 |
} |
|
78 |
|
|
79 |
private string _DOCUMENT_ID_Border = "#FF000000"; |
|
80 |
public string DOCUMENT_ID_Border |
|
81 |
{ |
|
82 |
get { return _DOCUMENT_ID_Border; } |
|
83 |
set |
|
84 |
{ |
|
85 |
if (FinalPDFAdd_Document_ID != null) |
|
86 |
{ |
|
87 |
_DOCUMENT_ID_Border = "#FF000000"; |
|
88 |
OnPropertyChanged(() => DOCUMENT_ID_Border); |
|
89 |
} |
|
90 |
else |
|
91 |
{ |
|
92 |
_DOCUMENT_ID_Border = "#FFFF0000"; |
|
93 |
OnPropertyChanged(() => DOCUMENT_ID_Border); |
|
94 |
} |
|
95 |
} |
|
96 |
} |
|
97 |
|
|
98 |
private string _DocInfo_ID_Border = "#FF000000"; |
|
99 |
public string DocInfo_ID_Border |
|
100 |
{ |
|
101 |
get { return _DocInfo_ID_Border; } |
|
102 |
set |
|
103 |
{ |
|
104 |
if (FinalPDFAdd_DocInfo_ID != null) |
|
105 |
{ |
|
106 |
_DocInfo_ID_Border = "#FF000000"; |
|
107 |
OnPropertyChanged(() => DocInfo_ID_Border); |
|
108 |
} |
|
109 |
else |
|
110 |
{ |
|
111 |
_DocInfo_ID_Border = "#FFFF0000"; |
|
112 |
OnPropertyChanged(() => DocInfo_ID_Border); |
|
113 |
} |
|
114 |
} |
|
115 |
} |
|
116 |
|
|
117 |
private string _Project_NO_Color = "#FFFFFFFF"; |
|
118 |
public string Project_NO_Color |
|
119 |
{ |
|
120 |
get { return _Project_NO_Color; } |
|
121 |
set |
|
122 |
{ |
|
123 |
if (FinalPDFAdd_Project_NO != null) |
|
124 |
{ |
|
125 |
_Project_NO_Color = "#FFFFFFFF"; |
|
126 |
OnPropertyChanged(() => Project_NO_Color); |
|
127 |
} |
|
128 |
else |
|
129 |
{ |
|
130 |
_Project_NO_Color = "#FFFF0000"; |
|
131 |
OnPropertyChanged(() => Project_NO_Color); |
|
132 |
} |
|
133 |
} |
|
134 |
} |
|
135 |
|
|
136 |
private string _DOCUMENT_ID_Color = "#FFFFFFFF"; |
|
137 |
public string DOCUMENT_ID_Color |
|
138 |
{ |
|
139 |
get { return _DOCUMENT_ID_Color; } |
|
140 |
set |
|
141 |
{ |
|
142 |
if (FinalPDFAdd_Document_ID != null) |
|
143 |
{ |
|
144 |
_DOCUMENT_ID_Color = "#FFFFFFFF"; |
|
145 |
OnPropertyChanged(() => DOCUMENT_ID_Color); |
|
146 |
} |
|
147 |
else |
|
148 |
{ |
|
149 |
_DOCUMENT_ID_Color = "#FFFF0000"; |
|
150 |
OnPropertyChanged(() => DOCUMENT_ID_Color); |
|
151 |
} |
|
152 |
} |
|
153 |
} |
|
59 | 154 |
|
155 |
private string _DocInfo_ID_Color = "#FFFFFFFF"; |
|
156 |
public string DocInfo_ID_Color |
|
157 |
{ |
|
158 |
get { return _DocInfo_ID_Color; } |
|
159 |
set |
|
160 |
{ |
|
161 |
if (FinalPDFAdd_DocInfo_ID != null) |
|
162 |
{ |
|
163 |
_DocInfo_ID_Color = "#FFFFFFFF"; |
|
164 |
OnPropertyChanged(() => DocInfo_ID_Color); |
|
165 |
} |
|
166 |
else |
|
167 |
{ |
|
168 |
_DocInfo_ID_Color = "#FFFF0000"; |
|
169 |
OnPropertyChanged(() => DocInfo_ID_Color); |
|
170 |
} |
|
171 |
} |
|
172 |
} |
|
60 | 173 |
#endregion |
61 | 174 |
|
62 | 175 |
#region Command |
... | ... | |
74 | 187 |
/// </summary> |
75 | 188 |
public async void FinalPDFAdd_OK(object obj) |
76 | 189 |
{ |
77 |
try
|
|
190 |
if (String.IsNullOrEmpty(FinalPDFAdd_Project_NO) || String.IsNullOrEmpty(FinalPDFAdd_DocInfo_ID) || String.IsNullOrEmpty(FinalPDFAdd_Document_ID))
|
|
78 | 191 |
{ |
79 |
string ConverAdd_ID = GuidExtension.shortGuid(); |
|
80 |
var items = await WcfClient.GET_SELECT_CONVERT_INSERTAsync(ConverAdd_ID, FinalPDFAdd_Project_NO, FinalPDFAdd_DocInfo_ID, FinalPDFAdd_Document_ID); |
|
81 |
System.Diagnostics.Debug.WriteLine(items); |
|
82 |
|
|
83 |
MessageBox.Show("데이터베이스에 추가 완료! "); |
|
192 |
Project_NO_Border = ""; |
|
193 |
DOCUMENT_ID_Border = ""; |
|
194 |
DocInfo_ID_Border = ""; |
|
195 |
Project_NO_Color = ""; |
|
196 |
DOCUMENT_ID_Color = ""; |
|
197 |
DocInfo_ID_Color = ""; |
|
84 | 198 |
} |
85 |
catch (Exception ex)
|
|
199 |
else
|
|
86 | 200 |
{ |
87 |
MessageBox.Show(ex.ToString()); |
|
201 |
try |
|
202 |
{ |
|
203 |
string ConverAdd_ID = GuidExtension.shortGuid(); |
|
204 |
var items = await WcfClient.GET_SELECT_CONVERT_INSERTAsync(ConverAdd_ID, FinalPDFAdd_Project_NO, FinalPDFAdd_DocInfo_ID, FinalPDFAdd_Document_ID); |
|
205 |
System.Diagnostics.Debug.WriteLine(items); |
|
206 |
|
|
207 |
MessageBox.Show("데이터베이스에 추가 완료! "); |
|
208 |
} |
|
209 |
catch (Exception ex) |
|
210 |
{ |
|
211 |
MessageBox.Show(ex.ToString()); |
|
212 |
} |
|
213 |
|
|
214 |
FinalPDFAdd_Project_NO = null; |
|
215 |
FinalPDFAdd_DocInfo_ID = null; |
|
216 |
FinalPDFAdd_Document_ID = null; |
|
88 | 217 |
} |
89 |
|
|
90 |
FinalPDFAdd_Project_NO = null; |
|
91 |
FinalPDFAdd_DocInfo_ID = null; |
|
92 |
FinalPDFAdd_Document_ID = null; |
|
93 | 218 |
} |
94 | 219 |
|
95 | 220 |
#endregion |
내보내기 Unified diff