123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>DIF약품검색</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <resultlist>
- <paytype/>
- <hdrugcd/>
- <edicd/>
- <edinm/>
- <kornm/>
- <engnm/>
- <iengnm/>
- <bocheongunit/>
- <hamryang/>
- <jeyaksanm/>
- <yakpumgu/>
- <fdrugcd/>
- <gcnseqno/>
- </resultlist>
- </list>
- <list2>
- <resultlist>
- <paytype/>
- <hdrugcd/>
- <edicd/>
- <edinm/>
- <kornm/>
- <engnm/>
- <iengnm/>
- <bocheongunit/>
- <hamryang/>
- <jeyaksanm/>
- <yakpumgu/>
- <fdrugcd/>
- <gcnseqno/>
- </resultlist>
- </list2>
- <treelist>
- <node/>
- </treelist>
- <treetmp/>
- <list3/>
- </main>
- <send>
- <req>
- <pSearchType>03</pSearchType>
- <pScope>02</pScope>
- <pKeyword/>
- </req>
- <reqClassfication>
- <pSearchType>01</pSearchType>
- <pScope>02</pScope>
- <pKeyword/>
- <pClassification/>
- </reqClassfication>
- </send>
- <init>
- </init>
- <hidden>
- </hidden>
- <temp>
- <receivedata>
- <receiveref/>
- <receivedrugpnm/>
- <receivedrugflag/>
- <receivedrugcom/>
- </receivedata>
- </temp>
- <difParam>
- <pageUrl>SMZCR00101_복약안내.xrw</pageUrl>
- <pYakpumCd>SIMV040TAB0218|ITCZ100CAP0172|ATVT011TAB0185</pYakpumCd>
- </difParam>
- </root>
- </instance>
- <submission id="TRZCN00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/list"/>
- <submission id="TRZCN00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqClassfication" resultref="/root/main/treelist"/>
- <submission id="TRZCN00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqClassfication" resultref="/root/main/list2"/>
- <submission id="TRZCN00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqClassfication" resultref="/root/main/list3"/>
- </model>
- <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"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- /*
- @ 그리드 선택값의 부모창 반영 여부
- - 팝업일 경우 적용여부 판별
- - 팝업이 아닐시 적용여부 N
- */
- if(isPopup()){
- OpenUID = opener.javascript.getScreenID();
- for(var i = 0; i < AceptUID.length; i++){
- if(OpenUID == AceptUID[i]) execYN = "Y";
- }
- }
-
- /*
- 화면을 초기화 합니다.
- 선택된 약품리스트를 불러온다. zcnfGetDurgList();
- 선택된 약품리스트 중에 선택된 값을 가져온다.zcnfGetDurgInfo();
-
- */
- fInitialize();
- zcnfGetDurgList();
- zcnfGetDurgInfo();
- 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>
- <script type="javascript">
- <![CDATA[
-
- /*
- OpenUID - 부모창 UID
- AceptUID - 허용 UID
- execYN - 반영여부
- */
-
- var OpenUID = "";
- var AceptUID = new Array("SPMMD03300","SPADC60900", "SMADC00600");
- var execYN = "N";
-
- /*
- 초기화 작업을 합니다.
- */
- function fInitialize(){
- model.removeNodeset("/root/main/list/resultlist");
- model.removeNodeset("/root/main/list2/resultlist");
- model.removeNodeset("/root/main/selectedlist");
- model.removeNodeset("/root/main/treelist");
- model.removeNodeset("/root/main/treetmp");
- model.removeNodeset("/root/main/detailinfo");
- }
- function fInitialize1(){
- model.removeNodeset("/root/main/list3/resultlist");
- model.removeNodeset("/root/main/list2/resultlist");
- model.makeValue("/root/send/reqClassfication/pKeyword","");
- model.makeValue("/root/send/reqClassfication/pClassification","");
- }
- /*
- 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에서 선택된 약품코드 입니다.
- param2 : 선택된 약품 grid에서 선택된 GCN코드 입니다.
- param3 : 선택된 약품 grid에서 선택된 ROW값 입니다.
- 해당 getvalue값을 return 해줍니다.
- return 하지 않으면 해당값을 가져올 수 없습니다.
- */
- function reqGetDetailInfo(param1,param2,param3) {
- //각 화면별 개별처리; 현페이지는 처리 사항 없음
- }
- // 인자로 넘어온 값을 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/refno","1");
- model.makeValue("/root/firstDISsend/drugcode",model.getValue("/root/main/selectedDrugInfo/pYakpumCd"));
- modal("../../referenceweb/xrw/SPZCR00301_약품검색문의", "", "", "", "SPZCR00301","/root/firstDISsend","/root/main/req");
- }
- /*
- 조회된 그리드의 머지를 처리한다
- */
- function mergecolTab1(){
- grd_resultlist.mergecol(1)=false;
- grd_resultlist.mergecol(2)=false;
- grd_resultlist.mergecol(3)=false;
- grd_resultlist.mergecol(4)=false;
- grd_resultlist.mergecol(5)=false;
- grd_resultlist.mergecol(6)=false;
- grd_resultlist.mergecol(7)=false;
- grd_resultlist.mergecells="byrestriccol";
- grd_resultlist.refresh();
- }
- function mergecolTab2(){
- grd_resultlist2.mergecol(1)=false;
- grd_resultlist2.mergecol(2)=false;
- grd_resultlist2.mergecol(3)=false;
- grd_resultlist2.mergecol(4)=false;
- grd_resultlist2.mergecol(5)=false;
- grd_resultlist2.mergecol(6)=false;
- grd_resultlist2.mergecol(7)=false;
- grd_resultlist2.mergecells="byrestriccol";
- grd_resultlist2.refresh();
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="830" pageheight="660" guideline="1,1194;2,659;2,628;2,655;1,809;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <switch id="switch1" class="sw_no_border" style="left:0px; top:0px; width:810px; height:628px; ">
- <case id="case1">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:1px; top:0px; width:805px; height:85px; background-color:#fffbf2; border-color:#ffd799; "/>
- <datagrid id="grd_resultlist" nodeset="/root/main/list/resultlist" caption="급여구분^CMC약품코드^영문상품명^영문성분명^제조회사^약품구분^약품명^함량^fdrugcd^gcnseqno" colsep="^" colwidth="80, 85, 140, 110, 110, 70, 110, 95, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:1px; top:95px; width:805px; height:532px; ">
- <col ref="paytype" style="vertical-align:top; "/>
- <col ref="hdrugcd"/>
- <col ref="engnm"/>
- <col ref="iengnm"/>
- <col ref="jeyaksanm"/>
- <col ref="yakpumgu"/>
- <col ref="edinm"/>
- <col ref="hamryang"/>
- <col ref="fdrugcd" visibility="hidden"/>
- <col ref="gcnseqno" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- if(!isDataCell()) return;
-
- if(execYN == "N") return;
-
- var receiveref = model.getValue("/root/temp/receivedata/receiveref");
- var receivedrugpnm = model.getValue("/root/temp/receivedata/receivedrugpnm");
- var receivedrugflag = model.getValue("/root/temp/receivedata/receivedrugflag");
- var receivedrugcom = model.getValue("/root/temp/receivedata/receivedrugcom");
-
- if ( checkOpener() ) {
-
- /* @ DUR관련 알러지 인터페이스
- /root/temp/receivedata/receiveref
- /root/temp/receivedata/receivedrugpnm //선택된 약(처방)명
- /root/temp/receivedata/receivedrugflag //선택된 약(처방)의 원내/DIF 구분 (원내-C / DIF-D / 성분군 - O)
- /root/temp/receivedata/receivedrugcom //선택된 약(처방)의 성분코드
- */
- var drugcd = "";
- var drugflag = "";
-
- if(grd_resultlist.valueMatrix(grd_resultlist.row, grd_resultlist.colRef("hdrugcd")) != ""){
- drugflag = "C";
- drugcd = grd_resultlist.valueMatrix(grd_resultlist.row, grd_resultlist.colRef("hdrugcd"));
- }else{
- drugflag = "D";
- drugcd = grd_resultlist.valueMatrix(grd_resultlist.row, grd_resultlist.colRef("fdrugcd"));
- }
-
- opener.model.setValue(receiveref, drugcd);
- opener.model.setValue(receivedrugpnm, grd_resultlist.valueMatrix(grd_resultlist.row, grd_resultlist.colRef("edinm")));
- opener.model.setValue(receivedrugflag, drugflag);
- //opener.model.setValue("/root/temp/receivedata/receivedrugcom", grd_resultlist.valueMatrix(grd_resultlist.row, grd_resultlist.colRef("")));
- opener.model.refresh();
- btn_cls.dispatch("DOMActivate");
-
- } else {
- messageBox("상위화면이 변경되어 데이터를 전달할 수","I004");
- }
-
-
- ]]>
- </script>
- </datagrid>
- <select1 id="rdo_pSearchType" ref="/root/send/req/pSearchType" class="radio_search" visibility="visible" appearance="full" cols="3" itemwidth="100" overflow="visible" style="left:115px; top:40px; width:255px; height:35px; 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>
- </select1>
- <caption id="caption13" class="search_name" style="left:25px; top:40px; width:86px; height:17px; ">조회구분 :</caption>
- <caption id="caption8" class="search_name" style="left:25px; top:10px; width:86px; height:17px; ">조회범위 :</caption>
- <select1 id="rdo_pScope" ref="/root/send/req/pScope" class="radio_search" visibility="visible" appearance="full" cols="2" itemwidth="100" overflow="visible" style="left:115px; top:10px; width:255px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>원내의약품</label>
- <value>01</value>
- </item>
- <item>
- <label>전체의약품</label>
- <value>02</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_pKeyword" ref="/root/send/req/pKeyword" class="input_search" style="left:475px; top:30px; width:245px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keycode == 13)
- {
- ipt_pKeyword.value = ipt_pKeyword.currentText;
- model.removeNodeset("/root/main/list");
- submit("TRZCN00101");
- mergecolTab1();
- }
- ]]>
- </script>
- </input>
- <button id="btn_ClassficationSearch7" class="btn1_letter2" style="left:725px; top:30px; 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/list");
- submit("TRZCN00101");
- mergecolTab1();
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <button id="btn_cls" class="btn4_letter2" style="left:755px; top:635px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </xhtml:body>
- </xhtml:html>
|