fix : 유저 관련 수정

main
이범준 1 year ago
parent 15988d045b
commit 38a9ee768b

@ -30,7 +30,7 @@
<tbody> <tbody>
<td colspan="6"> <td colspan="6">
<select id="searchCondition" name="searchCondition" title="조회조건"> <select id="searchCondition" name="searchCondition" title="조회조건">
<option value="1" <c:if test="${authorGroupVO.searchCondition == '1'}">selected</c:if> >사용자 ID</option> <option value="1" <c:if test="${authorGroupVO.searchCondition == '1'}">selected</c:if> >계정 ID</option>
<option value="2" <c:if test="${authorGroupVO.searchCondition == '2'}">selected</c:if> >사용자 명</option> <option value="2" <c:if test="${authorGroupVO.searchCondition == '2'}">selected</c:if> >사용자 명</option>
<option value="3" <c:if test="${authorGroupVO.searchCondition == '3'}">selected</c:if> >그룹</option> <option value="3" <c:if test="${authorGroupVO.searchCondition == '3'}">selected</c:if> >그룹</option>
</select> </select>
@ -309,8 +309,8 @@ GridConfig.setOptHeader({
}); //Grid 헤더 정보(헤더 셀 병합 필요 시 설정) }); //Grid 헤더 정보(헤더 셀 병합 필요 시 설정)
GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵션 등) GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵션 등)
{ {
header: '사용자 ID', header: '계정 ID',
name: 'userId', name: 'userAcnt',
minWidth: 160, minWidth: 160,
sortable: true, sortable: true,
filter: 'select', filter: 'select',

@ -244,7 +244,7 @@ function press() {
<!-- loop 시작 --> <!-- loop 시작 -->
<tr> <tr>
<td nowrap="nowrap"><input type="checkbox" name="delYn" class="check2" title="선택"><input type="hidden" name="checkId" value="<c:out value="${authorGroup.uniqId}"/>"/></td> <td nowrap="nowrap"><input type="checkbox" name="delYn" class="check2" title="선택"><input type="hidden" name="checkId" value="<c:out value="${authorGroup.uniqId}"/>"/></td>
<td nowrap="nowrap"><c:out value="${authorGroup.userId}"/></td> <td nowrap="nowrap"><c:out value="${authorGroup.userAcnt}"/></td>
<td nowrap="nowrap"><c:out value="${authorGroup.userNm}"/></td> <td nowrap="nowrap"><c:out value="${authorGroup.userNm}"/></td>
<td nowrap="nowrap"><c:out value="${authorGroup.mberTyNm}"/><input type="hidden" name="mberTyCode" value="${authorGroup.mberTyCode}"/></td> <td nowrap="nowrap"><c:out value="${authorGroup.mberTyNm}"/><input type="hidden" name="mberTyCode" value="${authorGroup.mberTyCode}"/></td>
<td nowrap="nowrap"> <td nowrap="nowrap">

@ -266,8 +266,8 @@ GridConfig.setOptHeader({
}); //Grid 헤더 정보(헤더 셀 병합 필요 시 설정) }); //Grid 헤더 정보(헤더 셀 병합 필요 시 설정)
GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵션 등) GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵션 등)
{ {
header: '사용자 ID', header: '계정 ID',
name: 'userId', name: 'userAcnt',
minWidth: 160, minWidth: 160,
sortable: true, sortable: true,
sortingType: 'desc', sortingType: 'desc',
@ -329,70 +329,5 @@ var instance = GridConfig.instance(Grid); //Grid 인스턴스
<c:if test="${!empty message}">alert("${message}");</c:if> <c:if test="${!empty message}">alert("${message}");</c:if>
</script> </script>
<%-- <div id="page_info"><div id="page_info_align"></div></div>
<!-- table add start -->
<div class="default_tablestyle">
<table summary="사용자부재정보에 대한 목록을 제공한다." cellpadding="0" cellspacing="0">
<caption>사용자부재 관리</caption>
<colgroup>
<col width="25%" >
<col width="25%" >
<col width="15%" >
<col width="15%" >
<col width="20%" >
</colgroup>
<thead>
<tr>
<th scope="col" class="f_field" nowrap="nowrap">사용자 ID</th>
<th scope="col" nowrap="nowrap">사용자 명</th>
<th scope="col" nowrap="nowrap">부재여부</th>
<th scope="col" nowrap="nowrap">등록여부</th>
<th scope="col" nowrap="nowrap">등록일시</th>
</tr>
</thead>
<tbody>
<c:forEach var="userAbsnce" items="${userAbsnceList}" varStatus="status">
<!-- loop 시작 -->
<tr>
<td nowrap="nowrap">
<form name="item" method="post" action="<c:url value='/framework/biz/mng/usr/userAbsntMng_edit.do'/>">
<input type="hidden" name="userId" value="<c:out value="${userAbsnce.userId}"/>">
<input type="hidden" name="selAbsnceAt" value="<c:out value="${userAbsnceVO.selAbsnceAt}"/>">
<input type="hidden" name="pageIndex" value="<c:out value='${userAbsnceVO.pageIndex}'/>">
<input type="hidden" name="searchCondition" value="<c:out value='${userAbsnceVO.searchCondition}'/>">
<input type="hidden" name="searchKeyword" value="<c:out value="${userAbsnceVO.searchKeyword}"/>">
<span class="link"><c:out value="${userAbsnce.userId}"/> <input type="submit" onclick="fncSelectUserAbsnce('<c:out value="${userAbsnce.userId}"/>', '<c:out value="${userAbsnce.regYn}"/>'); return false;" value="등록"></span>
</form>
</td>
<td nowrap="nowrap"><c:out value="${userAbsnce.userNm}"/></td>
<td nowrap="nowrap">
<c:if test="${userAbsnce.userAbsnceYn eq 'Y'}" ><c:out value="Y"/></c:if>
<c:if test="${userAbsnce.userAbsnceYn eq 'N'}" ><c:out value="N"/></c:if>
</td>
<td nowrap="nowrap">
<c:if test="${userAbsnce.regYn eq 'Y'}" ><c:out value="Y"/></c:if>
<c:if test="${userAbsnce.regYn eq 'N'}" ><c:out value="N"/></c:if>
</td>
<td nowrap="nowrap"><c:out value="${userAbsnce.mdfcnDt}"/></td>
</tr>
</c:forEach>
<c:if test="${empty userAbsnceList}">
<tr>
<td colspan="5">검색된 값이 없습니다.</td>
</tr>
</c:if>
</tbody>
</table>
</div>
<!-- 페이지 네비게이션 시작 -->
<c:if test="${!empty userAbsnceVO.pageIndex }">
<div id="paging_div">
<ul class="paging_align">
<ui:pagination paginationInfo = "${paginationInfo}" type="image" jsFunction="linkPage" />
</ul>
</div>
</c:if>
<!-- //페이지 네비게이션 끝 --> --%>

@ -248,12 +248,16 @@ function press() {
<tr> <tr>
<td nowrap="nowrap"> <td nowrap="nowrap">
<form name="item" method="post" action="<c:url value='/framework/biz/mng/usr/userAbsntMng_edit.do'/>"> <form name="item" method="post" action="<c:url value='/framework/biz/mng/usr/userAbsntMng_edit.do'/>">
<input type="hidden" name="userId" value="<c:out value="${userAbsnce.userId}"/>"> <input type="hidden" name="userAcnt" value="<c:out value="${userAbsnce.userAcnt}"/>">
<input type="hidden" name="selAbsnceAt" value="<c:out value="${userAbsnceVO.selAbsnceAt}"/>"> <input type="hidden" name="selAbsnceAt" value="<c:out value="${userAbsnceVO.selAbsnceAt}"/>">
<input type="hidden" name="pageIndex" value="<c:out value='${userAbsnceVO.pageIndex}'/>"> <input type="hidden" name="pageIndex" value="<c:out value='${userAbsnceVO.pageIndex}'/>">
<input type="hidden" name="searchCondition" value="<c:out value='${userAbsnceVO.searchCondition}'/>"> <input type="hidden" name="searchCondition" value="<c:out value='${userAbsnceVO.searchCondition}'/>">
<input type="hidden" name="searchKeyword" value="<c:out value="${userAbsnceVO.searchKeyword}"/>"> <input type="hidden" name="searchKeyword" value="<c:out value="${userAbsnceVO.searchKeyword}"/>">
<span class="link"><c:out value="${userAbsnce.userId}"/> <input type="submit" onclick="fncSelectUserAbsnce('<c:out value="${userAbsnce.userId}"/>', '<c:out value="${userAbsnce.regYn}"/>'); return false;" value="등록"></span> <span class="link">
<c:out value="${userAbsnce.userAcnt}"/>
<input type="submit"
onclick="fncSelectUserAbsnce('<c:out value="${userAbsnce.userId}"/>', '<c:out value="${userAbsnce.regYn}"/>'); return false;" value="등록">
</span>
</form> </form>
</td> </td>
<td nowrap="nowrap"><c:out value="${userAbsnce.userNm}"/></td> <td nowrap="nowrap"><c:out value="${userAbsnce.userNm}"/></td>

@ -61,14 +61,7 @@ function fnDeleteUser() {
} }
} }
} }
function fnSelectUser(id) { function fnSelectUser(userId) {
document.listForm.selectedId.value = id;
array = id.split(":");
if(array[0] == "") {
} else {
userTy = array[0];
userId = array[1];
}
document.listForm.selectedId.value = userId; document.listForm.selectedId.value = userId;
document.listForm.action = "<c:url value='/framework/biz/mng/usr/UserRegMng_edit.do'/>"; document.listForm.action = "<c:url value='/framework/biz/mng/usr/UserRegMng_edit.do'/>";
document.listForm.submit(); document.listForm.submit();
@ -188,10 +181,14 @@ function fnViewCheck(){
<td nowrap="nowrap"><strong><c:out value="${status.count}"/></strong></td> <td nowrap="nowrap"><strong><c:out value="${status.count}"/></strong></td>
<td nowrap="nowrap"> <td nowrap="nowrap">
<input name="checkField" title="Check <c:out value="${status.count}"/>" type="checkbox"/> <input name="checkField" title="Check <c:out value="${status.count}"/>" type="checkbox"/>
<input name="checkId" type="hidden" value="<c:out value='${result.userTy}'/>:<c:out value='${result.userId}'/>"/> <input name="checkId" type="hidden" value="<c:out value='${result.uniqId}'/>"/>
</td> </td>
<td nowrap style="cursor:pointer;cursor:hand" > <td nowrap style="cursor:pointer;cursor:hand" >
<span class="link"><a href="<c:url value='/framework/biz/mng/usr/UserRegMng_edit.do'/>?selectedId=<c:out value="${result.uniqId}"/>" onclick="javascript:fnSelectUser('<c:out value="${result.userTy}"/>:<c:out value="${result.uniqId}"/>'); return false;"><c:out value="${result.userId}"/></a></span> <span class="link">
<a href="<c:url value='/framework/biz/mng/usr/UserRegMng_edit.do'/>?selectedId=<c:out value="${result.uniqId}"/>" onclick="javascript:fnSelectUser('<c:out value="${result.uniqId}"/>'); return false;">
<c:out value="${result.userAcnt}"/>
</a>
</span>
</td> </td>
<td nowrap="nowrap"><c:out value="${result.userNm}"/></td> <td nowrap="nowrap"><c:out value="${result.userNm}"/></td>
<td nowrap="nowrap"><c:out value="${result.emlAdrs}"/></td> <td nowrap="nowrap"><c:out value="${result.emlAdrs}"/></td>

Loading…
Cancel
Save