SPZSB00303_배치로그상세조회팝업.xrw 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>배치 로그 메시지 조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <loginfo>
  11. <logmsg/>
  12. <lines/>
  13. <currentpage/>
  14. </loginfo>
  15. </main>
  16. <send>
  17. <offset/>
  18. <pagesize/>
  19. <prgmexecno/>
  20. </send>
  21. </root>
  22. </instance>
  23. <script type="javascript" ev:event="xforms-ready">
  24. <![CDATA[
  25. fInitialize();
  26. fGetLogInfo();
  27. model.refresh();
  28. ]]>
  29. </script>
  30. <bind id="prcsstat" ref="/root/main/list/batlog/prcsstat" readonly="true()"/>
  31. <submission id="TRZSB00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/loginfo/logmsg"/>
  32. <submission id="TRZSB00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/loginfo"/>
  33. </model>
  34. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  36. <script type="javascript">
  37. <![CDATA[
  38. function fInitialize() {
  39. model.resetInstanceNode("/root/main/loginfo");
  40. model.makeValue("/root/send/pagesize","30");
  41. model.makeValue("/root/send/offset",0);
  42. }
  43. // 배치 로그 메시지의 페이지 단위 조회를 수행한다.
  44. function fGetLogMessage() {
  45. if (model.getValue("/root/send/prgmexecno") == "") {
  46. return;
  47. }
  48. var pagesize = model.getValue("/root/send/pagesize");
  49. var curpage = model.getValue("/root/main/loginfo/currentpage");
  50. model.makeValue("/root/send/offset",(curpage-1)*pagesize);
  51. submit("TRZSB00204");
  52. }
  53. function fGetLogInfo() {
  54. if (model.getValue("/root/send/prgmexecno") == "") {
  55. return;
  56. }
  57. if (submit("TRZSB00203")) {
  58. var lines = model.getValue("/root/main/loginfo/lines");
  59. var pagesize = model.getValue("/root/send/pagesize");
  60. // page combo 설정
  61. var pages = Math.floor((lines/pagesize)+1);
  62. if (lines%pagesize == 0) {
  63. pages = pages -1;
  64. }
  65. for(var i=0;i<pages;i++) {
  66. model.makeNode("/root/main/loginfo/pages["+(i+1)+"]");
  67. model.makeValue("/root/main/loginfo/pages["+(i+1)+"]/label",(i+1)+"/"+pages);
  68. model.makeValue("/root/main/loginfo/pages["+(i+1)+"]/value",i+1);
  69. }
  70. model.makeValue("/root/main/loginfo/currentpage",1);
  71. model.makeValue("/root/send/offset",0);
  72. }
  73. }
  74. ]]>
  75. </script>
  76. </xhtml:head>
  77. <xhtml:body pagewidth="800" pageheight="600" guideline="1,966;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  78. <group id="group5" scroll="auto" style="left:0px; top:0px; width:780px; height:600px; ">
  79. <caption id="caption48" class="tit_2" style="left:5px; top:10px; width:149px; height:14px; ">배치 로그 상세 메시지</caption>
  80. <line id="line20" class="line_1" style="x1:0px; y1:25px; x2:780px; y2:25px; "/>
  81. <button id="button1" class="btn4_letter2" disabled="false" style="left:722px; top:575px; width:56px; height:22px; ">
  82. <caption>닫기</caption>
  83. <script type="javascript" ev:event="DOMActivate">
  84. <![CDATA[
  85. model.close();
  86. ]]>
  87. </script>
  88. </button>
  89. <caption id="caption1" style="left:407px; top:550px; width:60px; height:20px; ">총라인수 :</caption>
  90. <button id="btn_prev" class="icon_left" style="left:612px; top:550px; width:26px; height:19px; ">
  91. <caption/>
  92. <script type="javascript" ev:event="DOMActivate">
  93. <![CDATA[
  94. var pages = cmb_page.length;
  95. //alert(pages);
  96. //alert(cmb_page.value);
  97. if (cmb_page.value > 1) {
  98. model.makeValue("/root/main/loginfo/currentpage",parseInt(cmb_page.value)-1);
  99. fGetLogMessage();
  100. cmb_page.refresh();
  101. }
  102. ]]>
  103. </script>
  104. </button>
  105. <button id="btn_next" class="icon_right" style="left:752px; top:550px; width:26px; height:19px; ">
  106. <caption/>
  107. <script type="javascript" ev:event="DOMActivate">
  108. <![CDATA[
  109. var pages = cmb_page.length;
  110. //alert(pages);
  111. //alert(cmb_page.value);
  112. if (cmb_page.value< pages) {
  113. model.makeValue("/root/main/loginfo/currentpage",1+parseInt(cmb_page.value));
  114. fGetLogMessage();
  115. cmb_page.refresh();
  116. }
  117. ]]>
  118. </script>
  119. </button>
  120. <caption id="cap_lines" ref="/root/main/loginfo/lines" style="left:472px; top:550px; width:135px; height:20px; "/>
  121. <textarea id="tar_logmsg" ref="/root/main/loginfo/logmsg" style="left:0px; top:31px; width:780px; height:514px; "/>
  122. <select1 id="cmb_page" ref="/root/main/loginfo/currentpage" appearance="minimal" style="left:640px; top:550px; width:110px; height:19px; ">
  123. <choices>
  124. <itemset nodeset="/root/main/loginfo/pages">
  125. <label ref="label"/>
  126. <value ref="value"/>
  127. </itemset>
  128. </choices>
  129. <script type="javascript" ev:event="xforms-value-changed">
  130. <![CDATA[
  131. fGetLogMessage();
  132. ]]>
  133. </script>
  134. </select1>
  135. </group>
  136. </xhtml:body>
  137. </xhtml:html>