markus / ConvertService / ServiceController / StationControllerService / Data / DocInfo.cs @ ab7fe8c0
이력 | 보기 | 이력해설 | 다운로드 (2.71 KB)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.ComponentModel; |
4 |
using System.Linq; |
5 |
using System.Web; |
6 |
|
7 |
namespace StationControllerService.Data |
8 |
{ |
9 |
public class DocInfo : INotifyPropertyChanged |
10 |
{ |
11 |
public event PropertyChangedEventHandler PropertyChanged; |
12 |
|
13 |
private void OnPropertyChanged(string propertyName) |
14 |
{ |
15 |
if (PropertyChanged != null) |
16 |
{ |
17 |
PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); |
18 |
} |
19 |
|
20 |
} |
21 |
|
22 |
public DocInfo() |
23 |
{ |
24 |
|
25 |
} |
26 |
|
27 |
public DocInfo(string id, string original_file, string document_ID, int page_count, string project_no) |
28 |
{ |
29 |
ID = id; |
30 |
ORIGINAL_FILE = original_file; |
31 |
DOCUMENT_ID = document_ID; |
32 |
PAGE_COUNT = page_count; |
33 |
PROJECT_NO = project_no; |
34 |
} |
35 |
|
36 |
private string _ID; |
37 |
public string ID |
38 |
{ |
39 |
get |
40 |
{ |
41 |
return _ID; |
42 |
} |
43 |
set |
44 |
{ |
45 |
if (_ID != value) |
46 |
{ |
47 |
_ID = value; |
48 |
OnPropertyChanged("ID"); |
49 |
} |
50 |
} |
51 |
} |
52 |
|
53 |
private string _ORIGINAL_FILE; |
54 |
public string ORIGINAL_FILE |
55 |
{ |
56 |
get |
57 |
{ |
58 |
return _ORIGINAL_FILE; |
59 |
} |
60 |
set |
61 |
{ |
62 |
if (_ORIGINAL_FILE != value) |
63 |
{ |
64 |
_ORIGINAL_FILE = value; |
65 |
OnPropertyChanged("ORIGINAL_FILE"); |
66 |
} |
67 |
} |
68 |
} |
69 |
|
70 |
|
71 |
private string _DOCUMENT_ID; |
72 |
public string DOCUMENT_ID |
73 |
{ |
74 |
get |
75 |
{ |
76 |
return _DOCUMENT_ID; |
77 |
} |
78 |
set |
79 |
{ |
80 |
if (_DOCUMENT_ID != value) |
81 |
{ |
82 |
_DOCUMENT_ID = value; |
83 |
OnPropertyChanged("DOCUMENT_ID"); |
84 |
} |
85 |
} |
86 |
} |
87 |
|
88 |
private int _PAGE_COUNT; |
89 |
public int PAGE_COUNT |
90 |
{ |
91 |
get |
92 |
{ |
93 |
return _PAGE_COUNT; |
94 |
} |
95 |
set |
96 |
{ |
97 |
if (_PAGE_COUNT != value) |
98 |
{ |
99 |
_PAGE_COUNT = value; |
100 |
OnPropertyChanged("PAGE_COUNT"); |
101 |
} |
102 |
} |
103 |
} |
104 |
|
105 |
private string _PROJECT_NO; |
106 |
public string PROJECT_NO |
107 |
{ |
108 |
get |
109 |
{ |
110 |
return _PROJECT_NO; |
111 |
} |
112 |
set |
113 |
{ |
114 |
if (_PROJECT_NO != value) |
115 |
{ |
116 |
_PROJECT_NO = value; |
117 |
OnPropertyChanged("PROJECT_NO"); |
118 |
} |
119 |
} |
120 |
} |
121 |
} |
122 |
} |