SPZSB00301_배치로그조회팝업.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPZSB00301" position="absolute 0 0 954 571" titletext="배치 로그 관리" onload="SPZSB00301_onload" ontimer="SPZSB00301_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 73 953 570" id="group5" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Static text="배치 로그 목록" position="absolute 0 0 133 18" id="caption48" class="tit_2" anchor="default"/>
  11. <Shape position="absolute 0 67 950 73" linetype="vertical" id="line20" class="line_1" anchor="default"/>
  12. <Grid position="absolute 0 21 953 497" id="grd_batlog" visible="true" binddataset="ds_grd_batlog" anchor="default" oncellclick="group5_grd_batlog_oncellclick" autofittype="col">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="300"/>
  17. <Column size="60"/>
  18. <Column size="20"/>
  19. <Column size="130"/>
  20. <Column size="130"/>
  21. <Column size="0"/>
  22. <Column size="0"/>
  23. <Column size="75"/>
  24. <Column size="75"/>
  25. <Column size="75"/>
  26. <Column size="55"/>
  27. <Column size="20"/>
  28. <Column size="0"/>
  29. <Column size="0"/>
  30. <Column size="0"/>
  31. <Column size="0"/>
  32. </Columns>
  33. <Rows>
  34. <Row size="24" band="head"/>
  35. <Row size="24"/>
  36. </Rows>
  37. <Band id="head">
  38. <Cell text="프로그램명"/>
  39. <Cell col="1" colspan="2" text="실행상태" taborder="undefined"/>
  40. <Cell col="3" text="시작시간"/>
  41. <Cell col="4" text="종료시간"/>
  42. <Cell col="5" text="실행자"/>
  43. <Cell col="6" text="노드명"/>
  44. <Cell col="7" text="처리건수"/>
  45. <Cell col="8" text="정상건수"/>
  46. <Cell col="9" text="오류건수"/>
  47. <Cell col="10" colspan="2" text="생성파일수" taborder="undefined"/>
  48. <Cell col="12" text="모듈명"/>
  49. <Cell col="13" text="프로그램ID"/>
  50. <Cell col="14" text="파라메터"/>
  51. <Cell col="15" text="배치실행번호"/>
  52. </Band>
  53. <Band id="body">
  54. <Cell text="bind:prgmnm"/>
  55. <Cell col="1" displaytype="combo" edittype="combo" style="align:center;" text="bind:prcsstat" combodataset="ds_init_cmb_runstat" combocodecol="value" combodatacol="label"/>
  56. <Cell col="2" displaytype="button" edittype="button" style="controlbackground:URL('theme://images\icon_btn.png') center middle;"/>
  57. <Cell col="3" text="bind:fromdt" mask="####-##-## ##:##:##"/>
  58. <Cell col="4" text="bind:enddt" mask="####-##-## ##:##:##"/>
  59. <Cell col="5" text="bind:execrid"/>
  60. <Cell col="6" text="bind:execnode"/>
  61. <Cell col="7" text="bind:prcscnt"/>
  62. <Cell col="8" text="bind:sucscnt"/>
  63. <Cell col="9" text="bind:failcnt"/>
  64. <Cell col="10" text="bind:cnt"/>
  65. <Cell col="11" displaytype="button" edittype="button" style="controlbackground:URL('theme://images\icon_btn.png') center middle;"/>
  66. <Cell col="12" text="bind:modulenm"/>
  67. <Cell col="13" text="bind:prgmid"/>
  68. <Cell col="14" text="bind:paramcnts"/>
  69. <Cell col="15" text="bind:prgmexecno"/>
  70. </Band>
  71. </Format>
  72. </Formats>
  73. </Grid>
  74. <CheckBox id="chk_autosearch" taborder="1" text="자동조회" position="absolute 879 -2 949 18" value="true" onclick="group5_chk_autosearch_onclick" anchor="default"/>
  75. <Shape id="line2" class="line_10" position="absolute 0 17 953 21" anchor="default"/>
  76. </Layout>
  77. </Layouts>
  78. </Div>
  79. <Div id="grp_sea" taborder="6" position="absolute 0 25 953 65" class="div_SA">
  80. <Layouts>
  81. <Layout>
  82. <Shape id="line18" linetype="vertical" class="line_4" position="absolute 870 10 876 32" anchor="default"/>
  83. <Static id="caption59" text="프로그램명 :" class="search_name" position="absolute 13 12 113 29" anchor="default"/>
  84. <Button id="btn_select" taborder="1" text="조회" class="btn1" position="absolute 888 10 944 32" anchor="default" onclick="grp_sea_btn_select_onclick"/>
  85. <Static id="caption10" text="시작일자 :" class="search_name" position="absolute 393 12 483 29" anchor="default"/>
  86. <Calendar id="ipt_fromdt" taborder="2" class="input_search" position="absolute 479 11 619 30" anchor="default"/>
  87. <Combo id="cmb_batprgm" taborder="3" innerdataset="@ds_cmb_prgmitem" codecolumn="modulenm" datacolumn="prgmnm" class="combo_search" position="absolute 114 11 379 30" anchor="default"/>
  88. <Static id="caption1" text="종료일자 :" class="search_name" position="absolute 638 12 738 29" anchor="default"/>
  89. <Calendar id="ipt_todt" taborder="4" class="input_search" position="absolute 723 11 863 30" anchor="default"/>
  90. <Static id="caption2" text="실행자명 :" class="search_name" visible="false" position="absolute 153 12 243 29" anchor="default"/>
  91. <Edit id="ipt_exernm" taborder="5" visible="false" position="absolute 238 11 338 30" anchor="default"/>
  92. </Layout>
  93. </Layouts>
  94. </Div>
  95. <Static id="caption6" text="배치 로그 조회 팝업" class="tit_1" position="absolute 0 0 160 25"/>
  96. </Layout>
  97. </Layouts>
  98. <Objects>
  99. <Dataset id="ds_grd_batlog" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  100. <ColumnInfo>
  101. <Column id="prgmnm" type="STRING"/>
  102. <Column id="prcsstat" type="STRING"/>
  103. <Column id="fromdt" type="STRING"/>
  104. <Column id="enddt" type="STRING"/>
  105. <Column id="execrid" type="STRING"/>
  106. <Column id="execnode" type="STRING"/>
  107. <Column id="prcscnt" type="STRING"/>
  108. <Column id="sucscnt" type="STRING"/>
  109. <Column id="failcnt" type="STRING"/>
  110. <Column id="cnt" type="STRING"/>
  111. <Column id="modulenm" type="STRING"/>
  112. <Column id="prgmid" type="STRING"/>
  113. <Column id="paramcnts" type="STRING"/>
  114. <Column id="prgmexecno" type="STRING"/>
  115. </ColumnInfo>
  116. </Dataset>
  117. <Dataset id="ds_sendLogInfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  118. <ColumnInfo>
  119. <Column id="fromdt" type="STRING" size="256"/>
  120. <Column id="enddt" type="STRING" size="256"/>
  121. <Column id="prgmid" type="STRING" size="256"/>
  122. <Column id="prgmnm" type="STRING" size="256"/>
  123. <Column id="prgmuid" type="STRING" size="256"/>
  124. <Column id="execrid" type="STRING" size="256"/>
  125. <Column id="modulenm" type="STRING" size="256"/>
  126. <Column id="prgmexecno" type="STRING" size="256"/>
  127. <Column id="autorepeat" type="STRING" size="256"/>
  128. <Column id="usersrch" type="STRING" size="256"/>
  129. </ColumnInfo>
  130. <Rows>
  131. <Row>
  132. <Col id="fromdt"/>
  133. <Col id="enddt"/>
  134. <Col id="prgmid"/>
  135. <Col id="prgmnm"/>
  136. <Col id="prgmuid"/>
  137. <Col id="execrid"/>
  138. <Col id="modulenm"/>
  139. <Col id="prgmexecno"/>
  140. <Col id="autorepeat"/>
  141. </Row>
  142. </Rows>
  143. </Dataset>
  144. <Dataset id="ds_cmb_prgmitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  145. <ColumnInfo>
  146. <Column id="prgmnm" type="STRING" size="256"/>
  147. <Column id="prgmuid" type="STRING" size="256"/>
  148. <Column id="prgmfid" type="STRING" size="256"/>
  149. </ColumnInfo>
  150. </Dataset>
  151. <Dataset id="ds_init_cmb_runstat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  152. <ColumnInfo>
  153. <Column id="label" type="STRING" size="256"/>
  154. <Column id="value" type="STRING" size="256"/>
  155. </ColumnInfo>
  156. <Rows>
  157. <Row>
  158. <Col id="label">실행중</Col>
  159. <Col id="value">S</Col>
  160. </Row>
  161. <Row>
  162. <Col id="label">정상종료</Col>
  163. <Col id="value">E</Col>
  164. </Row>
  165. <Row>
  166. <Col id="label">에러발생</Col>
  167. <Col id="value">F</Col>
  168. </Row>
  169. <Row>
  170. <Col id="label">관심에러</Col>
  171. <Col id="value">W</Col>
  172. </Row>
  173. <Row>
  174. <Col id="label">중요에러</Col>
  175. <Col id="value">X</Col>
  176. </Row>
  177. </Rows>
  178. </Dataset>
  179. <Dataset id="ds_timer" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  180. <ColumnInfo>
  181. <Column id="timer" type="STRING" size="256"/>
  182. </ColumnInfo>
  183. </Dataset>
  184. </Objects>
  185. <Bind>
  186. <BindItem id="item0" compid="grp_sea.ipt_fromdt" propid="value" datasetid="ds_sendLogInfo" columnid="fromdt"/>
  187. <BindItem id="item1" compid="grp_sea.ipt_todt" propid="value" datasetid="ds_sendLogInfo" columnid="enddt"/>
  188. <BindItem id="item2" compid="grp_sea.cmb_batprgm" propid="value" datasetid="ds_sendLogInfo" columnid="modulenm"/>
  189. <BindItem id="item3" compid="group5.chk_autosearch" propid="value" datasetid="ds_sendLogInfo" columnid="autorepeat"/>
  190. </Bind>
  191. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  192. * System Name :
  193. * Job Name :
  194. * Creator :
  195. * Make Date : 2014-11-19
  196. * Description :
  197. *---------------------------------------------------------------------------------------
  198. * Modify Date Modifier Modify Description
  199. *---------------------------------------------------------------------------------------
  200. * 2014-11-19 Live Converter TF->XP
  201. *
  202. *---------------------------------------------------------------------------------------
  203. ****************************************************************************************/
  204. include "com_commonxp::comm_main.xjs"; // 전체공통 스크립트
  205. var gTimer = 0;
  206. var gInterval = 5000;
  207. function SPZSB00301_onload(obj:Form, e:LoadEventInfo)
  208. {
  209. frmf_initForm(obj);
  210. fInitialize();
  211. }
  212. function fInitialize()
  213. {
  214. var paramFlag = true;
  215. try{
  216. ds_sendLogInfo.copyData(arg_ds_temp_zsb);
  217. } catch(e){
  218. paramFlag = false;
  219. //sysf_catchTrace(e);
  220. }
  221. if (!paramFlag) {
  222. //ds_sendLogInfo.addRow();
  223. try {
  224. ds_sendLogInfo.setColumn(0, "execrid", execrid);
  225. } catch(e) {
  226. ds_sendLogInfo.setColumn(0, "execrid", sysf_getUserId());
  227. //sysf_catchTrace(e);
  228. }
  229. try {
  230. ds_sendLogInfo.setColumn(0, "prgmid", prgmid);
  231. } catch(e) {
  232. ds_sendLogInfo.setColumn(0, "prgmid", "");
  233. //sysf_catchTrace(e);
  234. }
  235. try {
  236. ds_sendLogInfo.setColumn(0, "modulenm", modulenm);
  237. } catch(e) {
  238. ds_sendLogInfo.setColumn(0, "modulenm", "");
  239. //sysf_catchTrace(e);
  240. }
  241. try {
  242. ds_sendLogInfo.setColumn(0, "fromdt", fromdd);
  243. } catch(e) {
  244. ds_sendLogInfo.setColumn(0, "fromdt", utlf_addDate(utlf_getCurrentDate(), -1));
  245. //sysf_catchTrace(e);
  246. }
  247. try {
  248. ds_sendLogInfo.setColumn(0, "enddt", todd);
  249. } catch(e) {
  250. ds_sendLogInfo.setColumn(0, "enddt", utlf_getCurrentDate());
  251. //sysf_catchTrace(e);
  252. }
  253. try {
  254. ds_sendLogInfo.setColumn(0, "autorepeat", autorepeat);
  255. } catch(e) {
  256. ds_sendLogInfo.setColumn(0, "autorepeat", "true");
  257. //sysf_catchTrace(e);
  258. }
  259. try {
  260. ds_sendLogInfo.setColumn(0, "usersrch", usersrch);
  261. } catch(e) {
  262. ds_sendLogInfo.setColumn(0, "usersrch", "false");
  263. //sysf_catchTrace(e);
  264. }
  265. }
  266. fGetBatchItemAsuser();
  267. if(!utlf_isNull(ds_sendLogInfo.getColumn(0,"prgmid"))){
  268. fGetBatchLogList();
  269. } else {
  270. grp_sea.cmb_batprgm.index = 0;
  271. }
  272. fSetAutoRepeat();
  273. }
  274. function cbf_TRZSB00201(sSvcId, nErrorCode, sErrorMsg) {
  275. if(nErrorCode < 0) return;
  276. }
  277. function grp_sea_btn_select_onclick(obj:Button, e:ClickEventInfo)
  278. {
  279. fGetBatchLogList();
  280. fGetBatchItemAsuser();
  281. }
  282. function fGetBatchLogList()
  283. {
  284. tranf_submit({
  285. id: "TRZSB00302"
  286. , service: "batchinfoapp.BatchInfo"
  287. , method: "reqGetBatchLogList"
  288. , inds : "req=ds_sendLogInfo"
  289. , outds: "ds_grd_batlog=batlog"
  290. , async: true
  291. , callback : "cbf_TRZSB00302"
  292. });
  293. }
  294. function cbf_TRZSB00302(sSvcId, nErrorCode, sErrorMsg) {
  295. if(nErrorCode < 0) return;
  296. }
  297. function fGetBatchItemAsuser()
  298. {
  299. tranf_submit({
  300. id: "TRZSB00303"
  301. , service: "batchinfoapp.BatchInfo"
  302. , method: "reqGetBatchItemAsUser"
  303. , inds : "req=ds_sendLogInfo"
  304. , outds: "ds_cmb_prgmitem=prgmitem"
  305. , async: true
  306. , callback : "cbf_TRZSB00303"
  307. });
  308. }
  309. function cbf_TRZSB00303(sSvcId, nErrorCode, sErrorMsg) {
  310. if(nErrorCode < 0) return;
  311. }
  312. function group5_grd_batlog_oncellclick(obj:Grid, e:GridClickEventInfo)
  313. {
  314. var rowPos = ds_grd_batlog.rowposition;
  315. var prgmexecno = ds_grd_batlog.getColumn(rowPos, "prgmexecno");
  316. if(e.col == 2){
  317. var oArg_logDetail = new Object();
  318. oArg_logDetail.prgmexecno = prgmexecno;
  319. // 상세로그 화면 호출
  320. frmf_open("SPZSB00303", "SPZSB00303", oArg_logDetail, null, null, null, null, null, null, null, null, null, "M");
  321. }else if(e.col == 11){
  322. var oArg_fileList = new Object();
  323. oArg_fileList.prgmexecno = prgmexecno;
  324. // 파일리스트 화면 호출
  325. frmf_open("SPZSB00302", "SPZSB00302", oArg_fileList, null, null, null, null, null, null, null, null, null, "M");
  326. }
  327. }
  328. function fSetAutoRepeat()
  329. {
  330. var autoRepeat = ds_sendLogInfo.getColumn(0, "autorepeat");
  331. // 타이머 설정
  332. if (autoRepeat == "true") { // 자동조회 on 상태
  333. if (gTimer == 0) {
  334. this.setTimer(0, gInterval); //gTimer = window.setInterval("fDispWaitTime('G')",gInterval);
  335. }
  336. } else { // 자동조회 off 상태
  337. if (gTimer > 0) {
  338. this.killTimer(0); //window.clearinterval(gTimer);
  339. gTimer = 0;
  340. }
  341. }
  342. }
  343. function SPZSB00301_ontimer(obj:Form, e:TimerEventInfo)
  344. {
  345. var autoRepeat = ds_sendLogInfo.getColumn(0, "autorepeat");
  346. if (autoRepeat == "true") { // 자동조회 on 상태
  347. gTimer++;
  348. fGetBatchLogList();
  349. }
  350. }
  351. function group5_chk_autosearch_onclick(obj:CheckBox, e:ClickEventInfo)
  352. {
  353. fGetBatchLogList();
  354. fSetAutoRepeat();
  355. }
  356. ]]></Script>
  357. </Form>
  358. </FDL>