Commit 5c63b92d by NGO THI HONG

#49882 update sort new report list

parent e6f25fa5
......@@ -43,15 +43,7 @@ CHK_pu.init = function() {
}
CHK_pu.initOperationList = function(operationList) {
operationList = operationList.sort(function(a,b) {
if (a.operationId < b.operationId) return 1;
if (a.operationId > b.operationId) return -1;
return 0;
});
CHK_pu.createNewReportList(operationList);
CHK_pu.createContinousWorkList(operationList);
CHK_pu.createReportWithWarning(operationList);
......@@ -134,8 +126,16 @@ CHK_pu.setCountElementInPickup = function() {
$("#count-ReportWithWarning")[0].innerHTML = CHK_pu.countReportWithWarning;
}
}
CHK_pu.createNewReportList = function(operationList, isSearched = false) {
CHK_pu.sortNewReportList = function(operationList) {
operationList = operationList.sort(function(a,b) {
if (a.operationId < b.operationId) return 1;
if (a.operationId > b.operationId) return -1;
return 0;
});
return operationList;
}
CHK_pu.createNewReportList = function(operationListOld, isSearched = false) {
var operationList = CHK_pu.sortContinousWorkList(operationListOld);
$("#newReport-list").empty();
CHK_pu.countNewReportList = 0;
......
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