refactor : 그리드 조회 함수명 수정

main
이범준 2 years ago
parent c7d41b76a3
commit 8e29bc5556

@ -132,7 +132,7 @@ Date Author Description
<label class="form-label fw-bold form-search-title">단속구분</label>
<span class="form-search-linebox">
<code:radio type="CMM_ETC2" id="regltSeCode" name="regltSeCode" codeId="FIM002"
onclick="fnBiz.search()" cls="form-check-input" alt="단속구분" />
onclick="search$$s()" cls="form-check-input" alt="단속구분" />
</span>
</div>
</div>
@ -271,19 +271,18 @@ Date Author Description
/**
*
*/
var callbackSearch = () => fnBiz.search();
var callbackSearch = () => search$$s();
function search$$s(){
ARR_GRID[CUR_TAB_IDX].resetData([]);
ARR_GRID[CUR_TAB_IDX].reloadData();
}
/*******************************
* Biz function
*******************************/
// tab 전체
const fnBiz = {
search: () => {
ARR_GRID[CUR_TAB_IDX].resetData([]);
ARR_GRID[CUR_TAB_IDX].reloadData();
}
,tabChangReload: () => {
tabChangReload: () => {
ARR_GRID[CUR_TAB_IDX].refreshLayout()
}
,getParams: () => {
@ -439,7 +438,7 @@ Date Author Description
});
$('#btnSearch').on('click', () => fnBiz.search());
$('#btnSearch').on('click', () => search$$s());
$('#btnExtrRegist').on('click', () => {
fnBiz.pagePopup('file');
@ -697,7 +696,7 @@ Date Author Description
let fastSearchWord = document.getElementById("sch_word$fastSearch").value;
$("[name='"+fastSearchOpt +"']").val(fastSearchWord);
fnBiz.search();
search$$s();
}
/**************************************************************************
* initialize

@ -50,17 +50,18 @@
* Global Variable
**************************************************************************/
let GRID = null;
var callbackSearch = () => fnBiz.search();
var callbackSearch = () => search$$s();
var pageNav = null;
/* *******************************
* Biz function
******************************* */
const fnBiz = {
search: () => {
function search$$s(){
GRID.reloadData();
}
,pagePopup: function(flag, params){
const fnBiz = {
pagePopup: function(flag, params){
let url;
let popTitle;
let popOption;
@ -101,7 +102,7 @@
* event
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => fnBiz.search());
$('#btnSearch').on('click', () => search$$s());
$('#btnRegist').on('click', () => {
fnBiz.pagePopup('file');

@ -66,17 +66,18 @@
* Global Variable
**************************************************************************/
let GRID = null;
var callbackSearch = () => fnBiz.search();
var callbackSearch = () => search$$s();
var pageNav = null;
function search$$s(){
GRID.reloadData();
}
/* *******************************
* Biz function
******************************* */
const fnBiz = {
search: () => {
GRID.reloadData();
}
,pagePopup: function(flag, params){
pagePopup: function(flag, params){
let url;
let popTitle;
let popOption;
@ -192,7 +193,7 @@
* event
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => fnBiz.search());
$('#btnSearch').on('click', () => search$$s());
$('#btnRegist').on('click', () => {
fnBiz.pagePopup('file');

@ -50,18 +50,18 @@
**************************************************************************/
var popup = null;
let GRID = null;
var callbackSearch = () => fnBiz.search();
var callbackSearch = () => search$$s();
var unblockUI = () => $.unblockUI();
function search$$s(){
GRID.reloadData();
}
/* *******************************
* Biz function
******************************* */
const fnBiz = {
search: () => {
GRID.reloadData();
}
,pagePopup: function(flag, params){
pagePopup: function(flag, params){
let url;
let popTitle;
let popOption;
@ -117,7 +117,7 @@
* event
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => fnBiz.search());
$('#btnSearch').on('click', () => search$$s());
$('#btnRegist').on('click', () => {
fnBiz.pagePopup('file');

@ -58,24 +58,24 @@ Date Author Description
<label class="form-label fw-bold form-search-title">시스템구분</label>
<span class="form-search-linebox">
<code:radio codeId="FIM001" id="sysCode" name="sysCode" defaultSelect='${sessionScope.XitLoginSession.orgnztId}'
onclick="fnBiz.search()" cls="form-check-input" alt="시스템구분"/>
onclick="search$$s()" cls="form-check-input" alt="시스템구분"/>
</span>
</div>
<div id="fldRegltSeCode" class="col-12">
<label class="form-label fw-bold form-search-title">단속구분</label>
<span class="form-search-linebox">
<code:radio type="CMM_ETC2" id="regltSeCode" name="regltSeCode" codeId="FIM002"
onclick="fnBiz.search()" cls="form-check-input" alt="단속구분" />
onclick="search$$s()" cls="form-check-input" alt="단속구분" />
</span>
</div>
<div id="ansDiv" class="col-12">
<label class="form-label fw-bold form-search-title">답변구분</label>
<span class="form-search-linebox">
<input type="radio" id="ctznAnsY" name="ctznAnsYn" class="form-check-input"
value="Y" onclick="fnBiz.search()" checked="true" />
value="Y" onclick="search$$s()" checked="true" />
<label for="ctznAnsY">답변가능</label>
<input type="radio" id="ctznAnsN" name="ctznAnsYn" class="form-check-input"
value="N" onclick="fnBiz.search()"/>
value="N" onclick="search$$s()"/>
<label for="ctznAnsY">답변대기</label>
</span>
</div>
@ -194,22 +194,19 @@ Date Author Description
/**
*
*/
var callbackSearch = () => fnBiz.search();
var callbackSearch = () => search$$s();
function search$$s(){
ARR_GRID[CUR_TAB_IDX].resetData([]);
ARR_GRID[CUR_TAB_IDX].reloadData();
}
/*******************************
* Biz function
*******************************/
// tab 전체
const fnBiz = {
search: () => {
//TODO:: 검색버튼 클릭시 1st page 검색 이동
ARR_GRID[CUR_TAB_IDX].resetData([]);
//ARR_GRID[CUR_TAB_IDX].getPagination().movePageTo(1);
ARR_GRID[CUR_TAB_IDX].reloadData();
//ARR_GRID[CUR_TAB_IDX].refreshLayout()
}
,tabChangReload: () => {
tabChangReload: () => {
ARR_GRID[CUR_TAB_IDX].refreshLayout()
}
,getParams: () => {
@ -359,7 +356,7 @@ Date Author Description
});
$('#btnSearch').on('click', () => fnBiz.search());
$('#btnSearch').on('click', () => search$$s());
$('#btnExtrRegist').on('click', () => {
fnBiz.pagePopup('file');

@ -54,17 +54,17 @@
**************************************************************************/
let GRID = null;
var pageNav = null;
var callbackSearch = () => fnBiz.search();
var callbackSearch = () => search$$s();
function search$$s(){
GRID.reloadData();
}
/*******************************
* Biz function
*******************************/
var fnBiz = {
search: () => {
GRID.reloadData();
}
,pagePopup: function(flag, params){
pagePopup: function(flag, params){
let url;
let popTitle;
let popOption = {width: 1200, height:900};
@ -110,7 +110,7 @@
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => {
fnBiz.search();
search$$s();
});
$('#btnRegist').on('click', () => {

@ -74,17 +74,16 @@
* Global Variable
**************************************************************************/
let GRID = null;
var callbackSearch = () => fnBiz.search();
var callbackSearch = () => search$$s();
function search$$s(){
GRID.reloadData();
}
/* *******************************
* Biz function
******************************* */
const fnBiz = {
search: () => {
GRID.reloadData();
}
,pagePopup: function(flag, params){
pagePopup: function(flag, params){
let url = frwkApiUrl.POPUP_ANS_TMPLS;
let popTitle;
let popOption = {width: 950, height:600};
@ -145,7 +144,7 @@
* event
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => fnBiz.search());
$('#btnSearch').on('click', () => search$$s());
$('#btnRegist').on('click', () => {
fnBiz.pagePopup('add', {});

@ -45,21 +45,22 @@
<div id="grid"></div>
<script type="text/javaScript">
let GRID = null;
/**************************************************************************
* Global Variable
**************************************************************************/
var callbackSearch = () => fnBiz.search(); // 데이터 조회 : popup에서 사용
let GRID = null;
var callbackSearch = () => search$$s();
function search$$s(){
GRID.reloadData();
}
/* *******************************
* Biz function
******************************* */
const fnBiz = {
search: () => {
GRID.reloadData();
}
,pagePopup: function(flag, url, params){
pagePopup: function(flag, url, params){
let popTitle;
let popOption = {width: 530, height:535}
switch (flag) {
@ -103,7 +104,7 @@
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => {
fnBiz.search();
search$$s();
});
$('#btnRegist').on('click', () => {

@ -49,17 +49,17 @@
* Global Variable
**************************************************************************/
let GRID = null;
var callbackSearch = () => fnBiz.search();
var callbackSearch = () => search$$s();
function search$$s(){
GRID.reloadData();
}
/* *******************************
* Biz function
******************************* */
const fnBiz = {
search: () => {
GRID.reloadData();
}
,pagePopup: function(flag, params){
pagePopup: function(flag, params){
let url = '<c:url value="/framework/biz/mng/auth/mngAuthGrpMgtPopup.do"/>';
let popTitle;
let popOption = {width: 530, height:535}
@ -93,7 +93,7 @@
* event
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => fnBiz.search());
$('#btnSearch').on('click', () => search$$s());
$('#btnRegist').on('click', () => {
fnBiz.pagePopup('add', null);

@ -50,19 +50,18 @@
/**************************************************************************
* Global Variable
**************************************************************************/
var callbackSearch = () => {
if(GRID) fnBiz.search();
}
let GRID = null;
var callbackSearch = () => { if(GRID) search$$s(); }
function search$$s(){
GRID.reloadData();
}
/* *******************************
* Biz function
******************************* */
const fnBiz = {
search: () => {
GRID.reloadData();
}
,add: () => {
add: () => {
const arrChecks = GRID.getCheckedRows();
if(arrChecks.length==0) {
@ -83,7 +82,7 @@
,data: JSON.stringify(data)
,contentType: 'application/json; charset=utf-8'
,success: () => {
fnBiz.search();
search$$s();
}
})
}
@ -118,7 +117,7 @@
* event
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => fnBiz.search());
$('#btnSearch').on('click', () => search$$s());
$('#btnPopup').on('click', () => {
fnBiz.pagePopup('add', {});

@ -51,17 +51,17 @@
* Global Variable
**************************************************************************/
let GRID = null;
var callbackSearch = () => fnBiz.search();
var callbackSearch = () => search$$s();
function search$$s(){
GRID.reloadData();
}
/* *******************************
* Biz function
******************************* */
const fnBiz = {
search: () => {
GRID.reloadData();
}
,pagePopup: function(flag, params){
pagePopup: function(flag, params){
let url = '<c:url value="/framework/biz/mng/auth/mngAuthRoleMgtPopup.do"/>';
let popTitle;
let popOption = {width: 530, height:535}
@ -95,7 +95,7 @@
* event
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => fnBiz.search());
$('#btnSearch').on('click', () => search$$s());
$('#btnRegist').on('click', () => {
fnBiz.pagePopup('add', {});

@ -60,17 +60,17 @@
"fileAtchPosblAt": '<c:out value="${boardMaster.fileAtchPosblAt}"/>',
"atchPosblFileNumber": '<c:out value="${boardMaster.atchPosblFileNumber}"/>'
};
var callbackSearch = () => fnBiz.search();
var callbackSearch = () => search$$s();
function search$$s(){
GRID.reloadData();
}
/* *******************************
* Biz function
******************************* */
const fnBiz = {
search: () => {
GRID.reloadData();
}
,pagePopup: function(flag, params){
pagePopup: function(flag, params){
let url = frwkApiUrl.POPUP_BOARD_BASIC;
let popTitle;
let popOption = {width: 950, height:550};
@ -132,7 +132,7 @@
* event
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => fnBiz.search());
$('#btnSearch').on('click', () => search$$s());
$('#btnRegist').on('click', () => {
fnBiz.pagePopup('add', Object.assign({},boardMaster));

@ -53,17 +53,16 @@
* Global Variable
**************************************************************************/
let GRID = null;
var callbackSearch = () => fnBiz.search();
var callbackSearch = () => search$$s();
function search$$s(){
GRID.reloadData();
}
/* *******************************
* Biz function
******************************* */
const fnBiz = {
search: () => {
GRID.reloadData();
}
,pagePopup: function(flag, params){
pagePopup: function(flag, params){
let url = '<c:url value="/framework/biz/mng/bbs/mngBoardCreateMgtPopup.do"/>';
let popTitle;
let popOption = {width: 950, height:550};
@ -113,7 +112,7 @@
* event
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => fnBiz.search());
$('#btnSearch').on('click', () => search$$s());
$('#btnRegist').on('click', () => {
fnBiz.pagePopup('add', {});

@ -53,17 +53,16 @@
* Global Variable
**************************************************************************/
let GRID = null;
var callbackSearch = () => fnBiz.search();
var callbackSearch = () => search$$s();
function search$$s(){
GRID.reloadData();
}
/* *******************************
* Biz function
******************************* */
const fnBiz = {
search: () => {
GRID.reloadData();
}
,pagePopup: function(flag, params){
pagePopup: function(flag, params){
let url = '<c:url value="/framework/biz/mng/bbs/mngBoardTmplMgtPopup.do"/>';
let popTitle;
let popOption = {width: 530, height:410};
@ -113,7 +112,7 @@
* event
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => fnBiz.search());
$('#btnSearch').on('click', () => search$$s());
$('#btnRegist').on('click', () => {
fnBiz.pagePopup('add', {});

@ -51,17 +51,16 @@
* Global Variable
**************************************************************************/
let GRID = null;
var callbackSearch = () => fnBiz.search();
var callbackSearch = () => search$$s();
function search$$s(){
GRID.reloadData();
}
/* *******************************
* Biz function
******************************* */
const fnBiz = {
search: () => {
GRID.reloadData();
}
,pagePopup: function(flag, params){
pagePopup: function(flag, params){
let url = '<c:url value="/framework/biz/mng/bbs/mngBoardUseMgtPopup.do"/>';
let popTitle;
let popOption = {width: 840, height:410};
@ -111,7 +110,7 @@
* event
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => fnBiz.search());
$('#btnSearch').on('click', () => search$$s());
$('#btnRegist').on('click', () => {
fnBiz.pagePopup('add', {});

@ -53,17 +53,19 @@
/**************************************************************************
* Global Variable
**************************************************************************/
var callbackSearch = () => fnBiz.search(); // 데이터 조회 : popup에서 사용
let GRID = null;
var callbackSearch = () => search$$s(); // 데이터 조회 : popup에서 사용
function search$$s(){
GRID.reloadData();
}
/* *******************************
* Biz function
******************************* */
const fnBiz = {
search: () => {
GRID.reloadData();
}
,pagePopup: function(flag, params){
pagePopup: function(flag, params){
let url = '<c:url value="/framework/biz/mng/code/mngCodeCfnMgtPopup.do"/>';
let popTitle;
let popOption = {width: 700, height:500}
@ -97,7 +99,7 @@
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => {
fnBiz.search();
search$$s();
});
$('#btnRegist').on('click', () => {

@ -67,17 +67,18 @@
/**************************************************************************
* Global Variable
**************************************************************************/
var callbackSearch = () => fnBiz.search(); // 데이터 조회 : popup에서 사용
let GRID = null;
var callbackSearch = () => search$$s(); // 데이터 조회 : popup에서 사용
function search$$s(){
GRID.reloadData();
}
/* *******************************
* Biz function
******************************* */
const fnBiz = {
search: () => {
GRID.reloadData();
}
,pagePopup: function(flag, params){
pagePopup: function(flag, params){
let url = '<c:url value="/framework/biz/mng/code/mngCodeDtlMgtPopup.do"/>';
let popTitle;
let popOption = {width: 700, height:500}
@ -111,7 +112,7 @@
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => {
fnBiz.search();
search$$s();
});
$('#btnRegist').on('click', () => {

@ -62,17 +62,18 @@
/**************************************************************************
* Global Variable
**************************************************************************/
var callbackSearch = () => fnBiz.search(); // 데이터 조회 : popup에서 사용
let GRID = null;
var callbackSearch = () => search$$s(); // 데이터 조회 : popup에서 사용
function search$$s(){
GRID.reloadData();
}
/* *******************************
* Biz function
******************************* */
const fnBiz = {
search: () => {
GRID.reloadData();
}
,pagePopup: function(flag, params){
pagePopup: function(flag, params){
let url = '<c:url value="/framework/biz/mng/code/mngCodeGrpMgtPopup.do"/>';
let popTitle;
let popOption = {width: 700, height:500}
@ -106,7 +107,7 @@
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => {
fnBiz.search();
search$$s();
});
$('#btnRegist').on('click', () => {

@ -58,17 +58,18 @@
/**************************************************************************
* Global Variable
**************************************************************************/
var callbackSearch = () => fnBiz.search(); // 데이터 조회 : popup에서 사용
let GRID = null;
var callbackSearch = () => search$$s(); // 데이터 조회 : popup에서 사용
function search$$s(){
GRID.reloadData();
}
/* *******************************
* Biz function
******************************* */
const fnBiz = {
search: () => {
GRID.reloadData();
}
,pagePopup: function(flag, params){
pagePopup: function(flag, params){
let url = '<c:url value="/framework/biz/mng/code/mngZipCodeMgtPopup.do"/>';
let popTitle;
let popOption = {width: 950, height:550}
@ -111,7 +112,7 @@
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => {
fnBiz.search();
search$$s();
});
$('#btnRegist').on('click', () => {

@ -46,16 +46,15 @@
* Global Variable
**************************************************************************/
let GRID = null;
var callbackSearch = () => fnBiz.search();
var callbackSearch = () => search$$s();
function search$$s(){
GRID.reloadData();
}
/* *******************************
* Biz function
******************************* */
const fnBiz = {
search: () => {
GRID.reloadData();
}
,pagePopup: function(flag, params){
pagePopup: function(flag, params){
let url = '<c:url value="/framework/biz/mng/menu/mngMenuByRoleMgtPopup.do"/>';
let popTitle;
let popOption = {width: 600, height:835}
@ -86,7 +85,7 @@
* event
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => fnBiz.search());
$('#btnSearch').on('click', () => search$$s());
$('#btnRegist').on('click', () => {
fnBiz.pagePopup('add', null);

@ -57,16 +57,15 @@
* Global Variable
**************************************************************************/
let GRID = null;
var callbackSearch = () => fnBiz.search();
var callbackSearch = () => search$$s();
function search$$s(){
GRID.reloadData();
}
/* *******************************
* Biz function
******************************* */
const fnBiz = {
search: () => {
GRID.reloadData();
}
,pagePopup: function(flag, params){
pagePopup: function(flag, params){
let url = '<c:url value="/framework/biz/mng/menu/mngMenuMgtPopup.do"/>';
let popTitle;
let popOption = {width: 900, height:550}
@ -106,7 +105,7 @@
* event
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => fnBiz.search());
$('#btnSearch').on('click', () => search$$s());
$('#btnRegist').on('click', () => {
fnBiz.pagePopup('add', null);

@ -50,18 +50,18 @@
/**************************************************************************
* Global Variable
**************************************************************************/
var callbackSearch = () => fnBiz.search(); // 데이터 조회 : popup에서 사용
let GRID = null;
var callbackSearch = () => search$$s(); // 데이터 조회 : popup에서 사용
function search$$s(){
GRID.reloadData();
}
/* *******************************
* Biz function
******************************* */
const fnBiz = {
search: () => {
GRID.reloadData();
}
,pagePopup: function(flag, params){
pagePopup: function(flag, params){
let url = '<c:url value="/framework/biz/mng/menu/mngProgramMgtPopup.do"/>';
let popTitle;
let popOption = {width: 700, height:660}
@ -96,7 +96,7 @@
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => {
fnBiz.search();
search$$s();
});
$('#btnRegist').on('click', () => {

@ -57,17 +57,16 @@
* Global Variable
**************************************************************************/
let GRID = null;
var callbackSearch = () => fnBiz.search();
var callbackSearch = () => search$$s();
function search$$s(){
GRID.reloadData();
}
/* *******************************
* Biz function
******************************* */
const fnBiz = {
search: () => {
GRID.reloadData();
}
,pagePopup: function(flag, params){
pagePopup: function(flag, params){
let url;
let popTitle;
let popOption;
@ -112,7 +111,7 @@
* event
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => fnBiz.search());
$('#btnSearch').on('click', () => search$$s());
$('#btnRegist').on('click', () => {
fnBiz.pagePopup('add', {});

@ -83,17 +83,18 @@ Date Author Description
* Global Variable
**************************************************************************/
// 데이터 조회 : popup에서 호출 하기위해 var로 선언
var callbackSearch = () => fnBiz.search();
var callbackSearch = () => search$$s();
let GRID = null;
function search$$s(){
GRID.reloadData();
}
/* *******************************
* Biz function
******************************* */
const fnBiz = {
search: () => {
GRID.reloadData();
}
,pagePopup: function(flag, params){
pagePopup: function(flag, params){
let url = '<c:url value="/framework/biz/mng/code/mngCodeDtlMgtPopup.do"/>';
let popTitle;
let popOption = {width: 700, height:500}
@ -120,7 +121,7 @@ Date Author Description
**************************************************************************/
$(() => {
$('#btnSearch').on('click', () => {
fnBiz.search();
search$$s();
});
$('#btnRegist').on('click', () => {

Loading…
Cancel
Save