개정판 2decfbdf
DataBaseItemsModel 수정
Change-Id: I96830cad0b3990bb84346f438ba04e20d55ec26c
ConvertService/ServiceBase/IServiceBase/ConvertItem.cs | ||
---|---|---|
1 | 1 |
using System; |
2 |
using System.Collections.Generic; |
|
3 | 2 |
using System.ComponentModel; |
4 |
using System.Linq; |
|
5 | 3 |
using System.Runtime.Serialization; |
6 |
using System.Text; |
|
7 |
using System.Threading.Tasks; |
|
8 |
|
|
4 |
using System.Linq.Expressions; |
|
5 |
using Markus.Message; |
|
9 | 6 |
namespace Markus.Service.Interface |
10 | 7 |
{ |
11 | 8 |
[DataContract] |
12 |
public class ConvertItem : IEquatable<ConvertItem> ,INotifyPropertyChanged
|
|
9 |
public class ConvertItem :IEquatable<ConvertItem> ,INotifyPropertyChanged |
|
13 | 10 |
{ |
14 | 11 |
public bool Equals(ConvertItem other) |
15 | 12 |
{ |
... | ... | |
28 | 25 |
return (id + project).GetHashCode(); |
29 | 26 |
} |
30 | 27 |
|
28 |
public ConvertItem() |
|
29 |
{ |
|
30 |
|
|
31 |
} |
|
31 | 32 |
|
32 | 33 |
public ConvertItem(string ProjectNo, string ID) |
33 | 34 |
{ |
... | ... | |
74 | 75 |
this._FileName = result; |
75 | 76 |
} |
76 | 77 |
|
77 |
public ConvertItem(string key, string ProjectNo, string ID, string originfilePath, string convertPath,string Status,int currentPageNo,int totalPage,string exception)
|
|
78 |
public ConvertItem(string key, string ProjectNo, string ID, string originfilePath, string convertPath, StatusCodeType Status,int currentPageNo,int totalPage,string exception)
|
|
78 | 79 |
{ |
79 | 80 |
this._uniqueKey = key; |
80 | 81 |
this._projectNumber = ProjectNo; |
81 | 82 |
this._convertID = ID; |
82 | 83 |
this._originfilePath = originfilePath; |
83 | 84 |
this._convertPath = convertPath; |
84 |
this._convertState = Status; |
|
85 |
this._convertState = (StatusCodeType)Status;
|
|
85 | 86 |
this._currentPageNo = currentPageNo; |
86 | 87 |
this._totalPage = totalPage; |
87 | 88 |
this._exception = exception; |
... | ... | |
98 | 99 |
this._FileName = result; |
99 | 100 |
} |
100 | 101 |
|
102 |
//public ConvertItem(string key, string ProjectNo, string ID, string originfilePath, string convertPath, string Status, int currentPageNo, int totalPage, string exception |
|
103 |
// ,string revision, string documentNo, string documentName, string groupName) |
|
104 |
//{//세미 |
|
105 |
// this._uniqueKey = key; |
|
106 |
// this._projectNumber = ProjectNo; |
|
107 |
// this._convertID = ID; |
|
108 |
// this._originfilePath = originfilePath; |
|
109 |
// this._convertPath = convertPath; |
|
110 |
// this._convertState = Status; |
|
111 |
// this._currentPageNo = currentPageNo; |
|
112 |
// this._totalPage = totalPage; |
|
113 |
// this._exception = exception; |
|
114 |
// this._revision = revision; |
|
115 |
// this._documentNo = documentNo; |
|
116 |
// this._docuemnt_Name = documentName; |
|
117 |
// this._GroupName = groupName; |
|
118 |
|
|
119 |
// string result = ""; |
|
120 |
// if (originfilePath.Contains("/")) |
|
121 |
// { |
|
122 |
// result = originfilePath.Substring(originfilePath.LastIndexOf("/") + 1); |
|
123 |
// } |
|
124 |
// else |
|
125 |
// { |
|
126 |
// result = originfilePath.Substring(originfilePath.LastIndexOf("%") + 1); |
|
127 |
// } |
|
128 |
// this._FileName = result; |
|
129 |
//} |
|
130 |
|
|
101 | 131 |
|
102 | 132 |
string _uniqueKey; |
103 | 133 |
string _projectNumber; |
... | ... | |
107 | 137 |
string _originfilePath; |
108 | 138 |
string _FileName; |
109 | 139 |
string _convertPath; |
110 |
string _convertState; |
|
140 |
//string _convertState; |
|
141 |
StatusCodeType _convertState; |
|
111 | 142 |
int _currentPageNo; |
112 | 143 |
int _totalPage; |
113 | 144 |
string _exception; |
145 |
string _revision;//↓ DOCUMENT_ITEM |
|
146 |
string _documentNo; |
|
147 |
string _docuemnt_Name; |
|
148 |
string _GroupName; |
|
149 |
string _documentID; |
|
150 |
string _validation; |
|
151 |
|
|
114 | 152 |
|
115 | 153 |
|
116 | 154 |
DateTime _createtime; |
117 | 155 |
|
118 | 156 |
public event PropertyChangedEventHandler PropertyChanged; |
157 |
|
|
119 | 158 |
private void OnPropertyChanged(string propertyName) |
120 | 159 |
{ |
121 | 160 |
if (PropertyChanged != null) |
... | ... | |
124 | 163 |
} |
125 | 164 |
} |
126 | 165 |
|
127 |
|
|
128 | 166 |
[DataMember] |
129 | 167 |
public string ConvertID |
130 | 168 |
{ |
... | ... | |
154 | 192 |
if (_serviceID != value) |
155 | 193 |
{ |
156 | 194 |
_serviceID = value; |
157 |
this.OnPropertyChanged("ServiceID");
|
|
195 |
OnPropertyChanged("ServiceID"); |
|
158 | 196 |
} |
159 | 197 |
} |
160 | 198 |
} |
... | ... | |
171 | 209 |
if (_reConverter != value) |
172 | 210 |
{ |
173 | 211 |
_reConverter = value; |
174 |
this.OnPropertyChanged("ReConverter");
|
|
212 |
OnPropertyChanged("ReConverter"); |
|
175 | 213 |
} |
176 | 214 |
} |
177 | 215 |
} |
... | ... | |
188 | 226 |
if (_originfilePath != value) |
189 | 227 |
{ |
190 | 228 |
_originfilePath = value; |
191 |
this.OnPropertyChanged("OriginfilePath");
|
|
229 |
OnPropertyChanged("OriginfilePath"); |
|
192 | 230 |
} |
193 | 231 |
} |
194 | 232 |
} |
... | ... | |
206 | 244 |
if (_FileName != value) |
207 | 245 |
{ |
208 | 246 |
_FileName = value; |
209 |
this.OnPropertyChanged("FileName");
|
|
247 |
OnPropertyChanged("FileName"); |
|
210 | 248 |
} |
211 | 249 |
} |
212 | 250 |
} |
... | ... | |
224 | 262 |
if (_convertPath != value) |
225 | 263 |
{ |
226 | 264 |
_convertPath = value; |
227 |
this.OnPropertyChanged("ConvertPath");
|
|
265 |
OnPropertyChanged("ConvertPath"); |
|
228 | 266 |
} |
229 | 267 |
} |
230 | 268 |
} |
231 | 269 |
|
232 | 270 |
[DataMember] |
233 |
public string ConvertState
|
|
271 |
public StatusCodeType ConvertState
|
|
234 | 272 |
{ |
235 | 273 |
get |
236 | 274 |
{ |
... | ... | |
241 | 279 |
if (_convertState != value) |
242 | 280 |
{ |
243 | 281 |
_convertState = value; |
244 |
this.OnPropertyChanged("ConvertState");
|
|
282 |
OnPropertyChanged("ConvertState"); |
|
245 | 283 |
} |
246 | 284 |
} |
247 | 285 |
} |
... | ... | |
263 | 301 |
} |
264 | 302 |
} |
265 | 303 |
|
266 |
[DataMember]
|
|
304 |
[DataMember] |
|
267 | 305 |
public int TotalPage |
268 | 306 |
{ |
269 | 307 |
get |
... | ... | |
275 | 313 |
if (_totalPage != value) |
276 | 314 |
{ |
277 | 315 |
_totalPage = value; |
278 |
this.OnPropertyChanged("TotalPage");
|
|
316 |
OnPropertyChanged("TotalPage"); |
|
279 | 317 |
} |
280 | 318 |
} |
281 | 319 |
} |
... | ... | |
292 | 330 |
if (_currentPageNo != value) |
293 | 331 |
{ |
294 | 332 |
_currentPageNo = value; |
295 |
this.OnPropertyChanged("CurrentPageNo");
|
|
333 |
OnPropertyChanged("CurrentPageNo"); |
|
296 | 334 |
} |
297 | 335 |
} |
298 | 336 |
} |
... | ... | |
309 | 347 |
if (_createtime != value) |
310 | 348 |
{ |
311 | 349 |
_createtime = value; |
312 |
this.OnPropertyChanged("CreateTime");
|
|
350 |
OnPropertyChanged("CreateTime"); |
|
313 | 351 |
} |
314 | 352 |
} |
315 | 353 |
} |
... | ... | |
326 | 364 |
if (_uniqueKey != value) |
327 | 365 |
{ |
328 | 366 |
_uniqueKey = value; |
329 |
this.OnPropertyChanged("UniqueKey");
|
|
367 |
OnPropertyChanged("UniqueKey"); |
|
330 | 368 |
} |
331 | 369 |
} |
332 | 370 |
} |
... | ... | |
344 | 382 |
if (_exception != value) |
345 | 383 |
{ |
346 | 384 |
_exception = value; |
347 |
this.OnPropertyChanged("Exception"); |
|
385 |
OnPropertyChanged("Exception"); |
|
386 |
|
|
348 | 387 |
} |
349 | 388 |
} |
350 | 389 |
} |
351 | 390 |
|
352 | 391 |
[DataMember] |
353 | 392 |
public Int64 ProcessorAffinity { get; set; } |
393 |
|
|
394 |
[DataMember] |
|
395 |
public string Revision |
|
396 |
{ |
|
397 |
get |
|
398 |
{ |
|
399 |
return _revision; |
|
400 |
} |
|
401 |
set |
|
402 |
{ |
|
403 |
if (_revision != value) |
|
404 |
{ |
|
405 |
_revision = value; |
|
406 |
OnPropertyChanged("REVISION"); |
|
407 |
|
|
408 |
} |
|
409 |
} |
|
410 |
} |
|
411 |
|
|
412 |
[DataMember] |
|
413 |
public string DocumnetNo |
|
414 |
{ |
|
415 |
get |
|
416 |
{ |
|
417 |
return _documentNo; |
|
418 |
} |
|
419 |
set |
|
420 |
{ |
|
421 |
if (_documentNo != value) |
|
422 |
{ |
|
423 |
_documentNo = value; |
|
424 |
OnPropertyChanged("DOCUMENT_NO"); |
|
425 |
|
|
426 |
} |
|
427 |
} |
|
428 |
} |
|
429 |
|
|
430 |
[DataMember] |
|
431 |
public string DocumnetName |
|
432 |
{ |
|
433 |
get |
|
434 |
{ |
|
435 |
return _docuemnt_Name; |
|
436 |
} |
|
437 |
set |
|
438 |
{ |
|
439 |
if (_docuemnt_Name != value) |
|
440 |
{ |
|
441 |
_docuemnt_Name = value; |
|
442 |
OnPropertyChanged("DOCUMENT_NAME"); |
|
443 |
|
|
444 |
} |
|
445 |
} |
|
446 |
} |
|
447 |
|
|
448 |
[DataMember] |
|
449 |
public string GroupNo |
|
450 |
{ |
|
451 |
get |
|
452 |
{ |
|
453 |
return _GroupName; |
|
454 |
} |
|
455 |
set |
|
456 |
{ |
|
457 |
if (_GroupName != value) |
|
458 |
{ |
|
459 |
_GroupName = value; |
|
460 |
OnPropertyChanged("GROUP_NO"); |
|
461 |
|
|
462 |
} |
|
463 |
} |
|
464 |
} |
|
465 |
|
|
466 |
|
|
467 |
[DataMember] |
|
468 |
public string DocumentID |
|
469 |
{ |
|
470 |
get |
|
471 |
{ |
|
472 |
return _documentID; |
|
473 |
} |
|
474 |
set |
|
475 |
{ |
|
476 |
if (_documentID != value) |
|
477 |
{ |
|
478 |
_documentID = value; |
|
479 |
OnPropertyChanged("DocumentID"); |
|
480 |
|
|
481 |
} |
|
482 |
} |
|
483 |
} |
|
484 |
|
|
485 |
|
|
486 |
[DataMember] |
|
487 |
public string Validation |
|
488 |
{ |
|
489 |
get |
|
490 |
{ |
|
491 |
return _validation; |
|
492 |
} |
|
493 |
set |
|
494 |
{ |
|
495 |
if (_validation != value) |
|
496 |
{ |
|
497 |
_validation = value; |
|
498 |
OnPropertyChanged("Validation"); |
|
499 |
|
|
500 |
} |
|
501 |
} |
|
502 |
} |
|
354 | 503 |
} |
355 | 504 |
} |
내보내기 Unified diff