SMAES02600_핵의학체내월별통계.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  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. <systkey1/>
  13. <systkey2/>
  14. <day01/>
  15. <day02/>
  16. <day03/>
  17. <day04/>
  18. <day05/>
  19. <day06/>
  20. <day07/>
  21. <day08/>
  22. <day09/>
  23. <day10/>
  24. <day11/>
  25. <day12/>
  26. <day13/>
  27. <day14/>
  28. <day15/>
  29. <day16/>
  30. <day17/>
  31. <day18/>
  32. <day19/>
  33. <day20/>
  34. <day21/>
  35. <day22/>
  36. <day23/>
  37. <day24/>
  38. <day25/>
  39. <day26/>
  40. <day27/>
  41. <day28/>
  42. <day29/>
  43. <day30/>
  44. <day31/>
  45. <total/>
  46. </item>
  47. </list>
  48. <isublist>
  49. <item>
  50. <ioflag/>
  51. <drugqty/>
  52. <cnt/>
  53. <total/>
  54. </item>
  55. </isublist>
  56. <osublist>
  57. <item>
  58. <ioflag/>
  59. <drugqty/>
  60. <cnt/>
  61. <total/>
  62. </item>
  63. </osublist>
  64. <examsum>
  65. <isum/>
  66. <osum/>
  67. <total/>
  68. </examsum>
  69. </main>
  70. <send>
  71. <srchdate/>
  72. <globalinstance>
  73. <instance1/>
  74. </globalinstance>
  75. <suppdeptcd/>
  76. <srchstatsflag>A</srchstatsflag>
  77. <excuroomgrpcdid/>
  78. <srchflag>E</srchflag>
  79. </send>
  80. <inti>
  81. <cmb_info/>
  82. </inti>
  83. <hidden/>
  84. <inti_com>
  85. <srchdate/>
  86. </inti_com>
  87. </root>
  88. </instance>
  89. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  93. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  94. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  95. <script type="javascript" ev:event="xforms-ready">
  96. <![CDATA[
  97. aezfSetSuppDeptcd();
  98. // 진료과/진료의 조회
  99. model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  100. model.setValue("/root/send/srchdate", getCurrentDate().substr(0,6));
  101. model.removenode("/root/main/list");
  102. submit("TRAES09001", false);
  103. addComboItem("cmb_excuroomgrp","--전체--","","above");
  104. model.refresh();
  105. ]]>
  106. </script>
  107. <submission id="TRAES09001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  108. <submission id="TRAES02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  109. </model>
  110. <script type="javascript">
  111. <![CDATA[
  112. function getStatsMMCaseList(){
  113. model.removenode("/root/main/list");
  114. if (submit("TRAES02601")) {
  115. var cnt = getNodesetCount("/root/main/list/item");
  116. if (cnt > 1) {
  117. grd_list.colSort(0) = "asc";
  118. grd_list.sort(0, 0, grd_list.rows, grd_list.cols) = "usersort";
  119. for(i=2; i<35; i++) {
  120. grd_list.subtotal("sum", 1, i, "#,###", "background-color:#FFFFCC; color:#0000ff; font-weight:bold; ", 2, "소계");
  121. grd_list.subtotal("sum", -1, i, "#,###", "background-color:#CCFFCC; color:#0000ff; font-weight:bold; ", 1, "총계");
  122. }
  123. grd_list.mergeByFree(grd_list.rows-1, 1 , grd_list.rows-1, 2);
  124. model.refresh();
  125. }
  126. }
  127. }
  128. ]]>
  129. </script>
  130. </xhtml:head>
  131. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  132. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  133. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:335px; height:14px; ">월별 통계</caption>
  134. </group>
  135. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  136. <caption id="caption1" class="tit_2" style="left:5px; top:50px; width:278px; height:14px; ">월별 통계</caption>
  137. <button id="btn_excsave" class="btn2_letter4" visibility="visible" style="left:1130px; top:45px; width:64px; height:19px; ">
  138. <caption>엑셀저장</caption>
  139. <script type="javascript" ev:event="DOMActivate">
  140. <![CDATA[
  141. var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  142. if (fileName != "") {
  143. grd_list.saveExcel(fileName);
  144. }
  145. ]]>
  146. </script>
  147. </button>
  148. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:30px; vertical-align:top; ">
  149. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
  150. <line id="line13" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:25px; "/>
  151. <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:1120px; top:4px; width:56px; height:22px; ">
  152. <caption>조회</caption>
  153. <script type="javascript" ev:event="DOMActivate">
  154. <![CDATA[
  155. getStatsMMCaseList();
  156. ]]>
  157. </script>
  158. </button>
  159. <caption id="caption3" class="search_name" style="left:260px; top:7px; width:60px; height:17px; ">일자 :</caption>
  160. <caption id="caption5" class="search_name" style="left:10px; top:7px; width:86px; height:17px; ">통계구분 :</caption>
  161. <select1 id="combo1" ref="/root/send/srchstatsflag" appearance="minimal" style="left:105px; top:6px; width:125px; height:19px; ">
  162. <choices>
  163. <item>
  164. <label>진료과별</label>
  165. <value>A</value>
  166. </item>
  167. <item>
  168. <label>진료의별</label>
  169. <value>B</value>
  170. </item>
  171. <item>
  172. <label>보험유형별</label>
  173. <value>C</value>
  174. </item>
  175. </choices>
  176. <script type="javascript" ev:event="xforms-value-changed">
  177. <![CDATA[
  178. var srchstatsflag = model.getValue("/root/send/srchstatsflag");
  179. if (srchstatsflag == "A") {
  180. grd_list.caption = "진료과^검사항목^1일^2일^3일^4일^5일^6일^7일^8일^9일^10일^11일^12일^13일^14일^15일^16일^17일^18일^19일^20일^21일^22일^23일^24일^25일^26일^27일^28일^29일^30일^31일^합계";
  181. grd_list.colWidth(2) = 260;
  182. //grd_list.valueMatrix(0, grd_list.colRef("ioflag")) = "진료과";
  183. //grd_list.valueMatrix(0, grd_list.colRef("roomcd")) = "검사항목";
  184. } else if (srchstatsflag == "B") {
  185. grd_list.caption = "진료과^진료의^1일^2일^3일^4일^5일^6일^7일^8일^9일^10일^11일^12일^13일^14일^15일^16일^17일^18일^19일^20일^21일^22일^23일^24일^25일^26일^27일^28일^29일^30일^31일^합계";
  186. grd_list.colWidth(2) = 60;
  187. //grd_list.valueMatrix(0, grd_list.colRef("ioflag")) = "진료과";
  188. //grd_list.valueMatrix(0, grd_list.colRef("roomcd")) = "진료의";
  189. } else if (srchstatsflag == "C") {
  190. grd_list.caption = "보험유형^검사항목^1일^2일^3일^4일^5일^6일^7일^8일^9일^10일^11일^12일^13일^14일^15일^16일^17일^18일^19일^20일^21일^22일^23일^24일^25일^26일^27일^28일^29일^30일^31일^합계";
  191. grd_list.colWidth(2) = 260;
  192. //grd_list.valueMatrix(0, grd_list.colRef("ioflag")) = "보험유형";
  193. //grd_list.valueMatrix(0, grd_list.colRef("roomcd")) = "검사항목";
  194. }
  195. grd_list.rebuild();
  196. getStatsMMCaseList();
  197. ]]>
  198. </script>
  199. </select1>
  200. <input id="input4" ref="/root/send/srchdate" class="input_default" inputtype="date" format="yyyy-mm" style="left:325px; top:6px; width:90px; height:19px; "/>
  201. <select1 id="cmb_excuroomgrp" ref="/root/send/excuroomgrpcdid" class="combo_default" appearance="minimal" style="left:530px; top:6px; width:118px; height:19px; ">
  202. <choices>
  203. <itemset nodeset="/root/init/initexcuroomgrp">
  204. <label ref="nm"/>
  205. <value ref="cd"/>
  206. </itemset>
  207. </choices>
  208. <script type="javascript" ev:event="xforms-value-changed">
  209. <![CDATA[
  210. getStatsMMCaseList();
  211. ]]>
  212. </script>
  213. </select1>
  214. <caption id="caption7" class="search_name" style="left:450px; top:7px; width:80px; height:17px; ">검사실 :</caption>
  215. <caption id="caption12" class="search_name" style="left:685px; top:7px; width:62px; height:17px; ">구분 :</caption>
  216. <select1 id="radio2" ref="/root/send/srchflag" appearance="full" cols="3" overflow="visible" style="left:749px; top:6px; width:116px; height:18px; border-style:none; ">
  217. <choices>
  218. <item>
  219. <label>검사수</label>
  220. <value>E</value>
  221. </item>
  222. <item>
  223. <label>환자수</label>
  224. <value>P</value>
  225. </item>
  226. </choices>
  227. <script type="javascript" ev:event="xforms-value-changed">
  228. <![CDATA[
  229. getStatsMMCaseList();
  230. ]]>
  231. </script>
  232. </select1>
  233. </group>
  234. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1195px; y2:65px; "/>
  235. <datagrid id="grd_list" nodeset="/root/main/list/item" caption="진료과^검사항목^1일^2일^3일^4일^5일^6일^7일^8일^9일^10일^11일^12일^13일^14일^15일^16일^17일^18일^19일^20일^21일^22일^23일^24일^25일^26일^27일^28일^29일^30일^31일^합계" colsep="^" colwidth="60, 260, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 60" frozencols="2" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" multitotal="true" rowheader="seq" rowsep="|" subtotalposition="below" tooltip="true" style="left:0px; top:67px; width:1195px; height:673px; ">
  236. <col ref="systkey1" style="text-align:center; "/>
  237. <col ref="systkey2" style="text-align:left; "/>
  238. <col ref="day01" format="#,###" style="text-align:right; "/>
  239. <col ref="day02" format="#,###" style="text-align:right; "/>
  240. <col ref="day03" format="#,###" style="text-align:right; "/>
  241. <col ref="day04" format="#,###" style="text-align:right; "/>
  242. <col ref="day05" format="#,###" style="text-align:right; "/>
  243. <col ref="day06" format="#,###" style="text-align:right; "/>
  244. <col ref="day07" format="#,###" style="text-align:right; "/>
  245. <col ref="day08" format="#,###" style="text-align:right; "/>
  246. <col ref="day09" format="#,###" style="text-align:right; "/>
  247. <col ref="day10" format="#,###" style="text-align:right; "/>
  248. <col ref="day11" format="#,###" style="text-align:right; "/>
  249. <col ref="day12" format="#,###" style="text-align:right; "/>
  250. <col ref="day13" format="#,###" style="text-align:right; "/>
  251. <col ref="day14" format="#,###" style="text-align:right; "/>
  252. <col ref="day15" format="#,###" style="text-align:right; "/>
  253. <col ref="day16" format="#,###" style="text-align:right; "/>
  254. <col ref="day17" format="#,###" style="text-align:right; "/>
  255. <col ref="day18" format="#,###" style="text-align:right; "/>
  256. <col ref="day19" format="#,###" style="text-align:right; "/>
  257. <col ref="day20" format="#,###" style="text-align:right; "/>
  258. <col ref="day21" format="#,###" style="text-align:right; "/>
  259. <col ref="day22" format="#,###" style="text-align:right; "/>
  260. <col ref="day23" format="#,###" style="text-align:right; "/>
  261. <col ref="day24" format="#,###" style="text-align:right; "/>
  262. <col ref="day25" format="#,###" style="text-align:right; "/>
  263. <col ref="day26" format="#,###" style="text-align:right; "/>
  264. <col ref="day27" format="#,###" style="text-align:right; "/>
  265. <col ref="day28" format="#,###" style="text-align:right; "/>
  266. <col ref="day29" format="#,###" style="text-align:right; "/>
  267. <col ref="day30" format="#,###" style="text-align:right; "/>
  268. <col ref="day31" format="#,###" style="text-align:right; "/>
  269. <col ref="total" format="#,###" style="text-align:right; "/>
  270. </datagrid>
  271. </group>
  272. </xhtml:body>
  273. </xhtml:html>