fix: 부과, 답변 화면단 개발 진행

main
minuk926 2 years ago
parent fcd1cdca77
commit 6ebe6ce997

@ -561,7 +561,7 @@ Date Author Description
,data: params ,data: params
,success: (res) => { ,success: (res) => {
cmmImgDownload('#imgList', res.attchFiles, fnPopupBiz.pagePopup, true, '60px'); cmmImgDownload('#imgList', res.attchFiles, fnPopupBiz.pagePopup, true, '60px');
window.opener.pageNav.reloadNav($('#prev'), $('#next'), $('span#totCnt')) window.opener.ARR_NAV[window.opener.CUR_TAB_IDX].reloadNav($('#prev'), $('#next'), $('span#totCnt'))
fnPopupBiz.resetDisplay(res.ctznDTO?.cvplRceptNo); fnPopupBiz.resetDisplay(res.ctznDTO?.cvplRceptNo);
$('#violtDtlsNm').text(res.ctznDTO?.violtDtlsNm); $('#violtDtlsNm').text(res.ctznDTO?.violtDtlsNm);
@ -681,13 +681,13 @@ Date Author Description
}); });
$('#prev').on('click', () => { $('#prev').on('click', () => {
window.opener.pageNav.onClickNavBtn('prev', (gridInfo) => { window.opener.ARR_NAV[window.opener.CUR_TAB_IDX].onClickNavBtn('prev', (gridInfo) => {
fnPopupBiz.search(gridInfo.curRowData) fnPopupBiz.search(gridInfo.curRowData)
}); });
}) })
$('#next').on('click', () => { $('#next').on('click', () => {
window.opener.pageNav.onClickNavBtn('next', (gridInfo) => { window.opener.ARR_NAV[window.opener.CUR_TAB_IDX].onClickNavBtn('next', (gridInfo) => {
fnPopupBiz.search(gridInfo.curRowData); fnPopupBiz.search(gridInfo.curRowData);
}); });
}); });
@ -860,7 +860,7 @@ Date Author Description
fnPopupBiz.downloadImg(); fnPopupBiz.downloadImg();
fnPopupBiz.resetDisplay('${ctznDTO.cvplRceptNo}'); fnPopupBiz.resetDisplay('${ctznDTO.cvplRceptNo}');
window.opener.pageNav.reloadNav($('#prev'), $('#next'), $('span#totCnt')) window.opener.ARR_NAV[window.opener.CUR_TAB_IDX].reloadNav($('#prev'), $('#next'), $('span#totCnt'))
}); });
</script> </script>

