12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838 |
- <?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>
- <sumrslt/>
- <sumlist>
- <sumlist>
- <sumdd/>
- <sumtm/>
- <sumdt/>
- <prcpflagnm/>
- <cnt/>
- <sumflag/>
- <drugkind/>
- <sel/>
- </sumlist>
- </sumlist>
- <patlist>
- <patlist>
- <sel/>
- <prnttims/>
- <drugdd/>
- <drugno/>
- <wardnm/>
- <pid/>
- <patnm/>
- <prcpdd/>
- <orddd/>
- <cretno/>
- <orddeptcd/>
- <orddeptnm/>
- <orddrnm/>
- <prcpgenrflag/>
- <wardcd/>
- <prntdt/>
- <drugflag/>
- </patlist>
- </patlist>
- <prcpdata>
- </prcpdata>
- <lbllist>
- <lbllist/>
- </lbllist>
- <barcdprntsetup>
- </barcdprntsetup>
- <prcplist>
- <prcplist/>
- </prcplist>
- </main>
- <send>
- <suminfo>
- <prcpdd/>
- <prcpflag/>
- <instcd/>
- <pid/>
- <ioflag>I</ioflag>
- <sumdrugkind/>
- <onlyantis/>
- <fromdd/>
- <fromtm/>
- <todd/>
- <totm/>
- <sumdt/>
- <mstocdeptcd/>
- <intiflag/>
- </suminfo>
- <sumlistinfo/>
- <patlistinfo/>
- <prcpinfo/>
- <deptinfo>
- <deptflag/>
- </deptinfo>
- <atcinfo>
- <drugdd/>
- <drugflag>I</drugflag>
- <instcd/>
- </atcinfo>
- <scrnid/>
- <atcreq/>
- <prcplist>
- <drugdd/>
- <drugno/>
- </prcplist>
- </send>
- <init>
- <barcdprntsetup>
- <setupinfo/>
- </barcdprntsetup>
- <sumtmflaglist>
- <flaglist>
- <flagcd/>
- <flagnm/>
- <fromddflag/>
- <fromtm/>
- <toddflag/>
- <totm/>
- </flaglist>
- </sumtmflaglist>
- <sumprcpflagyn>
- <flagyn>
- <flagyn/>
- <orderbyatc/>
- </flagyn>
- </sumprcpflagyn>
- <prcpflaglist>
- <prcpflag>
- <flagid/>
- <flagnm/>
- </prcpflag>
- </prcpflaglist>
- <lbllists>
- <lbllists/>
- </lbllists>
- <roomyn>
- </roomyn>
- </init>
- <hidden>
- <srchinfo>
- <prcpdd/>
- <drugkind/>
- <etcflag/>
- <etcdescflag/>
- <fst_drugno/>
- <last_drugno/>
- <prcpflag/>
- <mpsflag/>
- <lblyn>Y</lblyn>
- <lbl_drug/>
- <lbl_inj/>
- <wardcd/>
- <pid/>
- <prntflag/>
- <instcd/>
- <sumdt/>
- <autokind/>
- <autoprntflag/>
- <drugall/>
- <injall/>
- <wardnm/>
- <reprintyn/>
- <prntkind/>
- <reprintyn/>
- <onlyantis/>
- <autoatcyn/>
- <autoendyn>Y</autoendyn>
- <orderbyatc/>
- <fromddflag1/>
- <fromtm1/>
- <toddflag1/>
- <totm1/>
- <endtime1/>
- <fromddflag2/>
- <fromtm2/>
- <toddflag2/>
- <totm2/>
- <endtime2/>
- <fromddflag3/>
- <fromtm3/>
- <toddflag3/>
- <totm3/>
- <endtime3/>
- <autoyn/>
- <stocdeptcd>3242107000</stocdeptcd>
- <autolblflag/>
- <manllblflag>AD|DT|DI|DS|DG</manllblflag>
- <lblsizeflag/>
- <lblsizeflag1/>
- <autolblsize/>
- <autolblsize1/>
- <multiyn/>
- <lbl5/>
- <namecard/>
- <dinjyn/>
- <dinjonlyyn/>
- </srchinfo>
- <deptlist>
- <ward>
- <wardcd/>
- <wardnm/>
- </ward>
- </deptlist>
- <popupinfo>
- <prcpdd/>
- <drugno/>
- <pid/>
- <ward/>
- </popupinfo>
- <sleeptime>1</sleeptime>
- <autoend/>
- <timelist/>
- <endtype/>
- </hidden>
- <temp>
- <ret/>
- <srchinfo>
- <ward/>
- </srchinfo>
- <stocdeptcd/>
- </temp>
- </root>
- </instance>
- <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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
- <script type="javascript" src="../../../ast/pharmacyweb/js/SPADT62201.js"/>
- <!--<script type="javascript" src="../../../ast/pharmacyweb/js/SPADT62302.js"/>-->
- <!--<script type="javascript" src="../../../ast/pharmacyweb/js/SPADT62303.js"/>-->
- <script type="javascript" src="../../../ast/pharmacyweb/js/SMADT10201.js"/>
- <script type="javascript">
- <![CDATA[
- //프린터 설정
- function fSetPrint() {
- var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
-
- if(count == 0) {
- model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
-
- // 20101111_laboru_경북대병원_바코드 rex 출력 기능 변경
- //open("SPLLC90100_바코드프린터설정.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- open("SPZUR00300_바코드프린터설정_knuh.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
-
- function fLblInstFlag() {
- submit("TRADT10214");
-
- if (model.getValue("/root/main/lblinstflag/useyn") == "Y") {
- chk_lbl1.visible = true;
- chk_auto_lblsize1.visible = true;
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- makeReportPreview(0,0,10, 10, "grp_report1");
- makeReportPreview(0,0,10, 10, "grp_report2");
- makeReportPreview(0,0,10, 10, "grp_report3");
- fInit();
- grd_patlist.fixedcellcheckbox(0,0) = true;
- grd_sumlist.fixedcellcheckbox(0,0) = true;
- fInSumList();
- fLblInstFlag();
- ]]>
- </script>
- <script type="javascript" ev:event="onPrintFinished">
- <![CDATA[
- cleanIViewer();
- ]]>
- </script>
- <submission id="TRADT10201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sumlistinfo" replace="instance" resultref="/root/main/sumlist"/>
- <submission id="TRADT10202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patlistinfo" replace="instance" resultref="/root/main/patlist"/>
- <submission id="TRADT10203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo" replace="instance" resultref="/root/hidden/deptlist"/>
- <submission id="TRADT10205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sumlistinfo" replace="instance" resultref="/root/main/patlist"/>
- <submission id="TXADT10201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/suminfo" replace="instance" resultref="/root/main/sumrslt"/>
- <submission id="TXADT10202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/atcinfo" replace="instance" add="bottom" resultref="/root/temp/ret"/>
- <!-- 프린터 설정-->
- <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
- <!--마감시간구분 설정-->
- <submission id="TRADT10212" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sumlistinfo" replace="instance" resultref="/root/init/sumtmflaglist"/>
- <!--마감시 처방구분이 추가일때 adm과 응급도 함께 처리하는지 여부 -->
- <submission id="TRADT10207" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/suminfo" replace="instance" resultref="/root/init/sumprcpflagyn"/>
- <!--라벨 출력 방법 -->
- <submission id="TRADT10208" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/suminfo" replace="instance" resultref="/root/init/lbltype"/>
- <submission id="TRADT01106" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/misdeptlist"/>
- <!--라벨 출력정보 조회-->
- <submission id="TRADT62301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prcpinfo" replace="instance" resultref="/root/main/lbllist"/>
- <!--병동처방전 출력정보 조회 -->
- <submission id="TRADT62201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prcpinfo" resultref="/root/main/prcpdata"/>
- <!--임상연구 일반약 마감-->
- <submission id="TXADC10902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/temp/ret"/>
- <!-- 외래임상연구 일반약마감 -->
- <submission id="TXADC10901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/temp/ret"/>
- <script type="javascript" ev:event="xforms-model-destruct">
- <![CDATA[
- if (gTimer != null) {
- window.clearinterval(gTimer);
- gTimer = null;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-close">
- <![CDATA[
- if (gTimer != null) {
- window.clearinterval(gTimer);
- gTimer = null;
- }
- ]]>
- </script>
- <submission id="TRADT10210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/atcreq" replace="instance"/>
- <submission id="TRADT10211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/suminfo" resultref="/root/init/prcpflaglist"/>
- <submission id="TRADT01107" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/lbllists"/>
- <submission id="TRADT10213" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/roomyn/roomyn"/>
- <submission id="TRADT10214" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/main/lblinstflag"/>
- <!-- TRADT10215 Name Card출력 -->
- <submission id="TRADT10215" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prcpinfo" replace="instance" resultref="/root/temp/prntpat"/>
- <submission id="TRADT62202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prcplist" resultref="/root/main/prcplist"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1195;1,0;1,1328;2,783;2,756;1,0;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption11" class="cell_1" style="left:0px; top:387px; width:80px; height:25px; vertical-align:middle; ">라벨구분</caption>
- <button id="button25" class="btn3_letter4" style="left:0px; top:628px; width:80px; height:22px; ">
- <caption>출력결과</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- messageBox("개발중", "E008");
- ]]>
- </script>
- </button>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (event.keyCode==121){
- checkbox5.visible=true;
- checkbox6.visible=true;
- }
- ]]>
- </script>
- <line id="line8" class="line_2" style="x1:0px; y1:170px; x2:570px; y2:170px; "/>
- <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; ">병동처방전출력(Ver 091012)</caption>
- </group>
- <button id="button20" class="btn4_letter2" visibility="hidden" style="left:575px; top:553px; width:56px; height:22px; ">
- <caption>종료</caption>
- </button>
- <line id="line6" class="line_2" style="x1:0px; y1:63px; x2:570px; y2:63px; "/>
- <line id="line9" class="line_2" style="x1:0px; y1:333px; x2:570px; y2:333px; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:457px; x2:570px; y2:457px; "/>
- <caption id="caption20" class="cell_1" style="left:0px; top:336px; width:80px; height:23px; vertical-align:middle; ">병동</caption>
- <line id="line12" class="line_2" style="x1:0px; y1:359px; x2:570px; y2:359px; "/>
- <caption id="caption21" class="cell_1" style="left:0px; top:361px; width:80px; height:23px; vertical-align:middle; ">등록번호</caption>
- <line id="line14" class="line_2" style="x1:0px; y1:386px; x2:570px; y2:386px; "/>
- <caption id="caption13" class="cell_1" style="left:0px; top:65px; width:80px; height:105px; vertical-align:middle; ">처방구분</caption>
- <caption id="caption22" class="cell_1" style="left:0px; top:40px; width:80px; height:23px; vertical-align:middle; ">적용일자</caption>
- <caption id="caption24" class="cell_2" style="left:0px; top:436px; width:80px; height:20px; text-align:left; vertical-align:middle; ">출력구분</caption>
- <caption id="caption25" style="left:190px; top:311px; width:30px; height:25px; font-weight:bold; vertical-align:middle; ">~</caption>
- <line id="line15" class="line_2" style="x1:0px; y1:435px; x2:570px; y2:435px; "/>
- <line id="line17" class="line_1" style="x1:0px; y1:35px; x2:570px; y2:35px; "/>
- <button id="button5" class="icon_search" visibility="visible" style="left:420px; top:338px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(chk_ward.visible==true){
- chk_ward.visible = false;
- }else {
- chk_ward.visible = true;
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn6_letter2" style="left:510px; top:459px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/hidden/srchinfo/fst_drugno") != "" || model.getValue("/root/hidden/srchinfo/fst_drugno") != "") {
- //setInputNodeCurText();
- var bResult = fChgDrugno("first");
- if(bResult){
- fInSumList();
- if(grd_patlist.rows > 1) {
- model.setValue("/root/main/patlist/patlist/sel", "Y");
- }
- //fPrcpMPSPrint();
- }
- }
- // 20101203_wify_경북대병원 본원 큰라벨 사용시 lblsizeflag에 큰라벨의 값을 setValue
- if(model.getValue("/root/hidden/srchinfo/lblsizeflag") == "") { //큰라벨, 작은라벨 체크박스
- if(model.getValue("/root/hidden/srchinfo/lblsizeflag1") != "") { //큰라벨본원
- model.setValue("/root/hidden/srchinfo/lblsizeflag", model.getValue("/root/hidden/srchinfo/lblsizeflag1"));
- }
- }
- var val = model.getValue("/root/hidden/srchinfo/lblsizeflag");
- prntcheck = "Y"
- //수동출력
- fPrcpMPSPrint("M");
-
- ]]>
- </script>
- </button>
- <button id="button1" class="btn6_letter2" style="left:510px; top:65px; width:56px; height:22px; ">
- <caption>마감</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( model.getValue("/root/hidden/srchinfo/prcpflag") =="E" ){
- messageBox("응급실은 마감할 수 없습니다.", "E999");
- //return;
- var str = model.getValue("/root/hidden/srchinfo/prcpflag");
- str = str.setReplaceWord("E", "" );
- model.setValue("/root/hidden/srchinfo/prcpflag", str);
- }
- if(model.getValue("/root/hidden/srchinfo/prcpflag") == "") {
- messageBox("처방구분 선택없이 마감할 수 없습니다.", "E999");
- return;
- }
-
-
- var prcpflagnm = rdo_prcp.label + " " + rdo_prcp2.label;
- if(messageBox(prcpflagnm + "마감을", "Q004") != 6){
- return;
- }
-
- //20100211 이선경 수정 : 처방구분 멀티체크해서 마감하는 기능추가
- var prcpflaglist = model.getValue("/root/hidden/srchinfo/prcpflag");
- if ( prcpflaglist.indexOf("R") >=0 ){
- model.setValue("/root/hidden/srchinfo/prcpflag", "R");
- fHosInSum("Y"); //정규마감
- }
- if ( prcpflaglist.indexOf("Z") >=0 ){
- model.setValue("/root/hidden/srchinfo/prcpflag", "Z");
- fHosInSum("Y"); //정규마감
- }
- if ( prcpflaglist.indexOf("A") >=0 ){
- model.setValue("/root/hidden/srchinfo/prcpflag", "A");
- fHosInSum("Y"); //추가마감
- }
-
- if ( prcpflaglist.indexOf("M1") >=0 ){
- model.setValue("/root/hidden/srchinfo/drugkind", "D");
- model.setValue("/root/hidden/srchinfo/prcpflag", "M");
- fHosInSum("Y"); //Admission약마감
- } else if ( prcpflaglist.indexOf("M2") >=0 ){
- model.setValue("/root/hidden/srchinfo/drugkind", "M");
- model.setValue("/root/hidden/srchinfo/prcpflag", "M");
- fHosInSum("Y"); //Admission주사마감
- } else if ( prcpflaglist.indexOf("M") >=0 ){
- model.setValue("/root/hidden/srchinfo/prcpflag", "M");
- fHosInSum("Y"); //Admission마감
- }
-
- if (prcpflaglist.indexOf("W1") >=0 ){
- model.setValue("/root/hidden/srchinfo/drugkind", "D");
- model.setValue("/root/hidden/srchinfo/prcpflag", "W");
- fHosInSum("Y"); //병동응급약마감
- } else if (prcpflaglist.indexOf("W2") >=0 ){
- model.setValue("/root/hidden/srchinfo/drugkind", "M");
- model.setValue("/root/hidden/srchinfo/prcpflag", "W");
- fHosInSum("Y"); //병동응급주사마감
- } else if (prcpflaglist.indexOf("W") >=0 ){
- model.setValue("/root/hidden/srchinfo/prcpflag", "W");
- fHosInSum("Y"); //병동응급마감
- }
-
- if ( prcpflaglist.indexOf("L") >=0 ){
- model.setValue("/root/hidden/srchinfo/prcpflag", "L"); // 자동일때는 외출외박으로 처리하여 응급실 퇴원약 제외 20091027 이선경 수정 : 외출외박과 퇴원약은 따로 처리
- fHosInSum("Y"); //퇴원약마감
- }
- if ( prcpflaglist.indexOf("G") >=0 ){
- model.setValue("/root/hidden/srchinfo/prcpflag", "G");
- fHosInSum("Y"); //외박마감
- }
-
- if ( prcpflaglist.indexOf("C") >=0 ){
- model.setValue("/root/hidden/srchinfo/prcpflag", "C");
- fHosInSum("Y"); //임상주사(외래)마감
- }
-
- // 20120514_laboru_응급실 선집계 건 수정
- if ( prcpflaglist.indexOf("K") >=0 ){
- model.setValue("/root/hidden/srchinfo/prcpflag", "K");
- fHosInSum("Y"); // 응급실 주사 집계 위한 마감
- }
-
- // 20130114_laboru_심사실 퇴원 처방 마감 수정
- if ( prcpflaglist.indexOf("J") >=0 ){
- model.setValue("/root/hidden/srchinfo/prcpflag", "J");
- fHosInSum("Y"); // 심사실 퇴원 처방 마감 수정
- }
-
- model.setValue("/root/hidden/srchinfo/prcpflag",prcpflaglist);
-
- /*var instcd = getUserInfo("dutplceinstcd");
- if(instcd == "014") { // 성가 마감시 산제 데이터 ATC 자동전송
- model.makeValue("/root/send/atcreq/atc4", "Y");
- model.makeValue("/root/send/atcreq/srchflag1", "I");
- model.makeValue("/root/send/atcreq/startdd", model.getValue("/root/hidden/srchinfo/prcpdd"));
- model.makeValue("/root/send/atcreq/starttm", "0000");
- model.makeValue("/root/send/atcreq/enddd", model.getValue("/root/hidden/srchinfo/prcpdd"));
- model.makeValue("/root/send/atcreq/endtm", "2359");
- model.makeValue("/root/send/atcreq/powdflag", "Y");
- model.makeValue("/root/send/atcreq/srchprcpkind", model.getValue("/root/hidden/srchinfo/prcpflag"));
- model.makeValue("/root/send/atcreq/srchtrsmflag", "N"); // 미전송
- submit("TRADT10210");
- }*/
-
- fInSumList();
- ]]>
- </script>
- </button>
- <select id="chk_mps" ref="/root/hidden/srchinfo/mpsflag" overflow="visible" appearance="full" cellspacing="10" cols="3" rows="1" sep="|" style="left:85px; top:438px; width:60px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>처방전</label>
- <value>P</value>
- </item>
- </choices>
- </select>
- <select id="chk_lbl_drug" ref="/root/hidden/srchinfo/lbl_drug" visibility="hidden" overflow="visible" appearance="full" cellspacing="10" cols="10" rows="1" sep="|" style="left:115px; top:680px; width:325px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>정제</label>
- <value>D</value>
- </item>
- <item>
- <label>PTP</label>
- <value>DT</value>
- </item>
- <item>
- <label>향정</label>
- <value>DH</value>
- </item>
- <item>
- <label>기타약</label>
- <value>DX</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/hidden/srchinfo/lbl_drug") == ""){
- if(model.getValue("/root/hidden/srchinfo/lbl_inj") == ""){
- model.setValue("/root/hidden/srchinfo/lblyn", "");
- }
- } else {
- model.setValue("/root/hidden/srchinfo/lblyn", "Y");
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <select id="chk_lbl_inj" ref="/root/hidden/srchinfo/lbl_inj" visibility="hidden" overflow="visible" appearance="full" cellspacing="10" cols="10" rows="1" sep="|" style="left:115px; top:695px; width:315px; height:18px; border-style:none; ">
- <choices>
- <item>
- <label>일반주사</label>
- <value>I</value>
- </item>
- <item>
- <label>영양수액</label>
- <value>IO</value>
- </item>
- <item>
- <label>향정</label>
- <value>IH</value>
- </item>
- <item>
- <label>기타</label>
- <value>IX</value>
- </item>
- </choices>
- </select>
- <input id="ipt_prcpdd" ref="/root/hidden/srchinfo/prcpdd" class="input_default" inputtype="date" style="left:85px; top:41px; width:135px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fInSumList();
- ]]>
- </script>
- </input>
- <input id="ipt_fst_drugno" ref="/root/hidden/srchinfo/fst_drugno" class="input_search" autonext="false" maxlength="5" format="99999" style="left:85px; top:312px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChgDrugno("first");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- var bResult = fChgDrugno("first");
- if(bResult){
- fInSumList();
-
- if(grd_patlist.rows > 1) {
- model.setValue("/root/main/patlist/patlist/sel", "Y");
- }
- //fPrcpMPSPrint();
- }
- }
- ]]>
- </script>
- </input>
- <input id="ipt_last_drugno" ref="/root/hidden/srchinfo/last_drugno" class="input_search" autonext="false" maxlength="5" format="99999" style="left:205px; top:312px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChgDrugno("last");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- var bResult = fChgDrugno("last");
- if(bResult){
- fInSumList();
- model.setValue("/root/main/patlist/patlist/sel", "Y");
- //fPrcpMPSPrint();
- }
- }
- ]]>
- </script>
- </input>
- <input id="ipt_pid" ref="/root/hidden/srchinfo/pid" class="input_default" autonext="false" maxlength="10" style="left:85px; top:362px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- fInSumList();
- }
- ]]>
- </script>
- </input>
- <select id="chk_lbl" ref="/root/hidden/srchinfo/lblsizeflag" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:150px; top:438px; width:135px; height:18px; border-style:none; ">
- <choices>
- <item>
- <label>큰라벨</label>
- <value>L</value>
- </item>
- <item>
- <label>작은라벨</label>
- <value>S</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //20090925 이선경 : 큰라벨과 작은라벨은 동시에 체크안되도록 함
- //20101203 wify 경북대병원 : 큰라벨(본원)추가, 큰라벨, 작은라벨과 동시에 체크 안되도록 함.
- var chklbl = chk_lbl.value;
- var chklbl1 = chk_lbl1.value;
- if(chk_lbl.focusIndex == 1 ) {
- if(isSearchString(chklbl, "L")) {
- chk_lbl.value = "S";
- chk_lbl1.value = "";
- }
- if(isSearchString(chklbl1, "L1")) {
- chk_lbl.value = "S";
- chk_lbl1.value = "";
- }
- }
- if(chk_lbl.focusIndex == 0 ) {
- if(isSearchString(chklbl, "S")) {
- chk_lbl.value = "L";
- chk_lbl1.value = "";
- }
- if(isSearchString(chklbl1, "L1")) {
- chk_lbl.value = "L";
- chk_lbl1.value = "";
- }
- }
- //fChkLBL_YN();
- ]]>
- </script>
- </select>
- <output id="output1" ref="/root/hidden/srchinfo/instcd" visibility="hidden" style="left:640px; top:493px; width:100px; height:19px; "/>
- <datagrid id="grd_sumlist" nodeset="/root/main/sumlist/sumlist" caption="^마감일자^마감시간^sumdt^처방구분^건수^약번호구간^마감자^sumflag^drugkind" colsep="^" colwidth="23, 74, 55, 20, 65, 40, 125, 65, 50, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:575px; top:35px; width:260px; height:515px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="sumdd" format="yyyy-mm-dd" style="text-align:center; vertical-align:middle; "/>
- <col ref="sumtm" format="hh:nn:ss" style="text-align:center; vertical-align:middle; "/>
- <col ref="sumdt" visibility="hidden" style="text-align:center; vertical-align:middle; "/>
- <col ref="prcpflagnm" style="text-align:center; vertical-align:middle; "/>
- <col ref="cnt" style="text-align:right; vertical-align:middle; "/>
- <col ref="drugnolist"/>
- <col/>
- <col ref="sumflag" visibility="hidden" style="text-align:center; vertical-align:middle; "/>
- <col ref="drugkind" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if(grd_sumlist.colRef("sel") == grd_sumlist.col && ( isDataCell() || grd_sumlist.row < grd_sumlist.rows ) ) {
- fPrntPatList();
- }
-
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_patlist" nodeset="/root/main/patlist/patlist" visibility="visible" caption="^출력^drugdd^투약번호^병동^병실^환자번호^성명^처방일^orddd^cretno^orddeptcd^진료과^진료의사^prcpgenrflag^wardcd^출력시간^drugflag^reyn" colsep="^" colwidth="24, 45, 70, 61, 80, 70, 70, 69, 80, 61, 43, 67, 90, 85, 84, 100, 100, 100, 100" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:835px; top:35px; width:350px; height:515px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="prnttims" style="text-align:right; "/>
- <col ref="drugdd" visibility="hidden" style="text-align:right; "/>
- <col ref="drugno" style="text-align:right; "/>
- <col ref="wardnm" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="prcpgenrflag" visibility="hidden"/>
- <col ref="wardcd" visibility="hidden"/>
- <col ref="prntdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="drugflag" visibility="hidden"/>
- <col ref="reyn" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_patlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var corows = grd_patlist.row;
- model.setValue("/root/send/prcplist/drugdd", model.getValue("/root/main/patlist/patlist["+ corows +"]/drugdd"));
- model.setValue("/root/send/prcplist/drugno", model.getValue("/root/main/patlist/patlist["+ corows +"]/drugno"));
-
- submit("TRADT62202");
- ]]>
- </script>
- </datagrid>
- <button id="btn_sea" class="btn1_letter2" visibility="visible" style="left:510px; top:40px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInSumList();
- ]]>
- </script>
- </button>
- <select id="rdo_prcp" ref="/root/hidden/srchinfo/prcpflag" class="radio_search" overflow="visible" appearance="full" cellspacing="6" cols="7" style="left:86px; top:67px; width:104px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>정규</label>
- <value>R</value>
- </item>
- <item>
- <label>추가</label>
- <value>A</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*model.setValue("/root/hidden/srchinfo/endtime1", "");
- model.setValue("/root/hidden/srchinfo/fromddflag1", "");
- model.setValue("/root/hidden/srchinfo/fromtm1", "");
- model.setValue("/root/hidden/srchinfo/toddflag1", "");
- model.setValue("/root/hidden/srchinfo/totm1", "");
-
-
- //마감시간구분 재조회
- if(model.getValue("/root/hidden/srchinfo/prcpflag") == "R" || model.getValue("/root/hidden/srchinfo/prcpflag") == "A") {
- model.copyNode("/root/send/sumlistinfo", "/root/hidden/srchinfo");
- submit("TRADT10206");
-
- cmb_sumtmflag.select(0);
- cmb_sumtmflag.disabled = false;
- cmb_fromddflag.disabled = false;
- ipt_fromtm.disabled = false;
- cmb_toddflag.disabled = false;
- ipt_totm.disabled = false;
-
- } else {
- cmb_sumtmflag.disabled = true;
- cmb_fromddflag.disabled = true;
- ipt_fromtm.disabled = true;
- cmb_toddflag.disabled = true;
- ipt_totm.disabled = true;
- }
- */
-
- fInSumList();
- ]]>
- </script>
- </select>
- <caption id="caption1" class="cell_1" style="left:0px; top:311px; width:80px; height:23px; vertical-align:middle; ">투약번호</caption>
- <caption id="caption2" class="cell_1" style="left:0px; top:246px; width:80px; height:23px; vertical-align:middle; ">약주사구분</caption>
- <select1 id="radio1" ref="/root/hidden/srchinfo/drugkind" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:86px; top:248px; width:165px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>약</label>
- <value>D</value>
- </item>
- <item>
- <label>주사</label>
- <value>M</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fInSumList();
- ]]>
- </script>
- </select1>
- <button id="btn_init" class="btn1_letter3" style="left:500px; top:290px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/hidden/srchinfo/fst_drugno", "");
- model.setValue("/root/hidden/srchinfo/last_drugno", "");
- model.setValue("/root/hidden/srchinfo/wardcd", "");
- model.setValue("/root/hidden/srchinfo/wardnm", "");
- model.setValue("/root/temp/srchinfo/ward", "");
- model.setValue("/root/hidden/srchinfo/pid", "");
- model.refresh();
- fInSumList();
- ]]>
- </script>
- </button>
- <button id="btn_hist" class="btn2_letter5" style="left:835px; top:15px; width:75px; height:19px; ">
- <caption>미출력선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for ( var i = 1 ; i < grd_patlist.rows; i++){
- if ( parseInt (model.getValue("/root/main/patlist/patlist["+i+"]/prnttims")) ==0 ){
- model.setValue( "/root/main/patlist/patlist["+i+"]/sel", "Y");
- } else {
- model.setValue( "/root/main/patlist/patlist["+i+"]/sel", "N");
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="cell_1" style="left:0px; top:271px; width:80px; height:37px; vertical-align:middle; ">기타조회구분</caption>
- <select1 id="radio3" ref="/root/hidden/srchinfo/etcflag" appearance="full" cols="2" overflow="visible" style="left:86px; top:272px; width:130px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>특정구분만</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/hidden/srchinfo/etcflag") == "T"){
- model.setValue("/root/hidden/srchinfo/etcdescflag", "");
- cbx_etcdescflag.disabled = true;
- fInSumList(); //2010-07-06 특정구분만 선택시 조회하지 않는다.(배성미 약사 요청)
- } else {
- model.setValue("/root/hidden/srchinfo/etcdescflag", "");
- cbx_etcdescflag.disabled = false;
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <select id="cbx_etcdescflag" ref="/root/hidden/srchinfo/etcdescflag" overflow="visible" appearance="full" cols="6" sep="|" style="left:220px; top:272px; width:345px; height:36px; border-style:none; ">
- <choices>
- <item>
- <label>고가</label>
- <value>E</value>
- </item>
- <item>
- <label>산제</label>
- <value>P</value>
- </item>
- <item>
- <label>산제제외</label>
- <value>O</value>
- </item>
- <item>
- <label>향정</label>
- <value>H</value>
- </item>
- <item>
- <label>고가만</label>
- <value>F</value>
- </item>
- <item>
- <label>향정만</label>
- <value>K</value>
- </item>
- <item>
- <label>냉장</label>
- <value>I</value>
- </item>
- <item>
- <label>고위험</label>
- <value>D</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var lblstr = model.getValue("/root/hidden/srchinfo/etcdescflag");
- if(cbx_etcdescflag.focusIndex == 0 || cbx_etcdescflag.focusIndex == 2) {
- if(lblstr.indexOf("E") > -1) {
- lblstr = lblstr.setReplaceWord("F", "");
- }
- if(lblstr.indexOf("H") > -1) {
- lblstr = lblstr.setReplaceWord("K", "");
- }
- } else if(cbx_etcdescflag.focusIndex == 3 || cbx_etcdescflag.focusIndex == 4) {
- if(lblstr.indexOf("F") > -1) {
- lblstr = lblstr.setReplaceWord("E", "");
- }
- if(lblstr.indexOf("K") > -1) {
- lblstr = lblstr.setReplaceWord("H", "");
- }
- }
- model.setValue("/root/hidden/srchinfo/etcdescflag", lblstr);
-
- fInSumList();
- ]]>
- </script>
- </select>
- <button id="button2" class="btn6_letter4" visibility="hidden" style="left:655px; top:665px; width:80px; height:22px; ">
- <caption>수제라벨</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- prntcheck = "Y"
- fLiquidLBLPrint();
-
- ]]>
- </script>
- </button>
- <caption id="caption4" class="tit_2" style="left:5px; top:20px; width:185px; height:14px; ">마감 및 출력</caption>
- <line id="line4" class="line_2" style="x1:0px; y1:220px; x2:570px; y2:220px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:310px; x2:570px; y2:310px; "/>
- <select id="checkbox1" ref="/root/hidden/srchinfo/drugall" visibility="hidden" overflow="visible" appearance="full" style="left:45px; top:680px; width:55px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>약</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var chk = model.getValue("/root/hidden/srchinfo/drugall");
- var sLbl_Drug = "D|DT|DX|DH|DI|DS";
- var sLbl_Inj = "I|IO|IX|IH";
-
-
- if(chk == "Y"){
- model.makeValue("/root/hidden/srchinfo/lbl_drug", sLbl_Drug);
- } else {
- model.makeValue("/root/hidden/srchinfo/lbl_drug", "");
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <select id="checkbox2" ref="/root/hidden/srchinfo/injall" visibility="hidden" overflow="visible" appearance="full" style="left:45px; top:695px; width:55px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>주사</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var chk = model.getValue("/root/hidden/srchinfo/injall");
- var sLbl_Drug = "D|DT|DX|DH|DI|DS";
- var sLbl_Inj = "I|IO|IX|IH";
-
-
- if(chk == "Y"){
- model.makeValue("/root/hidden/srchinfo/lbl_inj", sLbl_Inj);
- } else {
- model.makeValue("/root/hidden/srchinfo/lbl_inj", "");
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <caption id="caption7" visibility="hidden" autoresize="true" style="left:110px; top:682px; width:10px; height:15px; ">(</caption>
- <caption id="caption8" visibility="hidden" autoresize="true" style="left:110px; top:697px; width:10px; height:15px; ">(</caption>
- <caption id="caption9" visibility="hidden" autoresize="true" style="left:440px; top:697px; width:10px; height:15px; ">)</caption>
- <caption id="caption10" visibility="hidden" autoresize="true" style="left:440px; top:682px; width:10px; height:15px; ">)</caption>
- <input id="ipt_wardnm" ref="/root/hidden/srchinfo/wardnm" class="input_search" disabled="true" style="left:85px; top:338px; width:325px; height:19px; "/>
- <input id="ipt_wardcd" ref="/root/hidden/srchinfo/wardcd" class="input_search" visibility="hidden" style="left:295px; top:358px; width:140px; height:19px; "/>
- <line id="line1" class="line_3" style="x1:0px; y1:484px; x2:570px; y2:484px; "/>
- <select id="rdo_prcp2" ref="/root/hidden/srchinfo/prcpflag" class="radio_search" overflow="visible" appearance="full" cellspacing="6" cols="4" rows="2" vcellspacing="4" style="left:86px; top:110px; width:419px; height:60px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/prcpflaglist/prcpflag">
- <label ref="flagnm"/>
- <value ref="flagid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*model.setValue("/root/hidden/srchinfo/endtime", "");
- model.setValue("/root/hidden/srchinfo/fromddflag", "");
- model.setValue("/root/hidden/srchinfo/fromtm", "");
- model.setValue("/root/hidden/srchinfo/toddflag", "");
- model.setValue("/root/hidden/srchinfo/totm", "");
-
- //마감시간구분 재조회
- if(model.getValue("/root/hidden/srchinfo/prcpflag") == "R" || model.getValue("/root/hidden/srchinfo/prcpflag") == "A") {
- model.copyNode("/root/send/sumlistinfo", "/root/hidden/srchinfo");
- submit("TRADT10206");
-
- cmb_sumtmflag.disabled = false;
- cmb_fromddflag.disabled = false;
- ipt_fromtm.disabled = false;
- cmb_toddflag.disabled = false;
- ipt_totm.disabled = false;
-
- } else {
- cmb_sumtmflag.disabled = true;
- cmb_fromddflag.disabled = true;
- ipt_fromtm.disabled = true;
- cmb_toddflag.disabled = true;
- ipt_totm.disabled = true;
- }
-
- */
- fInSumList();
- ]]>
- </script>
- </select>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "115") { //F4키를 누르면 자동출력 중지
- prntcheck = "N"
- }
- ]]>
- </script>
- <group id="group2" visibility="hidden" style="left:575px; top:435px; width:610px; height:125px; background-color:#ffff99; ">
- <caption id="caption14" style="left:0px; top:50px; width:595px; height:75px; font-size:48pt; font-weight:bold; color:#ff0000; text-align:center; ">자동 출력 중</caption>
- <caption id="caption23" style="left:15px; top:10px; width:580px; height:40px; font-size:14pt; font-weight:bold; color:#ff0000; vertical-align:top; "/>
- </group>
- <select id="checkbox7" ref="/root/hidden/srchinfo/orderbyatc" overflow="visible" appearance="full" style="left:1080px; top:15px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>ATC순으로정렬</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fPrntPatList();
- ]]>
- </script>
- </select>
- <caption id="caption17" class="cell_1" style="left:0px; top:198px; width:80px; height:23px; vertical-align:middle; ">추가마감구분</caption>
- <input id="ipt_fromtm2" ref="/root/hidden/srchinfo/fromtm2" class="input_search" autonext="false" maxlength="5" format="hh:nn" style="left:320px; top:200px; width:45px; height:19px; "/>
- <caption id="caption18" style="left:370px; top:199px; width:30px; height:25px; font-weight:bold; vertical-align:middle; ">~</caption>
- <input id="ipt_totm2" ref="/root/hidden/srchinfo/totm2" class="input_search" autonext="false" maxlength="5" format="hh:nn" style="left:455px; top:200px; width:50px; height:19px; "/>
- <select1 id="cmb_sumtmflag2" ref="/root/hidden/srchinfo/endtime2" class="combo_search" appearance="minimal" style="left:85px; top:200px; width:165px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/sumtmflaglist/flaglist2">
- <label ref="flagnm"/>
- <value ref="flagcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var idx = cmb_sumtmflag2.mouseRow + 1;
-
- var fromddflag = model.getValue("/root/init/sumtmflaglist/flaglist2[" + idx + "]/fromddflag");
- var fromtm = model.getValue("/root/init/sumtmflaglist/flaglist2[" + idx + "]/fromtm");
- var toddflag = model.getValue("/root/init/sumtmflaglist/flaglist2[" + idx + "]/toddflag");
- var totm = model.getValue("/root/init/sumtmflaglist/flaglist2[" + idx + "]/totm");
-
- model.setValue("/root/hidden/srchinfo/fromddflag2", fromddflag);
- model.setValue("/root/hidden/srchinfo/fromtm2", fromtm);
- model.setValue("/root/hidden/srchinfo/toddflag2", toddflag);
- model.setValue("/root/hidden/srchinfo/totm2", totm);
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_fromddflag2" ref="/root/hidden/srchinfo/fromddflag2" class="combo_search" appearance="minimal" style="left:255px; top:200px; width:60px; height:19px; ">
- <choices>
- <item>
- <label>전일</label>
- <value>0</value>
- </item>
- <item>
- <label>당일</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_toddflag2" ref="/root/hidden/srchinfo/toddflag2" class="combo_search" appearance="minimal" style="left:390px; top:200px; width:60px; height:19px; ">
- <choices>
- <item>
- <label>전일</label>
- <value>0</value>
- </item>
- <item>
- <label>당일</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <line id="line16" class="line_2" style="x1:0px; y1:269px; x2:570px; y2:269px; "/>
- <button id="button4" class="btn6_letter4" visibility="hidden" style="left:570px; top:665px; width:80px; height:22px; ">
- <caption>외용라벨</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- prntcheck = "Y"
- fOutLBLPrint();
- ]]>
- </script>
- </button>
- <button id="button6" class="btn6_letter4" visibility="hidden" style="left:485px; top:685px; width:80px; height:22px; ">
- <caption>PTP라벨</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- prntcheck = "Y"
- fPTPLBLPrint();
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/hidden/srchinfo/stocdeptcd" appearance="minimal" style="left:269px; top:15px; width:145px; 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/srchinfo/stocdeptcd", model.getValue("/root/temp/stocdeptcd"));
- }
- //combo1.refresh();
- model.refresh();
- }
- ]]>
- </script>
- </select1>
- <caption id="caption19" style="left:195px; top:15px; width:74px; height:20px; font-weight:bold; color:#ff0000; ">실출고부서</caption>
- <button id="button3" class="btn3_letter6" navindex="18" visibility="visible" style="left:96px; top:628px; width:104px; height:22px; ">
- <caption>마감시간관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fSetEndTime();
- modal("SPADT64100");
- if(getParameter("SPADT64100_param") == "Y") {
- //model.makeValue("/root/send/sumlistinfo/prcpflag", "A");
- if(submit("TRADT10212")) {
- var idx = cmb_sumtmflag1.value;
- var fromddflag = model.getValue("/root/init/sumtmflaglist/flaglist1[flagcd = '" + idx + "']/fromddflag");
- var fromtm = model.getValue("/root/init/sumtmflaglist/flaglist1[flagcd = '" + idx + "']/fromtm");
- var toddflag = model.getValue("/root/init/sumtmflaglist/flaglist1[flagcd = '" + idx + "']/toddflag");
- var totm = model.getValue("/root/init/sumtmflaglist/flaglist1[flagcd = '" + idx + "']/totm");
-
- model.setValue("/root/hidden/srchinfo/fromddflag1", fromddflag);
- model.setValue("/root/hidden/srchinfo/fromtm1", fromtm);
- model.setValue("/root/hidden/srchinfo/toddflag1", toddflag);
- model.setValue("/root/hidden/srchinfo/totm1", totm);
-
- idx = cmb_sumtmflag2.value;
- fromddflag = model.getValue("/root/init/sumtmflaglist/flaglist2[flagcd = '" + idx + "']/fromddflag");
- fromtm = model.getValue("/root/init/sumtmflaglist/flaglist2[flagcd = '" + idx + "']/fromtm");
- toddflag = model.getValue("/root/init/sumtmflaglist/flaglist2[flagcd = '" + idx + "']/toddflag");
- totm = model.getValue("/root/init/sumtmflaglist/flaglist2[flagcd = '" + idx + "']/totm");
-
- model.setValue("/root/hidden/srchinfo/fromddflag2", fromddflag);
- model.setValue("/root/hidden/srchinfo/fromtm2", fromtm);
- model.setValue("/root/hidden/srchinfo/toddflag2", toddflag);
- model.setValue("/root/hidden/srchinfo/totm2", totm);
- model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_autoprnt_start" class="btn1_letter6" style="left:355px; top:628px; width:104px; height:22px; ">
- <caption>자동출력시작</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/hidden/srchinfo/autolblsize") == "") {
- if(model.getValue("/root/hidden/srchinfo/autolblsize1") != "") {
- model.setValue("/root/hidden/srchinfo/autolblsize", model.getValue("/root/hidden/srchinfo/autolblsize1"));
- }
- }
- var val = model.getValue("/root/hidden/srchinfo/autolblsize");
- fClickAutoPrnt("Y");
- ]]>
- </script>
- </button>
- <button id="btn_autoprnt_end" class="btn1_letter6" style="left:462px; top:628px; width:104px; height:22px; ">
- <caption>자동출력종료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClickAutoPrnt("N");
- //model.reset();
- ]]>
- </script>
- </button>
- <button id="btn_prnt" class="btn3_letter5" navindex="18" style="left:0px; top:628px; width:92px; height:22px; ">
- <caption>프린터설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetPrint();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_2" style="x1:0px; y1:602px; x2:570px; y2:602px; "/>
- <select id="checkbox5" ref="/root/hidden/srchinfo/autoatcyn" visibility="hidden" overflow="visible" appearance="full" cellspacing="10" cols="2" rows="1" sep="|" style="left:500px; top:605px; width:65px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>ATC전송</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="caption12" class="cell_2" style="left:0px; top:604px; width:80px; height:23px; text-align:left; vertical-align:middle; ">출력구분</caption>
- <select id="checkbox6" ref="/root/hidden/srchinfo/autoendyn" visibility="hidden" overflow="visible" appearance="full" cellspacing="10" cols="2" rows="1" sep="|" style="left:430px; top:605px; width:65px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>마감작업</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chk_auto_big" ref="/root/hidden/srchinfo/autokind" overflow="visible" appearance="full" cellspacing="10" cols="5" sep="|" style="left:85px; top:606px; width:60px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>처방전</label>
- <value>M</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //20090925 이선경 : 큰라벨과 작은라벨은 동시에 체크안되도록 함
- var chklbl = chk_auto_big.value;
-
- if(chk_auto_big.focusIndex == 2 ) {
- if(isSearchString(chklbl, "L")) {
- chklbl = chklbl.setReplaceWord("L", "");
- chk_auto_big.value = chklbl;
- }
- }
- if(chk_auto_big.focusIndex == 1 ) {
- if(isSearchString(chklbl, "Q")) {
- chklbl = chklbl.setReplaceWord("Q", "");
- chk_auto_big.value = chklbl;
- }
- }
-
- ]]>
- </script>
- </select>
- <caption id="caption5" class="tit_2" style="left:5px; top:495px; width:185px; height:13px; ">자동출력</caption>
- <select id="checkbox8" ref="/root/hidden/srchinfo/autokind" visibility="hidden" overflow="visible" appearance="full" cellspacing="10" cols="5" sep="|" style="left:350px; top:655px; width:145px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>PTP라벨</label>
- <value>P</value>
- </item>
- <item>
- <label>외용라벨</label>
- <value>O</value>
- </item>
- </choices>
- </select>
- <input id="input1" ref="/root/hidden/sleeptime" class="input_default" visibility="visible" style="left:270px; top:629px; width:45px; height:19px; "/>
- <caption id="caption15" style="left:215px; top:631px; width:55px; height:15px; ">출력간격</caption>
- <line id="line2" class="line_2" style="x1:0px; y1:513px; x2:570px; y2:513px; "/>
- <caption id="caption26" class="cell_1" style="left:0px; top:515px; width:80px; height:60px; vertical-align:middle; ">처방구분</caption>
- <select id="chk_auto_lblflag" ref="/root/hidden/srchinfo/autolblflag" overflow="visible" appearance="full" cellspacing="5" cols="8" sep="|" style="left:85px; top:581px; width:400px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>정제</label>
- <value>AD</value>
- </item>
- <item>
- <label>주사</label>
- <value>AI</value>
- </item>
- <item>
- <label>PTP</label>
- <value>DT</value>
- </item>
- <item>
- <label>외용</label>
- <value>DI</value>
- </item>
- <item>
- <label>수제</label>
- <value>DS</value>
- </item>
- <item>
- <label>PACK</label>
- <value>DG</value>
- </item>
- <item>
- <label>마약</label>
- <value>DM</value>
- </item>
- <item>
- <label>산제용법별</label>
- <value>DP</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var chklbl = chk_auto_lblflag.value;
-
- if(isSearchString(chklbl, "DT")) {
- checkbox3.value = chklbl.setReplaceWord("PTS", "");
- }
-
- if(chk_auto_lblflag.mouseCol == 6 && isSearchString(chklbl, "DP")) {
- chk_auto_lblflag.value = chklbl.setReplaceWord("AD", "");
- } else if(chk_auto_lblflag.mouseCol == 0 && isSearchString(chklbl, "AD")) {
- chk_auto_lblflag.value = chklbl.setReplaceWord("DP", "");
- }
- ]]>
- </script>
- </select>
- <caption id="caption16" style="left:320px; top:631px; width:20px; height:15px; ">초</caption>
- <line id="line3" class="line_3" style="x1:0px; y1:626px; x2:570px; y2:626px; "/>
- <select id="chk_auto_small" ref="/root/hidden/srchinfo/autoprntflag" overflow="visible" appearance="full" cellspacing="12" cols="4" rows="2" sep="|" vcellspacing="4" style="left:85px; top:516px; width:470px; height:59px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/prcpflaglist/prcpflag">
- <label ref="flagnm"/>
- <value ref="flagid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( model.getValue("/root/hidden/srchinfo/autoprntflag").indexOf("K") >=0 ){
- alert("응급실집계주사는 선택할수없습니다.!!") ;
- var get_str,rep_str
- get_str = model.getValue("/root/hidden/srchinfo/autoprntflag")
- rep_str = get_str.replace("K","") ;
- // alert(rep_str) ;
- model.setValue("/root/hidden/srchinfo/autoprntflag",rep_str) ;
- // alert(model.getValue("/root/hidden/srchinfo/autoprntflag")) ;
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <caption id="caption27" class="cell_1" style="left:0px; top:580px; width:80px; height:23px; vertical-align:middle; ">라벨구분</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:510px; x2:570px; y2:510px; "/>
- <select id="checkbox9" ref="/root/hidden/srchinfo/reprintyn" overflow="visible" appearance="full" cellspacing="10" cols="2" rows="1" sep="|" style="left:85px; top:462px; width:65px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>재출력</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="caption28" class="cell_1" style="left:0px; top:459px; width:80px; height:23px; vertical-align:middle; ">재출력</caption>
- <select id="checkbox3" ref="/root/hidden/srchinfo/autolblflag" visibility="hidden" overflow="visible" appearance="full" cellspacing="10" cols="2" rows="1" sep="|" style="left:460px; top:580px; width:105px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>PTP단독처방</label>
- <value>PTS</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var chklbl = checkbox3.value;
-
- if(isSearchString(chklbl, "PTS")) {
- var lblstr = model.getValue("/root/hidden/srchinfo/autolblflag");
- lblstr = lblstr.setReplaceWord("DT", "");
- model.setValue("/root/hidden/srchinfo/autolblflag", lblstr);
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <select id="checkbox10" ref="/root/hidden/srchinfo/manllblflag" visibility="hidden" overflow="visible" appearance="full" cellspacing="10" cols="2" rows="1" sep="|" style="left:461px; top:397px; width:105px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>PTP단독처방</label>
- <value>PTS</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var chklbl = checkbox10.value;
-
- if(isSearchString(chklbl, "PTS")) {
- var lblstr = model.getValue("/root/hidden/srchinfo/manllblflag");
- lblstr = lblstr.setReplaceWord("DT", "");
- model.setValue("/root/hidden/srchinfo/manllblflag", lblstr);
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <select id="chk_manl_lblflag" ref="/root/hidden/srchinfo/manllblflag" overflow="visible" appearance="full" cellspacing="5" cols="8" sep="|" style="left:85px; top:391px; width:375px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>정제</label>
- <value>AD</value>
- </item>
- <item>
- <label>주사</label>
- <value>AI</value>
- </item>
- <item>
- <label>PTP</label>
- <value>DT</value>
- </item>
- <item>
- <label>외용</label>
- <value>DI</value>
- </item>
- <item>
- <label>수제</label>
- <value>DS</value>
- </item>
- <item>
- <label>PACK</label>
- <value>DG</value>
- </item>
- <item>
- <label>마약</label>
- <value>DM</value>
- </item>
- <item>
- <label>산제용법별</label>
- <value>DP</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var chklbl = chk_manl_lblflag.value;
-
- if(isSearchString(chklbl, "DT")) {
- checkbox10.value = chklbl.setReplaceWord("PTS", "");
- }
- if(chk_manl_lblflag.mouseCol == 6 && isSearchString(chklbl, "DP")) {
- chk_manl_lblflag.value = chklbl.setReplaceWord("AD", "");
- } else if(chk_manl_lblflag.mouseCol == 0 && isSearchString(chklbl, "AD")) {
- chk_manl_lblflag.value = chklbl.setReplaceWord("DP", "");
- }else if(chk_manl_lblflag.mouseCol == 1 && isSearchString(chklbl, "AI")) {
- var chklblkeepmthd = chk_lbl_keepmthd.value;
- if(isSearchString(chklblkeepmthd, "LBL_INJ_I") || isSearchString(chklblkeepmthd, "LBL_INJ_D")) {
- var lblstr = model.getValue("/root/hidden/srchinfo/manllblflag");
- lblstr = lblstr.setReplaceWord("LBL_INJ_I", "");
- lblstr = lblstr.setReplaceWord("LBL_INJ_D", "");
- model.setValue("/root/hidden/srchinfo/manllblflag", lblstr);
- chk_lbl_keepmthd.value =lblstr;
- model.refresh();
- }
- }
-
-
- ]]>
- </script>
- </select>
- <select id="checkbox12" ref="/root/hidden/srchinfo/lblyn" visibility="hidden" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:30px; top:655px; width:55px; height:18px; border-style:none; ">
- <choices>
- <item>
- <label>라벨</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //20090925 이선경 : 큰라벨과 작은라벨은 동시에 체크안되도록 함
- var chklbl = chk_lbl.value;
-
- if(chk_lbl.focusIndex == 1 ) {
- if(isSearchString(chklbl, "L")) {
- chklbl = chklbl.setReplaceWord("L", "");
- chk_lbl.value = chklbl;
- }
- }
- if(chk_lbl.focusIndex == 0 ) {
- if(isSearchString(chklbl, "Q")) {
- chklbl = chklbl.setReplaceWord("Q", "");
- chk_lbl.value = chklbl;
- }
- }
-
- fChkLBL_YN();
- ]]>
- </script>
- </select>
- <group id="grp_report1" visibility="hidden" style="left:0px; top:0px; width:0px; height:0px; "/>
- <group id="grp_report2" visibility="hidden" style="left:0px; top:0px; width:0px; height:0px; "/>
- <group id="grp_report3" visibility="hidden" style="left:0px; top:0px; width:0px; height:0px; "/>
- <select id="chk_auto_lblsize" ref="/root/hidden/srchinfo/autolblsize" overflow="visible" appearance="full" cellspacing="10" cols="5" sep="|" style="left:150px; top:606px; width:135px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>큰라벨</label>
- <value>L</value>
- </item>
- <item>
- <label>작은라벨</label>
- <value>S</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //20090925 이선경 : 큰라벨과 작은라벨은 동시에 체크안되도록 함
- //20101203 wify 경북대병원 : 큰라벨(본원)추가, 큰라벨, 작은라벨과 동시에 체크 안되도록 함.
- var chklbl = chk_auto_lblsize.value;
- var chklbl1 = chk_auto_lblsize1.value;
-
- if(chk_auto_lblsize.focusIndex == 1 ) {
- if(isSearchString(chklbl, "L")) {
- chk_auto_lblsize.value = "S";
- }
- if(isSearchString(chklbl1, "L1")) {
- chk_auto_lblsize.value = "S";
- chk_auto_lblsize1.value = "";
- }
- }
- if(chk_auto_lblsize.focusIndex == 0 ) {
- if(isSearchString(chklbl, "S")) {
- chk_auto_lblsize.value = "L";
- }
- if(isSearchString(chklbl1, "L1" )) {
- chk_auto_lblsize.value = "L";
- chk_auto_lblsize1.value = "";
- }
- }
- ]]>
- </script>
- </select>
- <caption id="caption29" style="left:195px; top:65px; width:284px; height:20px; ">( )</caption>
- <group id="group7" visibility="hidden" style="left:575px; top:535px; width:60px; height:50px; ">
- <object id="CommAX1" clsid="{B721F534-D025-466B-8A28-7CF40E700ACD}" style="left:5px; top:0px; width:45px; height:45px; "/>
- <object id="CommAX2" clsid="{87A84390-EB86-424F-97B9-45E53A5EFE28}" style="left:5px; top:6px; width:45px; height:45px; "/>
- </group>
- <input id="ipt_totm1" ref="/root/hidden/srchinfo/totm1" class="input_search" autonext="false" maxlength="5" format="hh:nn" style="left:455px; top:175px; width:50px; height:19px; "/>
- <select1 id="cmb_sumtmflag1" ref="/root/hidden/srchinfo/endtime1" class="combo_search" appearance="minimal" style="left:85px; top:175px; width:165px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/sumtmflaglist/flaglist1">
- <label ref="flagnm"/>
- <value ref="flagcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var idx = cmb_sumtmflag1.mouseRow + 1;
-
- var fromddflag = model.getValue("/root/init/sumtmflaglist/flaglist1[" + idx + "]/fromddflag");
- var fromtm = model.getValue("/root/init/sumtmflaglist/flaglist1[" + idx + "]/fromtm");
- var toddflag = model.getValue("/root/init/sumtmflaglist/flaglist1[" + idx + "]/toddflag");
- var totm = model.getValue("/root/init/sumtmflaglist/flaglist1[" + idx + "]/totm");
-
- model.setValue("/root/hidden/srchinfo/fromddflag1", fromddflag);
- model.setValue("/root/hidden/srchinfo/fromtm1", fromtm);
- model.setValue("/root/hidden/srchinfo/toddflag1", toddflag);
- model.setValue("/root/hidden/srchinfo/totm1", totm);
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_fromddflag1" ref="/root/hidden/srchinfo/fromddflag1" class="combo_search" appearance="minimal" style="left:255px; top:175px; width:60px; height:19px; ">
- <choices>
- <item>
- <label>전일</label>
- <value>0</value>
- </item>
- <item>
- <label>당일</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_fromtm1" ref="/root/hidden/srchinfo/fromtm1" class="input_search" autonext="false" maxlength="5" format="hh:nn" style="left:320px; top:175px; width:45px; height:19px; "/>
- <select1 id="cmb_toddflag1" ref="/root/hidden/srchinfo/toddflag1" class="combo_search" appearance="minimal" style="left:390px; top:175px; width:60px; height:19px; ">
- <choices>
- <item>
- <label>전일</label>
- <value>0</value>
- </item>
- <item>
- <label>당일</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <caption id="caption30" class="cell_1" style="left:0px; top:173px; width:80px; height:23px; vertical-align:middle; ">정규마감구분</caption>
- <caption id="caption31" style="left:370px; top:174px; width:30px; height:25px; font-weight:bold; vertical-align:middle; ">~</caption>
- <line id="line11" class="line_2" style="x1:0px; y1:197px; x2:570px; y2:197px; "/>
- <select id="checkbox4" ref="/root/hidden/srchinfo/onlyantis" class="checkbox_search" overflow="visible" appearance="full" cellspacing="10" cols="2" rows="1" sep="|" style="left:205px; top:67px; width:130px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>항암프로토콜처방만</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox11" ref="/root/hidden/srchinfo/multiyn" class="checkbox_search" overflow="visible" appearance="full" cellspacing="10" cols="2" rows="1" sep="|" style="left:335px; top:67px; width:130px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Multi-day처방포함</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <line id="line18" class="line_2" style="x1:0px; y1:578px; x2:570px; y2:578px; "/>
- <caption id="caption32" class="cell_1" style="left:0px; top:414px; width:80px; height:20px; vertical-align:middle; ">보관구분</caption>
- <select id="chk_lbl_keepmthd" ref="/root/hidden/srchinfo/manllblflag" overflow="visible" appearance="full" cellspacing="10" cols="2" sep="|" style="left:85px; top:416px; width:165px; height:18px; border-style:none; ">
- <choices>
- <item>
- <label>냉장주사</label>
- <value>LBL_INJ_I</value>
- </item>
- <item>
- <label>고위험주사</label>
- <value>LBL_INJ_D</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var chklbl = chk_lbl_keepmthd.value;
-
- if(isSearchString(chklbl, "LBL_INJ_I") || isSearchString(chklbl, "LBL_INJ_D") ) {
- var lblstr = model.getValue("/root/hidden/srchinfo/manllblflag");
- lblstr = lblstr.setReplaceWord("AI", "");
- model.setValue("/root/hidden/srchinfo/manllblflag", lblstr);
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <line id="line19" class="line_2" style="x1:0px; y1:383px; x2:570px; y2:383px; "/>
- <select id="chk_ward" ref="/root/temp/srchinfo/ward" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="2" sep="|" style="left:85px; top:358px; width:205px; height:15px; background-color:#e5eae9; border-style:none; ">
- <choices>
- <itemset nodeset="/root/hidden/deptlist/ward">
- <label ref="wardnm"/>
- <value ref="wardcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- //if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
- if(chk_ward.mouseRow == 0 && chk_ward.mouseCol == 0){
- if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
- //ipt_wardcd.value = "2100300000|2110200000|2110201000|2280200000|2360800000|2361501000|3050107000|3050108000|3050109000|3050110000|3050112000|3050113000|3050115000|3050116000|3050118000|3050119000|3050120000|3050121000|3050122000|3050123000|3050135000|3050136000|3060000000|3060100000|3060200000|3060300000|3060400000|3060600000|3120400000";
- //ipt_wardnm.value = "분만실|신생아실|신생아중환자실|응급의료센터|통원수술센터|임상시험센터병동|04층동병동|04층서병동|05층동병동|05층서병동|06층동병동|06층서병동|07층동병동|07층서병동|08층동병동|08층서병동|09층동병동|09층서병동|10층동병동|10층서병동|응급병동|호스피스병동|중환자실|내과중환자실|외과중환자실|신경외과중환자실|순환기계중환자실|2층중환자실|특수주사실특수주사";
- //model.setValue("/root/temp/srchinfo/ward", "T|2100300000|2110200000|2110201000|2280200000|2360800000|2361501000|3050107000|3050108000|3050109000|3050110000|3050112000|3050113000|3050115000|3050116000|3050118000|3050119000|3050120000|3050121000|3050122000|3050123000|3050135000|3050136000|3060000000|3060100000|3060200000|3060300000|3060400000|3060600000|3120400000");
- // for(var i = 0; i < chk_ward.length; i++) {
- // chk_ward.select(i);
- // }
- var strwardnm = " ";
- var strwardcd = " ";
-
- for(var i = 0 ; i <= getNodesetCount("/root/hidden/deptlist/ward") ; i++) {
- strwardnm = strwardnm+ "|"+ model.getValue("/root/hidden/deptlist/ward[" + i + "]/wardnm");
- strwardcd = strwardcd + "|" + model.getValue("/root/hidden/deptlist/ward[" + i + "]/wardcd");
- }
- model.setValue("/root/temp/srchinfo/ward", strwardcd);
-
- } else {
- //ipt_wardcd.value = "";
- //ipt_wardnm.value = "";
- model.setValue("/root/temp/srchinfo/ward", "");
- }
- model.refresh();
- }
- if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
- ipt_wardcd.value = chk_ward.value.substr(2,chk_ward.value.length);
- ipt_wardnm.value = chk_ward.label.substr(3,chk_ward.label.length);
- } else {
- ipt_wardcd.value = chk_ward.value;
- ipt_wardnm.value = chk_ward.label;
- }
- //input3.refresh();
- //검사실 체크박스 감추기
- //chk_excuroom.visible = false;
- ]]>
- </script>
- </select>
- <select id="chk_lbl1" ref="/root/hidden/srchinfo/lblsizeflag1" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:290px; top:438px; width:95px; height:18px; border-style:none; ">
- <choices>
- <item>
- <label>큰라벨(본원)</label>
- <value>L1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //20101203 wify 경북대병원 : 큰라벨(본원)추가, 큰라벨, 작은라벨과 동시에 체크 안되도록 함.
- var chklbl = chk_lbl.value;
- var chklbl1 = chk_lbl1.value;
- if(chk_lbl1.focusIndex == 0 ) {
- if(isSearchString(chklbl, "L")) {
- chk_lbl.value = "";
- }
- if(isSearchString(chklbl, "S")) {
- chk_lbl.value = "";
- }
- }
- ]]>
- </script>
- </select>
- <select id="chk_auto_lblsize1" ref="/root/hidden/srchinfo/autolblsize1" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:290px; top:606px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>큰라벨(본원)</label>
- <value>L1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //20101203 wify 경북대병원 : 큰라벨(본원)추가, 큰라벨, 작은라벨과 동시에 체크 안되도록 함.
- var chklbl = chk_auto_lblsize.value;
- var chklbl1 = chk_auto_lblsize1.value;
- if(chk_auto_lblsize1.focusIndex == 0 ) {
- if(isSearchString(chklbl, "L")) {
- chk_auto_lblsize.value = "";
- }
- if(isSearchString(chklbl, "S")) {
- chk_auto_lblsize.value = "";
- }
- }
- ]]>
- </script>
- </select>
- <select id="checkbox13" ref="/root/send/suminfo/intiflag" visibility="hidden" overflow="visible" appearance="full" cellspacing="10" cols="2" rows="1" sep="|" style="left:397px; top:606px; width:65px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>인티적용</label>
- <value>N</value>
- </item>
- </choices>
- </select>
- <input id="ipt_fromtm3" ref="/root/hidden/srchinfo/fromtm3" class="input_search" autonext="false" maxlength="5" format="hh:nn" style="left:335px; top:224px; width:45px; height:19px; "/>
- <select1 id="cmb_sumtmflag3" ref="/root/hidden/srchinfo/endtime3" class="combo_search" appearance="minimal" style="left:100px; top:224px; width:165px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/sumtmflaglist/flaglist3">
- <label ref="flagnm"/>
- <value ref="flagcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var idx = cmb_sumtmflag3.mouseRow + 1;
-
- var fromddflag = model.getValue("/root/init/sumtmflaglist/flaglist3[" + idx + "]/fromddflag");
- var fromtm = model.getValue("/root/init/sumtmflaglist/flaglist3[" + idx + "]/fromtm");
- var toddflag = model.getValue("/root/init/sumtmflaglist/flaglist3[" + idx + "]/toddflag");
- var totm = model.getValue("/root/init/sumtmflaglist/flaglist3[" + idx + "]/totm");
-
- model.setValue("/root/hidden/srchinfo/fromddflag3", fromddflag);
- model.setValue("/root/hidden/srchinfo/fromtm3", fromtm);
- model.setValue("/root/hidden/srchinfo/toddflag3", toddflag);
- model.setValue("/root/hidden/srchinfo/totm3", totm);
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_fromddflag3" ref="/root/hidden/srchinfo/fromddflag3" class="combo_search" appearance="minimal" style="left:270px; top:224px; width:60px; height:19px; ">
- <choices>
- <item>
- <label>전일</label>
- <value>0</value>
- </item>
- <item>
- <label>당일</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_totm3" ref="/root/hidden/srchinfo/totm3" class="input_search" autonext="false" maxlength="5" format="hh:nn" style="left:470px; top:224px; width:50px; height:19px; "/>
- <select1 id="cmb_toddflag3" ref="/root/hidden/srchinfo/toddflag3" class="combo_search" appearance="minimal" style="left:405px; top:224px; width:60px; height:19px; ">
- <choices>
- <item>
- <label>전일</label>
- <value>0</value>
- </item>
- <item>
- <label>당일</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <caption id="caption33" class="cell_1" style="left:0px; top:222px; width:95px; height:23px; vertical-align:middle; ">응급실마감구분</caption>
- <line id="line20" class="line_2" style="x1:0px; y1:244px; x2:570px; y2:244px; "/>
- <caption id="caption34" style="left:385px; top:223px; width:30px; height:25px; font-weight:bold; vertical-align:middle; ">~</caption>
- <datagrid id="grd_prcplist" nodeset="/root/main/prcplist/prcplist" visibility="visible" caption="구분^투약번호^약품코드^약품이름^1회수량^횟수^일수^총수량^용법 전달사항^입력일시^약사메모^진료의사^진료과" colsep="^" colwidth="43, 59, 70, 183, 70, 50, 50, 69, 144, 128, 139, 67, 90" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:575px; top:565px; width:610px; height:180px; ">
- <col ref="drugtype" style="text-align:center; "/>
- <col ref="drugno" style="text-align:center; "/>
- <col ref="prcpcd" style="text-align:center; "/>
- <col ref="engnm" style="text-align:left; "/>
- <col ref="prcpqty2" style="text-align:center; "/>
- <col ref="prcptims" style="text-align:center; "/>
- <col ref="prcpdayno" style="text-align:center; "/>
- <col ref="totdrugqty" style="text-align:center; "/>
- <col ref="mthdnm" style="text-align:center; "/>
- <col ref="rgstdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="memo" style="text-align:center; "/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_patlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <select id="chk_name_card" ref="/root/hidden/srchinfo/namecard" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:395px; top:438px; width:95px; height:18px; border-style:none; ">
- <choices>
- <item>
- <label>네임카드</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="caption35" style="left:195px; top:90px; width:284px; height:20px; ">( )</caption>
- <select id="checkbox14" ref="/root/hidden/srchinfo/dinjyn" class="checkbox_search" overflow="visible" appearance="full" cellspacing="10" cols="2" rows="1" sep="|" style="left:205px; top:90px; width:130px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>항암주사실제외</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox15" ref="/root/hidden/srchinfo/dinjonlyyn" class="checkbox_search" overflow="visible" appearance="full" cellspacing="10" cols="2" rows="1" sep="|" style="left:335px; top:90px; width:130px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>항암주사실만</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </xhtml:body>
- </xhtml:html>
|