123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470 |
- <?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>
- <efcylist>
- <item>
- <efcycd/>
- <efcynm/>
- <efcylevel/>
- </item>
- </efcylist>
- <photinfo>
- <drugphot/>
- <phottitle/>
- </photinfo>
- <hbookdetlinfo>
- <efcycd1/>
- <efcycd2/>
- <efcycd3/>
- <efcycd4/>
- <efcycd5/>
- <todd/>
- <instcd/>
- <fromdd/>
- <comnm/>
- <efcysmm/>
- <mthdvolsmm/>
- <seffcsmm/>
- <refcnts/>
- <etc/>
- <efcynm/>
- <hbookseq/>
- <drugnm/>
- <cost/>
- <drugphot/>
- </hbookdetlinfo>
- <druglist>
- <drugcd/>
- <drugkindnm/>
- <drugnm/>
- <efcycd/>
- <efcynm/>
- <hbookseq/>
- <todd/>
- <instcd/>
- <drugphot/>
- <hosinflag/>
- <absnyn/>
- <powdimpsi/>
- <devidebanyn/>
- </druglist>
- <prntlist>
- <drugcd/>
- <drugkindnm/>
- <drugnm/>
- <efcycd/>
- <efcynm/>
- <hbookseq/>
- <todd/>
- <instcd/>
- <drugphot/>
- <hosinflag/>
- <absnyn/>
- <powdimpsi/>
- <devidebanyn/>
- </prntlist>
- </main>
- <send>
- <srchinfo1>
- <srchefcycd/>
- <srchflag/>
- <srchcnts/>
- <srchcntsflag>1</srchcntsflag>
- </srchinfo1>
- <srchinfo2>
- <srchefcycd/>
- <srchcomcd/>
- <srchfromdd/>
- <srchdrugcd/>
- </srchinfo2>
- <srchefcyinfo>
- <srchefcycd1/>
- <srchefcycd2/>
- <srchefcycd3/>
- <srchefcycd4/>
- <srchefcycd5/>
- <srchflag>1</srchflag>
- <srchcntsflag>1</srchcntsflag>
- <srchcnts/>
- <srchefcycd/>
- <srchefcylevel/>
- <srchdrugcd/>
- <ishosout/>
- </srchefcyinfo>
- <srchdetlinfo>
- <srchefcycd/>
- <srchhbookseq/>
- <srchtodd/>
- <srchdrugcd/>
- <srchflag/>
- </srchdetlinfo>
- <srchlist>
- <gubun/>
- </srchlist>
- </send>
- <init>
- <efcysrchinfo>
- <efcyinfo1>
- </efcyinfo1>
- <efcyinfo2/>
- <efcyinfo3/>
- <efcyinfo4/>
- <efcyinfo5/>
- </efcysrchinfo>
- <efcysrchinfo2>
- <efcyinfo1>
- </efcyinfo1>
- <efcyinfo2/>
- <efcyinfo3/>
- <efcyinfo4/>
- <efcyinfo5/>
- </efcysrchinfo2>
- <efcyiptinfo>
- <efcyinfo1>
- </efcyinfo1>
- <efcyinfo2/>
- <efcyinfo3/>
- <efcyinfo4/>
- <efcyinfo5/>
- </efcyiptinfo>
- <efcybaseinfo>
- <item>
- <efcycd/>
- <efcynm/>
- </item>
- </efcybaseinfo>
- </init>
- <hidden>
- <receivedata>
- <srchdrugcd/>
- </receivedata>
- <hosinflag/>
- <absnyn/>
- <powdimpsi/>
- <devidebanyn/>
- </hidden>
- <temp>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //그리드 설정
- lst_druglist.rowHeight(0) = 0;
- //lst_druglist.rebuildStyle(0,0, 0, 1);
- lst_druglist.refresh()
-
- // 효능분류코드 조회
- var drugcd = "";
-
- // 이전 검색초기화 소스 주석처리
- model.setValue("/root/send/srchefcyinfo/srchefcycd" ,"%");
- var success = submit("TRADB01901");
-
- // 사진확대창 hidden
- grp_totimg1.visible = false;
- grp_totimg2.visible = false;
- grp_totimg3.visible = false;
-
- drugcd = model.getValue("/root/hidden/receivedata/srchdrugcd");
-
- if (drugcd != "") { // 약품검색
- fSetEfcyCode("S", "%", 1 ); // 조회용 효능분류
-
- model.setValue("/root/send/srchinfo1/srchflag", "1");
- model.setValue("/root/send/srchinfo1/srchcnts", drugcd);
- model.setValue("/root/send/srchefcyinfo/srchcnts", drugcd);
- btn_index.dispatch("onclick");
- btn_sea.dispatch("onclick");
-
- btn_index.selected = true;
- model.toggle("case2");
- model.setValue("/root/hidden/receivedata/srchdrugcd","");
- } else {
- // 목차탭 클릭
- // btn_cnts.selected = true;
- // model.toggle("case1");
- // btn_base1.selected = true;
-
- fSetEfcyCode("S", "%", 1 ); // 조회용 효능분류
- fSetEfcyCode("I", "%", 1 ); // 입력용 효능분류
- model.refresh();
-
- // 색인탭 클릭
- btn_index.selected = true;
- model.toggle("case2");
- btn_base2.selected = true;
- }
- ]]>
- </script>
- <submission id="TRADB01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchefcyinfo" replace="instance" resultref="/root/main/efcylist"/>
- <script type="javascript">
- <![CDATA[
- var picRow = 0; // 사진인덱스
-
- function fSetEfcyCode( typeflag, efcycd, efcylevel ){
- var node = null;
- var ipt_node = null;
-
- if (typeflag == "S") { // 조회
- node = "/root/init/efcysrchinfo2";
- ipt_node = "/root/send/srchefcyinfo/srch";
- } else if (typeflag == "I") { // 입력
- // node = "/root/init/efcyiptinfo";
- node = "/root/init/efcysrchinfo2";
- ipt_node = "/root/main/hbookdetlinfo/";
- }
-
- model.setValue("/root/send/srchefcyinfo/srchefcycd" ,efcycd);
- model.setValue("/root/send/srchefcyinfo/srchefcylevel",efcylevel);
- var success = submit("TRADB01905","false");
-
- if (success) {
- model.copyNode(node+"/efcyinfo"+efcylevel , "/root/init/efcybaseinfo");
- if (efcylevel == 1) {
- model.removeNodeset(node+"/efcyinfo2/item");
- model.removeNodeset(node+"/efcyinfo3/item");
- model.removeNodeset(node+"/efcyinfo4/item");
- model.removeNodeset(node+"/efcyinfo5/item");
- model.setValue(ipt_node+"efcycd2","");
- model.setValue(ipt_node+"efcycd3","");
- model.setValue(ipt_node+"efcycd4","");
- model.setValue(ipt_node+"efcycd5","");
- } else if (efcylevel == 2) {
- model.removeNodeset(node+"/efcyinfo3/item");
- model.removeNodeset(node+"/efcyinfo4/item");
- model.removeNodeset(node+"/efcyinfo5/item");
- model.setValue(ipt_node+"efcycd2","");
- model.setValue(ipt_node+"efcycd3","");
- model.setValue(ipt_node+"efcycd4","");
- model.setValue(ipt_node+"efcycd5","");
- } else if (efcylevel == 3) {
- model.removeNodeset(node+"/efcyinfo4/item");
- model.removeNodeset(node+"/efcyinfo5/item");
- model.setValue(ipt_node+"efcycd3","");
- model.setValue(ipt_node+"efcycd4","");
- model.setValue(ipt_node+"efcycd5","");
- } else if (efcylevel == 4) {
- model.removeNodeset(node+"/efcyinfo5/item");
- model.setValue(ipt_node+"efcycd4","");
- model.setValue(ipt_node+"efcycd5","");
- } else if (efcylevel == 5) {
- model.setValue(ipt_node+"efcycd5","");
- }
- }
- }
- ]]>
- </script>
- <submission id="TRADB01904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/druglist"/>
- <submission id="TRADB01903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdetlinfo" replace="instance" resultref="/root/main/hbookdetlinfo"/>
- <submission id="TRADB01902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchefcyinfo" replace="instance" resultref="/root/main/druglist"/>
- <submission id="TRADB01905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchefcyinfo" replace="instance" resultref="/root/init/efcybaseinfo"/>
- <submission id="TRADB01906" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchefcyinfo" resultref="/root/main/prntlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fGetDetail() {
- var srchdrugcd = model.getValue("/root/main/druglist["+ lst_druglist.row+"]/drugcd");
- var valueArray = srchdrugcd.split(" ");
- model.setValue("/root/send/srchinfo2/srchdrugcd", valueArray[valueArray.length - 1]);
-
- fSubmitHBookDetl(3);
- }
-
- function fSubmitHBookDetl(grdIndex) {
- var srchefcycd = "";
- var srchhbookseq = "";
- var srchtodd = "";
- var srchdrugcd = "";
- var insurbpnt = "";
- var packunit = "";
- var drugcost = "";
- var index = 0;
-
- if (grdIndex == 1) {
- picRow = grd_druglist1.row;
- srchefcycd = model.getValue("/root/main/druglist["+grd_druglist1.row+"]/efcycd");
- srchhbookseq = model.getValue("/root/main/druglist["+grd_druglist1.row+"]/hbookseq");
- srchtodd = model.getValue("/root/main/druglist["+grd_druglist1.row+"]/todd");
- srchdrugcd = model.getValue("/root/main/druglist["+grd_druglist1.row+"]/drugcd");
- } else if (grdIndex == 2) {
- picRow = grd_druglist2.row;
- srchefcycd = model.getValue("/root/main/druglist["+grd_druglist2.row+"]/efcycd");
- srchhbookseq = model.getValue("/root/main/druglist["+grd_druglist2.row+"]/hbookseq");
- srchtodd = model.getValue("/root/main/druglist["+grd_druglist2.row+"]/todd");
- srchdrugcd = model.getValue("/root/main/druglist["+grd_druglist2.row+"]/drugcd");
- } else if (grdIndex == 3) {
- picRow = lst_druglist.row;
- index = lst_druglist.row;
- srchefcycd = model.getValue("/root/main/druglist["+index+"]/efcycd");
- srchhbookseq = model.getValue("/root/main/druglist["+index+"]/hbookseq");
- srchtodd = model.getValue("/root/main/druglist["+index+"]/todd");
- srchdrugcd = model.getValue("/root/main/druglist["+index+"]/drugcd");
- }
- if(srchefcycd != "" ){ // grdIndex == 2 일 경우 null 값 체크
- model.setValue("/root/send/srchdetlinfo/srchefcycd" ,srchefcycd);
- model.setValue("/root/send/srchdetlinfo/srchhbookseq" ,srchhbookseq);
- model.setValue("/root/send/srchdetlinfo/srchtodd" ,srchtodd);
- model.setValue("/root/send/srchdetlinfo/srchdrugcd" ,srchdrugcd);
- model.setValue("/root/send/srchdetlinfo/srchflag" ,"3");
- var success = submit("TRADB01903",false);
-
- // 사진이미지처리
- // if (grdIndex == 3) {
- // model.setValue("/root/main/photinfo/drugphot",model.getValue("/root/main/hbookdetlinfo/drugphot"));
- // } else {
- // model.setValue("/root/main/photinfo/drugphot",model.getValue("/root/main/druglist["+picRow+"]/drugphot"));
- // }
-
- //model.setValue("/root/main/hbookdetlinfo/drugnm",model.getValue("/root/main/druglist["+grd_druglist2.row+"]/drugnm"));
- //model.setValue("/root/main/hbookdetlinfo/comnm",model.getValue("/root/main/druglist["+grd_druglist2.row+"]/comnm"));
- model.setValue("/root/main/photinfo/drugphot",model.getValue("/root/main/hbookdetlinfo/drugphot"));
- model.setValue("/root/main/photinfo/phottitle","[fig1] " + model.getValue("/root/main/druglist["+picRow+"]/drugcd"));
- setImageRefInstance("/root/main/photinfo/drugphot");
- //model.setValue("/root/main/hbookdetlinfo/drugnm",model.getValue("/root/main/druglist["+grd_druglist2.row+"]/drugnm"));
- //model.setValue("/root/main/hbookdetlinfo/comnm",model.getValue("/root/main/druglist["+grd_druglist2.row+"]/comnm"));
-
- // 조회 후 Grid 상 목록에 대한 원내원외구분, 품절삭제여부, 산체불가여부, 처방분할금지여부 표시 2011.9.30 jmkim
- model.setValue("/root/hidden/hosinflag", model.getValue("/root/main/druglist["+picRow+"]/hosinflag"));
- model.setValue("/root/hidden/absnyn", model.getValue("/root/main/druglist["+picRow+"]/absnyn"));
- model.setValue("/root/hidden/powdimpsi", model.getValue("/root/main/druglist["+picRow+"]/powdimpsi"));
- model.setValue("/root/hidden/devidebanyn", model.getValue("/root/main/druglist["+picRow+"]/devidebanyn"));
-
- var efcycd1 = "";
- var efcycd2 = "";
- var efcycd3 = "";
- var efcycd4 = "";
- var efcycd5 = "";
- efcycd1 = model.getValue("/root/main/hbookdetlinfo/efcycd1");
- efcycd2 = model.getValue("/root/main/hbookdetlinfo/efcycd2");
- efcycd3 = model.getValue("/root/main/hbookdetlinfo/efcycd3");
- efcycd4 = model.getValue("/root/main/hbookdetlinfo/efcycd4");
- efcycd5 = model.getValue("/root/main/hbookdetlinfo/efcycd5");
- fSetEfcyCode( "I", efcycd1+"%", 2 );
- fSetEfcyCode( "I", efcycd2+"%", 3 );
- fSetEfcyCode( "I", efcycd3+"%", 4 );
- fSetEfcyCode( "I", efcycd4+"%", 5 );
- model.setValue("/root/send/srchefcyinfo/srchefcycd1",efcycd1);
- model.setValue("/root/send/srchefcyinfo/srchefcycd2",efcycd2);
- model.setValue("/root/send/srchefcyinfo/srchefcycd3",efcycd3);
- model.setValue("/root/send/srchefcyinfo/srchefcycd4",efcycd4);
- model.setValue("/root/send/srchefcyinfo/srchefcycd5",efcycd5);
-
- if (model.getValue("/root/main/hbookdetlinfo/hosoutonly") == "Y") { //원외전용약제 여부
- lbl_hosout.visible = true;
- } else {
- lbl_hosout.visible = false;
- }
- }
- model.refresh();
- }
-
- function fSubmitHBookList(grdIndex){
-
- // var srchflag = ""; // 검색구분
- // var srchcnts = ""; // 검색내용
- //
- // if (grdIndex == 1) srchflag = "2"; // 효능검색
- // else if (grdIndex == 2) srchflag = "1"; // 내용검색
- // srchcnts = model.getValue("/root/send/srchinfo1/srchcnts");
- //
- // if (grdIndex == 2 && srchcnts.length < 2) {
- // messageBox("조회 내용을 두자이상","C001");
- // return;
- // }
- //
- // model.setValue("/root/send/srchinfo1/srchflag",srchflag);
- // var success = submit("TRADB01902","false");
-
- // 초기화
- setInitDisplay();
- // var drugphot = "";
- var srchefcycd = "";
- var srchefcycd1 = model.getValue("/root/send/srchefcyinfo/srchefcycd1");
- var srchefcycd2 = model.getValue("/root/send/srchefcyinfo/srchefcycd2");
- var srchefcycd3 = model.getValue("/root/send/srchefcyinfo/srchefcycd3");
- var srchefcycd4 = model.getValue("/root/send/srchefcyinfo/srchefcycd4");
- var srchefcycd5 = model.getValue("/root/send/srchefcyinfo/srchefcycd5");
- var srchcntsflag = model.getValue("/root/send/srchefcyinfo/srchcntsflag");
- var srchcnts = model.getValue("/root/send/srchefcyinfo/srchcnts");
- var srchflag = model.getValue("/root/send/srchefcyinfo/srchflag");
-
- // if(model.getValue("/root/send/srchefcyinfo/srchcnts") == "") {
- // srchcnts = model.getValue("/root/send/srchefcyinfo/srchcnts");
- // } else {
- //
- // }
-
- if (srchflag == "1") {
- if (srchcntsflag == "") {
- messageBox("조회 내용구분을","C002");
- return;
- }
-
- if (srchcnts == null || srchcnts.length == 0) {
- messageBox("조회 내용을","C001");
- return;
- }
-
- if (srchcnts.length < 2) {
- messageBox("조회 내용을 두자이상","C001");
- return;
- }
- } else if (srchflag == "2") {
- if(grdIndex == 1) {
- srchefcycd = model.getValue("/root/send/srchinfo1/srchefcycd");
- } else {
- if (srchefcycd5 != "") {
- srchefcycd = srchefcycd5;
- } else {
- if (srchefcycd4 != "") {
- srchefcycd = srchefcycd4;
- } else {
- if (srchefcycd3 != "") {
- srchefcycd = srchefcycd3;
- } else {
- if (srchefcycd2!= "") {
- srchefcycd = srchefcycd2;
- } else {
- if (srchefcycd1 != "") {
- srchefcycd = srchefcycd1;
- }
- }
- }
- }
- }
- }
- if (srchefcycd == null || srchefcycd == "") {
- messageBox("효능코드를","C002");
- return;
- }
- }
-
- model.removeNodeset("/root/main/druglist");
- model.setValue("/root/send/srchefcyinfo/srchefcycd", srchefcycd);
-
- // alert(model.getValue("/root/send/srchefcyinfo/srchflag") + "/" + model.getValue("/root/send/srchefcyinfo/srchcntsflag") + "/" + model.getValue("/root/send/srchefcyinfo/srchcnts") + "/" + model.getValue("/root/send/srchefcyinfo/srchefcycd"));
-
- var success = submit("TRADB01902");
-
- if (success) {
- // 조회 시 하단 clear
- // fResetData();
-
- if (grdIndex == 1) {
- grd_druglist1.row = 1;
- if (grd_druglist1.rows > 1) grd_druglist1.dispatch("onclick");
- } else if (grdIndex == 2) {
- grd_druglist2.row = 1;
- if (grd_druglist2.rows > 1) grd_druglist2.dispatch("onclick");
- }
- }
- }
-
- function fSubmitHBookList2(grdIndex){
-
- // 초기화
- setInitDisplay();
-
- var srchflag = model.getValue("/root/send/srchefcyinfo/srchflag");
- if (grdIndex == 1) {
- srchflag = "2"; // 목차 -> 효능조회
- model.setValue("/root/send/srchefcyinfo/srchflag", "2");
- }
- else if (grdIndex == 2) srchflag = "1"; // 색인 -> 내용조회
-
- var srchefcycd = model.getValue("/root/send/srchinfo1/srchefcycd");
-
- model.removeNodeset("/root/main/druglist");
- model.setValue("/root/send/srchefcyinfo/srchefcycd", srchefcycd);
-
- var success = submit("TRADB01902");
-
- if (success) {
- if (grdIndex == 1) {
- grd_druglist1.row = 1;
- if (grd_druglist1.rows > 1) grd_druglist1.dispatch("onclick");
- } else if (grdIndex == 2) {
- grd_druglist2.row = 1;
- if (grd_druglist2.rows > 1) grd_druglist2.dispatch("onclick");
- }
- }
- }
-
- function setTopIndex(startspell) {
- var drugcode = "";
- var secondspell = "";
- var startIndex = 2;
- var s = "drugcd";
- var nodeset = lst_druglist.attribute("nodeset");
-
- if (btn_engnm.selected) {
- s = "engnm";
- startIndex = 0;
- }
-
- for (var i = 1; i <= getNodesetCount(nodeset); i++) {
- drugcode = model.getValue(nodeset+"["+ i +"]/"+s);
-
- //drugcode = drugcode.replace(/^[^0-9a-zA-Z]*/g, "");
-
- secondspell = drugcode.substring(startIndex,1);
- if (secondspell == startspell) {
- lst_druglist.row = i;
- lst_druglist.topRow = i;
- //lst_druglist.focusIndex = i;
- //lst_druglist.dispatch("onrowchanged");
- //lst_druglist.dispatch("onclick");
- fGetDetail();
- break;
- }
- }
- }
-
- function setNumericTopIndex() {
- var drugcode = "";
- var secondspell = "";
- var nodeset = lst_druglist.attribute("nodeset");
-
- var s = "drugcd";
-
- if (btn_engnm.selected) {
- s = "engnm";
- startIndex = 0;
- }
-
- for (var i=1; i<= getNodesetCount(nodeset); i++) {
- drugcode = model.getValue(nodeset+"["+i+"]/"+s);
- //secondspell = drugcode.substring(2,1);
- secondspell = drugcode.replace(/^[dD]|[^0-9a-zA-Z]/i, "").substring(0, 1);
-
- if (isNumber(secondspell)) {
- lst_druglist.row = i;
- lst_druglist.topRow = i;
- //lst_druglist.dispatch("onrowchanged");
-
- fGetDetail();
- break;
- }
- }
- }
-
- function isNumber(input) {
- var chars = "0123456789";
- return containsCharsOnly(input,chars);
- }
- function containsCharsOnly(input,chars) {
- for (var inx = 0; inx < input.length; inx++) {
- if (chars.indexOf(input.charAt(inx)) == -1)
- return false;
- }
- return true;
- }
-
- function setInitDisplay() {
- model.removeNodeset("/root/main/druglist");
- model.setValue("/root/main/photinfo/drugphot" ,"");
- model.setValue("/root/main/photinfo/phottitle" ,"");
- model.setValue("/root/main/hbookdetlinfo/todd" ,"");
- model.setValue("/root/main/hbookdetlinfo/instcd" ,"");
- model.setValue("/root/main/hbookdetlinfo/fromdd" ,"");
- model.setValue("/root/main/hbookdetlinfo/comnm" ,"");
- model.setValue("/root/main/hbookdetlinfo/efcysmm" ,"");
- model.setValue("/root/main/hbookdetlinfo/mthdvolsmm" ,"");
- model.setValue("/root/main/hbookdetlinfo/seffcsmm" ,"");
- model.setValue("/root/main/hbookdetlinfo/refcnts" ,"");
- model.setValue("/root/main/hbookdetlinfo/etc" ,"");
- model.setValue("/root/main/hbookdetlinfo/efcynm" ,"");
- model.setValue("/root/main/hbookdetlinfo/hbookseq" ,"");
- model.setValue("/root/main/hbookdetlinfo/drugnm" ,"");
- model.setValue("/root/main/hbookdetlinfo/cost" ,"");
- model.setValue("/root/send/srchinfo1/srchflag" ,"1");
- model.refresh();
- }
-
- function fselSrchFlag(flag){
- if(flag == 1){
- model.setValue("/root/send/srchefcyinfo/srchflag","1");
-
- model.setValue("/root/send/srchefcyinfo/srchefcycd1", "");
- model.setValue("/root/send/srchefcyinfo/srchefcycd2", "");
- model.setValue("/root/send/srchefcyinfo/srchefcycd3", "");
- model.setValue("/root/send/srchefcyinfo/srchefcycd4", "");
- model.setValue("/root/send/srchefcyinfo/srchefcycd5", "");
-
- }else{
- model.setValue("/root/send/srchefcyinfo/srchflag","2");
-
- model.setValue("/root/send/srchefcyinfo/srchcntsflag", "");
- model.setValue("/root/send/srchefcyinfo/srchcnts","");
- }
- }
-
- function fChangeTab(iTab) {
- var txt = "코드";
- if (iTab == 3) {
- txt = "코드";
- lst_druglist.colHidden(lst_druglist.colRef("drugcd")) = false;
- lst_druglist.colHidden(lst_druglist.colRef("engnm")) = true;
-
- model.setValue("/root/send/srchlist/gubun", "code");
- } else if (iTab == 4) {
- txt = "영문명";
- lst_druglist.colHidden(lst_druglist.colRef("drugcd")) = true;
- lst_druglist.colHidden(lst_druglist.colRef("engnm")) = false;
-
- model.setValue("/root/send/srchlist/gubun", "ename");
- }
- lbl_note.text = txt + "을(를) 클릭하면,";
- lbl_command.text = txt + "코드의 첫글자를 누르십시오.";
- }
- ]]>
- </script>
- <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/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:146px; height:14px; ">약품편람 조회</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <switch id="switch1" style="left:0px; top:25px; width:1195px; height:717px; border-color:#c0a8c8; border-width:1; border-style:solid; ">
- <case id="case2" selected="true">
- <!-- 모서리 둥근 사각형 2개 추가 2011.9.22 jmkim -->
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:9px; top:245px; width:200px; height:125px; ">// 모서리 둥근 사각형 2개 추가 2011.9.22 jmkim.</shape>
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:9px; top:95px; width:200px; height:95px; "/>
- <caption id="caption11" style="left:15px; top:10px; width:165px; height:60px; vertical-align:middle; ">
- <![CDATA[내용조회 혹은 효능조회를 선택하고,찾는약품정보를 검색하십시오.]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- ]]>
- </script>
- </caption>
- <caption id="caption6" class="search_name" style="left:12px; top:72px; width:20px; height:17px; "/>
- <select1 id="rdo_srchflag1" ref="/root/send/srchefcyinfo/srchflag" appearance="full" overflow="visible" style="left:35px; top:72px; width:80px; height:18px; border-style:none; ">
- <choices>
- <item>
- <label>내용조회</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fselSrchFlag(1);
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="rdo_srchcntsflag" ref="/root/send/srchefcyinfo/srchcntsflag" appearance="full" cellspacing="10" cols="2" vcellspacing="8" overflow="visible" style="left:18px; top:104px; width:182px; height:76px; 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>
- <item>
- <label>전체</label>
- <value>5</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fselSrchFlag(1);
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="radio1" ref="/root/send/srchefcyinfo/srchflag" appearance="full" overflow="visible" style="left:35px; top:222px; width:80px; height:18px; border-style:none; ">
- <choices>
- <item>
- <label>효능조회</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fselSrchFlag(2);
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_srchefcy1" ref="/root/send/srchefcyinfo/srchefcycd1" appearance="minimal" style="left:23px; top:249px; width:175px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/efcysrchinfo2/efcyinfo1/item">
- <label ref="efcynm"/>
- <value ref="efcycd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fselSrchFlag(2);
- var srchefcycd1= model.getValue("/root/send/srchefcyinfo/srchefcycd1");
- if(srchefcycd1 != ""){
- fSetEfcyCode( "S",srchefcycd1+"%", 2 );
- }else{
- model.removeNodeset("/root/init/efcysrchinfo2/efcyinfo2/item");
- model.removeNodeset("/root/init/efcysrchinfo2/efcyinfo3/item");
- model.removeNodeset("/root/init/efcysrchinfo2/efcyinfo4/item");
- model.removeNodeset("/root/init/efcysrchinfo2/efcyinfo5/item");
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_srchefcy2" ref="/root/send/srchefcyinfo/srchefcycd2" appearance="minimal" style="left:23px; top:273px; width:175px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/efcysrchinfo2/efcyinfo2/item">
- <label ref="efcynm"/>
- <value ref="efcycd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fselSrchFlag(2);
- var srchefcycd2= model.getValue("/root/send/srchefcyinfo/srchefcycd2");
- if(srchefcycd2 != ""){
- fSetEfcyCode( "S",srchefcycd2+"%", 3 );
- }else{
- model.removeNodeset("/root/init/efcysrchinfo2/efcyinfo3/item");
- model.removeNodeset("/root/init/efcysrchinfo2/efcyinfo4/item");
- model.removeNodeset("/root/init/efcysrchinfo2/efcyinfo5/item");
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_srchefcy3" ref="/root/send/srchefcyinfo/srchefcycd3" appearance="minimal" style="left:23px; top:297px; width:175px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/efcysrchinfo2/efcyinfo3/item">
- <label ref="efcynm"/>
- <value ref="efcycd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fselSrchFlag(2);
- var srchefcycd3= model.getValue("/root/send/srchefcyinfo/srchefcycd3");
- if(srchefcycd3 != ""){
- fSetEfcyCode( "S",srchefcycd3+"%", 4 );
- }else{
- model.removeNodeset("/root/init/efcysrchinfo2/efcyinfo4/item");
- model.removeNodeset("/root/init/efcysrchinfo2/efcyinfo5/item");
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_srchefcy4" ref="/root/send/srchefcyinfo/srchefcycd4" appearance="minimal" style="left:23px; top:321px; width:175px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/efcysrchinfo2/efcyinfo4/item">
- <label ref="efcynm"/>
- <value ref="efcycd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fselSrchFlag(2);
- var srchefcycd4= model.getValue("/root/send/srchefcyinfo/srchefcycd4");
- if(srchefcycd4 != ""){
- fSetEfcyCode("S",srchefcycd4+"%", 5);
- }else{
- model.removeNodeset("/root/init/efcysrchinfo2/efcyinfo5/item");
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_srchefcy5" ref="/root/send/srchefcyinfo/srchefcycd5" appearance="minimal" style="left:23px; top:345px; width:175px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/efcysrchinfo2/efcyinfo5/item">
- <label ref="efcynm"/>
- <value ref="efcycd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fselSrchFlag(2);
- ]]>
- </script>
- </select1>
- <!--
- <caption id="caption11" style="left:25px; top:55px; width:165px; height:25px; vertical-align:middle; ">찾는 약품의 유형을 선택하고,</caption>
- <caption id="caption12" style="left:25px; top:80px; width:166px; height:25px; vertical-align:middle; ">찾는 약품을 아래에 입력한 후,</caption>
- <caption id="caption13" style="left:25px; top:105px; width:165px; height:25px; vertical-align:middle; ">Enter Key를 누르십시오.</caption>
- <select1 id="radio2" ref="/root/send/srchinfo1/srchcntsflag" class="radio_search" overflow="visible" appearance="full" vcellspacing="20" style="left:30px; top:150px; width:100px; height:145px; 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>
- </select1>
- //-->
- <button id="btn_sea" class="btn1_letter2" style="left:75px; top:395px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSubmitHBookList(2);
- ]]>
- </script>
- </button>
- <input id="ipt_srchdrugcd" ref="/root/send/srchefcyinfo/srchcnts" class="input_search" navindex="10" imemode="alpha" maxlength="12" style="left:20px; top:195px; width:173px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- fselSrchFlag(1);
- setInputNodeCurText();
- btn_sea.dispatch("DOMActivate");
- model.refresh();
- }
- ]]>
- </script>
- <hint>
- <![CDATA["D"로시작하는 약품코드(12자리가능)]]>
- </hint>
- </input>
- <datagrid id="grd_druglist2" nodeset="/root/main/druglist" autoresize="false" caption="처방입력구분^약품코드^상품명^성분명" colsep="^" colwidth="83, 107, 196, 226" mergecellsfixedrows="bycolrec" rowsep="|" style="left:218px; top:15px; width:630px; height:255px; ">
- <col disabled="true" ref="ordinptflag" type="combo">
- <choices>
- <item>
- <label>처방가능</label>
- <value>A</value>
- </item>
- <item>
- <label>Invisible</label>
- <value>I</value>
- </item>
- <item>
- <label>처방불가</label>
- <value>X</value>
- </item>
- </choices>
- </col>
- <col ref="drugcd"/>
- <col ref="drugnm"/>
- <col ref="comnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSubmitHBookDetl(2);
- ]]>
- </script>
- </datagrid>
- <switch id="switch3" style="left:218px; top:310px; width:967px; height:395px; ">
- <case id="case8" selected="true" style="left:0px; top:0px; width:993px; height:393px; ">
- <caption id="caption7" class="search_name" style="left:15px; top:15px; width:73px; height:17px; ">상품명 :</caption>
- <caption id="caption8" class="search_name" style="left:15px; top:165px; width:73px; height:17px; ">성분 :</caption>
- <caption id="caption9" class="search_name" style="left:15px; top:310px; width:73px; height:17px; ">약가 :</caption>
- <caption id="caption10" class="search_name" style="left:430px; top:15px; width:73px; height:17px; ">용법 :</caption>
- <textarea id="tar_drugnm2" ref="/root/main/hbookdetlinfo/drugnm" scroll="autovscroll" editable="false" style="left:11px; top:35px; width:412px; height:120px; font-size:10pt; line-spacing:5; "/>
- <textarea id="tar_comnm2" ref="/root/main/hbookdetlinfo/comnm" scroll="autovscroll" editable="false" style="left:11px; top:185px; width:412px; height:110px; font-size:10pt; line-spacing:5; "/>
- <textarea id="tar_cost2" ref="/root/main/hbookdetlinfo/cost" scroll="autovscroll" editable="false" style="left:11px; top:335px; width:412px; height:45px; font-size:10pt; line-spacing:5; "/>
- <textarea id="tar_mthdvolsmm2" ref="/root/main/hbookdetlinfo/mthdvolsmm" scroll="autovscroll" editable="false" style="left:425px; top:35px; width:529px; height:345px; font-size:10pt; line-spacing:5; "/>
- </case>
- <case id="case9">
- <caption id="caption12" class="search_name" style="left:20px; top:15px; width:125px; height:17px; ">약리작용 및 효능</caption>
- <textarea id="tar_efcysmm2" ref="/root/main/hbookdetlinfo/efcysmm" scroll="autovscroll" editable="false" style="left:25px; top:40px; width:910px; height:345px; font-size:10pt; line-spacing:5; "/>
- </case>
- <case id="case10">
- <caption id="caption14" class="search_name" style="left:20px; top:15px; width:125px; height:17px; ">부작용</caption>
- <textarea id="tar_seffcsmm2" ref="/root/main/hbookdetlinfo/seffcsmm" scroll="autovscroll" editable="false" style="left:25px; top:40px; width:915px; height:345px; font-size:10pt; line-spacing:5; "/>
- </case>
- <case id="case11">
- <caption id="caption26" class="search_name" style="left:20px; top:10px; width:125px; height:17px; ">주의/금기</caption>
- <caption id="caption27" class="search_name" style="left:20px; top:220px; width:125px; height:17px; ">참고문헌</caption>
- <textarea id="tar_etc2" ref="/root/main/hbookdetlinfo/etc" scroll="autovscroll" editable="false" style="left:25px; top:35px; width:915px; height:175px; font-size:10pt; line-spacing:5; "/>
- <textarea id="tar_refcnts2" ref="/root/main/hbookdetlinfo/refcnts" scroll="autovscroll" editable="false" style="left:25px; top:245px; width:915px; height:140px; font-size:10pt; line-spacing:5; "/>
- </case>
- </switch>
- <button id="btn_efcy2" class="btn_sw" group="tab2" selected="false" style="left:298px; top:289px; width:126px; height:22px; ">
- <caption>약리작용 및 효능</caption>
- <toggle case="case9" ev:event="onclick"/>
- </button>
- <button id="btn_side2" class="btn_sw" group="tab2" selected="false" style="left:424px; top:289px; width:68px; height:22px; ">
- <caption>부작용</caption>
- <toggle case="case10" ev:event="onclick"/>
- </button>
- <button id="btn_ref2" class="btn_sw" group="tab2" selected="false" style="left:492px; top:289px; width:138px; height:22px; ">
- <caption>주의/금기/참고문헌</caption>
- <toggle case="case11" ev:event="onclick"/>
- </button>
- <group id="grp_totimg2" visibility="hidden" style="left:373px; top:315px; width:602px; height:225px; border-style:solid; ">
- <img id="img_totphot2" ref="/root/main/photinfo/drugphot" style="left:0px; top:-1px; width:600px; height:192px; border-color:#B0B0B0; border-style:solid; "/>
- <output id="opt_tottitle2" ref="/root/main/photinfo/phottitle" style="left:0px; top:198px; width:599px; height:19px; font-weight:bold; color:#ff0000; text-align:center; "/>
- </group>
- <group id="grp_img2" style="left:850px; top:15px; width:335px; height:255px; border-style:solid; ">
- <img id="img_phot2" ref="/root/main/photinfo/drugphot" style="left:0px; top:55px; width:333px; height:115px; background-stretch:stretch; border-color:#B0B0B0; border-style:solid; "/>
- <output id="opt_title2" ref="/root/main/photinfo/phottitle" style="left:0px; top:180px; width:333px; height:19px; font-weight:bold; color:#ff0000; text-align:center; "/>
- <button id="button2" class="btn2_letter3" style="left:106px; top:210px; width:53px; height:19px; ">
- <caption>+확대</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_totimg2.visible = true;
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter3" style="left:169px; top:210px; width:53px; height:19px; ">
- <caption>-축소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_totimg2.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_base2" class="btn_sw" group="tab2" selected="true" style="left:218px; top:289px; width:80px; height:22px; ">
- <caption>기본정보</caption>
- <toggle case="case8" ev:event="onclick"/>
- </button>
- <caption id="lbl_hosout" visibility="hidden" style="left:19px; top:455px; width:161px; height:17px; font-weight:bold; color:#000000; ">* 원외전용약제(관리분류)</caption>
- <caption id="caption13" class="search_name" style="left:12px; top:221px; width:20px; height:17px; "/>
- <!-- 원내원외구분, 품절삭제여부, 산제불가여부, 처방분할금지여부 표시토록 수정 2011.9.22 jmkim -->
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:9px; top:480px; width:200px; height:215px; background-color:#ffefff; ">// 원내원외구분, 품절삭제여부, 산제불가여부, 처방분할금지여부 표시토록 수정 2011.9.22 jmkim</shape>
- <caption id="caption32" class="search_name" style="left:14px; top:485px; width:102px; height:17px; ">원내원외구분</caption>
- <textarea id="output1" ref="/root/hidden/hosinflag" scroll="autovscroll" editable="false" style="left:29px; top:505px; width:170px; height:19px; text-align:center; vertical-align:middle; "/>
- <caption id="caption33" class="search_name" style="left:14px; top:535px; width:102px; height:17px; ">품절삭제여부</caption>
- <textarea id="output2" ref="/root/hidden/absnyn" scroll="autovscroll" editable="false" style="left:29px; top:555px; width:170px; height:19px; text-align:center; vertical-align:middle; "/>
- <caption id="caption34" class="search_name" style="left:14px; top:585px; width:102px; height:17px; ">산제불가여부</caption>
- <textarea id="output3" ref="/root/hidden/powdimpsi" scroll="autovscroll" editable="false" style="left:29px; top:605px; width:170px; height:19px; text-align:center; vertical-align:middle; "/>
- <caption id="caption35" class="search_name" style="left:14px; top:640px; width:128px; height:17px; ">처방분할금지여부</caption>
- <textarea id="output4" ref="/root/hidden/devidebanyn" scroll="autovscroll" editable="false" style="left:29px; top:660px; width:170px; height:19px; text-align:center; vertical-align:middle; "/>
- </case>
- <case id="case1" style="left:0px; top:0px; width:1195px; height:717px; ">
- <switch id="switch2" style="left:373px; top:310px; width:810px; height:405px; ">
- <case id="case4" selected="true" style="left:0px; top:0px; width:808px; height:403px; ">
- <caption id="caption1" class="search_name" style="left:12px; top:15px; width:73px; height:17px; ">상품명 :</caption>
- <caption id="caption2" class="search_name" style="left:12px; top:165px; width:73px; height:17px; ">성분 :</caption>
- <caption id="caption3" class="search_name" style="left:12px; top:310px; width:73px; height:17px; ">약가 :</caption>
- <caption id="caption4" class="search_name" style="left:382px; top:15px; width:73px; height:17px; ">용법 :</caption>
- <textarea id="tar_drugnm1" ref="/root/main/hbookdetlinfo/drugnm" editable="false" style="left:17px; top:35px; width:350px; height:120px; font-size:12pt; line-spacing:5; "/>
- <textarea id="tar_comnm1" ref="/root/main/hbookdetlinfo/comnm" editable="false" style="left:17px; top:185px; width:350px; height:110px; font-size:12pt; line-spacing:5; "/>
- <textarea id="tar_cost1" ref="/root/main/hbookdetlinfo/cost" editable="false" style="left:17px; top:335px; width:350px; height:45px; font-size:12pt; line-spacing:5; "/>
- <textarea id="tar_mthdvolsmm1" ref="/root/main/hbookdetlinfo/mthdvolsmm" editable="false" style="left:387px; top:35px; width:405px; height:345px; font-size:12pt; line-spacing:5; "/>
- </case>
- <case id="case5">
- <caption id="caption5" class="search_name" style="left:15px; top:15px; width:125px; height:17px; ">약리작용 및 효능</caption>
- <textarea id="tar_efcysmm1" ref="/root/main/hbookdetlinfo/efcysmm" editable="false" style="left:20px; top:40px; width:770px; height:345px; font-size:12pt; line-spacing:5; "/>
- </case>
- <case id="case6">
- <caption id="caption23" class="search_name" style="left:15px; top:15px; width:125px; height:17px; ">부작용</caption>
- <textarea id="tar_seffcsmm1" ref="/root/main/hbookdetlinfo/seffcsmm" editable="false" style="left:20px; top:40px; width:770px; height:345px; font-size:12pt; line-spacing:5; "/>
- </case>
- <case id="case7">
- <caption id="caption24" class="search_name" style="left:15px; top:10px; width:125px; height:17px; ">주의/금기</caption>
- <caption id="caption25" class="search_name" style="left:15px; top:220px; width:125px; height:17px; ">참고문헌</caption>
- <textarea id="tar_etc1" ref="/root/main/hbookdetlinfo/etc" editable="false" style="left:20px; top:35px; width:770px; height:175px; font-size:12pt; "/>
- <textarea id="tar_refcnts1" ref="/root/main/hbookdetlinfo/refcnts" editable="false" style="left:20px; top:245px; width:770px; height:140px; font-size:12pt; line-spacing:5; "/>
- </case>
- </switch>
- <button id="btn_base1" class="btn_sw" group="tab1" selected="true" style="left:373px; top:289px; width:77px; height:22px; ">
- <caption>기본정보</caption>
- <toggle case="case4" ev:event="onclick"/>
- </button>
- <group id="grp_img1" style="left:850px; top:15px; width:335px; height:255px; border-style:solid; ">
- <button id="button1" class="btn2_letter3" style="left:176px; top:210px; width:53px; height:19px; ">
- <caption>-축소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_totimg1.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <treeview id="trv_druglist" ref="/root/send/srchinfo1/srchefcycd" expanddepth="1" itemsettype="depth" style="left:15px; top:10px; width:360px; height:700px; border-color:#c0a8c8; border-width:1; border-style:solid; ">
- <itemset nodeset="/root/main/efcylist/item">
- <label ref="efcynm"/>
- <value ref="efcycd"/>
- <depth ref="efcylevel"/>
- </itemset>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSubmitHBookList2(1);
- ]]>
- </script>
- </treeview>
- <datagrid id="grd_druglist1" nodeset="/root/main/druglist" autoresize="false" caption="처방입력구분^약품코드^상품명^성분명" colsep="^" colwidth="80, 90, 150, 130" mergecellsfixedrows="bycolrec" rowsep="|" style="left:375px; top:15px; width:475px; height:255px; ">
- <col disabled="true" ref="ordinptflag" type="combo">
- <choices>
- <item>
- <label>처방가능</label>
- <value>A</value>
- </item>
- <item>
- <label>Invisible</label>
- <value>I</value>
- </item>
- <item>
- <label>처방불가</label>
- <value>X</value>
- </item>
- </choices>
- </col>
- <col ref="drugcd"/>
- <col ref="drugnm"/>
- <col ref="comnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(!isDataCell()) return;
- fSubmitHBookDetl(1);
- ]]>
- </script>
- </datagrid>
- <button id="button25" class="btn2_letter3" style="left:961px; top:225px; width:53px; height:19px; ">
- <caption>+확대</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_totimg1.visible = true;
- ]]>
- </script>
- </button>
- <button id="btn_efcy1" class="btn_sw" group="tab1" selected="false" style="left:450px; top:289px; width:123px; height:22px; ">
- <caption>약리작용 및 효능</caption>
- <toggle case="case5" ev:event="onclick"/>
- </button>
- <button id="btn_side1" class="btn_sw" group="tab1" selected="false" style="left:573px; top:289px; width:65px; height:22px; ">
- <caption>부작용</caption>
- <toggle case="case6" ev:event="onclick"/>
- </button>
- <button id="btn_ref1" class="btn_sw" group="tab1" selected="false" style="left:638px; top:289px; width:135px; height:22px; ">
- <caption>주의/금기/참고문헌</caption>
- <toggle case="case7" ev:event="onclick"/>
- </button>
- <group id="grp_totimg1" style="left:375px; top:320px; width:602px; height:225px; border-style:solid; ">
- <img id="img_totphot1" ref="/root/main/photinfo/drugphot" style="left:0px; top:-1px; width:600px; height:192px; border-color:#B0B0B0; border-style:solid; "/>
- <output id="opt_tottitle1" ref="/root/main/photinfo/phottitle" style="left:-1px; top:197px; width:600px; height:19px; font-weight:bold; color:#ff0000; text-align:center; "/>
- </group>
- <img id="img_phot1" ref="/root/main/photinfo/drugphot" style="left:851px; top:65px; width:333px; height:115px; background-stretch:stretch; border-color:#B0B0B0; border-style:solid; "/>
- <output id="opt_title1" ref="/root/main/photinfo/phottitle" style="left:850px; top:190px; width:333px; height:19px; font-weight:bold; color:#ff0000; text-align:center; "/>
- </case>
- <case id="case3">
- <caption id="lbl_note" style="left:10px; top:30px; width:165px; height:25px; vertical-align:middle; ">코드를 클릭하면,</caption>
- <caption id="caption21" style="left:10px; top:55px; width:166px; height:25px; vertical-align:middle; ">약품정보가 표시됩니다.</caption>
- <caption id="lbl_command" style="left:265px; top:25px; width:200px; height:25px; font-weight:bold; vertical-align:middle; ">코드의 첫글자를 누르십시오.</caption>
- <button id="button51" class="btn2_letter2" style="left:315px; top:55px; width:42px; height:19px; ">
- <caption>B</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("B");
- ]]>
- </script>
- </button>
- <button id="button16" class="btn2_letter2" style="left:450px; top:55px; width:42px; height:19px; ">
- <caption>E</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("E");
- ]]>
- </script>
- </button>
- <button id="button17" class="btn2_letter2" style="left:270px; top:55px; width:42px; height:19px; ">
- <caption>A</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("A");
- ]]>
- </script>
- </button>
- <button id="button18" class="btn2_letter2" style="left:540px; top:55px; width:42px; height:19px; ">
- <caption>G</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("G");
- ]]>
- </script>
- </button>
- <button id="button19" class="btn2_letter2" style="left:495px; top:55px; width:42px; height:19px; ">
- <caption>F</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("F");
- ]]>
- </script>
- </button>
- <button id="button20" class="btn2_letter2" style="left:585px; top:55px; width:42px; height:19px; ">
- <caption>H</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("H");
- ]]>
- </script>
- </button>
- <button id="button21" class="btn2_letter2" style="left:630px; top:55px; width:42px; height:19px; ">
- <caption>I</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("I");
- ]]>
- </script>
- </button>
- <button id="button35" class="btn2_letter2" style="left:405px; top:55px; width:42px; height:19px; ">
- <caption>D</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("D");
- ]]>
- </script>
- </button>
- <button id="button36" class="btn2_letter2" style="left:360px; top:55px; width:42px; height:19px; ">
- <caption>C</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("C");
- ]]>
- </script>
- </button>
- <button id="button38" class="btn2_letter2" style="left:675px; top:55px; width:42px; height:19px; ">
- <caption>J</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("J");
- ]]>
- </script>
- </button>
- <button id="button39" class="btn2_letter2" style="left:675px; top:85px; width:42px; height:19px; ">
- <caption>T</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("T");
- ]]>
- </script>
- </button>
- <button id="button40" class="btn2_letter2" style="left:450px; top:85px; width:42px; height:19px; ">
- <caption>O</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("O");
- ]]>
- </script>
- </button>
- <button id="button41" class="btn2_letter2" style="left:270px; top:85px; width:42px; height:19px; ">
- <caption>K</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("K");
- ]]>
- </script>
- </button>
- <button id="button43" class="btn2_letter2" style="left:540px; top:85px; width:42px; height:19px; ">
- <caption>Q</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("Q");
- ]]>
- </script>
- </button>
- <button id="button44" class="btn2_letter2" style="left:495px; top:85px; width:42px; height:19px; ">
- <caption>P</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("P");
- ]]>
- </script>
- </button>
- <button id="button45" class="btn2_letter2" style="left:315px; top:85px; width:42px; height:19px; ">
- <caption>L</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("L");
- ]]>
- </script>
- </button>
- <button id="button46" class="btn2_letter2" style="left:585px; top:85px; width:42px; height:19px; ">
- <caption>R</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("R");
- ]]>
- </script>
- </button>
- <button id="button47" class="btn2_letter2" style="left:630px; top:85px; width:42px; height:19px; ">
- <caption>S</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("S");
- ]]>
- </script>
- </button>
- <button id="button48" class="btn2_letter2" style="left:405px; top:85px; width:42px; height:19px; ">
- <caption>N</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("N");
- ]]>
- </script>
- </button>
- <button id="button49" class="btn2_letter2" style="left:360px; top:85px; width:42px; height:19px; ">
- <caption>M</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("M");
- ]]>
- </script>
- </button>
- <button id="button50" class="btn2_letter2" style="left:405px; top:115px; width:42px; height:19px; ">
- <caption>X</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("X");
- ]]>
- </script>
- </button>
- <button id="button52" class="btn2_letter2" style="left:360px; top:115px; width:42px; height:19px; ">
- <caption>W</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("W");
- ]]>
- </script>
- </button>
- <button id="button54" class="btn2_letter2" style="left:450px; top:115px; width:42px; height:19px; ">
- <caption>Y</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("Y");
- ]]>
- </script>
- </button>
- <button id="button55" class="btn2_letter2" style="left:270px; top:115px; width:42px; height:19px; ">
- <caption>U</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("U");
- ]]>
- </script>
- </button>
- <button id="button57" class="btn2_letter2" style="left:495px; top:115px; width:42px; height:19px; ">
- <caption>Z</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("Z");
- ]]>
- </script>
- </button>
- <button id="button58" class="btn2_letter2" style="left:315px; top:115px; width:42px; height:19px; ">
- <caption>V</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTopIndex("V");
- ]]>
- </script>
- </button>
- <button id="button22" class="btn2_letter5" style="left:540px; top:115px; width:75px; height:19px; ">
- <caption>숫자로 시작</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setNumericTopIndex();
- ]]>
- </script>
- </button>
- <datagrid id="lst_druglist" nodeset="/root/main/druglist" class="local_datagrid" caption="약품코드^영문명" colsep="^" colwidth="213, 213" mergecellsfixedrows="bycolrec" rowheight="0" rowsep="|" style="left:15px; top:85px; width:235px; height:625px; ">
- <col ref="drugcd"/>
- <col ref="engnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (!lst_druglist.isCell(event.target) || lst_druglist.row < 1) {
- return;
- }
-
- fGetDetail();
-
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- lst_druglist.select(-1,-1) = true;
- ]]>
- </script>
- </datagrid>
- <switch id="switch4" style="left:262px; top:305px; width:908px; height:400px; ">
- <case id="case12" selected="true" style="left:0px; top:0px; width:993px; height:398px; ">
- <caption id="caption15" class="search_name" style="left:15px; top:15px; width:73px; height:17px; ">상품명 :</caption>
- <caption id="caption16" class="search_name" style="left:15px; top:165px; width:73px; height:17px; ">성분 :</caption>
- <caption id="caption17" class="search_name" style="left:15px; top:310px; width:73px; height:17px; ">약가 :</caption>
- <caption id="caption18" class="search_name" style="left:460px; top:15px; width:73px; height:17px; ">용법 :</caption>
- <textarea id="tar_drugnm3" ref="/root/main/hbookdetlinfo/drugnm" editable="false" style="left:20px; top:35px; width:420px; height:120px; font-size:12pt; line-spacing:5; "/>
- <textarea id="tar_comnm3" ref="/root/main/hbookdetlinfo/comnm" editable="false" style="left:20px; top:185px; width:420px; height:110px; font-size:12pt; line-spacing:5; "/>
- <textarea id="tar_cost3" ref="/root/main/hbookdetlinfo/cost" editable="false" style="left:20px; top:335px; width:420px; height:45px; font-size:12pt; line-spacing:5; "/>
- <textarea id="tar_mthdvolsmm3" ref="/root/main/hbookdetlinfo/mthdvolsmm" editable="false" style="left:465px; top:35px; width:420px; height:345px; font-size:12pt; line-spacing:5; "/>
- </case>
- <case id="case13">
- <caption id="caption28" class="search_name" style="left:20px; top:15px; width:125px; height:17px; ">약리작용 및 효능</caption>
- <textarea id="tar_efcysmm3" ref="/root/main/hbookdetlinfo/efcysmm" editable="false" style="left:25px; top:40px; width:850px; height:345px; font-size:12pt; line-spacing:5; "/>
- </case>
- <case id="case14">
- <caption id="caption29" class="search_name" style="left:20px; top:15px; width:125px; height:17px; ">부작용</caption>
- <textarea id="tar_seffcsmm3" ref="/root/main/hbookdetlinfo/seffcsmm" editable="false" style="left:25px; top:40px; width:850px; height:345px; font-size:12pt; line-spacing:5; "/>
- </case>
- <case id="case15" style="left:0px; top:0px; width:993px; height:398px; ">
- <caption id="caption30" class="search_name" style="left:20px; top:10px; width:125px; height:17px; ">주의/금기</caption>
- <caption id="caption31" class="search_name" style="left:20px; top:220px; width:125px; height:17px; ">참고문헌</caption>
- <textarea id="tar_etc3" ref="/root/main/hbookdetlinfo/etc" editable="false" style="left:25px; top:35px; width:850px; height:175px; font-size:12pt; line-spacing:5; "/>
- <textarea id="tar_refcnts3" ref="/root/main/hbookdetlinfo/refcnts" editable="false" style="left:25px; top:245px; width:850px; height:140px; font-size:12pt; line-spacing:5; "/>
- </case>
- </switch>
- <button id="btn_efcy3" class="btn_sw" group="tab3" selected="false" style="left:345px; top:284px; width:123px; height:22px; ">
- <caption>약리작용 및 효능</caption>
- <toggle case="case13" ev:event="onclick"/>
- </button>
- <button id="btn_side3" class="btn_sw" group="tab3" selected="false" style="left:468px; top:284px; width:67px; height:22px; ">
- <caption>부작용</caption>
- <toggle case="case14" ev:event="onclick"/>
- </button>
- <button id="btn_ref3" class="btn_sw" group="tab3" selected="false" style="left:535px; top:284px; width:139px; height:22px; ">
- <caption>주의/금기/참고문헌</caption>
- <toggle case="case15" ev:event="onclick"/>
- </button>
- <group id="grp_totimg3" style="left:373px; top:285px; width:602px; height:225px; border-style:solid; ">
- <img id="img_totphot3" ref="/root/main/photinfo/drugphot" style="left:0px; top:0px; width:600px; height:192px; border-color:#B0B0B0; border-style:solid; "/>
- <output id="opt_tottitle3" ref="/root/main/photinfo/phottitle" style="left:0px; top:198px; width:599px; height:19px; font-weight:bold; color:#ff0000; text-align:center; "/>
- </group>
- <group id="grp_img3" style="left:850px; top:15px; width:335px; height:255px; border-style:solid; ">
- <button id="button28" class="btn2_letter3" style="left:121px; top:210px; width:53px; height:19px; ">
- <caption>+확대</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_totimg3.visible = true;
- ]]>
- </script>
- </button>
- <img id="img_phot3" ref="/root/main/photinfo/drugphot" style="left:0px; top:55px; width:333px; height:115px; background-stretch:stretch; border-color:#B0B0B0; border-style:solid; "/>
- <output id="opt_title3" ref="/root/main/photinfo/phottitle" style="left:0px; top:180px; width:333px; height:19px; font-weight:bold; color:#ff0000; text-align:center; "/>
- <button id="button4" class="btn2_letter3" style="left:179px; top:210px; width:53px; height:19px; ">
- <caption>-축소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_totimg3.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_base3" class="btn_sw" group="tab3" selected="true" style="left:262px; top:284px; width:83px; height:22px; ">
- <caption>기본정보</caption>
- <toggle case="case12" ev:event="onclick"/>
- </button>
- </case>
- </switch>
- <button id="btn_cnts" class="btn_sw" group="tab" selected="true" style="left:0px; top:4px; width:49px; height:22px; ">
- <caption>목차</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setInitDisplay();
- btn_base1.selected = true;
- ]]>
- </script>
- </button>
- <button id="btn_index" class="btn_sw" group="tab" selected="false" style="left:49px; top:4px; width:49px; height:22px; ">
- <caption>색인</caption>
- <toggle case="case2" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setInitDisplay();
- btn_base2.selected = true;
- ]]>
- </script>
- </button>
- <button id="btn_alldrug" class="btn_sw" group="tab" selected="false" style="left:98px; top:4px; width:112px; height:22px; ">
- <caption>전체코드중찾기</caption>
- <toggle case="case3" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setInitDisplay();
- btn_base3.selected = true;
- btn_engnm.selected = false;
- fChangeTab(3);
- submit("TRADB01904");
- ]]>
- </script>
- </button>
- <button id="btn_engnm" class="btn_sw" group="tab" selected="false" style="left:210px; top:4px; width:112px; height:22px; ">
- <caption>전체약품명찾기</caption>
- <toggle case="case3" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setInitDisplay();
- btn_base3.selected = false;
- btn_engnm.selected = true;
- fChangeTab(4);
- submit("TRADB01904");
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button33" class="btn4_letter10" visibility="hidden" style="left:1033px; top:5px; width:152px; height:22px; ">
- <caption>신규/품절/삭제약 조회</caption>
- </button>
- <button id="btn_prt" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var drugrow = grd_druglist2.row;
- model.setValue("root/send/srchefcyinfo/srchdrugcd" , model.getValue("/root/main/druglist[" + drugrow + "]/drugcd"));
- submit("TRADB01906");
- //exeReportPreview("RPADB01902", "XMLSTR", "", "", "true","","","","","true");
- exeReportPreview("RPADB01902", "XMLSTR", "");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn6_letter4" style="left:65px; top:5px; width:56px; height:22px; ">
- <caption>전체출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRADB01906");
- //exeReportPreview("RPADB01902", "XMLSTR", "", "", "true","","","","","true");
- exeReportPreview("RPADB01902", "XMLSTR", "");
- ]]>
- </script>
- </button>
- </group>
- <select id="chk_hosout" ref="/root/send/srchefcyinfo/ishosout" overflow="visible" appearance="full" checkvalue="Y,N" style="left:19px; top:415px; width:101px; height:20px; ">
- <choices>
- <item>
- <label>원외전용</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </xhtml:body>
- </xhtml:html>
|