SMMRS01300_EMR차트현황.xrw 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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>EMR차트현황</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <searchstartdate/>
  11. <searchenddate/>
  12. <condition_start/>
  13. <condition_end/>
  14. <item>
  15. <grid>
  16. <deptname/>
  17. <deptcode/>
  18. <hospitalization_emrChrt_Prv/>
  19. <hospitalization_emrChrt/>
  20. <hospitalization_paprChrt_Prv/>
  21. <hospitalization_paprChrt/>
  22. <ambulant_emrChrt_Prv/>
  23. <ambulant_emrChrt/>
  24. <ambulant_paprChrt_Prv/>
  25. <ambulant_paprChrt/>
  26. </grid>
  27. </item>
  28. </main>
  29. <send>
  30. <searchstartdate/>
  31. <searchenddate/>
  32. <startcondition/>
  33. <endcondition/>
  34. </send>
  35. </root>
  36. </instance>
  37. <submission id="TRMRS01031" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/item"/>
  38. </model>
  39. <script type="javascript" ev:event="xforms-ready">
  40. <![CDATA[
  41. grd_statslist.colstyle(0,"data","color")="#6464ff";
  42. // 진료과 코드 컬럼 숨기기
  43. grd_statslist.colHidden(1) = true;
  44. for (var i = 1; i < grd_statslist.cols; i++)
  45. {
  46. if (i % 2 == 0)
  47. {
  48. grd_statslist.colHidden(i) = true;
  49. }
  50. }
  51. ]]>
  52. </script>
  53. <script type="javascript">
  54. <![CDATA[
  55. /*
  56. 버튼 컨트롤들을 클릭했을때 공통으로 타는 함수입니다.
  57. control : "search" 는 조회 버튼 클릭
  58. "init"은 신규 버튼 클릭
  59. "save"는 저장 버튼 클릭
  60. grid : 그리드 컨트롤을 넘겨줍니다.
  61. param : 기타 param을 넘겨줍니다.
  62. */
  63. function fClicked(control, grid, param){
  64. if ("search" == control){
  65. fSearchClick(grid, param);
  66. model.resetInstanceNode("/root/send");
  67. } else if ("init" == control){
  68. model.reset();
  69. } else {
  70. messageBox("처리를 수행","E002");
  71. }
  72. model.refresh();
  73. }
  74. /*
  75. 조회버튼 클릭 타는 함수
  76. */
  77. function fSearchClick(grid,param)
  78. {
  79. model.removeNodeset("/root/main/item/grid");
  80. grid.rebuild();
  81. model.resetInstanceNode("/root/send");
  82. model.setValue("/root/send/searchstartdate", model.getValue("/root/main/searchstartdate") );
  83. model.setValue("/root/send/searchenddate", model.getValue("/root/main/searchenddate") );
  84. model.setValue("/root/send/startcondition", model.getValue("/root/main/condition_start") );
  85. model.setValue("/root/send/endcondition", model.getValue("/root/main/condition_end") );
  86. submit("TRMRS01031");
  87. }
  88. ]]>
  89. </script>
  90. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  93. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  94. <script type="javascript" src="../../../emr/emrstatsweb/js/SMMRS01300.js"/>
  95. </xhtml:head>
  96. <xhtml:body>
  97. <shape id="roundrect2" appearance="roundrect" style="left:0px; top:20px; width:1195px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  98. <button id="button1" class="btn1_letter2" style="left:1055px; top:43px; width:56px; height:22px; ">
  99. <caption>조회</caption>
  100. <script type="javascript" ev:event="DOMActivate">
  101. <![CDATA[
  102. var searchStart = model.getValue("/root/send/searchstartdate");
  103. var searchEnd = model.getValue("/root/send/searchenddate");
  104. if ( fValidDate(searchStart, searchEnd) )
  105. {
  106. fClicked("search", grd_statslist);
  107. fCalculateStats();
  108. }
  109. ]]>
  110. </script>
  111. </button>
  112. <button id="button3" class="btn1_letter2" style="left:1121px; top:43px; width:56px; height:22px; ">
  113. <caption>출력</caption>
  114. <script type="javascript" ev:event="DOMActivate">
  115. <![CDATA[
  116. alert("기능 구현중입니다.");
  117. ]]>
  118. </script>
  119. </button>
  120. <button id="btn_ex" class="btn2_letter2" style="left:1153px; top:85px; width:42px; height:19px; ">
  121. <caption>엑셀</caption>
  122. <script type="javascript" ev:event="DOMActivate">
  123. <![CDATA[
  124. fSaveExcel();
  125. ]]>
  126. </script>
  127. </button>
  128. <line id="line23" class="line_1" style="x1:0px; y1:105px; x2:1195px; y2:105px; "/>
  129. <caption id="caption1" class="search_name" style="left:11px; top:43px; width:86px; height:17px; ">조회기간 :</caption>
  130. <caption id="caption2" style="left:203px; top:44px; width:15px; height:20px; font-weight:bold; ">~</caption>
  131. <caption id="caption3" class="tit_2" style="left:0px; top:90px; width:157px; height:13px; ">EMR차트현황</caption>
  132. <input id="input1" ref="/root/main/searchenddate" class="input_search" inputtype="date" style="left:217px; top:43px; width:100px; height:19px; ">
  133. <script type="javascript" ev:event="xforms-value-changed">
  134. <![CDATA[
  135. var searchEnd = model.getValue("/root/main/searchenddate");
  136. // DB 쿼리의 조회 조건을 설정
  137. var EndDate = fChangeDate(searchEnd, 0);
  138. model.makeValue("/root/send/searchenddate", searchEnd);
  139. model.setValue("/root/main/searchenddate", searchEnd);
  140. model.refresh();
  141. ]]>
  142. </script>
  143. </input>
  144. <input id="input5" ref="/root/main/searchstartdate" class="input_search" inputtype="date" style="left:100px; top:43px; width:100px; height:19px; ">
  145. <script type="javascript" ev:event="xforms-value-changed">
  146. <![CDATA[
  147. var searchStart = model.getValue("/root/main/searchstartdate");
  148. // DB 쿼리의 조회 조건을 설정
  149. var StartDate = fChangeDate(searchStart, 1);
  150. model.makeValue("/root/send/searchstartdate", searchStart);
  151. model.setValue("/root/main/searchstartdate", searchStart);
  152. model.refresh();
  153. ]]>
  154. </script>
  155. </input>
  156. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  157. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:106px; height:13px; ">EMR차트현황</caption>
  158. </group>
  159. <datagrid id="grd_statslist" nodeset="/root/main/item/grid" caption="진료과^진료과^입원^입원^입원^입원^외래^외래^외래^외래|진료과^진료코드^EMR차트(전월)^EMR차트^종이차트(전월)^종이차트^EMR차트(전월)^EMR차트^종이차트(전월)^종이차트" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1px; top:110px; width:1195px; height:605px; ">
  160. <col ref="deptname"/>
  161. <col ref="deptcode"/>
  162. <col ref="hospitalization_emrChrt_Prv"/>
  163. <col ref="hospitalization_emrChrt"/>
  164. <col ref="hospitalization_paprChrt_Prv"/>
  165. <col ref="hospitalization_paprChrt"/>
  166. <col ref="ambulant_emrChrt_Prv"/>
  167. <col ref="ambulant_emrChrt"/>
  168. <col ref="ambulant_paprChrt_Prv"/>
  169. <col ref="ambulant_paprChrt"/>
  170. </datagrid>
  171. </xhtml:body>
  172. </xhtml:html>