개정판 60723dc9
convert 오류 수정
Change-Id: Idcebecb02f64515cc20b61054669368e2f677013
ConvertService/ServiceBase/Markus.Service.StationController/ViewModel/DataBaseByStatusViewModel.cs | ||
---|---|---|
19 | 19 |
private System.Collections.ObjectModel.ObservableCollection<ConvertItem> items; |
20 | 20 |
private ConvertItem selectItem; |
21 | 21 |
|
22 |
private StatusCodeType statusType;
|
|
22 |
private List<StatusCodeType> statusType;
|
|
23 | 23 |
private bool isLoading; |
24 | 24 |
|
25 | 25 |
public System.Collections.ObjectModel.ObservableCollection<ConvertItem> Items |
... | ... | |
41 | 41 |
} |
42 | 42 |
|
43 | 43 |
|
44 |
public StatusCodeType StatusType
|
|
44 |
public List<StatusCodeType> StatusType
|
|
45 | 45 |
{ |
46 | 46 |
get => statusType; set |
47 | 47 |
{ |
... | ... | |
93 | 93 |
|
94 | 94 |
using (Markus.Service.DataBase.ConvertDatabase database = new Markus.Service.DataBase.ConvertDatabase(App.MarkusDataBaseConnecitonString)) |
95 | 95 |
{ |
96 |
newitems = database.GetConvertItems(StatusType, x=>x.CREATE_DATETIME > DateTime.Today,10).ToList(); |
|
96 |
foreach (var status in statusType) |
|
97 |
{ |
|
98 |
newitems.AddRange(database.GetConvertItems(status, x => x.TOTAL_PAGE > 100, 10)); |
|
99 |
} |
|
97 | 100 |
} |
98 | 101 |
|
99 | 102 |
if (Items == null) |
내보내기 Unified diff