fit : 맵핑상세 체크박스 및 라디오박스 등록중 . 자료 확인하여 정상작동하는지 확인해야함.

dev
Leeyh1121 5 months ago
parent 77a884dfee
commit 9a16a9f13b

@ -133,7 +133,7 @@
<thead class="sticky-thead"> <thead class="sticky-thead">
<tr id="theadTr--${pageName}" <tr id="theadTr--${pageName}"
data-by="by--${pageName}" data-by-output="byOutput--${pageName}" data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}"> data-by="by--${pageName}" data-by-output="byOutput--${pageName}" data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
<th class="cmn" style="width: 72px;">No.</th> <th class="cmn" style="width: 60px;">체크</th>
<th class="cmn" style="width: 160.141px;">폐기관리번호</th> <th class="cmn" style="width: 160.141px;">폐기관리번호</th>
<th class="cmn" style="width: 160.141px;">업체명</th> <th class="cmn" style="width: 160.141px;">업체명</th>
<%-- <th class="cmn" style="width: 230.469px;">업종명</th>--%> <%-- <th class="cmn" style="width: 230.469px;">업종명</th>--%>
@ -150,7 +150,9 @@
</tbody> </tbody>
<template id="${infoPrefix}Row--${pageName}Mapping"> <template id="${infoPrefix}Row--${pageName}Mapping">
<tr data-key="{orgUsrRptIdNo}"> <tr data-key="{orgUsrRptIdNo}">
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td> <td class="text-center">
<input type="radio" class="form-check-input" name="maapingCheck" value="{dscdmngId}" alt="맵핑체크" onClick="return false" >
</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{dscdmngId}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{dscdmngId}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{bsshNm}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{bsshNm}</td>
<%-- <td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{indutyNm}</td>--%> <%-- <td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{indutyNm}</td>--%>
@ -184,7 +186,7 @@
id="DataTables_Table_2--${pageName}" aria-describedby="DataTables_Table_2_info"> id="DataTables_Table_2--${pageName}" aria-describedby="DataTables_Table_2_info">
<thead class="sticky-thead"> <thead class="sticky-thead">
<tr> <tr>
<th class="cmn" style="width: 72px;">No.</th> <th class="sorting" style="width: 60px;">확인</th>
<th class="sorting" style="width: 146.156px;">제품코드</th> <th class="sorting" style="width: 146.156px;">제품코드</th>
<th class="sorting" style="width: 90.141px;">폐기수량</th> <th class="sorting" style="width: 90.141px;">폐기수량</th>
<th class="sorting" style="width: 120.469px;">유효기간</th> <th class="sorting" style="width: 120.469px;">유효기간</th>
@ -199,7 +201,9 @@
</tbody> </tbody>
<template id="${infoPrefix}Row--${pageName}MappingDtl"> <template id="${infoPrefix}Row--${pageName}MappingDtl">
<tr data-key="{mnfSeq}"> <tr data-key="{mnfSeq}">
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td> <td class="text-center">
<input type="checkbox" name="gridCheckboxMappingDtl" value="{matchYn}" onClick="return false"/>
</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prductCd}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prductCd}</td>
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{dsuseQy} {pceUnit}</td> <td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{dsuseQy} {pceUnit}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prdValidDe}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prdValidDe}</td>
@ -364,11 +368,9 @@
let key = item.data.usrRptIdNo; let key = item.data.usrRptIdNo;
$("#tbody--${pageName}Mapping").setCurrentRow(key); $("#tbody--${pageName}Mapping").setCurrentRow(key);
// Dataset 셋팅
//$P.formFields.set($P.mappingControl, item);
// Dataset 셋팅
$P.mappingDtlControl.setData(item.data.listDtl); $P.mappingDtlControl.setData(item.data.listDtl);
console.log(item.data.listDtl);
} }
$P.mappingDtlControl.onDatasetChange = (obj) => { $P.mappingDtlControl.onDatasetChange = (obj) => {
@ -463,6 +465,17 @@
); );
$("#tbody--${pageName}Mapping").html(trs.join()); $("#tbody--${pageName}Mapping").html(trs.join());
$("#tbody--${pageName}Mapping").find("tr").each(function(){
col0 = $(this).find("td").eq(0).find("input");
col0val = $(this).find("td").eq(0).find("input").val();
if(col0val == "" || col0val == null){
col0.prop("checked",true);
}
});
} }
$P.renderMappingDtlList = () => { $P.renderMappingDtlList = () => {
@ -478,6 +491,17 @@
); );
$("#tbody--${pageName}MappingDtl").html(trs.join()); $("#tbody--${pageName}MappingDtl").html(trs.join());
$("#tbody--${pageName}MappingDtl").find("tr").each(function(){
col0 = $(this).find("td").eq(0).find("input");
col0val = $(this).find("td").eq(0).find("input").val();
if(col0val == "" || col0val == null){
col0.prop("checked",true);
}
});
} }
/************************************************************************** /**************************************************************************
* 사용자 함수(function) * 사용자 함수(function)

Loading…
Cancel
Save