SMMRS01000_외래환자현황.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  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. <item>
  11. <grid>
  12. <deptname/>
  13. <deptcode/>
  14. <firstclinic_general_normal_prev/>
  15. <firstclinic_general_normal/>
  16. <firstclinic_general_selection_prev/>
  17. <firstclinic_general_selection/>
  18. <firstclinic_healthinsurance_normal_prev/>
  19. <firstclinic_healthinsurance_normal/>
  20. <firstclinic_healthinsurance_selection_prev/>
  21. <firstclinic_healthinsurance_selection/>
  22. <firstclinic_medservice_normal_prev/>
  23. <firstclinic_medservice_normal/>
  24. <firstclinic_medservice_selection_prev/>
  25. <firstclinic_medservice_selection/>
  26. <firstclinic_carinsurance_normal_prev/>
  27. <firstclinic_carinsurance_normal/>
  28. <firstclinic_carinsurance_selection_prev/>
  29. <firstclinic_carinsurance_selection/>
  30. <firstclinic_subtotal_prev/>
  31. <firstclinic_subtotal/>
  32. <midclinic_general_normal_prev/>
  33. <midclinic_general_normal/>
  34. <midclinic_general_selection_prev/>
  35. <midclinic_general_selection/>
  36. <midclinic_healthinsurance_normal_prev/>
  37. <midclinic_healthinsurance_normal/>
  38. <midclinic_healthinsurance_selection_prev/>
  39. <midclinic_healthinsurance_selection/>
  40. <midclinic_medservice_normal_prev/>
  41. <midclinic_medservice_normal/>
  42. <midclinic_medservice_selection_prev/>
  43. <midclinic_medservice_selection/>
  44. <midclinic_carinsurance_normal_prev/>
  45. <midclinic_carinsurance_normal/>
  46. <midclinic_carinsurance_selection_prev/>
  47. <midclinic_carinsurance_selection/>
  48. <midclinic_subtotal_prev/>
  49. <midclinic_subtotal/>
  50. <total_general_normal_prev/>
  51. <total_general_normal/>
  52. <total_general_selection_prev/>
  53. <total_general_selection/>
  54. <total_healthinsurance_normal_prev/>
  55. <total_healthinsurance_normal/>
  56. <total_healthinsurance_selection_prev/>
  57. <total_healthinsurance_selection/>
  58. <total_medservice_normal_prev/>
  59. <total_medservice_normal/>
  60. <total_medservice_selection_prev/>
  61. <total_medservice_selection/>
  62. <total_carinsurance_normal_prev/>
  63. <total_carinsurance_normal/>
  64. <total_carinsurance_selection_prev/>
  65. <total_carinsurance_selection/>
  66. <total_subtotal_prev/>
  67. <total_subtotal/>
  68. <total_internet/>
  69. <classfieddept/>
  70. <specialclinic/>
  71. <perfirstclinic/>
  72. <reservation/>
  73. <giveback/>
  74. </grid>
  75. </item>
  76. <condition_start/>
  77. <condition_end/>
  78. <fromdd/>
  79. <todd/>
  80. </main>
  81. <send>
  82. <startcondition/>
  83. <endcondition/>
  84. <searchstartdate/>
  85. <searchenddate/>
  86. </send>
  87. </root>
  88. </instance>
  89. <submission id="TRMRS01011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/item"/>
  90. <script type="javascript" ev:event="xforms-ready">
  91. <![CDATA[
  92. finitialize();
  93. ]]>
  94. </script>
  95. <bind id="PercentPerDept" ref="/root/main/item/grid/classfieddept" calculate="SUM(../total_subtotal) * 100" type="xsd:int"/>
  96. </model>
  97. <script type="javascript">
  98. <![CDATA[
  99. /*
  100. 버튼 컨트롤들을 클릭했을때 공통으로 타는 함수입니다.
  101. control : "search" 는 조회 버튼 클릭
  102. "init"은 신규 버튼 클릭
  103. "save"는 저장 버튼 클릭
  104. grid : 그리드 컨트롤을 넘겨줍니다.
  105. param : 기타 param을 넘겨줍니다.
  106. */
  107. function fClicked(control, grid, param){
  108. if ("search" == control){
  109. fSearchClick(grid, param);
  110. model.resetInstanceNode("/root/send");
  111. } else if ("init" == control){
  112. model.reset();
  113. } else {
  114. messageBox("처리를 수행","E002");
  115. }
  116. model.refresh();
  117. }
  118. /*
  119. 조회버튼 클릭 타는 함수
  120. */
  121. function fSearchClick(grid,param)
  122. {
  123. model.removeNodeset("/root/main/item/grid");
  124. grid.rebuild();
  125. model.resetInstanceNode("/root/send");
  126. model.setValue("/root/send/searchstartdate", model.getValue("/root/main/fromdd") );
  127. model.setValue("/root/send/searchenddate", model.getValue("/root/main/todd") );
  128. model.setValue("/root/send/startcondition", model.getValue("/root/main/condition_start") );
  129. model.setValue("/root/send/endcondition", model.getValue("/root/main/condition_end") );
  130. submit("TRMRS01011");
  131. }
  132. ]]>
  133. </script>
  134. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  135. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  136. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  137. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  138. <script type="javascript" src="../../../emr/emrstatsweb/js/SMMRS01000.js"/>
  139. </xhtml:head>
  140. <xhtml:body>
  141. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  142. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:106px; height:13px; ">외래환자현황</caption>
  143. </group>
  144. <shape id="roundrect2" appearance="roundrect" style="left:0px; top:20px; width:1195px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  145. <line id="line2" style="x1:325px; y1:42px; x2:325px; y2:64px; border-color:#ffe4bb; border-left-style:solid; "/>
  146. <caption id="caption3" class="tit_2" style="left:0px; top:90px; width:157px; height:13px; ">외래환자현황</caption>
  147. <caption id="caption1" class="search_name" style="left:11px; top:43px; width:86px; height:17px; ">조회기간 :</caption>
  148. <input id="input5" ref="/root/main/fromdd" class="input_search" inputtype="date" style="left:100px; top:43px; width:100px; height:19px; ">
  149. <script type="javascript" ev:event="xforms-value-changed">
  150. <![CDATA[
  151. var searchStart = model.getValue("/root/main/fromdd");
  152. // DB 쿼리의 조회 조건을 설정
  153. var StartDate = fChangeDate(searchStart, 1);
  154. model.setValue("/root/send/searchstartdate", searchStart);
  155. model.setValue("/root/main/fromdd", searchStart);
  156. model.refresh();
  157. ]]>
  158. </script>
  159. </input>
  160. <caption id="caption2" style="left:203px; top:44px; width:15px; height:20px; font-weight:bold; ">~</caption>
  161. <input id="input1" ref="/root/main/todd" class="input_search" inputtype="date" style="left:217px; top:43px; width:100px; height:19px; ">
  162. <script type="javascript" ev:event="xforms-value-changed">
  163. <![CDATA[
  164. var searchEnd = model.getValue("/root/main/todd");
  165. // DB 쿼리의 조회 조건을 설정
  166. var EndDate = fChangeDate(searchEnd, 0);
  167. model.setValue("/root/send/searchenddate", searchEnd);
  168. model.setValue("/root/main/todd", searchEnd);
  169. model.refresh();
  170. ]]>
  171. </script>
  172. </input>
  173. <line id="line23" class="line_1" style="x1:0px; y1:105px; x2:1195px; y2:105px; "/>
  174. <button id="button1" class="btn1_letter2" style="left:1055px; top:43px; width:56px; height:22px; ">
  175. <caption>조회</caption>
  176. <script type="javascript" ev:event="DOMActivate">
  177. <![CDATA[
  178. var searchStart = model.getValue("/root/send/searchstartdate");
  179. var searchEnd = model.getValue("/root/send/searchenddate");
  180. if ( fValidDate(searchStart, searchEnd) )
  181. {
  182. fClicked("search", grd_statslist);
  183. //
  184. //fCalculateStats();
  185. }
  186. ]]>
  187. </script>
  188. </button>
  189. <datagrid id="grd_statslist" nodeset="/root/main/item/grid" scroll="auto" backcoloralternate="#ffff9d" caption="진료과^진료과^초 진^초 진^초 진^초 진^초 진^초 진^초 진^초 진^초 진^초 진^초 진^초 진^초 진^초 진^초 진^초 진^초 진^초 진^재 진^재 진^재 진^재 진^재 진^재 진^재 진^재 진^재 진^재 진^재 진^재 진^재 진^재 진^재 진^재 진^재 진^재 진^합 계^합 계^합 계^합 계^합 계^합 계^합 계^합 계^합 계^합 계^합 계^합 계^합 계^합 계^합 계^합 계^합 계^합 계^합 계^과별^특진^초진^예약^반환|진료과^진료과^일반^일반^일반^일반^건강보험^건강보험^건강보험^건강보험^의료보호^의료보호^의료보호^의료보호^자동차보험^자동차보험^자동차보험^자동차보험^소계^소계^일반^일반^일반^일반^건강보험^건강보험^건강보험^건강보험^의료보호^의료보호^의료보호^의료보호^자동차보험^자동차보험^자동차보험^자동차보험^소계^소계^일반^일반^일반^일반^건강보험^건강보험^건강보험^건강보험^의료보호^의료보호^의료보호^의료보호^자동차보험^자동차보험^자동차보험^자동차보험^소계^소계^전화^과별^특진^초진^예약^반환|진료과^진료과코드^일반(전월)^일반 ^선택(전월)^선택^일반(전월)^일반^선택(전월)^선택^일반(전월)^일반^선택(전월)^선택^일반(전월)^일반^선택(전월)^선택^소계(전월)^소계^일반(전월)^일반 ^선택(전월)^선택^일반(전월)^일반^선택(전월)^선택^일반(전월)^일반^선택(전월)^선택^일반(전월)^일반^선택(전월)^선택^소계(전월)^소계^일반(전월)^일반 ^선택(전월)^선택^일반(전월)^일반^선택(전월)^선택^일반(전월)^일반^선택(전월)^선택^일반 Prev^일반^선택(전월)^선택^소계(전월)^소계 ^인터넷^과별^특진^초진^예약^반환" colsep="^" colwidth="100, 100, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45" fixedcols="2" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:110px; width:1195px; height:605px; ">
  190. <col ref="deptname"/>
  191. <col ref="deptcode"/>
  192. <col ref="firstclinic_general_normal_prev" style="text-align:right; "/>
  193. <col ref="firstclinic_general_normal" style="text-align:right; "/>
  194. <col ref="firstclinic_general_selection_prev" style="text-align:right; "/>
  195. <col ref="firstclinic_general_selection" style="text-align:right; "/>
  196. <col ref="firstclinic_healthinsurance_normal_prev" style="text-align:right; "/>
  197. <col ref="firstclinic_healthinsurance_normal" style="text-align:right; "/>
  198. <col ref="firstclinic_healthinsurance_selection_prev" style="text-align:right; "/>
  199. <col ref="firstclinic_healthinsurance_selection" style="text-align:right; "/>
  200. <col ref="firstclinic_medservice_normal_prev" style="text-align:right; "/>
  201. <col ref="firstclinic_medservice_normal" style="text-align:right; "/>
  202. <col ref="firstclinic_medservice_selection_prev" style="text-align:right; "/>
  203. <col ref="firstclinic_medservice_selection" style="text-align:right; "/>
  204. <col ref="firstclinic_carinsurance_normal_prev" style="text-align:right; "/>
  205. <col ref="firstclinic_carinsurance_normal" style="text-align:right; "/>
  206. <col ref="firstclinic_carinsurance_selection_prev" style="text-align:right; "/>
  207. <col ref="firstclinic_carinsurance_selection" style="text-align:right; "/>
  208. <col ref="firstclinic_subtotal_prev" style="text-align:right; "/>
  209. <col ref="firstclinic_subtotal" style="text-align:right; "/>
  210. <col ref="midclinic_general_normal_prev" style="text-align:right; "/>
  211. <col ref="midclinic_general_normal" style="text-align:right; "/>
  212. <col ref="midclinic_general_selection_prev" style="text-align:right; "/>
  213. <col ref="midclinic_general_selection" style="text-align:right; "/>
  214. <col ref="midclinic_healthinsurance_normal_prev" style="text-align:right; "/>
  215. <col ref="midclinic_healthinsurance_normal" style="text-align:right; "/>
  216. <col ref="midclinic_healthinsurance_selection_prev" style="text-align:right; "/>
  217. <col ref="midclinic_healthinsurance_selection" style="text-align:right; "/>
  218. <col ref="midclinic_medservice_normal_prev" style="text-align:right; "/>
  219. <col ref="midclinic_medservice_normal" style="text-align:right; "/>
  220. <col ref="midclinic_medservice_selection_prev" style="text-align:right; "/>
  221. <col ref="midclinic_medservice_selection" style="text-align:right; "/>
  222. <col ref="midclinic_carinsurance_normal_prev" style="text-align:right; "/>
  223. <col ref="midclinic_carinsurance_normal" style="text-align:right; "/>
  224. <col ref="midclinic_carinsurance_selection_prev" style="text-align:right; "/>
  225. <col ref="midclinic_carinsurance_selection" style="text-align:right; "/>
  226. <col ref="midclinic_subtotal_prev" style="text-align:right; "/>
  227. <col ref="midclinic_subtotal" style="text-align:right; "/>
  228. <col ref="total_general_normal_prev" style="text-align:right; "/>
  229. <col ref="total_general_normal" style="text-align:right; "/>
  230. <col ref="total_general_selection_prev" style="text-align:right; "/>
  231. <col ref="total_general_selection" style="text-align:right; "/>
  232. <col ref="total_healthinsurance_normal_prev" style="text-align:right; "/>
  233. <col ref="total_healthinsurance_normal" style="text-align:right; "/>
  234. <col ref="total_healthinsurance_selection_prev" style="text-align:right; "/>
  235. <col ref="total_healthinsurance_selection" style="text-align:right; "/>
  236. <col ref="total_medservice_normal_prev" style="text-align:right; "/>
  237. <col ref="total_medservice_normal" style="text-align:right; "/>
  238. <col ref="total_medservice_selection_prev" style="text-align:right; "/>
  239. <col ref="total_medservice_selection" style="text-align:right; "/>
  240. <col ref="total_carinsurance_normal_prev" style="text-align:right; "/>
  241. <col ref="total_carinsurance_normal" style="text-align:right; "/>
  242. <col ref="total_carinsurance_selection_prev" style="text-align:right; "/>
  243. <col ref="total_carinsurance_selection" style="text-align:right; "/>
  244. <col ref="total_subtotal_prev" style="text-align:right; "/>
  245. <col ref="total_subtotal" style="text-align:right; "/>
  246. <col ref="total_internet" style="text-align:right; "/>
  247. <col ref="classfieddept" style="text-align:right; "/>
  248. <col ref="specialclinic" style="text-align:right; "/>
  249. <col ref="perfirstclinic" style="text-align:right; "/>
  250. <col ref="reservation" style="text-align:right; "/>
  251. <col ref="giveback" style="text-align:right; "/>
  252. <script type="javascript" ev:event="xforms-value-changed">
  253. <![CDATA[
  254. //alert("aaa");
  255. model.recalculate();
  256. model.refresh();
  257. ]]>
  258. </script>
  259. </datagrid>
  260. <button id="button3" class="btn1_letter2" style="left:1121px; top:43px; width:56px; height:22px; ">
  261. <caption>출력</caption>
  262. <script type="javascript" ev:event="DOMActivate">
  263. <![CDATA[
  264. messageBox("기능 구현중","E008");
  265. ]]>
  266. </script>
  267. </button>
  268. <line id="line5" style="x1:1045px; y1:30px; x2:1045px; y2:75px; border-color:#ffe4bb; border-left-style:solid; "/>
  269. <button id="btn_ex" class="btn2_letter2" style="left:1153px; top:85px; width:42px; height:19px; ">
  270. <caption>엑셀</caption>
  271. <script type="javascript" ev:event="DOMActivate">
  272. <![CDATA[
  273. fSaveExcel();
  274. ]]>
  275. </script>
  276. </button>
  277. </xhtml:body>
  278. </xhtml:html>