표지정보미확인자료 메인화면 수정

main
이범준 1 year ago
parent a454f23847
commit 06751b05cd

@ -25,6 +25,8 @@ public class CrdnQuery extends QueryRequest {
private String vhrno; private String vhrno;
private String schRductYmdFrom; private String schRductYmdFrom;
private String schRductYmdTo; private String schRductYmdTo;
private String schCrdnYmdFrom;
private String schCrdnYmdTo;
public String getGrid() { public String getGrid() {
return ifEmpty(grid, () -> null); return ifEmpty(grid, () -> null);
@ -107,4 +109,22 @@ public class CrdnQuery extends QueryRequest {
return self(); return self();
} }
public String getSchCrdnYmdFrom() {
return ifEmpty(schCrdnYmdFrom, () -> null);
}
public <T extends CrdnQuery> T setSchCrdnYmdFrom(String schCrdnYmdFrom) {
this.schCrdnYmdFrom = schCrdnYmdFrom;
return self();
}
public String getSchCrdnYmdTo() {
return ifEmpty(schCrdnYmdTo, () -> null);
}
public <T extends CrdnQuery> T setSchCrdnYmdTo(String schCrdnYmdTo) {
this.schCrdnYmdTo = schCrdnYmdTo;
return self();
}
} }

@ -45,6 +45,12 @@ public class Crdn06Controller extends ApplicationController {
mav.setViewName("fims/crdn/crdn06020-main"); mav.setViewName("fims/crdn/crdn06020-main");
mav.addObject("pageName", "crdn06020-main"); mav.addObject("pageName", "crdn06020-main");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM001", "FIM002", "FIM003", "FIM010", "FIM026");
mav.addObject("FIM001List", commonCodes.get("FIM001"));
mav.addObject("FIM002List", commonCodes.get("FIM002"));
mav.addObject("FIM010List", commonCodes.get("FIM010"));
addCodes(commonCodes, mav, "FIM002", "FIM003", "FIM010", "FIM026");
return mav; return mav;
} }
@ -57,11 +63,8 @@ public class Crdn06Controller extends ApplicationController {
mav.setViewName("fims/crdn/crdn06030-main"); mav.setViewName("fims/crdn/crdn06030-main");
mav.addObject("pageName","crdn06030-main"); mav.addObject("pageName","crdn06030-main");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM001", "FIM002", "FIM003", "FIM010", "FIM026"); Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM003", "FIM010");
mav.addObject("FIM001List", commonCodes.get("FIM001")); addCodes(commonCodes, mav, "FIM003", "FIM010");
mav.addObject("FIM002List", commonCodes.get("FIM002"));
mav.addObject("FIM010List", commonCodes.get("FIM010"));
addCodes(commonCodes, mav, "FIM002", "FIM003", "FIM010", "FIM026");
return mav; return mav;
} }

