SMMNW10100_신생아예약정보.xrw 8.0 KB

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