SMPAS00200_VIP환자명단.xrw 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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. <vipinfo>
  11. <vipInfolist/>
  12. </vipinfo>
  13. </main>
  14. <send>
  15. <fromdd/>
  16. <todd/>
  17. <srchcond/>
  18. </send>
  19. <init>
  20. <orddeptcd>
  21. <orddeptcdlist>
  22. <cd/>
  23. <nm/>
  24. <deptengabbr/>
  25. </orddeptcdlist>
  26. </orddeptcd>
  27. <orddrid>
  28. <orddridlist>
  29. <cd/>
  30. <nm/>
  31. <dp/>
  32. <sp/>
  33. <nmsp/>
  34. </orddridlist>
  35. </orddrid>
  36. </init>
  37. <temp/>
  38. <hidden>
  39. <init>
  40. <wardcd>
  41. <cd/>
  42. <nm/>
  43. <of/>
  44. </wardcd>
  45. </init>
  46. </hidden>
  47. </root>
  48. </instance>
  49. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  50. <script type="javascript" ev:event="xforms-ready">
  51. <![CDATA[
  52. //zbcfGetCodeList(new Array("P0008"), new Array("/root/init/P0008list"));
  53. //입원코드 조회
  54. submit("TRPMI00106");
  55. fInitialize();
  56. model.refresh();
  57. ]]>
  58. </script>
  59. <submission id="TRPAS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/vipinfo"/>
  60. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/init"/>
  61. </model>
  62. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  65. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  67. <script type="javascript">
  68. <![CDATA[
  69. function fInitialize(){
  70. model.removeNodeset("/root/main/vipinfo/vipInfolist");
  71. model.resetInstanceNode("/root/send");
  72. var srchcond = model.setValue("/root/send/srchcond", 'A');
  73. //날짜 세팅
  74. var curDate = getCurrentDate();
  75. model.setValue("/root/send/fromdd", curDate);
  76. model.setValue("/root/send/todd", curDate);
  77. model.refresh();
  78. }
  79. function fViplistPrint(){
  80. for (i = 1; i <= getNodesetCount("/root/main/vipinfo/vipInfolist"); i++) {
  81. model.setValue("/root/main/vipinfo/vipInfolist[" + i + "]/ordtype",grd_VipInfolist.labelmatrix(i, 1));
  82. // model.setValue("/root/main/forgerInfo/forgerInfolist[" + i + "]/orddeptcd",grd_forgerInfolist.labelmatrix(i, 5));
  83. // model.setValue("/root/main/forgerInfo/forgerInfolist[" + i + "]/orddrid",grd_forgerInfolist.labelmatrix(i, 6));
  84. model.setValue("/root/main/vipinfo/vipInfolist[" + i + "]/wardcd",grd_VipInfolist.labelmatrix(i, 7));
  85. model.makeValue("/root/temp/print[" +i+"]/ordtype", model.getValue("/root/main/vipinfo/vipInfolist[" + i + "]/ordtype"));
  86. model.makeValue("/root/temp/print[" +i+"]/pid", model.getValue("/root/main/vipinfo/vipInfolist[" + i + "]/pid"));
  87. model.makeValue("/root/temp/print[" +i+"]/hngnm", model.getValue("/root/main/vipinfo/vipInfolist[" + i + "]/hngnm"));
  88. model.makeValue("/root/temp/print[" +i+"]/baptnm", model.getValue("/root/main/vipinfo/vipInfolist[" + i + "]/baptnm"));
  89. model.makeValue("/root/temp/print[" +i+"]/orddeptnm", model.getValue("/root/main/vipinfo/vipInfolist[" + i + "]/orddeptnm"));
  90. model.makeValue("/root/temp/print[" +i+"]/orddrnm", model.getValue("/root/main/vipinfo/vipInfolist[" + i + "]/orddrnm"));
  91. model.makeValue("/root/temp/print[" +i+"]/wardcd", model.getValue("/root/main/vipinfo/vipInfolist[" + i + "]/wardcd"));
  92. model.makeValue("/root/temp/print[" +i+"]/roomcd", model.getValue("/root/main/vipinfo/vipInfolist[" + i + "]/roomcd"));
  93. model.makeValue("/root/temp/print[" +i+"]/orddd", model.getValue("/root/main/vipinfo/vipInfolist[" + i + "]/orddd"));
  94. model.makeValue("/root/temp/print[" +i+"]/hometel", model.getValue("/root/main/vipinfo/vipInfolist[" + i + "]/hometel"));
  95. model.makeValue("/root/temp/print[" +i+"]/remfact", model.getValue("/root/main/vipinfo/vipInfolist[" + i + "]/remfact"));
  96. model.makeValue("/root/temp/print[" +i+"]/fromdd", model.getValue("/root/send/fromdd"));
  97. model.makeValue("/root/temp/print[" +i+"]/todd", model.getValue("/root/send/todd"));
  98. }
  99. btn_search.dispatch("DOMActivate");
  100. //return;
  101. exeReportPreview("RPPAS00201", "XMLSTR", "","", "false","","","","","false");
  102. }
  103. ]]>
  104. </script>
  105. </xhtml:head>
  106. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  107. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  108. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:254px; height:14px; ">VIP환자명단</caption>
  109. </group>
  110. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  111. <group id="group4" style="left:0px; top:14px; width:1194px; height:35px; vertical-align:top; ">
  112. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  113. <button id="btn_search" class="btn1_letter2" style="left:1134px; top:7px; width:56px; height:22px; ">
  114. <caption>조회</caption>
  115. <script type="javascript" ev:event="DOMActivate">
  116. <![CDATA[
  117. //입력부, 조회부 초기화 후, 조회
  118. model.removeNodeset("/root/main/vipInfo/vipInfolist");
  119. submit("TRPAS00201");
  120. ]]>
  121. </script>
  122. </button>
  123. <caption id="caption10" style="left:385px; top:9px; width:15px; height:19px; font-weight:bold; text-align:center; vertical-align:middle; ">~</caption>
  124. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" style="left:298px; top:9px; width:85px; height:19px; "/>
  125. <input id="ipt_todd" ref="/root/send/todd" class="input_search" inputtype="date" style="left:400px; top:9px; width:85px; height:19px; "/>
  126. <caption id="caption3" class="search_name" style="left:209px; top:9px; width:97px; height:17px; ">조회기간 :</caption>
  127. <caption id="caption1" class="search_name" style="left:0px; top:9px; width:97px; height:17px; ">구분 :</caption>
  128. <select1 id="combo1" ref="/root/send/srchcond" appearance="minimal" style="left:64px; top:9px; width:100px; height:19px; ">
  129. <choices>
  130. <item>
  131. <label>전체</label>
  132. <value>A</value>
  133. </item>
  134. <item>
  135. <label>외래</label>
  136. <value>O</value>
  137. </item>
  138. <item>
  139. <label>입원</label>
  140. <value>I</value>
  141. </item>
  142. </choices>
  143. </select1>
  144. <button id="button95" class="btn6_letter4" style="left:981px; top:7px; width:80px; height:22px; ">
  145. <caption>액셀저장</caption>
  146. <script type="javascript" ev:event="DOMActivate">
  147. <![CDATA[
  148. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  149. if (fileName != "")
  150. {
  151. grd_VipInfolist.saveExcel(fileName, "SheetName", true, true, "", "", "true");
  152. }
  153. ]]>
  154. </script>
  155. </button>
  156. </group>
  157. <col type="checkbox"/>
  158. <caption id="caption4" class="tit_2" style="left:6px; top:59px; width:143px; height:14px; ">VIP환자명단</caption>
  159. <line id="line3" class="line_1" style="x1:0px; y1:74px; x2:1194px; y2:74px; "/>
  160. <datagrid id="grd_VipInfolist" nodeset="/root/main/vipinfo/vipInfolist" class="datagrid2" caption="진료형태^등록번호^환자명^세례명^진료과^주치의^병동^병실^진료(입원일자)^전화번호^참고사항" colsep="^" colwidth="50, 90, 90, 100, 90, 75, 85, 80, 150, 110, 250" dataheight="25" defaultrows="2" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:79px; width:1194px; height:661px; font-weight:bolder; ">
  161. <col ref="ordtype" type="combo">
  162. <choices>
  163. <item>
  164. <label>외래</label>
  165. <value>O</value>
  166. </item>
  167. <item>
  168. <label>입원</label>
  169. <value>I</value>
  170. </item>
  171. </choices>
  172. </col>
  173. <col disabled="true" ref="pid" style="text-align:center; "/>
  174. <col disabled="true" ref="hngnm" style="text-align:center; "/>
  175. <col disabled="true" ref="baptnm" format="yyyy-mm-dd" style="text-align:center; "/>
  176. <col disabled="true" ref="orddeptnm"/>
  177. <col disabled="true" ref="orddrnm"/>
  178. <col disabled="true" ref="wardcd" type="combo" style="text-align:center; ">
  179. <choices>
  180. <itemset nodeset="/root/hidden/init/wardcd">
  181. <label ref="nm"/>
  182. <value ref="cd"/>
  183. </itemset>
  184. </choices>
  185. </col>
  186. <col disabled="true" ref="roomcd" style="text-align:right; "/>
  187. <col disabled="true" ref="orddd" style="text-align:center; "/>
  188. <col disabled="true" ref="hometel" style="text-align:center; "/>
  189. <col disabled="true" ref="remfact" style="text-align:center; "/>
  190. <script type="javascript" ev:event="onclick">
  191. <![CDATA[
  192. ]]>
  193. </script>
  194. </datagrid>
  195. <button id="btn_print" class="btn6_letter2" style="left:1070px; top:21px; width:56px; height:22px; ">
  196. <caption>출력</caption>
  197. <script type="javascript" ev:event="DOMActivate">
  198. <![CDATA[
  199. fViplistPrint();
  200. // btn_search.dispatch("DOMActivate");
  201. // exeReportPreview("RPPAS00191", "XMLSTR", "","", "false","","","","","false");
  202. ]]>
  203. </script>
  204. </button>
  205. </group>
  206. <group id="group2" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  207. <button id="btn_saveSche7" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  208. <caption>초기화</caption>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. fInitialize();
  212. ]]>
  213. </script>
  214. </button>
  215. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  216. </group>
  217. </xhtml:body>
  218. </xhtml:html>