SMZCR00301_상호작용.xrw 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816
  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. <list>
  11. <resultDDIMLookup>
  12. <ddisl/>
  13. <!--등급-->
  14. <ddidrug/>
  15. <!--상호작용약물-->
  16. <ddides/>
  17. <!--상호작용약물(fullname)-->
  18. <ddisldes/>
  19. <!--등급설명-->
  20. <ddicodex/>
  21. <!--상호작용코드-->
  22. <ddimonox/>
  23. <!--모노그랩코드-->
  24. <ddimfgi/>
  25. <!--참고문헌-제약회사설명서-->
  26. </resultDDIMLookup>
  27. <sub>
  28. <resultDDIMEffectLookup>
  29. <adiefftxt/>
  30. <!--약물코덱-->
  31. </resultDDIMEffectLookup>
  32. <resultDDIMAGD>
  33. <ddicodex/>
  34. <!--상호작용코드-->
  35. <ddiagsn/>
  36. <!--상호작용코드약물일련번호-->
  37. <ddiagd/>
  38. <!--상호작용코드약물명-->
  39. </resultDDIMAGD>
  40. <resultDDIMDRGR>
  41. <iengnm/>
  42. <!--영문성분명-->
  43. <tugyeongnm/>
  44. <edinm/>
  45. <!--상품명-->
  46. </resultDDIMDRGR>
  47. </sub>
  48. </list>
  49. <list2>
  50. <resultselectedlist>
  51. <edinm/>
  52. <engnm/>
  53. <fdrugcd/>
  54. </resultselectedlist>
  55. <sub2>
  56. <resultDDIMReference>
  57. <yakpumcd/>
  58. <!--약품코드1-->
  59. <ddicodex/>
  60. <!--약물상호작용코드-->
  61. <ddisl/>
  62. <!--약물상호작용등급-->
  63. <monographid/>
  64. <!--약물상호작용모노그랩번호-->
  65. <ddisldes/>
  66. <!--상호작용설명-->
  67. <screenmessage/>
  68. <!--스크린메시지-->
  69. <ordcd/>
  70. <!--약품코드2-->
  71. <fullnm/>
  72. <ddi_sl/>
  73. <edi_nma/>
  74. <iga/>
  75. <edi_nmb/>
  76. <igb/>
  77. <codedescription1/>
  78. <ddi_sltxt/>
  79. <ddi_monox/>
  80. </resultDDIMReference>
  81. </sub2>
  82. <searchlist>
  83. <resultlist>
  84. <paytype/>
  85. <hdrugcd/>
  86. <edicd/>
  87. <edinm/>
  88. <kornm/>
  89. <engnm/>
  90. <iengnm/>
  91. <bocheongunit/>
  92. <hamryang/>
  93. <jeyaksanm/>
  94. <yakpumgu/>
  95. <fdrugcd/>
  96. <gcnseqno/>
  97. </resultlist>
  98. </searchlist>
  99. </list2>
  100. <list3>
  101. <resultDFIMLookup>
  102. <dname/>
  103. <!--약물명-->
  104. <fdsl/>
  105. <!--등급-->
  106. <fdsllevel/>
  107. <!--등급명-->
  108. <fdsldes/>
  109. <!--등급설명-->
  110. <fdmsg1/>
  111. <!--복용법메시지-->
  112. <result/>
  113. <!--결과메시지-->
  114. <fdcde/>
  115. <!--dfim코드-->
  116. </resultDFIMLookup>
  117. </list3>
  118. <selecteditem>
  119. <ddisldes/>
  120. <ddides/>
  121. </selecteditem>
  122. <selecteditem3>
  123. <dname/>
  124. <result/>
  125. <fdmsg1/>
  126. <fdsllevel/>
  127. </selecteditem3>
  128. <selecteddrug>
  129. <edi_nm/>
  130. </selecteddrug>
  131. </main>
  132. <send>
  133. <req>
  134. <pSearchType>01</pSearchType>
  135. <pScope>02</pScope>
  136. <pKeyword/>
  137. <pArrYakpumCd/>
  138. </req>
  139. <reqDDIM>
  140. <pCodeType>14(약물상호작용) or 16(음식물상호작용)</pCodeType>
  141. <!--상호작용구분(14:약물상호작용or16:음식물상호작용)-->
  142. <pMonograpCd/>
  143. <!-- 모노그랩코드 -->
  144. <pGcnSeqNo/>
  145. <pDdiCodex/>
  146. <pScope>02</pScope>
  147. </reqDDIM>
  148. </send>
  149. <init/>
  150. <hidden/>
  151. <temp/>
  152. </root>
  153. </instance>
  154. <script type="javascript" ev:event="xforms-ready">
  155. <![CDATA[
  156. /*
  157. 화면을 초기화 합니다.
  158. 선택된 약품리스트를 불러온다. zcnfGetDurgList();
  159. 선택된 약품리스트중에 선택되어진 약픔정보를 가져온다.zcnfGetDurgInfo();
  160. 선택된 약품정보를 가지고 화면에 출력할 상호작용정보를 조회한다.getDetailDrugInfo();
  161. */
  162. fInitialize();
  163. zcnfGetDurgList();
  164. zcnfGetDurgInfo();
  165. ipt_pKeyword.attribute("style") = "imemode:inactive";
  166. var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
  167. var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
  168. var selecredRow = model.getValue("/root/main/selectedDrugInfo/pSelectRow");
  169. getDetailDrugInfo(param1,param2, selecredRow);
  170. // model.refresh();
  171. if(selecredRow == ""){
  172. selecredRow = 1;
  173. }
  174. model.setFocus("left_datagrid1");
  175. left_datagrid1.select(selecredRow,1) = true;
  176. left_datagrid1.refresh();
  177. ]]>
  178. </script>
  179. <submission id="TRZCR00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqDDIM" resultref="/root/main/list/sub"/>
  180. <submission id="TRZCR00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/list2/searchlist"/>
  181. <submission id="TRZCR01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqDDIM" resultref="/root/main/list3"/>
  182. <submission id="TRZCR01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/list2/sub2"/>
  183. <submission id="TRZCR00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqDDIM" resultref="/root/main/list"/>
  184. <submission id="TRZCR01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/list2/searchlist/resultlist"/>
  185. </model>
  186. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  187. <script type="javascript" src="../../../com/navigationweb/js/ZCN001.js"/>
  188. <script type="javascript">
  189. <![CDATA[
  190. /*
  191. 초기화 작업을 합니다.
  192. */
  193. function fInitialize(){
  194. fInitialize1();
  195. fInitialize2();
  196. fInitialize3();
  197. // model.refresh();
  198. }
  199. /*
  200. 약물상호작용 탭 초기화
  201. */
  202. function fInitialize1(){
  203. model.removeNodeset("/root/main/list/resultDDIMLookup");
  204. model.removeNodeset("/root/main/list/sub/resultDDIMEffectLookup");
  205. model.removeNodeset("/root/main/list/sub/resultDDIMAGD");
  206. model.removeNodeset("/root/main/list/sub/resultDDIMDRGR");
  207. model.removeNodeset("/root/main/selecteditem");
  208. }
  209. /*
  210. 약물상호작용검사탭 초기화
  211. */
  212. function fInitialize2(){
  213. model.removeNodeset("/root/main/selecteditem2");
  214. model.removeNodeset("/root/main/list2/resultselectedlist");
  215. model.removeNodeset("/root/main/list2/sub2/resultDDIMReference");
  216. model.removeNodeset("/root/main/list2/searchlist/resultlist");
  217. }
  218. /*
  219. 음식물 상호작용 탭 초기화
  220. */
  221. function fInitialize3(){
  222. model.removeNodeset("/root/main/list3/resultDFIMLookup");
  223. model.removeNodeset("/root/main/selecteditem3");
  224. }
  225. /*
  226. model.getValue(); 를 함수로 만들었습니다.
  227. param1 : node는 grid의 xPath입니다.
  228. param2 : row는 grid에서 선택한 row값입니다.
  229. param3 : element는 getvalue할 해당 element 명입니다.
  230. 해당 getvalue값을 return 해줍니다.
  231. return 하지 않으면 해당값을 가져올 수 없습니다.
  232. */
  233. function fGetValue(node, row, element) {
  234. var rtnValue = model.getValue(node + "[" + row + "]/" + element);
  235. return rtnValue;
  236. }
  237. /*
  238. model.reqGetDetailInfo(); 를 함수로 만들었습니다.
  239. param1 : 선택된 약품 grid에서 선택된 약품코드 입니다.
  240. 해당 getvalue값을 return 해줍니다.
  241. return 하지 않으면 해당값을 가져올 수 없습니다.
  242. */
  243. function reqGetDetailInfo(param1,param2,param3) {
  244. //alert("약품코드= "+param1+" GCN_NO = "+param2);
  245. //각 화면별 개별처리;
  246. /*
  247. 1. 선택된 약품 instance setvalue
  248. --> "/root/main/selecteddrug"
  249. -->"/root/send/req/pGcnSeqNo"
  250. 2. 첫번째 탭 클릭 이벤트 강제 발생
  251. --> 조회 부분은 탭버튼에 기술
  252. */
  253. model.removeNodeset("/root/main/selecteddrug/edi_nm");
  254. opt_DrugNm.refresh();
  255. model.makeValue("/root/main/selecteddrug/edi_nm", model.getValue("/root/main/list4/resultDrugSearchDetail/edi_nm"));
  256. model.makeValue("/root/send/reqDDIM/pGcnSeqNo",param2);
  257. if(case3.selected == true){
  258. fInitialize3();
  259. model.removeNodeset("/root/main/selecteditem3");
  260. if(param3 == 0){
  261. submit("TRZCR01101");
  262. model.makeValue("/root/main/selecteditem3/dname", model.getValue("/root/main/list3/resultDFIMLookup[1]/dname"));
  263. model.makeValue("/root/main/selecteditem3/fdsllevel", model.getValue("/root/main/list3/resultDFIMLookup[1]/fdsllevel"));
  264. model.makeValue("/root/main/selecteditem3/result", model.getValue("/root/main/list3/resultDFIMLookup[1]/result"));
  265. model.makeValue("/root/main/selecteditem3/fdmsg1", model.getValue("/root/main/list3/resultDFIMLookup[1]/fdmsg1"));
  266. model.makeValue("/root/send/reqDDIM/pMonograpCd",model.getValue("/root/main/list3/resultDFIMLookup[1]/fdcde"));
  267. }else{
  268. model.makeValue("/root/main/selecteditem3/dname", model.getValue("/root/main/list3/resultDFIMLookup["+param3+"]/dname"));
  269. model.makeValue("/root/main/selecteditem3/fdsllevel", model.getValue("/root/main/list3/resultDFIMLookup["+param3+"]/fdsllevel"));
  270. model.makeValue("/root/main/selecteditem3/result", model.getValue("/root/main/list3/resultDFIMLookup["+param3+"]/result"));
  271. model.makeValue("/root/main/selecteditem3/fdmsg1", model.getValue("/root/main/list3/resultDFIMLookup["+param3+"]/fdmsg1"));
  272. model.makeValue("/root/send/reqDDIM/pMonograpCd",model.getValue("/root/main/list3/resultDFIMLookup["+param3+"]/fdcde"));
  273. }
  274. opt_DFIM_dname.refresh();
  275. opt_DFIM_fdsllevel.refresh();
  276. opt_DFIM_result.refresh();
  277. opt_DFIM_fdmsg1.refresh();
  278. // model1.refresh();
  279. }else if(case1.selected == true){
  280. if (param3 ==0){
  281. fInitialize1();
  282. param3 = param3+1;
  283. submit("TRZCR00701");
  284. grd_resultDDIMLookup.select(1,1) = true;
  285. grd_resultDDIMLookup.refresh();
  286. }
  287. model.removeNodeset("/root/main/selecteditem/ddisldes");
  288. model.removeNodeset("/root/main/selecteditem/ddides");
  289. opt_ddisl.refresh();
  290. cap_ddiDesc.refresh();
  291. model.makeValue("/root/main/selecteditem/ddisldes",model.getValue("/root/main/list/resultDDIMLookup["+param3+"]/ddisldes"));
  292. model.makeValue("/root/main/selecteditem/ddides",model.getValue("/root/main/list/resultDDIMLookup["+param3+"]/ddides"));
  293. model.makeValue("/root/send/reqDDIM/pDdiCodex",model.getValue("/root/main/list/resultDDIMLookup["+param3+"]/ddicodex"));
  294. //var capValue = model.getValue("/root/main/list4/resultDrugSearchDetail/edi_nm")+"과(와) 위와 같은 상호작용을 일으키는 "+model.getValue("/root/main/list/resultDDIMLookup["+param3+"]/ddidrug")+" 계 약물"
  295. var capValue = model.getValue("/root/main/list/resultDDIMLookup["+param3+"]/ddidrug")+" 계 약물"
  296. grd_resultDDIMAGD.caption = capValue;
  297. submit("TRZCR00801");
  298. model.makeValue("/root/send/reqDDIM/pMonograpCd",model.getValue("/root/main/list/resultDDIMLookup["+param3+"]/ddimonox"));
  299. }else if(case2.selected == true){
  300. }
  301. }
  302. // 인자로 넘어온 값을 label 로 같은 아이템의 인덱스를 반환
  303. function labelToIndex(label, tree)
  304. {
  305. for(var i=0; i<tree.length; i++)
  306. {
  307. if(tree.item(i).label == label)
  308. return i;
  309. }
  310. return -1;
  311. }
  312. function FirstDIS_Request(){
  313. model.makeValue("/root/firstDISsend/drugcode",model.getValue("/root/main/selectedDrugInfo/pYakpumCd"));
  314. if(case1.selected == true){
  315. model.makeValue("/root/firstDISsend/refno","6"); // 약물상호작용
  316. model.makeValue("/root/firstDISsend/refcd",model.getValue("/root/send/reqDDIM/pDdiCodex"));
  317. modal("../../referenceweb/xrw/SPZCR00301_약물상호작용문의", "", "", "", "SPZCR00301","/root/firstDISsend","/root/main/req");
  318. }else if(case2.selected == true){
  319. model.makeValue("/root/firstDISsend/refno","6"); // 약물상호작용검사
  320. modal("../../referenceweb/xrw/SPZCR00301_약물상호작용검사문의", "", "", "", "SPZCR00301","/root/firstDISsend","/root/main/req");
  321. }else if(case3.selected == true){
  322. var selectedRow= grd_resultDFIMLookup.row;
  323. model.makeValue("/root/firstDISsend/refcd",model.getValue("/root/send/reqDDIM/pMonograpCd"));
  324. model.makeValue("/root/firstDISsend/refno","7"); // 음식상호작용
  325. modal("../../referenceweb/xrw/SPZCR00301_음식상호작용문의", "", "", "", "SPZCR00301","/root/firstDISsend","/root/main/req");
  326. }
  327. }
  328. ]]>
  329. </script>
  330. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  331. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  332. <script type="javascript" src="../../../com/navigationweb/js/ZCN001.js"/>
  333. </xhtml:head>
  334. <xhtml:body pagewidth="1280" pageheight="990" guideline="2,307;1,1199;2,744;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  335. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">상호작용</caption>
  336. <import id="import1" instancetype="merge" src="../../../com/navigationweb/xrw/SMZCN00201_선택약품.xrw" style="left:5px; top:15px; width:360px; height:765px; "/>
  337. <switch id="switch1" style="left:370px; top:61px; width:831px; height:682px; ">
  338. <case id="case1" selected="true">
  339. <caption id="caption3" class="tit_2" style="left:19px; top:20px; width:205px; height:13px; ">선택된 약품</caption>
  340. <caption id="caption5" class="cell_1" style="left:15px; top:40px; width:132px; height:23px; text-align:center; ">약품명</caption>
  341. <line id="line3" class="line_1" style="x1:15px; y1:35px; x2:814px; y2:35px; "/>
  342. <output id="opt_DrugNm" ref="/root/main/selecteddrug/edi_nm" class="output_fix" style="left:150px; top:41px; width:664px; height:19px; "/>
  343. <button id="btn_modal_DDIMLookup" class="btn2_letter4" style="left:750px; top:67px; width:64px; height:19px; ">
  344. <caption>등급설명</caption>
  345. <script type="javascript" ev:event="DOMActivate">
  346. <![CDATA[
  347. /*
  348. SPZCR00101_등급설명 팝업창을 호출한다. 이때 "/root/send/reqDDIM"의 pCodeType는 '14'이다.
  349. */
  350. model.makeValue("/root/send/reqDDIM/pCodeType", '14');
  351. modal("../../referenceweb/xrw/SPZCR00101", "", "", "", "SPZCR00101","/root/send/reqDDIM","/root/send/reqSeverityLevel");
  352. ]]>
  353. </script>
  354. </button>
  355. <caption id="caption4" class="tit_2" style="left:19px; top:72px; width:205px; height:13px; ">약물 상호작용 리스트</caption>
  356. <line id="line1" class="line_1" style="x1:15px; y1:87px; x2:814px; y2:87px; "/>
  357. <caption id="cap_ddiDesc" ref="/root/main/selecteditem/ddides" class="tit_2" style="left:19px; top:295px; width:641px; height:13px; ">{약물상호작용 리스트에서 선택된 등급설명}</caption>
  358. <line id="line2" class="line_1" style="x1:15px; y1:310px; x2:814px; y2:310px; "/>
  359. <caption id="caption7" class="cell_1" style="left:15px; top:314px; width:132px; height:23px; text-align:center; ">등급</caption>
  360. <output id="opt_ddisl" ref="/root/main/selecteditem/ddisldes" class="output_fix" style="left:150px; top:316px; width:664px; height:19px; "/>
  361. <line id="line4" class="line_3" style="x1:15px; y1:389px; x2:814px; y2:389px; "/>
  362. <caption id="caption8" class="cell_1" style="left:15px; top:338px; width:132px; height:51px; text-align:center; ">임상효과</caption>
  363. <line id="line5" class="line_2" style="x1:15px; y1:337px; x2:814px; y2:337px; "/>
  364. <line id="line6" class="line_3" style="x1:15px; y1:62px; x2:814px; y2:62px; "/>
  365. <datagrid id="grd_resultDDIMAGD" nodeset="/root/main/list/sub/resultDDIMAGD" visibility="hidden" colsep="^" colwidth="290" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:503px; top:91px; width:312px; height:194px; ">
  366. <col ref="ddiagd"/>
  367. </datagrid>
  368. <button id="btn_modal_ddislmonograp" class="btn2_letter11" style="left:672px; top:290px; width:141px; height:19px; ">
  369. <caption>상세정보(Monograph)</caption>
  370. <script type="javascript" ev:event="DOMActivate">
  371. <![CDATA[
  372. /*
  373. SPZCR00201_상호작용상세 팝업창을 호출한다. 이때 "/root/send/reqDDIM"의 pCodeType는 '16'이며 pMonograpCd는 grid에서 선택된 값이다.
  374. */
  375. model.makeValue("/root/send/reqDDIM/pCodeType", '14');
  376. modal("../../referenceweb/xrw/SPZCR00201", "", "", "", "SPZCR00201","/root/send/reqDDIM","/root/send/reqDDIM");
  377. ]]>
  378. </script>
  379. </button>
  380. <datagrid id="grd_resultDDIMDRGR" nodeset="/root/main/list/sub/resultDDIMDRGR" autoresize="true" caption="성분명^투여경로^상품명" colsep="^" colwidth="236, 64, 495" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:15px; top:420px; width:799px; height:250px; ">
  381. <col ref="iengnm" style="vertical-align:top; "/>
  382. <col ref="tugyeongnm" style="vertical-align:top; "/>
  383. <col ref="edinm"/>
  384. </datagrid>
  385. <datagrid id="grd_resultDDIMEffectLookup" nodeset="/root/main/list/sub/resultDDIMEffectLookup" colsep="^" colwidth="660" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:150px; top:340px; width:664px; height:48px; ">
  386. <col ref="adiefftxt"/>
  387. </datagrid>
  388. <select1 id="rdo_pScope" ref="/root/send/reqDDIM/pScope" class="radio_search" visibility="visible" appearance="full" cols="2" itemwidth="100" overflow="visible" style="left:620px; top:400px; width:165px; height:20px; border-style:none; ">
  389. <choices>
  390. <item>
  391. <label>원내의약품</label>
  392. <value>01</value>
  393. </item>
  394. <item>
  395. <label>전체의약품</label>
  396. <value>02</value>
  397. </item>
  398. </choices>
  399. <script type="javascript" ev:event="onclick">
  400. <![CDATA[
  401. submit("TRZCR00801");
  402. ]]>
  403. </script>
  404. </select1>
  405. <caption id="caption20" class="search_name" style="left:530px; top:400px; width:86px; height:17px; ">조회범위 :</caption>
  406. <button id="button1" class="btn2_letter8" style="left:640px; top:67px; width:108px; height:19px; ">
  407. <caption>성분군리스트보기</caption>
  408. <script type="javascript" ev:event="DOMActivate">
  409. <![CDATA[
  410. /*
  411. SPZCR00101_등급설명 팝업창을 호출한다. 이때 "/root/send/reqDDIM"의 pCodeType는 '14'이다.
  412. */
  413. modal("../../referenceweb/xrw/SPZCR00801_상호작용성분군리스트.xrw", "", "", "", "SPZCR00108","/root/main/list/sub","/root/main/list/sub");
  414. ]]>
  415. </script>
  416. </button>
  417. <datagrid id="grd_resultDDIMLookup" nodeset="/root/main/list/resultDDIMLookup" caption="등급^상호작용약물" colsep="^" colwidth="45, 722" dataheight="25" ellipsis="true" explorerbar="sort" extendlastcol="scroll" rowheader="select" rowheight="25" rowsep="|" style="left:15px; top:91px; width:800px; height:195px; ">
  418. <col ref="ddisl" style="font-weight:bold; color:#000000; text-align:center; "/>
  419. <col ref="ddidrug"/>
  420. <script type="javascript" ev:event="onclick">
  421. <![CDATA[
  422. if (isDataCell() == false) {
  423. return;
  424. }
  425. var rowcnt = grd_resultDDIMLookup.row;
  426. if (rowcnt >0 ) {
  427. model.makeValue("/root/send/reqDDIM/pMonograpCd",model.getValue("/root/main/list/resultDDIMLookup["+rowcnt+"]/ddimonox"));
  428. var param1 = "";
  429. var param2 = "";
  430. reqGetDetailInfo(param1,param2,rowcnt);
  431. }
  432. /*
  433. 1, 약물상호작용 리스트 grid에서 pddiCodex 값을 구한후 "/root/send/reqDDIM/pMonograpCd"에 set 한다.
  434. 선택된 "/root/main/list/resultDDIMLookup/ddimonox"을 --> "/root/send/reqDDIM/pMonograpCd" 으로
  435. 2. 약물상호작용 리스트 grid에서 선택된 row를 기준으로 "/root/main/selecteditem" 에 set 한다.
  436. 3. 임상효과 리스트 조회 TRZCR00801 submit 한다. fSearchClick("TRZCR01101", grd_resultDDIMEffectLookup, "/root/main/list/resultDDIMEffectLookup");
  437. 4. 성분리스트 조회 TRZCR00901 submit 한다. fSearchClick("TRZCR00901", grd_DDIMEffectLookup, "/root/main/list/resultDDIMAGD");
  438. 5. 약품 리스트 조회 TRZCR01001 submit 한다. fSearchClick("TRZCR01001", grd_resultDDIMDRGR, "/root/main/list/resultDDIMDRGR");
  439. --> 필요한 경우 3,4,5항의 submit을 병합하여 처리한다(web, app 수정되어야 함)
  440. grd_resultDDIMAGD
  441. */
  442. ]]>
  443. </script>
  444. </datagrid>
  445. </case>
  446. <case id="case2">
  447. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:19px; top:20px; width:206px; height:225px; background-color:#fffbf2; border-color:#ffd799; "/>
  448. <caption id="caption11" class="search_name" style="left:30px; top:26px; width:86px; height:17px; ">조회구분</caption>
  449. <caption id="caption2" class="search_name" style="left:30px; top:165px; width:99px; height:17px; ">검색어</caption>
  450. <select1 id="rdo_pSearchType" ref="/root/send/req/pSearchType" class="radio_search" visibility="visible" appearance="full" cols="1" itemwidth="100" overflow="visible" style="left:51px; top:50px; width:99px; height:105px; border-style:none; ">
  451. <choices>
  452. <item>
  453. <label>영문상품명</label>
  454. <value>01</value>
  455. </item>
  456. <item>
  457. <label>영문성분명</label>
  458. <value>02</value>
  459. </item>
  460. <item>
  461. <label>한글상품명</label>
  462. <value>03</value>
  463. </item>
  464. <item>
  465. <label>제조회사명</label>
  466. <value>04</value>
  467. </item>
  468. <item>
  469. <label>CMC약품코드</label>
  470. <value>05</value>
  471. </item>
  472. <item>
  473. <label>EDI코드</label>
  474. <value>06</value>
  475. </item>
  476. </choices>
  477. <script type="javascript" ev:event="onclick">
  478. <![CDATA[
  479. if(rdo_pSearchType.value=="01"||rdo_pSearchType.value=="02"||rdo_pSearchType.value=="05"||rdo_pSearchType.value=="06"){
  480. ipt_pKeyword.attribute("style") = "imemode:inactive";
  481. }
  482. else
  483. {
  484. ipt_pKeyword.attribute("style") = "imemode:hangul";
  485. }
  486. ]]>
  487. </script>
  488. </select1>
  489. <input id="ipt_pKeyword" ref="/root/send/req/pKeyword" class="input_search" style="left:31px; top:190px; width:185px; height:19px; ">
  490. <script type="javascript" ev:event="onkeypress">
  491. <![CDATA[
  492. if (event.keycode == 13)
  493. {
  494. ipt_pKeyword.value = ipt_pKeyword.currentText;
  495. model.removeNodeset("/root/main/list2/searchlist/resultlist");
  496. submit("TRZCR00901");
  497. datagrid3.refresh();
  498. }
  499. ]]>
  500. </script>
  501. </input>
  502. <button id="btn_Search_Drug" class="btn1_letter2" style="left:160px; top:165px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  503. <caption>조회</caption>
  504. <script type="javascript" ev:event="onclick">
  505. <![CDATA[
  506. model.removeNodeset("/root/main/list2/searchlist/resultlist");
  507. submit("TRZCR00901");
  508. datagrid3.refresh();
  509. ]]>
  510. </script>
  511. </button>
  512. <datagrid id="datagrid3" nodeset="/root/main/list2/searchlist/resultlist" caption="약품명^영문상품명^영문성분명^함량^제조회사" colsep="^" colwidth="142, 130, 119, 95, 80" dataheight="25" ellipsis="true" extendlastcol="scroll" rowheight="25" rowsep="|" style="left:240px; top:45px; width:570px; height:195px; ">
  513. <col ref="edinm"/>
  514. <col ref="engnm"/>
  515. <col ref="iengnm"/>
  516. <col ref="hamryang"/>
  517. <col ref="jeyaksanm"/>
  518. <script type="javascript" ev:event="ondblclick">
  519. <![CDATA[
  520. /*
  521. 1, 검색약품 목록에서 선택된 row를 "/root/main/list2/resultselectedlist" 에 추가한다.
  522. 2. 검사약물내역이 2건이상인 경우 약물상호작용 검토결과를 조회한다.
  523. submission ID : TRZCR01201
  524. */
  525. if (isDataCell() == false) {
  526. return;
  527. }
  528. var selectedrow = datagrid3.row;
  529. if(0 == selectedrow){return;}
  530. if('-1' != datagrid4.findRow(model.getValue("/root/main/list2/searchlist/resultlist" + "[" + selectedrow + "]/" + "fdrugcd"), 0, 3, false, true)){
  531. return;
  532. }
  533. datagrid4.addRow();
  534. var rowcnt = datagrid4.rows-1;
  535. model.makeNode("root/main/list2/resultselectedlist/edinm");
  536. model.makeValue("root/main/list2/resultselectedlist["+rowcnt+"]/edinm", model.getValue("/root/main/list2/searchlist/resultlist" + "[" + selectedrow + "]/" + "edinm"));
  537. model.makeNode("root/main/list2/resultselectedlist/engnm");
  538. model.makeValue("root/main/list2/resultselectedlist["+rowcnt+"]/engnm", model.getValue("/root/main/list2/searchlist/resultlist" + "[" + selectedrow + "]/" + "engnm"));
  539. model.makeNode("root/main/list2/resultselectedlist/fdrugcd");
  540. model.makeValue("root/main/list2/resultselectedlist["+rowcnt+"]/fdrugcd", model.getValue("/root/main/list2/searchlist/resultlist" + "[" + selectedrow + "]/" + "fdrugcd"));
  541. if(rowcnt >= 2)
  542. {
  543. var arrfdrugcd ="";
  544. for (i = 1; i <= rowcnt; i++)
  545. {
  546. if (i == rowcnt){
  547. arrfdrugcd = arrfdrugcd + model.getValue("/root/main/list2/resultselectedlist" + "[" + i + "]/" + "fdrugcd");
  548. }else{
  549. arrfdrugcd = arrfdrugcd + model.getValue("/root/main/list2/resultselectedlist" + "[" + i + "]/" + "fdrugcd")+"|" ;
  550. }
  551. }
  552. model.makeValue("root/send/req/pArrYakpumCd", arrfdrugcd);
  553. //model.makeValue("root/send/req/pArrYakpumCd","SIMV040TAB0218|ITCZ100CAP0172|ATVT011TAB0185");
  554. submit("TRZCR01001");
  555. }
  556. ]]>
  557. </script>
  558. </datagrid>
  559. <caption id="caption1" class="search_name" style="left:240px; top:21px; width:111px; height:17px; ">검색약품목록</caption>
  560. <button id="btn_delete_rowall" class="btn2_letter4" style="left:751px; top:250px; width:64px; height:19px; ">
  561. <caption>전체삭제</caption>
  562. <script type="javascript" ev:event="DOMActivate">
  563. <![CDATA[
  564. /*
  565. 검사약물내역 리스트를 모두 삭제한다.
  566. */
  567. model.removeNodeset("/root/main/list2/resultselectedlist");
  568. model.removeNodeset("/root/main/list2/sub2/resultDDIMReference");
  569. datagrid4.refresh();
  570. datagrid5.refresh();
  571. ]]>
  572. </script>
  573. </button>
  574. <line id="line7" class="line_1" style="x1:15px; y1:270px; x2:814px; y2:270px; "/>
  575. <caption id="caption9" class="tit_2" style="left:19px; top:255px; width:320px; height:13px; ">검사약물내역</caption>
  576. <datagrid id="datagrid4" nodeset="/root/main/list2/resultselectedlist" caption="약품명^영문상품명" colsep="^" colwidth="398, 357, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:15px; top:275px; width:800px; height:180px; ">
  577. <col ref="edinm"/>
  578. <col ref="engnm"/>
  579. <col ref="fdrugcd" visibility="hidden"/>
  580. </datagrid>
  581. <caption id="caption10" class="tit_2" style="left:19px; top:465px; width:320px; height:13px; ">검토결과</caption>
  582. <line id="line8" class="line_1" style="x1:15px; y1:480px; x2:814px; y2:480px; "/>
  583. <datagrid id="datagrid5" nodeset="/root/main/list2/sub2/resultDDIMReference" autoresize="true" caption="약품명^등급^내용^상세정보" colsep="^" colwidth="307, 126, 287, 51" dataheight="40" ellipsis="false" extendlastcol="scroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:15px; top:485px; width:799px; height:185px; ">
  584. <col autonext="true" ref="fullnm"/>
  585. <col ref="codedescription1"/>
  586. <col ref="ddi_sltxt"/>
  587. <col type="inputbutton" style="width:1; "/>
  588. <script type="javascript" ev:event="onbuttonclick">
  589. <![CDATA[
  590. var rowcnt = datagrid5.row;
  591. if (rowcnt >0 ) {
  592. var ddi_monox = model.getValue("/root/main/list2/sub2/resultDDIMReference["+rowcnt+"]/ddi_monox")
  593. if(ddi_monox == 'XXX'){
  594. alert("상세정보가 없습니다...!");
  595. }else{
  596. model.makeValue("/root/send/reqDDIM/pMonograpCd",ddi_monox);
  597. model.makeValue("/root/send/reqDDIM/pCodeType", '14');
  598. modal("../../referenceweb/xrw/SPZCR00201", "", "", "", "SPZCR00201","/root/send/reqDDIM","/root/send/reqDDIM");
  599. }
  600. }
  601. ]]>
  602. </script>
  603. </datagrid>
  604. <button id="btn_delete_row" class="btn2_letter3" style="left:696px; top:250px; width:53px; height:19px; ">
  605. <caption>행삭제</caption>
  606. <script type="javascript" ev:event="DOMActivate">
  607. <![CDATA[
  608. /*
  609. 선택된 검사약물 내역 row를 삭제한다.
  610. */
  611. var rowcnt = datagrid4.row;
  612. model.removeNode ("/root/main/list2/resultselectedlist["+rowcnt+"]");
  613. model.removeNodeset("/root/main/list2/sub2/resultDDIMReference");
  614. datagrid4.refresh();
  615. datagrid5.refresh();
  616. var rowcnt = datagrid4.rows-1;
  617. if(rowcnt >= 2)
  618. {
  619. var arrfdrugcd ="";
  620. for (i = 1; i <= rowcnt; i++)
  621. {
  622. if (i == rowcnt){
  623. arrfdrugcd = arrfdrugcd + model.getValue("/root/main/list2/resultselectedlist" + "[" + i + "]/" + "fdrugcd");
  624. }else{
  625. arrfdrugcd = arrfdrugcd + model.getValue("/root/main/list2/resultselectedlist" + "[" + i + "]/" + "fdrugcd")+"|" ;
  626. }
  627. }
  628. model.makeValue("root/send/req/pArrYakpumCd", arrfdrugcd);
  629. submit("TRZCR01001");
  630. }
  631. if(rowcnt >= 1){
  632. datagrid4.select(1,1) = true;
  633. model.setFocus("datagrid4");
  634. }
  635. ]]>
  636. </script>
  637. </button>
  638. <line id="line17" class="line_1" style="x1:240px; y1:40px; x2:809px; y2:40px; "/>
  639. </case>
  640. <case id="case3">
  641. <button id="btn_modal_DFIMLevel" class="btn2_letter4" style="left:750px; top:67px; width:64px; height:19px; ">
  642. <caption>등급설명</caption>
  643. <script type="javascript" ev:event="DOMActivate">
  644. <![CDATA[
  645. /*
  646. SPZCR00101_등급설명 팝업창을 호출한다. 이때 "/root/send/reqDDIM"의 pCodeType는 '16'이다.
  647. */
  648. model.makeValue("/root/send/reqDDIM/pCodeType", '16');
  649. modal("../../referenceweb/xrw/SPZCR00101", "", "", "", "SPZCR00101","/root/send/reqDDIM","/root/send/reqSeverityLevel");
  650. ]]>
  651. </script>
  652. </button>
  653. <datagrid id="grd_resultDFIMLookup" nodeset="/root/main/list3/resultDFIMLookup" caption="등급^약물" colsep="^" colwidth="71, 717" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:15px; top:91px; width:799px; height:154px; ">
  654. <col ref="fdsllevel" style="text-align:center; "/>
  655. <col ref="dname"/>
  656. <script type="javascript" ev:event="onclick">
  657. <![CDATA[
  658. /*
  659. 1, 음식상호작용 리스트 grid에서 pddiCodex 값을 구한후 "/root/send/reqDDIM/pMonograpCd"에 set 한다.
  660. 선택된 "/root/main/list3/resultDFIMLookup/fdcde"을 --> "/root/send/reqDDIM/pMonograpCd" 으로
  661. 2. 음식상호작용 리스트 grid에서 선택된 row를 기준으로 "/root/main/selecteditem3/" 에 set 한다.
  662. */
  663. var rowcnt = datagrid4.rows-1;
  664. if(rowcnt >= 1){
  665. var selectedrow = grd_resultDFIMLookup.row;
  666. reqGetDetailInfo("","",selectedrow)
  667. }
  668. ]]>
  669. </script>
  670. </datagrid>
  671. <caption id="caption12" class="tit_2" style="left:19px; top:20px; width:205px; height:13px; ">선택된 약품</caption>
  672. <caption id="caption13" class="tit_2" style="left:19px; top:72px; width:205px; height:13px; ">음식 상호작용 리스트</caption>
  673. <caption id="caption14" class="cell_1" style="left:15px; top:40px; width:132px; height:23px; text-align:center; ">약품명</caption>
  674. <line id="line9" class="line_1" style="x1:15px; y1:87px; x2:814px; y2:87px; "/>
  675. <line id="line10" class="line_1" style="x1:15px; y1:35px; x2:814px; y2:35px; "/>
  676. <output id="opt_DrugNm3" ref="/root/main/selecteddrug/edi_nm" class="output_fix" style="left:150px; top:41px; width:664px; height:19px; "/>
  677. <line id="line11" class="line_3" style="x1:15px; y1:62px; x2:814px; y2:62px; "/>
  678. <output id="opt_DFIM_dname" ref="/root/main/selecteditem3/dname" class="output_fix" style="left:150px; top:281px; width:664px; height:19px; "/>
  679. <line id="line12" class="line_1" style="x1:15px; y1:275px; x2:814px; y2:275px; "/>
  680. <line id="line13" class="line_3" style="x1:15px; y1:375px; x2:814px; y2:375px; "/>
  681. <caption id="caption15" class="tit_2" style="left:19px; top:260px; width:205px; height:13px; ">결과</caption>
  682. <caption id="caption16" class="cell_1" style="left:15px; top:280px; width:132px; height:23px; text-align:center; ">약물</caption>
  683. <line id="line14" class="line_2" style="x1:15px; y1:303px; x2:814px; y2:303px; "/>
  684. <output id="opt_DFIM_fdsllevel" ref="/root/main/selecteditem3/fdsllevel" class="output_fix" style="left:150px; top:306px; width:664px; height:19px; "/>
  685. <line id="line15" class="line_2" style="x1:15px; y1:327px; x2:814px; y2:327px; "/>
  686. <caption id="caption17" class="cell_1" style="left:15px; top:304px; width:132px; height:23px; text-align:center; ">중요도</caption>
  687. <output id="opt_DFIM_result" ref="/root/main/selecteditem3/result" class="output_fix" style="left:150px; top:330px; width:664px; height:19px; font-weight:bold; color:#000000; "/>
  688. <line id="line16" class="line_2" style="x1:15px; y1:351px; x2:814px; y2:351px; "/>
  689. <caption id="caption18" class="cell_1" style="left:15px; top:328px; width:132px; height:23px; text-align:center; ">결과</caption>
  690. <output id="opt_DFIM_fdmsg1" ref="/root/main/selecteditem3/fdmsg1" class="output_fix" style="left:150px; top:354px; width:664px; height:19px; "/>
  691. <caption id="caption19" class="cell_1" style="left:15px; top:352px; width:132px; height:23px; text-align:center; ">환자교육</caption>
  692. <button id="btn_modal_DFIMMonograp" class="btn2_letter11" style="left:674px; top:255px; width:141px; height:19px; ">
  693. <caption>상세정보(Monograph)</caption>
  694. <script type="javascript" ev:event="DOMActivate">
  695. <![CDATA[
  696. /*
  697. SPZCR00201_상호작용상세 팝업창을 호출한다. 이때 "/root/send/reqDDIM"의 pCodeType는 '16'이며 pMonograpCd는 grid에서 선택된 값이다.
  698. */
  699. model.makeValue("/root/send/reqDDIM/pCodeType", '16');
  700. modal("../../referenceweb/xrw/SPZCR00701", "", "", "", "SPZCR00701","/root/send/reqDDIM","/root/send/reqDDIM");
  701. ]]>
  702. </script>
  703. </button>
  704. </case>
  705. </switch>
  706. <button id="btn_DDIM" class="btn_sw" group="tab" selected="true" style="left:370px; top:40px; width:278px; height:22px; ">
  707. <caption>약물상호작용</caption>
  708. <toggle case="case1" ev:event="onclick"/>
  709. <script type="javascript" ev:event="DOMActivate">
  710. <![CDATA[
  711. var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
  712. var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
  713. reqGetDetailInfo(param1,param2,0)
  714. /*
  715. 1. 약물 상호작용 리스트 첫번째 row 클릭 coding 할것
  716. 2. "/root/send/reqDDIM/pCodeType" 을 14로 setValue할것
  717. */
  718. ]]>
  719. </script>
  720. </button>
  721. <button id="btn_DDIMReference" class="btn_sw" group="tab" style="left:648px; top:40px; width:277px; height:22px; ">
  722. <caption>약물상호작용 검사</caption>
  723. <toggle case="case2" ev:event="onclick"/>
  724. <script type="javascript" ev:event="DOMActivate">
  725. <![CDATA[
  726. /*
  727. 1. 약품검색 submission을 이용한다.
  728. 2. 검색범위는 항상 "02 - 전체의약품임"
  729. 3. 2. "/root/send/reqDDIM/pCodeType" 을 ""로 setValue할것
  730. */
  731. //submit("TRZCN00101");
  732. fInitialize2();
  733. datagrid3.refresh();
  734. datagrid4.refresh();
  735. datagrid5.refresh();
  736. reqGetDetailInfo("","",0)
  737. ]]>
  738. </script>
  739. </button>
  740. <button id="btn_DFIM" class="btn_sw" group="tab" style="left:925px; top:40px; width:276px; height:22px; ">
  741. <caption>음식상호작용</caption>
  742. <toggle case="case3" ev:event="onclick"/>
  743. <script type="javascript" ev:event="DOMActivate">
  744. <![CDATA[
  745. var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
  746. var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
  747. reqGetDetailInfo(param1,param2,0)
  748. /*
  749. 1. submission id : TRZCR01101
  750. 2. "/root/send/reqDDIM/pCodeType" 을 16으로 setValue할것
  751. */
  752. ]]>
  753. </script>
  754. </button>
  755. <import id="import2" src="../../../com/navigationweb/xrw/SPZCN00101_Copyright.xrw" style="left:370px; top:752px; width:833px; height:27px; "/>
  756. </xhtml:body>
  757. </xhtml:html>