123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <?xml version="1.0" encoding="utf-8"?>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : KNUH2.0
- * Job Name : ZSB001
- * Creator :
- * Make Date : 2014-11-25
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-11-25 TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- // --------------------------------------------------------------------------
- // 사용자별 배치 로그 조회 공통 팝업화면을 띄운다. 띄우고 5초 단위로 자동조회된다.
- // prgmuid : 배치 프로그램 고유 ID 이며 모듈명.프로그램ID 로 넣어즌다.
- // 예) samplemgr.SampleBatch
- // fromdd : 조회 시작 기준일을 입력한다. 입력하지 않으면 어제
- // todd : 조회 종료 기준일을 입력한다. 입력하지 않으면 오늘
- // execrid : 실행자 아이디를 입력한다. 입력하지 않으면 현재 사용자
- // usersrch : 사용자명으로 검색할 수 있는 기능을 활성화한다.(true:활성, false:비활성)
- // ----------------------------------------------------------------------------
- function zsbfOpenBatchLogPopup(prgmuid, fromdd, todd, execrid, usersrch){
- dsf_createDsRow('ds_temp_zsb', [{col:"prgmuid", type:"STRING", size:256, val:""},
- {col:"prgmid", type:"STRING", size:256, val:""},
- {col:"prgmexecno", type:"STRING", size:256, val:""},
- {col:"prgmnm", type:"STRING", size:256, val:""},
- {col:"fromdt", type:"STRING", size:256, val:""},
- {col:"enddt", type:"STRING", size:256, val:""},
- {col:"execrid", type:"STRING", size:256, val:""},
- {col:"usersrch", type:"STRING", size:256, val:""},
- {col:"autorepeat", type:"STRING", size:256, val:""},
- {col:"modulenm", type:"STRING", size:256, val:""}]);
-
- var uidsplit = prgmuid.split(".");
- if(!utlf_isNull(uidsplit[0])){
- ds_temp_zsb.setColumn(0, 'modulenm', uidsplit[0]);
- }
- else{
- ds_temp_zsb.setColumn(0, 'modulenm', '');
- }
-
- if(!utlf_isNull(uidsplit[1])){
- ds_temp_zsb.setColumn(0, 'prgmid', uidsplit[1]);
- }
- else{
- ds_temp_zsb.setColumn(0, 'prgmid', '');
- }
-
- if(!utlf_isNull(prgmuid)){
- ds_temp_zsb.setColumn(0, 'prgmuid', prgmuid);
- }
- else{
- ds_temp_zsb.setColumn(0, 'prgmuid', "");
- }
-
- if(!utlf_isNull(fromdd)){
- ds_temp_zsb.setColumn(0, 'fromdt', fromdd);
- }
- else{
- ds_temp_zsb.setColumn(0, 'fromdt', utlf_addDate(utlf_getCurrentDate(), -1));
- }
-
- if(!utlf_isNull(todd)){
- ds_temp_zsb.setColumn(0, 'enddt', todd);
- }
- else{
- ds_temp_zsb.setColumn(0, 'enddt', utlf_getCurrentDate());
- }
-
- if(!utlf_isNull(execrid)){
- ds_temp_zsb.setColumn(0, 'execrid', execrid);
- }
- else{
- ds_temp_zsb.setColumn(0, 'execrid', sysf_getUserId());
- }
-
- if(!utlf_isNull(usersrch) && usersrch != "true" ){
- ds_temp_zsb.setColumn(0, 'usersrch', usersrch);
- }
- else{
- ds_temp_zsb.setColumn(0, 'usersrch', 'false');
- }
- ds_temp_zsb.setColumn(0, 'autorepeat', 'true');
-
-
- var objArg = new Object();
- objArg.prgmuid = ds_temp_zsb.getColumn(0, 'prgmuid');
- objArg.modulenm = ds_temp_zsb.getColumn(0, 'modulenm');
- objArg.prgmid = ds_temp_zsb.getColumn(0, 'prgmid');
- objArg.fromdd = ds_temp_zsb.getColumn(0, 'fromdt');
- objArg.todd = ds_temp_zsb.getColumn(0, 'enddt');
- objArg.execrid = ds_temp_zsb.getColumn(0, 'execrid');
- objArg.usersrch = ds_temp_zsb.getColumn(0, 'usersrch');
- objArg.autorepeat = ds_temp_zsb.getColumn(0, 'autorepeat');
- objArg.arg_ds_temp_zsb = ds_temp_zsb;
-
- frmf_open('SPZSB00301', 'SPZSB00301', objArg, null, null, null, null, null, null, null, null, null, 'M');
- }
- ]]></Script>
|