SPZSB00302_배치로그파일리스트.xfdl 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPZSB00302" position="absolute 0 0 540 495" titletext="배치 생성 파일 조회" onload="SPZSB00302_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 531 484" id="group5" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Static text="배치 생성 파일 목록" position="absolute 5 10 143 24" id="caption48" class="tit_2" anchor="default"/>
  11. <Grid position="absolute 0 30 531 453" id="grd_batlogfile" visible="true" binddataset="ds_grd_batlogfile" autofittype="col" cellsizingtype="both" selecttype="multirow" anchor="right">
  12. <Formats>
  13. <Format id="default">
  14. <Columns>
  15. <Column size="30"/>
  16. <Column size="403"/>
  17. <Column size="98"/>
  18. </Columns>
  19. <Rows>
  20. <Row size="24" band="head"/>
  21. <Row size="24"/>
  22. </Rows>
  23. <Band id="head">
  24. <Cell displaytype="checkbox" edittype="checkbox"/>
  25. <Cell col="1" text="파일 경로" editautoselect="true"/>
  26. <Cell col="2" text="크기"/>
  27. </Band>
  28. <Band id="body">
  29. <Cell displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  30. <Cell col="1" style="align:right middle;" text="bind:filepath"/>
  31. <Cell col="2" text="bind:filesize"/>
  32. </Band>
  33. </Format>
  34. </Formats>
  35. </Grid>
  36. <Button position="absolute 472 461 528 483" id="button1" class="btn4" enable="true" text="닫기" onclick="group5_button1_onclick" anchor="default"/>
  37. <Button position="absolute 347 461 463 483" id="button163" class="btn4" visible="true" text="파일 내려받기" onclick="group5_button163_onclick" anchor="default"/>
  38. </Layout>
  39. </Layouts>
  40. </Div>
  41. </Layout>
  42. </Layouts>
  43. <Objects>
  44. <Dataset id="ds_grd_batlogfile" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  45. <ColumnInfo>
  46. <Column id="chk" type="STRING"/>
  47. <Column id="filepath" type="STRING"/>
  48. <Column id="filesize" type="STRING"/>
  49. </ColumnInfo>
  50. </Dataset>
  51. <Dataset id="ds_init_cmb_resultfile" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  52. <ColumnInfo>
  53. <Column id="filepath" type="STRING"/>
  54. <Column id="filepath" type="STRING"/>
  55. </ColumnInfo>
  56. </Dataset>
  57. <Dataset id="ds_sendLogInfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  58. <ColumnInfo>
  59. <Column id="modulenm" type="STRING" size="256"/>
  60. <Column id="prgmid" type="STRING" size="256"/>
  61. <Column id="execrid" type="STRING" size="256"/>
  62. <Column id="prgmexecno" type="STRING" size="256"/>
  63. <Column id="pagesize" type="STRING" size="256"/>
  64. <Column id="offset" type="STRING" size="256"/>
  65. </ColumnInfo>
  66. <Rows>
  67. <Row/>
  68. </Rows>
  69. </Dataset>
  70. <Dataset id="ds_filedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  71. <ColumnInfo>
  72. <Column id="filedata" type="STRING" size="256"/>
  73. </ColumnInfo>
  74. <Rows>
  75. <Row/>
  76. </Rows>
  77. </Dataset>
  78. <Dataset id="ds_attfile" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  79. <ColumnInfo>
  80. <Column id="filenm" type="STRING" size="256"/>
  81. <Column id="filepath" type="STRING" size="256"/>
  82. </ColumnInfo>
  83. <Rows>
  84. <Row/>
  85. </Rows>
  86. </Dataset>
  87. <Dataset id="ds_pos" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  88. <ColumnInfo>
  89. <Column id="pos" type="STRING" size="256"/>
  90. </ColumnInfo>
  91. </Dataset>
  92. </Objects>
  93. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  94. * System Name :
  95. * Job Name :
  96. * Creator :
  97. * Make Date : 2014-11-19
  98. * Description :
  99. *---------------------------------------------------------------------------------------
  100. * Modify Date Modifier Modify Description
  101. *---------------------------------------------------------------------------------------
  102. * 2014-11-19 Live Converter TF->XP
  103. *
  104. *---------------------------------------------------------------------------------------
  105. ****************************************************************************************/
  106. include "com_commonxp::comm_main.xjs"; // 전체공통 스크립트
  107. function SPZSB00302_onload(obj:Form, e:LoadEventInfo)
  108. {
  109. frmf_initForm(obj);
  110. fInitialize();
  111. }
  112. function fInitialize()
  113. {
  114. grdf_initGrid(group5.grd_batlogfile);
  115. fGetLogInfo();
  116. }
  117. function fGetLogInfo() {
  118. var prgmexecno = parent.prgmexecno;
  119. ds_sendLogInfo.setColumn(0, "prgmexecno", prgmexecno);
  120. ds_sendLogInfo.setColumn(0, "pagesize", 200);
  121. ds_sendLogInfo.setColumn(0, "offset", 0);
  122. tranf_submit({
  123. id: "TRZSB00203"
  124. , service: "batchinfoapp.BatchInfo"
  125. , method: "reqGetBatchLogDetail"
  126. , inds : "req=ds_sendLogInfo"
  127. , outds: "ds_grd_batlogfile=resultfile"
  128. , async: false
  129. , callback : "cbf_TRZSB00203"
  130. });
  131. }
  132. function cbf_TRZSB00203(sSvcId, nErrorCode, sErrorMsg) {
  133. if(nErrorCode >= 0){
  134. ds_grd_batlogfile.addColumn("chk", "string");
  135. }else{
  136. return;
  137. }
  138. }
  139. function group5_button163_onclick(obj:Button, e:ClickEventInfo)
  140. {
  141. var cnt = 0;
  142. var pos = 0;
  143. for(var i=0;i<ds_grd_batlogfile.rowcount;i++) {
  144. if(ds_grd_batlogfile.getColumn(i, "chk") == 1){
  145. pos = i;
  146. cnt++;
  147. }
  148. }
  149. if(cnt == 1){
  150. frmf_LargeFileDownload("TRZSB00205", ds_grd_batlogfile.getColumn(pos, "filepath"), true);
  151. }else if(cnt > 1){
  152. var filepaths = new Array();
  153. for(var i = 0; i < ds_grd_batlogfile.rowcount; i++){
  154. if(ds_grd_batlogfile.getColumn(i, "chk") == 1){
  155. filepaths[i] = ds_grd_batlogfile.getColumn(i, "filepath");
  156. }
  157. }
  158. frmf_LargeFileDownload("TRZSB00205", filepaths, true);
  159. }
  160. }
  161. function cf_TRZSB00205(sSvcId, nErrorCode, sErrorMsg) {
  162. if(nErrorCode < 0) return;
  163. }
  164. function group5_button1_onclick(obj:Button, e:ClickEventInfo)
  165. {
  166. this.close();
  167. }
  168. ]]></Script>
  169. </Form>
  170. </FDL>