|
|
@ -14,7 +14,14 @@
|
|
|
|
<!-- hidden -->
|
|
|
|
<!-- hidden -->
|
|
|
|
<input type="hidden" name="dscdmngId" data-map="dscdmngId" />
|
|
|
|
<input type="hidden" name="dscdmngId" data-map="dscdmngId" />
|
|
|
|
<input type="hidden" name="prgrsSttsCd" data-map="prgrsSttsCd" />
|
|
|
|
<input type="hidden" name="prgrsSttsCd" data-map="prgrsSttsCd" />
|
|
|
|
<input type="hidden" name="bsshCd" data-map="bsshCd"/>
|
|
|
|
|
|
|
|
|
|
|
|
<input type="hidden" name="indutyNm" data-map="indutyNm"/>
|
|
|
|
|
|
|
|
<input type="hidden" name="hdntCd" data-map="hdntCd"/>
|
|
|
|
|
|
|
|
<input type="hidden" name="hdntNm" data-map="hdntNm"/>
|
|
|
|
|
|
|
|
<input type="hidden" name="chrgNm" data-map="chrgNm"/>
|
|
|
|
|
|
|
|
<input type="hidden" name="hptlNo" data-map="hptlNo"/>
|
|
|
|
|
|
|
|
<input type="hidden" name="joinYn" data-map="joinYn"/>
|
|
|
|
|
|
|
|
<input type="hidden" name="bsshSttusNm" data-map="bsshSttusNm"/>
|
|
|
|
<label for="bssh--${pageName}" style="margin-top: 10px; padding-left: 20px;"><strong>취급 업체 정보</strong></label>
|
|
|
|
<label for="bssh--${pageName}" style="margin-top: 10px; padding-left: 20px;"><strong>취급 업체 정보</strong></label>
|
|
|
|
<div class="row my-1 mx-4 g-1 border-card rounded-3">
|
|
|
|
<div class="row my-1 mx-4 g-1 border-card rounded-3">
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="col-md-4">
|
|
|
@ -55,12 +62,19 @@
|
|
|
|
<div class="row my-1 mx-1 g-1 border-card rounded"></div>
|
|
|
|
<div class="row my-1 mx-1 g-1 border-card rounded"></div>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
<form id="product--${pageName}" name="product">
|
|
|
|
<form id="product--${pageName}" name="product">
|
|
|
|
|
|
|
|
<input type="hidden" name="prdlstMstCd" data-map="prdlstMstCd"/>
|
|
|
|
|
|
|
|
<input type="hidden" name="nrcdSeNm" data-map="nrcdSeNm"/>
|
|
|
|
|
|
|
|
<input type="hidden" name="prtmSeNm" data-map="prtmSeNm"/>
|
|
|
|
|
|
|
|
<input type="hidden" name="bsshCd" data-map="bsshCd"/>
|
|
|
|
|
|
|
|
<input type="hidden" name="rgsDt" data-map="rgsDt"/>
|
|
|
|
|
|
|
|
<input type="hidden" name="updDt" data-map="updDt"/>
|
|
|
|
|
|
|
|
|
|
|
|
<label for="product--${pageName}" style="margin-top: 10px; padding-left: 20px;"><strong>폐기 제품 정보</strong></label>
|
|
|
|
<label for="product--${pageName}" style="margin-top: 10px; padding-left: 20px;"><strong>폐기 제품 정보</strong></label>
|
|
|
|
<div class="row my-1 mx-4 g-1 border-card rounded-3">
|
|
|
|
<div class="row my-1 mx-4 g-1 border-card rounded-3">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<label for="prductNm--${pageName}" class="w-px-100 bg-lighter pe-2 col-form-label text-sm-end">제품명</label>
|
|
|
|
<label for="prductNm--${pageName}" class="w-px-100 bg-lighter pe-2 col-form-label text-sm-end">제품명</label>
|
|
|
|
<input type="text" class="form-control w-75" id="prductNm--${pageName}" name="prductNm" data-map="prductNm" readonly>
|
|
|
|
<input type="text" class="form-control w-75" id="prductNm--${pageName}" name="prductNm" data-map="prductNm" readonly>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<label for="prductCd--${pageName}" class="w-px-100 bg-lighter pe-2 col-form-label text-sm-end">제품코드</label>
|
|
|
|
<label for="prductCd--${pageName}" class="w-px-100 bg-lighter pe-2 col-form-label text-sm-end">제품코드</label>
|
|
|
|
<input type="text" class="form-control w-px-140" id="prductCd--${pageName}" name="prductCd" data-map="prductCd" readonly>
|
|
|
|
<input type="text" class="form-control w-px-140" id="prductCd--${pageName}" name="prductCd" data-map="prductCd" readonly>
|
|
|
@ -201,6 +215,12 @@
|
|
|
|
mnfNo: prdInfo.mnfSeqInfos[0].mnfNo,
|
|
|
|
mnfNo: prdInfo.mnfSeqInfos[0].mnfNo,
|
|
|
|
mnfSeq: prdInfo.mnfSeqInfos[0].mnfSeq,
|
|
|
|
mnfSeq: prdInfo.mnfSeqInfos[0].mnfSeq,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
prdlstMstCd: prdInfo.prdlstMstCd,
|
|
|
|
|
|
|
|
nrcdSeNm: prdInfo.nrcdSeNm,
|
|
|
|
|
|
|
|
prtmSeNm: prdInfo.prtmSeNm,
|
|
|
|
|
|
|
|
bsshCd: prdInfo.bsshCd,
|
|
|
|
|
|
|
|
rgsDt: prdInfo.rgsDt,
|
|
|
|
|
|
|
|
updDt: prdInfo.updDt
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|
|
|
|
);
|
|
|
|
$("#prductCd--${pageName}").prop("readonly", true);
|
|
|
|
$("#prductCd--${pageName}").prop("readonly", true);
|
|
|
@ -278,7 +298,7 @@
|
|
|
|
if($("input[name='prgrsSttsCd']").val() == '99') {
|
|
|
|
if($("input[name='prgrsSttsCd']").val() == '99') {
|
|
|
|
$("#btnSave--${pageName}").prop("disabled", true);
|
|
|
|
$("#btnSave--${pageName}").prop("disabled", true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let checkData = item.data.dsusePrvCd;
|
|
|
|
let checkData = item.data.dsusePrvCd;
|
|
|
|
if (checkData =="01" || checkData =="02") {
|
|
|
|
if (checkData =="01" || checkData =="02") {
|
|
|
|
$("#dsuseAcdtDe--${pageName}").prop('disabled', false);
|
|
|
|
$("#dsuseAcdtDe--${pageName}").prop('disabled', false);
|
|
|
@ -287,7 +307,7 @@
|
|
|
|
$("#dsuseAcdtDe--${pageName}").val("");
|
|
|
|
$("#dsuseAcdtDe--${pageName}").val("");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.productControl.onCurrentChange = item => {
|
|
|
|
$P.productControl.onCurrentChange = item => {
|
|
|
|
if (!item) return;
|
|
|
|
if (!item) return;
|
|
|
|
|
|
|
|
|
|
|
@ -330,11 +350,11 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.productControl.getProductInfo = () => {
|
|
|
|
$P.productControl.getProductInfo = () => {
|
|
|
|
let dialogTitle = "마약류 제품 조회";
|
|
|
|
let dialogTitle = "마약류 제품 조회";
|
|
|
|
let rowData = $P.bsshFormFields.get();
|
|
|
|
let rowData = $P.bsshFormFields.get();
|
|
|
|
if(rowData.bsshCd == null || rowData.bsshCd == "") {
|
|
|
|
if(rowData.bsshCd == null || rowData.bsshCd === "") {
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content: "업체를 먼저 선택해주세요."
|
|
|
|
content: "업체를 먼저 선택해주세요."
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -360,7 +380,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 저장
|
|
|
|
// 저장
|
|
|
|
$P.control.save = (jsonBssh, datasetListPrd, fileArr) => {
|
|
|
|
$P.control.save = (jsonBssh, datasetListPrd, fileArr) => {
|
|
|
|
let saveBsshData = {
|
|
|
|
let saveBsshData = {
|
|
|
@ -389,13 +409,13 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.productList.onAppend = item => {
|
|
|
|
$P.productList.onAppend = item => {
|
|
|
|
|
|
|
|
|
|
|
|
if (!item) return;
|
|
|
|
if (!item) return;
|
|
|
|
if (item.length < 1) return;
|
|
|
|
if (item.length < 1) return;
|
|
|
|
|
|
|
|
|
|
|
|
// 업무별 DataTables(그리드) tr, td
|
|
|
|
// 업무별 DataTables(그리드) tr, td
|
|
|
|
let foundContent = document.getElementById("productListRow--productList").content;
|
|
|
|
let foundContent = document.getElementById("productListRow--productList").content;
|
|
|
|
let foundTr = $(foundContent).find("tr")[0].cloneNode(false);
|
|
|
|
let foundTr = $(foundContent).find("tr")[0].cloneNode(false);
|
|
|
@ -408,37 +428,37 @@
|
|
|
|
//
|
|
|
|
//
|
|
|
|
let replacer = (str, dataItem) => str
|
|
|
|
let replacer = (str, dataItem) => str
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].productList.setCurrent('" + dataItem.getValue("keyCnt") + "');");
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].productList.setCurrent('" + dataItem.getValue("keyCnt") + "');");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(let i=0; i<item.length; i++){
|
|
|
|
for(let i=0; i<item.length; i++){
|
|
|
|
let di = $P.productList.getData(item[i].keyCnt, "item");
|
|
|
|
let di = $P.productList.getData(item[i].keyCnt, "item");
|
|
|
|
|
|
|
|
|
|
|
|
let tr = di.inString(foundTr.outerHTML, replacer);
|
|
|
|
let tr = di.inString(foundTr.outerHTML, replacer);
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbody--productList").append(tr);
|
|
|
|
$("#tbody--productList").append(tr);
|
|
|
|
|
|
|
|
|
|
|
|
AddsComponentization.fnMakeGridImageViewer(
|
|
|
|
AddsComponentization.fnMakeGridImageViewer(
|
|
|
|
$("#tbody--productList").find("td.prdDsuseImg").last()[0],
|
|
|
|
$("#tbody--productList").find("td.prdDsuseImg").last()[0],
|
|
|
|
"dsusePrdImgFiles",
|
|
|
|
"dsusePrdImgFiles",
|
|
|
|
di.data.fileInfo
|
|
|
|
di.data.fileInfo
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.productList.onRemove = item => {
|
|
|
|
$P.productList.onRemove = item => {
|
|
|
|
|
|
|
|
|
|
|
|
let key = item[0].data.keyCnt;
|
|
|
|
let key = item[0].data.keyCnt;
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbody--productList").find("tr[data-key='"+key+"']").remove();
|
|
|
|
$("#tbody--productList").find("tr[data-key='"+key+"']").remove();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.productList.onCurrentChange = item => {
|
|
|
|
$P.productList.onCurrentChange = item => {
|
|
|
|
if (!item) return;
|
|
|
|
if (!item) return;
|
|
|
|
|
|
|
|
|
|
|
|
let key = item.data.keyCnt;
|
|
|
|
let key = item.data.keyCnt;
|
|
|
|
$("#tbody--productList").setCurrentRow(key);
|
|
|
|
$("#tbody--productList").setCurrentRow(key);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DataTables 이벤트
|
|
|
|
* DataTables 이벤트
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
@ -446,12 +466,12 @@
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 사용자 함수(function)
|
|
|
|
* 사용자 함수(function)
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnSearchBssh = (title) => {
|
|
|
|
$P.fnSearchBssh = (title) => {
|
|
|
|
$P.control.getBsshInfo();
|
|
|
|
$P.control.getBsshInfo();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnSearchProduct = (title) => {
|
|
|
|
$P.fnSearchProduct = (title) => {
|
|
|
|
$P.productControl.getProductInfo();
|
|
|
|
$P.productControl.getProductInfo();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -467,7 +487,7 @@
|
|
|
|
let bsshData = $P.bsshFormFields.get();
|
|
|
|
let bsshData = $P.bsshFormFields.get();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(bsshData.bsshCd == ""){
|
|
|
|
if(bsshData.bsshCd === ""){
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content: "마약류 취급업체 정보를 입력해주세요."
|
|
|
|
content: "마약류 취급업체 정보를 입력해주세요."
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -479,14 +499,14 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let dsProd = $P.productList.getDataset();
|
|
|
|
let dsProd = $P.productList.getDataset();
|
|
|
|
if(dsProd.length == 0){
|
|
|
|
if(dsProd.length === 0){
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content: "폐기 제품 정보를 입력해주세요."
|
|
|
|
content: "폐기 제품 정보를 입력해주세요."
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let fileCount = 0;
|
|
|
|
let fileCount = 0;
|
|
|
|
$("#tbody--productList").find("input[type='file'][name='dsusePrdImgFiles']").each(function() {
|
|
|
|
$("#tbody--productList").find("input[type='file'][name='dsusePrdImgFiles']").each(function() {
|
|
|
|
if(this.dataset.url != null){
|
|
|
|
if(this.dataset.url != null){
|
|
|
|
fileCount++;
|
|
|
|
fileCount++;
|
|
|
@ -495,7 +515,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
if(dsProd.length != fileCount){
|
|
|
|
if(dsProd.length !== fileCount){
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content: "입력되지 않은 폐기 제품 이미지가 있습니다."
|
|
|
|
content: "입력되지 않은 폐기 제품 이미지가 있습니다."
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -521,14 +541,14 @@
|
|
|
|
promiseArr.push(AddsSupport.fnCreateFileFromFileInfo(fileInfo));
|
|
|
|
promiseArr.push(AddsSupport.fnCreateFileFromFileInfo(fileInfo));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
Promise.all(promiseArr).then((values) => {
|
|
|
|
Promise.all(promiseArr).then((values) => {
|
|
|
|
$P.control.save(bsshData, dsProd, values);
|
|
|
|
$P.control.save(bsshData, dsProd, values);
|
|
|
|
}).catch((error) => {});
|
|
|
|
}).catch((error) => {});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//추가
|
|
|
|
//추가
|
|
|
|
$P.fnAdd = () => {
|
|
|
|
$P.fnAdd = () => {
|
|
|
|
if(!$P.productFormFields.get().prductCd){
|
|
|
|
if(!$P.productFormFields.get().prductCd){
|
|
|
@ -557,7 +577,7 @@
|
|
|
|
const prdInfo = ""+prdFrm.prductCd+prdFrm.prdValidDe.replaceAll('-','')+prdFrm.mnfNo+prdFrm.mnfSeq;
|
|
|
|
const prdInfo = ""+prdFrm.prductCd+prdFrm.prdValidDe.replaceAll('-','')+prdFrm.mnfNo+prdFrm.mnfSeq;
|
|
|
|
let isDup = $P.productList
|
|
|
|
let isDup = $P.productList
|
|
|
|
.getDataset()
|
|
|
|
.getDataset()
|
|
|
|
.filter(item => prdInfo == ""+item.prductCd+item.prdValidDe.replaceAll('-','')+item.mnfNo+item.mnfSeq)
|
|
|
|
.filter(item => prdInfo === ""+item.prductCd+item.prdValidDe.replaceAll('-','')+item.mnfNo+item.mnfSeq)
|
|
|
|
.length > 0;
|
|
|
|
.length > 0;
|
|
|
|
if(isDup){
|
|
|
|
if(isDup){
|
|
|
|
const msg = "이미 추가된 제품 입니다<br>제품코드: " + prdFrm.prductCd +"<br>유효기간: "+ prdFrm.prdValidDe +"<br>제조번호: "+ prdFrm.mnfNo +"<br>제조일련번호: "+ prdFrm.mnfSeq;
|
|
|
|
const msg = "이미 추가된 제품 입니다<br>제품코드: " + prdFrm.prductCd +"<br>유효기간: "+ prdFrm.prdValidDe +"<br>제조번호: "+ prdFrm.mnfNo +"<br>제조일련번호: "+ prdFrm.mnfSeq;
|
|
|
@ -566,12 +586,12 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
debugger
|
|
|
|
const data = {...$P.productFormFields.get(), keyCnt : ""+prdRowKey++};
|
|
|
|
const data = {...$P.productFormFields.get(), keyCnt : ""+prdRowKey++};
|
|
|
|
data.prdValidDe = data.prdValidDe.replaceAll('-','');
|
|
|
|
data.prdValidDe = data.prdValidDe.replaceAll('-','');
|
|
|
|
$P.productList.append([data]);
|
|
|
|
$P.productList.append([data]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnDel = () => {
|
|
|
|
$P.fnDel = () => {
|
|
|
|
// validate 확인
|
|
|
|
// validate 확인
|
|
|
|
if (!AppSupport.customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
|
|
|
|
if (!AppSupport.customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
|
|
|
@ -585,17 +605,17 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnChangeDsusePrvCd = () => {
|
|
|
|
$P.fnChangeDsusePrvCd = () => {
|
|
|
|
// validate 확인
|
|
|
|
// validate 확인
|
|
|
|
let checkData = $("#dsusePrvCd--${pageName} option:selected").val();
|
|
|
|
let checkData = $("#dsusePrvCd--${pageName} option:selected").val();
|
|
|
|
if (checkData =="01" || checkData =="02") {
|
|
|
|
if (checkData ==="01" || checkData ==="02") {
|
|
|
|
$("#dsuseAcdtDe--${pageName}").prop('disabled', false);
|
|
|
|
$("#dsuseAcdtDe--${pageName}").prop('disabled', false);
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
$("#dsuseAcdtDe--${pageName}").prop('disabled', true);
|
|
|
|
$("#dsuseAcdtDe--${pageName}").prop('disabled', true);
|
|
|
|
$("#dsuseAcdtDe--${pageName}").val("");
|
|
|
|
$("#dsuseAcdtDe--${pageName}").val("");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
@ -607,18 +627,18 @@
|
|
|
|
$("#btnBsshSearch--${pageName}").on("click", function() {
|
|
|
|
$("#btnBsshSearch--${pageName}").on("click", function() {
|
|
|
|
$P.fnSearchBssh($(this).attr("title"));
|
|
|
|
$P.fnSearchBssh($(this).attr("title"));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnProductSearch--${pageName}").on("click", function() {
|
|
|
|
$("#btnProductSearch--${pageName}").on("click", function() {
|
|
|
|
$P.fnSearchProduct($(this).attr("title"));
|
|
|
|
$P.fnSearchProduct($(this).attr("title"));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// 버튼 이벤트
|
|
|
|
// 버튼 이벤트
|
|
|
|
$("#btnSave--${pageName}").on("click", () => $P.fnSave()); // 저장
|
|
|
|
$("#btnSave--${pageName}").on("click", () => $P.fnSave()); // 저장
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnAdd--${pageName}").on("click", () => $P.fnAdd()); // 추가
|
|
|
|
$("#btnAdd--${pageName}").on("click", () => $P.fnAdd()); // 추가
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnDel--${pageName}").on("click", () => $P.fnDel()); // 추가
|
|
|
|
$("#btnDel--${pageName}").on("click", () => $P.fnDel()); // 추가
|
|
|
|
|
|
|
|
|
|
|
|
$("#dsusePrvCd--${pageName}").on("change", () => $P.fnChangeDsusePrvCd()); // 추가
|
|
|
|
$("#dsusePrvCd--${pageName}").on("change", () => $P.fnChangeDsusePrvCd()); // 추가
|
|
|
|
|
|
|
|
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
@ -646,10 +666,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
// 초기 화면 설정
|
|
|
|
// 초기 화면 설정
|
|
|
|
$P.initForm = () => {
|
|
|
|
$P.initForm = () => {
|
|
|
|
if($("input[name='prgrsSttsCd']").val() == '99' || ${currentUser.hasAuthorities("ROLE_MANAGER")} || ${currentUser.hasAuthorities("ROLE_ADMIN")}) {
|
|
|
|
if($("input[name='prgrsSttsCd']").val() === '99' || ${currentUser.hasAuthorities("ROLE_MANAGER")} || ${currentUser.hasAuthorities("ROLE_ADMIN")}) {
|
|
|
|
$("#btnSave--${pageName}").prop("disabled", true);
|
|
|
|
$("#btnSave--${pageName}").prop("disabled", true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
AppSupport.initDatepicker("bssh--${pageName}");
|
|
|
|
AppSupport.initDatepicker("bssh--${pageName}");
|
|
|
|
$("#dsuseAcdtDe--${pageName}").datepicker("setDate", new Date());
|
|
|
|
$("#dsuseAcdtDe--${pageName}").datepicker("setDate", new Date());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -665,20 +685,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
// 3. Dataset 설정
|
|
|
|
// 3. Dataset 설정
|
|
|
|
$P.control.setData([${dsuseReceptInfo}]);
|
|
|
|
$P.control.setData([${dsuseReceptInfo}]);
|
|
|
|
|
|
|
|
|
|
|
|
let productInfo = ${dsuseReceptDtlInfo};
|
|
|
|
let productInfo = ${dsuseReceptDtlInfo};
|
|
|
|
let fileInfo = ${fileInfo};
|
|
|
|
let fileInfo = ${fileInfo};
|
|
|
|
|
|
|
|
|
|
|
|
for(let p of productInfo){
|
|
|
|
for(let p of productInfo){
|
|
|
|
p.keyCnt = (""+prdRowKey++);
|
|
|
|
p.keyCnt = (""+prdRowKey++);
|
|
|
|
for(let f of fileInfo){
|
|
|
|
for(let f of fileInfo){
|
|
|
|
if(p.dscdmngSn == f.SUB_TYPE){
|
|
|
|
if(p.dscdmngSn === f.SUB_TYPE){
|
|
|
|
p.fileInfo = f;
|
|
|
|
p.fileInfo = f;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$P.productList.append(productInfo);
|
|
|
|
$P.productList.append(productInfo);
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|