SSMNI00100_주사실 통계.xrw 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SSMNF00100_주사실 통계.xrw
  4. * 수정이력
  5. * - 2008.09.15 / 최초작성 / 손은연
  6. * /* */
  7. -->
  8. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="txt/css" ?>
  9. <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">
  10. <xhtml:head>
  11. <xhtml:title>주사실 통계</xhtml:title>
  12. <model id="model1">
  13. <instance id="instance1">
  14. <root xmlns="">
  15. <main>
  16. <cond>
  17. <fromdd/>
  18. <todd/>
  19. <deptcd/>
  20. <depthngnm/>
  21. <kind/>
  22. </cond>
  23. <injroomstatsinfo>
  24. <injroomstatslist/>
  25. </injroomstatsinfo>
  26. </main>
  27. <send/>
  28. <init>
  29. </init>
  30. <hidden>
  31. <hidden>
  32. <deptinfo>
  33. <orddeptinfo>
  34. <deptlist>
  35. <deptcd/>
  36. <deptnm/>
  37. </deptlist>
  38. </orddeptinfo>
  39. </deptinfo>
  40. </hidden>
  41. </hidden>
  42. </root>
  43. </instance>
  44. <script type="javascript" ev:event="xforms-ready">
  45. <![CDATA[
  46. model.removeNodeset("/root/main/injroomstatsinfo");
  47. var todd= model.getValue("/root/main/cond/todd");
  48. var yyyymm = todd.substr(0,6);
  49. fGetDeptInfo('O', yyyymm, '/root/send', '/root/hidden/deptinfo/orddeptinfo');//외래진료과
  50. model.makeValue("/root/main/cond/fromdd", getCurrentDate());
  51. model.makeValue("/root/main/cond/todd", getCurrentDate());
  52. //model.makeValue("/root/main/cond/kind", '2');
  53. model.makeValue("/root/main/cond/deptcd", ' ');
  54. if(model.getValue("/root/main/cond/deptcd") == ""){
  55. messageBox("진료과를 선택하지", "E007");
  56. return;
  57. }
  58. model.refresh();
  59. ]]>
  60. </script>
  61. <submission id="TRSNI00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/injroomstatsinfo"/>
  62. <submission id="TRSNA00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/deptinfo"/>
  63. </model>
  64. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  67. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  68. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  69. <script type="javascript" src="../../../sts/stsenrweb/js/MNA001.js"/>
  70. </xhtml:head>
  71. <xhtml:body pagewidth="700" pageheight="600">
  72. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:160px; height:14px; ">주사실 통계</caption>
  73. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:19px; width:620px; height:96px; "/>
  74. <caption id="caption30" class="search_name" style="left:6px; top:60px; width:124px; height:17px; ">기 간 :</caption>
  75. <input id="ipt_procdd" ref="/root/main/cond/fromdd" class="input_search" navindex="2" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:149px; top:60px; width:90px; height:19px; text-align:center; ">
  76. <script type="javascript" ev:event="xforms-value-changed">
  77. <![CDATA[
  78. ]]>
  79. </script>
  80. </input>
  81. <input id="input1" ref="/root/main/cond/todd" class="input_search" navindex="2" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:252px; top:60px; width:90px; height:19px; text-align:center; ">
  82. <script type="javascript" ev:event="xforms-value-changed">
  83. <![CDATA[]]>
  84. </script>
  85. </input>
  86. <caption id="caption26" class="tit_2" style="left:5px; top:125px; width:195px; height:13px; ">주사실 통계 리스트</caption>
  87. <datagrid id="dgrd_rpt" nodeset="/root/main/injroomstatsinfo/injroomstatslist" class="grd_first" caption="검사명^처방건수^환자수^^" colsep="^" colwidth="200, 200, 130, 70" dataheight="25" extendlastcol="scroll" fixedcols="1" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:0px; top:147px; width:620px; height:333px; ">
  88. <col ref="testnm"/>
  89. <col ref="prcpcnt"/>
  90. <col ref="patcnt"/>
  91. </datagrid>
  92. <button id="btn_select" class="btn1_letter2" style="left:488px; top:40px; width:56px; height:22px; ">
  93. <caption>조회</caption>
  94. <script type="javascript" ev:event="DOMActivate">
  95. <![CDATA[
  96. if(model.getValue("/root/main/cond/depthngnm"), "--전체--"){
  97. model.setValue("/root/main/cond/deptcd", "-");
  98. }
  99. submit("TRSNI00101");
  100. ]]>
  101. </script>
  102. </button>
  103. <line id="line13" class="line_4" style="x1:472px; y1:40px; x2:472px; y2:62px; "/>
  104. <line id="line1" class="line_1" style="x1:0px; y1:141px; x2:621px; y2:141px; "/>
  105. <caption id="caption1" class="search_name" style="left:6px; top:85px; width:124px; height:17px; ">진 료 과 :</caption>
  106. <select1 id="combo1" ref="/root/main/cond/depthngnm" appearance="minimal" style="left:150px; top:85px; width:190px; height:19px; ">
  107. <choices>
  108. <itemset nodeset="/root/hidden/deptinfo/orddeptinfo/deptlist">
  109. <label ref="deptnm"/>
  110. <value ref="deptcd"/>
  111. </itemset>
  112. </choices>
  113. <script type="javascript" ev:event="xforms-value-changed">
  114. <![CDATA[
  115. btn_select.dispatch("DOMActivate");
  116. ]]>
  117. </script>
  118. </select1>
  119. <caption id="caption2" class="search_name" visibility="hidden" style="left:6px; top:35px; width:124px; height:17px; ">진 료 형 태 :</caption>
  120. <select1 id="rdo_kind" ref="/root/main/cond/kind" class="radio_search" visibility="hidden" appearance="full" cols="3" rows="1" overflow="visible" style="left:150px; top:32px; width:140px; height:20px; border-style:none; ">
  121. <choices>
  122. <item>
  123. <label>입원</label>
  124. <value>1</value>
  125. </item>
  126. <item>
  127. <label>외래</label>
  128. <value>2</value>
  129. </item>
  130. <item>
  131. <label>응급</label>
  132. <value>3</value>
  133. </item>
  134. </choices>
  135. <script type="javascript" ev:event="xforms-value-changed">
  136. <![CDATA[
  137. if(model.getValue("/root/main/cond/kind") == '1'){
  138. var todd= model.getValue("/root/main/cond/todd");
  139. var yyyymm = todd.substr(0,6);
  140. fGetDeptInfo('I', yyyymm, '/root/send', '/root/hidden/deptinfo/orddeptinfo'); //입원진료과
  141. model.makeValue("/root/main/cond/fromdd", getCurrentDate());
  142. model.makeValue("/root/main/cond/todd", getCurrentDate());
  143. model.makeValue("/root/main/cond/kind", '1');
  144. model.makeValue("/root/main/cond/deptcd", ' ');
  145. }else if(model.getValue("/root/main/cond/kind") == '2'){
  146. var todd= model.getValue("/root/main/cond/todd");
  147. var yyyymm = todd.substr(0,6);
  148. fGetDeptInfo('O', yyyymm, '/root/send', '/root/hidden/deptinfo/orddeptinfo');//외래진료과
  149. model.makeValue("/root/main/cond/fromdd", getCurrentDate());
  150. model.makeValue("/root/main/cond/todd", getCurrentDate());
  151. model.makeValue("/root/main/cond/kind", '2');
  152. model.makeValue("/root/main/cond/deptcd", ' ');
  153. }else if(model.getValue("/root/main/cond/kind") == '3'){
  154. var todd= model.getValue("/root/main/cond/todd");
  155. var yyyymm = todd.substr(0,6);
  156. fGetDeptInfo('W', yyyymm, '/root/send', '/root/hidden/deptinfo/orddeptinfo'); //병동
  157. model.makeValue("/root/main/cond/fromdd", getCurrentDate());
  158. model.makeValue("/root/main/cond/todd", getCurrentDate());
  159. model.makeValue("/root/main/cond/kind", '3');
  160. model.makeValue("/root/main/cond/deptcd", ' ');
  161. }
  162. btn_select.dispatch("DOMActivate");
  163. ]]>
  164. </script>
  165. </select1>
  166. <button id="button1" class="btn1_letter2" style="left:548px; top:40px; width:56px; height:22px; ">
  167. <caption>엑셀</caption>
  168. <script type="javascript" ev:event="DOMActivate">
  169. <![CDATA[
  170. var fileName = window.fileDialog("save", ",", false, "주사실통계" , "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  171. if (fileName != "") {
  172. dgrd_rpt.saveExcel(fileName, "주사실통계", true, true, "", "", true);
  173. }
  174. ]]>
  175. </script>
  176. </button>
  177. </xhtml:body>
  178. </xhtml:html>