refactor: 소스 정리

JSP / sqlmapper xml
main
Jonguk. Lim 2 years ago
parent d78087e392
commit 05f2d084b5

@ -1,91 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.cmm.mapper.XitFrameCodeMapper">
<select id="findClCodes" resultType="kr.xit.framework.core.model.XitCodeVO">
/** findClCodes */
/** 분류코드 목록 조회 */
SELECT CL_CODE AS "clCode"
,CL_CODE_NM AS "clCodeNm"
,CL_CODE_DC AS "clCodeDc"
FROM XIT_CMMN_CL_CODE
WHERE USE_AT = 'Y'
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(clCode)">
AND CL_CODE = #{clCode}
</if>
</select>
<select id="findCmmnCodes" resultType="kr.xit.framework.core.model.XitCodeVO">
/** findCmmnCodes */
/** 공통코드 목록 조회 */
SELECT CODE_ID AS "codeId"
, CODE_ID_NM AS "codeIdNm"
, CODE_ID_DC AS "codeIdDc"
, CL_CODE AS "clCode"
FROM XIT_CMMN_CODE
WHERE USE_AT = 'Y'
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(codeId)">
AND CODE_ID = #{codeId}
</if>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(clCode)">
AND CL_CODE = #{clCode}
</if>
</select>
<select id="findCmmnDetailCodes" resultType="kr.xit.framework.core.model.XitCodeVO">
/** findCmmnDetailCodes */
/** 공통상세코드 목록 조회 */
SELECT CODE_ID AS "codeId"
,CODE AS "code"
,CODE_NM AS "codeNm"
,CODE_DC AS "codeDc"
FROM XIT_CMMN_DETAIL_CODE
WHERE USE_AT = 'Y'
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(codeId)">
AND CODE_ID = #{codeId}
</if>
</select>
<select id="findOrgnztCodes" resultType="kr.xit.framework.core.model.XitCodeVO">
/** findOrgnztCodes */
/** 조직코드 목록 조회 */
SELECT
#{tableNm} AS "codeId"
,ORGNZT_ID AS "code"
,ORGNZT_NM AS "codeNm"
,ORGNZT_DC AS "codeDc"
FROM XIT_ORGNZT_INFO
WHERE 1=1
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(orgnztId)">
AND ORGNZT_ID LIKE #{orgnztId}
</if>
</select>
<select id="findGroupCodes" resultType="kr.xit.framework.core.model.XitCodeVO">
/** findGroupCodes */
/** 그룹코드 목록 조회 */
SELECT
#{tableNm} AS "codeId"
,GROUP_ID AS "code"
,GROUP_NM AS "codeNm"
,GROUP_DC AS "codeDc"
FROM XIT_AUTHOR_GROUP_INFO
WHERE 1=1
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(groupId)">
AND GROUP_ID LIKE #{groupId}
</if>
</select>
</mapper>

@ -1,64 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.cmm.mapper.XitFrameFileMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT
A.ATCH_FILE_ID AS "atchFileId"
,B.FILE_CN AS "fileCn"
,B.FILE_SN AS "fileSn"
,B.FILE_STRE_COURS AS "fileStreCours"
,B.STRE_FILE_NM AS "streFileNm"
,B.FILE_EXTSN AS "fileExtsn"
,B.ORIGNL_FILE_NM AS "orignlFileNm"
,B.FILE_SIZE AS "fileSize"
,A.CREAT_DT AS "creatDt"
</sql>
<sql id="findList_FROM">
FROM XIT_FILE_ATTRB A
INNER JOIN XIT_FILE_DETAIL_INFO B ON A.ATCH_FILE_ID = B.ATCH_FILE_ID
</sql>
<sql id="findList_WHERE">
</sql>
<select id="findList" resultType="java.util.Map">
/** XitFrameFileMapper.findList */
/** 첨부파일 목록 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
AND A.ATCH_FILE_ID = #{atchFileId}
AND A.USE_AT = 'Y'
<!-- 이미지파일 여부 -->
<if test="isImageFile == 'true'">
AND UPPER (B.FILE_EXTSN) IN ('GIF', 'JPG', 'BMP', 'PNG')
</if>
ORDER BY B.FILE_SN
</select>
<select id="findView" resultType="java.util.Map">
/** XitFrameFileMapper.findView */
/** 첨부파일 상세정보 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
AND A.ATCH_FILE_ID = #{atchFileId}
AND B.FILE_SN = #{fileSn}
ORDER BY B.FILE_SN
</select>
</mapper>

@ -1,78 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.cmm.mapper.XitFramePopupMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<select id="findListZip" resultType="java.util.Map">
/** XitFramePopupMapper.findListZip */
/** 우편번호 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore"/>
</if>
<include refid="findListZip_SELECT"/>
<include refid="findListZip_FROM"/>
WHERE 1 = 1
<include refid="findListZip_WHERE"/>
<if test="searchGubun == 'list'">
<include refid="pageAfter"/>
</if>
</select>
<select id="findListZipTotCnt" resultType="int">
/** XitFramePopupMapper.findListZipTotCnt */
/** 우편번호 목록 조회 총 건수 */
SELECT COUNT(1) AS "CNT"
<include refid="findListZip_FROM"/>
WHERE 1 = 1
<include refid="findListZip_WHERE"/>
</select>
<sql id="findListZip_SELECT">
SELECT ZIP AS "zip"
, SN AS "sn"
, CTPRVN_NM AS "ctprvnNm"
, SIGNGU_NM AS "signguNm"
, EMD_NM AS "emdNm"
, LI_BULD_NM AS "liBuldNm"
, LNBR_DONG_HO AS "lnbrDongHo"
</sql>
<sql id="findListZip_FROM">
FROM XIT_ZIP
</sql>
<sql id="findListZip_WHERE">
<choose>
<when test="searchCondition== '1'.toString()">
AND ZIP = #{searchKeyword}
</when>
<when test="searchCondition== '2'.toString()">
AND CTPRVN_NM LIKE '%'||#{searchKeyword}||'%'
</when>
<when test="searchCondition== '3'.toString()">
AND SIGNGU_NM LIKE '%'||#{searchKeyword}||'%'
</when>
<when test="searchCondition== '4'.toString()">
AND EMD_NM LIKE '%'||#{searchKeyword}||'%'
</when>
<when test="searchCondition== '5'.toString()">
AND LI_BULD_NM LIKE '%'||#{searchKeyword}||'%'
</when>
</choose>
</sql>
</mapper>

@ -1,38 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.cmm.mapper.XitFrameSchedulerMapper">
<insert id="addSysLogSummaryOfYesterday">
/** addSysLogSummaryOfYesterday */
/** 시스템 로그 전날 로그 요약 등록 */
INSERT INTO XIT_SYS_LOG_SUMRY(
OCCRRNC_DE
,SRVC_NM
,METHOD_NM
,CREAT_CO
,UPDT_CO
,RDCNT
,DELETE_CO
,OUTPT_CO
,ERROR_CO
)
SELECT TO_CHAR(B.CREAT_DT, 'YYYYMMDD') AS "OCCRRNC_DE"
, 'Member-login' AS "SRVC_NM"
, 'actionLogin' AS "METHOD_NM"
, SUM(CASE WHEN B.CONECT_MTHD = 'I' THEN 1 ELSE 0 END) AS "CREAT_CO"
, SUM(CASE WHEN B.CONECT_MTHD = 'U' THEN 1 ELSE 0 END) AS "UPDT_CO"
, SUM(CASE WHEN B.CONECT_MTHD = 'R' THEN 1 ELSE 0 END) AS "RDCNT"
, SUM(CASE WHEN B.CONECT_MTHD = 'O' THEN 1 ELSE 0 END) AS "DELETE_CO"
, 0 AS "OUTPT_CO"
, 0 AS "ERROR_CO"
FROM XIT_CONECT_LOG B
WHERE NOT EXISTS (
SELECT FA.OCCRRNC_DE
FROM XIT_SYS_LOG_SUMRY FA
WHERE TRIM(FA.OCCRRNC_DE) = TO_CHAR((SYSDATE -1 ), 'YYYYMMDD')
)
AND TO_CHAR(B.CREAT_DT, 'YYYYMMDD') = TO_CHAR((SYSDATE -1 ), 'YYYYMMDD')
GROUP BY TO_CHAR(B.CREAT_DT, 'YYYYMMDD'), B.CONECT_MTHD
</insert>
</mapper>

