SPASB01500_처방항생제조회.xrw 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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. <antibioinfo>
  11. </antibioinfo>
  12. <cond>
  13. <pid/>
  14. <fromdd/>
  15. <todd/>
  16. <drugcd/>
  17. </cond>
  18. <antibiomediinfo>
  19. <antibiomediinfolist>
  20. <check/>
  21. <prcpdd/>
  22. <infcflagcd/>
  23. <spcldrug/>
  24. <drugcd/>
  25. <drugnm/>
  26. <drugusdt/>
  27. <druguedt/>
  28. <drugkind/>
  29. <orddeptcd/>
  30. <wardcd/>
  31. <roomcd/>
  32. <prcpnm/>
  33. <orddrid/>
  34. <prcpvol/>
  35. <ordunit/>
  36. <prcpqty/>
  37. <basemthdcd/>
  38. <prcptims/>
  39. <prcpdayno/>
  40. <holdyn/>
  41. <tpnyn/>
  42. <anticncryn/>
  43. <steroidyn/>
  44. </antibiomediinfolist>
  45. </antibiomediinfo>
  46. </main>
  47. <send>
  48. <reqdata/>
  49. </send>
  50. <hidden>
  51. </hidden>
  52. <init>
  53. </init>
  54. <temp>
  55. <antibioinfo>
  56. <antibioinfolist>
  57. <drugcd/>
  58. </antibioinfolist>
  59. </antibioinfo>
  60. <count>1</count>
  61. </temp>
  62. </root>
  63. </instance>
  64. <script type="javascript" ev:event="xforms-ready">
  65. <![CDATA[
  66. model.copyNode("/root/send/reqdata", "/root/main/cond");
  67. submit("TRASB01501");
  68. ]]>
  69. </script>
  70. <submission id="TRASB01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/antibioinfo"/>
  71. </model>
  72. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  75. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  76. </xhtml:head>
  77. <xhtml:body pagewidth="496" pageheight="257" style="margin-left:8; margin-right:8; ">
  78. <group id="group3" scroll="auto" style="left:0px; top:0px; width:480px; height:232px; ">
  79. <datagrid id="grd_antibiolist" nodeset="/root/main/antibioinfo/antibioinfolist" caption="선택^항생제 코드^항생제 명" colsep="^" colwidth="0, 87, 314" dataheight="23" defaultrows="0" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:0px; width:480px; height:230px; ">
  80. <col ref="check" type="checkbox"/>
  81. <col ref="drugcd"/>
  82. <col ref="drugnm"/>
  83. <script type="javascript" ev:event="ondblclick">
  84. <![CDATA[
  85. if((grd_antibiolist.mouseRow > 0) && ( grd_antibiolist.mouseRow <= grd_antibiolist.rows )) {
  86. var bool = "false";
  87. var iRow = grd_antibiolist.row;
  88. var iCnt = model.getValue("/root/temp/count");
  89. var selDrugcd = model.getValue("/root/main/antibioinfo/antibioinfolist["+ iRow + "]/drugcd");
  90. if(iCnt == "1" || iCnt == 1){
  91. opener.model.removeNodeset("/root/main/antibiomediinfo");
  92. }
  93. if(iCnt != 1){
  94. for(var i=1; i<=iCnt; i++) {
  95. if(selDrugcd == model.getValue("/root/temp/antibioinfo/antibioinfolist[" + i + "]/drugcd")){
  96. bool = "ture";
  97. return;
  98. }
  99. }
  100. }
  101. if(bool == "false"){
  102. opener.model.setValue("/root/send/reqdata/drugcd", model.getValue("/root/main/antibioinfo/antibioinfolist[" +iRow+ "]/drugcd"));
  103. opener.model.setValue("/root/main/cond/drugcd", model.getValue("/root/main/antibioinfo/antibioinfolist[" +iRow+ "]/drugcd"));
  104. opener.model.setValue("/root/send/reqdata/pid", model.getValue("/root/main/cond/pid"));
  105. opener.model.setValue("/root/send/reqdata/fromdd", model.getValue("/root/main/cond/fromdd"));
  106. opener.model.setValue("/root/send/reqdata/todd", model.getValue("/root/main/cond/todd"));
  107. opener.model.refresh();
  108. opener.TRASB00801.attribute("add") = "bottom";
  109. opener.javascript.submit("TRASB00801");
  110. iCnt=parseInt(iCnt)+1;
  111. model.makeValue("/root/temp/antibioinfo/antibioinfolist[" + iCnt + "]/drugcd", selDrugcd);
  112. model.setValue("/root/temp/count", iCnt);
  113. }
  114. window.close();
  115. }
  116. ]]>
  117. </script>
  118. <script type="javascript" ev:event="onaftersort">
  119. <![CDATA[
  120. grd_antibiolist.gridToInstance();
  121. ]]>
  122. </script>
  123. </datagrid>
  124. </group>
  125. <group id="group1" scroll="auto" style="left:0px; top:230px; width:480px; height:27px; ">
  126. <button id="btn_cnfm" class="btn4_letter2" style="left:363px; top:3px; width:56px; height:22px; ">
  127. <caption>확인</caption>
  128. <script type="javascript" ev:event="DOMActivate">
  129. <![CDATA[
  130. var bool = "false";
  131. var iRow = grd_antibiolist.row;
  132. var iCnt = model.getValue("/root/temp/count");
  133. var selDrugcd = model.getValue("/root/main/antibioinfo/antibioinfolist["+ iRow + "]/drugcd");
  134. if(iCnt == "1" || iCnt == 1){
  135. opener.model.removeNodeset("/root/main/antibiomediinfo");
  136. }
  137. if(iCnt != 1){
  138. for(var i=1; i<=iCnt; i++) {
  139. if(selDrugcd == model.getValue("/root/temp/antibioinfo/antibioinfolist[" + i + "]/drugcd")){
  140. bool = "ture";
  141. return;
  142. }
  143. }
  144. }
  145. if(bool == "false"){
  146. opener.model.setValue("/root/send/reqdata/drugcd", model.getValue("/root/main/antibioinfo/antibioinfolist[" +iRow+ "]/drugcd"));
  147. opener.model.setValue("/root/main/cond/drugcd", model.getValue("/root/main/antibioinfo/antibioinfolist[" +iRow+ "]/drugcd"));
  148. opener.model.setValue("/root/send/reqdata/pid", model.getValue("/root/main/cond/pid"));
  149. opener.model.setValue("/root/send/reqdata/fromdd", model.getValue("/root/main/cond/fromdd"));
  150. opener.model.setValue("/root/send/reqdata/todd", model.getValue("/root/main/cond/todd"));
  151. opener.model.refresh();
  152. opener.TRASB00801.attribute("add") = "bottom";
  153. opener.javascript.submit("TRASB00801");
  154. iCnt=parseInt(iCnt)+1;
  155. model.makeValue("/root/temp/antibioinfo/antibioinfolist[" + iCnt + "]/drugcd", selDrugcd);
  156. model.setValue("/root/temp/count", iCnt);
  157. }
  158. window.close();
  159. ]]>
  160. </script>
  161. </button>
  162. <button id="btn_cncl" class="btn4_letter2" style="left:421px; top:3px; width:56px; height:22px; ">
  163. <caption>취소</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. window.close();
  167. ]]>
  168. </script>
  169. </button>
  170. </group>
  171. </xhtml:body>
  172. </xhtml:html>