{"ScriptPreparationCode":null,"TestCases":[{"Name":"1","Code":"let tbody = document.getElementById(\u0027tbody\u0027);\r\nconst template = document.createElement(\u0022div\u0022);\r\ntemplate.className = \u0022table_row\u0022;\r\ntemplate.innerHTML = \u0022\u003Cdiv class=\u0027table_cell pv_index\u0027\u003E\u003C/div\u003E\u003Cdiv class=\u0027table_cell pv_entp\u0027\u003E\u003C/div\u003E\u003Cdiv class=\u0027table_cell pv_date\u0027\u003E\u003C/div\u003E\u003Cdiv class=\u0027table_cell pv_date\u0027\u003E\u003C/div\u003E\u003Cdiv class=\u0027table_cell pv_ivno\u0027\u003E\u003C/div\u003E\u003Cdiv class=\u0027table_cell pv_stts\u0027\u003E\u003Cspan class=\u0027tag\u0027\u003E\u003C/span\u003E\u003C/div\u003E\u003Cdiv class=\u0027table_cell pv_buyr\u0027\u003E\u003Cspan class=\u0027tooLong\u0027\u003E\u003C/span\u003E\u003C/div\u003E\u003Cdiv class=\u0027table_cell pv_name\u0027\u003E\u003Cspan class=\u0027tooLong\u0027\u003E\u003C/span\u003E\u003C/div\u003E\u003Cdiv class=\u0027table_cell pv_tota\u0027\u003E\u003C/div\u003E\u003Cdiv class=\u0027invoice_handle\u0027\u003E\u003C/div\u003E\u0022;\r\n\r\ntbody.innerHTML = \u0022\u0022;\r\n\r\n for (let x = 0; x \u003C 500; x \u002B= 1) {\r\n \tconst newRow = template.cloneNode(true);\r\n \tnewRow.children[0].textContent = \u0022data.INDEX\u0022;\r\n newRow.children[1].textContent = \u0022data.ENTERPRISE\u0022;\r\n newRow.children[2].textContent = \u0022data.DETAIL.ARISINGDATE\u0022;\r\n newRow.children[3].textContent = \u0022data.PUBLISHDATE\u0022;\r\n newRow.children[4].textContent = \u0022data.INVOICENO\u0022;\r\n newRow.children[5].firstChild.textContent = \u0022data.INVOICESTATUS\u0022;\r\n newRow.children[5].firstChild.className = \u0022data.TAXAUTHORITYSTATUS\u0022;\r\n newRow.children[6].firstChild.textContent = \u0022data.DETAIL.BUYER\u0022;\r\n newRow.children[7].firstChild.textContent = \u0022data.DETAIL.CUSNAME\u0022;\r\n newRow.children[8].textContent = \u0022data.DETAIL.SUM\u0022;\r\n\r\n newRow.dataset[\u0022EID\u0022] = \u0022data.EID\u0022;\r\n newRow.dataset[\u0022ID\u0022] = \u0022data.ID\u0022;\r\n newRow.dataset[\u0022VNPT_ID\u0022] = \u0022data.VNPT_ID\u0022;\r\n tbody.appendChild(newRow);\r\n }","IsDeferred":false},{"Name":"2","Code":"let tbody = document.getElementById(\u0027tbody\u0027);\r\nconst template = document.createElement(\u0022div\u0022);\r\ntemplate.className = \u0022table_row\u0022;\r\ntemplate.innerHTML = \u0022\u003Cdiv class=\u0027table_cell pv_index\u0027\u003E\u003C/div\u003E\u003Cdiv class=\u0027table_cell pv_entp\u0027\u003E\u003C/div\u003E\u003Cdiv class=\u0027table_cell pv_date\u0027\u003E\u003C/div\u003E\u003Cdiv class=\u0027table_cell pv_date\u0027\u003E\u003C/div\u003E\u003Cdiv class=\u0027table_cell pv_ivno\u0027\u003E\u003C/div\u003E\u003Cdiv class=\u0027table_cell pv_stts\u0027\u003E\u003Cspan class=\u0027tag\u0027\u003E\u003C/span\u003E\u003C/div\u003E\u003Cdiv class=\u0027table_cell pv_buyr\u0027\u003E\u003Cspan class=\u0027tooLong\u0027\u003E\u003C/span\u003E\u003C/div\u003E\u003Cdiv class=\u0027table_cell pv_name\u0027\u003E\u003Cspan class=\u0027tooLong\u0027\u003E\u003C/span\u003E\u003C/div\u003E\u003Cdiv class=\u0027table_cell pv_tota\u0027\u003E\u003C/div\u003E\u003Cdiv class=\u0027invoice_handle\u0027\u003E\u003C/div\u003E\u0022;\r\n\r\nconst docFragment = document.createDocumentFragment();\r\n\r\nfor (let x = 0; x \u003C 500; x \u002B= 1) {\r\n\t\tconst newRow = template.cloneNode(true);\r\n\t\tnewRow.children[0].textContent = \u0022data.INDEX\u0022;\r\n newRow.children[1].textContent = \u0022data.ENTERPRISE\u0022;\r\n newRow.children[2].textContent = \u0022data.DETAIL.ARISINGDATE\u0022;\r\n newRow.children[3].textContent = \u0022data.PUBLISHDATE\u0022;\r\n newRow.children[4].textContent = \u0022data.INVOICENO\u0022;\r\n newRow.children[5].firstChild.textContent = \u0022data.INVOICESTATUS\u0022;\r\n newRow.children[5].firstChild.className = \u0022data.TAXAUTHORITYSTATUS\u0022;\r\n newRow.children[6].firstChild.textContent = \u0022data.DETAIL.BUYER\u0022;\r\n newRow.children[7].firstChild.textContent = \u0022data.DETAIL.CUSNAME\u0022;\r\n newRow.children[8].textContent = \u0022data.DETAIL.SUM\u0022;\r\n\r\n newRow.dataset[\u0022EID\u0022] = \u0022data.EID\u0022;\r\n newRow.dataset[\u0022ID\u0022] = \u0022data.ID\u0022;\r\n newRow.dataset[\u0022VNPT_ID\u0022] = \u0022data.VNPT_ID\u0022\r\n docFragment.appendChild(newRow);\r\n }\r\n\r\n tbody.replaceChildren(docFragment);","IsDeferred":false}]}