@ -26,10 +26,8 @@ Date Author Description
<form id="frmSearch" name="frmSearch"> <form id="frmSearch" name="frmSearch">
<div class="search"> <div class="search">
<div class="detail_02" style="display: block;"> <div class="detail_02" style="display: block;">
<fieldset> <%-- <p class="box_title">상세검색</p>--%>
<legend>test</legend> <%-- <ul class="detailGroup_02">--%>
<p class="box_title">상세검색</p>
<ul class="detailGroup_02">
<select id="sch_date_opt" name="sch_date_opt" class="selectBox"> <select id="sch_date_opt" name="sch_date_opt" class="selectBox">
<option value="regltDe">단속일자</option> <option value="regltDe">단속일자</option>
<option value="registDt">등록일자</option> <option value="registDt">등록일자</option>
@ -46,13 +44,15 @@ Date Author Description
</button> </button>
</span> </span>
<code:select id="regltProcessSttusCode" name="regltProcessSttusCode" codeId="FIM010" defaultSelect="01" title="단속처리상태" cls="selectBoxTotal act_color" alt="단속처리상태" disabled="false"/> <code:select id="regltProcessSttusCode" name="regltProcessSttusCode" codeId="FIM010" defaultSelect="01" title="단속처리상태" cls="selectBoxTotal act_color" alt="단속처리상태" disabled="false"/>
<br/> <fieldset>
<label class="title">시스템구분</label> <legend>시스템구분</legend>
<code:radio codeId="FIM001" id="sysCode" name="sysCode" defaultSelect='${sessionScope.XitLoginSession.orgnztId}' onclick="fnBiz.search()" cls="radioBox" alt="시스템구분"/> <code:radio codeId="FIM001" id="sysCode" name="sysCode" defaultSelect='${sessionScope.XitLoginSession.orgnztId}' onclick="fnBiz.search()" cls="radioBox" alt="시스템구분"/>
<br/> </fieldset>
<label class="title">단속구분</label> <fieldset id="fldRegltSeCode">
<legend>단속구분</legend>
<code:radio type="CMM_ETC2" id="regltSeCode" name="regltSeCode" codeId="FIM002" onclick="fnBiz.search()" cls="radioBox" alt="단속구분" /> <code:radio type="CMM_ETC2" id="regltSeCode" name="regltSeCode" codeId="FIM002" onclick="fnBiz.search()" cls="radioBox" alt="단속구분" />
</fieldset>
<br/>
<!-- 데이타 확인 여부 : 차종분류코드가 있는지 여부로 판별 --> <!-- 데이타 확인 여부 : 차종분류코드가 있는지 여부로 판별 -->
<!-- <!--
<select id="cnfmYn" name="cnfmYn" title="확인여부" class="selectBox"> <select id="cnfmYn" name="cnfmYn" title="확인여부" class="selectBox">
@ -61,26 +61,25 @@ Date Author Description
<option value="N" selected>미확인</option> <option value="N" selected>미확인</option>
</select> </select>
--> -->
<br/>
<select id="sch_opt" name="sch_opt" class="selectBox"> <select id="sch_opt" name="sch_opt" class="selectBox">
<option value="vhcleNo">차량번호</option> <option value="vhcleNo">차량번호</option>
</select> </select>
<input type="text" id="sch_word" name="sch_word" value=""> <input type="text" id="sch_word" name="sch_word" value="">
<%-- <div class="popup_btn">--%>
<span class="flr"> <span class="flr">
<a href="#" class="btn blue" id="btnSearch" title="연계파일등록">검색</a> <button type="button" class="btn blue" id="btnSearch" title="검색">검색</button>
<!-- <button type="button" class="btnSearch" id="btnSearch" name="btnSearch">검색</button>-->
<a href="#" class="btn darkgray" id="btnExtrRegist" title="연계파일등록">연계파일처리</a> <a href="#" class="btn darkgray" id="btnExtrRegist" title="연계파일등록">연계파일처리</a>
</span> </span>
</ul> <%-- </div>--%>
</fieldset>
</div> </div>
</div> </div>
</form> </form>
<!-- //검색 --> <!-- //검색 -->
<div class="page_btn"> <%-- <div class="page_btn">--%>
<span class="fll"> <span class="fll">
<div class="list clearfix" id="totCnt">전체 ㅣ <span></span></div> <div class="list clearfix" id="totCnt">전체 ㅣ <span></span></div>
<span class="flr"> <span class="flr">
@ -88,7 +87,7 @@ Date Author Description
<a href="#" class="btn blue" id="btnAnswer" title="답변처리">답변처리</a> <a href="#" class="btn blue" id="btnAnswer" title="답변처리">답변처리</a>
</span> </span>
</span> </span>
</div> <%-- </div>--%>
<!-- tab 공통 --> <!-- tab 공통 -->
@ -151,7 +150,7 @@ Date Author Description
,sch_date_to: $('#sch_date_to').val() ,sch_date_to: $('#sch_date_to').val()
,[$('#sch_opt').val()]: $('#sch_word').val() ,[$('#sch_opt').val()]: $('#sch_word').val()
,sysCode: $('input:radio[name=sysCode]:checked').val() ,sysCode: $('input:radio[name=sysCode]:checked').val()
,regltSeCode: $('input:radio[name=regltSeCode]:checked').val() ,regltSeCode: CUR_TAB_IDX === 2 ? '09' : $('input:radio[name=regltSeCode]:checked').val()
,regltProcessSttusCode: CUR_TAB_IDX === 2 ? 'NON-INIT' : $('#regltProcessSttusCode').val() ,regltProcessSttusCode: CUR_TAB_IDX === 2 ? 'NON-INIT' : $('#regltProcessSttusCode').val()
//,cnfmYn: $('input[name=regltYn]:checked').val() //,cnfmYn: $('input[name=regltYn]:checked').val()
,cnfmYn: $('#cnfmYn').val() ,cnfmYn: $('#cnfmYn').val()
@ -219,25 +218,34 @@ Date Author Description
$('#btnImpose').hide(); $('#btnImpose').hide();
$('#btnAnswer').hide(); $('#btnAnswer').hide();
$('#regltProcessSttusCode').show(); $('#regltProcessSttusCode').show();
$('input:radio[name=regltSeCode]').prop('disabled', false); $('#fldRegltSeCode').show();
break; break;
case 1: case 1:
$('#btnExtrRegist').hide(); $('#btnExtrRegist').hide();
$('#btnImpose').show(); $('#btnImpose').show();
$('#btnAnswer').hide(); $('#btnAnswer').hide();
$('#regltProcessSttusCode').show(); $('#regltProcessSttusCode').show();
$('input:radio[name=regltSeCode]').prop('disabled', false); $('#fldRegltSeCode').show();
break; break;
case 2: case 2:
$('#btnExtrRegist').hide(); $('#btnExtrRegist').hide();
$('#btnImpose').hide(); $('#btnImpose').hide();
$('#btnAnswer').show(); $('#btnAnswer').show();
$('#regltProcessSttusCode').hide(); $('#regltProcessSttusCode').hide();
$('input:radio[name=regltSeCode]').val('09').prop('checked', true); $('#fldRegltSeCode').hide();
$('input:radio[name=regltSeCode]').prop('disabled', true);
break; break;
} }
} }
,setDblClickEvent: function (idx) {
ARR_GRID[idx].on('dblclick', function (props) {
curClickColName = 'vhcleNo';
const rowDatas = ARR_GRID[idx].store.data.rawData.map(d => {
return {regltSeCode: d.regltSeCode, regltId: d.regltId, regltProcessSttusCode: d.regltProcessSttusCode}
})
ARR_NAV[idx] = new PageNavigation(ARR_GRID[idx], rowDatas, props.rowKey);
fnBiz.pagePopup('total', ARR_NAV[idx].gridInfo.curRowData);
});
}
}; };
const fnTab0Biz = { const fnTab0Biz = {
@ -341,19 +349,19 @@ Date Author Description
minWidth: 100, minWidth: 100,
sortable: false, sortable: false,
align: 'center', align: 'center',
renderer: { // renderer: {
type: CustomButtonRenderer, // type: CustomButtonRenderer,
options: { // options: {
formatter: (props)=>{ // formatter: (props)=>{
return { // return {
formatter: props.grid.getRow(props.rowKey).vhcleNo // formatter: props.grid.getRow(props.rowKey).vhcleNo
,element: "text" // ,element: "text"
} // }
} // }
,eventFunction: fnBiz.onClickGrid // ,eventFunction: fnBiz.onClickGrid
,eventType: "click" // ,eventType: "dblclick"
} // }
} // }
}, },
{ {
header: '신고자', header: '신고자',
@ -479,7 +487,7 @@ Date Author Description
frozenCount: 5 frozenCount: 5
} }
,pageOptions: { ,pageOptions: {
perPage: 1000 perPage: 2
} }
}; };
@ -508,11 +516,15 @@ Date Author Description
else fnBiz.pagePopup('detail', ARR_NAV[idx].gridInfo.curRowData); else fnBiz.pagePopup('detail', ARR_NAV[idx].gridInfo.curRowData);
}) })
} }
fnBiz.setDblClickEvent(idx);
} }
const initGrid = () => { const initGrid = () => {
ARR_GRID[0] = TuiGrid.of(gridOptions, gridDatasource, (res) => gridResposeSet(res, 0)) ARR_GRID[0] = TuiGrid.of(gridOptions, gridDatasource, (res) => gridResposeSet(res, 0));
ARR_GRID[1] = TuiGrid.of({...gridOptions, el: 'grid_t1', rowHeaders: ['checkbox','rowNum']}, gridDatasource, (res) => gridResposeSet(res, 1)) const options = $.extend(gridOptions, gridOptions.columns[1].renderer = null, true);
ARR_GRID[2] = TuiGrid.of({...gridOptions, el: 'grid_t2', rowHeaders: ['checkbox','rowNum']}, gridDatasource, (res) => gridResposeSet(res, 2)) //const options = {...gridOptions}
//options.columns[1].renderer = null;
ARR_GRID[1] = TuiGrid.of({...options, el: 'grid_t1', rowHeaders: ['checkbox','rowNum']}, gridDatasource, (res) => gridResposeSet(res, 1))
ARR_GRID[2] = TuiGrid.of({...options, el: 'grid_t2', rowHeaders: ['checkbox','rowNum']}, gridDatasource, (res) => gridResposeSet(res, 2))
}; };
/************************************************************************** /**************************************************************************

@ -1385,12 +1385,12 @@ fieldset {
display: block; display: block;
margin-inline-start: 2px; margin-inline-start: 2px;
margin-inline-end: 2px; margin-inline-end: 2px;
padding-block-start: 0.35em; /*padding-block-start: 0.01em;*/
padding-inline-start: 0.75em; padding-inline-start: 0.75em;
padding-inline-end: 0.75em; padding-inline-end: 0.75em;
padding-block-end: 0.625em; padding-block-end: 0.5em;
min-inline-size: min-content; min-inline-size: min-content;
border-width: 2px; border-width: 1px;
border-style: groove; border-style: groove;
border-color: rgb(192, 192, 192); border-color: rgb(192, 192, 192);
border-image: initial; border-image: initial;
@ -1401,6 +1401,7 @@ legend {
padding: 3px 6px; padding: 3px 6px;
position: inherit; position: inherit;
font-size: 12px; font-size: 12px;
font-weight: bold;
letter-spacing: -0.6px; letter-spacing: -0.6px;
} }
/*단속현황관리- 메인폼 (시스템구분,단속구분) 디자인 추가*/ /*단속현황관리- 메인폼 (시스템구분,단속구분) 디자인 추가*/

Loading…
Cancel
Save