개정판 59a29a3b
Reconvert & Convert-RealGrid realtime 수정
Change-Id: Ief366643905646a40c71b6a75a22abf5849f3a5e
ConvertService/ServiceBase/Markus.Service.StationController/ViewModel/DataBaseItemsModel.cs | ||
---|---|---|
713 | 713 |
{ |
714 | 714 |
try |
715 | 715 |
{ |
716 |
IEnumerable<ConvertPDF> Listitems = Enumerable.Empty<ConvertPDF>();
|
|
716 |
List<ConvertPDF> Listitems = new List<ConvertPDF>();
|
|
717 | 717 |
|
718 | 718 |
foreach (var coll in collection) |
719 | 719 |
{ |
720 |
Listitems = from num in await WcfClient.GET_SELECT_CONVERT_ITEMAsync(coll.ConvertID, coll.ProjectNumber, null, null, 1, null, null, null, null, null, null, null, null, null, null, null, null, null, null)
|
|
720 |
var collectionItems = from num in await WcfClient.GET_SELECT_CONVERT_ITEMAsync(coll.ConvertID, coll.ProjectNumber, null, null, 1, null, null, null, null, null, null, null, null, null, null, null, null, null, null)
|
|
721 | 721 |
let MarkusLink = "kcom://" + CreateMarkusParam(num.PROJECT_NO, num.DOCUMENT_ID, "doftech") |
722 | 722 |
select new ConvertPDF(num.SERVICE_ID, num.ID, num.PROJECT_NO, num.STATUS, num.DOCUMENT_ID, num.DOCUMENT_NAME, num.DOCUMENT_NO, num.DOCUMENT_URL, num.REVISION, num.CURRENT_PAGE, |
723 | 723 |
num.TOTAL_PAGE, num.EXCEPTION, num.GROUP_NO, num.CREATE_DATETIME, num.START_DATETIME, num.END_DATETIME, num.DOCUMENT_URL, num.CONVERT_PATH, MarkusLink, num.RECONVERTER); |
724 |
|
|
725 |
var collectionItem = collectionItems.Cast<ConvertPDF>().ToList(); |
|
726 |
|
|
727 |
Listitems.AddRange(collectionItem); |
|
724 | 728 |
} |
725 | 729 |
|
726 | 730 |
foreach (var Listitem in Listitems) |
... | ... | |
759 | 763 |
var Listitems = from num in await WcfClient.GET_SELECT_CONVERT_ITEMAsync(null, null, null, _status, SelectedCount.ValueMember, null, null, null, null, null, null, null, null, null, null, null, null, null, null) |
760 | 764 |
let MarkusLink = "kcom://" + CreateMarkusParam(num.PROJECT_NO, num.DOCUMENT_ID, "doftech") |
761 | 765 |
select new ConvertPDF(num.SERVICE_ID, num.ID, num.PROJECT_NO, num.STATUS, num.DOCUMENT_ID, num.DOCUMENT_NAME, num.DOCUMENT_NO, num.DOCUMENT_URL, num.REVISION, num.CURRENT_PAGE, |
762 |
num.TOTAL_PAGE, num.EXCEPTION, num.GROUP_NO, num.CREATE_DATETIME, num.START_DATETIME, num.END_DATETIME, num.DOCUMENT_URL, num.CONVERT_PATH, MarkusLink, num.RECONVERTER); |
|
766 |
num.TOTAL_PAGE, num.EXCEPTION, num.GROUP_NO, num.CREATE_DATETIME, num.START_DATETIME, num.END_DATETIME, num.DOCUMENT_URL, num.CONVERT_PATH, MarkusLink, num.RECONVERTER);
|
|
763 | 767 |
|
764 | 768 |
if (collection.Count() == 0) |
765 | 769 |
{ |
... | ... | |
858 | 862 |
ProjectNames.Add(projectName); |
859 | 863 |
} |
860 | 864 |
} |
861 |
|
|
862 | 865 |
|
863 | 866 |
var Listitems = from num in await WcfClient.GET_SELECT_CONVERT_ITEMAsync(null, ProjectNumberFilter.Project_NO, UniqueKeyFilter, _status, SelectedCount.ValueMember, Start_CreateTime, Finish_CreateTime, null, |
864 | 867 |
null, null, null, GroupNOFilter, Document_NameFilter, Docuemnt_NOFilter, RevisionFilter, Service_IDFilter, ReconverterFilter, DOCUMENT_URLFilter, ExcptionCheck) |
... | ... | |
1131 | 1134 |
} |
1132 | 1135 |
else |
1133 | 1136 |
{ |
1134 |
var resultRealConvert = 0; |
|
1135 |
var resultFiltertConvert = 0; |
|
1136 | 1137 |
if (SelectRealConvert != null) |
1137 | 1138 |
{ |
1138 |
resultRealConvert = SetCleanUpItem(SelectRealConvert).Result;//ConvertDataBase
|
|
1139 |
SetCleanUpItem(SelectRealConvert);//ConvertDataBase
|
|
1139 | 1140 |
} |
1140 | 1141 |
if (SelectFilterConvertList != null) |
1141 | 1142 |
{ |
1142 | 1143 |
foreach (var SelectFilterConvert in SelectFilterConvertList) |
1143 | 1144 |
{ |
1144 |
resultFiltertConvert = SetCleanUpItem(SelectFilterConvert).Result;
|
|
1145 |
SetCleanUpItem(SelectFilterConvert);
|
|
1145 | 1146 |
} |
1146 | 1147 |
} |
1147 |
System.Diagnostics.Debug.WriteLine(resultRealConvert + " " + resultFiltertConvert); |
|
1148 |
|
|
1149 |
|
|
1150 | 1148 |
|
1151 | 1149 |
foreach (var SelectFilterConvert in SelectFilterConvertList) |
1152 | 1150 |
{ |
... | ... | |
1170 | 1168 |
} |
1171 | 1169 |
|
1172 | 1170 |
|
1173 |
public async Task<int> SetCleanUpItem(ConvertPDF _ConvertItem)
|
|
1171 |
public async void SetCleanUpItem(ConvertPDF _ConvertItem)
|
|
1174 | 1172 |
{ |
1175 |
int result = 0; |
|
1176 |
|
|
1177 |
var items = await WcfClient.GET_SELECT_CONVERT_ITEMAsync(_ConvertItem.ConvertID, null, null, null, 1, null, null, null, null, null, null, null, null, null, null, null, null, null, null); |
|
1178 |
|
|
1173 |
|
|
1174 |
var items = await WcfClient.GET_SELECT_CONVERT_ITEMAsync(_ConvertItem.ConvertID, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null); |
|
1175 |
|
|
1179 | 1176 |
if (items.Count() > 0) |
1180 | 1177 |
{ |
1181 | 1178 |
var item = items.First(); |
... | ... | |
1186 | 1183 |
|
1187 | 1184 |
await WcfClient.GET_SELECT_RERECONVERT_ITEMAsync(_ConvertItem.ConvertID, _RECONVERTER, _CREATE_DATETIME, _STATUS, null);//_END_DATETIME = null 에러 |
1188 | 1185 |
} |
1189 |
return result; |
|
1190 | 1186 |
} |
1191 | 1187 |
|
1192 | 1188 |
|
내보내기 Unified diff