SMAES00300_기능검사실통계(월별).xrw 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <list>
  11. <item>
  12. <prcpcd/>
  13. <prcpnm/>
  14. <month01/>
  15. <month02/>
  16. <month03/>
  17. <month04/>
  18. <month05/>
  19. <month06/>
  20. <month07/>
  21. <month08/>
  22. <month09/>
  23. <month10/>
  24. <month11/>
  25. <month12/>
  26. <monthsum/>
  27. <compare/>
  28. <variation/>
  29. <comparerate/>
  30. </item>
  31. </list>
  32. </main>
  33. <send>
  34. <execfromdd/>
  35. <exectodd/>
  36. <comparefromdd/>
  37. <comparetodd/>
  38. <excuroomcd/>
  39. <globalinstance>
  40. <instance1/>
  41. </globalinstance>
  42. <ioflag>A</ioflag>
  43. </send>
  44. <init>
  45. <cmb_info/>
  46. </init>
  47. <hidden/>
  48. </root>
  49. </instance>
  50. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  55. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  56. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  57. <script type="javascript" ev:event="xforms-ready">
  58. <![CDATA[
  59. aezfSetSuppDeptcd();
  60. submit("TRAEA01115",false);
  61. var fromdd = getCurrentDate().substr(0,4) + "0101"
  62. var todd = getCurrentDate().substr(0,6) + fromdd.toDate().getMonthDay();
  63. var comparefromdd = getCurrentDate().substr(0,6).toDate().getAddDate(-1,"Y").getDateFormat("YYYY") + "0101";
  64. var comparetodd = comparefromdd.substr(0,4) + todd.substr(4,4);
  65. addComboItem("cmb_excuroomcd","--전체--","","above");
  66. model.removenode("/root/main/list/item");
  67. model.setValue("/root/send/execfromdd", fromdd);
  68. model.setValue("/root/send/exectodd", todd);
  69. model.setValue("/root/send/comparefromdd",comparefromdd);
  70. model.setValue("/root/send/comparetodd",comparetodd);
  71. model.refresh();
  72. ]]>
  73. </script>
  74. <submission id="TRAES00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  75. <submission id="TRAEA01115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  76. </model>
  77. </xhtml:head>
  78. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  79. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  80. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">기능검사실 통계(월별)</caption>
  81. </group>
  82. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  83. <caption id="caption1" class="tit_2" style="left:5px; top:50px; width:200px; height:13px; ">기능검사실 통계(월별)</caption>
  84. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1195px; y2:65px; "/>
  85. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:30px; vertical-align:top; ">
  86. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
  87. <caption id="caption2" class="search_name" style="left:15px; top:7px; width:86px; height:17px; ">조회기간 :</caption>
  88. <line id="line13" class="line_4" style="x1:1110px; y1:4px; x2:1110px; y2:26px; "/>
  89. <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:1120px; top:4px; width:56px; height:22px; ">
  90. <caption>조회</caption>
  91. <script type="javascript" ev:event="DOMActivate">
  92. <![CDATA[
  93. submit("TRAES00301");
  94. grd_list.subtotal("sum", -1, 3, "#,###", "background-color:#99ff99", 2, "합계");
  95. for(i=4; i<grd_list.cols-1; i++) {
  96. grd_list.subtotal("sum", -1, i, "(-)#,###");
  97. }
  98. //전체 증감율 합계
  99. var sumprcp = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("monthsum"));
  100. var sumcnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("compare"));
  101. var comparerate = 0;
  102. if (parseInt(sumcnt) > 0) {
  103. comparerate = ( ( parseInt(sumprcp) - parseInt(sumcnt) ) / parseInt(sumcnt) ) * 100;
  104. }
  105. // if (comparerate != null) {
  106. // grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("comparerate")) = comparerate;
  107. // grd_list.cellformat (grd_list.rows-1, grd_list.colRef("comparerate")) = "(-)#,###.#%";
  108. // }
  109. if (comparerate != null) {
  110. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("comparerate")) = comparerate.toString().getRound(-1,"HALF_UP");
  111. } else {
  112. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("comparerate")) = 0;
  113. }
  114. grd_list.cellformat (grd_list.rows-1, grd_list.colRef("comparerate")) = "(-)#,###.#%";
  115. ]]>
  116. </script>
  117. </button>
  118. <input id="ipt_todd" ref="/root/send/exectodd" class="input_default" navindex="2" inputtype="date" style="left:207px; top:6px; width:85px; height:19px; "/>
  119. <caption id="caption5" class="search_no_b" style="left:192px; top:7px; width:12px; height:17px; ">~</caption>
  120. <input id="ipt_fromdd" ref="/root/send/execfromdd" class="input_default" navindex="1" inputtype="date" style="left:106px; top:6px; width:85px; height:19px; "/>
  121. <caption id="caption3" class="search_name" style="left:313px; top:7px; width:86px; height:17px; ">비교기간 :</caption>
  122. <input id="input1" ref="/root/send/comparetodd" class="input_default" navindex="2" inputtype="date" style="left:510px; top:6px; width:85px; height:19px; "/>
  123. <caption id="caption4" class="search_no_b" style="left:495px; top:7px; width:12px; height:17px; ">~</caption>
  124. <input id="input2" ref="/root/send/comparefromdd" class="input_default" navindex="1" inputtype="date" style="left:407px; top:6px; width:85px; height:19px; "/>
  125. <caption id="caption9" class="search_name" style="left:620px; top:7px; width:75px; height:17px; ">검사실 :</caption>
  126. <select1 id="cmb_excuroomcd" ref="/root/send/excuroomcd" appearance="minimal" itemcount="10" style="left:700px; top:6px; width:115px; height:19px; ">
  127. <choices>
  128. <itemset nodeset="/root/init/cmb_info/initexecroom">
  129. <label ref="excuroomcdnm"/>
  130. <value ref="excuroomcdid"/>
  131. </itemset>
  132. </choices>
  133. </select1>
  134. <caption id="caption8" class="search_name" style="left:845px; top:7px; width:70px; height:17px; ">구분 :</caption>
  135. <select1 id="radio1" ref="/root/send/ioflag" appearance="full" cols="3" overflow="visible" style="left:915px; top:7px; width:145px; height:15px; border-style:none; ">
  136. <choices>
  137. <item>
  138. <label>전체</label>
  139. <value>A</value>
  140. </item>
  141. <item>
  142. <label>입원</label>
  143. <value>I</value>
  144. </item>
  145. <item>
  146. <label>외래</label>
  147. <value>O</value>
  148. </item>
  149. </choices>
  150. </select1>
  151. </group>
  152. <button id="btn_excsave" class="btn2_letter4" style="left:1130px; top:45px; width:64px; height:19px; ">
  153. <caption>엑셀저장</caption>
  154. <script type="javascript" ev:event="DOMActivate">
  155. <![CDATA[
  156. var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  157. if (fileName != "") {
  158. grd_list.saveExcel(fileName);
  159. }
  160. ]]>
  161. </script>
  162. </button>
  163. <datagrid id="grd_list" nodeset="/root/main/list/item" caption="검사코드^검사명^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^합계^비교기간^증감^증감율" colsep="^" colwidth="93, 270, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 70, 70, 60, 60" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" style="left:0px; top:70px; width:1195px; height:670px; ">
  164. <col ref="prcpcd"/>
  165. <col ref="prcpnm"/>
  166. <col ref="month01" format="#,###" style="text-align:right; "/>
  167. <col ref="month02" format="#,###" style="text-align:right; "/>
  168. <col ref="month03" format="#,###" style="text-align:right; "/>
  169. <col ref="month04" format="#,###" style="text-align:right; "/>
  170. <col ref="month05" format="#,###" style="text-align:right; "/>
  171. <col ref="month06" format="#,###" style="text-align:right; "/>
  172. <col ref="month07" format="#,###" style="text-align:right; "/>
  173. <col ref="month08" format="#,###" style="text-align:right; "/>
  174. <col ref="month09" format="#,###" style="text-align:right; "/>
  175. <col ref="month10" format="#,###" style="text-align:right; "/>
  176. <col ref="month11" format="#,###" style="text-align:right; "/>
  177. <col ref="month12" format="#,###" style="text-align:right; "/>
  178. <col ref="monthsum" format="#,###" style="text-align:right; "/>
  179. <col ref="compare" format="(-)#,###" style="text-align:right; "/>
  180. <col ref="variation" format="(-)#,###" style="text-align:right; "/>
  181. <col ref="comparerate" format="(-)#,###.#%" style="text-align:right; "/>
  182. </datagrid>
  183. </group>
  184. </xhtml:body>
  185. </xhtml:html>