123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930 |
- <?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>
- <sumdruglist>
- </sumdruglist>
- <delivedruglist>
- </delivedruglist>
- <ordexchdruglist>
- <prcpinfo/>
- </ordexchdruglist>
- </main>
- <send>
- <srchdata>
- <deptflag/>
- <srchdeptcd/>
- <srcdrugcd/>
- <srchfromdd/>
- <srchtodd/>
- <srchprcpcd/>
- <srchorddeptcd/>
- <srchorddeptflag/>
- <drugcd/>
- <srchfromtm>0000</srchfromtm>
- <srchtotm>2400</srchtotm>
- <sumdt/>
- <userid/>
- <instcd/>
- <stocdeptcd/>
- <deliveddrugcd/>
- </srchdata>
- <req>
- <reqsumdrug/>
- <reqdelivedrug/>
- <drugcd/>
- <reqexchdrug/>
- </req>
- <delivedata>
- <drugcd/>
- <drugnm/>
- <orddeptnm/>
- </delivedata>
- <deptdata/>
- </send>
- <init>
- <orddept>
- <dept>
- <chk/>
- <depthngnm/>
- <deptcd/>
- <orddeptflag/>
- </dept>
- </orddept>
- <baseinfo>
- <unit>
- <A0599>
- <cdid/>
- <cdnm/>
- </A0599>
- </unit>
- </baseinfo>
- <misdeptlist>
- <deptlist>
- <deptnm/>
- <deptcd/>
- </deptlist>
- </misdeptlist>
- <exchdruglist>
- <druglist>
- <drugnm/>
- <drugcd/>
- </druglist>
- </exchdruglist>
- </init>
- <hidden>
- <receivedrugcd>/root/hidden/drugcd</receivedrugcd>
- <drugcd/>
- <count/>
- <sumdrugcd/>
- <prntdruglist/>
- </hidden>
- <temp>
- <receivedata>
- <receiveref/>
- <srchflag/>
- <srchcnts/>
- <drugkind/>
- </receivedata>
- <selrow/>
- <druginfo/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList( new Array("A0599") ,new Array("/root/init/baseinfo/unit"));
- // 교환약 조회
- submit("TRADB00601");
- submit("TRADB00604");
- submit("TRADB00605");
-
- // 출고부서 조회
- submit("TRADT01106");
- var dutplceinstcd = getUserInfo("dutplceinstcd");
- if(dutplceinstcd == "012") {
- combo1.select(1);
- } else {
- combo1.select(0);
- }
- model.setValue("/root/send/srchdata/srchfromdd", new Date().getAddDate(-3, "M").getDateFormat());
- model.setValue("/root/send/srchdata/srchtodd", getCurrentDate());
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var chk_cnt = 0;
-
- function fSelDeptchk(){
- if(model.getValue("/root/send/srchdata/srchdeptcd") != "" && model.getValue("/root/send/srchdata/deptflag") != "" ) {
- return true;
- } else {
- return false;
- }
- }
-
- function fMakeDeliveData(lastrow){
-
- if(!isNull(lastrow)) {
- model.makeNode("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]");
- //grd_ordexchdrug.addStatus(grd_ordexchdrug.lastrow, "insert");
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/delivedt", getCurrentDate()+ getCurrentTime());
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/delivedeptcd", model.getValue("/root/send/srchdata/srchdeptcd"));
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/wardnm", rdo_deptcd.label);
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/pid", "-");
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/ioflag", "-");
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/prcpdd", getCurrentDate());
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/execprcpuniqno", "0");
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/prcpcd", model.getValue("/root/send/srchdata/deliveddrugcd"));
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/prcpkindcd", "-");
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/prcpno", "0");
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/prcphistno", "0");
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/execprcpno", "0");
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/delivestat", "D");
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/prcpvol", "0");
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/prcpvolunit", "-");
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/prcpqty", "0");
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/prcpqtyunit", "-");
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/prcptims", "0");
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/prcpdayno", "0");
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/deliveqty", ""); // 불출수량 입력해야 함
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/acmlqty", "0");
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/spreqty", "0");
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/stocdeptcd", model.getValue("/root/send/srchdata/stocdeptcd"));
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/sumprcpcd", combo2.value);
- grd_ordexchdrug.refresh();
- }
- }
- ]]>
- </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/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <submission id="TRZBC00101"/>
- <submission id="TRADT10321" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/init/orddept"/>
- <submission id="TRADB00601" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/main"/>
- <submission id="TRADB00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/ordexchdruglist"/>
- <submission id="TXADB00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/main"/>
- <submission id="TRADB00603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" resultref="/root/temp/druginfo"/>
- <submission id="TXADB00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordexchdruglist"/>
- <submission id="TRADT01106" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/misdeptlist"/>
- <submission id="TRADB00604" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/main/delivedruglist"/>
- <submission id="TRADB00605" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/exchdruglist"/>
- <submission id="TRADT10206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sumlistinfo" replace="instance" resultref="/root/init/sumtmflaglist"/>
- <submission id="TRADB00606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" resultref="/root/hidden/prntdruglist"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" 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:140px; height:13px; ">모아서 주는 약 관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1194px; height:771px; ">
- <button id="button1" class="btn_sw" group="tab" selected="true" style="left:60px; top:50px; width:60px; height:22px; ">
- <caption>집계내역</caption>
- <toggle case="case2" ev:event="onclick"/>
- </button>
- <switch id="switch1" style="left:0px; top:71px; width:1190px; height:697px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1">
- <button id="button50" class="btn2_letter3" visibility="hidden" style="left:1029px; top:5px; width:53px; height:19px; ">
- <caption>행복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var chkrow = 0;
-
- copyNodesetType("/root/main/delivedruglist/delivedruglist[" + grd_delivedrug.row + "]", "/root/main/delivedruglist/delivedruglist[" + grd_delivedrug.row + "]", "after");
- model.refresh();
-
- chkrow = grd_delivedrug.rows-1;
- grd_delivedrug.addStatus(chkrow, "insert");
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" visibility="hidden" style="left:974px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_delivedrug.addItem();
- model.setValue("/root/main/delivedruglist/delivedruglist["+ grd_delivedrug.row +"]/usefromdd", getCurrentDate());
- if(model.getValue("/root/hidden/sumdrugcd") != "" ) {
- model.setValue("/root/main/delivedruglist/delivedruglist["+ grd_delivedrug.row +"]/sumdrugcd", model.getValue("/root/hidden/sumdrugcd"));
- }
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1084px; top:5px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //grd_delivedrug.addStatus(grd_delivedrug.row,"delete");
- grd_sumdrug.addStatus(grd_sumdrug.row,"delete");
-
- ]]>
- </script>
- </button>
- <button id="button90" class="btn5_letter2" style="left:1141px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*for(var i = grd_delivedrug.fixedRows; i < grd_delivedrug.rows; i++) {
- if(model.getValue("/root/main/delivedruglist/delivedruglist["+ i +"]/sumdrugcd") == "") {
- if(model.getValue("/root/hidden/sumdrugcd") == "") {
- messageBox("불출할 약품정보를", "C002");
- return;
- } else {
- model.setValue("/root/main/delivedruglist/delivedruglist["+ i +"]/sumdrugcd", model.getValue("/root/hidden/sumdrugcd"));
- }
- }
- }
- model.refresh();
- //model.setValue("/root/send/req/reqsumdrug", grd_sumdrug.getUpdateData());
- model.setValue("/root/send/req/reqdelivedrug", grd_delivedrug.getUpdateData());
- submit("TXADB00601");*/
- /*for(var i = grd_sumdrug.fixedRows; i < grd_sumdrug.rows; i++) {
- if(model.getValue("/root/main/sumdruglist/sumdruglist["+ i +"]/sumtodeliveqty") == "") {
- messageBox("수량환산을", "C001");
- return;
- }
- }*/
- model.setValue("/root/send/req/reqsumdrug", grd_sumdrug.getUpdateData());
- submit("TXADB00601");
-
- ]]>
- </script>
- </button>
- <caption id="caption6" class="tit_2" style="left:6px; top:8px; width:188px; height:13px; ">집계할 약품정보</caption>
- <caption id="caption7" class="tit_2" style="left:600px; top:8px; width:188px; height:13px; ">불출할 약품정보</caption>
- <datagrid id="grd_sumdrug" nodeset="/root/main/sumdruglist/sumdruglist" backcoloralternate="#f0f0f0" caption="집계할 약품코드^한글상품명^용량^단위^수량^단위^수량환산^usefromdd^cdflag^불출할 약품코드^한글상품명^용량^단위^수량^단위" colsep="^" colwidth="105, 220, 59, 40, 59, 40, 55, 5, 5, 105, 220, 70, 55, 70, 55" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:1px; top:30px; width:1185px; height:662px; ">
- <col disabled="true" ref="drugcd"/>
- <col ref="drugnm"/>
- <col ref="exchvol"/>
- <col disabled="true" ref="exchvolunit" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/unit/A0599">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="exchqty"/>
- <col disabled="true" ref="exchqtyunit" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/unit/A0599">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="sumtodeliveqty" type="input"/>
- <col ref="usefromdd"/>
- <col ref="cdflag"/>
- <col ref="deliveddrugcd" type="inputbutton"/>
- <col ref="deliveddrugnm"/>
- <col ref="delivedexchvol"/>
- <col disabled="true" ref="delivedexchvolunit" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/unit/A0599">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="delivedexchqty"/>
- <col disabled="true" ref="delivedexchqtyunit" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/unit/A0599">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
- if ( grd_sumdrug.col == grd_sumdrug.colRef("deliveddrugcd") ){
- model.setValue("/root/temp/receivedata/receiveref", model.getValue("/root/hidden/receivedrugcd"));
- model.setValue("/root/temp/receivedata/srchflag", "");
- model.setValue("/root/temp/receivedata/srchcnts", "");
- model.setValue("/root/temp/receivedata/drugkind","");
- modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
-
- if ( model.getValue("/root/hidden/drugcd") ==""){
- return;
- } else {
- model.setValue("/root/main/sumdruglist/sumdruglist["+ grd_sumdrug.row +"]/deliveddrugcd", model.getValue("/root/hidden/drugcd") );
- model.setValue("/root/send/srchdata/srcdrugcd", model.getValue("/root/hidden/drugcd") );
- if(submit("TRADB00603")) {
- model.setValue("/root/main/sumdruglist/sumdruglist["+ grd_sumdrug.row +"]/deliveddrugnm", model.getValue("/root/temp/druginfo/druginfo/drugnm"));
- model.setValue("/root/main/sumdruglist/sumdruglist["+ grd_sumdrug.row +"]/delivedexchvol", model.getValue("/root/temp/druginfo/druginfo/exchvol"));
- model.setValue("/root/main/sumdruglist/sumdruglist["+ grd_sumdrug.row +"]/delivedexchvolunit", model.getValue("/root/temp/druginfo/druginfo/exchvolunit"));
- model.setValue("/root/main/sumdruglist/sumdruglist["+ grd_sumdrug.row +"]/delivedexchqty", model.getValue("/root/temp/druginfo/druginfo/exchqty"));
- model.setValue("/root/main/sumdruglist/sumdruglist["+ grd_sumdrug.row +"]/delivedexchqtyunit", model.getValue("/root/temp/druginfo/druginfo/exchqtyunit"));
- model.setValue("/root/main/sumdruglist/sumdruglist["+ grd_sumdrug.row +"]/usefromdd", model.getValue("/root/temp/druginfo/druginfo/usefromdd"));
- grd_sumdrug.addStatus(grd_sumdrug.row, "insert");
- model.refresh();
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- model.setValue("/root/hidden/sumdrugcd", (model.getValue("/root/main/sumdruglist/sumdruglist["+grd_sumdrug.row+"]/drugcd")).toUpperCase());
-
- if ( model.getValue("/root/hidden/sumdrugcd") == ""){
- return;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- model.setValue("/root/send/srchdata/srcdrugcd", model.getValue("/root/main/sumdruglist/sumdruglist["+ grd_sumdrug.row +"]/drugcd"));
- model.setValue("/root/send/srchdata/deliveddrugcd", model.getValue("/root/main/sumdruglist/sumdruglist["+ grd_sumdrug.row +"]/deliveddrugcd"));
- combo2.refresh();
- combo2.dispatch("xforms-select");
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:1px; y1:25px; x2:1186px; y2:25px; "/>
- </case>
- <case id="case2" selected="true" style="border-color:#ccff66; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:15px; top:5px; width:1155px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:25px; top:15px; width:86px; height:17px; ">약품코드 :</caption>
- <caption id="caption4" class="search_name" style="left:245px; top:15px; width:90px; height:17px; ">처방명칭 :</caption>
- <caption id="caption5" class="search_name" style="left:790px; top:15px; width:65px; height:17px; ">부서 :</caption>
- <output id="output1" ref="/root/send/delivedata/drugnm" class="output_search" style="left:335px; top:15px; width:425px; height:19px; "/>
- <output id="output2" ref="/root/send/delivedata/drugcd" class="output_search" style="left:115px; top:15px; width:100px; height:19px; "/>
- <output id="output3" ref="/root/send/delivedata/orddeptnm" class="output_search" style="left:845px; top:15px; width:285px; height:19px; "/>
- <datagrid id="grd_ordexchdrug" nodeset="/root/main/ordexchdruglist/prcpinfo" class="datagrid2" caption="불출일시^처방일자^ 투약 번호^병실^등록번호^환자명^진료과^부서^1일수량^횟수^일수^총수량^ 누적 수량^ 수량 단위^불출약품명^ 불출 수량^불출단위^잔여수량^수량단위^구분^구분^구분^실시일시^반환일시^마감일시^출력일시^sumdeptcd^ioflag^execprcpuniqno^prcpkindcd^prcpno^prcphistno^execprcpno^sumstat^prcpvol^prcpvolunit^orddeptcd^wardcd^stocdeptcd^sumprcpcd" colsep="^" colwidth="115, 75, 40, 60, 70, 70, 70, 70, 54, 40, 40, 40, 40, 40, 70, 40, 39, 40, 40, 45, 50, 45, 115, 115,115, 115,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" gnodeset="/root/main/ordexchdruglist/prcpinfo" style="left:2px; top:75px; width:1184px; height:616px; ">
- <col ref="delivedt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="drugno"/>
- <col ref="roomcd"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="orddeptnm"/>
- <col ref="wardnm"/>
- <col ref="prcpqty"/>
- <col ref="prcptims"/>
- <col ref="prcpdayno"/>
- <col ref="totqty"/>
- <col ref="acmlqty"/>
- <col ref="prcpqtyunit"/>
- <col ref="prcpcd"/>
- <col ref="deliveqty" type="input" format="####.99"/>
- <col ref="deliveunit"/>
- <col ref="spreqty"/>
- <col ref="spreunit"/>
- <col ref="flag1"/>
- <col ref="flag2"/>
- <col ref="flag3"/>
- <col ref="execdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="rtndd" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="sumdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="prntdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="delivedeptcd" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="execprcpuniqno" visibility="hidden"/>
- <col ref="prcpkindcd" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- <col ref="execprcpno" visibility="hidden"/>
- <col ref="delivestat" visibility="hidden"/>
- <col ref="prcpvol" visibility="hidden"/>
- <col ref="prcpvolunit" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="wardcd" visibility="hidden"/>
- <col ref="stocdeptcd" visibility="hidden"/>
- <col ref="sumprcpcd" visibility="hidden"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- //grd_ordexchdrug.clearStatus();
- var deliqty = grd_ordexchdrug.labelmatrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("deliveqty"));
- if(grd_ordexchdrug.col == grd_ordexchdrug.colRef("deliveqty")) {
-
- if(model.getValue("/root/main/ordexchdruglist/prcpinfo["+ grd_ordexchdrug.row +"]/delivestat") != "S" &&
- model.getValue("/root/main/ordexchdruglist/prcpinfo["+ grd_ordexchdrug.row +"]/deliveqty") != "") {
- var std =model.getValue("/root/temp/druginfo/druginfo/sumtodeliveqty");
- var spreqty = parseFloat(grd_ordexchdrug.labelmatrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("acmlqty"))) -
- parseFloat(grd_ordexchdrug.labelmatrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("deliveqty")) * std );
- if(spreqty < 0) {
- grd_ordexchdrug.valuematrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("spreqty")) = 0;
- } else {
- grd_ordexchdrug.valuematrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("spreqty")) = spreqty;
- }
- grd_ordexchdrug.addStatus(grd_ordexchdrug.row, "insert");
- } else if(model.getValue("/root/main/ordexchdruglist/prcpinfo["+ grd_ordexchdrug.row +"]/delivestat") != "S" &&
- grd_ordexchdrug.rowStatus(grd_ordexchdrug.row) == "3"){
- var std =model.getValue("/root/temp/druginfo/druginfo/sumtodeliveqty");
- //var spreqty = parseFloat(grd_ordexchdrug.labelmatrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("acmlqty"))) -
- // parseFloat(grd_ordexchdrug.labelmatrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("deliveqty")) * std );
- var spreqty = parseFloat(grd_ordexchdrug.labelmatrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("acmlqty"))) -
- parseFloat(deliqty * std );
- if(spreqty < 0) {
- grd_ordexchdrug.valuematrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("spreqty")) = 0;
- } else {
- grd_ordexchdrug.valuematrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("spreqty")) = spreqty;
- }
- grd_ordexchdrug.addStatus(grd_ordexchdrug.row, "insert");
- }else {
- grd_ordexchdrug.removeStatus(grd_ordexchdrug.row, "insert");
- }
- for(var i = grd_ordexchdrug.row - 1; i >= grd_ordexchdrug.fixedRows; i--) {
- if(model.getValue("/root/main/ordexchdruglist/prcpinfo["+ i +"]/delivestat") != "S") {
- var prcpqty = parseFloat(grd_ordexchdrug.labelmatrix(i, grd_ordexchdrug.colRef("prcpqty")));
- //grd_ordexchdrug.valuematrix(i, grd_ordexchdrug.colRef("deliveqty")) = prcpqty;
- grd_ordexchdrug.valuematrix(i, grd_ordexchdrug.colRef("deliveqty")) = parseFloat(0);
- grd_ordexchdrug.valuematrix(i, grd_ordexchdrug.colRef("spreqty")) = parseFloat(0);
- grd_ordexchdrug.addStatus(i, "insert");
- } else {
- grd_ordexchdrug.removeStatus(i, "insert");
- }
- }
- }
- //grd_ordexchdrug.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /* grd_ordexchdrug.clearStatus();
- var deliqty = grd_ordexchdrug.labelmatrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("deliveqty"));
- alert(deliqty);
- alert(grd_ordexchdrug.rowStatus(grd_ordexchdrug.row));
- if(grd_ordexchdrug.col == grd_ordexchdrug.colRef("deliveqty")) {
-
- if(model.getValue("/root/main/ordexchdruglist/prcpinfo["+ grd_ordexchdrug.row +"]/delivestat") != "S" &&
- model.getValue("/root/main/ordexchdruglist/prcpinfo["+ grd_ordexchdrug.row +"]/deliveqty") != "") {
- var std =model.getValue("/root/temp/druginfo/druginfo/sumtodeliveqty");
- var spreqty = parseFloat(grd_ordexchdrug.labelmatrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("acmlqty"))) -
- parseFloat(grd_ordexchdrug.labelmatrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("deliveqty")) * std );
- if(spreqty < 0) {
- grd_ordexchdrug.valuematrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("spreqty")) = 0;
- } else {
- grd_ordexchdrug.valuematrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("spreqty")) = spreqty;
- }
- grd_ordexchdrug.addStatus(grd_ordexchdrug.row, "insert");
- } else if(model.getValue("/root/main/ordexchdruglist/prcpinfo["+ grd_ordexchdrug.row +"]/delivestat") != "S" &&
- grd_ordexchdrug.rowStatus(grd_ordexchdrug.row) == "3"){
- var std =model.getValue("/root/temp/druginfo/druginfo/sumtodeliveqty");
- //var spreqty = parseFloat(grd_ordexchdrug.labelmatrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("acmlqty"))) -
- // parseFloat(grd_ordexchdrug.labelmatrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("deliveqty")) * std );
- var spreqty = parseFloat(grd_ordexchdrug.labelmatrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("acmlqty"))) -
- parseFloat(deliqty * std );
- if(spreqty < 0) {
- grd_ordexchdrug.valuematrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("spreqty")) = 0;
- } else {
- grd_ordexchdrug.valuematrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("spreqty")) = spreqty;
- }
- grd_ordexchdrug.addStatus(grd_ordexchdrug.row, "insert");
- }else {
- grd_ordexchdrug.removeStatus(grd_ordexchdrug.row, "insert");
- }
- for(var i = grd_ordexchdrug.row - 1; i >= grd_ordexchdrug.fixedRows; i--) {
- if(model.getValue("/root/main/ordexchdruglist/prcpinfo["+ i +"]/delivestat") != "S") {
- var prcpqty = parseFloat(grd_ordexchdrug.labelmatrix(i, grd_ordexchdrug.colRef("prcpqty")));
- //grd_ordexchdrug.valuematrix(i, grd_ordexchdrug.colRef("deliveqty")) = prcpqty;
- grd_ordexchdrug.valuematrix(i, grd_ordexchdrug.colRef("deliveqty")) = parseFloat(0);
- grd_ordexchdrug.valuematrix(i, grd_ordexchdrug.colRef("spreqty")) = parseFloat(0);
- grd_ordexchdrug.addStatus(i, "insert");
- } else {
- grd_ordexchdrug.removeStatus(i, "insert");
- }
- }
- }
- grd_ordexchdrug.refresh();*/
- ]]>
- </script>
- </datagrid>
- <input id="input7" ref="/root/send/srchdata/srchtodd" class="input_default" inputtype="date" style="left:581px; top:52px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //submit("TRADT10324");
- ]]>
- </script>
- </input>
- <caption id="caption10" style="left:568px; top:53px; width:15px; height:20px; vertical-align:middle; ">~</caption>
- <input id="input6" ref="/root/send/srchdata/srchfromdd" class="input_default" inputtype="date" style="left:478px; top:52px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //submit("TRADT10324");
- ]]>
- </script>
- </input>
- <button id="button5" class="btn1_letter2" style="left:680px; top:50px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fSelDeptchk()){
- model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/send/srchdata/srcdrugcd"));
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/send/srchdata/srchdeptcd"));
- model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/send/srchdata/deptflag"));
- if(submit("TRADB00602")) {
- for (var i=1; i<grd_ordexchdrug.rows; i++) {
- grd_ordexchdrug.cellStyle("background-color", i, grd_ordexchdrug.colRef("deliveqty")) = "#ccff66";
- }
- }
- model.refresh();
- }else{
- messageBox("부서를","C002");
- }
- ]]>
- </script>
- </button>
- <button id="btn_sum" class="btn4_letter2" _auth="X" style="left:995px; top:50px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_sum.disabled =true;
- var lastrow = "";
- for(var i = grd_ordexchdrug.fixedRows ; i < grd_ordexchdrug.rows; i++ ) {
- if(grd_ordexchdrug.rowStatus(i) == "3" ||grd_ordexchdrug.rowStatus(i) == "1" ) {
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ i +"]/delivedt", getCurrentDate()+ getCurrentTime());
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ i +"]/delivedeptcd",model.getValue("/root/send/srchdata/srchdeptcd"));
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ i +"]/delivestat","S"); // 집계
- model.setValue("/root/main/ordexchdruglist/prcpinfo["+ i +"]/stocdeptcd", model.getValue("/root/send/srchdata/stocdeptcd"));
- lastrow = i;
- }
- }
- //model.makeNode("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]");
- //fMakeDeliveData(lastrow); // 불출데이터 만듬
-
- model.refresh();
- if ( messageBox("약품 불출을 ","Q004")==6 ) {
- if(fSelDeptchk()){
- //model.removeNodeset("/root/send/deptdata/deptinfo");
- model.setValue("/root/send/req/reqexchdrug", grd_ordexchdrug.getUpdateData());
-
- submit("TXADB00602");
- }else{
- messageBox("불출할 부서를","C002");
- }
- }
-
- model.refresh();
- btn_sum.disabled =false;
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter3" style="left:1130px; top:55px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/ordexchdruglist/prcpinfo["+ grd_ordexchdrug.row +"]/delivestat") == "S") {
- messageBox("출고시킨 약품을 행삭제", "E001");
- return;
- } else {
- //grd_ordexchdrug.addStatus(grd_ordexchdrug.row,"delete");
- grd_ordexchdrug.deleteRow(grd_ordexchdrug.row, true);
- }
-
- ]]>
- </script>
- </button>
- <button id="button7" class="btn2_letter3" style="left:1075px; top:55px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_ordexchdrug.addItem();
- var lastRow = grd_ordexchdrug.rows - grd_ordexchdrug.fixedRows;
- fMakeDeliveData(lastRow);
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn6_letter2" style="left:17px; top:50px; width:92px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "교환약집계내역", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_ordexchdrug.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
- ]]>
- </script>
- </button>
- <button id="btn_prnt" class="btn6_letter2" style="left:75px; top:50px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(submit("TRADB00606")) {
- if(getNodesetCount("/root/hidden/prntdruglist/prntdruglist") > 0){
- exeReportPreview("RPADB00600", "XMLSTR", "", "", "true","","","","","true");
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption8" class="search_name" style="left:325px; top:52px; width:150px; height:17px; ">적용일자(실시일자) :</caption>
- <select1 id="combo1" ref="/root/send/srchdata/stocdeptcd" appearance="minimal" style="left:865px; top:52px; width:121px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/misdeptlist/deptlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(chk_cnt != 0) {
- var ret = messageBox("약품출고부서를 " + combo1.label +"으로 ", "S001");
- if(ret == "6") {
- model.setValue("/root/temp/stocdeptcd", combo1.value);
- } else {
- model.setValue("/root/hidden/prcpsrch/stocdeptcd", model.getValue("/root/temp/stocdeptcd"));
- }
- chk_cnt ++;
- combo1.refresh();
- }
- ]]>
- </script>
- </select1>
- <caption id="caption9" style="left:797px; top:52px; width:69px; height:20px; font-weight:bold; color:#ff0000; ">실출고부서</caption>
- <button id="button11" class="btn3_letter6" navindex="18" visibility="visible" style="left:140px; top:50px; width:104px; height:22px; ">
- <caption>마감시간관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPADT64100");
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <group id="group2" style="left:0px; top:8px; width:845px; height:35px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:845px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:255px; top:8px; width:86px; height:17px; ">부 서 :</caption>
- <caption id="caption3" class="search_name" style="left:12px; top:8px; width:86px; height:17px; ">약품코드 :</caption>
- <input id="ipt_drugcd" ref="/root/send/srchdata/srcdrugcd" class="input_search" visibility="hidden" style="left:35px; top:5px; width:10px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13) {
- model.setValue("/root/send/srchdata/srcdrugcd", ipt_drugcd.currentText);
- ipt_drugcd.refresh();
- button9.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="btn_drug" class="icon_search" visibility="hidden" style="left:205px; top:10px; width:16px; height:16px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/temp/receivedata/receiveref", model.getValue("/root/hidden/receivedrugcd"));
- model.setValue("/root/temp/receivedata/srchflag", "");
- model.setValue("/root/temp/receivedata/srchcnts", "");
- model.setValue("/root/temp/receivedata/drugkind","");
- modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
-
- if ( model.getValue("/root/hidden/drugcd") ==""){
- return;
- }
-
- model.setValue("/root/send/srchdata/srcdrugcd", model.getValue("/root/hidden/drugcd") );
- model.setValue("/root/send/delivedata/drugcd", model.getValue("/root/hidden/drugcd") );
- ipt_drugcd.refresh();
- ]]>
- </script>
- <caption/>
- </button>
- <select id="chk_deptflag" ref="/root/send/srchdata/deptflag" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="8" style="left:225px; top:10px; width:30px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>병동</label>
- <value>W</value>
- </item>
- <item>
- <label>응급실</label>
- <value>E</value>
- </item>
- <item>
- <label>수술실</label>
- <value>O</value>
- </item>
- <item>
- <label>주사실</label>
- <value>J</value>
- </item>
- <item>
- <label>집계부서</label>
- <value>X</value>
- </item>
- <item>
- <label>진료부서</label>
- <value>D</value>
- </item>
- <item>
- <label>복막투석실</label>
- <value>A</value>
- </item>
- <item>
- <label>건진</label>
- <value>S</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //fSelDeptflag();
-
- // 진료과
- rdo_deptcd.visible=true;
- var deptflag = model.getValue("/root/send/srchdata/deptflag");
- if(deptflag != ""){
- submit("TRADT10321");
- var srchdeptcd = model.getValue("/root/send/srchdata/srchdeptcd");
- var tmp_deptflag = deptflag.split(" ");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- // 진료과
- rdo_deptcd.visible=true;
- var deptflag = model.getValue("/root/send/srchdata/deptflag");
- if(deptflag != ""){
- if (deptflag.indexOf("W") >-1 ){
- rdo_deptcd.visible=true;
- } else {
- rdo_deptcd.visible=false;
- }
- submit("TRADT10321");
-
- // 체크박스 해제한 항목을 조회조건에서 제외 - 그외 기존 체크항목 유지
- var srchdeptcd = "";
- var tmp_srchdeptcd = model.getValue("/root/send/srchdata/srchdeptcd").split("|"); //기존 선택한 [상세부서]목록 설정
- for(var i = 1; i <= getNodesetCount("/root/init/orddept/dept"); i++){ // 새로조회된 [상세부서]목록만큼.. * 인스턴스배열은 1부터..
- if(isSearchString(deptflag, model.getValue("/root/init/orddept/dept["+i+"]/orddeptflag"))){ // 새로 조회된 부서 중 이전 선택한 항목에 대해서만.. [부서구분]으로 비교
- for(j = 0; j < tmp_srchdeptcd.length; j++){
- if(model.getValue("/root/init/orddept/dept["+i+"]/deptcd") == tmp_srchdeptcd[j]){ // 신/구 [상세부서] 비교
- srchdeptcd += tmp_srchdeptcd[j]+"|";
- //if(i != (getNodesetCount("/root/init/orddept/dept")+1)) srchdeptcd += "|"; // 가장 마지막은 구분자 삽입하지 않음.
- }
- model.setValue("/root/init/orddept/dept["+i+"]/chk", "Y");
- }
- }
- }
- srchdeptcd = srchdeptcd.substr(0,parseInt(srchdeptcd.length)-1); // 마지막 구분자는 삭제
- model.setValue("/root/send/srchdata/srchdeptcd", srchdeptcd);
- gv_deptflag = deptflag; // 이전 선택된 부서구분을 위한 비교변수 설정
-
- }else{
- // 선택한 대상부서가 없을시 부서 조회조건 초기화
- model.resetInstanceNode("/root/init/orddept/dept");
- model.setValue("/root/send/srchdata/srchdeptcd", "");
- gv_deptflag = "";
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- rdo_deptcd.visible=true;
- ]]>
- </script>
- </select>
- <select1 id="radio1" ref="/root/send/srchdata/deptflag" class="checkbox_search" appearance="full" cols="8" overflow="visible" style="left:335px; top:7px; width:500px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>병동</label>
- <value>W</value>
- </item>
- <item>
- <label>응급실</label>
- <value>E</value>
- </item>
- <item>
- <label>수술실</label>
- <value>O</value>
- </item>
- <item>
- <label>주사실</label>
- <value>J</value>
- </item>
- <item>
- <label>집계부서</label>
- <value>X</value>
- </item>
- <item>
- <label>진료부서</label>
- <value>D</value>
- </item>
- <item>
- <label>복막투석실</label>
- <value>A</value>
- </item>
- <item>
- <label>건진</label>
- <value>S</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 진료과
- rdo_deptcd.visible=true;
- var deptflag = model.getValue("/root/send/srchdata/deptflag");
- if(deptflag != ""){
- submit("TRADT10321");
- model.setValue("/root/send/delivedata/orddeptnm", radio1.label);
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- rdo_deptcd.visible = true;
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/delivedata/orddeptnm", radio1.label);
- output3.refresh();
- ]]>
- </script>
- </select1>
- <button id="button9" visibility="hidden" style="left:5px; top:5px; width:25px; height:20px; ">
- <caption>button9</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(submit("TRADB00603")) {
- if(model.getValue("/root/temp/druginfo/druginfo/drugcd") != "") {
- model.setValue("/root/send/delivedata/drugcd", model.getValue("/root/temp/druginfo/druginfo/drugcd"));
- model.setValue("/root/send/delivedata/drugnm", model.getValue("/root/temp/druginfo/druginfo/drugnm"));
- model.setValue("/root/send/srchdata/deliveddrugcd", model.getValue("/root/temp/druginfo/druginfo/delivedrugcd"));
- output1.refresh();
- output2.refresh();
- } else {
- model.setValue("/root/send/srchdata/srcdrugcd", "");
- }
- }
- ]]>
- </script>
- </button>
- <select1 id="combo2" ref="/root/send/srchdata/srcdrugcd" appearance="minimal" style="left:100px; top:7px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/exchdruglist/druglist">
- <label ref="drugcd"/>
- <value ref="drugcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setValue("/root/send/srchdata/srcdrugcd", combo2.value);
- combo2.refresh();
- button9.dispatch("DOMActivate");
- button5.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <input id="input1" ref="/root/send/srchdata/deliveddrugcd" visibility="hidden" style="left:230px; top:5px; width:40px; height:19px; "/>
- </group>
- <button id="button66" class="btn_sw" group="tab" selected="false" style="left:0px; top:50px; width:60px; height:22px; ">
- <caption>기본정보</caption>
- <toggle case="case1" ev:event="onclick"/>
- </button>
- <select1 id="rdo_deptcd" ref="/root/send/srchdata/srchdeptcd" visibility="visible" appearance="full" cols="4" overflow="visible" sep="|" style="left:335px; top:34px; width:100px; height:20px; background-color:#f8f8f8; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- rdo_deptcd.visible = true;
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseout">
- <![CDATA[
- rdo_deptcd.visible = false;
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(rdo_deptcd.value != "") {
- button5.dispatch("DOMActivate");
- var ordIdx = model.getValue("/root/send/delivedata/orddeptnm").indexOf("|");
- if(ordIdx > -1) {
- var ordStr =model.getValue("/root/send/delivedata/orddeptnm").substr(0, ordIdx) + "| " + rdo_deptcd.label;
- model.setValue("/root/send/delivedata/orddeptnm", ordStr);
- output3.refresh();
- } else {
- model.setValue("/root/send/delivedata/orddeptnm", model.getValue("/root/send/delivedata/orddeptnm") + " | " + rdo_deptcd.label);
- output3.refresh();
- }
- }
- ]]>
- </script>
- </select1>
- </group>
- </xhtml:body>
- </xhtml:html>
|