123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPZSB00302" position="absolute 0 0 540 495" titletext="배치 생성 파일 조회" onload="SPZSB00302_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 531 484" id="group5" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Static text="배치 생성 파일 목록" position="absolute 5 10 143 24" id="caption48" class="tit_2" anchor="default"/>
- <Grid position="absolute 0 30 531 453" id="grd_batlogfile" visible="true" binddataset="ds_grd_batlogfile" autofittype="col" cellsizingtype="both" selecttype="multirow" anchor="right">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="403"/>
- <Column size="98"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell displaytype="checkbox" edittype="checkbox"/>
- <Cell col="1" text="파일 경로" editautoselect="true"/>
- <Cell col="2" text="크기"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="1" style="align:right middle;" text="bind:filepath"/>
- <Cell col="2" text="bind:filesize"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 472 461 528 483" id="button1" class="btn4" enable="true" text="닫기" onclick="group5_button1_onclick" anchor="default"/>
- <Button position="absolute 347 461 463 483" id="button163" class="btn4" visible="true" text="파일 내려받기" onclick="group5_button163_onclick" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_batlogfile" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING"/>
- <Column id="filepath" type="STRING"/>
- <Column id="filesize" 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_sendLogInfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="modulenm" type="STRING" size="256"/>
- <Column id="prgmid" type="STRING" size="256"/>
- <Column id="execrid" type="STRING" size="256"/>
- <Column id="prgmexecno" type="STRING" size="256"/>
- <Column id="pagesize" type="STRING" size="256"/>
- <Column id="offset" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </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_pos" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pos" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <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"; // 전체공통 스크립트
-
-
- function SPZSB00302_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
- fInitialize();
- }
- function fInitialize()
- {
- grdf_initGrid(group5.grd_batlogfile);
- fGetLogInfo();
- }
- function fGetLogInfo() {
- var prgmexecno = parent.prgmexecno;
- ds_sendLogInfo.setColumn(0, "prgmexecno", prgmexecno);
- ds_sendLogInfo.setColumn(0, "pagesize", 200);
- ds_sendLogInfo.setColumn(0, "offset", 0);
-
- tranf_submit({
- id: "TRZSB00203"
- , service: "batchinfoapp.BatchInfo"
- , method: "reqGetBatchLogDetail"
- , inds : "req=ds_sendLogInfo"
- , outds: "ds_grd_batlogfile=resultfile"
- , async: false
- , callback : "cbf_TRZSB00203"
- });
- }
- function cbf_TRZSB00203(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode >= 0){
- ds_grd_batlogfile.addColumn("chk", "string");
- }else{
- return;
- }
- }
- function group5_button163_onclick(obj:Button, e:ClickEventInfo)
- {
- var cnt = 0;
- var pos = 0;
- for(var i=0;i<ds_grd_batlogfile.rowcount;i++) {
- if(ds_grd_batlogfile.getColumn(i, "chk") == 1){
- pos = i;
- cnt++;
- }
- }
-
- if(cnt == 1){
- frmf_LargeFileDownload("TRZSB00205", ds_grd_batlogfile.getColumn(pos, "filepath"), true);
- }else if(cnt > 1){
- var filepaths = new Array();
-
- for(var i = 0; i < ds_grd_batlogfile.rowcount; i++){
- if(ds_grd_batlogfile.getColumn(i, "chk") == 1){
- filepaths[i] = ds_grd_batlogfile.getColumn(i, "filepath");
- }
- }
-
- frmf_LargeFileDownload("TRZSB00205", filepaths, true);
- }
-
- }
- function cf_TRZSB00205(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function group5_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|