SMPMS02250_VIP재원환자현황.xrw 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. <?xml version="1.0" encoding="UTF-16"?>
  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>VIP재원환자현황</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <grdVIP>
  11. <grdVIPlist/>
  12. </grdVIP>
  13. <tmpinfo>
  14. <info>
  15. <user/>
  16. </info>
  17. </tmpinfo>
  18. <search>
  19. <fromdata/>
  20. </search>
  21. </main>
  22. <init>
  23. <P0149list>
  24. <P0149>
  25. <cdid/>
  26. <cdnm/>
  27. </P0149>
  28. </P0149list>
  29. <P0160list>
  30. <P0160>
  31. <cdid/>
  32. <cdnm/>
  33. </P0160>
  34. </P0160list>
  35. <P0002list>
  36. <P0002>
  37. <cdid/>
  38. <cdnm/>
  39. </P0002>
  40. </P0002list>
  41. <P0008list>
  42. <P0008>
  43. <cdid/>
  44. <cdnm/>
  45. </P0008>
  46. </P0008list>
  47. <P0010list>
  48. <P0010>
  49. <cdid/>
  50. <cdnm/>
  51. </P0010>
  52. </P0010list>
  53. <P0070ist>
  54. <P0070>
  55. <cdid/>
  56. <cdnm/>
  57. </P0070>
  58. </P0070ist>
  59. <P0025list>
  60. <P0025>
  61. <cdid/>
  62. <cdnm/>
  63. </P0025>
  64. </P0025list>
  65. <P0006list>
  66. <P0006>
  67. <cdid/>
  68. <cdnm/>
  69. </P0006>
  70. </P0006list>
  71. <P0032list>
  72. <P0032>
  73. <cdid/>
  74. <cdnm/>
  75. </P0032>
  76. </P0032list>
  77. <P0016list>
  78. <P0016>
  79. <cdid/>
  80. <cdnm/>
  81. </P0016>
  82. </P0016list>
  83. <P0026list>
  84. <P0026>
  85. <cdid/>
  86. <cdnm/>
  87. </P0026>
  88. </P0026list>
  89. </init>
  90. <hidden>
  91. <init>
  92. <disccd>
  93. <cd/>
  94. <nm/>
  95. </disccd>
  96. <insukind>
  97. <cd/>
  98. <nm/>
  99. </insukind>
  100. <suppkind>
  101. <cd/>
  102. <nm/>
  103. <up/>
  104. <io/>
  105. </suppkind>
  106. <orddeptcd>
  107. <cd/>
  108. <nm/>
  109. </orddeptcd>
  110. <orddrid>
  111. <cd/>
  112. <nm/>
  113. <dp/>
  114. </orddrid>
  115. <flag>
  116. <prestdd/>
  117. <mskindflag/>
  118. </flag>
  119. </init>
  120. </hidden>
  121. <send>
  122. <fromdata/>
  123. </send>
  124. </root>
  125. </instance>
  126. <script type="javascript" ev:event="xforms-model-construct-done">
  127. <![CDATA[
  128. submit("TRPAS00001");
  129. zbcfGetCodeList(new Array("P0149","P0160","P0002","P0008","P0010", "P0070", "P0025", "P0026","P0006", "P0032","P0016"), new Array("/root/init/P0149list", "/root/init/P0160list", "/root/init/P0002list", "/root/init/P0008list","/root/init/P0010list","/root/init/P0070list","/root/init/P0025list","/root/init/P0026list","/root/init/P0006list","/root/init/P0032list","/root/init/P0016list"));
  130. //model.setValue("/root/send/sess_posinstcd","012");
  131. submit("TRPMI00106");
  132. model.setValue("/root/main/search/fromdata", getCurrentDate());
  133. //Rexport에 출력날자를 보여주기위한 데이터 저장
  134. model.makeNode("/root/main/tmp/print/date");
  135. model.copyNode("/root/main/tmp/print/date", "/root/main/search/fromdata");
  136. model.setValue("/root/main/tmp/print/date", model.getValue("/root/main/search/fromdata"));
  137. model.refresh();
  138. ]]>
  139. </script>
  140. <bind id="bind1" ref="/root/main/dsumlist/dsumstats/cont" calculate="sum(/root/main/pamstatlist/pamstats/cont);"/>
  141. <bind id="bind2" ref="/root/main/dsumlist/dsumstats/allordamt" calculate="sum(/root/main/pamstatlist/pamstats/allordamt);"/>
  142. <bind id="bind3" ref="/root/main/dsumlist/dsumstats/discreduamt" calculate="sum(/root/main/pamstatlist/pamstats/discreduamt);"/>
  143. <bind id="bind4" ref="/root/main/pamstatlist/pamstats/discreducd" calculate="round(../discreduamt div ../allordamt * 100)"/>
  144. <bind id="bind5" ref="/root/main/pamstatlist/pamstats" calculate="now() + ."/>
  145. <submission id="TRPAS00001" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/main/tmpinfo/info/user"/>
  146. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/init"/>
  147. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  148. <submission id="TRPMS02251" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grdVIP"/>
  149. </model>
  150. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  151. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  152. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  153. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  154. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  155. </xhtml:head>
  156. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1205;">
  157. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  158. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">VIP재원환자현황</caption>
  159. </group>
  160. <group id="group2" style="left:4px; top:22px; width:1203px; height:35px; ">
  161. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1202px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  162. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:206px; height:17px; ">적용기간 :</caption>
  163. <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  164. <button id="btn_search" class="btn1_letter2" navindex="3" style="left:1139px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  165. <caption>조회</caption>
  166. <script type="javascript" ev:event="DOMActivate">
  167. <![CDATA[
  168. var fromdata = model.getValue("/root/main/search/fromdata");
  169. if(fromdata==""||fromdata==null){
  170. messageBox("시작일을 입력","E007");
  171. model.setFocus("input7");
  172. return false;
  173. }else{
  174. model.setValue("/root/send/fromdata",model.getValue("/root/main/search/fromdata"));
  175. submit("TRPMS02251");
  176. //로드값이 있을때 엑셀저장여부 버튼 생성여부
  177. var nodelist = bind1.nodeset;
  178. if(nodelist.length>0){
  179. line1.visible =true;
  180. button95.visible = true;
  181. }else{
  182. line1.visible =false;
  183. button95.visible = false;
  184. }
  185. }
  186. ]]>
  187. </script>
  188. <toggle case="case1" ev:event="onclick"/>
  189. </button>
  190. <input id="input7" ref="/root/main/search/fromdata" class="input_default" navindex="1" inputtype="date" maxlength="8" style="left:103px; top:8px; width:120px; height:19px; ">
  191. <script type="javascript" ev:event="onkeydown">
  192. <![CDATA[
  193. if( event.keyCode == 13 ) {
  194. var pCurTargetObj = event.ptarget.parent;
  195. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  196. event.keyCode = 9;
  197. pCurTargetObj.dispatch("onkeydown");
  198. } else {
  199. event.keyCode = 9;
  200. }
  201. }
  202. event.stopPropagation();
  203. ]]>
  204. </script>
  205. </input>
  206. <button id="btn_print" class="btn6_letter2" visibility="visible" style="left:1070px; top:7px; width:56px; height:22px; ">
  207. <caption>출력</caption>
  208. <script type="javascript" ev:event="DOMActivate">
  209. <![CDATA[
  210. exeReportPreview("RPPAS02111", "XMLSTR", "","", "false","","","","","false");
  211. ]]>
  212. </script>
  213. </button>
  214. <button id="button95" class="btn6_letter4" visibility="hidden" style="left:971px; top:7px; width:80px; height:22px; ">
  215. <caption>액셀저장</caption>
  216. <script type="javascript" ev:event="DOMActivate">
  217. <![CDATA[
  218. var vToday = new Date();
  219. var tmpYear = vToday.getYear();
  220. var tmpMonth = vToday.getMonth()+1;
  221. var tmpDate = vToday.getDate();
  222. // model.setValue("/root/documenttitle/title",document.title);
  223. // model.refresh();
  224. // var subjectTitle = model.getValue("/root/documenttitle/title");
  225. //엑셀저장 여부(타이트별)
  226. var fileName = window.fileDialog("save", ",", false, "감면할인현황"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  227. if (fileName != "")
  228. {
  229. datagrid1.saveExcel(fileName, "감면할인현황"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
  230. }
  231. ]]>
  232. </script>
  233. </button>
  234. <line id="line1" class="line_4" visibility="hidden" style="x1:1058px; y1:7px; x2:1058px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  235. </group>
  236. <datagrid id="datagrid1" nodeset="/root/main/grdVIP/grdVIPlist" allowuserresize="false" autoresize="false" caption="VIP 등록번호^입원일^성명^등록번호^성별^나이^진료과^의사명^병실^상병명^VIP 내용^계정^caption1" colsep="^" colwidth="100, 100, 100, 100, 40, 40, 120, 100, 100, 150, 300, 60" ellipsis="true" extendlastcol="false" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" rowsep="|" tooltip="true" style="left:4px; top:55px; width:1201px; height:704px; ">
  237. <col ref="viprgstno" style="text-align:center; "/>
  238. <col ref="indd" style="text-align:center; "/>
  239. <col ref="hngnm" format="(-)#,###" style="text-align:center; "/>
  240. <col ref="pid" style="text-align:center; "/>
  241. <col ref="sex" format="(-)#,###" style="text-align:center; "/>
  242. <col ref="age" format="(-)#,###"/>
  243. <col ref="orddeptcd" style="text-align:center; "/>
  244. <col ref="atdoctid" style="text-align:left; "/>
  245. <col ref="roomcd" style="text-align:left; "/>
  246. <col ref="termhngnm" style="text-align:left; "/>
  247. <col ref="remark" style="text-align:left; "/>
  248. <col ref="disccd" style="text-align:center; "/>
  249. </datagrid>
  250. </xhtml:body>
  251. </xhtml:html>