SPZSB00301_배치로그사용자팝업.xfdl 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPZSB00301" position="absolute 0 0 956 551" titletext="배치 로그 관리" onload="SPZSB00301_onload" ontimer="SPZSB00301_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" position="absolute 0 0 950 25" style="">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption6" class="tit_1" position="absolute 0 0 189 23" style="" text="배치 로그 조회 팝업"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div id="group5" scrollbars="autoboth" position="absolute 0 20 950 550" style="">
  15. <Layouts>
  16. <Layout>
  17. <Div id="group6" position="absolute 0 3 950 40" style="align: top;" class="div_SA">
  18. <Layouts>
  19. <Layout>
  20. <Shape id="line18" class="line_4" linetype="vertical" position="absolute 865 8 868 30" style="" anchor="default"/>
  21. <Static id="caption59" class="search_name" position="absolute 5 10 105 27" style="" text="프로그램명 :" anchor="default"/>
  22. <Button id="btn_select" class="btn1_letter2" position="absolute 880 8 936 30" style="" text="조회" onclick="group5_group6_btn_select_onclick" anchor="default"/>
  23. <Static id="caption10" class="search_name" position="absolute 385 10 475 27" style="" text="시작일자 :" anchor="default"/>
  24. <Calendar id="ipt_fromdt" class="input_search" position="absolute 471 10 611 29" style="" anchor="default" onkillfocus="group5_group6_ipt_fromdt_onkillfocus" dateformat="yyyy-MM-dd" value="null"/>
  25. <Combo innerdataset="ds_init_prgmlist_prgmitem" datacolumn="label" codecolumn="value" columncount="-1" rowcount="-1" id="cmb_batprgm" class="combo_search" position="absolute 106 9 371 28" style="" anchor="default"/>
  26. <Static id="caption1" class="search_name" position="absolute 630 11 730 28" style="" text="종료일자 :" anchor="default"/>
  27. <Calendar id="ipt_todt" class="input_search" position="absolute 715 10 855 29" style="" anchor="default" onkillfocus="group5_group6_ipt_todt_onkillfocus" dateformat="yyyy-MM-dd" value="null"/>
  28. <Static id="caption2" class="search_name" position="absolute 145 10 235 27" style="" text="실행자명 :" anchor="default" visible="false"/>
  29. <Edit id="ipt_exernm" visible="false" position="absolute 230 9 330 28" style="" anchor="default" onclick="group5_group6_ipt_exernm_onclick"/>
  30. </Layout>
  31. </Layouts>
  32. </Div>
  33. <Static id="caption48" class="tit_2" position="absolute 5 52 139 70" style="" text="배치 로그 목록"/>
  34. <Shape id="line20" class="line_1" linetype="horizontal" position="absolute 0 70 950 75" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
  35. <Grid id="grd_batlog" binddataset="ds_main_list_batlog" visible="true" position="absolute 0 75 950 525" style="" onlbuttonup="group5_grd_batlog_onlbuttonup">
  36. <Formats>
  37. <Format id="default">
  38. <Columns>
  39. <Column size="290"/>
  40. <Column size="55"/>
  41. <Column size="21"/>
  42. <Column size="120"/>
  43. <Column size="120"/>
  44. <Column size="76"/>
  45. <Column size="80"/>
  46. <Column size="75"/>
  47. <Column size="75"/>
  48. <Column size="80"/>
  49. <Column size="57"/>
  50. <Column size="16"/>
  51. <Column size="100"/>
  52. <Column size="100"/>
  53. <Column size="100"/>
  54. <Column size="100"/>
  55. </Columns>
  56. <Rows>
  57. <Row size="23" band="head"/>
  58. <Row size="23"/>
  59. </Rows>
  60. <Band id="head">
  61. <Cell text="프로그램명"/>
  62. <Cell col="1" colspan="2" text="실행상태" taborder="undefined"/>
  63. <Cell col="3" text="시작시간"/>
  64. <Cell col="4" text="종료시간"/>
  65. <Cell col="5" text="실행자"/>
  66. <Cell col="6" text="노드명"/>
  67. <Cell col="7" text="처리건수"/>
  68. <Cell col="8" text="정상건수"/>
  69. <Cell col="9" text="오류건수"/>
  70. <Cell col="10" colspan="2" text="생성파일수" taborder="undefined"/>
  71. <Cell col="12" text="모듈명"/>
  72. <Cell col="13" text="프로그램ID"/>
  73. <Cell col="14" text="파라메터"/>
  74. <Cell col="15" text="배치실행번호"/>
  75. </Band>
  76. <Band id="body">
  77. <Cell text="bind:prgmnm"/>
  78. <Cell col="1" text="bind:prcsstat"/>
  79. <Cell col="2" style="align:center;" text="bind:fromdt" expandshow="show"/>
  80. <Cell col="3" text="bind:enddt"/>
  81. <Cell col="4" text="bind:execrid"/>
  82. <Cell col="5" text="bind:execnode"/>
  83. <Cell col="6" text="bind:prcscnt"/>
  84. <Cell col="7" text="bind:sucscnt"/>
  85. <Cell col="8" text="bind:failcnt"/>
  86. <Cell col="9" text="bind:cnt"/>
  87. <Cell col="10" text="bind:modulenm"/>
  88. <Cell col="11" text="bind:prgmid" expandshow="show"/>
  89. <Cell col="12" text="bind:paramcnts"/>
  90. <Cell col="13" text="bind:prgmexecno"/>
  91. </Band>
  92. </Format>
  93. </Formats>
  94. </Grid>
  95. <CheckBox datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="checkbox1" position="absolute 875 48 946 63" style="" titletext="CheckBox List" text="자동조회" scrollbars="none" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="100" truevalue="Y" falsevalue="N" value="Y" onclick="group5_checkbox1_onclick">
  96. <Dataset id="innerdataset">
  97. <ColumnInfo>
  98. <Column id="codecolumn"/>
  99. <Column id="datacolumn"/>
  100. </ColumnInfo>
  101. <Rows>
  102. <Row>
  103. <Col id="codecolumn">1</Col>
  104. <Col id="datacolumn">자동조회</Col>
  105. </Row>
  106. </Rows>
  107. </Dataset>
  108. </CheckBox>
  109. </Layout>
  110. </Layouts>
  111. </Div>
  112. </Layout>
  113. </Layouts>
  114. <Objects>
  115. <Dataset id="ds_init_statuslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  116. <ColumnInfo/>
  117. </Dataset>
  118. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  119. <ColumnInfo>
  120. <Column id="userinfo" type="STRING" size="256"/>
  121. </ColumnInfo>
  122. </Dataset>
  123. <Dataset id="ds_main_list_batlog" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  124. <ColumnInfo>
  125. <Column id="prgmnm" type="STRING" size="256"/>
  126. <Column id="prcsstat" type="STRING" size="256"/>
  127. <Column id="fromdt" type="STRING" size="256"/>
  128. <Column id="enddt" type="STRING" size="256"/>
  129. <Column id="execrid" type="STRING" size="256"/>
  130. <Column id="execnode" type="STRING" size="256"/>
  131. <Column id="prcscnt" type="STRING" size="256"/>
  132. <Column id="sucscnt" type="STRING" size="256"/>
  133. <Column id="failcnt" type="STRING" size="256"/>
  134. <Column id="modulenm" type="STRING" size="256"/>
  135. <Column id="prgmid" type="STRING" size="256"/>
  136. <Column id="paramcnts" type="STRING" size="256"/>
  137. <Column id="prgmexecno" type="STRING" size="256"/>
  138. </ColumnInfo>
  139. <Rows>
  140. <Row>
  141. <Col id="prgmnm"/>
  142. <Col id="prcsstat"/>
  143. <Col id="fromdt"/>
  144. <Col id="enddt"/>
  145. <Col id="execrid"/>
  146. <Col id="execnode"/>
  147. <Col id="prcscnt"/>
  148. <Col id="sucscnt"/>
  149. <Col id="failcnt"/>
  150. <Col id="modulenm"/>
  151. <Col id="prgmid"/>
  152. <Col id="paramcnts"/>
  153. <Col id="prgmexecno"/>
  154. </Row>
  155. </Rows>
  156. </Dataset>
  157. <Dataset id="ds_init_statuslist_status" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  158. <ColumnInfo>
  159. <Column id="label" type="STRING" size="256"/>
  160. <Column id="value" type="STRING" size="256"/>
  161. <Column id="label" type="STRING" size="256"/>
  162. <Column id="value" type="STRING" size="256"/>
  163. <Column id="label" type="STRING" size="256"/>
  164. <Column id="value" type="STRING" size="256"/>
  165. <Column id="label" type="STRING" size="256"/>
  166. <Column id="value" type="STRING" size="256"/>
  167. <Column id="label" type="STRING" size="256"/>
  168. <Column id="value" type="STRING" size="256"/>
  169. </ColumnInfo>
  170. <Rows>
  171. <Row>
  172. <Col id="label">실행중</Col>
  173. <Col id="value">S</Col>
  174. </Row>
  175. <Row>
  176. <Col id="label">정상종료</Col>
  177. <Col id="value">E</Col>
  178. </Row>
  179. <Row>
  180. <Col id="label">에러발생</Col>
  181. <Col id="value">F</Col>
  182. </Row>
  183. <Row>
  184. <Col id="label">에러발생</Col>
  185. <Col id="value">W</Col>
  186. </Row>
  187. <Row>
  188. <Col id="label">에러발생</Col>
  189. <Col id="value">X</Col>
  190. </Row>
  191. </Rows>
  192. </Dataset>
  193. <Dataset id="ds_main_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  194. <ColumnInfo/>
  195. </Dataset>
  196. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  197. <ColumnInfo/>
  198. </Dataset>
  199. <Dataset id="ds_main_loginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  200. <ColumnInfo>
  201. <Column id="prgmnm" type="STRING" size="256"/>
  202. <Column id="modulenm" type="STRING" size="256"/>
  203. <Column id="prgmid" type="STRING" size="256"/>
  204. <Column id="fromdt" type="STRING" size="256"/>
  205. <Column id="enddt" type="STRING" size="256"/>
  206. <Column id="prcsstat" type="STRING" size="256"/>
  207. <Column id="prcscnt" type="STRING" size="256"/>
  208. <Column id="sucscnt" type="STRING" size="256"/>
  209. <Column id="failcnt" type="STRING" size="256"/>
  210. <Column id="paramcnts" type="STRING" size="256"/>
  211. <Column id="prgmexecno" type="STRING" size="256"/>
  212. <Column id="curresultfile" type="STRING" size="256"/>
  213. <Column id="logmsg" type="STRING" size="256"/>
  214. <Column id="lines" type="STRING" size="256"/>
  215. <Column id="currentpage" type="STRING" size="256"/>
  216. </ColumnInfo>
  217. <Rows>
  218. <Row>
  219. <Col id="prgmnm"/>
  220. <Col id="modulenm"/>
  221. <Col id="prgmid"/>
  222. <Col id="fromdt"/>
  223. <Col id="enddt"/>
  224. <Col id="prcsstat"/>
  225. <Col id="prcscnt"/>
  226. <Col id="sucscnt"/>
  227. <Col id="failcnt"/>
  228. <Col id="paramcnts"/>
  229. <Col id="prgmexecno"/>
  230. <Col id="curresultfile"/>
  231. <Col id="logmsg"/>
  232. </Row>
  233. </Rows>
  234. </Dataset>
  235. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  236. <ColumnInfo>
  237. <Column id="bizabbr" type="STRING" size="256"/>
  238. <Column id="selectcond" type="STRING" size="256"/>
  239. </ColumnInfo>
  240. <Rows>
  241. <Row>
  242. <Col id="bizabbr"/>
  243. <Col id="selectcond"/>
  244. </Row>
  245. </Rows>
  246. </Dataset>
  247. <Dataset id="ds_main_loginfo_pages" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  248. <ColumnInfo>
  249. <Column id="label" type="STRING" size="256"/>
  250. <Column id="value" type="STRING" size="256"/>
  251. </ColumnInfo>
  252. <Rows>
  253. <Row>
  254. <Col id="label"/>
  255. <Col id="value"/>
  256. </Row>
  257. </Rows>
  258. </Dataset>
  259. <Dataset id="ds_init_prgmlist_prgmitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  260. <ColumnInfo>
  261. <Column id="label" type="STRING" size="256"/>
  262. <Column id="value" type="STRING" size="256"/>
  263. </ColumnInfo>
  264. <Rows>
  265. <Row>
  266. <Col id="label"/>
  267. <Col id="value"/>
  268. </Row>
  269. </Rows>
  270. </Dataset>
  271. <Dataset id="ds_init_prgmlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  272. <ColumnInfo/>
  273. </Dataset>
  274. <Dataset id="ds_hidden_list_batprgm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  275. <ColumnInfo>
  276. <Column id="rowno" type="STRING" size="256"/>
  277. <Column id="bizabbr" type="STRING" size="256"/>
  278. <Column id="modulenm" type="STRING" size="256"/>
  279. <Column id="prgmid" type="STRING" size="256"/>
  280. <Column id="prgmnm" type="STRING" size="256"/>
  281. <Column id="useyn" type="STRING" size="256"/>
  282. <Column id="fstrgstrid" type="STRING" size="256"/>
  283. <Column id="fstrgstdt" type="STRING" size="256"/>
  284. <Column id="lastupdtrid" type="STRING" size="256"/>
  285. <Column id="lastupdtdt" type="STRING" size="256"/>
  286. <Column id="status" type="STRING" size="256"/>
  287. </ColumnInfo>
  288. <Rows>
  289. <Row>
  290. <Col id="rowno"/>
  291. <Col id="bizabbr"/>
  292. <Col id="modulenm"/>
  293. <Col id="prgmid"/>
  294. <Col id="prgmnm"/>
  295. <Col id="useyn"/>
  296. <Col id="fstrgstrid"/>
  297. <Col id="fstrgstdt"/>
  298. <Col id="lastupdtrid"/>
  299. <Col id="lastupdtdt"/>
  300. <Col id="status"/>
  301. </Row>
  302. </Rows>
  303. </Dataset>
  304. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_send_oncolumnchanged">
  305. <ColumnInfo>
  306. <Column id="execrid" type="STRING" size="256"/>
  307. <Column id="fromdt" type="STRING" size="256"/>
  308. <Column id="offset" type="STRING" size="256"/>
  309. <Column id="pagesize" type="STRING" size="256"/>
  310. <Column id="prgmexecno" type="STRING" size="256"/>
  311. <Column id="enddt" type="STRING" size="256"/>
  312. <Column id="prgmuid" type="STRING" size="256"/>
  313. <Column id="modulenm" type="STRING" size="256"/>
  314. <Column id="prgmid" type="STRING" size="256"/>
  315. <Column id="autorepeat" type="STRING" size="256"/>
  316. <Column id="execrnm" type="STRING" size="256"/>
  317. <Column id="usersrch" type="STRING" size="256"/>
  318. </ColumnInfo>
  319. <Rows>
  320. <Row>
  321. <Col id="execrid"/>
  322. <Col id="fromdt"/>
  323. <Col id="offset"/>
  324. <Col id="pagesize"/>
  325. <Col id="prgmexecno"/>
  326. <Col id="enddt"/>
  327. <Col id="prgmuid"/>
  328. <Col id="modulenm"/>
  329. <Col id="prgmid"/>
  330. <Col id="autorepeat"/>
  331. <Col id="execrnm"/>
  332. </Row>
  333. </Rows>
  334. </Dataset>
  335. <Dataset id="ds_hidden_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  336. <ColumnInfo/>
  337. </Dataset>
  338. <Dataset id="ds_main_loginfo_resultfile" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  339. <ColumnInfo>
  340. <Column id="filepath" type="STRING" size="256"/>
  341. </ColumnInfo>
  342. <Rows>
  343. <Row>
  344. <Col id="filepath"/>
  345. </Row>
  346. </Rows>
  347. </Dataset>
  348. <Dataset id="ds_hidden_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  349. <ColumnInfo>
  350. <Column id="resultref" type="STRING" size="256"/>
  351. </ColumnInfo>
  352. </Dataset>
  353. <Dataset id="ds_main_logdetail" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  354. <Dataset id="ds_send_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  355. </Objects>
  356. <Bind>
  357. <BindItem id="item0" compid="group5.group6.ipt_fromdt" propid="value" datasetid="ds_send" columnid="fromdt"/>
  358. <BindItem id="item1" compid="group5.group6.cmb_batprgm" propid="value" datasetid="ds_send" columnid="prgmuid"/>
  359. <BindItem id="item2" compid="group5.group6.ipt_todt" propid="value" datasetid="ds_send" columnid="enddt"/>
  360. <BindItem id="item3" compid="group5.group6.ipt_exernm" propid="value" datasetid="ds_send" columnid="execrnm"/>
  361. <BindItem id="item4" compid="group5.checkbox1" propid="value" datasetid="ds_send" columnid="autorepeat"/>
  362. </Bind>
  363. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs"
  364. var gRepeatTimerID = ""; // 자동 조회용 타이머
  365. function SPZSB00301_onload(obj:Form, e:LoadEventInfo) {
  366. frmf_initForm(obj);
  367. grdf_initGrid(group5.grd_batlog);
  368. //grdf_setGridSort(grd_XXX);
  369. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  370. ds_main_list_batlog.clearData();
  371. ds_send.setColumn(0, "prgmuid", arg_ds_temp_zsb.getColumn(0, "prgmuid"));
  372. ds_send.setColumn(0, "fromdt", arg_ds_temp_zsb.getColumn(0, "fromdd"));
  373. ds_send.setColumn(0, "enddt", arg_ds_temp_zsb.getColumn(0, "todd"));
  374. ds_send.setColumn(0, "execrid", arg_ds_temp_zsb.getColumn(0, "execrid"));
  375. ds_send.setColumn(0, "usersrch", arg_ds_temp_zsb.getColumn(0, "usersrch"));
  376. ds_send.setColumn(0, "autorepeat", arg_ds_temp_zsb.getColumn(0, "autorepeat"));
  377. fInitialize();
  378. //model.refresh();
  379. }
  380. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  381. function fInitialize() {
  382. var execrid = ds_send.getColumn(0, "execrid");
  383. if (execrid == "") {
  384. ds_send.setColumn( 0, "execrid",sysf_getUserId());
  385. }
  386. var prgmuid = ds_send.getColumn(0, "prgmuid");
  387. if (prgmuid == "") {
  388. group5.group6.cmb_batprgm.index = 0;
  389. }
  390. var fromdt = ds_send.getColumn(0, "fromdt");
  391. if (fromdt == "") {
  392. ds_send.setColumn( 0, "fromdt",utlf_getCurrentDate()-1);
  393. }
  394. var enddt = ds_send.getColumn(0, "enddt");
  395. if (enddt == "") {
  396. ds_send.setColumn( 0, "enddt",utlf_getCurrentDate());
  397. }
  398. ds_main_loginfo.clearData(); ds_main_loginfo.addRow();
  399. ds_main_logdetail.clearData();
  400. // 실행자를 선택할 수 있는 컨트롤을 보여주거나, 로그인한 사용자를 기준으로 자동으로 리스트 조회를 시작한다.
  401. var usersrch = ds_send.getColumn(0, "usersrch");
  402. if (usersrch == "true") {
  403. fSetUserSelectVisible();
  404. } else {
  405. fGetLogList(); // 리스트 조회
  406. }
  407. // 자동조회 설정
  408. fSetAutoRepeat();
  409. }
  410. // 사용자가 실행한 적이 있는 배치 목록 조회
  411. function fGetBatchList() {
  412. ds_send.setColumn( 0, "prgmuid","");
  413. //submit("TRZSB00206");
  414. var oParam = {};
  415. oParam.id = "TRZSB00206";
  416. oParam.service = "batchinfoapp.BatchInfo";
  417. oParam.method = "reqGetBatchProgramListInLog";
  418. oParam.inds = "req=ds_send";
  419. oParam.outds = "ds_init_prgmlist_prgmitem=batprgm";
  420. oParam.async = false;
  421. tranf_submit(oParam);
  422. }
  423. function fSetUserSelectVisible() {
  424. // 실행자명
  425. group5.group6.caption2.position.left = 5;
  426. group5.group6.caption2.position.top = 8;
  427. group5.group6.caption2.visible = true;
  428. group5.group6.ipt_exernm.position.left = 96;
  429. group5.group6.ipt_exernm.position.top = 8;
  430. group5.group6.ipt_exernm.position.width = 70;
  431. group5.group6.ipt_exernm.visible = true;
  432. // 프로그램명
  433. group5.group6.caption59.position.left = 176;
  434. group5.group6.caption59.position.top = 8;
  435. group5.group6.cmb_batprgm.position.left = 280;
  436. group5.group6.cmb_batprgm.position.width = 200;
  437. // 시작일자
  438. group5.group6.caption10.position.left = 492;
  439. group5.group6.ipt_fromdt.position.left = 582;
  440. group5.group6.ipt_fromdt.position.width = 85;
  441. // 종료일자
  442. group5.group6.caption1.position.left = 676;
  443. group5.group6.ipt_todt.position.left = 768;
  444. group5.group6.ipt_todt.position.width = 85;
  445. }
  446. function fSetAutoRepeat() {
  447. var autoRepeat = ds_send.getColumn(0, "autorepeat");
  448. if (autoRepeat == "1" || autoRepeat == "Y") { // 자동조회 on 상태
  449. if (gRepeatTimerID == "") {
  450. gRepeatTimerID = "0";
  451. //gRepeatTimerID = window.setInterval("fGetLogList()",5000);
  452. this.setTimer(gRepeatTimerID,5000);
  453. }
  454. } else { // 자동조회 off 상태
  455. if (gRepeatTimerID != "") {
  456. //window.clearInterval(gRepeatTimerID);
  457. this.killTimer(gRepeatTimerID);
  458. gRepeatTimerID = "";
  459. }
  460. }
  461. }
  462. function fGetLogList() {
  463. var prgmuid = ds_send.getColumn(0, "prgmuid");
  464. var uidsplit = String(prgmuid).split(".");
  465. dsf_makeValue( ds_send, "modulenm", "string", uidsplit[0]);
  466. dsf_makeValue( ds_send, "prgmid", "string", uidsplit[1]);
  467. //submit("TRZSB00302");
  468. var oParam = {};
  469. oParam.id = "TRZSB00302";
  470. oParam.service = "batchinfoapp.BatchInfo";
  471. oParam.method = "reqGetBatchLogList";
  472. oParam.inds = "req=ds_send";
  473. oParam.outds = "ds_main_list_batlog=batlog";
  474. oParam.async = false;
  475. tranf_submit(oParam);
  476. }
  477. // 배치 로그 상세 정보를 조회하여 화면 하단 항목으로 보여준다.
  478. function fGetLogInfo() {
  479. // if (submit("TRZSB00203")) {
  480. var oParam = {};
  481. oParam.id = "TRZSB00203";
  482. oParam.service = "batchinfoapp.BatchInfo";
  483. oParam.method = "reqGetBatchLogDetail";
  484. oParam.inds = "req=ds_send";
  485. oParam.outds = "ds_main_loginfo_resultfile=resultfile ds_main_list_batlog=batlog";
  486. oParam.async = false;
  487. oParam.callback = "cf_TRZSB00203";
  488. tranf_submit(oParam);
  489. if(arErrorCode.pop("TRZSB00203") > -1) {
  490. dsf_makeValue( ds_main_loginfo, "curresultfile", "string", ds_main_loginfo_resultfile.getColumn(0, "filepath"));
  491. var lines = ds_main_loginfo.getColumn(0, "lines");
  492. var pagesize = ds_send.getColumn(0, "pagesize");
  493. // page combo 설정
  494. var pages = Math.floor((lines_pagesize)+1);
  495. if (lines%pagesize == 0) {
  496. pages = pages - 1;
  497. }
  498. for(var i=0;i<pages;i++) {
  499. //model.makeNode("ds_main_loginfo_pages["+(i+1)+"]");
  500. var _insertRow = ds_main_loginfo_pages.addRow();
  501. ds_main_loginfo_pages.setColumn( _insertRow, "label", pages);
  502. ds_main_loginfo_pages.setColumn( _insertRow, "value", i+1);
  503. }
  504. dsf_makeValue( ds_main_loginfo, "currentpage", "string", 1);
  505. dsf_makeValue( ds_send, "offset", "string", 0);
  506. }
  507. }
  508. function cf_TRZSB00203(sSvcId, nErrorCode, sErrorMsg) {
  509. arErrorCode.push(sSvcId, nErrorCode);
  510. }
  511. // 배치 로그 메시지의 페이지 단위 조회를 수행한다.
  512. function fGetLogMessage() {
  513. var pagesize = ds_send.getColumn(0, "pagesize");
  514. var curpage = ds_main_loginfo.getColumn(0, "currentpage");
  515. dsf_makeValue( ds_send, "offset", "string", (curpage-1)*pagesize);
  516. //submit("TRZSB00204");
  517. var oParam = {};
  518. oParam.id = "TRZSB00204";
  519. oParam.service = "batchinfoapp.BatchInfo";
  520. oParam.method = "reqGetBatchLogMessage";
  521. oParam.inds = "req=ds_send";
  522. oParam.outds = "ds_main_list_batlog=batlog";
  523. oParam.async = false;
  524. tranf_submit(oParam);
  525. }
  526. function fOpenResultFilePopup() {
  527. var curRow = group5.grd_batlog.row;
  528. if ( curRow > 0 ) {
  529. // 실행결과 파일 다운로드
  530. var objArg = new Object();
  531. objArg.prgmexecno = ds_main_list_batlog.getColumn(curRow, "prgmexecno");
  532. frmf_modal("SPZSB00302", "SPZSB00302", objArg, "", "", "400", "400", "", "", "", "", "", "M");
  533. //model.refresh();
  534. }
  535. }
  536. function fOpenLogDetailPopup() {
  537. var curRow = group5.grd_batlog.row;
  538. if (curRow > 0) {
  539. // 로그 상세 조회 팝업
  540. var objArg = new Object();
  541. objArg.prgmexecno = ds_main_list_batlog.getColumn(curRow, "prgmexecno");
  542. frmf_modal("SPZSB00303", "SPZSB00303", objArg, "", "", "400", "400", "", "", "", "", "", "M");
  543. }
  544. }
  545. function group5_group6_btn_select_onclick(obj:Button, e:ClickEventInfo) {
  546. fGetLogList();
  547. }
  548. function group5_group6_ipt_fromdt_onkillfocus(obj:Calendar, e:KillFocusEventInfo) {
  549. fGetBatchList();
  550. }
  551. function group5_group6_ipt_todt_onkillfocus(obj:Calendar, e:KillFocusEventInfo) {
  552. fGetBatchList();
  553. }
  554. function group5_group6_ipt_exernm_onclick(obj:Edit, e:ClickEventInfo) {
  555. frmf_setParameter("search_condition", "userid");
  556. frmf_setParameter("search_term", sysf_getUserId());
  557. frmf_setParameter("resultref", "ds_hidden_userinfo");
  558. frmf_modal("SPZSU10100", "SPZSU10100", "", "", "", "", "", "", "", "", "", "", "M");
  559. var userinfo = ds_hidden.getColumn(0, "userinfo");
  560. var userinfos = userinfo.split("|");
  561. ds_send.setColumn( 0, "execrid", userinfos[2]);
  562. ds_send.setColumn( 0, "execrnm", userinfos[3]);
  563. //model.refresh();
  564. }
  565. function group5_grd_batlog_onlbuttonup(obj:Grid, e:MouseEventInfo) {
  566. var cur_col = group5.grd_batlog.col;
  567. if (cur_col == 3) { // 로그 조회
  568. fOpenLogDetailPopup();
  569. } else if (cur_col == 12) { // 결과 파일 조회
  570. fOpenResultFilePopup();
  571. }
  572. }
  573. function SPZSB00301_ontimer(obj:Form, e:TimerEventInfo)
  574. {
  575. fGetLogList();
  576. }
  577. function group5_checkbox1_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  578. {
  579. }
  580. function group5_checkbox1_onclick(obj:CheckBox, e:ClickEventInfo)
  581. {
  582. fSetAutoRepeat();
  583. }
  584. function ds_send_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  585. {
  586. }
  587. ]]></Script>
  588. </Form>
  589. </FDL>