@ -240,48 +240,65 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
IF(TI.TEAMER_2 != '', TI.TEAMER_2, IF(TI.TEAMER_2 != '', TI.TEAMER_2,
IF(TI.TEAMER_3 != '', TI.TEAMER_3, IF(TI.TEAMER_3 != '', TI.TEAMER_3,
TI.TEAMER_4)))) AS APLCNT_CRDN_NM <!-- 신고/단속자 --> TI.TEAMER_4)))) AS APLCNT_CRDN_NM <!-- 신고/단속자 -->
<!-- 잔액 --> , C.FFNLG_AMT <!-- 잔액 -->
<!-- 영상매체 --> <!-- 영상매체 -->
, C.ATCH_FILE_CNT <!-- 사진건수 --> , C.ATCH_FILE_CNT <!-- 사진건수 -->
, C.CRDN_SN <!-- 단속 일련번호 --> , C.CRDN_SN <!-- 단속 일련번호 -->
<!-- 표지확인 --> <!-- 표지확인 -->
, C.CRDN_STTS_CD <!-- 단속 상태 코드 --> , C.CRDN_STTS_CD <!-- 단속 상태 코드 -->
, C.DEL_YN
, C.RGTR
, C.REG_DT
, C.MDFR
, C.MDFCN_DT
, C.DLTR
, C.DEL_DT
, C.DEL_RSN
FROM TB_CRDN C FROM TB_CRDN C
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.CRDN_ID = CC.CRDN_ID) LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.CRDN_ID = CC.CRDN_ID)
LEFT OUTER JOIN TB_TEAM_INFO TI ON (C.TEAM_ID = TI.TEAM_ID) LEFT OUTER JOIN TB_TEAM_INFO TI ON (C.TEAM_ID = TI.TEAM_ID)
WHERE C.DEL_YN = 'N' WHERE C.DEL_YN = 'N'
<if test="by != null and by != '' and term != null"> <if test="by != null and by != '' and term != null">
<choose> <choose>
<when test="by == 'advancedOption1'"> <when test="by == 'crdnInptSeCd'">
AND FN_GET_CODE_NM('FIM003', C.CRDN_INPT_SE_CD) LIKE CONCAT('%', #{term}, '%') AND FN_GET_CODE_NM('FIM003', C.CRDN_INPT_SE_CD) LIKE CONCAT('%', #{term}, '%')
</when>
<when test="by == 'crdnYmd'">
AND C.CRDN_YMD = REPLACE(#{term},'-','')
</when>
<when test="by == 'vhrno'">
AND C.VHRNO LIKE CONCAT('%', #{term}, '%')
</when>
<when test="by == 'crdnStdgNm'">
AND C.CRDN_STDG_NM LIKE CONCAT('%', #{term}, '%')
</when>
<when test="by == 'aplcntCrdnNm'">
AND IF(CC.CVLCPT_APLCNT_NM != '', CC.CVLCPT_APLCNT_NM,
IF(TI.TEAMER_1 != '', TI.TEAMER_1,
IF(TI.TEAMER_2 != '', TI.TEAMER_2,
IF(TI.TEAMER_3 != '', TI.TEAMER_3,
TI.TEAMER_4)))) LIKE CONCAT('%', #{term}, '%')
</when>
<when test="by == 'ffnlgAmt'">
AND C.FFNLG_AMT = REPLACE(#{term},',','')
</when>
<when test="by == '영상매체'">
</when>
<when test="by == 'atchFileCnt'">
AND C.ATCH_FILE_CNT = #{term}
</when>
<when test="by == 'crdnSn'">
AND C.CRDN_SN = #{term}
</when>
<when test="by == '표지확인'">
</when>
<when test="by == 'crdnSttsCd'">
AND FN_GET_CODE_NM('FIM010', C.CRDN_STTS_CD) LIKE CONCAT('%', #{term}, '%')
</when> </when>
<otherwise> <otherwise>
AND C.${by} LIKE CONCAT('%', #{term}, '%')
</otherwise> </otherwise>
</choose> </choose>
</if> </if>
<if test="crdnId != null">AND C.CRDN_ID = #{crdnId}</if> <if test="crdnId != null">AND C.CRDN_ID = #{crdnId}</if>
<if test="taskSeCd != null">AND C.TASK_SE_CD = #{taskSeCd}</if> <if test="taskSeCd != null">AND C.TASK_SE_CD = #{taskSeCd}</if>
<if test="vhrno != null">AND C.VHRNO LIKE CONCAT('%', #{vhrno}, '%')</if> <if test="schCrdnYmdFrom != null or schCrdnYmdTo != null">
<if test="schDateFrom != null or schDateTo != null"> <if test="schCrdnYmdFrom != null">AND C.CRDN_YMD <![CDATA[ >= ]]> #{schCrdnYmdFrom} </if>
<if test="schDateOpt == 'crdnYmd'"> <if test="schCrdnYmdTo != null">AND C.CRDN_YMD <![CDATA[ <= ]]> #{schCrdnYmdTo} </if>
<if test="schDateFrom != null">AND C.CRDN_YMD <![CDATA[ >= ]]> #{schDateFrom} </if>
<if test="schDateTo != null">AND C.CRDN_YMD <![CDATA[ <= ]]> #{schDateTo} </if>
</if>
<if test="schDateOpt == 'regDt'">
<if test="schDateFrom != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} </if>
<if test="schDateTo != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} </if>
</if> </if>
</if>
<include refid="utility.orderBy" /> <include refid="utility.orderBy" />
<include refid="utility.paging-suffix"/> <include refid="utility.paging-suffix"/>
</select> </select>

@ -197,7 +197,6 @@ $(document).ready(function(){
$P.searchCrdnList = () => { $P.searchCrdnList = () => {
$P.crdnControl.query = $P.getParams(); $P.crdnControl.query = $P.getParams();
$("#crdnTbody--${pageName}").html("");
$P.crdnControl.load(1); $P.crdnControl.load(1);
} }
@ -206,9 +205,6 @@ $(document).ready(function(){
} }
$P.renderCrdnList = data => { $P.renderCrdnList = data => {
if(!$P.crdnControl.appendData){
$("#crdnTbody--${pageName}").html("");
}
var crdnList = $P.crdnControl.dataset; var crdnList = $P.crdnControl.dataset;

@ -9,26 +9,22 @@
<div class="wrapper-list"> <div class="wrapper-list">
<div> <div>
<div class="container-page-btn"> <div class="container-page-btn">
<button type="button" class="btn btn-outline-dark">초기화</button> <button type="button" class="btn btn-outline-dark" id="btnReset--${pageName}" title="초기화">초기화</button>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색">검색</button> <button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색">검색</button>
</span> </span>
</div> </div>
<form id="frmSearch--${pageName}" name="frmSearch"> <form id="frmSearch--${pageName}" name="frmSearch">
<div class="container-search"> <div class="container-search">
<div class="row g-1"> <div class="row g-1">
<div class="col-6"> <div class="col-6">
<select id="schDateOpt--${pageName}" name="schDateOpt" class="form-select"> <label class="form-label fw-bold form-search-title">단속일자</label>
<option value="crdnYmd">단속일자</option>
<option value="regDt">등록일자</option>
</select>
<span class="form-search-linebox"> <span class="form-search-linebox">
<input type="text" id="schDateFrom--${pageName}" name="schDateFrom" class="form-control form-date" <input type="text" id="schCrdnYmdFrom--${pageName}" name="schCrdnYmdFrom" class="form-control form-date"
data-fmt-type="day" title="시작 날짜 선택" /> data-fmt-type="day" title="시작 날짜 선택" />
<button type="button" class="bx bx-sm bx-calendar bg-white"></button> <button type="button" class="bx bx-sm bx-calendar bg-white"></button>
~ ~
<input type="text" id="schDateTo--${pageName}" name="schDateTo" class="form-control form-date" <input type="text" id="schCrdnYmdTo--${pageName}" name="schCrdnYmdTo" class="form-control form-date"
data-fmt-type="day" title="종료 날짜 선택"> data-fmt-type="day" title="종료 날짜 선택">
<button type="button" class="bx bx-sm bx-calendar bg-white"></button> <button type="button" class="bx bx-sm bx-calendar bg-white"></button>
</span> </span>
@ -37,34 +33,10 @@
<input type="hidden" id="by--${pageName}" name="by" /> <input type="hidden" id="by--${pageName}" name="by" />
<input type="text" id="byOutput--${pageName}" class="form-control" readonly value="동적 검색" /> <input type="text" id="byOutput--${pageName}" class="form-control" readonly value="동적 검색" />
<input type="text" id="term--${pageName}" name="term" class="form-control" /> <input type="text" id="term--${pageName}" name="term" class="form-control" />
<span class="flr">
<button type="button" class="btn btn-open-detail"
data-bs-toggle="collapse" data-bs-target="#searchDetail--${pageName}">
<i class="bx bx-chevron-down"></i>
상세조회조건
</button>
</span>
</div>
</div>
</div>
<div id="searchDetail--${pageName}" class="container-search container-search-detail collapse">
<div class="row">
<div class="col-12">
<label class="form-label fw-bold form-search-title">차량번호</label>
<input type="text" id="vhrno--${pageName}" name="vhrno" class="form-control" />
<label class="form-label fw-bold form-search-title">단속구분</label>
<select id="crdnSeCd--${pageName}" name="crdnSeCd" class="form-select">
<option value="">전체</option>
<c:forEach items="${FIM002List}" var="item">
<option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
</div> </div>
</div> </div>
</div> </div>
</form> </form>
<div> <div>
<span class="container-page-btn"> <span class="container-page-btn">
<a href="#" class="btn btn-blue" id="btnUpdateToConfirmData--${pageName}" title="개별 확인 자료로 수정">개별 확인 자료로 수정</a> <a href="#" class="btn btn-blue" id="btnUpdateToConfirmData--${pageName}" title="개별 확인 자료로 수정">개별 확인 자료로 수정</a>
@ -82,17 +54,48 @@
<div class="card-datatable text-nowrap"> <div class="card-datatable text-nowrap">
<div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer"> <div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="table-responsive--${pageName}" class="table-responsive" <div id="table-responsive--${pageName}" class="table-responsive"
style="overflow-x: scroll;height:400px;overflow-y: scroll;"> style="overflow-x: scroll;height:600px;overflow-y: scroll;">
<table id="DataTables_Table_0--${pageName}" <table id="DataTables_Table_0--${pageName}"
class="datatables-ajax table table-bordered dataTable no-footer" class="datatables-ajax table table-bordered dataTable no-footer" >
aria-describedby="DataTables_Table_0_info"
>
<thead> <thead>
<tr id="crdnTheadTr--${pageName}"> <tr id="crdnTheadTr--${pageName}">
<th width="80">No.</th>
<th width="80" onclick="searchFromGridTitle('by--${pageName}','byOutput--${pageName}','CRDN_INPT_SE_CD',this.innerText);">자료출처</th>
<th width="80" onclick="searchFromGridTitle('by--${pageName}','byOutput--${pageName}','CRDN_YMD','위반일자');">위반일시</th>
<th width="80" onclick="searchFromGridTitle('by--${pageName}','byOutput--${pageName}','VHRNO',this.innerText);">차량번호</th>
<th width="80" onclick="searchFromGridTitle('by--${pageName}','byOutput--${pageName}','CRDN_STDG_NM',this.innerText);">법정동</th>
<th width="80" onclick="searchFromGridTitle('by--${pageName}','byOutput--${pageName}','APLCNT_CRDN_NM',this.innerText);">신고/단속자</th>
<th width="80" onclick="searchFromGridTitle('by--${pageName}','byOutput--${pageName}','FFNLG_AMT',this.innerText);">잔액</th>
<th width="80" onclick="searchFromGridTitle('by--${pageName}','byOutput--${pageName}','',this.innerText);">영상매체</th>
<th width="80" onclick="searchFromGridTitle('by--${pageName}','byOutput--${pageName}','ATCH_FILE_CNT',this.innerText);">사진건수</th>
<th width="80" onclick="searchFromGridTitle('by--${pageName}','byOutput--${pageName}','CRDN_SN',this.innerText);">발행번호</th>
<th width="80" onclick="searchFromGridTitle('by--${pageName}','byOutput--${pageName}','',this.innerText);">표지확인</th>
<th width="80" onclick="searchFromGridTitle('by--${pageName}','byOutput--${pageName}','CRDN_STTS_CD',this.innerText);">처리상태</th>
</tr> </tr>
</thead> </thead>
<tbody id="crdnTbody--${pageName}"> <tbody id="crdnTbody--${pageName}">
</tbody> </tbody>
<template id="crdnRow--${pageName}">
<tr data-key="{CRDN_ID}">
<td {onclick} {ondblclick} class="text-end">{ROW_NUM}</td>
<td {onclick} {ondblclick} class="text-center">{CRDN_INPT_SE_CD}</td>
<td {onclick} {ondblclick} class="text-center">{CRDN_YMD_TM}</td>
<td {onclick} {ondblclick} class="text-center">{VHRNO}</td>
<td {onclick} {ondblclick} class="text-center">{CRDN_STDG_NM}</td>
<td {onclick} {ondblclick} class="text-center">{APLCNT_CRDN_NM}</td>
<td {onclick} {ondblclick} class="text-end">{FFNLG_AMT}</td>
<td {onclick} {ondblclick} class="text-center">{매체}</td>
<td {onclick} {ondblclick} class="text-end">{ATCH_FILE_CNT}</td>
<td {onclick} {ondblclick} class="text-end">{CRDN_SN}</td>
<td {onclick} {ondblclick} class="text-start">{표지확인}</td>
<td {onclick} {ondblclick} class="text-center">{CRDN_STTS_CD}</td>
</tr>
</template>
<template id="crdnNotFound--${pageName}">
<tr>
<td valign="top" colspan="12" class="dataTables_empty text-center">단속 정보를 찾지 못했습니다.</td>
</tr>
</template>
</table> </table>
</div> </div>
</div> </div>
@ -114,10 +117,8 @@
/************************************************************************** /**************************************************************************
* Global Variable * Global Variable
**************************************************************************/ **************************************************************************/
var FIM002 = new CommonCodes(${FIM002});
var FIM003 = new CommonCodes(${FIM003}); var FIM003 = new CommonCodes(${FIM003});
var FIM010 = new CommonCodes(${FIM010}); var FIM010 = new CommonCodes(${FIM010});
var FIM026 = new CommonCodes(${FIM026});
pageObject["${pageName}"] = {}; pageObject["${pageName}"] = {};
@ -126,37 +127,25 @@ $(document).ready(function(){
var $P = pageObject["${pageName}"]; var $P = pageObject["${pageName}"];
$P.crdnControl = new DatasetControl({ $P.crdnControl = new DatasetControl({
prefix:"crdn", prefix:"crdn", prefixName:"종합", infoSize:"xl",
prefixName:"종합",
infoSize:"xl",
urls : { urls : {
load : wctx.url("/crdn/crdn06/030/DPV/list.do"), load : wctx.url("/crdn/crdn06/030/DPV/list.do"),
getInfo : wctx.url("/sprt/sprt01/020/DPV/info.do") getInfo : wctx.url("/sprt/sprt01/020/DPV/info.do"),
update: wctx.url("/crdn/crdn06/030/DPV/update.do")
}, },
formats: { formats: {
CRDN_YMD_TM : datetimeFormat,
REG_DT : datetimeFormat,
MDFCN_DT : datetimeFormat,
CVLCPT_PRCS_PRNMNT_DT : dateFormat,
CVLCPT_RCPT_YMD : dateFormat,
RCVMT_AMT : numberFormat,
CRDN_SE_CD : FIM002,
CRDN_INPT_SE_CD : FIM003, CRDN_INPT_SE_CD : FIM003,
CRDN_STTS_CD : FIM010, CRDN_YMD_TM : datetimeFormat,
CRDN_REG_SE_CD : FIM026 FFNLG_AMT : numberFormat,
CRDN_STTS_CD : FIM010
}, },
keymapper:info => info ? info.CRDN_ID : "", keymapper:info => info ? info.CRDN_ID : "", dataGetter:obj => obj.crdnList, appendData:true
dataGetter:obj => obj.crdnList,
appendData:true
}); });
$P.crdnControl.onDatasetChange = obj => { $P.crdnControl.onDatasetChange = obj => {
$P.renderCrdnList();
var prefix = obj.infoPrefix; var prefix = obj.infoPrefix;
$P.renderCrdnList(obj);
$("#crdnPaging--${pageName}").setPagingInfo({ $("#crdnPaging--${pageName}").setPagingInfo({
list: $P.crdnControl.dataset, list: $P.crdnControl.dataset,
prefix: "crdnPaging--${pageName}", prefix: "crdnPaging--${pageName}",
@ -165,14 +154,10 @@ $(document).ready(function(){
fetchSize: obj[prefix+"Fetch"], fetchSize: obj[prefix+"Fetch"],
func: "pageObject['${pageName}'].crdnControl.load({index})" func: "pageObject['${pageName}'].crdnControl.load({index})"
}); });
}; };
$P.searchCrdnList = () => { $P.searchCrdnList = () => {
$P.crdnControl.query = $P.getParams(); $P.crdnControl.query = $P.getParams();
$("#crdnTbody--${pageName}").html("");
$P.crdnControl.load(1); $P.crdnControl.load(1);
} }
@ -180,25 +165,25 @@ $(document).ready(function(){
$P.crdnControl.load($P.crdnControl.query.pageNum + 1); $P.crdnControl.load($P.crdnControl.query.pageNum + 1);
} }
$P.renderCrdnList = data => { $P.renderCrdnList = () => {
if(!$P.crdnControl.appendData){
$("#crdnTbody--${pageName}").html("");
}
var crdnList = $P.crdnControl.dataset; var crdnList = $P.crdnControl.dataset;
var empty = crdnList.empty; var empty = crdnList.empty;
var trs = empty ? [ $P.tbodyTemplate.notFound ] : crdnList.inStrings($P.tbodyTemplate.found); var trs = empty ?
[document.getElementById("crdnNotFound--${pageName}").innerHTML] :
crdnList.inStrings(
document.getElementById("crdnRow--${pageName}").innerHTML,
(str, dataItem) => str
.replace(/{onclick}/gi, 'onclick="pageObject[\'${pageName}\'].crdnControl.setCurrent(\'' + dataItem.getValue("CRDN_ID") + '\');$(\'#crdnTbody--${pageName}\').setCurrentRow(\'' + dataItem.getValue("CRDN_ID") + '\');"')
.replace(/{ondblclick}/gi, 'ondblclick="pageObject[\'${pageName}\'].crdnControl.getInfo(\'' + dataItem.getValue("CRDN_ID") + '\')"')
);
$("#crdnTbody--${pageName}").html(trs.join()); $("#crdnTbody--${pageName}").html(trs.join());
//보안모드 //보안모드
if($("#securityMode--top").is(":checked")){ fn_securityModeToggle($("#securityMode--top").is(":checked"));
fn_securityModeToggle(true);
} else {
fn_securityModeToggle(false);
}
} }
$P.getParams = () => { $P.getParams = () => {
@ -210,52 +195,15 @@ $(document).ready(function(){
return data; return data;
} }
$P.fnReset = () => {
$('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date);
/* ******************************* $('#schCrdnYmdTo--${pageName}').datepicker('setDate', new Date());
* Grid $P.crdnControl.setData([]);
******************************* */ }
$P.gridColumns = [
{ header: '자료출처', name: 'CRDN_INPT_SE_CD', width: 100, className: 'text-center', advancedOptionIndex : 1 },
{ header: '위반일시', name: 'CRDN_YMD_TM', width: 120, className: 'text-center' },
{ header: '차량번호', name: 'VHRNO', width: 80, className: 'text-center' },
{ header: '법정동', name: 'CRDN_STDG_NM', width: 80, className: 'text-center' },
{ header: '신고/단속자', name: 'APLCNT_CRDN_NM', width: 80, className: 'text-center' },
{ header: '잔액', name: 'UNKNOWN2', width: 80, className: 'text-end' },
{ header: '영상매체', name: 'UNKNOWN3', width: 80, className: 'text-center' },
{ header: '사진건수', name: 'ATCH_FILE_CNT', width: 40, className: 'text-center' },
{ header: '발행번호', name: 'CRDN_SN', width: 80, className: 'text-center' },
{ header: '표지확인', name: 'UNKNOWN5', width: 80, className: 'text-center' },
{ header: '처리상태', name: 'CRDN_STTS_CD', width: 80, className: 'text-center' },
{ header: '등록일시', name: 'REG_DT', width: 150, className: 'text-center' },
{ header: '최종처리일시', name: 'MDFCN_DT', width: 150, className: 'text-center' }
];
$P.gridOptions = {
by : 'by--${pageName}',
byOutput : 'byOutput--${pageName}',
theadTr: 'crdnTheadTr--${pageName}',
rowHeader: 'No.',
trDataKey: 'CRDN_ID',
infoPrefix: "crdn",
prefixName : "단속",
clickEvent : "pageObject['${pageName}'].crdnControl.setCurrent('{CRDN_ID}')",
dblClickEvent : "pageObject['${pageName}'].crdnControl.getInfo({})",
columns: $P.gridColumns
};
$P.tbodyTemplate = {};
//그리드 정보 초기화
$P.tbodyTemplate = initGrid($P.gridOptions);
//달력 초기화 //달력 초기화
initDatepicker("frmSearch--${pageName}"); initDatepicker("frmSearch--${pageName}");
$('#schDateFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date);
$('#schDateTo--${pageName}').datepicker('setDate', new Date());
//스크롤 이벤트 추가 //스크롤 이벤트 추가
$("#table-responsive--${pageName}").scroll(function(){ $("#table-responsive--${pageName}").scroll(function(){
@ -268,19 +216,26 @@ $(document).ready(function(){
} }
}); });
$('#btnReset--${pageName}').on('click', () => $P.fnReset());
$('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList()); $('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList());
$('#btnUpdateToConfirmData--${pageName}').on('click', () => { $('#btnUpdateToConfirmData--${pageName}').on('click', () => {
$P.crdnControl.getCurrent();
dialog.alert({
content:"현 자료를 장애차량 확인된 자료로 변경하겠습니까?",
onOK:() => {
$P.crdnControl.save({ '표지정보확인' : 'Y' });
}
});
}); });
$P.fnReset();
//보안모드 //보안모드
if($("#securityMode--top").is(":checked")){ fn_securityModeToggle($("#securityMode--top").is(":checked"));
fn_securityModeToggle(true);
} else {
fn_securityModeToggle(false);
}
}); });
</script> </script>

@ -9,7 +9,7 @@
<div class="wrapper-list"> <div class="wrapper-list">
<div> <div>
<div class="container-page-btn"> <div class="container-page-btn">
<button type="button" class="btn btn-outline-dark" id="btnReset--${pageName}">초기화</button> <button type="button" class="btn btn-outline-dark" id="btnReset--${pageName}" title="초기화">초기화</button>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색">검색</button> <button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색">검색</button>
</span> </span>
@ -171,7 +171,6 @@ $(document).ready(function(){
$P.searchCrdnList = () => { $P.searchCrdnList = () => {
$P.crdnControl.query = $P.getParams(); $P.crdnControl.query = $P.getParams();
$("#crdnTbody--${pageName}").html("");
$P.crdnControl.load(1); $P.crdnControl.load(1);
} }
@ -190,25 +189,20 @@ $(document).ready(function(){
crdnList.inStrings( crdnList.inStrings(
document.getElementById("crdnRow--${pageName}").innerHTML, document.getElementById("crdnRow--${pageName}").innerHTML,
(str, dataItem) => str (str, dataItem) => str
.replace(/{onclick}/gi, 'onclick="pageObject[\'${pageName}\'].crdnControl.setCurrent(\'' + dataItem.getValue("CRDN_ID") + '\');"') .replace(/{onclick}/gi, 'onclick="pageObject[\'${pageName}\'].crdnControl.setCurrent(\'' + dataItem.getValue("CRDN_ID") + '\');$(\'#crdnTbody--${pageName}\').setCurrentRow(\'' + dataItem.getValue("CRDN_ID") + '\');"')
.replace(/{ondblclick}/gi, 'ondblclick="pageObject[\'${pageName}\'].crdnControl.getInfo(\'' + dataItem.getValue("CRDN_ID") + '\')"') .replace(/{ondblclick}/gi, 'ondblclick="pageObject[\'${pageName}\'].crdnControl.getInfo(\'' + dataItem.getValue("CRDN_ID") + '\')"')
); );
$("#crdnTbody--${pageName}").html(trs.join()); $("#crdnTbody--${pageName}").html(trs.join());
//보안모드 //보안모드
if($("#securityMode--top").is(":checked")){ fn_securityModeToggle($("#securityMode--top").is(":checked"));
fn_securityModeToggle(true);
} else {
fn_securityModeToggle(false);
}
} }
$P.getParams = () => { $P.getParams = () => {
var formFields = new FimsFormFields("#frmSearch--${pageName}"); var formFields = new FimsFormFields("#frmSearch--${pageName}");
var data = formFields.get(); var data = formFields.get();
data.fetchSize = 30; data.fetchSize = 30;
return data; return data;
} }

Loading…
Cancel
Save