SMMMO02200_처방검색.xrw 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608
  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. <prcpclscdlist>
  11. <prcpclscdlist/>
  12. </prcpclscdlist>
  13. </main>
  14. <prcpsrch>
  15. <prcplist>
  16. <status/>
  17. <prcpstatcd/>
  18. <prcpclscd/>
  19. <prcpkindcd/>
  20. <prcpcd/>
  21. <prcpnm/>
  22. <prcpvol/>
  23. <prcpvolunitnm/>
  24. <prcpqty/>
  25. <prcpqtyunitnm/>
  26. <prcptims/>
  27. <prcpdayno/>
  28. <drugmthdspccdnm/>
  29. <prcpmixno/>
  30. <payflagcd/>
  31. <prcpdelivefact/>
  32. <hosinhosoutflag/>
  33. <prcpexecdeptcd/>
  34. <prcphopedd/>
  35. <choiordflag/>
  36. <rgstdt/>
  37. <rgstridnm/>
  38. <testrsltunit/>
  39. <testrsltcnts/>
  40. <prcpgenrflag/>
  41. <prcphistcd/>
  42. <tempprcpflag/>
  43. <prcpsetcd/>
  44. <prcpvolunitflag/>
  45. <prcpqtyunitflag/>
  46. <orgprcpqty/>
  47. <drugspd/>
  48. <drugspdunitflag/>
  49. <powdflag/>
  50. <prnprcpflag/>
  51. <prepprcpflag/>
  52. <selfprcpflag/>
  53. <selfdrugflag/>
  54. <drugpackflag/>
  55. <erprcpflag/>
  56. <precureprcpflag/>
  57. <nigtprcpflag/>
  58. <portprcpflag/>
  59. <fixprcpflag/>
  60. <anamneflag/>
  61. <fastprcpflag/>
  62. <erreadflag/>
  63. <prcpdirecflag/>
  64. <tnsuseflag/>
  65. <tnsfiltflag/>
  66. <trnptbftestflag/>
  67. <offictourhealexamflag/>
  68. <stemcellflag/>
  69. <angioflagcd/>
  70. <opansflagcd/>
  71. <ansttm/>
  72. <mealcalrcnts/>
  73. <mealprotcnts/>
  74. <mealupdtflag/>
  75. <hosinprcpresncd/>
  76. <etcprcpresncd/>
  77. <drugmthdspccd/>
  78. <issdeptcd/>
  79. <prcpauthflag/>
  80. <prcpinptflag/>
  81. <prcpsignflag/>
  82. <rateprcpflag/>
  83. <prcprefseq/>
  84. <ordreqlnkno/>
  85. <testreqlnkno/>
  86. <prcplnkdd/>
  87. <prcplnkno/>
  88. <oprsrvno/>
  89. <tootfact/>
  90. <clinccmtcnts/>
  91. <prcpessninptflag/>
  92. <grupsnglflag/>
  93. <drugrateqty/>
  94. <asttestflag/>
  95. <clincstdyflag/>
  96. <prtlno/>
  97. <clincstdycd/>
  98. <optermcd/>
  99. <prcpflag/>
  100. <hscttempprcpflag/>
  101. <inclprcpcd/>
  102. <inclprcpno/>
  103. <pampkspec/>
  104. <prcppkspec/>
  105. <calcscormastspec/>
  106. <drugmastspec/>
  107. <rateprcpspec/>
  108. <matrsetprcpspec/>
  109. <suppdeptspec/>
  110. <contprcpspec/>
  111. <etclnkspec/>
  112. <srchcondcnts/>
  113. <orgprcpnm/>
  114. <chkcol/>
  115. <hsctdelivepos/>
  116. <hsctlnkno/>
  117. <etcprcpflag/>
  118. <aftcertflag/>
  119. <aftcertdrid/>
  120. <prcpvalidd/>
  121. <insukind/>
  122. <specdrid/>
  123. <anticncrprtlno/>
  124. <anticncrdayno/>
  125. <druglnkno/>
  126. <drprcpetc1/>
  127. <drprcpetc2/>
  128. <drprcpetc3/>
  129. <drprcpetc4/>
  130. <drprcpetc5/>
  131. <drprcpetc6/>
  132. <drprcpetc7/>
  133. <drprcpetc8/>
  134. <drprcpetc9/>
  135. <drprcpetc10/>
  136. <tempcol1/>
  137. <tempcol2/>
  138. <tempcol3/>
  139. <tempcol4/>
  140. <tempcol5/>
  141. <tempcol6/>
  142. <tempcol7/>
  143. <tempcol8/>
  144. <tempcol9/>
  145. <tempcol10/>
  146. <tempcol11/>
  147. <tempcol12/>
  148. <tempcol13/>
  149. <tempcol14/>
  150. <tempcol15/>
  151. <tempcol16/>
  152. <tempcol17/>
  153. <tempcol18/>
  154. <tempcol19/>
  155. <tempcol20/>
  156. <tempcol21/>
  157. <tempcol22/>
  158. <tempcol23/>
  159. <tempcol24/>
  160. <tempcol25/>
  161. </prcplist>
  162. </prcpsrch>
  163. <prcpgroup/>
  164. <prcpdirec/>
  165. <send>
  166. <cond1/>
  167. <cond2/>
  168. <cond3/>
  169. <cond4/>
  170. <cond5/>
  171. <cond6/>
  172. <cond7/>
  173. <cond8/>
  174. <cond9/>
  175. <cond10/>
  176. <cond99/>
  177. </send>
  178. <init>
  179. <detlvw>p</detlvw>
  180. <prcpclscd/>
  181. </init>
  182. <prcpflag/>
  183. <trv_ref/>
  184. </root>
  185. </instance>
  186. <submission id="TRMMO02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prcpclscdlist"/>
  187. <submission id="TRMMO02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/prcpsrch"/>
  188. <submission id="TRMMO00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/prcpgroup"/>
  189. <submission id="TRMMO00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/prcpdirec"/>
  190. <submission id="TRMMO00207" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/addsetprcp"/>
  191. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  192. <submission id="TRMMO02203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prcpclscdlist"/>
  193. <!-- 처방 복사 로직변경 xml 2013.07.05 by 엄영만-->
  194. <submission id="TRMMO00151" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  195. <script type="javascript" ev:event="xforms-ready">
  196. <![CDATA[
  197. model.removeNodeset ( "/root/prcpsrch/prcplist" );
  198. zbcfGetCodeList(new Array("M0005"),new Array( "/root/init/prcpclscd"));
  199. btn_detl.selected = true;
  200. if ( opener.model.getValue ( "/root/usge" ) == "prcp" && opener.model.getValue ( "/root/addprcp" ) != "Y" && opener.model.getValue ( "/root/cp" ) != "S" ) {
  201. //group1.visible = false; group2.visible = false;
  202. fInitSrchBtnSet();
  203. if ( !isNull(opener.model.getValue ( "/root/init/srchbtn" ))) {
  204. fCallSrchBtn(opener.model.getValue ( "/root/init/srchbtn" ));
  205. opener.model.setValue ( "/root/init/srchbtn" , ""); // 처방검색 조회 후 srchbtn 초기화 20080820
  206. }
  207. }else{
  208. group1.visible = false;
  209. group2.visible = true;
  210. trv_prcpclscdlist.attribute ( "top" ) = 129;
  211. trv_prcpclscdlist.attribute ( "height" ) = 475;
  212. grd_prcpsrchlist.attribute ("top" ) = 105;
  213. grd_prcpsrchlist.attribute ( "height" ) = 495;
  214. datagrid6.attribute ( "top" ) = 105;
  215. btn_detl.attribute ("top") = 108;
  216. line1.attribute ( "x1" ) = 100;
  217. line1.attribute ( "x2" ) = 100;
  218. button101.attribute ( "top" ) = 82;
  219. button102.attribute ( "top" ) = 82;
  220. btn_copy.attribute ( "top" ) = 82;
  221. }
  222. if( opener.model.getValue("/root/cp") == "S" ){
  223. // CP 생성기에서 창의 사이즈가 다르므로, 위치 재지정
  224. //btn_genr.attribute("top") = "83px";
  225. //btn_bmt.attribute("top") = "83px";
  226. }
  227. else if ( opener.model.getValue ( "/root/cp" ) == "Y" ) {
  228. // CP M-GPS에서는 컨트롤의 높이가 작아짐
  229. opener.window.javascript.fResizeControls();
  230. }
  231. model.refresh();
  232. ]]>
  233. </script>
  234. </model>
  235. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  236. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  237. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  238. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  239. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  240. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO00100.js"/>
  241. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO02200.js"/>
  242. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  243. </xhtml:head>
  244. <xhtml:body overflow="hidden" guideline="2,637;">
  245. <group id="group2" visibility="hidden" style="left:4px; top:3px; width:371px; height:93px; border-color:#99ccff; border-style:solid; ">
  246. <button id="button51" class="btn2_letter4" _value="A" style="left:18px; top:4px; width:64px; height:19px; ">
  247. <caption>약/주사</caption>
  248. </button>
  249. <button id="button52" class="btn2_letter4" style="left:85px; top:4px; width:64px; height:19px; ">
  250. <caption>진단검사</caption>
  251. <script type="javascript" ev:event="DOMActivate">
  252. <![CDATA[
  253. opener.button102.dispatch ( "DOMActivate" );
  254. ]]>
  255. </script>
  256. </button>
  257. <button id="button53" class="btn2_letter4" _value="O" style="left:152px; top:4px; width:64px; height:19px; ">
  258. <caption>수혈/헌혈</caption>
  259. </button>
  260. <button id="button54" class="btn2_letter4" _value="D" style="left:219px; top:4px; width:64px; height:19px; ">
  261. <caption>기능검사</caption>
  262. </button>
  263. <button id="button55" class="btn2_letter4" _value="E" style="left:286px; top:4px; width:64px; height:19px; ">
  264. <caption>핵의학</caption>
  265. </button>
  266. <button id="button56" class="btn2_letter4" _value="F" style="left:18px; top:26px; width:64px; height:19px; ">
  267. <caption>병 리</caption>
  268. </button>
  269. <button id="button57" class="btn2_letter4" _value="C" style="left:85px; top:25px; width:64px; height:19px; ">
  270. <caption>영 상</caption>
  271. </button>
  272. <button id="button58" class="btn2_letter4" _value="H" style="left:152px; top:26px; width:64px; height:19px; ">
  273. <caption>R T</caption>
  274. </button>
  275. <button id="button59" class="btn2_letter4" _value="I" style="left:219px; top:26px; width:64px; height:19px; ">
  276. <caption>재 활</caption>
  277. </button>
  278. <button id="button60" class="btn2_letter4" _value="J" style="left:286px; top:26px; width:64px; height:19px; ">
  279. <caption>수술/처치</caption>
  280. </button>
  281. <button id="button61" class="btn2_letter4" _value="K" style="left:18px; top:48px; width:64px; height:19px; ">
  282. <caption>마 취</caption>
  283. </button>
  284. <button id="button62" class="btn2_letter4" _value="L" style="left:85px; top:48px; width:64px; height:19px; ">
  285. <caption>재 료</caption>
  286. </button>
  287. <button id="button63" class="btn2_letter4" _value="M" style="left:152px; top:48px; width:64px; height:19px; ">
  288. <caption>치과처방</caption>
  289. </button>
  290. <button id="button65" class="btn2_letter4" style="left:219px; top:48px; width:64px; height:19px; ">
  291. <caption>BMT지시</caption>
  292. <script type="javascript" ev:event="onclick">
  293. <![CDATA[
  294. /*
  295. 식 사
  296. model.setValue( "/root/send/cond1", "meal" );
  297. model.setValue( "/root/send/cond2", opener.model.getValue ( "/root/init/prcpdd" ));
  298. model.removeNodeset ( "/root/prcpsrch" );
  299. grd_prcpsrchlist.valueMatrix ( 0, 2 ) = "처방명";
  300. submit("TRMMO02201", false);
  301. gPRCPFLAG = 3;
  302. //model.setValue( "/root/send/cond9", "3" );
  303. datagrid6.visible = true;
  304. model.refresh();
  305. trv_prcpclscdlist.rebuild();
  306. trv_prcpclscdlist.visible = true;
  307. //CP 생성기에서 조회 할 경우, 다른 버튼선택 후 식사 선택 시, 조회결과가 보이지 않음(2008.07.19)
  308. if( opener.model.getValue("/root/cp") == "S" ){
  309. datagrid6.visible = true;
  310. model.refresh();
  311. trv_prcpclscdlist.rebuild();
  312. }
  313. */
  314. //식사버튼 사용 안함. BMT지시로 변경 2008.11.13 JJE
  315. model.setValue( "/root/send/cond1", "direc" );
  316. model.setValue( "/root/send/cond10", "bmt" );
  317. submit("TRMMO02201");
  318. gPRCPFLAG = 4;
  319. ]]>
  320. </script>
  321. </button>
  322. <script type="javascript" ev:event="onclick">
  323. <![CDATA[
  324. var buttonObj = document.controls(event.target);
  325. var buttonValue = buttonObj.attribute("_value");
  326. if( buttonValue != "" ) {
  327. model.setValue( "/root/send/cond1", buttonValue );
  328. model.setValue ( "/root/send/cond2", opener.model.getValue ( "/root/init/prcpdd" ));
  329. model.removeNodeset ( "/root/prcpsrch" );
  330. grd_prcpsrchlist.valueMatrix ( 0, 2 ) = "처방명";
  331. submit("TRMMO02201", false);
  332. gPRCPFLAG = 1;
  333. //model.setValue( "/root/send/cond9", "1" );
  334. if ( buttonValue == "A" )
  335. grd_prcpsrchlist.colWidth(1) = 40;
  336. else
  337. grd_prcpsrchlist.colWidth(1) = 0;
  338. model.refresh();
  339. }
  340. model.removeNodeset ( "/root/prcpsrch" );
  341. datagrid6.visible = true;
  342. trv_prcpclscdlist.rebuild();
  343. trv_prcpclscdlist.visible = true;
  344. ]]>
  345. </script>
  346. <button id="button66" class="btn2_letter4" style="left:286px; top:48px; width:64px; height:19px; ">
  347. <caption>지 시</caption>
  348. <script type="javascript" ev:event="onclick">
  349. <![CDATA[
  350. model.setValue( "/root/send/cond1", "direc" );
  351. model.setValue( "/root/send/cond10", "genr" );
  352. submit("TRMMO02201");
  353. gPRCPFLAG = 2;
  354. // model.setValue( "/root/send/cond9", "2" );
  355. ]]>
  356. </script>
  357. </button>
  358. <button id="button16" class="btn2_letter4" style="left:18px; top:70px; width:64px; height:19px; ">
  359. <caption>OCS처방</caption>
  360. <script type="javascript" ev:event="onclick">
  361. <![CDATA[
  362. model.setValue("/root/send/cond1", "prcpclasscd");
  363. model.setValue( "/root/send/cond2" , opener.model.getValue ( "/root/init/prcpdd" ));
  364. grd_prcpsrchlist.valueMatrix ( 0, 2 ) = "처방명";
  365. if(submit("TRMMO02203", false)){
  366. gPRCPFLAG = 5;
  367. trv_prcpclscdlist.rebuild();
  368. }
  369. ]]>
  370. </script>
  371. </button>
  372. </group>
  373. <datagrid id="grd_prcpsrchlist" nodeset="/root/prcpsrch/prcplist" autoresize="true" caption="^분류^처방명" colsep="^" colwidth="20, 40, 345" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:34px; width:377px; height:602px; text-align:center; ">
  374. <col checkvalue="I,N" ref="status" type="checkbox"/>
  375. <col disabled="true" ref="prcpclscd" type="combo">
  376. <choices>
  377. <itemset nodeset="/root/init/prcpclscd/M0005">
  378. <label ref="cdnm"/>
  379. <value ref="cdid"/>
  380. </itemset>
  381. </choices>
  382. </col>
  383. <col ref="prcpnm" style="left:60px; top:23px; width:345px; height:23px; text-align:left; "/>
  384. <script type="javascript" ev:event="ondblclick">
  385. <![CDATA[
  386. // 트리 뷰 더블클릭 시 addPrcp()호출 오류로 인한 조건 변경 : grd_prcpsrchlist.mouseRow >= grd_prcpsrchlist.fixedRows => grd_prcpsrchlist.row >= grd_prcpsrchlist.fixedRows && grd_prcpsrchlist.row <= grd_prcpsrchlist.rows
  387. if(grd_prcpsrchlist.isCell(event.target) && grd_prcpsrchlist.row >= grd_prcpsrchlist.fixedRows && grd_prcpsrchlist.row <= grd_prcpsrchlist.rows){
  388. addPrcp ( "child", "/root/prcpsrch/prcplist", "/root/main/prcp", "N", "status", "I", grd_prcpsrchlist, "N", "00");
  389. }
  390. ]]>
  391. </script>
  392. <script type="javascript" ev:event="onclick">
  393. <![CDATA[
  394. // 트리 뷰 더블클릭 시 addPrcp()호출 오류로 인한 조건 변경 : grd_prcpsrchlist.mouseRow >= grd_prcpsrchlist.fixedRows => grd_prcpsrchlist.row >= grd_prcpsrchlist.fixedRows && grd_prcpsrchlist.row <= grd_prcpsrchlist.rows
  395. if(grd_prcpsrchlist.isCell(event.target) && grd_prcpsrchlist.row >= grd_prcpsrchlist.fixedRows && grd_prcpsrchlist.row <= grd_prcpsrchlist.rows){
  396. if ( grd_prcpsrchlist.col != 0 ) {
  397. if ( model.getValue ( "/root/prcpsrch/prcplist["+ grd_prcpsrchlist.row +"]/status" ) == "N" ) {
  398. model.setValue ( "/root/prcpsrch/prcplist["+ grd_prcpsrchlist.row +"]/status", "I" );
  399. } else {
  400. model.setValue ( "/root/prcpsrch/prcplist["+ grd_prcpsrchlist.row +"]/status", "N" );
  401. }
  402. }
  403. model.refresh();
  404. }
  405. ]]>
  406. </script>
  407. </datagrid>
  408. <group id="group1" visibility="hidden" style="left:4px; top:3px; width:371px; height:90px; border-color:#99ccff; border-style:solid; ">
  409. <button id="button1" class="btn2_letter4" _value="A" style="left:18px; top:4px; width:64px; height:19px; ">
  410. <caption/>
  411. </button>
  412. <button id="button2" class="btn2_letter4" style="left:85px; top:4px; width:64px; height:19px; ">
  413. <caption/>
  414. </button>
  415. <button id="button3" class="btn2_letter4" _value="O" style="left:152px; top:4px; width:64px; height:19px; ">
  416. <caption/>
  417. </button>
  418. <button id="button4" class="btn2_letter4" _value="D" style="left:219px; top:4px; width:64px; height:19px; ">
  419. <caption/>
  420. </button>
  421. <button id="button5" class="btn2_letter4" _value="E" style="left:286px; top:4px; width:64px; height:19px; ">
  422. <caption/>
  423. </button>
  424. <button id="button6" class="btn2_letter4" _value="F" style="left:18px; top:26px; width:64px; height:19px; ">
  425. <caption/>
  426. </button>
  427. <button id="button7" class="btn2_letter4" _value="C" style="left:85px; top:25px; width:64px; height:19px; ">
  428. <caption/>
  429. </button>
  430. <button id="button8" class="btn2_letter4" _value="H" style="left:152px; top:26px; width:64px; height:19px; ">
  431. <caption/>
  432. </button>
  433. <button id="button9" class="btn2_letter4" _value="I" style="left:219px; top:26px; width:64px; height:19px; ">
  434. <caption/>
  435. </button>
  436. <button id="button10" class="btn2_letter4" _value="J" style="left:286px; top:26px; width:64px; height:19px; ">
  437. <caption/>
  438. </button>
  439. <button id="button11" class="btn2_letter4" _value="K" style="left:18px; top:48px; width:64px; height:19px; ">
  440. <caption/>
  441. </button>
  442. <button id="button12" class="btn2_letter4" _value="L" style="left:85px; top:48px; width:64px; height:19px; ">
  443. <caption/>
  444. </button>
  445. <button id="button13" class="btn2_letter4" _value="M" style="left:152px; top:48px; width:64px; height:19px; ">
  446. <caption/>
  447. </button>
  448. <button id="button14" class="btn2_letter4" style="left:219px; top:48px; width:64px; height:19px; ">
  449. <caption/>
  450. </button>
  451. <button id="button15" class="btn2_letter4" style="left:286px; top:48px; width:64px; height:19px; ">
  452. <caption/>
  453. </button>
  454. <script type="javascript" ev:event="onclick">
  455. <![CDATA[
  456. /*
  457. var trgObj = document.controls(event.target);
  458. if( trgObj.elementName == "xforms:button" ) {
  459. var buttonObj = trgObj;
  460. var buttonValue = buttonObj.attribute("_value");
  461. if( buttonValue == "01" || buttonValue == "02" || buttonValue == "03") {
  462. fSrchBtnClick();
  463. }
  464. else {
  465. model.setValue( "/root/send/cond1", buttonValue );
  466. model.setValue ( "/root/send/cond2", opener.model.getValue ( "/root/init/prcpdd" ));
  467. model.removeNodeset ( "/root/prcpsrch" );
  468. grd_prcpsrchlist.valueMatrix ( 0, 2 ) = "처방명";
  469. submit("TRMMO02201", false);
  470. // model.setValue( "/root/send/cond9", "1" );
  471. gPRCPFLAG = 1;
  472. if ( buttonValue == "A" )
  473. grd_prcpsrchlist.colWidth(1) = 40;
  474. else
  475. grd_prcpsrchlist.colWidth(1) = 0;
  476. }
  477. if( buttonValue != "01" ){
  478. var leng = model.instances(0).selectNodes ( "/root/main/prcpclscdlist/prcpclscdlist" ).length;
  479. model.removeNodeset ( "/root/prcpsrch" );
  480. datagrid6.visible = true;
  481. trv_prcpclscdlist.rebuild();
  482. if ( 1< leng && leng < 30 ) {
  483. trv_prcpclscdlist.expandDepth = 3;
  484. }
  485. trv_prcpclscdlist.visible = true;
  486. }
  487. }
  488. */
  489. var btnnm = event.target.substring ( 6, 8 );
  490. if ( !isNull (btnnm)) {
  491. var srcnbtnnm = eval ( btnnm ) - 50;
  492. var srcnbtnnm = "button" + srcnbtnnm;
  493. if ( btn_prcpsrch.selected || opener.btn_prcpsrch.selected ) {
  494. //alert("11");
  495. fCallSrchBtn(srcnbtnnm);
  496. } else {
  497. model.setValue ( "/root/init/srchbtn" , srcnbtnnm );
  498. btn_prcpsrch.selected = true;
  499. btn_prcpsrch.dispatch ( "DOMActivate" );
  500. }
  501. }
  502. ]]>
  503. </script>
  504. </group>
  505. <datagrid id="datagrid6" nodeset="/root/grid2" caption="분류명" colsep="^" colwidth="365" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:35px; width:377px; height:70px; text-align:center; ">
  506. <col ref="orderNm"/>
  507. </datagrid>
  508. <treeview id="trv_prcpclscdlist" ref="/root/trv_ref" expanddepth="1" itemsettype="depth" style="left:0px; top:58px; width:376px; height:579px; border-style:solid; ">
  509. <itemset nodeset="/root/main/prcpclscdlist/prcpclscdlist">
  510. <label ref="prcpclsnm"/>
  511. <value ref="path"/>
  512. <depth ref="lvl"/>
  513. </itemset>
  514. <script type="javascript" ev:event="xforms-select">
  515. <![CDATA[
  516. // if (trv_prcpclscdlist.isCell(event.target) == true) {
  517. if (gPRCPFLAG == "5" ) { // 처방검색 구분이 구처방 일 경우
  518. if (fPrcpClassSrchInfo()) {
  519. grd_prcpsrchlist.visible= true;
  520. datagrid6.visible = false;
  521. trv_prcpclscdlist.visible = false;
  522. model.refresh();
  523. }
  524. } else { // 처방창의 검색구분이 구 처방이 아닐 경우
  525. if (fPrcpClsSrchInfo()) {
  526. grd_prcpsrchlist.visible= true;
  527. datagrid6.visible = false;
  528. trv_prcpclscdlist.visible = false;
  529. //btn_genr.visible = false;
  530. //btn_bmt.visible = false;
  531. model.refresh();
  532. }
  533. }
  534. // }
  535. ]]>
  536. </script>
  537. </treeview>
  538. <button id="btn_copy" class="btn5_letter4" style="left:313px; top:7px; width:64px; height:19px; ">
  539. <caption>처방복사</caption>
  540. <script type="javascript" ev:event="DOMActivate">
  541. <![CDATA[
  542. addPrcp ( "child", "/root/prcpsrch/prcplist", "/root/main/prcp", "Y", "status", "I", grd_prcpsrchlist, "N", "00");
  543. ]]>
  544. </script>
  545. </button>
  546. <button id="button101" class="btn2_letter4" style="left:179px; top:7px; width:64px; height:19px; ">
  547. <caption>전체선택</caption>
  548. <script type="javascript" ev:event="DOMActivate">
  549. <![CDATA[
  550. for ( i = 1; i < grd_prcpsrchlist.rows; i++ ) {
  551. model.setValue( "/root/prcpsrch/prcplist[" + i + "]/status" ,"I");
  552. }
  553. model.refresh();
  554. ]]>
  555. </script>
  556. </button>
  557. <button id="button102" class="btn2_letter4" style="left:246px; top:7px; width:64px; height:19px; ">
  558. <caption>선택취소</caption>
  559. <script type="javascript" ev:event="DOMActivate">
  560. <![CDATA[
  561. for ( i = 1; i < grd_prcpsrchlist.rows; i++ ) {
  562. model.setValue( "/root/prcpsrch/prcplist[" + i + "]/status" ,"N");
  563. }
  564. model.refresh();
  565. ]]>
  566. </script>
  567. </button>
  568. <button id="btn_detl" class="btn2_letter2" style="left:317px; top:37px; width:42px; height:19px; ">
  569. <caption>이전</caption>
  570. <script type="javascript" ev:event="onclick">
  571. <![CDATA[
  572. fdetlvw();
  573. ]]>
  574. </script>
  575. </button>
  576. <line id="line1" class="line_1" style="x1:0px; y1:29px; x2:378px; y2:29px; "/>
  577. <!--
  578. <button id="btn_genr" class="btn_sw" visibility="hidden" group="tab" selected="true" style="left:0px; top:7px; width:60px; height:22px; ">
  579. <caption>일반</caption>
  580. <script type="javascript" ev:event="DOMActivate">
  581. <![CDATA[
  582. fReqOrderPrcp("genr");
  583. ]]>
  584. </script>
  585. </button>
  586. <button id="btn_bmt" class="btn_sw" visibility="hidden" group="tab" selected="false" style="left:60px; top:7px; width:60px; height:22px; ">
  587. <caption>BMT</caption>
  588. <script type="javascript" ev:event="DOMActivate">
  589. <![CDATA[
  590. fReqOrderPrcp("bmt");
  591. ]]>
  592. </script>
  593. </button>
  594. -->
  595. </xhtml:body>
  596. </xhtml:html>