123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPZSB00301" position="absolute 0 0 956 551" titletext="배치 로그 관리" onload="SPZSB00301_onload" ontimer="SPZSB00301_ontimer">
- <Layouts>
- <Layout>
- <Div id="group1" position="absolute 0 0 950 25" style="">
- <Layouts>
- <Layout>
- <Static id="caption6" class="tit_1" position="absolute 0 0 189 23" style="" text="배치 로그 조회 팝업"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="group5" scrollbars="autoboth" position="absolute 0 20 950 550" style="">
- <Layouts>
- <Layout>
- <Div id="group6" position="absolute 0 3 950 40" style="align: top;" class="div_SA">
- <Layouts>
- <Layout>
- <Shape id="line18" class="line_4" linetype="vertical" position="absolute 865 8 868 30" style="" anchor="default"/>
- <Static id="caption59" class="search_name" position="absolute 5 10 105 27" style="" text="프로그램명 :" anchor="default"/>
- <Button id="btn_select" class="btn1_letter2" position="absolute 880 8 936 30" style="" text="조회" onclick="group5_group6_btn_select_onclick" anchor="default"/>
- <Static id="caption10" class="search_name" position="absolute 385 10 475 27" style="" text="시작일자 :" anchor="default"/>
- <Calendar id="ipt_fromdt" class="input_search" position="absolute 471 10 611 29" style="" anchor="default" onkillfocus="group5_group6_ipt_fromdt_onkillfocus" dateformat="yyyy-MM-dd" value="null"/>
- <Combo innerdataset="ds_init_prgmlist_prgmitem" datacolumn="label" codecolumn="value" columncount="-1" rowcount="-1" id="cmb_batprgm" class="combo_search" position="absolute 106 9 371 28" style="" anchor="default"/>
- <Static id="caption1" class="search_name" position="absolute 630 11 730 28" style="" text="종료일자 :" anchor="default"/>
- <Calendar id="ipt_todt" class="input_search" position="absolute 715 10 855 29" style="" anchor="default" onkillfocus="group5_group6_ipt_todt_onkillfocus" dateformat="yyyy-MM-dd" value="null"/>
- <Static id="caption2" class="search_name" position="absolute 145 10 235 27" style="" text="실행자명 :" anchor="default" visible="false"/>
- <Edit id="ipt_exernm" visible="false" position="absolute 230 9 330 28" style="" anchor="default" onclick="group5_group6_ipt_exernm_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption48" class="tit_2" position="absolute 5 52 139 70" style="" text="배치 로그 목록"/>
- <Shape id="line20" class="line_1" linetype="horizontal" position="absolute 0 70 950 75" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
- <Grid id="grd_batlog" binddataset="ds_main_list_batlog" visible="true" position="absolute 0 75 950 525" style="" onlbuttonup="group5_grd_batlog_onlbuttonup">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="290"/>
- <Column size="55"/>
- <Column size="21"/>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="76"/>
- <Column size="80"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="80"/>
- <Column size="57"/>
- <Column size="16"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="23" band="head"/>
- <Row size="23"/>
- </Rows>
- <Band id="head">
- <Cell text="프로그램명"/>
- <Cell col="1" colspan="2" text="실행상태" taborder="undefined"/>
- <Cell col="3" text="시작시간"/>
- <Cell col="4" text="종료시간"/>
- <Cell col="5" text="실행자"/>
- <Cell col="6" text="노드명"/>
- <Cell col="7" text="처리건수"/>
- <Cell col="8" text="정상건수"/>
- <Cell col="9" text="오류건수"/>
- <Cell col="10" colspan="2" text="생성파일수" taborder="undefined"/>
- <Cell col="12" text="모듈명"/>
- <Cell col="13" text="프로그램ID"/>
- <Cell col="14" text="파라메터"/>
- <Cell col="15" text="배치실행번호"/>
- </Band>
- <Band id="body">
- <Cell text="bind:prgmnm"/>
- <Cell col="1" text="bind:prcsstat"/>
- <Cell col="2" style="align:center;" text="bind:fromdt" expandshow="show"/>
- <Cell col="3" text="bind:enddt"/>
- <Cell col="4" text="bind:execrid"/>
- <Cell col="5" text="bind:execnode"/>
- <Cell col="6" text="bind:prcscnt"/>
- <Cell col="7" text="bind:sucscnt"/>
- <Cell col="8" text="bind:failcnt"/>
- <Cell col="9" text="bind:cnt"/>
- <Cell col="10" text="bind:modulenm"/>
- <Cell col="11" text="bind:prgmid" expandshow="show"/>
- <Cell col="12" text="bind:paramcnts"/>
- <Cell col="13" text="bind:prgmexecno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <CheckBox datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="checkbox1" position="absolute 875 48 946 63" style="" titletext="CheckBox List" text="자동조회" scrollbars="none" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="100" truevalue="Y" falsevalue="N" value="Y" onclick="group5_checkbox1_onclick">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">자동조회</Col>
- </Row>
- </Rows>
- </Dataset>
- </CheckBox>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_statuslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="userinfo" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_list_batlog" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="prgmnm" type="STRING" size="256"/>
- <Column id="prcsstat" type="STRING" size="256"/>
- <Column id="fromdt" type="STRING" size="256"/>
- <Column id="enddt" type="STRING" size="256"/>
- <Column id="execrid" type="STRING" size="256"/>
- <Column id="execnode" type="STRING" size="256"/>
- <Column id="prcscnt" type="STRING" size="256"/>
- <Column id="sucscnt" type="STRING" size="256"/>
- <Column id="failcnt" type="STRING" size="256"/>
- <Column id="modulenm" type="STRING" size="256"/>
- <Column id="prgmid" type="STRING" size="256"/>
- <Column id="paramcnts" type="STRING" size="256"/>
- <Column id="prgmexecno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="prgmnm"/>
- <Col id="prcsstat"/>
- <Col id="fromdt"/>
- <Col id="enddt"/>
- <Col id="execrid"/>
- <Col id="execnode"/>
- <Col id="prcscnt"/>
- <Col id="sucscnt"/>
- <Col id="failcnt"/>
- <Col id="modulenm"/>
- <Col id="prgmid"/>
- <Col id="paramcnts"/>
- <Col id="prgmexecno"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_statuslist_status" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">실행중</Col>
- <Col id="value">S</Col>
- </Row>
- <Row>
- <Col id="label">정상종료</Col>
- <Col id="value">E</Col>
- </Row>
- <Row>
- <Col id="label">에러발생</Col>
- <Col id="value">F</Col>
- </Row>
- <Row>
- <Col id="label">에러발생</Col>
- <Col id="value">W</Col>
- </Row>
- <Row>
- <Col id="label">에러발생</Col>
- <Col id="value">X</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_loginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="prgmnm" type="STRING" size="256"/>
- <Column id="modulenm" type="STRING" size="256"/>
- <Column id="prgmid" type="STRING" size="256"/>
- <Column id="fromdt" type="STRING" size="256"/>
- <Column id="enddt" type="STRING" size="256"/>
- <Column id="prcsstat" type="STRING" size="256"/>
- <Column id="prcscnt" type="STRING" size="256"/>
- <Column id="sucscnt" type="STRING" size="256"/>
- <Column id="failcnt" type="STRING" size="256"/>
- <Column id="paramcnts" type="STRING" size="256"/>
- <Column id="prgmexecno" type="STRING" size="256"/>
- <Column id="curresultfile" type="STRING" size="256"/>
- <Column id="logmsg" type="STRING" size="256"/>
- <Column id="lines" type="STRING" size="256"/>
- <Column id="currentpage" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="prgmnm"/>
- <Col id="modulenm"/>
- <Col id="prgmid"/>
- <Col id="fromdt"/>
- <Col id="enddt"/>
- <Col id="prcsstat"/>
- <Col id="prcscnt"/>
- <Col id="sucscnt"/>
- <Col id="failcnt"/>
- <Col id="paramcnts"/>
- <Col id="prgmexecno"/>
- <Col id="curresultfile"/>
- <Col id="logmsg"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="bizabbr" type="STRING" size="256"/>
- <Column id="selectcond" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="bizabbr"/>
- <Col id="selectcond"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_loginfo_pages" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label"/>
- <Col id="value"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_prgmlist_prgmitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label"/>
- <Col id="value"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_prgmlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_hidden_list_batprgm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="rowno" type="STRING" size="256"/>
- <Column id="bizabbr" type="STRING" size="256"/>
- <Column id="modulenm" type="STRING" size="256"/>
- <Column id="prgmid" type="STRING" size="256"/>
- <Column id="prgmnm" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- <Column id="fstrgstrid" type="STRING" size="256"/>
- <Column id="fstrgstdt" type="STRING" size="256"/>
- <Column id="lastupdtrid" type="STRING" size="256"/>
- <Column id="lastupdtdt" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="rowno"/>
- <Col id="bizabbr"/>
- <Col id="modulenm"/>
- <Col id="prgmid"/>
- <Col id="prgmnm"/>
- <Col id="useyn"/>
- <Col id="fstrgstrid"/>
- <Col id="fstrgstdt"/>
- <Col id="lastupdtrid"/>
- <Col id="lastupdtdt"/>
- <Col id="status"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_send_oncolumnchanged">
- <ColumnInfo>
- <Column id="execrid" type="STRING" size="256"/>
- <Column id="fromdt" type="STRING" size="256"/>
- <Column id="offset" type="STRING" size="256"/>
- <Column id="pagesize" type="STRING" size="256"/>
- <Column id="prgmexecno" type="STRING" size="256"/>
- <Column id="enddt" type="STRING" size="256"/>
- <Column id="prgmuid" type="STRING" size="256"/>
- <Column id="modulenm" type="STRING" size="256"/>
- <Column id="prgmid" type="STRING" size="256"/>
- <Column id="autorepeat" type="STRING" size="256"/>
- <Column id="execrnm" type="STRING" size="256"/>
- <Column id="usersrch" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="execrid"/>
- <Col id="fromdt"/>
- <Col id="offset"/>
- <Col id="pagesize"/>
- <Col id="prgmexecno"/>
- <Col id="enddt"/>
- <Col id="prgmuid"/>
- <Col id="modulenm"/>
- <Col id="prgmid"/>
- <Col id="autorepeat"/>
- <Col id="execrnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_loginfo_resultfile" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="filepath" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="filepath"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="resultref" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_logdetail" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group5.group6.ipt_fromdt" propid="value" datasetid="ds_send" columnid="fromdt"/>
- <BindItem id="item1" compid="group5.group6.cmb_batprgm" propid="value" datasetid="ds_send" columnid="prgmuid"/>
- <BindItem id="item2" compid="group5.group6.ipt_todt" propid="value" datasetid="ds_send" columnid="enddt"/>
- <BindItem id="item3" compid="group5.group6.ipt_exernm" propid="value" datasetid="ds_send" columnid="execrnm"/>
- <BindItem id="item4" compid="group5.checkbox1" propid="value" datasetid="ds_send" columnid="autorepeat"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs"
- var gRepeatTimerID = ""; // 자동 조회용 타이머
- function SPZSB00301_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- grdf_initGrid(group5.grd_batlog);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
-
- ds_main_list_batlog.clearData();
-
- ds_send.setColumn(0, "prgmuid", arg_ds_temp_zsb.getColumn(0, "prgmuid"));
- ds_send.setColumn(0, "fromdt", arg_ds_temp_zsb.getColumn(0, "fromdd"));
- ds_send.setColumn(0, "enddt", arg_ds_temp_zsb.getColumn(0, "todd"));
- ds_send.setColumn(0, "execrid", arg_ds_temp_zsb.getColumn(0, "execrid"));
- ds_send.setColumn(0, "usersrch", arg_ds_temp_zsb.getColumn(0, "usersrch"));
- ds_send.setColumn(0, "autorepeat", arg_ds_temp_zsb.getColumn(0, "autorepeat"));
-
- fInitialize();
- //model.refresh();
- }
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- var execrid = ds_send.getColumn(0, "execrid");
- if (execrid == "") {
- ds_send.setColumn( 0, "execrid",sysf_getUserId());
- }
- var prgmuid = ds_send.getColumn(0, "prgmuid");
- if (prgmuid == "") {
- group5.group6.cmb_batprgm.index = 0;
- }
- var fromdt = ds_send.getColumn(0, "fromdt");
- if (fromdt == "") {
- ds_send.setColumn( 0, "fromdt",utlf_getCurrentDate()-1);
- }
- var enddt = ds_send.getColumn(0, "enddt");
- if (enddt == "") {
- ds_send.setColumn( 0, "enddt",utlf_getCurrentDate());
- }
- ds_main_loginfo.clearData(); ds_main_loginfo.addRow();
- ds_main_logdetail.clearData();
- // 실행자를 선택할 수 있는 컨트롤을 보여주거나, 로그인한 사용자를 기준으로 자동으로 리스트 조회를 시작한다.
- var usersrch = ds_send.getColumn(0, "usersrch");
- if (usersrch == "true") {
- fSetUserSelectVisible();
- } else {
- fGetLogList(); // 리스트 조회
- }
- // 자동조회 설정
- fSetAutoRepeat();
- }
- // 사용자가 실행한 적이 있는 배치 목록 조회
- function fGetBatchList() {
- ds_send.setColumn( 0, "prgmuid","");
- //submit("TRZSB00206");
- var oParam = {};
- oParam.id = "TRZSB00206";
- oParam.service = "batchinfoapp.BatchInfo";
- oParam.method = "reqGetBatchProgramListInLog";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_prgmlist_prgmitem=batprgm";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function fSetUserSelectVisible() {
- // 실행자명
- group5.group6.caption2.position.left = 5;
- group5.group6.caption2.position.top = 8;
- group5.group6.caption2.visible = true;
- group5.group6.ipt_exernm.position.left = 96;
- group5.group6.ipt_exernm.position.top = 8;
- group5.group6.ipt_exernm.position.width = 70;
- group5.group6.ipt_exernm.visible = true;
- // 프로그램명
- group5.group6.caption59.position.left = 176;
- group5.group6.caption59.position.top = 8;
- group5.group6.cmb_batprgm.position.left = 280;
- group5.group6.cmb_batprgm.position.width = 200;
- // 시작일자
- group5.group6.caption10.position.left = 492;
- group5.group6.ipt_fromdt.position.left = 582;
- group5.group6.ipt_fromdt.position.width = 85;
- // 종료일자
- group5.group6.caption1.position.left = 676;
- group5.group6.ipt_todt.position.left = 768;
- group5.group6.ipt_todt.position.width = 85;
- }
- function fSetAutoRepeat() {
- var autoRepeat = ds_send.getColumn(0, "autorepeat");
- if (autoRepeat == "1" || autoRepeat == "Y") { // 자동조회 on 상태
- if (gRepeatTimerID == "") {
- gRepeatTimerID = "0";
- //gRepeatTimerID = window.setInterval("fGetLogList()",5000);
- this.setTimer(gRepeatTimerID,5000);
- }
- } else { // 자동조회 off 상태
- if (gRepeatTimerID != "") {
- //window.clearInterval(gRepeatTimerID);
- this.killTimer(gRepeatTimerID);
- gRepeatTimerID = "";
- }
- }
- }
- function fGetLogList() {
- var prgmuid = ds_send.getColumn(0, "prgmuid");
- var uidsplit = String(prgmuid).split(".");
- dsf_makeValue( ds_send, "modulenm", "string", uidsplit[0]);
- dsf_makeValue( ds_send, "prgmid", "string", uidsplit[1]);
-
- //submit("TRZSB00302");
- var oParam = {};
- oParam.id = "TRZSB00302";
- oParam.service = "batchinfoapp.BatchInfo";
- oParam.method = "reqGetBatchLogList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_list_batlog=batlog";
- oParam.async = false;
- tranf_submit(oParam);
- }
- // 배치 로그 상세 정보를 조회하여 화면 하단 항목으로 보여준다.
- function fGetLogInfo() {
- // if (submit("TRZSB00203")) {
- var oParam = {};
- oParam.id = "TRZSB00203";
- oParam.service = "batchinfoapp.BatchInfo";
- oParam.method = "reqGetBatchLogDetail";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_loginfo_resultfile=resultfile ds_main_list_batlog=batlog";
- oParam.async = false;
- oParam.callback = "cf_TRZSB00203";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRZSB00203") > -1) {
- dsf_makeValue( ds_main_loginfo, "curresultfile", "string", ds_main_loginfo_resultfile.getColumn(0, "filepath"));
- var lines = ds_main_loginfo.getColumn(0, "lines");
- var pagesize = ds_send.getColumn(0, "pagesize");
- // page combo 설정
- var pages = Math.floor((lines_pagesize)+1);
- if (lines%pagesize == 0) {
- pages = pages - 1;
- }
- for(var i=0;i<pages;i++) {
- //model.makeNode("ds_main_loginfo_pages["+(i+1)+"]");
- var _insertRow = ds_main_loginfo_pages.addRow();
-
- ds_main_loginfo_pages.setColumn( _insertRow, "label", pages);
- ds_main_loginfo_pages.setColumn( _insertRow, "value", i+1);
- }
- dsf_makeValue( ds_main_loginfo, "currentpage", "string", 1);
- dsf_makeValue( ds_send, "offset", "string", 0);
- }
- }
- function cf_TRZSB00203(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
-
-
- // 배치 로그 메시지의 페이지 단위 조회를 수행한다.
- function fGetLogMessage() {
- var pagesize = ds_send.getColumn(0, "pagesize");
- var curpage = ds_main_loginfo.getColumn(0, "currentpage");
- dsf_makeValue( ds_send, "offset", "string", (curpage-1)*pagesize);
- //submit("TRZSB00204");
- var oParam = {};
- oParam.id = "TRZSB00204";
- oParam.service = "batchinfoapp.BatchInfo";
- oParam.method = "reqGetBatchLogMessage";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_list_batlog=batlog";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function fOpenResultFilePopup() {
- var curRow = group5.grd_batlog.row;
- if ( curRow > 0 ) {
- // 실행결과 파일 다운로드
- var objArg = new Object();
- objArg.prgmexecno = ds_main_list_batlog.getColumn(curRow, "prgmexecno");
- frmf_modal("SPZSB00302", "SPZSB00302", objArg, "", "", "400", "400", "", "", "", "", "", "M");
- //model.refresh();
- }
- }
- function fOpenLogDetailPopup() {
- var curRow = group5.grd_batlog.row;
- if (curRow > 0) {
- // 로그 상세 조회 팝업
- var objArg = new Object();
- objArg.prgmexecno = ds_main_list_batlog.getColumn(curRow, "prgmexecno");
-
- frmf_modal("SPZSB00303", "SPZSB00303", objArg, "", "", "400", "400", "", "", "", "", "", "M");
- }
- }
- function group5_group6_btn_select_onclick(obj:Button, e:ClickEventInfo) {
- fGetLogList();
- }
- function group5_group6_ipt_fromdt_onkillfocus(obj:Calendar, e:KillFocusEventInfo) {
- fGetBatchList();
- }
- function group5_group6_ipt_todt_onkillfocus(obj:Calendar, e:KillFocusEventInfo) {
- fGetBatchList();
- }
- function group5_group6_ipt_exernm_onclick(obj:Edit, e:ClickEventInfo) {
- frmf_setParameter("search_condition", "userid");
- frmf_setParameter("search_term", sysf_getUserId());
- frmf_setParameter("resultref", "ds_hidden_userinfo");
- frmf_modal("SPZSU10100", "SPZSU10100", "", "", "", "", "", "", "", "", "", "", "M");
- var userinfo = ds_hidden.getColumn(0, "userinfo");
- var userinfos = userinfo.split("|");
- ds_send.setColumn( 0, "execrid", userinfos[2]);
- ds_send.setColumn( 0, "execrnm", userinfos[3]);
- //model.refresh();
- }
- function group5_grd_batlog_onlbuttonup(obj:Grid, e:MouseEventInfo) {
- var cur_col = group5.grd_batlog.col;
- if (cur_col == 3) { // 로그 조회
- fOpenLogDetailPopup();
- } else if (cur_col == 12) { // 결과 파일 조회
- fOpenResultFilePopup();
- }
- }
- function SPZSB00301_ontimer(obj:Form, e:TimerEventInfo)
- {
- fGetLogList();
- }
- function group5_checkbox1_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
-
-
- }
- function group5_checkbox1_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- fSetAutoRepeat();
- }
- function ds_send_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
-
- }
- ]]></Script>
- </Form>
- </FDL>
|