SPMQR04000_수술부위표지율.xrw 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <cond>
  11. <fromdd/>
  12. <todd/>
  13. <opflag/>
  14. <stage/>
  15. <oppatflag/>
  16. <opplace/>
  17. </cond>
  18. <oppartinfo/>
  19. </main>
  20. <init>
  21. <op>
  22. <opflag>
  23. <cdid>-</cdid>
  24. <cdnm>전체</cdnm>
  25. </opflag>
  26. <opflag>
  27. <cdid>1</cdid>
  28. <cdnm>정규</cdnm>
  29. </opflag>
  30. <opflag>
  31. <cdid>2</cdid>
  32. <cdnm>응급</cdnm>
  33. </opflag>
  34. <stage>
  35. <cdid>01</cdid>
  36. <cdnm>간호단위</cdnm>
  37. </stage>
  38. <stage>
  39. <cdid>02</cdid>
  40. <cdnm>대기실</cdnm>
  41. </stage>
  42. <stage>
  43. <cdid>03</cdid>
  44. <cdnm>수술실</cdnm>
  45. </stage>
  46. <opflag>
  47. <cdid>3</cdid>
  48. <cdnm>추가</cdnm>
  49. </opflag>
  50. <oppatflag>
  51. <cdid>I</cdid>
  52. <cdnm>병동</cdnm>
  53. </oppatflag>
  54. <oppatflag>
  55. <cdid>D</cdid>
  56. <cdnm>외래(DSC)</cdnm>
  57. </oppatflag>
  58. <oppatflag>
  59. <cdid>-</cdid>
  60. <cdnm>전체</cdnm>
  61. </oppatflag>
  62. <opplace>
  63. <cdid>-</cdid>
  64. <cdnm>전체</cdnm>
  65. </opplace>
  66. <opplace>
  67. <cdid>01</cdid>
  68. <cdnm>일일수술실</cdnm>
  69. </opplace>
  70. <opplace>
  71. <cdid>02</cdid>
  72. <cdnm>중앙수술실</cdnm>
  73. </opplace>
  74. </op>
  75. </init>
  76. <send>
  77. <reqdata/>
  78. </send>
  79. </root>
  80. </instance>
  81. <script type="javascript" ev:event="xforms-ready">
  82. <![CDATA[
  83. ipt_fromdd.value = getCurrentDate();
  84. ipt_todd.value = getCurrentDate();
  85. model.setValue("/root/main/cond/opflag", "-"); //수술구분 전체 디폴트 선택
  86. model.setValue("/root/main/cond/oppatflag", "-"); //수술환자구분 전체 디폴트 선택
  87. model.setValue("/root/main/cond/stage", "01"); //단계 간호단위 디폴트 선택
  88. model.setValue("/root/main/cond/opplace", "-"); //수술장소 디폴트 선택
  89. model.refresh();
  90. ]]>
  91. </script>
  92. <submission id="TRMQR04001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/oppartinfo"/>
  93. </model>
  94. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  96. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  99. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  100. </xhtml:head>
  101. <xhtml:body pagewidth="670" pageheight="530" guideline="2,0;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  102. <caption id="caption3" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">수술부위 표지율</caption>
  103. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:21px; width:645px; height:58px; background-color:#fffbf2; border-color:#ffd799; "/>
  104. <caption id="caption1" class="search_name" style="left:5px; top:30px; width:86px; height:17px; ">조회기간</caption>
  105. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:85px; top:30px; width:100px; height:19px; ">
  106. <script type="javascript" ev:event="xforms-value-changed">
  107. <![CDATA[
  108. // 날짜 Validation Check
  109. if(ipt_fromdd.value !="") {
  110. if(ipt_fromdd.value > ipt_todd.value) {
  111. messageBox("종료일 이전 날자만 입력","I006");
  112. ipt_fromdd.value = getCurrentDate();
  113. }
  114. }
  115. ]]>
  116. </script>
  117. </input>
  118. <caption id="caption2" style="left:190px; top:30px; width:15px; height:20px; ">~</caption>
  119. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:210px; top:30px; width:100px; height:19px; ">
  120. <script type="javascript" ev:event="xforms-value-changed">
  121. <![CDATA[
  122. // 날짜 Validation Check
  123. if(ipt_todd.value !="") {
  124. if(ipt_fromdd.value > ipt_todd.value) {
  125. messageBox("시작일 이후 날자만 입력","I006");
  126. ipt_todd.value = getCurrentDate();
  127. }
  128. }
  129. ]]>
  130. </script>
  131. </input>
  132. <button id="btn_search" class="btn1_letter2" style="left:583px; top:30px; width:56px; height:22px; ">
  133. <caption>조회</caption>
  134. <script type="javascript" ev:event="DOMActivate">
  135. <![CDATA[
  136. if(ipt_todd.value == "" || ipt_fromdd.value == "") {
  137. messageBox("날짜는", "I003");
  138. ipt_todd.value = getCurrentDate();
  139. ipt_fromdd.value = getCurrentDate();
  140. return;
  141. }
  142. if (submit("TRMQR04001") ) {
  143. for (i= 1; i < grd_oppartrate.rows; i++ ) {
  144. if (model.getValue("/root/main/oppartinfo/oppartlist[" + i + "]/seqno") =="2") {
  145. grd_oppartrate.rowStyle(parseInt(i)+ 1, "all", "background-color") = "#ffcc00";
  146. }
  147. }
  148. }
  149. ]]>
  150. </script>
  151. </button>
  152. <datagrid id="grd_oppartrate" nodeset="/root/main/oppartinfo/oppartlist" caption="perfdeptcd^진료과^집도의^총인원^예^예^아니오^아니오^해당없음|perfdeptcd^진료과^집도의^총인원^건수^비율^건수^비율^해당없음" colsep="^" colwidth="0, 110, 110, 60, 60, 70, 60, 70, 60" fixedcols="4" mergecellsfixedcols="bycolrec" mergecellsfixedrows="byrowrec" rowheader="seq" rowsep="|" style="left:0px; top:83px; width:645px; height:427px; ">
  153. <col ref="perfdeptcd" visibility="hidden"/>
  154. <col ref="depthngnm" style="text-align:center; "/>
  155. <col ref="usernm" format="yyyy-mm-dd" style="text-align:center; "/>
  156. <col ref="totalcnt" style="text-align:center; "/>
  157. <col ref="yescnt" style="text-align:center; "/>
  158. <col ref="yesrate" style="text-align:center; "/>
  159. <col ref="nocnt" style="text-align:center; "/>
  160. <col ref="norate" style="text-align:center; "/>
  161. <col ref="nothingcnt" style="text-align:center; "/>
  162. <script type="javascript" ev:event="onaftersort">
  163. <![CDATA[
  164. grd_oppartrate.gridToInstance();
  165. ]]>
  166. </script>
  167. </datagrid>
  168. <line id="line1" class="line_1" style="x1:0px; y1:80px; x2:645px; y2:80px; "/>
  169. <button id="button1" class="btn2_letter4" style="left:575px; top:55px; width:64px; height:19px; ">
  170. <caption>엑셀저장</caption>
  171. <script type="javascript" ev:event="DOMActivate">
  172. <![CDATA[
  173. var selectValue1 = true;
  174. var selectValue2 = 1;
  175. var today = getCurrentDate();
  176. var fileName = window.fileDialog("save", ",", false, "수술부위표지율_"+today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  177. if (fileName != ""){
  178. //grd_ordwaitlist.saveExcel(fileName, "sheetname:sheet1");
  179. grd_oppartrate.saveExcel(fileName, "sheetname:sheet1");
  180. }
  181. ]]>
  182. </script>
  183. </button>
  184. <caption id="caption4" class="search_name" style="left:5px; top:55px; width:85px; height:17px; ">수술구분</caption>
  185. <select1 id="combo1" ref="/root/main/cond/opflag" appearance="minimal" style="left:85px; top:55px; width:100px; height:19px; ">
  186. <choices>
  187. <itemset nodeset="/root/init/op/opflag">
  188. <label ref="cdnm"/>
  189. <value ref="cdid"/>
  190. </itemset>
  191. </choices>
  192. </select1>
  193. <caption id="caption5" class="search_name" style="left:190px; top:55px; width:85px; height:17px; ">단계별</caption>
  194. <select1 id="combo2" ref="/root/main/cond/stage" disabled="false" appearance="minimal" style="left:255px; top:55px; width:100px; height:19px; ">
  195. <choices>
  196. <itemset nodeset="/root/init/op/stage">
  197. <label ref="cdnm"/>
  198. <value ref="cdid"/>
  199. </itemset>
  200. </choices>
  201. </select1>
  202. <caption id="caption6" class="search_name" style="left:320px; top:30px; width:110px; height:17px; ">수술환자구분</caption>
  203. <select1 id="combo3" ref="/root/main/cond/oppatflag" appearance="minimal" style="left:425px; top:30px; width:100px; height:19px; ">
  204. <choices>
  205. <itemset nodeset="/root/init/op/oppatflag">
  206. <label ref="cdnm"/>
  207. <value ref="cdid"/>
  208. </itemset>
  209. </choices>
  210. </select1>
  211. <caption id="caption7" class="search_name" style="left:365px; top:55px; width:80px; height:17px; ">수술장소</caption>
  212. <select1 id="combo4" ref="/root/main/cond/opplace" appearance="minimal" style="left:445px; top:55px; width:100px; height:19px; ">
  213. <choices>
  214. <itemset nodeset="/root/init/op/opplace">
  215. <label ref="cdnm"/>
  216. <value ref="cdid"/>
  217. </itemset>
  218. </choices>
  219. </select1>
  220. </xhtml:body>
  221. </xhtml:html>