SMMRS01100_외래초진통계.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  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>외래초진통계</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <item>
  11. <grid>
  12. <deptname/>
  13. <deptcode/>
  14. <newpatient_general_normal_prev/>
  15. <newpatient_general_normal/>
  16. <newpatient_general_selection_prev/>
  17. <newpatient_general_selection/>
  18. <newpatient_healthinsurance_normal_prev/>
  19. <newpatient_healthinsurance_normal/>
  20. <newpatient_healthinsurance_selection_prev/>
  21. <newpatient_healthinsurance_selection/>
  22. <newpatient_medservice_normal_prev/>
  23. <newpatient_medservice_normal/>
  24. <newpatient_medservice_selection_prev/>
  25. <newpatient_medservice_selection/>
  26. <newpatient_carinsurance_normal_prev/>
  27. <newpatient_carinsurance_normal/>
  28. <newpatient_carinsurance_selection_prev/>
  29. <newpatient_carinsurance_selection/>
  30. <newpatient_subtotal_prev/>
  31. <newpatient_subtotal/>
  32. <deptfirstclinic_general_normal_prev/>
  33. <deptfirstclinic_general_normal/>
  34. <deptfirstclinic_general_selection_prev/>
  35. <deptfirstclinic_general_selection/>
  36. <deptfirstclinic_healthinsurance_normal_prev/>
  37. <deptfirstclinic_healthinsurance_normal/>
  38. <deptfirstclinic_healthinsurance_selection_prev/>
  39. <deptfirstclinic_healthinsurance_selection/>
  40. <deptfirstclinic_medservice_normal_prev/>
  41. <deptfirstclinic_medservice_normal/>
  42. <deptfirstclinic_medservice_selection_prev/>
  43. <deptfirstclinic_medservice_selection/>
  44. <deptfirstclinic_carinsurance_normal_prev/>
  45. <deptfirstclinic_carinsurance_normal/>
  46. <deptfirstclinic_carinsurance_selection_prev/>
  47. <deptfirstclinic_carinsurance_selection/>
  48. <deptfirstclinic_subtotal_prev/>
  49. <deptfirstclinic_subtotal/>
  50. <returnfirstclinic_general_normal_prev/>
  51. <returnfirstclinic_general_normal/>
  52. <returnfirstclinic_general_selection_prev/>
  53. <returnfirstclinic_general_selection/>
  54. <returnfirstclinic_healthinsurance_normal_prev/>
  55. <returnfirstclinic_healthinsurance_normal/>
  56. <returnfirstclinic_healthinsurance_selection_prev/>
  57. <returnfirstclinic_healthinsurance_selection/>
  58. <returnfirstclinic_medservice_normal_prev/>
  59. <returnfirstclinic_medservice_normal/>
  60. <returnfirstclinic_medservice_selection_prev/>
  61. <returnfirstclinic_medservice_selection/>
  62. <returnfirstclinic_carinsurance_normal_prev/>
  63. <returnfirstclinic_carinsurance_normal/>
  64. <returnfirstclinic_carinsurance_selection_prev/>
  65. <returnfirstclinic_carinsurance_selection/>
  66. <returnfirstclinic_subtotal_prev/>
  67. <returnfirstclinic_subtotal/>
  68. <total_thismonth/>
  69. <total_lastmonth/>
  70. <total_riseandfall/>
  71. </grid>
  72. </item>
  73. <condition_start/>
  74. <condition_end/>
  75. <fromdd/>
  76. <todd/>
  77. </main>
  78. <send>
  79. <searchstartdate/>
  80. <searchenddate/>
  81. <startcondition/>
  82. <endcondition/>
  83. </send>
  84. </root>
  85. </instance>
  86. <submission id="TRMRS01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/item"/>
  87. <script type="javascript" ev:event="xforms-ready">
  88. <![CDATA[
  89. finitialize();
  90. ]]>
  91. </script>
  92. <bind id="PrevSumSubTotalCal" ref="/root/main/item/grid/total_thismonth" calculate="../newpatient_subtotal_prev + ../deptfirstclinic_subtotal_prev + ../returnfirstclinic_subtotal_prev" type="xsd:int"/>
  93. <bind id="SumSubTotalCal" ref="/root/main/item/grid/total_lastmonth" calculate="../newpatient_subtotal + ../deptfirstclinic_subtotal + ../returnfirstclinic_subtotal" type="xsd:int"/>
  94. <bind id="RiseAndFall" ref="/root/main/item/grid/total_riseandfall" calculate="../total_thismonth - ../total_lastmonth" type="xsd:int"/>
  95. </model>
  96. <script type="javascript">
  97. <![CDATA[
  98. /*
  99. function fChangeDate(inputString, bStart)
  100. {
  101. var cutStr = inputString.substr(0,6);
  102. if(bStart)
  103. {
  104. var cond = eval(cutStr.substr(0, 6));
  105. cond += "%";
  106. model.setValue("/root/main/condition_start", cond);
  107. }
  108. else
  109. {
  110. var cond = eval(cutStr.substr(0, 6));
  111. cond += "%";
  112. model.setValue("/root/main/condition_end", cond);
  113. // 조회 종료일자를 무조건 해당월의 마지막 일로 설정한다.
  114. var year = eval(cutStr.substr(0, 4));
  115. var month = (eval(cutStr.substring(4,6))-1);
  116. var SearchEndDate = new Date(year, month); // Date 객체를 생성
  117. var MonthlastDay = SearchEndDate.getMonthDay(); // 해달 월의 마직막 일자를 구함.
  118. cutStr += MonthlastDay;
  119. }
  120. return cutStr;
  121. }
  122. function fValidDate(StartDate, EndDate)
  123. {
  124. var dateInterval = eval(getDateInterval(StartDate, EndDate));
  125. if ( dateInterval < 0 )
  126. {
  127. messageBox("조회 기간이 맞지 않습니다. 조회 기간을 다시", "C002");
  128. return false;
  129. }
  130. return true;
  131. }
  132. */
  133. /*
  134. /*
  135. 조회버튼 클릭 타는 함수
  136. */
  137. ]]>
  138. </script>
  139. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  140. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  141. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  142. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  143. <script type="javascript" src="../../../emr/emrstatsweb/js/SMMRS01100.js"/>
  144. </xhtml:head>
  145. <xhtml:body>
  146. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  147. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:205px; height:13px; ">외래환자현황(초진내역)</caption>
  148. </group>
  149. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:26px; width:1195px; height:54px; background-color:#fffbf2; border-color:#ffd799; "/>
  150. <line id="line2" style="x1:326px; y1:43px; x2:326px; y2:65px; border-color:#ffe4bb; border-left-style:solid; "/>
  151. <caption id="caption3" class="tit_2" style="left:0px; top:90px; width:180px; height:13px; ">외래환자현황(초진내역)</caption>
  152. <caption id="caption1" class="search_name" style="left:11px; top:43px; width:86px; height:17px; ">조회기간 :</caption>
  153. <input id="ipt_fromdd" ref="/root/main/fromdd" class="input_search" inputtype="date" style="left:100px; top:43px; width:100px; height:19px; ">
  154. <script type="javascript" ev:event="xforms-value-changed">
  155. <![CDATA[
  156. var searchStart = model.getValue("/root/main/fromdd");
  157. var StartDate = fChangeDate(searchStart, 1); // DB 쿼리의 조회 조건을 설정
  158. model.setValue("/root/send/searchstartdate", searchStart);
  159. model.setValue("/root/main/fromdd", searchStart);
  160. model.refresh();
  161. ]]>
  162. </script>
  163. </input>
  164. <caption id="caption2" style="left:203px; top:45px; width:15px; height:20px; font-weight:bold; ">~</caption>
  165. <input id="ipt_todd" ref="/root/main/todd" class="input_search" inputtype="date" style="left:216px; top:43px; width:100px; height:19px; ">
  166. <script type="javascript" ev:event="xforms-value-changed">
  167. <![CDATA[
  168. var searchEnd = model.getValue("/root/main/todd");
  169. var EndDate = fChangeDate(searchEnd, 0);
  170. model.setValue("/root/send/searchenddate", searchEnd);
  171. model.setValue("/root/main/todd", searchEnd);
  172. model.refresh();
  173. ]]>
  174. </script>
  175. </input>
  176. <line id="line23" class="line_1" style="x1:0px; y1:105px; x2:1195px; y2:105px; "/>
  177. <button id="button1" class="btn1_letter2" style="left:1056px; top:43px; width:56px; height:22px; ">
  178. <caption>조회</caption>
  179. <script type="javascript" ev:event="DOMActivate">
  180. <![CDATA[
  181. var searchStart = model.getValue("/root/main/fromdd");
  182. var searchEnd = model.getValue("/root/main/todd");
  183. if ( fValidDate(searchStart, searchEnd) )
  184. {
  185. fClicked("search", grd_statslist);
  186. fCalculateStats();
  187. }
  188. ]]>
  189. </script>
  190. </button>
  191. <datagrid id="grd_statslist" nodeset="/root/main/item/grid" scroll="auto" backcoloralternate="#ffff9d" caption="진료과^진료과^신 환^신 환^신 환^신 환^신 환^신 환^신 환^신 환^신 환^신 환^신 환^신 환^신 환^신 환^신 환^신 환^신 환^신 환^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^과 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^상 병 초 진^전체 합계^전체 합계^전체 합계|진료과^진료과^일반^일반^일반^일반^건강보험^건강보험^건강보험^건강보험^의료보호^의료보호^의료보호^의료보호^자동차보험^자동차보험^자동차보험^자동차보험^소계^소계^일반^일반^일반^일반^건강보험^건강보험^건강보험^건강보험^의료보호^의료보호^의료보호^의료보호^자동차보험^자동차보험^자동차보험^자동차보험^소계^소계^일반^일반^일반^일반^건강보험^건강보험^건강보험^건강보험^의료보호^의료보호^의료보호^의료보호^자동차보험^자동차보험^자동차보험^자동차보험^소계^소계^현월^전월^증감|진료과^진료과코드^일반 Prev^일반 ^선택 Prev^선택^일반 Prev^일반^선택 Prev^선택^일반 Prev^일반^선택 Prev^선택^일반 Prev^일반^선택 Prev^선택^소계 Prev^소계^일반 Prev^일반 ^선택 Prev^선택^일반 Prev^일반^선택 Prev^선택^일반 Prev^일반^선택 Prev^선택^일반 Prev^일반^선택 Prev^선택^소계 Prev^소계^일반 Prev^일반 ^선택 Prev^선택^일반 Prev^일반^선택 Prev^선택^일반 Prev^일반^선택 Prev^선택^일반 Prev^일반^선택 Prev^선택^소계 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" fixedcols="2" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:110px; width:1195px; height:635px; ">
  192. <col ref="deptname"/>
  193. <col ref="deptcode"/>
  194. <col ref="newpatient_general_normal_prev" style="text-align:right; "/>
  195. <col ref="newpatient_general_normal" style="text-align:right; "/>
  196. <col ref="newpatient_general_selection_prev" style="text-align:right; "/>
  197. <col ref="newpatient_general_selection" style="text-align:right; "/>
  198. <col ref="newpatient_healthinsurance_normal_prev" style="text-align:right; "/>
  199. <col ref="newpatient_healthinsurance_normal" style="text-align:right; "/>
  200. <col ref="newpatient_healthinsurance_selection_prev" style="text-align:right; "/>
  201. <col ref="newpatient_healthinsurance_selection" style="text-align:right; "/>
  202. <col ref="newpatient_medservice_normal_prev" style="text-align:right; "/>
  203. <col ref="newpatient_medservice_normal" style="text-align:right; "/>
  204. <col ref="newpatient_medservice_selection_prev" style="text-align:right; "/>
  205. <col ref="newpatient_medservice_selection" style="text-align:right; "/>
  206. <col ref="newpatient_carinsurance_normal_prev" style="text-align:right; "/>
  207. <col ref="newpatient_carinsurance_normal" style="text-align:right; "/>
  208. <col ref="newpatient_carinsurance_selection_prev" style="text-align:right; "/>
  209. <col ref="newpatient_carinsurance_selection" style="text-align:right; "/>
  210. <col ref="newpatient_subtotal_prev" style="text-align:right; "/>
  211. <col ref="newpatient_subtotal" style="text-align:right; "/>
  212. <col ref="deptfirstclinic_general_normal_prev" style="text-align:right; "/>
  213. <col ref="deptfirstclinic_general_normal" style="text-align:right; "/>
  214. <col ref="deptfirstclinic_general_selection_prev" style="text-align:right; "/>
  215. <col ref="deptfirstclinic_general_selection" style="text-align:right; "/>
  216. <col ref="deptfirstclinic_healthinsurance_normal_prev" style="text-align:right; "/>
  217. <col ref="deptfirstclinic_healthinsurance_normal" style="text-align:right; "/>
  218. <col ref="deptfirstclinic_healthinsurance_selection_prev" style="text-align:right; "/>
  219. <col ref="deptfirstclinic_healthinsurance_selection" style="text-align:right; "/>
  220. <col ref="deptfirstclinic_medservice_normal_prev" style="text-align:right; "/>
  221. <col ref="deptfirstclinic_medservice_normal" style="text-align:right; "/>
  222. <col ref="deptfirstclinic_medservice_selection_prev" style="text-align:right; "/>
  223. <col ref="deptfirstclinic_medservice_selection" style="text-align:right; "/>
  224. <col ref="deptfirstclinic_carinsurance_normal_prev" style="text-align:right; "/>
  225. <col ref="deptfirstclinic_carinsurance_normal" style="text-align:right; "/>
  226. <col ref="deptfirstclinic_carinsurance_selection_prev" style="text-align:right; "/>
  227. <col ref="deptfirstclinic_carinsurance_selection" style="text-align:right; "/>
  228. <col ref="deptfirstclinic_subtotal_prev" style="text-align:right; "/>
  229. <col ref="deptfirstclinic_subtotal" style="text-align:right; "/>
  230. <col ref="returnfirstclinic_general_normal_prev" style="text-align:right; "/>
  231. <col ref="returnfirstclinic_general_normal" style="text-align:right; "/>
  232. <col ref="returnfirstclinic_general_selection_prev" style="text-align:right; "/>
  233. <col ref="returnfirstclinic_general_selection" style="text-align:right; "/>
  234. <col ref="returnfirstclinic_healthinsurance_normal_prev" style="text-align:right; "/>
  235. <col ref="returnfirstclinic_healthinsurance_normal" style="text-align:right; "/>
  236. <col ref="returnfirstclinic_healthinsurance_selection_prev" style="text-align:right; "/>
  237. <col ref="returnfirstclinic_healthinsurance_selection" style="text-align:right; "/>
  238. <col ref="returnfirstclinic_medservice_normal_prev" style="text-align:right; "/>
  239. <col ref="returnfirstclinic_medservice_normal" style="text-align:right; "/>
  240. <col ref="returnfirstclinic_medservice_selection_prev" style="text-align:right; "/>
  241. <col ref="returnfirstclinic_medservice_selection" style="text-align:right; "/>
  242. <col ref="returnfirstclinic_carinsurance_normal_prev" style="text-align:right; "/>
  243. <col ref="returnfirstclinic_carinsurance_normal" style="text-align:right; "/>
  244. <col ref="returnfirstclinic_carinsurance_selection_prev" style="text-align:right; "/>
  245. <col ref="returnfirstclinic_carinsurance_selection" style="text-align:right; "/>
  246. <col ref="returnfirstclinic_subtotal_prev" style="text-align:right; "/>
  247. <col ref="returnfirstclinic_subtotal" style="text-align:right; "/>
  248. <col ref="total_thismonth" style="text-align:right; "/>
  249. <col ref="total_lastmonth" style="text-align:right; "/>
  250. <col ref="total_riseandfall" style="text-align:right; "/>
  251. <script type="javascript" ev:event="xforms-value-changed">
  252. <![CDATA[
  253. /*
  254. var prevcal = "../newpatientsubtotalprev + ../deptfirstclinicsubtotalprev + ../returnfirstclinicsubtotalprev";
  255. PrevSumSubTotalCal.attribute("calculate") = prevcal;
  256. var cal = "../newpatientsubtotal + ../deptfirstclinicsubtotal + ../returnfirstclinicsubtotal";
  257. SumSubTotalCal.attribute("calculate") = cal;
  258. */
  259. model.recalculate();
  260. model.refresh();
  261. ]]>
  262. </script>
  263. </datagrid>
  264. <button id="button3" class="btn1_letter2" style="left:1123px; top:43px; width:56px; height:22px; ">
  265. <caption>출력</caption>
  266. <script type="javascript" ev:event="DOMActivate">
  267. <![CDATA[
  268. alert("기능 구현중입니다.");
  269. //exeReportPreview("RPTMP00300", "XML", "/root/send/report", "", "FinePrint", "", "", "", "", "true");
  270. //exeReportPreview("TRMRS01001", "XML", "/root/send/", "", "FinePrint", "", "", "", "", "true");
  271. ]]>
  272. </script>
  273. </button>
  274. <button id="btn_ex" class="btn2_letter2" style="left:1153px; top:85px; width:42px; height:19px; ">
  275. <caption>엑셀</caption>
  276. <script type="javascript" ev:event="DOMActivate">
  277. <![CDATA[
  278. fSaveExcel();
  279. ]]>
  280. </script>
  281. </button>
  282. <line id="line5" style="x1:1045px; y1:30px; x2:1045px; y2:75px; border-color:#ffe4bb; border-left-style:solid; "/>
  283. </xhtml:body>
  284. </xhtml:html>