jhleem / egov star

이다솜 이다솜 2022-02-10 @15

[20220210 이다솜] 부서관리 코밋
Index: base3.10/src/main/java/egovframework/com/uss/umt/web/EgovDeptManageController.java =================================================================== --- base3.10/src/main/java/egovframework/com/uss/umt/web/EgovDeptManageController.java (revision 14) +++ base3.10/src/main/java/egovframework/com/uss/umt/web/EgovDeptManageController.java (revision 15) @@ -1,13 +1,5 @@ package egovframework.com.uss.umt.web; -import egovframework.com.cmm.EgovMessageSource; -import egovframework.com.cmm.annotation.IncludedInfo; -import egovframework.com.uss.umt.service.DeptManageVO; -import egovframework.com.uss.umt.service.EgovDeptManageService; - -import egovframework.rte.fdl.idgnr.EgovIdGnrService; -import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; - import javax.annotation.Resource; import org.springframework.beans.factory.annotation.Autowired; @@ -20,6 +12,13 @@ import org.springframework.web.bind.annotation.RequestParam; import org.springmodules.validation.commons.DefaultBeanValidator; +import egovframework.com.cmm.EgovMessageSource; +import egovframework.com.cmm.annotation.IncludedInfo; +import egovframework.com.uss.umt.service.DeptManageVO; +import egovframework.com.uss.umt.service.EgovDeptManageService; +import egovframework.rte.fdl.idgnr.EgovIdGnrService; +import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; + /** * 부서관련 처리를 비지니스 클래스로 전달하고 처리된결과를 해당 웹 화면으로 전달하는 Controller를 정의한다 * @author 공통서비스 개발팀 조재영 @@ -62,8 +61,7 @@ @RequestMapping("/uss/umt/dpt/selectDeptManageListView.do") public String selectDeptManageListView() throws Exception { - return "forward:/uss/umt/dpt/selectDeptManageList.do"; -// return "egovframework/com/uss/umt/EgovDeptManageList"; + return "redirect:/uss/umt/dpt/selectDeptManageList.do"; } /** @@ -92,7 +90,7 @@ paginationInfo.setTotalRecordCount(totCnt); model.addAttribute("paginationInfo", paginationInfo); model.addAttribute("message", egovMessageSource.getMessage("success.common.select")); - return "egovframework/com/uss/umt/EgovDeptManageList"; + return ".adminLayout/부서관리목록/com/uss/umt/EgovDeptManageList"; } /** @@ -108,7 +106,7 @@ model.addAttribute("deptManage", egovDeptManageService.selectDeptManage(deptManageVO)); model.addAttribute("message", egovMessageSource.getMessage("success.common.select")); - return "egovframework/com/uss/umt/EgovDeptManageUpdt"; + return ".adminLayout/부서관리수정/com/uss/umt/EgovDeptManageUpdt"; } /** @@ -120,7 +118,7 @@ public String insertViewDeptManage(@ModelAttribute("deptManageVO") DeptManageVO deptManageVO, ModelMap model) throws Exception { model.addAttribute("deptManage", deptManageVO); - return "egovframework/com/uss/umt/EgovDeptManageInsert"; + return ".adminLayout/부서관리등록/com/uss/umt/EgovDeptManageInsert"; } /** @@ -136,11 +134,11 @@ deptManageVO.setOrgnztId(egovDeptManageIdGnrService.getNextStringId()); if (bindingResult.hasErrors()) { - return "egovframework/com/uss/umt/EgovDeptManageInsert"; + return ".adminLayout/부서관리등록/com/uss/umt/EgovDeptManageInsert"; } else { egovDeptManageService.insertDeptManage(deptManageVO); model.addAttribute("message", egovMessageSource.getMessage("success.common.insert")); - return "forward:/uss/umt/dpt/selectDeptManageList.do"; + return "redirect:/uss/umt/dpt/selectDeptManageList.do?" + deptManageVO.searchParam(2); } } @@ -154,11 +152,11 @@ beanValidator.validate(deptManageVO, bindingResult); //validation 수행 if (bindingResult.hasErrors()) { - return "egovframework/com/uss/umt/EgovDeptManageUpdt"; + return ".adminLayout/부서관리수정/com/uss/umt/EgovDeptManageUpdt?" + deptManageVO.searchParam(2); } else { egovDeptManageService.updateDeptManage(deptManageVO); model.addAttribute("message", egovMessageSource.getMessage("success.common.insert")); - return "forward:/uss/umt/dpt/selectDeptManageList.do"; + return "redirect:/uss/umt/dpt/selectDeptManageList.do?" + deptManageVO.searchParam(2); } } @@ -173,7 +171,7 @@ egovDeptManageService.deleteDeptManage(deptManageVO); model.addAttribute("message", egovMessageSource.getMessage("success.common.delete")); - return "forward:/uss/umt/dpt/selectDeptManageList.do"; + return "redirect:/uss/umt/dpt/selectDeptManageList.do"; } /** @@ -191,7 +189,7 @@ deptManageVO.setOrgnztId(strDeptManages[i]); egovDeptManageService.deleteDeptManage(deptManageVO); } - + model.addAttribute("message", egovMessageSource.getMessage("success.common.delete")); return "forward:/uss/umt/dpt/selectDeptManageList.do"; } Index: base3.10/src/main/java/egovframework/com/uss/umt/service/DeptManageVO.java =================================================================== --- base3.10/src/main/java/egovframework/com/uss/umt/service/DeptManageVO.java (revision 14) +++ base3.10/src/main/java/egovframework/com/uss/umt/service/DeptManageVO.java (revision 15) @@ -1,14 +1,15 @@ package egovframework.com.uss.umt.service; -import egovframework.com.cmm.ComDefaultVO; +import egovframework.com.cmm.CustomDefaultVO; -public class DeptManageVO extends ComDefaultVO { +//public class DeptManageVO extends ComDefaultVO { +public class DeptManageVO extends CustomDefaultVO { private static final long serialVersionUID = 1L; private String orgnztId; private String orgnztNm; private String orgnztDc; - + /** * @return the orgnztId */ @@ -45,6 +46,5 @@ public void setOrgnztDc(String orgnztDc) { this.orgnztDc = orgnztDc; } - - + } Index: base3.10/src/main/resources/egovframework/mapper/com/uss/umt/EgovDeptManage_SQL_postgres.xml =================================================================== --- base3.10/src/main/resources/egovframework/mapper/com/uss/umt/EgovDeptManage_SQL_postgres.xml (revision 14) +++ base3.10/src/main/resources/egovframework/mapper/com/uss/umt/EgovDeptManage_SQL_postgres.xml (revision 15) @@ -9,31 +9,26 @@ <result property="orgnztDc" column="ORGNZT_DC"/> </resultMap> - <select id="selectDeptManageList" resultMap="deptManageVO"> - SELECT ORGNZT_ID, - ORGNZT_NM, - ORGNZT_DC - FROM COMTNORGNZTINFO - WHERE 1=1 - <if test="searchCondition == 1">AND - ORGNZT_NM LIKE CONCAT('%' , #{searchKeyword}, '%') - </if> - <![CDATA[ - ORDER BY ORGNZT_ID DESC - LIMIT #{recordCountPerPage} OFFSET #{firstIndex} - ]]> - </select> + <select id="selectDeptManageList" resultMap="deptManageVO"> + SELECT ORGNZT_ID, + ORGNZT_NM, + ORGNZT_DC + FROM COMTNORGNZTINFO + WHERE 1=1 + AND ORGNZT_NM LIKE CONCAT('%' , #{searchKeyword}, '%') + <![CDATA[ + ORDER BY ORGNZT_ID DESC + LIMIT #{recordCountPerPage} OFFSET #{firstIndex} + ]]> + </select> - <select id="selectDeptManageListTotCnt" resultType="int"> + <select id="selectDeptManageListTotCnt" resultType="int"> + SELECT COUNT(*) totcnt + FROM COMTNORGNZTINFO + WHERE 1=1 + AND ORGNZT_NM LIKE CONCAT('%' , #{searchKeyword}, '%') + </select> - SELECT COUNT(*) totcnt - FROM COMTNORGNZTINFO - WHERE 1=1 - <if test="searchCondition == 1">AND - ORGNZT_NM LIKE CONCAT('%' , #{searchKeyword}, '%') - </if> - </select> - <select id="selectDeptManage" resultMap="deptManageVO"> SELECT ORGNZT_ID, @@ -56,13 +51,13 @@ </insert> - <update id="updateDeptManage"> - UPDATE COMTNORGNZTINFO - SET ORGNZT_NM = #{orgnztNm}, - ORGNZT_DC = #{orgnztDc} - WHERE ORGNZT_ID = #{orgnztId} - </update> - + <update id="updateDeptManage"> + UPDATE COMTNORGNZTINFO + SET ORGNZT_NM = #{orgnztNm}, + ORGNZT_DC = #{orgnztDc} + WHERE ORGNZT_ID = #{orgnztId} + </update> + <delete id="deleteDeptManage"> DELETE FROM COMTNORGNZTINFO Index: base3.10/src/main/webapp/WEB-INF/jsp/egovframework/com/uss/umt/EgovDeptManageInsert.jsp =================================================================== --- base3.10/src/main/webapp/WEB-INF/jsp/egovframework/com/uss/umt/EgovDeptManageInsert.jsp (revision 14) +++ base3.10/src/main/webapp/WEB-INF/jsp/egovframework/com/uss/umt/EgovDeptManageInsert.jsp (revision 15) @@ -26,12 +26,7 @@ <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> <%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %> <c:set var="pageTitle"><spring:message code="comUssUmt.deptManage.title"/></c:set> -<!DOCTYPE html> -<html> -<head> -<title>${pageTitle} <spring:message code="title.create" /></title><!-- 부서관리 등록 --> -<meta http-equiv="content-type" content="text/html; charset=utf-8"> -<link type="text/css" rel="stylesheet" href="<c:url value='/css/egovframework/com/com.css' />"> + <%-- <script type="text/javascript" src="<c:url value='/js/egovframework/com/cmm/fms/EgovMultiFile.js'/>" ></script> --%> <script type="text/javascript" src="<c:url value='/js/egovframework/com/cmm/fms/EgovMultiFiles.js'/>" ></script> <script type="text/javascript" src="<c:url value="/validator.do"/>"></script> @@ -39,16 +34,16 @@ <script type="text/javaScript" language="javascript"> function fncSelectDeptManageList() { - var varFrom = document.getElementById("deptManage"); - varFrom.action = "<c:url value='/uss/umt/dpt/selectDeptManageList.do'/>"; - varFrom.submit(); + var varFrom = document.getElementById("deptManage"); + varFrom.action = "<c:url value='/uss/umt/dpt/selectDeptManageList.do'/>"; + varFrom.submit(); } function fncDeptManageInsert() { var varFrom = document.getElementById("deptManage"); varFrom.action = "<c:url value='/uss/umt/dpt/addDeptManage.do'/>"; - if(confirm("<spring:message code="common.save.msg" />")){ + if(confirm("<spring:message code="common.save.msg" />")){ if (!validateDeptManage(varFrom)) { return; } else { @@ -56,74 +51,88 @@ } } } + +/** + * 목록 조회 + */ +function fn_egov_list() { + var varFrom = document.getElementById("deptManage"); + varFrom.action = "<c:url value='/uss/umt/dpt/selectDeptManageList.do'/>"; + varFrom.submit(); +} +/** + * 등록 + */ +function fn_egov_regist() { + var varFrom = document.getElementById("deptManage"); + varFrom.action = "<c:url value='/uss/umt/dpt/addDeptManage.do'/>"; + varFrom.submit(); +} </script> </head> <body> -<!-- javascript warning tag --> -<noscript class="noScriptTitle"><spring:message code="common.noScriptTitle.msg" /></noscript> -<form:form commandName="deptManage" method="post" action="${pageContext.request.contextPath}/uss/umt/dpt/addDeptManage.do' />" onSubmit="fncDeptManageInsert(); return false;" enctype="multipart/form-data"> -<div class="wTableFrm"> - <!-- 타이틀 --> - <h2>${pageTitle} <spring:message code="title.create" /></h2> + <!-- javascript warning tag --> + <noscript class="noScriptTitle"><spring:message code="common.noScriptTitle.msg" /></noscript> + <form:form commandName="deptManage" method="post" action="${pageContext.request.contextPath}/uss/umt/dpt/addDeptManage.do' />" onSubmit="fncDeptManageInsert(); return false;" enctype="multipart/form-data"> + <div class="board_header"> + <h3>${pageTitle} <spring:message code="title.create" /></h3> + </div> - <!-- 등록폼 --> - <table class="wTable" summary="<spring:message code="common.summary.list" arguments="${pageTitle}" />"> - <caption>${pageTitle} <spring:message code="title.create" /></caption> - <colgroup> - <col style="width: 16%;"><col style="width: ;"> - </colgroup> - <tbody> - <!-- 입력 --> - <c:set var="inputTxt"><spring:message code="input.input" /></c:set> - <!-- 부서ID --> - <!-- - <c:set var="title"><spring:message code="comUssUmt.deptManageRegist.deptId" /></c:set> - <tr> - <th>${title} <span class="pilsu">*</span></th> - <td class="left"> - <form:input path="orgnztId" title="${title} ${inputTxt}" size="40" maxlength="50" /> - <div><form:errors path="orgnztId" cssClass="error" /></div> - </td> - </tr> - --> - <!-- 부서명 --> - <c:set var="title"><spring:message code="comUssUmt.deptManageRegist.deptName" /></c:set> - <tr> - <th><label for="orgnztNm">${title}</label> <span class="pilsu">*</span></th> - <td class="left"> - <form:input path="orgnztNm" title="${title} ${inputTxt}" size="40" maxlength="200" /> - <div><form:errors path="orgnztNm" cssClass="error" /></div> - </td> - </tr> - <!-- 설명 --> - <c:set var="title"><spring:message code="comUssUmt.deptManageRegist.deptDc" /></c:set> - <tr> - <th><label for="orgnztDc">${title}</label> <span class="pilsu">*</span></th> - <td class="left"> - <form:textarea path="orgnztDc" title="${title} ${inputTxt}" cols="300" rows="10" /> - <div><form:errors path="orgnztDc" cssClass="error" /></div> - </td> - </tr> - </tbody> - </table> + <div class="board_body"> + <!-- 등록폼 --> + <p class="must_text"> + <em>*</em>는 필수 입력사항입니다. + </p> + <table class="table_write"> + <caption>${pageTitle} <spring:message code="title.create" /></caption> + <colgroup> + <col style="width: 200px;"> + <col style="width:;"> + </colgroup> + <tbody> + <c:set var="inputTxt"><spring:message code="input.input" /></c:set> <!-- 입력 --> + <c:set var="title"><spring:message code="comUssUmt.deptManageRegist.deptName" /></c:set> <!-- 부서명 --> + <tr> + <th scope="col" class="must"><label for="orgnztNm">${title}</label></th> + <td class="left"> + <form:input path="orgnztNm" title="${title} ${inputTxt}" class="width100p inputText" /> + <div><form:errors path="orgnztNm" cssClass="error" /></div> + </td> + </tr> + <!-- 설명 --> + <c:set var="title"><spring:message code="comUssUmt.deptManageRegist.deptDc" /></c:set> + <tr> + <th scope="col" class="must"><label for="orgnztDc">${title}</label></th> + <td class="left"> + <form:textarea path="orgnztDc" title="${title} ${inputTxt}" class="textArea width100p height100" rows="20" cols="300" /> + <div><form:errors path="orgnztDc" cssClass="error" /></div> + </td> + </tr> + </tbody> + </table> + </div> - <!-- 하단 버튼 --> - <div class="btn"> - <span class="btn_s"><a href="<c:url value='/uss/umt/dpt/selectDeptManageList.do'/>" title="<spring:message code="button.list" /> <spring:message code="input.button" />"><spring:message code="button.list" /></a></span> - <input type="submit" class="s_submit" value="<spring:message code="button.create" />" title="<spring:message code="button.create" /> <spring:message code="input.button" />" /> - </div><div style="clear:both;"></div> - -</div> + <!-- 하단 버튼 --> + <div class="board_footer"> + <div class="bottom_wrap fl"> + <!-- 목록 --> + <button type="button" class="btn_s" title="<spring:message code="button.list" /> <spring:message code="input.button" />" onclick="fn_egov_list();"> + <spring:message code="button.list" /> + </button> + </div> + <div class="bottom_wrap fr"> + <!-- 등록 --> + <button type="button" class="btn_s" title="<spring:message code="button.create" /> <spring:message code="input.button" />" onclick="fn_egov_regist();"> + <spring:message code="button.create" /> + </button> + </div> + </div> -<!-- 검색조건 유지 --> -<input type="hidden" name="orgnztId" value="" > -<input type="hidden" name="searchCondition" value="<c:out value='${deptManageVO.searchCondition}'/>" > -<input type="hidden" name="searchKeyword" value="<c:out value='${deptManageVO.searchKeyword}'/>" > -<input type="hidden" name="pageIndex" value="<c:out value='${deptManageVO.pageIndex}'/>" > -</form:form> - + <!-- 검색조건 유지 --> + <input type="hidden" name="orgnztId" value="" > + <%-- <input type="hidden" name="searchKeyword" value="<c:out value='${deptManageVO.searchKeyword}'/>" > + <input type="hidden" name="pageIndex" value="<c:out value='${deptManageVO.pageIndex}'/>" > --%> + </form:form> </body> -</html> - Index: base3.10/src/main/webapp/WEB-INF/jsp/egovframework/com/uss/umt/EgovDeptManageList.jsp =================================================================== --- base3.10/src/main/webapp/WEB-INF/jsp/egovframework/com/uss/umt/EgovDeptManageList.jsp (revision 14) +++ base3.10/src/main/webapp/WEB-INF/jsp/egovframework/com/uss/umt/EgovDeptManageList.jsp (revision 15) @@ -26,117 +26,108 @@ <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> <c:set var="pageTitle"><spring:message code="comUssUmt.deptManage.title"/></c:set> -<!DOCTYPE html> -<html> -<head> -<title>${pageTitle} <spring:message code="title.list" /></title><!-- 부서관리 목록 --> -<meta http-equiv="content-type" content="text/html; charset=utf-8"> -<link type="text/css" rel="stylesheet" href="<c:url value='/css/egovframework/com/com.css' />"> + +<%-- <link type="text/css" rel="stylesheet" href="<c:url value='/css/egovframework/com/com.css' />"> --%> <script type="text/javaScript" language="javascript" defer="defer"> function fncSelectDeptManageList(pageNo){ - document.listForm.searchCondition.value = "1"; - document.listForm.pageIndex.value = pageNo; - document.listForm.action = "<c:url value='/uss/umt/dpt/selectDeptManageList.do'/>"; - document.listForm.submit(); + document.listForm.searchCondition.value = "1"; + document.listForm.pageIndex.value = pageNo; + document.listForm.action = "<c:url value='/uss/umt/dpt/selectDeptManageList.do'/>"; + document.listForm.submit(); } function fncSelectDeptManage(bannerId) { - document.listForm.bannerId.value = bannerId; - document.listForm.action = "<c:url value='/uss/umt/dpt/getDeptManage.do'/>"; - document.listForm.submit(); + document.listForm.bannerId.value = bannerId; + document.listForm.action = "<c:url value='/uss/umt/dpt/getDeptManage.do'/>"; + document.listForm.submit(); } function fncAddDeptManageInsert() { if(document.listForm.pageIndex.value == "") { document.listForm.pageIndex.value = 1; } - document.listForm.action = "<c:url value='/uss/umt/dpt/addViewDeptManage.do'/>"; - document.listForm.submit(); + document.listForm.action = "<c:url value='/uss/umt/dpt/addViewDeptManage.do'/>"; + document.listForm.submit(); } function linkPage(pageNo){ - document.listForm.searchCondition.value = "1"; - document.listForm.pageIndex.value = pageNo; - document.listForm.action = "<c:url value='/uss/umt/dpt/selectDeptManageList.do'/>"; - document.listForm.submit(); + document.listForm.searchCondition.value = "1"; + document.listForm.pageIndex.value = pageNo; + document.listForm.action = "<c:url value='/uss/umt/dpt/selectDeptManageList.do'/>"; + document.listForm.submit(); } function press() { - - if (event.keyCode==13) { - fncSelectDeptManageList('1'); - } + if (event.keyCode==13) { + fncSelectDeptManageList('1'); + } } </script> -</head> - <body> + <!-- javascript warning tag --> + <noscript class="noScriptTitle"><spring:message code="common.noScriptTitle.msg" /></noscript> + <form name="listForm" method="post"> + <div class="board_header"> + <h3>${pageTitle} <spring:message code="title.list" /></h3> + <!-- 검색영역 --> + <div class="search_box" title="<spring:message code="common.searchCondition.msg" />"> + <!-- 검색키워드 및 조회버튼 --> + <input class="inputText" name="searchKeyword" type="text" title="<spring:message code="title.search" /> <spring:message code="input.input" />" value="${deptManageVO.searchKeyword}" maxlength="255" > + <button class="btn_board"><spring:message code="button.inquire" /></button> + </div> + </div> -<!-- javascript warning tag --> -<noscript class="noScriptTitle"><spring:message code="common.noScriptTitle.msg" /></noscript> + <div class="board_body"> + <!-- 목록영역 --> + <table class="table_list"> + <caption>${pageTitle} <spring:message code="title.list" /></caption> + <colgroup> + <col class="width300"> + <col class="width200"> + <col class="width200"> + </colgroup> + <thead> + <tr> + <th class="board_th_link"><spring:message code="comUssUmt.deptManageList.deptId" /></th><!-- 부서 ID --> + <th class="board_th_link"><spring:message code="comUssUmt.deptManageList.deptName" /></th><!-- 부서 명 --> + <th><spring:message code="comUssUmt.deptManageList.deptDc" /></th><!--설명 --> + </tr> + </thead> + <tbody class="ov"> + <c:if test="${fn:length(deptManageList) == 0}"> + <tr> + <td colspan="3"><spring:message code="common.nodata.msg" /></td> + </tr> + </c:if> + <c:forEach var="deptManage" items="${deptManageList}" varStatus="status"> + <tr> + <td><a href="<c:url value='/uss/umt/dpt/getDeptManage.do'/>?pageIndex=${deptManageVO.pageIndex}&searchKeyword=${deptManageVO.searchKeyword}&orgnztId=${deptManage.orgnztId}"><c:out value="${deptManage.orgnztId}"/></a></td> + <td class="left"><a href="<c:url value='/uss/umt/dpt/getDeptManage.do'/>?pageIndex=${deptManageVO.pageIndex}&searchKeyword=${deptManageVO.searchKeyword}&orgnztId=${deptManage.orgnztId}"><c:out value="${deptManage.orgnztNm}"/></a></td> + <td class="left"><c:out value="${deptManage.orgnztDc}"/></td> + </tr> + </c:forEach> + </tbody> + </table> + </div> -<form name="listForm" method="post"> -<div class="board"> - <h1>${pageTitle} <spring:message code="title.list" /></h1> - <!-- 검색영역 --> - <div class="search_box" title="<spring:message code="common.searchCondition.msg" />"> - <ul> - <li><div style="line-height:4px;">&nbsp;</div><div><spring:message code="comUssUmt.deptManageSearchCondition.searchKeywordText" /> : </div></li><!-- 부서명 --> - <!-- 검색키워드 및 조회버튼 --> - <li> - <input class="s_input" name="searchKeyword" type="text" size="35" title="<spring:message code="title.search" /> <spring:message code="input.input" />" value='<c:out value="${deptManageVO.searchKeyword}"/>' maxlength="155" > - <input type="submit" class="s_btn" value="<spring:message code="button.inquire" />" title="<spring:message code="title.inquire" /> <spring:message code="input.button" />" /><!-- 조회 --> - <span class="btn_b"><a href="<c:url value='/uss/umt/dpt/addViewDeptManage.do'/>" onClick="fncAddDeptManageInsert(); return false;" title="<spring:message code="button.create" /> <spring:message code="input.button" />"><spring:message code="button.create" /></a></span><!-- 등록 --> - </li> - </ul> - </div> - - <!-- 목록영역 --> - <table class="board_list" summary="<spring:message code="common.summary.list" arguments="${pageTitle}" />"> - <caption>${pageTitle} <spring:message code="title.list" /></caption> - <colgroup> - <col style="width: 25%;"> - <col style="width: 30%;"> - <col style="width: ;"> - </colgroup> - <thead> - <tr> - <th class="board_th_link"><spring:message code="comUssUmt.deptManageList.deptId" /></th><!-- 부서 ID --> - <th class="board_th_link"><spring:message code="comUssUmt.deptManageList.deptName" /></th><!-- 부서 명 --> - <th><spring:message code="comUssUmt.deptManageList.deptDc" /></th><!--설명 --> - </tr> - </thead> - <tbody class="ov"> - <c:if test="${fn:length(deptManageList) == 0}"> - <tr> - <td colspan="3"><spring:message code="common.nodata.msg" /></td> - </tr> - </c:if> - <c:forEach var="deptManage" items="${deptManageList}" varStatus="status"> - <tr> - <td><a href="<c:url value='/uss/umt/dpt/getDeptManage.do'/>?pageIndex=${deptManageVO.pageIndex}&searchKeyword=${deptManageVO.searchKeyword}&orgnztId=${deptManage.orgnztId}"><c:out value="${deptManage.orgnztId}"/></a></td> - <td class="left"><a href="<c:url value='/uss/umt/dpt/getDeptManage.do'/>?pageIndex=${deptManageVO.pageIndex}&searchKeyword=${deptManageVO.searchKeyword}&orgnztId=${deptManage.orgnztId}"><c:out value="${deptManage.orgnztNm}"/></a></td> - <td class="left"><c:out value="${deptManage.orgnztDc}"/></td> - </tr> - </c:forEach> - </tbody> - </table> - - <!-- paging navigation --> - <c:if test="${!empty deptManageVO.pageIndex }"> - <div class="pagination"> - <ul><ui:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="linkPage"/></ul> - </div> - </c:if> - -</div><!-- end div board --> - -<input name="pageIndex" type="hidden" value="<c:out value='${deptManageVO.pageIndex}'/>"> -<input type="hidden" name="searchCondition" value="1"> -</form> - + <div class="board_footer"> + <!-- paging navigation --> + <div class="page" role="group" aria-label="..."> + <ul> + <ui:pagination paginationInfo="${paginationInfo}" type="admin" jsFunction="fn_egov_select_linkPage" /> + </ul> + </div> + <div class="bottom_wrap fr"> + <button type="button" class="btn_s" onclick="fncAddDeptManageInsert(); return false;" title="<spring:message code="button.create" /> <spring:message code="input.button" />"> + <spring:message code="button.create" /> + </button> + </div> + </div> +<%-- <span class="btn_b"><a href="<c:url value='/uss/umt/dpt/addViewDeptManage.do'/>" onClick="fncAddDeptManageInsert(); return false;" title="<spring:message code="button.create" /> <spring:message code="input.button" />"><spring:message code="button.create" /></a></span><!-- 등록 --> --%> + <input name="pageIndex" type="hidden" value="<c:out value='${deptManageVO.pageIndex}'/>"> + <input type="hidden" name="searchCondition" value="1"> + </form> </body> -</html> Index: base3.10/src/main/webapp/WEB-INF/jsp/egovframework/com/uss/umt/EgovDeptManageUpdt.jsp =================================================================== --- base3.10/src/main/webapp/WEB-INF/jsp/egovframework/com/uss/umt/EgovDeptManageUpdt.jsp (revision 14) +++ base3.10/src/main/webapp/WEB-INF/jsp/egovframework/com/uss/umt/EgovDeptManageUpdt.jsp (revision 15) @@ -26,111 +26,120 @@ <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> <%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %> <c:set var="pageTitle"><spring:message code="comUssUmt.deptManage.title"/></c:set> -<!DOCTYPE html> -<html> -<head> -<title>${pageTitle} <spring:message code="title.create" /></title><!-- 부서관리 등록 --> -<meta http-equiv="content-type" content="text/html; charset=utf-8"> -<link type="text/css" rel="stylesheet" href="<c:url value='/css/egovframework/com/com.css' />"> + <%-- <script type="text/javascript" src="<c:url value='/js/egovframework/com/cmm/fms/EgovMultiFile.js'/>" ></script> --%> <script type="text/javascript" src="<c:url value='/js/egovframework/com/cmm/fms/EgovMultiFiles.js'/>" ></script> <script type="text/javascript" src="<c:url value="/validator.do"/>"></script> <validator:javascript formName="deptManage" staticJavascript="false" xhtml="true" cdata="false"/> + <script type="text/javaScript" language="javascript"> function fncSelectDeptManageList() { - var varFrom = document.getElementById("deptManage"); - varFrom.action = "<c:url value='/uss/umt/dpt/selectDeptManageList.do'/>"; - varFrom.submit(); + var varFrom = document.getElementById("deptManage"); + varFrom.action = "<c:url value='/uss/umt/dpt/selectDeptManageList.do'/>"; + varFrom.submit(); } function fncDeptManageUpdate() { - var varFrom = document.getElementById("deptManage"); - varFrom.action = "<c:url value='/uss/umt/dpt/updtDeptManage.do'/>"; + var varFrom = document.getElementById("deptManage"); + varFrom.action = "<c:url value='/uss/umt/dpt/updtDeptManage.do'/>"; - if(confirm("<spring:message code="common.save.msg" />")){ - if(!validateBanner(varFrom)){ - return; - }else{ - varFrom.submit(); - } - } + if(confirm("<spring:message code="common.save.msg" />")){ + if(!validateBanner(varFrom)){ + return; + }else{ + varFrom.submit(); + } + } } function fncDeptManageDelete() { - var varFrom = document.getElementById("deptManage"); - varFrom.action = "<c:url value='/uss/umt/dpt/removeDeptManage.do'/>"; - if(confirm("<spring:message code="common.delete.msg" />")){ - varFrom.submit(); - } + var varFrom = document.getElementById("deptManage"); + varFrom.action = "<c:url value='/uss/umt/dpt/removeDeptManage.do'/>"; + if(confirm("<spring:message code="common.delete.msg" />")){ + varFrom.submit(); + } +} +/* ******************************************************** + * 목록으로 이동 + ******************************************************** */ +function fncDeptManageList() { + var varFrom = document.getElementById("deptManage"); + varFrom.action = "<c:url value='/uss/umt/dpt/selectDeptManageList.do'/>"; + varFrom.submit(); } </script> -</head> <body> + <!-- javascript warning tag --> + <noscript class="noScriptTitle"><spring:message code="common.noScriptTitle.msg" /></noscript> + <form:form commandName="deptManage" method="post" action="${pageContext.request.contextPath}/uss/umt/dpt/updtDeptManage.do' />" enctype="multipart/form-data"> -<!-- javascript warning tag --> -<noscript class="noScriptTitle"><spring:message code="common.noScriptTitle.msg" /></noscript> -<form:form commandName="deptManage" method="post" action="${pageContext.request.contextPath}/uss/umt/dpt/updtDeptManage.do' />" onSubmit="fncDeptManageUpdate(); return false;" enctype="multipart/form-data"> -<div class="wTableFrm"> - <!-- 타이틀 --> - <h2>${pageTitle} <spring:message code="title.create" /></h2> + <div class="board_header"> + <h3>${pageTitle} <spring:message code="title.create" /></h3> + </div> - <!-- 등록폼 --> - <table class="wTable" summary="<spring:message code="common.summary.list" arguments="${pageTitle}" />"> - <caption>${pageTitle} <spring:message code="title.create" /></caption> - <colgroup> - <col style="width: 16%;"><col style="width: ;"> - </colgroup> - <tbody> - <!-- 입력 --> - <c:set var="inputTxt"><spring:message code="input.input" /></c:set> - <!-- 부서ID --> - <c:set var="title"><spring:message code="comUssUmt.deptManageRegist.deptId" /></c:set> - <tr> - <th><label for="orgnztId">${title}</label> <span class="pilsu">*</span></th> - <td class="left"> - <form:input path="orgnztId" title="${title} ${inputTxt}" size="40" maxlength="50" /> - <div><form:errors path="orgnztId" cssClass="error" /></div> - </td> - </tr> - <!-- 부서명 --> - <c:set var="title"><spring:message code="comUssUmt.deptManageRegist.deptName" /></c:set> - <tr> - <th><label for="orgnztNm">${title}</label> <span class="pilsu">*</span></th> - <td class="left"> - <form:input path="orgnztNm" title="${title} ${inputTxt}" size="40" maxlength="200" /> - <div><form:errors path="orgnztNm" cssClass="error" /></div> - </td> - </tr> - <!-- 설명 --> - <c:set var="title"><spring:message code="comUssUmt.deptManageRegist.deptDc" /></c:set> - <tr> - <th><label for="orgnztDc">${title}</label> <span class="pilsu">*</span></th> - <td class="left"> - <form:textarea path="orgnztDc" title="${title} ${inputTxt}" cols="300" rows="10" /> - <div><form:errors path="orgnztDc" cssClass="error" /></div> - </td> - </tr> - </tbody> - </table> + <div class="board_body"> + <!-- 등록폼 --> + <p class="must_text"> + <em>*</em>는 필수 입력사항입니다. + </p> + <table class="table_write"> + <caption>${pageTitle} <spring:message code="title.create" /></caption> + <colgroup> + <col style="width: 200px;"> + <col style="width:;"> + </colgroup> - <!-- 하단 버튼 --> - <div class="btn"> - <span class="btn_s"><a href="<c:url value='/uss/umt/dpt/selectDeptManageList.do'/>" title="<spring:message code="button.list" /> <spring:message code="input.button" />"><spring:message code="button.list" /></a></span><!-- 목록 --> - <button class="btn_s2" onClick="fncDeptManageDelete();return false;" title="<spring:message code="button.delete" /> <spring:message code="input.button" />"><spring:message code="button.delete" /></button><!-- 삭제 --> - <input type="submit" class="s_submit" value="<spring:message code="button.save" />" title="<spring:message code="button.save" /> <spring:message code="input.button" />" /><!-- 저장 --> - </div><div style="clear:both;"></div> - -</div> + <tbody> + <c:set var="inputTxt"><spring:message code="input.input" /></c:set> <!-- 입력 --> + <c:set var="title"><spring:message code="comUssUmt.deptManageRegist.deptId" /></c:set> <!-- 부서ID --> + <tr> + <th scope="col" class="must"><label for="orgnztId">${title}</label></th> + <td class="left"> + <form:input path="orgnztId" title="${title} ${inputTxt}" class="width100p inputText" maxlength="50" readonly="true" /> + <div><form:errors path="orgnztId" cssClass="error" /></div> + </td> + </tr> + <!-- 부서명 --> + <c:set var="title"><spring:message code="comUssUmt.deptManageRegist.deptName" /></c:set> + <tr> + <th scope="col" class="must"><label for="orgnztNm">${title}</label></th> + <td class="left"> + <form:input path="orgnztNm" title="${title} ${inputTxt}" class="width100p inputText" maxlength="200" /> + <div><form:errors path="orgnztNm" cssClass="error" /></div> + </td> + </tr> + <!-- 설명 --> + <c:set var="title"><spring:message code="comUssUmt.deptManageRegist.deptDc" /></c:set> + <tr> + <th scope="col" class="must"><label for="orgnztDc">${title}</label></th> + <td class="left"> + <form:textarea path="orgnztDc" title="${title} ${inputTxt}" class="textArea width100p height100" rows="20" cols="300" /> + <div><form:errors path="orgnztDc" cssClass="error" /></div> + </td> + </tr> + </tbody> + </table> + </div> -<!-- 검색조건 유지 --> -<input type="hidden" name="searchCondition" value="<c:out value='${deptManageVO.searchCondition}'/>" > -<input type="hidden" name="searchKeyword" value="<c:out value='${deptManageVO.searchKeyword}'/>" > -<input type="hidden" name="pageIndex" value="<c:out value='${deptManageVO.pageIndex}'/>" > -</form:form> + <!-- 하단 버튼 --> + <div class="board_footer"> + <div class="bottom_wrap fl"> + <!-- 목록 --> + <button type="button" class="btn_s" title="<spring:message code="button.list" /> <spring:message code="input.button" />" onclick="fncDeptManageList();"> + <spring:message code="button.list" /> + </button> + </div> + <div class="bottom_wrap fr"> + <button class="btn_s" onClick="fncDeptManageDelete();return false;" title="<spring:message code="button.delete" /> <spring:message code="input.button" />"><spring:message code="button.delete" /></button> <!-- 삭제 --> + <button class="btn_s" onClick="fncDeptManageUpdate(); return false;" title="<spring:message code="button.save" /> <spring:message code="input.button" />" ><spring:message code="button.save" /></button> <!-- 저장 --> + </div> + </div> + <!-- 검색조건 유지 --> + <input type="text" name="searchKeyword" value="<c:out value='${deptManageVO.searchKeyword}'/>" > + <input type="text" name="pageIndex" value="<c:out value='${deptManageVO.pageIndex}'/>" > + </form:form> </body> -</html> -
Add a comment
List