[BO] 임가현황 리스트, 상세 작업 중 (4)
This commit is contained in:
@@ -12,148 +12,291 @@
|
||||
<input name="userRole" th:value="${userRole}" type="hidden"/>
|
||||
<input name="userRegionMainCode" th:value="${userRegionMainCode}" type="hidden"/>
|
||||
|
||||
<div>
|
||||
<label>입력월</label>
|
||||
<select name="recordMonth" th:field="*{recordMonth}">
|
||||
<option th:each="month : ${monthList}"
|
||||
th:value="${month.value}"
|
||||
th:text="${month.label}"
|
||||
th:selected="${month.value == currentMonth}">
|
||||
</option>
|
||||
</select>
|
||||
<div class="content-inner">
|
||||
<!-- 필터 영역 -->
|
||||
<section class="filter-wrap">
|
||||
<div class="form-area">
|
||||
<!-- 연/월 -->
|
||||
<div class="input-group">
|
||||
<div class="input-label">
|
||||
<p class="label-txt">
|
||||
연/월
|
||||
</p>
|
||||
</div>
|
||||
<div class="component-select">
|
||||
<select class="select-list" name="recordMonth" th:field="*{recordMonth}" required>
|
||||
<option th:each="month : ${monthList}"
|
||||
th:value="${month.value}"
|
||||
th:text="${month.label}"
|
||||
th:selected="${month.value == currentMonth}">
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label>경영주</label>
|
||||
<select name="ownerField" th:field="*{ownerField}">
|
||||
<option value="">전체</option>
|
||||
<option value="name">이름</option>
|
||||
<option value="phone">전화번호</option>
|
||||
</select>
|
||||
<input type="text" name="ownerValue" placeholder="" th:field="*{ownerValue}">
|
||||
<!-- 경영주 -->
|
||||
<div class="input-group">
|
||||
<div class="input-label">
|
||||
<p class="label-txt">
|
||||
경영주
|
||||
</p>
|
||||
</div>
|
||||
<div class="d-flex">
|
||||
<div class="component-select">
|
||||
<select class="select-list" name="ownerField" th:field="*{ownerField}">
|
||||
<option value="">전체</option>
|
||||
<option value="name">이름</option>
|
||||
<option value="phone">전화번호</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="component-input">
|
||||
<div class="input-field">
|
||||
<input type="text" id="temp_input_0001" name="ownerValue" th:field="*{ownerValue}" placeholder="이름 입력">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label>실사</label>
|
||||
<select name="regionMainCode" th:field="*{regionMainCode}">
|
||||
<option value="">전체</option>
|
||||
<option th:each="item : ${regionMainList}"
|
||||
th:value="${item.id}"
|
||||
th:text="${item.codeText}">
|
||||
</select>
|
||||
<div class="input-group">
|
||||
<div class="d-flex">
|
||||
<div class="component-select">
|
||||
<div class="input-label">
|
||||
<p class="label-txt">
|
||||
실사
|
||||
</p>
|
||||
</div>
|
||||
<select class="select-list" name="regionMainCode" th:field="*{regionMainCode}">
|
||||
<option value="">전체</option>
|
||||
<option th:each="item : ${regionMainList}"
|
||||
th:value="${item.id}"
|
||||
th:text="${item.codeText}">
|
||||
</select>
|
||||
</div>
|
||||
<div class="component-select">
|
||||
<div class="input-label">
|
||||
<p class="label-txt">
|
||||
지역
|
||||
</p>
|
||||
</div>
|
||||
<select class="select-list" name="regionSubCode" th:field="*{regionSubCode}">
|
||||
<option value="">전체</option>
|
||||
<option th:each="item : ${regionSubList}"
|
||||
th:value="${item.id}"
|
||||
th:text="${item.codeValue + '. ' + item.codeText}">
|
||||
</select>
|
||||
</div>
|
||||
<div class="component-select">
|
||||
<div class="input-label">
|
||||
<p class="label-txt">
|
||||
세부지역
|
||||
</p>
|
||||
</div>
|
||||
<select class="select-list" name="regionDetailCode" th:field="*{regionDetailCode}">
|
||||
<option value="">전체</option>
|
||||
<option th:each="item : ${regionDetailList}"
|
||||
th:value="${item.id}"
|
||||
th:text="${item.codeValue + '. ' + item.codeText}">
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label>지역</label>
|
||||
<select name="regionSubCode" th:field="*{regionSubCode}">
|
||||
<option value="">전체</option>
|
||||
<option th:each="item : ${regionSubList}"
|
||||
th:value="${item.id}"
|
||||
th:text="${item.codeValue + '. ' + item.codeText}">
|
||||
</select>
|
||||
<div class="input-group">
|
||||
<div class="d-flex">
|
||||
<div class="component-select">
|
||||
<div class="input-label">
|
||||
<p class="label-txt">
|
||||
업종 대분류
|
||||
</p>
|
||||
</div>
|
||||
<select class="select-list" name="industryLargeCode" th:field="*{industryLargeCode}">
|
||||
<option value="">전체</option>
|
||||
<option th:each="item : ${industryLargeList}"
|
||||
th:value="${item.id}"
|
||||
th:text="${item.codeValue + '. ' + item.codeText}">
|
||||
</select>
|
||||
</div>
|
||||
<div class="component-select">
|
||||
<div class="input-label">
|
||||
<p class="label-txt">
|
||||
업종 중분류
|
||||
</p>
|
||||
</div>
|
||||
<select class="select-list" name="industryMiddleCode" th:field="*{industryMiddleCode}">
|
||||
<option value="">전체</option>
|
||||
<option th:each="item : ${industryMiddleList}"
|
||||
th:value="${item.id}"
|
||||
th:text="${item.codeValue + '. ' + item.codeText}">
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label>세부지역</label>
|
||||
<select name="regionDetailCode" th:field="*{regionDetailCode}">
|
||||
<option value="">전체</option>
|
||||
<option th:each="item : ${regionDetailList}"
|
||||
th:value="${item.id}"
|
||||
th:text="${item.codeValue + '. ' + item.codeText}">
|
||||
</select>
|
||||
<div class="input-group">
|
||||
<div class="component-select">
|
||||
<div class="input-label">
|
||||
<p class="label-txt">
|
||||
일계부 현황
|
||||
</p>
|
||||
</div>
|
||||
<select class="select-list" name="progressType" th:field="*{progressType}">
|
||||
<option value="">전체</option>
|
||||
<option value="PROGRESS_25">25% 미만</option>
|
||||
<option value="PROGRESS_50">25~50% 미만</option>
|
||||
<option value="PROGRESS_75">50~75% 미만</option>
|
||||
<option value="PROGRESS_75_UP">75% 이상</option>
|
||||
<option value="PROGRESS_100">100% 완료</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label>업종 대분류</label>
|
||||
<select name="industryLargeCode" th:field="*{industryLargeCode}">
|
||||
<option value="">전체</option>
|
||||
<option th:each="item : ${industryLargeList}"
|
||||
th:value="${item.id}"
|
||||
th:text="${item.codeValue + '. ' + item.codeText}">
|
||||
</select>
|
||||
<div class="input-group">
|
||||
<div class="d-flex">
|
||||
<div class="component-select">
|
||||
<div class="input-label">
|
||||
<p class="label-txt">
|
||||
당일 1차 방문
|
||||
</p>
|
||||
</div>
|
||||
<select class="select-list" name="isFirstVisited" th:field="*{isFirstVisited}">
|
||||
<option value="">전체</option>
|
||||
<option value="true">방문</option>
|
||||
<option value="false">미방문</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="component-select">
|
||||
<div class="input-label">
|
||||
<p class="label-txt">
|
||||
당월 2차 방문
|
||||
</p>
|
||||
</div>
|
||||
<select class="select-list" name="isSecondVisited" th:field="*{isSecondVisited}">
|
||||
<option value="">전체</option>
|
||||
<option value="true">방문</option>
|
||||
<option value="false">미방문</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="component-select">
|
||||
<div class="input-label">
|
||||
<p class="label-txt">
|
||||
답례품 방문
|
||||
</p>
|
||||
</div>
|
||||
<select class="select-list" name="isGiftSent" th:field="*{isGiftSent}">
|
||||
<option value="">전체</option>
|
||||
<option value="true">전달</option>
|
||||
<option value="false">미전달</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label>업종 중분류</label>
|
||||
<select name="industryMiddleCode" th:field="*{industryMiddleCode}">
|
||||
<option value="">전체</option>
|
||||
<option th:each="item : ${industryMiddleList}"
|
||||
th:value="${item.id}"
|
||||
th:text="${item.codeValue + '. ' + item.codeText}">
|
||||
</select>
|
||||
<div class="input-group">
|
||||
<div class="input-label">
|
||||
<p class="label-txt">
|
||||
조사원
|
||||
</p>
|
||||
</div>
|
||||
<div class="d-flex">
|
||||
<div class="component-select">
|
||||
<select class="select-list" name="researcherField" th:field="*{researcherField}">
|
||||
<option value="">전체</option>
|
||||
<option value="name">이름</option>
|
||||
<option value="phone">전화번호</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="component-input">
|
||||
<div class="input-field">
|
||||
<input type="text" id="temp_input_0002" name="researcherValue" placeholder="이름 입력" th:field="*{researcherValue}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label>일계부 현황</label>
|
||||
<select name="progressType" th:field="*{progressType}">
|
||||
<option value="">전체</option>
|
||||
<option value="PROGRESS_25">25% 미만</option>
|
||||
<option value="PROGRESS_50">25~50% 미만</option>
|
||||
<option value="PROGRESS_75">50~75% 미만</option>
|
||||
<option value="PROGRESS_75_UP">75% 이상</option>
|
||||
<option value="PROGRESS_100">100% 완료</option>
|
||||
</select>
|
||||
<div class="input-group">
|
||||
<div class="input-label">
|
||||
<p class="label-txt">
|
||||
패널 유지 여부
|
||||
</p>
|
||||
</div>
|
||||
<div class="component-select">
|
||||
<select class="select-list" name="isPanel" th:field="*{isPanel}">
|
||||
<option value="">전체</option>
|
||||
<option value="true">유지</option>
|
||||
<option value="false">비유지</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label>당월 1차 방문</label>
|
||||
<select name="isFirstVisited" th:field="*{isFirstVisited}">
|
||||
<option value="">전체</option>
|
||||
<option value="true">방문</option>
|
||||
<option value="false">미방문</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<label>당월 2차 방문</label>
|
||||
<select name="isSecondVisited" th:field="*{isSecondVisited}">
|
||||
<option value="">전체</option>
|
||||
<option value="true">방문</option>
|
||||
<option value="false">미방문</option>
|
||||
</select>
|
||||
<!-- 버튼 그룹 -->
|
||||
<div class="component-btns">
|
||||
<div class="btns-row">
|
||||
<button type="button" class="btn" onclick="location.href = location.pathname">
|
||||
<span class="btn-txt">초기화</span>
|
||||
</button>
|
||||
<button type="submit" class="btn btn-primary">
|
||||
<span class="btn-txt">검색</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<label>답례품 전달</label>
|
||||
<select name="isGiftSent" th:field="*{isGiftSent}">
|
||||
<option value="">전체</option>
|
||||
<option value="true">전달</option>
|
||||
<option value="false">미전달</option>
|
||||
</select>
|
||||
<section>
|
||||
<p class="input-label" style="font-size: 16px;">총 <span id="totalElements">0</span>건</p>
|
||||
<!-- 테이블 영역 -->
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<div class="component-input">
|
||||
<label class="checkbox-inner">
|
||||
<input type="checkbox" id="temp_checkbox_0003" name="temp_checkbox_0001">
|
||||
</label>
|
||||
</div>
|
||||
</th>
|
||||
<th>임가번호</th>
|
||||
<th>이름</th>
|
||||
<th>전화번호</th>
|
||||
<th>실사</th>
|
||||
<th>지역</th>
|
||||
<th>세부지역</th>
|
||||
<th>업종(대분류)</th>
|
||||
<th>업종(중분류)</th>
|
||||
<th>당월 일계부 현황</th>
|
||||
<th>당월 1차 일가방문</th>
|
||||
<th>당월 2차 일가방문</th>
|
||||
<th>답례품 전달</th>
|
||||
<th class="hide-role-researcher">조사원</th>
|
||||
<th class="hide-role-researcher">조사원 휴대전화</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="listTBody">
|
||||
|
||||
<span class="hide-role-researcher">
|
||||
<label>조사원</label>
|
||||
<select name="researcherField" th:field="*{researcherField}">
|
||||
<option value="">전체</option>
|
||||
<option value="name">이름</option>
|
||||
<option value="phone">전화번호</option>
|
||||
</select>
|
||||
<input type="text" name="researcherValue" placeholder="" th:field="*{researcherValue}">
|
||||
</span>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<label>패널 유지 여부</label>
|
||||
<select name="isPanel" th:field="*{isPanel}">
|
||||
<option value="">전체</option>
|
||||
<option value="true">유지</option>
|
||||
<option value="false">비유지</option>
|
||||
</select>
|
||||
<!-- 페이지네이션 -->
|
||||
<div class="row paging"></div>
|
||||
|
||||
<div>
|
||||
<button type="reset" onclick="location.href = location.pathname">초기화</button>
|
||||
<button type="submit">검색</button>
|
||||
<div class="component-btns bottom-btn-group">
|
||||
<div class="btns-row align-right">
|
||||
<button type="button" class="btn">
|
||||
<span class="btn-txt">엑셀 다운로드 <i class="ico-download ico-small" aria-hidden="true"></i></span>
|
||||
</button>
|
||||
<button type="button" class="btn">
|
||||
<span class="btn-txt">임가 등록</span>
|
||||
</button>
|
||||
<button type="button" class="btn">
|
||||
<span class="btn-txt">조사원 매핑</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>총 <span id="totalElements">100</span>건</p>
|
||||
|
||||
<table border="1" style="width: 100%; ">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 40px;"><input type="checkbox"></th>
|
||||
<th style="width: 80px;">임가번호</th>
|
||||
<th style="width: 80px;">경영주명</th>
|
||||
<th style="width: 120px;">휴대전화</th>
|
||||
<th style="width: 60px;">실사</th>
|
||||
<th style="width: 100px;">지역</th>
|
||||
<th style="width: 100px;">세부지역</th>
|
||||
<th style="width: 120px;">업종 대분류</th>
|
||||
<th style="width: 120px;">업종 중분류</th>
|
||||
<th style="width: 120px;">당월 일계부 현황</th>
|
||||
<th style="width: 100px;">1차 방문일</th>
|
||||
<th style="width: 100px;">2차 방문일</th>
|
||||
<th style="width: 100px;">답례품 전달</th>
|
||||
<th style="width: 80px;" class="hide-role-researcher">조사원</th>
|
||||
<th style="width: 120px;" class="hide-role-researcher">조사원 휴대전화</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="listTBody">
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<div class="row paging"></div>
|
||||
|
||||
<div>
|
||||
<!-- <button>엑셀 다운로드</button>-->
|
||||
<!-- <button>임가 등록</button>-->
|
||||
@@ -187,18 +330,24 @@
|
||||
tbody.append(
|
||||
`
|
||||
<tr>
|
||||
<td><input type="checkbox"></td>
|
||||
<td><a href="/household/households/${ct.householdSeq}">${ct.householdNum}</a></td> <!-- 임가번호 -->
|
||||
<td>${ct.householdName}</td> <!-- 경영주 이름 -->
|
||||
<td>${ct.householdPhone}</td> <!-- 경영주 번호 -->
|
||||
<td>${ct.regionMainName}</td> <!-- 실사 -->
|
||||
<td>${ct.regionSubName}</td> <!-- 지역 -->
|
||||
<td>${ct.regionDetailName}</td> <!-- 세부지역 -->
|
||||
<td>${isEmpty(ct.industryLargeName)}</td> <!-- 업종 대분류 -->
|
||||
<td>${isEmpty(ct.industryMiddleName)}</td> <!-- 업종 중분류1 -->
|
||||
<td>${ct.progressPercent}%</td> <!-- 임가 진행 상황 -->
|
||||
<td>${isEmpty(ct.firstVisitDate)}</td> <!-- 1차방문날짜 -->
|
||||
<td>${isEmpty(ct.secondVisitDate)}</td> <!-- 2차방문날짜 -->
|
||||
<td>
|
||||
<div class="component-input">
|
||||
<label class="checkbox-inner">
|
||||
<input type="checkbox" id="temp_checkbox_000${ct.householdSeq}" name="temp_checkbox_000${ct.householdSeq}">
|
||||
</label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="underline"><a href="/household/households/${ct.householdSeq}">${ct.householdNum}</a></td><!-- 임가번호 -->
|
||||
<td class="underline"><a href="/household/households/${ct.householdSeq}">${ct.householdName}</a></td><!-- 경영주 이름 -->
|
||||
<td>${ct.householdPhone}</td><!-- 경영주 번호 -->
|
||||
<td>${ct.regionMainName}</td><!-- 실사 -->
|
||||
<td>${ct.regionSubName}</td><!-- 지역 -->
|
||||
<td>${ct.regionDetailName}</td><!-- 세부지역 -->
|
||||
<td>${isEmpty(ct.industryLargeName)}</td><!-- 업종 대분류 -->
|
||||
<td>${isEmpty(ct.industryMiddleName)}</td><!-- 업종 중분류1 -->
|
||||
<td>${ct.progressPercent}%</td><!-- 임가 진행 상황 -->
|
||||
<td>${isEmpty(ct.firstVisitDate)}</td><!-- 1차방문날짜 -->
|
||||
<td>${isEmpty(ct.secondVisitDate)}</td><!-- 2차방문날짜 -->
|
||||
<td>${ct.isGiftSent ? "전달" : "미전달"}</td> <!-- 답례품 -->
|
||||
<td class="hide-role-researcher">${isEmpty(ct.researcherName)}</td> <!-- 조사원이름 -->
|
||||
<td class="hide-role-researcher">${isEmpty(ct.researcherPhone)}</td> <!-- 조사원번호 -->
|
||||
|
||||
Reference in New Issue
Block a user