123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMZSB00201" position="absolute 0 0 1195 764" titletext="배치 로그 관리" onload="SMZSB00201_onload" oninit="SMZSB00201_oninit">
- <Layouts>
- <Layout>
- <Div position="absolute 0 24 1195 764" id="grp_body" scrollbars="autoboth" anchor="all">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 715 615 716" linetype="vertical" id="line15" class="line_2" anchor="default"/>
- <Shape position="absolute 0 622 615 628" linetype="vertical" id="line16" class="line_2" anchor="default"/>
- <Shape position="absolute 0 600 615 601" linetype="vertical" id="line17" class="line_2" anchor="default"/>
- <Div position="absolute 0 10 1194 45" align="align:center top;" id="grp_srch" anchor="default">
- <Layouts>
- <Layout>
- <Shape position="absolute 1103 7 1109 29" linetype="vertical" id="line18" class="line_4" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="배치 로그 상세 정보" position="absolute 0 562 152 582" id="caption22" class="tit_2" anchor="left bottom"/>
- <Static text="모듈명" position="absolute 0 603 80 626" align="align:center middle;" id="caption34" class="cell_1" anchor="left bottom"/>
- <Static text="프로그램 명" position="absolute 0 579 80 602" align="align:center middle;" id="caption42" class="cell_1" anchor="left bottom"/>
- <Static text="매개변수" position="absolute 0 677 80 715" align="align:center middle;" id="caption47" class="cell_1" anchor="left bottom"/>
- <Static text="배치 로그 목록" position="absolute 0 58 131 78" id="caption48" class="tit_2" anchor="default"/>
- <Shape position="absolute 856 218 1194 224" linetype="vertical" id="line23" class="line_2" anchor="default"/>
- <Static text="프로그램 ID" position="absolute 296 603 396 626" align="align:center middle;" id="caption35" class="cell_1" anchor="left bottom"/>
- <Grid position="absolute 0 75 1195 550" id="grd_batlog" visible="true" binddataset="ds_grd_batlog" oncelldblclick="grp_body_grd_batlog_oncelldblclick" anchor="all" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="239"/>
- <Column size="60"/>
- <Column size="127"/>
- <Column size="126"/>
- <Column size="76"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="100"/>
- <Column size="100"/>
- <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" text="실행상태"/>
- <Cell col="2" text="시작시간"/>
- <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" text="프로그램ID"/>
- <Cell col="11" text="파라메터"/>
- <Cell col="12" text="배치실행번호"/>
- </Band>
- <Band id="body">
- <Cell style="align:left;padding:0 0 0 5;" text="bind:prgmnm"/>
- <Cell col="1" displaytype="combo" edittype="combo" style="padding:0 0 0 5;" text="bind:prcsstat" combodataset="ds_init_cmb_runstat" combocodecol="value" combodatacol="label"/>
- <Cell col="2" text="bind:fromdt" mask="####-##-## ##:##:##"/>
- <Cell col="3" text="bind:enddt" mask="####-##-## ##:##:##"/>
- <Cell col="4" text="bind:execrid"/>
- <Cell col="5" style="align:left;" text="bind:execnode"/>
- <Cell col="6" text="bind:prcscnt"/>
- <Cell col="7" text="bind:sucscnt"/>
- <Cell col="8" text="bind:failcnt"/>
- <Cell col="9" style="align:left;padding:0 0 0 5;" text="bind:modulenm"/>
- <Cell col="10" style="align:left;padding:0 0 0 5;" text="bind:prgmid"/>
- <Cell col="11" text="bind:paramcnts"/>
- <Cell col="12" text="bind:prgmexecno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <TextArea position="absolute 83 678 642 715" id="tar_exeparamcnts" anchor="left bottom" style="background:URL('theme://images/bg_edit_N.png') stretch 5,5;" wordwrap="char"/>
- <Static text="시작시간" position="absolute 0 627 80 650" align="align:center middle;" id="caption1" class="cell_1" anchor="left bottom"/>
- <Static text="종료시간" position="absolute 215 627 295 650" align="align:center middle;" id="caption2" class="cell_1" anchor="left bottom"/>
- <Static text="총 처리건수" position="absolute 0 652 80 675" align="align:center middle;" id="caption3" class="cell_1" anchor="left bottom"/>
- <Static text="정상건수" position="absolute 215 652 295 675" align="align:center middle;" id="caption4" class="cell_1" anchor="left bottom"/>
- <Static text="오류건수" position="absolute 430 652 510 675" align="align:center middle;" id="caption5" class="cell_1" anchor="left bottom"/>
- <Static text="완료여부" position="absolute 430 627 510 650" align="align:center middle;" id="caption7" class="cell_1" anchor="left bottom"/>
- <Static text="로 그 메 시 지" position="absolute 648 579 690 740" align="align:center middle;" id="caption8" class="cell_1" anchor="left bottom" style="linespace:8;padding:0 0 0 0;align:center middle;"/>
- <TextArea position="absolute 692 580 1195 716" id="textarea1" anchor="left right bottom" style="background:URL('theme://images/bg_edit_N.png') stretch 5,5;"/>
- <Static text="결과 파일" position="absolute 0 717 80 740" align="align:center middle;" id="caption9" class="cell_1" anchor="left bottom"/>
- <Button position="absolute 578 719 642 739" id="btn_download" class="btn2" text="내려받기" anchor="left bottom" onclick="grp_body_btn_download_onclick"/>
- <Edit readonly="true" position="absolute 82 580 642 600" id="opt_prgmnm" anchor="left bottom" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;"/>
- <Edit readonly="true" position="absolute 82 604 293 624" id="opt_modulenm" anchor="left bottom" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;"/>
- <Edit readonly="true" position="absolute 398 604 642 624" id="opt_prgmid" anchor="left bottom" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;"/>
- <Edit readonly="true" position="absolute 82 654 212 674" id="opt_prcscnt" anchor="left bottom" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;"/>
- <Edit readonly="true" position="absolute 297 654 427 674" id="opt_sucscnt" anchor="left bottom" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;"/>
- <Edit readonly="true" position="absolute 512 654 642 674" id="opt_failcnt" anchor="left bottom" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;"/>
- <Combo position="absolute 83 719 575 739" id="cmb_resultfile" class="combo_search" innerdataset="@ds_init_cmb_resultfile" datacolumn="filepath" codecolumn="filepath" anchor="left bottom"/>
- <Button position="absolute 1131 558 1195 578" id="btn_reload" class="btn2" text="새로고침" anchor="right bottom" onclick="grp_body_btn_reload_onclick"/>
- <Static text="총 라인수 :" position="absolute 695 720 760 740" id="caption11" anchor="left bottom"/>
- <Static position="absolute 760 719 860 739" id="cap_lines" anchor="default"/>
- <Button position="absolute 1169 719 1195 739" id="btn_next" class="icon_right" text="" anchor="right bottom" onclick="grp_body_btn_next_onclick"/>
- <Button position="absolute 1035 719 1061 739" id="btn_prev" class="icon_left" text="" anchor="right bottom" onclick="grp_body_btn_prev_onclick"/>
- <Combo position="absolute 512 629 642 649" id="cmb_prcsstat" enable="false" innerdataset="ds_init_cmb_prcsstat" datacolumn="label" codecolumn="value" anchor="left bottom"/>
- <Static text="* 해당열을 더블클릭하면 "시작시간, 종료시간, 처리건수, 정상건수, 오류건수" 가 클립보드로 복사됩니다." position="absolute 120 56 978 76" id="caption13" anchor="default"/>
- <Div id="grp_sea" taborder="1" position="absolute 0 0 1195 47" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption21" text="실행자 ID :" class="search_name" position="absolute 12 15 99 32" anchor="default"/>
- <Edit id="ipt_execrid" taborder="1" class="input_search" position="absolute 92 14 207 34" anchor="default" autoselect="true"/>
- <Static id="caption59" text="프로그램명 :" class="search_name" position="absolute 222 16 306 33" anchor="default"/>
- <Combo id="cmb_batprgm" taborder="2" innerdataset="@ds_init_cmb_prgmitem" codecolumn="prgmuid" datacolumn="prgmnm" onitemchanged="grp_body_grp_srch_cmb_batprgm_onitemchanged" class="combo_search" position="absolute 313 13 613 33" anchor="default"/>
- <Static id="caption12" text="실행상태 :" class="search_name" position="absolute 629 15 704 32" anchor="default"/>
- <Combo id="cmb_runstat" taborder="3" innerdataset="ds_init_cmb_runstat" codecolumn="value" datacolumn="label" class="combo_search" position="absolute 709 13 804 33" anchor="default"/>
- <Static id="caption10" text="시작일자 :" class="search_name" position="absolute 816 14 892 31" anchor="default"/>
- <Calendar id="input1" taborder="4" oneditclick="grp_body_grp_srch_input1_oneditclick" class="input_search" position="absolute 890 12 1030 32" anchor="default" autoselect="true"/>
- <Button id="btn_select" taborder="5" text="조회" onclick="grp_body_grp_srch_btn_select_onclick" class="btn1" position="absolute 1058 12 1114 32" anchor="top right"/>
- <Button id="btn_init" taborder="6" text="초기화" class="btn3" position="absolute 1118 12 1186 32" anchor="top right" onclick="grp_body_grp_sea_btn_init_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Calendar id="opt_fromdt" taborder="2" dateformat="yyyy-MM-dd HH:mm:ss" editformat="yyyy-MM-dd HH:mm:ss" class="NoCalIcon" position="absolute 82 629 212 649" style="popupbackground:URL('theme://images/bg_calPopup.png') stretch 10,60;padding:0 0 0 0;background:URL('theme://images/bg_edit_R.png') stretch 5,5;align:left middle;" readonly="true" anchor="left bottom"/>
- <Calendar id="opt_enddt" taborder="4" dateformat="yyyy-MM-dd HH:mm:ss" editformat="yyyy-MM-dd HH:mm:ss" class="NoCalIcon" position="absolute 297 629 427 649" style="popupbackground:URL('theme://images/bg_calPopup.png') stretch 10,60;padding:0 0 0 0;background:URL('theme://images/bg_edit_R.png') stretch 5,5;align:left middle;" readonly="true" anchor="left bottom"/>
- <Combo id="cmb_page" taborder="5" position="absolute 1065 719 1165 739" innerdataset="@ds_loginfo_pages" codecolumn="value" datacolumn="label" anchor="right bottom" onitemchanged="grp_body_cmb_page_onitemchanged"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="배치 로그 관리" class="tit_1" position="absolute 0 0 169 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_cmb_batprgm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING"/>
- <Column id="value" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_runstat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING"/>
- <Column id="value" type="STRING"/>
- </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_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="modulenm" type="STRING"/>
- <Column id="prgmid" type="STRING"/>
- <Column id="paramcnts" type="STRING"/>
- <Column id="prgmexecno" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_resultfile" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="filepath" type="STRING"/>
- <Column id="filepath" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_page" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING"/>
- <Column id="value" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_prcsstat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING"/>
- <Column id="value" type="STRING"/>
- </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_loginfo" 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="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="resultfile" type="STRING" size="256"/>
- <Column id="lines" type="STRING" size="256"/>
- <Column id="pages" type="STRING" size="256"/>
- <Column id="currentpage" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="execrid" type="STRING" size="256"/>
- <Column id="prgmnm" 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="modulenm" type="STRING" size="256"/>
- <Column id="prgmid" type="STRING" size="256"/>
- <Column id="prgmuid" type="STRING" size="256"/>
- <Column id="runstat" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_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" sumtext="프로그램명"/>
- <Column id="prgmuid" type="STRING" size="256" sumtext="프로그램전체ID"/>
- <Column id="prgmfid" type="STRING" size="256" sumtext="프로그램전체ID"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_loginfo_pages" 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>
- </Dataset>
- <Dataset id="ds_filedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="filedata" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_attfile" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="filenm" type="STRING" size="256"/>
- <Column id="filepath" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_logmsg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="logmsg" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_sendPageInfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prgmexecno" type="STRING" size="256"/>
- <Column id="offset" type="STRING" size="256"/>
- <Column id="pagesize" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item3" compid="grp_body.cmb_resultfile" propid="value" datasetid="ds_loginfo" columnid="curresultfile"/>
- <BindItem id="item5" compid="grp_body.cap_lines" propid="text" datasetid="ds_loginfo" columnid="lines"/>
- <BindItem id="item6" compid="grp_body.textarea1" propid="value" datasetid="ds_loginfo" columnid="logmsg"/>
- <BindItem id="item8" compid="grp_body.tar_exeparamcnts" propid="value" datasetid="ds_loginfo" columnid="paramcnts"/>
- <BindItem id="item9" compid="grp_body.opt_failcnt" propid="value" datasetid="ds_loginfo" columnid="failcnt"/>
- <BindItem id="item10" compid="grp_body.opt_sucscnt" propid="value" datasetid="ds_loginfo" columnid="sucscnt"/>
- <BindItem id="item11" compid="grp_body.opt_prcscnt" propid="value" datasetid="ds_loginfo" columnid="prcscnt"/>
- <BindItem id="item14" compid="grp_body.opt_prgmid" propid="value" datasetid="ds_loginfo" columnid="prgmid"/>
- <BindItem id="item15" compid="grp_body.opt_modulenm" propid="value" datasetid="ds_loginfo" columnid="modulenm"/>
- <BindItem id="item16" compid="grp_body.opt_prgmnm" propid="value" datasetid="ds_loginfo" columnid="prgmnm"/>
- <BindItem id="item19" compid="grp_body.cmb_prcsstat" propid="value" datasetid="ds_loginfo" columnid="prcsstat"/>
- <BindItem id="item0" compid="grp_body.grp_sea.ipt_execrid" propid="value" datasetid="ds_send" columnid="execrid"/>
- <BindItem id="item1" compid="grp_body.grp_sea.cmb_batprgm" propid="value" datasetid="ds_send" columnid="prgmuid"/>
- <BindItem id="item17" compid="grp_body.grp_sea.cmb_runstat" propid="value" datasetid="ds_send" columnid="runstat"/>
- <BindItem id="item2" compid="grp_body.grp_sea.input1" propid="value" datasetid="ds_send" columnid="fromdt"/>
- <BindItem id="item20" compid="grp_body.opt_fromdt" propid="value" datasetid="ds_loginfo" columnid="fromdt"/>
- <BindItem id="item13" compid="grp_body.opt_enddt" propid="value" datasetid="ds_loginfo" columnid="enddt"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator : Mr.손
- * Make Date : 2014-11-19
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-11-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //==============================================================================================
- // Lib Include
- //-----------------------------------------------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"; // 전체공통 스크립트
-
- /************************************************************************************************
- ******************************** Form Event ****************************************************
- ************************************************************************************************/
- function SMZSB00201_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMZSB00201_onload(obj:Form, e:LoadEventInfo)
- {
- fInitialize();
- }
- function fInitialize()
- {
- ds_grd_batlog.clearData();
- ds_loginfo.clearData();
- ds_send.clearData();
-
- ds_send.addRow();
- ds_send.setColumn(0, "pagesize", 200);
- ds_send.setColumn(0, "offset", 0);
-
- ds_send.setColumn(0, "execrid", sysf_getUserId());
- ds_send.setColumn(0, "fromdt", utlf_getCurrentDate());
- grp_body.btn_reload.enable = false;
-
- tranf_submit({
- id: "TRZSB00201"
- , service: "batchinfoapp.BatchInfo"
- , method: "reqGetBatchProgramList"
- , inds : "req=ds_send"
- , outds: "ds_init_cmb_prgmitem=batprgm"
- , async: true
- , callback : "cbf_TRZSB00201"
- });
- }
- function cbf_TRZSB00201(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function grp_body_grp_srch_btn_select_onclick(obj:Button, e:ClickEventInfo)
- {
- var prgmuid = grp_body.grp_sea.cmb_batprgm.value;
- if (prgmuid == "" || prgmuid == undefined) {
- ds_send.setColumn(0, "modulenm", "");
- ds_send.setColumn(0, "prgmid", "");
- } else {
- var uidsplit = prgmuid.split(".");
- ds_send.setColumn(0, "modulenm", uidsplit[0]);
- ds_send.setColumn(0, "prgmid", uidsplit[1]);
- }
- tranf_submit({
- id: "TRZSB00202"
- , service: "batchinfoapp.BatchInfo"
- , method: "reqGetBatchLogList"
- , inds : "req=ds_send"
- , outds: "ds_grd_batlog=batlog"
- , async: true
- , callback : "cbf_TRZSB00202"
- });
- }
- function cbf_TRZSB00202(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function grp_btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitialize();
- }
- function grp_body_grd_batlog_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var curRow = grp_body.grd_batlog.currentrow;
- if ( curRow >= 0 ) {
- // 상제 정보 조회
- ds_send.setColumn(0,"prgmexecno", ds_grd_batlog.getColumn( curRow, "prgmexecno"));
-
- fGetLogInfo();
-
- grp_body.btn_reload.enable = true;
-
- // 선택한 열에 대한 요약정보를 클립보드에 복사
- if(ds_grd_batlog.getColumn(curRow, "enddt") != undefined){
- var strBatLog = '';
-
- strBatLog = urlf_getStrDate(ds_grd_batlog.getColumn( curRow, "fromdt"));
- strBatLog += ' ~ ' + urlf_getStrDate(ds_grd_batlog.getColumn( curRow, "enddt"));
- strBatLog += ' 처리건수 : ' + ds_grd_batlog.getColumn( curRow, "prcscnt");
- strBatLog += ' 정상건수 : ' + ds_grd_batlog.getColumn( curRow, "prcscnt");
- strBatLog += ' 오류건수 : ' + ds_grd_batlog.getColumn( curRow, "prcscnt");
-
- frmf_setParameter("BatLog", strBatLog);
- }
- }
- }
- // 배치 로그 상세 정보를 조회하여 화면 하단 항목으로 보여준다.
- function fGetLogInfo() {
-
- tranf_submit({
- id: "TRZSB00203"
- , service: "batchinfoapp.BatchInfo"
- , method: "reqGetBatchLogDetail"
- , inds : "req=ds_send"
- , outds: "ds_loginfo=batlog ds_init_cmb_resultfile=resultfile"
- , async: false
- , callback : "cbf_TRZSB00203"
- });
- }
- function cbf_TRZSB00203(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode >= 0){
- ds_loginfo.addColumn("currentpage", "string");
- ds_loginfo.addColumn("curresultfile", "string");
-
- ds_loginfo.setColumn( 0 , "curresultfile", ds_init_cmb_resultfile.getColumn(0, "filepath"));
- var lines = ds_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;
- }
-
- ds_loginfo_pages.clearData();
- for(var i=0;i<pages;i++) {
- ds_loginfo_pages.addRow();
- ds_loginfo_pages.setColumn(i, "label", (i+1)+"/"+pages);
- ds_loginfo_pages.setColumn(i, "value", i+1);
- }
- ds_loginfo.setColumn(0, "currentpage", 1);
- ds_send.setColumn(0, "offset", 0);
-
- grp_body.cmb_page.value = 1;
- }else{
- return;
- }
- }
-
- function grp_body_btn_download_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_LargeFileDownload("TRZSB00205", ds_loginfo.getColumn(0, "curresultfile"), true);
- }
- function grp_body_grp_sea_btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitialize();
- }
- function grp_body_btn_reload_onclick(obj:Button, e:ClickEventInfo)
- {
- grp_body.cmb_page.value = 1;
- fGetLogMessage();
- ds_loginfo.setColumn(0, "logmsg", ds_logmsg.getColumn(0, "logmsg"));
- }
- function grp_body_cmb_page_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fGetLogMessage();
- ds_loginfo.setColumn(0, "logmsg", ds_logmsg.getColumn(0, "logmsg"));
- }
- function grp_body_btn_next_onclick(obj:Button, e:ClickEventInfo)
- {
- var page = grp_body.cmb_page.value;
-
- if(page != ds_loginfo_pages.rowcount){
- page++;
- grp_body.cmb_page.value = page;
-
- fGetLogMessage();
-
- ds_loginfo.setColumn(0, "logmsg", ds_logmsg.getColumn(0, "logmsg"));
- }else{
- return;
- }
- }
- function grp_body_btn_prev_onclick(obj:Button, e:ClickEventInfo)
- {
- var page = grp_body.cmb_page.value;
- if(page != 1){
- page--;
- grp_body.cmb_page.value = page;
-
- fGetLogMessage();
-
- ds_loginfo.setColumn(0, "logmsg", ds_logmsg.getColumn(0, "logmsg"));
- }else{
- return;
- }
- }
- function fGetLogMessage()
- {
- var pagesize = ds_send.getColumn(0, "pagesize");
- var pos = ds_grd_batlog.rowposition;
- var page = grp_body.cmb_page.value-1;
- var offset;
-
- if(page == 0){
- offset = 0;
- }else{
- offset = (page * pagesize);
- }
-
- ds_sendPageInfo.setColumn(0, "prgmexecno", ds_grd_batlog.getColumn(pos, "prgmexecno"));
- ds_sendPageInfo.setColumn(0, "pagesize", pagesize);
- ds_sendPageInfo.setColumn(0, "offset", offset);
-
- var oParam = {};
- oParam.id = "TRZSB00204";
- oParam.service = "batchinfoapp.BatchInfo";
- oParam.method = "reqGetBatchLogMessage";
- oParam.inds = "req=ds_sendPageInfo";
- oParam.outds = "ds_logmsg=batlog";
- oParam.async = false;
- oParam.callback = "cf_TRZSB00204";
- tranf_submit(oParam);
- }
- function cf_TRZSB00204(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }]]></Script>
- </Form>
- </FDL>
|