123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>상호작용</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <resultDDIMLookup>
- <ddisl/>
- <!--등급-->
- <ddidrug/>
- <!--상호작용약물-->
- <ddides/>
- <!--상호작용약물(fullname)-->
- <ddisldes/>
- <!--등급설명-->
- <ddicodex/>
- <!--상호작용코드-->
- <ddimonox/>
- <!--모노그랩코드-->
- <ddimfgi/>
- <!--참고문헌-제약회사설명서-->
- </resultDDIMLookup>
- <sub>
- <resultDDIMEffectLookup>
- <adiefftxt/>
- <!--약물코덱-->
- </resultDDIMEffectLookup>
- <resultDDIMAGD>
- <ddicodex/>
- <!--상호작용코드-->
- <ddiagsn/>
- <!--상호작용코드약물일련번호-->
- <ddiagd/>
- <!--상호작용코드약물명-->
- </resultDDIMAGD>
- <resultDDIMDRGR>
- <iengnm/>
- <!--영문성분명-->
- <tugyeongnm/>
- <edinm/>
- <!--상품명-->
- </resultDDIMDRGR>
- </sub>
- </list>
- <list2>
- <resultselectedlist>
- <edinm/>
- <engnm/>
- <fdrugcd/>
- </resultselectedlist>
- <sub2>
- <resultDDIMReference>
- <yakpumcd/>
- <!--약품코드1-->
- <ddicodex/>
- <!--약물상호작용코드-->
- <ddisl/>
- <!--약물상호작용등급-->
- <monographid/>
- <!--약물상호작용모노그랩번호-->
- <ddisldes/>
- <!--상호작용설명-->
- <screenmessage/>
- <!--스크린메시지-->
- <ordcd/>
- <!--약품코드2-->
- <fullnm/>
- <ddi_sl/>
- <edi_nma/>
- <iga/>
- <edi_nmb/>
- <igb/>
- <codedescription1/>
- <ddi_sltxt/>
- <ddi_monox/>
- </resultDDIMReference>
- </sub2>
- <searchlist>
- <resultlist>
- <paytype/>
- <hdrugcd/>
- <edicd/>
- <edinm/>
- <kornm/>
- <engnm/>
- <iengnm/>
- <bocheongunit/>
- <hamryang/>
- <jeyaksanm/>
- <yakpumgu/>
- <fdrugcd/>
- <gcnseqno/>
- </resultlist>
- </searchlist>
- </list2>
- <list3>
- <resultDFIMLookup>
- <dname/>
- <!--약물명-->
- <fdsl/>
- <!--등급-->
- <fdsllevel/>
- <!--등급명-->
- <fdsldes/>
- <!--등급설명-->
- <fdmsg1/>
- <!--복용법메시지-->
- <result/>
- <!--결과메시지-->
- <fdcde/>
- <!--dfim코드-->
- </resultDFIMLookup>
- </list3>
- <selecteditem>
- <ddisldes/>
- <ddides/>
- </selecteditem>
- <selecteditem3>
- <dname/>
- <result/>
- <fdmsg1/>
- <fdsllevel/>
- </selecteditem3>
- <selecteddrug>
- <edi_nm/>
- </selecteddrug>
- </main>
- <send>
- <req>
- <pSearchType>01</pSearchType>
- <pScope>02</pScope>
- <pKeyword/>
- <pArrYakpumCd/>
- </req>
- <reqDDIM>
- <pCodeType>14(약물상호작용) or 16(음식물상호작용)</pCodeType>
- <!--상호작용구분(14:약물상호작용or16:음식물상호작용)-->
- <pMonograpCd/>
- <!-- 모노그랩코드 -->
- <pGcnSeqNo/>
- <pDdiCodex/>
- <pScope>02</pScope>
- </reqDDIM>
- </send>
- <init/>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- /*
- 화면을 초기화 합니다.
- 선택된 약품리스트를 불러온다. zcnfGetDurgList();
- 선택된 약품리스트중에 선택되어진 약픔정보를 가져온다.zcnfGetDurgInfo();
- 선택된 약품정보를 가지고 화면에 출력할 상호작용정보를 조회한다.getDetailDrugInfo();
- */
- fInitialize();
- zcnfGetDurgList();
- zcnfGetDurgInfo();
- ipt_pKeyword.attribute("style") = "imemode:inactive";
- var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
- var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
- var selecredRow = model.getValue("/root/main/selectedDrugInfo/pSelectRow");
- getDetailDrugInfo(param1,param2, selecredRow);
- // model.refresh();
- if(selecredRow == ""){
- selecredRow = 1;
- }
- model.setFocus("left_datagrid1");
- left_datagrid1.select(selecredRow,1) = true;
- left_datagrid1.refresh();
-
- ]]>
- </script>
- <submission id="TRZCR00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqDDIM" resultref="/root/main/list/sub"/>
- <submission id="TRZCR00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/list2/searchlist"/>
- <submission id="TRZCR01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqDDIM" resultref="/root/main/list3"/>
- <submission id="TRZCR01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/list2/sub2"/>
- <submission id="TRZCR00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqDDIM" resultref="/root/main/list"/>
- <submission id="TRZCR01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/list2/searchlist/resultlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/navigationweb/js/ZCN001.js"/>
- <script type="javascript">
- <![CDATA[
- /*
- 초기화 작업을 합니다.
- */
- function fInitialize(){
- fInitialize1();
- fInitialize2();
- fInitialize3();
-
- // model.refresh();
- }
- /*
- 약물상호작용 탭 초기화
- */
- function fInitialize1(){
- model.removeNodeset("/root/main/list/resultDDIMLookup");
- model.removeNodeset("/root/main/list/sub/resultDDIMEffectLookup");
- model.removeNodeset("/root/main/list/sub/resultDDIMAGD");
- model.removeNodeset("/root/main/list/sub/resultDDIMDRGR");
- model.removeNodeset("/root/main/selecteditem");
- }
- /*
- 약물상호작용검사탭 초기화
- */
- function fInitialize2(){
- model.removeNodeset("/root/main/selecteditem2");
- model.removeNodeset("/root/main/list2/resultselectedlist");
- model.removeNodeset("/root/main/list2/sub2/resultDDIMReference");
- model.removeNodeset("/root/main/list2/searchlist/resultlist");
- }
- /*
- 음식물 상호작용 탭 초기화
- */
- function fInitialize3(){
- model.removeNodeset("/root/main/list3/resultDFIMLookup");
- model.removeNodeset("/root/main/selecteditem3");
- }
- /*
- model.getValue(); 를 함수로 만들었습니다.
- param1 : node는 grid의 xPath입니다.
- param2 : row는 grid에서 선택한 row값입니다.
- param3 : element는 getvalue할 해당 element 명입니다.
- 해당 getvalue값을 return 해줍니다.
- return 하지 않으면 해당값을 가져올 수 없습니다.
- */
- function fGetValue(node, row, element) {
- var rtnValue = model.getValue(node + "[" + row + "]/" + element);
- return rtnValue;
- }
- /*
- model.reqGetDetailInfo(); 를 함수로 만들었습니다.
- param1 : 선택된 약품 grid에서 선택된 약품코드 입니다.
- 해당 getvalue값을 return 해줍니다.
- return 하지 않으면 해당값을 가져올 수 없습니다.
- */
- function reqGetDetailInfo(param1,param2,param3) {
- //alert("약품코드= "+param1+" GCN_NO = "+param2);
- //각 화면별 개별처리;
- /*
- 1. 선택된 약품 instance setvalue
- --> "/root/main/selecteddrug"
- -->"/root/send/req/pGcnSeqNo"
- 2. 첫번째 탭 클릭 이벤트 강제 발생
- --> 조회 부분은 탭버튼에 기술
- */
-
- model.removeNodeset("/root/main/selecteddrug/edi_nm");
-
- opt_DrugNm.refresh();
-
- model.makeValue("/root/main/selecteddrug/edi_nm", model.getValue("/root/main/list4/resultDrugSearchDetail/edi_nm"));
- model.makeValue("/root/send/reqDDIM/pGcnSeqNo",param2);
-
- if(case3.selected == true){
- fInitialize3();
- model.removeNodeset("/root/main/selecteditem3");
- if(param3 == 0){
- submit("TRZCR01101");
-
- model.makeValue("/root/main/selecteditem3/dname", model.getValue("/root/main/list3/resultDFIMLookup[1]/dname"));
- model.makeValue("/root/main/selecteditem3/fdsllevel", model.getValue("/root/main/list3/resultDFIMLookup[1]/fdsllevel"));
- model.makeValue("/root/main/selecteditem3/result", model.getValue("/root/main/list3/resultDFIMLookup[1]/result"));
- model.makeValue("/root/main/selecteditem3/fdmsg1", model.getValue("/root/main/list3/resultDFIMLookup[1]/fdmsg1"));
- model.makeValue("/root/send/reqDDIM/pMonograpCd",model.getValue("/root/main/list3/resultDFIMLookup[1]/fdcde"));
- }else{
-
- model.makeValue("/root/main/selecteditem3/dname", model.getValue("/root/main/list3/resultDFIMLookup["+param3+"]/dname"));
- model.makeValue("/root/main/selecteditem3/fdsllevel", model.getValue("/root/main/list3/resultDFIMLookup["+param3+"]/fdsllevel"));
- model.makeValue("/root/main/selecteditem3/result", model.getValue("/root/main/list3/resultDFIMLookup["+param3+"]/result"));
- model.makeValue("/root/main/selecteditem3/fdmsg1", model.getValue("/root/main/list3/resultDFIMLookup["+param3+"]/fdmsg1"));
- model.makeValue("/root/send/reqDDIM/pMonograpCd",model.getValue("/root/main/list3/resultDFIMLookup["+param3+"]/fdcde"));
- }
- opt_DFIM_dname.refresh();
- opt_DFIM_fdsllevel.refresh();
- opt_DFIM_result.refresh();
- opt_DFIM_fdmsg1.refresh();
- // model1.refresh();
-
- }else if(case1.selected == true){
- if (param3 ==0){
- fInitialize1();
- param3 = param3+1;
- submit("TRZCR00701");
- grd_resultDDIMLookup.select(1,1) = true;
- grd_resultDDIMLookup.refresh();
- }
- model.removeNodeset("/root/main/selecteditem/ddisldes");
- model.removeNodeset("/root/main/selecteditem/ddides");
-
- opt_ddisl.refresh();
- cap_ddiDesc.refresh();
- model.makeValue("/root/main/selecteditem/ddisldes",model.getValue("/root/main/list/resultDDIMLookup["+param3+"]/ddisldes"));
- model.makeValue("/root/main/selecteditem/ddides",model.getValue("/root/main/list/resultDDIMLookup["+param3+"]/ddides"));
-
- model.makeValue("/root/send/reqDDIM/pDdiCodex",model.getValue("/root/main/list/resultDDIMLookup["+param3+"]/ddicodex"));
-
- //var capValue = model.getValue("/root/main/list4/resultDrugSearchDetail/edi_nm")+"과(와) 위와 같은 상호작용을 일으키는 "+model.getValue("/root/main/list/resultDDIMLookup["+param3+"]/ddidrug")+" 계 약물"
- var capValue = model.getValue("/root/main/list/resultDDIMLookup["+param3+"]/ddidrug")+" 계 약물"
-
- grd_resultDDIMAGD.caption = capValue;
-
- submit("TRZCR00801");
-
- model.makeValue("/root/send/reqDDIM/pMonograpCd",model.getValue("/root/main/list/resultDDIMLookup["+param3+"]/ddimonox"));
- }else if(case2.selected == true){
- }
- }
- // 인자로 넘어온 값을 label 로 같은 아이템의 인덱스를 반환
- function labelToIndex(label, tree)
- {
- for(var i=0; i<tree.length; i++)
- {
- if(tree.item(i).label == label)
- return i;
- }
-
- return -1;
- }
-
- function FirstDIS_Request(){
- model.makeValue("/root/firstDISsend/drugcode",model.getValue("/root/main/selectedDrugInfo/pYakpumCd"));
- if(case1.selected == true){
- model.makeValue("/root/firstDISsend/refno","6"); // 약물상호작용
- model.makeValue("/root/firstDISsend/refcd",model.getValue("/root/send/reqDDIM/pDdiCodex"));
- modal("../../referenceweb/xrw/SPZCR00301_약물상호작용문의", "", "", "", "SPZCR00301","/root/firstDISsend","/root/main/req");
- }else if(case2.selected == true){
- model.makeValue("/root/firstDISsend/refno","6"); // 약물상호작용검사
- modal("../../referenceweb/xrw/SPZCR00301_약물상호작용검사문의", "", "", "", "SPZCR00301","/root/firstDISsend","/root/main/req");
- }else if(case3.selected == true){
-
- var selectedRow= grd_resultDFIMLookup.row;
- model.makeValue("/root/firstDISsend/refcd",model.getValue("/root/send/reqDDIM/pMonograpCd"));
- model.makeValue("/root/firstDISsend/refno","7"); // 음식상호작용
- modal("../../referenceweb/xrw/SPZCR00301_음식상호작용문의", "", "", "", "SPZCR00301","/root/firstDISsend","/root/main/req");
- }
- }
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/navigationweb/js/ZCN001.js"/>
- </xhtml:head>
- <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; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">상호작용</caption>
- <import id="import1" instancetype="merge" src="../../../com/navigationweb/xrw/SMZCN00201_선택약품.xrw" style="left:5px; top:15px; width:360px; height:765px; "/>
- <switch id="switch1" style="left:370px; top:61px; width:831px; height:682px; ">
- <case id="case1" selected="true">
- <caption id="caption3" class="tit_2" style="left:19px; top:20px; width:205px; height:13px; ">선택된 약품</caption>
- <caption id="caption5" class="cell_1" style="left:15px; top:40px; width:132px; height:23px; text-align:center; ">약품명</caption>
- <line id="line3" class="line_1" style="x1:15px; y1:35px; x2:814px; y2:35px; "/>
- <output id="opt_DrugNm" ref="/root/main/selecteddrug/edi_nm" class="output_fix" style="left:150px; top:41px; width:664px; height:19px; "/>
- <button id="btn_modal_DDIMLookup" class="btn2_letter4" style="left:750px; top:67px; width:64px; height:19px; ">
- <caption>등급설명</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- SPZCR00101_등급설명 팝업창을 호출한다. 이때 "/root/send/reqDDIM"의 pCodeType는 '14'이다.
- */
- model.makeValue("/root/send/reqDDIM/pCodeType", '14');
-
- modal("../../referenceweb/xrw/SPZCR00101", "", "", "", "SPZCR00101","/root/send/reqDDIM","/root/send/reqSeverityLevel");
-
- ]]>
- </script>
- </button>
- <caption id="caption4" class="tit_2" style="left:19px; top:72px; width:205px; height:13px; ">약물 상호작용 리스트</caption>
- <line id="line1" class="line_1" style="x1:15px; y1:87px; x2:814px; y2:87px; "/>
- <caption id="cap_ddiDesc" ref="/root/main/selecteditem/ddides" class="tit_2" style="left:19px; top:295px; width:641px; height:13px; ">{약물상호작용 리스트에서 선택된 등급설명}</caption>
- <line id="line2" class="line_1" style="x1:15px; y1:310px; x2:814px; y2:310px; "/>
- <caption id="caption7" class="cell_1" style="left:15px; top:314px; width:132px; height:23px; text-align:center; ">등급</caption>
- <output id="opt_ddisl" ref="/root/main/selecteditem/ddisldes" class="output_fix" style="left:150px; top:316px; width:664px; height:19px; "/>
- <line id="line4" class="line_3" style="x1:15px; y1:389px; x2:814px; y2:389px; "/>
- <caption id="caption8" class="cell_1" style="left:15px; top:338px; width:132px; height:51px; text-align:center; ">임상효과</caption>
- <line id="line5" class="line_2" style="x1:15px; y1:337px; x2:814px; y2:337px; "/>
- <line id="line6" class="line_3" style="x1:15px; y1:62px; x2:814px; y2:62px; "/>
- <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; ">
- <col ref="ddiagd"/>
- </datagrid>
- <button id="btn_modal_ddislmonograp" class="btn2_letter11" style="left:672px; top:290px; width:141px; height:19px; ">
- <caption>상세정보(Monograph)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- SPZCR00201_상호작용상세 팝업창을 호출한다. 이때 "/root/send/reqDDIM"의 pCodeType는 '16'이며 pMonograpCd는 grid에서 선택된 값이다.
- */
- model.makeValue("/root/send/reqDDIM/pCodeType", '14');
-
- modal("../../referenceweb/xrw/SPZCR00201", "", "", "", "SPZCR00201","/root/send/reqDDIM","/root/send/reqDDIM");
-
- ]]>
- </script>
- </button>
- <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; ">
- <col ref="iengnm" style="vertical-align:top; "/>
- <col ref="tugyeongnm" style="vertical-align:top; "/>
- <col ref="edinm"/>
- </datagrid>
- <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; ">
- <col ref="adiefftxt"/>
- </datagrid>
- <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; ">
- <choices>
- <item>
- <label>원내의약품</label>
- <value>01</value>
- </item>
- <item>
- <label>전체의약품</label>
- <value>02</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- submit("TRZCR00801");
- ]]>
- </script>
- </select1>
- <caption id="caption20" class="search_name" style="left:530px; top:400px; width:86px; height:17px; ">조회범위 :</caption>
- <button id="button1" class="btn2_letter8" style="left:640px; top:67px; width:108px; height:19px; ">
- <caption>성분군리스트보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- SPZCR00101_등급설명 팝업창을 호출한다. 이때 "/root/send/reqDDIM"의 pCodeType는 '14'이다.
- */
-
- modal("../../referenceweb/xrw/SPZCR00801_상호작용성분군리스트.xrw", "", "", "", "SPZCR00108","/root/main/list/sub","/root/main/list/sub");
-
- ]]>
- </script>
- </button>
- <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; ">
- <col ref="ddisl" style="font-weight:bold; color:#000000; text-align:center; "/>
- <col ref="ddidrug"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (isDataCell() == false) {
- return;
- }
- var rowcnt = grd_resultDDIMLookup.row;
-
- if (rowcnt >0 ) {
- model.makeValue("/root/send/reqDDIM/pMonograpCd",model.getValue("/root/main/list/resultDDIMLookup["+rowcnt+"]/ddimonox"));
- var param1 = "";
- var param2 = "";
- reqGetDetailInfo(param1,param2,rowcnt);
- }
-
- /*
- 1, 약물상호작용 리스트 grid에서 pddiCodex 값을 구한후 "/root/send/reqDDIM/pMonograpCd"에 set 한다.
- 선택된 "/root/main/list/resultDDIMLookup/ddimonox"을 --> "/root/send/reqDDIM/pMonograpCd" 으로
- 2. 약물상호작용 리스트 grid에서 선택된 row를 기준으로 "/root/main/selecteditem" 에 set 한다.
- 3. 임상효과 리스트 조회 TRZCR00801 submit 한다. fSearchClick("TRZCR01101", grd_resultDDIMEffectLookup, "/root/main/list/resultDDIMEffectLookup");
- 4. 성분리스트 조회 TRZCR00901 submit 한다. fSearchClick("TRZCR00901", grd_DDIMEffectLookup, "/root/main/list/resultDDIMAGD");
- 5. 약품 리스트 조회 TRZCR01001 submit 한다. fSearchClick("TRZCR01001", grd_resultDDIMDRGR, "/root/main/list/resultDDIMDRGR");
- --> 필요한 경우 3,4,5항의 submit을 병합하여 처리한다(web, app 수정되어야 함)
- grd_resultDDIMAGD
- */
-
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case2">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:19px; top:20px; width:206px; height:225px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption11" class="search_name" style="left:30px; top:26px; width:86px; height:17px; ">조회구분</caption>
- <caption id="caption2" class="search_name" style="left:30px; top:165px; width:99px; height:17px; ">검색어</caption>
- <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; ">
- <choices>
- <item>
- <label>영문상품명</label>
- <value>01</value>
- </item>
- <item>
- <label>영문성분명</label>
- <value>02</value>
- </item>
- <item>
- <label>한글상품명</label>
- <value>03</value>
- </item>
- <item>
- <label>제조회사명</label>
- <value>04</value>
- </item>
- <item>
- <label>CMC약품코드</label>
- <value>05</value>
- </item>
- <item>
- <label>EDI코드</label>
- <value>06</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(rdo_pSearchType.value=="01"||rdo_pSearchType.value=="02"||rdo_pSearchType.value=="05"||rdo_pSearchType.value=="06"){
- ipt_pKeyword.attribute("style") = "imemode:inactive";
- }
- else
- {
- ipt_pKeyword.attribute("style") = "imemode:hangul";
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_pKeyword" ref="/root/send/req/pKeyword" class="input_search" style="left:31px; top:190px; width:185px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keycode == 13)
- {
- ipt_pKeyword.value = ipt_pKeyword.currentText;
- model.removeNodeset("/root/main/list2/searchlist/resultlist");
- submit("TRZCR00901");
- datagrid3.refresh();
- }
- ]]>
- </script>
- </input>
- <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; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removeNodeset("/root/main/list2/searchlist/resultlist");
- submit("TRZCR00901");
- datagrid3.refresh();
- ]]>
- </script>
- </button>
- <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; ">
- <col ref="edinm"/>
- <col ref="engnm"/>
- <col ref="iengnm"/>
- <col ref="hamryang"/>
- <col ref="jeyaksanm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- /*
- 1, 검색약품 목록에서 선택된 row를 "/root/main/list2/resultselectedlist" 에 추가한다.
- 2. 검사약물내역이 2건이상인 경우 약물상호작용 검토결과를 조회한다.
- submission ID : TRZCR01201
- */
- if (isDataCell() == false) {
- return;
- }
- var selectedrow = datagrid3.row;
- if(0 == selectedrow){return;}
-
- if('-1' != datagrid4.findRow(model.getValue("/root/main/list2/searchlist/resultlist" + "[" + selectedrow + "]/" + "fdrugcd"), 0, 3, false, true)){
- return;
- }
- datagrid4.addRow();
-
- var rowcnt = datagrid4.rows-1;
-
- model.makeNode("root/main/list2/resultselectedlist/edinm");
- model.makeValue("root/main/list2/resultselectedlist["+rowcnt+"]/edinm", model.getValue("/root/main/list2/searchlist/resultlist" + "[" + selectedrow + "]/" + "edinm"));
- model.makeNode("root/main/list2/resultselectedlist/engnm");
- model.makeValue("root/main/list2/resultselectedlist["+rowcnt+"]/engnm", model.getValue("/root/main/list2/searchlist/resultlist" + "[" + selectedrow + "]/" + "engnm"));
- model.makeNode("root/main/list2/resultselectedlist/fdrugcd");
- model.makeValue("root/main/list2/resultselectedlist["+rowcnt+"]/fdrugcd", model.getValue("/root/main/list2/searchlist/resultlist" + "[" + selectedrow + "]/" + "fdrugcd"));
- if(rowcnt >= 2)
- {
- var arrfdrugcd ="";
- for (i = 1; i <= rowcnt; i++)
- {
- if (i == rowcnt){
- arrfdrugcd = arrfdrugcd + model.getValue("/root/main/list2/resultselectedlist" + "[" + i + "]/" + "fdrugcd");
- }else{
- arrfdrugcd = arrfdrugcd + model.getValue("/root/main/list2/resultselectedlist" + "[" + i + "]/" + "fdrugcd")+"|" ;
- }
- }
- model.makeValue("root/send/req/pArrYakpumCd", arrfdrugcd);
- //model.makeValue("root/send/req/pArrYakpumCd","SIMV040TAB0218|ITCZ100CAP0172|ATVT011TAB0185");
- submit("TRZCR01001");
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="search_name" style="left:240px; top:21px; width:111px; height:17px; ">검색약품목록</caption>
- <button id="btn_delete_rowall" class="btn2_letter4" style="left:751px; top:250px; width:64px; height:19px; ">
- <caption>전체삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- 검사약물내역 리스트를 모두 삭제한다.
- */
- model.removeNodeset("/root/main/list2/resultselectedlist");
- model.removeNodeset("/root/main/list2/sub2/resultDDIMReference");
- datagrid4.refresh();
- datagrid5.refresh();
- ]]>
- </script>
- </button>
- <line id="line7" class="line_1" style="x1:15px; y1:270px; x2:814px; y2:270px; "/>
- <caption id="caption9" class="tit_2" style="left:19px; top:255px; width:320px; height:13px; ">검사약물내역</caption>
- <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; ">
- <col ref="edinm"/>
- <col ref="engnm"/>
- <col ref="fdrugcd" visibility="hidden"/>
- </datagrid>
- <caption id="caption10" class="tit_2" style="left:19px; top:465px; width:320px; height:13px; ">검토결과</caption>
- <line id="line8" class="line_1" style="x1:15px; y1:480px; x2:814px; y2:480px; "/>
- <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; ">
- <col autonext="true" ref="fullnm"/>
- <col ref="codedescription1"/>
- <col ref="ddi_sltxt"/>
- <col type="inputbutton" style="width:1; "/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var rowcnt = datagrid5.row;
-
- if (rowcnt >0 ) {
- var ddi_monox = model.getValue("/root/main/list2/sub2/resultDDIMReference["+rowcnt+"]/ddi_monox")
- if(ddi_monox == 'XXX'){
- alert("상세정보가 없습니다...!");
- }else{
- model.makeValue("/root/send/reqDDIM/pMonograpCd",ddi_monox);
- model.makeValue("/root/send/reqDDIM/pCodeType", '14');
-
- modal("../../referenceweb/xrw/SPZCR00201", "", "", "", "SPZCR00201","/root/send/reqDDIM","/root/send/reqDDIM");
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_delete_row" class="btn2_letter3" style="left:696px; top:250px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- 선택된 검사약물 내역 row를 삭제한다.
- */
- var rowcnt = datagrid4.row;
- model.removeNode ("/root/main/list2/resultselectedlist["+rowcnt+"]");
- model.removeNodeset("/root/main/list2/sub2/resultDDIMReference");
- datagrid4.refresh();
- datagrid5.refresh();
-
- var rowcnt = datagrid4.rows-1;
- if(rowcnt >= 2)
- {
- var arrfdrugcd ="";
- for (i = 1; i <= rowcnt; i++)
- {
- if (i == rowcnt){
- arrfdrugcd = arrfdrugcd + model.getValue("/root/main/list2/resultselectedlist" + "[" + i + "]/" + "fdrugcd");
- }else{
- arrfdrugcd = arrfdrugcd + model.getValue("/root/main/list2/resultselectedlist" + "[" + i + "]/" + "fdrugcd")+"|" ;
- }
- }
- model.makeValue("root/send/req/pArrYakpumCd", arrfdrugcd);
- submit("TRZCR01001");
- }
- if(rowcnt >= 1){
- datagrid4.select(1,1) = true;
- model.setFocus("datagrid4");
- }
- ]]>
- </script>
- </button>
- <line id="line17" class="line_1" style="x1:240px; y1:40px; x2:809px; y2:40px; "/>
- </case>
- <case id="case3">
- <button id="btn_modal_DFIMLevel" class="btn2_letter4" style="left:750px; top:67px; width:64px; height:19px; ">
- <caption>등급설명</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- SPZCR00101_등급설명 팝업창을 호출한다. 이때 "/root/send/reqDDIM"의 pCodeType는 '16'이다.
- */
- model.makeValue("/root/send/reqDDIM/pCodeType", '16');
-
- modal("../../referenceweb/xrw/SPZCR00101", "", "", "", "SPZCR00101","/root/send/reqDDIM","/root/send/reqSeverityLevel");
- ]]>
- </script>
- </button>
- <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; ">
- <col ref="fdsllevel" style="text-align:center; "/>
- <col ref="dname"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- /*
- 1, 음식상호작용 리스트 grid에서 pddiCodex 값을 구한후 "/root/send/reqDDIM/pMonograpCd"에 set 한다.
- 선택된 "/root/main/list3/resultDFIMLookup/fdcde"을 --> "/root/send/reqDDIM/pMonograpCd" 으로
- 2. 음식상호작용 리스트 grid에서 선택된 row를 기준으로 "/root/main/selecteditem3/" 에 set 한다.
- */
- var rowcnt = datagrid4.rows-1;
- if(rowcnt >= 1){
- var selectedrow = grd_resultDFIMLookup.row;
- reqGetDetailInfo("","",selectedrow)
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption12" class="tit_2" style="left:19px; top:20px; width:205px; height:13px; ">선택된 약품</caption>
- <caption id="caption13" class="tit_2" style="left:19px; top:72px; width:205px; height:13px; ">음식 상호작용 리스트</caption>
- <caption id="caption14" class="cell_1" style="left:15px; top:40px; width:132px; height:23px; text-align:center; ">약품명</caption>
- <line id="line9" class="line_1" style="x1:15px; y1:87px; x2:814px; y2:87px; "/>
- <line id="line10" class="line_1" style="x1:15px; y1:35px; x2:814px; y2:35px; "/>
- <output id="opt_DrugNm3" ref="/root/main/selecteddrug/edi_nm" class="output_fix" style="left:150px; top:41px; width:664px; height:19px; "/>
- <line id="line11" class="line_3" style="x1:15px; y1:62px; x2:814px; y2:62px; "/>
- <output id="opt_DFIM_dname" ref="/root/main/selecteditem3/dname" class="output_fix" style="left:150px; top:281px; width:664px; height:19px; "/>
- <line id="line12" class="line_1" style="x1:15px; y1:275px; x2:814px; y2:275px; "/>
- <line id="line13" class="line_3" style="x1:15px; y1:375px; x2:814px; y2:375px; "/>
- <caption id="caption15" class="tit_2" style="left:19px; top:260px; width:205px; height:13px; ">결과</caption>
- <caption id="caption16" class="cell_1" style="left:15px; top:280px; width:132px; height:23px; text-align:center; ">약물</caption>
- <line id="line14" class="line_2" style="x1:15px; y1:303px; x2:814px; y2:303px; "/>
- <output id="opt_DFIM_fdsllevel" ref="/root/main/selecteditem3/fdsllevel" class="output_fix" style="left:150px; top:306px; width:664px; height:19px; "/>
- <line id="line15" class="line_2" style="x1:15px; y1:327px; x2:814px; y2:327px; "/>
- <caption id="caption17" class="cell_1" style="left:15px; top:304px; width:132px; height:23px; text-align:center; ">중요도</caption>
- <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; "/>
- <line id="line16" class="line_2" style="x1:15px; y1:351px; x2:814px; y2:351px; "/>
- <caption id="caption18" class="cell_1" style="left:15px; top:328px; width:132px; height:23px; text-align:center; ">결과</caption>
- <output id="opt_DFIM_fdmsg1" ref="/root/main/selecteditem3/fdmsg1" class="output_fix" style="left:150px; top:354px; width:664px; height:19px; "/>
- <caption id="caption19" class="cell_1" style="left:15px; top:352px; width:132px; height:23px; text-align:center; ">환자교육</caption>
- <button id="btn_modal_DFIMMonograp" class="btn2_letter11" style="left:674px; top:255px; width:141px; height:19px; ">
- <caption>상세정보(Monograph)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- SPZCR00201_상호작용상세 팝업창을 호출한다. 이때 "/root/send/reqDDIM"의 pCodeType는 '16'이며 pMonograpCd는 grid에서 선택된 값이다.
- */
- model.makeValue("/root/send/reqDDIM/pCodeType", '16');
-
- modal("../../referenceweb/xrw/SPZCR00701", "", "", "", "SPZCR00701","/root/send/reqDDIM","/root/send/reqDDIM");
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <button id="btn_DDIM" class="btn_sw" group="tab" selected="true" style="left:370px; top:40px; width:278px; height:22px; ">
- <caption>약물상호작용</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
- var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
- reqGetDetailInfo(param1,param2,0)
- /*
- 1. 약물 상호작용 리스트 첫번째 row 클릭 coding 할것
- 2. "/root/send/reqDDIM/pCodeType" 을 14로 setValue할것
- */
-
- ]]>
- </script>
- </button>
- <button id="btn_DDIMReference" class="btn_sw" group="tab" style="left:648px; top:40px; width:277px; height:22px; ">
- <caption>약물상호작용 검사</caption>
- <toggle case="case2" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- 1. 약품검색 submission을 이용한다.
- 2. 검색범위는 항상 "02 - 전체의약품임"
- 3. 2. "/root/send/reqDDIM/pCodeType" 을 ""로 setValue할것
- */
- //submit("TRZCN00101");
- fInitialize2();
- datagrid3.refresh();
- datagrid4.refresh();
- datagrid5.refresh();
- reqGetDetailInfo("","",0)
- ]]>
- </script>
- </button>
- <button id="btn_DFIM" class="btn_sw" group="tab" style="left:925px; top:40px; width:276px; height:22px; ">
- <caption>음식상호작용</caption>
- <toggle case="case3" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
- var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
- reqGetDetailInfo(param1,param2,0)
- /*
- 1. submission id : TRZCR01101
- 2. "/root/send/reqDDIM/pCodeType" 을 16으로 setValue할것
- */
- ]]>
- </script>
- </button>
- <import id="import2" src="../../../com/navigationweb/xrw/SPZCN00101_Copyright.xrw" style="left:370px; top:752px; width:833px; height:27px; "/>
- </xhtml:body>
- </xhtml:html>
|