SMMCT00101_특수주사실이용현황.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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. <condition>
  11. <fromdd/>
  12. <todd/>
  13. <orgordtype/>
  14. </condition>
  15. <specinjeinfo>
  16. <specinjeinfolist/>
  17. <statsdatalist>
  18. <prvn/>
  19. <cncr/>
  20. <bio/>
  21. <gnrl/>
  22. <sap/>
  23. <blod/>
  24. <tret/>
  25. <etc/>
  26. <tot/>
  27. <mouth/>
  28. </statsdatalist>
  29. </specinjeinfo>
  30. </main>
  31. <send>
  32. <reqdata>
  33. <fromdd/>
  34. <todd/>
  35. </reqdata>
  36. </send>
  37. <init>
  38. <orddept/>
  39. <info/>
  40. <userlist/>
  41. </init>
  42. </root>
  43. </instance>
  44. <script type="javascript" ev:event="xforms-ready">
  45. <![CDATA[
  46. model.setValue("/root/main/condition/fromdd", getCurrentDate());
  47. model.setValue("/root/main/condition/todd" , getCurrentDate());
  48. cap_total.value = "총 0 건";
  49. model.removeNodeset(grd_specinjlst.nodeset);
  50. model.refresh();
  51. ]]>
  52. </script>
  53. <submission id="TRMCT00101" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/specinjeinfo"/>
  54. </model>
  55. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  58. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  59. </xhtml:head>
  60. <xhtml:body accesskey="f2" guideline="2,763;2,765;2,763;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  61. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">특수주사실 이용 현황</caption>
  62. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:20px; width:1194px; height:40px; "/>
  63. <button id="btn_req" class="btn1_letter2" style="left:1120px; top:32px; width:56px; height:22px; ">
  64. <caption>조회</caption>
  65. <script type="javascript" ev:event="DOMActivate">
  66. <![CDATA[
  67. var curTm = getCurrentTime();
  68. if( curTm< "170000" && curTm > "080000" ) {
  69. alert("업무시간에는 사용하실 수 없습니다. ( 08:00~ 17:00 ) " );
  70. return ;
  71. }
  72. var cnt = 0 ;
  73. cap_total.value = "총 " + cnt + " 건";
  74. model.removeNodeset(grd_specinjlst.nodeset);
  75. model.resetInstanceNode("/root/main/specinjeinfo/statsdatalist");
  76. model.resetInstanceNode("/root/send/reqdata");
  77. model.copyNode("/root/send/reqdata", "/root/main/condition");
  78. /*var fromdd = model.getValue("/root/main/condition/fromdd");
  79. var todd = model.getValue("/root/main/condition/todd");
  80. model.setValue("/root/send/date/fromdd", fromdd);
  81. model.setValue("/root/send/date/todd", todd);
  82. */
  83. if( submit("TRMCT00101") ) {
  84. var nodelst = instance1.selectNodes(grd_specinjlst.nodeset );
  85. cnt = nodelst.length;
  86. cap_total.value = "총 " + cnt + " 건";
  87. model.makeValue(opt_totcnt.attribute("ref"), nodelst.length);
  88. //예방
  89. nodelst = instance1.selectNodes(grd_specinjlst.nodeset + "[cdflag='예방']");
  90. model.makeValue( opt_prvn.attribute("ref") , nodelst.length);
  91. //항암
  92. nodelst = instance1.selectNodes(grd_specinjlst.nodeset + "[cdflag='항암']");
  93. model.makeValue(opt_anticncr.attribute("ref") , nodelst.length);
  94. //항생
  95. nodelst = instance1.selectNodes(grd_specinjlst.nodeset + "[cdflag='항생']");
  96. model.makeValue(opt_antibio.attribute("ref") , nodelst.length);
  97. //일반
  98. nodelst = instance1.selectNodes(grd_specinjlst.nodeset + "[cdflag='일반']");
  99. model.makeValue(opt_gnrl.attribute("ref") , nodelst.length);
  100. //수액
  101. nodelst = instance1.selectNodes(grd_specinjlst.nodeset + "[cdflag='수액']");
  102. model.makeValue(opt_sap.attribute("ref") , nodelst.length);
  103. //혈액
  104. nodelst = instance1.selectNodes(grd_specinjlst.nodeset + "[cdflag='혈액']");
  105. model.makeValue(opt_blod.attribute("ref") , nodelst.length);
  106. //처치
  107. nodelst = instance1.selectNodes(grd_specinjlst.nodeset + "[cdflag='처치']");
  108. model.makeValue(opt_tret.attribute("ref") , nodelst.length);
  109. //기타
  110. nodelst = instance1.selectNodes(grd_specinjlst.nodeset + "[cdflag='기타']");
  111. model.makeValue(opt_etc.attribute("ref") , nodelst.length);
  112. }
  113. model.refresh();
  114. ]]>
  115. </script>
  116. </button>
  117. <line id="line5" style="x1:1100px; y1:28px; x2:1100px; y2:50px; border-color:#ffe4bb; border-left-style:solid; "/>
  118. <caption id="caption20" class="tit_2" style="left:5px; top:68px; width:190px; height:13px; ">특수주사실 이용 현황 조회</caption>
  119. <line id="line1" class="line_1" style="x1:4px; y1:86px; x2:1191px; y2:87px; "/>
  120. <input id="input2" ref="/root/main/condition/fromdd" class="input_s_essential" inputtype="date" style="left:80px; top:32px; width:90px; height:19px; "/>
  121. <input id="input1" ref="/root/main/condition/todd" class="input_s_essential" inputtype="date" style="left:185px; top:32px; width:90px; height:19px; "/>
  122. <select1 id="radio2" ref="/root/main/condition/orgordtype" overflow="visible" appearance="full" cols="3" cellspacing="30" style="left:365px; top:30px; width:310px; height:25px; border-style:none; ">
  123. <choices>
  124. <item>
  125. <label>전체</label>
  126. <value/>
  127. </item>
  128. <item>
  129. <label>암센터</label>
  130. <value>C</value>
  131. </item>
  132. <item>
  133. <label>BMT</label>
  134. <value>B</value>
  135. </item>
  136. </choices>
  137. </select1>
  138. <caption id="caption8" style="left:174px; top:34px; width:15px; height:15px; ">~</caption>
  139. <caption id="caption9" class="search_name" style="left:15px; top:32px; width:86px; height:17px; ">기 간 :</caption>
  140. <datagrid id="grd_specinjlst" nodeset="/root/main/specinjeinfo/specinjeinfolist" caption="센터^과^주치의^환자ID^환자이름^구분^진단코드^진단명^입실일시^퇴실일시^소요시간^소요시간" colwidth="77, 86, 73, 84, 85, 58, 100, 246, 123, 122, 51, 39" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" colsep="^" tooltip="true" style="left:3px; top:91px; width:1187px; height:619px; ">
  141. <col ref="cent" style="text-align:center; "/>
  142. <col ref="depthngnm" style="text-align:center; "/>
  143. <col ref="doctnm" style="text-align:center; "/>
  144. <col ref="pid" style="text-align:center; "/>
  145. <col ref="hngnm" style="text-align:center; "/>
  146. <col ref="cdflag" style="text-align:center; "/>
  147. <col ref="diagcd" style="text-align:center; "/>
  148. <col ref="diaghngnm"/>
  149. <col ref="indd" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; "/>
  150. <col ref="dschdd" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; "/>
  151. <col ref="caremm" style="text-align:center; "/>
  152. <col ref="caremm1" format="#,###min" style="text-align:center; "/>
  153. </datagrid>
  154. <caption id="caption1" class="search_name" style="left:295px; top:32px; width:86px; height:17px; ">구 분 :</caption>
  155. <caption id="cap_total" class="search_name" style="left:955px; top:32px; width:125px; height:17px; ">총 0 건</caption>
  156. <button id="button1" class="btn2_letter2" style="left:1149px; top:65px; width:42px; height:19px; ">
  157. <caption>엑셀</caption>
  158. <script type="javascript" ev:event="DOMActivate">
  159. <![CDATA[
  160. var title = "특수주사실이용현황 (" + model.getValue("/root/main/condition/fromdd" ) + " ~ " + model.getValue("/root/main/condition/todd" ) ;
  161. //fsaveGridToExcel(grd_inpatinfolst, title);
  162. var fileName = window.fileDialog("save", ",", false, "특수주사실이용현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  163. if (fileName != ""){
  164. grd_specinjlst.saveExcel(fileName, "특수주사실이용현황", true, true, "", "", false);
  165. var s = fileName.lastIndexOf("\\");
  166. var fileName=fileName.substring(s+1);
  167. var rmsg = messageBox("저장된 Excel을", "Q004");
  168. if( rmsg == 6 ){
  169. window.exec("excel.exe", fileName);
  170. }
  171. }
  172. ]]>
  173. </script>
  174. </button>
  175. <output id="opt_gnrl" ref="/root/main/specinjeinfo/statsdatalist/gnrl" class="output_fix" format="#,###" style="left:434px; top:737px; width:75px; height:19px; text-align:right; "/>
  176. <output id="opt_tret" ref="/root/main/specinjeinfo/statsdatalist/tret" class="output_fix" format="#,###" style="left:817px; top:737px; width:75px; height:19px; text-align:right; "/>
  177. <line id="line10" class="line_1" style="x1:4px; y1:730px; x2:1191px; y2:730px; "/>
  178. <output id="opt_totcnt" ref="/root/main/specinjeinfo/statsdatalist/tot" class="output_fix" format="#,###" style="left:1098px; top:736px; width:90px; height:19px; text-align:right; "/>
  179. <line id="line11" class="line_3" style="x1:4px; y1:758px; x2:1191px; y2:758px; "/>
  180. <output id="opt_etc" ref="/root/main/specinjeinfo/statsdatalist/etc" class="output_fix" format="#,###" style="left:945px; top:737px; width:75px; height:19px; text-align:right; "/>
  181. <caption id="caption10" class="cell_1" style="left:258px; top:735px; width:46px; height:23px; vertical-align:middle; ">항생</caption>
  182. <caption id="caption11" class="cell_1" style="left:4px; top:735px; width:46px; height:23px; vertical-align:middle; ">예방</caption>
  183. <output id="opt_antibio" ref="/root/main/specinjeinfo/statsdatalist/bio" class="output_fix" format="#,###" style="left:307px; top:737px; width:75px; height:19px; text-align:right; "/>
  184. <caption id="caption2" class="cell_1" style="left:385px; top:735px; width:46px; height:23px; vertical-align:middle; ">일반</caption>
  185. <caption id="caption12" class="cell_1" style="left:513px; top:735px; width:46px; height:23px; vertical-align:middle; ">수액</caption>
  186. <caption id="caption3" class="cell_1" style="left:641px; top:735px; width:46px; height:23px; vertical-align:middle; ">혈액</caption>
  187. <caption id="caption13" class="cell_1" style="left:896px; top:735px; width:46px; height:23px; vertical-align:middle; ">기타</caption>
  188. <caption id="caption4" class="cell_1" style="left:768px; top:735px; width:46px; height:23px; vertical-align:middle; ">처치</caption>
  189. <caption id="caption5" class="cell_1" style="left:131px; top:735px; width:46px; height:23px; vertical-align:middle; ">항암</caption>
  190. <output id="opt_prvn" ref="/root/main/specinjeinfo/statsdatalist/prvn" class="output_fix" format="#,###" style="left:53px; top:737px; width:75px; height:19px; text-align:right; "/>
  191. <caption id="caption15" class="cell_1" style="left:1023px; top:734px; width:72px; height:23px; vertical-align:middle; ">총 건수</caption>
  192. <caption id="caption6" class="tit_2" style="left:5px; top:715px; width:170px; height:13px; ">통계 건수</caption>
  193. <output id="opt_anticncr" ref="/root/main/specinjeinfo/statsdatalist/cncr" class="output_fix" format="#,###" style="left:180px; top:737px; width:75px; height:19px; text-align:right; "/>
  194. <output id="opt_sap" ref="/root/main/specinjeinfo/statsdatalist/sap" class="output_fix" format="#,###" style="left:563px; top:737px; width:75px; height:19px; text-align:right; "/>
  195. <output id="opt_blod" ref="/root/main/specinjeinfo/statsdatalist/blod" class="output_fix" format="#,###" style="left:690px; top:737px; width:75px; height:19px; text-align:right; "/>
  196. </xhtml:body>
  197. </xhtml:html>