SMDRE00300_보고서-직원카드 발급 통계(발급장비).xrw 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <msg>
  12. <eqmpos/>
  13. <isstotal/>
  14. <issddmin/>
  15. <issddmax/>
  16. </msg>
  17. </list>
  18. </main>
  19. <send>
  20. <issdds/>
  21. <issdde/>
  22. <eqmpos/>
  23. <issddselect/>
  24. </send>
  25. <properties>
  26. <error>
  27. <msg/>
  28. </error>
  29. </properties>
  30. <temp/>
  31. <init>
  32. <eqmset>
  33. <itemlist>
  34. <eqmpos/>
  35. <issno/>
  36. </itemlist>
  37. </eqmset>
  38. </init>
  39. <total>
  40. <issdgtotal/>
  41. </total>
  42. </root>
  43. </instance>
  44. <script type="javascript" ev:event="xforms-ready">
  45. <![CDATA[
  46. submit("TRDRE00102");
  47. model.setValue("/root/total/issdgtotal", 0);
  48. // 당일날짜 세팅
  49. model.setValue("/root/send/issdds", getCurrentDate());
  50. model.setValue("/root/send/issdde", getCurrentDate());
  51. model.removenode("/root/main/list/msg");
  52. addComboItem("cmb_eqmpos");
  53. model.refresh();
  54. ]]>
  55. </script>
  56. <submission id="TRDRE00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp" replace="instance" resultref="/root/init/eqmset"/>
  57. <submission id="TRDRE00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  58. </model>
  59. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  61. <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
  62. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. </xhtml:head>
  65. <xhtml:body guideline="2,33;1,1;1,-3;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  66. <group id="group3" style="left:0px; top:10px; width:1176px; height:715px; ">
  67. <group id="group2" style="left:1px; top:0px; width:1174px; height:35px; ">
  68. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1173px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  69. <button id="button1" class="btn1_letter2" style="left:1100px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  70. <caption>조회</caption>
  71. <script type="javascript" ev:event="DOMActivate">
  72. <![CDATA[
  73. var issddsDate = input11.value;
  74. var issddeDate = input12.value;
  75. if(issddsDate>issddeDate){
  76. messageBox("조회 하고자 하는 발급일자를 제대로", "C001");
  77. }else if(issddsDate.length<8 | issddeDate.length<8){
  78. messageBox("조회하고자 하는 발급 일자를 제대로", "C001");
  79. }else{
  80. submit("TRDRE00301");
  81. var vRow = grd_scrnlist.rows;
  82. var issdgtotal=0;
  83. for(var i = 1; i<vRow; i++){
  84. if((model.getValue("/root/main/list/msg["+i+"]/isstotal"))==""){
  85. issdgtotal +=0;
  86. }else{
  87. issdgtotal +=parseInt(model.getValue("/root/main/list/msg["+i+"]/isstotal"));
  88. }
  89. }
  90. model.setValue("/root/total/issdgtotal", issdgtotal);
  91. model.refresh();
  92. }
  93. ]]>
  94. </script>
  95. </button>
  96. <caption id="caption5" class="search_name" style="left:5px; top:11px; width:84px; height:17px; ">발급기간</caption>
  97. <select1 id="cmb_eqmpos" ref="/root/send/eqmpos" class="combo_search" appearance="minimal" style="left:420px; top:10px; width:135px; height:19px; ">
  98. <choices>
  99. <itemset nodeset="/root/init/eqmset/itemlist">
  100. <label ref="eqmpos"/>
  101. <value ref="issno"/>
  102. </itemset>
  103. </choices>
  104. </select1>
  105. <caption id="caption4" class="search_name" style="left:325px; top:11px; width:100px; height:17px; vertical-align:middle; ">발급장비명</caption>
  106. <input id="input11" ref="/root/send/issdds" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:85px; top:10px; width:100px; height:19px; "/>
  107. <input id="input12" ref="/root/send/issdde" class="input_s_essential" editable="true" inputtype="date" format="yyyy-mm-dd" style="left:205px; top:10px; width:100px; height:19px; "/>
  108. <line id="line2" class="line_4" style="x1:1085px; y1:7px; x2:1085px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
  109. <caption id="caption8" class="search_no_b" style="left:190px; top:10px; width:15px; height:17px; ">~</caption>
  110. </group>
  111. <caption id="caption2" class="tit_2" style="left:5px; top:50px; width:300px; height:13px; font-family:돋움; vertical-align:middle; ">발급 통계 리스트</caption>
  112. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1173px; y2:65px; "/>
  113. <datagrid id="grd_scrnlist" nodeset="/root/main/list/msg" caption="발급장비명^발급건수^발급시작일^발급최종일" colsep="^" colwidth="142, 156, 117, 100" dataheight="23" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" style="left:0px; top:70px; width:1173px; height:610px; ">
  114. <col explorerbar="sortshowmove" ref="eqmpos" type="combo" style="text-align:center; ">
  115. <choices>
  116. <itemset nodeset="/root/init/eqmset/itemlist">
  117. <label ref="eqmpos"/>
  118. <value ref="eqmpos"/>
  119. </itemset>
  120. </choices>
  121. </col>
  122. <col explorerbar="sortshowmove" ref="isstotal" format="#,###" style="text-align:center; "/>
  123. <col explorerbar="sortshowmove" ref="issddmin" format="yyyy-mm-dd" style="text-align:center; "/>
  124. <col explorerbar="sortshowmove" ref="issddmax" format="yyyy-mm-dd" style="text-align:center; "/>
  125. </datagrid>
  126. <button id="btn_cle" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1105px; top:685px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  127. <caption>초기화</caption>
  128. <script type="javascript" ev:event="DOMActivate">
  129. <![CDATA[
  130. model.reset();
  131. model.refresh();
  132. ]]>
  133. </script>
  134. </button>
  135. <select1 id="combo1" ref="/root/send/issddselect" class="combo_search" appearance="minimal" style="left:650px; top:10px; width:100px; height:19px; ">
  136. <choices>
  137. <item>
  138. <label>- 선택 -</label>
  139. <value/>
  140. </item>
  141. <item>
  142. <label>일</label>
  143. <value>D</value>
  144. </item>
  145. <item>
  146. <label>주</label>
  147. <value>W</value>
  148. </item>
  149. <item>
  150. <label>월</label>
  151. <value>M</value>
  152. </item>
  153. <item>
  154. <label>년</label>
  155. <value>Y</value>
  156. </item>
  157. </choices>
  158. <script type="javascript" ev:event="xforms-select">
  159. <![CDATA[
  160. var issddSelect = model.getValue("/root/send/issddselect");
  161. var date2 = (model.getValue("/root/send/issdde"));
  162. var issddedate = date2.toDate();
  163. if(issddSelect =='D'){
  164. model.setValue("/root/send/issdds" , (issddedate.getAddDate(0,"D")).getDateFormat());
  165. }else if(issddSelect =='W'){
  166. model.setValue("/root/send/issdds" , (issddedate.getAddDate(-6,"D")).getDateFormat());
  167. }else if(issddSelect =='M'){
  168. model.setValue("/root/send/issdds" , (issddedate.getAddDate(-1,"M")).getDateFormat());
  169. }else if(issddSelect =='Y'){
  170. model.setValue("/root/send/issdds" , (issddedate.getAddDate(-1,"Y")).getDateFormat());
  171. }else{
  172. model.setValue("/root/send/issdds" ,"20060101");
  173. model.setValue("/root/send/issdde", getCurrentDate());
  174. }
  175. model.refresh();
  176. ]]>
  177. </script>
  178. </select1>
  179. <caption id="caption1" class="search_name" style="left:570px; top:10px; width:76px; height:17px; vertical-align:middle; ">기간선택</caption>
  180. <button id="button3" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1050px; top:45px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
  181. <caption>엑셀저장</caption>
  182. <script type="javascript" ev:event="DOMActivate">
  183. <![CDATA[
  184. var dataYn = model.getValue("/root/main/list/msg["+1+"]/eqmpos");
  185. if(dataYn == ""){
  186. messageBox("조회된 ", "E013");
  187. return;
  188. }else{
  189. var fileName = window.fileDialog("save",",",false,"보고서-직원카드 발급통계","xls","All Files(*.*)|*.*|Excel Files(*.xls)|*.xls");
  190. }
  191. if(fileName !=""){
  192. grd_scrnlist.saveExcel(fileName);
  193. }
  194. ]]>
  195. </script>
  196. </button>
  197. <caption id="caption3" class="search_name" style="left:0px; top:690px; width:115px; height:17px; ">발급 총건수</caption>
  198. <button id="btn_print" class="btn6_letter2" disable.background-image="../../../com/commonweb/images/dis_btn6_letter2.gif" style="left:1118px; top:42px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn6_letter2.gif; ">
  199. <caption>출력</caption>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. var dataYn = model.getValue("/root/main/list/msg["+1+"]/eqmpos");
  203. if(dataYn == ""){
  204. messageBox("조회된 ", "E013");
  205. return;
  206. }else{
  207. exeReportPreview("RPDRE00301", "XMLSTR" , "/root/main/list/msg");
  208. }
  209. ]]>
  210. </script>
  211. </button>
  212. <output id="input1" ref="/root/total/issdgtotal" class="output_fix" format="#,###" style="left:95px; top:690px; width:55px; height:19px; text-align:right; "/>
  213. <caption id="caption7" class="output_text" style="left:155px; top:693px; width:30px; height:13px; ">건</caption>
  214. </group>
  215. </xhtml:body>
  216. </xhtml:html>