ทำหน้า font ให้แสดง report jasper และ เขียน api controller ให้แสดง report และ ทำ class model รับ parameter จาก font
This commit is contained in:
@@ -180,3 +180,33 @@ function CalculateRemainQuota(m) {
|
||||
}
|
||||
|
||||
|
||||
// ================================================= report rep_eva_savemessage ==================================================
|
||||
|
||||
function rep_eva_savemessage_GetSearchParameter(fileType) {
|
||||
var eva_adjust_postponement_quotaObject = new Object();
|
||||
eva_adjust_postponement_quotaObject.quota_id = $("#eva_adjust_postponement_quota_id").val();
|
||||
|
||||
eva_adjust_postponement_quotaObject.fileType = fileType;
|
||||
|
||||
return eva_adjust_postponement_quotaObject;
|
||||
}
|
||||
|
||||
function rep_eva_savemessage_DoSearch(fileType) {
|
||||
if (!ValidateForm('eva_adjust_postponement_quota', eva_adjust_postponement_quota_customValidation)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var p = $.param(rep_eva_savemessage_GetSearchParameter(fileType));
|
||||
|
||||
var report_url = apisite + eva_adjust_postponement_quota_API + "rep_eva_savemessage?" + p;
|
||||
|
||||
if (fileType === "pdf") {
|
||||
$("#report_result").attr("src", report_url);
|
||||
$("#report_result").show();
|
||||
$("#report_xModel").modal("show");
|
||||
} else {
|
||||
$("#report_result").hide();
|
||||
window.open(report_url);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user