SMLNP00600_소모분석자료.xrw 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : 건수분석자료.xrw
  4. * 설 명 : 건수분석자료
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 송요셉
  7. * 작 성 일 : 2007.07.04
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>소모분석자료</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <usevallist>
  20. <itemnm/>
  21. <bfcnt/>
  22. <icnt/>
  23. <ocnt/>
  24. <scnt/>
  25. <tab/>
  26. <itemnm2/>
  27. <bfcnt2/>
  28. <icnt2/>
  29. <ocnt2/>
  30. <scnt2/>
  31. <tab2/>
  32. <itemnm3/>
  33. <bfcnt3/>
  34. <icnt3/>
  35. <ocnt3/>
  36. <scnt3/>
  37. </usevallist>
  38. </main>
  39. <send xmlns="">
  40. <srchym/>
  41. <srchym2/>
  42. <srchbdioflag/>
  43. </send>
  44. <init>
  45. </init>
  46. <hidden>
  47. </hidden>
  48. </root>
  49. </instance>
  50. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  51. <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
  52. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  53. <script ev:event="xforms-ready" type="javascript">
  54. <![CDATA[
  55. fSetInit();
  56. ]]>
  57. </script>
  58. <submission id="TRLNP00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/usevallist"/>
  59. </model>
  60. <script type="javascript">
  61. <![CDATA[
  62. function fSetInit(){
  63. model.removeNodeset("/root/main/usevallist");
  64. var toDay = getCurrentDate();
  65. var toDays = toDay.substr(0,6)
  66. model.setValue("/root/send/srchbdioflag","O");
  67. model.setValue("/root/send/srchym", toDays);
  68. input3.attribute("format") = "yyyy-mm";
  69. model.setValue("/root/send/srchym2", toDays);
  70. input1.attribute("format") = "yyyy-mm";
  71. model.refresh();
  72. }
  73. function fGetUseValList(){
  74. submit("TRLNP00601");
  75. model.setValue("/root/main/usevallist[25]/itemnm3", "합 계");
  76. model.setValue("/root/main/usevallist[25]/icnt3", model.getValue("/root/main/usevallist[1]/insum"));
  77. model.setValue("/root/main/usevallist[25]/ocnt3", model.getValue("/root/main/usevallist[1]/outsum"));
  78. model.setValue("/root/main/usevallist[25]/mcnt3", model.getValue("/root/main/usevallist[1]/chksum"));
  79. model.refresh();
  80. }
  81. function fReportPrint(){
  82. exeReportPreview("RPLNP00600", "XMLSTR", "", "", "true", "", "", "", "","true");
  83. //exeReportPreview("RPLNP00600", "XMLSTR", "", "");
  84. }
  85. ]]>
  86. </script>
  87. </xhtml:head>
  88. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  89. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  90. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  91. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; font-weight:bold; ">
  92. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  93. <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  94. <button id="btn_Ref" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  95. <caption>조회</caption>
  96. <script ev:event="DOMActivate" type="javascript">
  97. <![CDATA[
  98. fGetUseValList();
  99. ]]>
  100. </script>
  101. </button>
  102. <caption id="caption11" class="search_name" style="left:40px; top:8px; width:91px; height:17px; text-align:left; ">기준월 :</caption>
  103. <input id="input3" ref="/root/send/srchym" class="input_default" inputtype="date" format="yyyy-mm" style="left:125px; top:8px; width:90px; height:19px; "/>
  104. <input id="input1" ref="/root/send/srchym2" class="input_default" inputtype="date" format="yyyy-mm" style="left:245px; top:8px; width:90px; height:19px; "/>
  105. <caption id="caption8" style="left:220px; top:10px; width:20px; height:20px; text-align:center; ">~</caption>
  106. </group>
  107. <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:134px; height:14px; ">소모분석리스트</caption>
  108. <datagrid id="grd_usevallist" nodeset="/root/main/usevallist" caption="핵종명^전월량^입고량^사용량^관리^잔량^^핵종명^전월량^입고량^사용량^관리^잔량^^핵종명^전월량^입고량^사용량^관리^잔량" colwidth="120, 55, 55, 55, 55, 55, 3, 120, 55, 55, 55, 55, 55, 3, 120, 55, 55, 55, 55, 55" dataheight="25" defaultrows="1" mergecellsfixedrows="bycolrec" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1194px; height:640px; font-weight:normal; ">
  109. <col ref="itemnm"/>
  110. <col ref="bfcnt" style="text-align:center; "/>
  111. <col ref="icnt" style="text-align:center; "/>
  112. <col ref="ocnt" style="text-align:center; "/>
  113. <col ref="mcnt" style="text-align:center; "/>
  114. <col ref="scnt" style="text-align:center; "/>
  115. <col ref="tab"/>
  116. <col ref="itemnm2"/>
  117. <col ref="bfcnt2" style="text-align:center; "/>
  118. <col ref="icnt2" style="text-align:center; "/>
  119. <col ref="ocnt2" style="text-align:center; "/>
  120. <col ref="mcnt2" style="text-align:center; "/>
  121. <col ref="scnt2" style="text-align:center; "/>
  122. <col ref="tab2"/>
  123. <col ref="itemnm3"/>
  124. <col ref="bfcnt3" style="text-align:center; "/>
  125. <col ref="icnt3" style="text-align:center; "/>
  126. <col ref="ocnt3" style="text-align:center; "/>
  127. <col ref="mcnt3" style="text-align:center; "/>
  128. <col ref="scnt3" style="text-align:center; "/>
  129. </datagrid>
  130. <button id="btn_excel" class="btn2_letter4" navindex="2" style="left:0px; top:719px; width:64px; height:19px; ">
  131. <caption>엑셀저장</caption>
  132. <script ev:event="onclick" type="javascript">
  133. <![CDATA[
  134. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  135. if (fileName != ""){
  136. grd_usevallist.saveExcel(fileName);
  137. }
  138. ]]>
  139. </script>
  140. </button>
  141. </group>
  142. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  143. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">소모분석 자료관리</caption>
  144. </group>
  145. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  146. <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  147. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  148. <caption>초기화</caption>
  149. <script ev:event="DOMActivate" type="javascript">
  150. <![CDATA[
  151. fSetInit();
  152. ]]>
  153. </script>
  154. </button>
  155. <button id="button11" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
  156. <caption>출력</caption>
  157. <script ev:event="DOMActivate" type="javascript">
  158. <![CDATA[
  159. fReportPrint();
  160. ]]>
  161. </script>
  162. </button>
  163. </group>
  164. </xhtml:body>
  165. </xhtml:html>