SMMCT00107_암병원주사실.xrw 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. * 제 목 : SMMCT00107_암병원 주사실 업무 통계.xrw
  4. * 설 명 : 암병원주사실 업무 통계 조회
  5. * 설 계 자 : 박유진
  6. * 작 성 자 : 박유진
  7. * 작 성 일 : 2009.09.28
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>암병원주사실업무 통계</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <condition>
  20. <term/>
  21. <fromdd/>
  22. <todd/>
  23. </condition>
  24. <cncrinjbizstatsinfo>
  25. <cncrinjbizstatslist>
  26. <dept/>
  27. <patcnt/>
  28. <sixtmmorthn/>
  29. <ccd/>
  30. <blodqty/>
  31. <vacncnt/>
  32. <injcnt/>
  33. <infsolut/>
  34. <etccnt/>
  35. <total/>
  36. <benchmark/>
  37. <incrsdecrs/>
  38. </cncrinjbizstatslist>
  39. </cncrinjbizstatsinfo>
  40. </main>
  41. <send>
  42. <reqdata/>
  43. </send>
  44. <init>
  45. <orddept>
  46. <dept/>
  47. </orddept>
  48. <info/>
  49. <userlist>
  50. <usercombo>
  51. <userid/>
  52. <usernm/>
  53. </usercombo>
  54. </userlist>
  55. <subdeptinfo>
  56. <subdeptlist/>
  57. </subdeptinfo>
  58. </init>
  59. </root>
  60. </instance>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  64. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  65. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  66. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  67. <script type="javascript" ev:event="xforms-ready">
  68. <![CDATA[
  69. fInit_SMMCT00107();
  70. ]]>
  71. </script>
  72. <submission id="TRMCT00107" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/cncrinjbizstatsinfo"/>
  73. </model>
  74. <script type="javascript">
  75. <![CDATA[
  76. /*
  77. * @desc : 초기화
  78. */
  79. function fInit_SMMCT00107(){
  80. //초기
  81. ipt_todd.visible=true;
  82. cp_term.visible=true;
  83. cmb_term.value='D';
  84. //초기값 셋팅
  85. model.setValue("/root/main/condition/fromdd" , getCurrentDate().toDate().getAddDate(-1,"D").getDateFormat() );
  86. model.setValue("/root/main/condition/todd" , getCurrentDate().toDate().getAddDate(-1,"D").getDateFormat() );
  87. model.removeNodeset(grd_cncrinjbizstats.nodeset );
  88. cap_total.value = "총 0 건";
  89. model.refresh();
  90. }
  91. /*
  92. * @desc : 암병원 주사실 업무 통계 조회
  93. */
  94. function fGetOutRsrvObserv(){
  95. var curTm = getCurrentTime();
  96. /*
  97. if( curTm< "170000" && curTm > "080000" ) {
  98. alert("업무시간에는 사용하실 수 없습니다. ( 08:00~ 17:00 ) " );
  99. return ;
  100. }*/
  101. var cnt = 0 ;
  102. cap_total.value = "총 " + cnt + " 건";
  103. model.removeNodeset(grd_cncrinjbizstats.nodeset);
  104. model.resetInstanceNode("/root/send/reqdata");
  105. model.copyNode("/root/send/reqdata", "/root/main/condition");
  106. submit("TRMCT00107");
  107. var nodelst = instance1.selectNodes(grd_cncrinjbizstats.nodeset );
  108. cnt = nodelst.length;
  109. cap_total.value = "총 " + cnt + " 건";
  110. model.refresh();
  111. }
  112. ]]>
  113. </script>
  114. </xhtml:head>
  115. <xhtml:body accesskey="f2" guideline="2,763;2,765;2,763;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  116. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:300px; height:14px; ">암병원 주사실 업무 통계</caption>
  117. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:20px; width:1194px; height:40px; "/>
  118. <line id="line5" style="x1:1110px; y1:30px; x2:1110px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
  119. <caption id="caption20" class="tit_2" style="left:0px; top:65px; width:270px; height:14px; ">암병원 주사실 통계</caption>
  120. <caption id="caption9" class="search_name" style="left:15px; top:32px; width:86px; height:17px; ">기간 :</caption>
  121. <datagrid id="grd_cncrinjbizstats" nodeset="/root/main/cncrinjbizstatsinfo/cncrinjbizstatslist" autoresize="true" caption="과^환자수^6hr이상^C code^혈액^예방접종^주사제^수액^기타^합계^벤치마크^증감" colwidth="80, 80, 80, 100, 100, 110, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="noscroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" subtotalposition="below" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:90px; width:1187px; height:675px; ">
  122. <col ref="dept" style="text-align:center; "/>
  123. <col ref="patcnt" style="text-align:center; "/>
  124. <col ref="sixtmmorthn" style="text-align:center; "/>
  125. <col ref="ccd" style="text-align:center; "/>
  126. <col ref="blodqty" style="text-align:center; "/>
  127. <col ref="vacncnt" style="text-align:center; "/>
  128. <col ref="injcnt" style="text-align:center; "/>
  129. <col ref="infsolut" style="text-align:center; "/>
  130. <col ref="etccnt" style="text-align:center; "/>
  131. <col ref="total" style="text-align:center; "/>
  132. <col ref="benchmark" style="text-align:center; "/>
  133. <col ref="incrsdecrs" style="text-align:center; "/>
  134. </datagrid>
  135. <caption id="cap_total" class="search_name" style="left:1010px; top:33px; width:125px; height:17px; ">총 0 건</caption>
  136. <line id="line1" class="line_1" style="x1:0px; y1:86px; x2:1187px; y2:86px; "/>
  137. <button id="btn_req" class="btn1_letter2" style="left:1125px; top:30px; width:56px; height:22px; ">
  138. <caption>조회</caption>
  139. <script type="javascript" ev:event="DOMActivate">
  140. <![CDATA[
  141. fGetOutRsrvObserv();
  142. ]]>
  143. </script>
  144. </button>
  145. <select1 id="cmb_term" ref="/root/main/condition/term" disabled="false" appearance="minimal" style="left:85px; top:32; width:90px; height:19px; ">
  146. <choices>
  147. <item>
  148. <label>일별</label>
  149. <value>D</value>
  150. </item>
  151. <item>
  152. <label>주별</label>
  153. <value>W</value>
  154. </item>
  155. <item>
  156. <label>월별</label>
  157. <value>M</value>
  158. </item>
  159. </choices>
  160. <script type="javascript" ev:event="xforms-value-changed">
  161. <![CDATA[
  162. /*
  163. * @desc : 기간조회 설정
  164. */
  165. var termnm = model.getValue("/root/main/condition/term");
  166. if(termnm=='D'){
  167. ipt_todd.visible=true;
  168. cp_term.visible=true;
  169. }else{
  170. ipt_todd.visible=false;
  171. cp_term.visible=false;
  172. }
  173. ]]>
  174. </script>
  175. </select1>
  176. <input id="ipt_todd" ref="/root/main/condition/todd" class="input_s_essential" inputtype="date" style="left:280px; top:32; width:90px; height:19px; "/>
  177. <caption id="cp_term" style="left:269px; top:38px; width:15px; height:15px; ">~</caption>
  178. <input id="ipt_fromdd" ref="/root/main/condition/fromdd" class="input_s_essential" inputtype="date" style="left:180px; top:32; width:90px; height:19px; "/>
  179. <button id="button1" class="btn2_letter2" style="left:1145px; top:66px; width:42px; height:19px; ">
  180. <caption>엑셀</caption>
  181. <script type="javascript" ev:event="DOMActivate">
  182. <![CDATA[
  183. var title = "암병원주사실업무통계 (" + model.getValue("/root/main/condition/fromdd" ) + " ~ " + model.getValue("/root/main/condition/todd" ) + " ) " ;
  184. //fsaveGridToExcel(grd_inpatinfolst, title);
  185. var fileName = window.fileDialog("save", ",", false, "암병원주사실업무통계", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  186. if (fileName != ""){
  187. grd_cncrinjbizstats.saveExcel(fileName, "암병원주사실업무통계", true, true, "", "", false);
  188. var s = fileName.lastIndexOf("\\");
  189. var fileName=fileName.substring(s+1);
  190. var rmsg = messageBox("저장된 Excel을", "Q004");
  191. if( rmsg == 6 ){
  192. window.exec("excel.exe", fileName);
  193. }
  194. }
  195. ]]>
  196. </script>
  197. </button>
  198. </xhtml:body>
  199. </xhtml:html>