SPMQR00100_약품코드조회.xrw 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  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. <druglist>
  11. <item>
  12. <drugcd/>
  13. <ordnm/>
  14. <hngnm/>
  15. <druginfo/>
  16. </item>
  17. </druglist>
  18. <comlist>
  19. <item>
  20. <comcd/>
  21. <comnm/>
  22. <comlevel/>
  23. </item>
  24. </comlist>
  25. <efcylist>
  26. <item>
  27. <efcycd/>
  28. <efcynm/>
  29. <efcylevel/>
  30. </item>
  31. </efcylist>
  32. </main>
  33. <send>
  34. <srchcls>1</srchcls>
  35. <cnfmyn>Y N</cnfmyn>
  36. <seqflag>1</seqflag>
  37. <drugkind>N M Y</drugkind>
  38. <drugkindall>4</drugkindall>
  39. <spcldrug/>
  40. <efcycd>-</efcycd>
  41. <efcycls/>
  42. <srchflag>1</srchflag>
  43. <srchcnts/>
  44. <srchdrugcd>%</srchdrugcd>
  45. <srchcomcd/>
  46. <srchcomnm/>
  47. <srchefcy/>
  48. <srchetcflag>A</srchetcflag>
  49. </send>
  50. <init>
  51. <cmbinfo>
  52. <efcycls>
  53. <P0096>
  54. <cdid/>
  55. <cdnm/>
  56. </P0096>
  57. </efcycls>
  58. <spcldrug>
  59. <A0006>
  60. <cdid/>
  61. <cdnm/>
  62. </A0006>
  63. </spcldrug>
  64. </cmbinfo>
  65. </init>
  66. <hidden>
  67. </hidden>
  68. <temp>
  69. <receivedata>
  70. <receiveref/>
  71. <srchflag/>
  72. <srchcnts/>
  73. <drugkind/>
  74. </receivedata>
  75. </temp>
  76. </root>
  77. </instance>
  78. <submission id="TRZBC00101"/>
  79. <submission id="TRADB60101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/druglist"/>
  80. <submission id="TRADB60102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/main/comlist"/>
  81. <submission id="TRADB60103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchefcy" replace="instance" resultref="/root/main/efcylist"/>
  82. </model>
  83. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  85. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  86. <script type="javascript" ev:event="xforms-ready">
  87. <![CDATA[
  88. zbcfGetCodeList( new Array("A0006", "P0096"), new Array("/root/init/cmbinfo/spcldrug", "/root/init/cmbinfo/efcycls") );
  89. if ( model.getValue("/root/temp/receivedata/drugkind") != ""){
  90. model.setValue ( "/root/send/drugkind", model.getValue("/root/temp/receivedata/drugkind"));
  91. }
  92. if ( model.getValue("/root/temp/receivedata/srchcnts") != ""){
  93. model.setValue ( "/root/send/srchcnts", model.getValue("/root/temp/receivedata/srchcnts"));
  94. model.getValue("/root/temp/receivedata/srchflag")
  95. model.setValue ( "/root/send/srchflag", model.getValue("/root/temp/receivedata/srchflag"));
  96. model.setValue("/root/send/srchdrugcd","D%");
  97. submit("TRADB60101");
  98. }
  99. model.refresh();
  100. ]]>
  101. </script>
  102. </xhtml:head>
  103. <xhtml:body pagewidth="827" pageheight="657" guideline="1,1194;2,657;2,628;2,655;1,811;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  104. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:810px; height:75px; background-color:#fffbf2; border-color:#ffd799; "/>
  105. <caption id="caption3" class="search_name" style="left:10px; top:10px; width:86px; height:17px; ">구 분 :</caption>
  106. <caption id="caption1" class="search_name" style="left:10px; top:35px; width:86px; height:17px; ">약품종류 :</caption>
  107. <caption id="caption2" class="search_name" style="left:10px; top:60px; width:86px; height:17px; ">복 지 부 :</caption>
  108. <caption id="caption4" class="search_name" style="left:520px; top:10px; width:60px; height:17px; ">순서 :</caption>
  109. <caption id="caption5" class="search_name" style="left:420px; top:35px; width:86px; height:17px; ">특별약품 :</caption>
  110. <caption id="caption6" class="search_name" style="left:420px; top:60px; width:86px; height:17px; ">조 회 :</caption>
  111. <line id="line13" class="line_4" style="x1:744px; y1:15px; x2:744px; y2:69px; border-color:#ffe4bb; border-left-style:solid; "/>
  112. <button id="button64" class="btn_sw" group="tab" selected="true" style="left:0px; top:110px; width:30px; height:22px; ">
  113. <caption>All</caption>
  114. <script type="javascript" ev:event="DOMActivate">
  115. <![CDATA[
  116. model.setValue("/root/send/srchdrugcd","D%");
  117. submit("TRADB60101");
  118. ]]>
  119. </script>
  120. </button>
  121. <button id="button2" class="btn_sw" group="tab" selected="false" style="left:30px; top:110px; width:30px; height:22px; ">
  122. <caption>A</caption>
  123. <script type="javascript" ev:event="DOMActivate">
  124. <![CDATA[
  125. model.setValue("/root/send/srchdrugcd","DA%");
  126. submit("TRADB60101");
  127. ]]>
  128. </script>
  129. </button>
  130. <button id="button3" class="btn_sw" group="tab" selected="false" style="left:60px; top:110px; width:30px; height:22px; ">
  131. <caption>B</caption>
  132. <script type="javascript" ev:event="DOMActivate">
  133. <![CDATA[
  134. model.setValue("/root/send/srchdrugcd","DB%");
  135. submit("TRADB60101");
  136. ]]>
  137. </script>
  138. </button>
  139. <button id="button4" class="btn_sw" group="tab" selected="false" style="left:90px; top:110px; width:30px; height:22px; ">
  140. <caption>C</caption>
  141. <script type="javascript" ev:event="DOMActivate">
  142. <![CDATA[
  143. model.setValue("/root/send/srchdrugcd","DC%");
  144. submit("TRADB60101");
  145. ]]>
  146. </script>
  147. </button>
  148. <button id="button5" class="btn_sw" group="tab" selected="false" style="left:120px; top:110px; width:30px; height:22px; ">
  149. <caption>D</caption>
  150. <script type="javascript" ev:event="DOMActivate">
  151. <![CDATA[
  152. model.setValue("/root/send/srchdrugcd","DD%");
  153. submit("TRADB60101");
  154. ]]>
  155. </script>
  156. </button>
  157. <button id="button6" class="btn_sw" group="tab" selected="false" style="left:150px; top:110px; width:30px; height:22px; ">
  158. <caption>E</caption>
  159. <script type="javascript" ev:event="DOMActivate">
  160. <![CDATA[
  161. model.setValue("/root/send/srchdrugcd","DE%");
  162. submit("TRADB60101");
  163. ]]>
  164. </script>
  165. </button>
  166. <button id="button7" class="btn_sw" group="tab" selected="false" style="left:180px; top:110px; width:30px; height:22px; ">
  167. <caption>F</caption>
  168. <script type="javascript" ev:event="DOMActivate">
  169. <![CDATA[
  170. model.setValue("/root/send/srchdrugcd","DF%");
  171. submit("TRADB60101");
  172. ]]>
  173. </script>
  174. </button>
  175. <button id="button8" class="btn_sw" group="tab" selected="false" style="left:210px; top:110px; width:30px; height:22px; ">
  176. <caption>G</caption>
  177. <script type="javascript" ev:event="DOMActivate">
  178. <![CDATA[
  179. model.setValue("/root/send/srchdrugcd","DG%");
  180. submit("TRADB60101");
  181. ]]>
  182. </script>
  183. </button>
  184. <button id="button9" class="btn_sw" group="tab" selected="false" style="left:240px; top:110px; width:30px; height:22px; ">
  185. <caption>H</caption>
  186. <script type="javascript" ev:event="DOMActivate">
  187. <![CDATA[
  188. model.setValue("/root/send/srchdrugcd","DH%");
  189. submit("TRADB60101");
  190. ]]>
  191. </script>
  192. </button>
  193. <button id="button10" class="btn_sw" group="tab" style="left:270px; top:110px; width:30px; height:22px; ">
  194. <caption>I</caption>
  195. <script type="javascript" ev:event="DOMActivate">
  196. <![CDATA[
  197. model.setValue("/root/send/srchdrugcd","DI%");
  198. submit("TRADB60101");
  199. ]]>
  200. </script>
  201. </button>
  202. <button id="button11" class="btn_sw" group="tab" style="left:300px; top:110px; width:30px; height:22px; ">
  203. <caption>J</caption>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. model.setValue("/root/send/srchdrugcd","DJ%");
  207. submit("TRADB60101");
  208. ]]>
  209. </script>
  210. </button>
  211. <button id="button12" class="btn_sw" group="tab" style="left:330px; top:110px; width:30px; height:22px; ">
  212. <caption>K</caption>
  213. <script type="javascript" ev:event="DOMActivate">
  214. <![CDATA[
  215. model.setValue("/root/send/srchdrugcd","DK%");
  216. submit("TRADB60101");
  217. ]]>
  218. </script>
  219. </button>
  220. <button id="button13" class="btn_sw" group="tab" style="left:360px; top:110px; width:30px; height:22px; ">
  221. <caption>L</caption>
  222. <script type="javascript" ev:event="DOMActivate">
  223. <![CDATA[
  224. model.setValue("/root/send/srchdrugcd","DL%");
  225. submit("TRADB60101");
  226. ]]>
  227. </script>
  228. </button>
  229. <button id="button14" class="btn_sw" group="tab" style="left:390px; top:110px; width:30px; height:22px; ">
  230. <caption>M</caption>
  231. <script type="javascript" ev:event="DOMActivate">
  232. <![CDATA[
  233. model.setValue("/root/send/srchdrugcd","DM%");
  234. submit("TRADB60101");
  235. ]]>
  236. </script>
  237. </button>
  238. <button id="button15" class="btn_sw" group="tab" selected="false" style="left:420px; top:110px; width:30px; height:22px; ">
  239. <caption>N</caption>
  240. <script type="javascript" ev:event="DOMActivate">
  241. <![CDATA[
  242. model.setValue("/root/send/srchdrugcd","DN%");
  243. submit("TRADB60101");
  244. ]]>
  245. </script>
  246. </button>
  247. <button id="button16" class="btn_sw" group="tab" selected="false" style="left:450px; top:110px; width:30px; height:22px; ">
  248. <caption>O</caption>
  249. <script type="javascript" ev:event="DOMActivate">
  250. <![CDATA[
  251. model.setValue("/root/send/srchdrugcd","DO%");
  252. submit("TRADB60101");
  253. ]]>
  254. </script>
  255. </button>
  256. <button id="button17" class="btn_sw" group="tab" selected="false" style="left:480px; top:110px; width:30px; height:22px; ">
  257. <caption>P</caption>
  258. <script type="javascript" ev:event="DOMActivate">
  259. <![CDATA[
  260. model.setValue("/root/send/srchdrugcd","DP%");
  261. submit("TRADB60101");
  262. ]]>
  263. </script>
  264. </button>
  265. <button id="button18" class="btn_sw" group="tab" selected="false" style="left:510px; top:110px; width:30px; height:22px; ">
  266. <caption>Q</caption>
  267. <script type="javascript" ev:event="DOMActivate">
  268. <![CDATA[
  269. model.setValue("/root/send/srchdrugcd","DQ%");
  270. submit("TRADB60101");
  271. ]]>
  272. </script>
  273. </button>
  274. <button id="button19" class="btn_sw" group="tab" selected="false" style="left:540px; top:110px; width:30px; height:22px; ">
  275. <caption>R</caption>
  276. <script type="javascript" ev:event="DOMActivate">
  277. <![CDATA[
  278. model.setValue("/root/send/srchdrugcd","DR%");
  279. submit("TRADB60101");
  280. ]]>
  281. </script>
  282. </button>
  283. <button id="button20" class="btn_sw" group="tab" selected="false" style="left:570px; top:110px; width:30px; height:22px; ">
  284. <caption>S</caption>
  285. <script type="javascript" ev:event="DOMActivate">
  286. <![CDATA[
  287. model.setValue("/root/send/srchdrugcd","DS%");
  288. submit("TRADB60101");
  289. ]]>
  290. </script>
  291. </button>
  292. <button id="button21" class="btn_sw" group="tab" selected="false" style="left:600px; top:110px; width:30px; height:22px; ">
  293. <caption>T</caption>
  294. <script type="javascript" ev:event="DOMActivate">
  295. <![CDATA[
  296. model.setValue("/root/send/srchdrugcd","DT%");
  297. submit("TRADB60101");
  298. ]]>
  299. </script>
  300. </button>
  301. <button id="button22" class="btn_sw" group="tab" selected="false" style="left:630px; top:110px; width:30px; height:22px; ">
  302. <caption>U</caption>
  303. <script type="javascript" ev:event="DOMActivate">
  304. <![CDATA[
  305. model.setValue("/root/send/srchdrugcd","DU%");
  306. submit("TRADB60101");
  307. ]]>
  308. </script>
  309. </button>
  310. <button id="button23" class="btn_sw" group="tab" selected="false" style="left:660px; top:110px; width:30px; height:22px; ">
  311. <caption>V</caption>
  312. <script type="javascript" ev:event="DOMActivate">
  313. <![CDATA[
  314. model.setValue("/root/send/srchdrugcd","DV%");
  315. submit("TRADB60101");
  316. ]]>
  317. </script>
  318. </button>
  319. <button id="button24" class="btn_sw" group="tab" selected="false" style="left:690px; top:110px; width:30px; height:22px; ">
  320. <caption>W</caption>
  321. <script type="javascript" ev:event="DOMActivate">
  322. <![CDATA[
  323. model.setValue("/root/send/srchdrugcd","DW%");
  324. submit("TRADB60101");
  325. ]]>
  326. </script>
  327. </button>
  328. <button id="button25" class="btn_sw" group="tab" selected="false" style="left:720px; top:110px; width:30px; height:22px; ">
  329. <caption>X</caption>
  330. <script type="javascript" ev:event="DOMActivate">
  331. <![CDATA[
  332. model.setValue("/root/send/srchdrugcd","DX%");
  333. submit("TRADB60101");
  334. ]]>
  335. </script>
  336. </button>
  337. <button id="button26" class="btn_sw" group="tab" style="left:750px; top:110px; width:30px; height:22px; ">
  338. <caption>Y</caption>
  339. <script type="javascript" ev:event="DOMActivate">
  340. <![CDATA[
  341. model.setValue("/root/send/srchdrugcd","DY%");
  342. submit("TRADB60101");
  343. ]]>
  344. </script>
  345. </button>
  346. <button id="button27" class="btn_sw" group="tab" selected="false" style="left:780px; top:110px; width:30px; height:22px; ">
  347. <caption>Z</caption>
  348. <script type="javascript" ev:event="DOMActivate">
  349. <![CDATA[
  350. model.setValue("/root/send/srchdrugcd","DZ%");
  351. submit("TRADB60101");
  352. ]]>
  353. </script>
  354. </button>
  355. <caption id="caption7" class="tit_2" style="left:6px; top:89px; width:95px; height:13px; ">약품조회</caption>
  356. <line id="line1" class="line_1" style="x1:1px; y1:103px; x2:811px; y2:103px; "/>
  357. <switch id="switch1" style="left:0px; top:130px; width:810px; height:500px; border-color:#c7a3cf; border-style:solid; ">
  358. <case id="case1" selected="true">
  359. <datagrid id="grd_druglist1" nodeset="/root/main/druglist/item" autoresize="true" caption="약품코드^처방명칭^한글명칭^약정보" colsep="^" colwidth="100, 303, 317, 62" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" style="left:0px; top:5px; width:805px; height:485px; ">
  360. <col ref="drugcd"/>
  361. <col ref="ordnm"/>
  362. <col ref="hngnm"/>
  363. <col ref="druginfo"/>
  364. <script type="javascript" ev:event="ondblclick">
  365. <![CDATA[
  366. var receiveref = model.getValue("/root/temp/receivedata/receiveref");
  367. var receivenmref = model.getValue("/root/temp/receivedata/receivenmref");
  368. if ( checkOpener() ) {
  369. opener.model.setValue(receiveref, model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/drugcd"));
  370. opener.model.setValue(receivenmref, model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/ordnm"));
  371. //opener.model.makeNode (receiveref +"/ordnm");
  372. //opener.model.setValue(receiveref +"/ordnm", model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/ordnm"));
  373. opener.model.refresh();
  374. window.close();
  375. } else {
  376. alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
  377. }
  378. ]]>
  379. </script>
  380. </datagrid>
  381. </case>
  382. <case id="case2">
  383. <datagrid id="grd_comlist" nodeset="/root/main/comlist/item" autoresize="true" caption="코드^명 칭^레벨" colsep="^" colwidth="0, 216, 0" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" style="left:5px; top:5px; width:240px; height:490px; ">
  384. <col ref="comcd"/>
  385. <col ref="comnm"/>
  386. <col ref="comlevel"/>
  387. <script type="javascript" ev:event="ondblclick">
  388. <![CDATA[
  389. model.setValue("/root/send/srchetcflag","C");
  390. model.setValue("/root/send/srchcomcd",model.getValue("/root/main/comlist/item[" + grd_comlist.row +"]/comcd"));
  391. submit("TRADB60101");
  392. ]]>
  393. </script>
  394. </datagrid>
  395. <datagrid id="grd_druglist2" nodeset="/root/main/druglist/item" autoresize="true" caption="약품코드^처방명칭^^" colsep="^" colwidth="100, 421, 14, 9" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" style="left:250px; top:5px; width:550px; height:490px; ">
  396. <col ref="drugcd"/>
  397. <col ref="ordnm"/>
  398. <col ref="hngnm"/>
  399. <col ref="druginfo"/>
  400. <script type="javascript" ev:event="ondblclick">
  401. <![CDATA[
  402. var receiveref = model.getValue("/root/temp/receivedata/receiveref");
  403. if ( checkOpener() ) {
  404. opener.model.setValue(receiveref, model.getValue("/root/main/druglist/item["+grd_druglist2.row+"]/drugcd"));
  405. //opener.model.makeNode (receiveref +"/ordnm");
  406. //opener.model.setValue(receiveref +"/ordnm", model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/ordnm"));
  407. opener.model.refresh();
  408. window.close();
  409. } else {
  410. alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
  411. }
  412. ]]>
  413. </script>
  414. </datagrid>
  415. </case>
  416. <case id="case3">
  417. <datagrid id="grd_druglist3" nodeset="/root/main/druglist/item" autoresize="true" caption="약품코드^처방명칭^^" colsep="^" colwidth="100, 421, 14, 9" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" style="left:250px; top:5px; width:550px; height:490px; ">
  418. <col ref="drugcd"/>
  419. <col ref="ordnm"/>
  420. <col ref="hngnm"/>
  421. <col ref="druginfo"/>
  422. <script type="javascript" ev:event="ondblclick">
  423. <![CDATA[
  424. var receiveref = model.getValue("/root/temp/receivedata/receiveref");
  425. if ( checkOpener() ) {
  426. opener.model.setValue(receiveref, model.getValue("/root/main/druglist/item["+grd_druglist3.row+"]/drugcd"));
  427. //opener.model.makeNode (receiveref +"/ordnm");
  428. //opener.model.setValue(receiveref +"/ordnm", model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/ordnm"));
  429. opener.model.refresh();
  430. window.close();
  431. } else {
  432. alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
  433. }
  434. ]]>
  435. </script>
  436. </datagrid>
  437. <datagrid id="grd_efcylist" nodeset="/root/main/efcylist/item" caption="코드^효능명칭^레벨" colsep="^" colwidth="0, 212, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:5px; width:240px; height:490px; ">
  438. <col ref="efcycd"/>
  439. <col ref="efcynm"/>
  440. <col ref="efcylevel" visibility="hidden"/>
  441. <script type="javascript" ev:event="ondblclick">
  442. <![CDATA[
  443. model.setValue("/root/send/srchetcflag","E");
  444. model.setValue("/root/send/srchefcy",model.getValue("/root/main/efcylist/item[" + grd_efcylist.row +"]/efcycd"));
  445. submit("TRADB60101");
  446. ]]>
  447. </script>
  448. </datagrid>
  449. </case>
  450. </switch>
  451. <line id="line3" class="line_2" style="x1:5px; y1:30px; x2:725px; y2:30px; "/>
  452. <line id="line2" class="line_2" style="x1:5px; y1:55px; x2:725px; y2:55px; "/>
  453. <caption id="caption8" class="search_name" style="left:340px; top:10px; width:86px; height:17px; ">저장구분 :</caption>
  454. <button id="btn_sea" class="btn1_letter2" style="left:750px; top:30px; width:56px; height:22px; ">
  455. <caption>조회</caption>
  456. <script type="javascript" ev:event="DOMActivate">
  457. <![CDATA[
  458. model.setValue("/root/send/srchdrugcd","D%");
  459. submit("TRADB60101");
  460. ]]>
  461. </script>
  462. </button>
  463. <button id="btn_cls" class="btn4_letter2" style="left:755px; top:635px; width:56px; height:22px; ">
  464. <caption>닫기</caption>
  465. <close ev:event="DOMActivate"/>
  466. </button>
  467. <select1 id="rdo_srchcls" ref="/root/send/srchcls" class="radio_search" appearance="full" cols="5" rows="1" overflow="visible" style="left:100px; top:10px; width:240px; height:20px; border-style:none; ">
  468. <choices>
  469. <item>
  470. <label>코드별</label>
  471. <value>1</value>
  472. </item>
  473. <item>
  474. <label>성분별</label>
  475. <value>2</value>
  476. </item>
  477. <item>
  478. <label>효능별</label>
  479. <value>3</value>
  480. </item>
  481. <item>
  482. <label>상품명별</label>
  483. <value>4</value>
  484. </item>
  485. </choices>
  486. <script type="javascript" ev:event="xforms-value-changed">
  487. <![CDATA[
  488. if ( model.getValue("/root/send/srchcls") == "2") {
  489. model.toggle("case2");
  490. if ( grd_comlist.rows < 3 ) {
  491. submit("TRADB60102");
  492. setTree(grd_comlist, grd_comlist.colRef("comlevel"),grd_comlist.colRef("comnm"), true );
  493. }
  494. } else if ( model.getValue("/root/send/srchcls") == "3") {
  495. model.toggle("case3");
  496. if ( grd_efcylist.rows<3 ) {
  497. submit("TRADB60103");
  498. setTree(grd_efcylist, grd_efcylist.colRef("efcylevel"),grd_efcylist.colRef("efcynm"), true );
  499. }
  500. }else {
  501. model.setValue("/root/send/srchetcflag","A");
  502. model.toggle("case1");
  503. }
  504. ]]>
  505. </script>
  506. </select1>
  507. <select id="chk_saveflag" ref="/root/send/cnfmyn" class="checkbox_search" overflow="visible" appearance="full" cols="4" rows="1" style="left:425px; top:10px; width:85px; height:20px; border-style:none; ">
  508. <choices>
  509. <item>
  510. <label>확정</label>
  511. <value>Y</value>
  512. </item>
  513. <item>
  514. <label>임시</label>
  515. <value>N</value>
  516. </item>
  517. </choices>
  518. </select>
  519. <select1 id="rdo_seqflag" ref="/root/send/seqflag" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:580px; top:10px; width:160px; height:20px; border-style:none; ">
  520. <choices>
  521. <item>
  522. <label>약품코드순</label>
  523. <value>1</value>
  524. </item>
  525. <item>
  526. <label>처방명칭순</label>
  527. <value>2</value>
  528. </item>
  529. </choices>
  530. </select1>
  531. <select1 id="cmb_srchflag" ref="/root/send/srchflag" class="combo_search" appearance="minimal" style="left:510px; top:58px; width:75px; height:19px; ">
  532. <choices>
  533. <item>
  534. <label>처방명칭</label>
  535. <value>1</value>
  536. </item>
  537. <item>
  538. <label>약품코드</label>
  539. <value>2</value>
  540. </item>
  541. <item>
  542. <label>한글(약품/제조회사)</label>
  543. <value>3</value>
  544. </item>
  545. <item>
  546. <label>EDI코드</label>
  547. <value>4</value>
  548. </item>
  549. <item>
  550. <label>성분명</label>
  551. <value>5</value>
  552. </item>
  553. </choices>
  554. </select1>
  555. <input id="ipt_srchcnts" ref="/root/send/srchcnts" class="input_search" style="left:590px; top:58px; width:135px; height:19px; "/>
  556. <script type="javascript" ev:event="onkeyup">
  557. <![CDATA[
  558. inputEnterKey("btn_sea", "DOMActivate");
  559. ]]>
  560. </script>
  561. <select1 id="cmb_efcycls" ref="/root/send/efcycls" class="combo_search" appearance="minimal" style="left:175px; top:58px; width:240px; height:19px; ">
  562. <choices>
  563. <itemset nodeset="/root/init/cmbinfo/efcycls/P0096">
  564. <label ref="cdnm"/>
  565. <value ref="cdid"/>
  566. </itemset>
  567. </choices>
  568. <script type="javascript" ev:event="xforms-select">
  569. <![CDATA[
  570. model.setValue("/root/send/efcycd", model.getValue("/root/send/efcycls"));
  571. model.refresh();
  572. ]]>
  573. </script>
  574. </select1>
  575. <output id="opt_efcycd" ref="/root/send/efcycd" class="output_search" style="left:100px; top:58px; width:70px; height:19px; "/>
  576. <select1 id="cmb_spcldrug" ref="/root/send/spcldrug" class="combo_search" appearance="minimal" style="left:510px; top:35px; width:215px; height:19px; ">
  577. <choices>
  578. <itemset nodeset="/root/init/cmbinfo/spcldrug/A0006">
  579. <label ref="cdnm"/>
  580. <value ref="cdid"/>
  581. </itemset>
  582. </choices>
  583. </select1>
  584. <select id="chk_drugkind" ref="/root/send/drugkind" class="checkbox_search" overflow="visible" appearance="full" cols="4" rows="1" style="left:100px; top:35px; width:135px; height:20px; border-style:none; ">
  585. <choices>
  586. <item>
  587. <label>내복</label>
  588. <value>N</value>
  589. </item>
  590. <item>
  591. <label>주사</label>
  592. <value>M</value>
  593. </item>
  594. <item>
  595. <label>외용</label>
  596. <value>Y</value>
  597. </item>
  598. </choices>
  599. </select>
  600. <select id="chk_drugkindall" ref="/root/send/drugkindall" class="checkbox_search" overflow="visible" appearance="full" cols="4" rows="1" style="left:240px; top:35px; width:55px; height:20px; border-style:none; ">
  601. <choices>
  602. <item>
  603. <label>전체</label>
  604. <value>4</value>
  605. </item>
  606. </choices>
  607. <script type="javascript" ev:event="xforms-value-changed">
  608. <![CDATA[
  609. if ((model.getValue("/root/send/drugkindall")).indexOf("4")>-1) { //전체가 선택됐을때 다른 체크도 모두 전체체크의 상태대로 셋팅
  610. model.setValue("/root/send/drugkind","N M Y");
  611. } else {
  612. model.setValue("/root/send/drugkind"," ");
  613. }
  614. model.refresh();
  615. ]]>
  616. </script>
  617. </select>
  618. </xhtml:body>
  619. </xhtml:html>