Commit d4525ea9 by Kang Donghun

報告&定期点検連携作業の場合、PDF出力ボタン押すとアラート表示

parent 3fe481c1
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
if (result) { if (result) {
RL.isQuickReport = result.isQuickReport; RL.isQuickReport = result.isQuickReport;
RL.isQRTableInspect = result.isQRTableInspect; RL.isQRTableInspect = result.isQRTableInspect;
if (RL.isQRTableInspect) RL.isQuickReport = false;
}; };
}); });
RL.loadCommon(); RL.loadCommon();
...@@ -92,16 +91,21 @@ ...@@ -92,16 +91,21 @@
/** /**
* load main title callcack * load main title callcack
*/ */
RL.loadMainTitleCallback = function () { RL.loadMainTitleCallback = function () {
//add dashboard setting item //add dashboard setting item
if (RL.isQuickReport) { if (RL.isQuickReport) {
var elmA = $('<div id="btnPdfPrint" onclick="RL.goPdfPrint();">'); var elmA;
if (RL.isQRTableInspect) {
elmA = $('<div id="btnPdfPrint" onclick="COMMON.showAlert("errorOccurred");">');
} else {
elmA = $('<div id="btnPdfPrint" onclick="RL.goPdfPrint();">');
}
let elmImg = $('<img src="../common/img/icon_pdf.svg" alt="pdf出力" class="p-1 w-40px" data-toggle="tooltip" data-placement="bottom" title="pdfPrint">'); let elmImg = $('<img src="../common/img/icon_pdf.svg" alt="pdf出力" class="p-1 w-40px" data-toggle="tooltip" data-placement="bottom" title="pdfPrint">');
elmImg.attr('title', I18N.i18nText('reportList')); elmImg.attr('title', I18N.i18nText('reportList'));
elmA.append(elmImg); elmA.append(elmImg);
$('#mainTitleHeader').after(elmA); $('#mainTitleHeader').after(elmA);
} }
}; };
/** /**
* go pdf print * go pdf print
......
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