12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142 |
- <?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>
- <sumlist>
- <suminfo>
- <groupcd/>
- <prcpcd/>
- <prcpnm/>
- <sumqty/>
- </suminfo>
- </sumlist>
- <prcplist>
- <prcpinfo>
- <flag1/>
- <flag2/>
- <flag3/>
- <pid/>
- <hngnm/>
- <orddeptcd/>
- <wardcd/>
- <groupcd/>
- <prcpcd/>
- <prcpnm/>
- <prcpqty/>
- <prcptims/>
- <prcpdayno/>
- <totqty/>
- <drugno/>
- <execdt/>
- <drugsumdt/>
- <prcpno/>
- <prcpdd/>
- <rtndd/>
- </prcpinfo>
- </prcplist>
- <sumterm>
- <suminfo>
- <sumflag/>
- <sumdt/>
- <sumfromdd/>
- <sumfromtm/>
- <sumtodd/>
- <sumtotm/>
- <sumdeptnm/>
- <sumnm/>
- </suminfo>
- </sumterm>
- <detlprcplist>
- <detlprcpinfo>
- <ioflagnm/>
- <ioflag/>
- <prcpno/>
- <drugno/>
- <execdd/>
- <exectm/>
- <drugsumdt/>
- <execdeptnm/>
- <execdeptcd/>
- <issdeptcd/>
- <issdeptcdnm/>
- </detlprcpinfo>
- </detlprcplist>
- <barlist>
- <prcpinfo>
- <flag1/>
- <flag2/>
- <flag3/>
- <pid/>
- <hngnm/>
- <orddeptcd/>
- <wardcd/>
- <groupcd/>
- <prcpcd/>
- <prcpnm/>
- <prcpqty/>
- <prcptims/>
- <prcpdayno/>
- <totqty/>
- <drugno/>
- <execdt/>
- <drugsumdt/>
- <prcpno/>
- <prcpdd/>
- <rtndd/>
- </prcpinfo>
- </barlist>
- </main>
- <send>
- <srchdata>
- <deptflag/>
- <drugflag>1 2</drugflag>
- <prcpflag>1 2 3</prcpflag>
- <srchfromdd/>
- <srchfromtm>0000</srchfromtm>
- <srchtodd/>
- <srchtotm>2400</srchtotm>
- <srchprcpcd/>
- <udsflag>N</udsflag>
- <prcpkindcd>A</prcpkindcd>
- <sumdt/>
- <srchorddeptcd/>
- <srchorddeptflag/>
- <userid/>
- <instcd/>
- <srchdeptnm/>
- <stocdeptcd>3242107000</stocdeptcd>
- <pid/>
- <drugcd/>
- <sumflag/>
- <prcpno/>
- </srchdata>
- <deptdata>
- <deptinfo>
- <sumorddeptcd/>
- <sumorddeptflag/>
- </deptinfo>
- </deptdata>
- <srchdetlinfo>
- <srchpid/>
- <prcpno/>
- <prcpdd/>
- <orddeptflag/>
- </srchdetlinfo>
- <srchbcinfo>
- <srchdrugdd/>
- <srchdrugno/>
- <srchioflag/>
- <srchbcno1/>
- </srchbcinfo>
- </send>
- <init>
- <orddept>
- <dept>
- <chk/>
- <deptcd/>
- <depthngnm/>
- <orddeptflag/>
- </dept>
- </orddept>
- <sumorddept>
- <dept>
- <chk/>
- <deptcd/>
- <depthngnm/>
- <orddeptflag/>
- <sumkind/>
- </dept>
- </sumorddept>
- </init>
- <hidden>
- <popupmenu>
- <menu>
- <label>개별집계</label>
- <func>fIndCaseEnd</func>
- </menu>
- </popupmenu>
- <stocdeptlist>
- <deptlist>
- <stocdeptcd/>
- <stocdeptnm/>
- </deptlist>
- </stocdeptlist>
- </hidden>
- <temp>
- <ret/>
- <sumrslt>
- <sumdt/>
- </sumrslt>
- <prntinfo>
- <sumflagnm>주사</sumflagnm>
- <wardnm>외래주사실</wardnm>
- <sumfromdd>20070901</sumfromdd>
- <sumfromtm>0000</sumfromtm>
- <sumtodd>20070930</sumtodd>
- <sumtotm>2400</sumtotm>
- <sumflag/>
- <usetype/>
- <sumdt/>
- </prntinfo>
- <prntprcpinfo>
- <suminfo>
- <wardnm/>
- <prcpcd/>
- <prcpnm/>
- <prcpflag/>
- <sumqty/>
- <spcldurg/>
- <expninjyn/>
- <expnyn/>
- <keepmthdyn/>
- <keepmthd/>
- <divflag/>
- </suminfo>
- <sumtitle>
- <drugtype/>
- <drugcd/>
- <hngnm/>
- <sumqty/>
- <spcltype/>
- </sumtitle>
- <expnlist>
- <prcpdd/>
- <drugcd/>
- <drugnm/>
- <drugno/>
- <roomcd/>
- <orddeptnm/>
- <pid/>
- <hngnm/>
- <prcpqty/>
- <prcpdayno/>
- <sumqty/>
- </expnlist>
- </prntprcpinfo>
- <prntudsinfo>
- <injinfo>
- <roomcd/>
- <hngnm/>
- <pid/>
- <drugno/>
- <drugcd/>
- <prcpqty/>
- <prcptims/>
- <drugtype/>
- <prcpcd/>
- <sumqty/>
- </injinfo>
- <exuinfo>
- <roomcd/>
- <hngnm/>
- <pid/>
- <drugno/>
- <drugcd/>
- <prcpqty/>
- <prcptims/>
- <drugtype/>
- <prcpcd/>
- <sumqty/>
- </exuinfo>
- <ptpinfo>
- <roomcd/>
- <hngnm/>
- <pid/>
- <drugno/>
- <drugcd/>
- <prcpqty/>
- <prcptims/>
- <drugtype/>
- <prcpcd/>
- <sumqty/>
- </ptpinfo>
- </prntudsinfo>
- <prntpatprcp>
- <prcpdrug>
- <roomcd/>
- <hngnm/>
- <pid/>
- <rrgstno/>
- <sna/>
- <drugno/>
- <drugcd/>
- <prcpvol/>
- <prcpqty/>
- <prcptims/>
- <prcpkindcd/>
- <drughngnm/>
- <prcpdayno/>
- <mthdcnts/>
- </prcpdrug>
- </prntpatprcp>
- <srchdata>
- <deptflag/>
- <drugflag>1 2</drugflag>
- <prcpflag>1 2 3</prcpflag>
- <srchfromdd/>
- <srchfromtm>0000</srchfromtm>
- <srchtodd/>
- <srchtotm>2400</srchtotm>
- <srchprcpcd/>
- <udsflag>N</udsflag>
- <prcpkindcd>A</prcpkindcd>
- <sumdt/>
- <srchorddeptcd/>
- <srchorddeptflag/>
- <userid/>
- <instcd/>
- <srchdeptnm/>
- <stocdeptcd>3242107000</stocdeptcd>
- <pid/>
- <drugcd/>
- <sumflag/>
- </srchdata>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- grd_deptlist.fixedcellcheckbox(0,0) = true;
-
- model.setValue("/root/send/srchdata/srchfromdd", getCurrentDate());
- model.setValue("/root/send/srchdata/srchtodd", getCurrentDate());
- model.setValue("/root/temp/srchdata/srchfromdd", getCurrentDate());
- model.setValue("/root/temp/srchdata/srchtodd", getCurrentDate());
- model.refresh();
- submit("TRADT10304");
-
- // 20100203_laboru_불출부서 visibility 막기
- submit("TRADT00704");
- if(model.getValue("/root/hidden/stocdeptlist/deptlist/stocdeptcd") == "Y") {
- cmb_stocdeptcd.visible = false;
- caption21.visible = false;
- }
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- //=========================================================================================================
- // 부서코드의 선택 여부를 판별
- // 선택사항이 없을때 : false, 선택사항이 있을때 : true
- //=========================================================================================================
- function fSelDeptchk(){
- for(var i =grd_deptlist.fixedRows; i < grd_deptlist.rows; i++){
- if(model.getValue("/root/init/orddept/dept["+i+"]/chk") == "Y") return true;
- }
- return false;
- }
- //=========================================================================================================
- // 선택환자 개별마감
- //=========================================================================================================
- function fIndCaseEnd(){
- for(var i =grd_deptlist.fixedRows; i < grd_deptlist.rows; i++){
- model.setValue("/root/init/orddept/dept["+i+"]/chk", "N");
- }
- var deptrow = grd_deptlist.selectedRow(0);
- model.setValue("/root/init/orddept/dept["+deptrow+"]/chk", "Y");
-
- var row = grd_prcplist.selectedRow(0);
- model.setValue("/root/send/srchdata/pid", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/pid"));
- model.setValue("/root/send/srchdata/prcpno", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/prcpno"));
- model.refresh();
-
- btn_sum.dispatch("DOMActivate");
- }
-
- function fSelSum(){
- model.setValue("/root/temp/prntinfo/sumflag", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumflag"));
- model.setValue("/root/temp/prntinfo/sumfromdd", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumfromdd"));
- model.setValue("/root/temp/prntinfo/sumfromtm", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumfromtm"));
- model.setValue("/root/temp/prntinfo/sumtodd", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumtodd"));
- model.setValue("/root/temp/prntinfo/sumtotm", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumtotm"));
- model.setValue("/root/temp/prntinfo/sumdt", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt"));
- model.setValue("/root/send/srchdata/sumdt", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt"));
- submit("TRADT10310");
- }
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <submission id="TRADT10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/init/orddept"/>
- <submission id="TRADT10302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumlist"/>
- <submission id="TRADT10303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/prcplist"/>
- <submission id="TRADT10304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/srchdata" replace="instance" resultref="/root/main/sumterm"/>
- <submission id="TRADT10310" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/sumorddept"/>
- <submission id="TRADT10309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntprcpinfo"/>
- <submission id="TRADT10311" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdetlinfo" replace="instance" resultref="/root/main/detlprcplist"/>
- <submission id="TRADT10312" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntudsinfo"/>
- <submission id="TRADT10313" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntpatprcp"/>
- <submission id="TRADT10314" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntprcpinfo"/>
- <submission id="TXADT10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/ret"/>
- <submission id="TXADT10302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" add="bottom" resultref="/root/temp/ret"/>
- <submission id="TXADT10313" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/temp/ret"/>
- <submission id="TXADT10303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/sumrslt"/>
- <submission id="TRADT10316" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/barlist"/>
- <submission id="TRADT10317" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntpat"/>
- <submission id="TRADT00704" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/stocdeptlist"/>
- </model>
- </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="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">
- <![CDATA[약국 집계]]>
- </caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <datagrid id="grd_prcplist" nodeset="/root/main/prcplist/prcpinfo" allowselection="false" caption="구분^구분^구분^투약번호^병실^등록번호^환자명^진료과^병동^Group코드^처방코드^처방명^1일수량^횟수^일수^불출수량^실시일시^집계시간^처방번호^처방일자^반환일시^마감일시^출력일시" colsep="^" colwidth="45, 48, 46, 56, 53, 73, 45, 60, 41, 73, 90, 196, 49, 36, 33, 59, 130, 130, 100, 100, 100, 127, 137" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:215px; top:305px; width:979px; height:435px; ">
- <col ref="flag1"/>
- <col ref="flag2"/>
- <col ref="flag3"/>
- <col ref="drugno" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="orddeptcd"/>
- <col ref="wardcd"/>
- <col ref="groupcd"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm" style="left:650px; top:23px; width:196px; height:23px; "/>
- <col ref="prcpqty" style="left:725px; top:23px; width:49px; height:23px; text-align:right; "/>
- <col ref="prcptims"/>
- <col ref="prcpdayno" style="text-align:right; "/>
- <col ref="totqty" style="left:843px; top:23px; width:59px; height:23px; text-align:right; "/>
- <col ref="execdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="drugsumdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rtndd"/>
- <col ref="sumdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="prntdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( ! isDataCell() ) return;
- var row = grd_prcplist.selectedRow(0);
- model.setValue("/root/send/srchdetlinfo/srchpid", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/pid"));
- model.setValue("/root/send/srchdetlinfo/prcpno", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/prcpno"));
- model.setValue("/root/send/srchdetlinfo/prcpdd", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/prcpdd"));
- model.setValue("/root/send/srchdetlinfo/orddeptflag", model.getValue("/root/send/srchdata/srchorddeptflag"));
- submit("TRADT10311");
-
- group5.visible = true;
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_prcplist", false, "/root/hidden/popupmenu/menu", "label", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_prcplist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:72px; x2:1194px; y2:72px; "/>
- <datagrid id="grd_deptlist" nodeset="/root/init/orddept/dept" allowselection="false" caption="^코드^부서^구분" colsep="^" colwidth="25, 37, 144, 100" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:105px; width:210px; height:635px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="depthngnm"/>
- <col ref="orddeptflag" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( ! isDataCell() ) return;
- group5.visible = false;
- if ( grd_deptlist.col != grd_deptlist.colRef("chk")){
-
- model.removeNodeset("/root/main/prcplist/prcpinfo");
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept["+grd_deptlist.row+"]/deptcd"));
- model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept["+grd_deptlist.row+"]/orddeptflag"));
- submit("TRADT10302");
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- // 소트 후 인스턴스 정리
- grd_deptlist.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_sumlist" nodeset="/root/main/sumlist/suminfo" caption="Group코드^처방코드^처방명^총불출수량" colsep="^" colwidth="87, 101, 210, 72" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:684px; top:80px; width:510px; height:220px; ">
- <col ref="groupcd"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="sumqty" style="text-align:right; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( ! isDataCell() ) return;
- group5.visible = false;
- model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo["+grd_sumlist.row+"]/prcpcd"));
- submit("TRADT10303");
-
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_drugsum" nodeset="/root/main/sumterm/suminfo" autoresize="true" caption="집계구분^집계일시^집계구간^집계구간^집계구간^집계구간^집계부서^집계자" colsep="^" colwidth="121, 116, 68, 34, 68, 34, 400, 58" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:215px; top:105px; width:465px; height:195px; ">
- <col ref="sumflag"/>
- <col ref="sumdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="sumfromdd" format="yyyy-mm-dd"/>
- <col ref="sumfromtm" format="hh:nn"/>
- <col ref="sumtodd" format="yyyy-mm-dd" style="left:339px; top:23px; width:68px; height:23px; "/>
- <col ref="sumtotm" format="hh:nn"/>
- <col ref="sumdeptnm"/>
- <col ref="sumnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( ! isDataCell() ) return;
-
- fSelSum();
- /*
- function fSelSum(){
- model.setValue("/root/temp/prntinfo/sumflag", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumflag"));
- model.setValue("/root/temp/prntinfo/sumfromdd", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumfromdd"));
- model.setValue("/root/temp/prntinfo/sumfromtm", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumfromtm"));
- model.setValue("/root/temp/prntinfo/sumtodd", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumtodd"));
- model.setValue("/root/temp/prntinfo/sumtotm", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumtotm"));
- model.setValue("/root/temp/prntinfo/sumdt", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt"));
- model.setValue("/root/send/srchdata/sumdt", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt"));
- submit("TRADT10310");
- }
- */
- /*
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept[1]/deptcd"));
- model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept[1]/orddeptflag"));
- submit("TRADT10305");
-
- model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo[1]/prcpcd"));
- submit("TRADT10307");
- */
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_drugsum.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="search_name" style="left:5px; top:81px; width:63px; height:17px; ">부서명</caption>
- <input id="input3" ref="/root/send/srchdata/srchdeptnm" class="input_default" style="left:73px; top:81px; width:137px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- btn_sea.dispatch("DOMActivate");
- submit("TRADT10301");
- }
- ]]>
- </script>
- </input>
- <group id="group6" visibility="hidden" style="left:230px; top:355px; width:935px; height:245px; ">
- <button id="button2" class="btn4_letter2" style="left:875px; top:220px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group6.visible = false;
- ]]>
- </script>
- </button>
- <datagrid id="datagrid2" nodeset="/root/main/barlist/prcpinfo" allowselection="false" caption="구분^구분^구분^투약번호^병실^등록번호^환자명^진료과^Group코드^처방코드^처방명^1일수량^횟수^일수^불출수량^실시일시^집계시간^처방번호^처방일자^반환일시^마감일시^출력일시" colsep="^" colwidth="42, 48, 46, 58, 43, 73, 45, 60, 73, 90, 196, 49, 36, 33, 59, 130, 130, 100, 100, 100, 129, 131" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:925px; height:210px; ">
- <col ref="flag1"/>
- <col ref="flag2"/>
- <col ref="flag3"/>
- <col ref="drugno"/>
- <col ref="roomcd"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="orddeptcd"/>
- <col ref="groupcd"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="prcpqty" style="left:725px; top:23px; width:49px; height:23px; text-align:right; "/>
- <col ref="prcptims"/>
- <col ref="prcpdayno" style="text-align:right; "/>
- <col ref="totqty" style="left:843px; top:23px; width:59px; height:23px; text-align:right; "/>
- <col ref="execdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="drugsumdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="rtndd"/>
- <col ref="sumdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="prntdt" format="yyyy-mm-dd hh:nn:ss"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( ! isDataCell() ) return;
- var row = grd_prcplist.selectedRow(0);
- model.setValue("/root/send/srchdetlinfo/srchpid", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/pid"));
- model.setValue("/root/send/srchdetlinfo/prcpno", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/prcpno"));
- model.setValue("/root/send/srchdetlinfo/prcpdd", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/prcpdd"));
- model.setValue("/root/send/srchdetlinfo/orddeptflag", model.getValue("/root/send/srchdata/srchorddeptflag"));
- submit("TRADT10311");
-
- group5.visible = true;
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_prcplist", false, "/root/hidden/popupmenu/menu", "label", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- </datagrid>
- </group>
- <input id="input6" ref="/root/temp/srchdata/srchfromdd" class="input_default" inputtype="date" style="left:487px; top:81px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRADT10304");
- ]]>
- </script>
- </input>
- <input id="input7" ref="/root/temp/srchdata/srchtodd" class="input_default" inputtype="date" style="left:590px; top:81px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRADT10304");
- ]]>
- </script>
- </input>
- <caption id="caption10" style="left:577px; top:82px; width:15px; height:20px; vertical-align:middle; ">~</caption>
- <caption id="caption11" class="search_name" style="left:394px; top:81px; width:101px; height:17px; ">집계일자 :</caption>
- <group id="group5" visibility="hidden" style="left:290px; top:430px; width:790px; height:220px; ">
- <datagrid id="datagrid1" nodeset="/root/main/detlprcplist/detlprcpinfo" visibility="visible" scroll="auto" caption="구분^ioflag^처방번호^투약번호^병실^실시일자^실시시간^집계일시^집계부서^시행부서^발행부서^마감일시^출력일시" colsep="^" colwidth="40, 5, 3, 57, 51, 81, 71, 123, 121, 121, 121, 120, 138" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:790px; height:190px; ">
- <col ref="ioflagnm" style="text-align:center; "/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden" style="text-align:center; ">
- <![CDATA[/>]]>
- </col>
- <col ref="drugno" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="exectm" format="hh:nn" style="text-align:center; "/>
- <col ref="drugsumdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="sumdeptnm" style="text-align:center; "/>
- <col ref="execdeptnm" style="text-align:center; "/>
- <col ref="issdeptcdnm" style="text-align:center; "/>
- <col ref="sumdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="prntdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- </datagrid>
- <button id="button10" class="btn4_letter2" style="left:730px; top:195px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group5.visible = false;
- ]]>
- </script>
- </button>
- </group>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_prntsum" class="btn6_letter5" style="left:215px; top:5px; width:92px; height:22px; ">
- <caption>집계표출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //exeReportPreview("RPADT10300", "XML", "/root/send/srchdata");
- model.makeNode("/root/temp/prntprcpinfo/sumtitle");
- submit("TRADT10314"); // 집계구간내 향정,영양수액,고가 품목/집계량 조회
- if(model.getValue("/root/temp/prntprcpinfo/sumtitle/drugcd") != ""){
- for(var i = 0; i < 2; i++){
- if(i == 0){
- model.setValue("/root/temp/prntinfo/usetype", "<약제팀용>");
- }else model.setValue("/root/temp/prntinfo/usetype", "<병동용>");
- model.refresh();
- exeReportPreview("RPADT10306", "XMLSTR", "", "", "true","","","","","true"); // 집계표 맨 앞장 (향정신성 및 고가의약품 총집계량)
- if(getNodesetCount("/root/temp/prntprcpinfo/expnlist") > 0){
- exeReportPreview("RPADT10307", "XMLSTR", "", "", "true","","","","","true"); // 집계표 맨 앞장 (고가리스트)
- }
- }
- }
- for(var i = grd_sumdeptlist.fixedRows; i < grd_sumdeptlist.rows; i++){
- if ( model.getValue("/root/init/sumorddept/dept["+i+"]/chk") == "Y"){
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/sumorddept/dept["+i+"]/deptcd"));
-
- if(submit("TRADT10309")){ // 병동별 집계
- var item_cnt = getNodesetCount("/root/temp/prntprcpinfo/suminfo");
- model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/temp/prntprcpinfo/suminfo["+item_cnt+"]/wardnm"));
- //alert(item_cnt+". 전송병실 : " + model.getValue("/root/temp/prntinfo/wardnm")+ "\n집계된부서 : "+model.getValue("/root/temp/prntprcpinfo/suminfo["+(item_cnt)+"]/wardnm"));
-
- var div_cnt = 1;
- for(var j = 1; j <= item_cnt; j++){
- if((j-1) % 10 == 0){
- div_cnt ++;
- }
- if(model.getValue("/root/temp/prntprcpinfo/suminfo["+j+"]/keepmthdyn") == "Y"){
- model.setValue("/root/temp/prntprcpinfo/suminfo["+j+"]/divflag", div_cnt);
- }
- }
- for(var cnt = 0; cnt < 2; cnt++){
- if(cnt == 0){
- model.setValue("/root/temp/prntinfo/usetype", "<약제팀용>");
- }else model.setValue("/root/temp/prntinfo/usetype", "<병동용>");
- exeReportPreview("RPADT10301", "XMLSTR", "", "", "true","","","","","true");
- }
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_sum" class="btn4_letter2" style="left:1055px; top:5px; width:56px; height:22px; ">
- <caption>집계</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_sum.disabled =true;
- model.setValue("/root/send/srchbcinfo/srchdrugdd" ,"-");
- model.setValue("/root/send/srchbcinfo/srchdrugno" ,"0");
- model.setValue("/root/send/srchbcinfo/srchioflag" ,"");
-
- if ( messageBox("집계를 ","Q004")==6 ) {
- if(fSelDeptchk()){ // 집계할 부서 선택 여부를 판별
- model.setValue("/root/send/srchdata/sumdt",getCurrentDate()+ getCurrentTime());
- model.setValue("/root/send/srchdata/userid",getUserId());
- model.setValue("/root/send/srchdata/instcd","");
- model.setValue("/root/send/srchdata/srchprcpcd","");
-
- if(submit("TXADT10303")){ // 약품집계 마스터에 집계사항 저장
- for(var i = grd_deptlist.fixedRows; i < grd_deptlist.rows; i++){
- if(model.getValue("/root/init/orddept/dept["+i+"]/chk") == "Y"){
- model.removeNodeset("/root/send/deptdata/deptinfo");
- //var irow = parseInt(getNodesetCount("/root/send/deptdata/deptinfo"))+1;
- model.makeNode ( "/root/send/deptdata/deptinfo[1]/sumorddeptcd");
- model.makeNode ( "/root/send/deptdata/deptinfo[1]/sumorddeptflag");
- model.setValue("/root/send/deptdata/deptinfo[1]/sumorddeptcd",model.getValue("/root/init/orddept/dept["+i+"]/deptcd"));
- model.setValue("/root/send/deptdata/deptinfo[1]/sumorddeptflag",model.getValue("/root/init/orddept/dept["+i+"]/orddeptflag"));
- model.refresh();
- submit("TXADT10301"); // 약품집계 처방상세 저장
- }
- }
- submit("TRADT10304");
- // 집계표 출력 대상 선택 start
- var sumdt = model.getValue("/root/temp/sumrslt/sumdt");
- var rowno = "";
- if(sumdt != ""){
- for(var i = grd_drugsum.fixedRows; i < grd_drugsum.rows; i++){
- if(model.getValue("/root/main/sumterm/suminfo["+i+"]/sumdt") == sumdt){
- break;
- }
- }
- }
- grd_drugsum.row = parseInt(i);
- // 집계표 출력 대상 선택 end
- var tmp = model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt");
- fSelSum(); // 집계표 출력값 설정
- btn_prntsum.dispatch("DOMActivate"); // [집계표 출력]
- }
- }else{
- messageBox("집계할 부서를","C002");
- }
- }
- model.setValue("/root/send/srchdata/pid","");
- model.setValue("/root/send/srchdata/drugcd","");
-
- model.refresh();
- btn_sum.disabled =false;
- ]]>
- </script>
- </button>
- <button id="button3" class="btn6_letter6" style="left:310px; top:5px; width:104px; height:22px; ">
- <caption>Fill List출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i = grd_sumdeptlist.fixedRows; i < grd_sumdeptlist.rows; i++){
- if ( model.getValue("/root/init/sumorddept/dept["+i+"]/chk")=="Y"){
- //UDS로 집계된 사항만 Fill List로 출력 가능
- if(model.getValue("/root/init/sumorddept/dept/sumkind") == "U"){
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/sumorddept/dept["+i+"]/deptcd"));
- model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/init/sumorddept/dept["+i+"]/depthngnm"));
-
- submit("TRADT10312");
- if(model.getValue("/root/temp/prntudsinfo/injinfo/pid") != ""){
- exeReportPreview("RPADT10302", "XMLSTR", "", "", "false","","","","","false");
- }
- if(model.getValue("/root/temp/prntudsinfo/exuinfo/pid") != ""){
- exeReportPreview("RPADT10303", "XMLSTR", "", "", "false","","","","","false");
- }
- if(model.getValue("/root/temp/prntudsinfo/ptpinfo/pid") != ""){
- exeReportPreview("RPADT10304", "XMLSTR", "", "", "false","","","","","false");
- }
- }else{
-
- messageBox("UDS 집계항목을", "C002");
- break;
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="button4" class="btn3_letter6" style="left:105px; top:5px; width:104px; height:22px; ">
- <caption>집계현황조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMADT10300",0,20,150,"SMADT10300","","");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter4" style="left:1115px; top:5px; width:80px; height:22px; ">
- <caption>집계취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( model.getValue("/root/send/srchdata/sumdt") ==""){
- messageBox("취소할 집계 자료를 목록에서 ","C002");
- return;
- }
- if ( messageBox("집계취소를 ","Q004")==6 ) {
- submit("TXADT10302");
- submit("TRADT10304");
- }
- ]]>
- </script>
- </button>
- <button id="button6" class="btn6_letter6" style="left:417px; top:5px; width:104px; height:22px; ">
- <caption>환자별검수지</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i = grd_sumdeptlist.fixedRows; i < grd_sumdeptlist.rows; i++){
- if ( model.getValue("/root/init/sumorddept/dept["+i+"]/chk")=="Y"){
- //UDS로 집계된 사항만 환자별검수지 출력 가능
- //if(model.getValue("/root/init/sumorddept/dept/sumkind") == "U"){
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/sumorddept/dept["+i+"]/deptcd"));
- model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/init/sumorddept/dept["+i+"]/depthngnm"));
-
- submit("TRADT10313");
- if(model.getValue("/root/temp/prntpatprcp/prcpdrug/pid") != ""){
- exeReportPreview("RPADT10305", "XMLSTR", "", "", "true","","","","","true");
- }
- /*
- }else{
- messageBox("UDS 집계항목을", "C002");
- break;
- }
- */
- }
- }
- ]]>
- </script>
- </button>
- <button id="button7" class="btn6_letter4" style="left:525px; top:5px; width:80px; height:22px; ">
- <caption>네임카드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i = grd_sumdeptlist.fixedRows; i < grd_sumdeptlist.rows; i++){
- if ( model.getValue("/root/init/sumorddept/dept["+i+"]/chk")=="Y"){
- //UDS로 집계된 사항만 네임카드 출력 가능
- //if(model.getValue("/root/init/sumorddept/dept/sumkind") == "U"){
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/sumorddept/dept["+i+"]/deptcd"));
- model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/init/sumorddept/dept["+i+"]/depthngnm"));
-
- submit("TRADT10317");
- if(model.getValue("/root/temp/prntpatprcp/prcpdrug/pid") != ""){
- exeReportPreview("RPADT10305", "XMLSTR", "", "", "true","","","","","true");
- }
- /*
- }else{
- messageBox("UDS 집계항목을", "C002");
- break;
- }
- */
- }
- }
- ]]>
- </script>
- </button>
- <button id="button8" class="btn3_letter6" style="left:0px; top:5px; width:104px; height:22px; ">
- <caption>수액집계조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMADT11000",0,20,150,"SMADT11000","","");
- ]]>
- </script>
- </button>
- <button id="button9" class="btn4_letter2" visibility="hidden" style="left:985px; top:5px; width:56px; height:22px; ">
- <caption>발주</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdata/sumdt",model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt"));
- submit("TXADT10313");
- ]]>
- </script>
- </button>
- <select1 id="cmb_stocdeptcd" ref="/root/send/srchdata/stocdeptcd" class="combo_search" appearance="minimal" style="left:855px; top:5px; width:115px; height:19px; ">
- <choices>
- <item>
- <label>외래약국Unit</label>
- <value>3242106000</value>
- </item>
- <item>
- <label>병동약국Unit</label>
- <value>3242107000</value>
- </item>
- <item>
- <label>특수조제Unit</label>
- <value>3242104000</value>
- </item>
- </choices>
- </select1>
- <caption id="caption21" class="cell_1" style="left:785px; top:3px; width:67px; height:23px; vertical-align:middle; ">불출부서</caption>
- </group>
- <group id="group2" style="left:0px; top:40px; width:1195px; height:70px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <select id="chk_deptflag" ref="/root/send/srchdata/deptflag" class="checkbox_search" overflow="visible" appearance="full" cols="8" style="left:60px; top:11px; width:480px; 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-value-changed">
- <![CDATA[
- // 진료과
- if(model.getValue("/root/send/srchdata/deptflag") != ""){
- if (model.getValue("/root/send/srchdata/deptflag").indexOf("W") >-1 ){
- rdo_prcp.visible=true;
- } else {
- rdo_prcp.visible=false;
- }
- var drugcd = model.getValue("/root/send/srchdata/drugcd");
- model.setValue("/root/send/srchdata/drugcd", drugcd.toUpperCase());
- submit("TRADT10301");
- }else{
- model.removeNodeset("/root/init/orddept");
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <caption id="caption2" class="search_name" style="left:5px; top:11px; width:60px; height:17px; ">대상:</caption>
- <caption id="caption1" class="search_name" style="left:5px; top:36px; width:150px; height:17px; ">적용일자(실시일자) :</caption>
- <caption id="caption4" class="search_name" style="left:535px; top:10px; width:70px; height:17px; ">구분1:</caption>
- <caption id="caption5" class="search_name" style="left:795px; top:10px; width:70px; height:17px; ">구분2 :</caption>
- <input id="input1" ref="/root/send/srchdata/srchfromtm" class="input_search" visibility="hidden" format="hh:nn" style="left:590px; top:45px; width:45px; height:19px; "/>
- <input id="input2" ref="/root/send/srchdata/srchtotm" class="input_search" visibility="hidden" format="hh:nn" style="left:590px; top:25px; width:45px; height:19px; "/>
- <line id="line13" class="line_4" style="x1:1132px; y1:11px; x2:1132px; y2:59px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1135px; top:26px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- chk_deptflag.dispatch("xforms-value-changed");
- //submit("TRADT10304");
- ]]>
- </script>
- </button>
- <input id="ipt_sumdt1" ref="/root/send/srchdata/srchfromdd" class="input_default" inputtype="date" style="left:158px; top:36px; width:90px; height:19px; "/>
- <input id="ipt_sumdt2" ref="/root/send/srchdata/srchtodd" class="input_default" inputtype="date" style="left:261px; top:36px; width:90px; height:19px; "/>
- <caption id="caption32" style="left:248px; top:36px; width:15px; height:20px; vertical-align:middle; ">~</caption>
- <select1 id="rdo_prcp" ref="/root/send/srchdata/prcpkindcd" visibility="hidden" appearance="full" cellspacing="5" cols="6" overflow="visible" style="left:865px; top:10px; width:225px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>정규</label>
- <value>R</value>
- </item>
- <item>
- <label>추가</label>
- <value>A</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- <item>
- <label>Admission</label>
- <value>M</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- submit("TRADT10302");
- ]]>
- </script>
- </select1>
- <select1 id="radio1" ref="/root/send/srchdata/udsflag" appearance="full" cols="1" rows="2" vcellspacing="8" overflow="visible" style="left:595px; top:7px; width:50px; height:50px; border-style:none; ">
- <choices>
- <item>
- <label>일반</label>
- <value>N</value>
- </item>
- <item>
- <label>UDS</label>
- <value>U</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(radio1.value == 'N'){
- chk_drugflag2.value = "";
- chk_drugflag1.value = "1 2";
- }else if(radio1.value == 'U'){
- chk_drugflag1.value = "";
- chk_drugflag2.value = "3 4 5";
- }
- submit("TRADT10302");
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption7" class="search_name" style="left:795px; top:36px; width:90px; height:17px; ">등록번호 :</caption>
- <input id="input4" ref="/root/send/srchdata/pid" autonext="false" maxlength="10" format="9999999999" style="left:880px; top:36px; width:81px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("chk_deptflag","xforms-value-changed");
- ]]>
- </script>
- </input>
- <caption id="caption8" class="search_name" style="left:965px; top:36px; width:90px; height:17px; ">약품코드 :</caption>
- <input id="input5" ref="/root/send/srchdata/drugcd" style="left:1050px; top:36px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("chk_deptflag","xforms-value-changed");
- ]]>
- </script>
- </input>
- <select id="chk_drugflag1" ref="/root/send/srchdata/drugflag" class="checkbox_search" overflow="visible" appearance="full" cols="5" style="left:638px; top:10px; width:135px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>약</label>
- <value>1</value>
- </item>
- <item>
- <label>주사</label>
- <value>2</value>
- </item>
- </choices>
- </select>
- <select id="chk_drugflag2" ref="/root/send/srchdata/drugflag" class="checkbox_search" overflow="visible" appearance="full" cols="5" style="left:638px; top:35px; width:160px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>PTP</label>
- <value>3</value>
- </item>
- <item>
- <label>주사</label>
- <value>4</value>
- </item>
- <item>
- <label>외용,수제</label>
- <value>5</value>
- </item>
- </choices>
- </select>
- <input id="ipt_bcno1" ref="/root/send/srchbcinfo/srchbcno1" class="input_search" imemode="alpha" style="left:485px; top:36px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- var barcode = "";
- var drugdd = "";
- var drugno = "";
- var ioflag = "";
-
- if(event.keyCode == "13") {
- // 바코드
- setInputNodeCurText();
- barcode = model.getValue("/root/send/srchbcinfo/srchbcno1");
- if (barcode.length > 9) {
- ioflag = barcode.substr(0,1);
- drugdd = barcode.substr(1,8);
- drugno = barcode.substr(9,barcode.length-9);
- model.setValue("/root/send/srchbcinfo/srchbcno1","");
-
- if (ioflag.toUpperCase() != "I") {
- messageBox("입원처방이 아니므로 처리","E001");
- model.refresh();
- return;
- }
- } else {
- return;
- }
-
- // 조회
- model.setValue("/root/send/srchbcinfo/srchdrugdd" ,drugdd);
- model.setValue("/root/send/srchbcinfo/srchdrugno" ,drugno);
- model.setValue("/root/send/srchbcinfo/srchioflag" ,"I");
-
- model.setValue("/root/send/srchdata/sumdt",getCurrentDate()+ getCurrentTime());
- model.setValue("/root/send/srchdata/userid",getUserId());
- model.setValue("/root/send/srchdata/instcd","");
- model.setValue("/root/send/srchdata/srchprcpcd","");
-
- model.removeNodeset("/root/send/deptdata/deptinfo");
- //var irow = parseInt(getNodesetCount("/root/send/deptdata/deptinfo"))+1;
- model.makeNode ( "/root/send/deptdata/deptinfo[1]/sumorddeptcd");
- model.makeNode ( "/root/send/deptdata/deptinfo[1]/sumorddeptflag");
- model.setValue("/root/send/deptdata/deptinfo[1]/sumorddeptcd","-");
- model.setValue("/root/send/deptdata/deptinfo[1]/sumorddeptflag","W");
- model.refresh();
-
- submit("TXADT10301");
- submit("TRADT10316");
- group6.visible=true;
- model.setValue("/root/send/srchbcinfo/srchdrugdd" ,"-");
- model.setValue("/root/send/srchbcinfo/srchdrugno" ,"0");
- model.setValue("/root/send/srchbcinfo/srchioflag" ,"");
- model.refresh();
- if ( datagrid2.rows == 1 ){
- messageBox("선불출할 데이터가 없습니다. ", "C999");
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption9" class="search_name" style="left:360px; top:36px; width:124px; height:17px; ">바코드(선불출) :</caption>
- </group>
- <datagrid id="grd_sumdeptlist" nodeset="/root/init/sumorddept/dept" visibility="hidden" caption="^코드^부서" colsep="^" colwidth="25, 93, 234" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:500px; top:245px; width:375px; height:85px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="deptcd"/>
- <col ref="depthngnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept["+grd_deptlist.row+"]/deptcd"));
- model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept["+grd_deptlist.row+"]/orddeptflag"));
- submit("TRADT10305");
-
- model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo[1]/prcpcd"));
- submit("TRADT10307");
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|