[BO] 수정 : 임산물 현황, 은행자동이체내역, 임가방문정보 수정
This commit is contained in:
@@ -126,7 +126,7 @@
|
||||
<td class="underline"><a href="javascript:void(0);" onclick="showBankIncomeModal(${item.id})">${ifNullHyphen(item.categoryText)}</td> <!-- 수입의 종류 -->
|
||||
<td>${ifNullHyphen(item.target)}</td><!-- 대상 -->
|
||||
<td>${ifNullHyphen(item.sourcePurpose)}</td><!-- 수입원 -->
|
||||
<td class="align-right">${ifNullHyphen(item.count)}</td><!-- 수량 -->
|
||||
<td class="align-right">${formatNumberWithComma(item.count)}</td><!-- 수량 -->
|
||||
<td>${ifNullHyphen(item.unitText)}</td><!-- 단위 -->
|
||||
<td class="align-right">${formatNumberWithComma(item.price)}</td><!-- 현금(원) -->
|
||||
</tr>
|
||||
@@ -161,7 +161,7 @@
|
||||
</td>
|
||||
<td class="underline"><a href="javascript:void(0);" onclick="showBankExpenseModal(${item.id})">${ifNullHyphen(item.categoryText)}</a></td> <!-- 지출의 종류 -->
|
||||
<td>${ifNullHyphen(item.sourcePurpose)}</td><!-- 용도 -->
|
||||
<td class="align-right">${ifNullHyphen(item.count)}</td><!-- 수량 -->
|
||||
<td class="align-right">${formatNumberWithComma(item.count)}</td><!-- 수량 -->
|
||||
<td>${ifNullHyphen(item.unitText)}</td><!-- 단위 -->
|
||||
<td class="align-right">${formatNumberWithComma(item.price)}</td><!-- 현금(원) -->
|
||||
</tr>
|
||||
|
||||
@@ -114,18 +114,18 @@
|
||||
<td>${ifNullHyphen(item.streetNum)}</td> <!-- 지번 -->
|
||||
<td>${ifNullHyphen(item.landType)}</td><!-- 지목 -->
|
||||
<td>${ifNullHyphen(item.town)}</td><!-- 읍면동 -->
|
||||
<td>${ifNullHyphen(item.availableArea)}</td><!-- 가능면적(평) -->
|
||||
<td>${formatNumberWithComma(item.availableArea)}</td><!-- 가능면적(평) -->
|
||||
<td class="underline">
|
||||
<a href="javascript:void(0);" onclick="showForestProductModal(${item.id});">${ifNullHyphen(item.cropName)}</a>
|
||||
</td><!-- 재배작물명 -->
|
||||
<td>${ifNullHyphen(item.landArea)}</td><!-- 면적(평) -->
|
||||
<td class="align-right">${ifNullHyphen(item.mainYield)}</td><!-- 주생산물 수확량 -->
|
||||
<td>${formatNumberWithComma(item.landArea)}</td><!-- 면적(평) -->
|
||||
<td class="align-right">${formatNumberWithComma(item.mainYield)}</td><!-- 주생산물 수확량 -->
|
||||
<td>${ifNullHyphen(item.mainYieldUnitText)}</td><!-- 주생산물 수확량 단위 -->
|
||||
<td class="align-right">${ifNullHyphen(item.mainSaleAmount)}</td><!-- 주생산물 판매량 -->
|
||||
<td class="align-right">${formatNumberWithComma(item.mainSaleAmount)}</td><!-- 주생산물 판매량 -->
|
||||
<td>${ifNullHyphen(item.mainSaleAmountUnitText)}</td><!-- 주생산물 판매량 단위 -->
|
||||
<td class="align-right">${ifNullHyphen(item.subYield)}</td><!-- 부생산물 수확량 -->
|
||||
<td class="align-right">${formatNumberWithComma(item.subYield)}</td><!-- 부생산물 수확량 -->
|
||||
<td>${ifNullHyphen(item.subYieldUnitText)}</td><!-- 부생산물 수확량 단위 -->
|
||||
<td class="align-right">${ifNullHyphen(item.subSaleAmount)}</td><!-- 부생산물 판매량 -->
|
||||
<td class="align-right">${formatNumberWithComma(item.subSaleAmount)}</td><!-- 부생산물 판매량 -->
|
||||
<td>${ifNullHyphen(item.subSaleAmountUnitText)}</td><!-- 부생산물 판매량 단위 -->
|
||||
</tr>
|
||||
`;
|
||||
@@ -218,11 +218,18 @@
|
||||
document.querySelectorAll('input[name="forestRemoveIds"]:checked')
|
||||
).map(el => Number(el.value));
|
||||
|
||||
const totalRows = document.querySelectorAll('input[name="forestRemoveIds"]').length;
|
||||
|
||||
if(checkedIds.length <= 0) {
|
||||
alert("임산물을 선택해주세요.");
|
||||
return
|
||||
}
|
||||
|
||||
if (checkedIds.length === totalRows) {
|
||||
alert("등록내용은 최소 1건이 남아있어야 합니다.");
|
||||
return;
|
||||
}
|
||||
|
||||
etUI.dialog.confirm({
|
||||
title: '삭제 안내',
|
||||
message: '선택하신 내용을 삭제하시겠습니까?<br>삭제한 항목은 복구할 수 없습니다.',
|
||||
|
||||
Reference in New Issue
Block a user