markus / ConvertService / ServiceBase / Markus.Service.StationController / Data / FinalPDF.cs @ 78683624
이력 | 보기 | 이력해설 | 다운로드 (11.5 KB)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.ComponentModel; |
4 |
using System.Linq; |
5 |
using System.Text; |
6 |
using System.Threading.Tasks; |
7 |
|
8 |
namespace Markus.Service.StationController.Data |
9 |
{ |
10 |
public class FinalPDF : INotifyPropertyChanged |
11 |
{ |
12 |
public bool Equals(FinalPDF other) |
13 |
{ |
14 |
if (other is null) |
15 |
return false; |
16 |
|
17 |
return this.ConvertID == other.ConvertID && this.ProjectNumber == other.ProjectNumber; |
18 |
} |
19 |
|
20 |
public override bool Equals(object obj) => Equals(obj as FinalPDF); |
21 |
public override int GetHashCode() |
22 |
{ |
23 |
var id = (ConvertID != null) ? ConvertID : ""; |
24 |
var project = (ProjectNumber != null) ? ProjectNumber : ""; |
25 |
|
26 |
return (id + project).GetHashCode(); |
27 |
} |
28 |
|
29 |
public FinalPDF() |
30 |
{ |
31 |
|
32 |
} |
33 |
|
34 |
public FinalPDF(string convertId, string projectNo, int Status, string documentID, string markupInfoID, string docInfoID, string documentName, string documentNo, string createUserID,//20 |
35 |
string revision, int currentPageNo, int totalPage, string exception, string groupNo, DateTime create_datetime, DateTime? start_datetime, DateTime? end_datetime, string originfilePath, |
36 |
string convertPath, string markusLink) |
37 |
{ |
38 |
DocumentID = documentID; |
39 |
ConvertID = convertId; |
40 |
ProjectNumber = projectNo; |
41 |
MarkupInfo_ID = markupInfoID; |
42 |
Create_User_ID = createUserID; |
43 |
ConvertState = (StatusCodeType)Status; |
44 |
DocInfo_ID = docInfoID; |
45 |
DocumentName = documentName; |
46 |
DocumentNo = documentNo; |
47 |
Revision = revision; |
48 |
CurrentPageNo = currentPageNo; |
49 |
TotalPage = totalPage; |
50 |
Exception = exception; |
51 |
GroupNo = groupNo; |
52 |
CreateTime = create_datetime; |
53 |
StartTime = start_datetime; |
54 |
EndTime = end_datetime; |
55 |
ConvertPath = convertPath; |
56 |
MarkusLink = markusLink; |
57 |
OriginfilePath = originfilePath; |
58 |
|
59 |
if (OriginfilePath != null) |
60 |
{ |
61 |
string result = ""; |
62 |
if (originfilePath.Contains("/")) |
63 |
{ |
64 |
result = originfilePath.Substring(originfilePath.LastIndexOf("/") + 1); |
65 |
} |
66 |
else |
67 |
{ |
68 |
result = originfilePath.Substring(originfilePath.LastIndexOf("%") + 1); |
69 |
} |
70 |
this._FileName = result; |
71 |
} |
72 |
else |
73 |
{ |
74 |
this._FileName = ""; |
75 |
} |
76 |
} |
77 |
|
78 |
private string _DocInfo_ID; |
79 |
public string DocInfo_ID |
80 |
{ |
81 |
get |
82 |
{ |
83 |
return _DocInfo_ID; |
84 |
} |
85 |
set |
86 |
{ |
87 |
if (_DocInfo_ID != value) |
88 |
{ |
89 |
_DocInfo_ID = value; |
90 |
OnPropertyChanged("DocInfo_ID"); |
91 |
|
92 |
} |
93 |
} |
94 |
} |
95 |
|
96 |
private string _Create_User_ID; |
97 |
public string Create_User_ID |
98 |
{ |
99 |
get |
100 |
{ |
101 |
return _Create_User_ID; |
102 |
} |
103 |
set |
104 |
{ |
105 |
if (_Create_User_ID != value) |
106 |
{ |
107 |
_Create_User_ID = value; |
108 |
OnPropertyChanged("Create_User_ID"); |
109 |
|
110 |
} |
111 |
} |
112 |
} |
113 |
|
114 |
private string _MarkupInfo_ID; |
115 |
public string MarkupInfo_ID |
116 |
{ |
117 |
get |
118 |
{ |
119 |
return _MarkupInfo_ID; |
120 |
} |
121 |
set |
122 |
{ |
123 |
if (_MarkupInfo_ID != value) |
124 |
{ |
125 |
_MarkupInfo_ID = value; |
126 |
OnPropertyChanged("MarkupInfo_ID"); |
127 |
|
128 |
} |
129 |
} |
130 |
} |
131 |
|
132 |
private string _FileName; |
133 |
public string FileName |
134 |
{ |
135 |
get |
136 |
{ |
137 |
return _FileName; |
138 |
} |
139 |
set |
140 |
{ |
141 |
if (_FileName != value) |
142 |
{ |
143 |
_FileName = value; |
144 |
OnPropertyChanged("FileName"); |
145 |
} |
146 |
} |
147 |
} |
148 |
|
149 |
private string _OriginfilePath; |
150 |
public string OriginfilePath |
151 |
{ |
152 |
get |
153 |
{ |
154 |
return _OriginfilePath; |
155 |
} |
156 |
set |
157 |
{ |
158 |
if (_OriginfilePath != value) |
159 |
{ |
160 |
_OriginfilePath = value; |
161 |
OnPropertyChanged("OriginfilePath"); |
162 |
} |
163 |
} |
164 |
} |
165 |
|
166 |
private string _MarkusLink; |
167 |
public string MarkusLink |
168 |
{ |
169 |
get |
170 |
{ |
171 |
return _MarkusLink; |
172 |
} |
173 |
set |
174 |
{ |
175 |
if (_MarkusLink != value) |
176 |
{ |
177 |
_MarkusLink = value; |
178 |
OnPropertyChanged("MarkusLink"); |
179 |
|
180 |
} |
181 |
} |
182 |
} |
183 |
|
184 |
private string _ConvertPath; |
185 |
public string ConvertPath |
186 |
{ |
187 |
get |
188 |
{ |
189 |
return _ConvertPath; |
190 |
} |
191 |
set |
192 |
{ |
193 |
if (_ConvertPath != value) |
194 |
{ |
195 |
_ConvertPath = value; |
196 |
OnPropertyChanged("ConvertPath"); |
197 |
} |
198 |
} |
199 |
} |
200 |
|
201 |
private DateTime? _EndTime; |
202 |
public DateTime? EndTime |
203 |
{ |
204 |
get |
205 |
{ |
206 |
return _EndTime; |
207 |
} |
208 |
set |
209 |
{ |
210 |
if (value == null) |
211 |
{ |
212 |
_EndTime = null; |
213 |
OnPropertyChanged("EndTime"); |
214 |
} |
215 |
else if (_EndTime != value) |
216 |
{ |
217 |
_EndTime = value; |
218 |
OnPropertyChanged("EndTime"); |
219 |
} |
220 |
} |
221 |
} |
222 |
|
223 |
private DateTime? _StartTime; |
224 |
public DateTime? StartTime |
225 |
{ |
226 |
get |
227 |
{ |
228 |
return _StartTime; |
229 |
} |
230 |
set |
231 |
{ |
232 |
if (value == null) |
233 |
{ |
234 |
_StartTime = null; |
235 |
OnPropertyChanged("StartTime"); |
236 |
} |
237 |
else if (_StartTime != value) |
238 |
{ |
239 |
_StartTime = value; |
240 |
OnPropertyChanged("StartTime"); |
241 |
} |
242 |
} |
243 |
} |
244 |
|
245 |
private DateTime _CreateTime; |
246 |
public DateTime CreateTime |
247 |
{ |
248 |
get |
249 |
{ |
250 |
return _CreateTime; |
251 |
} |
252 |
set |
253 |
{ |
254 |
if (_CreateTime != value) |
255 |
{ |
256 |
_CreateTime = value; |
257 |
OnPropertyChanged("CreateTime"); |
258 |
} |
259 |
} |
260 |
} |
261 |
|
262 |
private string _GroupNo; |
263 |
public string GroupNo |
264 |
{ |
265 |
get |
266 |
{ |
267 |
return _GroupNo; |
268 |
} |
269 |
set |
270 |
{ |
271 |
if (_GroupNo != value) |
272 |
{ |
273 |
_GroupNo = value; |
274 |
OnPropertyChanged("GroupNo"); |
275 |
|
276 |
} |
277 |
} |
278 |
} |
279 |
|
280 |
private string _Exception; |
281 |
public string Exception |
282 |
{ |
283 |
get |
284 |
{ |
285 |
return _Exception; |
286 |
} |
287 |
set |
288 |
{ |
289 |
if (_Exception != value) |
290 |
{ |
291 |
_Exception = value; |
292 |
OnPropertyChanged("Exception"); |
293 |
|
294 |
} |
295 |
} |
296 |
} |
297 |
|
298 |
private int _TotalPage; |
299 |
public int TotalPage |
300 |
{ |
301 |
get |
302 |
{ |
303 |
return _TotalPage; |
304 |
} |
305 |
set |
306 |
{ |
307 |
if (_TotalPage != value) |
308 |
{ |
309 |
_TotalPage = value; |
310 |
OnPropertyChanged("TotalPage"); |
311 |
} |
312 |
} |
313 |
} |
314 |
|
315 |
private int _CurrentPageNo; |
316 |
public int CurrentPageNo |
317 |
{ |
318 |
get |
319 |
{ |
320 |
return _CurrentPageNo; |
321 |
} |
322 |
set |
323 |
{ |
324 |
if (_CurrentPageNo != value) |
325 |
{ |
326 |
_CurrentPageNo = value; |
327 |
OnPropertyChanged("CurrentPageNo"); |
328 |
} |
329 |
} |
330 |
} |
331 |
|
332 |
private string _Revision; |
333 |
public string Revision |
334 |
{ |
335 |
get |
336 |
{ |
337 |
return _Revision; |
338 |
} |
339 |
set |
340 |
{ |
341 |
if (_Revision != value) |
342 |
{ |
343 |
_Revision = value; |
344 |
OnPropertyChanged("Revision"); |
345 |
|
346 |
} |
347 |
} |
348 |
} |
349 |
|
350 |
|
351 |
private string _DocumentNo; |
352 |
public string DocumentNo |
353 |
{ |
354 |
get |
355 |
{ |
356 |
return _DocumentNo; |
357 |
} |
358 |
set |
359 |
{ |
360 |
if (_DocumentNo != value) |
361 |
{ |
362 |
_DocumentNo = value; |
363 |
OnPropertyChanged("DocumentNo"); |
364 |
|
365 |
} |
366 |
} |
367 |
} |
368 |
|
369 |
private string _DocumentName; |
370 |
public string DocumentName |
371 |
{ |
372 |
get |
373 |
{ |
374 |
return _DocumentName; |
375 |
} |
376 |
set |
377 |
{ |
378 |
if (_DocumentName != value) |
379 |
{ |
380 |
_DocumentName = value; |
381 |
OnPropertyChanged("DocumentName"); |
382 |
|
383 |
} |
384 |
} |
385 |
} |
386 |
|
387 |
private StatusCodeType _ConvertState; |
388 |
public StatusCodeType ConvertState |
389 |
{ |
390 |
get |
391 |
{ |
392 |
return _ConvertState; |
393 |
} |
394 |
set |
395 |
{ |
396 |
if (_ConvertState != value) |
397 |
{ |
398 |
_ConvertState = value; |
399 |
OnPropertyChanged("ConvertState"); |
400 |
} |
401 |
} |
402 |
} |
403 |
|
404 |
private string _DocumentID; |
405 |
public string DocumentID |
406 |
{ |
407 |
get |
408 |
{ |
409 |
return _DocumentID; |
410 |
} |
411 |
set |
412 |
{ |
413 |
if (_DocumentID != value) |
414 |
{ |
415 |
_DocumentID = value; |
416 |
OnPropertyChanged("DocumentID"); |
417 |
|
418 |
} |
419 |
} |
420 |
} |
421 |
|
422 |
private string _ProjectNumber; |
423 |
public string ProjectNumber |
424 |
{ |
425 |
get |
426 |
{ |
427 |
return _ProjectNumber; |
428 |
} |
429 |
set |
430 |
{ |
431 |
if (_ProjectNumber != value) |
432 |
{ |
433 |
_ProjectNumber = value; |
434 |
OnPropertyChanged("ProjectNumber"); |
435 |
} |
436 |
} |
437 |
} |
438 |
|
439 |
private string _ConvertID; |
440 |
public string ConvertID |
441 |
{ |
442 |
get |
443 |
{ |
444 |
return _ConvertID; |
445 |
} |
446 |
set |
447 |
{ |
448 |
if (_ConvertID != value) |
449 |
{ |
450 |
_ConvertID = value; |
451 |
OnPropertyChanged("ConvertID"); |
452 |
} |
453 |
} |
454 |
} |
455 |
|
456 |
public event PropertyChangedEventHandler PropertyChanged; |
457 |
private void OnPropertyChanged(string propertyName) |
458 |
{ |
459 |
if (PropertyChanged != null) |
460 |
{ |
461 |
PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); |
462 |
} |
463 |
|
464 |
} |
465 |
|
466 |
public enum StatusCodeType |
467 |
{ |
468 |
None = 0, |
469 |
Wait = 1, |
470 |
PageLoading = 2, |
471 |
Saving = 3, |
472 |
Completed = 4, |
473 |
FileError = 50, |
474 |
PageError = 55, |
475 |
NeedsPassword = 60, |
476 |
Error = 99, |
477 |
All_Error = 100 |
478 |
} |
479 |
} |
480 |
} |