@ -1,155 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.cmm.mapper.XitFrameUnitMapper">
<sql id="menuTree">
WITH TREE_QUERY(MENU_ID, PARNT_MENU_ID, MENU_NAME, MENU_FULL_PATH, MENU_FULL_PATH_NAME, MENU_DEPTH) AS
(
SELECT
A.MENU_NO AS "MENU_ID"
, A.UPPER_MENU_NO AS "PARNT_MENU_ID"
, A.MENU_NM AS "MENU_NAME"
, ''||A.MENU_NO AS "MENU_FULL_PATH"
, ''||A.MENU_NM AS "MENU_FULL_PATH_NAME"
, 1 AS "MENU_DEPTH"
FROM XIT_MENU_INFO A
INNER JOIN XIT_PROGRM_LIST B ON A.PROGRM_FILE_NM=B.PROGRM_FILE_NM
WHERE A.UPPER_MENU_NO = 0
UNION ALL
SELECT
A.MENU_NO AS "MENU_ID"
, A.UPPER_MENU_NO AS "PARNT_MENU_ID"
, A.MENU_NM AS "MENU_NAME"
, B.MENU_FULL_PATH || '_' || A.MENU_NO AS "MENU_FULL_PATH"
, B.MENU_FULL_PATH_NAME || ' > ' || A.MENU_NM AS "MENU_FULL_PATH_NAME"
, B.MENU_DEPTH+1 AS "MENU_DEPTH"
FROM XIT_MENU_INFO A
INNER JOIN TREE_QUERY B ON A.UPPER_MENU_NO = B.MENU_ID
WHERE B.MENU_ID != 0
)
</sql>
<select id="findMenuListByUser" resultType="java.util.Map">
/** XitFrameUnitMapper.findMenuListByUser */
/** 사용자별 메뉴 목록 조회 */
<include refid="menuTree"/>
SELECT
D.MENU_ID AS "menuSid"
,D.MENU_NAME AS "menuName"
,(SELECT DECODE(SA.URL,'/','#',, null, '#', '', '##', SA.URL) FROM XIT_PROGRM_LIST SA WHERE B.PROGRM_FILE_NM = SA.PROGRM_FILE_NM) AS "menuUrl"
,D.MENU_DEPTH AS "menuDepth"
,D.PARNT_MENU_ID AS "parentSid"
,D.MENU_FULL_PATH AS "menuPath"
,D.MENU_FULL_PATH_NAME AS "menuPathname"
,'' AS "superYn"
,(SELECT COUNT(1) FROM TREE_QUERY SA WHERE SA.PARNT_MENU_ID=D.MENU_ID) AS "childCnt"
FROM XIT_MENU_CREAT_DTLS A
INNER JOIN XIT_MENU_INFO B ON A.MENU_NO = B.MENU_NO
INNER JOIN (SELECT FA.AUTHOR_CODE, FA.SCRTY_SETUP_TRGET_ID
FROM XIT_USER_SCRTY_SETUP FA
WHERE FA.SCRTY_SETUP_TRGET_ID = #{uniqId}
) C ON A.AUTHOR_CODE = C.AUTHOR_CODE
INNER JOIN TREE_QUERY D ON B.MENU_NO=D.MENU_ID
WHERE 1=1
<!-- 2020.11.05. 박민규 - XIT_MENU_INFO.MENU_ORDR의 설정값대로 정렬이 되지 않아 수정 함 (MENU_NO를 PARNT_MENU_ID로 변경) -->
<!-- ORDER BY B.MENU_NO, B.MENU_ORDR -->
ORDER BY D.PARNT_MENU_ID, B.MENU_ORDR
</select>
<select id="findMenuListByAuthorCode" resultType="java.util.Map">
/** XitFrameUnitMapper.findMenuListByAuthorCode */
/** 권한코드별 메뉴 목록 조회 */
<include refid="menuTree"/>
SELECT
D.MENU_ID AS "menuSid"
,D.MENU_NAME AS "menuName"
,(SELECT DECODE(SA.URL,'/','#',SA.URL) FROM XIT_PROGRM_LIST SA WHERE B.PROGRM_FILE_NM = SA.PROGRM_FILE_NM) AS "menuUrl"
,D.MENU_DEPTH AS "menuDepth"
,D.PARNT_MENU_ID AS "parentSid"
,D.MENU_FULL_PATH AS "menuPath"
,D.MENU_FULL_PATH_NAME AS "menuPathname"
,'' AS "superYn"
,(SELECT COUNT(1) FROM TREE_QUERY SA WHERE SA.PARNT_MENU_ID=D.MENU_ID) AS "childCnt"
FROM XIT_MENU_CREAT_DTLS A
INNER JOIN XIT_MENU_INFO B ON A.MENU_NO = B.MENU_NO
INNER JOIN TREE_QUERY D ON B.MENU_NO=D.MENU_ID
WHERE 1=1
AND A.AUTHOR_CODE=#{authorCode}
<!-- 2020.11.05. 박민규 - XIT_MENU_INFO.MENU_ORDR의 설정값대로 정렬이 되지 않아 수정 함 (MENU_NO를 PARNT_MENU_ID로 변경) -->
<!-- ORDER BY B.MENU_NO, B.MENU_ORDR -->
ORDER BY D.PARNT_MENU_ID, B.MENU_ORDR
</select>
<select id="findMaxFileSn" resultType="int">
/** XitFrameUnitMapper.findMaxFileSn */
/** 파일순번 채번 */
SELECT NVL(MAX(FILE_SN),0)+1 AS "FILE_SN" FROM XIT_FILE_DETAIL_INFO WHERE ATCH_FILE_ID = #{atchFileId}
</select>
<select id="findLongTermDisconectUser" resultType="java.util.Map">
/** XitFrameUnitMapper.findLongTermDisconectUser */
/** 장기미접속 사용자 조회 */
SELECT A.USER_ID
,A.ESNTL_ID
FROM XIT_USER_INFO A
LEFT OUTER JOIN (
/** 현재일 기준 일정기간 내 접속 로그 정보 */
SELECT DISTINCT CONECT_ID AS "ESNTL_ID"
FROM XIT_CONECT_LOG
WHERE ERROR_OCCRRNC_AT = 'N'
AND CREAT_DT &gt;= ADD_MONTHS(SYSDATE, #{term})
AND CONECT_ID IS NOT NULL
) B ON A.ESNTL_ID = B.ESNTL_ID
WHERE B.ESNTL_ID IS NULL
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(esntl_id)">
AND B.ESNTL_ID = #{esntl_id}
</if>
</select>
<select id="findLatestBbsList" resultType="kr.xit.framework.biz.cmm.model.XitBbsVO">
/** XitFrameUnitMapper.findLatestBbsList */
/** 게시판 최신 게시글 목록 조회 */
SELECT BBS_ID
,NTT_ID
,NTT_NO
,NTT_SJ
,NTT_CN
,ANSWER_AT
,PARNTS_SNTNC_NO
,ANSWER_LC
,SORT_ORDR
,RDCNT
,USE_AT
,NTCE_BEGIN_DE
,NTCE_END_DE
,NTCR_ID
,NTCR_NM
,PASSWORD
,ATCH_FILE_ID
,FRST_REGIST_PNTTM
,FRST_REGISTER_ID
,LAST_UPDT_PNTTM
,LAST_UPDUSR_ID
FROM XIT_BBS
WHERE 1=1
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(bbsId )">AND BBS_ID = #{bbsId }</if>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(parntsSntncNo)">AND PARNTS_SNTNC_NO = #{parntsSntncNo}</if>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(useAt )">AND USE_AT = #{useAt }</if>
ORDER BY FRST_REGIST_PNTTM DESC
</select>
</mapper>

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.cmm.mapper.XitLoginMapper">
</mapper>

@ -1,55 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.cmm.mapper.XitMainMapper">
<select id="findMainMenuHeads" resultType="kr.xit.framework.core.model.XitMenuManageVO">
/** findMainMenuHeads */
/** 화면 상단 메뉴목록 조회 */
SELECT
B.MENU_NO AS "menuNo"
,B.MENU_ORDR AS "menuOrdr"
,B.MENU_NM AS "menuNm"
,B.UPPER_MENU_NO AS "upperMenuNo"
,B.MENU_DC AS "menuDc"
,B.RELATE_IMAGE_COURS AS "relateImagePath"
,B.RELATE_IMAGE_NM AS "relateImageNm"
,B.PROGRM_FILE_NM AS "progrmFileNm"
,(SELECT SA.URL FROM XIT_PROGRM_LIST SA WHERE B.PROGRM_FILE_NM = SA.PROGRM_FILE_NM) AS "chkURL"
,C.SCRTY_SETUP_TRGET_ID
FROM XIT_MENU_CREAT_DTLS A
INNER JOIN XIT_MENU_INFO B ON A.MENU_NO = B.MENU_NO
INNER JOIN (SELECT FA.AUTHOR_CODE, FA.SCRTY_SETUP_TRGET_ID
FROM XIT_USER_SCRTY_SETUP FA
WHERE FA.SCRTY_SETUP_TRGET_ID = #{tmp_UniqId}
) C ON A.AUTHOR_CODE = C.AUTHOR_CODE
WHERE 1=1
AND B.MENU_NO &gt; 0
AND B.UPPER_MENU_NO = 0
ORDER BY B.MENU_ORDR
</select>
<select id="findtMainMenuLefts" resultType="kr.xit.framework.core.model.XitMenuManageVO">
/** findtMainMenuLefts */
/** 화면 좌측 메뉴목록 조회 */
SELECT
B.MENU_NO AS "menuNo"
,B.MENU_ORDR AS "menuOrdr"
,B.MENU_NM AS "menuNm"
,B.UPPER_MENU_NO AS "upperMenuNo"
,B.RELATE_IMAGE_COURS AS "relateImagePath"
,B.RELATE_IMAGE_NM AS "relateImageNm"
,(SELECT SA.URL FROM XIT_PROGRM_LIST SA WHERE B.PROGRM_FILE_NM = SA.PROGRM_FILE_NM) AS "chkURL"
FROM XIT_MENU_CREAT_DTLS A
INNER JOIN XIT_MENU_INFO B ON A.MENU_NO = B.MENU_NO
INNER JOIN (SELECT FA.AUTHOR_CODE, FA.SCRTY_SETUP_TRGET_ID
FROM XIT_USER_SCRTY_SETUP FA
WHERE FA.SCRTY_SETUP_TRGET_ID = #{tmp_UniqId}
) C ON A.AUTHOR_CODE = C.AUTHOR_CODE
WHERE 1=1
ORDER BY B.MENU_ORDR
</select>
</mapper>

@ -1,68 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.cmm.mapper.XitTestMapper">
<select id="findTest" resultType="xitMap">
/** findTest */
/** 조회 테스트 */
SELECT 'admin' AS "ID"
,'123' AS "PWD"
FROM DUAL
WHERE 1=#{param}
</select>
<insert id="addTest">
/** addTest */
/** 등록 테스트 */
INSERT INTO XIT_CONECT_LOG(
LOG_ID
,CONECT_MTHD
,ERROR_OCCRRNC_AT
,ERROR_CODE
,CREAT_DT
)VALUES(
NVL(
#{log_id}
,'TEST_'||LPAD((SELECT NVL(REPLACE(MAX(LOG_ID),'TEST_',''),0)+1 AS "LOG_ID" FROM XIT_CONECT_LOG WHERE LOG_ID LIKE 'TEST_%') ,14 ,'0')
)
,'I'
,'N'
,NVL(#{error_code}, '00')
,SYSDATE
)
</insert>
<insert id="addListTest">
/** addListTest */
/** 리스트 등록 테스트 */
INSERT INTO XIT_CONECT_LOG(
LOG_ID
,CONECT_MTHD
,ERROR_OCCRRNC_AT
,ERROR_CODE
,CREAT_DT
)
<foreach collection="list" item="row" open="" close="" separator="UNION ALL">
SELECT
NVL(
#{row.log_id}
,'TEST_'||LPAD((SELECT NVL(REPLACE(MAX(LOG_ID),'TEST_',''),0)+1 AS "LOG_ID" FROM XIT_CONECT_LOG WHERE LOG_ID LIKE 'TEST_%') ,14 ,'0')
) AS "LOG_ID"
,'I' AS "CONECT_MTHD"
,'N' AS "ERROR_OCCRRNC_AT"
,NVL(#{row.error_code}, '00') AS "ERROR_CODE"
,SYSDATE AS "CREAT_DT"
FROM DUAL
</foreach>
</insert>
<delete id="removesXitConectLogForTestData">
/** 접속로그 테이블의 테스트 데이터 일괄 삭제 */
/** removesXitConectLogForTestData */
DELETE FROM XIT_CONECT_LOG
WHERE LOG_ID LIKE NVL(#{log_id}, 'BATCH_')||'%'
</delete>
</mapper>

@ -1,86 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.admin.mapper.XitAdminDbMngMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
</sql>
<sql id="findList_FROM">
</sql>
<sql id="findList_WHERE">
</sql>
<select id="findList" flushCache="true" useCache="false" resultType="kr.xit.framework.biz.mng.admin.model.XitAdminDbMngVO">
/** XitAdminDbMngMapper.findList */
/** 관리자DB관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitAdminDbMngMapper.findListTotCnt */
/** 관리자DB관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.admin.model.XitAdminDbMngVO">
/** XitAdminDbMngMapper.findView */
/** 관리자DB관리 상세정보 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE A.GROUP_ID = #{groupId}
</select>
<select id="findDynamicSql" flushCache="false" resultType="java.util.LinkedHashMap">
/** XitAdminDbMngMapper.findDynamicSql */
/** 관리자DB관리 동적질의문 조회 */
${dynamicSql}
</select>
<insert id="addDynamicSql" flushCache="false">
/** XitAdminDbMngMapper.addDynamicSql */
/** 관리자DB관리 동적질의문 등록 */
${dynamicSql}
</insert>
<update id="modifyDynamicSql" flushCache="false">
/** XitAdminDbMngMapper.modifyDynamicSql */
/** 관리자DB관리 동적질의문 수정 */
${dynamicSql}
</update>
<delete id="removeDynamicSql" flushCache="false">
/** XitAdminDbMngMapper.removeDynamicSql */
/** 관리자DB관리 동적질의문 삭제 */
${dynamicSql}
</delete>
</mapper>

@ -1,81 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.admin.mapper.XitConectionLogMngMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT
A.LOG_ID AS "logId"
,A.CREAT_DT AS "creatDt"
,A.CONECT_MTHD AS "loginMthd"
,A.CONECT_IP AS "loginIp"
,A.CONECT_ID AS "loginId"
,B.USER_NM AS "loginNm"
</sql>
<sql id="findList_FROM">
FROM XIT_CONECT_LOG A
LEFT OUTER JOIN XIT_VW_USER_MASTR B ON A.CONECT_ID = B.ESNTL_ID
</sql>
<sql id="findList_WHERE">
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(searchWrd)">
AND A.CONECT_MTHD LIKE '%' || #{searchWrd} || '%'
</if>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(searchBgnDe)">
AND TO_CHAR(A.CREAT_DT, 'YYYYMMDD') BETWEEN #{searchBgnDe} AND #{searchEndDe}
</if>
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.admin.model.XitConectionLogMngVO">
/** XitConectionLogMngMapper.findList */
/** 접속로그관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
ORDER BY A.CREAT_DT DESC
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitConectionLogMngMapper.findListTotCnt */
/** 접속로그관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.admin.model.XitConectionLogMngVO">
/** XitConectionLogMngMapper.findView */
/** 접속로그관리 상세정보 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE A.LOG_ID = #{logId}
</select>
</mapper>

@ -1,155 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.log.cnctn.dao.XitConectionStatsMngMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
</sql>
<sql id="findList_FROM">
</sql>
<sql id="findList_WHERE">
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.admin.model.XitConectionStatsMngVO">
/** XitConectionStatsMngMapper.findList */
/** 접속통계관리 목록 조회 */
<!-- <if test="searchGubun == 'list'"> -->
<!-- <include refid="pageBefore" /> -->
<!-- </if> -->
<!-- <include refid="findList_SELECT"/> -->
<!-- <include refid="findList_FROM"/> -->
<!-- WHERE 1=1 -->
<!-- <include refid="findList_WHERE"/> -->
<!-- <if test="searchGubun == 'list'"> -->
<!-- <include refid="pageAfter" /> -->
<!-- </if> -->
<choose>
<!-- 서비스별 통계 -->
<when test="statsKind == 'SERVICE'">
SELECT METHOD_NM AS conectMethod
, NVL(SUM(CREAT_CO),0) AS "creatCo"
, NVL(SUM(UPDT_CO),0) AS "updtCo"
, NVL(SUM(RDCNT),0) AS "inqireCo"
, NVL(SUM(DELETE_CO),0) AS "deleteCo"
, NVL(SUM(OUTPT_CO),0) AS "outptCo"
, NVL(SUM(ERROR_CO),0) AS "errorCo"
<!-- 기간검색(년) -->
<if test="'Y'.toString() == pdKind">
, SUBSTR(OCCRRNC_DE, 1, 4) AS "statsDate"
</if>
<!-- 기간검색(월) -->
<if test="'M'.toString() == pdKind">
, SUBSTR(OCCRRNC_DE, 1, 4) || '-' || SUBSTR(OCCRRNC_DE, 5, 2) AS "statsDate"
</if>
<!-- 기간검색(일) -->
<if test="'D'.toString() == pdKind">
, SUBSTR(OCCRRNC_DE, 1, 4) || '-' || SUBSTR(OCCRRNC_DE, 5, 2) || '-' || SUBSTR(OCCRRNC_DE, 7, 2) AS "statsDate"
</if>
, 0 AS "statsCo"
FROM XIT_SYS_LOG_SUMRY
WHERE OCCRRNC_DE BETWEEN REPLACE(#{fromDate},'-','') AND REPLACE(#{toDate},'-','')
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(detailStatsKind)">
AND SRVC_NM LIKE '%' || #{detailStatsKind} '%'
</if>
<if test="'Y'.toString() == pdKind">
GROUP BY METHOD_NM, SUBSTR(OCCRRNC_DE, 1, 4)
ORDER BY SUBSTR(OCCRRNC_DE, 1, 4)
</if>
<if test="'M'.toString() == pdKind">
GROUP BY METHOD_NM, SUBSTR(OCCRRNC_DE, 1, 4) || '-' || SUBSTR(OCCRRNC_DE, 5, 2)
ORDER BY SUBSTR(OCCRRNC_DE, 1, 4) || '-' || SUBSTR(OCCRRNC_DE, 5, 2)
</if>
<if test="'D'.toString() == pdKind">
GROUP BY METHOD_NM, SUBSTR(OCCRRNC_DE, 1, 4) || '-' || SUBSTR(OCCRRNC_DE, 5, 2) || '-' || SUBSTR(OCCRRNC_DE, 7, 2)
ORDER BY SUBSTR(OCCRRNC_DE, 1, 4) || '-' || SUBSTR(OCCRRNC_DE, 5, 2) || '-' || SUBSTR(OCCRRNC_DE, 7, 2)
</if>
</when>
<!-- 개인별 통계 -->
<when test="statsKind == 'PRSONAL'">
SELECT COUNT(CONECT_ID) AS "statsCo"
<!-- 기간검색(년) -->
<if test="'Y'.toString() == pdKind">
, SUBSTR(TO_CHAR(CREAT_DT, 'YYYYMMDD'), 1, 4) AS "statsDate"
</if>
<!-- 기간검색(월) -->
<if test="'M'.toString() == pdKind">
, SUBSTR(TO_CHAR(CREAT_DT, 'YYYYMMDD'), 1, 4) || '-' || SUBSTR(TO_CHAR(CREAT_DT, 'YYYYMMDD'), 5, 2) AS "statsDate"
</if>
<!-- 기간검색(일) -->
<if test="'D'.toString() == pdKind">
, SUBSTR(TO_CHAR(CREAT_DT, 'YYYYMMDD'), 1, 4) || '-' || SUBSTR(TO_CHAR(CREAT_DT, 'YYYYMMDD'), 5, 2) || '-' || SUBSTR(TO_CHAR(CREAT_DT, 'YYYYMMDD'), 7, 2) AS "statsDate"
</if>
, '' AS "conectMethod"
, 0 AS "creatCo"
, 0 AS "updtCo"
, 0 AS "inqireCo"
, 0 AS "deleteCo"
, 0 AS "outptCo"
, 0 AS "errorCo"
FROM XIT_CONECT_LOG
WHERE 1=1
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(detailStatsKind)">
AND CONECT_ID = #{detailStatsKind}
</if>
<!-- 시작일자~종료일자 기간제한 -->
AND TO_CHAR(CREAT_DT, 'YYYYMMDD') BETWEEN REPLACE(#{fromDate},'-','') AND REPLACE(#{toDate},'-','')
<if test="'Y'.toString() == pdKind">
GROUP BY SUBSTR(TO_CHAR(CREAT_DT, 'YYYYMMDD'), 1, 4)
ORDER BY SUBSTR(TO_CHAR(CREAT_DT, 'YYYYMMDD'), 1, 4)
</if>
<if test="'M'.toString() == pdKind">
GROUP BY SUBSTR(TO_CHAR(CREAT_DT, 'YYYYMMDD'), 1, 4) || '-' || SUBSTR(TO_CHAR(CREAT_DT, 'YYYYMMDD'), 5, 2)
ORDER BY SUBSTR(TO_CHAR(CREAT_DT, 'YYYYMMDD'), 1, 4) || '-' || SUBSTR(TO_CHAR(CREAT_DT, 'YYYYMMDD'), 5, 2)
</if>
<if test="'D'.toString() == pdKind">
GROUP BY SUBSTR(TO_CHAR(CREAT_DT, 'YYYYMMDD'), 1, 4) || '-' || SUBSTR(TO_CHAR(CREAT_DT, 'YYYYMMDD'), 5, 2) || '-' || SUBSTR(TO_CHAR(CREAT_DT, 'YYYYMMDD'), 7, 2)
ORDER BY SUBSTR(TO_CHAR(CREAT_DT, 'YYYYMMDD'), 1, 4) || '-' || SUBSTR(TO_CHAR(CREAT_DT, 'YYYYMMDD'), 5, 2) || '-' || SUBSTR(TO_CHAR(CREAT_DT, 'YYYYMMDD'), 7, 2)
</if>
</when>
</choose>
</select>
<select id="findListTotCnt" resultType="int">
/** XitConectionStatsMngMapper.findListTotCnt */
/** 접속통계관리 목록 총건수 조회 */
<!-- SELECT COUNT(1) AS "CNT" -->
<!-- <include refid="findList_FROM"/> -->
<!-- WHERE 1=1 -->
<!-- <include refid="findList_WHERE"/> -->
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.admin.model.XitConectionStatsMngVO">
/** XitConectionStatsMngMapper.findView */
/** 접속통계관리 상세정보 조회 */
<!-- <include refid="findList_SELECT"/> -->
<!-- <include refid="findList_FROM"/> -->
<!-- WHERE A.CODE_ID = #{codeId} -->
</select>
</mapper>

@ -1,146 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.auth.mapper.AuthByUserMgtMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT A.USER_ID AS "userId"
,A.USER_NM AS "userNm"
,A.GROUP_ID AS "groupId"
,B.MBER_TY_CODE AS "mberTyCode"
,(SELECT CODE_NM
FROM XIT_CMMN_DETAIL_CODE
WHERE CODE_ID = 'XIT012'
AND CODE = B.MBER_TY_CODE
AND USE_AT = 'Y') AS "mberTyNm"
,B.AUTHOR_CODE AS "authorCode"
,CASE WHEN B.SCRTY_SETUP_TRGET_ID IS NULL THEN 'N'
ELSE 'Y'
END AS "regYn"
,ESNTL_ID AS "uniqId"
</sql>
<sql id="findList_FROM">
FROM (
SELECT MBER_ID USER_ID, MBER_NM USER_NM, GROUP_ID, ESNTL_ID
FROM XIT_GNRL_MBER
UNION ALL
SELECT ENTRPRS_MBER_ID USER_ID, CMPNY_NM USER_NM, GROUP_ID, ESNTL_ID
FROM XIT_ENTRPRS_MBER
UNION ALL
SELECT USER_ID, USER_NM USER_NM, GROUP_ID, ESNTL_ID
FROM XIT_USER_INFO ) A
LEFT OUTER JOIN XIT_USER_SCRTY_SETUP B ON A.ESNTL_ID = B.SCRTY_SETUP_TRGET_ID
</sql>
<sql id="findList_WHERE">
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(searchKeyword)">
<if test="'1'.toString() == searchCondition">
AND A.USER_ID LIKE '%'||#{searchKeyword}||'%'
</if>
<if test="'2'.toString() == searchCondition">
AND A.USER_NM LIKE '%'||#{searchKeyword}||'%'
</if>
<if test="'3'.toString() == searchCondition">
AND A.GROUP_ID = #{searchKeyword}
</if>
</if>
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.auth.model.XitAuthUsrMngVO">
/** XitAuthUsrMngMapper.findList */
/** 사용자별권한관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitAuthUsrMngMapper.findListTotCnt */
/** 사용자별권한관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.auth.model.XitAuthUsrMngVO">
/** XitAuthUsrMngMapper.findView */
/** 사용자별권한관리 상세정보 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE A.ESNTL_ID = #{uniqId}
</select>
<select id="findListGroup" resultType="java.util.Map">
/** XitAuthUsrMngMapper.findListGroup */
/** 그룹 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore"/>
</if>
<include refid="findListGroup_SELECT"/>
<include refid="findListGroup_FROM"/>
WHERE 1 = 1
<include refid="findListGroup_WHERE"/>
<if test="searchGubun == 'list'">
<include refid="pageAfter"/>
</if>
</select>
<select id="findListGroupTotCnt" resultType="int">
/** XitAuthUsrMngMapper.findListGroupTotCnt */
/** 그룹 목록 조회 총 건수 */
SELECT COUNT(1) AS "CNT"
<include refid="findListGroup_FROM"/>
WHERE 1 = 1
<include refid="findListGroup_WHERE"/>
</select>
<sql id="findListGroup_SELECT">
SELECT A.GROUP_ID AS "groupId"
,A.GROUP_NM AS "groupNm"
,A.GROUP_DC AS "groupDc"
,A.GROUP_CREAT_DE AS "groupCreatDe"
</sql>
<sql id="findListGroup_FROM">
FROM XIT_AUTHOR_GROUP_INFO A
</sql>
<sql id="findListGroup_WHERE">
<if test="'1'.toString() == searchCondition">
AND A.GROUP_NM LIKE '%' || #{searchKeyword} || '%'
</if>
</sql>
</mapper>

@ -1,76 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.auth.mapper.AuthGrpMgtMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT A.GROUP_ID AS "groupId"
,A.GROUP_NM AS "groupNm"
,A.GROUP_DC AS "groupDc"
,A.GROUP_CREAT_DE AS "groupCreatDe"
,A.AUTHOR_CODE AS "authorCode"
,(SELECT SA.AUTHOR_NM FROM XIT_AUTHOR_INFO SA WHERE SA.AUTHOR_CODE=A.AUTHOR_CODE) AS "authorNm"
</sql>
<sql id="findList_FROM">
FROM XIT_AUTHOR_GROUP_INFO A
</sql>
<sql id="findList_WHERE">
<if test="'1'.toString() == searchCondition">
AND A.GROUP_NM LIKE '%' || #{searchKeyword} || '%'
</if>
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.auth.model.XitAuthGrpMngVO">
/** XitAuthGrpMngMapper.findList */
/** 사용자그룹관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
ORDER BY A.GROUP_CREAT_DE DESC
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitAuthGrpMngMapper.findListTotCnt */
/** 사용자그룹관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.auth.model.XitAuthGrpMngVO">
/** XitAuthGrpMngMapper.findView */
/** 사용자그룹관리 상세정보 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE A.GROUP_ID = #{groupId}
</select>
</mapper>

@ -1,78 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.auth.mapper.AuthHierarchyMgtMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT A.AUTHOR_CODE AS "authorCode"
,A.AUTHOR_NM AS "authorNm"
,A.AUTHOR_DC AS "authorDc"
,A.AUTHOR_CREAT_DE AS "authorCreatDe"
</sql>
<sql id="findList_FROM">
FROM XIT_AUTHOR_INFO A
</sql>
<sql id="findList_WHERE">
<if test="'1'.toString() == searchCondition">
AND A.AUTHOR_NM LIKE '%'||#{searchKeyword}||'%'
</if>
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.auth.model.XitAuthHierarchyMngVO">
/** XitAuthHierarchyMngMapper.findList */
/** 권한계층관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
ORDER BY A.AUTHOR_CREAT_DE DESC
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitAuthHierarchyMngMapper.findListTotCnt */
/** 권한계층관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.auth.model.XitAuthHierarchyMngVO">
/** XitAuthHierarchyMngMapper.findView */
/** 권한계층관리 상세정보 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE A.AUTHOR_CODE=#{authorCode}
</select>
</mapper>

@ -1,79 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.auth.mapper.AuthRoleMgtMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT A.ROLE_CODE AS "roleCode"
,A.ROLE_NM AS "roleNm"
,A.ROLE_PTTRN AS "rolePtn"
,A.ROLE_DC AS "roleDc"
,(
SELECT CODE_NM
FROM XIT_CMMN_DETAIL_CODE
WHERE CODE_ID = 'XIT029' AND CODE = A.ROLE_TY) AS "roleTyp"
,A.ROLE_SORT AS "roleSort"
,A.ROLE_CREAT_DE AS "roleCreatDe"
</sql>
<sql id="findList_FROM">
FROM XIT_ROLE_INFO A
</sql>
<sql id="findList_WHERE">
<if test="'1'.toString() == searchCondition">
AND A.ROLE_NM LIKE '%'||#{searchKeyword}||'%'
</if>
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.auth.model.XitAuthRuleMngVO">
/** XitAuthRuleMngMapper.findList */
/** 롤관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
ORDER BY A.ROLE_CREAT_DE DESC
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitAuthRuleMngMapper.findListTotCnt */
/** 롤관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.auth.model.XitAuthRuleMngVO">
/** XitAuthRuleMngMapper.findView */
/** 롤관리 상세정보 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE A.ROLE_CODE = #{roleCode}
</select>
</mapper>

@ -1,83 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.auth.mapper.XitLoginPolicyMngMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT A.USER_ID AS "emplyrId"
,A.USER_NM AS "emplyrNm"
,A.USER_SE AS "emplyrSe"
,B.IP_INFO AS "ipInfo"
,B.DPLCT_PERM_AT AS "dplctPermAt"
,B.LMTT_AT AS "lmttAt"
,B.LAST_UPDUSR_ID AS "userId"
,B.LAST_UPDT_PNTTM AS "regDate"
,DECODE (B.USER_ID, NULL, 'N', 'Y') AS "regYn"
</sql>
<sql id="findList_FROM">
FROM XIT_VW_USER_MASTR A
LEFT OUTER JOIN XIT_LOGIN_POLICY B ON A.USER_ID = B.USER_ID
</sql>
<sql id="findList_WHERE">
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(searchKeyword)">
<choose>
<when test="'1'.toString() == searchCondition">
AND A.USER_NM LIKE '%'||#{searchKeyword}||'%'
</when>
</choose>
</if>
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.auth.model.XitLoginPolicyMngVO">
/** XitLoginPolicyMngMapper.findList */
/** 로그인정책관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitLoginPolicyMngMapper.findListTotCnt */
/** 로그인정책관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.auth.model.XitLoginPolicyMngVO">
/** XitLoginPolicyMngMapper.findView */
/** 로그인정책관리 상세정보 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE A.USER_ID = #{emplyrId}
</select>
</mapper>

@ -53,11 +53,11 @@
</sql>
<select id ="selectAuthUsers" parameterType="map" resultType="kr.xit.framework.biz.mng.auth.model.XitAuthUsrMngVO">
/* auth-user-mysql-mapper|selectAuthUsers-사용자별권한관리 목록 조회|julim */
/* auth-by-user-mysql-mapper|selectAuthUsers-사용자별권한관리 목록 조회|julim */
<include refid="sqlAuthUser"/>
</select>
<select id ="selectAuthUser" resultType="kr.xit.framework.biz.mng.auth.model.XitAuthUsrMngVO">
/* auth-user-mysql-mapper|selectAuthUser-사용자별권한관리 정보 조회|julim */
/* auth-by-user-mysql-mapper|selectAuthUser-사용자별권한관리 정보 조회|julim */
<include refid="sqlAuthUser"/>
</select>
</mapper>

@ -1,85 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.batch.mapper.XitBatchRegMngMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT A.BATCH_OPERT_ID AS "batchOpertId"
,A.BATCH_OPERT_NM AS "batchOpertNm"
,A.BATCH_OPERT_SE AS "batchOpertSe"
,A.BATCH_PROGRM AS "batchProgrm"
,A.PARAMTR AS "paramtr"
,TO_CHAR (A.LAST_UPDT_PNTTM, 'YYYY-MM-DD HH24:MI:SS') AS "frstRegisterId"
,A.LAST_UPDUSR_ID AS "frstRegisterPnttm"
,A.FRST_REGISTER_ID AS "lastUpdusrId"
,TO_CHAR (A.FRST_REGIST_PNTTM, 'YYYY-MM-DD HH24:MI:SS') AS "lastUpdusrPnttm"
</sql>
<sql id="findList_FROM">
FROM COMTNBATCHOPERT A
</sql>
<sql id="findList_WHERE">
AND USE_AT = 'Y'
<!-- <if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(searchKeyword)"> -->
<if test="'0'.toString() == searchCondition">
AND A.BATCH_OPERT_NM LIKE '%' || #{searchKeyword} || '%'
</if>
<if test="'1'.toString() == searchCondition">
AND A.BATCH_PROGRM LIKE '%' || #{searchKeyword} || '%'
</if>
<!-- </if> -->
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.batch.model.XitBatchRegMngVO">
/** XitBatchRegMngMapper.findList */
/** 배치작업관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
ORDER BY A.BATCH_OPERT_ID ASC
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitBatchRegMngMapper.findListTotCnt */
/** 배치작업관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.batch.model.XitBatchRegMngVO">
/** XitBatchRegMngMapper.findView */
/** 배치작업관리 상세정보 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE A.BATCH_OPERT_ID = #{batchOpertId}
</select>
</mapper>

@ -1,103 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.batch.mapper.XitBatchResultMngMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT A.BATCH_RESULT_ID AS "batchResultId"
,A.BATCH_SCHDUL_ID AS "batchSchdulId"
,A.BATCH_OPERT_ID AS "batchOpertId"
,B.BATCH_OPERT_NM AS "batchOpertNm"
,B.BATCH_PROGRM AS "batchProgrm"
,A.PARAMTR AS "paramtr"
,A.STTUS AS "sttus"
,C.CODE_NM AS "sttusNm"
,A.ERROR_INFO AS "errorInfo"
,A.EXECUT_BEGIN_TM AS "executBeginTime"
,A.EXECUT_END_TM AS "executEndTime"
,TO_CHAR (A.LAST_UPDT_PNTTM, 'YYYY-MM-DD HH24:MI:SS') AS "lastUpdusrPnttm"
,A.LAST_UPDUSR_ID AS "lastUpdusrId"
,A.FRST_REGISTER_ID AS "frstRegisterId"
,TO_CHAR (A.FRST_REGIST_PNTTM, 'YYYY-MM-DD HH24:MI:SS') AS "frstRegisterPnttm"
</sql>
<sql id="findList_FROM">
FROM COMTNBATCHRESULT A
INNER JOIN COMTNBATCHOPERT B ON A.BATCH_OPERT_ID = B.BATCH_OPERT_ID
INNER JOIN XIT_CMMN_DETAIL_CODE C ON A.STTUS = C.CODE AND C.CODE_ID = 'XIT076'
</sql>
<sql id="findList_WHERE">
<if test="sttus != null and sttus != '00'">
AND A.STTUS = #{sttus}
</if>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(searchKeywordFrom)">
AND SUBSTR(A.EXECUT_BEGIN_TM,1, 8) &gt;= #{searchKeywordFrom}
</if>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(searchKeywordTo)">
AND SUBSTR(A.EXECUT_BEGIN_TM,1, 8) &lt;= #{searchKeywordTo}
</if>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(searchKeyword)">
<if test="'0'.toString() == searchCondition">
AND B.BATCH_OPERT_NM LIKE '%' || #{searchKeyword} || '%'
</if>
<if test="'1'.toString() == searchCondition">
AND B.BATCH_SCHDUL_ID LIKE '%' || #{searchKeyword} || '%'
</if>
</if>
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.batch.model.XitBatchResultMngVO">
/** XitBatchResultMngMapper.findList */
/** 배치결과관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
ORDER BY A.BATCH_RESULT_ID DESC
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitBatchResultMngMapper.findListTotCnt */
/** 배치결과관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.batch.model.XitBatchResultMngVO">
/** XitBatchResultMngMapper.findView */
/** 배치결과관리 상세정보 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE A.BATCH_RESULT_ID = #{batchResultId}
</select>
</mapper>

@ -1,106 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.batch.mapper.XitBatchScheduleMngMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT A.BATCH_SCHDUL_ID AS "batchSchdulId"
,A.BATCH_OPERT_ID AS "batchOpertId"
,A.EXECUT_CYCLE AS "executCycle"
,C.CODE_NM AS "executCycleNm"
,A.EXECUT_SCHDUL_DE AS "executSchdulDe"
,A.EXECUT_SCHDUL_HOUR AS "executSchdulHour"
,A.EXECUT_SCHDUL_MNT AS "executSchdulMnt"
,A.EXECUT_SCHDUL_SECND AS "executSchdulSecnd"
,B.BATCH_OPERT_NM AS "batchOpertNm"
,B.BATCH_PROGRM AS "batchProgrm"
,B.PARAMTR AS "paramtr"
,TO_CHAR (A.LAST_UPDT_PNTTM, 'YYYY-MM-DD HH24:MI:SS') AS "lastUpdusrId"
,A.LAST_UPDUSR_ID AS "lastUpdusrPnttm"
,A.FRST_REGISTER_ID AS "frstRegisterId"
,TO_CHAR (A.FRST_REGIST_PNTTM, 'YYYY-MM-DD HH24:MI:SS') AS "frstRegisterPnttm"
</sql>
<sql id="findList_FROM">
FROM COMTNBATCHSCHDUL A
INNER JOIN COMTNBATCHOPERT B ON A.BATCH_OPERT_ID = B.BATCH_OPERT_ID
INNER JOIN XIT_CMMN_DETAIL_CODE C ON A.EXECUT_CYCLE = C.CODE AND C.CODE_ID = 'XIT047'
</sql>
<sql id="findList_WHERE">
<!-- <if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(searchKeyword)"> -->
<if test="'0'.toString() == searchCondition">
AND B.BATCH_OPERT_NM LIKE '%' || #{searchKeyword} || '%'
</if>
<if test="'1'.toString() == searchCondition">
AND A.BATCH_PROGRM LIKE '%' || #{searchKeyword} || '%'
</if>
<!-- </if> -->
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.batch.model.XitBatchScheduleMngVO">
/** XitBatchScheduleMngMapper.findList */
/** 배치스케줄관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
ORDER BY A.BATCH_SCHDUL_ID ASC
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitBatchScheduleMngMapper.findListTotCnt */
/** 배치스케줄관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.batch.model.XitBatchScheduleMngVO">
/** XitBatchScheduleMngMapper.findView */
/** 배치스케줄관리 상세정보 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE A.BATCH_SCHDUL_ID = #{batchSchdulId}
</select>
<select id="findsBatchSchedule" resultType="kr.xit.framework.biz.mng.batch.model.XitBatchScheduleDayOfWeekVO">
/** XitBatchScheduleMngMapper.findsBatchSchedule */
/** 배치스케줄 요일 조회 */
SELECT A.BATCH_SCHDUL_ID AS "batchSchdulId"
,A.EXECUT_SCHDUL_DFK_SE AS "executSchdulDfkSe"
,B.CODE_NM AS "executSchdulDfkSeNm"
FROM COMTNBATCHSCHDULDFK A
INNER JOIN XIT_CMMN_DETAIL_CODE B ON A.EXECUT_SCHDUL_DFK_SE = B.CODE
WHERE 1=1
AND A.BATCH_SCHDUL_ID = #{batchSchdulId}
AND B.CODE_ID = 'XIT074'
</select>
</mapper>

@ -1,197 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.bbs.mapper.XitBasicBbsMngMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT A.NTT_SJ AS "nttSj"
,A.NTCR_ID AS "ntcrId"
,A.NTCR_NM AS "ntcrNm"
,A.NTT_NO AS "nttNo"
,A.NTT_CN AS "nttCn"
,A.PASSWORD AS "password"
,A.FRST_REGISTER_ID AS "frstRegisterId"
,NVL (B.USER_NM, A.NTCR_NM) AS "frstRegisterNm"
,TO_CHAR (A.FRST_REGIST_PNTTM, 'YYYY-MM-DD') AS "frstRegisterPnttm"
,A.NTCE_BEGIN_DE AS "ntceBgnde"
,A.NTCE_END_DE AS "ntceEndde"
,A.RDCNT AS "inqireCo"
,A.USE_AT AS "useAt"
,A.ATCH_FILE_ID AS "atchFileId"
,A.BBS_ID AS "bbsId"
,A.NTT_ID AS "nttId"
,A.PARNTS_SNTNC_NO AS "parnts"
,A.ANSWER_AT AS "replyAt"
,A.ANSWER_LC AS "replyLc"
,A.SORT_ORDR AS "sortOrdr"
,C.BBS_TY_CODE AS "bbsTyCode"
,C.BBS_ATTRB_CODE AS "bbsAttrbCode"
,C.REPLY_POSBL_AT AS "replyPosblAt"
,C.FILE_ATCH_POSBL_AT AS "fileAtchPosblAt"
,C.ATCH_POSBL_FILE_NUMBER AS "posblAtchFileNumber"
,C.BBS_NM AS "bbsNm"
</sql>
<sql id="findList_FROM">
FROM XIT_BBS A
LEFT OUTER JOIN XIT_VW_USER_MASTR B ON A.FRST_REGISTER_ID = B.ESNTL_ID
LEFT OUTER JOIN XIT_BBS_MASTR C ON A.BBS_ID = C.BBS_ID
</sql>
<sql id="findList_WHERE">
AND A.BBS_ID = #{bbsId}
AND A.PARNTS_SNTNC_NO = 0
<choose>
<when test="'0'.toString() == searchCnd">
AND A.NTT_SJ LIKE '%' || #{searchWrd} || '%'
</when>
<when test="'1'.toString() == searchCnd">
AND A.NTT_CN LIKE '%' || #{searchWrd} || '%'
</when>
<when test="'2'.toString() == searchCnd">
AND B.USER_NM LIKE '%' || #{searchWrd} || '%'
</when>
</choose>
</sql>
<resultMap id="findListResultMap" type="kr.xit.framework.biz.mng.bbs.model.XitBasicBbsMngVO">
<result column="nttSj" property="nttSj" />
<result column="ntcrId" property="ntcrId" />
<result column="ntcrNm" property="ntcrNm" />
<result column="nttNo" property="nttNo" />
<result column="nttCn" property="nttCn" />
<result column="password" property="password" />
<result column="frstRegisterId" property="frstRegisterId" />
<result column="frstRegisterNm" property="frstRegisterNm" />
<result column="frstRegisterPnttm" property="frstRegisterPnttm" />
<result column="ntceBgnde" property="ntceBgnde" />
<result column="ntceEndde" property="ntceEndde" />
<result column="inqireCo" property="inqireCo" />
<result column="useAt" property="useAt" />
<result column="atchFileId" property="atchFileId" />
<result column="bbsId" property="bbsId" />
<result column="nttId" property="nttId" />
<result column="parnts" property="parnts" />
<result column="replyAt" property="replyAt" />
<result column="replyLc" property="replyLc" />
<result column="sortOrdr" property="sortOrdr" />
<result column="bbsTyCode" property="bbsTyCode" />
<result column="bbsAttrbCode" property="bbsAttrbCode" />
<result column="replyPosblAt" property="replyPosblAt" />
<result column="fileAtchPosblAt" property="fileAtchPosblAt" />
<result column="posblAtchFileNumber" property="posblAtchFileNumber" />
<result column="bbsNm" property="bbsNm" />
<collection column="{bbsId=bbsId, nttId=nttId}" property="_children" select="findListChildren" javaType="java.util.List" />
</resultMap>
<!-- <select id="findList" resultType="xitframework.xit.category.mng.bbs.basic.model.XitBasicBbsMngVO"> -->
<select id="findList" resultMap="findListResultMap">
/** XitBasicBbsMngMapper.findList */
/** 기본(공용)게시판 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<!-- WITH TREE_QUERY(BBS_ID, NTT_ID, NTT_NO, PARNT_NTT_ID, NTT_DEPTH, NTT_SORT) AS -->
<!-- ( -->
<!-- SELECT -->
<!-- A.BBS_ID AS "BBS_ID" -->
<!-- , A.NTT_ID AS "NTT_ID" -->
<!-- , A.NTT_NO AS "NTT_NO" -->
<!-- , A.PARNTS_SNTNC_NO AS "PARNT_NTT_ID" -->
<!-- , 1 AS "NTT_DEPTH" -->
<!-- , LPAD(A.NTT_ID,10,'0') AS "NTT_SORT" -->
<!-- FROM XIT_BBS A -->
<!-- WHERE A.BBS_ID = #{bbsId} -->
<!-- AND A.PARNTS_SNTNC_NO = 0 -->
<!-- UNION ALL -->
<!-- SELECT -->
<!-- A.BBS_ID AS "BBS_ID" -->
<!-- , A.NTT_ID AS "NTT_ID" -->
<!-- , A.NTT_NO AS "NTT_NO" -->
<!-- , A.PARNTS_SNTNC_NO AS "PARNT_NTT_ID" -->
<!-- , B.NTT_DEPTH+1 AS "NTT_DEPTH" -->
<!-- , B.NTT_SORT||'_'||LPAD(A.NTT_ID,10,'0') AS "NTT_SORT" -->
<!-- FROM XIT_BBS A -->
<!-- INNER JOIN TREE_QUERY B ON A.PARNTS_SNTNC_NO = B.NTT_ID -->
<!-- WHERE A.BBS_ID = #{bbsId} -->
<!-- AND A.PARNTS_SNTNC_NO != 0 -->
<!-- ) -->
<!-- <include refid="findList_SELECT"/> -->
<!-- <include refid="findList_FROM"/> -->
<!-- INNER JOIN TREE_QUERY Z ON A.BBS_ID=Z.BBS_ID AND A.NTT_ID=Z.NTT_ID -->
<!-- WHERE 1=1 -->
<!-- <include refid="findList_WHERE"/> -->
<!-- ORDER BY Z.NTT_SORT -->
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
ORDER BY A.FRST_REGIST_PNTTM DESC
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<!-- <select id="findListChildren" resultType="xitframework.xit.category.mng.bbs.basic.model.XitBasicBbsMngVO"> -->
<select id="findListChildren" resultMap="findListResultMap">
/** XitBasicBbsMngMapper.findListChildren */
/** 기본(공용)게시판 자식 목록 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
AND A.PARNTS_SNTNC_NO != 0
AND A.BBS_ID = #{bbsId}
AND A.PARNTS_SNTNC_NO = #{nttId}
ORDER BY A.FRST_REGIST_PNTTM ASC
</select>
<select id="findListTotCnt" resultType="int">
/** XitBasicBbsMngMapper.findListTotCnt */
/** 기본(공용)게시판 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.bbs.model.XitBasicBbsMngVO">
/** XitBasicBbsMngMapper.findView */
/** 기본(공용)게시판 상세정보 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE A.BBS_ID = #{bbsId}
AND A.NTT_ID = #{nttId}
</select>
<select id="findMaxNttId" resultType="String">
/** XitBasicBbsMngMapper.findMaxNttId */
/** 게시물ID 채번 */
SELECT NVL(MAX(TO_NUMBER(NTT_ID)),0)+1 AS "NTT_ID" FROM XIT_BBS
</select>
<select id="findMaxNttNo" resultType="String">
/** XitBasicBbsMngMapper.findMaxNttNo */
/** 게시물번호 채번 */
SELECT NVL(MAX(NTT_NO),0)+1 AS "NTT_NO"
FROM XIT_BBS
WHERE BBS_ID = #{bbsId}
AND PARNTS_SNTNC_NO = #{parntsSntncNo}
</select>
</mapper>

@ -1,109 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.bbs.mapper.XitBbsCreateMngMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT A.BBS_ID AS "bbsId"
,A.BBS_TY_CODE AS "bbsTyCode"
,B.CODE_NM AS "bbsTyCodeNm"
,A.BBS_INTRCN AS "bbsIntrcn"
,A.BBS_ATTRB_CODE AS "bbsAttrbCode"
,C.CODE_NM AS "bbsAttrbCodeNm"
,A.BBS_NM AS "bbsNm"
,A.TMPLAT_ID AS "tmplatId"
,D.TMPLAT_NM AS "tmplatNm"
,D.TMPLAT_COURS AS "tmplatCours"
,A.FILE_ATCH_POSBL_AT AS "fileAtchPosblAt"
,A.ATCH_POSBL_FILE_NUMBER AS "posblAtchFileNumber"
,A.ATCH_POSBL_FILE_SIZE AS "posblAtchFileSize"
,A.REPLY_POSBL_AT AS "replyPosblAt"
,A.FRST_REGISTER_ID AS "frstRegisterId"
,(SELECT SA.USER_NM FROM XIT_VW_USER_MASTR SA WHERE SA.ESNTL_ID = A.FRST_REGISTER_ID) AS "frstRegisterNm"
,A.USE_AT AS "useAt"
,TO_CHAR (A.FRST_REGIST_PNTTM, 'YYYY-MM-DD') AS "frstRegisterPnttm"
,(SELECT NVL (SA.USE_AT, 'N')
FROM XIT_BBS_PRCUSE SA
<!-- WHERE SA.BBS_ID = #{bbsId} -->
WHERE SA.BBS_ID = A.BBS_ID
AND SA.TRGET_ID IN (#{uniqId}, 'SYSTEM_DEFAULT_BOARD'))
AS "authFlag"
</sql>
<sql id="findList_FROM">
FROM XIT_BBS_MASTR A
LEFT OUTER JOIN (SELECT CODE_ID, CODE, CODE_NM
FROM XIT_CMMN_DETAIL_CODE
WHERE CODE_ID = 'XIT004' AND USE_AT = 'Y') B ON A.BBS_TY_CODE = B.CODE
LEFT OUTER JOIN (SELECT CODE_ID, CODE, CODE_NM
FROM XIT_CMMN_DETAIL_CODE
WHERE CODE_ID = 'XIT009' AND USE_AT = 'Y') C ON A.BBS_ATTRB_CODE = C.CODE
LEFT OUTER JOIN XIT_TMPLAT_INFO D ON A.TMPLAT_ID = D.TMPLAT_ID AND D.USE_AT = 'Y'
</sql>
<sql id="findList_WHERE">
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(useAt)">
AND A.USE_AT = #{useAt}
</if>
<choose>
<when test="'0'.toString() == searchCnd">
AND A.BBS_NM LIKE '%' || #{searchWrd} || '%'
</when>
<when test="'1'.toString() == searchCnd">
AND B.CODE_NM LIKE '%' || #{searchWrd} || '%'
</when>
</choose>
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.bbs.model.XitBbsCreateMngVO">
/** XitBbsCreateMngMapper.findList */
/** 게시판생성관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
ORDER BY A.FRST_REGIST_PNTTM DESC
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitBbsCreateMngMapper.findListTotCnt */
/** 게시판생성관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.bbs.model.XitBbsCreateMngVO">
/** XitBbsCreateMngMapper.findView */
/** 게시판생성관리 상세정보 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE A.BBS_ID = #{bbsId}
</select>
</mapper>

@ -1,93 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.bbs.mapper.XitBbsTmplateMngMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT A.TMPLAT_ID AS "tmplatId"
,A.TMPLAT_NM AS "tmplatNm"
,A.TMPLAT_SE_CODE AS "tmplatSeCode"
,A.TMPLAT_COURS AS "tmplatCours"
,A.USE_AT AS "useAt"
,A.FRST_REGISTER_ID AS "frstRegisterId"
,A.FRST_REGIST_PNTTM AS "frstRegisterPnttm"
,A.LAST_UPDUSR_ID AS "lastUpdusrId"
,A.LAST_UPDT_PNTTM AS "lastUpdusrPnttm"
,B.CODE_NM AS "tmplatSeCodeNm"
,(SELECT SA.USER_NM FROM XIT_VW_USER_MASTR SA WHERE SA.ESNTL_ID=A.FRST_REGISTER_ID) AS "frstRegisterNm"
,(SELECT SA.USER_NM FROM XIT_VW_USER_MASTR SA WHERE SA.ESNTL_ID=A.LAST_UPDUSR_ID) AS "lastUpdusrNm"
</sql>
<sql id="findList_FROM">
FROM XIT_TMPLAT_INFO A
LEFT OUTER JOIN XIT_CMMN_DETAIL_CODE B ON A.TMPLAT_SE_CODE = B.CODE
</sql>
<sql id="findList_WHERE">
AND B.CODE_ID = 'XIT005'
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(typeFlag)">
AND A.TMPLAT_SE_CODE = #{tmplatSeCode}
</if>
<choose>
<when test="'0'.toString() == searchCnd">
AND A.TMPLAT_NM LIKE '%' || #{searchWrd} || '%'
</when>
<when test="'1'.toString() == searchCnd">
AND B.CODE_NM LIKE '%' || #{searchWrd} || '%'
</when>
</choose>
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.bbs.model.XitBbsTmplateMngVO">
/** XitBbsTmplateMngMapper.findList */
/** 게시판템플릿관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
ORDER BY A.FRST_REGIST_PNTTM DESC
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitBbsTmplateMngMapper.findListTotCnt */
/** 게시판템플릿관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.bbs.model.XitBbsTmplateMngVO">
/** XitBbsTmplateMngMapper.findView */
/** 게시판템플릿관리 상세정보 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE A.TMPLAT_ID = #{tmplatId}
</select>
</mapper>

@ -1,91 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.bbs.mapper.XitBbsUseMngMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT A.BBS_ID AS "bbsId"
,E.BBS_NM AS "bbsNm"
,A.TRGET_ID AS "trgetId"
,A.REGIST_SE_CODE AS "registSeCode"
,B.CODE_NM AS "registSeCodeNm"
,A.USE_AT AS "useAt"
,A.FRST_REGISTER_ID AS "frstRegisterId"
,A.FRST_REGIST_PNTTM AS "frstRegisterPnttm"
,'시스템 활용' AS "cmmntyId"
,'시스템 활용' AS "cmmntyNm"
,'시스템 활용' AS "clbId"
,'시스템 활용' AS "clbNm"
,'시스템 활용' AS "bbsTyCode"
</sql>
<sql id="findList_FROM">
FROM XIT_BBS_PRCUSE A
LEFT OUTER JOIN XIT_CMMN_DETAIL_CODE B ON B.CODE = A.REGIST_SE_CODE
LEFT OUTER JOIN XIT_BBS_MASTR E ON A.BBS_ID = E.BBS_ID
</sql>
<sql id="findList_WHERE">
AND B.CODE_ID = 'XIT001'
AND A.REGIST_SE_CODE != 'REGC07'
<choose>
<when test="'0'.toString() == searchCnd">
AND E.BBS_NM LIKE '%' || #{searchWrd} || '%'
</when>
</choose>
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.bbs.model.XitBbsUseMngVO">
/** XitBbsUseMngMapper.findList */
/** 게시판사용관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
ORDER BY A.FRST_REGIST_PNTTM DESC
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitBbsUseMngMapper.findListTotCnt */
/** 게시판사용관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.bbs.model.XitBbsUseMngVO">
/** XitBbsUseMngMapper.findView */
/** 게시판사용관리 상세정보 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE B.CODE_ID = 'XIT001'
AND A.BBS_ID = #{bbsId}
AND A.TRGET_ID = #{trgetId}
</select>
</mapper>

@ -1,79 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.code.mapper.XitClCodeMngMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT A.CL_CODE AS "clCode"
, A.CL_CODE_NM AS "clCodeNm"
, A.CL_CODE_DC AS "clCodeDc"
, A.USE_AT AS "useAt"
</sql>
<sql id="findList_FROM">
FROM XIT_CMMN_CL_CODE A
</sql>
<sql id="findList_WHERE">
<if test="'1'.toString() == searchCondition">
AND A.CL_CODE = #{searchKeyword}
</if>
<if test="'2'.toString() == searchCondition">
AND A.CL_CODE_NM LIKE '%'||#{searchKeyword}||'%'
</if>
<if test="'CodeList' == searchCondition">
AND A.USE_AT = 'Y'
</if>
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.code.model.XitClCodeMngVO">
/** XitClCodeMngMapper.findList */
/** 분류코드관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitClCodeMngMapper.findListTotCnt */
/** 분류코드관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.code.model.XitClCodeMngVO">
/** XitClCodeMngMapper.findView */
/** 분류코드관리 상세정보 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE A.CL_CODE = #{clCode}
</select>
</mapper>

@ -1,83 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.code.mapper.XitCmmnCodeMngMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT B.CL_CODE_NM AS "clCodeNm"
, A.CL_CODE AS "clCode"
, A.CODE_ID AS "codeId"
, A.CODE_ID_NM AS "codeIdNm"
, A.CODE_ID_DC AS "codeIdDc"
, A.USE_AT AS "useAt"
</sql>
<sql id="findList_FROM">
FROM XIT_CMMN_CODE A
INNER JOIN XIT_CMMN_CL_CODE B ON A.CL_CODE = B.CL_CODE
</sql>
<sql id="findList_WHERE">
<if test="'1'.toString() == searchCondition">
AND A.CODE_ID = #{searchKeyword}
</if>
<if test="'2'.toString() == searchCondition">
AND A.CODE_ID_NM LIKE '%'||#{searchKeyword}||'%'
</if>
<if test="'clCode' == searchCondition">
AND A.CL_CODE = #{searchKeyword}
AND A.USE_AT = 'Y'
</if>
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.code.model.XitCmmnCodeMngVO">
/** XitCmmnCodeMngMapper.findList */
/** 공통코드관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitCmmnCodeMngMapper.findListTotCnt */
/** 공통코드관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.code.model.XitCmmnCodeMngVO">
/** XitCmmnCodeMngMapper.findView */
/** 공통코드관리 상세정보 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE A.CODE_ID = #{codeId}
</select>
</mapper>

@ -1,86 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.code.mapper.XitDetailCodeMngMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT A.CODE_ID AS "codeId"
, B.CODE_ID_NM AS "codeIdNm"
, A.CODE AS "code"
, A.CODE_NM AS "codeNm"
, A.CODE_DC AS "codeDc"
, A.USE_AT AS "useAt"
</sql>
<sql id="findList_FROM">
FROM XIT_CMMN_DETAIL_CODE A
INNER JOIN XIT_CMMN_CODE B ON A.CODE_ID = B.CODE_ID
</sql>
<sql id="findList_WHERE">
AND B.USE_AT = 'Y'
<if test="'1'.toString() == searchCondition">
AND A.CODE_ID = #{searchKeyword}
</if>
<if test="'2'.toString() == searchCondition">
AND A.CODE = #{searchKeyword}
</if>
<if test="'3'.toString() == searchCondition">
AND A.CODE_NM LIKE '%'||#{searchKeyword}||'%'
</if>
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.code.model.XitDetailCodeMngVO">
/** XitDetailCodeMngMapper.findList */
/** 상세코드관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitDetailCodeMngMapper.findListTotCnt */
/** 상세코드관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.code.model.XitDetailCodeMngVO">
/** XitDetailCodeMngMapper.findView */
/** 상세코드관리 상세정보 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
AND B.USE_AT = 'Y'
AND A.CODE_ID = #{codeId}
AND A.CODE = #{code}
</select>
</mapper>

@ -1,92 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.code.mapper.XitZipCodeMngMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT A.ZIP AS "zip"
,A.SN AS "sn"
,A.CTPRVN_NM AS "ctprvnNm"
,A.SIGNGU_NM AS "signguNm"
,A.EMD_NM AS "emdNm"
,A.LI_BULD_NM AS "liBuldNm"
,A.LNBR_DONG_HO AS "lnbrDongHo"
</sql>
<sql id="findList_FROM">
FROM XIT_ZIP A
</sql>
<sql id="findList_WHERE">
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(searchKeyword)">
<if test="'1'.toString() == searchCondition">
AND A.ZIP = #{searchKeyword}
</if>
<if test="'2'.toString() == searchCondition">
AND A.CTPRVN_NM LIKE '%'||#{searchKeyword}||'%'
</if>
<if test="'3'.toString() == searchCondition">
AND A.SIGNGU_NM LIKE '%'||#{searchKeyword}||'%'
</if>
<if test="'4'.toString() == searchCondition">
AND A.EMD_NM LIKE '%'||#{searchKeyword}||'%'
</if>
<if test="'5'.toString() == searchCondition">
AND A.LI_BULD_NM LIKE '%'||#{searchKeyword}||'%'
</if>
</if>
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.code.model.XitZipCodeMngVO">
/** XitZipCodeMngMapper.findList */
/** 우편번호관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitZipCodeMngMapper.findListTotCnt */
/** 우편번호관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.code.model.XitZipCodeMngVO">
/** XitZipCodeMngMapper.findView */
/** 우편번호관리 상세정보 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
AND ZIP = #{zip}
AND SN = #{sn }
</select>
</mapper>

@ -1,105 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.mapper.MenuByRoleMgtMapper">
<sql id="findList_SELECT">
</sql>
<sql id="findList_FROM">
</sql>
<sql id="findList_WHERE">
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.menu.model.MenuCreateMngVO">
/** XitMenuCreateMngMapper.findList */
/** 메뉴생성관리 목록 조회 */
SELECT A.AUTHOR_CODE AS "authorCode"
,A.AUTHOR_NM AS "authorNm"
,A.AUTHOR_DC AS "authorDc"
,A.AUTHOR_CREAT_DE AS "authorCreatDe"
,(SELECT COUNT(B.AUTHOR_CODE)
FROM XIT_MENU_CREAT_DTLS B
WHERE B.AUTHOR_CODE = A.AUTHOR_CODE ) AS "chkYeoBu"
FROM XIT_AUTHOR_INFO A
WHERE 1=1
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(searchKeyword)">
AND A.AUTHOR_CODE LIKE '%' || #{searchKeyword} || '%'
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitMenuCreateMngMapper.findListTotCnt */
/** 메뉴생성관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
FROM XIT_AUTHOR_INFO A
WHERE 1=1
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(searchKeyword)">
AND A.AUTHOR_CODE LIKE '%' || #{searchKeyword} || '%'
</if>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.menu.model.MenuCreateMngVO">
/** XitMenuCreateMngMapper.findView */
/** 메뉴생성관리 상세정보 조회 */
SELECT A.AUTHOR_CODE AS "authorCode"
,A.AUTHOR_NM AS "authorNm"
,A.AUTHOR_DC AS "authorDc"
,A.AUTHOR_CREAT_DE AS "authorCreatDe"
,(SELECT COUNT(B.AUTHOR_CODE)
FROM XIT_MENU_CREAT_DTLS B
WHERE B.AUTHOR_CODE = A.AUTHOR_CODE ) AS "chkYeoBu"
FROM XIT_AUTHOR_INFO A
WHERE A.AUTHOR_CODE = #{authorCode}
</select>
<select id="findListOfMenuInfo" resultType="kr.xit.framework.biz.mng.menu.model.MenuCreateMngVO">
/** XitMenuCreateMngMapper.findListOfMenuInfo */
/** 메뉴목록 조회 */
SELECT
A.MENU_NO AS "menuNo"
, A.MENU_ORDR AS "menuOrdr"
, A.MENU_NM AS "menuNm"
, A.UPPER_MENU_NO AS "upperMenuNo"
, (SELECT count(B.MENU_NO)
FROM XIT_MENU_CREAT_DTLS B
WHERE B.MENU_NO = A.MENU_NO
AND B.AUTHOR_CODE = #{authorCode}) AS "chkYeoBu"
FROM XIT_MENU_INFO A
WHERE A.MENU_NO &gt; 0
ORDER BY A.MENU_ORDR
</select>
<select id="findUserScrtySetupByUsr" resultType="kr.xit.framework.biz.mng.menu.model.MenuCreateMngVO">
/** XitMenuCreateMngMapper.findUserScrtySetupByUsr */
/** 사용자별 사용자보안설정 데이터 조회 */
SELECT AUTHOR_CODE AS "authorCode"
FROM XIT_USER_SCRTY_SETUP
WHERE SCRTY_SETUP_TRGET_ID = (
SELECT ESNTL_ID
FROM XIT_VW_USER_MASTR
WHERE USER_ID = #{searchKeyword}
)
</select>
<delete id="deleteAllMenuCreatDtlsList">
/** XitMenuListMngMapper.deleteAllMenuCreatDtlsList */
/** 메뉴생성내역 전체데이터 삭제 */
<!-- DELETE FROM XIT_MENU_CREAT_DTLS WHERE MENU_NO IN (SELECT MENU_NO FROM XIT_MENU_INFO WHERE MENU_NM != 'root') -->
DELETE FROM XIT_MENU_CREAT_DTLS
</delete>
</mapper>

@ -1,114 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.menu.mapper.MenuMgtMapper">
<sql id="findList_SELECT">
SELECT A.AUTHOR_CODE AS "authorCode"
,A.AUTHOR_NM AS "authorNm"
,A.AUTHOR_DC AS "authorDc"
,A.AUTHOR_CREAT_DE AS "authorCreatDe"
,(SELECT COUNT(B.AUTHOR_CODE)
FROM XIT_MENU_CREAT_DTLS B
WHERE B.AUTHOR_CODE = A.AUTHOR_CODE ) AS "chkYeoBu"
</sql>
<sql id="findList_FROM">
FROM XIT_AUTHOR_INFO A
</sql>
<sql id="findList_WHERE">
<if test="author_code != null or author_code != ''">
AND A.AUTHOR_CODE LIKE CONCAT('%',#{searchKeyword},'%')
</if>
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.menu.model.MenuCreateMngVO">
/** XitMenuCreateMngMapper.findList */
/** 메뉴생성관리 목록 조회 */
SELECT A.AUTHOR_CODE AS "authorCode"
,A.AUTHOR_NM AS "authorNm"
,A.AUTHOR_DC AS "authorDc"
,A.AUTHOR_CREAT_DE AS "authorCreatDe"
,(SELECT COUNT(B.AUTHOR_CODE)
FROM XIT_MENU_CREAT_DTLS B
WHERE B.AUTHOR_CODE = A.AUTHOR_CODE ) AS "chkYeoBu"
FROM XIT_AUTHOR_INFO A
WHERE 1=1
AND A.AUTHOR_CODE LIKE CONCAT('%',#{searchKeyword},'%')
</select>
<select id="findListTotCnt" resultType="int">
/** XitMenuCreateMngMapper.findListTotCnt */
/** 메뉴생성관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
FROM XIT_AUTHOR_INFO A
WHERE 1=1
AND A.AUTHOR_CODE LIKE CONCAT('%',#{searchKeyword},'%')
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.menu.model.MenuCreateMngVO">
/** XitMenuCreateMngMapper.findView */
/** 메뉴생성관리 상세정보 조회 */
SELECT A.AUTHOR_CODE AS "authorCode"
,A.AUTHOR_NM AS "authorNm"
,A.AUTHOR_DC AS "authorDc"
,A.AUTHOR_CREAT_DE AS "authorCreatDe"
,(SELECT COUNT(B.AUTHOR_CODE)
FROM XIT_MENU_CREAT_DTLS B
WHERE B.AUTHOR_CODE = A.AUTHOR_CODE ) AS "chkYeoBu"
FROM XIT_AUTHOR_INFO A
WHERE A.AUTHOR_CODE = #{authorCode}
</select>
<select id="findListOfMenuInfo" resultType="kr.xit.framework.biz.mng.menu.model.MenuCreateMngVO">
/** XitMenuCreateMngMapper.findListOfMenuInfo */
/** 메뉴목록 조회 */
SELECT
A.MENU_NO AS "menuNo"
, A.MENU_ORDR AS "menuOrdr"
, A.MENU_NM AS "menuNm"
, A.UPPER_MENU_NO AS "upperMenuNo"
, (SELECT count(B.MENU_NO)
FROM XIT_MENU_CREAT_DTLS B
WHERE B.MENU_NO = A.MENU_NO
AND B.AUTHOR_CODE = #{authorCode}) AS "chkYeoBu"
FROM XIT_MENU_INFO A
WHERE A.MENU_NO &gt; 0
ORDER BY A.MENU_ORDR
</select>
<select id="findUserScrtySetupByUsr" resultType="kr.xit.framework.biz.mng.menu.model.MenuCreateMngVO">
/** XitMenuCreateMngMapper.findUserScrtySetupByUsr */
/** 사용자별 사용자보안설정 데이터 조회 */
SELECT AUTHOR_CODE AS "authorCode"
FROM XIT_USER_SCRTY_SETUP
WHERE SCRTY_SETUP_TRGET_ID = (
SELECT ESNTL_ID
FROM XIT_VW_USER_MASTR
WHERE USER_ID = #{searchKeyword}
)
</select>
<delete id="deleteAllMenuCreatDtlsList">
/** XitMenuListMngMapper.deleteAllMenuCreatDtlsList */
/** 메뉴생성내역 전체데이터 삭제 */
<!-- DELETE FROM XIT_MENU_CREAT_DTLS WHERE MENU_NO IN (SELECT MENU_NO FROM XIT_MENU_INFO WHERE MENU_NM != 'root') -->
DELETE FROM XIT_MENU_CREAT_DTLS
</delete>
</mapper>

@ -1,70 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.menu.mapper.MenuMgtMapper">
<select id="findList" resultType="kr.xit.framework.biz.mng.menu.model.MenuListMngVO">
/** XitMenuListMngMapper.findList */
/** 메뉴목록관리 목록 조회 */
SELECT
A.MENU_NO AS "menuNo"
,A.MENU_ORDR AS "menuOrdr"
,A.MENU_NM AS "menuNm"
,A.UPPER_MENU_NO AS "upperMenuNo"
,A.MENU_DC AS "menuDc"
,A.RELATE_IMAGE_COURS AS "relateImagePath"
,A.RELATE_IMAGE_NM AS "relateImageNm"
,A.PROGRM_FILE_NM AS "progrmFileNm"
FROM XIT_MENU_INFO A
WHERE 1=1
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(searchKeyword)">
AND A.MENU_NM LIKE '%' || #{searchKeyword} || '%'
</if>
</select>
<select id="findMenuListTotCnt" resultType="int">
/** XitMenuListMngMapper.findListTotCnt */
/** 메뉴목록관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
FROM XIT_MENU_INFO A
WHERE 1=1
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(searchKeyword)">
AND A.MENU_NM LIKE '%' || #{searchKeyword} || '%'
</if>
</select>
<select id="findMenuView" resultType="kr.xit.framework.biz.mng.menu.model.MenuListMngVO">
/** XitMenuListMngMapper.findView */
/** 메뉴목록관리 상세정보 조회 */
SELECT
A.MENU_NO AS "menuNo"
,A.MENU_ORDR AS "menuOrdr"
,A.MENU_NM AS "menuNm"
,A.UPPER_MENU_NO AS "upperMenuNo"
,A.MENU_DC AS "menuDc"
,A.RELATE_IMAGE_COURS AS "relateImagePath"
,A.RELATE_IMAGE_NM AS "relateImageNm"
,A.PROGRM_FILE_NM AS "progrmFileNm"
FROM XIT_MENU_INFO A
WHERE A.MENU_NO = #{menuNo}
</select>
<delete id="deleteAllMenuList">
/** XitMenuListMngMapper.deleteAllMenuList */
/** 메뉴정보 전체데이터 삭제 */
<!-- DELETE FROM XIT_MENU_INFO WHERE MENU_NO &lt;&gt; UPPER_MENU_NO -->
<!-- DELETE FROM XIT_MENU_INFO WHERE MENU_NM != 'root' -->
DELETE FROM XIT_MENU_INFO
</delete>
</mapper>

@ -1,90 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.menu.mapper.ProgramMgtMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT A.PROGRM_FILE_NM AS "progrmFileNm"
,A.PROGRM_STRE_COURS AS "progrmStrePath"
,A.PROGRM_KOREAN_NM AS "progrmKoreanNm"
<!-- ,DBMS_LOB.SUBSTR (A.PROGRM_DC, 10, 1) || '...' AS "progrmDc" -->
,A.PROGRM_DC AS "progrmDc"
,A.URL AS "URL"
</sql>
<sql id="findList_FROM">
FROM XIT_PROGRM_LIST A
</sql>
<sql id="findList_WHERE">
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(searchKeyword)">
AND A.PROGRM_KOREAN_NM LIKE '%' || #{searchKeyword} || '%'
</if>
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.menu.model.ProgramMngVO">
/** XitProgramMngMapper.findList */
/** 프로그램관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitProgramMngMapper.findListTotCnt */
/** 프로그램관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.menu.program.model.XitProgramMngVO">
/** XitProgramMngMapper.findView */
/** 프로그램관리 상세정보 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE A.PROGRM_FILE_NM = #{progrmFileNm}
</select>
<delete id="deleteAllProgrm">
/** XitMenuListMngMapper.deleteAllProgrm */
/** 프로그램정보 전체데이터 삭제 */
<!-- DELETE FROM XIT_PROGRM_LIST WHERE PROGRM_FILE_NM &lt;&gt; 'dir' -->
DELETE FROM XIT_PROGRM_LIST
</delete>
<delete id="deleteAllProgrmDtls">
/** XitMenuListMngMapper.deleteAllProgrmDtls */
/** 프로그램변경내역 정보 전체데이터 삭제 */
<!-- 2020.03.27 박민규: DDL 스크립트에 해당 테이블 존재하지 않음.. -->
DELETE FROM LETTHPROGRMCHANGEDTLS
</delete>
</mapper>

@ -1,121 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.user.mapper.XitEntUserRegMngMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT
A.ESNTL_ID AS "uniqId"
,'USR02' AS "userTy"
,A.ENTRPRS_MBER_ID AS "userId"
,A.CMPNY_NM AS "cmpnyNm"
,A.APPLCNT_NM AS "userNm"
,A.APPLCNT_EMAIL_ADRES AS "emailAdres"
,A.AREA_NO AS "areaNo"
,A.ENTRPRS_MIDDLE_TELNO AS "middleTelno"
,A.ENTRPRS_END_TELNO AS "endTelno"
,'' AS "mbtlnum"
,A.GROUP_ID AS "groupId"
,A.ENTRPRS_MBER_STTUS AS "sttus"
,A.SBSCRB_DE AS "sbscrbDe"
,(SELECT CODE_NM FROM XIT_CMMN_DETAIL_CODE WHERE USE_AT = 'Y' AND CODE_ID = 'XIT013' AND CODE = A.ENTRPRS_MBER_STTUS) AS "userSttusCode"
</sql>
<sql id="findList_FROM">
FROM XIT_ENTRPRS_MBER A
</sql>
<sql id="findList_WHERE">
<if test="'0'.toString() != sbscrbSttus">
AND A.ENTRPRS_MBER_STTUS LIKE #{sbscrbSttus}
</if>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(searchKeyword)">
<choose>
<when test="'0'.toString() == searchCondition">
AND A.ENTRPRS_MBER_ID LIKE #{searchKeyword}
</when>
<when test="'1'.toString() == searchCondition">
AND A.APPLCNT_NM LIKE '%' ||#{searchKeyword}|| '%'
</when>
</choose>
</if>
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.user.model.XitEntUserRegMngVO">
/** XitEntUserRegMngMapper.findList */
/** 기업사용자등록관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1 = 1
<include refid="findList_WHERE"/>
ORDER BY 13 DESC
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitEntUserRegMngMapper.findListTotCnt */
/** 기업사용자등록관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.user.model.XitEntUserRegMngVO">
/** XitEntUserRegMngMapper.findView */
/** 기업사용자등록관리 상세정보 조회 */
SELECT
A.ESNTL_ID AS "uniqId"
,'USR02' AS "userTy"
,A.ENTRPRS_MBER_ID AS "entrprsmberId"
,A.ENTRPRS_SE_CODE AS "entrprsSeCode"
,A.BIZRNO AS "bizrno"
,A.JURIRNO AS "jurirno"
,A.CMPNY_NM AS "cmpnyNm"
,A.CXFC AS "cxfc"
,A.ZIP AS "zip"
,A.ADRES AS "adres"
,A.ENTRPRS_MIDDLE_TELNO AS "entrprsMiddleTelno"
,A.FXNUM AS "fxnum"
,A.INDUTY_CODE AS "indutyCode"
,A.APPLCNT_NM AS "applcntNm"
,A.SBSCRB_DE AS "sbscrbDe"
,A.ENTRPRS_MBER_STTUS AS "entrprsMberSttus"
,A.ENTRPRS_MBER_PASSWORD AS "entrprsMberPassword"
,A.ENTRPRS_MBER_PASSWORD_HINT AS "entrprsMberPasswordHint"
,A.ENTRPRS_MBER_PASSWORD_CNSR AS "entrprsMberPasswordCnsr"
,A.GROUP_ID AS "groupId"
,A.DETAIL_ADRES AS "detailAdres"
,A.ENTRPRS_END_TELNO AS "entrprsEndTelno"
,A.AREA_NO AS "areaNo"
,A.APPLCNT_IHIDNUM AS "applcntIhidnum"
,A.APPLCNT_EMAIL_ADRES AS "applcntEmailAdres"
<!-- ,A.LOCK_AT AS "lockAt" -->
<include refid="findList_FROM"/>
WHERE A.ESNTL_ID = #{uniqId}
</select>
</mapper>

@ -1,117 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.user.mapper.XitGnrUserRegMngMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT
A.ESNTL_ID AS "uniqId"
,'USR01' AS "userTy"
,A.MBER_ID AS "userId"
,A.MBER_NM AS "userNm"
,A.MBER_EMAIL_ADRES AS "emailAdres"
,A.AREA_NO AS "areaNo"
,A.MIDDLE_TELNO AS "middleTelno"
,A.END_TELNO AS "endTelno"
,A.MBTLNUM AS "mbtlnum"
,A.GROUP_ID AS "groupId"
,A.MBER_STTUS AS "sttus"
,A.SBSCRB_DE AS "sbscrbDe"
,(SELECT CODE_NM FROM XIT_CMMN_DETAIL_CODE WHERE USE_AT = 'Y' AND CODE_ID = 'XIT013' AND CODE = A.MBER_STTUS) AS "userSttusCode"
</sql>
<sql id="findList_FROM">
FROM XIT_GNRL_MBER A
</sql>
<sql id="findList_WHERE">
<if test="'0'.toString() != sbscrbSttus">
AND A.MBER_STTUS LIKE #{sbscrbSttus}
</if>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(searchKeyword)">
<choose>
<when test="'0'.toString() == searchCondition">
AND A.MBER_ID LIKE #{searchKeyword}
</when>
<when test="'1'.toString() == searchCondition">
AND A.MBER_NM LIKE '%' ||#{searchKeyword}|| '%'
</when>
</choose>
</if>
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.user.model.XitGnrUserRegMngVO">
/** XitGnrUserRegMngMapper.findList */
/** 일반사용자등록관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1 = 1
<include refid="findList_WHERE"/>
ORDER BY 12 DESC
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitGnrUserRegMngMapper.findListTotCnt */
/** 일반사용자등록관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.user.model.XitGnrUserRegMngVO">
/** XitGnrUserRegMngMapper.findView */
/** 일반사용자등록관리 상세정보 조회 */
SELECT
A.ESNTL_ID AS "uniqId"
,'USR01' AS "userTy"
,A.MBER_ID AS "mberId"
,A.MBER_NM AS "mberNm"
,A.PASSWORD AS "password"
,A.PASSWORD_HINT AS "passwordHint"
,A.PASSWORD_CNSR AS "passwordCnsr"
,A.IHIDNUM AS "ihidnum"
,A.SEXDSTN_CODE AS "sexdstnCode"
,A.ZIP AS "zip"
,A.ADRES AS "adres"
,A.AREA_NO AS "areaNo"
,A.MBER_STTUS AS "mberSttus"
,A.DETAIL_ADRES AS "detailAdres"
,A.END_TELNO AS "endTelno"
,A.MBTLNUM AS "mbtlnum"
,A.GROUP_ID AS "groupId"
,A.MBER_FXNUM AS "mberFxnum"
,A.MBER_EMAIL_ADRES AS "mberEmailAdres"
,A.MIDDLE_TELNO AS "middleTelno"
,A.SBSCRB_DE AS "sbscrbDe"
<!-- ,A.LOCK_AT AS "lockAt" -->
<include refid="findList_FROM"/>
WHERE A.ESNTL_ID = #{uniqId}
</select>
</mapper>

@ -1,93 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.user.mapper.XitUserAbsntMngMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT X.USER_ID AS "userId"
,X.USER_NM AS "userNm"
,X.USER_ABSNCE_AT AS "userAbsnceAt"
,X.REG_YN AS "regYn"
,X.LAST_UPDUSR_ID AS "lastUpdusrId"
,X.LAST_UPDT_PNTTM AS "lastUpdusrPnttm"
</sql>
<sql id="findList_FROM">
FROM (
SELECT A.USER_ID
,A.USER_NM
,(CASE
WHEN B.USER_ABSNCE_AT IS NULL THEN 'N'
ELSE B.USER_ABSNCE_AT
END)
AS USER_ABSNCE_AT
,(CASE WHEN B.USER_ABSNCE_AT IS NULL THEN 'N' ELSE 'Y' END)
AS REG_YN
,LAST_UPDUSR_ID
,LAST_UPDT_PNTTM
FROM XIT_USER_INFO A
LEFT OUTER JOIN XIT_USER_ABSNCE B ON A.USER_ID = B.USER_ID
) X
</sql>
<sql id="findList_WHERE">
<if test="'1'.toString() == searchCondition">
AND X.USER_NM LIKE '%'||#{searchKeyword}||'%'
</if>
<if test="'A'.toString() != selAbsnceAt">
AND X.USER_ABSNCE_AT = #{selAbsnceAt}
</if>
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.user.model.XitUserAbsntMngVO">
/** XitUserAbsntMngMapper.findList */
/** 사용자부재관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1 = 1
<include refid="findList_WHERE"/>
ORDER BY LAST_UPDT_PNTTM DESC
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitUserAbsntMngMapper.findListTotCnt */
/** 사용자부재관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.user.model.XitUserAbsntMngVO">
/** XitUserAbsntMngMapper.findView */
/** 사용자부재관리 상세정보 조회 */
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE X.USER_ID = #{userId}
</select>
</mapper>

@ -1,116 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.user.mapper.XitUserEtcOptMngMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT A.USER_ID AS "userId"
,A.USER_NM AS "userNm"
,B.JOB_DATA_AUTHOR AS "jobDataAuthor"
,B.USER_MANAGE_AUTHOR AS "userManageAuthor"
,B.ELCTRNSANCTN_USE_AT AS "elctrnsanctnUseAt"
,B.JOB_CONFM_AUTHOR_AT AS "jobConfmAuthorAt"
</sql>
<sql id="findList_FROM">
FROM XIT_USER_INFO A
LEFT JOIN XIT_USER_ETC_OPTION B ON A.USER_ID=B.USER_ID
</sql>
<sql id="findList_WHERE">
<choose>
<when test="'0'.toString() == searchCondition">
AND A.USER_ID LIKE #{searchKeyword}
</when>
<when test="'1'.toString() == searchCondition">
AND A.USER_NM LIKE '%' ||#{searchKeyword}|| '%'
</when>
<when test="'2'.toString() == searchCondition">
AND A.GROUP_ID = #{searchKeyword}
</when>
</choose>
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.user.model.XitUserEtcOptMngVO">
/** XitUserEtcOptMngMapper.findList */
/** 사용자기타옵션관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1 = 1
<include refid="findList_WHERE"/>
ORDER BY A.USER_ID
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitUserEtcOptMngMapper.findListTotCnt */
/** 사용자기타옵션관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.user.model.XitUserEtcOptMngVO">
/** XitUserEtcOptMngMapper.findView */
/** 사용자기타옵션관리 상세정보 조회 */
SELECT ESNTL_ID AS "uniqId"
,'USR03' AS "userTy"
,A.USER_ID AS "emplyrId"
,A.USER_NM AS "emplyrNm"
,A.PASSWORD AS "password"
,A.PASSWORD_HINT AS "passwordHint"
,A.PASSWORD_CNSR AS "passwordCnsr"
,A.EMPL_NO AS "emplNo"
,A.IHIDNUM AS "ihidnum"
,A.SEXDSTN_CODE AS "sexdstnCode"
,A.BRTHDY AS "brthdy"
,A.AREA_NO AS "areaNo"
,A.HOUSE_MIDDLE_TELNO AS "houseMiddleTelno"
,A.HOUSE_END_TELNO AS "houseEndTelno"
,A.FXNUM AS "fxnum"
,A.HOUSE_ADRES AS "houseAdres"
,A.DETAIL_ADRES AS "detailAdres"
,A.ZIP AS "zip"
,A.OFFM_TELNO AS "offmTelno"
,A.MBTLNUM AS "mbtlnum"
,A.EMAIL_ADRES AS "emailAdres"
,A.OFCPS_NM AS "ofcpsNm"
,A.GROUP_ID AS "groupId"
,A.ORGNZT_ID AS "orgnztId"
,A.PSTINST_CODE AS "pstinstCode"
,A.USER_STTUS_CODE AS "userSttusCode"
,A.SBSCRB_DE AS "sbscrbDe"
,A.CRTFC_DN_VALUE AS "crtfcDnValue"
,B.JOB_DATA_AUTHOR AS "jobDataAuthor"
,B.USER_MANAGE_AUTHOR AS "userManageAuthor"
,B.ELCTRNSANCTN_USE_AT AS "elctrnsanctnUseAt"
,B.JOB_CONFM_AUTHOR_AT AS "jobConfmAuthorAt"
<include refid="findList_FROM"/>
WHERE A.ESNTL_ID = #{uniqId}
</select>
</mapper>

@ -1,120 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.user.mapper.UserMgtMapper">
<!-- SQL 페이징 코드 -->
<sql id="pageBefore">
SELECT * FROM
(SELECT LIST.*, ROWNUM AS "RN" FROM(
</sql>
<sql id="pageAfter">
) LIST
) WHERE RN BETWEEN #{firstIndex} + 1 AND #{firstIndex} + #{recordCountPerPage}
</sql>
<sql id="findList_SELECT">
SELECT A.ESNTL_ID AS "uniqId"
,'USR03' AS "userTy"
,A.USER_ID AS "userId"
,A.USER_NM AS "userNm"
,A.EMAIL_ADRES AS "emailAdres"
,A.AREA_NO AS "areaNo"
,A.HOUSE_MIDDLE_TELNO AS "middleTelno"
,A.HOUSE_END_TELNO AS "endTelno"
,A.MBTLNUM AS "mbtlnum"
,A.GROUP_ID AS "groupId"
,A.USER_STTUS_CODE AS "sttus"
,A.SBSCRB_DE AS "sbscrbDe"
,(SELECT CODE_NM FROM XIT_CMMN_DETAIL_CODE WHERE USE_AT = 'Y' AND CODE_ID = 'XIT013' AND CODE = A.USER_STTUS_CODE) AS "userSttusCode"
</sql>
<sql id="findList_FROM">
FROM XIT_USER_INFO A
</sql>
<sql id="findList_WHERE">
<if test="'0'.toString() != sbscrbSttus">
AND A.USER_STTUS_CODE LIKE #{sbscrbSttus}
</if>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(searchKeyword)">
<choose>
<when test="'0'.toString() == searchCondition">
AND A.USER_ID LIKE #{searchKeyword}
</when>
<when test="'1'.toString() == searchCondition">
AND A.USER_NM LIKE '%' ||#{searchKeyword}|| '%'
</when>
</choose>
</if>
</sql>
<select id="findList" resultType="kr.xit.framework.biz.mng.user.model.XitUserRegMngVO">
/** XitUserRegMngMapper.findList */
/** 사용자등록관리 목록 조회 */
<if test="searchGubun == 'list'">
<include refid="pageBefore" />
</if>
<include refid="findList_SELECT"/>
<include refid="findList_FROM"/>
WHERE 1 = 1
<include refid="findList_WHERE"/>
ORDER BY 12 DESC
<if test="searchGubun == 'list'">
<include refid="pageAfter" />
</if>
</select>
<select id="findListTotCnt" resultType="int">
/** XitUserRegMngMapper.findListTotCnt */
/** 사용자등록관리 목록 총건수 조회 */
SELECT COUNT(1) AS "CNT"
<include refid="findList_FROM"/>
WHERE 1=1
<include refid="findList_WHERE"/>
</select>
<select id="findView" resultType="kr.xit.framework.biz.mng.user.model.XitUserRegMngVO">
/** XitUserRegMngMapper.findView */
/** 사용자등록관리 상세정보 조회 */
SELECT ESNTL_ID AS "uniqId"
,'USR03' AS "userTy"
,A.USER_ID AS "emplyrId"
,A.USER_NM AS "emplyrNm"
,A.PASSWORD AS "password"
,A.PASSWORD_HINT AS "passwordHint"
,A.PASSWORD_CNSR AS "passwordCnsr"
,A.EMPL_NO AS "emplNo"
,A.IHIDNUM AS "ihidnum"
,A.SEXDSTN_CODE AS "sexdstnCode"
,A.BRTHDY AS "brthdy"
,A.AREA_NO AS "areaNo"
,A.HOUSE_MIDDLE_TELNO AS "houseMiddleTelno"
,A.HOUSE_END_TELNO AS "houseEndTelno"
,A.FXNUM AS "fxnum"
,A.HOUSE_ADRES AS "houseAdres"
,A.DETAIL_ADRES AS "detailAdres"
,A.ZIP AS "zip"
,A.OFFM_TELNO AS "offmTelno"
,A.MBTLNUM AS "mbtlnum"
,A.EMAIL_ADRES AS "emailAdres"
,A.OFCPS_NM AS "ofcpsNm"
,A.GROUP_ID AS "groupId"
,A.ORGNZT_ID AS "orgnztId"
,A.PSTINST_CODE AS "pstinstCode"
,A.USER_STTUS_CODE AS "userSttusCode"
,A.SBSCRB_DE AS "sbscrbDe"
,A.CRTFC_DN_VALUE AS "crtfcDnValue"
<include refid="findList_FROM"/>
WHERE A.ESNTL_ID = #{uniqId}
</select>
</mapper>

@ -1,185 +0,0 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="registerFlag" value="${empty groupManageVO.groupId ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty groupManageVO.groupId ? '그룹 등록' : '그룹 수정'}"/>
<!-- 검색 필드 박스 시작 -->
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
<validator:javascript formName="groupManage" staticJavascript="false" xhtml="true" cdata="false"/>
<form:form commandName="groupManage" method="post" >
<div class="popup" style="min-width: 400px;">
<div class="popup_inner" style="max-width: 400px;">
<p class="pop_title">권한 등록</p>
<table class="tbl03">
<caption>권한 등록</caption>
<tr>
<th class="required" width="25%" scope="row" nowrap="nowrap">그룹 ID</th>
<td nowrap="nowrap"><input name="groupId" id="groupId" type="text" readonly="readonly" value="<c:out value='${groupManage.groupId}'/>" size="40" title="그룹 ID" /></td>
</tr>
<tr>
<th class="required" width="25%" scope="row" nowrap="nowrap">그룹 명
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="groupNm" id="groupNm" type="text" value="<c:out value='${groupManage.groupNm}'/>" maxLength="50" size="40" title="그룹명" />&nbsp;<form:errors path="groupNm" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">설명</th>
<td nowrap="nowrap"><input name="groupDc" id="groupDc" type="text" value="<c:out value='${groupManage.groupDc}'/>" maxLength="50" size="50" title="설명" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">권한</th>
<td nowrap="nowrap">
<select id="authorCode" name="authorCode">
<option value="">== 선택하세요 ==</option>
<c:forEach var="row" items="${listAuthorInfoVO }">
<option value="<c:out value="${row.author_code }"/>" <c:if test="${row.author_code eq groupManage.authorCode}">selected="selected"</c:if> ><c:out value="${row.author_nm }"/></option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">등록일자</th>
<td nowrap="nowrap"><input name="groupCreatDe" id="groupCreatDe" type="text" value="<c:out value='${groupManage.groupCreatDe}'/>" maxLength="50" size="20" readonly="readonly" title="등록일자"/></td>
</tr>
</table>
<div class="popup_btn">
<span class="flr" colspan="4">
<c:if test="${registerFlag == 'INSERT'}">
<a href="#LINK" class="btn blue" id="btnSave">저장</a>
</c:if>
<c:if test="${registerFlag == 'UPDATE'}">
<a href="#LINK" class="btn blue" id="update_btn">변경</a>
<a href="#LINK" class="btn red" id="delete_btn">삭제</a>
</c:if>
<a href="#" class="btn lightgray" id="btnClose">닫기</a>
</span>
</div>
<!-- //등록버튼 -->
</div>
</div>
<!-- //popup -->
<!-- 검색조건 유지 -->
<c:if test="${registerFlag == 'UPDATE'}">
<input type="hidden" name="searchCondition" value="<c:out value='${groupManageSearchVO.searchCondition}'/>"/>
<input type="hidden" name="searchKeyword" value="<c:out value='${groupManageSearchVO.searchKeyword}'/>"/>
<input type="hidden" name="pageIndex" value="<c:out value='${groupManageSearchVO.pageIndex}'/>"/>
</c:if>
</form:form>
<script type="text/javaScript">
$(document).ready(function(){
XitAuthGrpMng_edit.init();
});
/* *******************************
* 사용자그룹관리 수정 Functions
******************************* */
var XitAuthGrpMng_edit = {
init : function(){
//닫기 버튼 Event
$("#btnClose").click(function() {
window.close();
});
//저장 버튼 Event 설정
$('#btnSave').on({
click: function(){
XitAuthGrpMng_edit.addData();
}
});
$('#update_btn').on({
click: function(){
XitAuthGrpMng_edit.modifyData();
}
});
$('#delete_btn').on({
click: function(){
XitAuthGrpMng_edit.removeData();
}
});
$(".popup").css("position","absolute");
$(".content_header").css("display","none");
$("#cur_loc").css("display","none");
},
/* ========================
* 데이터 등록
======================== */
addData : function(){
var varFrom = document.getElementById("groupManage");
if(confirm("저장 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthGrpMng_insert_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthGrpMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 수정
======================== */
,modifyData : function(){
var varFrom = document.getElementById("groupManage");
if(confirm("수정 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthGrpMng_update_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthGrpMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 삭제
======================== */
,removeData : function(){
var varFrom = document.getElementById("groupManage");
if(confirm("삭제 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthGrpMng_delete_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthGrpMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
}
</script>

@ -1,185 +0,0 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="registerFlag" value="${empty groupManageVO.groupId ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty groupManageVO.groupId ? '그룹 등록' : '그룹 수정'}"/>
<!-- 검색 필드 박스 시작 -->
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
<validator:javascript formName="groupManage" staticJavascript="false" xhtml="true" cdata="false"/>
<form:form commandName="groupManage" method="post" >
<div class="popup" style="min-width: 400px;">
<div class="popup_inner" style="max-width: 400px;">
<p class="pop_title">권한 등록</p>
<table class="tbl03">
<caption>권한 등록</caption>
<tr>
<th class="required" width="25%" scope="row" nowrap="nowrap">그룹 ID</th>
<td nowrap="nowrap"><input name="groupId" id="groupId" type="text" readonly="readonly" value="<c:out value='${groupManage.groupId}'/>" size="40" title="그룹 ID" /></td>
</tr>
<tr>
<th class="required" width="25%" scope="row" nowrap="nowrap">그룹 명
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="groupNm" id="groupNm" type="text" value="<c:out value='${groupManage.groupNm}'/>" maxLength="50" size="40" title="그룹명" />&nbsp;<form:errors path="groupNm" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">설명</th>
<td nowrap="nowrap"><input name="groupDc" id="groupDc" type="text" value="<c:out value='${groupManage.groupDc}'/>" maxLength="50" size="50" title="설명" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">권한</th>
<td nowrap="nowrap">
<select id="authorCode" name="authorCode">
<option value="">== 선택하세요 ==</option>
<c:forEach var="row" items="${listAuthorInfoVO }">
<option value="<c:out value="${row.author_code }"/>"><c:out value="${row.author_nm }"/></option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">등록일자</th>
<td nowrap="nowrap"><input name="groupCreatDe" id="groupCreatDe" type="text" value="<c:out value='${groupManage.groupCreatDe}'/>" maxLength="50" size="20" readonly="readonly" title="등록일자"/></td>
</tr>
</table>
<div class="popup_btn">
<span class="flr" colspan="4">
<c:if test="${registerFlag == 'INSERT'}">
<a href="#LINK" class="btn blue" id="btnSave">저장</a>
</c:if>
<c:if test="${registerFlag == 'UPDATE'}">
<a href="#LINK" class="btn blue" id="update_btn">변경</a>
<a href="#LINK" class="btn blue" id="delete_btn">삭제</a>
</c:if>
<a href="#" class="btn lightgray" id="btnClose">닫기</a>
</span>
</div>
<!-- //등록버튼 -->
</div>
</div>
<!-- //popup -->
<!-- 검색조건 유지 -->
<c:if test="${registerFlag == 'UPDATE'}">
<input type="hidden" name="searchCondition" value="<c:out value='${groupManageSearchVO.searchCondition}'/>"/>
<input type="hidden" name="searchKeyword" value="<c:out value='${groupManageSearchVO.searchKeyword}'/>"/>
<input type="hidden" name="pageIndex" value="<c:out value='${groupManageSearchVO.pageIndex}'/>"/>
</c:if>
</form:form>
<script type="text/javaScript">
$(document).ready(function(){
XitAuthGrpMng_input.init();
});
/* *******************************
* 사용자그룹관리 등록 Functions
******************************* */
var XitAuthGrpMng_input = {
init : function(){
//닫기 버튼 Event
$("#btnClose").click(function() {
window.close();
});
//저장 버튼 Event 설정
$('#btnSave').on({
click: function(){
XitAuthGrpMng_input.addData();
}
});
$('#update_btn').on({
click: function(){
XitAuthGrpMng_input.modifyData();
}
});
$('#delete_btn').on({
click: function(){
XitAuthGrpMng_input.removeData();
}
});
$(".popup").css("position","absolute");
$(".content_header").css("display","none");
$("#cur_loc").css("display","none");
},
/* ========================
* 데이터 등록
======================== */
addData : function(){
var varFrom = document.getElementById("groupManage");
if(confirm("저장 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthGrpMng_insert_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthGrpMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 수정
======================== */
,modifyData : function(){
var varFrom = document.getElementById("groupManage");
if(confirm("수정 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthGrpMng_update_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthGrpMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 삭제
======================== */
,removeData : function(){
var varFrom = document.getElementById("groupManage");
if(confirm("삭제 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthGrpMng_delete_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthGrpMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
}
</script>

@ -1,176 +0,0 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="registerFlag" value="${empty authorManageVO.authorCode ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty authorManageVO.authorCode ? '권한 등록' : '권한 수정'}"/>
<!-- 검색 필드 박스 시작 -->
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
<validator:javascript formName="authorManage" staticJavascript="false" xhtml="true" cdata="false"/>
<form:form commandName="authorManage" method="post" >
<div class="popup" style="min-width: 400px;">
<div class="popup_inner" style="max-width: 400px;">
<p class="pop_title">권한 등록</p>
<table class="tbl03">
<caption>권한 등록</caption>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">권한 코드
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="authorCode" id="authorCode" type="text" value="<c:out value='${authorManage.authorCode}'/>" size="40" title="권한코드" />&nbsp;<form:errors path="authorCode" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">권한 명
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="authorNm" id="authorNm" type="text" value="<c:out value='${authorManage.authorNm}'/>" maxLength="50" size="40" title="권한명" />&nbsp;<form:errors path="authorNm" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">설명</th>
<td nowrap="nowrap"><input name="authorDc" id="authorDc" type="text" value="<c:out value='${authorManage.authorDc}'/>" maxLength="50" size="50" title="설명" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">등록일자</th>
<td nowrap="nowrap"><input name="authorCreatDe" id="authorCreatDe" type="text" value="<c:out value='${authorManage.authorCreatDe}'/>" maxLength="50" size="20" readonly="readonly" title="등록일자"/></td>
</tr>
</table>
<div class="popup_btn">
<span class="flr" colspan="4">
<c:if test="${registerFlag == 'INSERT'}">
<a href="#LINK" class="btn blue" id="btnSave">저장</a>
</c:if>
<c:if test="${registerFlag == 'UPDATE'}">
<a href="#LINK" class="btn blue" id="update_btn">변경</a>
<a href="#LINK" class="btn red" id="delete_btn">삭제</a>
</c:if>
<a href="#" class="btn lightgray" id="btnClose">닫기</a>
</span>
</div>
<!-- //등록버튼 -->
</div>
</div>
<!-- //popup -->
</form:form>
<script type="text/javaScript">
$(document).ready(function(){
XitAuthRegMng_edit.init();
});
/* *******************************
* 권한관리 수정화면 Functions
******************************* */
var XitAuthRegMng_edit = {
init : function(){
//닫기 버튼 Event
$("#btnClose").click(function() {
window.close();
});
//저장 버튼 Event 설정
$('#btnSave').on({
click: function(){
XitAuthRegMng_edit.addData();
}
});
$('#update_btn').on({
click: function(){
XitAuthRegMng_edit.modifyData();
}
});
$('#delete_btn').on({
click: function(){
XitAuthRegMng_edit.removeData();
}
});
$(".popup").css("position","absolute");
$(".content_header").css("display","none");
$("#cur_loc").css("display","none");
},
/* ========================
* 데이터 등록
======================== */
addData : function(){
if(!validateAuthorManage(document.getElementById("authorManage")))
return;
var varFrom = document.getElementById("authorManage");
if(confirm("저장 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRegMng_insert_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRegMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 수정
======================== */
,modifyData : function(){
if(!validateAuthorManage(document.getElementById("authorManage")))
return;
var varFrom = document.getElementById("authorManage");
if(confirm("수정 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRegMng_update_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRegMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 삭제
======================== */
,removeData : function(){
var varFrom = document.getElementById("authorManage");
if(confirm("삭제 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRegMng_delete_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRegMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
}
</script>

@ -1,176 +0,0 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="registerFlag" value="${empty authorManageVO.authorCode ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty authorManageVO.authorCode ? '권한 등록' : '권한 수정'}"/>
<!-- 검색 필드 박스 시작 -->
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
<validator:javascript formName="authorManage" staticJavascript="false" xhtml="true" cdata="false"/>
<form:form commandName="authorManage" method="post" >
<div class="popup" style="min-width: 400px;">
<div class="popup_inner" style="max-width: 400px;">
<p class="pop_title">권한 등록</p>
<table class="tbl03">
<caption>권한 등록</caption>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">권한 코드
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="authorCode" id="authorCode" type="text" value="<c:out value='${authorManage.authorCode}'/>" size="40" title="권한코드" />&nbsp;<form:errors path="authorCode" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">권한 명
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="authorNm" id="authorNm" type="text" value="<c:out value='${authorManage.authorNm}'/>" maxLength="50" size="40" title="권한명" />&nbsp;<form:errors path="authorNm" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">설명</th>
<td nowrap="nowrap"><input name="authorDc" id="authorDc" type="text" value="<c:out value='${authorManage.authorDc}'/>" maxLength="50" size="50" title="설명" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">등록일자</th>
<td nowrap="nowrap"><input name="authorCreatDe" id="authorCreatDe" type="text" value="<c:out value='${authorManage.authorCreatDe}'/>" maxLength="50" size="20" readonly="readonly" title="등록일자"/></td>
</tr>
</table>
<div class="popup_btn">
<span class="flr" colspan="4">
<c:if test="${registerFlag == 'INSERT'}">
<a href="#LINK" class="btn blue" id="btnSave">저장</a>
</c:if>
<c:if test="${registerFlag == 'UPDATE'}">
<a href="#LINK" class="btn blue" id="update_btn">변경</a>
<a href="#LINK" class="btn blue" id="delete_btn">삭제</a>
</c:if>
<a href="#" class="btn lightgray" id="btnClose">닫기</a>
</span>
</div>
<!-- //등록버튼 -->
</div>
</div>
<!-- //popup -->
</form:form>
<script type="text/javaScript">
$(document).ready(function(){
XitAuthRegMng_input.init();
});
/* *******************************
* 권한관리 등록화면 Functions
******************************* */
var XitAuthRegMng_input = {
init : function(){
//닫기 버튼 Event
$("#btnClose").click(function() {
window.close();
});
//저장 버튼 Event 설정
$('#btnSave').on({
click: function(){
XitAuthRegMng_input.addData();
}
});
$('#update_btn').on({
click: function(){
XitAuthRegMng_input.modifyData();
}
});
$('#delete_btn').on({
click: function(){
XitAuthRegMng_input.removeData();
}
});
$(".popup").css("position","absolute");
$(".content_header").css("display","none");
$("#cur_loc").css("display","none");
},
/* ========================
* 데이터 등록
======================== */
addData : function(){
if(!validateAuthorManage(document.getElementById("authorManage")))
return;
var varFrom = document.getElementById("authorManage");
if(confirm("저장 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRegMng_insert_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRegMng_list.findData();
window.close();
},
error: function(){
alert("에러")
}
});
}
}
/* ========================
* 데이터 수정
======================== */
,modifyData : function(){
if(!validateAuthorManage(document.getElementById("authorManage")))
return;
var varFrom = document.getElementById("authorManage");
if(confirm("수정 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRegMng_update_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRegMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 삭제
======================== */
,removeData : function(){
var varFrom = document.getElementById("authorManage");
if(confirm("삭제 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRegMng_delete_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRegMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
}
</script>

@ -1,194 +0,0 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="registerFlag" value="${empty roleManageVO.roleCode ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty roleManageVO.roleCode ? '롤 등록' : '롤 수정'}"/>
<!-- 검색 필드 박스 시작 -->
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
<validator:javascript formName="roleManage" staticJavascript="false" xhtml="true" cdata="false"/>
<form:form commandName="roleManage" method="post" >
<div class="popup" style="min-width: 500px;">
<div class="popup_inner" style="max-width: 500px;">
<p class="pop_title">롤 수정</p>
<table class="tbl03">
<caption>롤 수정</caption>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 코드
</th>
<td nowrap="nowrap"><input name="roleCode" id="roleCode" type="text" value="<c:out value='${roleManage.roleCode}'/>" size="30" readonly="readonly" title="롤 코드" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 명
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="roleNm" id="roleNm" type="text" value="<c:out value='${roleManage.roleNm}'/>" maxLength="50" size="30" title="롤명" />&nbsp;<form:errors path="roleNm" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 패턴
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="rolePtn" id="rolePtn" type="text" value="<c:out value='${roleManage.rolePtn}'/>" maxLength="200" size="50" title="롤패턴" />&nbsp;<form:errors path="rolePtn" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">설명
</th>
<td nowrap="nowrap"><input name="roleDc" id="roleDc" type="text" value="<c:out value='${roleManage.roleDc}'/>" maxLength="50" size="50" title="설명" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 타입
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap">
<select name="roleTyp" title="롤타입">
<c:forEach var="cmmCodeDetail" items="${cmmCodeDetailList}" varStatus="status">
<option value="<c:out value="${cmmCodeDetail.code}"/>" <c:if test="${cmmCodeDetail.codeNm == roleManage.roleTyp}">selected</c:if> ><c:out value="${cmmCodeDetail.codeNm}"/></option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 Sort
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="roleSort" id="roleSort" type="text" value="<c:out value='${roleManage.roleSort}'/>" maxLength="50" size="30" title="롤sort" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">등록일자</th>
<td nowrap="nowrap"><input name="roleCreatDe" id="roleCreatDe" type="text" value="<c:out value='${roleManage.roleCreatDe}'/>" maxLength="50" size="20" title="등록일자" readonly="readonly"/></td>
</tr>
</table>
<div class="popup_btn">
<span class="flr" colspan="4">
<c:if test="${registerFlag == 'INSERT'}">
<a href="#LINK" class="btn blue" id="btnSave">저장</a>
</c:if>
<c:if test="${registerFlag == 'UPDATE'}">
<a href="#LINK" class="btn blue" id="update_btn">변경</a>
<a href="#LINK" class="btn red" id="delete_btn">삭제</a>
</c:if>
<a href="#" class="btn lightgray" id="btnClose">닫기</a>
</span>
</div>
<!-- //등록버튼 -->
</div>
</div>
<!-- //popup -->
</form:form>
<script type="text/javaScript">
$(document).ready(function(){
XitAuthRuleMng_edit.init();
});
/* *******************************
* 롤 관리 수정화면 Functions
******************************* */
var XitAuthRuleMng_edit = {
init : function(){
//닫기 버튼 Event
$("#btnClose").click(function() {
window.close();
});
//저장 버튼 Event 설정
$('#btnSave').on({
click: function(){
XitAuthRuleMng_edit.addData();
}
});
$('#update_btn').on({
click: function(){
XitAuthRuleMng_edit.modifyData();
}
});
$('#delete_btn').on({
click: function(){
XitAuthRuleMng_edit.removeData();
}
});
$(".popup").css("position","absolute");
$(".content_header").css("display","none");
$("#cur_loc").css("display","none");
},
/* ========================
* 데이터 등록
======================== */
addData : function(){
var varFrom = document.getElementById("roleManage");
if(confirm("저장 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRuleMng_insert_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRuleMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 수정
======================== */
,modifyData : function(){
var varFrom = document.getElementById("roleManage");
if(confirm("수정 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRuleMng_update_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRuleMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 삭제
======================== */
,removeData : function(){
var varFrom = document.getElementById("roleManage");
if(confirm("삭제 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRuleMng_delete_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRuleMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
}
</script>

@ -1,194 +0,0 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="registerFlag" value="${empty roleManageVO.roleCode ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty roleManageVO.roleCode ? '롤 등록' : '롤 수정'}"/>
<!-- 검색 필드 박스 시작 -->
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
<validator:javascript formName="roleManage" staticJavascript="false" xhtml="true" cdata="false"/>
<form:form commandName="roleManage" method="post" >
<div class="popup" style="min-width: 500px;">
<div class="popup_inner" style="max-width: 500px;">
<p class="pop_title">롤 등록</p>
<table class="tbl03">
<caption>롤 등록</caption>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 코드
</th>
<td nowrap="nowrap"><input name="roleCode" id="roleCode" type="text" value="<c:out value='${roleManage.roleCode}'/>" size="30" readonly="readonly" title="롤 코드" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 명
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="roleNm" id="roleNm" type="text" value="<c:out value='${roleManage.roleNm}'/>" maxLength="50" size="30" title="롤명" />&nbsp;<form:errors path="roleNm" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 패턴
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="rolePtn" id="rolePtn" type="text" value="<c:out value='${roleManage.rolePtn}'/>" maxLength="200" size="50" title="롤패턴" />&nbsp;<form:errors path="rolePtn" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">설명
</th>
<td nowrap="nowrap"><input name="roleDc" id="roleDc" type="text" value="<c:out value='${roleManage.roleDc}'/>" maxLength="50" size="50" title="설명" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 타입
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap">
<select name="roleTyp" title="롤타입">
<c:forEach var="cmmCodeDetail" items="${cmmCodeDetailList}" varStatus="status">
<option value="<c:out value="${cmmCodeDetail.code}"/>" <c:if test="${cmmCodeDetail.code == roleManage.roleTyp}">selected</c:if> ><c:out value="${cmmCodeDetail.codeNm}"/></option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 Sort
<img src="<c:url value='/'/>images/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="roleSort" id="roleSort" type="text" value="<c:out value='${roleManage.roleSort}'/>" maxLength="50" size="30" title="롤sort" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">등록일자</th>
<td nowrap="nowrap"><input name="roleCreatDe" id="roleCreatDe" type="text" value="<c:out value='${roleManage.roleCreatDe}'/>" maxLength="50" size="20" title="등록일자" readonly="readonly"/></td>
</tr>
</table>
<div class="popup_btn">
<span class="flr" colspan="4">
<c:if test="${registerFlag == 'INSERT'}">
<a href="#LINK" class="btn blue" id="btnSave">저장</a>
</c:if>
<c:if test="${registerFlag == 'UPDATE'}">
<a href="#LINK" class="btn blue" id="update_btn">변경</a>
<a href="#LINK" class="btn blue" id="delete_btn">삭제</a>
</c:if>
<a href="#" class="btn lightgray" id="btnClose">닫기</a>
</span>
</div>
<!-- //등록버튼 -->
</div>
</div>
<!-- //popup -->
</form:form>
<script type="text/javaScript">
$(document).ready(function(){
XitAuthRuleMng_input.init();
});
/* *******************************
* 롤 관리 등록화면 Functions
******************************* */
var XitAuthRuleMng_input = {
init : function(){
//닫기 버튼 Event
$("#btnClose").click(function() {
window.close();
});
//저장 버튼 Event 설정
$('#btnSave').on({
click: function(){
XitAuthRuleMng_input.addData();
}
});
$('#update_btn').on({
click: function(){
XitAuthRuleMng_input.modifyData();
}
});
$('#delete_btn').on({
click: function(){
XitAuthRuleMng_input.removeData();
}
});
$(".popup").css("position","absolute");
$(".content_header").css("display","none");
$("#cur_loc").css("display","none");
},
/* ========================
* 데이터 등록
======================== */
addData : function(){
var varFrom = document.getElementById("roleManage");
if(confirm("저장 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRuleMng_insert_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRuleMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 수정
======================== */
,modifyData : function(){
var varFrom = document.getElementById("roleManage");
if(confirm("수정 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRuleMng_update_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRuleMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 삭제
======================== */
,removeData : function(){
var varFrom = document.getElementById("roleManage");
if(confirm("삭제 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRuleMng_delete_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRuleMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
}
</script>

@ -7,142 +7,179 @@
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="registerFlag" value="${empty groupManageVO.groupId ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty groupManageVO.groupId ? '그룹 등록' : '그룹 수정'}"/>
<!-- 검색 필드 박스 시작 -->
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
<validator:javascript formName="groupManage" staticJavascript="false" xhtml="true" cdata="false"/>
<script type="text/javaScript">
function fncSelectGroupList() {
var varFrom = document.getElementById("groupManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthGrpMng_list.do'/>";
varFrom.submit();
}
function fncGroupInsert() {
var varFrom = document.getElementById("groupManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthGrpMng_insert_proc.do'/>";
if(confirm("저장 하시겠습니까?")){
if(!validateGroupManage(varFrom)){
return;
}else{
varFrom.submit();
}
}
}
function fncGroupUpdate() {
var varFrom = document.getElementById("groupManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthGrpMng_update_proc.do'/>";
if(confirm("저장 하시겠습니까?")){
if(!validateGroupManage(varFrom)){
return;
}else{
varFrom.submit();
}
}
}
function fncGroupDelete() {
var varFrom = document.getElementById("groupManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthGrpMng_delete_proc.do'/>";
if(confirm("삭제 하시겠습니까?")){
varFrom.submit();
}
}
/* ********************************************************
* 처리결과메시지 출력
******************************************************** */
<c:if test="${!empty message}">alert("${message}");</c:if>
</script>
<!-- 검색 필드 박스 시작 -->
<div id="search_field">
<div id="search_field_loc"><h2><strong><c:out value="${registerFlagName}"/></strong></h2></div>
</div>
<form:form commandName="groupManage" method="post" >
<div class="modify_user" >
<table summary="그룹을 수정하는 테이블입니다.그룹 ID,그룹 명,설명,등록일자 정보를 담고 있습니다.">
<tr>
<th class="required" width="25%" scope="row" nowrap="nowrap">그룹 ID
</th>
<td nowrap="nowrap"><input name="groupId" id="groupId" type="text" readonly="readonly" value="<c:out value='${groupManage.groupId}'/>" size="40" title="그룹 ID" /></td>
</tr>
<tr>
<th class="required" width="25%" scope="row" nowrap="nowrap">그룹 명
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="groupNm" id="groupNm" type="text" value="<c:out value='${groupManage.groupNm}'/>" maxLength="50" size="40" title="그룹명" />&nbsp;<form:errors path="groupNm" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">설명</th>
<td nowrap="nowrap"><input name="groupDc" id="groupDc" type="text" value="<c:out value='${groupManage.groupDc}'/>" maxLength="50" size="50" title="설명" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">등록일자</th>
<td nowrap="nowrap"><input name="groupCreatDe" id="groupCreatDe" type="text" value="<c:out value='${groupManage.groupCreatDe}'/>" maxLength="50" size="20" readonly="readonly" title="등록일자"/></td>
</tr>
</table>
</div>
<!-- 버튼 시작(상세지정 style로 div에 지정) -->
<div class="buttons" style="padding-top:10px;padding-bottom:10px;">
<!-- 목록/저장버튼 -->
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<a href="#LINK" onclick="javascript:fncSelectGroupList()" style="selector-dummy:expression(this.hideFocus=false);">목록</a>
</td>
<c:if test="${registerFlag == 'INSERT'}">
<td width="10"></td>
<td>
<a href="#LINK" onclick="javascript:fncGroupInsert()" style="selector-dummy:expression(this.hideFocus=false);">저장</a>
</td>
</c:if>
<c:if test="${registerFlag == 'UPDATE'}">
<td width="10"></td>
<td>
<a href="#LINK" onclick="javascript:fncGroupUpdate()" style="selector-dummy:expression(this.hideFocus=false);">저장</a>
</td>
<td width="10"></td>
<td>
<a href="#LINK" onclick="javascript:fncGroupDelete()" style="selector-dummy:expression(this.hideFocus=false);">삭제</a>
</td>
</c:if>
</tr>
</table>
</div>
<!-- 버튼 끝 -->
<form:form commandName="groupManage" method="post" >
<div class="popup" style="min-width: 400px;">
<div class="popup_inner" style="max-width: 400px;">
<p class="pop_title">권한 등록</p>
<table class="tbl03">
<caption>권한 등록</caption>
<tr>
<th class="required" width="25%" scope="row" nowrap="nowrap">그룹 ID</th>
<td nowrap="nowrap"><input name="groupId" id="groupId" type="text" readonly="readonly" value="<c:out value='${groupManage.groupId}'/>" size="40" title="그룹 ID" /></td>
</tr>
<tr>
<th class="required" width="25%" scope="row" nowrap="nowrap">그룹 명
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="groupNm" id="groupNm" type="text" value="<c:out value='${groupManage.groupNm}'/>" maxLength="50" size="40" title="그룹명" />&nbsp;<form:errors path="groupNm" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">설명</th>
<td nowrap="nowrap"><input name="groupDc" id="groupDc" type="text" value="<c:out value='${groupManage.groupDc}'/>" maxLength="50" size="50" title="설명" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">권한</th>
<td nowrap="nowrap">
<select id="authorCode" name="authorCode">
<option value="">== 선택하세요 ==</option>
<c:forEach var="row" items="${listAuthorInfoVO }">
<option value="<c:out value="${row.author_code }"/>" <c:if test="${row.author_code eq groupManage.authorCode}">selected="selected"</c:if> ><c:out value="${row.author_nm }"/></option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">등록일자</th>
<td nowrap="nowrap"><input name="groupCreatDe" id="groupCreatDe" type="text" value="<c:out value='${groupManage.groupCreatDe}'/>" maxLength="50" size="20" readonly="readonly" title="등록일자"/></td>
</tr>
</table>
<div class="popup_btn">
<span class="flr" colspan="4">
<c:if test="${registerFlag == 'INSERT'}">
<a href="#LINK" class="btn blue" id="btnSave">저장</a>
</c:if>
<c:if test="${registerFlag == 'UPDATE'}">
<a href="#LINK" class="btn blue" id="update_btn">변경</a>
<a href="#LINK" class="btn red" id="delete_btn">삭제</a>
</c:if>
<a href="#" class="btn lightgray" id="btnClose">닫기</a>
</span>
</div>
<!-- //등록버튼 -->
</div>
</div>
<!-- //popup -->
<!-- 검색조건 유지 -->
<c:if test="${registerFlag == 'UPDATE'}">
<input type="hidden" name="searchCondition" value="<c:out value='${groupManageSearchVO.searchCondition}'/>"/>
<input type="hidden" name="searchKeyword" value="<c:out value='${groupManageSearchVO.searchKeyword}'/>"/>
<input type="hidden" name="pageIndex" value="<c:out value='${groupManageSearchVO.pageIndex}'/>"/>
<input type="hidden" name="searchCondition" value="<c:out value='${groupManageSearchVO.searchCondition}'/>"/>
<input type="hidden" name="searchKeyword" value="<c:out value='${groupManageSearchVO.searchKeyword}'/>"/>
<input type="hidden" name="pageIndex" value="<c:out value='${groupManageSearchVO.pageIndex}'/>"/>
</c:if>
<!-- 검색조건 유지 -->
</form:form>
<div align="right">
<input type="text" name="message" value="<c:out value='${message}'/>" size="30" readonly="readonly" title="메시지" />
</div>
<script type="text/javaScript">
$(document).ready(function(){
XitAuthGrpMng_edit.init();
});
/* *******************************
* 사용자그룹관리 수정 Functions
******************************* */
var XitAuthGrpMng_edit = {
init : function(){
//닫기 버튼 Event
$("#btnClose").click(function() {
window.close();
});
//저장 버튼 Event 설정
$('#btnSave').on({
click: function(){
XitAuthGrpMng_edit.addData();
}
});
$('#update_btn').on({
click: function(){
XitAuthGrpMng_edit.modifyData();
}
});
$('#delete_btn').on({
click: function(){
XitAuthGrpMng_edit.removeData();
}
});
$(".popup").css("position","absolute");
$(".content_header").css("display","none");
$("#cur_loc").css("display","none");
},
/* ========================
* 데이터 등록
======================== */
addData : function(){
var varFrom = document.getElementById("groupManage");
if(confirm("저장 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthGrpMng_insert_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthGrpMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 수정
======================== */
,modifyData : function(){
var varFrom = document.getElementById("groupManage");
if(confirm("수정 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthGrpMng_update_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthGrpMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 삭제
======================== */
,removeData : function(){
var varFrom = document.getElementById("groupManage");
if(confirm("삭제 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthGrpMng_delete_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthGrpMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
}
</script>

@ -7,143 +7,179 @@
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="registerFlag" value="${empty groupManageVO.groupId ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty groupManageVO.groupId ? '그룹 등록' : '그룹 수정'}"/>
<!-- 검색 필드 박스 시작 -->
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
<validator:javascript formName="groupManage" staticJavascript="false" xhtml="true" cdata="false"/>
<script type="text/javaScript">
function fncSelectGroupList() {
var varFrom = document.getElementById("groupManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthGrpMng_list.do'/>";
varFrom.submit();
}
function fncGroupInsert() {
var varFrom = document.getElementById("groupManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthGrpMng_insert_proc.do'/>";
if(confirm("저장 하시겠습니까?")){
if(!validateGroupManage(varFrom)){
return;
}else{
varFrom.submit();
}
}
}
function fncGroupUpdate() {
var varFrom = document.getElementById("groupManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthGrpMng_update_proc.do'/>";
if(confirm("저장 하시겠습니까?")){
if(!validateGroupManage(varFrom)){
return;
}else{
varFrom.submit();
}
}
}
function fncGroupDelete() {
var varFrom = document.getElementById("groupManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthGrpMng_delete_proc.do'/>";
if(confirm("삭제 하시겠습니까?")){
varFrom.submit();
}
}
/* ********************************************************
* 처리결과메시지 출력
******************************************************** */
<c:if test="${!empty message}">alert("${message}");</c:if>
</script>
<!-- 검색 필드 박스 시작 -->
<div id="search_field">
<div id="search_field_loc"><h2><strong><c:out value="${registerFlagName}"/></strong></h2></div>
</div>
<form:form commandName="groupManage" method="post" >
<div class="modify_user" >
<table summary="그룹을 수정하는 테이블입니다.그룹 ID,그룹 명,설명,등록일자 정보를 담고 있습니다.">
<tr>
<th class="required" width="25%" scope="row" nowrap="nowrap">그룹 ID
</th>
<td nowrap="nowrap"><input name="groupId" id="groupId" type="text" value="<c:out value='${groupManage.groupId}'/>" size="40" title="그룹 ID"/></td>
</tr>
<tr>
<th class="required" width="25%" scope="row" nowrap="nowrap">그룹 명
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="groupNm" id="groupNm" type="text" value="<c:out value='${groupManage.groupNm}'/>" title="그룹명" maxLength="50" size="40" />&nbsp;<form:errors path="groupNm" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">설명</th>
<td nowrap="nowrap"><input name="groupDc" id="groupDc" type="text" value="<c:out value='${groupManage.groupDc}'/>" title="설명" maxLength="50" size="50" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">등록일자</th>
<td nowrap="nowrap"><input name="groupCreatDe" id="groupCreatDe" type="text" value="<c:out value='${groupManage.groupCreatDe}'/>" title="등록일자" maxLength="50" size="20" readonly="readonly"/></td>
</tr>
</table>
</div>
<!-- 버튼 시작(상세지정 style로 div에 지정) -->
<div class="buttons" style="padding-top:10px;padding-bottom:10px;">
<!-- 목록/저장버튼 -->
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<a href="#LINK" onclick="javascript:fncSelectGroupList()" style="selector-dummy:expression(this.hideFocus=false);">목록</a>
</td>
<c:if test="${registerFlag == 'INSERT'}">
<td width="10"></td>
<td>
<a href="#LINK" onclick="javascript:fncGroupInsert()" style="selector-dummy:expression(this.hideFocus=false);">저장</a>
</td>
</c:if>
<c:if test="${registerFlag == 'UPDATE'}">
<td width="10"></td>
<td>
<a href="#LINK" onclick="javascript:fncGroupUpdate()" style="selector-dummy:expression(this.hideFocus=false);">저장</a>
</td>
<td width="10"></td>
<td>
<a href="#LINK" onclick="javascript:fncGroupDelete()" style="selector-dummy:expression(this.hideFocus=false);">삭제</a>
</td>
</c:if>
</tr>
</table>
</div>
<!-- 버튼 끝 -->
<form:form commandName="groupManage" method="post" >
<div class="popup" style="min-width: 400px;">
<div class="popup_inner" style="max-width: 400px;">
<p class="pop_title">권한 등록</p>
<table class="tbl03">
<caption>권한 등록</caption>
<tr>
<th class="required" width="25%" scope="row" nowrap="nowrap">그룹 ID</th>
<td nowrap="nowrap"><input name="groupId" id="groupId" type="text" readonly="readonly" value="<c:out value='${groupManage.groupId}'/>" size="40" title="그룹 ID" /></td>
</tr>
<tr>
<th class="required" width="25%" scope="row" nowrap="nowrap">그룹 명
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="groupNm" id="groupNm" type="text" value="<c:out value='${groupManage.groupNm}'/>" maxLength="50" size="40" title="그룹명" />&nbsp;<form:errors path="groupNm" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">설명</th>
<td nowrap="nowrap"><input name="groupDc" id="groupDc" type="text" value="<c:out value='${groupManage.groupDc}'/>" maxLength="50" size="50" title="설명" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">권한</th>
<td nowrap="nowrap">
<select id="authorCode" name="authorCode">
<option value="">== 선택하세요 ==</option>
<c:forEach var="row" items="${listAuthorInfoVO }">
<option value="<c:out value="${row.author_code }"/>"><c:out value="${row.author_nm }"/></option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">등록일자</th>
<td nowrap="nowrap"><input name="groupCreatDe" id="groupCreatDe" type="text" value="<c:out value='${groupManage.groupCreatDe}'/>" maxLength="50" size="20" readonly="readonly" title="등록일자"/></td>
</tr>
</table>
<div class="popup_btn">
<span class="flr" colspan="4">
<c:if test="${registerFlag == 'INSERT'}">
<a href="#LINK" class="btn blue" id="btnSave">저장</a>
</c:if>
<c:if test="${registerFlag == 'UPDATE'}">
<a href="#LINK" class="btn blue" id="update_btn">변경</a>
<a href="#LINK" class="btn blue" id="delete_btn">삭제</a>
</c:if>
<a href="#" class="btn lightgray" id="btnClose">닫기</a>
</span>
</div>
<!-- //등록버튼 -->
</div>
</div>
<!-- //popup -->
<!-- 검색조건 유지 -->
<c:if test="${registerFlag == 'UPDATE'}">
<input type="hidden" name="searchCondition" value="<c:out value='${groupManageSearchVO.searchCondition}'/>"/>
<input type="hidden" name="searchKeyword" value="<c:out value='${groupManageSearchVO.searchKeyword}'/>"/>
<input type="hidden" name="pageIndex" value="<c:out value='${groupManageSearchVO.pageIndex}'/>"/>
<input type="hidden" name="searchCondition" value="<c:out value='${groupManageSearchVO.searchCondition}'/>"/>
<input type="hidden" name="searchKeyword" value="<c:out value='${groupManageSearchVO.searchKeyword}'/>"/>
<input type="hidden" name="pageIndex" value="<c:out value='${groupManageSearchVO.pageIndex}'/>"/>
</c:if>
<!-- 검색조건 유지 -->
</form:form>
<div align="right">
<input type="text" name="message" value="<c:out value='${message}'/>" size="30" readonly="readonly" title="메시지" />
</div>
<script type="text/javaScript">
$(document).ready(function(){
XitAuthGrpMng_input.init();
});
/* *******************************
* 사용자그룹관리 등록 Functions
******************************* */
var XitAuthGrpMng_input = {
init : function(){
//닫기 버튼 Event
$("#btnClose").click(function() {
window.close();
});
//저장 버튼 Event 설정
$('#btnSave').on({
click: function(){
XitAuthGrpMng_input.addData();
}
});
$('#update_btn').on({
click: function(){
XitAuthGrpMng_input.modifyData();
}
});
$('#delete_btn').on({
click: function(){
XitAuthGrpMng_input.removeData();
}
});
$(".popup").css("position","absolute");
$(".content_header").css("display","none");
$("#cur_loc").css("display","none");
},
/* ========================
* 데이터 등록
======================== */
addData : function(){
var varFrom = document.getElementById("groupManage");
if(confirm("저장 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthGrpMng_insert_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthGrpMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 수정
======================== */
,modifyData : function(){
var varFrom = document.getElementById("groupManage");
if(confirm("수정 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthGrpMng_update_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthGrpMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 삭제
======================== */
,removeData : function(){
var varFrom = document.getElementById("groupManage");
if(confirm("삭제 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthGrpMng_delete_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthGrpMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
}
</script>

@ -7,144 +7,170 @@
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="registerFlag" value="${empty authorManageVO.authorCode ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty authorManageVO.authorCode ? '권한 등록' : '권한 수정'}"/>
<!-- 검색 필드 박스 시작 -->
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
<validator:javascript formName="authorManage" staticJavascript="false" xhtml="true" cdata="false"/>
<script type="text/javaScript">
function fncSelectAuthorList() {
var varFrom = document.getElementById("authorManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthRegMng_list.do'/>";
varFrom.submit();
}
function fncAuthorInsert() {
var varFrom = document.getElementById("authorManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthRegMng_insert_proc.do'/>";
if(confirm("저장 하시겠습니까?")){
if(!validateAuthorManage(varFrom)){
return;
}else{
varFrom.submit();
}
}
}
<form:form commandName="authorManage" method="post" >
<div class="popup" style="min-width: 400px;">
<div class="popup_inner" style="max-width: 400px;">
<p class="pop_title">권한 등록</p>
<table class="tbl03">
<caption>권한 등록</caption>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">권한 코드
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="authorCode" id="authorCode" type="text" value="<c:out value='${authorManage.authorCode}'/>" size="40" title="권한코드" />&nbsp;<form:errors path="authorCode" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">권한 명
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="authorNm" id="authorNm" type="text" value="<c:out value='${authorManage.authorNm}'/>" maxLength="50" size="40" title="권한명" />&nbsp;<form:errors path="authorNm" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">설명</th>
<td nowrap="nowrap"><input name="authorDc" id="authorDc" type="text" value="<c:out value='${authorManage.authorDc}'/>" maxLength="50" size="50" title="설명" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">등록일자</th>
<td nowrap="nowrap"><input name="authorCreatDe" id="authorCreatDe" type="text" value="<c:out value='${authorManage.authorCreatDe}'/>" maxLength="50" size="20" readonly="readonly" title="등록일자"/></td>
</tr>
</table>
<div class="popup_btn">
<span class="flr" colspan="4">
<c:if test="${registerFlag == 'INSERT'}">
<a href="#LINK" class="btn blue" id="btnSave">저장</a>
</c:if>
<c:if test="${registerFlag == 'UPDATE'}">
<a href="#LINK" class="btn blue" id="update_btn">변경</a>
<a href="#LINK" class="btn red" id="delete_btn">삭제</a>
</c:if>
<a href="#" class="btn lightgray" id="btnClose">닫기</a>
</span>
</div>
<!-- //등록버튼 -->
</div>
</div>
<!-- //popup -->
</form:form>
function fncAuthorUpdate() {
var varFrom = document.getElementById("authorManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthRegMng_update_proc.do'/>";
if(confirm("저장 하시겠습니까?")){
if(!validateAuthorManage(varFrom)){
return;
}else{
varFrom.submit();
}
}
}
<script type="text/javaScript">
function fncAuthorDelete() {
var varFrom = document.getElementById("authorManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthRegMng_delete_proc.do'/>";
if(confirm("삭제 하시겠습니까?")){
varFrom.submit();
}
$(document).ready(function(){
XitAuthRegMng_edit.init();
});
/* *******************************
* 권한관리 수정화면 Functions
******************************* */
var XitAuthRegMng_edit = {
init : function(){
//닫기 버튼 Event
$("#btnClose").click(function() {
window.close();
});
//저장 버튼 Event 설정
$('#btnSave').on({
click: function(){
XitAuthRegMng_edit.addData();
}
});
$('#update_btn').on({
click: function(){
XitAuthRegMng_edit.modifyData();
}
});
$('#delete_btn').on({
click: function(){
XitAuthRegMng_edit.removeData();
}
});
$(".popup").css("position","absolute");
$(".content_header").css("display","none");
$("#cur_loc").css("display","none");
},
/* ========================
* 데이터 등록
======================== */
addData : function(){
if(!validateAuthorManage(document.getElementById("authorManage")))
return;
var varFrom = document.getElementById("authorManage");
if(confirm("저장 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRegMng_insert_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRegMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 수정
======================== */
,modifyData : function(){
if(!validateAuthorManage(document.getElementById("authorManage")))
return;
var varFrom = document.getElementById("authorManage");
if(confirm("수정 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRegMng_update_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRegMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 삭제
======================== */
,removeData : function(){
var varFrom = document.getElementById("authorManage");
if(confirm("삭제 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRegMng_delete_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRegMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
}
/* ********************************************************
* 처리결과메시지 출력
******************************************************** */
<c:if test="${!empty message}">alert("${message}");</c:if>
</script>
<!-- 검색 필드 박스 시작 -->
<div id="search_field">
<div id="search_field_loc"><h2><strong><c:out value="${registerFlagName}"/></strong></h2></div>
</div>
<form:form commandName="authorManage" method="post" >
<div class="modify_user" >
<table summary="권한을 수정하는 테이블입니다.권한 코드,권한 명,설명,등록일자 정보를 담고 있습니다.">
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">권한 코드
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="authorCode" id="authorCode" type="text" readonly="readonly" value="<c:out value='${authorManage.authorCode}'/>" size="40" title="권한코드"/>&nbsp;<form:errors path="authorCode" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">권한 명
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="authorNm" id="authorNm" type="text" value="<c:out value='${authorManage.authorNm}'/>" maxLength="50" size="40" title="권한명"/>&nbsp;<form:errors path="authorNm" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">설명</th>
<td nowrap="nowrap"><input name="authorDc" id="authorDc" type="text" value="<c:out value='${authorManage.authorDc}'/>" maxLength="50" size="50" title="설명"/></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">등록일자</th>
<td nowrap="nowrap"><input name="authorCreatDe" id="authorCreatDe" type="text" value="<c:out value='${authorManage.authorCreatDe}'/>" maxLength="50" size="20" readonly="readonly" title="등록일자"/></td>
</tr>
</table>
</div>
<!-- 버튼 시작(상세지정 style로 div에 지정) -->
<div class="buttons" style="padding-top:10px;padding-bottom:10px;">
<!-- 목록/저장버튼 -->
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<a href="#LINK" onclick="javascript:fncSelectAuthorList()" style="selector-dummy:expression(this.hideFocus=false);">목록</a>
</td>
<c:if test="${registerFlag == 'INSERT'}">
<td width="10"></td>
<td>
<a href="#LINK" onclick="javascript:fncAuthorInsert()" style="selector-dummy:expression(this.hideFocus=false);">저장</a>
</td>
</c:if>
<c:if test="${registerFlag == 'UPDATE'}">
<td width="10"></td>
<td>
<a href="#LINK" onclick="javascript:fncAuthorUpdate()" style="selector-dummy:expression(this.hideFocus=false);">저장</a>
</td>
<td width="10"></td>
<td>
<a href="#LINK" onclick="javascript:fncAuthorDelete()" style="selector-dummy:expression(this.hideFocus=false);">삭제</a>
</td>
</c:if>
</tr>
</table>
</div>
<!-- 버튼 끝 -->
<!-- 검색조건 유지 -->
<c:if test="${registerFlag == 'UPDATE'}">
<input type="hidden" name="searchCondition" value="<c:out value='${authorManageSearchVO.searchCondition}'/>"/>
<input type="hidden" name="searchKeyword" value="<c:out value='${authorManageSearchVO.searchKeyword}'/>"/>
<input type="hidden" name="pageIndex" value="<c:out value='${authorManageSearchVO.pageIndex}'/>"/>
</c:if>
<!-- 검색조건 유지 -->
</form:form>
<div align="right">
<input type="text" name="message" value="<c:out value='${message}'/>" size="30" readonly="readonly" title="메시지"/>
</div>

@ -7,146 +7,170 @@
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="registerFlag" value="${empty authorManageVO.authorCode ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty authorManageVO.authorCode ? '권한 등록' : '권한 수정'}"/>
<!-- 검색 필드 박스 시작 -->
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
<validator:javascript formName="authorManage" staticJavascript="false" xhtml="true" cdata="false"/>
<script type="text/javaScript">
function fncSelectAuthorList() {
var varFrom = document.getElementById("authorManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthRegMng_list.do'/>";
varFrom.submit();
}
function fncAuthorInsert() {
var varFrom = document.getElementById("authorManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthRegMng_insert_proc.do'/>";
if(confirm("저장 하시겠습니까?")){
if(!validateAuthorManage(varFrom)){
return;
}else{
varFrom.submit();
}
}
}
<form:form commandName="authorManage" method="post" >
<div class="popup" style="min-width: 400px;">
<div class="popup_inner" style="max-width: 400px;">
<p class="pop_title">권한 등록</p>
<table class="tbl03">
<caption>권한 등록</caption>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">권한 코드
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="authorCode" id="authorCode" type="text" value="<c:out value='${authorManage.authorCode}'/>" size="40" title="권한코드" />&nbsp;<form:errors path="authorCode" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">권한 명
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="authorNm" id="authorNm" type="text" value="<c:out value='${authorManage.authorNm}'/>" maxLength="50" size="40" title="권한명" />&nbsp;<form:errors path="authorNm" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">설명</th>
<td nowrap="nowrap"><input name="authorDc" id="authorDc" type="text" value="<c:out value='${authorManage.authorDc}'/>" maxLength="50" size="50" title="설명" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">등록일자</th>
<td nowrap="nowrap"><input name="authorCreatDe" id="authorCreatDe" type="text" value="<c:out value='${authorManage.authorCreatDe}'/>" maxLength="50" size="20" readonly="readonly" title="등록일자"/></td>
</tr>
</table>
<div class="popup_btn">
<span class="flr" colspan="4">
<c:if test="${registerFlag == 'INSERT'}">
<a href="#LINK" class="btn blue" id="btnSave">저장</a>
</c:if>
<c:if test="${registerFlag == 'UPDATE'}">
<a href="#LINK" class="btn blue" id="update_btn">변경</a>
<a href="#LINK" class="btn blue" id="delete_btn">삭제</a>
</c:if>
<a href="#" class="btn lightgray" id="btnClose">닫기</a>
</span>
</div>
<!-- //등록버튼 -->
</div>
</div>
<!-- //popup -->
</form:form>
function fncAuthorUpdate() {
var varFrom = document.getElementById("authorManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthRegMng_update_proc.do'/>";
if(confirm("저장 하시겠습니까?")){
if(!validateAuthorManage(varFrom)){
return;
}else{
varFrom.submit();
}
}
}
<script type="text/javaScript">
function fncAuthorDelete() {
var varFrom = document.getElementById("authorManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthRegMng_delete_proc.do'/>";
if(confirm("삭제 하시겠습니까?")){
varFrom.submit();
}
$(document).ready(function(){
XitAuthRegMng_input.init();
});
/* *******************************
* 권한관리 등록화면 Functions
******************************* */
var XitAuthRegMng_input = {
init : function(){
//닫기 버튼 Event
$("#btnClose").click(function() {
window.close();
});
//저장 버튼 Event 설정
$('#btnSave').on({
click: function(){
XitAuthRegMng_input.addData();
}
});
$('#update_btn').on({
click: function(){
XitAuthRegMng_input.modifyData();
}
});
$('#delete_btn').on({
click: function(){
XitAuthRegMng_input.removeData();
}
});
$(".popup").css("position","absolute");
$(".content_header").css("display","none");
$("#cur_loc").css("display","none");
},
/* ========================
* 데이터 등록
======================== */
addData : function(){
if(!validateAuthorManage(document.getElementById("authorManage")))
return;
var varFrom = document.getElementById("authorManage");
if(confirm("저장 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRegMng_insert_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRegMng_list.findData();
window.close();
},
error: function(){
alert("에러")
}
});
}
}
/* ========================
* 데이터 수정
======================== */
,modifyData : function(){
if(!validateAuthorManage(document.getElementById("authorManage")))
return;
var varFrom = document.getElementById("authorManage");
if(confirm("수정 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRegMng_update_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRegMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 삭제
======================== */
,removeData : function(){
var varFrom = document.getElementById("authorManage");
if(confirm("삭제 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRegMng_delete_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRegMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
}
/* ********************************************************
* 처리결과메시지 출력
******************************************************** */
<c:if test="${!empty message}">alert("${message}");</c:if>
</script>
<!-- 검색 필드 박스 시작 -->
<div id="search_field">
<div id="search_field_loc"><h2><strong><c:out value="${registerFlagName}"/></strong></h2></div>
</div>
<form:form commandName="authorManage" method="post" >
<div class="modify_user" >
<table summary="권한을 등록하는 테이블입니다.권한 코드,권한 명,설명,등록일자의 정보를 담고 있습니다.">
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">권한 코드
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="authorCode" id="authorCode" type="text" value="<c:out value='${authorManage.authorCode}'/>" size="40" title="권한코드" />&nbsp;<form:errors path="authorCode" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">권한 명
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="authorNm" id="authorNm" type="text" value="<c:out value='${authorManage.authorNm}'/>" maxLength="50" size="40" title="권한명" />&nbsp;<form:errors path="authorNm" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">설명</th>
<td nowrap="nowrap"><input name="authorDc" id="authorDc" type="text" value="<c:out value='${authorManage.authorDc}'/>" maxLength="50" size="50" title="설명" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">등록일자</th>
<td nowrap="nowrap"><input name="authorCreatDe" id="authorCreatDe" type="text" value="<c:out value='${authorManage.authorCreatDe}'/>" maxLength="50" size="20" readonly="readonly" title="등록일자"/></td>
</tr>
</table>
</div>
<!-- 버튼 시작(상세지정 style로 div에 지정) -->
<div class="buttons" style="padding-top:10px;padding-bottom:10px;">
<!-- 목록/저장버튼 -->
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<a href="#LINK" onclick="javascript:fncSelectAuthorList()" style="selector-dummy:expression(this.hideFocus=false);">목록</a>
</td>
<c:if test="${registerFlag == 'INSERT'}">
<td width="10"></td>
<td>
<a href="#LINK" onclick="javascript:fncAuthorInsert()" style="selector-dummy:expression(this.hideFocus=false);">저장</a>
</td>
</c:if>
<c:if test="${registerFlag == 'UPDATE'}">
<td width="10"></td>
<td>
<a href="#LINK" onclick="javascript:fncAuthorUpdate()" style="selector-dummy:expression(this.hideFocus=false);">저장</a>
</td>
<td width="10"></td>
<td>
<a href="#LINK" onclick="javascript:fncAuthorDelete()" style="selector-dummy:expression(this.hideFocus=false);">삭제</a>
</td>
</c:if>
</tr>
</table>
</div>
<!-- 버튼 끝 -->
<div align="right">
<input type="text" name="message" value="<c:out value='${message}'/>" size="30" readonly="readonly" title="메시지" />
</div>
<!-- 검색조건 유지 -->
<c:if test="${registerFlag == 'UPDATE'}">
<input type="hidden" name="searchCondition" value="<c:out value='${authorManageSearchVO.searchCondition}'/>"/>
<input type="hidden" name="searchKeyword" value="<c:out value='${authorManageSearchVO.searchKeyword}'/>"/>
<input type="hidden" name="pageIndex" value="<c:out value='${authorManageSearchVO.pageIndex}'/>"/>
</c:if>
</form:form>

@ -7,79 +7,21 @@
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="registerFlag" value="${empty roleManageVO.roleCode ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty roleManageVO.roleCode ? '롤 등록' : '롤 수정'}"/>
<!-- 검색 필드 박스 시작 -->
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
<validator:javascript formName="roleManage" staticJavascript="false" xhtml="true" cdata="false"/>
<script type="text/javaScript">
function fncSelectRoleList() {
var varFrom = document.getElementById("roleManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthRuleMng_list.do'/>";
varFrom.submit();
}
function fncRoleInsert() {
var varFrom = document.getElementById("roleManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthRuleMng_insert_proc.do'/>";
if(!validateRoleManage(varFrom)){
return;
}else{
if(confirm("저장 하시겠습니까?")){
varFrom.submit();
}
}
}
function fncRoleUpdate() {
var varFrom = document.getElementById("roleManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthRuleMng_update_proc.do'/>";
if(!validateRoleManage(varFrom)){
return;
}else{
if(confirm("저장 하시겠습니까?")){
varFrom.submit();
}
}
}
function fncRoleDelete() {
var varFrom = document.getElementById("roleManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthRuleMng_delete_proc.do'/>";
if(confirm("삭제 하시겠습니까?")){
varFrom.submit();
}
}
/* ********************************************************
* 처리결과메시지 출력
******************************************************** */
<c:if test="${!empty message}">alert("${message}");</c:if>
</script>
<!-- 검색 필드 박스 시작 -->
<div id="search_field">
<div id="search_field_loc"><h2><strong><c:out value="${registerFlagName}"/></strong></h2></div>
</div>
<form:form commandName="roleManage" method="post" >
<div class="modify_user" >
<table summary="롤을 수정하는 테이블입니다.롤 코드,롤 명,롤 패턴,설명,롤 타입,롤 Sort,등록일자 정보를 담고 있습니다.">
<tr>
<form:form commandName="roleManage" method="post" >
<div class="popup" style="min-width: 500px;">
<div class="popup_inner" style="max-width: 500px;">
<p class="pop_title">롤 수정</p>
<table class="tbl03">
<caption>롤 수정</caption>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 코드
</th>
<td nowrap="nowrap"><input name="roleCode" id="roleCode" type="text" value="<c:out value='${roleManage.roleCode}'/>" size="30" readonly="readonly" title="롤 코드" /></td>
@ -94,7 +36,7 @@ function fncRoleDelete() {
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 패턴
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="rolePtn" id="rolePtn" type="text" value="<c:out value='${roleManage.rolePtn}'/>" maxLength="50" size="50" title="롤패턴" />&nbsp;<form:errors path="rolePtn" /></td>
<td nowrap="nowrap"><input name="rolePtn" id="rolePtn" type="text" value="<c:out value='${roleManage.rolePtn}'/>" maxLength="200" size="50" title="롤패턴" />&nbsp;<form:errors path="rolePtn" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">설명
@ -108,14 +50,14 @@ function fncRoleDelete() {
<td nowrap="nowrap">
<select name="roleTyp" title="롤타입">
<c:forEach var="cmmCodeDetail" items="${cmmCodeDetailList}" varStatus="status">
<option value="<c:out value="${cmmCodeDetail.code}"/>" <c:if test="${cmmCodeDetail.code == roleManage.roleTyp}">selected</c:if> ><c:out value="${cmmCodeDetail.codeNm}"/></option>
<option value="<c:out value="${cmmCodeDetail.code}"/>" <c:if test="${cmmCodeDetail.codeNm == roleManage.roleTyp}">selected</c:if> ><c:out value="${cmmCodeDetail.codeNm}"/></option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 Sort
<img src="<c:url value='/'/>images/required.gif" width="15" height="15" alt="필수" />
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="roleSort" id="roleSort" type="text" value="<c:out value='${roleManage.roleSort}'/>" maxLength="50" size="30" title="롤sort" /></td>
</tr>
@ -123,50 +65,130 @@ function fncRoleDelete() {
<th class="required" width="20%" scope="row" nowrap="nowrap">등록일자</th>
<td nowrap="nowrap"><input name="roleCreatDe" id="roleCreatDe" type="text" value="<c:out value='${roleManage.roleCreatDe}'/>" maxLength="50" size="20" title="등록일자" readonly="readonly"/></td>
</tr>
</table>
</div>
<!-- 버튼 시작(상세지정 style로 div에 지정) -->
<div class="buttons" style="padding-top:10px;padding-bottom:10px;">
<!-- 목록/저장버튼 -->
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<a href="#LINK" onclick="javascript:fncSelectRoleList()" style="selector-dummy:expression(this.hideFocus=false);">목록</a>
</td>
<c:if test="${registerFlag == 'INSERT'}">
<td width="10"></td>
<td>
<a href="#LINK" onclick="javascript:fncRoleInsert()" style="selector-dummy:expression(this.hideFocus=false);">저장</a>
</td>
</c:if>
<c:if test="${registerFlag == 'UPDATE'}">
<td width="10"></td>
<td>
<a href="#LINK" onclick="javascript:fncRoleUpdate()" style="selector-dummy:expression(this.hideFocus=false);">저장</a>
</td>
<td width="10"></td>
<td>
<a href="#LINK" onclick="javascript:fncRoleDelete()" style="selector-dummy:expression(this.hideFocus=false);">삭제</a>
</td>
</c:if>
</tr>
</table>
</div>
<!-- 버튼 끝 -->
<!-- 검색조건 유지 -->
<c:if test="${registerFlag == 'UPDATE'}">
<input type="hidden" name="searchCondition" value="<c:out value='${roleManageSearchVO.searchCondition}'/>"/>
<input type="hidden" name="searchKeyword" value="<c:out value='${roleManageSearchVO.searchKeyword}'/>"/>
<input type="hidden" name="pageIndex" value="<c:out value='${roleManageSearchVO.pageIndex}'/>"/>
</c:if>
<!-- 검색조건 유지 -->
</table>
<div class="popup_btn">
<span class="flr" colspan="4">
<c:if test="${registerFlag == 'INSERT'}">
<a href="#LINK" class="btn blue" id="btnSave">저장</a>
</c:if>
<c:if test="${registerFlag == 'UPDATE'}">
<a href="#LINK" class="btn blue" id="update_btn">변경</a>
<a href="#LINK" class="btn red" id="delete_btn">삭제</a>
</c:if>
<a href="#" class="btn lightgray" id="btnClose">닫기</a>
</span>
</div>
<!-- //등록버튼 -->
</div>
</div>
<!-- //popup -->
</form:form>
<div align="right">
<input type="text" name="message" value="<c:out value='${message}'/>" size="30" readonly="readonly" title="메시지" />
</div>
<script type="text/javaScript">
$(document).ready(function(){
XitAuthRuleMng_edit.init();
});
/* *******************************
* 롤 관리 수정화면 Functions
******************************* */
var XitAuthRuleMng_edit = {
init : function(){
//닫기 버튼 Event
$("#btnClose").click(function() {
window.close();
});
//저장 버튼 Event 설정
$('#btnSave').on({
click: function(){
XitAuthRuleMng_edit.addData();
}
});
$('#update_btn').on({
click: function(){
XitAuthRuleMng_edit.modifyData();
}
});
$('#delete_btn').on({
click: function(){
XitAuthRuleMng_edit.removeData();
}
});
$(".popup").css("position","absolute");
$(".content_header").css("display","none");
$("#cur_loc").css("display","none");
},
/* ========================
* 데이터 등록
======================== */
addData : function(){
var varFrom = document.getElementById("roleManage");
if(confirm("저장 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRuleMng_insert_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRuleMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 수정
======================== */
,modifyData : function(){
var varFrom = document.getElementById("roleManage");
if(confirm("수정 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRuleMng_update_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRuleMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 삭제
======================== */
,removeData : function(){
var varFrom = document.getElementById("roleManage");
if(confirm("삭제 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRuleMng_delete_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRuleMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
}
</script>

@ -7,165 +7,188 @@
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="registerFlag" value="${empty roleManageVO.roleCode ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty roleManageVO.roleCode ? '롤 등록' : '롤 수정'}"/>
<!-- 검색 필드 박스 시작 -->
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
<validator:javascript formName="roleManage" staticJavascript="false" xhtml="true" cdata="false"/>
<script type="text/javaScript">
function fncSelectRoleList() {
var varFrom = document.getElementById("roleManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthRuleMng_list.do'/>";
varFrom.submit();
}
function fncRoleInsert() {
var varFrom = document.getElementById("roleManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthRuleMng_insert_proc.do'/>";
if(!validateRoleManage(varFrom)){
return;
}else{
if(confirm("저장 하시겠습니까?")){
varFrom.submit();
}
}
}
<form:form commandName="roleManage" method="post" >
<div class="popup" style="min-width: 500px;">
<div class="popup_inner" style="max-width: 500px;">
<p class="pop_title">롤 등록</p>
<table class="tbl03">
<caption>롤 등록</caption>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 코드
</th>
<td nowrap="nowrap"><input name="roleCode" id="roleCode" type="text" value="<c:out value='${roleManage.roleCode}'/>" size="30" readonly="readonly" title="롤 코드" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 명
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="roleNm" id="roleNm" type="text" value="<c:out value='${roleManage.roleNm}'/>" maxLength="50" size="30" title="롤명" />&nbsp;<form:errors path="roleNm" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 패턴
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="rolePtn" id="rolePtn" type="text" value="<c:out value='${roleManage.rolePtn}'/>" maxLength="200" size="50" title="롤패턴" />&nbsp;<form:errors path="rolePtn" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">설명
</th>
<td nowrap="nowrap"><input name="roleDc" id="roleDc" type="text" value="<c:out value='${roleManage.roleDc}'/>" maxLength="50" size="50" title="설명" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 타입
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap">
<select name="roleTyp" title="롤타입">
<c:forEach var="cmmCodeDetail" items="${cmmCodeDetailList}" varStatus="status">
<option value="<c:out value="${cmmCodeDetail.code}"/>" <c:if test="${cmmCodeDetail.code == roleManage.roleTyp}">selected</c:if> ><c:out value="${cmmCodeDetail.codeNm}"/></option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 Sort
<img src="<c:url value='/'/>images/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="roleSort" id="roleSort" type="text" value="<c:out value='${roleManage.roleSort}'/>" maxLength="50" size="30" title="롤sort" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">등록일자</th>
<td nowrap="nowrap"><input name="roleCreatDe" id="roleCreatDe" type="text" value="<c:out value='${roleManage.roleCreatDe}'/>" maxLength="50" size="20" title="등록일자" readonly="readonly"/></td>
</tr>
</table>
<div class="popup_btn">
<span class="flr" colspan="4">
<c:if test="${registerFlag == 'INSERT'}">
<a href="#LINK" class="btn blue" id="btnSave">저장</a>
</c:if>
<c:if test="${registerFlag == 'UPDATE'}">
<a href="#LINK" class="btn blue" id="update_btn">변경</a>
<a href="#LINK" class="btn blue" id="delete_btn">삭제</a>
</c:if>
<a href="#" class="btn lightgray" id="btnClose">닫기</a>
</span>
</div>
<!-- //등록버튼 -->
</div>
</div>
<!-- //popup -->
</form:form>
function fncRoleUpdate() {
var varFrom = document.getElementById("roleManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthRuleMng_update_proc.do'/>";
if(!validateRoleManage(varFrom)){
return;
}else{
if(confirm("저장 하시겠습니까?")){
varFrom.submit();
}
}
}
<script type="text/javaScript">
function fncRoleDelete() {
var varFrom = document.getElementById("roleManage");
varFrom.action = "<c:url value='/framework/biz/mng/auth/AuthRuleMng_delete_proc.do'/>";
if(confirm("삭제 하시겠습니까?")){
varFrom.submit();
}
$(document).ready(function(){
XitAuthRuleMng_input.init();
});
/* *******************************
* 롤 관리 등록화면 Functions
******************************* */
var XitAuthRuleMng_input = {
init : function(){
//닫기 버튼 Event
$("#btnClose").click(function() {
window.close();
});
//저장 버튼 Event 설정
$('#btnSave').on({
click: function(){
XitAuthRuleMng_input.addData();
}
});
$('#update_btn').on({
click: function(){
XitAuthRuleMng_input.modifyData();
}
});
$('#delete_btn').on({
click: function(){
XitAuthRuleMng_input.removeData();
}
});
$(".popup").css("position","absolute");
$(".content_header").css("display","none");
$("#cur_loc").css("display","none");
},
/* ========================
* 데이터 등록
======================== */
addData : function(){
var varFrom = document.getElementById("roleManage");
if(confirm("저장 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRuleMng_insert_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRuleMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 수정
======================== */
,modifyData : function(){
var varFrom = document.getElementById("roleManage");
if(confirm("수정 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRuleMng_update_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRuleMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 삭제
======================== */
,removeData : function(){
var varFrom = document.getElementById("roleManage");
if(confirm("삭제 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "/framework/biz/mng/auth/AuthRuleMng_delete_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitAuthRuleMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
}
/* ********************************************************
* 처리결과메시지 출력
******************************************************** */
<c:if test="${!empty message}">alert("${message}");</c:if>
</script>
<!-- 검색 필드 박스 시작 -->
<div id="search_field">
<div id="search_field_loc"><h2><strong><c:out value="${registerFlagName}"/></strong></h2></div>
</div>
<form:form commandName="roleManage" method="post" >
<div class="modify_user" >
<table summary="롤 등록 테이블입니다.롤 코드,롤 명,롤 패턴,설명,롤 타입,롤 Sort,등록일자의 정보를 담고 있습니다.">
<tr style="display:none">
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 코드
</th>
<td nowrap="nowrap"><input name="roleCode" id="roleCode" type="text" value="<c:out value='${roleManage.roleCode}'/>" size="30" title="롤 코드"/></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 명
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="roleNm" id="roleNm" type="text" value="<c:out value='${roleManage.roleNm}'/>" maxLength="50" size="30" title="롤명"/>&nbsp;<form:errors path="roleNm" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 패턴
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="rolePtn" id="rolePtn" type="text" value="<c:out value='${roleManage.rolePtn}'/>" maxLength="50" size="50" title="롤패턴"/>&nbsp;<form:errors path="rolePtn" /></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">설명</th>
<td nowrap="nowrap"><input name="roleDc" id="roleDc" type="text" value="<c:out value='${roleManage.roleDc}'/>" maxLength="50" size="50" title="설명"/></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 타입
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" /> </th>
<td nowrap="nowrap">
<select name="roleTyp" title="롤타입">
<c:forEach var="cmmCodeDetail" items="${cmmCodeDetailList}" varStatus="status">
<option value="<c:out value='${cmmCodeDetail.code}'/>" <c:if test="${cmmCodeDetail.code == roleManage.roleTyp}">selected</c:if> ><c:out value="${cmmCodeDetail.codeNm}"/></option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">롤 Sort
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td nowrap="nowrap"><input name="roleSort" id="roleSort" type="text" value="<c:out value='${roleManage.roleSort}'/>" maxLength="50" size="30" title="롤sort"/></td>
</tr>
<tr>
<th class="required" width="20%" scope="row" nowrap="nowrap">등록일자</th>
<td nowrap="nowrap"><input name="roleCreatDe" id="roleCreatDe" type="text" value="<c:out value='${roleManage.roleCreatDe}'/>" maxLength="50" size="20" readonly="readonly" title="등록일자"/></td>
</tr>
</table>
</div>
<!-- 버튼 시작(상세지정 style로 div에 지정) -->
<div class="buttons" style="padding-top:10px;padding-bottom:10px;">
<!-- 목록/저장버튼 -->
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<a href="#LINK" onclick="javascript:fncSelectRoleList()" style="selector-dummy:expression(this.hideFocus=false);">목록</a>
</td>
<c:if test="${registerFlag == 'INSERT'}">
<td width="10"></td>
<td>
<a href="#LINK" onclick="javascript:fncRoleInsert()" style="selector-dummy:expression(this.hideFocus=false);">저장</a>
</td>
</c:if>
<c:if test="${registerFlag == 'UPDATE'}">
<td width="10"></td>
<td>
<a href="#LINK" onclick="javascript:fncRoleUpdate()" style="selector-dummy:expression(this.hideFocus=false);">저장</a>
</td>
<td width="10"></td>
<td>
<a href="#LINK" onclick="javascript:fncRoleDelete()" style="selector-dummy:expression(this.hideFocus=false);">삭제</a>
</td>
</c:if>
</tr>
</table>
</div>
<!-- 버튼 끝 -->
<!-- 검색조건 유지 -->
<c:if test="${registerFlag == 'UPDATE'}">
<input type="hidden" name="searchCondition" value="<c:out value='${roleManageSearchVO.searchCondition}'/>"/>
<input type="hidden" name="searchKeyword" value="<c:out value='${roleManageSearchVO.searchKeyword}'/>"/>
<input type="hidden" name="pageIndex" value="<c:out value='${roleManageSearchVO.pageIndex}'/>"/>
</c:if>
<!-- 검색조건 유지 -->
</form:form>
<div align="right">
<input type="text" name="message" value="<c:out value='${message}'/>" size="30" readonly="readonly" title="메시지" />
</div>

@ -1,232 +0,0 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:url var="ImgUrl" value="/resources/"/>
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
<validator:javascript formName="menuManageVO" staticJavascript="false" xhtml="true" cdata="false"/>
<form:form commandName="menuManageVO" name="menuManageVO" action ="<c:url value='/framework/biz/mng/menu/MenuListMng_update_proc.do' />" method="post">
<input type="hidden" name="tmp_SearchElementName" value=""/>
<input type="hidden" name="tmp_SearchElementVal" value=""/>
<input name="cmd" type="hidden" value="update"/>
<div class="popup" style="min-width: 700px;">
<div class="popup_inner" style="max-width:700px;">
<p class="pop_title"> 메뉴상세정보</p>
<table class="tbl03">
<caption>메뉴상세정보</caption>
<tr>
<th width="15%" height="23" class="required" scope="row"><label for="menuNo">메뉴번호</label><img src="${ImgUrl}/required.gif" width="15" height="15" alt="필수"/></th>
<td width="35%" >
&nbsp;<c:out value="${menuManageVO.menuNo}"/>
<form:hidden path="menuNo" />
<form:errors path="menuNo" />
</td>
<th width="15%" height="23" class="required" scope="row"><label for="menuOrdr">메뉴순서</label><img src="${ImgUrl}/required.gif" width="15" height="15" alt="필수"/></th>
<td width="35%" >
&nbsp;
<form:input style="width : 80%" type ="text" path="menuOrdr" size="10" maxlength="10" title="메뉴순서"/>
<form:errors path="menuOrdr" />
</td>
</tr>
<tr>
<th width="15%" height="23" class="required" scope="row"><label for="menuNm">메뉴명</label><img src="${ImgUrl}/required.gif" width="15" height="15" alt="필수"/></th>
<td width="35%" nowrap="nowrap">&nbsp;
<form:input style="width : 80%" path="menuNm" size="30" maxlength="30" title="메뉴명"/>
<form:errors path="menuNm" />
</td>
<th width="15%" height="23" class="required" scope="row"><label for="upperMenuNo">상위메뉴번호</label><img src="${ImgUrl}/required.gif" width="15" height="15" alt="필수"/></th>
<td width="35%" nowrap="nowrap">&nbsp;
<form:input style="width : 80%" path="upperMenuNo" size="10" maxlength="10" title="상위메뉴No"/>
<form:errors path="upperMenuNo" />
</td>
</tr>
<tr>
<th width="15%" height="23" class="required" scope="row"><label for="progrmFileNm">프로그램파일명</label><img src="${ImgUrl}/required.gif" width="15" height="15" alt="필수"/></th>
<td width="85%" colspan="3" nowrap="nowrap">
&nbsp;
<input style="width : 60%" type="text" name="progrmFileNm_view" size="60" disabled="disabled" value="${menuManageVO.progrmFileNm}">
<form:input path="progrmFileNm" size="60" maxlength="60" title="프로그램파일명" cssStyle="display:none" />
<form:errors path="progrmFileNm" />
<a id="searchFile" target="_blank" title="새창으로 이동" style="selector-dummy:expression(this.hideFocus=false);"><img src="<c:url value='/resources/images/img_search.gif' />"
alt='' width="15" height="15" />(프로그램파일명 검색)</a>
</td>
</tr>
<tr>
<th width="15%" height="23" class="required" scope="row"><label for="relateImageNm">관련이미지명</label></th>
<td width="35%" nowrap="nowrap">&nbsp;
<form:input style="width : 80%" path="relateImageNm" size="30" maxlength="30" title="관련이미지명"/>
<form:errors path="relateImageNm" />
</td>
<th width="15%" height="23" class="required" scope="row"><label for="relateImagePath">관련이미지경로</label></th>
<td width="35%" nowrap="nowrap">&nbsp;
<form:input style="width : 80%" path="relateImagePath" size="30" maxlength="30" title="관련이미지경로"/>
<form:errors path="relateImagePath" />
</td>
</tr>
<tr>
<th width="15%" height="23" class="required" scope="row"><label for="menuDc">메뉴설명</label></th>
<td colspan="3" nowrap="nowrap">&nbsp;
<form:textarea style="width : 94%" path="menuDc" rows="14" cols="75" title="메뉴설명"/>
<form:errors path="menuDc"/>
</td>
</tr>
</table>
<div class="popup_btn">
<span class="flr" colspan="4">
<a href="#LINK" class="btn blue" id="update_btn">변경</a>
<a href="#" class="btn lightgray" id="btnClose">닫기</a>
</span>
</div>
<!-- //등록버튼 -->
</div>
</div>
<!-- //popup -->
</form:form>
<script type="text/javaScript">
$(document).ready(function(){
XitMenuListMng_edit.init();
});
/* *******************************
* 메뉴목록 관리 수정화면 Functions
******************************* */
var XitMenuListMng_edit = {
init : function(){
//닫기 버튼 Event
$("#btnClose").click(function() {
window.close();
});
//저장 버튼 Event 설정
$('#btnSave').on({
click: function(){
XitMenuListMng_edit.addData();
}
});
$('#update_btn').on({
click: function(){
XitMenuListMng_edit.modifyData();
}
});
$('#delete_btn').on({
click: function(){
XitMenuListMng_edit.removeData();
}
});
$('#searchFile').on({
click : function(){
var params = "";
params += "tmp_SearchElementName= progrmFileNm"
XitMenuListMng_edit.pagePopup('fileNmSearch', "<c:url value='/_mng_/menu/program/ProgramMng_FileNmSearch_popup.do'/>", params);
}
})
$(".popup").css("position","absolute");
$(".content_header").css("display","none");
$("#cur_loc").css("display","none");
},
/* ========================
* 데이터 등록
======================== */
addData : function(){
if(!validateMenuManageVO(document.getElementById("menuManageVO")))
return;
var varFrom = document.getElementById("menuManageVO");
if(confirm("저장 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "<c:url value='/framework/biz/mng/menu/MenuListMng_insert_proc.do'/>",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitMenuListMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 수정
======================== */
,modifyData : function(){
if(!validateMenuManageVO(document.getElementById("menuManageVO")))
return;
var varFrom = document.getElementById("menuManageVO");
if(confirm("수정 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "<c:url value='/framework/biz/mng/menu/MenuListMng_update_proc.do'/>",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitMenuListMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 삭제
======================== */
,removeData : function(){
var varFrom = document.getElementById("menuManageVO");
if(confirm("삭제 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "<c:url value='/framework/biz/mng/menu/MenuListMng_delete_proc.do'/>",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitMenuListMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
,pagePopup: function(flag, url, params){
var popUrl = url;
if(!(params == undefined || params == null)){
popUrl += "?";
popUrl += params;
}
var popTitle = '';
switch (flag) {
case "fileNmSearch": //상세
popTitle = "파일명 목록";
popOption = "scrollbars = yes, top=100px, left=100px, height=520px, width=805px;";
break;
default:
break;
}
window.open(popUrl, popTitle ,popOption);
},
}
</script>

@ -1,107 +0,0 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<%
/* Image Path 설정 */
String imagePath_icon = "/resources/images/egovframework/sym/mpm/icon";
String imagePath_button = "/resources/images/egovframework/sym/mpm/button/";
%>
<c:url var="ImgUrl" value="/resources/"/>
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
<validator:javascript formName="menuManageRegistForm" staticJavascript="false" xhtml="true" cdata="false"/>
<form:form commandName="menuManageRegistForm" name="menuManageRegistForm" action ="" method="post" enctype="multipart/form-data">
<input name="cmd" type="hidden" value="<c:out value='bndeInsert'/>"/>
<div class="popup" style="min-width: 700px;">
<div class="popup_inner" style="max-width:700px;">
<p class="pop_title">메뉴 일괄등록</p>
<table class="tbl03">
<caption>메뉴 일괄등록</caption>
<tr>
<th width="20%" height="23" class="required" scope="row"><label for="file">일괄파일</label>
<img src="${ImgUrl}/required.gif" width="15" height="15" alt="필수">
</th>
<td width="80%" nowrap="nowrap">
<input type = "file" id="file" name="file" size="40" title="일괄파일"/>
</td>
</tr>
</table>
<div class="popup_btn">
<span class="flr" colspan="4">
<a href="#LINK" class="btn blue" id="btnSave">일괄등록</a>
<a href="#" class="btn lightgray" id="btnClose">닫기</a>
</span>
</div>
<!-- //등록버튼 -->
</div>
</div>
<!-- //popup -->
</form:form>
<script type="text/javaScript">
$(document).ready(function(){
XitMenuListMng_inputs.init();
});
/* *******************************
* 메뉴목록 관리 다건등록 Functions
******************************* */
var XitMenuListMng_inputs = {
init : function(){
//닫기 버튼 Event
$("#btnClose").click(function() {
window.close();
});
//저장 버튼 Event 설정
$('#btnSave').on({
click: function(){
if(confirm("메뉴일괄등록을 하시겠습니까?. \n 메뉴정보와 프로그램목록, 프로그램 변경내역 존재시 삭제 하실 수 없습니다.")){
if(XitMenuListMng_inputs.fnCheckFule()){
document.menuManageRegistForm.action ="<c:url value='/framework/biz/mng/menu/MenuListMng_inserts_proc.do'/>";
document.menuManageRegistForm.submit();
}
}
}
});
}
/* ********************************************************
* 메뉴일괄등록시 등록파일 체크 함수
******************************************************** */
,fnCheckFule : function(){
if(document.menuManageRegistForm.file.value==""){
alert("업로드 할 파일을 지정해 주세요");
return false;
}
var str_dotlocation,str_ext,str_low;
str_value = document.menuManageRegistForm.file.value;
str_low = str_value.toLowerCase(str_value);
str_dotlocation = str_low.lastIndexOf(".");
str_ext = str_low.substring(str_dotlocation+1);
switch (str_ext) {
case "xls" :
case "xlsx" :
return true;
break;
default:
alert("파일 형식이 맞지 않습니다.\n xls,XLS,xlsx,XLSX 만\n 업로드가 가능합니다!");
return false;
}
}
}
</script>

@ -6,84 +6,23 @@
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:url var="ImgUrl" value="/resources/"/>
<style type="text/css">
h1 {font-size:12px;}
caption {visibility:hidden; font-size:0; height:0; margin:0; padding:0; line-height:0;}
</style>
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
<validator:javascript formName="menuManageVO" staticJavascript="false" xhtml="true" cdata="false"/>
<script type="text/javaScript">
/* ********************************************************
* 수정처리 함수
******************************************************** */
function updateMenuManage(form) {
if(!validateMenuManageVO(form)){
return;
}else{
if(confirm("<spring:message code='common.save.msg' />")){
form.action="<c:url value='/framework/biz/mng/menu/MenuListMng_update_proc.do'/>";
form.submit();
}
}
}
/* ********************************************************
* 삭제처리함수
******************************************************** */
function deleteMenuManage(form) {
if(confirm("<spring:message code='common.delete.msg' />")){
form.action="<c:url value='/framework/biz/mng/menu/MenuListMng_delete_proc.do'/>";
form.submit();
}
}
/* ********************************************************
* 파일목록조회 함수
******************************************************** */
function searchFileNm() {
document.all.tmp_SearchElementName.value = "progrmFileNm";
window.open("<c:url value='/_mng_/menu/program/ProgramMng_FileNmSearch_popup.do'/>",'','width=800,height=600');
}
/* ********************************************************
* 목록조회 함수
******************************************************** */
function selectList(){
location.href = "<c:url value='/framework/biz/mng/menu/MenuListMng_list.do'/>";
}
/* ********************************************************
* 파일명 엔터key 목록조회 함수
******************************************************** */
function press() {
if (event.keyCode==13) {
searchFileNm(); // 원래 검색 function 호출
}
}
/* ********************************************************
* 처리결과메시지 출력
******************************************************** */
<c:if test="${!empty message}">alert("${message}");</c:if>
</script>
<c:url var="ImgUrl" value="/resources"/>
<!-- 검색 필드 박스 시작 -->
<div id="search_field">
<div id="search_field_loc"><h2><strong>메뉴상세조회및 수정</strong></h2></div>
</div>
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
<validator:javascript formName="menuManageVO" staticJavascript="false" xhtml="true" cdata="false"/>
<form:form commandName="menuManageVO" name="menuManageVO" action ="<c:url value='/framework/biz/mng/menu/MenuListMng_update_proc.do' />" method="post">
<div class="modify_user" >
<table summary="메뉴상세정보">
<tr>
<input type="hidden" name="tmp_SearchElementName" value=""/>
<input type="hidden" name="tmp_SearchElementVal" value=""/>
<input name="cmd" type="hidden" value="update"/>
<div class="popup" style="min-width: 700px;">
<div class="popup_inner" style="max-width:700px;">
<p class="pop_title"> 메뉴상세정보</p>
<table class="tbl03">
<caption>메뉴상세정보</caption>
<tr>
<th width="15%" height="23" class="required" scope="row"><label for="menuNo">메뉴번호</label><img src="${ImgUrl}/required.gif" width="15" height="15" alt="필수"/></th>
<td width="35%" >
&nbsp;<c:out value="${menuManageVO.menuNo}"/>
@ -94,19 +33,19 @@ function press() {
<th width="15%" height="23" class="required" scope="row"><label for="menuOrdr">메뉴순서</label><img src="${ImgUrl}/required.gif" width="15" height="15" alt="필수"/></th>
<td width="35%" >
&nbsp;
<form:input path="menuOrdr" size="10" maxlength="10" title="메뉴순서"/>
<form:input style="width : 80%" type ="text" path="menuOrdr" size="10" maxlength="10" title="메뉴순서"/>
<form:errors path="menuOrdr" />
</td>
</tr>
<tr>
<th width="15%" height="23" class="required" scope="row"><label for="menuNm">메뉴명</label><img src="${ImgUrl}/required.gif" width="15" height="15" alt="필수"/></th>
<td width="35%" nowrap="nowrap">&nbsp;
<form:input path="menuNm" size="30" maxlength="30" title="메뉴명"/>
<form:input style="width : 80%" path="menuNm" size="30" maxlength="30" title="메뉴명"/>
<form:errors path="menuNm" />
</td>
<th width="15%" height="23" class="required" scope="row"><label for="upperMenuNo">상위메뉴번호</label><img src="${ImgUrl}/required.gif" width="15" height="15" alt="필수"/></th>
<td width="35%" nowrap="nowrap">&nbsp;
<form:input path="upperMenuNo" size="10" maxlength="10" title="상위메뉴No"/>
<form:input style="width : 80%" path="upperMenuNo" size="10" maxlength="10" title="상위메뉴No"/>
<form:errors path="upperMenuNo" />
</td>
</tr>
@ -114,64 +53,180 @@ function press() {
<th width="15%" height="23" class="required" scope="row"><label for="progrmFileNm">프로그램파일명</label><img src="${ImgUrl}/required.gif" width="15" height="15" alt="필수"/></th>
<td width="85%" colspan="3" nowrap="nowrap">
&nbsp;
<input type="text" name="progrmFileNm_view" size="60" disabled="disabled" value="${menuManageVO.progrmFileNm}">
<form:input path="progrmFileNm" size="60" maxlength="60" title="프로그램파일명" cssStyle="display:none" />
<input style="width : 60%" type="text" name="progrmFileNm_view" size="60" disabled="disabled" value="${menuManageVO.progrmFileNm}">
<form:input path="progrmFileNm" size="60" maxlength="60" title="프로그램파일명" cssStyle="display:none" />
<form:errors path="progrmFileNm" />
<a href="<c:url value='/_mng_/menu/program/ProgramMng_FileNmSearch_popup.do'/>?tmp_SearchElementName=progrmFileNm" target="_blank" title="새창으로 이동" onclick="searchFileNm();return false;" style="selector-dummy:expression(this.hideFocus=false);"><img src="<c:url value='/resources/images/img_search.gif' />"
<a id="searchFile" target="_blank" title="새창으로 이동" style="selector-dummy:expression(this.hideFocus=false);"><img src="<c:url value='/resources/images/img_search.gif' />"
alt='' width="15" height="15" />(프로그램파일명 검색)</a>
</td>
</tr>
<tr>
<th width="15%" height="23" class="required" scope="row"><label for="relateImageNm">관련이미지명</label></th>
<td width="35%" nowrap="nowrap">&nbsp;
<form:input path="relateImageNm" size="30" maxlength="30" title="관련이미지명"/>
<form:input style="width : 80%" path="relateImageNm" size="30" maxlength="30" title="관련이미지명"/>
<form:errors path="relateImageNm" />
</td>
<th width="15%" height="23" class="required" scope="row"><label for="relateImagePath">관련이미지경로</label></th>
<td width="35%" nowrap="nowrap">&nbsp;
<form:input path="relateImagePath" size="30" maxlength="30" title="관련이미지경로"/>
<form:input style="width : 80%" path="relateImagePath" size="30" maxlength="30" title="관련이미지경로"/>
<form:errors path="relateImagePath" />
</td>
</tr>
<tr>
<th width="15%" height="23" class="required" scope="row"><label for="menuDc">메뉴설명</label></th>
<td colspan="3" nowrap="nowrap">&nbsp;
<form:textarea path="menuDc" rows="14" cols="75" title="메뉴설명"/>
<form:textarea style="width : 94%" path="menuDc" rows="14" cols="75" title="메뉴설명"/>
<form:errors path="menuDc"/>
</td>
</tr>
</table>
</div>
<!-- 버튼 시작(상세지정 style로 div에 지정) -->
<div class="buttons" style="padding-top:10px;padding-bottom:10px;">
<!-- 목록/저장버튼 -->
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<a href="<c:url value='/framework/biz/mng/menu/MenuListMng_list.do'/>" onclick="selectList(); return false;">목록</a>
</td>
<td width="10"></td>
<td>
<a href="#LINK" onclick="javascript:updateMenuManage(document.getElementById('menuManageVO')); return false;"><spring:message code="button.save" /></a>
</td>
<td width="10"></td>
<td>
<a href="#LINK" onclick="deleteMenuManage(document.getElementById('menuManageVO')); return false;"><spring:message code="button.delete" /></a>
</td>
</tr>
</table>
</div>
<!-- 버튼 끝 -->
<!-- 검색조건 유지 -->
<input type="hidden" name="tmp_SearchElementName" value=""/>
<input type="hidden" name="tmp_SearchElementVal" value=""/>
<input name="cmd" type="hidden" value="update"/>
<!-- 검색조건 유지 -->
</table>
<div class="popup_btn">
<span class="flr" colspan="4">
<a href="#LINK" class="btn blue" id="update_btn">변경</a>
<a href="#" class="btn lightgray" id="btnClose">닫기</a>
</span>
</div>
<!-- //등록버튼 -->
</div>
</div>
<!-- //popup -->
</form:form>
<script type="text/javaScript">
$(document).ready(function(){
XitMenuListMng_edit.init();
});
/* *******************************
* 메뉴목록 관리 수정화면 Functions
******************************* */
var XitMenuListMng_edit = {
init : function(){
//닫기 버튼 Event
$("#btnClose").click(function() {
window.close();
});
//저장 버튼 Event 설정
$('#btnSave').on({
click: function(){
XitMenuListMng_edit.addData();
}
});
$('#update_btn').on({
click: function(){
XitMenuListMng_edit.modifyData();
}
});
$('#delete_btn').on({
click: function(){
XitMenuListMng_edit.removeData();
}
});
$('#searchFile').on({
click : function(){
var params = "";
params += "tmp_SearchElementName= progrmFileNm"
XitMenuListMng_edit.pagePopup('fileNmSearch', "<c:url value='/_mng_/menu/program/ProgramMng_FileNmSearch_popup.do'/>", params);
}
})
$(".popup").css("position","absolute");
$(".content_header").css("display","none");
$("#cur_loc").css("display","none");
},
/* ========================
* 데이터 등록
======================== */
addData : function(){
if(!validateMenuManageVO(document.getElementById("menuManageVO")))
return;
var varFrom = document.getElementById("menuManageVO");
if(confirm("저장 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "<c:url value='/framework/biz/mng/menu/MenuListMng_insert_proc.do'/>",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitMenuListMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 수정
======================== */
,modifyData : function(){
if(!validateMenuManageVO(document.getElementById("menuManageVO")))
return;
var varFrom = document.getElementById("menuManageVO");
if(confirm("수정 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "<c:url value='/framework/biz/mng/menu/MenuListMng_update_proc.do'/>",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitMenuListMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 삭제
======================== */
,removeData : function(){
var varFrom = document.getElementById("menuManageVO");
if(confirm("삭제 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "<c:url value='/framework/biz/mng/menu/MenuListMng_delete_proc.do'/>",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitMenuListMng_list.findData();
window.close();
},
error: function(){
}
});
}
}
,pagePopup: function(flag, url, params){
var popUrl = url;
if(!(params == undefined || params == null)){
popUrl += "?";
popUrl += params;
}
var popTitle = '';
switch (flag) {
case "fileNmSearch": //상세
popTitle = "파일명 목록";
popOption = "scrollbars = yes, top=100px, left=100px, height=520px, width=805px;";
break;
default:
break;
}
window.open(popUrl, popTitle ,popOption);
},
}
</script>

@ -1,118 +1,107 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<%
/* Image Path 설정 */
String imagePath_icon = "/resources/images/egovframework/sym/mpm/icon";
String imagePath_button = "/resources/images/egovframework/sym/mpm/button/";
%>
<c:url var="ImgUrl" value="/resources/"/>
<style type="text/css">
h1 {font-size:12px;}
caption {visibility:hidden; font-size:0; height:0; margin:0; padding:0; line-height:0;}
</style>
<script language="javascript1.2" type="text/javaScript">
/* ********************************************************
* 메뉴일괄생성처리 함수
******************************************************** */
function insertMenuManage() {
if(confirm("메뉴일괄등록을 하시겠습니까?. \n 메뉴정보와 프로그램목록, 프로그램 변경내역 존재시 삭제 하실 수 없습니다.")){
if(checkFile()){
document.menuManageRegistForm.action ="<c:url value='/framework/biz/mng/menu/MenuListMng_inserts_proc.do'/>";
document.menuManageRegistForm.submit();
}
}
}
/* ********************************************************
* 메뉴일괄삭제처리 함수
******************************************************** */
function deleteMenuList() {
if(confirm("메뉴일괄삭제를 하시겠습니까?. \n 메뉴정보와 프로그램목록, 프로그램 변경내역 데이타 모두 삭제 삭제처리 됩니다.")){
document.menuManageRegistForm.action ="<c:url value='/framework/biz/mng/menu/MenuListMng_deletes_proc.do'/>";
document.menuManageRegistForm.submit();
}
}
/* ********************************************************
* 메뉴일괄등록시 등록파일 체크 함수
******************************************************** */
function checkFile(){
if(document.menuManageRegistForm.file.value==""){
alert("업로드 할 파일을 지정해 주세요");
return false;
}
var str_dotlocation,str_ext,str_low;
str_value = document.menuManageRegistForm.file.value;
str_low = str_value.toLowerCase(str_value);
str_dotlocation = str_low.lastIndexOf(".");
str_ext = str_low.substring(str_dotlocation+1);
switch (str_ext) {
case "xls" :
case "xlsx" :
return true;
break;
default:
alert("파일 형식이 맞지 않습니다.\n xls,XLS,xlsx,XLSX 만\n 업로드가 가능합니다!");
return false;
}
<c:url var="ImgUrl" value="/resources"/>
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
<validator:javascript formName="menuManageRegistForm" staticJavascript="false" xhtml="true" cdata="false"/>
<form:form commandName="menuManageRegistForm" name="menuManageRegistForm" action ="" method="post" enctype="multipart/form-data">
<input name="cmd" type="hidden" value="<c:out value='bndeInsert'/>"/>
<div class="popup" style="min-width: 700px;">
<div class="popup_inner" style="max-width:700px;">
<p class="pop_title">메뉴 일괄등록</p>
<table class="tbl03">
<caption>메뉴 일괄등록</caption>
<tr>
<th width="20%" height="23" class="required" scope="row"><label for="file">일괄파일</label>
<img src="${ImgUrl}/required.gif" width="15" height="15" alt="필수">
</th>
<td width="80%" nowrap="nowrap">
<input type = "file" id="file" name="file" size="40" title="일괄파일"/>
</td>
</tr>
</table>
<div class="popup_btn">
<span class="flr" colspan="4">
<a href="#LINK" class="btn blue" id="btnSave">일괄등록</a>
<a href="#" class="btn lightgray" id="btnClose">닫기</a>
</span>
</div>
<!-- //등록버튼 -->
</div>
</div>
<!-- //popup -->
</form:form>
<script type="text/javaScript">
$(document).ready(function(){
XitMenuListMng_inputs.init();
});
/* *******************************
* 메뉴목록 관리 다건등록 Functions
******************************* */
var XitMenuListMng_inputs = {
init : function(){
//닫기 버튼 Event
$("#btnClose").click(function() {
window.close();
});
//저장 버튼 Event 설정
$('#btnSave').on({
click: function(){
if(confirm("메뉴일괄등록을 하시겠습니까?. \n 메뉴정보와 프로그램목록, 프로그램 변경내역 존재시 삭제 하실 수 없습니다.")){
if(XitMenuListMng_inputs.fnCheckFule()){
document.menuManageRegistForm.action ="<c:url value='/framework/biz/mng/menu/MenuListMng_inserts_proc.do'/>";
document.menuManageRegistForm.submit();
}
}
}
});
}
/* ********************************************************
* 메뉴일괄등록시 등록파일 체크 함수
******************************************************** */
,fnCheckFule : function(){
if(document.menuManageRegistForm.file.value==""){
alert("업로드 할 파일을 지정해 주세요");
return false;
}
var str_dotlocation,str_ext,str_low;
str_value = document.menuManageRegistForm.file.value;
str_low = str_value.toLowerCase(str_value);
str_dotlocation = str_low.lastIndexOf(".");
str_ext = str_low.substring(str_dotlocation+1);
switch (str_ext) {
case "xls" :
case "xlsx" :
return true;
break;
default:
alert("파일 형식이 맞지 않습니다.\n xls,XLS,xlsx,XLSX 만\n 업로드가 가능합니다!");
return false;
}
}
}
/* ********************************************************
* 처리결과메시지 출력
******************************************************** */
<c:if test="${!empty message}">alert("${message}");</c:if>
</script>
<!-- 검색 필드 박스 시작 -->
<div id="search_field">
<div id="search_field_loc"><h2><strong>메뉴일괄등록</strong></h2></div>
</div>
<form name="menuManageRegistForm" action ="" method="post" enctype="multipart/form-data">
<input type="submit" id="invisible" class="invisible"/>
<div class="modify_user" >
<table summary="메뉴일괄등록">
<tr>
<th width="20%" height="23" class="required" scope="row"><label for="file">일괄파일</label>
<img src="${ImgUrl}/required.gif" width="15" height="15" alt="필수"></th>
<td width="80%" nowrap="nowrap">
<input type = "file" id="file" name="file" size="40" title="일괄파일"/>
</td>
</tr>
</table>
</div>
<!-- 버튼 시작(상세지정 style로 div에 지정) -->
<div class="buttons" style="padding-top:10px;padding-bottom:10px;">
<!-- 목록/저장버튼 -->
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<a href="<c:url value='/framework/biz/mng/menu/MenuListMng_list.do'/>" onclick="selectList(); return false;">목록</a>
</td>
<td>
<a href="#LINK" onclick="javascript:insertMenuManage(); return false;">일괄등록</a>
</td>
</tr>
</table>
</div>
<!-- 버튼 끝 -->
<!-- 검색조건 유지 -->
<input name="cmd" type="hidden" value="<c:out value='bndeInsert'/>"/>
<!-- 검색조건 유지 -->
</form>

Loading…
Cancel
Save