refactor : 코드 테이블 컬럼명 변경(CODE_ID_NM -> GRP_NM)

main
이범준 2 years ago
parent 6e62a45bc9
commit 8f7b3fdd11

@ -119,7 +119,7 @@ select * from XIT_ORGNZT_INFO;
AND ORGNZT_ID = 'BPV'; AND ORGNZT_ID = 'BPV';
select * from xit_cmmn_code where CODE_ID_NM like '%과태료%'; select * from xit_cmmn_code where GRP_NM like '%과태료%';
UPDATE tb_ec_ctzn_sttemnt UPDATE tb_ec_ctzn_sttemnt

@ -20,7 +20,7 @@ public class XitCmmnCodeVO extends BaseVO {
private static final long serialVersionUID = -5850726883706732980L; private static final long serialVersionUID = -5850726883706732980L;
protected String grp_id; //코드 id protected String grp_id; //코드 id
protected String code_id_nm; //코드 id 명 protected String grp_nm; //코드 id 명
protected String code_id_dc; //코드 id 설명 protected String code_id_dc; //코드 id 설명
protected String use_at; //사용 여부 protected String use_at; //사용 여부
protected String cl_code; //분류 코드 protected String cl_code; //분류 코드
@ -36,11 +36,11 @@ public class XitCmmnCodeVO extends BaseVO {
public void setGrp_id(String grp_id) { public void setGrp_id(String grp_id) {
this.grp_id = grp_id; this.grp_id = grp_id;
} }
public String getCode_id_nm() { public String getGrp_nm() {
return code_id_nm; return grp_nm;
} }
public void setCode_id_nm(String code_id_nm) { public void setGrp_nm(String grp_nm) {
this.code_id_nm = code_id_nm; this.grp_nm = grp_nm;
} }
public String getCode_id_dc() { public String getCode_id_dc() {
return code_id_dc; return code_id_dc;

@ -34,7 +34,7 @@ public class XitCmmnCodeMngVO {
/* /*
* ID * ID
*/ */
private String codeIdNm; private String grpNm;
/* /*
* ID * ID

@ -37,7 +37,7 @@ public class XitDetailCodeMngVO {
* ID * ID
*/ */
@ApiParam(value = "코드 ID 이름") @ApiParam(value = "코드 ID 이름")
private String codeIdNm; private String grpNm;
/* /*
* *

@ -16,7 +16,7 @@ public class XitCodeVO extends BaseVO {
/** 코드ID */ /** 코드ID */
private String grpId; private String grpId;
/** 코드ID명 */ /** 코드ID명 */
private String codeIdNm; private String grpNm;
/** 코드 */ /** 코드 */
private String code; private String code;
/** 코드명 */ /** 코드명 */
@ -47,11 +47,11 @@ public class XitCodeVO extends BaseVO {
public void setGrpId(String grpId) { public void setGrpId(String grpId) {
this.grpId = grpId; this.grpId = grpId;
} }
public String getCodeIdNm() { public String getGrpNm() {
return codeIdNm; return grpNm;
} }
public void setCodeIdNm(String codeIdNm) { public void setGrpNm(String grpNm) {
this.codeIdNm = codeIdNm; this.grpNm = grpNm;
} }
public String getCode() { public String getCode() {
return code; return code;

@ -62,7 +62,7 @@
<when test='type != null and type == "CMM_GRP"'> <when test='type != null and type == "CMM_GRP"'>
/* 공통 코드 그룹 */ /* 공통 코드 그룹 */
SELECT grp_id AS code SELECT grp_id AS code
, code_id_nm AS code_val , grp_nm AS code_val
FROM xit_cmmn_code FROM xit_cmmn_code
WHERE cl_code = #{grpId} WHERE cl_code = #{grpId}
AND use_at = 'Y' AND use_at = 'Y'

@ -22,7 +22,7 @@
/** findCmmnCodes */ /** findCmmnCodes */
/** 공통코드 목록 조회 */ /** 공통코드 목록 조회 */
SELECT GRP_ID AS "grpId" SELECT GRP_ID AS "grpId"
, CODE_ID_NM AS "codeIdNm" , GRP_NM AS "grpNm"
, CODE_ID_DC AS "codeIdDc" , CODE_ID_DC AS "codeIdDc"
, CL_CODE AS "clCode" , CL_CODE AS "clCode"
FROM XIT_CMMN_CODE FROM XIT_CMMN_CODE

@ -741,7 +741,7 @@
/** findXitCmmnCodes */ /** findXitCmmnCodes */
/** 공통코드 다건 조회 */ /** 공통코드 다건 조회 */
SELECT GRP_ID SELECT GRP_ID
,CODE_ID_NM ,GRP_NM
,CODE_ID_DC ,CODE_ID_DC
,USE_AT ,USE_AT
,CL_CODE ,CL_CODE
@ -751,8 +751,8 @@
,LAST_UPDUSR_ID ,LAST_UPDUSR_ID
FROM XIT_CMMN_CODE FROM XIT_CMMN_CODE
WHERE 1=1 WHERE 1=1
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grp_id )">AND GRP_ID = #{grp_id }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grp_id )">AND GRP_ID = #{grp_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(code_id_nm )">AND CODE_ID_NM = #{code_id_nm }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grp_nm )">AND GRP_NM = #{grp_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(code_id_dc )">AND CODE_ID_DC = #{code_id_dc }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(code_id_dc )">AND CODE_ID_DC = #{code_id_dc }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(use_at )">AND USE_AT = #{use_at }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(use_at )">AND USE_AT = #{use_at }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(cl_code )">AND CL_CODE = #{cl_code }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(cl_code )">AND CL_CODE = #{cl_code }</if>
@ -765,7 +765,7 @@
/** findXitCmmnCode */ /** findXitCmmnCode */
/** 공통코드 조회 */ /** 공통코드 조회 */
SELECT GRP_ID SELECT GRP_ID
,CODE_ID_NM ,GRP_NM
,CODE_ID_DC ,CODE_ID_DC
,USE_AT ,USE_AT
,CL_CODE ,CL_CODE
@ -782,7 +782,7 @@
/** 공통코드 등록 */ /** 공통코드 등록 */
INSERT INTO XIT_CMMN_CODE( INSERT INTO XIT_CMMN_CODE(
GRP_ID GRP_ID
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(code_id_nm )">,CODE_ID_NM </if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grp_nm )">,GRP_NM </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(code_id_dc )">,CODE_ID_DC </if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(code_id_dc )">,CODE_ID_DC </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(use_at )">,USE_AT </if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(use_at )">,USE_AT </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(cl_code )">,CL_CODE </if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(cl_code )">,CL_CODE </if>
@ -792,7 +792,7 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(last_updusr_id )">,LAST_UPDUSR_ID </if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(last_updusr_id )">,LAST_UPDUSR_ID </if>
)VALUES( )VALUES(
#{grp_id } #{grp_id }
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(code_id_nm )">,#{code_id_nm }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grp_nm )">,#{grp_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(code_id_dc )">,#{code_id_dc }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(code_id_dc )">,#{code_id_dc }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(use_at )">,#{use_at }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(use_at )">,#{use_at }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(cl_code )">,#{cl_code }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(cl_code )">,#{cl_code }</if>
@ -808,7 +808,7 @@
UPDATE XIT_CMMN_CODE UPDATE XIT_CMMN_CODE
SET SET
LAST_UPDT_PNTTM = NOW() LAST_UPDT_PNTTM = NOW()
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(code_id_nm )">,CODE_ID_NM = #{code_id_nm }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(grp_nm )">,GRP_NM = #{grp_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(code_id_dc )">,CODE_ID_DC = #{code_id_dc }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(code_id_dc )">,CODE_ID_DC = #{code_id_dc }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(use_at )">,USE_AT = #{use_at }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(use_at )">,USE_AT = #{use_at }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(cl_code )">,CL_CODE = #{cl_code }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(cl_code )">,CL_CODE = #{cl_code }</if>

@ -19,7 +19,7 @@
, tcat.change_dt , tcat.change_dt
, tcat.changer , tcat.changer
, tcatd.answer_se_code , tcatd.answer_se_code
, cdc.code_id_nm AS answerSeCodeNm , cdc.grp_nm AS answerSeCodeNm
, tcatd.resn_code , tcatd.resn_code
, cdc.code_val AS resnCodeNm , cdc.code_val AS resnCodeNm
, tcatd.answer_cn , tcatd.answer_cn
@ -31,7 +31,7 @@
LEFT OUTER JOIN ( LEFT OUTER JOIN (
SELECT SELECT
xcc.grp_id xcc.grp_id
, xcc.code_id_nm , xcc.grp_nm
, xcdc.code , xcdc.code
, xcdc.code_val , xcdc.code_val
FROM xit_cmmn_code xcc FROM xit_cmmn_code xcc

@ -8,7 +8,7 @@
************************************************************************************************************** --> ************************************************************************************************************** -->
<sql id="sqlCmmnDtlCode"> <sql id="sqlCmmnDtlCode">
SELECT cdc.grp_id SELECT cdc.grp_id
, xcc.code_id_nm , xcc.grp_nm
, cdc.code , cdc.code
, cdc.code_val , cdc.code_val
, cdc.code_dc , cdc.code_dc
@ -31,8 +31,8 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grpId)"> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grpId)">
AND INSTR(cdc.grp_id, #{grpId}) > 0 AND INSTR(cdc.grp_id, #{grpId}) > 0
</if> </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(codeIdNm)"> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grpNm)">
AND INSTR(xcc.code_id_nm, #{codeIdNm}) > 0 AND INSTR(xcc.grp_nm, #{grpNm}) > 0
</if> </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(code)"> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(code)">
AND INSTR(cdc.code, #{code}) > 0 AND INSTR(cdc.code, #{code}) > 0
@ -89,7 +89,7 @@
<update id="updateCmmnDtlCode"> <update id="updateCmmnDtlCode">
/* code-dtl-mysql-mapper|updateCmmnDtlCode-코드 정보 변경|julim */ /* code-dtl-mysql-mapper|updateCmmnDtlCode-코드 정보 변경|julim */
UPDATE xit_cmmn_detail_code UPDATE xit_cmmn_detail_code
SET code_val = IF(code_val = #{codeIdNm}, code_val, #{codeVal}) SET code_val = IF(code_val = #{grpNm}, code_val, #{codeVal})
, code_dc = IF(code_dc = #{codeDc}, code_dc, #{codeDc}) , code_dc = IF(code_dc = #{codeDc}, code_dc, #{codeDc})
, etc_1 = IF(etc_1 = #{etc1}, etc_1, #{etc1}) , etc_1 = IF(etc_1 = #{etc1}, etc_1, #{etc1})
, etc_2 = IF(etc_2 = #{etc2}, etc_2, #{etc2}) , etc_2 = IF(etc_2 = #{etc2}, etc_2, #{etc2})

@ -10,7 +10,7 @@
SELECT xcc.cl_code SELECT xcc.cl_code
, xccc.cl_code_nm , xccc.cl_code_nm
, xcc.grp_id , xcc.grp_id
, xcc.code_id_nm , xcc.grp_nm
, xcc.code_id_dc , xcc.code_id_dc
, xcc.use_at , xcc.use_at
, xcc.frst_regist_pnttm , xcc.frst_regist_pnttm
@ -27,8 +27,8 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grpId)"> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grpId)">
AND INSTR(xcc.grp_id, #{grpId}) > 0 AND INSTR(xcc.grp_id, #{grpId}) > 0
</if> </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(codeIdNm)"> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grpNm)">
AND INSTR(xcc.code_id_nm, #{codeIdNm}) > 0 AND INSTR(xcc.grp_nm, #{grpNm}) > 0
</if> </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(useAt)"> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(useAt)">
AND xcc.use_at = #{useAt} AND xcc.use_at = #{useAt}
@ -53,7 +53,7 @@
INTO xit_cmmn_code ( INTO xit_cmmn_code (
cl_code cl_code
, grp_id , grp_id
, code_id_nm , grp_nm
, code_id_dc , code_id_dc
, use_at , use_at
, frst_regist_pnttm , frst_regist_pnttm
@ -61,7 +61,7 @@
) VALUE ( ) VALUE (
#{clCode} #{clCode}
, #{grpId} , #{grpId}
, #{codeIdNm} , #{grpNm}
, #{codeIdDc} , #{codeIdDc}
, #{useAt} , #{useAt}
, NOW() , NOW()
@ -72,7 +72,7 @@
<update id="updateCmmnGrpCode"> <update id="updateCmmnGrpCode">
/* code-grp-mysql-mapper|updateCmmnGrpCode-코드그룹 정보 변경|julim */ /* code-grp-mysql-mapper|updateCmmnGrpCode-코드그룹 정보 변경|julim */
UPDATE xit_cmmn_code UPDATE xit_cmmn_code
SET code_id_nm = IF(code_id_nm = #{codeIdNm}, code_id_nm, #{codeIdNm}) SET grp_nm = IF(grp_nm = #{grpNm}, grp_nm, #{grpNm})
, code_id_dc = IF(code_id_dc = #{codeIdDc}, code_id_dc, #{codeIdDc}) , code_id_dc = IF(code_id_dc = #{codeIdDc}, code_id_dc, #{codeIdDc})
, use_at = IF(use_at = #{useAt}, use_at, #{useAt}) , use_at = IF(use_at = #{useAt}, use_at, #{useAt})
, last_updt_pnttm = NOW() , last_updt_pnttm = NOW()

@ -15,7 +15,7 @@
<var-value>6</var-value> <var-value>6</var-value>
</var> </var>
</field> </field>
<field property="codeIdNm" depends="required, maxlength"> <field property="grpNm" depends="required, maxlength">
<arg0 key="코드ID명" resource="false"/> <arg0 key="코드ID명" resource="false"/>
<arg1 key="60" resource="false"/> <arg1 key="60" resource="false"/>
<var> <var>

@ -48,11 +48,11 @@
</tr> </tr>
<tr> <tr>
<th width="20%" height="23" scope="row" nowrap="nowrap" > <th width="20%" height="23" scope="row" nowrap="nowrap" >
<label for="codeIdNm" class="required">코드ID명</label> <label for="grpNm" class="required">코드ID명</label>
</th> </th>
<td width="80%" nowrap="nowrap" colspan="3"> <td width="80%" nowrap="nowrap" colspan="3">
<form:input path="codeIdNm" size="60" maxlength="60" id="codeIdNm"/> <form:input path="grpNm" size="60" maxlength="60" id="grpNm"/>
<form:errors path="codeIdNm"/> <form:errors path="grpNm"/>
</td> </td>
</tr> </tr>
<tr> <tr>

@ -51,11 +51,11 @@
</tr> </tr>
<tr> <tr>
<th width="20%" height="23" scope="row" nowrap="nowrap" > <th width="20%" height="23" scope="row" nowrap="nowrap" >
<label for="codeIdNm" class="required">코드ID명</label> <label for="grpNm" class="required">코드ID명</label>
</th> </th>
<td width="80%" nowrap="nowrap" colspan="3"> <td width="80%" nowrap="nowrap" colspan="3">
<form:input path="codeIdNm" size="60" maxlength="60" id="codeIdNm"/> <form:input path="grpNm" size="60" maxlength="60" id="grpNm"/>
<form:errors path="codeIdNm"/> <form:errors path="grpNm"/>
</td> </td>
</tr> </tr>
<tr> <tr>

@ -249,7 +249,7 @@ GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵
}, },
{ {
header: '코드ID명', header: '코드ID명',
name: 'codeIdNm', name: 'grpNm',
width: 200, width: 200,
sortable: false, sortable: false,
align: 'center' align: 'center'

@ -131,7 +131,7 @@ function fnDelete(){
<td nowrap="nowrap"><strong><c:out value="${(searchVO.pageIndex - 1) * searchVO.pageSize + status.count}"/></strong></td> <td nowrap="nowrap"><strong><c:out value="${(searchVO.pageIndex - 1) * searchVO.pageSize + status.count}"/></strong></td>
<td nowrap="nowrap">${resultInfo.clCodeNm}</td> <td nowrap="nowrap">${resultInfo.clCodeNm}</td>
<td nowrap="nowrap">${resultInfo.grpId}</td> <td nowrap="nowrap">${resultInfo.grpId}</td>
<td nowrap="nowrap">${resultInfo.codeIdNm}</td> <td nowrap="nowrap">${resultInfo.grpNm}</td>
<td nowrap="nowrap"><c:if test="${resultInfo.useAt == 'Y'}">사용</c:if><c:if test="${resultInfo.useAt == 'N'}">미사용</c:if></td> <td nowrap="nowrap"><c:if test="${resultInfo.useAt == 'Y'}">사용</c:if><c:if test="${resultInfo.useAt == 'N'}">미사용</c:if></td>
</tr> </tr>
</c:forEach> </c:forEach>

@ -36,7 +36,7 @@
<label class="required">코드ID</label> <label class="required">코드ID</label>
</th> </th>
<td width="80%" nowrap colspan="3"> <td width="80%" nowrap colspan="3">
${cmmnDetailCode.codeIdNm} ${cmmnDetailCode.grpNm}
</td> </td>
</tr> </tr>
<tr> <tr>
@ -285,7 +285,7 @@ var XitDetailCodeMng_edit = {
success : function(data) { success : function(data) {
$('#grpId').children('option').remove(); $('#grpId').children('option').remove();
$(data.cmmnCodeList).each(function(index, item){ $(data.cmmnCodeList).each(function(index, item){
var option = $('<option value="'+item.grpId+'">'+item.codeIdNm+'</option>'); var option = $('<option value="'+item.grpId+'">'+item.grpNm+'</option>');
$('#grpId').append(option); $('#grpId').append(option);
}); });
}, },

@ -42,7 +42,7 @@
</select> </select>
<select style="width: 40%" name="grpId" class="select" id="grpId"> <select style="width: 40%" name="grpId" class="select" id="grpId">
<c:forEach var="result" items="${cmmnDetailCodeList}" varStatus="status"> <c:forEach var="result" items="${cmmnDetailCodeList}" varStatus="status">
<option value='<c:out value="${result.grpId}"/>' ><c:out value="${result.codeIdNm}"/></option> <option value='<c:out value="${result.grpId}"/>' ><c:out value="${result.grpNm}"/></option>
</c:forEach> </c:forEach>
</select> </select>
</td> </td>
@ -292,7 +292,7 @@ var XitDetailCodeMng_input = {
success : function(data) { success : function(data) {
$('#grpId').children('option').remove(); $('#grpId').children('option').remove();
$(data.cmmnCodeList).each(function(index, item){ $(data.cmmnCodeList).each(function(index, item){
var option = $('<option value="'+item.grpId+'">'+item.codeIdNm+'</option>'); var option = $('<option value="'+item.grpId+'">'+item.grpNm+'</option>');
$('#grpId').append(option); $('#grpId').append(option);
}); });
}, },

@ -246,7 +246,7 @@ GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵
}, },
{ {
header: '코드ID명', header: '코드ID명',
name: 'codeIdNm', name: 'grpNm',
width: 200, width: 200,
sortable: true, sortable: true,
sortingType: 'desc', sortingType: 'desc',
@ -257,7 +257,7 @@ GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵
formatter : function(props){ formatter : function(props){
var rowData = props.grid.getRow(props.rowKey); var rowData = props.grid.getRow(props.rowKey);
var obj = { var obj = {
formatter : rowData.codeIdNm formatter : rowData.grpNm
,element : "text" ,element : "text"
} }
return obj; return obj;

@ -63,7 +63,7 @@
infoSize:"xl", infoSize:"xl",
urls : { urls : {
load : '<c:url value="/framework/biz/mng/code/findCodeCfns.do"/>', load : '<c:url value="/framework/biz/mng/code/findCodeCfns.do"/>',
getInfo : <c:url value="/framework/biz/mng/code/mngCodeCfnMgtPopup.do"/> getInfo : '<c:url value="/framework/biz/mng/code/mngCodeCfnMgtPopup.do"/>'
}, },
keymapper:info => info ? info.SOME_KEY : "", keymapper:info => info ? info.SOME_KEY : "",
dataGetter:obj => obj.data.contents dataGetter:obj => obj.data.contents

@ -25,8 +25,8 @@
<input name="grpId" title="코드그룹ID" type="text" size="15" maxlength="15" id="grpId"> <input name="grpId" title="코드그룹ID" type="text" size="15" maxlength="15" id="grpId">
</td> </td>
<td> <td>
<label for="codeIdNm">코드그룹명</label> <label for="grpNm">코드그룹명</label>
<input name="codeIdNm" title="코드그룹명" type="text" size="35" maxlength="35" id="codeIdNm"> <input name="grpNm" title="코드그룹명" type="text" size="35" maxlength="35" id="grpNm">
</td> </td>
<td> <td>
<label for="codeVal">공통코드명</label> <label for="codeVal">공통코드명</label>
@ -191,7 +191,7 @@
}, },
{ {
header: '코드그룹명', header: '코드그룹명',
name: 'codeIdNm', name: 'grpNm',
width: 150, width: 150,
sortable: true, sortable: true,
sortingType: 'desc', sortingType: 'desc',
@ -202,7 +202,7 @@
formatter : (props)=>{ formatter : (props)=>{
const rowData = props.grid.getRow(props.rowKey); const rowData = props.grid.getRow(props.rowKey);
return { return {
formatter: rowData.codeIdNm formatter: rowData.grpNm
,element: "text" ,element: "text"
} }
} }

@ -40,8 +40,8 @@
</select> </select>
</c:if> </c:if>
<c:if test="${isUpdate}"> <c:if test="${isUpdate}">
<form:input path="codeIdNm" size="3" maxlength="3" readonly="${isUpdate}"/> <form:input path="grpNm" size="3" maxlength="3" readonly="${isUpdate}"/>
<form:errors path="codeIdNm"/> <form:errors path="grpNm"/>
<input type="hidden" id="grpId" name="grpId" value="${cmmnDetailCode.grpId}"> <input type="hidden" id="grpId" name="grpId" value="${cmmnDetailCode.grpId}">
</c:if> </c:if>
</td> </td>
@ -167,7 +167,7 @@
,success: (data) => { ,success: (data) => {
$('#grpId').children('option').remove(); $('#grpId').children('option').remove();
$(data.comboList).each( (index, item) => { $(data.comboList).each( (index, item) => {
//var option = $('<option value="'+item.grpId+'">'+item.codeIdNm+'</option>'); //var option = $('<option value="'+item.grpId+'">'+item.grpNm+'</option>');
$('#grpId').append($('<option value="'+item.code+'">'+item.code_val+'</option>')); $('#grpId').append($('<option value="'+item.code+'">'+item.code_val+'</option>'));
}); });

@ -25,8 +25,8 @@
<input name="grpId" title="코드그룹ID" type="text" size="15" maxlength="15" id="grpId"> <input name="grpId" title="코드그룹ID" type="text" size="15" maxlength="15" id="grpId">
</td> </td>
<td> <td>
<label for="codeIdNm">코드그룹명</label> <label for="grpNm">코드그룹명</label>
<input name="codeIdNm" title="코드그룹명" type="text" size="35" maxlength="35" id="codeIdNm"> <input name="grpNm" title="코드그룹명" type="text" size="35" maxlength="35" id="grpNm">
</td> </td>
<td> <td>
<select name="useAt" title="사용여부" class="form-select"> <select name="useAt" title="사용여부" class="form-select">
@ -207,7 +207,7 @@
}, },
{ {
header: '그룹코드명', header: '그룹코드명',
name: 'codeIdNm', name: 'grpNm',
minWidth: 150, minWidth: 150,
sortable: false, sortable: false,
//align: 'center' //align: 'center'

@ -43,11 +43,11 @@
</tr> </tr>
<tr> <tr>
<th scope="row" nowrap> <th scope="row" nowrap>
<label for="codeIdNm" class="required">그룹코드명</label> <label for="grpNm" class="required">그룹코드명</label>
</th> </th>
<td nowrap="nowrap" colspan="3"> <td nowrap="nowrap" colspan="3">
<form:input path="codeIdNm" size="60" maxlength="60"/> <form:input path="grpNm" size="60" maxlength="60"/>
<form:errors path="codeIdNm"/> <form:errors path="grpNm"/>
</td> </td>
</tr> </tr>
<tr> <tr>

@ -40,8 +40,8 @@ Date Author Description
<input name="grpId" title="코드그룹ID" type="text" size="15" maxlength="15" id="grpId"> <input name="grpId" title="코드그룹ID" type="text" size="15" maxlength="15" id="grpId">
</td> </td>
<td> <td>
<label for="codeIdNm">코드그룹명</label> <label for="grpNm">코드그룹명</label>
<input name="codeIdNm" title="코드그룹명" type="text" size="35" maxlength="35" id="codeIdNm"> <input name="grpNm" title="코드그룹명" type="text" size="35" maxlength="35" id="grpNm">
</td> </td>
<td> <td>
<label for="codeVal">공통코드명</label> <label for="codeVal">공통코드명</label>
@ -201,7 +201,7 @@ Date Author Description
// grid click event // grid click event
{ {
header: '코드그룹명', header: '코드그룹명',
name: 'codeIdNm', name: 'grpNm',
width: 150, width: 150,
sortable: true, sortable: true,
sortingType: 'desc', sortingType: 'desc',
@ -212,7 +212,7 @@ Date Author Description
formatter : (props)=>{ formatter : (props)=>{
const rowData = props.grid.getRow(props.rowKey); const rowData = props.grid.getRow(props.rowKey);
return { return {
formatter: rowData.codeIdNm formatter: rowData.grpNm
,element: "text" ,element: "text"
} }
} }

Loading…
Cancel
Save