fix: javascript 구조 확정 반영

main
minuk926 2 years ago
parent 733c24b319
commit 40737f3cce

@ -128,7 +128,6 @@
/************************************************************************** /**************************************************************************
* Global Variable * Global Variable
**************************************************************************/ **************************************************************************/
const ARR_INSTANCE = [null,null,null]; const ARR_INSTANCE = [null,null,null];
const ARR_TOTCNT = [0,0,0]; const ARR_TOTCNT = [0,0,0];
let CUR_TAB_SEQ = 0; let CUR_TAB_SEQ = 0;
@ -272,7 +271,22 @@
* function * function
******************************* */ ******************************* */
const fnRt0200Sel = { const fnRt0200Sel = {
add: function(){ search: () => {
const sch_date_opt = $('select[name=sch_date_opt]').val();
const sch_date_from = $('#sch_date_from').val();
const sch_date_to = $('#sch_date_to').val();
/*sch_date_from = sch_date_from.replace(/\./g, '');*/
if (sch_date_from != "" || sch_date_to != "") {
if (sch_date_opt == "" || sch_date_from == "" || sch_date_to == "") {
alert("조회기준 또는 일시를 선택하세요");
return false;
}
}
ARR_INSTANCE[CUR_TAB_SEQ].reloadData();
}
,add: function(){
cmmAjax({ cmmAjax({
url: '<c:url value="/adm/send/rqst/mng/proc.do"/>' url: '<c:url value="/adm/send/rqst/mng/proc.do"/>'
,data: $("#frmSearch").serialize() ,data: $("#frmSearch").serialize()
@ -354,19 +368,7 @@
}); });
$('#btnSearch').on('click', () => { $('#btnSearch').on('click', () => {
const sch_date_opt = $('select[name=sch_date_opt]').val(); fnRt0200Sel.search();
const sch_date_from = $('#sch_date_from').val();
const sch_date_to = $('#sch_date_to').val();
/*sch_date_from = sch_date_from.replace(/\./g, '');*/
if (sch_date_from != "" || sch_date_to != "") {
if (sch_date_opt == "" || sch_date_from == "" || sch_date_to == "") {
alert("조회기준 또는 일시를 선택하세요");
return false;
}
}
ARR_INSTANCE[CUR_TAB_SEQ].reloadData();
// ARR_INSTANCE[CUR_TAB_SEQ].refreshLayout();
}); });
$('#btnExcel').on('click', () => { $('#btnExcel').on('click', () => {

Loading…
Cancel
Save