SPMMD02900_복용방법.xrw 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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. </main>
  11. <init>
  12. <mthdkind/>
  13. </init>
  14. <send>
  15. <cond1>N</cond1>
  16. <cond2>1</cond2>
  17. </send>
  18. <rateprcpflag>N</rateprcpflag>
  19. <rateprcp>
  20. <rate1/>
  21. <rate2/>
  22. <rate3/>
  23. <rate4/>
  24. <rate5/>
  25. <rate6/>
  26. <rate7/>
  27. <rate8/>
  28. </rateprcp>
  29. <rateflag/>
  30. <tmedmthd>
  31. <tmedmthdlist>
  32. <status/>
  33. <abbrnm/>
  34. <mthdcnts/>
  35. <mthdcd/>
  36. <basecnt/>
  37. <adminpath/>
  38. <mealflag/>
  39. <drdirecyn/>
  40. </tmedmthdlist>
  41. </tmedmthd>
  42. </root>
  43. </instance>
  44. <script type="javascript">
  45. <![CDATA[
  46. var mthdKind = "";
  47. var openerrow = 0;
  48. ]]>
  49. </script>
  50. <script type="javascript" ev:event="xforms-model-construct-done">
  51. <![CDATA[
  52. grd_mthd.backcoloralternate = "transparent";
  53. zbcfGetCodeList(new Array("A0017"),new Array("/root/init/mthdkind"), true, new Array("dispseq") ,new Array("asc")); //용법종류
  54. if ( opener.grd_antibiodetaillist.row == -1) {
  55. openerrow = 1;
  56. } else {
  57. openerrow = opener.grd_antibiodetaillist.row;
  58. }
  59. submit ( "TRMMO01901" );
  60. model.refresh();
  61. ]]>
  62. </script>
  63. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  64. <submission id="TRMMO01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmedmthd"/>
  65. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  66. </model>
  67. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  68. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  71. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  73. </xhtml:head>
  74. <xhtml:body pagewidth="595" pageheight="480">
  75. <shape id="roundrect5" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:6px; top:5px; width:582px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  76. <select1 id="rdo_mthdkind" ref="/root/send/cond1" appearance="full" cols="5" rows="1" overflow="visible" style="left:117px; top:44px; width:460px; height:20px; border-style:none; ">
  77. <choices>
  78. <itemset nodeset="/root/init/mthdkind/A0017">
  79. <label ref="cdnm"/>
  80. <value ref="cdid"/>
  81. </itemset>
  82. </choices>
  83. <script type="javascript" ev:event="xforms-select">
  84. <![CDATA[
  85. submit ( "TRMMO01901" );
  86. ]]>
  87. </script>
  88. </select1>
  89. <button id="button1" class="btn4_letter2" style="left:468px; top:448px; width:56px; height:22px; ">
  90. <caption>선택</caption>
  91. <script type="javascript" ev:event="DOMActivate">
  92. <![CDATA[
  93. var drugmthdspccdnm = "";
  94. var drugmthdspccd = "";
  95. var cnt = 0;
  96. if ( grd_mthd.row > 0 ) {
  97. cnt++;
  98. opener.model.setValue ( "/root/main/antibiodetaillist/info[" + openerrow + "]/drugmthdspccd" ,
  99. model.getValue ( "/root/tmedmthd/tmedmthdlist[" +grd_mthd.row + "]/mthdcd") );
  100. opener.model.setValue ( "/root/main/antibiodetaillist/info[" + openerrow + "]/drugmthdspccdnm" ,
  101. model.getValue ( "/root/tmedmthd/tmedmthdlist[" +grd_mthd.row + "]/abbrnm") );
  102. }
  103. if ( cnt == 0 ) {
  104. model.alert ( "선택된 복용방법이 없습니다." );
  105. return;
  106. }
  107. window.close();
  108. ]]>
  109. </script>
  110. </button>
  111. <button id="button2" class="btn4_letter2" style="left:527px; top:448px; width:56px; height:22px; ">
  112. <caption>닫기</caption>
  113. <script type="javascript" ev:event="onclick">
  114. <![CDATA[
  115. window.close();
  116. ]]>
  117. </script>
  118. </button>
  119. <caption id="caption3" class="tit_2" style="left:7px; top:76px; width:171px; height:13px; ">복용방법 List</caption>
  120. <line id="line7" class="line_1" style="x1:7px; y1:91px; x2:588px; y2:91px; "/>
  121. <select1 id="rdo_baseqty" ref="/root/send/cond2" appearance="full" cols="6" overflow="visible" style="left:117px; top:16px; width:275px; height:19px; border-style:none; ">
  122. <choices>
  123. <item>
  124. <label>1회</label>
  125. <value>1</value>
  126. </item>
  127. <item>
  128. <label>2회</label>
  129. <value>2</value>
  130. </item>
  131. <item>
  132. <label>3회</label>
  133. <value>3</value>
  134. </item>
  135. <item>
  136. <label>4회</label>
  137. <value>4</value>
  138. </item>
  139. <item>
  140. <label>5회이상</label>
  141. <value>5</value>
  142. </item>
  143. </choices>
  144. <script type="javascript" ev:event="xforms-select">
  145. <![CDATA[
  146. submit ( "TRMMO01901" );
  147. ]]>
  148. </script>
  149. </select1>
  150. <caption id="caption4" class="search_name" style="left:27px; top:15px; width:90px; height:17px; ">기본종류 :</caption>
  151. <caption id="caption5" class="search_name" style="left:27px; top:44px; width:86px; height:17px; ">용법종류 :</caption>
  152. <datagrid id="grd_mthd" nodeset="/root/tmedmthd/tmedmthdlist" caption="^복용방법코드^복용방법^횟수" colsep="^" colwidth="0, 84, 416, 60" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:7px; top:95px; width:581px; height:345px; ">
  153. <col checkvalue="Y,N" ref="status" type="checkbox"/>
  154. <col ref="mthdcd" style="text-align:center; "/>
  155. <col ref="abbrnm"/>
  156. <col ref="basecnt" style="text-align:center; "/>
  157. <script type="javascript" ev:event="ondblclick">
  158. <![CDATA[
  159. if( grd_mthd.isCell(event.target) && grd_mthd.row >= grd_mthd.fixedRows ){
  160. model.setValue ( "/root/tmedmthd/tmedmthdlist[" + grd_mthd.row + "]/status", "Y" );
  161. button1.dispatch ( "DOMActivate" );
  162. }
  163. ]]>
  164. </script>
  165. </datagrid>
  166. </xhtml:body>
  167. </xhtml:html>