사전통보서 출력화면 수정

main
이범준 11 months ago
parent 413c0ae4de
commit 67fc9d83bb

@ -8,7 +8,8 @@
<div class="row mb-3 justify-content-start">
<div class="col-md-12">
<div class="float-start">
<button type="button" id="btnPrintAdvntcePdf--${pageName}" class="btn btn-info">사전통보서출력(PDF)</button>
<button type="button" id="btnPrintAdvntcePdf01--${pageName}" class="btn btn-info">사전통보서출력(PDF-A4)</button>
<button type="button" id="btnPrintAdvntcePdf02--${pageName}" class="btn btn-info">사전통보서출력(PDF-Letter)</button>
<button type="button" id="btnPrintAdvntceOutsourcing--${pageName}" class="btn btn-info">사전통보서출력(외주파일)</button>
<button type="button" id="btnOpenOtptStng--${pageName}" class="btn btn-primary">설정</button>
</div>
@ -107,7 +108,7 @@ $(document).ready(function(){
ff.set(info);
}
$P.fnMakeFile = (fileType) => {
$P.fnMakeFile = (fileType, paper) => {
if(!customValidate($("#frmEdit--${pageName} input"))) return;
if(!$P.provided.isAllSameTask($P.crdnIds)){
@ -133,8 +134,8 @@ $(document).ready(function(){
crdnIds : $P.crdnIds.join(","),
taskSeCd : taskSeCd
};
if(fileType == "pdf" || fileType == "preview"){
submitParam.paperSeCd = "01";
if(fileType == "pdf"){
submitParam.paperSeCd = paper;
}
ajax.post({
@ -195,7 +196,8 @@ $(document).ready(function(){
}
//버튼이벤트
$("#btnPrintAdvntcePdf--${pageName}").on("click", () => $P.fnMakeFile('pdf') );
$("#btnPrintAdvntcePdf01--${pageName}").on("click", () => $P.fnMakeFile('pdf','01') );
$("#btnPrintAdvntcePdf02--${pageName}").on("click", () => $P.fnMakeFile('pdf','02') );
$("#btnPrintAdvntceOutsourcing--${pageName}").on("click", () => $P.fnMakeFile('outsourcing') );
$("#btnOpenOtptStng--${pageName}").on("click", () => $P.fnOpenOtptStng() );

Loading…
Cancel
Save