SMMNW10000_예약정보.xrw 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <?xml version="1.0" encoding="EUC-KR"?>
  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. <dschcareinfo>
  11. <rsrvinfo>
  12. <ordrsrvinfo>
  13. <stat/>
  14. <rsrvdt/>
  15. <orddeptnm/>
  16. <centnm/>
  17. <orddrnm/>
  18. <fstrgstdt/>
  19. <rcptamt/>
  20. <orddeptcd/>
  21. <centcd/>
  22. <subdeptcd/>
  23. <orddrid/>
  24. <subdeptnm/>
  25. </ordrsrvinfo>
  26. <testrsrvinfo>
  27. <calcscorcd/>
  28. <prcpclsnm/>
  29. <rsrvdt/>
  30. <testnm/>
  31. <testplacnm/>
  32. <orddeptcd/>
  33. <stat/>
  34. <prcpkindnm/>
  35. </testrsrvinfo>
  36. <dschdrugfactinfo>
  37. <stat/>
  38. <prcpno/>
  39. <drugcd/>
  40. <drugnm/>
  41. <vol/>
  42. <prcpvolunit/>
  43. <direc/>
  44. <qty/>
  45. <prcpqtyunit/>
  46. <prcptims/>
  47. <prcpdayno/>
  48. <caucnts/>
  49. <orddpetcd/>
  50. </dschdrugfactinfo>
  51. <inrsrvinfo>
  52. <inreq/>
  53. </inrsrvinfo>
  54. </rsrvinfo>
  55. </dschcareinfo>
  56. </main>
  57. <hidden>
  58. <existinfo/>
  59. </hidden>
  60. <send/>
  61. <temp>
  62. <dschcareinfo>
  63. <ordrsrvinfo>
  64. <stat/>
  65. <rsrvdt/>
  66. <orddeptcd/>
  67. <orddeptnm/>
  68. <orddrid/>
  69. <orddrnm/>
  70. </ordrsrvinfo>
  71. <testrsrvinfo>
  72. <stat/>
  73. <rsrvdt/>
  74. <testnm/>
  75. <testplacnm/>
  76. <orddeptcd/>
  77. <calcscorcd/>
  78. </testrsrvinfo>
  79. <dschdrugfactinfo>
  80. <stat/>
  81. <prcpno/>
  82. <drugcd/>
  83. <drugnm/>
  84. <vol/>
  85. <prcpvolunit/>
  86. <direc/>
  87. <qty/>
  88. <prcpqtyunit/>
  89. <prcptims/>
  90. <prcpdayno/>
  91. <caucnts/>
  92. </dschdrugfactinfo>
  93. </dschcareinfo>
  94. </temp>
  95. <init>
  96. <menu>
  97. <item>
  98. <name>줄삭제</name>
  99. <func>fDelCurRow</func>
  100. </item>
  101. </menu>
  102. </init>
  103. </root>
  104. </instance>
  105. <script type="javascript" ev:event="xforms-ready">
  106. <![CDATA[
  107. //fGetRsrvInfo();
  108. ]]>
  109. </script>
  110. <submission id="TRMNW10001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/dschcareinfo/rsrvinfo"/>
  111. </model>
  112. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  114. <script type="javascript">
  115. <![CDATA[
  116. function fGetRsrvInfo(){
  117. var pid = model.getValue("/root/temp/cond/list/pid");
  118. if (pid != ""){
  119. submit("TRMNW10001");
  120. model.makeNode("/root/main/dschcareinfo/ordrsrvinfo");
  121. model.makeNode("/root/main/dschcareinfo/testrsrvinfo");
  122. model.makeNode("/root/main/dschcareinfo/dschdrugfactinfo");
  123. copyNodeType("/root/main/dschcareinfo/ordrsrvinfo", "/root/hidden/dschcareinfo/ordrsrvinfo");
  124. var dschdclrtyn = model.getValue("/root/temp/cond/list/dschdclrtyn"); //퇴원예고
  125. if(dschdclrtyn == 'N') {
  126. model.makeValue("/root/main/dschcareinfo/rsrvinfo/inrsrvinfo/inreq", "입원예정으로 발급된 입원장이 없습니다.");
  127. }
  128. if(model.getValue("/root/main/dschcareinfo/rsrvinfo/inrsrvinfo/inreq") == ""){
  129. model.makeValue("/root/main/dschcareinfo/rsrvinfo/inrsrvinfo/inreq", "입원예정으로 발급된 입원장이 없습니다.");
  130. }
  131. var cnt = getNodesetCount("/root/main/dschcareinfo/testrsrvinfo");
  132. if(getNodesetCount("/root/main/dschcareinfo/testrsrvinfo") > 0){
  133. for(var i=1;i<=grd_testrsrvinfo.rows;i++){
  134. var testplacnm = model.getValue("/root/main/dschcareinfo/rsrvinfo/testrsrvinfo["+i+"]/testplacnm");
  135. if(testplacnm.length > 8){
  136. var testplacnm2 = testplacnm.substr(testplacnm.length-8,testplacnm.length-4);
  137. if(isNumber(testplacnm2) == true){
  138. model.setValue("/root/main/dschcareinfo/rsrvinfo/testrsrvinfo["+i+"]/testplacnm",testplacnm.substr(0,testplacnm.length-8));
  139. }
  140. }
  141. }
  142. }
  143. grd_ordrsrvinfo.rebuild();
  144. grd_testrsrvinfo.rebuild();
  145. grd_dschdrugmedifact.rebuild();
  146. model.refresh();
  147. }
  148. }
  149. ]]>
  150. </script>
  151. </xhtml:head>
  152. <xhtml:body pagewidth="1194" pageheight="245" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  153. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:1194px; height:280px; ">
  154. <caption id="caption1" class="tit_2" style="left:5px; top:25px; width:95px; height:13px; ">외래예약</caption>
  155. <line id="line1" class="line_1" style="x1:0px; y1:40px; x2:594px; y2:40px; "/>
  156. <datagrid id="grd_ordrsrvinfo" nodeset="/root/main/dschcareinfo/rsrvinfo/ordrsrvinfo" autoresize="true" caption="예약일시^예약요일^진료과^센터^진료의^예약등록일시^수납^진료과코드^센터코드^하위부서코드^진료의ID" colsep="^" colwidth="102, 30, 150, 100, 90, 80, 30, 0, 0, 0, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:45px; width:594px; height:80px; ">
  157. <col ref="rsrvdt" format="yyyy-mm-dd hh:mm"/>
  158. <col ref="rsrvday" visibility="hidden" format="yyyy-mm-dd hh:mm"/>
  159. <col ref="orddeptnm"/>
  160. <col ref="centnm"/>
  161. <col ref="orddrnm"/>
  162. <col ref="fstrgstdt" format="yyyy-mm-dd" style="text-align:center; "/>
  163. <col ref="rcptamt" style="text-align:center; "/>
  164. <col ref="orddeptcd"/>
  165. <col ref="centcd"/>
  166. <col ref="subdeptcd"/>
  167. <col ref="orddrid"/>
  168. <col ref="subdeptnm"/>
  169. </datagrid>
  170. <caption id="caption2" class="tit_2" style="left:604px; top:25px; width:126px; height:13px; ">퇴원 후 외래 처방</caption>
  171. <line id="line2" class="line_1" style="x1:599px; y1:40px; x2:1193px; y2:40px; "/>
  172. <datagrid id="grd_testrsrvinfo" nodeset="/root/main/dschcareinfo/rsrvinfo/testrsrvinfo" autoresize="true" caption="처방분류^처방코드^예약일시^처방명^시행부서^희망일자^부서코드^수가코드" colsep="^" colwidth="70, 70, 0, 210, 130, 75, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:599px; top:45px; width:594px; height:80px; ">
  173. <col ref="prcpclsnm"/>
  174. <col ref="calcscorcd"/>
  175. <col ref="rsrvdt" format="yyyy-mm-dd hh:mm"/>
  176. <col ref="testnm"/>
  177. <col ref="testplacnm"/>
  178. <col ref="prcphopedd" format="yyyy-mm-dd"/>
  179. <col ref="orddeptcd"/>
  180. <col ref="stat"/>
  181. </datagrid>
  182. <caption id="caption3" class="tit_2" style="left:5px; top:130px; width:113px; height:13px; ">퇴원약 투약사항</caption>
  183. <line id="line3" class="line_1" style="x1:0px; y1:145px; x2:1194px; y2:145px; "/>
  184. <datagrid id="grd_dschdrugmedifact" nodeset="/root/main/dschcareinfo/rsrvinfo/dschdrugfactinfo" autoresize="true" caption="처방번호^약품코드^약품명[* : 혼동주의/고위험 약제]^1회 용량^1회 용량^1회 수량^1회 수량^횟수^일수^용법^주의사항^부서코드" colsep="^" colwidth="0, 100, 365, 60, 35, 54, 37, 50, 60, 185, 210, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:150px; width:1194px; height:95px; ">
  185. <col ref="prcpno"/>
  186. <col ref="drugcd"/>
  187. <col ref="drugnm"/>
  188. <!--col ref="vol" style="text-align:right; "/-->
  189. <!--col ref="prcpvolunit" style="text-align:left; "/-->
  190. <col ref="drprcpetc7" style="text-align:right; "/>
  191. <col ref="prcpvolunitflag" style="text-align:left; "/>
  192. <!--col ref="qty" style="text-align:right; "/-->
  193. <!--col ref="prcpqtyunit" style="text-align:left; "/-->
  194. <col ref="drprcpetc8" style="text-align:right; "/>
  195. <col ref="prcpqtyunitflag" style="text-align:left; "/>
  196. <col ref="prcptims" style="text-align:center; "/>
  197. <col ref="prcpdayno" style="text-align:center; "/>
  198. <col ref="direc"/>
  199. <col ref="caucnts"/>
  200. <col ref="orddeptcd"/>
  201. </datagrid>
  202. <caption id="caption4" class="tit_2" style="left:5px; top:5px; width:120px; height:13px; ">입원의뢰서 정보</caption>
  203. <output id="output1" ref="/root/main/dschcareinfo/rsrvinfo/inrsrvinfo/inreq" class="output_fix" style="left:121px; top:3px; width:456px; height:19px; "/>
  204. </group>
  205. </xhtml:body>
  206. </xhtml:html>