중간저장.

강석 최 2022-09-05 14:57:58 +09:00
parent 4df7bf4399
commit 44e1c05655
4 changed files with 14 additions and 9 deletions

View File

@ -1,5 +1,6 @@
package com.dbnt.faisp.controller; package com.dbnt.faisp.controller;
import com.dbnt.faisp.codeMgt.CodeMgtService;
import com.dbnt.faisp.menuMgt.MenuMgtService; import com.dbnt.faisp.menuMgt.MenuMgtService;
import com.dbnt.faisp.menuMgt.model.MenuMgt; import com.dbnt.faisp.menuMgt.model.MenuMgt;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
@ -15,6 +16,7 @@ import java.util.List;
public class MenuMgtController { public class MenuMgtController {
private final MenuMgtService menuMgtService; private final MenuMgtService menuMgtService;
private final CodeMgtService codeMgtService;
@GetMapping("/menuMgtPage") @GetMapping("/menuMgtPage")
public ModelAndView menuMgtPage(MenuMgt menuMgt) { public ModelAndView menuMgtPage(MenuMgt menuMgt) {
@ -31,6 +33,9 @@ public class MenuMgtController {
public ModelAndView menuEditModal(MenuMgt menuMgt){ public ModelAndView menuEditModal(MenuMgt menuMgt){
ModelAndView mav = new ModelAndView("/adminPage/menuMgt/menuEditModal"); ModelAndView mav = new ModelAndView("/adminPage/menuMgt/menuEditModal");
mav.addObject("menuMgt", menuMgt); mav.addObject("menuMgt", menuMgt);
mav.addObject("cat1List", codeMgtService.selectCodeMgtList("CAT1"));
mav.addObject("cat2List", codeMgtService.selectCodeMgtList("CAT2"));
mav.addObject("cat3List", codeMgtService.selectCodeMgtList("CAT3"));
return mav; return mav;
} }

View File

@ -1,7 +1,7 @@
spring.devtools.livereload.enabled=true spring.devtools.livereload.enabled=true
#file upload #file upload
spring.servlet.multipart.location=C:\\kcgFileManager spring.servlet.multipart.location=C:\\faispUploadFiles
spring.servlet.multipart.max-file-size=200MB spring.servlet.multipart.max-file-size=200MB
spring.servlet.multipart.max-request-size=500MB spring.servlet.multipart.max-request-size=500MB

View File

@ -15,8 +15,8 @@
<div class="col-sm-6"> <div class="col-sm-6">
<select class="form-select form-select-sm" id="cat1Cd" name="cat1Cd"> <select class="form-select form-select-sm" id="cat1Cd" name="cat1Cd">
<option value="">대분류 선택</option> <option value="">대분류 선택</option>
<th:block th:each="commonCode:${session.commonCode.get('CAT1')}"> <th:block th:each="cat1:${cat1List}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${commonCode.itemCd==menuMgt.cat1Cd}"></option> <option th:value="${cat1.itemCd}" th:text="${cat1.itemValue}" th:selected="${cat1.itemCd==menuMgt.cat1Cd}"></option>
</th:block> </th:block>
</select> </select>
</div> </div>
@ -26,8 +26,8 @@
<div class="col-sm-6"> <div class="col-sm-6">
<select class="form-select form-select-sm" id="cat2Cd" name="cat2Cd"> <select class="form-select form-select-sm" id="cat2Cd" name="cat2Cd">
<option value="">중분류 선택</option> <option value="">중분류 선택</option>
<th:block th:each="commonCode:${session.commonCode.get('CAT2')}"> <th:block th:each="cat2:${cat2List}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${commonCode.itemCd==menuMgt.cat2Cd}"></option> <option th:value="${cat2.itemCd}" th:text="${cat2.itemValue}" th:selected="${cat2.itemCd==menuMgt.cat2Cd}"></option>
</th:block> </th:block>
</select> </select>
</div> </div>
@ -37,8 +37,8 @@
<div class="col-sm-6"> <div class="col-sm-6">
<select class="form-select form-select-sm" id="cat3Cd" name="cat3Cd"> <select class="form-select form-select-sm" id="cat3Cd" name="cat3Cd">
<option value="">소분류 선택</option> <option value="">소분류 선택</option>
<th:block th:each="commonCode:${session.commonCode.get('CAT3')}"> <th:block th:each="cat3:${cat3List}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${commonCode.itemCd==menuMgt.cat3Cd}"></option> <option th:value="${cat3.itemCd}" th:text="${cat3.itemValue}" th:selected="${cat3.itemCd==menuMgt.cat3Cd}"></option>
</th:block> </th:block>
</select> </select>
</div> </div>

View File

@ -96,12 +96,12 @@
<td> <td>
<input type="checkbox" id="userChk" name="userChk" class="userInfoCheckBox" th:value="${userInfo.userSeq}"> <input type="checkbox" id="userChk" name="userChk" class="userInfoCheckBox" th:value="${userInfo.userSeq}">
</td> </td>
<th:block th:each="commonCode:${session.commonCodeList}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<th:block th:if="${commonCode.itemCd == userInfo.ogCd}"> <th:block th:if="${commonCode.itemCd == userInfo.ogCd}">
<td th:text="${commonCode.itemValue}"></td> <td th:text="${commonCode.itemValue}"></td>
</th:block> </th:block>
</th:block> </th:block>
<th:block th:each="commonCode:${session.commonCodeList}"> <th:block th:each="commonCode:${session.commonCode.get('OFC')}">
<th:block th:if="${commonCode.itemCd == userInfo.ofcCd}"> <th:block th:if="${commonCode.itemCd == userInfo.ofcCd}">
<td th:text="${commonCode.itemValue}"></td> <td th:text="${commonCode.itemValue}"></td>
</th:block> </th:block>