개정판 2f07b70a
chart bar 하는 중
Change-Id: Iba0e8eceec980c21c4a4495f4e6c9fb4dfcc4759
ConvertService/ServiceBase/Markus.Mvvm.ToolKit/Markus.Mvvm.ToolKit.csproj | ||
---|---|---|
30 | 30 |
<DefineConstants>TRACE;DEBUG</DefineConstants> |
31 | 31 |
<ErrorReport>prompt</ErrorReport> |
32 | 32 |
<WarningLevel>4</WarningLevel> |
33 |
<PlatformTarget>x64</PlatformTarget> |
|
33 | 34 |
</PropertyGroup> |
34 | 35 |
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
35 | 36 |
<DebugType>pdbonly</DebugType> |
ConvertService/ServiceBase/Markus.Service.StationController/Data/ConvertCOUNT.cs | ||
---|---|---|
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 |
class ConvertCOUNT : INotifyPropertyChanged |
|
11 |
{ |
|
12 |
public event PropertyChangedEventHandler PropertyChanged; |
|
13 |
|
|
14 |
private void OnPropertyChanged(string propertyName) |
|
15 |
{ |
|
16 |
if (PropertyChanged != null) |
|
17 |
{ |
|
18 |
PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); |
|
19 |
} |
|
20 |
|
|
21 |
} |
|
22 |
|
|
23 |
public ConvertCOUNT() |
|
24 |
{ |
|
25 |
|
|
26 |
} |
|
27 |
|
|
28 |
public ConvertCOUNT(string projectNO, int count) |
|
29 |
{ |
|
30 |
Project_NO = projectNO; |
|
31 |
Count = count; |
|
32 |
} |
|
33 |
|
|
34 |
private string _Project_NO; |
|
35 |
public string Project_NO |
|
36 |
{ |
|
37 |
get |
|
38 |
{ |
|
39 |
return _Project_NO; |
|
40 |
} |
|
41 |
set |
|
42 |
{ |
|
43 |
if (_Project_NO != value) |
|
44 |
{ |
|
45 |
_Project_NO = value; |
|
46 |
OnPropertyChanged("Project_NO"); |
|
47 |
} |
|
48 |
} |
|
49 |
} |
|
50 |
|
|
51 |
private int _Count; |
|
52 |
public int Count |
|
53 |
{ |
|
54 |
get |
|
55 |
{ |
|
56 |
return _Count; |
|
57 |
} |
|
58 |
set |
|
59 |
{ |
|
60 |
if (_Count != value) |
|
61 |
{ |
|
62 |
_Count = value; |
|
63 |
OnPropertyChanged("Count"); |
|
64 |
} |
|
65 |
} |
|
66 |
} |
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
} |
|
71 |
} |
ConvertService/ServiceBase/Markus.Service.StationController/Data/ConvertPDF.cs | ||
---|---|---|
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 ConvertPDF : INotifyPropertyChanged |
|
11 |
{ |
|
12 |
public event PropertyChangedEventHandler PropertyChanged; |
|
13 |
|
|
14 |
private void OnPropertyChanged(string propertyName) |
|
15 |
{ |
|
16 |
if (PropertyChanged != null) |
|
17 |
{ |
|
18 |
PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); |
|
19 |
} |
|
20 |
|
|
21 |
} |
|
22 |
public ConvertPDF() |
|
23 |
{ |
|
24 |
|
|
25 |
} |
|
26 |
|
|
27 |
public bool Equals(ConvertPDF other) |
|
28 |
{ |
|
29 |
if (other is null) |
|
30 |
return false; |
|
31 |
|
|
32 |
return this.ConvertID == other.ConvertID && this.ProjectNumber == other.ProjectNumber; |
|
33 |
} |
|
34 |
|
|
35 |
public override bool Equals(object obj) => Equals(obj as ConvertPDF); |
|
36 |
public override int GetHashCode() |
|
37 |
{ |
|
38 |
var id = (ConvertID != null) ? ConvertID : ""; |
|
39 |
var project = (ProjectNumber != null) ? ProjectNumber : ""; |
|
40 |
|
|
41 |
return (id + project).GetHashCode(); |
|
42 |
} |
|
43 |
|
|
44 |
public ConvertPDF(string serviceID, string convertId, string projectNo, int Status, string documentID, string documentName, string documentNo, string document_URL, |
|
45 |
string revision, int currentPageNo, int totalPage, string exception, string groupNo, |
|
46 |
DateTime create_datetime, DateTime? start_datetime, DateTime? end_datetime, string originfilePath, string convertPath, string markusLink, int? reconverter) |
|
47 |
{ |
|
48 |
ServiceID = serviceID; |
|
49 |
DocumentID = documentID; |
|
50 |
ConvertID = convertId; |
|
51 |
ProjectNumber = projectNo; |
|
52 |
ConvertState = (StatusCodeType)Status; |
|
53 |
UniqueKey = documentID; |
|
54 |
DocumentName = documentName; |
|
55 |
DocumentNo = documentNo; |
|
56 |
DocumnetURL = document_URL; |
|
57 |
Revision = revision; |
|
58 |
CurrentPageNo = currentPageNo; |
|
59 |
TotalPage = totalPage; |
|
60 |
Exception = exception; |
|
61 |
GroupNo = groupNo; |
|
62 |
CreateTime = create_datetime; |
|
63 |
StartTime = start_datetime; |
|
64 |
EndTime = end_datetime; |
|
65 |
ConvertPath = convertPath; |
|
66 |
MarkusLink = markusLink; |
|
67 |
OriginfilePath = originfilePath; |
|
68 |
ReConverter = reconverter; |
|
69 |
|
|
70 |
string result = ""; |
|
71 |
if (originfilePath.Contains("/")) |
|
72 |
{ |
|
73 |
result = originfilePath.Substring(originfilePath.LastIndexOf("/") + 1); |
|
74 |
} |
|
75 |
else |
|
76 |
{ |
|
77 |
result = originfilePath.Substring(originfilePath.LastIndexOf("%") + 1); |
|
78 |
} |
|
79 |
this._FileName = result; |
|
80 |
} |
|
81 |
|
|
82 |
private string _FileName; |
|
83 |
public string FileName |
|
84 |
{ |
|
85 |
get |
|
86 |
{ |
|
87 |
return _FileName; |
|
88 |
} |
|
89 |
set |
|
90 |
{ |
|
91 |
if (_FileName != value) |
|
92 |
{ |
|
93 |
_FileName = value; |
|
94 |
OnPropertyChanged("FileName"); |
|
95 |
} |
|
96 |
} |
|
97 |
} |
|
98 |
|
|
99 |
private int? _ReConverter; |
|
100 |
public int? ReConverter |
|
101 |
{ |
|
102 |
get |
|
103 |
{ |
|
104 |
return _ReConverter; |
|
105 |
} |
|
106 |
set |
|
107 |
{ |
|
108 |
if (_ReConverter != value) |
|
109 |
{ |
|
110 |
_ReConverter = value; |
|
111 |
OnPropertyChanged("ReConverter"); |
|
112 |
} |
|
113 |
} |
|
114 |
} |
|
115 |
|
|
116 |
private string _OriginfilePath; |
|
117 |
public string OriginfilePath |
|
118 |
{ |
|
119 |
get |
|
120 |
{ |
|
121 |
return _OriginfilePath; |
|
122 |
} |
|
123 |
set |
|
124 |
{ |
|
125 |
if (_OriginfilePath != value) |
|
126 |
{ |
|
127 |
_OriginfilePath = value; |
|
128 |
OnPropertyChanged("OriginfilePath"); |
|
129 |
} |
|
130 |
} |
|
131 |
} |
|
132 |
|
|
133 |
private string _MarkusLink; |
|
134 |
public string MarkusLink |
|
135 |
{ |
|
136 |
get |
|
137 |
{ |
|
138 |
return _MarkusLink; |
|
139 |
} |
|
140 |
set |
|
141 |
{ |
|
142 |
if (_MarkusLink != value) |
|
143 |
{ |
|
144 |
_MarkusLink = value; |
|
145 |
OnPropertyChanged("MarkusLink"); |
|
146 |
|
|
147 |
} |
|
148 |
} |
|
149 |
} |
|
150 |
|
|
151 |
private string _ConvertPath; |
|
152 |
public string ConvertPath |
|
153 |
{ |
|
154 |
get |
|
155 |
{ |
|
156 |
return _ConvertPath; |
|
157 |
} |
|
158 |
set |
|
159 |
{ |
|
160 |
if (_ConvertPath != value) |
|
161 |
{ |
|
162 |
_ConvertPath = value; |
|
163 |
OnPropertyChanged("ConvertPath"); |
|
164 |
} |
|
165 |
} |
|
166 |
} |
|
167 |
|
|
168 |
private DateTime? _EndTime; |
|
169 |
public DateTime? EndTime |
|
170 |
{ |
|
171 |
get |
|
172 |
{ |
|
173 |
return _EndTime; |
|
174 |
} |
|
175 |
set |
|
176 |
{ |
|
177 |
if (value == null) |
|
178 |
{ |
|
179 |
_EndTime = null; |
|
180 |
OnPropertyChanged("EndTime"); |
|
181 |
} |
|
182 |
else if (_EndTime != value) |
|
183 |
{ |
|
184 |
_EndTime = value; |
|
185 |
OnPropertyChanged("EndTime"); |
|
186 |
} |
|
187 |
} |
|
188 |
} |
|
189 |
|
|
190 |
private DateTime? _StartTime; |
|
191 |
public DateTime? StartTime |
|
192 |
{ |
|
193 |
get |
|
194 |
{ |
|
195 |
return _StartTime; |
|
196 |
} |
|
197 |
set |
|
198 |
{ |
|
199 |
if (value == null) |
|
200 |
{ |
|
201 |
_StartTime = null; |
|
202 |
OnPropertyChanged("StartTime"); |
|
203 |
} |
|
204 |
else if (_StartTime != value) |
|
205 |
{ |
|
206 |
_StartTime = value; |
|
207 |
OnPropertyChanged("StartTime"); |
|
208 |
} |
|
209 |
} |
|
210 |
} |
|
211 |
|
|
212 |
private DateTime _CreateTime; |
|
213 |
public DateTime CreateTime |
|
214 |
{ |
|
215 |
get |
|
216 |
{ |
|
217 |
return _CreateTime; |
|
218 |
} |
|
219 |
set |
|
220 |
{ |
|
221 |
if (_CreateTime != value) |
|
222 |
{ |
|
223 |
_CreateTime = value; |
|
224 |
OnPropertyChanged("CreateTime"); |
|
225 |
} |
|
226 |
} |
|
227 |
} |
|
228 |
|
|
229 |
private string _GroupNo; |
|
230 |
public string GroupNo |
|
231 |
{ |
|
232 |
get |
|
233 |
{ |
|
234 |
return _GroupNo; |
|
235 |
} |
|
236 |
set |
|
237 |
{ |
|
238 |
if (_GroupNo != value) |
|
239 |
{ |
|
240 |
_GroupNo = value; |
|
241 |
OnPropertyChanged("GroupNo"); |
|
242 |
|
|
243 |
} |
|
244 |
} |
|
245 |
} |
|
246 |
|
|
247 |
private string _Exception; |
|
248 |
public string Exception |
|
249 |
{ |
|
250 |
get |
|
251 |
{ |
|
252 |
return _Exception; |
|
253 |
} |
|
254 |
set |
|
255 |
{ |
|
256 |
if (_Exception != value) |
|
257 |
{ |
|
258 |
_Exception = value; |
|
259 |
OnPropertyChanged("Exception"); |
|
260 |
|
|
261 |
} |
|
262 |
} |
|
263 |
} |
|
264 |
|
|
265 |
private int _TotalPage; |
|
266 |
public int TotalPage |
|
267 |
{ |
|
268 |
get |
|
269 |
{ |
|
270 |
return _TotalPage; |
|
271 |
} |
|
272 |
set |
|
273 |
{ |
|
274 |
if (_TotalPage != value) |
|
275 |
{ |
|
276 |
_TotalPage = value; |
|
277 |
OnPropertyChanged("TotalPage"); |
|
278 |
} |
|
279 |
} |
|
280 |
} |
|
281 |
|
|
282 |
private int _CurrentPageNo; |
|
283 |
public int CurrentPageNo |
|
284 |
{ |
|
285 |
get |
|
286 |
{ |
|
287 |
return _CurrentPageNo; |
|
288 |
} |
|
289 |
set |
|
290 |
{ |
|
291 |
if (_CurrentPageNo != value) |
|
292 |
{ |
|
293 |
_CurrentPageNo = value; |
|
294 |
OnPropertyChanged("CurrentPageNo"); |
|
295 |
} |
|
296 |
} |
|
297 |
} |
|
298 |
|
|
299 |
private string _Revision; |
|
300 |
public string Revision |
|
301 |
{ |
|
302 |
get |
|
303 |
{ |
|
304 |
return _Revision; |
|
305 |
} |
|
306 |
set |
|
307 |
{ |
|
308 |
if (_Revision != value) |
|
309 |
{ |
|
310 |
_Revision = value; |
|
311 |
OnPropertyChanged("Revision"); |
|
312 |
|
|
313 |
} |
|
314 |
} |
|
315 |
} |
|
316 |
|
|
317 |
private string _DocumnetURL; |
|
318 |
public string DocumnetURL |
|
319 |
{ |
|
320 |
get |
|
321 |
{ |
|
322 |
return _DocumnetURL; |
|
323 |
} |
|
324 |
set |
|
325 |
{ |
|
326 |
if (_DocumnetURL != value) |
|
327 |
{ |
|
328 |
_DocumnetURL = value; |
|
329 |
OnPropertyChanged("DocumnetURL"); |
|
330 |
|
|
331 |
} |
|
332 |
} |
|
333 |
} |
|
334 |
|
|
335 |
private string _DocumentNo; |
|
336 |
public string DocumentNo |
|
337 |
{ |
|
338 |
get |
|
339 |
{ |
|
340 |
return _DocumentNo; |
|
341 |
} |
|
342 |
set |
|
343 |
{ |
|
344 |
if (_DocumentNo != value) |
|
345 |
{ |
|
346 |
_DocumentNo = value; |
|
347 |
OnPropertyChanged("DocumentNo"); |
|
348 |
|
|
349 |
} |
|
350 |
} |
|
351 |
} |
|
352 |
|
|
353 |
private string _DocumentName; |
|
354 |
public string DocumentName |
|
355 |
{ |
|
356 |
get |
|
357 |
{ |
|
358 |
return _DocumentName; |
|
359 |
} |
|
360 |
set |
|
361 |
{ |
|
362 |
if (_DocumentName != value) |
|
363 |
{ |
|
364 |
_DocumentName = value; |
|
365 |
OnPropertyChanged("DocumentName"); |
|
366 |
|
|
367 |
} |
|
368 |
} |
|
369 |
} |
|
370 |
|
|
371 |
private string _UniqueKey; |
|
372 |
public string UniqueKey |
|
373 |
{ |
|
374 |
get |
|
375 |
{ |
|
376 |
return _UniqueKey; |
|
377 |
} |
|
378 |
set |
|
379 |
{ |
|
380 |
if (_UniqueKey != value) |
|
381 |
{ |
|
382 |
_UniqueKey = value; |
|
383 |
OnPropertyChanged("UniqueKey"); |
|
384 |
} |
|
385 |
} |
|
386 |
} |
|
387 |
|
|
388 |
private StatusCodeType _ConvertState; |
|
389 |
public StatusCodeType ConvertState |
|
390 |
{ |
|
391 |
get |
|
392 |
{ |
|
393 |
return _ConvertState; |
|
394 |
} |
|
395 |
set |
|
396 |
{ |
|
397 |
if (_ConvertState != value) |
|
398 |
{ |
|
399 |
_ConvertState = value; |
|
400 |
OnPropertyChanged("ConvertState"); |
|
401 |
} |
|
402 |
} |
|
403 |
} |
|
404 |
|
|
405 |
private string _DocumentID; |
|
406 |
public string DocumentID |
|
407 |
{ |
|
408 |
get |
|
409 |
{ |
|
410 |
return _DocumentID; |
|
411 |
} |
|
412 |
set |
|
413 |
{ |
|
414 |
if (_DocumentID != value) |
|
415 |
{ |
|
416 |
_DocumentID = value; |
|
417 |
OnPropertyChanged("DocumentID"); |
|
418 |
|
|
419 |
} |
|
420 |
} |
|
421 |
} |
|
422 |
|
|
423 |
|
|
424 |
private string _ConvertID; |
|
425 |
public string ConvertID |
|
426 |
{ |
|
427 |
get |
|
428 |
{ |
|
429 |
return _ConvertID; |
|
430 |
} |
|
431 |
set |
|
432 |
{ |
|
433 |
if (_ConvertID != value) |
|
434 |
{ |
|
435 |
_ConvertID = value; |
|
436 |
OnPropertyChanged("ConvertID"); |
|
437 |
} |
|
438 |
} |
|
439 |
} |
|
440 |
|
|
441 |
private string _ServiceID; |
|
442 |
public string ServiceID |
|
443 |
{ |
|
444 |
get |
|
445 |
{ |
|
446 |
return _ServiceID; |
|
447 |
} |
|
448 |
set |
|
449 |
{ |
|
450 |
if (_ServiceID != value) |
|
451 |
{ |
|
452 |
_ServiceID = value; |
|
453 |
OnPropertyChanged("ServiceID"); |
|
454 |
} |
|
455 |
} |
|
456 |
} |
|
457 |
|
|
458 |
private string _ProjectNumber; |
|
459 |
public string ProjectNumber |
|
460 |
{ |
|
461 |
get |
|
462 |
{ |
|
463 |
return _ProjectNumber; |
|
464 |
} |
|
465 |
set |
|
466 |
{ |
|
467 |
if (_ProjectNumber != value) |
|
468 |
{ |
|
469 |
_ProjectNumber = value; |
|
470 |
OnPropertyChanged("ProjectNumber"); |
|
471 |
} |
|
472 |
} |
|
473 |
} |
|
474 |
|
|
475 |
public enum StatusCodeType |
|
476 |
{ |
|
477 |
None = 0, |
|
478 |
Wait = 1, |
|
479 |
PageLoading = 2, |
|
480 |
Saving = 3, |
|
481 |
Completed = 4, |
|
482 |
FileError = 50, |
|
483 |
PageError = 55, |
|
484 |
NeedsPassword = 60, |
|
485 |
Error = 99, |
|
486 |
All_Error = 100 |
|
487 |
} |
|
488 |
} |
|
489 |
} |
ConvertService/ServiceBase/Markus.Service.StationController/Data/DataConvert.cs | ||
---|---|---|
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 DataConvert : INotifyPropertyChanged |
|
11 |
{ |
|
12 |
public event PropertyChangedEventHandler PropertyChanged; |
|
13 |
|
|
14 |
private void OnPropertyChanged(string propertyName) |
|
15 |
{ |
|
16 |
if (PropertyChanged != null) |
|
17 |
{ |
|
18 |
PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); |
|
19 |
} |
|
20 |
|
|
21 |
} |
|
22 |
public DataConvert() |
|
23 |
{ |
|
24 |
|
|
25 |
} |
|
26 |
|
|
27 |
public bool Equals(DataConvert other) |
|
28 |
{ |
|
29 |
if (other is null) |
|
30 |
return false; |
|
31 |
|
|
32 |
return this.ConvertID == other.ConvertID && this.ProjectNumber == other.ProjectNumber; |
|
33 |
} |
|
34 |
|
|
35 |
public override bool Equals(object obj) => Equals(obj as DataConvert); |
|
36 |
public override int GetHashCode() |
|
37 |
{ |
|
38 |
var id = (ConvertID != null) ? ConvertID : ""; |
|
39 |
var project = (ProjectNumber != null) ? ProjectNumber : ""; |
|
40 |
|
|
41 |
return (id + project).GetHashCode(); |
|
42 |
} |
|
43 |
|
|
44 |
public DataConvert(string serviceID, string convertId, string projectNo, int Status, string documentID, string documentName, string documentNo, string document_URL, string revision, int currentPageNo, int totalPage, string exception, string groupNo, |
|
45 |
DateTime create_datetime, DateTime? start_datetime, DateTime? end_datetime, string originfilePath, string convertPath, string markusLink, int? reconverter)//20 |
|
46 |
{ |
|
47 |
ServiceID = serviceID; |
|
48 |
DocumentID = documentID; |
|
49 |
ConvertID = convertId; |
|
50 |
ProjectNumber = projectNo; |
|
51 |
ConvertState = (StatusCodeType)Status; |
|
52 |
UniqueKey = documentID; |
|
53 |
DocumentName = documentName; |
|
54 |
DocumentNo = documentNo; |
|
55 |
DocumnetURL = document_URL; |
|
56 |
Revision = revision; |
|
57 |
CurrentPageNo = currentPageNo; |
|
58 |
TotalPage = totalPage; |
|
59 |
Exception = exception; |
|
60 |
GroupNo = groupNo; |
|
61 |
CreateTime = create_datetime; |
|
62 |
StartTime = start_datetime; |
|
63 |
EndTime = end_datetime; |
|
64 |
ConvertPath = convertPath; |
|
65 |
MarkusLink = markusLink; |
|
66 |
OriginfilePath = originfilePath; |
|
67 |
ReConverter = reconverter; |
|
68 |
|
|
69 |
string result = ""; |
|
70 |
if (originfilePath.Contains("/")) |
|
71 |
{ |
|
72 |
result = originfilePath.Substring(originfilePath.LastIndexOf("/") + 1); |
|
73 |
} |
|
74 |
else |
|
75 |
{ |
|
76 |
result = originfilePath.Substring(originfilePath.LastIndexOf("%") + 1); |
|
77 |
} |
|
78 |
this._FileName = result; |
|
79 |
} |
|
80 |
|
|
81 |
private string _FileName; |
|
82 |
public string FileName |
|
83 |
{ |
|
84 |
get |
|
85 |
{ |
|
86 |
return _FileName; |
|
87 |
} |
|
88 |
set |
|
89 |
{ |
|
90 |
if (_FileName != value) |
|
91 |
{ |
|
92 |
_FileName = value; |
|
93 |
OnPropertyChanged("FileName"); |
|
94 |
} |
|
95 |
} |
|
96 |
} |
|
97 |
|
|
98 |
private int? _ReConverter; |
|
99 |
public int? ReConverter |
|
100 |
{ |
|
101 |
get |
|
102 |
{ |
|
103 |
return _ReConverter; |
|
104 |
} |
|
105 |
set |
|
106 |
{ |
|
107 |
if (_ReConverter != value) |
|
108 |
{ |
|
109 |
_ReConverter = value; |
|
110 |
OnPropertyChanged("ReConverter"); |
|
111 |
} |
|
112 |
} |
|
113 |
} |
|
114 |
|
|
115 |
private string _OriginfilePath; |
|
116 |
public string OriginfilePath |
|
117 |
{ |
|
118 |
get |
|
119 |
{ |
|
120 |
return _OriginfilePath; |
|
121 |
} |
|
122 |
set |
|
123 |
{ |
|
124 |
if (_OriginfilePath != value) |
|
125 |
{ |
|
126 |
_OriginfilePath = value; |
|
127 |
OnPropertyChanged("OriginfilePath"); |
|
128 |
} |
|
129 |
} |
|
130 |
} |
|
131 |
|
|
132 |
private string _MarkusLink; |
|
133 |
public string MarkusLink |
|
134 |
{ |
|
135 |
get |
|
136 |
{ |
|
137 |
return _MarkusLink; |
|
138 |
} |
|
139 |
set |
|
140 |
{ |
|
141 |
if (_MarkusLink != value) |
|
142 |
{ |
|
143 |
_MarkusLink = value; |
|
144 |
OnPropertyChanged("MarkusLink"); |
|
145 |
|
|
146 |
} |
|
147 |
} |
|
148 |
} |
|
149 |
|
|
150 |
private string _ConvertPath; |
|
151 |
public string ConvertPath |
|
152 |
{ |
|
153 |
get |
|
154 |
{ |
|
155 |
return _ConvertPath; |
|
156 |
} |
|
157 |
set |
|
158 |
{ |
|
159 |
if (_ConvertPath != value) |
|
160 |
{ |
|
161 |
_ConvertPath = value; |
|
162 |
OnPropertyChanged("ConvertPath"); |
|
163 |
} |
|
164 |
} |
|
165 |
} |
|
166 |
|
|
167 |
private DateTime? _EndTime; |
|
168 |
public DateTime? EndTime |
|
169 |
{ |
|
170 |
get |
|
171 |
{ |
|
172 |
return _EndTime; |
|
173 |
} |
|
174 |
set |
|
175 |
{ |
|
176 |
if (value == null) |
|
177 |
{ |
|
178 |
_EndTime = null; |
|
179 |
OnPropertyChanged("EndTime"); |
|
180 |
} |
|
181 |
else if (_EndTime != value) |
|
182 |
{ |
|
183 |
_EndTime = value; |
|
184 |
OnPropertyChanged("EndTime"); |
|
185 |
} |
|
186 |
} |
|
187 |
} |
|
188 |
|
|
189 |
private DateTime? _StartTime; |
|
190 |
public DateTime? StartTime |
|
191 |
{ |
|
192 |
get |
|
193 |
{ |
|
194 |
return _StartTime; |
|
195 |
} |
|
196 |
set |
|
197 |
{ |
|
198 |
if (value == null) |
|
199 |
{ |
|
200 |
_StartTime = null; |
|
201 |
OnPropertyChanged("StartTime"); |
|
202 |
} |
|
203 |
else if (_StartTime != value) |
|
204 |
{ |
|
205 |
_StartTime = value; |
|
206 |
OnPropertyChanged("StartTime"); |
|
207 |
} |
|
208 |
} |
|
209 |
} |
|
210 |
|
|
211 |
private DateTime _CreateTime; |
|
212 |
public DateTime CreateTime |
|
213 |
{ |
|
214 |
get |
|
215 |
{ |
|
216 |
return _CreateTime; |
|
217 |
} |
|
218 |
set |
|
219 |
{ |
|
220 |
if (_CreateTime != value) |
|
221 |
{ |
|
222 |
_CreateTime = value; |
|
223 |
OnPropertyChanged("CreateTime"); |
|
224 |
} |
|
225 |
} |
|
226 |
} |
|
227 |
|
|
228 |
private string _GroupNo; |
|
229 |
public string GroupNo |
|
230 |
{ |
|
231 |
get |
|
232 |
{ |
|
233 |
return _GroupNo; |
|
234 |
} |
|
235 |
set |
|
236 |
{ |
|
237 |
if (_GroupNo != value) |
|
238 |
{ |
|
239 |
_GroupNo = value; |
|
240 |
OnPropertyChanged("GroupNo"); |
|
241 |
|
|
242 |
} |
|
243 |
} |
|
244 |
} |
|
245 |
|
|
246 |
private string _Exception; |
|
247 |
public string Exception |
|
248 |
{ |
|
249 |
get |
|
250 |
{ |
|
251 |
return _Exception; |
|
252 |
} |
|
253 |
set |
|
254 |
{ |
|
255 |
if (_Exception != value) |
|
256 |
{ |
|
257 |
_Exception = value; |
|
258 |
OnPropertyChanged("Exception"); |
|
259 |
|
|
260 |
} |
|
261 |
} |
|
262 |
} |
|
263 |
|
|
264 |
private int _TotalPage; |
|
265 |
public int TotalPage |
|
266 |
{ |
|
267 |
get |
|
268 |
{ |
|
269 |
return _TotalPage; |
|
270 |
} |
|
271 |
set |
|
272 |
{ |
|
273 |
if (_TotalPage != value) |
|
274 |
{ |
|
275 |
_TotalPage = value; |
|
276 |
OnPropertyChanged("TotalPage"); |
|
277 |
} |
|
278 |
} |
|
279 |
} |
|
280 |
|
|
281 |
private int _CurrentPageNo; |
|
282 |
public int CurrentPageNo |
|
283 |
{ |
|
284 |
get |
|
285 |
{ |
|
286 |
return _CurrentPageNo; |
|
287 |
} |
|
288 |
set |
|
289 |
{ |
|
290 |
if (_CurrentPageNo != value) |
|
291 |
{ |
|
292 |
_CurrentPageNo = value; |
|
293 |
OnPropertyChanged("CurrentPageNo"); |
|
294 |
} |
|
295 |
} |
|
296 |
} |
|
297 |
|
|
298 |
private string _Revision; |
|
299 |
public string Revision |
|
300 |
{ |
|
301 |
get |
|
302 |
{ |
|
303 |
return _Revision; |
|
304 |
} |
|
305 |
set |
|
306 |
{ |
|
307 |
if (_Revision != value) |
|
308 |
{ |
|
309 |
_Revision = value; |
|
310 |
OnPropertyChanged("Revision"); |
|
311 |
|
|
312 |
} |
|
313 |
} |
|
314 |
} |
|
315 |
|
|
316 |
private string _DocumnetURL; |
|
317 |
public string DocumnetURL |
|
318 |
{ |
|
319 |
get |
|
320 |
{ |
|
321 |
return _DocumnetURL; |
|
322 |
} |
|
323 |
set |
|
324 |
{ |
|
325 |
if (_DocumnetURL != value) |
|
326 |
{ |
|
327 |
_DocumnetURL = value; |
|
328 |
OnPropertyChanged("DocumnetURL"); |
|
329 |
|
|
330 |
} |
|
331 |
} |
|
332 |
} |
|
333 |
|
|
334 |
private string _DocumentNo; |
|
335 |
public string DocumentNo |
|
336 |
{ |
|
337 |
get |
|
338 |
{ |
|
339 |
return _DocumentNo; |
|
340 |
} |
|
341 |
set |
|
342 |
{ |
|
343 |
if (_DocumentNo != value) |
|
344 |
{ |
|
345 |
_DocumentNo = value; |
|
346 |
OnPropertyChanged("DocumentNo"); |
|
347 |
|
|
348 |
} |
|
349 |
} |
|
350 |
} |
|
351 |
|
|
352 |
private string _DocumentName; |
|
353 |
public string DocumentName |
|
354 |
{ |
|
355 |
get |
|
356 |
{ |
|
357 |
return _DocumentName; |
|
358 |
} |
|
359 |
set |
|
360 |
{ |
|
361 |
if (_DocumentName != value) |
|
362 |
{ |
|
363 |
_DocumentName = value; |
|
364 |
OnPropertyChanged("DocumentName"); |
|
365 |
|
|
366 |
} |
|
367 |
} |
|
368 |
} |
|
369 |
|
|
370 |
private string _UniqueKey; |
|
371 |
public string UniqueKey |
|
372 |
{ |
|
373 |
get |
|
374 |
{ |
|
375 |
return _UniqueKey; |
|
376 |
} |
|
377 |
set |
|
378 |
{ |
|
379 |
if (_UniqueKey != value) |
|
380 |
{ |
|
381 |
_UniqueKey = value; |
|
382 |
OnPropertyChanged("UniqueKey"); |
|
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 |
|
|
423 |
private string _ConvertID; |
|
424 |
public string ConvertID |
|
425 |
{ |
|
426 |
get |
|
427 |
{ |
|
428 |
return _ConvertID; |
|
429 |
} |
|
430 |
set |
|
431 |
{ |
|
432 |
if (_ConvertID != value) |
|
433 |
{ |
|
434 |
_ConvertID = value; |
|
435 |
OnPropertyChanged("ConvertID"); |
|
436 |
} |
|
437 |
} |
|
438 |
} |
|
439 |
|
|
440 |
private string _ServiceID; |
|
441 |
public string ServiceID |
|
442 |
{ |
|
443 |
get |
|
444 |
{ |
|
445 |
return _ServiceID; |
|
446 |
} |
|
447 |
set |
|
448 |
{ |
|
449 |
if (_ServiceID != value) |
|
450 |
{ |
|
451 |
_ServiceID = value; |
|
452 |
OnPropertyChanged("ServiceID"); |
|
453 |
} |
|
454 |
} |
|
455 |
} |
|
456 |
|
|
457 |
private string _ProjectNumber; |
|
458 |
public string ProjectNumber |
|
459 |
{ |
|
460 |
get |
|
461 |
{ |
|
462 |
return _ProjectNumber; |
|
463 |
} |
|
464 |
set |
|
465 |
{ |
|
466 |
if (_ProjectNumber != value) |
|
467 |
{ |
|
468 |
_ProjectNumber = value; |
|
469 |
OnPropertyChanged("ProjectNumber"); |
|
470 |
} |
|
471 |
} |
|
472 |
} |
|
473 |
|
|
474 |
public enum StatusCodeType |
|
475 |
{ |
|
476 |
None = 0, |
|
477 |
Wait = 1, |
|
478 |
PageLoading = 2, |
|
479 |
Saving = 3, |
|
480 |
Completed = 4, |
|
481 |
FileError = 50, |
|
482 |
PageError = 55, |
|
483 |
NeedsPassword = 60, |
|
484 |
Error = 99, |
|
485 |
All_Error = 100 |
|
486 |
} |
|
487 |
} |
|
488 |
} |
ConvertService/ServiceBase/Markus.Service.StationController/Data/FinalPDF.cs | ||
---|---|---|
470 | 470 |
PageLoading = 2, |
471 | 471 |
Saving = 3, |
472 | 472 |
Completed = 4, |
473 |
UploadError = 5, |
|
474 |
Error11 = 11, |
|
473 | 475 |
FileError = 50, |
474 | 476 |
PageError = 55, |
475 | 477 |
NeedsPassword = 60, |
ConvertService/ServiceBase/Markus.Service.StationController/Markus.Service.StationController.csproj | ||
---|---|---|
34 | 34 |
<BootstrapperEnabled>true</BootstrapperEnabled> |
35 | 35 |
</PropertyGroup> |
36 | 36 |
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
37 |
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
37 |
<PlatformTarget>x64</PlatformTarget>
|
|
38 | 38 |
<DebugSymbols>true</DebugSymbols> |
39 | 39 |
<DebugType>full</DebugType> |
40 | 40 |
<Optimize>false</Optimize> |
... | ... | |
112 | 112 |
<SpecificVersion>False</SpecificVersion> |
113 | 113 |
<HintPath>..\Telerik\Telerik.Windows.Controls.dll</HintPath> |
114 | 114 |
</Reference> |
115 |
<Reference Include="Telerik.Windows.Controls.Chart, Version=2020.1.218.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL"> |
|
116 |
<SpecificVersion>False</SpecificVersion> |
|
117 |
<HintPath>C:\Program Files (x86)\Progress\Telerik UI for WPF R1 2020\Binaries.NoXaml\WPF45\Telerik.Windows.Controls.Chart.dll</HintPath> |
|
118 |
</Reference> |
|
119 |
<Reference Include="Telerik.Windows.Controls.Data, Version=2020.1.218.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL"> |
|
120 |
<SpecificVersion>False</SpecificVersion> |
|
121 |
<HintPath>C:\Program Files (x86)\Progress\Telerik UI for WPF R1 2020\Binaries.NoXaml\WPF45\Telerik.Windows.Controls.Data.dll</HintPath> |
|
122 |
</Reference> |
|
115 | 123 |
<Reference Include="Telerik.Windows.Controls.Docking, Version=2020.1.218.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL"> |
116 | 124 |
<HintPath>C:\Program Files (x86)\Progress\Telerik UI for WPF R1 2020\Binaries\WPF45\Telerik.Windows.Controls.Docking.dll</HintPath> |
117 | 125 |
<Private>True</Private> |
... | ... | |
132 | 140 |
<SpecificVersion>False</SpecificVersion> |
133 | 141 |
<HintPath>..\Telerik\Telerik.Windows.Data.dll</HintPath> |
134 | 142 |
</Reference> |
135 |
<Reference Include="Telerik.Windows.Themes.VisualStudio2013"> |
|
136 |
<HintPath>C:\Program Files (x86)\Progress\Telerik UI for WPF R1 2020\Binaries.NoXaml\WPF45\Telerik.Windows.Themes.VisualStudio2013.dll</HintPath> |
|
137 |
</Reference> |
|
138 | 143 |
<Reference Include="Telerik.Windows.Zip, Version=2019.3.903.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL"> |
139 | 144 |
<SpecificVersion>False</SpecificVersion> |
140 | 145 |
<HintPath>..\Telerik\Telerik.Windows.Zip.dll</HintPath> |
... | ... | |
163 | 168 |
<DependentUpon>TraceDocument.xaml</DependentUpon> |
164 | 169 |
</Compile> |
165 | 170 |
<Compile Include="Controls\TraceTextSource.cs" /> |
166 |
<Compile Include="Data\DataConvert.cs" /> |
|
171 |
<Compile Include="Data\ConvertCOUNT.cs" /> |
|
172 |
<Compile Include="Data\ConvertPDF.cs" /> |
|
167 | 173 |
<Compile Include="Data\FinalPDF.cs" /> |
168 | 174 |
<Compile Include="Data\MenuItem.cs" /> |
169 | 175 |
<Compile Include="Data\SelectedCountItem.cs" /> |
... | ... | |
190 | 196 |
<DesignTime>True</DesignTime> |
191 | 197 |
<DependentUpon>MarkusModel.edmx</DependentUpon> |
192 | 198 |
</Compile> |
199 |
<Compile Include="SELECT_CONVERT_COUNT.cs"> |
|
200 |
<DependentUpon>MarkusModel.tt</DependentUpon> |
|
201 |
</Compile> |
|
193 | 202 |
<Compile Include="SELECT_CONVERT_ITEM_Result.cs"> |
194 | 203 |
<DependentUpon>MarkusModel.tt</DependentUpon> |
195 | 204 |
</Compile> |
196 | 205 |
<Compile Include="SELECT_FINAL_PDF_Result.cs"> |
197 | 206 |
<DependentUpon>MarkusModel.tt</DependentUpon> |
198 | 207 |
</Compile> |
208 |
<Compile Include="ViewModel\DashBoardViewModel.cs" /> |
|
199 | 209 |
<Compile Include="ViewModel\FinalPDFViewModel.cs" /> |
200 | 210 |
<Compile Include="ViewModel\FinalPDFAddDialogViewModel.cs" /> |
201 | 211 |
<Compile Include="ViewModel\ConvertAddDialogViewModel.cs" /> |
... | ... | |
204 | 214 |
<Compile Include="Views\ConvertAddDialog.xaml.cs"> |
205 | 215 |
<DependentUpon>ConvertAddDialog.xaml</DependentUpon> |
206 | 216 |
</Compile> |
217 |
<Compile Include="Views\DashBoard.xaml.cs"> |
|
218 |
<DependentUpon>DashBoard.xaml</DependentUpon> |
|
219 |
</Compile> |
|
207 | 220 |
<Compile Include="Views\DataBaseView.xaml.cs"> |
208 | 221 |
<DependentUpon>DataBaseView.xaml</DependentUpon> |
209 | 222 |
</Compile> |
... | ... | |
255 | 268 |
<Generator>MSBuild:Compile</Generator> |
256 | 269 |
<SubType>Designer</SubType> |
257 | 270 |
</Page> |
271 |
<Page Include="Views\DashBoard.xaml"> |
|
272 |
<SubType>Designer</SubType> |
|
273 |
<Generator>MSBuild:Compile</Generator> |
|
274 |
</Page> |
|
258 | 275 |
<Page Include="Views\DataBaseView.xaml"> |
259 | 276 |
<Generator>MSBuild:Compile</Generator> |
260 | 277 |
<SubType>Designer</SubType> |
ConvertService/ServiceBase/Markus.Service.StationController/MarkusModel.Context.cs | ||
---|---|---|
270 | 270 |
|
271 | 271 |
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<SELECT_FINAL_PDF_Result>("markusEntities.SELECT_FINAL_PDF_ITEM", p_IDParameter, p_PROJECT_NOParameter, p_DOCUMENT_IDParameter, p_MARKUPINFO_IDParameter, p_DOCINFO_IDParameter, p_DOCUMENT_NAMEParameter, p_DOCUMENT_NOParameter, p_CREATE_USER_IDParameter, p_STATUSParameter, p_TAKE_COUNTParameter, p_GROUP_NOParameter, p_REVISIONParameter, p_BEGIN_CREATE_DATETIMEParameter, p_FINISH_CREATE_DATETIMEParameter, p_BEGIN_START_DATETIEParameter, p_FINISH_START_DATETIMEParameter, p_BEGIN_END_DATETIMEParameter, p_FINISH_END_DATETIMEParameter, p_DOCUMENT_URLParameter); |
272 | 272 |
} |
273 |
|
|
274 |
public virtual int CONVERT_COUNT(Nullable<int> p_STATUS, Nullable<System.DateTime> p_BEGIN_CREATE_DATETIME, Nullable<System.DateTime> p_FINISH_CREATE_DATETIME) |
|
275 |
{ |
|
276 |
var p_STATUSParameter = p_STATUS.HasValue ? |
|
277 |
new ObjectParameter("P_STATUS", p_STATUS) : |
|
278 |
new ObjectParameter("P_STATUS", typeof(int)); |
|
279 |
|
|
280 |
var p_BEGIN_CREATE_DATETIMEParameter = p_BEGIN_CREATE_DATETIME.HasValue ? |
|
281 |
new ObjectParameter("P_BEGIN_CREATE_DATETIME", p_BEGIN_CREATE_DATETIME) : |
|
282 |
new ObjectParameter("P_BEGIN_CREATE_DATETIME", typeof(System.DateTime)); |
|
283 |
|
|
284 |
var p_FINISH_CREATE_DATETIMEParameter = p_FINISH_CREATE_DATETIME.HasValue ? |
|
285 |
new ObjectParameter("P_FINISH_CREATE_DATETIME", p_FINISH_CREATE_DATETIME) : |
|
286 |
new ObjectParameter("P_FINISH_CREATE_DATETIME", typeof(System.DateTime)); |
|
287 |
|
|
288 |
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("markusEntities.CONVERT_COUNT", p_STATUSParameter, p_BEGIN_CREATE_DATETIMEParameter, p_FINISH_CREATE_DATETIMEParameter); |
|
289 |
} |
|
290 |
|
|
291 |
public virtual ObjectResult<SELECT_CONVERT_COUNT> SELECT_CONVERT_COUNT(Nullable<int> p_STATUS, Nullable<System.DateTime> p_BEGIN_CREATE_DATETIME, Nullable<System.DateTime> p_FINISH_CREATE_DATETIME) |
|
292 |
{ |
|
293 |
var p_STATUSParameter = p_STATUS.HasValue ? |
|
294 |
new ObjectParameter("P_STATUS", p_STATUS) : |
|
295 |
new ObjectParameter("P_STATUS", typeof(int)); |
|
296 |
|
|
297 |
var p_BEGIN_CREATE_DATETIMEParameter = p_BEGIN_CREATE_DATETIME.HasValue ? |
|
298 |
new ObjectParameter("P_BEGIN_CREATE_DATETIME", p_BEGIN_CREATE_DATETIME) : |
|
299 |
new ObjectParameter("P_BEGIN_CREATE_DATETIME", typeof(System.DateTime)); |
|
300 |
|
|
301 |
var p_FINISH_CREATE_DATETIMEParameter = p_FINISH_CREATE_DATETIME.HasValue ? |
|
302 |
new ObjectParameter("P_FINISH_CREATE_DATETIME", p_FINISH_CREATE_DATETIME) : |
|
303 |
new ObjectParameter("P_FINISH_CREATE_DATETIME", typeof(System.DateTime)); |
|
304 |
|
|
305 |
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<SELECT_CONVERT_COUNT>("markusEntities.SELECT_CONVERT_COUNT", p_STATUSParameter, p_BEGIN_CREATE_DATETIMEParameter, p_FINISH_CREATE_DATETIMEParameter); |
|
306 |
} |
|
273 | 307 |
} |
274 | 308 |
} |
ConvertService/ServiceBase/Markus.Service.StationController/MarkusModel.edmx | ||
---|---|---|
5 | 5 |
<!-- SSDL content --> |
6 | 6 |
<edmx:StorageModels> |
7 | 7 |
<Schema Namespace="markusModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl"> |
8 |
<Function Name="CONVERT_COUNT" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> |
|
9 |
<Parameter Name="P_STATUS" Type="int" Mode="In" /> |
|
10 |
<Parameter Name="P_BEGIN_CREATE_DATETIME" Type="datetime" Mode="In" /> |
|
11 |
<Parameter Name="P_FINISH_CREATE_DATETIME" Type="datetime" Mode="In" /> |
|
12 |
</Function> |
|
8 | 13 |
<Function Name="SELECT_CONVERT_DELETE" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> |
9 | 14 |
<Parameter Name="P_ID" Type="nvarchar" Mode="In" /> |
10 | 15 |
</Function> |
... | ... | |
143 | 148 |
<Parameter Name="P_FINISH_END_DATETIME" Mode="In" Type="DateTime" /> |
144 | 149 |
<Parameter Name="P_DOCUMENT_URL" Mode="In" Type="String" /> |
145 | 150 |
</FunctionImport> |
151 |
<FunctionImport Name="CONVERT_COUNT"> |
|
152 |
<Parameter Name="P_STATUS" Mode="In" Type="Int32" /> |
|
153 |
<Parameter Name="P_BEGIN_CREATE_DATETIME" Mode="In" Type="DateTime" /> |
|
154 |
<Parameter Name="P_FINISH_CREATE_DATETIME" Mode="In" Type="DateTime" /> |
|
155 |
</FunctionImport> |
|
156 |
<FunctionImport Name="SELECT_CONVERT_COUNT" ReturnType="Collection(markusModel.SELECT_CONVERT_COUNT)"> |
|
157 |
<Parameter Name="P_STATUS" Mode="In" Type="Int32" /> |
|
158 |
<Parameter Name="P_BEGIN_CREATE_DATETIME" Mode="In" Type="DateTime" /> |
|
159 |
<Parameter Name="P_FINISH_CREATE_DATETIME" Mode="In" Type="DateTime" /> |
|
160 |
</FunctionImport> |
|
146 | 161 |
</EntityContainer> |
147 | 162 |
<ComplexType Name="SELECT_CONVERT_ITEM_Result"> |
148 | 163 |
<Property Type="String" Name="ID" Nullable="false" MaxLength="50" /> |
... | ... | |
191 | 206 |
<Property Type="String" Name="PROPERTIES_VALUE" Nullable="false" /> |
192 | 207 |
<Property Type="String" Name="CONVERT_PATH" Nullable="false" /> |
193 | 208 |
</ComplexType> |
209 |
<ComplexType Name="SELECT_CONVERT_COUNT" > |
|
210 |
<Property Type="String" Name="PROJECT_NO" Nullable="false" /> |
|
211 |
<Property Type="Int32" Name="COUNT" Nullable="false" /> |
|
212 |
</ComplexType> |
|
194 | 213 |
</Schema> |
195 | 214 |
</edmx:ConceptualModels> |
196 | 215 |
<!-- C-S mapping content --> |
... | ... | |
233 | 252 |
<ComplexTypeMapping TypeName="markusModel.SELECT_FINAL_PDF_Result" /> |
234 | 253 |
</ResultMapping> |
235 | 254 |
</FunctionImportMapping> |
255 |
<FunctionImportMapping FunctionImportName="CONVERT_COUNT" FunctionName="markusModel.Store.CONVERT_COUNT" /> |
|
256 |
<FunctionImportMapping FunctionImportName="SELECT_CONVERT_COUNT" FunctionName="markusModel.Store.CONVERT_COUNT"> |
|
257 |
<ResultMapping> |
|
258 |
<ComplexTypeMapping TypeName="markusModel.SELECT_CONVERT_COUNT"> |
|
259 |
<ScalarProperty Name="PROJECT_NO" ColumnName="PROJECT_NO" /> |
|
260 |
<ScalarProperty Name="COUNT" ColumnName="COUNT" /> |
|
261 |
</ComplexTypeMapping> |
|
262 |
</ResultMapping> |
|
263 |
</FunctionImportMapping> |
|
236 | 264 |
</EntityContainerMapping> |
237 | 265 |
</Mapping> |
238 | 266 |
</edmx:Mappings> |
ConvertService/ServiceBase/Markus.Service.StationController/SELECT_CONVERT_COUNT.cs | ||
---|---|---|
1 |
//------------------------------------------------------------------------------ |
|
2 |
// <auto-generated> |
|
3 |
// 이 코드는 템플릿에서 생성되었습니다. |
|
4 |
// |
|
5 |
// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. |
|
6 |
// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. |
|
7 |
// </auto-generated> |
|
8 |
//------------------------------------------------------------------------------ |
|
9 |
|
|
10 |
namespace Markus.Service.StationController |
|
11 |
{ |
|
12 |
using System; |
|
13 |
|
|
14 |
public partial class SELECT_CONVERT_COUNT |
|
15 |
{ |
|
16 |
public string PROJECT_NO { get; set; } |
|
17 |
public int COUNT { get; set; } |
|
18 |
} |
|
19 |
} |
ConvertService/ServiceBase/Markus.Service.StationController/ViewModel/DashBoardViewModel.cs | ||
---|---|---|
1 |
using Markus.Service.Extensions; |
|
2 |
using Markus.Service.StationController.Data; |
|
3 |
using Markus.Service.StationController.Extensions; |
|
4 |
using Newtonsoft.Json; |
|
5 |
using Telerik.Charting; |
|
6 |
using Telerik.Windows.Controls; |
|
7 |
using Telerik.Windows.Controls.ChartView; |
|
8 |
using System; |
|
9 |
using System.Collections.Generic; |
|
10 |
using System.Linq; |
|
11 |
using System.Text; |
|
12 |
using System.Threading.Tasks; |
|
13 |
using System.Windows; |
|
14 |
using System.Windows.Threading; |
|
15 |
using ConverCOUNT = Markus.Service.StationController.Data.ConvertCOUNT; |
|
16 |
using System.Collections.ObjectModel; |
|
17 |
|
|
18 |
namespace Markus.Service.StationController.ViewModel |
|
19 |
{ |
|
20 |
class DashBoardViewModel : Mvvm.ToolKit.ViewModelBase |
|
21 |
{ |
|
22 |
#region Constructor |
|
23 |
|
|
24 |
|
|
25 |
public DashBoardViewModel() |
|
26 |
{ |
|
27 |
RemoveCreateTimeFilterCommand = new DelegateCommand(RemoveCreateTimeFilter); |
|
28 |
} |
|
29 |
|
|
30 |
#endregion |
|
31 |
|
|
32 |
#region Properties |
|
33 |
|
|
34 |
static DateTime DefaultCreateTime = DateTime.Now; |
|
35 |
private DateTime _SelectedCreateTimeBegin = DefaultCreateTime; |
|
36 |
public DateTime SelectedCreateTimeBegin |
|
37 |
{ |
|
38 |
|
|
39 |
get { return _SelectedCreateTimeBegin; } |
|
40 |
set |
|
41 |
{ |
|
42 |
if (_SelectedCreateTimeBegin == value) |
|
43 |
return; |
|
44 |
_SelectedCreateTimeBegin = value; |
|
45 |
OnPropertyChanged(() => SelectedCreateTimeBegin); |
|
46 |
|
|
47 |
} |
|
48 |
} |
|
49 |
|
|
50 |
private DateTime _SelectedCreateTimeEnd = DefaultCreateTime; |
|
51 |
public DateTime SelectedCreateTimeEnd |
|
52 |
{ |
|
53 |
|
|
54 |
get { return _SelectedCreateTimeEnd; } |
|
55 |
set |
|
56 |
{ |
|
57 |
if (_SelectedCreateTimeEnd == value) |
|
58 |
return; |
|
59 |
_SelectedCreateTimeEnd = value; |
|
60 |
OnPropertyChanged(() => SelectedCreateTimeEnd); |
|
61 |
} |
|
62 |
} |
|
63 |
|
|
64 |
private SelectedCountItem _SelectedCount; |
|
65 |
public SelectedCountItem SelectedCount |
|
66 |
{ |
|
67 |
get => _SelectedCount; |
|
68 |
set |
|
69 |
{ |
|
70 |
_SelectedCount = value; |
|
71 |
OnPropertyChanged(() => SelectedCount); |
|
72 |
} |
|
73 |
} |
|
74 |
|
|
75 |
List<SelectedCountItem> _SelectedCountList; |
|
76 |
public List<SelectedCountItem> SelectedCountList |
|
77 |
{ |
|
78 |
get |
|
79 |
{ |
|
80 |
if (_SelectedCountList == null) |
|
81 |
{ |
|
82 |
_SelectedCountList = new List<SelectedCountItem> |
|
83 |
{ |
|
84 |
new SelectedCountItem{DisplayMember = "50",ValueMember = 50}, |
|
85 |
new SelectedCountItem{DisplayMember = "100",ValueMember = 100}, |
|
86 |
new SelectedCountItem{DisplayMember = "150",ValueMember = 150}, |
|
87 |
new SelectedCountItem{DisplayMember = "200",ValueMember = 200} |
|
88 |
}; |
|
89 |
} |
|
90 |
|
|
91 |
return _SelectedCountList; |
|
92 |
} |
|
93 |
} |
|
94 |
|
|
95 |
private ObservableCollection<ConvertCOUNT> _ExceptionCount; |
|
96 |
public ObservableCollection<ConvertCOUNT> ExceptionCount |
|
97 |
{ |
|
98 |
get |
|
99 |
{ |
|
100 |
if (_ExceptionCount == null) |
|
101 |
{ |
|
102 |
_ExceptionCount = new ObservableCollection<ConvertCOUNT>(); |
|
103 |
} |
|
104 |
return _ExceptionCount; |
|
105 |
} |
|
106 |
set |
|
107 |
{ |
|
108 |
_ExceptionCount = value; |
|
109 |
OnPropertyChanged(() => ExceptionCount); |
|
110 |
} |
|
111 |
} |
|
112 |
|
|
113 |
|
|
114 |
private ObservableCollection<ConvertCOUNT> _ConvertCount; |
|
115 |
public ObservableCollection<ConvertCOUNT> ConvertCount |
|
116 |
{ |
|
117 |
get |
|
118 |
{ |
|
119 |
if (_ConvertCount == null) |
|
120 |
{ |
|
121 |
_ConvertCount = new ObservableCollection<ConvertCOUNT>(); |
|
122 |
} |
|
123 |
return _ConvertCount; |
|
124 |
} |
|
125 |
set |
|
126 |
{ |
|
127 |
_ConvertCount = value; |
|
128 |
OnPropertyChanged(() => ConvertCount); |
|
129 |
} |
|
130 |
} |
|
131 |
|
|
132 |
private Telerik.Windows.Data.EnumMemberViewModel _SelectedStatus; |
|
133 |
public Telerik.Windows.Data.EnumMemberViewModel SelectedStatus |
|
134 |
{ |
|
135 |
get => _SelectedStatus; |
|
136 |
set |
|
137 |
{ |
|
138 |
_SelectedStatus = value; |
|
139 |
OnPropertyChanged(() => SelectedStatus); |
|
140 |
} |
|
141 |
} |
|
142 |
|
|
143 |
IEnumerable<Telerik.Windows.Data.EnumMemberViewModel> _StatusCodeList; |
|
144 |
public IEnumerable<Telerik.Windows.Data.EnumMemberViewModel> StatusCodeList |
|
145 |
{ |
|
146 |
get |
|
147 |
{ |
|
148 |
if (_StatusCodeList == null) |
|
149 |
{ |
|
150 |
_StatusCodeList = Telerik.Windows.Data.EnumDataSource.FromType<ConvertPDF.StatusCodeType>(); |
|
151 |
} |
|
152 |
|
|
153 |
return _StatusCodeList; |
|
154 |
} |
|
155 |
} |
|
156 |
|
|
157 |
#endregion |
|
158 |
|
|
159 |
#region Command |
|
160 |
|
|
161 |
public DelegateCommand RemoveCreateTimeFilterCommand { get; private set; } |
|
162 |
|
|
163 |
#endregion |
|
164 |
|
|
165 |
#region Main Logic |
|
166 |
|
|
167 |
/// <summary> |
|
168 |
/// 각각의 Grid row 객체들 업데이트 |
|
169 |
/// </summary> |
|
170 |
|
|
171 |
private DispatcherTimer dispatcherTimer; |
|
172 |
public override void Loaded() |
|
173 |
{ |
|
174 |
base.Loaded(); |
|
175 |
|
|
176 |
if (!App.IsDesignMode) |
|
177 |
{ |
|
178 |
dispatcherTimer = new DispatcherTimer(); |
|
179 |
dispatcherTimer.Tick += new EventHandler(Timer_Tick); |
|
180 |
dispatcherTimer.Interval = new TimeSpan(0, 0, 1); |
|
181 |
dispatcherTimer.Start(); |
내보내기 Unified diff