12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>마약/향정약 처방관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <narclist>
- <narclist>
- <sel/>
- <prcpdd/>
- <pid/>
- <patnm/>
- <issdeptcdnm/>
- <roomcd/>
- <prcpcd/>
- <drugnm/>
- <totdrugqty/>
- <dayprcpqty/>
- <prcpqty/>
- <prcpqtyunit/>
- <prcptims/>
- <prcpdayno/>
- <rtnqty/>
- <returnqty/>
- <rtnunit/>
- <prcpdt/>
- <prcpidnm/>
- <drugdt/>
- <drugidnm/>
- <delivedt/>
- <deliveidnm/>
- <acptdt/>
- <acptidnm/>
- <rtnappdt/>
- <rtnappidnm/>
- <rtndt/>
- <rtnidnm/>
- <rtncnfmdt/>
- <rtncnfmidnm/>
- <rtnresn/>
- <spreqty/>
- <spredt/>
- <spreidnm/>
- <sprecnfmdt/>
- <sprecnfmidnm/>
- <prcpno/>
- <prcphistno/>
- <drugdd/>
- <drugno/>
- <ioflag/>
- <instcd/>
- <narcflag/>
- <narcstat/>
- <cnclstat/>
- <rtnstat/>
- <prntflag/>
- <returnflag/>
- <orddd/>
- <orddeptcd/>
- <prcpgenrflag/>
- <drugflag/>
- <drugkind/>
- <drugkindnm/>
- <sumdt/>
- <reqid/>
- <reqidnm/>
- <reqdt/>
- <statvisible/>
- <medrendyn/>
- <medrqty/>
- <medrtims/>
- <medrx/>
- <rtndrugtims/>
- <rtndrugdayno/>
- <rtnstocqty/>
- <engnm/>
- <abbrnm/>
- <util/>
- <mthdcnts1/>
- <mthdcnts2/>
- <mthdcnts3/>
- <mthdcnts4/>
- <drugdesc/>
- <mthddesc/>
- </narclist>
- </narclist>
- <barcdprntsetup>
- </barcdprntsetup>
- <rtnprntlist/>
- <detlprcplist>
- <detlprcpinfo>
- <ioflagnm/>
- <ioflag/>
- <prcpno/>
- <drugno/>
- <execdd/>
- <exectm/>
- <drugsumdt/>
- <execdeptnm/>
- <execdeptcd/>
- <issdeptcd/>
- <issdeptcdnm/>
- <execdrnm/>
- </detlprcpinfo>
- </detlprcplist>
- <sumlist/>
- </main>
- <send>
- <srchinfo/>
- <srchcond>
- <deptflag/>
- <narcflag>M</narcflag>
- </srchcond>
- <prntinfo/>
- <narcinfo>
- <srchinfo/>
- <narclist/>
- <userinfo/>
- </narcinfo>
- <userinfo>
- <userid/>
- </userinfo>
- <prntdt>
- <narcdata/>
- </prntdt>
- <lblskip/>
- <chkall/>
- <scrnid/>
- </send>
- <init>
- <barcdprntsetup>
- <setupinfo/>
- </barcdprntsetup>
- <lbltype/>
- <nartype/>
- <misdeptlist>
- <deptlist/>
- </misdeptlist>
- </init>
- <hidden>
- <popup>
- <prcp>
- <item>
- <name>실시내역</name>
- <param>Execlist</param>
- </item>
- </prcp>
- </popup>
- </hidden>
- <temp>
- <srchinfo>
- <narcflag/>
- <timeflag>2</timeflag>
- <fst_dd/>
- <last_dd/>
- <pid/>
- <ward/>
- <srchdrugno/>
- <barcode/>
- <srchdrugkind/>
- <srchioflag>I</srchioflag>
- <drugflag>I</drugflag>
- <srchroot/>
- <narcstat/>
- <cnclflag/>
- <cnclstat/>
- <rtnflag/>
- <rtnstat/>
- <narctypeflag/>
- <narctype/>
- <srchid/>
- <narccd/>
- <srchdeptcd/>
- <prtab/>
- <barcodespre/>
- <nodeliveflag/>
- <stocdeptcd/>
- <autoprnt/>
- <srchprcpkind/>
- <srchprcpkindall/>
- <prntdt/>
- <issdeptcd/>
- <wardnm/>
- <selkey/>
- <selkeyall/>
- </srchinfo>
- <srchcond>
- <narclist>
- <sel/>
- <narcnm/>
- <narccd/>
- </narclist>
- <ward>
- <wardcd/>
- <wardnm/>
- </ward>
- <dept>
- <deptcd/>
- <deptnm/>
- </dept>
- </srchcond>
- <userinfo>
- <userinfo>
- <userid/>
- <usernm/>
- <userdeptcd/>
- <userdeptnm/>
- </userinfo>
- </userinfo>
- <chkcashinfo>
- <narclist/>
- </chkcashinfo>
- <ret/>
- <drugdeptinfo/>
- <hosp>
- <hosp/>
- </hosp>
- <narclist>
- <narclist/>
- </narclist>
- </temp>
- <prtinfo>
- <hosp>
- <hosp/>
- <narcflag/>
- <pastillyn/>
- </hosp>
- <narclist>
- <narclist/>
- </narclist>
- <sumlist>
- <sumlist/>
- </sumlist>
- </prtinfo>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/pharmacyweb/js/SMADT30100.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var autocnt = 0;
- fInit();
- chk_all.value = "Y";
- // 20101221 wify 경북대병원 처방전 재출력 버튼 추가
- model.makeNode("/root/temp/reprnt");
- ]]>
- </script>
- <submission id="TRADT30101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchcond" replace="instance" resultref="/root/temp/srchcond"/>
- <submission id="TRADT30102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/narclist"/>
- <submission id="TRADT30103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prntinfo" replace="instance" resultref="/root/main/prntlist"/>
- <submission id="TRADT30104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/userinfo" replace="instance" resultref="/root/temp/userinfo"/>
- <submission id="TRADT30106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/userinfo" replace="instance" resultref="/root/init/lbltype"/>
- <submission id="TRADT30107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/userinfo" replace="instance" resultref="/root/init/nartype"/>
- <submission id="TRADT30109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/sumlist"/>
- <submission id="TRADT30111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/temp/prntdt"/>
- <submission id="TXADT30101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/narcinfo" replace="instance" resultref="/root/main/narclist"/>
- <submission id="TXADT30102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/narcinfo" replace="instance" resultref="/root/temp/ret"/>
- <submission id="TXADT30104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prntdt" replace="instance" resultref="/root/temp/ret"/>
- <submission id="TRADT30401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchcond" replace="instance" resultref="/root/temp/srchcond"/>
- <submission id="TRADT30405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dutdeptinfo" replace="instance" resultref="/root/temp/dutdeptinfo"/>
- <!-- 프린터 설정-->
- <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
- <bind id="bind1" ref="/root/main/narclist/narclist/narcstat" readonly="../pid != ''"/>
- <bind id="bind2" ref="/root/main/narclist/narclist/cnclstat" readonly="../pid != ''"/>
- <bind id="bind3" ref="/root/main/narclist/narclist/rtnstat" readonly="../pid != ''"/>
- <bind id="bind4" ref="/root/main/narclist/narclist/sel" readonly="../narcstat = '1'"/>
- <submission id="TRADT30105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo"/>
- <submission id="TXADT30103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/narcinfo/narclist" replace="instance"/>
- <!-- 출고부서조회-->
- <submission id="TRADT01106" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/misdeptlist"/>
- <submission id="TRADT30108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" resultref="/root/main/rtnprntlist"/>
- <!-- 약력조회화면의 실시내역조회 -->
- <submission id="TRADT10311" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdetlinfo" replace="instance" resultref="/root/main/detlprcplist"/>
- <submission id="TRADT30110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/temp/narclist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /* @group : 마약향정처방관리 엑셀다운
- * @ver : 2008.10.09
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 엑셀 저장
- */
- function fExeSaveToExcel(){
- var fileName = window.fileDialog("save", ",", false, "마약향정처방관리"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- grd_narclist.saveExcel(fileName);
- }
- }
-
-
- //프린터 설정
- function fSetPrint() {
- var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
-
- if(count == 0) {
- model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
-
- //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");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <script type="javascript" ev:event="onmenu">
- <![CDATA[
- //********************************************************************************************//
- // 반환종료 팝업메뉴 //
- //********************************************************************************************//
- var popupParam = event.description;
- var selCnt = 0;
-
- if(popupParam == "RtnEnd") {//반환종료
- var msg = messageBox("[반환종료]", "Q004");
- if(msg == "7") return;
-
- model.removeNodeset("/root/send/narcinfo/narclist");
-
- // **** 체크박스 선택 값 카운트 Start ****
- for(var i = grd_narclist.fixedRows; i < grd_narclist.rows; i++){
- var sel = model.getValue("/root/main/narclist/narclist["+i+"]/sel");
- var sNarcStat = model.getValue("/root/main/narclist/narclist["+i+"]/narcstat");
- if(sel == "Y" && sNarcStat != "1") selCnt++; // 선택된 값(sel == "Y") 들 중 미신청 값은 제외
- }
-
- if(selCnt == 0) {
- messageBox("선택된 데이터가","I004");
-
- return;
- }
-
- selCnt = 0;
- for(var i = grd_narclist.fixedRows; i < grd_narclist.rows; i++){
- var sel = model.getValue("/root/main/narclist/narclist["+i+"]/sel"); // 선택여부
- var sNarcStat = model.getValue("/root/main/narclist/narclist["+i+"]/narcstat"); // 불출상태
- var sCnclStat = model.getValue("/root/main/narclist/narclist["+i+"]/cnclstat"); // 불출상태
- var sRtnStat = model.getValue("/root/main/narclist/narclist["+i+"]/rtnstat"); // 불출상태
- var sPrcphistcd = model.getValue("/root/main/narclist/narclist["+i+"]/prcphistcd"); // 처방상태
- var sTotdrugqty = model.getValue("/root/main/narclist/narclist["+i+"]/totdrugqty"); // 처방상태
- var sMedrtims = model.getValue("/root/main/narclist/narclist["+i+"]/medrtims"); // 처방상태
- //if(sel == "Y" && sNarcStat < 5 && sPrcphistcd == "D"){
- if(sel == "Y" && (sNarcStat > 1 && sNarcStat <5) &&sPrcphistcd == "D"){
- astfCopyNodeSet("/root/send/narcinfo/narclist", "/root/main/narclist/narclist["+i+"]");
- selCnt++;
- }
- }
-
- if(selCnt > 0) {
- submit("TXADT30103");
- messageBox(selCnt + "건","I001");
- fGetNarcData();
- }else{
- messageBox("[반환종료] 처리 데이터가","I004");
- }
- }
-
- /*
- 실시내역 조회
- */
- if(popupParam == "Execlist") {
-
- var row = 0;
-
- if(switch1.selectedIndex == "0") {
- row = grd_narclist.row;
- } else {
- row = grd_outnarc.row;
- }
- model.makeValue("/root/send/srchdetlinfo/srchpid", model.getValue("/root/main/narclist/narclist["+row+"]/pid"));
- model.makeValue("/root/send/srchdetlinfo/prcpno", model.getValue("/root/main/narclist/narclist["+row+"]/prcpno"));
- model.makeValue("/root/send/srchdetlinfo/prcpdd", model.getValue("/root/main/narclist/narclist["+row+"]/orgprcpdd"));
-
- //model.setValue("/root/send/srchdetlinfo/orddeptflag", model.getValue("/root/send/srchdata/srchorddeptflag"));
- if(submit("TRADT10311")) {
- group5.visible = true;
- }
- }
- //********************************************************************************************//
- ]]>
- </script>
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:211px; height:14px; ">마약/향정약 처방관리(Ver 1230)</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:0px; width:1195px; height:190px; font-weight:bold; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:765px; height:190px; background-color:#fffbf2; border-color:#ffd799; "/>
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:770px; top:0px; width:424px; height:165px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="input8" ref="/root/temp/srchinfo/pid" class="input_search" navindex="16" autonext="false" maxlength="10" style="left:105px; top:140px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- fGetNarcData();
- }
- ]]>
- </script>
- </input>
- <input id="input9" ref="/root/temp/srchinfo/barcode" class="input_search" disabled="true" navindex="21" imemode="alpha" style="left:105px; top:167px; width:125px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- input9.disabled=true;
- setInputNodeCurText();
- fChgBarcode();
- input9.disabled=false;
- model.setFocus("input9");
- }
- ]]>
- </script>
- </input>
- <select id="checkbox2" ref="/root/temp/srchinfo/narctypeflag" class="checkbox_search" navindex="25" visibility="hidden" overflow="visible" appearance="full" cols="2" rows="1" style="left:1055px; top:5px; width:130px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>처방가능약</label>
- <value>A</value>
- </item>
- </choices>
- </select>
- <caption id="caption1" class="search_name" visibility="hidden" style="left:535px; top:55px; width:86px; height:17px; ">마약구분 :</caption>
- <line id="line13" class="line_4" style="x1:700px; y1:5px; x2:700px; y2:100px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:10px; top:140px; width:86px; height:17px; ">환자번호 :</caption>
- <select1 id="combo2" ref="/root/temp/srchinfo/timeflag" class="combo_s_essential" navindex="1" appearance="minimal" style="left:105px; top:8px; width:119px; height:19px; ">
- <choices>
- <item>
- <label>처방일자</label>
- <value>1</value>
- </item>
- <item>
- <label>적용일자</label>
- <value>2</value>
- </item>
- <item>
- <label>불출신청일자</label>
- <value>3</value>
- </item>
- <item>
- <label>실시일자</label>
- <value>4</value>
- </item>
- <item>
- <label>반환저장일자</label>
- <value>5</value>
- </item>
- <item>
- <label>잔량저장일자</label>
- <value>6</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(combo2.value == "5") {
- checkbox1.value = "Y";
- checkbox1.dispatch("xforms-value-changed");
- checkbox5.value = "Y";
- checkbox5.dispatch("xforms-value-changed");
- }
- ]]>
- </script>
- </select1>
- <button id="button61" class="icon_search" navindex="17" style="left:210px; top:140px; width:16px; height:16px; ">
- <caption/>
- </button>
- <caption id="caption3" class="search_name" style="left:780px; top:5px; width:86px; height:17px; ">마약종류 :</caption>
- <caption id="caption4" style="left:335px; top:8px; width:13px; height:20px; vertical-align:middle; ">~</caption>
- <select1 id="radio1" ref="/root/temp/srchinfo/narcflag" class="radio_search" visibility="hidden" appearance="full" cols="3" rows="1" overflow="visible" style="left:610px; top:55px; width:135px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>마약</label>
- <value>N</value>
- </item>
- <item>
- <label>향정</label>
- <value>P</value>
- </item>
- </choices>
- </select1>
- <line id="line1" class="line_2" style="x1:5px; y1:162px; x2:630px; y2:162px; "/>
- <select1 id="radio2" ref="/root/temp/srchinfo/srchdrugkind" class="radio_search" navindex="5" appearance="full" cols="3" rows="1" overflow="visible" style="left:105px; top:33px; width:195px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>약</label>
- <value>D</value>
- </item>
- <item>
- <label>주사</label>
- <value>I</value>
- </item>
- </choices>
- </select1>
- <line id="line2" class="line_2" style="x1:5px; y1:105px; x2:630px; y2:105px; "/>
- <caption id="caption6" class="search_name" style="left:230px; top:140px; width:70px; height:17px; ">병동 :</caption>
- <select1 id="radio3" ref="/root/temp/srchinfo/narcstat" class="radio_search" disabled="false" navindex="8" appearance="full" cols="9" rows="1" overflow="visible" style="left:105px; top:62px; width:590px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>미신청</label>
- <value>1</value>
- </item>
- <item>
- <label>불출신청</label>
- <value>2</value>
- </item>
- <item>
- <label>출력완료</label>
- <value>3</value>
- </item>
- <item>
- <label>조제완료</label>
- <value>4</value>
- </item>
- <item>
- <label>불출</label>
- <value>5</value>
- </item>
- <item>
- <label>부서확인</label>
- <value>6</value>
- </item>
- <item>
- <label>실 불출신청</label>
- <value>7</value>
- </item>
- <item>
- <label>재출력</label>
- <value>8</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/temp/srchinfo/cnclflag","");
- model.setValue("/root/temp/srchinfo/cnclstat","");
- model.setValue("/root/temp/srchinfo/rtnflag","");
- model.setValue("/root/temp/srchinfo/rtnstat","");
- rdo_cncl.disabled = true;
-
- rdo_rtn.disabled = true;
- cmb_prntdt.value = "";
- if (radio3.value == "8") { //재출력
- grp_prntdt.visible = true;
- rdo_cncl.value = "T";
- rdo_rtn.value = "T";
-
- //checkbox1.dispatch("xforms-value-changed");
- //checkbox3.dispatch("xforms-value-changed");
- fGetNarcPrintDt();
- } else {
- cmb_prntdt.value = "";
- grp_prntdt.visible = false;
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <line id="line3" class="line_2" style="x1:5px; y1:108px; x2:630px; y2:108px; "/>
- <caption id="caption7" class="search_name" style="left:10px; top:167px; width:88px; height:17px; ">바코드 :</caption>
- <input id="ipt_lastdd" ref="/root/temp/srchinfo/last_dd" class="input_search" navindex="3" inputtype="date" style="left:350px; top:8px; width:100px; height:19px; "/>
- <line id="line4" class="line_2" style="x1:5px; y1:55px; x2:630px; y2:55px; "/>
- <line id="line5" class="line_2" style="x1:5px; y1:30px; x2:630px; y2:30px; "/>
- <caption id="caption9" class="search_name" style="left:10px; top:8px; width:86px; height:17px; ">조회구간 :</caption>
- <input id="ipt_fstdd" ref="/root/temp/srchinfo/fst_dd" class="input_search" navindex="2" inputtype="date" appearance="input" style="left:232px; top:8px; width:100px; height:19px; "/>
- <datagrid id="datagrid1" nodeset="/root/temp/srchcond/narclist" backcoloralternate="#f0f0f0" caption="선택^명칭^코드" colsep="^" colwidth="46, 220, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" navindex="26" style="left:780px; top:25px; width:408px; height:130px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="narcnm"/>
- <col ref="narccd"/>
- </datagrid>
- <button id="btn_sea" class="btn1_letter2" navindex="27" style="left:705px; top:35px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (radio3.value == "8") {
- if (cmb_prntdt.value == "") {
- messageBox("출력할 출력일시를 선택", "I008");
- model.setFocus("cmb_prntdt");
- return;
- }
- }
- model.setValue("/root/temp/srchinfo/selkey", "");
- //// 2017.4.19 김치국 자동출력시 글자 View
- if(chk_auto.value == "Y") {
- cap_automess.visible = true;
- }
- ////
- fGetNarcData();
- ]]>
- </script>
- </button>
- <select1 id="cmb_ward" ref="/root/temp/srchinfo/ward" navindex="18" appearance="minimal" style="left:290px; top:140px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/srchcond/ward">
- <label ref="wardnm"/>
- <value ref="wardcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:10px; top:34px; width:86px; height:17px; ">조회구분 :</caption>
- <caption id="caption8" class="search_name" style="left:480px; top:168px; width:88px; height:17px; ">담당자 :</caption>
- <output id="opt_usernm" ref="/root/temp/userinfo/userinfo/usernm" class="output_search" style="left:675px; top:167px; width:80px; height:19px; "/>
- <input id="ipt_srchid" ref="/root/temp/srchinfo/srchid" class="input_search" navindex="23" autonext="false" maxlength="10" style="left:565px; top:167px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- fChgUserID();
- }
- ]]>
- </script>
- </input>
- <select1 id="rdo_drugflag" ref="/root/temp/srchinfo/drugflag" navindex="7" appearance="full" cols="3" overflow="visible" style="left:440px; top:34px; width:165px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>병동</label>
- <value>I</value>
- </item>
- <item>
- <label>퇴원/외박/외출</label>
- <value>L</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChgSwitch();
- fGetNarcData();
- ]]>
- </script>
- </select1>
- <caption id="caption10" class="search_name" style="left:395px; top:140px; width:86px; height:17px; ">투약번호 :</caption>
- <input id="input2" ref="/root/temp/srchinfo/srchdrugno" class="input_search" navindex="19" autonext="false" maxlength="5" format="99999" style="left:480px; top:140px; width:65px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- fGetNarcData();
- }
- ]]>
- </script>
- </input>
- <select1 id="radio4" ref="/root/send/srchcond/narcflag" class="radio_search" navindex="24" appearance="full" cols="3" rows="1" overflow="visible" style="left:870px; top:5px; width:135px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>마약</label>
- <value>M</value>
- </item>
- <item>
- <label>향정</label>
- <value>H</value>
- </item>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- submit("TRADT30101");
-
- model.setValue("/root/temp/srchinfo/narcflag", model.getValue("/root/send/srchcond/narcflag"));
-
- //반환대상, 반납대상, 미불출 조건 변경
- if(model.getValue("/root/temp/srchinfo/narcflag") == "M"){
- model.toggle("case4");
- combo2.select(1); //그외 적용일자
- } else if(model.getValue("/root/temp/srchinfo/narcflag") == "H"){
- model.toggle("case5");
- if(model.getValue("/root/temp/srchinfo/srchioflag") == "O") {
- combo2.select(3);//향정외래일때 실시일자
- } else {
- combo2.select(1); //그외 적용일자
- }
-
- } else {
- model.toggle("case4");
- //combo2.select(1); //그외 적용일자
- }
-
- fGetNarcData();
- ]]>
- </script>
- </select1>
- <caption id="caption12" class="search_name" visibility="visible" style="left:550px; top:140px; width:90px; height:17px; ">수행부서 :</caption>
- <select1 id="combo3" ref="/root/temp/srchinfo/srchdeptcd" navindex="20" visibility="visible" appearance="minimal" cols="2" editmode="inputsearch" style="left:640px; top:140px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/drugdeptinfo/dept">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fSrchRoomCD();
- ]]>
- </script>
- </select1>
- <select1 id="radio5" ref="/root/temp/srchinfo/srchioflag" navindex="6" appearance="full" cols="3" overflow="visible" style="left:300px; top:34px; width:129px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>병동</label>
- <value>I</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChgIOFlag();
- /*
- if ( model.getValue("/root/temp/srchinfo/srchioflag") ==""){
- group4.disabled=true;
- } else {
- group4.disabled=false;
- } */
- ]]>
- </script>
- </select1>
- <input id="input1" ref="/root/temp/srchinfo/barcodespre" class="input_search" navindex="22" imemode="alpha" style="left:335px; top:167px; width:125px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- input1.disabled=true;
- setInputNodeCurText();
- fChgBarcodeSpre();
- input1.disabled=false;
- model.setFocus("input1");
- }
- ]]>
- </script>
- </input>
- <caption id="caption11" class="search_name" style="left:240px; top:167px; width:88px; height:17px; ">잔량확인 :</caption>
- <switch id="switch2" class="sw_no_border" style="left:5px; top:107px; width:755px; height:30px; ">
- <case id="case4" selected="true">
- <select1 id="rdo_cncl" ref="/root/temp/srchinfo/cnclstat" navindex="13" appearance="full" cols="5" overflow="visible" style="left:90px; top:5px; width:320px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>반환대상</label>
- <value>0</value>
- </item>
- <item>
- <label>반환신청</label>
- <value>1</value>
- </item>
- <item>
- <label>반환확인</label>
- <value>2</value>
- </item>
- <item>
- <label>반환종료</label>
- <value>7</value>
- </item>
- </choices>
- </select1>
- <select id="checkbox1" ref="/root/temp/srchinfo/cnclflag" navindex="12" overflow="visible" appearance="full" style="left:5px; top:5px; width:80px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>반환대상만</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/temp/srchinfo/cnclflag") == "Y"){
- rdo_cncl.disabled = false;
- model.setValue("/root/temp/srchinfo/cnclstat", "T");
- // rdo_rtn.disabled = true;
- // model.setValue("/root/temp/srchinfo/rtnflag", "");
- // model.setValue("/root/temp/srchinfo/rtnstat", "");
- model.setValue("/root/temp/srchinfo/narcstat", "");
- } else {
- rdo_cncl.disabled =true;
- model.setValue("/root/temp/srchinfo/cnclstat", "");
-
- if(model.getValue("/root/temp/srchinfo/rtnflag") != "Y") {
- model.setValue("/root/temp/srchinfo/narcstat", "T");
- }
- }
- model.refresh();
-
- ]]>
- </script>
- </select>
- <select id="checkbox3" ref="/root/temp/srchinfo/rtnflag" navindex="14" overflow="visible" appearance="full" style="left:413px; top:5px; width:80px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>반납대상만</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/temp/srchinfo/rtnflag") == "Y"){
- rdo_rtn.disabled = false;
- model.setValue("/root/temp/srchinfo/rtnstat", "T");
- // rdo_cncl.disabled = true;
- // model.setValue("/root/temp/srchinfo/cnclflag", "");
- // model.setValue("/root/temp/srchinfo/cnclstat", "");
- model.setValue("/root/temp/srchinfo/narcstat", "");
- } else {
- rdo_rtn.disabled =true;
- model.setValue("/root/temp/srchinfo/rtnstat", "");
-
- if(model.getValue("/root/temp/srchinfo/cnclflag") != "Y") {
- model.setValue("/root/temp/srchinfo/narcstat", "T");
- }
- }
- model.refresh();
-
- ]]>
- </script>
- </select>
- <select1 id="rdo_rtn" ref="/root/temp/srchinfo/rtnstat" class="radio_search" navindex="15" appearance="full" cols="4" overflow="visible" style="left:495px; top:5px; width:250px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>잔량대상</label>
- <value>0</value>
- </item>
- <item>
- <label>잔량신청</label>
- <value>1</value>
- </item>
- <item>
- <label>잔량확인</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- </case>
- <case id="case5">
- <select id="checkbox5" ref="/root/temp/srchinfo/cnclflag" overflow="visible" appearance="full" style="left:5px; top:5px; width:80px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>반환대상만</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/temp/srchinfo/cnclflag") == "Y"){
- rdo_cncl.disabled = false;
- model.setValue("/root/temp/srchinfo/cnclstat", "T");
- // rdo_rtn.disabled = true;
- // model.setValue("/root/temp/srchinfo/rtnflag", "");
- // model.setValue("/root/temp/srchinfo/rtnstat", "");
- model.setValue("/root/temp/srchinfo/narcstat", "");
- } else {
- rdo_cncl.disabled =true;
- model.setValue("/root/temp/srchinfo/cnclstat", "");
-
- if(model.getValue("/root/temp/srchinfo/rtnflag") != "Y") {
- model.setValue("/root/temp/srchinfo/narcstat", "T");
- }
- }
- model.refresh();
-
- ]]>
- </script>
- </select>
- <select id="checkbox6" ref="/root/temp/srchinfo/rtnflag" overflow="visible" appearance="full" style="left:340px; top:5px; width:80px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>반납대상만</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/temp/srchinfo/rtnflag") == "Y"){
- rdo_rtn.disabled = false;
- model.setValue("/root/temp/srchinfo/rtnstat", "T");
- // rdo_cncl.disabled = true;
- // model.setValue("/root/temp/srchinfo/cnclflag", "");
- // model.setValue("/root/temp/srchinfo/cnclstat", "");
- model.setValue("/root/temp/srchinfo/narcstat", "");
- } else {
- rdo_rtn.disabled =true;
- model.setValue("/root/temp/srchinfo/rtnstat", "");
-
- if(model.getValue("/root/temp/srchinfo/cnclflag") != "Y") {
- model.setValue("/root/temp/srchinfo/narcstat", "T");
- }
- }
- model.refresh();
-
- ]]>
- </script>
- </select>
- <select id="checkbox7" ref="/root/temp/srchinfo/nodeliveflag" overflow="visible" appearance="full" style="left:610px; top:5px; width:80px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>미불출만</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select1 id="radio6" ref="/root/temp/srchinfo/cnclstat" appearance="full" cols="5" overflow="visible" style="left:90px; top:5px; width:250px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>반환신청</label>
- <value>1</value>
- </item>
- <item>
- <label>반환확인</label>
- <value>2</value>
- </item>
- <item>
- <label>반환종료</label>
- <value>7</value>
- </item>
- </choices>
- </select1>
- <select1 id="radio7" ref="/root/temp/srchinfo/rtnstat" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:422px; top:5px; width:185px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>잔량신청</label>
- <value>1</value>
- </item>
- <item>
- <label>잔량확인</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- </case>
- </switch>
- <caption id="caption13" style="left:460px; top:10px; width:70px; height:20px; font-weight:bold; color:#ff0000; ">실출고부서</caption>
- <select1 id="combo1" ref="/root/temp/srchinfo/stocdeptcd" navindex="4" appearance="minimal" style="left:534px; top:9px; width:131px; 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[
-
- ]]>
- </script>
- </select1>
- <select id="chk_auto" ref="/root/temp/srchinfo/autoprnt" overflow="visible" appearance="full" style="left:710px; top:59px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>자동</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /* 2011.01.05 pymi
- *
- * 자동출력 : 실 불출신청 대상 조회 -> 일괄처리 로직
- */
-
- if(chk_auto.value == "Y") {
- radio2.disabled = true;
- radio3.disabled = true;
- radio5.disabled = true;
- radio3.value = "7";
-
- rdo_drugflag.disabled = true;
- checkbox1.disabled = true;
- checkbox3.disabled = true;
-
- rdo_cncl.value = "";
- rdo_rtn.value = "";
-
- radio5.value = "O";
- chk_all.value = "Y";
- cap_automess.visible = true;
- } else {
- radio2.disabled = false;
- radio3.disabled = false;
- radio5.disabled = false;
-
- rdo_drugflag.disabled = false;
- checkbox1.disabled = false;
- checkbox3.disabled = false;
- cap_automess.visible = false;
- }
- var autoflag = model.getValue("/root/temp/srchinfo/autoprnt");
- if (autoflag == "Y" && nextFlag == "GO") {
- if (gTimer == null) {
- fAutoOutNarc() ;
- gTimer = window.setInterval("fAutoOutNarc()",13000);
- }
- //alert(gTimer) ;
-
- } else {
- if (gTimer != null) {
- window.clearinterval(gTimer);
- gTimer = null;
- }
- }
-
-
- ]]>
- </script>
- </select>
- <caption id="caption14" class="search_name" style="left:10px; top:85px; width:86px; height:17px; ">처방구분 :</caption>
- <select id="chk_prcpkind" ref="/root/temp/srchinfo/srchprcpkind" navindex="10" overflow="visible" appearance="full" cols="5" rows="1" style="left:155px; top:86px; width:285px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>정규</label>
- <value>R</value>
- </item>
- <item>
- <label>추가</label>
- <value>A</value>
- </item>
- <item>
- <label>응급</label>
- <value>W</value>
- </item>
- <item>
- <label>Admission</label>
- <value>M</value>
- </item>
- <item>
- <label>PRN</label>
- <value>P</value>
- </item>
- </choices>
- </select>
- <select id="checkbox8" ref="/root/temp/srchinfo/srchprcpkindall" navindex="9" overflow="visible" appearance="full" style="left:105px; top:86px; width:45px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var allflag = model.getValue("/root/temp/srchinfo/srchprcpkindall");
-
- // 전체선택
- if (allflag == "Y") {
- chk_prcpkind.disabled = true;
- } else {
- chk_prcpkind.disabled = false;
- }
-
- model.refresh();
- ]]>
- </script>
- </select>
- <group id="grp_prntdt" visibility="hidden" style="left:440px; top:80px; width:520px; height:25px; background-color:#fffbf2; border-color:#ffd799; border-width:1px; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:516px; height:24px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption15" class="search_name" visibility="visible" style="left:5px; top:3px; width:105px; height:17px; ">출력시간 :</caption>
- <select1 id="cmb_prntdt" ref="/root/temp/srchinfo/wardnm" navindex="11" visibility="visible" appearance="minimal" cols="1" itemwidth="400px" style="left:95px; top:3px; width:415px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/prntdt/item">
- <label ref="wardnm"/>
- <value ref="wardnm"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //alert(cmb_prntdt.focusIndex);
- //alert("3:"+cmb_prntdt.value);
- model.setValue("/root/temp/srchinfo/prntdt", model.getValue(cmb_prntdt.choices.itemset.attribute("nodeset")+"[wardnm='"+ cmb_prntdt.value+"']/prntdt"));
- model.setValue("/root/temp/srchinfo/issdeptcd", model.getValue(cmb_prntdt.choices.itemset.attribute("nodeset")+"[wardnm='"+ cmb_prntdt.value+"']/issdeptcd"));
- ]]>
- </script>
- </select1>
- </group>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/temp/srchinfo/selkey", "");
- ]]>
- </script>
- <caption id="cap_automess" style="left:795px; top:165px; width:300px; height:25px; font-size:14pt; color:#ff0000; ">자동 출력중!!</caption>
- </group>
- <switch id="switch1" class="sw_no_border" style="left:0px; top:225px; width:1195px; height:519px; ">
- <case id="case1" selected="true">
- <datagrid id="grd_narclist" nodeset="/root/main/narclist/narclist" class="datagrid2" backcoloralternate="#f0f0f0" caption="^불출상태^처방
상태^반환상태^반납상태^처방일자^투약번호^처방구분^수행부서^병실^환자번호^환자명^약품코드^약품명^총량^총량^일수량^일수량^1회수량^1회수량^일용량^일용량^1회용량^1회용량^횟수^잔량^잔량^반환횟수^반환횟수^반환수량^반환수량^불출신청일자^불출
신청자^조제일시^조제
약사^투약일시^투약
약사^수령일시^수령
담당자^병동수령일시^부서확인
간호사^간호투약일시^간호투약
간호사^반환신청일시^반환신청
간호사^반환일시^반환
담당자^반환확인일시^반환확인
약사^반환사유^잔량반납
신청일시^잔량반납신청
간호사^잔량반납
확인일시^잔량반납확인
약사^prcpno^prcphistno^drugdd^drugno^ioflag^instcd^narcflag^prntflag^orddd^orddeptcd^prcpgenrflag^prntdt^caption1^반납반환
표시여부^투약기록
완료여부^간호
실시횟수^간호
반환횟수^투약x반환불가
횟수" colsep="^" colwidth="17, 56, 33, 54, 55, 67, 41, 45, 70, 40, 62, 50, 74, 150, 28, 30, 36, 29, 35, 31, 40, 28, 40, 29, 26, 32, 28, 28, 29, 32, 35, 8, 70, 8, 70, 8, 70, 8, 70, 9, 70, 9, 70, 9, 70, 9, 70, 7, 70, 100, 7, 85, 7, 85, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 70, 70, 70, 70, 100, 100" extendlastcol="scroll" frozencols="14" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="28" style="left:0px; top:0px; width:1195px; height:510px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox" style="left:20px; top:32px; width:30px; height:23px; "/>
- <col ref="narcstat" type="combo">
- <choices>
- <item>
- <label>미신청</label>
- <value>1</value>
- </item>
- <item>
- <label>불출신청</label>
- <value>2</value>
- </item>
- <item>
- <label>출력완료</label>
- <value>3</value>
- </item>
- <item>
- <label>조제완료</label>
- <value>4</value>
- </item>
- <item>
- <label>불출</label>
- <value>5</value>
- </item>
- <item>
- <label>부서확인</label>
- <value>6</value>
- </item>
- </choices>
- </col>
- <col ref="prcphistcd" style="text-align:center; "/>
- <col ref="cnclstat" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>-</label>
- <value/>
- </item>
- <item>
- <label>반환대상</label>
- <value>0</value>
- </item>
- <item>
- <label>반환신청</label>
- <value>1</value>
- </item>
- <item>
- <label>반환확인</label>
- <value>2</value>
- </item>
- <item>
- <label>반환종료</label>
- <value>7</value>
- </item>
- <item>
- <label>미불출</label>
- <value>10</value>
- </item>
- </choices>
- </col>
- <col ref="rtnstat" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>-</label>
- <value/>
- </item>
- <item>
- <label>잔량대상</label>
- <value>0</value>
- </item>
- <item>
- <label>잔량신청</label>
- <value>1</value>
- </item>
- <item>
- <label>잔량확인</label>
- <value>2</value>
- </item>
- <item>
- <label>미불출</label>
- <value>10</value>
- </item>
- </choices>
- </col>
- <col ref="prcpdd" format="yyyy/mm/dd" style="text-align:center; "/>
- <col ref="drugno" style="text-align:center; "/>
- <col ref="prcpkindnm"/>
- <col ref="issdeptcdnm" style="text-align:left; "/>
- <col ref="roomcd" style="text-align:left; "/>
- <col ref="pid" style="text-align:left; "/>
- <col ref="patnm" style="text-align:left; "/>
- <col ref="prcpcd"/>
- <col ref="drugnm"/>
- <col ref="totdrugqty" style="text-align:right; "/>
- <col ref="prcpqtyunit" style="text-align:left; "/>
- <col ref="dayprcpqty" style="text-align:right; "/>
- <col ref="dayprcpqtyunit" style="text-align:left; "/>
- <col ref="prcpqty2" style="text-align:right; "/>
- <col ref="prcpqtyunit2" style="text-align:left; "/>
- <col ref="prcpvol" style="text-align:right; "/>
- <col ref="prcpvolunit" style="text-align:left; "/>
- <col ref="prcpvol2" style="text-align:right; "/>
- <col ref="prcpvolunit2" style="text-align:left; "/>
- <col ref="prcptims" style="text-align:center; "/>
- <col ref="spreqty" style="text-align:right; "/>
- <col ref="prcpvolunit" style="text-align:left; "/>
- <col ref="rtnqty" format="99999999999" style="text-align:right; "/>
- <col ref="rtnunit" style="text-align:left; "/>
- <col ref="returnqty" style="text-align:right; "/>
- <col ref="prcpqtyunit" style="text-align:left; "/>
- <col ref="reqdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="reqidnm" style="text-align:center; "/>
- <col ref="prcpdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="prcpidnm" style="text-align:center; "/>
- <col ref="drugdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="drugidnm" visibility="hidden" style="text-align:center; "/>
- <col ref="delivedt" visibility="hidden" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="deliveidnm" style="text-align:center; "/>
- <col ref="acptdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="acptidnm" style="text-align:center; "/>
- <col ref="nrexecdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="nrexecridnm" style="text-align:center; "/>
- <col ref="rtnappdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="rtnappidnm" style="text-align:center; "/>
- <col ref="rtndt" visibility="hidden" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="rtnidnm" visibility="hidden" style="text-align:center; "/>
- <col ref="rtncnfmdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="rtncnfmidnm" style="text-align:center; "/>
- <col ref="rtnresn"/>
- <col ref="spredt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="spreidnm" style="text-align:center; "/>
- <col ref="sprecnfmdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="sprecnfmidnm" style="text-align:center; "/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- <col ref="drugdd" visibility="hidden"/>
- <col ref="drugno" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="narcflag" visibility="hidden"/>
- <col ref="prntflag" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="prcpgenrflag" visibility="hidden"/>
- <col ref="prntdt" visibility="hidden"/>
- <col ref="presqty2" visibility="hidden"/>
- <col ref="statvisible" visibility="hidden" style="text-align:center; "/>
- <col ref="medrendyn" visibility="hidden" style="text-align:center; "/>
- <col ref="medrqty" visibility="hidden" style="text-align:center; "/>
- <col ref="medrtims" visibility="hidden" style="text-align:center; "/>
- <col ref="medrx" visibility="hidden" style="text-align:center; "/>
- <col ref="drugseqno" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_narclist.iscell(event.target) ){
- model.setValue("/root/temp/srchinfo/pid",model.getValue("/root/main/narclist/narclist["+grd_narclist.row+"]/pid"));
- //model.refresh();
- fGetNarcData();
- //환자별 조회라면 체크 표시
- fChkPatSearch(grd_narclist);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 전체 선택시 미신청항목 체크박스 제외 -- 20090514 김귀남
- if(grd_narclist.row == "0" && grd_narclist.col == "1"){
- for ( var i = grd_narclist.fixedRows; i < grd_narclist.rows; i++){
- narcstat = grd_narclist.valueMatrix(i, 2);
- if(narcstat == "1"){
- grd_narclist.valueMatrix(i, 1) = "";
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_narclist", true, "/root/hidden/popup/prcp/item", "name", "param");
-
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case2">
- <datagrid id="grd_sprelist" nodeset="/root/main/narclist/narclist" class="datagrid2" backcoloralternate="#f0f0f0" caption="^상태^처방일자^환자번호^환자명^약품코드^약품명^총량^총량^일수량^일수량^일용량^일용량^횟수^잔량^잔량^반납신청일시^반납신청
담당자^반납확인일시^반납확인
담당자^prcpno^prcphistno^drugdd^drugno^ioflag^instcd^narcflag^prntflag^orddd^orddeptcd^prcpgenrflag" colsep="^" colwidth="29, 60, 80, 65, 58, 90, 150, 50, 33, 50, 26, 50, 29, 34, 50, 34, 100, 65, 100, 62, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:1195px; height:500px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="narcstat" type="combo">
- <choices>
- <item>
- <label>미신청</label>
- <value>1</value>
- </item>
- <item>
- <label>불출신청</label>
- <value>2</value>
- </item>
- <item>
- <label>출력완료</label>
- <value>3</value>
- </item>
- <item>
- <label>조제완료</label>
- <value>4</value>
- </item>
- <item>
- <label>불출</label>
- <value>5</value>
- </item>
- <item>
- <label>부서확인</label>
- <value>6</value>
- </item>
- <item>
- <label>반납신청</label>
- <value>7</value>
- </item>
- <item>
- <label>반납확인</label>
- <value>8</value>
- </item>
- <item>
- <label>반환신청</label>
- <value>9</value>
- </item>
- <item>
- <label>반환확인</label>
- <value>0</value>
- </item>
- </choices>
- </col>
- <col ref="prcpdd" format="yyyy/mm/dd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="prcpcd"/>
- <col ref="drugnm"/>
- <col ref="totdrugqty" style="text-align:right; "/>
- <col ref="prcpqtyunit" style="text-align:left; "/>
- <col ref="dayprcpqty" style="text-align:right; "/>
- <col ref="prcpqtyunit" style="text-align:left; "/>
- <col ref="prcpvol" style="text-align:right; "/>
- <col ref="prcpvolunit" style="text-align:left; "/>
- <col ref="prcptims" style="text-align:right; "/>
- <col ref="spreqty" style="text-align:right; "/>
- <col ref="prcpvolunit" style="text-align:left; "/>
- <col ref="spredt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="spreidnm" style="text-align:center; "/>
- <col ref="sprecnfmdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="sprecnfmidnm" style="text-align:center; "/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- <col ref="drugdd" visibility="hidden"/>
- <col ref="drugno" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="narcflag" visibility="hidden"/>
- <col ref="prntflag" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="prcpgenrflag" visibility="hidden"/>
- </datagrid>
- <object id="CommAX" clsid="{B721F534-D025-466B-8A28-7CF40E700ACD}" style="left:270px; top:155px; width:45px; height:45px; "/>
- </case>
- <case id="case3">
- <datagrid id="grd_outnarc" nodeset="/root/main/narclist/narclist" class="datagrid2" autoresize="true" backcoloralternate="#f0f0f0" caption="^불출상태^처방
상태^반환상태^반납상태^약품
구분^투약번호^처방구분^수행부서^처방일자^환자번호^환자명^약품코드^약품명^총량^총량^일수량^일수량^1회수량^1회수량^일용량^일용량^1회용량^1회용량^횟수^일수^잔량^잔량^반환횟수^반환횟수^반환수량^반환수량^불출신청일자^불출
신청자^조제일시^조제약사^투약일시^투약약사^수령일시^수령
담당자^부서확인
일시^부서확인
간호사^반환신청일시^반환신청
간호사^반환확인일시^반환확인
약사^반환사유^반납신청
일시^잔량반납신청
간호사^반납확인
일시^잔량반납확인
약사^prcpno^prcphistno^drugdd^drugno^ioflag^instcd^narcflag^prntflag^orddd^orddeptcd^prcpgenrflag^drugkind^rtndrugtims^rtndrugdayno^rtnstocqty" colsep="^" colwidth="27, 65, 40, 70, 70, 53, 50, 52, 70, 80, 65, 61, 90, 150, 40, 35, 40, 35, 40, 35, 40, 35, 40, 35, 30, 30, 40, 35, 55, 35, 40, 35, 8, 70, 8, 70, 8, 70, 8, 70, 7, 70, 10, 70, 10, 70, 100, 6, 85, 7, 85, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" extendlastcol="scroll" frozencols="12" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:1195px; height:510px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox">
- <![CDATA[grd_outnarc.colHidden]]>
- </col>
- <col ref="narcstat" type="combo">
- <choices>
- <item>
- <label>미신청</label>
- <value>1</value>
- </item>
- <item>
- <label>불출신청</label>
- <value>2</value>
- </item>
- <item>
- <label>출력완료</label>
- <value>3</value>
- </item>
- <item>
- <label>조제완료</label>
- <value>4</value>
- </item>
- <item>
- <label>불출</label>
- <value>5</value>
- </item>
- <item>
- <label>부서확인</label>
- <value>6</value>
- </item>
- <item>
- <label>반납신청</label>
- <value>7</value>
- </item>
- <item>
- <label>반납확인</label>
- <value>8</value>
- </item>
- <item>
- <label>반환신청</label>
- <value>9</value>
- </item>
- <item>
- <label>반환확인</label>
- <value>0</value>
- </item>
- </choices>
- </col>
- <col ref="prcphistcd" style="text-align:center; "/>
- <col ref="cnclstat" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>-</label>
- <value/>
- </item>
- <item>
- <label>반환대상</label>
- <value>0</value>
- </item>
- <item>
- <label>반환신청</label>
- <value>1</value>
- </item>
- <item>
- <label>반환확인</label>
- <value>2</value>
- </item>
- <item>
- <label>반환종료</label>
- <value>7</value>
- </item>
- <item>
- <label>미불출</label>
- <value>10</value>
- </item>
- </choices>
- </col>
- <col ref="rtnstat" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>-</label>
- <value/>
- </item>
- <item>
- <label>잔량대상</label>
- <value>0</value>
- </item>
- <item>
- <label>잔량신청</label>
- <value>1</value>
- </item>
- <item>
- <label>잔량확인</label>
- <value>2</value>
- </item>
- <item>
- <label>미불출</label>
- <value>10</value>
- </item>
- </choices>
- </col>
- <col ref="drugkindnm" style="text-align:center; "/>
- <col ref="drugno" style="text-align:center; "/>
- <col ref="prcpkindnm"/>
- <col ref="issdeptcdnm" style="text-align:center; "/>
- <col ref="prcpdd" format="yyyy/mm/dd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="prcpcd"/>
- <col ref="drugnm"/>
- <col ref="totdrugqty" style="text-align:right; "/>
- <col ref="prcpqtyunit" style="text-align:left; "/>
- <col ref="dayprcpqty" style="text-align:right; "/>
- <col ref="dayprcpqtyunit" style="text-align:left; "/>
- <col ref="prcpqty2" style="text-align:right; "/>
- <col ref="prcpqtyunit2" style="left:1153px; top:32px; width:35px; height:23px; text-align:left; "/>
- <col ref="prcpvol" style="text-align:right; "/>
- <col ref="prcpvolunit" style="text-align:left; "/>
- <col ref="prcpvol2" style="text-align:right; "/>
- <col ref="prcpvolunit2" style="text-align:left; "/>
- <col ref="prcptims" style="text-align:right; "/>
- <col ref="prcpdayno" style="text-align:right; "/>
- <col ref="spreqty" style="text-align:right; "/>
- <col ref="prcpvolunit" style="text-align:left; "/>
- <col class="gridinput" ref="rtnqty" type="input" style="text-align:right; "/>
- <col ref="rtnunit" style="text-align:center; "/>
- <col ref="returnqty" style="text-align:right; "/>
- <col ref="prcpqtyunit" style="text-align:left; "/>
- <col ref="reqdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="reqidnm" style="text-align:center; "/>
- <col ref="prcpdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="prcpidnm" style="text-align:center; "/>
- <col ref="drugdt" visibility="hidden" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="drugidnm" visibility="hidden" style="text-align:center; "/>
- <col ref="delivedt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="deliveidnm" style="text-align:center; "/>
- <col ref="acptdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="acptidnm" style="text-align:center; "/>
- <col ref="rtnappdt" visibility="visible" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="rtnappidnm" visibility="visible" style="text-align:center; "/>
- <col ref="rtncnfmdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="rtncnfmidnm" style="text-align:center; "/>
- <col ref="rtnresn"/>
- <col ref="spredt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="spreidnm" style="text-align:center; "/>
- <col ref="sprecnfmdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
- <col ref="sprecnfmidnm" style="text-align:center; "/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- <col ref="drugdd" visibility="hidden"/>
- <col ref="drugno" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="narcflag" visibility="hidden"/>
- <col ref="prntflag" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="prcpgenrflag" visibility="hidden"/>
- <col ref="drugkind" visibility="hidden" style="text-align:center; "/>
- <col ref="rtndrugtims" visibility="hidden"/>
- <col ref="rtndrugdayno" visibility="hidden"/>
- <col ref="rtnstocqty" visibility="hidden"/>
- <col ref="drugseqno" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/temp/srchinfo/narcflag") == "H") {
- fIptRtnCnts(grd_outnarc.row);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_outnarc.iscell(event.target) ){
- model.setValue("/root/temp/srchinfo/pid",model.getValue("/root/main/narclist/narclist["+grd_outnarc.row+"]/pid"));
- //model.refresh();
- fGetNarcData();
- //환자별 조회라면 체크 표시
- fChkPatSearch(grd_outnarc);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- // 전체 선택시 미신청항목 체크박스 제외 -- 20090514 김귀남
- if(grd_outnarc.row == "0" && grd_outnarc.col == "1"){
- for ( var i = grd_outnarc.fixedRows; i < grd_outnarc.rows; i++){
- narcstat = grd_outnarc.valueMatrix(i, 2);
- if(narcstat == "1"){
- grd_outnarc.valueMatrix(i, 1) = "";
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_outnarc", true, "/root/hidden/popup/prcp/item", "name", "param");
-
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <group id="group4" scroll="auto" style="left:0px; top:194px; width:1195px; height:27px; ">
- <button id="btn_rtn" class="btn4_letter4" navindex="39" style="left:861px; top:4px; width:80px; height:22px; ">
- <caption>반환확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNarcActing("Rtn");
- fGetNarcData();
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn6_letter4" navindex="29" style="left:0px; top:5px; width:92px; height:22px; ">
- <caption>일괄처리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNarcPrint();
- if (chk_all.value == "Y") {
- /// 2014년 11.6 김치국 불출상태가 '1' = 불출신청이면서 일괄처리 버튼 누를시 에러를 발생 시킴
- for(var i = grd_narclist.fixedRows; i < grd_narclist.rows; i++){
- var sel = model.getValue("/root/main/narclist/narclist["+i+"]/sel");
- var cnclstat = model.getValue("/root/main/narclist/narclist["+i+"]/cnclstat"); // 반환상태
- //alert( sel + cnclstat);
- if(sel == "Y"){
- if ( cnclstat == "1") {
- alert("반환신청 자료는 일괄처리 할 수 없습니다");
- return;
- }
- }
- }
- fNarcActing("Prcpdrug");
- // model.setValue("/root/temp/srchinfo/barcode","");
- // model.setFocus("input9");
- // model.refresh();
- }
- // 20110922_laboru_처방전이나 라벨 출력 시 병동이나 수행부서를 조건으로 걸고 진행한 후 다시 공란으로 돌아가게 수정
- model.setValue("/root/temp/srchinfo/ward", "");
- model.setValue("/root/temp/srchinfo/srchdeptcd", "");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_drugcncl" class="btn4_letter4" visibility="hidden" style="left:777px; top:4px; width:80px; height:22px; ">
- <caption>불출취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //messageBox("마약불출화면에서 마약수령자가 처리해야합니다.","I900");
- if(messageBox("마약불출화면에서 마약수령자가 처리해야합니다. 진행하시겠습니까?", "Q900") == "7") {
- return;
- }
- fNarcActing("DrugCncl");
- ]]>
- </script>
- </button>
- <button id="btn_spre" class="btn4_letter4" navindex="41" style="left:1029px; top:4px; width:80px; height:22px; ">
- <caption>잔량확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNarcActing("Spre");
- ]]>
- </script>
- </button>
- <button id="btn_prcpcncl" class="btn4_letter4" navindex="36" visibility="hidden" style="left:609px; top:4px; width:80px; height:22px; ">
- <caption>조제취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNarcActing("PrcpCncl");
- ]]>
- </script>
- </button>
- <button id="btn_prcp" class="btn4_letter4" navindex="37" visibility="hidden" style="left:655px; top:4px; width:80px; height:22px; ">
- <caption>조제확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNarcActing("Prcp");
- ]]>
- </script>
- </button>
- <button id="button7" class="btn6_letter5" navindex="31" style="left:192px; top:5px; width:92px; height:22px; ">
- <caption>라벨재출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fNarcLBLPrint("Reprnt");
- fNarcLBLPrintR("Reprnt");
- // 20110922_laboru_처방전이나 라벨 출력 시 병동이나 수행부서를 조건으로 걸고 진행한 후 다시 공란으로 돌아가게 수정
- model.setValue("/root/temp/srchinfo/ward", "");
- model.setValue("/root/temp/srchinfo/srchdeptcd", "");
- model.refresh();
- ]]>
- </script>
- </button>
- <select id="checkbox4" ref="/root/send/lblskip" navindex="35" overflow="visible" appearance="full" style="left:546px; top:11px; width:75px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>라벨생략</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <button id="button5" class="btn3_letter5" navindex="32" style="left:290px; top:5px; width:92px; height:22px; ">
- <caption>바코드불출</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMADT30600","1","1","1","SMADT30600","","","caption:hidden;","false");
- //open("SMADT30600",0,0,10,"SMADT30600","","");
- ]]>
- </script>
- </button>
- <button id="btn_prnt" class="btn3_letter5" navindex="33" style="left:385px; top:5px; width:92px; height:22px; ">
- <caption>프린터설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetPrint();
- ]]>
- </script>
- </button>
- <button id="btn_sprecncl" class="btn4_letter4" navindex="42" visibility="visible" style="left:1113px; top:4px; width:80px; height:22px; ">
- <caption>잔량취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNarcActing("SpreCncl");
- ]]>
- </script>
- </button>
- <button id="btn_rtncncl" class="btn4_letter4" navindex="40" visibility="visible" style="left:945px; top:4px; width:80px; height:22px; ">
- <caption>반환취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNarcActing("RtnCncl");
- fGetNarcData();
- ]]>
- </script>
- </button>
- <select id="chk_all" ref="/root/send/chkall" disabled="true" navindex="34" overflow="visible" appearance="full" style="left:480px; top:11px; width:65px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>일괄처리</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <button id="button2" class="btn6_letter6" navindex="30" style="left:83px; top:5px; width:104px; height:22px; ">
- <caption>처방전재출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 20101221 wify 경북대병원 처방전재출력 추가.
-
- model.setValue("/root/temp/reprnt", "Y");
- fNarcPrint();
- //alert( instance.selectNodesXml(“/root/main”) );
- model.setValue("/root/temp/reprnt", "N");
-
- // 20110922_laboru_처방전이나 라벨 출력 시 병동이나 수행부서를 조건으로 걸고 진행한 후 다시 공란으로 돌아가게 수정
- model.setValue("/root/temp/srchinfo/ward", "");
- model.setValue("/root/temp/srchinfo/srchdeptcd", "");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_drug" class="btn4_letter4" navindex="38" visibility="hidden" style="left:755px; top:4px; width:80px; height:22px; ">
- <caption>불출확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //messageBox("마약불출화면에서 마약수령자가 처리해야합니다.","I900");
- //return;
-
- fNarcActing("Drug");
- ]]>
- </script>
- </button>
- </group>
- </group>
- <button id="btn_excel" class="btn2_letter4" navindex="46" style="left:1125px; top:760px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_narclist.rows>1) {
- fExeSaveToExcel();
- }
- ]]>
- </script>
- </button>
- <button id="button8" class="btn6_letter6" navindex="45" style="left:1010px; top:760px; width:104px; height:22px; ">
- <caption>반환반납장부</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.copyNode("/root/send/srchinfo","/root/temp/srchinfo");
- model.setValue("/root/send/srchinfo/cnclflag","Y");
- model.setValue("/root/send/srchinfo/cnclstat","T");
- model.setValue("/root/send/srchinfo/rtnflag","Y");
- model.setValue("/root/send/srchinfo/rtnstat","T");
- model.setValue("/root/send/srchinfo/pid", "");
- model.setValue("/root/send/srchinfo/srchdrugno", "");
- model.setValue("/root/send/srchinfo/narcstat", "");
- model.makeValue("/root/send/srchinfo/usernm", getUserName());
- //submit("TRADT30102");
- submit("TRADT30108");
-
- if(model.getValue("root/main/rtnprntlist/prntlist/pid") != "") {
- if ( model.getValue("/root/temp/srchinfo/narcflag") =="H"){//향정
- //20090915 이선경 주석 : 마약과 동일한 조건으로 장부 리스트 출력함
- /*model.setValue("/root/temp/srchinfo/prtab", "Y");
- fGetNarcData();
- model.makeValue("/root/send/srchinfo/usernm", getUserName());
- */
- exeReportPreview("RFADT30103", "XMLSTR", "", "", "true","","","","","true");
- } else if ( model.getValue("/root/temp/srchinfo/narcflag") =="M"){//마약
- exeReportPreview("RFADT30101", "XMLSTR", "", "", "true","","","","","true");
- }
- }
- ]]>
- </script>
- </button>
- <button id="button9" class="btn6_letter8" navindex="44" style="left:880px; top:760px; width:128px; height:22px; ">
- <caption>잔류마약폐기장부</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.copyNode("/root/send/srchinfo","/root/temp/srchinfo");
- model.setValue("/root/send/srchinfo/srchioflag","");
- model.setValue("/root/send/srchinfo/rtnflag","Y");
- model.setValue("/root/send/srchinfo/pid", "");
- model.setValue("/root/send/srchinfo/srchdrugno", "");
- model.setValue("/root/send/srchinfo/rtnstat", "2"); //잔량확인건만 -"2"
- model.setValue("/root/send/srchinfo/cnclflag", "");
- model.setValue("/root/send/srchinfo/cnclstat", "");
- model.setValue("/root/send/srchinfo/narcstat", "");
- submit("TRADT30102");
- exeReportPreview("RFADT30102", "XMLSTR", "", "", "true","","","","","true");
- ]]>
- </script>
- </button>
- <button id="button1" class="btn6_letter6" navindex="43" style="left:775px; top:760px; width:104px; height:22px; ">
- <caption>불출확인서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var val = cmb_ward.value;
- var val1 = radio3.value;
-
-
-
- // if (val == "" ) {
- // alert("병동을 선택하세요.");
- // return false;
- // }
- if(val1 == "5" || val1== "7" || val1== "8") {
- if (val1 == "8") {
- if (cmb_prntdt.value == "") {
- messageBox("출력할 출력일시를 선택", "I008");
- model.setFocus("cmb_prntdt");
- return;
- }
- }
-
-
- var sSelKey = "";
- var sSelKeyall = "";
- var iCnt = getNodesetCount(grd_narclist.nodeset);
- var selCnt = getNodesetCount(grd_narclist.nodeset+"[sel='Y']");
-
- if (selCnt < 1) {
- messageBox("출력할 처방을 선택", "I008");
- return;
- }
-
- for (var i = 1; i <= iCnt; i++) {
- if (model.getValue(grd_narclist.nodeset+"["+ i +"]/sel") == "Y") {
- sSelKey += "'"+ model.getValue(grd_narclist.nodeset+"["+ i +"]/drugno") +
- ""+model.getValue(grd_narclist.nodeset+"["+ i +"]/pid") +
- ""+model.getValue(grd_narclist.nodeset+"["+ i +"]/prcpdd")+ "',";
- sSelKeyall += "'"+ model.getValue(grd_narclist.nodeset+"["+ i +"]/drugno") +
- ""+model.getValue(grd_narclist.nodeset+"["+ i +"]/pid") +
- ""+model.getValue(grd_narclist.nodeset+"["+ i +"]/prcpdd")+
- ""+model.getValue(grd_narclist.nodeset+"["+ i +"]/prcpno")+
- ""+model.getValue(grd_narclist.nodeset+"["+ i +"]/drugseqno")+"',";
- }
- }
- sSelKey = sSelKey.replace(/,$/g, "");
- sSelKeyall = sSelKeyall.replace(/,$/g, "");
- model.setValue("/root/temp/srchinfo/selkey", sSelKey); //체크된 불출집계내역
- model.setValue("/root/temp/srchinfo/selkeyall", sSelKeyall); //체크된 불출집계내역
-
- fGetNarcData();
-
- //20101216 wify 경북대병원 조회목록출력 변경 ==> 마약불출확인서
- var befrNacrFlag = model.getValue("/root/send/srchinfo/narcflag");
- //마약
-
-
- if (getNodesetCount("/root/main/narclist/narclist[narcflag='M' and sel='Y']") > 0) {
-
-
- model.setValue("/root/send/srchinfo/narcflag", "M");
-
- var drugkind = model.getValue("/root/send/srchinfo/srchdrugkind");
- {//마약 주사
- model.setValue("/root/send/srchinfo/srchdrugkind", "I");
- submit("TRADT30109");
- copyNodesetType("/root/prtinfo/sumlist/sumlist","/root/main/sumlist/sumlist","replace");
- model.setValue("/root/prtinfo/hosp/hosp", "");
-
- if (getNodesetCount("/root/main/narclist/narclist[narcflag='M' and pastillyn != 'Y' and drugkind='M' and sel='Y']") > 0) {
- model.setValue("/root/prtinfo/hosp/narcflag", "M");
- model.setValue("/root/prtinfo/hosp/pastillyn", "N");
-
- copyNodesetType("/root/prtinfo/narclist/narclist","/root/main/narclist/narclist[narcflag='M' and pastillyn != 'Y' and drugkind='M' and sel='Y']","replace");
- exeReportPreview("RFADT30108", "XMLSTR", "", "", "true","","","","","true");
- model.setValue("/root/prtinfo/hosp/hosp", "Y");
- exeReportPreview("RFADT30108", "XMLSTR", "", "", "true","","","","","true");
- }
- }
-
- {//마약 먹는약/외용약
- model.setValue("/root/send/srchinfo/srchdrugkind", "D");
- submit("TRADT30109");
- copyNodesetType("/root/prtinfo/sumlist/sumlist","/root/main/sumlist/sumlist","replace");
- model.setValue("/root/prtinfo/hosp/hosp", "");
-
- if (getNodesetCount("/root/main/narclist/narclist[narcflag='M' and pastillyn != 'Y' and sel='Y' and (drugkind= 'N' or drugkind = 'Y')]") > 0) {
- model.setValue("/root/prtinfo/hosp/narcflag", "M");
- model.setValue("/root/prtinfo/hosp/pastillyn", "N");
-
- copyNodesetType("/root/prtinfo/narclist/narclist","/root/main/narclist/narclist[narcflag='M' and pastillyn != 'Y' and sel='Y' and (drugkind= 'N' or drugkind = 'Y')]","replace");
- exeReportPreview("RFADT30108", "XMLSTR", "", "", "true","","","","","true");
- model.setValue("/root/prtinfo/hosp/hosp", "Y");
- exeReportPreview("RFADT30108", "XMLSTR", "", "", "true","","","","","true");
- }
-
-
- }
-
- {//마약이면서 향정수불인것
- model.setValue("/root/send/srchinfo/srchdrugkind", "P");
- submit("TRADT30109");
- copyNodesetType("/root/prtinfo/sumlist/sumlist","/root/main/sumlist/sumlist","replace");
- model.setValue("/root/prtinfo/hosp/hosp", "");
-
-
- if (getNodesetCount("/root/main/narclist/narclist[narcflag='M' and pastillyn = 'Y' and sel='Y']") > 0) {
- model.setValue("/root/prtinfo/hosp/narcflag", "M");
- model.setValue("/root/prtinfo/hosp/pastillyn", "Y");
-
- copyNodesetType("/root/prtinfo/narclist/narclist","/root/main/narclist/narclist[narcflag='M' and pastillyn = 'Y' and sel='Y']","replace");
- exeReportPreview("RFADT30108", "XMLSTR", "", "", "true","","","","","true");
- model.setValue("/root/prtinfo/hosp/hosp", "Y");
- exeReportPreview("RFADT30108", "XMLSTR", "", "", "true","","","","","true");
- }
- }
-
- model.setValue("/root/send/srchinfo/srchdrugkind", drugkind);
- }
-
- //향정
- if (getNodesetCount("/root/main/narclist/narclist[narcflag='H' and sel='Y']") > 0) {
- model.setValue("/root/send/srchinfo/narcflag", "H");
- submit("TRADT30109");
-
- copyNodesetType("/root/prtinfo/sumlist/sumlist","/root/main/sumlist/sumlist","replace");
- copyNodesetType("/root/prtinfo/narclist/narclist","/root/main/narclist/narclist[narcflag='H' and sel='Y']","replace");
- model.setValue("/root/prtinfo/hosp/hosp", "");
- model.setValue("/root/prtinfo/hosp/narcflag", "H");
-
- exeReportPreview("RFADT30108", "XMLSTR", "", "", "true","","","","","true");
- model.setValue("/root/prtinfo/hosp/hosp", "Y");
- exeReportPreview("RFADT30108", "XMLSTR", "", "", "true","","","","","true");
- }
-
- if (val1 != "8") { //재출력인 경우를 제외하고 출력일자 설정
- fSetNarcPrintDt(); //출력일자 설정
- }
- model.setValue("/root/send/srchinfo/narcflag", befrNacrFlag);
-
- //exeReportPreview("RFADT30104", "XMLSTR", "", "", "true","","","","","true");
- //exeReportPreview("RFADT30104", "XMLSTR");
- } else {
- alert("불출구분(불출/실불출신청/재출력)중 하나를 선택해주세요");
- return false;
- }
- ]]>
- </script>
- </button>
- <group id="group5" visibility="hidden" style="left:535px; top:520px; width:435px; height:205px; ">
- <datagrid id="datagrid2" nodeset="/root/main/detlprcplist/detlprcpinfo" visibility="visible" scroll="auto" caption="구분^ioflag^처방번호^투약번호^병실^실시일자^실시시간^집계일시^집계부서^시행부서^발행부서^마감일시^출력일시^execrid^실시자" colsep="^" colwidth="40, 5, 3, 57, 51, 81, 71, 123, 121, 121, 121, 120, 138, 0, 90" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:2px; top:0px; width:430px; height:175px; ">
- <col ref="ioflagnm" visibility="hidden" style="text-align:center; "/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden" style="text-align:center; ">
- <![CDATA[/>]]>
- </col>
- <col ref="drugno" visibility="hidden" style="text-align:center; "/>
- <col ref="roomcd" visibility="hidden" 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" visibility="hidden" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="sumdeptnm" visibility="hidden" style="text-align:center; "/>
- <col ref="execdeptnm" style="text-align:center; "/>
- <col ref="issdeptcdnm" visibility="hidden" style="text-align:center; "/>
- <col ref="sumdt" visibility="hidden" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="prntdt" visibility="hidden" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="execrid"/>
- <col ref="execrnm"/>
- </datagrid>
- <button id="button10" class="btn4_letter2" style="left:375px; top:180px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group5.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- //20110124_laboru
- if (event.keyCode==121){
- btn_prcp.visible=true;
- btn_drug.visible=true;
- }
-
- if(event.keyCode==120) {
- btn_prcp.visible=false;
- btn_drug.visible=false;
- }
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|