SMZSB00201_배치로그관리.xfdl 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMZSB00201" position="absolute 0 0 1195 764" titletext="배치 로그 관리" onload="SMZSB00201_onload" oninit="SMZSB00201_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 24 1195 764" id="grp_body" scrollbars="autoboth" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Shape position="absolute 0 715 615 716" linetype="vertical" id="line15" class="line_2" anchor="default"/>
  11. <Shape position="absolute 0 622 615 628" linetype="vertical" id="line16" class="line_2" anchor="default"/>
  12. <Shape position="absolute 0 600 615 601" linetype="vertical" id="line17" class="line_2" anchor="default"/>
  13. <Div position="absolute 0 10 1194 45" align="align:center top;" id="grp_srch" anchor="default">
  14. <Layouts>
  15. <Layout>
  16. <Shape position="absolute 1103 7 1109 29" linetype="vertical" id="line18" class="line_4" anchor="default"/>
  17. </Layout>
  18. </Layouts>
  19. </Div>
  20. <Static text="배치 로그 상세 정보" position="absolute 0 562 152 582" id="caption22" class="tit_2" anchor="left bottom"/>
  21. <Static text="모듈명" position="absolute 0 603 80 626" align="align:center middle;" id="caption34" class="cell_1" anchor="left bottom"/>
  22. <Static text="프로그램 명" position="absolute 0 579 80 602" align="align:center middle;" id="caption42" class="cell_1" anchor="left bottom"/>
  23. <Static text="매개변수" position="absolute 0 677 80 715" align="align:center middle;" id="caption47" class="cell_1" anchor="left bottom"/>
  24. <Static text="배치 로그 목록" position="absolute 0 58 131 78" id="caption48" class="tit_2" anchor="default"/>
  25. <Shape position="absolute 856 218 1194 224" linetype="vertical" id="line23" class="line_2" anchor="default"/>
  26. <Static text="프로그램 ID" position="absolute 296 603 396 626" align="align:center middle;" id="caption35" class="cell_1" anchor="left bottom"/>
  27. <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">
  28. <Formats>
  29. <Format id="default">
  30. <Columns>
  31. <Column size="239"/>
  32. <Column size="60"/>
  33. <Column size="127"/>
  34. <Column size="126"/>
  35. <Column size="76"/>
  36. <Column size="80"/>
  37. <Column size="80"/>
  38. <Column size="80"/>
  39. <Column size="80"/>
  40. <Column size="100"/>
  41. <Column size="100"/>
  42. <Column size="0"/>
  43. <Column size="0"/>
  44. </Columns>
  45. <Rows>
  46. <Row size="24" band="head"/>
  47. <Row size="24"/>
  48. </Rows>
  49. <Band id="head">
  50. <Cell text="프로그램명"/>
  51. <Cell col="1" text="실행상태"/>
  52. <Cell col="2" text="시작시간"/>
  53. <Cell col="3" text="종료시간"/>
  54. <Cell col="4" text="실행자"/>
  55. <Cell col="5" text="노드명"/>
  56. <Cell col="6" text="처리건수"/>
  57. <Cell col="7" text="정상건수"/>
  58. <Cell col="8" text="오류건수"/>
  59. <Cell col="9" text="모듈명"/>
  60. <Cell col="10" text="프로그램ID"/>
  61. <Cell col="11" text="파라메터"/>
  62. <Cell col="12" text="배치실행번호"/>
  63. </Band>
  64. <Band id="body">
  65. <Cell style="align:left;padding:0 0 0 5;" text="bind:prgmnm"/>
  66. <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"/>
  67. <Cell col="2" text="bind:fromdt" mask="####-##-## ##:##:##"/>
  68. <Cell col="3" text="bind:enddt" mask="####-##-## ##:##:##"/>
  69. <Cell col="4" text="bind:execrid"/>
  70. <Cell col="5" style="align:left;" text="bind:execnode"/>
  71. <Cell col="6" text="bind:prcscnt"/>
  72. <Cell col="7" text="bind:sucscnt"/>
  73. <Cell col="8" text="bind:failcnt"/>
  74. <Cell col="9" style="align:left;padding:0 0 0 5;" text="bind:modulenm"/>
  75. <Cell col="10" style="align:left;padding:0 0 0 5;" text="bind:prgmid"/>
  76. <Cell col="11" text="bind:paramcnts"/>
  77. <Cell col="12" text="bind:prgmexecno"/>
  78. </Band>
  79. </Format>
  80. </Formats>
  81. </Grid>
  82. <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"/>
  83. <Static text="시작시간" position="absolute 0 627 80 650" align="align:center middle;" id="caption1" class="cell_1" anchor="left bottom"/>
  84. <Static text="종료시간" position="absolute 215 627 295 650" align="align:center middle;" id="caption2" class="cell_1" anchor="left bottom"/>
  85. <Static text="총 처리건수" position="absolute 0 652 80 675" align="align:center middle;" id="caption3" class="cell_1" anchor="left bottom"/>
  86. <Static text="정상건수" position="absolute 215 652 295 675" align="align:center middle;" id="caption4" class="cell_1" anchor="left bottom"/>
  87. <Static text="오류건수" position="absolute 430 652 510 675" align="align:center middle;" id="caption5" class="cell_1" anchor="left bottom"/>
  88. <Static text="완료여부" position="absolute 430 627 510 650" align="align:center middle;" id="caption7" class="cell_1" anchor="left bottom"/>
  89. <Static text="로&#13;&#10;그&#13;&#10;메&#13;&#10;시&#13;&#10;지" 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;"/>
  90. <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;"/>
  91. <Static text="결과 파일" position="absolute 0 717 80 740" align="align:center middle;" id="caption9" class="cell_1" anchor="left bottom"/>
  92. <Button position="absolute 578 719 642 739" id="btn_download" class="btn2" text="내려받기" anchor="left bottom" onclick="grp_body_btn_download_onclick"/>
  93. <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;"/>
  94. <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;"/>
  95. <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;"/>
  96. <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;"/>
  97. <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;"/>
  98. <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;"/>
  99. <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"/>
  100. <Button position="absolute 1131 558 1195 578" id="btn_reload" class="btn2" text="새로고침" anchor="right bottom" onclick="grp_body_btn_reload_onclick"/>
  101. <Static text="총 라인수 :" position="absolute 695 720 760 740" id="caption11" anchor="left bottom"/>
  102. <Static position="absolute 760 719 860 739" id="cap_lines" anchor="default"/>
  103. <Button position="absolute 1169 719 1195 739" id="btn_next" class="icon_right" text="" anchor="right bottom" onclick="grp_body_btn_next_onclick"/>
  104. <Button position="absolute 1035 719 1061 739" id="btn_prev" class="icon_left" text="" anchor="right bottom" onclick="grp_body_btn_prev_onclick"/>
  105. <Combo position="absolute 512 629 642 649" id="cmb_prcsstat" enable="false" innerdataset="ds_init_cmb_prcsstat" datacolumn="label" codecolumn="value" anchor="left bottom"/>
  106. <Static text="* 해당열을 더블클릭하면 &quot;시작시간, 종료시간, 처리건수, 정상건수, 오류건수&quot; 가 클립보드로 복사됩니다." position="absolute 120 56 978 76" id="caption13" anchor="default"/>
  107. <Div id="grp_sea" taborder="1" position="absolute 0 0 1195 47" class="div_SA" anchor="left top right">
  108. <Layouts>
  109. <Layout>
  110. <Static id="caption21" text="실행자 ID :" class="search_name" position="absolute 12 15 99 32" anchor="default"/>
  111. <Edit id="ipt_execrid" taborder="1" class="input_search" position="absolute 92 14 207 34" anchor="default" autoselect="true"/>
  112. <Static id="caption59" text="프로그램명 :" class="search_name" position="absolute 222 16 306 33" anchor="default"/>
  113. <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"/>
  114. <Static id="caption12" text="실행상태 :" class="search_name" position="absolute 629 15 704 32" anchor="default"/>
  115. <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"/>
  116. <Static id="caption10" text="시작일자 :" class="search_name" position="absolute 816 14 892 31" anchor="default"/>
  117. <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"/>
  118. <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"/>
  119. <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"/>
  120. </Layout>
  121. </Layouts>
  122. </Div>
  123. <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"/>
  124. <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"/>
  125. <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"/>
  126. </Layout>
  127. </Layouts>
  128. </Div>
  129. <Static id="caption6" text="배치 로그 관리" class="tit_1" position="absolute 0 0 169 25"/>
  130. </Layout>
  131. </Layouts>
  132. <Objects>
  133. <Dataset id="ds_init_cmb_batprgm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  134. <ColumnInfo>
  135. <Column id="label" type="STRING"/>
  136. <Column id="value" type="STRING"/>
  137. </ColumnInfo>
  138. </Dataset>
  139. <Dataset id="ds_init_cmb_runstat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  140. <ColumnInfo>
  141. <Column id="label" type="STRING"/>
  142. <Column id="value" type="STRING"/>
  143. </ColumnInfo>
  144. <Rows>
  145. <Row>
  146. <Col id="label">실행중</Col>
  147. <Col id="value">S</Col>
  148. </Row>
  149. <Row>
  150. <Col id="label">정상종료</Col>
  151. <Col id="value">E</Col>
  152. </Row>
  153. <Row>
  154. <Col id="label">에러발생</Col>
  155. <Col id="value">F</Col>
  156. </Row>
  157. <Row>
  158. <Col id="label">관심에러</Col>
  159. <Col id="value">W</Col>
  160. </Row>
  161. <Row>
  162. <Col id="label">중요에러</Col>
  163. <Col id="value">X</Col>
  164. </Row>
  165. </Rows>
  166. </Dataset>
  167. <Dataset id="ds_grd_batlog" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  168. <ColumnInfo>
  169. <Column id="prgmnm" type="STRING"/>
  170. <Column id="prcsstat" type="STRING"/>
  171. <Column id="fromdt" type="STRING"/>
  172. <Column id="enddt" type="STRING"/>
  173. <Column id="execrid" type="STRING"/>
  174. <Column id="execnode" type="STRING"/>
  175. <Column id="prcscnt" type="STRING"/>
  176. <Column id="sucscnt" type="STRING"/>
  177. <Column id="failcnt" type="STRING"/>
  178. <Column id="modulenm" type="STRING"/>
  179. <Column id="prgmid" type="STRING"/>
  180. <Column id="paramcnts" type="STRING"/>
  181. <Column id="prgmexecno" type="STRING"/>
  182. </ColumnInfo>
  183. </Dataset>
  184. <Dataset id="ds_init_cmb_resultfile" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  185. <ColumnInfo>
  186. <Column id="filepath" type="STRING"/>
  187. <Column id="filepath" type="STRING"/>
  188. </ColumnInfo>
  189. </Dataset>
  190. <Dataset id="ds_init_cmb_page" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  191. <ColumnInfo>
  192. <Column id="label" type="STRING"/>
  193. <Column id="value" type="STRING"/>
  194. </ColumnInfo>
  195. </Dataset>
  196. <Dataset id="ds_init_cmb_prcsstat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  197. <ColumnInfo>
  198. <Column id="label" type="STRING"/>
  199. <Column id="value" type="STRING"/>
  200. </ColumnInfo>
  201. <Rows>
  202. <Row>
  203. <Col id="label">실행중</Col>
  204. <Col id="value">S</Col>
  205. </Row>
  206. <Row>
  207. <Col id="label">정상종료</Col>
  208. <Col id="value">E</Col>
  209. </Row>
  210. <Row>
  211. <Col id="label">에러발생</Col>
  212. <Col id="value">F</Col>
  213. </Row>
  214. <Row>
  215. <Col id="label">관심에러</Col>
  216. <Col id="value">W</Col>
  217. </Row>
  218. <Row>
  219. <Col id="label">중요에러</Col>
  220. <Col id="value">X</Col>
  221. </Row>
  222. </Rows>
  223. </Dataset>
  224. <Dataset id="ds_loginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  225. <ColumnInfo>
  226. <Column id="prgmnm" type="STRING" size="256"/>
  227. <Column id="modulenm" type="STRING" size="256"/>
  228. <Column id="prgmid" type="STRING" size="256"/>
  229. <Column id="fromdt" type="STRING" size="256"/>
  230. <Column id="enddt" type="STRING" size="256"/>
  231. <Column id="prcsstat" type="STRING" size="256"/>
  232. <Column id="prcscnt" type="STRING" size="256"/>
  233. <Column id="sucscnt" type="STRING" size="256"/>
  234. <Column id="failcnt" type="STRING" size="256"/>
  235. <Column id="paramcnts" type="STRING" size="256"/>
  236. <Column id="prgmexecno" type="STRING" size="256"/>
  237. <Column id="curresultfile" type="STRING" size="256"/>
  238. <Column id="logmsg" type="STRING" size="256"/>
  239. <Column id="resultfile" type="STRING" size="256"/>
  240. <Column id="lines" type="STRING" size="256"/>
  241. <Column id="pages" type="STRING" size="256"/>
  242. <Column id="currentpage" type="STRING" size="256"/>
  243. </ColumnInfo>
  244. <Rows>
  245. <Row/>
  246. </Rows>
  247. </Dataset>
  248. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  249. <ColumnInfo>
  250. <Column id="execrid" type="STRING" size="256"/>
  251. <Column id="prgmnm" type="STRING" size="256"/>
  252. <Column id="fromdt" type="STRING" size="256"/>
  253. <Column id="offset" type="STRING" size="256"/>
  254. <Column id="pagesize" type="STRING" size="256"/>
  255. <Column id="prgmexecno" type="STRING" size="256"/>
  256. <Column id="modulenm" type="STRING" size="256"/>
  257. <Column id="prgmid" type="STRING" size="256"/>
  258. <Column id="prgmuid" type="STRING" size="256"/>
  259. <Column id="runstat" type="STRING" size="256"/>
  260. </ColumnInfo>
  261. </Dataset>
  262. <Dataset id="ds_init_cmb_prgmitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  263. <ColumnInfo>
  264. <Column id="prgmnm" type="STRING" size="256" sumtext="프로그램명"/>
  265. <Column id="prgmuid" type="STRING" size="256" sumtext="프로그램전체ID"/>
  266. <Column id="prgmfid" type="STRING" size="256" sumtext="프로그램전체ID"/>
  267. </ColumnInfo>
  268. </Dataset>
  269. <Dataset id="ds_loginfo_pages" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  270. <ColumnInfo>
  271. <Column id="label" type="STRING" size="256"/>
  272. <Column id="value" type="STRING" size="256"/>
  273. </ColumnInfo>
  274. </Dataset>
  275. <Dataset id="ds_filedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  276. <ColumnInfo>
  277. <Column id="filedata" type="STRING" size="256"/>
  278. </ColumnInfo>
  279. <Rows>
  280. <Row/>
  281. </Rows>
  282. </Dataset>
  283. <Dataset id="ds_attfile" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  284. <ColumnInfo>
  285. <Column id="filenm" type="STRING" size="256"/>
  286. <Column id="filepath" type="STRING" size="256"/>
  287. </ColumnInfo>
  288. <Rows>
  289. <Row/>
  290. </Rows>
  291. </Dataset>
  292. <Dataset id="ds_logmsg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  293. <ColumnInfo>
  294. <Column id="logmsg" type="STRING" size="256"/>
  295. </ColumnInfo>
  296. </Dataset>
  297. <Dataset id="ds_sendPageInfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  298. <ColumnInfo>
  299. <Column id="prgmexecno" type="STRING" size="256"/>
  300. <Column id="offset" type="STRING" size="256"/>
  301. <Column id="pagesize" type="STRING" size="256"/>
  302. </ColumnInfo>
  303. <Rows>
  304. <Row/>
  305. </Rows>
  306. </Dataset>
  307. </Objects>
  308. <Bind>
  309. <BindItem id="item3" compid="grp_body.cmb_resultfile" propid="value" datasetid="ds_loginfo" columnid="curresultfile"/>
  310. <BindItem id="item5" compid="grp_body.cap_lines" propid="text" datasetid="ds_loginfo" columnid="lines"/>
  311. <BindItem id="item6" compid="grp_body.textarea1" propid="value" datasetid="ds_loginfo" columnid="logmsg"/>
  312. <BindItem id="item8" compid="grp_body.tar_exeparamcnts" propid="value" datasetid="ds_loginfo" columnid="paramcnts"/>
  313. <BindItem id="item9" compid="grp_body.opt_failcnt" propid="value" datasetid="ds_loginfo" columnid="failcnt"/>
  314. <BindItem id="item10" compid="grp_body.opt_sucscnt" propid="value" datasetid="ds_loginfo" columnid="sucscnt"/>
  315. <BindItem id="item11" compid="grp_body.opt_prcscnt" propid="value" datasetid="ds_loginfo" columnid="prcscnt"/>
  316. <BindItem id="item14" compid="grp_body.opt_prgmid" propid="value" datasetid="ds_loginfo" columnid="prgmid"/>
  317. <BindItem id="item15" compid="grp_body.opt_modulenm" propid="value" datasetid="ds_loginfo" columnid="modulenm"/>
  318. <BindItem id="item16" compid="grp_body.opt_prgmnm" propid="value" datasetid="ds_loginfo" columnid="prgmnm"/>
  319. <BindItem id="item19" compid="grp_body.cmb_prcsstat" propid="value" datasetid="ds_loginfo" columnid="prcsstat"/>
  320. <BindItem id="item0" compid="grp_body.grp_sea.ipt_execrid" propid="value" datasetid="ds_send" columnid="execrid"/>
  321. <BindItem id="item1" compid="grp_body.grp_sea.cmb_batprgm" propid="value" datasetid="ds_send" columnid="prgmuid"/>
  322. <BindItem id="item17" compid="grp_body.grp_sea.cmb_runstat" propid="value" datasetid="ds_send" columnid="runstat"/>
  323. <BindItem id="item2" compid="grp_body.grp_sea.input1" propid="value" datasetid="ds_send" columnid="fromdt"/>
  324. <BindItem id="item20" compid="grp_body.opt_fromdt" propid="value" datasetid="ds_loginfo" columnid="fromdt"/>
  325. <BindItem id="item13" compid="grp_body.opt_enddt" propid="value" datasetid="ds_loginfo" columnid="enddt"/>
  326. </Bind>
  327. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  328. * System Name :
  329. * Job Name :
  330. * Creator : Mr.손
  331. * Make Date : 2014-11-19
  332. * Description :
  333. *---------------------------------------------------------------------------------------
  334. * Modify Date Modifier Modify Description
  335. *---------------------------------------------------------------------------------------
  336. * 2014-11-19 Live Converter TF->XP
  337. *
  338. *---------------------------------------------------------------------------------------
  339. ****************************************************************************************/
  340. //==============================================================================================
  341. // Lib Include
  342. //-----------------------------------------------------------------------------------------------------------------------------
  343. include "com_commonxp::comm_main.xjs"; // 전체공통 스크립트
  344. /************************************************************************************************
  345. ******************************** Form Event ****************************************************
  346. ************************************************************************************************/
  347. function SMZSB00201_oninit(obj:Form, e:InitEventInfo)
  348. {
  349. frmf_initForm(obj);
  350. }
  351. function SMZSB00201_onload(obj:Form, e:LoadEventInfo)
  352. {
  353. fInitialize();
  354. }
  355. function fInitialize()
  356. {
  357. ds_grd_batlog.clearData();
  358. ds_loginfo.clearData();
  359. ds_send.clearData();
  360. ds_send.addRow();
  361. ds_send.setColumn(0, "pagesize", 200);
  362. ds_send.setColumn(0, "offset", 0);
  363. ds_send.setColumn(0, "execrid", sysf_getUserId());
  364. ds_send.setColumn(0, "fromdt", utlf_getCurrentDate());
  365. grp_body.btn_reload.enable = false;
  366. tranf_submit({
  367. id: "TRZSB00201"
  368. , service: "batchinfoapp.BatchInfo"
  369. , method: "reqGetBatchProgramList"
  370. , inds : "req=ds_send"
  371. , outds: "ds_init_cmb_prgmitem=batprgm"
  372. , async: true
  373. , callback : "cbf_TRZSB00201"
  374. });
  375. }
  376. function cbf_TRZSB00201(sSvcId, nErrorCode, sErrorMsg) {
  377. if(nErrorCode < 0) return;
  378. }
  379. function grp_body_grp_srch_btn_select_onclick(obj:Button, e:ClickEventInfo)
  380. {
  381. var prgmuid = grp_body.grp_sea.cmb_batprgm.value;
  382. if (prgmuid == "" || prgmuid == undefined) {
  383. ds_send.setColumn(0, "modulenm", "");
  384. ds_send.setColumn(0, "prgmid", "");
  385. } else {
  386. var uidsplit = prgmuid.split(".");
  387. ds_send.setColumn(0, "modulenm", uidsplit[0]);
  388. ds_send.setColumn(0, "prgmid", uidsplit[1]);
  389. }
  390. tranf_submit({
  391. id: "TRZSB00202"
  392. , service: "batchinfoapp.BatchInfo"
  393. , method: "reqGetBatchLogList"
  394. , inds : "req=ds_send"
  395. , outds: "ds_grd_batlog=batlog"
  396. , async: true
  397. , callback : "cbf_TRZSB00202"
  398. });
  399. }
  400. function cbf_TRZSB00202(sSvcId, nErrorCode, sErrorMsg) {
  401. if(nErrorCode < 0) return;
  402. }
  403. function grp_btn_init_onclick(obj:Button, e:ClickEventInfo)
  404. {
  405. fInitialize();
  406. }
  407. function grp_body_grd_batlog_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  408. {
  409. var curRow = grp_body.grd_batlog.currentrow;
  410. if ( curRow >= 0 ) {
  411. // 상제 정보 조회
  412. ds_send.setColumn(0,"prgmexecno", ds_grd_batlog.getColumn( curRow, "prgmexecno"));
  413. fGetLogInfo();
  414. grp_body.btn_reload.enable = true;
  415. // 선택한 열에 대한 요약정보를 클립보드에 복사
  416. if(ds_grd_batlog.getColumn(curRow, "enddt") != undefined){
  417. var strBatLog = '';
  418. strBatLog = urlf_getStrDate(ds_grd_batlog.getColumn( curRow, "fromdt"));
  419. strBatLog += ' ~ ' + urlf_getStrDate(ds_grd_batlog.getColumn( curRow, "enddt"));
  420. strBatLog += ' 처리건수 : ' + ds_grd_batlog.getColumn( curRow, "prcscnt");
  421. strBatLog += ' 정상건수 : ' + ds_grd_batlog.getColumn( curRow, "prcscnt");
  422. strBatLog += ' 오류건수 : ' + ds_grd_batlog.getColumn( curRow, "prcscnt");
  423. frmf_setParameter("BatLog", strBatLog);
  424. }
  425. }
  426. }
  427. // 배치 로그 상세 정보를 조회하여 화면 하단 항목으로 보여준다.
  428. function fGetLogInfo() {
  429. tranf_submit({
  430. id: "TRZSB00203"
  431. , service: "batchinfoapp.BatchInfo"
  432. , method: "reqGetBatchLogDetail"
  433. , inds : "req=ds_send"
  434. , outds: "ds_loginfo=batlog ds_init_cmb_resultfile=resultfile"
  435. , async: false
  436. , callback : "cbf_TRZSB00203"
  437. });
  438. }
  439. function cbf_TRZSB00203(sSvcId, nErrorCode, sErrorMsg) {
  440. if(nErrorCode >= 0){
  441. ds_loginfo.addColumn("currentpage", "string");
  442. ds_loginfo.addColumn("curresultfile", "string");
  443. ds_loginfo.setColumn( 0 , "curresultfile", ds_init_cmb_resultfile.getColumn(0, "filepath"));
  444. var lines = ds_loginfo.getColumn(0, "lines");
  445. var pagesize = ds_send.getColumn(0, "pagesize");
  446. // page combo 설정
  447. var pages = Math.floor((lines/pagesize)+1);
  448. if (lines%pagesize == 0) {
  449. pages = pages -1;
  450. }
  451. ds_loginfo_pages.clearData();
  452. for(var i=0;i<pages;i++) {
  453. ds_loginfo_pages.addRow();
  454. ds_loginfo_pages.setColumn(i, "label", (i+1)+"/"+pages);
  455. ds_loginfo_pages.setColumn(i, "value", i+1);
  456. }
  457. ds_loginfo.setColumn(0, "currentpage", 1);
  458. ds_send.setColumn(0, "offset", 0);
  459. grp_body.cmb_page.value = 1;
  460. }else{
  461. return;
  462. }
  463. }
  464. function grp_body_btn_download_onclick(obj:Button, e:ClickEventInfo)
  465. {
  466. frmf_LargeFileDownload("TRZSB00205", ds_loginfo.getColumn(0, "curresultfile"), true);
  467. }
  468. function grp_body_grp_sea_btn_init_onclick(obj:Button, e:ClickEventInfo)
  469. {
  470. fInitialize();
  471. }
  472. function grp_body_btn_reload_onclick(obj:Button, e:ClickEventInfo)
  473. {
  474. grp_body.cmb_page.value = 1;
  475. fGetLogMessage();
  476. ds_loginfo.setColumn(0, "logmsg", ds_logmsg.getColumn(0, "logmsg"));
  477. }
  478. function grp_body_cmb_page_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  479. {
  480. fGetLogMessage();
  481. ds_loginfo.setColumn(0, "logmsg", ds_logmsg.getColumn(0, "logmsg"));
  482. }
  483. function grp_body_btn_next_onclick(obj:Button, e:ClickEventInfo)
  484. {
  485. var page = grp_body.cmb_page.value;
  486. if(page != ds_loginfo_pages.rowcount){
  487. page++;
  488. grp_body.cmb_page.value = page;
  489. fGetLogMessage();
  490. ds_loginfo.setColumn(0, "logmsg", ds_logmsg.getColumn(0, "logmsg"));
  491. }else{
  492. return;
  493. }
  494. }
  495. function grp_body_btn_prev_onclick(obj:Button, e:ClickEventInfo)
  496. {
  497. var page = grp_body.cmb_page.value;
  498. if(page != 1){
  499. page--;
  500. grp_body.cmb_page.value = page;
  501. fGetLogMessage();
  502. ds_loginfo.setColumn(0, "logmsg", ds_logmsg.getColumn(0, "logmsg"));
  503. }else{
  504. return;
  505. }
  506. }
  507. function fGetLogMessage()
  508. {
  509. var pagesize = ds_send.getColumn(0, "pagesize");
  510. var pos = ds_grd_batlog.rowposition;
  511. var page = grp_body.cmb_page.value-1;
  512. var offset;
  513. if(page == 0){
  514. offset = 0;
  515. }else{
  516. offset = (page * pagesize);
  517. }
  518. ds_sendPageInfo.setColumn(0, "prgmexecno", ds_grd_batlog.getColumn(pos, "prgmexecno"));
  519. ds_sendPageInfo.setColumn(0, "pagesize", pagesize);
  520. ds_sendPageInfo.setColumn(0, "offset", offset);
  521. var oParam = {};
  522. oParam.id = "TRZSB00204";
  523. oParam.service = "batchinfoapp.BatchInfo";
  524. oParam.method = "reqGetBatchLogMessage";
  525. oParam.inds = "req=ds_sendPageInfo";
  526. oParam.outds = "ds_logmsg=batlog";
  527. oParam.async = false;
  528. oParam.callback = "cf_TRZSB00204";
  529. tranf_submit(oParam);
  530. }
  531. function cf_TRZSB00204(sSvcId, nErrorCode, sErrorMsg) {
  532. if(nErrorCode < 0) return;
  533. }]]></Script>
  534. </Form>
  535. </FDL>