Commit 854f7e6b by hoangson

fix continous work taskKey

parent b2d97501
...@@ -401,6 +401,15 @@ CHK_pu.createReportWithWarning = function(operationListOld, isSearched = false) ...@@ -401,6 +401,15 @@ CHK_pu.createReportWithWarning = function(operationListOld, isSearched = false)
var directKey = operationList[i].processKey; var directKey = operationList[i].processKey;
if (operationList[i].operationType == CHK.OPERATION_TYPE.VTOUR || operationList[i].operationType == CHK.OPERATION_TYPE.PDF) { if (operationList[i].operationType == CHK.OPERATION_TYPE.VTOUR || operationList[i].operationType == CHK.OPERATION_TYPE.PDF) {
directKey = operationList[i].taskKey; directKey = operationList[i].taskKey;
if (operationList[i].phaseNo > 1) {
//find taskKey of phaseNo 1
for (var k = 0; k < operationList.length; k++) {
if (operationList[k].phaseNo == 1 && operationList[k].processKey == operationList[i].processKey) {
directKey = operationList[k].taskKey;
break;
}
}
}
} }
operationNameLi = $("<li class='item list-unstyled rounded border mb-2' id = 'list_" + operationList[i].taskKey operationNameLi = $("<li class='item list-unstyled rounded border mb-2' id = 'list_" + operationList[i].taskKey
+ "'><a href=\"javascript:CHK_L.sendAppCommand('goOperation', '" + operationList[i].operationId + "', '" + operationList[i].contentId + "'><a href=\"javascript:CHK_L.sendAppCommand('goOperation', '" + operationList[i].operationId + "', '" + operationList[i].contentId
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment