SMZSB00401_배치스케쥴관리.xfdl 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMZSB00401" position="absolute 0 0 1221 805" titletext="배치 스케쥴관리" onload="SMZSB00401_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 25 1195 769" id="grp_body" scrollbars="autoboth" anchor="all">
  8. <Layouts>
  9. <Layout width="1195" height="744">
  10. <Shape position="absolute 0 173 1194 179" linetype="vertical" id="line4" class="line_2" anchor="default"/>
  11. <Shape position="absolute 0 149 1194 155" linetype="vertical" id="line3" class="line_2" anchor="default"/>
  12. <Shape position="absolute 0 125 1194 131" linetype="vertical" id="line2" class="line_2" anchor="default"/>
  13. <Shape position="absolute 0 101 1194 107" linetype="vertical" id="line6" class="line_2" anchor="default"/>
  14. <Div position="absolute 0 14 1194 49" align="align:center top;" id="group2" anchor="default">
  15. <Layouts>
  16. <Layout>
  17. <Shape position="absolute 1103 7 1109 29" linetype="vertical" id="line13" anchor="default"/>
  18. </Layout>
  19. </Layouts>
  20. </Div>
  21. <Static text="스케쥴 입력/수정" position="absolute 6 463 145 476" id="caption1" class="tit_2" anchor="left bottom"/>
  22. <Static text="프로그램 명" position="absolute 0 485 100 508" id="cap_bizabbrinput" class="cell_1" anchor="left bottom"/>
  23. <Static text="업무구분" position="absolute 435 485 499 508" id="cap_msgtypeinput" class="cell_1" anchor="left bottom"/>
  24. <Static text="스케쥴 명" position="absolute 0 509 100 532" id="cap_msgcnts1" class="cell_1" anchor="left bottom"/>
  25. <Static text="실행 스케쥴" position="absolute 0 533 100 556" id="cap_msgcnts2" class="cell_1" anchor="left bottom"/>
  26. <Static text="배치 파라메터" position="absolute 0 557 100 580" id="cap_msgcnts3" class="cell_1" anchor="left bottom"/>
  27. <Static text="모듈 명" position="absolute 598 485 698 508" id="cap_msgnoinput" class="cell_1" anchor="left bottom"/>
  28. <Static text="시스템 파라메터" position="absolute 0 581 100 604" id="caption19" class="cell_1" anchor="left bottom"/>
  29. <Static text="스케쥴 조회 목록" position="absolute 6 58 124 72" id="caption20" class="tit_2" anchor="default"/>
  30. <Static text="프로그램 ID" position="absolute 898 485 998 508" id="cap_msgcd" class="cell_1" anchor="left bottom"/>
  31. <Grid position="absolute 0 79 1194 452" id="grd_schelist" binddataset="ds_grd_schelist" anchor="all" oncellclick="grp_body_grd_schelist_oncellclick">
  32. <Formats>
  33. <Format id="default">
  34. <Columns>
  35. <Column size="23"/>
  36. <Column size="230"/>
  37. <Column size="125"/>
  38. <Column size="60"/>
  39. <Column size="40"/>
  40. <Column size="50"/>
  41. <Column size="210"/>
  42. <Column size="0"/>
  43. <Column size="0"/>
  44. <Column size="0"/>
  45. <Column size="0"/>
  46. <Column size="230"/>
  47. <Column size="200"/>
  48. <Column size="0"/>
  49. <Column size="0"/>
  50. <Column size="0"/>
  51. <Column size="0"/>
  52. </Columns>
  53. <Rows>
  54. <Row size="24" band="head"/>
  55. <Row size="24"/>
  56. </Rows>
  57. <Band id="head">
  58. <Cell/>
  59. <Cell col="1" text="스케쥴 명칭"/>
  60. <Cell col="2" text="실행 스케쥴"/>
  61. <Cell col="3" text="실행자"/>
  62. <Cell col="4" text="노드"/>
  63. <Cell col="5" text="사용"/>
  64. <Cell col="6" text="프로그램 명"/>
  65. <Cell col="7" text="업무구분"/>
  66. <Cell col="8" text="모듈명"/>
  67. <Cell col="9" text="프로그램 ID"/>
  68. <Cell col="10" text="배치사용"/>
  69. <Cell col="11" text="배치 파라메터"/>
  70. <Cell col="12" text="시스템 파라메터"/>
  71. <Cell col="13" text="최초등록자"/>
  72. <Cell col="14" text="등록일시"/>
  73. <Cell col="15" text="최종수정자"/>
  74. <Cell col="16" text="수정일시"/>
  75. </Band>
  76. <Band id="body">
  77. <Cell displaytype="image"/>
  78. <Cell col="1" style="align:left;padding:0 0 0 5;" text="bind:schenm"/>
  79. <Cell col="2" style="align:left;padding:0 0 0 5;" text="bind:schedt"/>
  80. <Cell col="3" style="align:left;" text="bind:execrid"/>
  81. <Cell col="4" text="bind:execnode"/>
  82. <Cell col="5" displaytype="combo" edittype="combo" style="padding:0 0 0 5;" text="bind:useyn" combodataset="ds_init_statuslist_status" combocodecol="value" combodatacol="lavel"/>
  83. <Cell col="6" style="align:left;padding:0 0 0 5;" text="bind:prgmnm"/>
  84. <Cell col="7" text="bind:bizabbr"/>
  85. <Cell col="8" text="bind:modulenm"/>
  86. <Cell col="9" text="bind:prgmid"/>
  87. <Cell col="10" text="bind:batchyn"/>
  88. <Cell col="11" style="align:left;padding:0 0 0 5;" text="bind:prgmparam"/>
  89. <Cell col="12" style="align:left;padding:0 0 0 5;" text="bind:jvmparam"/>
  90. <Cell col="13" text="bind:fstrgstrid"/>
  91. <Cell col="14" text="bind:fstrgstdt"/>
  92. <Cell col="15" text="bind:lastupdtrid"/>
  93. <Cell col="16" text="bind:lastupdtdt"/>
  94. </Band>
  95. </Format>
  96. </Formats>
  97. </Grid>
  98. <Button position="absolute 1070 459 1123 478" id="btn_clear" class="btn2" taborder="14" text="지우기" anchor="right bottom" onclick="grp_body_btn_clear_onclick"/>
  99. <Button position="absolute 1118 56 1193 75" id="btn_delete" class="btn2" text="선택행삭제" anchor="top right" onclick="grp_body_btn_delete_onclick"/>
  100. <Button position="absolute 1025 459 1067 478" id="btn_update" class="btn2_letter2" taborder="13" text="수정" anchor="right bottom" onclick="grp_body_btn_update_onclick"/>
  101. <Button position="absolute 980 459 1022 478" id="btn_insert" class="btn2_letter2" taborder="12" text="추가" anchor="right bottom" onclick="grp_body_btn_insert_onclick"/>
  102. <Static text="최종 수정자" position="absolute 598 605 698 628" align="align:center middle;" id="caption4" class="cell_1" anchor="left bottom"/>
  103. <Static text="최종 수정일시" position="absolute 898 605 998 628" align="align:center middle;" id="caption10" class="cell_1" anchor="left bottom"/>
  104. <Static text="최초 등록자" position="absolute 0 605 100 628" align="align:center middle;" id="caption12" class="cell_1" anchor="left bottom"/>
  105. <Static text="최초 등록일시" position="absolute 299 605 399 628" align="align:center middle;" id="caption13" class="cell_1" anchor="left bottom"/>
  106. <Button position="absolute 1052 56 1116 75" id="btn_loadexcel" class="btn2" text="엑셀입력" anchor="top right" onclick="grp_body_btn_loadexcel_onclick"/>
  107. <Button position="absolute 985 56 1049 75" id="btn_saveexcel" class="btn2" text="엑셀저장" anchor="top right" onclick="grp_body_btn_saveexcel_onclick"/>
  108. <Static text="실행 노드" position="absolute 898 509 998 532" id="caption3" class="cell_1" anchor="left bottom"/>
  109. <Static text="실행자" position="absolute 598 509 698 532" id="caption5" class="cell_1" anchor="left bottom"/>
  110. <Static text="사용여부" position="absolute 435 509 499 532" id="caption7" class="cell_1" anchor="left bottom"/>
  111. <Static text="실행 스케쥴은 &quot;분 시 일 월 주&quot; 의 5개 필드로 구성된다. 모든 경우의 수는 * 로 표시하며 하나의 필드에 여러값을 지정하려면 , 를 사용하여 나열하거나 - 를 사용하여 범위를 지정한다. 주는 0(일) ~ 6(토) 값이 사용되며, &#13;&#10;매월 말일은 32로 표현한다. 여러 실행 스케쥴을 | 을 사용하여 한번에 기술할 수 있다. &#13;&#10;작성예) 매일 저녁9시 5,25,45분에 실행 : 5,25,45 21 * * * , 일요일 새벽 5,6,7시에 실행 : 0 5-7 * * 0, 매월 말일 밤 11시에 실행 : 0 23 32 * * , 매일 저녁 8시 30 분과 9시에 실행 : 30 20 * * * | 0 21 * * *&#13;&#10;배치 파라메터는 배치 프로그램에 전달되는 파라메터로 $세션명 또는 %날짜포멧 형태의 특수 표현식을 사용할 수 있다. $userid 는 세션값 중 userid를 지정하며, $systeminstcd는 시스템의 기관코드를 지정한다.&#13;&#10;또한 %yyyyMMdd는 오늘 날짜를 지정하는데, 날짜포멧 표현에는 날수를 더하거나 뺄수 있는 연산기능을 제공하여 %yyyyMMdd+4 또는 %yyyyMMdd-7 과 같이 사용가능하다.&#13;&#10;시스템 파라메터는 Java의 시스템 프로퍼티를 지정할 수 있는데 -Dlive.batch.세션명=세션값 형태로 필요한 세션 값을 지정할 수 있다. &#13;&#10;예를 들어 -Dlive.batch.dutplceinstcd=$systeminstcd와 같이 지정하면 dutplceinstcd 세션값이 시스템의 기관코드 값으로 설정된다." position="absolute 0 633 1195 740" id="caption8" class="cell_1" anchor="left right bottom"/>
  112. <Combo position="absolute 103 486 430 505" id="cmb_prgmnm" class="combo_essential" taborder="5" innerdataset="ds_init_cmb_prgmnm" datacolumn="prgmnm" codecolumn="prgmid" anchor="left bottom" style="padding:0 0 0 3;" onitemchanged="grp_body_cmb_prgmnm_onitemchanged"/>
  113. <Combo position="absolute 500 486 595 505" id="cmb_bizabbr" enable="false" taborder="6" innerdataset="@ds_init_cmb_bizabbr_cond" datacolumn="cdengabbrnm" codecolumn="cdengabbrnm" anchor="left bottom"/>
  114. <Edit readonly="true" position="absolute 701 486 894 505" id="ipt_modulenm" taborder="7" anchor="left bottom" style="background:URL('theme://images/bg_edit_D.png') stretch 5,5;"/>
  115. <Edit readonly="true" position="absolute 1001 486 1194 505" id="ipt_prgmid" anchor="left right bottom" style="background:URL('theme://images/bg_edit_D.png') stretch 5,5;"/>
  116. <Edit position="absolute 103 510 430 529" id="ipt_schenm" class="input_essential" taborder="8" anchor="left bottom"/>
  117. <Combo position="absolute 500 510 595 529" id="cmb_useyn" taborder="6" codecolumn="value" datacolumn="label" anchor="left bottom" innerdataset="@ds_item_useyn">
  118. <Dataset id="innerdataset">
  119. <ColumnInfo>
  120. <Column id="codecolumn"/>
  121. <Column id="datacolumn"/>
  122. </ColumnInfo>
  123. <Rows>
  124. <Row>
  125. <Col id="codecolumn">Y</Col>
  126. <Col id="datacolumn">일반사용</Col>
  127. </Row>
  128. <Row>
  129. <Col id="codecolumn">N</Col>
  130. <Col id="datacolumn">사용중지</Col>
  131. </Row>
  132. <Row>
  133. <Col id="codecolumn">W</Col>
  134. <Col id="datacolumn">관심사용</Col>
  135. </Row>
  136. <Row>
  137. <Col id="codecolumn">X</Col>
  138. <Col id="datacolumn">중요사용</Col>
  139. </Row>
  140. </Rows>
  141. </Dataset>
  142. </Combo>
  143. <Edit position="absolute 701 510 894 529" id="ipt_execrid" class="input_essential" taborder="7" anchor="left bottom"/>
  144. <Combo position="absolute 1001 510 1194 529" id="ipt_execnode" innerdataset="ds_init_ipt_execnode" datacolumn="label" codecolumn="value" anchor="left right bottom"/>
  145. <Edit position="absolute 103 534 595 553" id="ipt_schedt" class="input_essential" taborder="9" anchor="left bottom"/>
  146. <Edit position="absolute 103 558 1194 577" id="ipt_prgmparam" class="input_default" taborder="10" anchor="left right bottom"/>
  147. <Edit position="absolute 103 582 1194 601" id="ipt_jvmparam" taborder="11" anchor="left right bottom"/>
  148. <Edit readonly="true" position="absolute 103 606 296 625" id="opt_fstrgstrid" anchor="left bottom" style="background:URL('theme://images/bg_edit_D.png') stretch 5,5;"/>
  149. <Edit readonly="true" position="absolute 701 607 894 626" id="opt_lastupdtrid" anchor="left bottom" style="background:URL('theme://images/bg_edit_D.png') stretch 5,5;"/>
  150. <Button position="absolute 1128 459 1192 478" id="btn_viewlog" class="btn2" taborder="14" text="로그보기" anchor="right bottom" onclick="grp_body_btn_viewlog_onclick"/>
  151. <Static text="* 스케줄 입력시 가급적 기존에 등록된 스케줄시간과 겹치지 않도록 하며, 21시50분 ~ 22시는 피하도록한다." position="absolute 600 535 1181 555" id="caption9" anchor="left right bottom"/>
  152. <Div id="grp_sea" taborder="15" position="absolute 0 0 1195 43" class="div_SA" anchor="left top right">
  153. <Layouts>
  154. <Layout>
  155. <Static id="caption2" text="업무 구분 :" class="search_name" position="absolute 16 16 96 33" anchor="default"/>
  156. <Combo id="cmb_bizabbr_cond" taborder="1" innerdataset="ds_init_cmb_bizabbr_cond" codecolumn="cdengabbrnm" datacolumn="cdengabbrnm" class="combo_s_essential" position="absolute 96 14 251 33" anchor="default"/>
  157. <Static id="caption22" text="검색 명 :" class="search_name" position="absolute 296 16 360 33" anchor="default"/>
  158. <Edit id="ipt_searchnm_cond" taborder="2" class="input_search" position="absolute 364 14 564 33" anchor="default"/>
  159. <Static id="caption11" text="사용 수준 :" class="search_name" position="absolute 605 16 682 33" anchor="default"/>
  160. <Combo id="combo1" taborder="3" innerdataset="ds_init_combo1" codecolumn="value" datacolumn="label" class="combo_s" position="absolute 687 14 797 33" anchor="default"/>
  161. <Button id="btn_save" taborder="4" text="저장" class="btn3" position="absolute 1059 11 1115 33" anchor="top right" onclick="grp_top_btn_save_onclick"/>
  162. <Button id="btn_init" taborder="5" text="초기화" onclick="grp_top_btn_init_onclick" class="btn3" position="absolute 1118 11 1186 33" anchor="top right"/>
  163. <Button id="btn_search" taborder="6" text="조회" onclick="grp_body_group2_btn_search_onclick" class="btn1" position="absolute 1000 11 1056 33" anchor="top right"/>
  164. </Layout>
  165. </Layouts>
  166. </Div>
  167. <Calendar id="opt_fstrgstdt" taborder="16" dateformat="yyyy-MM-dd HH:mm:ss" editformat="yyyy-MM-dd HH:mm:ss" class="NoCalIcon" position="absolute 401 607 594 626" style="popupbackground:URL('theme://images/bg_calPopup.png') stretch 10,60;padding:0 0 0 5;background:URL('theme://images/bg_edit_R.png') stretch 5,5;align:left middle;" readonly="true" anchor="left bottom"/>
  168. <Calendar id="opt_lastupdtdt" taborder="17" dateformat="yyyy-MM-dd HH:mm:ss" editformat="yyyy-MM-dd HH:mm:ss" class="NoCalIcon" position="absolute 1001 607 1194 626" style="popupbackground:URL('theme://images/bg_calPopup.png') stretch 10,60;padding:0 0 0 5;background:URL('theme://images/bg_edit_R.png') stretch 5,5;align:left middle;" readonly="true" anchor="left right bottom"/>
  169. </Layout>
  170. </Layouts>
  171. </Div>
  172. <Static id="caption6" text="배치 스케쥴 관리" onclick="group1_caption6_onclick" class="tit_1" position="absolute 0 0 169 25"/>
  173. </Layout>
  174. </Layouts>
  175. <Objects>
  176. <Dataset id="ds_init_cmb_bizabbr_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  177. <ColumnInfo>
  178. <Column id="cdengabbrnm" type="STRING"/>
  179. <Column id="cdengabbrnm" type="STRING"/>
  180. </ColumnInfo>
  181. </Dataset>
  182. <Dataset id="ds_init_combo1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  183. <ColumnInfo>
  184. <Column id="label" type="STRING"/>
  185. <Column id="value" type="STRING"/>
  186. </ColumnInfo>
  187. <Rows>
  188. <Row>
  189. <Col id="label">전체</Col>
  190. </Row>
  191. <Row>
  192. <Col id="label">일반사용</Col>
  193. <Col id="value">Y</Col>
  194. </Row>
  195. <Row>
  196. <Col id="label">사용중비</Col>
  197. </Row>
  198. </Rows>
  199. </Dataset>
  200. <Dataset id="ds_grd_schelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  201. <ColumnInfo>
  202. <Column id="schenm" type="STRING"/>
  203. <Column id="schedt" type="STRING"/>
  204. <Column id="execrid" type="STRING"/>
  205. <Column id="execnode" type="STRING"/>
  206. <Column id="useyn" type="STRING"/>
  207. <Column id="prgmnm" type="STRING"/>
  208. <Column id="bizabbr" type="STRING"/>
  209. <Column id="modulenm" type="STRING"/>
  210. <Column id="prgmid" type="STRING"/>
  211. <Column id="batchyn" type="STRING"/>
  212. <Column id="prgmparam" type="STRING"/>
  213. <Column id="jvmparam" type="STRING"/>
  214. <Column id="fstrgstrid" type="STRING"/>
  215. <Column id="fstrgstdt" type="STRING"/>
  216. <Column id="lastupdtrid" type="STRING"/>
  217. <Column id="lastupdtdt" type="STRING"/>
  218. </ColumnInfo>
  219. <Rows>
  220. <Row/>
  221. </Rows>
  222. </Dataset>
  223. <Dataset id="ds_init_cmb_prgmnm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  224. <ColumnInfo>
  225. <Column id="label" type="STRING" size="256"/>
  226. <Column id="fvalue" type="STRING" size="256"/>
  227. <Column id="value" type="STRING" size="256"/>
  228. </ColumnInfo>
  229. <Rows>
  230. <Row/>
  231. </Rows>
  232. </Dataset>
  233. <Dataset id="ds_init_cmb_bizabbr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  234. <ColumnInfo>
  235. <Column id="cdengabbrnm" type="STRING"/>
  236. <Column id="cdengabbrnm" type="STRING"/>
  237. </ColumnInfo>
  238. <Rows>
  239. <Row/>
  240. </Rows>
  241. </Dataset>
  242. <Dataset id="ds_init_ipt_execnode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  243. <ColumnInfo>
  244. <Column id="label" type="STRING"/>
  245. <Column id="value" type="STRING"/>
  246. </ColumnInfo>
  247. <Rows>
  248. <Row>
  249. <Col id="label">node 1</Col>
  250. <Col id="value">1</Col>
  251. </Row>
  252. <Row>
  253. <Col id="label">node 2</Col>
  254. <Col id="value">2</Col>
  255. </Row>
  256. </Rows>
  257. </Dataset>
  258. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  259. <ColumnInfo>
  260. <Column id="bizabbr" type="STRING" size="256"/>
  261. <Column id="searchnm" type="STRING" size="256"/>
  262. <Column id="schelist" type="STRING" size="256"/>
  263. <Column id="useyn" type="STRING" size="256"/>
  264. <Column id="pagesize" type="STRING" size="256"/>
  265. <Column id="offset" type="STRING" size="256"/>
  266. </ColumnInfo>
  267. </Dataset>
  268. <Dataset id="ds_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  269. <ColumnInfo>
  270. <Column id="servicenm" type="STRING" size="256"/>
  271. <Column id="bizabbr" type="STRING" size="256"/>
  272. <Column id="modulenm" type="STRING" size="256"/>
  273. <Column id="prgmid" type="STRING" size="256"/>
  274. <Column id="schenm" type="STRING" size="256"/>
  275. <Column id="execrid" type="STRING" size="256"/>
  276. <Column id="execnode" type="STRING" size="256"/>
  277. <Column id="schedt" type="STRING" size="256"/>
  278. <Column id="prgmparam" type="STRING" size="256"/>
  279. <Column id="jvmparam" type="STRING" size="256"/>
  280. <Column id="fstrgstrid" type="STRING" size="256"/>
  281. <Column id="fstrgstdt" type="STRING" size="256"/>
  282. <Column id="lastupdtrid" type="STRING" size="256"/>
  283. <Column id="lastupdtdt" type="STRING" size="256"/>
  284. <Column id="useyn" type="STRING" size="256"/>
  285. <Column id="batchyn" type="STRING" size="256"/>
  286. <Column id="prgmnm" type="STRING" size="256"/>
  287. </ColumnInfo>
  288. <Rows>
  289. <Row/>
  290. </Rows>
  291. </Dataset>
  292. <Dataset id="ds_init_statuslist_status" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  293. <ColumnInfo>
  294. <Column id="lavel" type="STRING" size="256"/>
  295. <Column id="value" type="STRING" size="256"/>
  296. </ColumnInfo>
  297. <Rows>
  298. <Row>
  299. <Col id="lavel">일반</Col>
  300. <Col id="value">Y</Col>
  301. </Row>
  302. <Row>
  303. <Col id="lavel">중지</Col>
  304. <Col id="value">N</Col>
  305. </Row>
  306. <Row>
  307. <Col id="lavel">관심</Col>
  308. <Col id="value">W</Col>
  309. </Row>
  310. <Row>
  311. <Col id="lavel">중요</Col>
  312. <Col id="value">X</Col>
  313. </Row>
  314. </Rows>
  315. </Dataset>
  316. <Dataset id="ds_item_useyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  317. <ColumnInfo>
  318. <Column id="label" type="STRING" size="256"/>
  319. <Column id="value" type="STRING" size="256"/>
  320. </ColumnInfo>
  321. <Rows>
  322. <Row>
  323. <Col id="label">일반사용</Col>
  324. <Col id="value">Y</Col>
  325. </Row>
  326. <Row>
  327. <Col id="label">사용중지</Col>
  328. <Col id="value">N</Col>
  329. </Row>
  330. <Row>
  331. <Col id="label">관심사용</Col>
  332. <Col id="value">W</Col>
  333. </Row>
  334. <Row>
  335. <Col id="label">중요사용</Col>
  336. <Col id="value">X</Col>
  337. </Row>
  338. </Rows>
  339. </Dataset>
  340. <Dataset id="ds_send_schelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  341. <ColumnInfo>
  342. <Column id="status" type="STRING" size="256" sumtext="입력수정삭제여부"/>
  343. <Column id="rowno" type="INT" size="256" sumtext="그리드 열번호"/>
  344. <Column id="schenm" type="STRING" size="256" sumtext="스케쥴명"/>
  345. <Column id="modulenm" type="STRING" size="256" sumtext="모듈명"/>
  346. <Column id="prgmid" type="STRING" size="256" sumtext="프로그램ID"/>
  347. <Column id="schedt" type="STRING" size="256" sumtext="스케쥴시간"/>
  348. <Column id="execrid" type="STRING" size="256" sumtext="실행자"/>
  349. <Column id="execnode" type="STRING" size="256" sumtext="실행노드"/>
  350. <Column id="prgmparam" type="STRING" size="256" sumtext="프로그램파라메터"/>
  351. <Column id="jvmparam" type="STRING" size="256" sumtext="시스템파라메터"/>
  352. <Column id="useyn" type="STRING" size="256" sumtext="사용여부"/>
  353. </ColumnInfo>
  354. </Dataset>
  355. <Dataset id="ds_stat_type" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  356. <ColumnInfo>
  357. <Column id="status" type="STRING" size="256"/>
  358. </ColumnInfo>
  359. <Rows>
  360. <Row/>
  361. </Rows>
  362. </Dataset>
  363. <Dataset id="ds_search_status" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  364. <ColumnInfo>
  365. <Column id="status" type="STRING" size="256"/>
  366. </ColumnInfo>
  367. <Rows>
  368. <Row/>
  369. </Rows>
  370. </Dataset>
  371. <Dataset id="ds_schename" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  372. <ColumnInfo>
  373. <Column id="schenm" type="STRING" size="256"/>
  374. </ColumnInfo>
  375. <Rows>
  376. <Row/>
  377. </Rows>
  378. </Dataset>
  379. </Objects>
  380. <Bind>
  381. <BindItem id="item3" compid="grp_body.cmb_prgmnm" propid="value" datasetid="ds_item" columnid="prgmid"/>
  382. <BindItem id="item4" compid="grp_body.ipt_schenm" propid="value" datasetid="ds_item" columnid="schenm"/>
  383. <BindItem id="item5" compid="grp_body.ipt_schedt" propid="value" datasetid="ds_item" columnid="schedt"/>
  384. <BindItem id="item6" compid="grp_body.cmb_bizabbr" propid="value" datasetid="ds_item" columnid="bizabbr"/>
  385. <BindItem id="item7" compid="grp_body.cmb_useyn" propid="value" datasetid="ds_item" columnid="useyn"/>
  386. <BindItem id="item8" compid="grp_body.ipt_modulenm" propid="value" datasetid="ds_item" columnid="modulenm"/>
  387. <BindItem id="item9" compid="grp_body.ipt_execrid" propid="value" datasetid="ds_item" columnid="execrid"/>
  388. <BindItem id="item10" compid="grp_body.ipt_prgmid" propid="value" datasetid="ds_item" columnid="prgmid"/>
  389. <BindItem id="item11" compid="grp_body.ipt_execnode" propid="value" datasetid="ds_item" columnid="execnode"/>
  390. <BindItem id="item12" compid="grp_body.ipt_prgmparam" propid="value" datasetid="ds_item" columnid="prgmparam"/>
  391. <BindItem id="item13" compid="grp_body.ipt_jvmparam" propid="value" datasetid="ds_item" columnid="jvmparam"/>
  392. <BindItem id="item14" compid="grp_body.opt_fstrgstrid" propid="value" datasetid="ds_item" columnid="fstrgstrid"/>
  393. <BindItem id="item16" compid="grp_body.opt_lastupdtrid" propid="value" datasetid="ds_item" columnid="lastupdtrid"/>
  394. <BindItem id="item0" compid="grp_body.grp_sea.cmb_bizabbr_cond" propid="value" datasetid="ds_send" columnid="bizabbr"/>
  395. <BindItem id="item1" compid="grp_body.grp_sea.ipt_searchnm_cond" propid="value" datasetid="ds_send" columnid="searchnm"/>
  396. <BindItem id="item2" compid="grp_body.grp_sea.combo1" propid="value" datasetid="ds_send" columnid="useyn"/>
  397. <BindItem id="item20" compid="grp_body.opt_fstrgstdt" propid="value" datasetid="ds_item" columnid="fstrgstdt"/>
  398. <BindItem id="item15" compid="grp_body.opt_lastupdtdt" propid="value" datasetid="ds_item" columnid="lastupdtdt"/>
  399. </Bind>
  400. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  401. * System Name :
  402. * Job Name :
  403. * Creator :
  404. * Make Date : 2014-11-18
  405. * Description :
  406. *---------------------------------------------------------------------------------------
  407. * Modify Date Modifier Modify Description
  408. *---------------------------------------------------------------------------------------
  409. * 2014-11-18 Live Converter TF->XP
  410. *
  411. *---------------------------------------------------------------------------------------
  412. ****************************************************************************************/
  413. //==============================================================================================
  414. // Lib Include
  415. //-----------------------------------------------------------------------------------------------------------------------------
  416. include "com_commonxp::comm_main.xjs"; // 전체공통 스크립트
  417. /************************************************************************************************
  418. ******************************** Form Event ****************************************************
  419. ************************************************************************************************/
  420. function SMZSB00401_onload(obj:Form, e:LoadEventInfo)
  421. {
  422. frmf_initForm(obj);
  423. var arrParam = new Array();
  424. arrParam = [{bizId:"Z0001", cdGrpId:"Z0009", dsNm:"ds_init_cmb_bizabbr_cond"}];
  425. appf_getKindCodeList( arrParam, false, "");
  426. ds_send.addRow();
  427. ds_send.setColumn(0, "pagesize", 200);
  428. ds_send.setColumn(0, "offset", 0);
  429. grdf_setRowTypeIcon(grp_body.grd_schelist, 0); //grid 상태 아이콘
  430. tranf_submit({
  431. id: "TRZSB00201"
  432. , service: "batchinfoapp.BatchInfo"
  433. , method: "reqGetBatchProgramList"
  434. , inds : "req=ds_send"
  435. , outds: "ds_init_cmb_prgmnm=batprgm"
  436. , async: false
  437. , callback : "cbf_TRZSB00201"
  438. });
  439. fCheckAuth();
  440. fInitialize();
  441. }
  442. function cbf_TRZSB00201(sSvcId, nErrorCode, sErrorMsg) {
  443. if(nErrorCode < 0) return;
  444. }
  445. function fCheckAuth() {
  446. }
  447. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  448. function fInitialize()
  449. {
  450. fEnableInsertButton();
  451. ds_grd_schelist.clearData();
  452. ds_send.reset();
  453. ds_item.reset();
  454. ds_init_cmb_bizabbr_cond.reset();
  455. ds_init_combo1.reset();
  456. grp_body.grp_sea.ipt_searchnm_cond.text = "";
  457. }
  458. function fEnableInsertButton()
  459. {
  460. grp_body.btn_insert.enable = true;
  461. grp_body.btn_update.enable = false;
  462. }
  463. function grp_body_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  464. {
  465. var updtdata = grdf_getGridUpdateData(grp_body.grd_schelist);
  466. var searchStatus = ds_search_status.getColumn(0, "status");
  467. if (updtdata.rowcount > 0 && searchStatus != 1) {
  468. var ret = sysf_messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  469. if (ret != 6) { // not OK
  470. return;
  471. }
  472. }
  473. ds_search_status.setColumn(0, "status", 0);
  474. tranf_submit({
  475. id: "TRZSB00401"
  476. , service: "batchinfoapp.BatchInfo"
  477. , method: "reqGetBatchScheduleList"
  478. , inds : "req=ds_send"
  479. , outds: "ds_grd_schelist=schelist"
  480. , async: true
  481. , callback : "cbf_TRZSB00401"
  482. });
  483. ds_item.reset();
  484. }
  485. function cbf_TRZSB00401(sSvcId, nErrorCode, sErrorMsg) {
  486. if(nErrorCode < 0) return;
  487. }
  488. function fEnableUpdateButton()
  489. {
  490. grp_body.btn_insert.enable = false;
  491. grp_body.btn_update.enable = true;
  492. }
  493. function grp_body_cmb_prgmnm_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  494. {
  495. var iRow = ds_init_cmb_prgmnm.rowcount;
  496. var rowpos = 0;
  497. for(var i = 0; i < iRow; i++){
  498. if(grp_body.cmb_prgmnm.value == ds_init_cmb_prgmnm.getColumn(i, "prgmid")){
  499. rowpos = i;
  500. break;
  501. }
  502. }
  503. ds_item.setColumn(0, "bizabbr", ds_init_cmb_prgmnm.getColumn(i, "bizabbr"));
  504. ds_item.setColumn(0, "modulenm", ds_init_cmb_prgmnm.getColumn(i, "modulenm"));
  505. ds_item.setColumn(0, "prgmid", ds_init_cmb_prgmnm.getColumn(i, "prgmid"));
  506. ds_item.setColumn(0, "prgmnm", ds_init_cmb_prgmnm.getColumn(i, "prgmnm"));
  507. }
  508. function grp_body_btn_delete_onclick(obj:Button, e:ClickEventInfo)
  509. {
  510. dsf_deleteSelectedRows(grp_body.grd_schelist, true);
  511. ds_stat_type.setColumn(0, "status", "delete");
  512. }
  513. function grp_body_btn_loadexcel_onclick(obj:Button, e:ClickEventInfo)
  514. {
  515. // 타이틀 제외한 2열부터 입력
  516. grdf_ImportExcel("ds_grd_schelist", 2, grp_body.grd_schelist);
  517. }
  518. function grp_body_btn_saveexcel_onclick(obj:Button, e:ClickEventInfo)
  519. {
  520. grdf_exportExcel(grp_body.grd_schelist, "배치스케쥴관리" , "배치스케쥴관리");
  521. }
  522. function grp_top_btn_init_onclick(obj:Button, e:ClickEventInfo)
  523. {
  524. var updtdata = grdf_getGridUpdateData(grp_body.grd_schelist);
  525. if (updtdata.rowcount > 0) {
  526. var ret = sysf_messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  527. if (ret != 6) { // not OK
  528. return;
  529. }
  530. }
  531. fInitialize();
  532. }
  533. function grp_body_grd_schelist_oncellclick(obj:Grid, e:GridClickEventInfo)
  534. {
  535. var cur_row= grp_body.grd_schelist.currentrow;
  536. if ( cur_row >= 0 ) {
  537. fEnableUpdateButton();
  538. ds_item.copyRow(0, ds_grd_schelist, cur_row);
  539. }
  540. }
  541. function grp_body_btn_insert_onclick(obj:Button, e:ClickEventInfo)
  542. {
  543. if(fessentialcheck()) return;
  544. var prgmid = grp_body.ipt_prgmid.text;
  545. var nRowNum = ds_grd_schelist.insertRow(0);
  546. ds_grd_schelist.setColumn(nRowNum, "prgmnm", ds_item.getColumn(0, "prgmnm"));
  547. ds_grd_schelist.setColumn(nRowNum, "prgmid", prgmid);
  548. ds_grd_schelist.setColumn(nRowNum, "bizabbr", grp_body.cmb_bizabbr.value);
  549. ds_grd_schelist.setColumn(nRowNum, "modulenm", grp_body.ipt_modulenm.value);
  550. ds_grd_schelist.setColumn(nRowNum, "schenm", grp_body.ipt_schenm.value);
  551. ds_grd_schelist.setColumn(nRowNum, "useyn", grp_body.cmb_useyn.value);
  552. ds_grd_schelist.setColumn(nRowNum, "execnode", grp_body.ipt_execnode.value);
  553. ds_grd_schelist.setColumn(nRowNum, "schedt", grp_body.ipt_schedt.value);
  554. ds_grd_schelist.setColumn(nRowNum, "execrid", grp_body.ipt_execrid.value);
  555. ds_grd_schelist.setColumn(nRowNum, "prgmparam", grp_body.ipt_prgmparam.value);
  556. ds_grd_schelist.setColumn(nRowNum, "jvmparam", grp_body.ipt_jvmparam.value);
  557. ds_stat_type.setColumn(0, "status", "insert");
  558. fDisableInsertButton();
  559. }
  560. function grp_body_btn_clear_onclick(obj:Button, e:ClickEventInfo)
  561. {
  562. fEnableInsertButton();
  563. ds_item.reset();
  564. }
  565. // 시스템코드, 메시지종료, 메시지 번호가 입력되면 이들을 조합하여 메시지코드를 설정한다.
  566. function fEnableInsertButton()
  567. {
  568. grp_body.btn_insert.enable = true;
  569. grp_body.btn_update.enable = false;
  570. }
  571. function fDisableInsertButton()
  572. {
  573. grp_body.btn_insert.enable = false;
  574. grp_body.btn_update.enable = true;
  575. }
  576. function grp_body_btn_update_onclick(obj:Button, e:ClickEventInfo)
  577. {
  578. if(fessentialcheck()) return;
  579. var cur_row = grp_body.grd_schelist.currentrow;
  580. if (cur_row >= 0) {
  581. // 그리드에 추가
  582. ds_grd_schelist.setColumn(cur_row, "useyn", grp_body.cmb_useyn.value);
  583. ds_grd_schelist.setColumn(cur_row, "execrid", ds_item.getColumn(0,"execrid"));
  584. ds_grd_schelist.setColumn(cur_row, "execnode", ds_item.getColumn(0,"execnode"));
  585. ds_grd_schelist.setColumn(cur_row, "schedt", ds_item.getColumn(0,"schedt"));
  586. ds_grd_schelist.setColumn(cur_row, "prgmparam", ds_item.getColumn(0,"prgmparam"));
  587. ds_grd_schelist.setColumn(cur_row, "jvmparam", ds_item.getColumn(0,"jvmparam"));
  588. ds_grd_schelist.setColumn(cur_row, "prgmnm", ds_item.getColumn(0, "prgmnm"));
  589. ds_grd_schelist.setColumn(cur_row, "prgmid", ds_item.getColumn(0, "prgmid"));
  590. ds_grd_schelist.setColumn(cur_row, "modulenm", ds_item.getColumn(0, "modulenm"));
  591. ds_stat_type.setColumn(0, "status", "update");
  592. }
  593. }
  594. function grp_top_btn_save_onclick(obj:Button, e:ClickEventInfo)
  595. {
  596. var status = ds_stat_type.getColumn(0, "status");
  597. var updtdata = grdf_getGridUpdateData(grp_body.grd_schelist, status);
  598. if (updtdata == "") {
  599. sysf_messageBox("변경된 데이터가", "I004");
  600. return;
  601. }
  602. if(status == "update"){
  603. status = "u";
  604. }else if(status == "delete"){
  605. status = "d";
  606. }else if(status == "insert"){
  607. status = "i";
  608. }
  609. var oDsUpdate = grdf_getGridUpdateData(grp_body.grd_schelist, status);
  610. grdf_setStatusColumn(oDsUpdate,"status");
  611. ds_send_schelist.copyData(oDsUpdate, true);
  612. tranf_submit({
  613. id: "TXZSB00401"
  614. , service: "batchinfoapp.BatchInfo"
  615. , method: "reqExeSaveBatchSchedule"
  616. , inds : "req=ds_send_schelist"
  617. , outds: "null"
  618. , async: false
  619. , callback : "cbf_TXZSB00401"
  620. });
  621. }
  622. function cbf_TXZSB00401(sSvcId, nErrorCode, sErrorMsg) {
  623. if(nErrorCode < 0) return;
  624. ds_search_status.setColumn(0, "status", 1);
  625. grp_body.grp_sea.btn_search.click();
  626. ds_send_schelist.clearData();
  627. }
  628. function fessentialcheck()
  629. {
  630. if(utlf_isNull(grp_body.cmb_prgmnm.value)){
  631. sysf_messageBox("프로그램명은", "I003");
  632. return true;
  633. }
  634. if(utlf_isNull(grp_body.ipt_schenm.value)){
  635. sysf_messageBox("스케쥴명은", "I003");
  636. return true;
  637. }
  638. if(utlf_isNull(grp_body.ipt_execrid.value)){
  639. sysf_messageBox("실행자는", "I003");
  640. return true;
  641. }
  642. if(utlf_isNull(grp_body.ipt_schedt.value)){
  643. sysf_messageBox("실행 스케쥴은", "I003");
  644. return true;
  645. }
  646. }
  647. function grp_body_btn_viewlog_onclick(obj:Button, e:ClickEventInfo)
  648. {
  649. // 파라미터 설정 참고
  650. // frmf_setParameter("SPZSB00301_PARM_reqno", "");
  651. var oArg = new Object();
  652. if(ds_item.getColumn(0, "execrid") == null){
  653. oArg.execrid = sysf_getUserId();
  654. }else{
  655. oArg.execrid = ds_item.getColumn(0, "execrid");
  656. }
  657. // 화면 호출
  658. frmf_open("SPZSB00301", "SPZSB00301", oArg, null, null, null, null, null, null, null, null, null, "M");
  659. }
  660. ]]></Script>
  661. </Form>
  662. </FDL>