SPADB62100_편람용약품검색.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  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. <druginfo>
  11. <druglist>
  12. <selflag/>
  13. <drugcd/>
  14. <drugnm/>
  15. <comcd/>
  16. <comnm/>
  17. <efcycd/>
  18. </druglist>
  19. </druginfo>
  20. </main>
  21. <send>
  22. <srchinfo>
  23. <srchefcycd1/>
  24. <srchefcycd2/>
  25. <srchefcycd3/>
  26. <srchefcycd4/>
  27. <srchefcycd5/>
  28. <srchefcycd/>
  29. <srchefcylevel/>
  30. <srchcomcd/>
  31. <srchcomnm/>
  32. <srchcom/>
  33. <srchcomdiv>1</srchcomdiv>
  34. </srchinfo>
  35. </send>
  36. <init>
  37. <efcyinfo1/>
  38. <efcyinfo2/>
  39. <efcyinfo3/>
  40. <efcyinfo4/>
  41. <efcyinfo5/>
  42. <efcybaseinfo>
  43. <item>
  44. <efcycd/>
  45. <efcynm/>
  46. </item>
  47. </efcybaseinfo>
  48. </init>
  49. <hidden>
  50. <receivedata/>
  51. </hidden>
  52. </root>
  53. </instance>
  54. <script type="javascript" ev:event="xforms-ready">
  55. <![CDATA[
  56. var efcycd1 = model.getValue("/root/hidden/receivedata/srchefcycd1");
  57. var efcycd2 = model.getValue("/root/hidden/receivedata/srchefcycd2");
  58. var efcycd3 = model.getValue("/root/hidden/receivedata/srchefcycd3");
  59. var efcycd4 = model.getValue("/root/hidden/receivedata/srchefcycd4");
  60. var efcycd5 = model.getValue("/root/hidden/receivedata/srchefcycd5");
  61. var comcd = model.getValue("/root/hidden/receivedata/srchcomcd");
  62. var comnm = model.getValue("/root/hidden/receivedata/srchcomnm");
  63. fSetEfcyCode( "%", 1 );
  64. fSetEfcyCode(efcycd1+ "%", 2 );
  65. fSetEfcyCode( efcycd3+"%", 3 );
  66. fSetEfcyCode(efcycd4+ "%", 4 );
  67. fSetEfcyCode(efcycd5+ "%", 5 );
  68. model.setValue("/root/send/srchinfo/srchefcycd1",efcycd1);
  69. model.setValue("/root/send/srchinfo/srchefcycd2",efcycd2);
  70. model.setValue("/root/send/srchinfo/srchefcycd3",efcycd3);
  71. model.setValue("/root/send/srchinfo/srchefcycd4",efcycd4);
  72. model.setValue("/root/send/srchinfo/srchefcycd5",efcycd5);
  73. model.setValue("/root/send/srchinfo/srchcomcd" ,comcd);
  74. model.setValue("/root/send/srchinfo/srchcom" ,comcd);
  75. model.refresh();
  76. fSubmitEfcyDrugList();
  77. grd_druglist1.fixedcellcheckbox(0,0) = true;
  78. grd_druglist2.fixedcellcheckbox(0,0) = true;
  79. ]]>
  80. </script>
  81. <script type="javascript">
  82. <![CDATA[
  83. function fSetEfcyCode( efcycd, efcylevel ){
  84. model.setValue("/root/send/srchinfo/srchefcycd" ,efcycd);
  85. model.setValue("/root/send/srchinfo/srchefcylevel",efcylevel);
  86. submit("TRADB01801");
  87. model.copyNode("/root/init/efcyinfo"+efcylevel , "/root/init/efcybaseinfo");
  88. if (efcylevel == 1) {
  89. model.removenode("/root/init/efcyinfo2/item");
  90. model.removenode("/root/init/efcyinfo3/item");
  91. model.removenode("/root/init/efcyinfo4/item");
  92. model.removenode("/root/init/efcyinfo5/item");
  93. model.setValue("/root/send/srchinfo/srchefcycd2","");
  94. model.setValue("/root/send/srchinfo/srchefcycd3","");
  95. model.setValue("/root/send/srchinfo/srchefcycd4","");
  96. model.setValue("/root/send/srchinfo/srchefcycd5","");
  97. } else if (efcylevel == 2) {
  98. model.removenode("/root/init/efcyinfo3/item");
  99. model.removenode("/root/init/efcyinfo4/item");
  100. model.removenode("/root/init/efcyinfo5/item");
  101. model.setValue("/root/send/srchinfo/srchefcycd3","");
  102. model.setValue("/root/send/srchinfo/srchefcycd4","");
  103. model.setValue("/root/send/srchinfo/srchefcycd5","");
  104. } else if (efcylevel == 3) {
  105. model.removenode("/root/init/efcyinfo4/item");
  106. model.removenode("/root/init/efcyinfo5/item");
  107. model.setValue("/root/send/srchinfo/srchefcycd4","");
  108. model.setValue("/root/send/srchinfo/srchefcycd5","");
  109. } else if (efcylevel == 4) {
  110. model.removenode("/root/init/efcyinfo5/item");
  111. model.setValue("/root/send/srchinfo/srchefcycd5","");
  112. }
  113. model.refresh();
  114. }
  115. function fSubmitEfcyDrugList() {
  116. var srchefcycd = "";
  117. var srchefcycd1 = model.getValue("/root/send/srchinfo/srchefcycd1");
  118. var srchefcycd2 = model.getValue("/root/send/srchinfo/srchefcycd2");
  119. var srchefcycd3 = model.getValue("/root/send/srchinfo/srchefcycd3");
  120. var srchefcycd4 = model.getValue("/root/send/srchinfo/srchefcycd4");
  121. var srchefcycd5 = model.getValue("/root/send/srchinfo/srchefcycd5");
  122. if (srchefcycd5 != "") {
  123. srchefcycd = srchefcycd5;
  124. } else {
  125. if (srchefcycd4 != "") {
  126. srchefcycd = srchefcycd4;
  127. } else {
  128. if (srchefcycd3 != "") {
  129. srchefcycd = srchefcycd3;
  130. } else {
  131. if (srchefcycd2!= "") {
  132. srchefcycd = srchefcycd2;
  133. } else {
  134. if (srchefcycd1 != "") {
  135. srchefcycd = srchefcycd1;
  136. }
  137. }
  138. }
  139. }
  140. }
  141. model.setValue("/root/send/srchinfo/srchefcycd",srchefcycd);
  142. submit("TRADB01804");
  143. }
  144. function fSubmitComDrugList() {
  145. var srchcomdiv = model.getValue("/root/send/srchinfo/srchcomdiv");
  146. var srchcom = model.getValue("/root/send/srchinfo/srchcom");
  147. if (srchcomdiv == "1") { // 코드
  148. model.setValue("/root/send/srchinfo/srchcomcd",srchcom);
  149. } else if (srchcomdiv == "2") { // 명칭
  150. model.setValue("/root/send/srchinfo/srchcomnm",srchcom);
  151. }
  152. submit("TRADB62002");
  153. }
  154. function fTransferData(index, rowtype) {
  155. if (index == 0) {
  156. astfInsertGridData(grd_druglist1, opener.grd_comdruglist, rowtype, "selflag", "drugcd,drugcd,drugnm,drugnm", "drugcd,drugcd");
  157. }else if (index == 1) {
  158. astfInsertGridData(grd_druglist2, opener.grd_comdruglist, rowtype, "selflag", "drugcd,drugcd,engnm,drugnm,comcd,comcd", "drugcd,drugcd");
  159. }
  160. opener.model.refresh();
  161. window.close();
  162. }
  163. ]]>
  164. </script>
  165. <submission id="TRADB01801" ref="/root/send/srchinfo" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/init/efcybaseinfo"/>
  166. <submission id="TRADB62002" ref="/root/send/srchinfo" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/druginfo/druglist"/>
  167. <submission id="TRADB01804" ref="/root/send/srchinfo" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/druginfo/druglist"/>
  168. </model>
  169. <script type="javascript" src="../../../com/hismainweb/js/DocTitle.js"/>
  170. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  171. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  172. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  173. </xhtml:head>
  174. <xhtml:body pagewidth="662" pageheight="590" guideline="1,1194;1,645;2,575;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  175. <button id="button1" class="btn_sw" group="tab" selected="false" style="left:55px; top:25px; width:55px; height:22px; ">
  176. <caption>성분별</caption>
  177. <toggle case="case2" ev:event="onclick"/>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. model.removeNodeset("/root/main/druginfo/druglist");
  181. model.refresh();
  182. fSubmitComDrugList();
  183. ]]>
  184. </script>
  185. </button>
  186. <button id="button2" class="btn_sw" group="tab" selected="true" style="left:0px; top:25px; width:55px; height:22px; ">
  187. <caption>효능별</caption>
  188. <toggle case="case1" ev:event="onclick"/>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. model.removeNodeset("/root/main/druginfo/druglist");
  192. model.refresh();
  193. ]]>
  194. </script>
  195. </button>
  196. <group id="group1" style="left:0px; top:5px; width:646px; height:13px; ">
  197. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:146px; height:14px; ">편람용 약품검색</caption>
  198. </group>
  199. <switch id="switch1" style="left:0px; top:45px; width:646px; height:505px; ">
  200. <case id="case1" selected="true">
  201. <group id="group2" style="left:15px; top:10px; width:615px; height:140px; ">
  202. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:615px; height:140px; background-color:#fffbf2; border-color:#ffd799; "/>
  203. <line id="line13" style="x1:450px; y1:10px; x2:450px; y2:132px; border-color:#ffe4bb; border-left-style:solid; "/>
  204. <caption id="caption3" class="search_name" style="left:15px; top:5px; width:86px; height:17px; ">효능분류 :</caption>
  205. <button id="btn_sea" class="btn1_letter2" style="left:500px; top:50px; width:56px; height:22px; ">
  206. <caption>조회</caption>
  207. <script type="javascript" ev:event="DOMActivate">
  208. <![CDATA[
  209. fSubmitEfcyDrugList();
  210. ]]>
  211. </script>
  212. </button>
  213. <select1 id="cmb_srchefcycd1" ref="/root/send/srchinfo/srchefcycd1" class="combo_search" appearance="minimal" style="left:145px; top:10px; width:235px; height:19px; ">
  214. <choices>
  215. <itemset nodeset="/root/init/efcyinfo1/item">
  216. <label ref="efcynm"/>
  217. <value ref="efcycd"/>
  218. </itemset>
  219. </choices>
  220. <script type="javascript" ev:event="xforms-value-changed">
  221. <![CDATA[
  222. var srchefcycd1 = model.getValue("/root/send/srchinfo/srchefcycd1");
  223. fSetEfcyCode( srchefcycd1+"%", 2 );
  224. ]]>
  225. </script>
  226. </select1>
  227. <select1 id="cmb_srchefcycd2" ref="/root/send/srchinfo/srchefcycd2" class="combo_search" appearance="minimal" style="left:145px; top:35px; width:235px; height:19px; ">
  228. <choices>
  229. <itemset nodeset="/root/init/efcyinfo2/item">
  230. <label ref="efcynm"/>
  231. <value ref="efcycd"/>
  232. </itemset>
  233. </choices>
  234. <script type="javascript" ev:event="xforms-value-changed">
  235. <![CDATA[
  236. var srchefcycd2 = model.getValue("/root/send/srchinfo/srchefcycd2");
  237. fSetEfcyCode( srchefcycd2+"%", 3 );
  238. ]]>
  239. </script>
  240. </select1>
  241. <select1 id="cmb_srchefcycd3" ref="/root/send/srchinfo/srchefcycd3" class="combo_search" appearance="minimal" style="left:145px; top:60px; width:235px; height:19px; ">
  242. <choices>
  243. <itemset nodeset="/root/init/efcyinfo3/item">
  244. <label ref="efcynm"/>
  245. <value ref="efcycd"/>
  246. </itemset>
  247. </choices>
  248. <script type="javascript" ev:event="xforms-value-changed">
  249. <![CDATA[
  250. var srchefcycd3 = model.getValue("/root/send/srchinfo/srchefcycd3");
  251. fSetEfcyCode( srchefcycd3+"%", 4 );
  252. ]]>
  253. </script>
  254. </select1>
  255. <select1 id="cmb_srchefcycd4" ref="/root/send/srchinfo/srchefcycd4" class="combo_search" appearance="minimal" style="left:145px; top:85px; width:235px; height:19px; ">
  256. <choices>
  257. <itemset nodeset="/root/init/efcyinfo4/item">
  258. <label ref="efcynm"/>
  259. <value ref="efcycd"/>
  260. </itemset>
  261. </choices>
  262. <script type="javascript" ev:event="xforms-value-changed">
  263. <![CDATA[
  264. var srchefcycd4 = model.getValue("/root/send/srchinfo/srchefcycd4");
  265. fSetEfcyCode( srchefcycd4+"%", 5 );
  266. ]]>
  267. </script>
  268. </select1>
  269. <select1 id="cmb_srchefcycd5" ref="/root/send/srchinfo/srchefcycd5" class="combo_search" appearance="minimal" style="left:145px; top:110px; width:235px; height:19px; ">
  270. <choices>
  271. <itemset nodeset="/root/init/efcyinfo5/item">
  272. <label ref="efcynm"/>
  273. <value ref="efcycd"/>
  274. </itemset>
  275. </choices>
  276. </select1>
  277. </group>
  278. <caption id="caption4" class="tit_2" style="left:25px; top:165px; width:75px; height:13px; ">약품코드</caption>
  279. <line id="line3" class="line_1" style="x1:15px; y1:180px; x2:630px; y2:180px; "/>
  280. <datagrid id="grd_druglist1" nodeset="/root/main/druginfo/druglist" caption="^코드^상품명^성분코드^성분명" colwidth="31, 79, 223, 67, 193" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:15px; top:185px; width:615px; height:305px; ">
  281. <col ref="selflag" type="checkbox"/>
  282. <col ref="drugcd"/>
  283. <col ref="drugnm"/>
  284. <col ref="comcd"/>
  285. <col ref="comnm"/>
  286. <script type="javascript" ev:event="ondblclick">
  287. <![CDATA[
  288. fTransferData(0,"1");
  289. ]]>
  290. </script>
  291. </datagrid>
  292. </case>
  293. <case id="case2">
  294. <group id="group3" ref="/root/send/srchcomflag" style="left:15px; top:15px; width:615px; height:35px; vertical-align:top; ">
  295. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:615px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  296. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">성 분 :</caption>
  297. <line id="line1" style="x1:494px; y1:7px; x2:494px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  298. <input id="input3" ref="/root/send/srchinfo/srchcom" class="input_search" style="left:109px; top:8px; width:196px; height:19px; "/>
  299. <select1 id="radio2" ref="/root/send/srchinfo/srchcomdiv" class="radio_search" overflow="visible" appearance="full" rows="1" cols="2" style="left:315px; top:9px; width:100px; height:20px; border-style:none; ">
  300. <choices>
  301. <item>
  302. <label>코드</label>
  303. <value>1</value>
  304. </item>
  305. <item>
  306. <label>명칭</label>
  307. <value>2</value>
  308. </item>
  309. </choices>
  310. </select1>
  311. <button id="button3" class="btn1_letter2" style="left:510px; top:7px; width:56px; height:22px; ">
  312. <caption>조회</caption>
  313. <script type="javascript" ev:event="DOMActivate">
  314. <![CDATA[
  315. fSubmitComDrugList();
  316. ]]>
  317. </script>
  318. </button>
  319. </group>
  320. <caption id="caption1" class="tit_2" style="left:25px; top:65px; width:75px; height:13px; ">약품코드</caption>
  321. <line id="line2" class="line_1" style="x1:15px; y1:80px; x2:630px; y2:80px; "/>
  322. <datagrid id="grd_druglist2" nodeset="/root/main/druginfo/druglist" caption="^코드^상품명^성분코드^성분명" colwidth="27, 79, 242, 67, 177" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:15px; top:85px; width:615px; height:405px; ">
  323. <col ref="selflag" type="checkbox"/>
  324. <col ref="drugcd"/>
  325. <col ref="engnm"/>
  326. <col ref="comcd"/>
  327. <col ref="comnm"/>
  328. <script type="javascript" ev:event="ondblclick">
  329. <![CDATA[
  330. fTransferData(1,"1");
  331. ]]>
  332. </script>
  333. </datagrid>
  334. </case>
  335. </switch>
  336. <group id="group4" scroll="auto" style="left:0px; top:550px; width:646px; height:27px; ">
  337. <button id="btn_cfm" class="btn4_letter2" style="left:482px; top:5px; width:56px; height:22px; ">
  338. <caption>확인</caption>
  339. <script type="javascript" ev:event="DOMActivate">
  340. <![CDATA[
  341. fTransferData(switch1.selectedIndex,"2");
  342. ]]>
  343. </script>
  344. </button>
  345. <button id="btn_cls" class="btn4_letter2" style="left:541px; top:5px; width:56px; height:22px; ">
  346. <caption>닫기</caption>
  347. <close ev:event="DOMActivate"/>
  348. </button>
  349. </group>
  350. </xhtml:body>
  351. </xhtml:html>