123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363 |
- <?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>
- <druginfo>
- <druglist>
- <selflag/>
- <drugcd/>
- <drugnm/>
- <comcd/>
- <comnm/>
- <efcycd/>
- </druglist>
- </druginfo>
- </main>
- <send>
- <srchinfo>
- <srchefcycd1/>
- <srchefcycd2/>
- <srchefcycd3/>
- <srchefcycd4/>
- <srchefcycd5/>
- <srchefcycd/>
- <srchefcylevel/>
- <srchcomcd/>
- <srchcomnm/>
- <srchcom/>
- <srchcomdiv>1</srchcomdiv>
- </srchinfo>
- </send>
- <init>
- <efcyinfo1/>
- <efcyinfo2/>
- <efcyinfo3/>
- <efcyinfo4/>
- <efcyinfo5/>
- <efcybaseinfo>
- <item>
- <efcycd/>
- <efcynm/>
- </item>
- </efcybaseinfo>
- </init>
- <hidden>
- <receivedata/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var efcycd1 = model.getValue("/root/hidden/receivedata/srchefcycd1");
- var efcycd2 = model.getValue("/root/hidden/receivedata/srchefcycd2");
- var efcycd3 = model.getValue("/root/hidden/receivedata/srchefcycd3");
- var efcycd4 = model.getValue("/root/hidden/receivedata/srchefcycd4");
- var efcycd5 = model.getValue("/root/hidden/receivedata/srchefcycd5");
- var comcd = model.getValue("/root/hidden/receivedata/srchcomcd");
- var comnm = model.getValue("/root/hidden/receivedata/srchcomnm");
-
- fSetEfcyCode( "%", 1 );
- fSetEfcyCode(efcycd1+ "%", 2 );
- fSetEfcyCode( efcycd3+"%", 3 );
- fSetEfcyCode(efcycd4+ "%", 4 );
- fSetEfcyCode(efcycd5+ "%", 5 );
-
- model.setValue("/root/send/srchinfo/srchefcycd1",efcycd1);
- model.setValue("/root/send/srchinfo/srchefcycd2",efcycd2);
- model.setValue("/root/send/srchinfo/srchefcycd3",efcycd3);
- model.setValue("/root/send/srchinfo/srchefcycd4",efcycd4);
- model.setValue("/root/send/srchinfo/srchefcycd5",efcycd5);
- model.setValue("/root/send/srchinfo/srchcomcd" ,comcd);
- model.setValue("/root/send/srchinfo/srchcom" ,comcd);
- model.refresh();
-
- fSubmitEfcyDrugList();
- grd_druglist1.fixedcellcheckbox(0,0) = true;
- grd_druglist2.fixedcellcheckbox(0,0) = true;
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fSetEfcyCode( efcycd, efcylevel ){
- model.setValue("/root/send/srchinfo/srchefcycd" ,efcycd);
- model.setValue("/root/send/srchinfo/srchefcylevel",efcylevel);
- submit("TRADB01801");
- model.copyNode("/root/init/efcyinfo"+efcylevel , "/root/init/efcybaseinfo");
-
- if (efcylevel == 1) {
- model.removenode("/root/init/efcyinfo2/item");
- model.removenode("/root/init/efcyinfo3/item");
- model.removenode("/root/init/efcyinfo4/item");
- model.removenode("/root/init/efcyinfo5/item");
- model.setValue("/root/send/srchinfo/srchefcycd2","");
- model.setValue("/root/send/srchinfo/srchefcycd3","");
- model.setValue("/root/send/srchinfo/srchefcycd4","");
- model.setValue("/root/send/srchinfo/srchefcycd5","");
- } else if (efcylevel == 2) {
- model.removenode("/root/init/efcyinfo3/item");
- model.removenode("/root/init/efcyinfo4/item");
- model.removenode("/root/init/efcyinfo5/item");
- model.setValue("/root/send/srchinfo/srchefcycd3","");
- model.setValue("/root/send/srchinfo/srchefcycd4","");
- model.setValue("/root/send/srchinfo/srchefcycd5","");
- } else if (efcylevel == 3) {
- model.removenode("/root/init/efcyinfo4/item");
- model.removenode("/root/init/efcyinfo5/item");
- model.setValue("/root/send/srchinfo/srchefcycd4","");
- model.setValue("/root/send/srchinfo/srchefcycd5","");
- } else if (efcylevel == 4) {
- model.removenode("/root/init/efcyinfo5/item");
- model.setValue("/root/send/srchinfo/srchefcycd5","");
- }
-
- model.refresh();
- }
-
- function fSubmitEfcyDrugList() {
- var srchefcycd = "";
- var srchefcycd1 = model.getValue("/root/send/srchinfo/srchefcycd1");
- var srchefcycd2 = model.getValue("/root/send/srchinfo/srchefcycd2");
- var srchefcycd3 = model.getValue("/root/send/srchinfo/srchefcycd3");
- var srchefcycd4 = model.getValue("/root/send/srchinfo/srchefcycd4");
- var srchefcycd5 = model.getValue("/root/send/srchinfo/srchefcycd5");
-
- if (srchefcycd5 != "") {
- srchefcycd = srchefcycd5;
- } else {
- if (srchefcycd4 != "") {
- srchefcycd = srchefcycd4;
- } else {
- if (srchefcycd3 != "") {
- srchefcycd = srchefcycd3;
- } else {
- if (srchefcycd2!= "") {
- srchefcycd = srchefcycd2;
- } else {
- if (srchefcycd1 != "") {
- srchefcycd = srchefcycd1;
- }
- }
- }
- }
- }
-
- model.setValue("/root/send/srchinfo/srchefcycd",srchefcycd);
- submit("TRADB01804");
- }
-
- function fSubmitComDrugList() {
- var srchcomdiv = model.getValue("/root/send/srchinfo/srchcomdiv");
- var srchcom = model.getValue("/root/send/srchinfo/srchcom");
-
- if (srchcomdiv == "1") { // 코드
- model.setValue("/root/send/srchinfo/srchcomcd",srchcom);
- } else if (srchcomdiv == "2") { // 명칭
- model.setValue("/root/send/srchinfo/srchcomnm",srchcom);
- }
-
- submit("TRADB62002");
- }
-
- function fTransferData(index, rowtype) {
- if (index == 0) {
- astfInsertGridData(grd_druglist1, opener.grd_comdruglist, rowtype, "selflag", "drugcd,drugcd,drugnm,drugnm", "drugcd,drugcd");
- }else if (index == 1) {
- astfInsertGridData(grd_druglist2, opener.grd_comdruglist, rowtype, "selflag", "drugcd,drugcd,engnm,drugnm,comcd,comcd", "drugcd,drugcd");
- }
- opener.model.refresh();
- window.close();
- }
- ]]>
- </script>
- <submission id="TRADB01801" ref="/root/send/srchinfo" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/init/efcybaseinfo"/>
- <submission id="TRADB62002" ref="/root/send/srchinfo" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/druginfo/druglist"/>
- <submission id="TRADB01804" ref="/root/send/srchinfo" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/druginfo/druglist"/>
- </model>
- <script type="javascript" src="../../../com/hismainweb/js/DocTitle.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="662" pageheight="590" guideline="1,1194;1,645;2,575;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <button id="button1" class="btn_sw" group="tab" selected="false" style="left:55px; top:25px; width:55px; height:22px; ">
- <caption>성분별</caption>
- <toggle case="case2" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/druginfo/druglist");
- model.refresh();
- fSubmitComDrugList();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn_sw" group="tab" selected="true" style="left:0px; top:25px; width:55px; height:22px; ">
- <caption>효능별</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/druginfo/druglist");
- model.refresh();
- ]]>
- </script>
- </button>
- <group id="group1" style="left:0px; top:5px; width:646px; height:13px; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:146px; height:14px; ">편람용 약품검색</caption>
- </group>
- <switch id="switch1" style="left:0px; top:45px; width:646px; height:505px; ">
- <case id="case1" selected="true">
- <group id="group2" style="left:15px; top:10px; width:615px; height:140px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:615px; height:140px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" style="x1:450px; y1:10px; x2:450px; y2:132px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption3" class="search_name" style="left:15px; top:5px; width:86px; height:17px; ">효능분류 :</caption>
- <button id="btn_sea" class="btn1_letter2" style="left:500px; top:50px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSubmitEfcyDrugList();
- ]]>
- </script>
- </button>
- <select1 id="cmb_srchefcycd1" ref="/root/send/srchinfo/srchefcycd1" class="combo_search" appearance="minimal" style="left:145px; top:10px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/efcyinfo1/item">
- <label ref="efcynm"/>
- <value ref="efcycd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var srchefcycd1 = model.getValue("/root/send/srchinfo/srchefcycd1");
- fSetEfcyCode( srchefcycd1+"%", 2 );
- ]]>
- </script>
- </select1>
- <select1 id="cmb_srchefcycd2" ref="/root/send/srchinfo/srchefcycd2" class="combo_search" appearance="minimal" style="left:145px; top:35px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/efcyinfo2/item">
- <label ref="efcynm"/>
- <value ref="efcycd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var srchefcycd2 = model.getValue("/root/send/srchinfo/srchefcycd2");
- fSetEfcyCode( srchefcycd2+"%", 3 );
- ]]>
- </script>
- </select1>
- <select1 id="cmb_srchefcycd3" ref="/root/send/srchinfo/srchefcycd3" class="combo_search" appearance="minimal" style="left:145px; top:60px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/efcyinfo3/item">
- <label ref="efcynm"/>
- <value ref="efcycd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var srchefcycd3 = model.getValue("/root/send/srchinfo/srchefcycd3");
- fSetEfcyCode( srchefcycd3+"%", 4 );
- ]]>
- </script>
- </select1>
- <select1 id="cmb_srchefcycd4" ref="/root/send/srchinfo/srchefcycd4" class="combo_search" appearance="minimal" style="left:145px; top:85px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/efcyinfo4/item">
- <label ref="efcynm"/>
- <value ref="efcycd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var srchefcycd4 = model.getValue("/root/send/srchinfo/srchefcycd4");
- fSetEfcyCode( srchefcycd4+"%", 5 );
- ]]>
- </script>
- </select1>
- <select1 id="cmb_srchefcycd5" ref="/root/send/srchinfo/srchefcycd5" class="combo_search" appearance="minimal" style="left:145px; top:110px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/efcyinfo5/item">
- <label ref="efcynm"/>
- <value ref="efcycd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <caption id="caption4" class="tit_2" style="left:25px; top:165px; width:75px; height:13px; ">약품코드</caption>
- <line id="line3" class="line_1" style="x1:15px; y1:180px; x2:630px; y2:180px; "/>
- <datagrid id="grd_druglist1" nodeset="/root/main/druginfo/druglist" caption="^코드^상품명^성분코드^성분명" colwidth="31, 79, 223, 67, 193" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:15px; top:185px; width:615px; height:305px; ">
- <col ref="selflag" type="checkbox"/>
- <col ref="drugcd"/>
- <col ref="drugnm"/>
- <col ref="comcd"/>
- <col ref="comnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fTransferData(0,"1");
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case2">
- <group id="group3" ref="/root/send/srchcomflag" style="left:15px; top:15px; width:615px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:615px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">성 분 :</caption>
- <line id="line1" style="x1:494px; y1:7px; x2:494px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="input3" ref="/root/send/srchinfo/srchcom" class="input_search" style="left:109px; top:8px; width:196px; height:19px; "/>
- <select1 id="radio2" ref="/root/send/srchinfo/srchcomdiv" class="radio_search" overflow="visible" appearance="full" rows="1" cols="2" style="left:315px; top:9px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>코드</label>
- <value>1</value>
- </item>
- <item>
- <label>명칭</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <button id="button3" class="btn1_letter2" style="left:510px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSubmitComDrugList();
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption1" class="tit_2" style="left:25px; top:65px; width:75px; height:13px; ">약품코드</caption>
- <line id="line2" class="line_1" style="x1:15px; y1:80px; x2:630px; y2:80px; "/>
- <datagrid id="grd_druglist2" nodeset="/root/main/druginfo/druglist" caption="^코드^상품명^성분코드^성분명" colwidth="27, 79, 242, 67, 177" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:15px; top:85px; width:615px; height:405px; ">
- <col ref="selflag" type="checkbox"/>
- <col ref="drugcd"/>
- <col ref="engnm"/>
- <col ref="comcd"/>
- <col ref="comnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fTransferData(1,"1");
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <group id="group4" scroll="auto" style="left:0px; top:550px; width:646px; height:27px; ">
- <button id="btn_cfm" class="btn4_letter2" style="left:482px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fTransferData(switch1.selectedIndex,"2");
- ]]>
- </script>
- </button>
- <button id="btn_cls" class="btn4_letter2" style="left:541px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|