필요없는 파일 삭제 및 TODO 삭제
This commit is contained in:
@@ -54,11 +54,10 @@ class CreateBankInputController {
|
||||
|
||||
|
||||
if(currentMonthlyInfo!=null) {
|
||||
//TODO 트렌젝션 고려
|
||||
// 트렌젝션 고려
|
||||
removeBanksPortIn.operate(new RemoveBanksCmd(currentMonthlyInfo.getId(), AuthUtil.getUserSeq(), reqVO.getTransferType()));
|
||||
|
||||
// if (!reqVO.getStatus() && reqVO.getBankList() != null && !reqVO.getBankList().isEmpty()) { // 등록없음 처리가 아님.
|
||||
if (reqVO.getBankList() != null && !reqVO.getBankList().isEmpty()) { // 등록없음 처리가 아님.
|
||||
if (reqVO.getBankList() != null && !reqVO.getBankList().isEmpty()) {
|
||||
for (CreateBankInputProductReqVO item : reqVO.getBankList()) {
|
||||
|
||||
UICodeView code = uiCodeViewPortIn.connect(item.getTransferCategoryCode()).orElse(null);
|
||||
|
||||
@@ -47,10 +47,10 @@ class CreateMonthlyController {
|
||||
|
||||
|
||||
if(currentMonthlyInfo!=null) {
|
||||
//TODO 트렌젝션 고려
|
||||
// 트렌젝션 고려
|
||||
removeMonthForestProductsPortIn.operate(new RemoveMonthForestProductsCmd(currentMonthlyInfo.getId(), AuthUtil.getUserSeq()));
|
||||
|
||||
if (!reqVO.getStatus() && reqVO.getProductList() != null && !reqVO.getProductList().isEmpty()) { // 등록없음 처리가 아님.
|
||||
if (!reqVO.getStatus() && reqVO.getProductList() != null && !reqVO.getProductList().isEmpty()) {
|
||||
for (CreateMonthlyProductReqVO item : reqVO.getProductList()) {
|
||||
createForestProductPortIn.operate(new CreateForestProductCmd(
|
||||
AuthUtil.getUserSeq(),
|
||||
|
||||
@@ -164,11 +164,6 @@ var ajaxUtil = {
|
||||
},
|
||||
422:function(rstData, status) {
|
||||
console.log('422', rstData)
|
||||
/**
|
||||
* TODO
|
||||
* 폼이 너무 여러가지 형식이 있는데 서버에러를 가지고 처리하는게 맞는지 검토 필요
|
||||
* 코드 정리는 나중에 하려고 그냥 만듬.... 정리 필요.
|
||||
*/
|
||||
|
||||
let isResetDone = false;
|
||||
|
||||
@@ -322,13 +317,13 @@ var ajaxUtil = {
|
||||
_hideWaiting:function(){
|
||||
if (ajaxUtil.loadingStatus) {
|
||||
ajaxUtil.loadingStatus = false;
|
||||
// TODO : 로딩바 숨김
|
||||
// 로딩바 숨김
|
||||
document.querySelector('#loadingBar').style.display = 'none';
|
||||
}
|
||||
},
|
||||
_showWaiting:function(){
|
||||
ajaxUtil.loadingStatus = true;
|
||||
// TODO : 로딩바 활성화
|
||||
// 로딩바 활성화
|
||||
document.querySelector('#loadingBar').style.display = 'block';
|
||||
},
|
||||
};
|
||||
@@ -36,14 +36,6 @@
|
||||
<span class="btn-txt">이전 정보 불러오기</span>
|
||||
</button>
|
||||
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
<!-- <div class="component-input align-center" id="forestProductStatusDiv">-->
|
||||
<!-- <label class="checkbox-inner">-->
|
||||
<!-- <input type="checkbox" id="forestProductStatus" name="forestProductStatus"-->
|
||||
<!-- th:value="${MonthStatus.NOTHING}" onchange="formControl.handleNoDataToggle()">-->
|
||||
<!-- <span class="checkbox-item"><span class="checkbox-txt">이번달 등록내용 없음</span></span>-->
|
||||
<!-- </label>-->
|
||||
<!-- </div>-->
|
||||
|
||||
</section>
|
||||
|
||||
@@ -195,9 +187,6 @@
|
||||
//이전 데이터 취득 버튼
|
||||
const callPastInfoBtn = document.getElementById("callPastInfoBtn");
|
||||
|
||||
//데이터 없음 버튼
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// const forestProductStatus = document.getElementById("forestProductStatus");
|
||||
|
||||
//등록 완료 버튼
|
||||
const next = document.getElementById('complateBtn');
|
||||
@@ -247,17 +236,6 @@
|
||||
if (ENV.data.pastStatus && ENV.data.pastStatus == "REGISTERED" && ENV.data.pastBankList.length > 0) {
|
||||
this.checkUsePastData();
|
||||
}
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// }
|
||||
// else if (ENV.data.currentStatus == "NOTHING") {
|
||||
//
|
||||
//
|
||||
// addItemBtn.disabled = true;
|
||||
// icon.classList.toggle("ico-add", false);
|
||||
// icon.classList.toggle("ico-add-disabled", true);
|
||||
// callPastInfoBtn.disabled = true;
|
||||
// forestProductStatus.checked = true;
|
||||
// next.disabled = true;
|
||||
|
||||
} else if (ENV.data.currentStatus == "REGISTERED") {
|
||||
if (ENV.data.bankList.length > 0) {
|
||||
@@ -364,12 +342,6 @@
|
||||
},
|
||||
updateLayout() {
|
||||
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// const btn = document.getElementById("addItemBtn");
|
||||
// const isChecked = ENV.elementRefs.noDataCheckbox.checked;
|
||||
// const icon = btn.querySelector("i");
|
||||
// const status = document.getElementById('forestProductStatusDiv');
|
||||
|
||||
const callPastInfoBtn = document.getElementById("callPastInfoBtn");
|
||||
|
||||
const next = document.getElementById('complateBtn');
|
||||
@@ -385,10 +357,6 @@
|
||||
count.textContent = total;
|
||||
totalItems.textContent = total;
|
||||
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// btn.disabled = isData;
|
||||
// icon.classList.toggle("ico-add", !isData);
|
||||
// icon.classList.toggle("ico-add-disabled", isData);
|
||||
if (isData) {
|
||||
next.disabled = !isData;
|
||||
} else {
|
||||
|
||||
@@ -36,15 +36,6 @@
|
||||
<span class="btn-txt">이전 정보 불러오기</span>
|
||||
</button>
|
||||
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
<!-- <div class="component-input align-center" id="forestProductStatusDiv">-->
|
||||
<!-- <label class="checkbox-inner">-->
|
||||
<!-- <input type="checkbox" id="forestProductStatus" name="forestProductStatus"-->
|
||||
<!-- th:value="${MonthStatus.NOTHING}" onchange="formControl.handleNoDataToggle()">-->
|
||||
<!-- <span class="checkbox-item"><span class="checkbox-txt">이번달 등록내용 없음</span></span>-->
|
||||
<!-- </label>-->
|
||||
<!-- </div>-->
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
@@ -194,10 +185,6 @@
|
||||
//이전 데이터 취득 버튼
|
||||
const callPastInfoBtn = document.getElementById("callPastInfoBtn");
|
||||
|
||||
//데이터 없음 버튼
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// const forestProductStatus = document.getElementById("forestProductStatus");
|
||||
|
||||
//등록 완료 버튼
|
||||
const next = document.getElementById('complateBtn');
|
||||
|
||||
@@ -246,16 +233,6 @@
|
||||
if (ENV.data.pastStatus && ENV.data.pastStatus == "REGISTERED" && ENV.data.pastBankList.length > 0) {
|
||||
this.checkUsePastData();
|
||||
}
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// } else if (ENV.data.currentStatus == "NOTHING") {
|
||||
//
|
||||
//
|
||||
// addItemBtn.disabled = true;
|
||||
// icon.classList.toggle("ico-add", false);
|
||||
// icon.classList.toggle("ico-add-disabled", true);
|
||||
// callPastInfoBtn.disabled = true;
|
||||
// forestProductStatus.checked = true;
|
||||
// next.disabled = true;
|
||||
|
||||
} else if (ENV.data.currentStatus == "REGISTERED") {
|
||||
if (ENV.data.bankList.length > 0) {
|
||||
@@ -354,12 +331,6 @@
|
||||
},
|
||||
updateLayout() {
|
||||
|
||||
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// const isChecked = ENV.elementRefs.noDataCheckbox.checked;
|
||||
// const btn = document.getElementById("addItemBtn");
|
||||
// const icon = btn.querySelector("i");
|
||||
// const status = document.getElementById('forestProductStatusDiv');
|
||||
const callPastInfoBtn = document.getElementById("callPastInfoBtn");
|
||||
|
||||
const next = document.getElementById('complateBtn');
|
||||
@@ -376,10 +347,6 @@
|
||||
count.textContent = total;
|
||||
totalItems.textContent = total;
|
||||
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// btn.disabled = isData;
|
||||
// icon.classList.toggle("ico-add", !isData);
|
||||
// icon.classList.toggle("ico-add-disabled", isData);
|
||||
if (isData) {
|
||||
next.disabled = !isData;
|
||||
} else {
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
<div class="inner">
|
||||
<dl class="info-card">
|
||||
<dt class="name" th:text="${userInfo?.ownerName}"></dt>
|
||||
<dd class="location" th:text="${userInfo?.address}"></dd><!-- TODO 임가 주소 위치 임시로 . 처리함. -->
|
||||
<dd class="location" th:text="${userInfo?.address}"></dd>
|
||||
<dd class="date" th:if="${not #strings.isEmpty(dailyLatest)}">
|
||||
최근등록 : <span th:text="${dailyLatest}"></span></dd>
|
||||
<dd class="date" th:if="${#strings.isEmpty(dailyLatest)}">등록된 일계부가 없습니다.</dd>
|
||||
|
||||
@@ -20,13 +20,6 @@
|
||||
<span class="tag" th:text="${item.forestProductStatus.desc}"></span>
|
||||
</a>
|
||||
</li>
|
||||
<!--/* TODO : 등록없음 추가 */-->
|
||||
<!--/* <li class="complete-nodata">
|
||||
<a href="">
|
||||
<p class="list-tit">2025년 5월</p>
|
||||
<span class="tag">등록없음</span>
|
||||
</a>
|
||||
</li> */-->
|
||||
</ul>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
@@ -533,7 +533,6 @@
|
||||
document.getElementById('listBody').innerHTML = '';
|
||||
formControl.updateLayout();
|
||||
|
||||
// TODO(ks): 선택 삭제 시 전체 count 미반영 중. 일단 전체 초기화에서만 count 갱신.
|
||||
document.getElementById('totalItems').textContent = ENV.data.productList.length;
|
||||
},
|
||||
});
|
||||
@@ -569,11 +568,6 @@
|
||||
function (rstData, status) {
|
||||
if (rstData.code === 'SUCCESS') {
|
||||
ajaxUtil._alert('등록이 완료되었습니다.', null, function () {
|
||||
/**
|
||||
* TODO
|
||||
* 내정보에서만 들어온다는 가정하에서 back을 하게함 SB에는 내정보로 이동하게 되어 있음.
|
||||
*/
|
||||
// history.back()
|
||||
location.href = '/info/monthly';
|
||||
});
|
||||
} else if (rstData.code === 'ERROR') {
|
||||
|
||||
@@ -108,8 +108,7 @@
|
||||
},
|
||||
|
||||
/**
|
||||
* TODO 검색할때 각 페이지에 함수 구현 필요.
|
||||
* TODO 일단 뒤로가기에 대한 부분 정의가 없기에 페이지 이동으로 처리해둠...
|
||||
* 검색할때 각 페이지에 함수 구현 필요.
|
||||
*/
|
||||
goSearch() {
|
||||
const f = document.reqForm;
|
||||
|
||||
@@ -57,10 +57,7 @@ root: /*[[|#{uri.front.info.user.path}/password|]]*/'rootUrl',
|
||||
|
||||
},
|
||||
goList() {
|
||||
/**
|
||||
* TODO 외부 유입에 따라 history.back과 location.href 가 적절하게 사용되어야함...
|
||||
* 전체적인 수정 필요.(이전 페이지
|
||||
*/
|
||||
|
||||
const previousUrl = document.referrer;
|
||||
|
||||
/* if (previousUrl.includes('/info/notice')) {
|
||||
|
||||
Reference in New Issue
Block a user