SMDRM00100_보고서-식수현황조회.xrw 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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. <usernm/>
  14. <instnm/>
  15. <depthngnm/>
  16. <jobposnm/>
  17. <eatnm/>
  18. <eatdd/>
  19. <eattm/>
  20. </msg>
  21. </list>
  22. </main>
  23. <send>
  24. <eatdds/>
  25. <eatdde/>
  26. <instcd/>
  27. <emplno/>
  28. <hngnm/>
  29. <offset/>
  30. <pagesize>200</pagesize>
  31. </send>
  32. <properties>
  33. <error>
  34. <msg/>
  35. </error>
  36. </properties>
  37. <temp/>
  38. <init>
  39. <instcd>
  40. <itemlist>
  41. <cdid/>
  42. <cdnm/>
  43. </itemlist>
  44. </instcd>
  45. <dept>
  46. <itemlist>
  47. <deptcd/>
  48. <depthngnm/>
  49. </itemlist>
  50. </dept>
  51. </init>
  52. </root>
  53. </instance>
  54. <submission id="TRDRM00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/list"/>
  55. <submission id="TRDDP00203" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/instcd"/>
  56. <script type="javascript" ev:event="xforms-ready">
  57. <![CDATA[
  58. // 당일날짜 세팅
  59. model.setValue("/root/send/eatdds", getCurrentDate());
  60. model.setValue("/root/send/eatdde", getCurrentDate());
  61. model.removeNodeset("/root/main/list/msg");
  62. model.refresh();
  63. submit("TRDDP00203");
  64. addComboItem( "cmb_instcd");
  65. ]]>
  66. </script>
  67. </model>
  68. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  70. <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
  71. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  73. <script type="javascript" src="../../../crd/cardissueweb/js/crdcommon.js"/>
  74. </xhtml:head>
  75. <xhtml:body guideline="1,1193;1,1195;2,32;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  76. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  77. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">식수현황 조회</caption>
  78. </group>
  79. <group id="group3" style="left:0px; top:13px; width:1195px; height:767px; ">
  80. <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; ">
  81. <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; "/>
  82. <caption id="caption1" class="search_name" style="left:555px; top:9px; width:80px; height:17px; ">사원번호</caption>
  83. <button id="btn_search" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
  84. <caption>조회</caption>
  85. <script type="javascript" ev:event="DOMActivate">
  86. <![CDATA[
  87. var eatddsDate = input11.value;
  88. var eatddeDate = input12.value;
  89. if(eatddsDate>eatddeDate){
  90. messageBox("조회하고자 하는 식수기간을 제대로", "C001");
  91. }else if(eatddsDate.length<8 | eatddeDate.length<8){
  92. messageBox("조회하고자 하는 식수기간을 제대로", "C001");
  93. }else{
  94. model.removeNodeset("/root/main/list/msg");
  95. model.setValue("/root/send/offset", 0);
  96. submit("TRDRM00101");
  97. var subMessage = model.getValue("/root/main/list/msg[1]/tot_cnt");
  98. subMessage = intComma(subMessage);
  99. setSystemMessage(subMessage+"건이 조회 되었습니다.");
  100. }
  101. ]]>
  102. </script>
  103. </button>
  104. <line id="line2" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
  105. <caption id="caption5" class="search_name" style="left:11px; top:9px; width:84px; height:17px; ">식수기간</caption>
  106. <caption id="caption8" class="search_name" style="left:755px; top:9px; width:76px; height:17px; ">성명</caption>
  107. <input id="input2" ref="/root/send/hngnm" maxlength="15" style="left:815px; top:9px; width:100px; height:19px; ">
  108. <script type="javascript" ev:event="onkeypress">
  109. <![CDATA[
  110. inputEnterKey("btn_search", "DOMActivate");
  111. ]]>
  112. </script>
  113. </input>
  114. <input id="input11" ref="/root/send/eatdds" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:100px; top:9px; width:100px; height:19px; ">
  115. <script type="javascript" ev:event="DOMFocusOut">
  116. <![CDATA[
  117. ]]>
  118. </script>
  119. </input>
  120. <input id="input12" ref="/root/send/eatdde" class="input_s_essential" editable="true" inputtype="date" format="yyyy-mm-dd" style="left:215px; top:9px; width:100px; height:19px; "/>
  121. <input id="input3" ref="/root/send/emplno" maxlength="10" format="9999999999" style="left:640px; top:9px; width:100px; height:19px; ">
  122. <script type="javascript" ev:event="onkeypress">
  123. <![CDATA[
  124. inputEnterKey("btn_search", "DOMActivate");
  125. ]]>
  126. </script>
  127. </input>
  128. <caption id="caption3" class="search_no_b" style="left:201px; top:10px; width:15px; height:17px; ">~</caption>
  129. <select1 id="cmb_instcd" ref="/root/send/instcd" appearance="minimal" style="left:405px; top:9px; width:135px; height:19px; ">
  130. <choices>
  131. <itemset nodeset="/root/init/instcd/itemlist">
  132. <label ref="cdnm"/>
  133. <value ref="cdid"/>
  134. </itemset>
  135. </choices>
  136. </select1>
  137. <caption id="caption4" class="search_name" style="left:335px; top:10px; width:80px; height:17px; vertical-align:middle; ">기관명</caption>
  138. </group>
  139. <caption id="caption2" class="tit_2" style="left:5px; top:60px; width:300px; height:14px; font-family:돋움; vertical-align:middle; ">식수현황 조회</caption>
  140. <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:1194px; y2:75px; "/>
  141. <datagrid id="grd_scrnlist" nodeset="/root/main/list/msg" visibility="visible" caption="사원번호^성명^기관명^부서^직위^식수유형^식수일자^식수시간" colsep="^" colwidth="100, 100, 215, 180, 150, 150, 120, 120" dataheight="23" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" style="left:0px; top:80px; width:1194px; height:660px; ">
  142. <col explorerbar="sortshowmove" ref="emplno" style="text-align:center; "/>
  143. <col explorerbar="sortshowmove" ref="usernm" style="text-align:center; "/>
  144. <col explorerbar="sortshowmove" ref="instnm" style="text-align:center; "/>
  145. <col explorerbar="sortshowmove" ref="depthngnm" visibility="hidden" style="text-align:center; "/>
  146. <col explorerbar="sortshowmove" ref="jobposnm" visibility="hidden" style="text-align:center; "/>
  147. <col explorerbar="sortshowmove" ref="eatnm" style="text-align:center; "/>
  148. <col explorerbar="sortshowmove" ref="eatdd" format="yyyy-mm-dd" style="text-align:center; "/>
  149. <col explorerbar="sortshowmove" ref="eattm" format="hh:nn:ss" style="left:698px; top:23px; width:386px; height:23px; text-align:center; "/>
  150. <script type="javascript" ev:event="onscroll">
  151. <![CDATA[
  152. if(grd_scrnlist.vscroll.attribute("max")==grd_scrnlist.vscroll.attribute("pos")){
  153. model.setValue("/root/send/offset",grd_scrnlist.rows-grd_scrnlist.fixedRows);
  154. submit("TRDRM00101");
  155. var subMessage = model.getValue("/root/main/list/msg[1]/tot_cnt");
  156. subMessage = intComma(subMessage);
  157. setSystemMessage(subMessage+"건이 조회 되었습니다.");
  158. }
  159. ]]>
  160. </script>
  161. </datagrid>
  162. <button id="btn_cle" class="btn4_letter3" style="left:1125px; top:745px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  163. <caption>초기화</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. model.reset();
  167. model.refresh();
  168. ]]>
  169. </script>
  170. </button>
  171. <button id="button3" class="btn2_letter4" style="left:1130px; top:55px; width:64px; height:19px; ">
  172. <caption>엑셀저장</caption>
  173. <script type="javascript" ev:event="DOMActivate">
  174. <![CDATA[
  175. var dataYn = model.getValue("/root/main/list/msg["+1+"]/emplno");
  176. if(dataYn == ""){
  177. messageBox("조회된 ", "E013");
  178. return;
  179. }else{
  180. var fileName = window.fileDialog("save",",",false,"보고서-식수현황조회","xls","All Files(*.*)|*.*|Excel Files(*.xls)|*.xls");
  181. }
  182. if(fileName !=""){
  183. grd_scrnlist.saveExcel(fileName);
  184. }
  185. ]]>
  186. </script>
  187. </button>
  188. </group>
  189. </xhtml:body>
  190. </xhtml:html>