SMDRE00100_보고서-직원카드 발급 이력조회.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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. <emplno/>
  13. <name/>
  14. <deptnm/>
  15. <jobopsnm/>
  16. <issdg/>
  17. <issresn/>
  18. <eqmpos/>
  19. <issdd/>
  20. </msg>
  21. </list>
  22. </main>
  23. <send>
  24. <issdds/>
  25. <issdde/>
  26. <issno/>
  27. <issresn/>
  28. <emplno/>
  29. <name/>
  30. <offset/>
  31. <pagesize>200</pagesize>
  32. </send>
  33. <properties>
  34. <error>
  35. <msg/>
  36. </error>
  37. </properties>
  38. <temp/>
  39. <init>
  40. <eqmset>
  41. <itemlist>
  42. <eqmpos/>
  43. <issno/>
  44. </itemlist>
  45. </eqmset>
  46. <issresn>
  47. <itemlist>
  48. <cdid/>
  49. <cdnm/>
  50. </itemlist>
  51. </issresn>
  52. </init>
  53. </root>
  54. </instance>
  55. <script type="javascript" ev:event="xforms-ready">
  56. <![CDATA[
  57. submit("TRDRE00102");
  58. submit("TRDRE00103");
  59. // 당일날짜 세팅
  60. model.setValue("/root/send/issdds", getCurrentDate());
  61. model.setValue("/root/send/issdde", getCurrentDate());
  62. model.removeNodeset("/root/main/list/msg");
  63. addComboItem("cmb_eqmpos");
  64. addComboItem("cmb_issresn");
  65. model.refresh();
  66. ]]>
  67. </script>
  68. <submission id="TRDRE00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/list"/>
  69. <submission id="TRDRE00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp" replace="instance" resultref="/root/init/eqmset"/>
  70. <submission id="TRDRE00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp" replace="instance" resultref="/root/init/issresn"/>
  71. </model>
  72. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  74. <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
  75. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  77. <script type="javascript" src="../../../crd/miscardissueweb/js/crdcommon.js"/>
  78. </xhtml:head>
  79. <xhtml:body guideline="1,1193;1,1195;2,34;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  80. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  81. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">직원카드 발급이력</caption>
  82. </group>
  83. <group id="group3" style="left:0px; top:13px; width:1195px; height:767px; ">
  84. <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; ">
  85. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  86. <caption id="caption1" class="search_name" style="left:545px; top:10px; width:80px; height:17px; ">발급구분</caption>
  87. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:10px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  88. <caption>조회</caption>
  89. <script type="javascript" ev:event="DOMActivate">
  90. <![CDATA[
  91. var issddsDate = input11.value;
  92. var issddeDate = input12.value;
  93. if(issddsDate>issddeDate){
  94. messageBox("조회 하고자 하는 발급일자를 제대로", "C001");
  95. }else if(issddsDate.length<8 | issddeDate.length<8){
  96. messageBox("조회하고자 하는 발급 일자를 제대로", "C001");
  97. }else{
  98. model.removeNodeset("/root/main/list/msg");
  99. model.setValue("/root/send/offset", 0);
  100. submit("TRDRE00101");
  101. var subMessage = model.getValue("/root/main/list/msg[1]/tot_cnt");
  102. subMessage = intComma(subMessage);
  103. setSystemMessage(subMessage+"건이 조회 되었습니다.");
  104. }
  105. ]]>
  106. </script>
  107. </button>
  108. <caption id="caption5" class="search_name" style="left:5px; top:11px; width:84px; height:17px; ">발급일자</caption>
  109. <select1 id="cmb_eqmpos" ref="/root/send/issno" class="combo_search" appearance="minimal" style="left:415px; top:10px; width:115px; height:19px; ">
  110. <choices>
  111. <itemset nodeset="/root/init/eqmset/itemlist">
  112. <label ref="eqmpos"/>
  113. <value ref="issno"/>
  114. </itemset>
  115. </choices>
  116. </select1>
  117. <caption id="caption4" class="search_name" style="left:320px; top:11px; width:90px; height:17px; vertical-align:middle; ">발급장비명</caption>
  118. <caption id="caption8" class="search_name" style="left:730px; top:10px; width:76px; height:17px; ">사원번호</caption>
  119. <input id="input2" ref="/root/send/emplno" class="input_search" maxlength="10" format="9999999999" style="left:810px; top:10px; width:100px; height:19px; ">
  120. <script type="javascript" ev:event="onkeypress">
  121. <![CDATA[
  122. inputEnterKey("btn_search", "DOMActivate");
  123. ]]>
  124. </script>
  125. </input>
  126. <input id="input11" ref="/root/send/issdds" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:90px; top:10px; width:100px; height:19px; "/>
  127. <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; "/>
  128. <caption id="caption3" class="search_name" style="left:925px; top:10px; width:76px; height:17px; ">성명</caption>
  129. <input id="input4" ref="/root/send/name" class="input_search" maxlength="10" style="left:980px; top:10px; width:100px; height:19px; ">
  130. <script type="javascript" ev:event="onkeypress">
  131. <![CDATA[
  132. inputEnterKey("btn_search", "DOMActivate");
  133. ]]>
  134. </script>
  135. </input>
  136. <caption id="caption7" class="search_no_b" style="left:190px; top:10px; width:15px; height:17px; ">~</caption>
  137. <line id="line2" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
  138. <select1 id="cmb_issresn" ref="/root/send/issresn" class="combo_search" appearance="minimal" style="left:630px; top:10px; width:85px; height:19px; ">
  139. <choices>
  140. <itemset nodeset="/root/init/issresn/itemlist">
  141. <label ref="cdnm"/>
  142. <value ref="cdid"/>
  143. </itemset>
  144. </choices>
  145. </select1>
  146. </group>
  147. <caption id="caption2" class="tit_2" style="left:5px; top:60px; width:300px; height:13px; font-family:돋움; vertical-align:middle; ">발급 정보 리스트</caption>
  148. <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:1194px; y2:75px; "/>
  149. <datagrid id="grd_scrnlist" nodeset="/root/main/list/msg" caption="사원번호^성명^부서^직위^발급차수^발급구분^발급장비명^발급일" colsep="^" colwidth="107, 136, 180, 142, 101, 150, 170, 150" dataheight="23" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" style="left:0px; top:80px; width:1194px; height:660px; ">
  150. <col explorerbar="sortshowmove" ref="emplno" style="text-align:center; "/>
  151. <col explorerbar="sortshowmove" ref="name" style="text-align:center; "/>
  152. <col explorerbar="sortshowmove" ref="deptnm" style="text-align:center; "/>
  153. <col explorerbar="sortshowmove" ref="jobopsnm" style="text-align:center; "/>
  154. <col explorerbar="sortshowmove" ref="issdg" style="text-align:center; "/>
  155. <col explorerbar="sortshowmove" disabled="true" ref="issresn" type="combo" style="text-align:center; ">
  156. <choices>
  157. <itemset nodeset="/root/init/issresn/itemlist">
  158. <label ref="cdnm"/>
  159. <value ref="cdid"/>
  160. </itemset>
  161. </choices>
  162. </col>
  163. <col explorerbar="sortshowmove" disabled="true" ref="eqmpos" type="combo" style="left:698px; top:23px; width:386px; height:23px; text-align:center; ">
  164. <choices>
  165. <itemset nodeset="/root/init/eqmset/itemlist">
  166. <label ref="eqmpos"/>
  167. <value ref="eqmpos"/>
  168. </itemset>
  169. </choices>
  170. </col>
  171. <col explorerbar="sortshowmove" ref="issdd" format="yyyy-mm-dd" style="text-align:center; "/>
  172. <script type="javascript" ev:event="onscroll">
  173. <![CDATA[
  174. if(grd_scrnlist.vscroll.attribute("max") == grd_scrnlist.vscroll.attribute("pos")) {
  175. // end of scroll
  176. model.setValue("/root/send/offset", grd_scrnlist.rows-grd_scrnlist.fixedRows); // grid의 header row는 제외
  177. submit("TRDRE00101");
  178. var subMessage = model.getValue("/root/main/list/msg[1]/tot_cnt");
  179. subMessage = intComma(subMessage);
  180. setSystemMessage(subMessage+"건이 조회 되었습니다.");
  181. }
  182. ]]>
  183. </script>
  184. </datagrid>
  185. <button id="btn_cle" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1125px; top:745px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  186. <caption>초기화</caption>
  187. <script type="javascript" ev:event="DOMActivate">
  188. <![CDATA[
  189. model.reset();
  190. model.refresh();
  191. ]]>
  192. </script>
  193. </button>
  194. <button id="button3" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1130px; top:55px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
  195. <caption>엑셀저장</caption>
  196. <script type="javascript" ev:event="DOMActivate">
  197. <![CDATA[
  198. var dataYn = model.getValue("/root/main/list/msg["+1+"]/emplno");
  199. if(dataYn == ""){
  200. messageBox("조회된 ", "E013");
  201. return;
  202. }else{
  203. var fileName = window.fileDialog("save",",",false,"보고서-직원카드발급이력","xls","All Files(*.*)|*.*|Excel Files(*.xls)|*.xls");
  204. }
  205. if(fileName !=""){
  206. grd_scrnlist.saveExcel(fileName);
  207. }
  208. ]]>
  209. </script>
  210. </button>
  211. </group>
  212. </xhtml:body>
  213. </xhtml:html>