123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPZSB00301" position="absolute 0 0 954 571" titletext="배치 로그 관리" onload="SPZSB00301_onload" ontimer="SPZSB00301_ontimer">
- <Layouts>
- <Layout>
- <Div position="absolute 0 73 953 570" id="group5" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Static text="배치 로그 목록" position="absolute 0 0 133 18" id="caption48" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 67 950 73" linetype="vertical" id="line20" class="line_1" anchor="default"/>
- <Grid position="absolute 0 21 953 497" id="grd_batlog" visible="true" binddataset="ds_grd_batlog" anchor="default" oncellclick="group5_grd_batlog_oncellclick" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="300"/>
- <Column size="60"/>
- <Column size="20"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="55"/>
- <Column size="20"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </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" displaytype="combo" edittype="combo" style="align:center;" text="bind:prcsstat" combodataset="ds_init_cmb_runstat" combocodecol="value" combodatacol="label"/>
- <Cell col="2" displaytype="button" edittype="button" style="controlbackground:URL('theme://images\icon_btn.png') center middle;"/>
- <Cell col="3" text="bind:fromdt" mask="####-##-## ##:##:##"/>
- <Cell col="4" text="bind:enddt" mask="####-##-## ##:##:##"/>
- <Cell col="5" text="bind:execrid"/>
- <Cell col="6" text="bind:execnode"/>
- <Cell col="7" text="bind:prcscnt"/>
- <Cell col="8" text="bind:sucscnt"/>
- <Cell col="9" text="bind:failcnt"/>
- <Cell col="10" text="bind:cnt"/>
- <Cell col="11" displaytype="button" edittype="button" style="controlbackground:URL('theme://images\icon_btn.png') center middle;"/>
- <Cell col="12" text="bind:modulenm"/>
- <Cell col="13" text="bind:prgmid"/>
- <Cell col="14" text="bind:paramcnts"/>
- <Cell col="15" text="bind:prgmexecno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <CheckBox id="chk_autosearch" taborder="1" text="자동조회" position="absolute 879 -2 949 18" value="true" onclick="group5_chk_autosearch_onclick" anchor="default"/>
- <Shape id="line2" class="line_10" position="absolute 0 17 953 21" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_sea" taborder="6" position="absolute 0 25 953 65" class="div_SA">
- <Layouts>
- <Layout>
- <Shape id="line18" linetype="vertical" class="line_4" position="absolute 870 10 876 32" anchor="default"/>
- <Static id="caption59" text="프로그램명 :" class="search_name" position="absolute 13 12 113 29" anchor="default"/>
- <Button id="btn_select" taborder="1" text="조회" class="btn1" position="absolute 888 10 944 32" anchor="default" onclick="grp_sea_btn_select_onclick"/>
- <Static id="caption10" text="시작일자 :" class="search_name" position="absolute 393 12 483 29" anchor="default"/>
- <Calendar id="ipt_fromdt" taborder="2" class="input_search" position="absolute 479 11 619 30" anchor="default"/>
- <Combo id="cmb_batprgm" taborder="3" innerdataset="@ds_cmb_prgmitem" codecolumn="modulenm" datacolumn="prgmnm" class="combo_search" position="absolute 114 11 379 30" anchor="default"/>
- <Static id="caption1" text="종료일자 :" class="search_name" position="absolute 638 12 738 29" anchor="default"/>
- <Calendar id="ipt_todt" taborder="4" class="input_search" position="absolute 723 11 863 30" anchor="default"/>
- <Static id="caption2" text="실행자명 :" class="search_name" visible="false" position="absolute 153 12 243 29" anchor="default"/>
- <Edit id="ipt_exernm" taborder="5" visible="false" position="absolute 238 11 338 30" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="배치 로그 조회 팝업" class="tit_1" position="absolute 0 0 160 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_batlog" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prgmnm" type="STRING"/>
- <Column id="prcsstat" type="STRING"/>
- <Column id="fromdt" type="STRING"/>
- <Column id="enddt" type="STRING"/>
- <Column id="execrid" type="STRING"/>
- <Column id="execnode" type="STRING"/>
- <Column id="prcscnt" type="STRING"/>
- <Column id="sucscnt" type="STRING"/>
- <Column id="failcnt" type="STRING"/>
- <Column id="cnt" type="STRING"/>
- <Column id="modulenm" type="STRING"/>
- <Column id="prgmid" type="STRING"/>
- <Column id="paramcnts" type="STRING"/>
- <Column id="prgmexecno" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_sendLogInfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fromdt" type="STRING" size="256"/>
- <Column id="enddt" type="STRING" size="256"/>
- <Column id="prgmid" type="STRING" size="256"/>
- <Column id="prgmnm" type="STRING" size="256"/>
- <Column id="prgmuid" type="STRING" size="256"/>
- <Column id="execrid" type="STRING" size="256"/>
- <Column id="modulenm" type="STRING" size="256"/>
- <Column id="prgmexecno" type="STRING" size="256"/>
- <Column id="autorepeat" type="STRING" size="256"/>
- <Column id="usersrch" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdt"/>
- <Col id="enddt"/>
- <Col id="prgmid"/>
- <Col id="prgmnm"/>
- <Col id="prgmuid"/>
- <Col id="execrid"/>
- <Col id="modulenm"/>
- <Col id="prgmexecno"/>
- <Col id="autorepeat"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_prgmitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prgmnm" type="STRING" size="256"/>
- <Column id="prgmuid" type="STRING" size="256"/>
- <Column id="prgmfid" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_runstat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <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_timer" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="timer" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.ipt_fromdt" propid="value" datasetid="ds_sendLogInfo" columnid="fromdt"/>
- <BindItem id="item1" compid="grp_sea.ipt_todt" propid="value" datasetid="ds_sendLogInfo" columnid="enddt"/>
- <BindItem id="item2" compid="grp_sea.cmb_batprgm" propid="value" datasetid="ds_sendLogInfo" columnid="modulenm"/>
- <BindItem id="item3" compid="group5.chk_autosearch" propid="value" datasetid="ds_sendLogInfo" columnid="autorepeat"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2014-11-19
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-11-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs"; // 전체공통 스크립트
- var gTimer = 0;
- var gInterval = 5000;
- function SPZSB00301_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
- fInitialize();
- }
- function fInitialize()
- {
- var paramFlag = true;
-
- try{
- ds_sendLogInfo.copyData(arg_ds_temp_zsb);
- } catch(e){
- paramFlag = false;
- //sysf_catchTrace(e);
- }
-
- if (!paramFlag) {
- //ds_sendLogInfo.addRow();
- try {
- ds_sendLogInfo.setColumn(0, "execrid", execrid);
- } catch(e) {
- ds_sendLogInfo.setColumn(0, "execrid", sysf_getUserId());
- //sysf_catchTrace(e);
- }
- try {
- ds_sendLogInfo.setColumn(0, "prgmid", prgmid);
- } catch(e) {
- ds_sendLogInfo.setColumn(0, "prgmid", "");
- //sysf_catchTrace(e);
- }
- try {
- ds_sendLogInfo.setColumn(0, "modulenm", modulenm);
- } catch(e) {
- ds_sendLogInfo.setColumn(0, "modulenm", "");
- //sysf_catchTrace(e);
- }
- try {
- ds_sendLogInfo.setColumn(0, "fromdt", fromdd);
- } catch(e) {
- ds_sendLogInfo.setColumn(0, "fromdt", utlf_addDate(utlf_getCurrentDate(), -1));
- //sysf_catchTrace(e);
- }
- try {
- ds_sendLogInfo.setColumn(0, "enddt", todd);
- } catch(e) {
- ds_sendLogInfo.setColumn(0, "enddt", utlf_getCurrentDate());
- //sysf_catchTrace(e);
- }
- try {
- ds_sendLogInfo.setColumn(0, "autorepeat", autorepeat);
- } catch(e) {
- ds_sendLogInfo.setColumn(0, "autorepeat", "true");
- //sysf_catchTrace(e);
- }
- try {
- ds_sendLogInfo.setColumn(0, "usersrch", usersrch);
- } catch(e) {
- ds_sendLogInfo.setColumn(0, "usersrch", "false");
- //sysf_catchTrace(e);
- }
- }
-
- fGetBatchItemAsuser();
- if(!utlf_isNull(ds_sendLogInfo.getColumn(0,"prgmid"))){
- fGetBatchLogList();
- } else {
- grp_sea.cmb_batprgm.index = 0;
- }
- fSetAutoRepeat();
- }
- function cbf_TRZSB00201(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function grp_sea_btn_select_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetBatchLogList();
- fGetBatchItemAsuser();
- }
- function fGetBatchLogList()
- {
- tranf_submit({
- id: "TRZSB00302"
- , service: "batchinfoapp.BatchInfo"
- , method: "reqGetBatchLogList"
- , inds : "req=ds_sendLogInfo"
- , outds: "ds_grd_batlog=batlog"
- , async: true
- , callback : "cbf_TRZSB00302"
- });
- }
- function cbf_TRZSB00302(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function fGetBatchItemAsuser()
- {
- tranf_submit({
- id: "TRZSB00303"
- , service: "batchinfoapp.BatchInfo"
- , method: "reqGetBatchItemAsUser"
- , inds : "req=ds_sendLogInfo"
- , outds: "ds_cmb_prgmitem=prgmitem"
- , async: true
- , callback : "cbf_TRZSB00303"
- });
- }
- function cbf_TRZSB00303(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function group5_grd_batlog_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var rowPos = ds_grd_batlog.rowposition;
- var prgmexecno = ds_grd_batlog.getColumn(rowPos, "prgmexecno");
-
- if(e.col == 2){
- var oArg_logDetail = new Object();
- oArg_logDetail.prgmexecno = prgmexecno;
- // 상세로그 화면 호출
- frmf_open("SPZSB00303", "SPZSB00303", oArg_logDetail, null, null, null, null, null, null, null, null, null, "M");
- }else if(e.col == 11){
- var oArg_fileList = new Object();
- oArg_fileList.prgmexecno = prgmexecno;
- // 파일리스트 화면 호출
- frmf_open("SPZSB00302", "SPZSB00302", oArg_fileList, null, null, null, null, null, null, null, null, null, "M");
- }
- }
- function fSetAutoRepeat()
- {
- var autoRepeat = ds_sendLogInfo.getColumn(0, "autorepeat");
-
- // 타이머 설정
- if (autoRepeat == "true") { // 자동조회 on 상태
- if (gTimer == 0) {
- this.setTimer(0, gInterval); //gTimer = window.setInterval("fDispWaitTime('G')",gInterval);
- }
- } else { // 자동조회 off 상태
- if (gTimer > 0) {
- this.killTimer(0); //window.clearinterval(gTimer);
- gTimer = 0;
- }
- }
- }
- function SPZSB00301_ontimer(obj:Form, e:TimerEventInfo)
- {
- var autoRepeat = ds_sendLogInfo.getColumn(0, "autorepeat");
- if (autoRepeat == "true") { // 자동조회 on 상태
- gTimer++;
- fGetBatchLogList();
- }
- }
- function group5_chk_autosearch_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- fGetBatchLogList();
- fSetAutoRepeat();
- }
- ]]></Script>
- </Form>
- </FDL>
|