|
|
@ -98,15 +98,13 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
<form id="productList--${pageName}" name="productList">
|
|
|
|
<form id="productList--${pageName}" name="productList">
|
|
|
|
<div class="table-responsive ox-scroll oy-scroll h-px-300" id="table-responsive-1--${pageName}">
|
|
|
|
<div class="table-responsive ox-scroll oy-scroll h-px-300" id="table-responsive--${pageName}">
|
|
|
|
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--productList" aria-describedby="DataTables_Table_0_info">
|
|
|
|
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--productList" aria-describedby="DataTables_Table_0_info">
|
|
|
|
<thead class="sticky-thead">
|
|
|
|
<thead class="sticky-thead">
|
|
|
|
<tr id="theadTr--productList"
|
|
|
|
<tr id="theadTr--productList"
|
|
|
|
data-by="by--productList" data-by-output="byOutput--productList" data-main-option="mainOption--productList" data-sub-option="subOption--productList">
|
|
|
|
data-by="by--productList" data-by-output="byOutput--productList" data-main-option="mainOption--productList" data-sub-option="subOption--productList">
|
|
|
|
<th style="width: 15.828px;text-align:center;" tabindex="0">No</th>
|
|
|
|
|
|
|
|
<th class="sorting sorting_asc" aria-sort="ascending" style="width: 223.719px;">제품명</th>
|
|
|
|
<th class="sorting sorting_asc" aria-sort="ascending" style="width: 223.719px;">제품명</th>
|
|
|
|
<th class="sorting" style="width: 146.156px;">제품코드</th>
|
|
|
|
<th class="sorting" style="width: 146.156px;">제품코드</th>
|
|
|
|
<th class="sorting" style="width: 160.141px;">제품번호</th>
|
|
|
|
|
|
|
|
<th class="sorting" style="width: 160.141px;">제조 번호</th>
|
|
|
|
<th class="sorting" style="width: 160.141px;">제조 번호</th>
|
|
|
|
<th class="sorting" style="width: 160.141px;">제조 일련 번호</th>
|
|
|
|
<th class="sorting" style="width: 160.141px;">제조 일련 번호</th>
|
|
|
|
<th class="sorting" style="width: 230.469px;">유효기간</th>
|
|
|
|
<th class="sorting" style="width: 230.469px;">유효기간</th>
|
|
|
@ -122,9 +120,8 @@
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|
<template id="productListRow--productList">
|
|
|
|
<template id="productListRow--productList">
|
|
|
|
<tr data-key="{prductCd}">
|
|
|
|
<tr data-key="{prductCd}">
|
|
|
|
<td style="text-align:center;"><input value="prductCd" onchange="userControl.select('{prductCd}', this.checked);" type="checkbox" class="form-check-input"></td>
|
|
|
|
|
|
|
|
<td class="cmn text-center" {onclick}="" {ondblclick}="">{prductCd}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-center" {onclick}="" {ondblclick}="">{prductNm}</td>
|
|
|
|
<td class="cmn text-center" {onclick}="" {ondblclick}="">{prductNm}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-center" {onclick}="" {ondblclick}="">{prductCd}</td>
|
|
|
|
<td class="cmn text-center" {onclick}="" {ondblclick}="">{mnfNo}</td>
|
|
|
|
<td class="cmn text-center" {onclick}="" {ondblclick}="">{mnfNo}</td>
|
|
|
|
<td class="cmn text-center" {onclick}="" {ondblclick}="">{mnfSeq}</td>
|
|
|
|
<td class="cmn text-center" {onclick}="" {ondblclick}="">{mnfSeq}</td>
|
|
|
|
<td class="cmn text-center" {onclick}="" {ondblclick}="">{prdValidDe}</td>
|
|
|
|
<td class="cmn text-center" {onclick}="" {ondblclick}="">{prdValidDe}</td>
|
|
|
@ -133,7 +130,7 @@
|
|
|
|
<td class="cmn text-center" {onclick}="" {ondblclick}="">{pceQy}</td>
|
|
|
|
<td class="cmn text-center" {onclick}="" {ondblclick}="">{pceQy}</td>
|
|
|
|
<td class="cmn text-center" {onclick}="" {ondblclick}="">{pceUnit}</td>
|
|
|
|
<td class="cmn text-center" {onclick}="" {ondblclick}="">{pceUnit}</td>
|
|
|
|
<td class="cmn text-center" {onclick}="" {ondblclick}="">{dsuseQy}</td>
|
|
|
|
<td class="cmn text-center" {onclick}="" {ondblclick}="">{dsuseQy}</td>
|
|
|
|
<td class="cmn text-center" {onclick}="" {ondblclick}=""></td>
|
|
|
|
<td class="cmn text-center aaaa" {onclick}="" {ondblclick}=""></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template id="productListNotFound--productList">
|
|
|
|
<template id="productListNotFound--productList">
|
|
|
@ -293,7 +290,7 @@
|
|
|
|
$P.productList.onDatasetChange = item => {
|
|
|
|
$P.productList.onDatasetChange = item => {
|
|
|
|
if (!item) return;
|
|
|
|
if (!item) return;
|
|
|
|
|
|
|
|
|
|
|
|
let empty = $P.productListList.empty;
|
|
|
|
let empty = $P.productList.empty;
|
|
|
|
|
|
|
|
|
|
|
|
// 업무별 DataTables(그리드) tr, td
|
|
|
|
// 업무별 DataTables(그리드) tr, td
|
|
|
|
let foundContent = document.getElementById("productListRow--productList").content;
|
|
|
|
let foundContent = document.getElementById("productListRow--productList").content;
|
|
|
@ -311,7 +308,9 @@
|
|
|
|
let trs = empty ? [document.getElementById("$productListNotFound--productList").content.outerHTML]
|
|
|
|
let trs = empty ? [document.getElementById("$productListNotFound--productList").content.outerHTML]
|
|
|
|
: $P.productList.inStrings(foundTr.outerHTML, replacer);
|
|
|
|
: $P.productList.inStrings(foundTr.outerHTML, replacer);
|
|
|
|
|
|
|
|
|
|
|
|
$("#table-responsive--${pageName}")[0].changeContent(trs.join(), initScroll, noMore);
|
|
|
|
$("#table-responsive--${pageName}")[0].changeContent(trs.join(), true, true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fnMakeGridImageViewer($("#tbody--productList").find("td.aaaa").get(), "dsusePrdImgFiles");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
@ -362,7 +361,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
//추가
|
|
|
|
//추가
|
|
|
|
$P.fnAdd = () => {
|
|
|
|
$P.fnAdd = () => {
|
|
|
|
$P.productList.addData($P.productFormFields.get());
|
|
|
|
$P.productList.addData([$P.productFormFields.get()]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnDel = () => {
|
|
|
|
$P.fnDel = () => {
|
|
|
|