2021-04-15 19:12:01 +08:00
|
|
|
/* global I18n DataTableHelpers animateSpinner HelperModule Promise */
|
2021-03-17 19:54:25 +08:00
|
|
|
|
2021-04-14 20:40:13 +08:00
|
|
|
(function() {
|
2018-04-18 22:47:52 +08:00
|
|
|
'use strict';
|
|
|
|
|
2021-04-14 20:40:13 +08:00
|
|
|
const RETRY_COUNT = 25;
|
|
|
|
const START_POLLING_INTERVAL = 10000;
|
2018-04-18 22:47:52 +08:00
|
|
|
var CHECKED_REPORTS = [];
|
2021-05-06 20:22:02 +08:00
|
|
|
var REPORTS_TABLE;
|
2018-04-18 22:47:52 +08:00
|
|
|
|
|
|
|
function tableDrowCallback() {
|
|
|
|
checkboxToggleCallback();
|
|
|
|
initToggleAllCheckboxes();
|
|
|
|
updateButtons();
|
|
|
|
}
|
|
|
|
|
|
|
|
function appendSearchResults(data) {
|
|
|
|
var items = [];
|
2021-04-14 20:40:13 +08:00
|
|
|
if (data.hasOwnProperty('projects')) {
|
2018-04-18 22:47:52 +08:00
|
|
|
$.each(data.projects, function(index, el) {
|
|
|
|
items.push(
|
|
|
|
{
|
2021-04-14 20:40:13 +08:00
|
|
|
value: el.path,
|
|
|
|
text: el.name,
|
|
|
|
disabled: false
|
2018-04-18 22:47:52 +08:00
|
|
|
}
|
|
|
|
)
|
|
|
|
});
|
|
|
|
}
|
|
|
|
return items;
|
|
|
|
}
|
|
|
|
|
|
|
|
function initToggleAllCheckboxes() {
|
|
|
|
$('input[name="select_all"]').change(function() {
|
2021-04-14 20:40:13 +08:00
|
|
|
if ($(this).is(':checked')) {
|
2018-04-18 22:47:52 +08:00
|
|
|
$("[data-action='toggle']").prop('checked', true);
|
2020-11-10 22:15:18 +08:00
|
|
|
$('.report-row').addClass('selected');
|
2018-04-18 22:47:52 +08:00
|
|
|
addAllItems();
|
|
|
|
} else {
|
|
|
|
$("[data-action='toggle']").prop('checked', false);
|
2020-11-10 22:15:18 +08:00
|
|
|
$('.report-row').removeClass('selected');
|
2018-04-18 22:47:52 +08:00
|
|
|
removeAllItems();
|
|
|
|
}
|
|
|
|
updateButtons();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function addAllItems() {
|
|
|
|
$.each($("[data-action='toggle']"), function(i, el) {
|
2021-04-14 20:40:13 +08:00
|
|
|
CHECKED_REPORTS.push($(el).data('report-id'));
|
2018-04-18 22:47:52 +08:00
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
function removeAllItems() {
|
|
|
|
CHECKED_REPORTS = [];
|
|
|
|
}
|
|
|
|
|
|
|
|
function renderCheckboxHTML(data) {
|
2020-10-22 22:37:59 +08:00
|
|
|
return `<div class="sci-checkbox-container">
|
|
|
|
<input type="checkbox" class="sci-checkbox" data-action='toggle' data-report-id="${data}">
|
|
|
|
<span class="sci-checkbox-label"></span>
|
|
|
|
</div>`;
|
2018-04-18 22:47:52 +08:00
|
|
|
}
|
|
|
|
|
2021-03-17 19:54:25 +08:00
|
|
|
function renderDocxFile(data) {
|
|
|
|
if (data.error) {
|
2021-05-11 19:28:28 +08:00
|
|
|
let oldLink = '';
|
|
|
|
if (data.preview_url) {
|
|
|
|
oldLink = `<a href="#" class="file-preview-link docx" data-preview-url="${data.preview_url}">
|
|
|
|
(<i class="fas fa-file-docx"></i>
|
|
|
|
${I18n.t('projects.reports.index.previous_docx')})
|
|
|
|
</a>`;
|
|
|
|
}
|
2021-06-14 18:27:25 +08:00
|
|
|
return `<span class="processing-error docx">
|
2021-03-17 19:54:25 +08:00
|
|
|
<i class="fas fa-exclamation-triangle"></i>
|
2021-05-11 19:28:28 +08:00
|
|
|
${I18n.t('projects.reports.index.error')}${oldLink}
|
2021-03-17 19:54:25 +08:00
|
|
|
</span>`;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (data.processing) {
|
|
|
|
return `<span class="processing docx">
|
|
|
|
${I18n.t('projects.reports.index.generating')}
|
|
|
|
</span>`;
|
|
|
|
}
|
|
|
|
|
2021-03-23 22:20:40 +08:00
|
|
|
if (data.preview_url) {
|
2021-04-15 19:12:01 +08:00
|
|
|
return `<a href="#" class="file-preview-link docx" data-preview-url="${data.preview_url}">
|
2021-03-17 19:54:25 +08:00
|
|
|
<i class="fas fa-file-word"></i>
|
|
|
|
${I18n.t('projects.reports.index.docx')}
|
|
|
|
</a>`;
|
|
|
|
}
|
2021-05-17 18:02:20 +08:00
|
|
|
return `<a href="#" class="generate-docx docx">${I18n.t('projects.reports.index.generate')}</a>`;
|
2021-03-17 19:54:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
function renderPdfFile(data) {
|
|
|
|
if (data.error) {
|
2021-05-11 19:28:28 +08:00
|
|
|
let oldLink = '';
|
|
|
|
if (data.preview_url) {
|
|
|
|
oldLink = `<a href="#" class="file-preview-link pdf" data-preview-url="${data.preview_url}">
|
|
|
|
(<i class="fas fa-file-pdf"></i>
|
|
|
|
${I18n.t('projects.reports.index.previous_pdf')})
|
|
|
|
</a>`;
|
|
|
|
}
|
2021-06-17 15:51:25 +08:00
|
|
|
return `<span class="processing-error pdf">
|
2021-03-17 19:54:25 +08:00
|
|
|
<i class="fas fa-exclamation-triangle"></i>
|
2021-05-11 19:28:28 +08:00
|
|
|
${I18n.t('projects.reports.index.error')}${oldLink}
|
2021-03-17 19:54:25 +08:00
|
|
|
</span>`;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (data.processing) {
|
|
|
|
return `<span class="processing pdf">
|
|
|
|
${I18n.t('projects.reports.index.generating')}
|
|
|
|
</span>`;
|
|
|
|
}
|
|
|
|
|
2021-03-23 22:20:40 +08:00
|
|
|
if (data.preview_url) {
|
2021-04-15 19:12:01 +08:00
|
|
|
return `<a href="#" class="file-preview-link pdf" data-preview-url="${data.preview_url}">
|
2021-03-17 19:54:25 +08:00
|
|
|
<i class="fas fa-file-pdf"></i>
|
|
|
|
${I18n.t('projects.reports.index.pdf')}
|
|
|
|
</a>`;
|
|
|
|
}
|
|
|
|
|
2021-05-27 20:55:27 +08:00
|
|
|
return `<a href="#" class="generate-pdf pdf">${I18n.t('projects.reports.index.generate')}</a>`;
|
2021-03-17 19:54:25 +08:00
|
|
|
}
|
|
|
|
|
2021-04-14 20:40:13 +08:00
|
|
|
function addAttributesToRow(row, data) {
|
2018-04-18 22:47:52 +08:00
|
|
|
$(row).addClass('report-row')
|
2021-04-14 20:40:13 +08:00
|
|
|
.attr('data-edit-path', data.edit)
|
|
|
|
.attr('data-status-path', data.status)
|
2021-04-14 21:45:51 +08:00
|
|
|
.attr('data-generate-pdf-path', data.generate_pdf)
|
|
|
|
.attr('data-generate-docx-path', data.generate_docx)
|
2021-04-14 20:40:13 +08:00
|
|
|
.attr('data-retry-count', 0)
|
2021-04-13 22:36:52 +08:00
|
|
|
.attr('data-save-to-inventory-path', data.save_to_inventory)
|
2021-04-14 20:40:13 +08:00
|
|
|
.attr('data-id', data['0']);
|
2021-05-28 22:17:20 +08:00
|
|
|
if (data.archived) {
|
|
|
|
$(row).addClass('archived');
|
|
|
|
}
|
2021-04-14 20:40:13 +08:00
|
|
|
if (data['3'].processing || data['4'].processing) {
|
|
|
|
$(row).addClass('processing');
|
|
|
|
}
|
2018-04-18 22:47:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
function checkboxToggleCallback() {
|
|
|
|
$("[data-action='toggle']").change(function() {
|
2021-04-14 20:40:13 +08:00
|
|
|
var id = $(this).data('report-id');
|
|
|
|
if ($(this).is(':checked')) {
|
2020-11-10 22:15:18 +08:00
|
|
|
$(this).closest('.report-row').addClass('selected');
|
2018-04-18 22:47:52 +08:00
|
|
|
CHECKED_REPORTS.push(id);
|
|
|
|
} else {
|
2021-04-14 20:40:13 +08:00
|
|
|
let index = CHECKED_REPORTS.indexOf(id);
|
2020-11-10 22:15:18 +08:00
|
|
|
$(this).closest('.report-row').removeClass('selected');
|
2021-04-14 20:40:13 +08:00
|
|
|
if (index !== -1) {
|
|
|
|
CHECKED_REPORTS.splice(index, 1);
|
2018-04-18 22:47:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
updateButtons();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function updateButtons() {
|
|
|
|
if (CHECKED_REPORTS.length === 0) {
|
2021-03-17 19:54:25 +08:00
|
|
|
$('.single-object-action, .multiple-object-action').addClass('disabled hidden');
|
2018-04-18 22:47:52 +08:00
|
|
|
} else if (CHECKED_REPORTS.length === 1) {
|
2021-03-17 19:54:25 +08:00
|
|
|
$('.single-object-action, .multiple-object-action').removeClass('disabled hidden');
|
|
|
|
|
|
|
|
let $row = $(`.report-row[data-id=${CHECKED_REPORTS[0]}]`);
|
2021-05-28 22:17:20 +08:00
|
|
|
let archived = $row.hasClass('archived');
|
2021-03-17 19:54:25 +08:00
|
|
|
let pdfProcessing = $row.has('.processing.pdf').length > 0;
|
|
|
|
let docxProcessing = $row.has('.processing.docx').length > 0;
|
|
|
|
let docxGenerate = $row.has('.generate-docx').length > 0;
|
|
|
|
|
|
|
|
if (pdfProcessing) {
|
|
|
|
$('#updatePdf').addClass('disabled');
|
|
|
|
} else {
|
|
|
|
$('#updatePdf').removeClass('disabled');
|
|
|
|
}
|
|
|
|
|
|
|
|
if (docxGenerate) {
|
|
|
|
$('#requestDocx').removeClass('hidden');
|
|
|
|
$('#updateDocx').addClass('hidden');
|
|
|
|
} else {
|
|
|
|
$('#requestDocx').addClass('hidden');
|
|
|
|
$('#updateDocx').removeClass('hidden');
|
|
|
|
|
|
|
|
if (docxProcessing) {
|
|
|
|
$('#updateDocx').addClass('disabled');
|
|
|
|
} else {
|
|
|
|
$('#updateDocx').removeClass('disabled');
|
|
|
|
}
|
|
|
|
}
|
2021-05-20 19:39:27 +08:00
|
|
|
|
2021-05-28 22:17:20 +08:00
|
|
|
if (archived || pdfProcessing || docxProcessing) {
|
2021-05-20 19:39:27 +08:00
|
|
|
$('#edit-report-btn').addClass('disabled');
|
|
|
|
} else {
|
|
|
|
$('#edit-report-btn').removeClass('disabled');
|
|
|
|
}
|
2018-04-18 22:47:52 +08:00
|
|
|
} else {
|
2021-03-17 19:54:25 +08:00
|
|
|
$('.single-object-action').removeClass('hidden').addClass('disabled');
|
|
|
|
$('.multiple-object-action').removeClass('disabled hidden');
|
2018-04-18 22:47:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-14 20:40:13 +08:00
|
|
|
function checkProcessingStatus(reportId) {
|
|
|
|
let $row = $('#reports-table').find(`tr[data-id="${reportId}"]`);
|
|
|
|
if ($row.length === 0) return;
|
|
|
|
|
|
|
|
$.getJSON($row.data('status-path'), (statusData) => {
|
|
|
|
$row.find('.docx').parent().html(renderDocxFile(statusData.docx));
|
|
|
|
$row.find('.pdf').parent().html(renderPdfFile(statusData.pdf));
|
|
|
|
|
|
|
|
if (statusData.docx.processing || statusData.pdf.processing) {
|
|
|
|
if ($row.data('retry-count') >= RETRY_COUNT) return;
|
|
|
|
|
|
|
|
$row.data('retry-count', $row.data('retry-count') + 1);
|
|
|
|
setTimeout(() => { checkProcessingStatus(reportId); }, START_POLLING_INTERVAL * $row.data('retry-count'));
|
|
|
|
} else {
|
|
|
|
$row.removeClass('processing');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2018-04-18 22:47:52 +08:00
|
|
|
// INIT
|
|
|
|
|
|
|
|
function initDatatable() {
|
2021-04-14 20:40:13 +08:00
|
|
|
var $table = $('#reports-table');
|
2021-05-06 20:22:02 +08:00
|
|
|
REPORTS_TABLE = $table.DataTable({
|
2021-03-16 20:11:15 +08:00
|
|
|
dom: "Rt<'pagination-row hidden'<'pagination-info'li><'pagination-actions'p>>",
|
2021-05-12 03:30:58 +08:00
|
|
|
order: [[8, 'desc']],
|
2021-03-16 20:11:15 +08:00
|
|
|
sScrollX: '100%',
|
|
|
|
sScrollXInner: '100%',
|
|
|
|
processing: true,
|
|
|
|
serverSide: true,
|
|
|
|
ajax: $table.data('source'),
|
|
|
|
pagingType: 'simple_numbers',
|
|
|
|
colReorder: {
|
|
|
|
fixedColumnsLeft: 1000000 // Disable reordering
|
2018-04-18 22:47:52 +08:00
|
|
|
},
|
2021-03-16 20:11:15 +08:00
|
|
|
columnDefs: [{
|
|
|
|
targets: 0,
|
|
|
|
searchable: false,
|
|
|
|
orderable: false,
|
|
|
|
className: 'dt-body-center',
|
|
|
|
sWidth: '1%',
|
|
|
|
render: renderCheckboxHTML
|
2021-03-17 19:54:25 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
targets: 3,
|
|
|
|
searchable: false,
|
|
|
|
sWidth: '60',
|
|
|
|
render: renderPdfFile
|
|
|
|
},
|
|
|
|
{
|
|
|
|
targets: 4,
|
|
|
|
searchable: false,
|
|
|
|
sWidth: '60',
|
|
|
|
render: renderDocxFile
|
2018-04-18 22:47:52 +08:00
|
|
|
}],
|
2021-03-16 20:11:15 +08:00
|
|
|
oLanguage: {
|
|
|
|
sSearch: I18n.t('general.filter')
|
2018-05-08 22:33:42 +08:00
|
|
|
},
|
2021-03-16 20:11:15 +08:00
|
|
|
fnDrawCallback: tableDrowCallback,
|
2021-04-14 20:40:13 +08:00
|
|
|
createdRow: addAttributesToRow,
|
2021-03-16 20:11:15 +08:00
|
|
|
fnInitComplete: function() {
|
|
|
|
DataTableHelpers.initLengthApearance($table.closest('.dataTables_wrapper'));
|
|
|
|
$('.pagination-row').removeClass('hidden');
|
2021-04-14 20:40:13 +08:00
|
|
|
$('.report-row.processing').each(function() {
|
|
|
|
setTimeout(() => { checkProcessingStatus($(this).data('id')); }, START_POLLING_INTERVAL);
|
|
|
|
});
|
2021-03-16 20:11:15 +08:00
|
|
|
}
|
2018-04-18 22:47:52 +08:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2021-05-06 20:22:02 +08:00
|
|
|
function reloadTable() {
|
|
|
|
REPORTS_TABLE.ajax.reload(null, false);
|
|
|
|
removeAllItems();
|
|
|
|
updateButtons();
|
|
|
|
}
|
|
|
|
|
2021-05-14 02:27:09 +08:00
|
|
|
function generateReportRequest(pathAttrName, id) {
|
|
|
|
if (CHECKED_REPORTS.length === 1 || id) {
|
|
|
|
let row = $(".report-row[data-id='" + (id || CHECKED_REPORTS[0]) + "']");
|
2021-04-15 19:12:01 +08:00
|
|
|
animateSpinner();
|
|
|
|
$.post(row.data(pathAttrName), function(response) {
|
|
|
|
animateSpinner(null, false);
|
|
|
|
HelperModule.flashAlertMsg(response.message, 'success');
|
|
|
|
checkProcessingStatus(row.data('id'));
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function initUpdatePDFReport() {
|
|
|
|
$('#updatePdf').click(function(ev) {
|
2021-04-14 21:45:51 +08:00
|
|
|
ev.stopPropagation();
|
|
|
|
ev.preventDefault();
|
2021-04-15 19:12:01 +08:00
|
|
|
|
|
|
|
new Promise(function(resolve, reject) {
|
|
|
|
$('#regenerate-report-modal').modal('show');
|
|
|
|
$('#regenerate-report-modal .btn-confirm').click(function() {
|
|
|
|
resolve();
|
2021-04-14 21:45:51 +08:00
|
|
|
});
|
2021-04-15 19:12:01 +08:00
|
|
|
$('#regenerate-report-modal').on('hidden.bs.modal', function() {
|
|
|
|
reject();
|
|
|
|
});
|
|
|
|
}).then(function() {
|
|
|
|
$('#regenerate-report-modal').modal('hide');
|
|
|
|
generateReportRequest('generate-pdf-path');
|
|
|
|
}).catch(function() {});
|
2021-04-14 21:45:51 +08:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function initGenerateDocxReport() {
|
2021-04-15 19:12:01 +08:00
|
|
|
$('#requestDocx').click(function(ev) {
|
2021-04-14 21:45:51 +08:00
|
|
|
ev.stopPropagation();
|
|
|
|
ev.preventDefault();
|
2021-05-21 20:55:11 +08:00
|
|
|
$(this).closest('.dropdown-menu').dropdown('toggle');
|
2021-04-15 19:12:01 +08:00
|
|
|
generateReportRequest('generate-docx-path');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function initUpdateDocxReport() {
|
|
|
|
$('#updateDocx').click(function(ev) {
|
|
|
|
ev.stopPropagation();
|
|
|
|
ev.preventDefault();
|
|
|
|
|
|
|
|
new Promise(function(resolve, reject) {
|
|
|
|
$('#regenerate-report-modal').modal('show');
|
|
|
|
$('#regenerate-report-modal .btn-confirm').click(function() {
|
|
|
|
resolve();
|
2021-04-14 21:45:51 +08:00
|
|
|
});
|
2021-04-15 19:12:01 +08:00
|
|
|
$('#regenerate-report-modal').on('hidden.bs.modal', function() {
|
|
|
|
reject();
|
|
|
|
});
|
|
|
|
}).then(function() {
|
|
|
|
$('#regenerate-report-modal').modal('hide');
|
|
|
|
generateReportRequest('generate-docx-path');
|
|
|
|
}).catch(function() {});
|
2021-04-14 21:45:51 +08:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2018-04-18 22:47:52 +08:00
|
|
|
function initEditReport() {
|
|
|
|
$('#edit-report-btn').click(function(e) {
|
|
|
|
e.preventDefault();
|
|
|
|
animateSpinner();
|
|
|
|
if (CHECKED_REPORTS.length === 1) {
|
2021-04-14 20:40:13 +08:00
|
|
|
let id = CHECKED_REPORTS[0];
|
|
|
|
let row = $(".report-row[data-id='" + id + "']");
|
|
|
|
let url = row.attr('data-edit-path');
|
2018-04-18 22:47:52 +08:00
|
|
|
$(location).attr('href', url);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2021-04-13 22:36:52 +08:00
|
|
|
function initSaveReportPDFToInventory() {
|
|
|
|
$('#savePdfToInventoryButton').click(function(ev) {
|
|
|
|
ev.preventDefault();
|
|
|
|
ev.stopPropagation();
|
|
|
|
|
|
|
|
let id = CHECKED_REPORTS[0];
|
|
|
|
let row = $(`.report-row[data-id='${id}']`);
|
|
|
|
let url = row.attr('data-save-to-inventory-path');
|
|
|
|
$.get(url, function(result) {
|
|
|
|
let modal = $(result.html);
|
|
|
|
$('#content-reports-index').append(modal);
|
|
|
|
modal.modal('show');
|
|
|
|
// Remove modal when it gets closed
|
|
|
|
modal.on('hidden.bs.modal', function() {
|
|
|
|
$(this).remove();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2018-04-18 22:47:52 +08:00
|
|
|
function initDeleteReports() {
|
2021-04-14 20:40:13 +08:00
|
|
|
$('#delete-reports-btn').click(function() {
|
2018-04-18 22:47:52 +08:00
|
|
|
if (CHECKED_REPORTS.length > 0) {
|
2021-04-14 20:40:13 +08:00
|
|
|
$('#report-ids').attr('value', '[' + CHECKED_REPORTS + ']');
|
|
|
|
$('#delete-reports-modal').modal('show');
|
2018-04-18 22:47:52 +08:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2021-04-14 20:40:13 +08:00
|
|
|
$('#confirm-delete-reports-btn').click(function() {
|
2018-04-18 22:47:52 +08:00
|
|
|
animateLoading();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2021-05-14 02:27:09 +08:00
|
|
|
|
2021-05-18 23:00:30 +08:00
|
|
|
$('.reports-index').on('keyup', '.report-search', function() {
|
2021-05-14 03:41:26 +08:00
|
|
|
REPORTS_TABLE.search($(this).val()).draw();
|
|
|
|
});
|
|
|
|
|
2021-05-14 02:27:09 +08:00
|
|
|
$('.reports-index').on('click', '.generate-docx', function(e) {
|
|
|
|
var reportId = $(this).closest('.report-row').attr('data-id');
|
|
|
|
e.preventDefault();
|
|
|
|
e.stopPropagation();
|
|
|
|
generateReportRequest('generate-docx-path', reportId);
|
|
|
|
});
|
|
|
|
|
2021-05-27 20:55:27 +08:00
|
|
|
$('.reports-index').on('click', '.generate-pdf', function(e) {
|
|
|
|
var reportId = $(this).closest('.report-row').attr('data-id');
|
|
|
|
e.preventDefault();
|
|
|
|
e.stopPropagation();
|
|
|
|
generateReportRequest('generate-pdf-path', reportId);
|
|
|
|
});
|
|
|
|
|
2021-05-06 20:00:33 +08:00
|
|
|
$('#show_report_preview').click();
|
|
|
|
|
2018-07-19 23:56:42 +08:00
|
|
|
initDatatable();
|
2021-04-15 19:12:01 +08:00
|
|
|
initUpdatePDFReport();
|
2021-04-14 21:45:51 +08:00
|
|
|
initGenerateDocxReport();
|
2021-04-15 19:12:01 +08:00
|
|
|
initUpdateDocxReport();
|
2018-07-19 23:56:42 +08:00
|
|
|
initEditReport();
|
2021-04-13 22:36:52 +08:00
|
|
|
initSaveReportPDFToInventory();
|
2018-07-19 23:56:42 +08:00
|
|
|
initDeleteReports();
|
2021-04-14 20:40:13 +08:00
|
|
|
}());
|