SMMCT00102_일반주사실이용현황.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <orddeptcd/>
  14. <subdeptcd/>
  15. <medispclid/>
  16. </condition>
  17. <geneinjeinfo>
  18. <geneinjeinfolist/>
  19. <statsdatalist>
  20. <prvn/>
  21. <cncr/>
  22. <bio/>
  23. <gnrl/>
  24. <sap/>
  25. <blod/>
  26. <tret/>
  27. <etc/>
  28. <tot/>
  29. <mouth/>
  30. </statsdatalist>
  31. </geneinjeinfo>
  32. </main>
  33. <send>
  34. <reqdata/>
  35. <fromdd/>
  36. <todd/>
  37. </send>
  38. <init>
  39. <orddept>
  40. <dept/>
  41. </orddept>
  42. <info/>
  43. <userlist>
  44. <usercombo>
  45. <userid/>
  46. <usernm/>
  47. </usercombo>
  48. </userlist>
  49. <subdeptinfo>
  50. <subdeptlist/>
  51. </subdeptinfo>
  52. </init>
  53. </root>
  54. </instance>
  55. <script type="javascript" ev:event="xforms-ready">
  56. <![CDATA[
  57. //진료과
  58. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept" , "D"); //부서코드 콤보
  59. addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //부서콤보 Item '전체'추가
  60. addComboInstance("/root/init/subdeptinfo" , "subdeptcd^subdeptnm", "-^전체", "subdeptlist"); //부서콤보 Item '전체'추가
  61. //전문의
  62. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , getUserInfo("dutplcecd"), "0330", "", "M");
  63. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  64. //초기값 셋팅
  65. model.setValue("/root/main/condition/orddeptcd" , "-");
  66. model.setValue("/root/main/condition/medispclid" , "-");
  67. model.removeNodeset(grd_genrinjlst.nodeset );
  68. cap_total.value = "총 0 명";
  69. model.setValue("/root/main/condition/fromdd", getCurrentDate());
  70. model.setValue("/root/main/condition/todd" , getCurrentDate());
  71. model.refresh();
  72. ]]>
  73. </script>
  74. <submission id="TRMCT00102" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/geneinjeinfo"/>
  75. <submission id="TRMMB04101" method="post" mediatype="application/x-www-form-urlencoded"/>
  76. <submission id="TRMMB04102" method="post" mediatype="application/x-www-form-urlencoded"/>
  77. <submission id="TRMMB04103" method="post" mediatype="application/x-www-form-urlencoded"/>
  78. <submission id="TRMMB04106" method="post" mediatype="application/x-www-form-urlencoded"/>
  79. </model>
  80. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  83. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  84. <script type="javascript" src="../../../emr/emrctlweb/js/MCT001.js"/>
  85. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  86. </xhtml:head>
  87. <xhtml:body accesskey="f2" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  88. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">일반주사실 이용 현황</caption>
  89. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:20px; width:1194px; height:40px; "/>
  90. <line id="line5" style="x1:1100px; y1:28px; x2:1100px; y2:50px; border-color:#ffe4bb; border-left-style:solid; "/>
  91. <caption id="caption20" class="tit_2" style="left:5px; top:68px; width:190px; height:13px; ">일반주사실 이용 현황 조회</caption>
  92. <line id="line1" class="line_1" style="x1:4px; y1:86px; x2:1191px; y2:87px; "/>
  93. <input id="input2" ref="/root/main/condition/fromdd" class="input_s_essential" inputtype="date" style="left:80px; top:30px; width:90px; height:19px; "/>
  94. <input id="input1" ref="/root/main/condition/todd" class="input_s_essential" inputtype="date" style="left:185px; top:30px; width:90px; height:19px; "/>
  95. <select1 id="cmb_orddept" ref="/root/main/condition/orddeptcd" class="combo_search" appearance="minimal" editmode="search" style="left:380px; top:31px; width:115px; height:19px; ">
  96. <choices>
  97. <itemset nodeset="/root/init/orddept/dept">
  98. <label ref="depthngnm"/>
  99. <value ref="deptcd"/>
  100. </itemset>
  101. </choices>
  102. <script type="javascript" ev:event="xforms-value-changed">
  103. <![CDATA[
  104. fSetMedDr("", cmb_orddept.value ) ;
  105. ]]>
  106. </script>
  107. </select1>
  108. <select1 id="cmb_medispclid" ref="/root/main/condition/medispclid" class="combo_search" appearance="minimal" itemcount="30" style="left:590px; top:31px; width:90px; height:19px; ">
  109. <choices>
  110. <itemset nodeset="/root/init/userlist/usercombo">
  111. <label ref="usernm"/>
  112. <value ref="userid"/>
  113. </itemset>
  114. </choices>
  115. </select1>
  116. <button id="btn_req" class="btn1_letter2" style="left:1120px; top:30px; width:56px; height:22px; ">
  117. <caption>조회</caption>
  118. <script type="javascript" ev:event="DOMActivate">
  119. <![CDATA[
  120. var curTm = getCurrentTime();
  121. if( curTm< "170000" && curTm > "080000" ) {
  122. alert("업무시간에는 사용하실 수 없습니다. ( 08:00~ 17:00 ) " );
  123. return ;
  124. }
  125. var cnt = 0 ;
  126. cap_total.value = "총 " + cnt + " 건";
  127. model.removeNodeset(grd_genrinjlst.nodeset);
  128. model.resetInstanceNode("/root/send");
  129. model.resetInstanceNode("/root/main/geneinjeinfo/statsdatalist");
  130. model.copyNode("/root/send", "/root/main/condition");
  131. if( model.getValue("/root/send/orddeptcd") == "-" ) model.setValue("/root/send/orddeptcd", "");
  132. if( model.getValue("/root/send/medispclid") == "-" ) model.setValue("/root/send/medispclid", "");
  133. submit("TRMCT00102");
  134. var nodelst = instance1.selectNodes(grd_genrinjlst.nodeset );
  135. cnt = nodelst.length;
  136. cap_total.value = "총 " + cnt + " 건";
  137. model.makeValue("/root/main/geneinjeinfo/statsdatalist/tot", nodelst.length);
  138. //예방
  139. nodelst = instance1.selectNodes(grd_genrinjlst.nodeset + "[cdflag='예방']");
  140. model.makeValue("/root/main/geneinjeinfo/statsdatalist/prvn", nodelst.length);
  141. //항암
  142. nodelst = instance1.selectNodes(grd_genrinjlst.nodeset + "[cdflag='항암']");
  143. model.makeValue("/root/main/geneinjeinfo/statsdatalist/cncr", nodelst.length);
  144. //항생
  145. nodelst = instance1.selectNodes(grd_genrinjlst.nodeset + "[cdflag='항생']");
  146. model.makeValue("/root/main/geneinjeinfo/statsdatalist/bio", nodelst.length);
  147. //일반
  148. nodelst = instance1.selectNodes(grd_genrinjlst.nodeset + "[cdflag='일반']");
  149. model.makeValue("/root/main/geneinjeinfo/statsdatalist/gnrl", nodelst.length);
  150. //수액
  151. nodelst = instance1.selectNodes(grd_genrinjlst.nodeset + "[cdflag='수액']");
  152. model.makeValue("/root/main/geneinjeinfo/statsdatalist/sap", nodelst.length);
  153. //혈액
  154. nodelst = instance1.selectNodes(grd_genrinjlst.nodeset + "[cdflag='혈액']");
  155. model.makeValue("/root/main/geneinjeinfo/statsdatalist/blod", nodelst.length);
  156. //처치
  157. nodelst = instance1.selectNodes(grd_genrinjlst.nodeset + "[cdflag='처치']");
  158. model.makeValue("/root/main/geneinjeinfo/statsdatalist/tret", nodelst.length);
  159. //기타
  160. nodelst = instance1.selectNodes(grd_genrinjlst.nodeset + "[cdflag='기타']");
  161. model.makeValue("/root/main/geneinjeinfo/statsdatalist/etc", nodelst.length);
  162. model.refresh();
  163. ]]>
  164. </script>
  165. </button>
  166. <caption id="caption8" style="left:174px; top:32px; width:15px; height:15px; ">~</caption>
  167. <caption id="caption9" class="search_name" style="left:15px; top:30px; width:86px; height:17px; ">기간 :</caption>
  168. <datagrid id="grd_genrinjlst" nodeset="/root/main/geneinjeinfo/geneinjeinfolist" caption="센터^과^주치의^환자ID^환자이름^구분^진단명^예약일시^처방일시^시행일시" colwidth="92, 93, 69, 100, 81, 45, 252, 143, 160, 154" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" colsep="^" tooltip="true" style="left:3px; top:91px; width:1187px; height:639px; ">
  169. <col ref="cent"/>
  170. <col ref="depthngnm"/>
  171. <col ref="doctnm" style="text-align:center; "/>
  172. <col ref="pid" style="text-align:center; "/>
  173. <col ref="hngnm" style="text-align:center; "/>
  174. <col ref="cdflag" style="text-align:center; "/>
  175. <col ref="diaghngnm"/>
  176. <col ref="rsrvdd" format="yyyy-mm-dd hh:mm" style="text-align:center; "/>
  177. <col ref="prcpdd" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; "/>
  178. <col ref="execdd" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; "/>
  179. </datagrid>
  180. <caption id="cap_total" class="search_name" style="left:965px; top:30px; width:125px; height:17px; ">총 0 건</caption>
  181. <caption id="caption1" class="search_name" style="left:511px; top:31px; width:76px; height:17px; ">주 치 의</caption>
  182. <caption id="caption14" class="search_name" visibility="hidden" style="left:711px; top:60px; width:76px; height:17px; ">세 부 과</caption>
  183. <select1 id="cmb_subdept" ref="/root/main/condition/subdeptcd" class="combo" visibility="hidden" appearance="minimal" style="left:790px; top:60px; width:115px; height:19px; ">
  184. <choices>
  185. <itemset nodeset="/root/init/subdeptinfo/subdeptlist">
  186. <label ref="subdeptnm"/>
  187. <value ref="subdeptcd"/>
  188. </itemset>
  189. </choices>
  190. </select1>
  191. <caption id="caption7" class="search_name" style="left:301px; top:31px; width:76px; height:17px; ">진 료 과</caption>
  192. <button id="button1" class="btn2_letter2" style="left:1149px; top:65px; width:42px; height:19px; ">
  193. <caption>엑셀</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. var title = "일반주사실이용현황 (" + model.getValue("/root/main/condition/fromdd" ) + " ~ " + model.getValue("/root/main/condition/todd" ) ;
  197. //fsaveGridToExcel(grd_inpatinfolst, title);
  198. var fileName = window.fileDialog("save", ",", false, "일반주사실이용현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  199. if (fileName != ""){
  200. grd_genrinjlst.saveExcel(fileName, "일반주사실이용현황", true, true, "", "", false);
  201. var s = fileName.lastIndexOf("\\");
  202. var fileName=fileName.substring(s+1);
  203. var rmsg = messageBox("저장된 Excel을", "Q004");
  204. if( rmsg == 6 ){
  205. window.exec("excel.exe", fileName);
  206. }
  207. }
  208. ]]>
  209. </script>
  210. </button>
  211. <output id="opt_gnrl" ref="/root/main/geneinjeinfo/statsdatalist/gnrl" class="output_fix" format="#,###" style="left:418px; top:757px; width:70px; height:19px; text-align:right; "/>
  212. <output id="opt_inj" ref="/root/main/geneinjeinfo/statsdatalist/tret" class="output_fix" format="#,###" style="left:784px; top:757px; width:70px; height:19px; text-align:right; "/>
  213. <output id="opt_totcnt" ref="/root/main/geneinjeinfo/statsdatalist/tot" class="output_fix" format="#,###" style="left:1075px; top:756px; width:115px; height:19px; text-align:right; "/>
  214. <line id="line10" class="line_1" style="x1:3px; y1:750px; x2:1190px; y2:750px; "/>
  215. <line id="line11" class="line_3" style="x1:3px; y1:778px; x2:1190px; y2:778px; "/>
  216. <output id="opt_cure" ref="/root/main/geneinjeinfo/statsdatalist/etc" class="output_fix" format="#,###" style="left:906px; top:756px; width:70px; height:19px; text-align:right; "/>
  217. <caption id="caption2" class="cell_1" style="left:369px; top:755px; width:46px; height:23px; vertical-align:middle; ">일반</caption>
  218. <output id="opt_antibio" ref="/root/main/geneinjeinfo/statsdatalist/bio" class="output_fix" format="#,###" style="left:296px; top:757px; width:70px; height:19px; text-align:right; "/>
  219. <caption id="caption3" class="cell_1" style="left:613px; top:755px; width:46px; height:23px; vertical-align:middle; ">혈액</caption>
  220. <caption id="caption11" class="cell_1" style="left:3px; top:755px; width:46px; height:23px; vertical-align:middle; ">예방</caption>
  221. <caption id="caption4" class="cell_1" style="left:735px; top:755px; width:46px; height:23px; vertical-align:middle; ">처치</caption>
  222. <caption id="caption12" class="cell_1" style="left:491px; top:755px; width:46px; height:23px; vertical-align:middle; ">수액</caption>
  223. <caption id="caption5" class="cell_1" style="left:125px; top:755px; width:46px; height:23px; vertical-align:middle; ">항암</caption>
  224. <caption id="caption6" class="tit_2" style="left:10px; top:735px; width:170px; height:13px; ">통계 건수</caption>
  225. <caption id="caption10" class="cell_1" style="left:247px; top:755px; width:46px; height:23px; vertical-align:middle; ">항생</caption>
  226. <caption id="caption15" class="cell_1" style="left:980px; top:754px; width:92px; height:23px; vertical-align:middle; ">총 건수</caption>
  227. <output id="opt_prvn" ref="/root/main/geneinjeinfo/statsdatalist/prvn" class="output_fix" format="#,###" style="left:52px; top:757px; width:70px; height:19px; text-align:right; "/>
  228. <output id="opt_anticncr" ref="/root/main/geneinjeinfo/statsdatalist/cncr" class="output_fix" format="#,###" style="left:174px; top:757px; width:70px; height:19px; text-align:right; "/>
  229. <output id="opt_sap" ref="/root/main/geneinjeinfo/statsdatalist/sap" class="output_fix" format="#,###" style="left:540px; top:757px; width:70px; height:19px; text-align:right; "/>
  230. <caption id="caption13" class="cell_1" style="left:857px; top:754px; width:46px; height:23px; vertical-align:middle; ">기타</caption>
  231. <output id="opt_blod" ref="/root/main/geneinjeinfo/statsdatalist/blod" class="output_fix" format="#,###" style="left:662px; top:757px; width:70px; height:19px; text-align:right; "/>
  232. </xhtml:body>
  233. </xhtml:html>