123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729 |
- <?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>약품검색</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <druglist>
- <item>
- <drugcd/>
- <ordnm/>
- <hngnm/>
- <druginfo/>
- </item>
- </druglist>
- <comlist>
- <item>
- <comcd/>
- <comnm/>
- <comlevel/>
- </item>
- </comlist>
- <efcylist>
- <item>
- <efcycd/>
- <efcynm/>
- <efcylevel/>
- </item>
- </efcylist>
- </main>
- <send>
- <srchcls>1</srchcls>
- <cnfmyn>Y N</cnfmyn>
- <seqflag>1</seqflag>
- <drugkind>N M Y</drugkind>
- <drugkindall>Y</drugkindall>
- <spcldrug/>
- <efcycd>-</efcycd>
- <efcycls/>
- <srchflag>1</srchflag>
- <srchcnts/>
- <srchdrugcd>%</srchdrugcd>
- <srchcomcd/>
- <srchcomnm/>
- <srchefcy/>
- <srchetcflag>A</srchetcflag>
- <ctdrugyn>N</ctdrugyn>
- <absnyn/>
- </send>
- <init>
- <cmbinfo>
- <efcycls>
- <P0096>
- <cdid/>
- <cdnm/>
- </P0096>
- </efcycls>
- <spcldrug>
- <A0006>
- <cdid/>
- <cdnm/>
- </A0006>
- </spcldrug>
- </cmbinfo>
- </init>
- <hidden>
- </hidden>
- <temp>
- <receivedata>
- <receiveref/>
- <srchflag/>
- <srchcnts/>
- <drugkind/>
- </receivedata>
- </temp>
- </root>
- </instance>
- <submission id="TRZBC00101"/>
- <submission id="TRADB60101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/druglist"/>
- <submission id="TRADB60102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/main/comlist"/>
- <submission id="TRADB60103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchefcy" replace="instance" resultref="/root/main/efcylist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList( new Array("A0006", "P0096"), new Array("/root/init/cmbinfo/spcldrug", "/root/init/cmbinfo/efcycls") );
- if ( model.getValue("/root/temp/receivedata/drugkind") != ""){
- model.setValue ( "/root/send/drugkind", model.getValue("/root/temp/receivedata/drugkind"));
- }
- if ( model.getValue("/root/temp/receivedata/srchcnts") != ""){
- model.setValue ( "/root/send/srchcnts", model.getValue("/root/temp/receivedata/srchcnts"));
- model.setValue ( "/root/send/srchflag", model.getValue("/root/temp/receivedata/srchflag"));
- model.setValue("/root/send/srchdrugcd","D%");
- submit("TRADB60101");
- }
-
- if (model.getValue("/root/temp/receivedata/srchdrugcd") != "") {
- var cond = model.getValue("/root/temp/receivedata/srchdrugcd").toUpperCase()+"%"
-
- model.setValue("/root/send/srchflag","1");
- model.setValue("/root/send/srchdrugcd", cond);
- submit("TRADB60101");
- }
- model.refresh();
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="827" pageheight="657" guideline="1,1194;2,657;2,628;2,655;1,811;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:810px; height:75px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption3" class="search_name" style="left:10px; top:10px; width:86px; height:17px; ">구 분 :</caption>
- <caption id="caption1" class="search_name" style="left:10px; top:35px; width:86px; height:17px; ">약품종류 :</caption>
- <caption id="caption2" class="search_name" style="left:10px; top:60px; width:86px; height:17px; ">복 지 부 :</caption>
- <caption id="caption4" class="search_name" style="left:520px; top:10px; width:60px; height:17px; ">순서 :</caption>
- <caption id="caption5" class="search_name" style="left:420px; top:35px; width:86px; height:17px; ">특별약품 :</caption>
- <caption id="caption6" class="search_name" style="left:420px; top:60px; width:86px; height:17px; ">조 회 :</caption>
- <line id="line13" class="line_4" style="x1:744px; y1:15px; x2:744px; y2:69px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="button64" class="btn_sw" group="tab" selected="true" style="left:0px; top:110px; width:30px; height:22px; ">
- <caption>All</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn_sw" group="tab" selected="false" style="left:30px; top:110px; width:30px; height:22px; ">
- <caption>A</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","A%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button3" class="btn_sw" group="tab" selected="false" style="left:60px; top:110px; width:30px; height:22px; ">
- <caption>B</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","B%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn_sw" group="tab" selected="false" style="left:90px; top:110px; width:30px; height:22px; ">
- <caption>C</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","C%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn_sw" group="tab" selected="false" style="left:120px; top:110px; width:30px; height:22px; ">
- <caption>D</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","D%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button6" class="btn_sw" group="tab" selected="false" style="left:150px; top:110px; width:30px; height:22px; ">
- <caption>E</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","E%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button7" class="btn_sw" group="tab" selected="false" style="left:180px; top:110px; width:30px; height:22px; ">
- <caption>F</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","F%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button8" class="btn_sw" group="tab" selected="false" style="left:210px; top:110px; width:30px; height:22px; ">
- <caption>G</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","G%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button9" class="btn_sw" group="tab" selected="false" style="left:240px; top:110px; width:30px; height:22px; ">
- <caption>H</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","H%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button10" class="btn_sw" group="tab" style="left:270px; top:110px; width:30px; height:22px; ">
- <caption>I</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","I%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button11" class="btn_sw" group="tab" style="left:300px; top:110px; width:30px; height:22px; ">
- <caption>J</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","J%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button12" class="btn_sw" group="tab" style="left:330px; top:110px; width:30px; height:22px; ">
- <caption>K</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","K%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button13" class="btn_sw" group="tab" style="left:360px; top:110px; width:30px; height:22px; ">
- <caption>L</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","L%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button14" class="btn_sw" group="tab" style="left:390px; top:110px; width:30px; height:22px; ">
- <caption>M</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","M%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button15" class="btn_sw" group="tab" selected="false" style="left:420px; top:110px; width:30px; height:22px; ">
- <caption>N</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","N%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button16" class="btn_sw" group="tab" selected="false" style="left:450px; top:110px; width:30px; height:22px; ">
- <caption>O</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","O%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button17" class="btn_sw" group="tab" selected="false" style="left:480px; top:110px; width:30px; height:22px; ">
- <caption>P</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","P%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button18" class="btn_sw" group="tab" selected="false" style="left:510px; top:110px; width:30px; height:22px; ">
- <caption>Q</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","Q%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button19" class="btn_sw" group="tab" selected="false" style="left:540px; top:110px; width:30px; height:22px; ">
- <caption>R</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","R%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button20" class="btn_sw" group="tab" selected="false" style="left:570px; top:110px; width:30px; height:22px; ">
- <caption>S</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","S%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button21" class="btn_sw" group="tab" selected="false" style="left:600px; top:110px; width:30px; height:22px; ">
- <caption>T</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","T%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button22" class="btn_sw" group="tab" selected="false" style="left:630px; top:110px; width:30px; height:22px; ">
- <caption>U</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","U%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button23" class="btn_sw" group="tab" selected="false" style="left:660px; top:110px; width:30px; height:22px; ">
- <caption>V</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","V%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button24" class="btn_sw" group="tab" selected="false" style="left:690px; top:110px; width:30px; height:22px; ">
- <caption>W</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","W%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button25" class="btn_sw" group="tab" selected="false" style="left:720px; top:110px; width:30px; height:22px; ">
- <caption>X</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","X%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button26" class="btn_sw" group="tab" style="left:750px; top:110px; width:30px; height:22px; ">
- <caption>Y</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","Y%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="button27" class="btn_sw" group="tab" selected="false" style="left:780px; top:110px; width:30px; height:22px; ">
- <caption>Z</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","Z%");
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <caption id="caption7" class="tit_2" style="left:6px; top:89px; width:95px; height:13px; ">약품조회</caption>
- <line id="line1" class="line_1" style="x1:1px; y1:103px; x2:811px; y2:103px; "/>
- <switch id="switch1" style="left:0px; top:130px; width:810px; height:500px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1" selected="true">
- <datagrid id="grd_druglist1" nodeset="/root/main/druglist/item" autoresize="true" caption="약품코드^처방명칭^한글명칭^약정보" colsep="^" colwidth="100, 303, 317, 62" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" style="left:0px; top:5px; width:805px; height:485px; ">
- <col ref="drugcd"/>
- <col ref="ordnm"/>
- <col ref="hngnm"/>
- <col ref="druginfo"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var srchtype = model.getValue("/root/temp/receivedata/srchtype"); // 부모창이 어떤 화면인지 구분할 값 세팅
- var receiveref = model.getValue("/root/temp/receivedata/receiveref");
-
- if ( checkOpener() ) {
- if (srchtype == "O") {
- var hngnm = opener.model.getValue(receiveref); // 약품 코드
-
- if(isNull(hngnm)) {
- hngnm = "'" + model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/hngnm") + "'";
- } else {
- // 성분조회 화면에서 '조회' 버튼을 누르지 않고 비어있는 데이터 선택했을 경우
- if(isNull(model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/hngnm"))) {
- hngnm = "";
- } else {
- hngnm += "," + "'" + model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/hngnm") + "'";
- }
- }
-
- opener.model.setValue(receiveref, hngnm);
- } else if (srchtype == "B") {//both 약품코드와 약품명 둘다 설정함
- var node = opener.instance1.selectSingleNode(receiveref);
- if (node.hasChildNodes() ==1) {//결과 반환 경로가 노드인 경우
- var nodelist = node.childNodes; //노드의 하위노드를 얻고
- var childnode;
- while (childnode = nodelist.nextNode()) { //하위노드를 루프
- if (childnode.nodeName == "srchdrugcd") { //노드명이 srchdrugcd이면
- childnode.value = model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/drugcd");
- }
- if (childnode.nodeName == "hngnm") {//노드명이 hngnm이면
- childnode.value = model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/hngnm");
- }
- if (childnode.nodeName == "engnm") {
- childnode.value = model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/endnm");
- }
- }
- } else { //
- opener.model.setValue(receiveref, model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/drugcd"));
- }
-
- } else if (srchtype == "G") {//Grid 약품코드와 약품명 둘다 설정함
- var node = opener.instance1.selectSingleNode(receiveref);
- if (node.hasChildNodes() ==1) {//결과 반환 경로가 노드인 경우
- var nodelist = node.childNodes; //노드의 하위노드를 얻고
- var childnode;
- while (childnode = nodelist.nextNode()) { //하위노드를 루프
- if (childnode.nodeName == "prcpcd") { //노드명이 prcpcd
- childnode.value = model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/drugcd");
- }
- if (childnode.nodeName == "prcpnm") {//노드명이 prcpnm
- childnode.value = model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/hngnm");
- }
- }
- var f = eval("opener.javascript."+model.getValue("/root/temp/receivedata/callbackFunc"));//콜백함수
-
- if (typeof(f) == "function") {//콜백함수가 유효하다면
- f.call(null, model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/drugcd")); //콜백함수 호출
- }
- } else { //
- opener.model.setValue(receiveref, model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/drugcd"));
- }
-
- } else {
- opener.model.setValue(receiveref, model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/drugcd"));
- //opener.model.makeNode (receiveref +"/ordnm");
- //opener.model.setValue(receiveref +"/ordnm", model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/ordnm"));
- }
-
- opener.model.refresh();
- window.close();
- } else {
- alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_druglist1.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case2">
- <datagrid id="grd_comlist" nodeset="/root/main/comlist/item" autoresize="true" caption="코드^명 칭^레벨" colsep="^" colwidth="0, 216, 0" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" style="left:5px; top:5px; width:240px; height:490px; ">
- <col ref="comcd"/>
- <col ref="comnm"/>
- <col ref="comlevel"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- model.setValue("/root/send/srchetcflag","C");
- model.setValue("/root/send/srchcomcd",model.getValue("/root/main/comlist/item[" + grd_comlist.row +"]/comcd"));
- submit("TRADB60101");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_comlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_druglist2" nodeset="/root/main/druglist/item" autoresize="true" caption="약품코드^처방명칭^^" colsep="^" colwidth="100, 421, 14, 9" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" style="left:250px; top:5px; width:550px; height:490px; ">
- <col ref="drugcd"/>
- <col ref="ordnm"/>
- <col ref="hngnm"/>
- <col ref="druginfo"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var receiveref = model.getValue("/root/temp/receivedata/receiveref");
- if ( checkOpener() ) {
- opener.model.setValue(receiveref, model.getValue("/root/main/druglist/item["+grd_druglist2.row+"]/drugcd"));
- //opener.model.makeNode (receiveref +"/ordnm");
- //opener.model.setValue(receiveref +"/ordnm", model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/ordnm"));
- opener.model.refresh();
- window.close();
- } else {
- alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_druglist2.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case3">
- <datagrid id="grd_druglist3" nodeset="/root/main/druglist/item" autoresize="true" caption="약품코드^처방명칭^^" colsep="^" colwidth="100, 421, 14, 9" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" style="left:250px; top:5px; width:550px; height:490px; ">
- <col ref="drugcd"/>
- <col ref="ordnm"/>
- <col ref="hngnm"/>
- <col ref="druginfo"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var receiveref = model.getValue("/root/temp/receivedata/receiveref");
- if ( checkOpener() ) {
- opener.model.setValue(receiveref, model.getValue("/root/main/druglist/item["+grd_druglist3.row+"]/drugcd"));
- //opener.model.makeNode (receiveref +"/ordnm");
- //opener.model.setValue(receiveref +"/ordnm", model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/ordnm"));
- opener.model.refresh();
- window.close();
- } else {
- alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_druglist3.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_efcylist" nodeset="/root/main/efcylist/item" caption="코드^효능명칭^레벨" colsep="^" colwidth="0, 212, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:5px; width:240px; height:490px; ">
- <col ref="efcycd"/>
- <col ref="efcynm"/>
- <col ref="efcylevel" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- model.setValue("/root/send/srchetcflag","E");
- model.setValue("/root/send/srchefcy",model.getValue("/root/main/efcylist/item[" + grd_efcylist.row +"]/efcycd"));
- submit("TRADB60101");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_efcylist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <line id="line3" class="line_2" style="x1:5px; y1:30px; x2:725px; y2:30px; "/>
- <line id="line2" class="line_2" style="x1:5px; y1:55px; x2:725px; y2:55px; "/>
- <caption id="caption8" class="search_name" style="left:340px; top:10px; width:86px; height:17px; ">저장구분 :</caption>
- <button id="btn_sea" class="btn1_letter2" style="left:750px; top:30px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdrugcd","");
- // 임상약은 임상약만 조회되게 2013/11/25 김치국
- var vspccldrug = model.getValue("/root/send/spcldrug") ;
- if ( vspccldrug == "2" || vspccldrug == "3" || vspccldrug == "4") {
- model.setValue("/root/send/ctdrugyn","Y");
- }
- submit("TRADB60101");
- ]]>
- </script>
- </button>
- <button id="btn_cls" class="btn4_letter2" style="left:755px; top:635px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- <select1 id="rdo_srchcls" ref="/root/send/srchcls" class="radio_search" appearance="full" cols="5" rows="1" overflow="visible" style="left:100px; top:10px; width:240px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>코드별</label>
- <value>1</value>
- </item>
- <item>
- <label>성분별</label>
- <value>2</value>
- </item>
- <item>
- <label>효능별</label>
- <value>3</value>
- </item>
- <item>
- <label>상품명별</label>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue("/root/send/srchcls") == "2") {
- model.toggle("case2");
- if ( grd_comlist.rows < 3 ) {
- submit("TRADB60102");
- setTree(grd_comlist, grd_comlist.colRef("comlevel"),grd_comlist.colRef("comnm"), true );
- }
- } else if ( model.getValue("/root/send/srchcls") == "3") {
- model.toggle("case3");
- if ( grd_efcylist.rows<3 ) {
- submit("TRADB60103");
- setTree(grd_efcylist, grd_efcylist.colRef("efcylevel"),grd_efcylist.colRef("efcynm"), true );
- }
- }else {
- model.setValue("/root/send/srchetcflag","A");
- model.toggle("case1");
- }
- ]]>
- </script>
- </select1>
- <select id="chk_saveflag" ref="/root/send/cnfmyn" class="checkbox_search" overflow="visible" appearance="full" cols="4" rows="1" style="left:425px; top:10px; width:85px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>확정</label>
- <value>Y</value>
- </item>
- <item>
- <label>임시</label>
- <value>N</value>
- </item>
- </choices>
- </select>
- <select1 id="rdo_seqflag" ref="/root/send/seqflag" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:580px; top:10px; width:160px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>약품코드순</label>
- <value>1</value>
- </item>
- <item>
- <label>처방명칭순</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_srchflag" ref="/root/send/srchflag" class="combo_search" appearance="minimal" style="left:510px; top:58px; width:75px; height:19px; ">
- <choices>
- <item>
- <label>처방명칭</label>
- <value>2</value>
- </item>
- <item>
- <label>약품코드</label>
- <value>1</value>
- </item>
- <item>
- <label>한글(약품/제조회사)</label>
- <value>3</value>
- </item>
- <item>
- <label>EDI코드</label>
- <value>4</value>
- </item>
- <item>
- <label>성분명</label>
- <value>5</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_srchcnts" ref="/root/send/srchcnts" class="input_search" style="left:590px; top:58px; width:135px; height:19px; "/>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_sea", "DOMActivate");
- ]]>
- </script>
- <select1 id="cmb_efcycls" ref="/root/send/efcycls" class="combo_search" appearance="minimal" style="left:175px; top:58px; width:240px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/efcycls/P0096">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setValue("/root/send/efcycd", model.getValue("/root/send/efcycls"));
- model.refresh();
- ]]>
- </script>
- </select1>
- <output id="opt_efcycd" ref="/root/send/efcycd" class="output_search" style="left:100px; top:58px; width:70px; height:19px; "/>
- <select1 id="cmb_spcldrug" ref="/root/send/spcldrug" class="combo_search" appearance="minimal" style="left:510px; top:35px; width:215px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/spcldrug/A0006">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select id="chk_drugkind" ref="/root/send/drugkind" class="checkbox_search" overflow="visible" appearance="full" cols="4" rows="1" style="left:100px; top:35px; width:135px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>내복</label>
- <value>N</value>
- </item>
- <item>
- <label>주사</label>
- <value>M</value>
- </item>
- <item>
- <label>외용</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chk_drugkindall" ref="/root/send/drugkindall" class="checkbox_search" overflow="visible" appearance="full" cols="4" rows="1" style="left:240px; top:35px; width:55px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ((model.getValue("/root/send/drugkindall")).indexOf("4")>-1) { //전체가 선택됐을때 다른 체크도 모두 전체체크의 상태대로 셋팅
- model.setValue("/root/send/drugkind","N M Y");
- } else {
- model.setValue("/root/send/drugkind"," ");
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <select id="checkbox1" ref="/root/send/absnyn" class="checkbox_search" overflow="visible" appearance="full" cols="4" rows="1" style="left:310px; top:35px; width:90px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>불용약제외</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </xhtml:body>
- </xhtml:html>
|