รวม code การแก้บัก จากทีม

This commit is contained in:
Nakorn Rientrakrunchai
2020-04-14 23:48:40 +07:00
parent b3c7cd12d8
commit 5aff3ddb9d
11 changed files with 92 additions and 69 deletions

View File

@@ -1,10 +1,19 @@
var rep_eva01_API = "/api/rep_eva01/";
function array_to_string_comma(a){
var x = "";
$.each(a, function( index, value ) {
if(x !== "") x+=",";
x+=value;
});
return x;
}
//================= Search Customizaiton =========================================
function rep_eva01_GetSearchParameter(fileType) {
var rep_eva01SearchObject = new Object();
rep_eva01SearchObject.org_id = $("#s_rep_eva01_org_id").val();
rep_eva01SearchObject.org_id = array_to_string_comma($("#s_rep_eva01_org_id").val());
rep_eva01SearchObject.round_id = $("#s_rep_eva01_round_id").val();
@@ -48,6 +57,8 @@ function rep_eva01_DoSearch(fileType) {
var report_url = apisite + "/api/rep_eva01/rep_eva01_report?" + p;
console.log(report_url);
if (fileType === "pdf") {
$("#report_result").attr("src", report_url);
$("#report_result").show();