개정판 a6e5055d
Markus.Service.StationController DataBaseView 추가
Change-Id: I16b9c78a690e2ae8f804bf35c8787a9c97fea157
ConvertService/ServiceBase/Markus.Service.DataBase/ConvertDatabase.cs | ||
---|---|---|
289 | 289 |
{ |
290 | 290 |
var item = items.First(); |
291 | 291 | |
292 |
item.RECONVERTER = item.RECONVERTER + ReConvert;
|
|
292 |
item.RECONVERTER = item.RECONVERTER - ReConvert;
|
|
293 | 293 |
item.CREATE_DATETIME = DateTime.Now; |
294 | 294 |
//item.START_DATETIME = null; |
295 | 295 |
item.END_DATETIME = null; |
... | ... | |
390 | 390 |
return convertItems; |
391 | 391 |
} |
392 | 392 | |
393 |
public IEnumerable<Interface.ConvertItem> GetConvertProjects(Func<CONVERTER_DOC, bool> @where) |
|
394 |
{ |
|
395 |
var items = entities.CONVERTER_DOC.Where(@where); |
|
396 | ||
397 |
if (items.Count() > 0) |
|
398 |
{ |
|
399 |
foreach (var item in items) |
|
400 |
{ |
|
401 | ||
402 |
yield return new Interface.ConvertItem(item.DOCUMENT_ID, item.PROJECT_NO, item.ID, item.DOCUMENT_URL) |
|
403 |
{ |
|
404 |
ReConverter = item.RECONVERTER, |
|
405 |
ServiceID = item.SERVICE_ID, |
|
406 |
//ConvertState = ((StatusCodeType)item.STATUS).ToString(), |
|
407 |
ConvertState = (item.STATUS).ToString(), |
|
408 |
CreateTime = item.CREATE_DATETIME, |
|
409 |
TotalPage = item.TOTAL_PAGE, |
|
410 |
CurrentPageNo = item.CURRENT_PAGE, |
|
411 |
Exception = item.EXCEPTION, |
|
412 |
ConvertPath = GetConvertPath(item.PROJECT_NO, item.DOCUMENT_ID) |
|
413 |
}; |
|
414 | ||
415 |
} |
|
416 |
} |
|
417 |
} |
|
418 | ||
419 |
public List<Interface.ConvertItem> GetConvertProjects(Func<CONVERTER_DOC, bool> @where, StatusCodeType status) |
|
420 |
{ |
|
421 |
List<Interface.ConvertItem> convertItems = new List<Interface.ConvertItem>(); |
|
422 | ||
423 | ||
424 |
//var items = entities.CONVERTER_DOC.Where(x => x.STATUS == (int)statusCodeType).Take(takeCount).ToList(); //.Where(x => x.PROJECT_NO == gProjectNo); |
|
425 |
var items = entities.CONVERTER_DOC.Where(x => x.STATUS == (int)status).ToList(); |
|
426 | ||
427 |
if (items.Count() > 0) |
|
428 |
{ |
|
429 |
foreach (var item in items) |
|
430 |
{ |
|
431 | ||
432 |
var convertitem = new Interface.ConvertItem(item.DOCUMENT_ID, item.PROJECT_NO, item.ID, item.DOCUMENT_URL) |
|
433 |
{ |
|
434 |
ReConverter = item.RECONVERTER, |
|
435 |
ServiceID = item.SERVICE_ID, |
|
436 |
//ConvertState = ((StatusCodeType)item.STATUS).ToString(), |
|
437 |
ConvertState = (item.STATUS).ToString(), |
|
438 |
CreateTime = item.CREATE_DATETIME, |
|
439 |
TotalPage = item.TOTAL_PAGE, |
|
440 |
CurrentPageNo = item.CURRENT_PAGE, |
|
441 |
Exception = item.EXCEPTION, |
|
442 |
ConvertPath = GetConvertPath(item.PROJECT_NO, item.DOCUMENT_ID) |
|
443 |
}; |
|
444 | ||
445 | ||
446 |
} |
|
447 |
} |
|
448 | ||
449 |
return convertItems; |
|
450 |
} |
|
451 | ||
452 |
public List<Interface.ConvertItem> GetConvertProjectsStatus(Func<CONVERTER_DOC, bool> @where) |
|
453 |
{ |
|
454 |
List<Interface.ConvertItem> convertItems = new List<Interface.ConvertItem>(); |
|
455 | ||
456 | ||
457 |
//var items = entities.CONVERTER_DOC.Where(x => x.STATUS == (int)statusCodeType).Take(takeCount).ToList(); //.Where(x => x.PROJECT_NO == gProjectNo); |
|
458 |
var items = entities.CONVERTER_DOC.Where(x => x.STATUS<= 4); |
|
459 | ||
460 |
if (items.Count() > 0) |
|
461 |
{ |
|
462 |
foreach (var item in items) |
|
463 |
{ |
|
464 |
var convertitem = new Interface.ConvertItem(item.DOCUMENT_ID, item.PROJECT_NO, item.ID, item.DOCUMENT_URL) |
|
465 |
{ |
|
466 |
ReConverter = item.RECONVERTER, |
|
467 |
ServiceID = item.SERVICE_ID, |
|
468 |
//ConvertState = ((StatusCodeType)item.STATUS).ToString(), |
|
469 |
ConvertState = (item.STATUS).ToString(), |
|
470 |
CreateTime = item.CREATE_DATETIME, |
|
471 |
TotalPage = item.TOTAL_PAGE, |
|
472 |
CurrentPageNo = item.CURRENT_PAGE, |
|
473 |
Exception = item.EXCEPTION, |
|
474 |
ConvertPath = GetConvertPath(item.PROJECT_NO, item.DOCUMENT_ID) |
|
475 |
}; |
|
476 | ||
477 | ||
478 |
convertItems.Add(convertitem); |
|
479 |
} |
|
480 |
} |
|
481 | ||
482 |
return convertItems; |
|
483 |
} |
|
484 | ||
393 | 485 | |
394 | 486 |
/// <summary> |
395 | 487 |
/// 현재 서비스에서 컨버터중인 아이템. |
내보내기 Unified diff