|
|
@ -18,7 +18,7 @@
|
|
|
|
<label for="ProductCd--${pageName}" class="w-px-80 bg-lighter pe-2 col-form-label text-sm-end">제품코드</label>
|
|
|
|
<label for="ProductCd--${pageName}" class="w-px-80 bg-lighter pe-2 col-form-label text-sm-end">제품코드</label>
|
|
|
|
<input type="text" class="form-control w-50" id="productCd--${pageName}" name="schProductCd" >
|
|
|
|
<input type="text" class="form-control w-50" id="productCd--${pageName}" name="schProductCd" >
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="d-flex flex-row justify-content-between p-3">
|
|
|
|
<div class="d-flex flex-row justify-content-between p-2">
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<div class="input-group" id="DataTables_Table_0_length">
|
|
|
|
<div class="input-group" id="DataTables_Table_0_length">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -79,24 +79,30 @@
|
|
|
|
<form id="frmSearch--${pageName}Detail" name="frmSearchDetail">
|
|
|
|
<form id="frmSearch--${pageName}Detail" name="frmSearchDetail">
|
|
|
|
<div class="container-search">
|
|
|
|
<div class="container-search">
|
|
|
|
<!-- hidden -->
|
|
|
|
<!-- hidden -->
|
|
|
|
<div class="row my-0 mx-1 g-1" style="align-items: baseline">
|
|
|
|
<div class="row my-0 mx-1 g-0" style="align-items: baseline">
|
|
|
|
<div class="col-md-9">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<label for="schPrdValidDe--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">유효기간</label>
|
|
|
|
<select id="schOpt--${pageName}" name="schOpt" class="form-selectxit">
|
|
|
|
<input type="text" class="form-control w-30 form-date" id="schPrdValidDe--${pageName}" name="schPrdValidDe" data-fmt-type="day" data-map="schPrdValidDe" autocomplete="off" title="유효기간" />
|
|
|
|
<option value="1">제조번호</option>
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
<option value="2">일련번호</option>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<input type="text" class="form-control w-60" id="schText--${pageName}" name="schText" >
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
|
|
|
<label for="schPrdValidDe--${pageName}" class="w-px-100 bg-lighter pe-2 col-form-label text-sm-end">유효기간</label>
|
|
|
|
|
|
|
|
<input type="text" class="form-control w-50 form-date" id="schPrdValidDe--${pageName}" name="schPrdValidDe" data-fmt-type="day" data-map="schPrdValidDe" autocomplete="off" title="유효기간" />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="d-flex flex-row justify-content-between p-2">
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<div class="input-group" id="DataTables_Table_0_length">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" id="btnSearch3--${pageName}" title="검색">NIMS 검색</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" id="btnSearch3--${pageName}" title="검색">NIMS 검색</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
<!-- 업무 버튼 표시 -->
|
|
|
|
<!-- 업무 버튼 표시 -->
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<span class="container-page-btn" style="min-height: 36px">
|
|
|
|
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
|
|
|
|
<!-- 업무 버튼 -->
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-primary w-px-80" id="btnSave--${pageName}" title="선택">선택</button>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card-datatable text-nowrap">
|
|
|
|
<div class="card-datatable text-nowrap">
|
|
|
|
<div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_1_wrapper--${pageName}">
|
|
|
|
<div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_1_wrapper--${pageName}">
|
|
|
@ -135,6 +141,10 @@
|
|
|
|
<label id="${infoPrefix}DetailPaging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
|
|
|
|
<label id="${infoPrefix}DetailPaging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
|
|
|
|
<ul id="${infoPrefix}DetailPaging--${pageName}" class="pagination pagination-primary" style="display: none;">
|
|
|
|
<ul id="${infoPrefix}DetailPaging--${pageName}" class="pagination pagination-primary" style="display: none;">
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
|
|
|
|
<!-- 업무 버튼 -->
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-primary w-px-80" id="btnSave--${pageName}" title="선택">선택</button>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -266,7 +276,7 @@
|
|
|
|
let key = item.data.keyCnt;
|
|
|
|
let key = item.data.keyCnt;
|
|
|
|
$("#tbody--${pageName}").setCurrentRow(key);
|
|
|
|
$("#tbody--${pageName}").setCurrentRow(key);
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnDetailSearchList();
|
|
|
|
$P.fnDetailSearchList("N");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 현재 선택 자료 변경 이벤트
|
|
|
|
// 현재 선택 자료 변경 이벤트
|
|
|
@ -326,12 +336,12 @@
|
|
|
|
let initScroll = ($P.control.query.pageNum < 2) && ($P.control.untilPageNum == 0);
|
|
|
|
let initScroll = ($P.control.query.pageNum < 2) && ($P.control.untilPageNum == 0);
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName}").html(trs.join());
|
|
|
|
$("#tbody--${pageName}").html(trs.join());
|
|
|
|
|
|
|
|
/*
|
|
|
|
if ($P.control.untilPageNum != 0) {
|
|
|
|
if ($P.control.untilPageNum != 0) {
|
|
|
|
$P.control.query.fetchSize = $P.control.defaultFetchSize;
|
|
|
|
$P.control.query.fetchSize = $P.control.defaultFetchSize;
|
|
|
|
$P.control.query.pageNum = $P.control.untilPageNum;
|
|
|
|
$P.control.query.pageNum = $P.control.untilPageNum;
|
|
|
|
$P.control.untilPageNum = 0;
|
|
|
|
$P.control.untilPageNum = 0;
|
|
|
|
}
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -373,14 +383,29 @@
|
|
|
|
$P.control.load(1);
|
|
|
|
$P.control.load(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnDetailSearchList = (prdValidDe) => {
|
|
|
|
$P.fnDetailSearchList = (schYn) => {
|
|
|
|
$P.detailControl.query = {
|
|
|
|
if (schYn == "Y"){
|
|
|
|
fg: "1", // 1-제조번호, 2-시리얼번호
|
|
|
|
if ($('#schText--productMain').val() == ""||$('#schText--productMain').val() == null ){
|
|
|
|
p: $P.control.dataset.getCurrent().prductCd , //제품코드
|
|
|
|
dialog.alert("제조번호 혹은 일련번호는 필수입니다.");
|
|
|
|
prdValidDe: prdValidDe,
|
|
|
|
return false;
|
|
|
|
t: "", //제조번호 또는 시리얼번호
|
|
|
|
}
|
|
|
|
userId: "${currentUser.account}"
|
|
|
|
$P.detailControl.query = {
|
|
|
|
};
|
|
|
|
fg: $('#schOpt--productMain').val(), // 1-제조번호, 2-시리얼번호
|
|
|
|
|
|
|
|
p: $P.control.dataset.getCurrent().prductCd , //제품코드
|
|
|
|
|
|
|
|
prdValidDe: $("input[name='schPrdValidDe']").val().replaceAll("-", ""),
|
|
|
|
|
|
|
|
t: $('#schText--productMain').val(), //제조번호 또는 시리얼번호
|
|
|
|
|
|
|
|
userId: "${currentUser.account}"
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
$P.detailControl.query = {
|
|
|
|
|
|
|
|
fg: "1", // 1-제조번호, 2-시리얼번호
|
|
|
|
|
|
|
|
p: $P.control.dataset.getCurrent().prductCd , //제품코드
|
|
|
|
|
|
|
|
prdValidDe: "",
|
|
|
|
|
|
|
|
t: "", //제조번호 또는 시리얼번호
|
|
|
|
|
|
|
|
userId: "${currentUser.account}"
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.detailControl.query.fetchSize = FETCH_XXL; // 한번에 조회되는 자료 건수
|
|
|
|
$P.detailControl.query.fetchSize = FETCH_XXL; // 한번에 조회되는 자료 건수
|
|
|
|
$P.detailControl.query.delYn = "N"; // 삭제 여부
|
|
|
|
$P.detailControl.query.delYn = "N"; // 삭제 여부
|
|
|
|
|
|
|
|
|
|
|
@ -427,7 +452,7 @@
|
|
|
|
$("#btnSave--${pageName}").on("click", () => $P.fnSave()); // 저장
|
|
|
|
$("#btnSave--${pageName}").on("click", () => $P.fnSave()); // 저장
|
|
|
|
$("#btnSearch--${pageName}").on("click", () => $P.fnSearchList());
|
|
|
|
$("#btnSearch--${pageName}").on("click", () => $P.fnSearchList());
|
|
|
|
$("#btnSearch2--${pageName}").on("click", () => $P.fnSearchList("Y"));
|
|
|
|
$("#btnSearch2--${pageName}").on("click", () => $P.fnSearchList("Y"));
|
|
|
|
$("#btnSearch3--${pageName}").on("click", () => $P.fnDetailSearchList($("input[name='schPrdValidDe']").val().replaceAll("-", "")));
|
|
|
|
$("#btnSearch3--${pageName}").on("click", () => $P.fnDetailSearchList("Y"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables width 변경 조정 (업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고)
|
|
|
|
// DataTables width 변경 조정 (업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고)
|
|
|
|