SPADB61200_용법조회.xrw 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  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. <mthdlist>
  11. <item>
  12. <mthdcd/>
  13. <abbrnm/>
  14. <mthdcnts/>
  15. <basemthdyn/>
  16. <basecnt/>
  17. <cntpatt/>
  18. </item>
  19. </mthdlist>
  20. </main>
  21. <send>
  22. <srchmthdkind>N</srchmthdkind>
  23. <srchmthdcd/>
  24. <srchbasemthdyn/>
  25. <srchbasecnt>-</srchbasecnt>
  26. </send>
  27. <init>
  28. <comboitem>
  29. <mthdkind>
  30. <A0017>
  31. <cdid/>
  32. <cdnm/>
  33. </A0017>
  34. </mthdkind>
  35. </comboitem>
  36. </init>
  37. <hidden>
  38. <receiveref/>
  39. </hidden>
  40. </root>
  41. </instance>
  42. <submission id="TRZBC00101"/>
  43. <submission id="TRADB61201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/mthdlist"/>
  44. <script type="javascript" ev:event="xforms-ready">
  45. <![CDATA[
  46. //model.setValue("/root/send/srchmthdcd",model.getValue("/root/send/srchmthdcd")+"%");
  47. submit("TRADB61201");
  48. //model.setValue("/root/send/srchmthdcd",""); //처방종류에 따라 용법구분을 셋팅하므로 해당 line 주석처리(2009.05.26 JJE)
  49. ]]>
  50. </script>
  51. <script type="javascript" ev:event="xforms-model-construct-done">
  52. <![CDATA[
  53. zbcfGetCodeList( new Array("A0017"), new Array("/root/init/comboitem/mthdkind") ); //화면 refresh(ready event) 전에 수행하도록 위치 변경(2009.05.26 JJE)
  54. //(s) 약종류에 따라 용법구분 default 지정되도록 parameter 처리 (2009.05.26 JJE)
  55. var mainObj = getMainViewer();
  56. var SMADB00800Obj = mainObj.javascript.getOpenWindow("SMADB00800");
  57. //if(SMADB00800Obj != null){
  58. var prcpclscd = opener.javascript.getParameter("SPADB61200_prcpclscd");
  59. var mthdKind = "";
  60. var prcptims = "-";
  61. if ( prcpclscd != null && prcpclscd != "" ) {
  62. if ( prcpclscd == "A2" ) {
  63. mthdKind = "N";
  64. combo1.disabled = false;
  65. }
  66. else if ( prcpclscd == "A4" ) {
  67. //비율은 내복약만 쓴다.
  68. mthdKind = "Y";
  69. combo1.disabled = true;
  70. }
  71. else if ( prcpclscd == "A6" ) {
  72. mthdKind = "I"; //비율은 내복약만 쓴다.
  73. prcptims = "1"; //주사는 횟수가 무조건 1이다.
  74. combo1.disabled = true;
  75. }
  76. model.setValue( "/root/send/srchmthdkind", mthdKind );
  77. if ( prcpclscd != "A2" ) { //경구약이 아닌경우에는 회수는 필요없다.
  78. model.setValue( "/root/send/srchbasecnt", "-" );
  79. } else {
  80. model.setValue( "/root/send/srchbasecnt", prcptims );
  81. }
  82. }
  83. //}
  84. //(e)
  85. ]]>
  86. </script>
  87. </model>
  88. <script type="javascript" src="../../../com/hismainweb/js/DocTitle.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  91. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  92. </xhtml:head>
  93. <xhtml:body pagewidth="800" pageheight="577" guideline="1,1194;1,847;2,577;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  94. <group id="group3" scroll="auto" style="left:0px; top:0px; width:780px; height:550px; ">
  95. <group id="group2" style="left:0px; top:0px; width:775px; height:35px; vertical-align:top; ">
  96. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:775px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  97. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">용법구분 :</caption>
  98. <line id="line13" class="line_4" style="x1:699px; y1:5px; x2:699px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
  99. <caption id="caption3" class="search_name" style="left:205px; top:8px; width:86px; height:17px; ">용법코드 :</caption>
  100. <button id="btn_sea" class="btn1_letter2" style="left:705px; top:5px; width:56px; height:22px; ">
  101. <caption>조회</caption>
  102. <script type="javascript" ev:event="DOMActivate">
  103. <![CDATA[
  104. //model.setValue("/root/send/srchmthdcd",model.getValue("/root/send/srchmthdcd")+"%");
  105. submit("TRADB61201");
  106. //model.setValue("/root/send/srchmthdcd","");
  107. ]]>
  108. </script>
  109. </button>
  110. <select1 id="cmb_srchmthdflag" ref="/root/send/srchmthdkind" class="combo_search" appearance="minimal" style="left:100px; top:8px; width:100px; height:19px; ">
  111. <choices>
  112. <itemset nodeset="/root/init/comboitem/mthdkind/A0017">
  113. <label ref="cdnm"/>
  114. <value ref="cdid"/>
  115. </itemset>
  116. </choices>
  117. <script type="javascript" ev:event="xforms-value-changed">
  118. <![CDATA[
  119. //(s) 용법 변경시 횟수 지정하도록 변경 (2009.05.16 JJE)
  120. var mthdKind = model.getValue("/root/send/srchmthdkind");
  121. var prcptims = "-";
  122. if ( mthdKind == "N" ) {
  123. combo1.disabled = false;
  124. }
  125. else if ( mthdKind == "Y" ) {
  126. //비율은 내복약만 쓴다.
  127. combo1.disabled = true;
  128. }
  129. else if ( mthdKind == "I" ) {
  130. prcptims = "1"; //주사는 횟수가 무조건 1이다.
  131. combo1.disabled = true;
  132. }
  133. if ( mthdKind != "N" ) { //경구약이 아닌경우에는 회수는 필요없다.
  134. model.setValue( "/root/send/srchbasecnt", "-" );
  135. } else {
  136. model.setValue( "/root/send/srchbasecnt", prcptims );
  137. }
  138. //(e)
  139. submit("TRADB61201");
  140. model.setValue("/root/send/srchmthdcd","");
  141. ]]>
  142. </script>
  143. </select1>
  144. <input id="ipt_srchmthdcd" ref="/root/send/srchmthdcd" class="input_search" style="left:294px; top:8px; width:131px; height:19px; ">
  145. <script type="javascript" ev:event="onkeyup">
  146. <![CDATA[
  147. if(event.keyCode == "13") {
  148. setInputNodeCurText();
  149. btn_sea.dispatch("DOMActivate");
  150. }
  151. ]]>
  152. </script>
  153. </input>
  154. <caption id="caption4" class="search_name" style="left:435px; top:8px; width:86px; height:17px; ">기본용법 :</caption>
  155. <caption id="caption5" class="search_name" style="left:560px; top:8px; width:70px; height:17px; ">횟수 :</caption>
  156. <select1 id="combo1" ref="/root/send/srchbasecnt" class="combo_search" appearance="minimal" style="left:620px; top:8px; width:50px; height:19px; ">
  157. <choices>
  158. <item>
  159. <label>-</label>
  160. <value>-</value>
  161. </item>
  162. <item>
  163. <label>1</label>
  164. <value>1</value>
  165. </item>
  166. <item>
  167. <label>2</label>
  168. <value>2</value>
  169. </item>
  170. <item>
  171. <label>3</label>
  172. <value>3</value>
  173. </item>
  174. <item>
  175. <label>4</label>
  176. <value>4</value>
  177. </item>
  178. <item>
  179. <label>5회이상</label>
  180. <value>5</value>
  181. </item>
  182. </choices>
  183. <script type="javascript" ev:event="xforms-value-changed">
  184. <![CDATA[
  185. submit("TRADB61201");
  186. model.setValue("/root/send/srchmthdcd","");
  187. ]]>
  188. </script>
  189. </select1>
  190. <select id="checkbox2" ref="/root/send/srchbasemthdyn" class="checkbox_search" overflow="visible" appearance="full" style="left:524px; top:9px; width:30px; height:20px; border-style:none; ">
  191. <choices>
  192. <item>
  193. <label/>
  194. <value>Y</value>
  195. </item>
  196. </choices>
  197. <script type="javascript" ev:event="xforms-value-changed">
  198. <![CDATA[
  199. submit("TRADB61201");
  200. model.setValue("/root/send/srchmthdcd","");
  201. ]]>
  202. </script>
  203. </select>
  204. </group>
  205. <caption id="caption1" class="tit_2" style="left:5px; top:46px; width:95px; height:14px; ">용법조회</caption>
  206. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:775px; y2:60px; "/>
  207. <datagrid id="grd_mthdlist" nodeset="/root/main/mthdlist/item" caption="용법코드^약어명^용법명^기본용법여부^횟수^횟수패턴" colsep="^" colwidth="80, 133, 333, 83, 49, 59" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:0px; top:66px; width:775px; height:484px; ">
  208. <col ref="mthdcd"/>
  209. <col ref="abbrnm"/>
  210. <col ref="mthdcnts"/>
  211. <col checkvalue="Y,N" ref="basemthdyn" type="checkbox"/>
  212. <col ref="basecnt" style="text-align:center; "/>
  213. <col ref="cntpatt"/>
  214. <script type="javascript" ev:event="ondblclick">
  215. <![CDATA[
  216. var receiveref = model.getValue("/root/hidden/receiveref");
  217. if ( checkOpener() ) {
  218. opener.model.setValue(receiveref, model.getValue("/root/main/mthdlist/item["+grd_mthdlist.row+"]/mthdcd"));
  219. opener.model.refresh();
  220. window.close();
  221. } else {
  222. alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
  223. }
  224. ]]>
  225. </script>
  226. </datagrid>
  227. </group>
  228. <group id="group1" scroll="auto" style="left:0px; top:550px; width:780px; height:27px; ">
  229. <button id="btn_cfm" class="btn4_letter2" style="left:661px; top:5px; width:56px; height:22px; ">
  230. <caption>확인</caption>
  231. </button>
  232. <button id="btn_cls" class="btn4_letter2" style="left:720px; top:5px; width:56px; height:22px; ">
  233. <caption>닫기</caption>
  234. <close ev:event="DOMActivate"/>
  235. </button>
  236. </group>
  237. </xhtml:body>
  238. </xhtml:html>