fix: 메뉴 등록 화면 수정

main
이범준 1 year ago
parent 84b2edfb78
commit 7e2ffe007d

@ -60,10 +60,10 @@ public class MenuMgtServiceBean extends AbstractServiceBean implements MenuMgtSe
throw BizRuntimeException.create(MessageKey.DUP_ERR_MSG);
// 프로그램 존재 여부
if(Checks.isEmpty(programMngMapper.selectProgram(ProgramMngVO.builder()
.pgrmFileNm(vo.getPgrmFileNm())
.build())))
throw BizRuntimeException.create(MessageKey.NOT_FOUND_MSG);
//if(Checks.isEmpty(programMngMapper.selectProgram(ProgramMngVO.builder()
// .pgrmFileNm(vo.getPgrmFileNm())
// .build())))
// throw BizRuntimeException.create(MessageKey.NOT_FOUND_MSG);
mapper.insertMenuInfo(vo);
cacheService.evictAllMenuCache();

@ -23,7 +23,7 @@
<field property="prntNo" depends="required, integer">
<arg0 key="메뉴상위번호" resource="false"/>
</field>
<field property="pgrmFileNm" depends="required, maxlength">
<field property="pgrmFileNm" depends="maxlength">
<arg0 key="프로그램파일명" resource="false"/>
<arg1 key="50" resource="false"/>
<var>

@ -46,11 +46,10 @@
</tr>
<tr>
<th scope="row">
<label for="pgrmFileNm" class="required">프로그램파일명</label>
<label for="pgrmFileNm">프로그램파일명</label>
</th>
<td colspan="3" nowrap="nowrap">
<form:input path="pgrmFileNm" cssStyle="width: 64%;" size="60" maxlength="60" title="프로그램파일명" readonly="true"/>
<form:errors path="pgrmFileNm"/>
<a id="btnSchPgmPopup" href="#" title="프로그램조회" style="selector-dummy:expression(this.hideFocus=false);">
<img src="<c:url value='/resources/image/fims/framework/etc/img_search.gif' />" alt='프로그램파일명 검색' width="15" height="15"/></a>
</td>
@ -147,14 +146,9 @@
const prntNo = $('#prntNo').val();
const menuNo = $('#menuNo').val();
// if(prntNo.length !== 8){
// alert('상위메뉴번호는 8자리 숫자여야 합니다');
// $('#prntNo').focus();
// return false;
// }
if (menuNo.length !== 8) {
alert('메뉴번호는 8자리 숫자여야 합니다');
if (menuNo.length !== 6) {
alert('메뉴번호는 6자리 숫자여야 합니다');
$('#menuNo').focus();
return false;
}

@ -71,6 +71,7 @@
keymapper:info => info ? info.SOME_KEY : "",
dataGetter:obj => obj.data.contents
});
$$Control._paginationInfo.pagingType = "nav";
$$Control.onDatasetChange = obj => {
let pagination = obj.data.pagination;

@ -149,7 +149,7 @@ const TuiGrid = {
this.instance = null;
// rowNum fix
if(options.paginationInfoRef.pagingType !== 'scroll') {
if(options.paginationInfoRef != null && options.paginationInfoRef.pagingType != null && options.paginationInfoRef.pagingType == 'nav') {
options.rowHeaders.filter((r, idx) => {
if (r === 'rowNum') {
options.rowHeaders[idx] = {

Loading…
Cancel
Save