123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732 |
- <?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>
- <druglist>
- <item>
- <chk/>
- <drugcd/>
- <ordnm/>
- <hngnm/>
- <druginfo/>
- </item>
- </druglist>
- <comlist>
- <item>
- <comcd/>
- <comnm/>
- <comlevel/>
- </item>
- </comlist>
- <efcylist>
- <item>
- <efcycd/>
- <efcynm/>
- <efcylevel/>
- </item>
- </efcylist>
- <selectgrid>
- <item>
- <chk/>
- <drugcd/>
- <hngnm/>
- </item>
- </selectgrid>
- </main>
- <send>
- <srchcls>1</srchcls>
- <cnfmyn>Y N</cnfmyn>
- <seqflag>1</seqflag>
- <drugkind>N M Y</drugkind>
- <drugkindall>4</drugkindall>
- <spcldrug/>
- <efcycd>-</efcycd>
- <efcycls/>
- <srchflag>1</srchflag>
- <srchcnts/>
- <srchdrugcd>%</srchdrugcd>
- <srchcomcd/>
- <srchcomnm/>
- <srchefcy/>
- <srchetcflag>A</srchetcflag>
- </send>
- <init>
- <cmbinfo>
- <efcycls>
- <P0096>
- <cdid/>
- <cdnm/>
- </P0096>
- </efcycls>
- <spcldrug>
- <A0006>
- <cdid/>
- <cdnm/>
- </A0006>
- </spcldrug>
- </cmbinfo>
- </init>
- <hidden>
- <receiveref>
- <drugcd/>
- <hngnm/>
- </receiveref>
- </hidden>
- <temp>
- <receivedata>
- <receiveref/>
- <srchflag/>
- <srchcnts/>
- <drugkind/>
- <drugcd/>
- <hngnm/>
- </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");
- }
-
- grd_temp.fixedcellcheckbox(0,0)=true; // 타이틀에 전체선택 체크박스 추가
- model.removeNodeset("/root/main/selectgrid"); // 그리드 내용 초기화
- model.refresh();
-
- /*
- * 부모창에서 넘겨받은 데이터 체크박스에 세팅
- */
- var drugcd = model.getValue("/root/temp/receivedata/drugcd"); // 약품코드
- var hngnm = model.getValue("/root/temp/receivedata/hngnm"); // 약품명칭
-
- drugcd = drugcd.setReplaceWord("'","");
- drugcd = drugcd.split(",");
-
- hngnm = hngnm.setReplaceWord("'","");
- hngnm = hngnm.split(",");
-
- // 데이터 유무 체크( 구분할 값이 없어도 length는 1이 리턴됨. )
- if(drugcd[0] != "") {
- for(var i = 0; i < drugcd.length; ++i) {
- grd_temp.addRow(false, false);
-
- grd_temp.valueMatrix(grd_temp.rows - grd_temp.fixedRows, grd_temp.colRef("chk")) = "true";
- grd_temp.valueMatrix(grd_temp.rows - grd_temp.fixedRows, grd_temp.colRef("drugcd")) = drugcd[i];
- grd_temp.valueMatrix(grd_temp.rows - grd_temp.fixedRows, grd_temp.colRef("hngnm")) = hngnm[i];
- }
- }
-
- grd_temp.refresh();
-
- 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","D%");
- 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","DA%");
- 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","DB%");
- 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","DC%");
- 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","DD%");
- 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","DE%");
- 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","DF%");
- 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","DG%");
- 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","DH%");
- 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","DI%");
- 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","DJ%");
- 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","DK%");
- 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","DL%");
- 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","DM%");
- 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","DN%");
- 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","DO%");
- 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","DP%");
- 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","DQ%");
- 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","DR%");
- 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","DS%");
- 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","DT%");
- 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","DU%");
- 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","DV%");
- 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","DW%");
- 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","DX%");
- 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","DY%");
- 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","DZ%");
- 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, 306, 318, 62" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" style="left:0px; top:5px; width:805px; height:285px; ">
- <col ref="drugcd"/>
- <col ref="ordnm"/>
- <col ref="hngnm"/>
- <col ref="druginfo"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var drugcd = model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/drugcd"); // 약품코드
- var hngnm = model.getValue("/root/main/druglist/item["+grd_druglist1.row+"]/hngnm"); // 한글명칭
-
- // 1. 로우 추가
- grd_temp.addRow(false, false);
-
- // 2. 코드, 명칭 세팅
- grd_temp.valueMatrix(grd_temp.rows - 1, grd_temp.colRef("chk")) = "true";
- grd_temp.valueMatrix(grd_temp.rows - 1, grd_temp.colRef("drugcd")) = drugcd;
- grd_temp.valueMatrix(grd_temp.rows - 1, grd_temp.colRef("hngnm")) = hngnm;
-
- grd_temp.refresh();
- ]]>
- </script>
- </datagrid>
- <line id="line4" class="line_1" style="x1:2px; y1:440px; x2:806px; y2:440px; "/>
- <caption id="caption9" class="tit_2" style="left:6px; top:426px; width:105px; height:14px; ">선택 항목 추가</caption>
- <datagrid id="grd_temp" nodeset="/root/main/selectgrid/item" caption="선택^약품코드^한글명칭" colsep="^" colwidth="58, 100, 390" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:315px; width:805px; height:182px; ">
- <col ref="chk" type="checkbox"/>
- <col ref="drugcd"/>
- <col ref="hngnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- grd_temp.deleteRow(grd_temp.row, true);
- grd_temp.refresh();
- ]]>
- </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>
- </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>
- </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>
- </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>
- </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","D%");
- submit("TRADB60101");
-
- model.refresh();
- ]]>
- </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>
- <button id="btn_cfm" class="btn4_letter2" style="left:695px; top:635px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var drugcd = model.getValue("/root/temp/receivedata/drugcd"); // 약품코드
- var hngnm = model.getValue("/root/temp/receivedata/hngnm"); // 약품명칭
-
- /*
- * 체크박스에 선택된 값만 부모창으로 세팅
- */
- var gridRow = grd_temp.rows; // 데이터 로우 종 갯수
- var fixedRows = grd_temp.fixedRows; // 고정 데이터 로우 갯수
- var isFirst = true;
-
- /*
- * 체크박스에 선택된 값만 부모창으로 세팅
- */
- var gridRow = grd_temp.rows; // 데이터 로우 종 갯수
- var fixedRows = grd_temp.fixedRows; // 고정 데이터 로우 갯수
- var isFirst = true;
-
- for(var i = 0; i < gridRow; ++i) {
- if(grd_temp.valueMatrix(i + fixedRows, grd_temp.colRef("chk")) == "true") {
- // 체크박스에 첫번째 선택된 값
- if(isFirst) {
- // 체크박스에 선택된 값의 명칭이 없을 경우
- drugcd = "'" + grd_temp.valueMatrix(i + fixedRows, grd_temp.colRef("drugcd")) + "'";
- hngnm = "'" + grd_temp.valueMatrix(i + fixedRows, grd_temp.colRef("hngnm")) + "'";
-
- isFirst = false;
- }
- // 체크박스에 두번째 이상 선택된 값
- else {
- drugcd += "," + "'" + grd_temp.valueMatrix(i + fixedRows, grd_temp.colRef("drugcd")) + "'";
- hngnm += "," + "'" + grd_temp.valueMatrix(i + fixedRows, grd_temp.colRef("hngnm")) + "'";
- }
- }
- }
-
- // 체크박스에 선택된 값이 없을 경우
- if(isFirst) {
- drugcd = "";
- hngnm = "";
- }
-
- opener.window.javascript.setParameter("drugcd" , drugcd);
- opener.window.javascript.setParameter("hngnm" , hngnm);
- opener.model.refresh();
- window.close();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|