12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLBT80200_혈액준비관리상세.xrw
- * 설 명 : 혈액준비관리상세
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2009.04.11
- * 수정이력 : 2009.07.29 장현식 선생님 요청 (변경요청번호 1951)
- - 보관검체가 없는경우(보관검체등록안된것) 메시지 출력
- * 기 타 : 111
- -->
- <?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>
- <getblodprcplist>
- <pid/>
- <patnm/>
- <tclsscrnnm/>
- <abo/>
- <iryn/>
- <no/>
- <erprcpflag/>
- <prcphopedd/>
- <tnsreqacptdt/>
- <h/>
- <blodcomcd/>
- <tnsreqacptno/>
- <blodbarcd/>
- <prcperflag/>
- <prcpgenrflag/>
- <keep/>
- <prcpdd/>
- <abrnblodyn/>
- <kabo/>
- <keepspcno/>
- <orddeptnm/>
- <dnorcnt/>
- <wbcnt/>
- <cstat/>
- <mstat/>
- <keepspcbcno/>
- </getblodprcplist>
- <getbloodinfo>
- <getblooddetllist>
- <prcphopedd/>
- <blodcomnm/>
- <aborh/>
- <iryn/>
- <reqqty/>
- <cno/>
- <dno/>
- <tclsnmabbr/>
- <blodcomcd/>
- <tnsreqacptno/>
- <blodbarcd/>
- </getblooddetllist>
- <getpatinfo>
- <pid/>
- <patnm/>
- <sexage/>
- <rstno/>
- <prcpgenrflag/>
- <orddeptnm/>
- <wardroom/>
- <aborh/>
- <orddrnm/>
- <reqqnt/>
- <blodcomcd/>
- <f1/>
- <f2/>
- <f3/>
- <abrnblodyn/>
- <tnssideeffect/>
- </getpatinfo>
- <getpatcmt>
- <rgstdt/>
- <patcmt/>
- </getpatcmt>
- <getbloodinfo>
- <ast/>
- <id>ANTI - I</id>
- <coomsd>NEGATIVE</coomsd>
- <coomsid>POSITIVE (+)</coomsid>
- </getbloodinfo>
- <getbloodinfo>
- <ast>2007-07-10</ast>
- <id>2007-07-10</id>
- <coomsd>2007-07-10</coomsd>
- <coomsid>2007-07-10</coomsid>
- </getbloodinfo>
- <blodrslthistory>
- <rsltdd>20070505</rsltdd>
- <rsltval>A+</rsltval>
- </blodrslthistory>
- <getcomment/>
- <getbloodcom>
- <blodcomnm/>
- <fromno/>
- <tono/>
- <pcnt/>
- <blodcomcd/>
- </getbloodcom>
- <getblodinfolist>
- <dt/>
- <rslt/>
- <tclsnm/>
- <testcd/>
- <unit/>
- </getblodinfolist>
- <getblodinforslt>
- <row>
- <a1/>
- </row>
- <row>
- <a1/>
- </row>
- <hearder/>
- </getblodinforslt>
- <blodrslthistory>
- <rsltdt/>
- <rslt/>
- </blodrslthistory>
- <getASTRsltYN>
- <astrsltyn/>
- </getASTRsltYN>
- </getbloodinfo>
- <gettestpsnnm>
- <testpsnnm/>
- </gettestpsnnm>
- <temp>
- <getprepbloodlisth>
- <chk/>
- <pno/>
- <blodno/>
- <blodbarcd/>
- <blodcomcd/>
- <blodcomnm/>
- <abo/>
- <iryn/>
- <blodstat/>
- <validt/>
- <blodcmt/>
- <execprcpuniqno/>
- <tnsrpid/>
- <donflag/>
- </getprepbloodlisth>
- <getapntselfinfo>
- <blodno/>
- <blodbarcd/>
- <blodstat/>
- <blodkind/>
- <btype/>
- <blodcomcd/>
- <blodcomnm/>
- <tnsrpid/>
- <dnornm/>
- <dnorpid/>
- <execprcpuniqno/>
- <donflag/>
- </getapntselfinfo>
- </temp>
- <temp2>
- <getprepbloodlist>
- <chk/>
- <pno/>
- <blodno/>
- <blodbarcd/>
- <blodcomcd/>
- <blodcomnm/>
- <abo/>
- <iryn/>
- <prepdt/>
- <blodstat/>
- <blodcmt/>
- <tnsreqacptno/>
- </getprepbloodlist>
- </temp2>
- <barcdprntsetup>
- <prntsetupinfo>
- <setupinfo/>
- </prntsetupinfo>
- </barcdprntsetup>
- <temp3>
- <rsltlist/>
- </temp3>
- <temp4>
- <getprepbloodlist>
- <chk/>
- <pno/>
- <blodno/>
- <blodcomnm/>
- <abo/>
- <rh/>
- <iryn/>
- <blodcomcd/>
- <blodbarcd/>
- <blodstat/>
- <blodcmt/>
- <tnsreqacptno/>
- <prepdt/>
- <testdt/>
- <delivedt/>
- <cmrslt/>
- <rsltlist/>
- <testid/>
- <rslt/>
- <blodcomstat/>
- <tnsreqseq/>
- <pid/>
- <prcpblodbarcd/>
- <prcpblodcomcd/>
- </getprepbloodlist>
- </temp4>
- <getKeepnoBlodcnt>
- <bno/>
- <keepno/>
- </getKeepnoBlodcnt>
- <comment>
- <pid/>
- <regdd/>
- <cmt/>
- </comment>
- <KeepBcnoPrint/>
- <getUsernm>
- <usernm/>
- </getUsernm>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <fromtm/>
- <totm/>
- <testpsnid/>
- <pid/>
- <blodno/>
- <tnsreqacptno/>
- <spclyn/>
- <send/>
- <blodcomcd/>
- <gbn/>
- <prcpblodbarcd/>
- <blodcd/>
- <barcdflag/>
- <tclscd/>
- <erflag/>
- <prcpdd/>
- <iogbn/>
- <aborh/>
- <blodnolist/>
- <cancelflag/>
- <blodbarcd/>
- <abrnblodyn/>
- <dispflag/>
- <cmt/>
- <blodcmt/>
- <codeflag/>
- <clickflag/>
- <prcphopedd/>
- <acptnolist/>
- <prepblod/>
- <apntselyn/>
- <iryn/>
- <preplog/>
- <tnsrsrv>
- <pid/>
- <tnsreqacptno/>
- <blodcomcd/>
- <rsrvdd/>
- <rsrvtm/>
- </tnsrsrv>
- <prcpgenrflag/>
- </send>
- <init>
- <prcpinfo>
- <execprcpuniqno/>
- <prcpdd/>
- <instcd/>
- </prcpinfo>
- </init>
- <hidden>
- <ref>
- <reffromdd/>
- <reffromtm/>
- <reftodd/>
- <reftotm/>
- <testpsnid/>
- <testpsnnm/>
- <pid/>
- <bloodno/>
- <spclblood/>
- <cmend/>
- </ref>
- <prepimport/>
- <temp>
- <rsltlist/>
- </temp>
- <barcd/>
- <todd/>
- <totm/>
- <cancel>
- <cancelgbn/>
- <prepLog/>
- </cancel>
- <barcode>
- <barcodeinfo/>
- </barcode>
- <eventtarget/>
- <popupmenu>
- <grid>
- <item/>
- </grid>
- </popupmenu>
- <rsrvinfo>
- <rsrvdd/>
- <rsrvtm/>
- </rsrvinfo>
- <cmrslt/>
- <rslt/>
- </hidden>
- </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/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/send/codeflag", "0122|1201|"); // 0122 수혈 반납/폐기 사유
- submit("TRLZZ00101");
-
- model.setValue("/root/hidden/todd", getCurrentDate());
- model.setValue("/root/hidden/totm", getCurrentTime());
-
-
- delPatientInfos(); //환자정보 전체 삭제
-
- lzzfMakeBrcdPrntObjHanDo("CommAX");
-
- // 그리드 전체 선택 기능
- grd_prepblood.fixedcellcheckbox(0,1)=true;
-
-
- ]]>
- </script>
- <submission id="TRLLC90101" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/barcdprntsetup"/>
- <submission id="TRLZZ00101" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/LB0122"/>
- <submission id="TRLZZ00107" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/init/prcpinfo"/>
- <submission id="TXLLB00101" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- <submission id="TRLBT10608" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/gettestpsnnm"/>
- <submission id="TRLBT10406" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/hidden/barcd"/>
- <submission id="TRLBT10601" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/getblodprcplist"/>
- <submission id="TRLBT10602" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/getbloodinfo"/>
- <submission id="TRLBT10603" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/getbloodinfo/blodrslthistory"/>
- <submission id="TRLBT10604" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/temp2"/>
- <submission id="TRLBT10605" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/temp3/rsltlist"/>
- <submission id="TRLBT10606" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/temp/getapntselfinfo"/>
- <submission id="TRLBT10607" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/temp/getprepbloodlisth"/>
- <submission id="TXLBT10601" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- <submission id="TXLBT10602" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- <submission id="TXLBT10603" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- <submission id="TXLBT10604" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- <submission id="TXLBT10605" ref="/root/send/tnsrsrv" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- <submission id="TXLBT10606" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- <submission id="TXLBT10607" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- <submission id="TRLBT10906" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/KeepBcnoPrint"/>
- <submission id="TRLZZ00104" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/getUsernm"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 프린터 설정 초기정보 조회
- function fPrinterRef(){
- model.makeValue("/root/send/scrnid", getScreenID());
- submit("TRLLC90101");
- }
-
- // 준비관리 화면 구분
- function fSetPrepImport(ref){
- if(ref == "SAME"){
- model.setValue("/root/hidden/prepimport", "SAME");
- }else if(ref == "DIFF"){
- model.setValue("/root/hidden/prepimport", "DIFF");
- }
- }
-
- // 초기화 버튼
- function fSetClear(){
- model.reset();
- }
-
- // 조회 버튼 클릭시
- function fGetBloodPrcpList(ref){
-
- //준비중인 혈액이 있는지 체크
- var prepTF = fPrepBlodYN(ref);
- if(prepTF){
- return;
- }else if(!prepTF){
-
- model.setValue("/root/send/fromdd", model.getValue("/root/hidden2/ref/reffromdd"));
- model.setValue("/root/send/todd", model.getValue("/root/hidden2/ref/reftodd"));
- model.setValue("/root/send/fromtm", model.getValue("/root/hidden2/ref/reffromtm"));
- model.setValue("/root/send/totm", model.getValue("/root/hidden2/ref/reftotm"));
- model.setValue("/root/send/testpsnid", model.getValue("/root/hidden2/ref/testpsnid"));
- model.setValue("/root/send/pid", model.getValue("/root/hidden2/ref/pid"));
- model.setValue("/root/send/spclyn", model.getValue("/root/hidden2/ref/spclblood"));
- model.setValue("/root/send/gbn", ref);
-
- //if(submit("TRLBT10201")==true){ // 지우지마세요
- if(submit("TRLBT10601")==true){
-
- //조회한뒤 혈액성분,수혈내역 초기화가 안되어서..초기화..
- if(getNodesetCount("/root/main/getblodprcplist") == 0){
-
- model.removeNodeset("/root/main/getbloodinfo/getbloodcom");
- model.removeNodeset("/root/main/getbloodinfo/getblooddetllist");
- grd_com.refresh();
- grd_detllist.refresh();
-
- }
- grd_prcplist.rebuildStyle();
-
- // er 처방에서 erprcpflag '1' 로 왔을때 readonly
- for(i=1; i<grd_prcplist.rows; i++){
-
- var pcnt = model.getValue("/root/main/getblodprcplist["+i+"]/no");
- var reqcnt = model.getValue("/root/main/getblodprcplist["+i+"]/h");
-
- if(model.getValue("/root/main/getblodprcplist["+i+"]/prcperflag")=="1"){
- grd_prcplist.isReadOnly(i, 7) = true;
- }else{
- grd_prcplist.isReadOnly(i, 7) = false;
- }
-
- // 접수, 준비, 완료 섞여있을때 // 일부준비 녹색
- if(model.getValue("/root/main/getblodprcplist["+i+"]/cstat") != model.getValue("/root/main/getblodprcplist["+i+"]/mstat")){
- grd_prcplist.cellstyle("color", i,1, i, 11) = "#03830c";
- }
-
- //이형 type 빨간색으로 표시되게
- if(model.getValue("/root/main/getblodprcplist["+i+"]/abrnblodyn")=="Y"){
- grd_prcplist.cellStyle("color", i, 4, i, 4) = "#EE0000";
- }
- if(model.getValue("/root/main/getblodprcplist["+i+"]/iryn")=="Y"){
- grd_prcplist.cellStyle("color", i, 5, i, 5) = "#EE0000";
- }
-
- if(model.getValue("/root/main/getblodprcplist["+i+"]/cstat") != "1"){
- grd_prcplist.cellStyle("color", i, 1, i, 11) = "#0000EE";
- }
-
- if(model.getValue("/root/main/getblodprcplist["+i+"]/dnorcnt") > 0){
- grd_prcplist.cellstyle("background-color",i,1,i,11) = "#99cf16";
- }
- }
-
- if(grd_prcplist.rows >1){
-
- var pid = "";
-
- if(ref == "bcd" || ref == "cancel"){
- grd_prcplist.row = 1;
- // 혈액정보조회
- if(ref == "bcd"){
- pid = model.getValue("/root/hidden2/ref/pid");
-
- fGetBloodInfo(pid , "bcd");
- }else{
- pid = model.getValue("/root/main/getblodprcplist[1]/pid");
-
- fGetBloodInfo(pid , "Auto");
- }
- }
- //----------------------------------------------------------
- //처방목록이 없으면 기존 수혈내역 바로 조회
- }else{
-
- if(ref == "bcd"|| ref == "cancel"){
- var pid = model.getValue("/root/hidden2/ref/pid");
- // 혈액정보조회
- if(ref == "bcd"){
-
- fGetBloodInfo(pid , "bcd");
- }else{
-
- fGetBloodInfo(pid , "Auto");
- }
- }
- }
- }
-
- //조회 된 후에 현재시간으로 셋팅.
- fSettingDate();
-
- if(ref == "btn"){
- model.setFocus("ipt_testpsn");
-
- //탑정보 초기화.
- delPatientInfos();
-
- }else if(ref == "bcd"){
- model.setFocus("ipt_bloodno");
- }
- }
-
- }
-
- //키이벤트 엔터키 입력시
- function fKeyEvent(){
-
- if(event.keyCode == "13"){
-
- // 검사자 바코드 리딩시
- if(event.target == "ipt_testpsn"){
- model.setvalue("/root/hidden2/ref/testpsnid", (ipt_testpsn.currentText).toUpperCase());
- fGetTestPsn();
- model.setFocus("ipt_pid");
-
- ipt_testpsn.selBegin = 0;
- ipt_testpsn.selEnd = ipt_testpsn.currentText.length;
- }
-
- // 등록번호 바코드 리딩시
- if(event.target == "ipt_pid"){
- model.setValue("/root/hidden2/ref/pid", ipt_pid.currentText);
-
- //자동접수- 혈액준비관리 화면만....이형준비관리는 자동접수 안함.
- if(getScreenID() == "SMLBT10200"){
- fAutoAcpt("N");
- }
-
- fGetBloodPrcpList("bcd");
-
- model.setFocus("ipt_bloodno");
-
- ipt_pid.selBegin = 0;
- ipt_pid.selEnd = ipt_pid.currentText.length;
- }
-
- // 혈액번호 바코드 리딩시
- if(event.target=="ipt_bloodno"){
-
- if(model.getValue("/root/hidden2/ref/pid") == ""){
- messageBox("등록번호를 " , "C001", ""); //등록번호를 입력하십시오
- model.setFocus("ipt_pid");
- return;
- }
-
-
- if(grd_prcplist.row < 1){
- messageBox("처방을 선택하세요. ", "I");
- return;
- }
-
- model.setValue("/root/hidden2/ref/bloodno", "");
- model.setValue("/root/hidden2/ref/bloodno", (ipt_bloodno.currentText).substr(0,10));
-
- fGetPrepBlodList();
-
- model.setValue("/root/hidden2/ref/bloodno", "");
- ipt_bloodno.refresh();
-
- //model.setFocus("ipt_bloodno");
-
- ipt_bloodno.selBegin = 0;
- ipt_bloodno.selEnd = ipt_bloodno.currentText.length;
- }
-
- }
-
- }
-
- //검사자 조회
- function fGetTestPsn(){
- //model.setValue("/root/send/testpsnid", model.getValue("/root/hidden2/ref/testpsnid"));
-
- //submit("TRLBT10204"); // 지우지마세요
- //submit("TRLBT10608");
-
- model.makeValue("/root/send/userid" , model.getValue("/root/hidden2/ref/testpsnid"));
- submit("TRLZZ00104");
- model.setValue("/root/hidden2/ref/tmptestpsnid", model.getValue("/root/hidden2/ref/testpsnid"));
- model.setValue("/root/hidden2/ref/testpsnnm", model.getValue("/root/main/getUsernm/usernm"));
- opt_testpsn.refresh();
-
- }
-
- // 준비완료 버튼
- function fSetReady(){
-
- if(model.getValue("/root/hidden2/ref/testpsnid")=="" || model.getValue("/root/hidden2/ref/testpsnnm") == ""){
- messageBox("접수자를 " , "C001", ""); //접수자를 입력하십시오
- model.setFocus("ipt_testpsn");
- return;
-
- }
-
- if(model.getValue("/root/hidden2/ref/testpsnid") != model.getValue("/root/hidden2/ref/tmptestpsnid")
- || model.getValue("/root/main/getUsernm/usernm") != model.getValue("/root/hidden2/ref/testpsnnm") ){
- messageBox("접수자를 확인해주세요.", "I");
- return;
- }
-
- //등록번호를 반드시 입력해야지만 입력완료 할 수 있게 수정 - 2007.10.20 장현식 선생님 요청
- if(model.getValue("/root/hidden2/ref/pid")==""){
- messageBox("등록번호를 " , "C001", ""); //등록번호를 입력하십시오
- model.setFocus("ipt_pid");
- return;
-
- }
-
-
- // 준비 혈액 내역 리스트 없을때
- if(grd_prepblood.rows < 2){
- messageBox("준비된 혈액이 " , "I004", ""); //준비된 혈액이 없습니다
- return;
- }
-
- var pBlodno = "";
- var pBlodcd = "";
- var pBlodcmt = "";
-
- //경북대 준비완료 버튼 클릭 시 cm 완료 까지 진행 하기 위한 변수 선언
- var tnsreqacptno_str = model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/tnsreqacptno");
-
-
- // ffp,cryo 예약시간 두시간전 start
- var prcpcd = model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/blodcomcd");
-
- var realtime = getCurrentDate() + getCurrentTime(); // 현재일시
-
- var hopedd = model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/prcphopedd").substr(0,8); // <prcphopedd>20081002000000</prcphopedd>
- var hopetm = model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/prcphopedd").substr(8,14); // 예약시간 안정하면 시간 000000으로 들어옴
-
- if(hopedd =="00000000"){
- hopedd = getCurrentDate(); // 예약일자 없으면 현재일자
- }
-
- if(hopetm == "000000"){
- hopetm = getCurrentTime(); // 예약시간 없으면 현재시간
- }
-
- var newhopeddtm = hopedd + hopetm;
- var hopem2tm = newhopeddtm.toDate("YYYYMMDDhhmmss").getAddDate(-2, "h"); // 2시간전 // Wed Oct 8 13:48:17 UTC+0900 2008
- var hopem2tm2 = hopem2tm.getDateFormat("YYYYMMDDhhmmss"); // 20081008134817
-
- // ★ 수정중입니다. 2008-10-08
-
- if( (prcpcd == "LBT20432") || (prcpcd == "LBT20440") || (prcpcd == "LBT20632") || (prcpcd == "LBT20640") ){ // FFP = LBT20432, LBT20440 cryo =LBT20632, LBT20640
- if(hopem2tm2 > realtime){
- var rtn = messageBox("지금녹이면 안되는 처방입니다 시간을 확인하십시오", "Q003" );
- if(rtn == "7" ){
- return;
- }
- }
- }
- // ffp,cryo 예약시간 두시간전 end
-
-
- // 준비혈액 번호 가져가기
- for(i=1; i<grd_prepblood.rows; i++){
-
- // 준비번호 없을때
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/pno") == ""){
-
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/testpsnid", model.getValue("/root/hidden2/ref/testpsnid"));
-
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodcmt")==""){
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodcmt", " ");
- }
-
- }
-
- }
-
- //var grdprepblood = grd_prepblood.getUpdateData();
-
- model.makeValue("/root/send/prepblod", grd_prepblood.getUpdateData());
-
- //if(submit("TXLBT10201")==true){ // 지우지 마세요
- if(submit("TXLBT10602")==true){
- fExeBarcdPrnt("prep");
-
- model.removeNodeset("/root/main/getbloodinfo/blod/getprepbloodlist");
- grd_prepblood.rebuild();
- //model.setValue("/root/hidden2/ref/pid", ""); 경북대 준비완료하면 cm 완료 까지 진행
-
- fGetBloodPrcpList("btn");
- delPatientInfos();
-
- if(grd_prcplist.rows > 1){
- model.resetInstanceNode("/root/main/getbloodinfo");
- model.removeNodeset("/root/main/getbloodinfo/blod/getprepbloodlist");
- grd_prepblood.rebuild();
- }else{
- model.removeNodeset("/root/main/getbloodinfo/blod/getprepbloodlist");
- grd_prepblood.rebuild();
- }
-
- //model.reset();
- //준비완료 후 등록번호, 혈액번호 초기화 - 2007.10.20 장현식 선생님 요청
- model.setValue("/root/hidden2/ref/pid", "");
- model.setValue("/root/hidden2/ref/bloodno", "");
-
- model.removeNodeset("/root/main/getbloodinfo/getblooddetllist");
- grd_detllist.refresh();
-
- model.refresh();
-
- var prepimport = model.getValue("/root/hidden/prepimport");
-
- if(prepimport == "DIFF"){
- window.opener.javascript.fGetBloodPrcpList("btn");
- window.close();
- }
-
-
- for(var pRow = 1 ; pRow < grd_prcplist.rows ; pRow++){
- if(model.getValue("/root/main/getblodprcplist["+pRow+"]/tnsreqacptno") == tnsreqacptno_str){
- grd_prcplist.row = pRow;
- fGetPrcpList();
-
- for(qRow = 1 ; qRow < grd_prepblood.rows ; qRow++){
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+qRow+"]/chk", "Y");
- grd_prepblood.rowStatus(qRow) = 2;
- }
- //fExeCMRslt();
- //return;
- }
- }
-
- fExeCMRslt();
-
-
-
- }
-
- }
-
-
- //바코드출력fKeyEvent
- function fExeBarcdPrnt(ref) {
- model.removeNodeset("/root/hidden/barcode");
-
- var blodno = "";
- var blodbarcd = "";
- if(ref=="prep"){
- for(i=1; i<grd_prepblood.rows; i++){
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+ i +"]/pno") == ""){
- blodno += model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+ i +"]/blodno");
- blodbarcd += model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+ i +"]/blodbarcd");
- if(i< (grd_prepblood.rows-1)){
- blodno = blodno + "','";
- blodbarcd = blodbarcd + "','";
- }
- }
- }
- }else if (ref=="reprnt"){
- blodno = model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/blodno");
- blodbarcd = model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/blodbarcd");
- }
-
- model.setValue("/root/send/pid", model.getValue("/root/hidden2/ref/pid"));
- model.setValue("/root/send/blodno", "'" + blodno + "'");
- model.setValue("/root/send/blodbarcd", "'" + blodbarcd + "'");
- model.setValue("/root/send/barcdflag", "1");
-
- submit("TRLBT10406"); // 바코드출력 liscommonweb에 있음
- var vInstance = document.models(0).instances(0);
- var cntHR = vInstance.selectNodes("/root/hidden/barcode/barcodeinfo").length;
-
- for(i= 1; i <= cntHR; i++) {
- model.makeNode("/root/hidden/barcode/barcodeinfo["+ i +"]/prtdd");
- model.makeNode("/root/hidden/barcode/barcodeinfo["+ i +"]/prttm");
-
- if(ref=="prep"){
- model.setValue("/root/hidden/barcode/barcodeinfo["+ i +"]/prtdd", model.getValue("/root/hidden/barcode/barcodeinfo["+ i +"]/rprtdd")); // lislib쿼리고치고 수정해야함
- model.setValue("/root/hidden/barcode/barcodeinfo["+ i +"]/prttm", model.getValue("/root/hidden/barcode/barcodeinfo["+ i +"]/rprttm")); // lislib쿼리고치고 수정해야함
- }else if(ref=="reprnt"){
- model.setValue("/root/hidden/barcode/barcodeinfo["+ i +"]/prtdd", model.getValue("/root/hidden/barcode/barcodeinfo["+ i +"]/rprtdd")); // lislib쿼리고치고 수정해야함
- model.setValue("/root/hidden/barcode/barcodeinfo["+ i +"]/prttm", model.getValue("/root/hidden/barcode/barcodeinfo["+ i +"]/rprttm")); // lislib쿼리고치고 수정해야함
- }
- }
-
- var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
-
- copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
-
- if( prtkind == "2" || prtkind == "6" || prtkind == "7"){
- //fLisTnsrBarcodePrint2("/root/hidden/barcode/barcodeinfo"); // 뻗어요
- var prntinstcd = getUserInfo("dutplceinstcd");
- if(prntinstcd == "017"){ // 임시로 병원코드 하드코딩
- fLisTnsrBarcodePrint3("/root/hidden/barcode/barcodeinfo"); // 뻗어요
- }else{
- fLisTnsrBarcodePrint2("/root/hidden/barcode/barcodeinfo"); // 뻗어요
- }
- }else{
- fLisTnsrBarcodePrint("/root/hidden/barcode/barcodeinfo"); // 뻗어요
- }
- }
-
- //준비중인 혈액이 있는지 체크
- function fPrepBlodYN(Ref){
-
- var prepCnt = getNodesetCount("/root/main/getbloodinfo/blod/getprepbloodlist"); //준비혈액내역의 노드 갯수
- var redCnt = 0;
- var returnValue = "";
- var yesMsg = "";
- var noMsg = "";
- var prepPid = "";
-
- //-------------------------------------------------------------------
- //수혈내역 그리드 클릭, 등록번호 바코드 리딩, 조회 버튼 클릭시
- //-------------------------------------------------------------------
- if(Ref == "detllist" || Ref == "bcd" || Ref == "btn" ){
- redCnt = 0;
- //준비혈액내역 그리드에 준비완료 버튼 누르지 않은 혈액 존재 여부
- for(iNo = 1; iNo <= prepCnt; iNo++){
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist[" +iNo+"]/pno") == ""){
- redCnt++;
- }
- }
-
- //준비혈액내역 그리드에 준비완료 버튼 누르지 않은 혈액이 있다면
- //메시지창 띄워서 확인
- if(redCnt > 0){
- //Q010=초기화 하시겠습니까? retrun yes=6, no=7
- returnValue = messageBox("준비중인 혈액이 있습니다. \n준비중인 혈액을","Q010");
- }
- //-------------------------------------------------------------------
- if(returnValue == "7"){ //취소하지 않는다면 혈액준비 계속 진행
- return true;
-
- }else if(returnValue == "6" || redCnt == 0){ //준비중인 혈액이 없거나, 취소할거면 그리드 초기화
-
- model.removeNodeset("/root/main/getbloodinfo/blod/getprepbloodlist");
- grd_prepblood.refresh();
-
- return false;
- }
-
- //-------------------------------------------------------------------
- //혈액은행 처방 목록 클릭시
- //-------------------------------------------------------------------
- }else if(Ref == "prcplist"){
- redCnt = 0;
- var pidTF = false;
- var prcpPid = model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/pid");
-
- //초기화 하겠느냐는 메시지 띄울때 아니오 누르면 이전 선택했던 row로 돌아가기 위해.
- var tnsreqacptno = model.getValue("/root/main/blod/getprepbloodlist["+prepCnt+"]/tnsreqacptno");
- var rowNum = grd_prcplist.findRow(tnsreqacptno, 1, grd_prcplist.colRef("tnsreqacptno"), false, true);
-
- for(iNo = 1; iNo <= prepCnt; iNo++){
-
- prepPid = model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+iNo+"]/pid");
-
- //준비중인 혈액내역의 환자와 선택한 환자가 같은 환자인지 체크
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist[" +iNo+"]/pno") == ""){
- if(prcpPid != prepPid){
- redCnt++;
- }else if(prcpPid == prepPid){
- pidTF = true;
- }
- }
-
- }//end for
-
- //같은환자가 아니라면
- if(redCnt > 0){
- //Q010=초기화 하시겠습니까? retrun yes=6, no=7
- returnValue = messageBox("준비중인 환자와 다른 환자입니다. \n준비중인 혈액을","Q010");
- }
- //-------------------------------------------------------------------
- //if(returnValue == "7" || prcpPid == prepPid){ //no 이거나 같은환자이면 혈액준비 계속 진행
- if(returnValue == "7" || pidTF){ //no 이거나 같은환자이면 혈액준비 계속 진행
- //초기화 하겠느냐는 메시지 띄울때 아니오 누르면 이전 선택했던 row로 돌아가기 위해.
- grd_prcplist.row = rowNum;
- return true;
-
- }else if(returnValue == "6" || redCnt == 0 ){ //yes 이거나 준비중인것이 없으면 초기화
-
- model.removeNodeset("/root/main/getbloodinfo/blod/getprepbloodlist");
- grd_prepblood.refresh();
- return false;
-
- }
- }//end if
-
- }
- // 혈액은행 처방 목록에서 선택시
- // 혈액 상세 내역 조회, 환자정보 조회
- function fGetBloodInfo(Ref, txt){
-
- if(Ref != ""){
- model.setValue("/root/send/send", txt);
- model.setValue("/root/send/pid", Ref);
- model.setValue("/root/send/fromdd", model.getValue("/root/hidden2/ref/reffromdd"));
- model.setValue("/root/send/todd", model.getValue("/root/hidden2/ref/reftodd"));
- model.setValue("/root/send/fromtm", model.getValue("/root/hidden2/ref/reffromtm"));
- model.setValue("/root/send/totm", model.getValue("/root/hidden2/ref/reftotm"));
-
- var iryn = "";
-
- // 처방리스트에서 선택시 성분제제코드 보내기
- if(txt == "Select"){
- model.setValue("/root/send/blodcomcd", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/blodcomcd"));
- model.setValue("/root/send/tnsreqacptno", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/tnsreqacptno")); //수혈접수번호
- model.setValue("/root/send/aborh", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/abo"));
- model.setValue("/root/send/blodbarcd", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/blodbarcd"));
- model.setValue("/root/send/abrnblodyn", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/abrnblodyn")); //이형혈액여부
-
- model.setValue("/root/hidden2/ref/pid", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/pid"));
- ipt_pid.refresh();
- model.makeValue("/root/send/prcphopedd", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/prcphopedd").substr(0,8));
- if(model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/iryn") =="Y"){
- iryn = "Y";
- }else{
- iryn = "N";
- }
- model.makeValue("/root/send/iryn", iryn);
- //조회버튼클릭시
- }else if(txt == "Auto"){
- model.setValue("/root/send/blodcomcd", model.getValue("/root/main/getblodprcplist[1]/blodcomcd"));
- model.setValue("/root/send/tnsreqacptno", model.getValue("/root/main/getblodprcplist[1]/tnsreqacptno")); //수혈접수번호
- model.setValue("/root/send/aborh", model.getValue("/root/main/getblodprcplist[1]/abo"));
- model.setValue("/root/send/blodbarcd", model.getValue("/root/main/getblodprcplist[1]/blodbarcd"));
- model.setValue("/root/send/abrnblodyn", model.getValue("/root/main/getblodprcplist[1]/abrnblodyn")); //이형혈액여부
-
- model.setValue("/root/hidden2/ref/pid", Ref);
- model.makeValue("/root/send/prcphopedd", model.getValue("/root/main/getblodprcplist[1]/prcphopedd").substr(0,8));
- if(model.getValue("/root/main/getblodprcplist[1]/iryn") =="Y"){
- iryn = "Y";
- }else{
- iryn = "N";
- }
- model.makeValue("/root/send/iryn", iryn);
-
- }else if(txt == "bcd"){
- model.setValue("/root/send/blodcomcd", model.getValue("/root/main/getblodprcplist[1]/blodcomcd"));
- model.setValue("/root/send/tnsreqacptno", model.getValue("/root/main/getblodprcplist[1]/tnsreqacptno")); //수혈접수번호
- model.setValue("/root/send/aborh", model.getValue("/root/main/getblodprcplist[1]/abo"));
- model.setValue("/root/send/blodbarcd", model.getValue("/root/main/getblodprcplist[1]/blodbarcd"));
- model.setValue("/root/send/abrnblodyn", model.getValue("/root/main/getblodprcplist[1]/abrnblodyn")); //이형혈액여부
- model.makeValue("/root/send/prcphopedd", model.getValue("/root/main/getblodprcplist[1]/prcphopedd").substr(0,8));
- if(model.getValue("/root/main/getblodprcplist[1]/iryn") =="Y"){
- iryn = "Y";
- }else{
- iryn = "N";
- }
- model.makeValue("/root/send/iryn", iryn);
- }
- }else{
- // 안써요
- model.setValue("/root/send/pid", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/pid")); // 등록번호
- model.setValue("/root/send/tnsreqacptno", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/tnsreqacptno")); //수혈접수번호
- }
-
-
- //--------------------------------------------------------------------
- // 처방리스트 있을시 탑정보 조회.
- if(grd_prcplist.rows >1){
- if(getPatientInfo("pid") != model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/pid")){
- fGetTopInfo();
- }
- }
-
- //--------------------------------------------------------------------
- // 혈액 상세내역, 환자정보, 혈액정보, 혈액성분 조회
- //submit("TRLBT10202"); // 지우지마세요
- model.setValue("/root/send/prcpgenrflag", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/prcpgenrflag"));
- submit("TRLBT10602");
-
- //===========================================================================
- //AST 1달 이내에 접수, 결과 내역이 없으면 메시지(입원은 입원 기간내에)
- //===========================================================================
- if(model.getValue("/root/main/getbloodinfo/getASTRsltYN/astrsltyn") == "N"){
- messageBox("AST 접수 및 결과가 없습니다.", "I");
- }
-
- var aborh = model.getValue("/root/main/getbloodinfo/getpatinfo/aborh").substring(0,1);
-
- var abrnblodyn = model.getValue("/root/main/getbloodinfo/getpatinfo/abrnblodyn"); //이형혈액여부
- var aborhValue = model.getValue("/root/main/getbloodinfo/getpatinfo/aborh");
- var aborhLen = aborhValue.length;
-
- var ecnt = getNodesetCount("/root/main/getbloodinfo/blod/getprepbloodlist");
- model.makeValue("/root/hidden/endcnt", ecnt);
-
- //이형혈액인경우
- if(abrnblodyn == "Y"){
-
- if(aborhLen > 3){
- opt_abo.attribute("font-size") = 20;
- opt_abo.attribute("color") = "red";
- }else{
- opt_abo.attribute("font-size") = 40;
- opt_abo.attribute("color") = "red";
- }
-
- }else{
- if(aborh=="A"){
- opt_abo.attribute("font-size") = 48;
- if(model.getValue("/root/main/getbloodinfo/getpatinfo/aborh").substring(0,2)=="AB"){
-
- opt_abo.attribute("class") = "font_ab";
- }else{
- opt_abo.attribute("class") = "font_a";
- }
- }else if(aborh=="B"){
- opt_abo.attribute("font-size") = 48;
- opt_abo.attribute("class") = "font_b";
- }else if(aborh=="O"){
- opt_abo.attribute("font-size") = 48;
- opt_abo.attribute("class") = "font_o";
- }else{
- // 기타 혈액형
- opt_abo.attribute("font-size") = 28;
- opt_abo.attribute("class") = "font_b";
-
- }
- }
-
- // 최근결과내역 표시
- fGetBlodRslt(txt);
-
-
- //grd_prepblood.rebuildStyle(1,2,(grd_prepblood.rows-1),8);
-
- //준비혈액내역
- for(i=1; i<grd_prepblood.rows ; i++){
-
-
- if((model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/cmrslt")=="-") || (model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/cmrslt")=="")){
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rslt", "5");
- //model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/rsltlist", "▦ ▦ ▦ ▦ ▦ ▦ "); // 이거 없애면 에러나요 2byte 공백임 조심하셈
- grd_prepblood.cellStyle("font-weight", i, 2, i, 8) = "bold";
- grd_prepblood.cellStyle("font-size", i, 2, i, 8) = 14;
- }else if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/cmrslt")=="6"){ // 보류, 적합(응급) 은 결과수정할수 있어야함
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rslt", "6");
- //model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/rsltlist", "▦ ▦ ▦ ▦ ▦ ▦ "); // 이거 없애면 에러나요 2byte 공백임 조심하셈
- grd_prepblood.cellStyle("color", i, 2, i, 8) = "#aaaaaa";
- grd_prepblood.cellStyle("font-weight", i, 2, i, 8) = "normal";
- grd_prepblood.cellStyle("font-size", i, 2, i, 8) = 12;
- grd_prepblood.isReadOnly(i, 8) = false;
- }else if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/cmrslt")=="3"){
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rslt", "3");
- //model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/rsltlist", "▦ ▦ ▦ ▦ ▦ ▦ "); // 이거 없애면 에러나요 2byte 공백임 조심하셈
- grd_prepblood.cellStyle("color", i, 2, i, 8) = "#aaaaaa";
- grd_prepblood.cellStyle("font-weight", i, 2, i, 8) = "normal";
- grd_prepblood.cellStyle("font-size", i, 2, i, 8) = 12;
- grd_prepblood.isReadOnly(i, 8) = false;
- }else{
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rslt", model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/cmrslt"));
- grd_prepblood.cellStyle("color", i, 2, i, 8) = "#aaaaaa";
- grd_prepblood.cellStyle("font-weight", i, 2, i, 8) = "normal";
- grd_prepblood.cellStyle("font-size", i, 2, i, 8) = 12;
- grd_prepblood.isReadOnly(i, 8) = true;
- }
-
- model.makeValue("/root/hidden/cmrslt", "");
-
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodstat") =="3" ){ // 준비
- grd_prepblood.cellStyle("color", i, 1, i, 15) = "#0000EE"; // 파랑
- }else if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodstat") =="5" ){ // CM완료
- grd_prepblood.cellStyle("color", i, 1, i, 15) = "#FF00FF"; // 분홍
- }else if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodstat") =="6" ){ // 불출
- grd_prepblood.cellStyle("color", i, 1, i, 15) = "#EE0000"; // 빨강
- }
- }
-
- // 준비혈액내역 상태 표시
- if(grd_prepblood.rows > 1){
- setRowStyle("grd_prepblood", "1", "3", "blodstat", "equal"); // 혈액상태 준비일때 노란색
- setRowStyle("grd_prepblood", "11","4", "blodstat", "equal"); // 혈액상태 CM일때 연두색
- setRowStyle("grd_prepblood", "3", "5", "blodstat", "equal"); // 혈액상태 불출대기일때 녹색
- }
- var sss= grd_prepblood.rowStatus(1);
-
- // 보관검체, 재고수량 setting *** start
- model.setValue("/root/hidden2/keepnoblodcnt/bno", model.getValue("/root/main/getbloodinfo/getKeepnoBlodcnt/bno"));
- model.setValue("/root/hidden2/keepnoblodcnt/keepno", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/kabo") + model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/keepspcno"));
- //model.setValue("/root/hidden2/keepnoblodcnt/keepno", model.getValue("/root/main/getbloodinfo/getKeepnoBlodcnt/keepno"));
-
- cap_blodcnt.refresh();
- cap_keep.refresh();
- // 보관검체, 재고수량 setting *** end
-
- if(txt == "Select"){
- model.setFocus("ipt_bloodno");
- }
- }
-
-
- // 임시 최근결과
- function fGetBlodRslt(txt){
- //model.removeNodeset("/root/main/getbloodinfo/getblodinforslt");
- //grd_lastrslt.rebuild();
-
- for(i=1; i<=grd_lastrslt.cols; i++){
- grd_lastrslt.colHidden(i) = true;
- }
-
- var rsltrow = getNodesetCount("/root/main/getbloodinfo/getblodinfolist");
- var newcap = "";
-
- for(i=0; i< rsltrow; i++){
- grd_lastrslt.colHidden(i) = false;
- //newcap += "^" + model.getValue("/root/main/getbloodinfo/getblodinfolist["+(i+1)+"]/tclsnm");
- newcap += "^" + model.getValue("/root/main/getbloodinfo/getblodinfolist["+(i+1)+"]/tclsnmabbr");
-
- }
- grd_lastrslt.addRow(false);
- grd_lastrslt.addRow(false);
-
- for(i=1; i<= rsltrow; i++){
-
- //model.makeValue("/root/main/getbloodinfo/getblodinforslt/row[1]/a"+i, model.getValue("/root/main/getbloodinfo/getblodinfolist["+i+"]/rslt") + " " + model.getValue("/root/main/getbloodinfo/getblodinfolist["+i+"]/unit"));
- model.makeValue("/root/main/getbloodinfo/getblodinforslt/row[1]/a"+i, model.getValue("/root/main/getbloodinfo/getblodinfolist["+i+"]/rslt"));
- model.makeValue("/root/main/getbloodinfo/getblodinforslt/row[2]/a"+i, model.getValue("/root/main/getbloodinfo/getblodinfolist["+i+"]/dt"));
- grd_lastrslt.colWidth((i-1)) = 90;
-
- }
- newcap = newcap.substring(1);
- grd_lastrslt.caption = newcap;
- grd_lastrslt.rebuild();
-
- //결과값 Positive일경우 혈액준비화면 AST, C/S ID 결과 양성인 경우 환자혈액형정보 부분 글씨색 빨간색 및 팝업창 글씨 크고 굵게 빨간색
- //변경요청 12589
- for(i = 0; i < grd_lastrslt.cols ; i++){
- if(isSearchString((grd_lastrslt.valueMatrix(1, i)).toUpperCase(), "POSITIVE")){
- grd_lastrslt.cellstyle("color", 1, i) = "#ff0000";
- grd_lastrslt.cellstyle("font-weight", 1, i) = "bold";
- }else{
- grd_lastrslt.cellstyle("color", 1, i) = "#000000";
- grd_lastrslt.cellstyle("font-weight", 1, i) = "normal";
- }
- }
-
- if(txt != "Auto"){
- var strCheckTFAST = false;
- for(i=1; i<= rsltrow; i++){
- var strCheckTF = "";
- var strTestcd = model.getValue("/root/main/getbloodinfo/getblodinfolist["+i+"]/testcd");
- var strRslt = model.getValue("/root/main/getbloodinfo/getblodinfolist["+i+"]/rslt");
-
- //isSearchString(전체 문장, 찾을문장); - stringHelper.js
- //"positve" 가 들어간것은 모두 양성자 팝업 처리, toUpperCase -> 대문자로 치환
- strCheckTF = isSearchString(strRslt.toUpperCase(), "positive".toUpperCase());
-
- if(strTestcd == "LBR106" && strCheckTF == true){
- //alert("전 = >"+strCheckTFAST);
- strCheckTFAST = true;
- //alert("후 = >"+strCheckTFAST);
- messageBox("AST 검사결과 Positive입니다.", "I");
- }
-
- if(strTestcd == "LBR107" && strCheckTF == true){
- messageBox("Ab ID 검사결과 Positive입니다.", "I");
- }
-
- /* - 2009.06.02 혈액은행 요청사항으로 LBR109만 팝업창 생성.
- if(strTestcd == "LBR108" && strCheckTF == true){
- messageBox("C/S D 검사결과 Positive입니다.", "I");
- }*/
-
- if(strTestcd == "LBR109" && strCheckTF == true){
- messageBox("C/S ID 검사결과 Positive입니다.", "I");
- }
-
- }//end for
- //===========================================================================
- //AST 이전 검사결과에 Positive 여부 체크 추가 : 최근결과에 Positive 없을경우만 실행
- //===========================================================================
- var tclsnm = grd_lastrslt.caption;
- var tnm = tclsnm.split("^");
- if(tnm[0] == "AST" && strCheckTFAST == false){
- var rsltrow = getNodesetCount("/root/main/getbloodinfo/getblodinfolist");
-
- model.setValue("/root/send/tclscd", "LBR106");
- model.setValue("/root/send/pid", model.getValue("/root/main/getbloodinfo/getpatinfo/pid"));
-
- //submit("TRLBT10407"); // 지우지마세요
- submit("TRLBT10603");
-
- if(getNodesetCount("/root/main/getbloodinfo/blodrslthistory") > 0){
- var findRow = datagrid1.findRow("positive",1, 1, false, false);
- if( findRow > 0){
- messageBox("AST 이전 검사결과에 Positive 결과가 존재합니다.", "I");
- }
- }
- }
-
- //===========================================================================
- //수혈부작용여부- 2009.06.02 혈액은행 요청사항으로 수혈부작용 팝업 생성 안함.
- //===========================================================================
- /*var strTnssideeffect = model.getValue("/root/main/getbloodinfo/getpatinfo/tnssideeffect");
- if(strTnssideeffect > 0){
- messageBox("수혈부작용 환자입니다.", "I");
- }*/
-
- }
- }
-
- // 최근결과내역 표시
- function fGetBlodLastRslt(){
- model.removeNodeset("/root/main/temp3/getblodinforslt");
- model.removeNodeset("/root/main/getbloodinfo/getblodinforslt/row");
- grd_lastrslt.colHidden(0) = true;
-
- for( var i = 0; i <=grd_lastrslt.cols; i++ ) {
- grd_lastrslt.removeColumn(false);
- grd_lastrslt.colHidden(i) = true;
- }
- grd_lastrslt.rebuild();
- //submit("TRLBT10206"); // 지우지마세요
- submit("TRLBT10605");
-
- var gridCaption = model.getValue("/root/main/temp3/getblodinforslt/header/caption");
-
- if(gridCaption == ""){
- return;
- }
-
- var gridColRef = model.getValue("/root/main/temp3/getblodinforslt/header/colref");
- var gridColRefArray = gridColRef.split("^");
-
- var gridColType = model.getValue("/root/main/temp3/getblodinforslt/header/type");
- var gridColTypeArray = gridColType.split("^");
-
-
- var cnt = model.getValue("/root/main/temp3/getblodinforslt/row/cnt");
-
-
- for(var i=1; i<= cnt; i++){
-
- grd_lastrslt.addColumn("ref:" + gridColRefArray[i] + "; type:"+gridColTypeArray[i]+"; ", false);
-
- }
-
- grd_lastrslt.caption = gridCaption;
- grd_lastrslt.rebuild();
-
-
- }
-
- // 2008.07.28 김성희 수정
- // 준비 혈액 내역에 혈액내역 표시
- function fGetPrepBlodList(){
-
- //-------------------------------------------------------------------------
- //수혈내역 클릭하여 준비혈액내역 조회했을시. 준비혈액내역 클리어.
- if(model.getValue("/root/send/clickflag") == "03"){
-
- model.removeNodeset("/root/main/getbloodinfo/blod");
- model.setValue("/root/send/clickflag", "");
- grd_prepblood.refresh();
-
- }
-
- //-------------------------------------------------------------------------
- var blodno = model.getValue("/root/hidden2/ref/bloodno"); // 입력한 혈액번호
-
- var aboinfo = model.getValue("/root/main/getbloodinfo/getpatinfo/aborh"); // 환자정보 혈액형
- var prcpBlodbarcd = model.getValue("/root/main/getblodprcplist["+ grd_prcplist.row +"]/blodbarcd"); //처방리스트의 blodbarcd
-
- if(grd_com.row > 0){
- prcpBlodbarcd = model.getValue("/root/main/getbloodinfo/getbloodcom["+grd_com.row+"]/blodbarcd"); //처방리스트의 blodbarcd
- }
-
- //-------------------------------------------------------------------------
- // 혈액번호 10자리 미만은 메세지 띄우기
- if(blodno.length < 10){
-
- messageBox("정확한 혈액번호를" , "C001", ""); //정확한 혈액번호를 입력하십시오.
- model.setValue("/root/hidden2/ref/bloodno", "");
- return;
-
- }else if(blodno.length > 10){
-
- blodno = blodno.substring(0,10);
- model.setValue("/root/hidden/ref/bloodno", blodno);
- model.refresh();
- }
-
- //-------------------------------------------------------------------------
- // 혈액번호 입력한거 준비혈액내역에 있는지 검색
- var findrow = grd_prepblood.findRow(blodno, 1, 3 , true, true);
-
- if(findrow >0 ) {
-
- messageBox("이미 추가하신 혈액" , "E008", ""); //이미 추가하신 혈액입니다
- model.setValue("/root/hidden2/ref/bloodno", "");
- return;
- }
-
- model.setValue("/root/send/blodno", blodno);
- model.setValue("/root/send/blodbarcd", prcpBlodbarcd); //처방리스트의 blodbarcd
-
- //--------------------------------------
- //지정헌혈/자가혈액이 있는지 체크
- // submit("TRLBT10208"); // 지우지 마세요
- submit("TRLBT10606");
-
- var apntselfrow = getNodesetCount("/root/main/temp/getapntselfinfo");
- var apntselfyn = ""; //지정헌혈,자가헌혈 여부
- var blodbarcdA = ""; //"A" 로 시작하는 혈액바코드 여부
- var apntselfBlodbarcd = model.getValue("/root/main/temp/getapntselfinfo/blodbarcd");
- var apntDonFlag = model.getValue("/root/main/temp/getapntselfinfo/donflag");
-
- if(apntselfrow > 0 && apntDonFlag != ""){
- if(apntselfBlodbarcd.substring(0,1) == "A"){
- blodbarcdA = "Y";
- }else{
- blodbarcdA = "N";
- }
- apntselfyn = "Y";
- }else{
- apntselfyn = "N";
- blodbarcdA = "N";
- }
- model.setValue("/root/send/apntselyn", blodbarcdA);
-
- // apntselyn 화면에선 요렇게 보내고 매퍼에서 apntselfyn 요렇게 받아서 에러났음 매퍼를 수정함 2008-09-05
-
- //-------------------------------------------------------------------------
- //입력한 혈액번호의 정보 조회
- //if(submit("TRLBT10203") == true){ // 지우지마세요
- if(submit("TRLBT10607") == true){
- var imp = model.getValue("/root/hidden/prepimport");
-
- var prepdonflag = model.getValue("/root/main/temp/getprepbloodlisth/donflag"); //입력한 혈액의 헌혈구분(01:성분헌혈지정,자가,WB 02:간호지정헌혈등록), ""이면 일반혈액
- var prepblodbarcd = model.getValue("/root/main/temp/getprepbloodlisth/blodbarcd"); //입력한 혈액의 blodbarcd
- var tnsrpid = model.getValue("/root/main/temp/getprepbloodlisth/tnsrpid"); //입력한 혈액의 수혜자 id
- var prcppid = model.getValue("/root/main/getblodprcplist["+ grd_prcplist.row +"]/pid"); //선택한 처방의 환자번호
-
- // 일반 혈액준비관리
- //if(imp == "SAME"){
-
- var prepabo = model.getValue("/root/main/temp/getprepbloodlisth/abo");
- if(prepabo == ""){
- messageBox("입고된 혈액이 아닙니다.", "I"); //입고된 혈액이 아닙니다.
- return;
- }
- var blodstat = model.getValue("/root/main/temp/getprepbloodlisth/blodstat");
-
- if(blodstat == "0"){
- messageBox("삭제된 혈액입니다.", "I");
- return;
- }else if(blodstat == "3"){
- messageBox("준비된 혈액입니다.", "I");
- return;
- }else if(blodstat =="4"){
- messageBox("검사중인 혈액입니다.", "I");
- return;
- }else if(blodstat =="5"){
- messageBox("불출대기중인 혈액입니다.", "I");
- return;
- }else if(blodstat =="6"){
- messageBox("불출된 혈액입니다.", "I");
- return;
- }else if(blodstat =="7"){
- messageBox("폐기된 혈액입니다.", "I");
- return;
- }
-
- //혈액준비관리에서만 혈액형 체크 2009.01.13 김성희 수정
- if(imp == "SAME"){
- if(prepabo != aboinfo){
- messageBox("혈액형이 다릅니다.", "I"); //혈액형이 다릅니다.
- return;
- }
- }
-
- //----------------------------------------------------------------------------
- //자가,지정혈액이 입고가 된 후 처방이 나는 걸 기본 전제로 처리.
-
- //지정헌혈 혈액이 입고 되어있고..준비 한 혈액이 일반혈액(prepdonflag == "")인 경우
- if(apntselfyn == "Y" && prepdonflag == ""){
- messageBox("자가,지정헌혈혈액이 아닙니다.", "I");
- return;
- }
- //자가 혈액이 입고 되어있고..준비 한 혈액이 일반혈액(prepdonflag == "")인 경우
- //if(apntselfyn == "Y" && prepdonflag == ""){
- // messageBox("자가헌혈혈액이 아닙니다.", "I");
- // return;
- //}
- //자가,지정 혈액이 입고 되어있고..준비 한 혈액이 자가,지정헌혈이고, 수혜자가 일치 하지 않을때..
- if(apntselfyn == "Y" && prepdonflag != "" && tnsrpid != prcppid){
- messageBox("수혜자가 일치하지 않습니다.", "I");
- return;
- }
- //자가,지정 혈액이 입고 되어있고...준비 한 혈액이 자가,지정헌혈이고, 처방과 준비한 혈액이 일치 하지 않으면 준비 안함.
- if(apntselfyn == "Y" && prepdonflag != ""){
- if(prcpBlodbarcd.substring(0,1) == "A"){
- if(prcpBlodbarcd != prepblodbarcd){
- messageBox("혈액 성분이 일치하지 않습니다.", "I");
- return;
- }
- }else{
- if(prcpBlodbarcd.substring(0,4) != prepblodbarcd.substring(0,4)){
- messageBox("혈액 성분이 일치하지 않습니다.", "I");
- return;
- }
- }
-
- }
-
-
- //}// 이형 혈액준비관리
- //else if(imp == "DIFF"){
- //
- //}
-
- //-------------------------------------------------------------------------
- //유효일시 체크
- var toddtm = getCurrentDate() + getCurrentTime();
-
- if(model.getValue("/root/main/temp/getprepbloodlisth/validt") < toddtm){
- messageBox("유효일시가 지난 혈액 ", "E008",""); // 입니다.
- return;
- }
-
-
- //-------------------------------------------------------------------------
- // 처방 혈액바코드, 준비혈액 혈액바코드 비교
- var bbarcd = model.getValue("/root/main/temp/getprepbloodlisth/blodbarcd"); // 현재입력한 혈액정보
- //var bbarcd2 = model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/blodbarcd");
- var bbarcd2 = model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/blodbarcd"); // 처방에서 선택한거
- if(grd_com.row> 0 ){
- bbarcd2 = model.getValue("/root/main/getbloodinfo/getbloodcom["+grd_com.row+"]/blodbarcd"); // 혈액성분에서 선택한 성분제제
- }
- var prepCnt = 0;
-
- //지정,자가헌혈이 아닌경우 용량 변경 처리 , 지정,자가헌혈인 경우 용량변경 안됨.
- //if((prepdonflag == "" && bbarcd2.substring(0,4) == bbarcd.substr(0,4)) || (prepdonflag != "" && bbarcd2 == bbarcd)){
-
- ////"A"로 시작하는 혈액바코드가 아닌경우만 용량변경 가능 2009.06.29 김성희 수정
- if(bbarcd.substring(0,1) != "A" &&bbarcd2.substring(0,4) == bbarcd.substr(0,4)){
-
- var seqqnt = model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/no");
-
- var tnsreqacptno1 = model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/tnsreqacptno");
- var blodbarcd1 = model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/blodbarcd");
- var iryn1 = model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/iryn");
- var tnsreqacptno2 = "";
- var blodbarcd2 = "";
- var blodbarcd3 = "";
- var blodbarcd4 = "";
- var iryn2 = "";
-
-
-
- //----------------------------------------------------
- for(iCnt = 1; iCnt <= grd_prepblood.rows; iCnt++){
- tnsreqacptno2 = model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+iCnt+"]/tnsreqacptno");
- blodbarcd2 = model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+iCnt+"]/blodbarcd");
- iryn2 = model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+iCnt+"]/iryn");
-
- blodbarcd3 = blodbarcd1.substring(0,4); //용량변경
- blodbarcd4 = blodbarcd2.substring(0,4); //용량변경
-
- //선택한 처방목록의 수혈접수일련번호,성분제제, irr 과 준비혈액내역 수혈접수일련번호, 성분제제, irr 이 같으면 prepCnt++
- if(tnsreqacptno1 == tnsreqacptno2
- && ((blodbarcd3 == blodbarcd4 && blodbarcd3.substring(0,1) != "A" && blodbarcd4.substring(0,1) != "A") ||
- (blodbarcd1 == blodbarcd2 && blodbarcd1.substring(0,1) == "A" && blodbarcd2.substring(0,1) == "A"))
- && iryn1 == iryn2){
- prepCnt++;
- }
- }
-
- //------------------------------------------------------
- //선택한 처방목록의 수혈접수일련번호의 남은 수량과
- //준비혈액내역 수혈접수일련번호 준비수량이 같으면 더이상 준비 못함.
- if(seqqnt == prepCnt){
- messageBox("처방된 수량만 준비하십시오.", "I"); //처방된 수량만 준비하십시오
- return;
- }
- }else if(bbarcd.substring(0,1) == "A" && bbarcd2 != bbarcd){
- messageBox("혈액 성분이 " , "E004", ""); //혈액 성분이 일치하지 않습니다.
- return;
- } // 변경후
- grd_prepblood.addRow();
-
-
- if(grd_com.row> 0){ // 혈액성분 클릭시 혈액성분에서 가져오기
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/tnsreqacptno" ,model.getValue("/root/main/getbloodinfo/getbloodcom["+grd_com.row+"]/tnsreqacptno"));
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/prcpblodbarcd" ,model.getValue("/root/main/getbloodinfo/getbloodcom["+grd_com.row+"]/blodbarcd")); //처방 혈액바코드
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/prcpblodcomcd" ,model.getValue("/root/main/getbloodinfo/getbloodcom["+grd_com.row+"]/blodcomcd")); //처방 코드
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/iryn" ,model.getValue("/root/main/getbloodinfo/getbloodcom["+grd_com.row+"]/iryn"));
-
- }else{ // 혈액성분 없을때 처방데이터 가져오기
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/tnsreqacptno" ,model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/tnsreqacptno"));
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/prcpblodbarcd" ,model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/blodbarcd")); //처방 혈액바코드
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/prcpblodcomcd" ,model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/blodcomcd")); //처방 코드
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/iryn" ,model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/iryn"));
-
- }
-
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/chk" ,"Y");
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/pid" ,model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/pid"));
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/blodno" ,model.getValue("/root/main/temp/getprepbloodlisth/blodno"));
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/blodcomnm" ,model.getValue("/root/main/temp/getprepbloodlisth/blodcomnm"));
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/abo" ,model.getValue("/root/main/temp/getprepbloodlisth/abo"));
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/blodcomcd" ,model.getValue("/root/main/temp/getprepbloodlisth/blodcomcd"));
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/blodbarcd" ,model.getValue("/root/main/temp/getprepbloodlisth/blodbarcd"));
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/blodstat" ,model.getValue("/root/main/temp/getprepbloodlisth/blodstat"));
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/blodcmt" ,model.getValue("/root/main/temp/getprepbloodlisth/blodcmt"));
- //grd_prepblood.gridToInstance();
- }
-
- grd_prepblood.row = (grd_prepblood.rows-1);
-
- var gridRow = grd_prepblood.rows; //===
- grd_prepblood.topRow = gridRow;
-
- }// end of fGetPrepBlodList()
-
-
- // 준비 혈액 내역에 혈액내역 표시
- function fGetPrepBlodList_backup(){
-
- var blodno = model.getValue("/root/hidden2/ref/bloodno"); // 입력한 혈액번호
-
- var aboinfo = model.getValue("/root/main/getbloodinfo/getpatinfo/aborh"); // 환자정보 혈액형
-
- // 혈액번호 10자리 미만은 메세지 띄우기
- if(blodno.length < 10){
-
- messageBox("정확한 혈액번호를" , "C001", ""); //정확한 혈액번호를 입력하십시오.
- model.setValue("/root/hidden2/ref/bloodno", "");
- //ipt_bloodno.refresh();
- //model.setFocus("ipt_bloodno");
- return;
-
- }else if(blodno.length > 10){
-
- blodno = blodno.substring(0,10);
- model.setValue("/root/hidden/ref/bloodno", blodno);
- model.refresh();
- }
-
- //수혈내역 클릭하여 준비혈액내역 조회했을시.
- //준비혈액내역 클리어.
-
- if(model.getValue("/root/send/clickflag") == "03"){
-
- model.removeNodeset("/root/main/getbloodinfo/blod");
- model.setValue("/root/send/clickflag", "");
- grd_prepblood.refresh();
-
- }
-
- var findrow = grd_prepblood.findRow(blodno, 1, 3 , true, true); // 혈액번호 입력한거 준비혈액내역에 있는지 검색
-
- if(findrow >0 ) {
-
- messageBox("이미 추가하신 혈액" , "E008", ""); //이미 추가하신 혈액입니다
- model.setValue("/root/hidden2/ref/bloodno", "");
- return;
- }
-
- model.setValue("/root/send/blodno", blodno);
- model.setValue("/root/send/blodbarcd", model.getValue("/root/main/getblodprcplist["+ grd_prcplist.row +"]/blodbarcd")); //==
-
- // if(submit("TRLBT10203") == true){ // 지우지마세요
- if(submit("TRLBT10607") == true){
- var imp = model.getValue("/root/hidden/prepimport");
-
- // 일반 혈액준비관리
- if(imp == "SAME"){
-
- var prepabo = model.getValue("/root/main/temp/getprepbloodlisth/abo");
- if(prepabo == ""){
- messageBox("입고된 혈액이 아닙니다.", "I"); //입고된 혈액이 아닙니다.
- return;
- }
- var blodstat = model.getValue("/root/main/temp/getprepbloodlisth/blodstat");
-
- if(blodstat == "0"){
- messageBox("삭제된 혈액입니다.", "I");
- return;
- }else if(blodstat == "3"){
- messageBox("준비된 혈액입니다.", "I");
- return;
- }else if(blodstat =="4"){
- messageBox("검사중인 혈액입니다.", "I");
- return;
- }else if(blodstat =="5"){
- messageBox("불출대기중인 혈액입니다.", "I");
- return;
- }else if(blodstat =="6"){
- messageBox("불출된 혈액입니다.", "I");
- return;
- }else if(blodstat =="7"){
- messageBox("폐기된 혈액입니다.", "I");
- return;
- }
-
- if(prepabo != aboinfo){
- messageBox("혈액형이 다릅니다.", "I"); //혈액형이 다릅니다.
- return;
- }
-
-
- }// 이형 혈액준비관리
- else if(imp == "DIFF"){
-
- }
-
- var toddtm = getCurrentDate() + getCurrentTime();
-
- if(model.getValue("/root/main/temp/getprepbloodlisth/validt") < toddtm){
- messageBox("유효일시가 지난 혈액 ", "E008",""); // 입니다.
- return;
- }
-
-
- // 처방 성분제제 준비혈액 성분제제 비교
- var bbarcd = model.getValue("/root/main/temp/getprepbloodlisth/blodbarcd");
- var bbarcd2 = model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/blodbarcd");
-
- if(bbarcd2.substring(0,4) == bbarcd.substr(0,4)){
- var seqqnt = model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/h");
-
- if(seqqnt < grd_prepblood.rows){
- messageBox("처방된 수량만 준비하십시오.", "I"); //처방된 수량만 준비하십시오
- return;
- }
- }else{
- messageBox("혈액 성분이 " , "E004", ""); //혈액 성분이 일치하지 않습니다.
- return;
- } // 변경후
-
- grd_prepblood.addRow(false);
-
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/blodno", model.getValue("/root/main/temp/getprepbloodlisth/blodno"));
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/blodcomnm", model.getValue("/root/main/temp/getprepbloodlisth/blodcomnm"));
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/abo", model.getValue("/root/main/temp/getprepbloodlisth/abo"));
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/iryn", model.getValue("/root/main/temp/getprepbloodlisth/iryn"));
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/blodcomcd", model.getValue("/root/main/temp/getprepbloodlisth/blodcomcd"));
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/blodbarcd", model.getValue("/root/main/temp/getprepbloodlisth/blodbarcd"));
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/blodstat", model.getValue("/root/main/temp/getprepbloodlisth/blodstat"));
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+(grd_prepblood.rows-1)+"]/blodcmt", model.getValue("/root/main/temp/getprepbloodlisth/blodcmt"));
-
-
- }
- grd_prepblood.row = (grd_prepblood.rows-1);
-
- var gridRow = grd_prepblood.rows; //===
- grd_prepblood.topRow = gridRow;
-
- }// end of fGetPrepBlodList()
-
- // 환자별 comment 행추가
- function fSetCmtAdd(){
- grd_comment.addRow();
- grd_comment.rowStatus(0) = 1;
- }
-
- // comment 삭제 - 바로삭제 이력관리 안함
- function fCmtDel(){
- //grd_comment.deleteRow(grd_comment.row);
- grd_comment.rowStatus(grd_comment.row) = 4;
-
- var cmt = grd_comment.getUpdateData();
- var pid = model.getValue("/root/main/getbloodinfo/getpatinfo/pid");
- model.setValue("/root/send/pid", pid);
- model.setValue("/root/send/cmt", cmt);
-
- // submit("TXLBT10303"); // 지우지마세요
- submit("TXLBT10603");
-
- fGetBloodInfo(pid, "Select");
- }
-
- // comment 저장
- function fCmtSave(){
- var cmt = grd_comment.getUpdateData();
- var pid = model.getValue("/root/main/getbloodinfo/getpatinfo/pid");
- model.setValue("/root/send/pid", pid);
- model.setValue("/root/send/cmt", cmt);
-
- // submit("TXLBT10303"); // 지우지마세요
- submit("TXLBT10603");
-
- fGetBloodInfo(pid, "Select");
-
- }
-
- /****************************************************************************************
- * 수혈내역 "클릭시" 준비혈액 내역 조회
- * 2008.07.08 김성희
- * 1. 처방리스트가 없어도 환자 등록번호 입력하여 조회시엔
- * 그 환자의 기존 수혈내역 존재시 수혈내역을 클릭하여 조회한다.
- *****************************************************************************************/
- function fGetPrepBlodSpec(){
-
- //var comcd = "";
- //var blodbarcd = "";
- //var pid = "";
- //var acptno = "";
- //var prcphopedd = "";
-
- var blodbarcd = model.getValue("/root/main/getbloodinfo/getblooddetllist["+grd_detllist.row+"]/blodbarcd");
- var blodcomcd = model.getValue("/root/main/getbloodinfo/getblooddetllist["+grd_detllist.row+"]/blodcomcd");
- var pid = model.getValue("/root/hidden2/ref/pid");
- //var pid = model.getValue("/root/main/getbloodinfo/getpatinfo/pid");
- var prcphopedd = model.getValue("/root/main/getbloodinfo/getblooddetllist["+grd_detllist.row+"]/prcphopedd");
- var iryn = model.getValue("/root/main/getbloodinfo/getblooddetllist["+grd_detllist.row+"]/iryn");
- var tnsreqacptno = model.getValue("/root/main/getbloodinfo/getblooddetllist["+grd_detllist.row+"]/tnsreqacptno");
-
- if(iryn == ""){
- iryn = "N";
- }
-
- model.setValue("/root/send/blodbarcd" ,blodbarcd);
- model.setValue("/root/send/blodcomcd" ,blodcomcd);
- model.setValue("/root/send/pid" ,pid);
- model.setValue("/root/send/prcphopedd" ,prcphopedd);
- model.setValue("/root/send/clickflag" ,"03");
- model.setValue("/root/send/iryn" ,iryn);
- model.setValue("/root/send/tnsreqacptno" ,tnsreqacptno);
-
- //submit("TRLBT10205"); // 지우지마세요
- submit("TRLBT10604");
-
- copyNodeType("/root/main/getbloodinfo/blod", "/root/main/temp2", "replace");
-
- grd_prepblood.refresh();
-
- grd_prepblood.rebuildStyle();
-
- // 이미 준비된 혈액 체크박스 비활성화
- for(i=1; i< grd_prepblood.rows; i++){
- //alert(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodno"));
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodstat") > 3 ){
- /*if((model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rslt") == "3") || (model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rslt") == "6")){
- grd_prepblood.isReadOnly(i, 1) = false;
- }else{
- grd_prepblood.isReadOnly(i, 1) = true;
- }*/
- //if((model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rslt") == "3") || (model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rslt") == "6") ){ // 적합(응급), 보류 는 수정할수있어야함
- if((model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodstat") =="6") && (model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rslt") == "3" )){ // 불출&적합응급 선택되야함
- grd_prepblood.isReadOnly(i, 1) = false;
- }else if((model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodstat")) =="6" && (model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rslt") == "6")){ //불출&보류 선택되야함
- grd_prepblood.isReadOnly(i, 1) = false;
- }else if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodstat") =="5"){ // 불출대기 선택되야함
- grd_prepblood.isReadOnly(i, 1) = false;
- }else{ //
- grd_prepblood.isReadOnly(i, 1) = true;
- }
- }else{
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/cmrslt") == "-" || model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/cmrslt") == ""){
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rslt", "5");
- }
- grd_prepblood.isReadOnly(i, 1) = false;
- }
-
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodstat") =="3" ){ // 준비
- grd_prepblood.cellStyle("color", i, 1, i, 15) = "#0000EE"; // 파랑
- }else if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodstat") =="5" ){ // CM완료
- grd_prepblood.cellStyle("color", i, 1, i, 15) = "#FF00FF"; // 분홍
- }else if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodstat") =="6" ){ // 불출
- grd_prepblood.cellStyle("color", i, 1, i, 15) = "#EE0000"; // 빨강
- }
-
- }
-
- if(grd_prepblood.rows > 1){
- setRowStyle("grd_prepblood", "1", "3", "blodstat", "equal"); // 혈액상태 준비일때 노란색
- setRowStyle("grd_prepblood", "11","4", "blodstat", "equal"); // 혈액상태 CM일때 연두색
- setRowStyle("grd_prepblood", "3", "5", "blodstat", "equal"); // 혈액상태 불출대기일때 녹색
- setRowStyle("grd_prepblood", "0", "6", "blodstat", "equal"); // 혈액상태 불출일때 붉은색
-
- }
-
-
-
- grd_prepblood.row = (grd_prepblood.rows-1);
- var gridRow = grd_prepblood.rows;
- grd_prepblood.topRow = gridRow;
-
- grd_prepblood.refresh();
-
- }
-
- // 장현식 선생님이 혈액성분 클릭시엔 필요없다고 하셨음. 삭제예정
- // 혈액성분 클릭하면 준비혈액내역 조회- param : "01","02" -
- // 수혈내역 클릭하면 준비혈액내역 조회- param : "03"
- function fGetPrepBloodCom(r, param){
-
- //r ==1 조회버튼 클릭 또는 처방목록 그리드 클릭시
- if (r == 1){
- grd_com.row= 1;
- }
-
- var comcd = "";
- var blodbarcd = "";
- var pid = "";
- var acptno = "";
- var prcphopedd = "";
-
- //param 에 따라 준비혈액내역 조회 되는 조건이 다르다.
- //01,02 ==> blodcomstat = '2' (준비상태) , 03 ==> bloodcomstat IN ('4','5') (불출대기, 혈액불출)
- if(param == "01" || param == "02"){ //조회버튼 클릭, 처방목록 그리드 클릭, 혈액성분 그리드 클릭
- comcd = model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/blodcomcd");
- pid = model.getValue("/root/main/getbloodinfo/getpatinfo/pid");
- acptno = model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/tnsreqacptno");
-
- model.setValue("/root/send/blodcomcd", comcd);
- model.setValue("/root/send/pid", pid);
- model.setValue("/root/send/tnsreqacptno", acptno);
- model.setValue("/root/send/clickflag", param);
-
- }else if(param == "03"){ //수혈내역클릭
-
- blodbarcd = model.getValue("/root/main/getbloodinfo/getblooddetllist["+grd_detllist.row+"]/blodbarcd");
- pid = model.getValue("/root/main/getbloodinfo/getpatinfo/pid");
- prcphopedd = model.getValue("/root/main/getbloodinfo/getblooddetllist["+grd_detllist.row+"]/prcphopedd");
-
- model.setValue("/root/send/blodbarcd", blodbarcd);
- model.setValue("/root/send/pid", pid);
- model.setValue("/root/send/prcphopedd", prcphopedd);
- model.setValue("/root/send/clickflag", param);
-
- }
-
- // submit("TRLBT10205"); //지우지마세요
- submit("TRLBT10604");
-
- copyNodeType("/root/main/getbloodinfo/blod", "/root/main/temp2", "replace");
-
- grd_prepblood.refresh();
-
- // 이미 준비된 혈액 체크박스 비활성화
- for(i=0; i< grd_prepblood.rows; i++){
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodstat") > 3 ){
- if((model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rslt") == "3") && (model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rslt") == "6") ){
- grd_prepblood.isReadOnly(i, 1) = false;
- }else{
- grd_prepblood.isReadOnly(i, 1) = true;
- }
- }else{
- grd_prepblood.isReadOnly(i, 1) = false;
- }
- }
-
- grd_prepblood.row =
- (grd_prepblood.rows-1);
- var gridRow = grd_prepblood.rows;
- grd_prepblood.topRow = gridRow;
-
- }
- /************************************
- // 수혈내역 클릭하면 준비혈액내역에
- // 선택한 처방일자의 혈액성분별 준비혈액내역을 조회
- // 만약 준비중인 혈액이 있는데 준비완료 하지않고 수혈 내역을 클릭했을때..
- // 메시지 출력
- // 2008-07-18 김성희
- ************************************/
- function fGetPrepBloodDetllist(row){
-
- var prepTF = fPrepBlodYN("detllist");
-
- if(prepTF){
- return;
- }else if(!prepTF){
- //준비혈액내역조회
- fGetPrepBlodSpec();
- }
-
- }
-
- /************************************
- // 처방내역 클릭시
- // 준비중인 혈액 내역이 있고, 선택한 환자 번호와 준비중인 환자 번호가 다를때
- // 메시지 출력
- // 2008-07-29 김성희
- ************************************/
- function fGetPrcpList(){
-
- var pid = "";
- var keepspcno = model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/keepspcno");
- var pida = model.getValue("/root/hidden2/ref/pid").getTrim();
- if(pida == ""){
- pid = model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/pid");
- }else{
- pid = pida;
- }
-
- //준비중인 혈액이 있는지 체크
- var prepTF = fPrepBlodYN("prcplist");
-
- if(prepTF){
- return;
- }else if(!prepTF){
- // 혈액정보조회
- fGetBloodInfo(pid, "Select");
- }
-
- //선택한 처방이 WB일때 자가혈액 있는 경우 팝업창
- if(model.getValue("/root/main/getblodprcplist["+ grd_prcplist.row +"]/wbcnt") > 0){
- messageBox("자가혈액이 있습니다.","I");
- }
-
- //2009.07.29 수정 변경요청번호 1951
- if(keepspcno.getTrim()== ""){
- messageBox("보관검체가 없습니다.", "I");
- }
-
- // 박정은 변경요청번호 9948 우선순위 SY
- if(model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/jjno") != ""){
- messageBox("지정헌혈 정보가 있습니다. \n" + model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/jjno"), "I");
- }
- }
-
- // 혈액정보 결과값 더블 클릭시 검사항목 결과 히스토리 보여주기
- function fGetBlodInfoHistory(){
- //grp_history.visible = true;
-
- var rsltrow = getNodesetCount("/root/main/getbloodinfo/getblodinfolist");
-
- var tclsnm = grd_lastrslt.caption;
- var tnm = tclsnm.split("^");
-
- for(i=0; i< rsltrow; i++){
-
- if(grd_lastrslt.col == i){
- if(tnm[i] == model.getValue("/root/main/getbloodinfo/getblodinfolist["+(i+1)+"]/tclsnmabbr")){
- model.setValue("/root/send/tclscd", model.getValue("/root/main/getbloodinfo/getblodinfolist["+(i+1)+"]/testcd"));
- model.setValue("/root/send/pid", model.getValue("/root/main/getbloodinfo/getpatinfo/pid"));
-
- //submit("TRLBT10407"); // 지우지마세요
- submit("TRLBT10603");
-
- for(j = 1; j < datagrid1.rows ; j++){
-
- if(isSearchString((datagrid1.valueMatrix(j, datagrid1.colRef("rslt"))).toUpperCase(), "POSITIVE")){
- datagrid1.cellstyle("color", j, datagrid1.colRef("rslt")) = "#ff0000";
- datagrid1.cellstyle("font-weight", j, datagrid1.colRef("rslt")) = "bold";
- }else{
- datagrid1.cellstyle("color", j, datagrid1.colRef("rslt")) = "#000000";
- datagrid1.cellstyle("font-weight", j, datagrid1.colRef("rslt")) = "normal";
- }
- }
-
- grp_history.visible = true;
-
- }
- }
-
- }
- }
-
- // 프린트 설정
- function fPrintSet(){
- 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");
- }
-
- // 응급 체크시 lis.lbthtnsr erprcpflag 2로 변경
- function fSetErprcpflag(){
- var erchk = model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/erprcpflag");
- var errow = grd_prcplist.row;
-
-
- if(erchk == "Y" ){
- model.setValue("/root/send/erflag", "2");
- }else{
- model.setValue("/root/send/erflag", "0");
- }
- model.setValue("/root/send/pid", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/pid"));
- model.setValue("/root/send/tnsreqacptno", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/tnsreqacptno"));
-
- //submit("TXLBT10203"); // 지우지 마세요
- submit("TXLBT10601");
-
- fGetBloodPrcpList("btn");
-
- }
-
- // 준비취소
- function fPrepCancel(){
-
- var cancelYN = "";
- for(i=0; i<grd_prepblood.rows; i++){
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/chk")== "Y"){
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodcomstat") == "5"){
- messageBox("불출된 혈액은 취소 할 수 없습니다. 불출된 혈액을 선택해제 하십시오.", "I");
- return;
- }else if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodcomstat") == "4"){
- messageBox("불출대기인 혈액은 불출관리화면에서 취소 가능합니다. 불출대기인 혈액을 선택해제 하십시오.", "I");
- return;
- }
- cancelYN = cancelYN + i;
-
- }
- }
-
- if(cancelYN == ""){
- messageBox("취소 할 혈액을 선택하십시오.", "I");
- return;
- }
- //alert("aa= " + grd_prepblood.getUpdateData());
- model.makeValue("/root/send/canceldata", grd_prepblood.getUpdateData()); // 취소할 데이터 보내기
- model.makeValue("/root/send/cancelgbn", model.getValue("/root/hidden/cancel/cancelgbn")); // ㅁ접수취소 일때 1
-
- if(submit("TXLBT10607")){
- model.removeNodeset("/root/main/getbloodinfo/blod/getprepbloodlist");
-
- var pid = model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/pid");
- fGetBloodInfo(pid , "Auto");
- }
-
- }
-
-
- // 탑정보 위한 조회
- function fGetTopInfo(){
- model.setValue("/root/send/pid", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/pid"));
- model.setValue("/root/send/prcpdd", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/prcpdd"));
- model.setValue("/root/send/iogbn", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/prcpgenrflag"));
-
- submit("TRLZZ00107");
-
- fUpPatinfo();
- }
-
- // 탑정보
- function fUpPatinfo(){
- if(grd_prcplist.rows> 1){
- if(model.getValue("/root/init/prcpinfo/prcpdd")!=""){
- setParameter("errflag", "Y");
- setParameter("condparam", "S" + "▦" + model.getvalue("/root/init/prcpinfo/prcpdd")+ "▦"
- + model.getvalue("/root/init/prcpinfo/execprcpuniqno") + "▦"
- + model.getvalue("/root/init/prcpinfo/instcd") );
-
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
-
- var paminfo = getGlobalVariable("paminfo");
- if(paminfo.length < 1){ //상단정보가 없는 경우
- delPatientInfos(); //환자정보 전체 삭제
-
- var pid = model.getValue("/root/main/getbloodinfo/getpatinfo/pid");
- var hngnm = model.getValue("/root/main/getbloodinfo/getpatinfo/patnm");
- //상단에 올릴 수 있는 정보가 있으면 아래와 같이 설정해 주시면 됩니다. 없으면 안 해주셔도 되구요..
-
- setPatientInfo("pid" , pid); //등록번호
- setPatientInfo("pname" , pid + "|" + hngnm); //환자명
-
- }
-
- }
-
- }
-
- // 간호부전송 버튼 보이기
- function fSetNurseBtn(){
- btn_nurse2.visible = false;
-
- if(model.getValue("/root/hidden2/ref/spclblood") == "1"){
-
- btn_nurse2.visible = true;
- }
- }
-
- // 처방목록에서 준비 and 접수 취소
- function fExeAcptPrepCancel(){
-
- if(grd_prcplist.row < 1){
- messageBox("접수 취소할 처방을 선택하십시오.", "I");
- return;
- }
-
- if(model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/cstat") != "1"){
- messageBox("혈액준비된 처방이 있습니다. 준비취소후 접수취소 하십시오.", "I");
- return;
- }
-
-
- //model.setValue("/root/send/preplog", model.getValue("/root/hidden/cancel/prepLog")); // prep 로그로 남길지
- model.makeValue("/root/send/tnsreqacptno", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/tnsreqacptno"));
- model.makeValue("/root/send/pid", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/pid"));
- model.makeValue("/root/send/prcpdd", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/prcpdd"));
-
- //if(submit("TXLBT10206")==true){ // 지우지마세요
- if(submit("TXLBT10604")==true){
-
- fGetBloodPrcpList("btn");
-
- }
- }
-
- //수혈예약일시 변경 메뉴
- function fGetMouseDown(){
- model.removeNodeset("/root/hidden/popupmenu");
- model.makeNode("/root/hidden/popupmenu/grid");
- model.makeNode("/root/hidden/popupmenu/grid/item");
- var rowNum = 1;
- //외래인경우만 띄움
- if(model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/prcpgenrflag") == "O"){
- //window.setPopupMenu(true , "/root/hidden/popupmenu/grid/item" , "name", "func" , false);
- model.makeValue("/root/hidden/popupmenu/grid/item["+rowNum+"]/name" , "▶예약일시변경");
- model.makeValue("/root/hidden/popupmenu/grid/item["+rowNum+"]/func" , "fGetTnsRsrv");
- rowNum++;
- }
-
- //보관검체 재출력 기능 2009.09.23 김성희 추가 - 변경요청번호 : 3335
- model.makeValue("/root/hidden/popupmenu/grid/item["+rowNum+"]/name" , "▶보관검체 재출력");
- model.makeValue("/root/hidden/popupmenu/grid/item["+rowNum+"]/func" , "fGetKeepSpcno");
-
-
- if(grd_prcplist.isCell(event.target) && grd_prcplist.mouseRow >= grd_prcplist.fixedrows){
- window.setPopupMenu(true , "/root/hidden/popupmenu/grid/item" , "name", "func" , false);
- }else{
- window.setPopupMenu(false);
- }
-
- }
-
- //수혈예약일시 변경 그리드 보이기
- function fGetTnsRsrv(){
- var prcphopedd = model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/prcphopedd");
-
- var rsrvdd = prcphopedd.substring(0,8);
- var rsrvtm = prcphopedd.substring(8);
-
- model.setValue("/root/hidden/rsrvinfo/rsrvdd", rsrvdd);
- model.setValue("/root/hidden/rsrvinfo/rsrvtm", rsrvtm);
- grp_rsrv.visible = true;
- grp_rsrv.refresh();
- }
-
- //수혈예약일시 변경
- function fSetTnsRsrvDT(){
-
- model.setValue("/root/send/tnsrsrv/pid" , model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/pid")); //등록번호
- model.setValue("/root/send/tnsrsrv/tnsreqacptno" , model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/tnsreqacptno")); //접수번호
- model.setValue("/root/send/tnsrsrv/blodcomcd" , model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/blodcomcd")); //성분제제(처방코드)
- model.setValue("/root/send/tnsrsrv/rsrvdd" , model.getValue("/root/hidden/rsrvinfo/rsrvdd")); //예약일자
- model.setValue("/root/send/tnsrsrv/rsrvtm" , model.getValue("/root/hidden/rsrvinfo/rsrvtm")); //예약시간
-
- //if(submit("TXLBT10207")==true){ // 지우지마세요
- if(submit("TXLBT10605")==true){
- fGetBloodPrcpList("bcd");
- }
-
- grp_rsrv.visible = false;
-
- }
-
- // 준비혈액에 CM입력 버튼 클릭시
- function fExeCMRslt(){
-
- if(model.getValue("/root/hidden2/ref/testpsnid")=="" || model.getValue("/root/hidden2/ref/testpsnnm") == ""){
- messageBox("접수자를 " , "C001", ""); //접수자를 입력하십시오
- model.setFocus("ipt_testpsn");
- return;
-
- }
-
- //등록번호를 반드시 입력해야지만 입력완료 할 수 있게 수정 - 2007.10.20 장현식 선생님 요청
- if(model.getValue("/root/hidden2/ref/pid")==""){
- messageBox("등록번호를 " , "C001", ""); //등록번호를 입력하십시오
- model.setFocus("ipt_pid");
- return;
-
- }
-
- var cmRslt = "";
- var cmRsltList = "";
- var blodcmt = "";
-
- for(i=1; i<grd_prepblood.rows; i++){
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/chk")=="Y"){ // 준비혈액내역에서 선택된혈액만 CM할때
-
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodcomstat") >= "2" ){ // 준비된 혈액만 CM가능
-
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rslt")=="5"){ // 검사중
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rslt", "1"); //적합으로 바꾸고
- ////if(model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/coombsyn")=="Y"){ // Coomb's Y면 적,적,적으로
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/cs")=="Y"){ // Coomb's Y면 적,적,적으로
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rsltlist", "▦적합▦적합▦적합▦ ▦ ▦ "); //공백 꼭 넣어야함.
- }else{
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rsltlist", "▦ ▦ ▦ ▦ ▦ ▦ "); //공백 꼭 넣어야함.
- }
- }
-
- cmRslt += "▦" + model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rslt");
- cmRsltList += "★" + model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rsltlist");
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodcmt")==""){
- blodcmt += "▦" + " ";
- }else{
- blodcmt += "▦" + model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodcmt");
- }// ▦0300000001▦0300000002 ...
-
- } // blodcomstat = 2일때만 준비
-
- }// chk 체크된것만
- }
-
- if(cmRslt == ""){
- messageBox("결과저장할 혈액을 선택하십시오.", 'E');
- return;
- }
-
- model.makeValue("/root/send/pid", model.getValue("/root/hidden2/ref/pid"));
- model.makeValue("/root/send/testid", model.getValue("/root/hidden2/ref/testpsnid"));
- model.makeValue("/root/send/cmrslt", cmRslt);
- model.makeValue("/root/send/cmrsltlist", cmRsltList);
- model.makeValue("/root/send/blodcmt", blodcmt);
-
-
- model.makeValue("/root/send/cmdata", grd_prepblood.getUpdateData());
-
-
- if(submit("TXLBT10606")){
- // 처방정보 다시 조회
- //fGetBloodPrcpList("bcd");
- model.removeNodeset("/root/main/getbloodinfo/blod/getprepbloodlist");
- grd_prepblood.rebuild();
- model.setValue("/root/hidden2/ref/pid", "");
-
- fGetBloodPrcpList("btn");
- delPatientInfos();
-
- if(grd_prcplist.rows > 1){
- model.resetInstanceNode("/root/main/getbloodinfo");
- model.removeNodeset("/root/main/getbloodinfo/blod/getprepbloodlist");
- grd_prepblood.rebuild();
- }else{
- model.removeNodeset("/root/main/getbloodinfo/blod/getprepbloodlist");
- grd_prepblood.rebuild();
- }
-
- //model.reset();
- //준비완료 후 등록번호, 혈액번호 초기화 - 2007.10.20 장현식 선생님 요청
- model.setValue("/root/hidden2/ref/pid", "");
- model.setValue("/root/hidden2/ref/bloodno", "");
- model.removeNodeset("/root/main/getbloodinfo/getblooddetllist");
- grd_detllist.refresh();
-
- model.refresh();
-
- var prepimport = model.getValue("/root/hidden/prepimport");
-
- if(prepimport == "DIFF"){
- window.opener.javascript.fGetBloodPrcpList("btn");
- window.close();
- }
-
- }
-
- }
-
- // 준비혈액내역 CS 체크박스 선택하면 팝업 띄우기
- function fSetCMRslt(){
-
- if(model.getValue("/root/hidden/ref/cmend")=="1"){ // 완료된것
-
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rslt") == "3"
- || model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rslt") == "6"
- ){ // 적합(응급),보류
- //alert("11= " + model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist"));
- model.setValue("/root/hidden/cmrslt", model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist"));
-
- modal("SPLBT90100","","300","300","","/root/hidden","/root/hidden");
-
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist", model.getValue("/root/hidden/cmrslt"));
- //model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rslt", "2");
- //alert("22= " + model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist"));
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist") != "▦ ▦ ▦ ▦ ▦ ▦ "){
-
- // 적합응급 일때는 부적합으로 안바꿈
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rslt") == "3"){
-
- }else if( (model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist") != "▦적합▦적합▦적합▦ ▦ ▦ ") &&
- (model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist") != "▦적합▦ ▦ ▦ ▦ ▦ ") &&
- (model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist") != "▦-▦-▦-▦ ▦ ▦ ") &&
- (model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist") != "▦-▦ ▦ ▦ ▦ ▦ ") ){
-
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rslt", "2"); // CS에 값 넣으면 부적합으로 바꾸기
- }
- }
- }
-
- }else{ // 미완료
-
- model.setValue("/root/hidden/cmrslt", model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist"));
- model.setValue("/root/hidden/rslt", model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rslt"));
-
- modal("SPLBT90100","","300","300","","/root/hidden","/root/hidden");
-
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist", model.getValue("/root/hidden/cmrslt"));
- //model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rslt", "2");
-
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist") != "▦ ▦ ▦ ▦ ▦ ▦ "){
- // 적합응급일때는 부적합으로 안바꿈
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rslt") == "3"){
-
- //최소적합일때
- }else if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rslt") == "7"){
-
- }else if( (model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist") != "▦적합▦적합▦적합▦ ▦ ▦ ") &&
- (model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist") != "▦적합▦ ▦ ▦ ▦ ▦ ") &&
- (model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist") != "▦-▦-▦-▦ ▦ ▦ ") &&
- (model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist") != "▦-▦ ▦ ▦ ▦ ▦ ")
- ){
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rslt", "2"); // CS에 값 넣으면 부적합으로 바꾸기
- }
- }
- }
- }
-
- /************************************
- // 혈액성분 클릭하면 준비혈액내역에
- // 준비혈액내역을 조회
- // 만약 준비중인 혈액이 있는데 준비완료 하지않고 수혈 내역을 클릭했을때..
- // 메시지 출력
- // 2009-04-17 박정은
- ************************************/
- function fGetPrepBloodDetllist2(row){
-
- var prepTF = fPrepBlodYN("detllist"); // 준비혈액내역에 준비중인 혈액 있는지 체크
-
- if(prepTF){
- return;
- }else if(!prepTF){
- //준비혈액내역조회
- fGetPrepBlodSpec2();
- }
-
- }
-
- /****************************************************************************************
- * 수혈내역 "클릭시" 준비혈액 내역 조회
- * 2008.07.08 김성희
- * 1. 처방리스트가 없어도 환자 등록번호 입력하여 조회시엔
- * 그 환자의 기존 수혈내역 존재시 수혈내역을 클릭하여 조회한다.
- *****************************************************************************************/
- function fGetPrepBlodSpec2(){
-
- var pid = model.getValue("/root/hidden2/ref/pid");
- var iryn = model.getValue("/root/main/getbloodinfo/getbloodcom["+grd_com.row+"]/iryn")
- if(iryn == ""){
- iryn = "N";
- }
-
- model.setValue("/root/send/blodbarcd" ,model.getValue("/root/main/getbloodinfo/getbloodcom["+grd_com.row+"]/blodbarcd"));
- model.setValue("/root/send/blodcomcd" ,model.getValue("/root/main/getbloodinfo/getbloodcom["+grd_com.row+"]/blodcomcd"));
- model.setValue("/root/send/pid" ,model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/pid"));
- model.setValue("/root/send/prcphopedd" ,model.getValue("/root/main/getbloodinfo/getbloodcom["+grd_com.row+"]/prcphopedd"));
- model.setValue("/root/send/iryn" ,iryn);
- model.setValue("/root/send/tnsreqacptno" ,model.getValue("/root/main/getbloodinfo/getbloodcom["+grd_com.row+"]/tnsreqacptno"));
-
- //submit("TRLBT10205"); // 지우지마세요
- submit("TRLBT10604");
-
- copyNodeType("/root/main/getbloodinfo/blod", "/root/main/temp2", "replace");
-
- grd_prepblood.refresh();
-
- grd_prepblood.rebuildStyle();
-
- // 이미 준비된 혈액 체크박스 비활성화
- for(i=1; i< grd_prepblood.rows; i++){
-
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodstat") > 3 ){
- //if((model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rslt") == "3") || (model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rslt") == "6") ){ // 적합(응급), 보류 는 수정할수있어야함
- if((model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodstat") =="6") && (model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rslt") == "3" )){ // 불출&적합응급 선택되야함
- grd_prepblood.isReadOnly(i, 1) = false;
- }else if((model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodstat")) =="6" && (model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rslt") == "6")){ //불출&보류 선택되야함
- grd_prepblood.isReadOnly(i, 1) = false;
- }else if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodstat") =="5"){ // 불출대기 선택되야함
- grd_prepblood.isReadOnly(i, 1) = false;
- }else{ //
- grd_prepblood.isReadOnly(i, 1) = true;
- }
- }else{ // 준비상태 체크할수있음
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/cmrslt") == "-" || model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/cmrslt") == ""){
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/rslt", "5");
- }
- grd_prepblood.isReadOnly(i, 1) = false;
-
- }
-
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodstat") =="3" ){ // 준비
- grd_prepblood.cellStyle("color", i, 1, i, 15) = "#0000EE"; // 파랑
- }else if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodstat") =="5" ){ // CM완료
- grd_prepblood.cellStyle("color", i, 1, i, 15) = "#FF00FF"; // 분홍
- }else if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/blodstat") =="6" ){ // 불출
- grd_prepblood.cellStyle("color", i, 1, i, 15) = "#EE0000"; // 빨강
- }
-
- }
-
- if(grd_prepblood.rows > 1){
- setRowStyle("grd_prepblood", "1", "3", "blodstat", "equal"); // 혈액상태 준비일때 노란색
- setRowStyle("grd_prepblood", "11","4", "blodstat", "equal"); // 혈액상태 CM일때 연두색
- setRowStyle("grd_prepblood", "3", "5", "blodstat", "equal"); // 혈액상태 불출대기일때 녹색
- setRowStyle("grd_prepblood", "0", "6", "blodstat", "equal"); // 혈액상태 불출일때 붉은색
-
- }
-
- grd_prepblood.row = (grd_prepblood.rows-1);
- var gridRow = grd_prepblood.rows;
- grd_prepblood.topRow = gridRow;
-
- }
-
-
- // 준비혈액 내역에 적합콤보 적합 선택시 결과값 셋팅
- function fSetCMRsltFit(){
-
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rslt")=="1"){ // 적합
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/cs") == "Y"){
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist", "▦-▦-▦-▦ ▦ ▦ "); // 2byte 값 들어가있음 조심하세요
- }else{
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist")=="▦ ▦ ▦ ▦ ▦ ▦ "){ // 다른값들어있으면 안바뀌게
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist", "▦ ▦ ▦ ▦ ▦ ▦ "); // 2byte 값 들어가있음 조심하세요
- }
- }
- }else if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rslt")=="2"){ // 부적합
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist")=="▦ ▦ ▦ ▦ ▦ ▦ "){ // 다른값들어있으면 안바뀌게
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist", "▦부적합▦ ▦ ▦ ▦ ▦ ");
- }
- }else if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rslt")=="3"){ // 적합(응급)
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist")=="▦ ▦ ▦ ▦ ▦ ▦ "){ // 다른값들어있으면 안바뀌게
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist", "▦-▦ ▦ ▦ ▦ ▦ ");
- }
- }else if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rslt")=="4"){ // 준비
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist")=="▦ ▦ ▦ ▦ ▦ ▦ "){ // 다른값들어있으면 안바뀌게
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist", "▦ ▦ ▦ ▦ ▦ ▦ ");
- }
- }else if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rslt")=="5"){ // 검사중
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist")=="▦ ▦ ▦ ▦ ▦ ▦ "){ // 다른값들어있으면 안바뀌게
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist", "▦ ▦ ▦ ▦ ▦ ▦ ");
- }
- }else if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rslt")=="6"){ // 보류
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist")=="▦ ▦ ▦ ▦ ▦ ▦ "){ // 다른값들어있으면 안바뀌게
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist", "▦ ▦ ▦ ▦ ▦ ▦ ");
- }
- }else if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rslt")=="7"){ // 최소적합
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/cs") == "Y"){
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist", "▦-▦ ▦ ▦ ▦ ▦ "); // 2byte 값 들어가있음 조심하세요
- }else{
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist")=="▦ ▦ ▦ ▦ ▦ ▦ "){ // 다른값들어있으면 안바뀌게
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist", "▦ ▦ ▦ ▦ ▦ ▦ "); // 2byte 값 들어가있음 조심하세요
- }
- }
- }
-
- model.setValue("/root/hidden/cmrslt", model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/rsltlist"));
- }
-
-
- //보관검체 재출력 - 2009.09.23 김성희 추가 (변경요청번호 : 3335)
- function fGetKeepSpcno(){
-
- if(model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/keepspcno").getTrim() == ""){
- messageBox("보관검체 등록이 되어있지 않습니다.", "I");
- return;
- }else{
- model.removeNodeset("/root/main/KeepBcnoPrint");
-
- if(grd_prcplist.row < 1 ){
- messageBox("재출력할 보관검체를 선택하십시오.","I");
- return;
- }
-
- model.makeValue("root/send/repid" , model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/pid")); //등록번호
- model.makeValue("root/send/rekeepspcno" , model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/keepspcno")); //보관검체번호
- model.makeValue("root/send/rebcno" , model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/keepspcbcno")); //보관검체바코드번호
-
- submit("TRLBT10906");
-
- if(getNodesetCount("/root/main/KeepBcnoPrint/printinfo") > 0){
- var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
-
- if( prtkind == "2" || prtkind == "6" || prtkind == "7"){
- fKeLabel2("/root/main/KeepBcnoPrint/printinfo");
- }else{
- fKeLabel("/root/main/KeepBcnoPrint/printinfo");
- }
- }
- model.removeNodeset("/root/main/KeepBcnoPrint");
-
- }
-
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1200" pageheight="710" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1193px; height:695px; ">
- <datagrid id="grd_comment" nodeset="/root/main/getbloodinfo/getpatcmt" caption="등록일자^Comment" colwidth="119, 410" dataheight="23" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" style="left:620px; top:259px; width:573px; height:48px; ">
- <col ref="rgstdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="patcmt" type="combo" editmode="input">
- <choices>
- <itemset nodeset="/root/init/LB0122">
- <label ref="nm"/>
- <value ref="nm"/>
- </itemset>
- </choices>
- </col>
- </datagrid>
- <datagrid id="grd_com" nodeset="/root/main/getbloodinfo/getbloodcom" caption="혈액성분^From No^To No^준비수량^comcd^tnsreqacptno^blodbarcd^iryn^prcphopedd" colwidth="198, 110, 120, 80, 0, 0, 0, 0, 0" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" style="left:620px; top:337px; width:573px; height:71px; ">
- <col ref="blodcomnm"/>
- <col ref="fromno"/>
- <col ref="tono"/>
- <col ref="pcnt"/>
- <col ref="blodcomcd"/>
- <col ref="tnsreqacptno"/>
- <col ref="blodbarcd"/>
- <col ref="iryn"/>
- <col ref="prcphopedd"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell("grd_com")){
- fGetPrepBloodDetllist2(grd_com.row);
- }
- ]]>
- </script>
- </datagrid>
- <group id="group100" scroll="auto" style="left:0px; top:0px; width:617px; height:695px; ">
- <datagrid id="grd_prcplist" nodeset="/root/main/getblodprcplist" caption="등록번호^환자명^처방^Type^Irr^수량^E^보관^처방부서^예약일시^접수시간^reqqnt^성분제제 히든^접수번호^erhidden^barcd^prcpgenrflag^prcpdd^abrnblodyn^kabo^keepspcno^dnorcnt^wbcnt^cstat^mstat^keepspcbcno" colwidth="70, 64, 70, 70, 30, 30, 30, 40, 85, 102, 120, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="23" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:25px; width:615px; height:503px; ">
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="tclsscrnnm"/>
- <col ref="abo"/>
- <col ref="iryn" type="output" style="font-weight:bold; color:#ff0000; text-align:center; "/>
- <col ref="no" style="text-align:center; "/>
- <col ref="erprcpflag" type="checkbox" checkvalue="Y,N" style="font-weight:bold; color:#ff0000; "/>
- <col ref="keep"/>
- <col ref="orddeptnm"/>
- <col ref="prcphopedd" format="yyyy-mm-dd hh:nn"/>
- <col ref="tnsreqacptdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="h"/>
- <col ref="blodcomcd"/>
- <col ref="tnsreqacptno"/>
- <col ref="prcperflag"/>
- <col ref="blodbarcd"/>
- <col ref="prcpgenrflag"/>
- <col ref="prcpdd"/>
- <col ref="abrnblodyn"/>
- <col ref="kabo"/>
- <col ref="keepspcno"/>
- <col ref="dnorcnt"/>
- <col ref="wbcnt"/>
- <col ref="cstat"/>
- <col ref="mstat"/>
- <col ref="keepspcbcno"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_prcplist.isCell(event.target) && grd_prcplist.row >= grd_prcplist.fixedRows){
-
- if(grd_prcplist.col ==7){
- // 응급 체크시 lis.lbthtnsr erprcpflag 변경
- fSetErprcpflag();
- }else{
- fGetPrcpList();
- }
- }
- //클릭시 예약일시 변경 숨기기
- grp_rsrv.visible = false;
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- //메뉴띄우기
- fGetMouseDown();
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseout">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_prcplist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption8" style="left:461px; top:529px; width:35px; height:20px; text-align:center; border-style:solid; ">접수</caption>
- <caption id="caption16" style="left:498px; top:529px; width:60px; height:20px; color:#0000ff; text-align:center; border-style:solid; ">준비완료</caption>
- <caption id="caption19" style="left:560px; top:529px; width:55px; height:20px; color:#03830c; text-align:center; border-style:solid; ">일부준비</caption>
- <select id="checkbox1" ref="/root/hidden/ref/cmend" visibility="hidden" overflow="visible" appearance="full" style="left:175px; top:535px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>cm완료포함</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- </group>
- <datagrid id="grd_detllist" nodeset="/root/main/getbloodinfo/getblooddetllist" caption="처방일자^혈액성분^Type^I^처방수량^준비수량^불출수량^혈액성분코드^blodbarcd^tnsreqacptno" colwidth="100, 100, 75, 30, 90, 90, 90, 0, 0, 0" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" style="left:0px; top:556px; width:615px; height:138px; ">
- <col ref="prcphopedd" format="yyyy-mm-dd"/>
- <col ref="blodcomnm"/>
- <col ref="aborh"/>
- <col ref="iryn" type="output" style="font-weight:bold; text-align:center; "/>
- <col ref="reqqty" style="text-align:center; "/>
- <col ref="cno" style="text-align:center; "/>
- <col ref="dno" style="text-align:center; "/>
- <col ref="blodcomcd"/>
- <col ref="blodbarcd"/>
- <col ref="tnsreqacptno"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 수혈내역 클릭하면 준비혈액내역 조회
- //datagrid click or dbclick 시점에 현재 click target이 data 영역인지 check
- if(isDataCell("grd_detllist")){
- fGetPrepBloodDetllist(grd_detllist.row);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_detllist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_prepblood" nodeset="/root/main/getbloodinfo/blod/getprepbloodlist" caption="^No^혈액번호^혈액성분^검사일시^검사자^적합^CS^혈액형^Comment^I^준비일자^불출일자^성분제제코드^blodbarcd^blodstat^pid^tnsreqacptno^prcpblodbarcd^prcpblodcomcd^testpsnid^tnsreqseq^caption1^rsltlist^cmrslt" colwidth="23, 50, 80, 98, 105, 50, 65, 40, 63, 60, 30, 74, 74, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" colsep="^" tooltip="true" style="left:620px; top:438px; width:573px; height:256px; ">
- <col ref="chk" type="checkbox" checkvalue="Y,N"/>
- <col ref="pno"/>
- <col ref="blodno"/>
- <col ref="blodcomnm"/>
- <col ref="testdt" format="yyyy-mm-dd hh:mm"/>
- <col ref="testid" style="text-align:center; "/>
- <col ref="rslt" 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>
- </choices>
- </col>
- <col ref="cs" type="checkbox" checkvalue="Y,N" disabled="true"/>
- <col ref="abo"/>
- <col ref="blodcmt" type="input"/>
- <col ref="iryn" type="output" style="font-weight:bold; text-align:center; "/>
- <col ref="prepdt" format="yyyy-mm-dd"/>
- <col ref="delivedt" format="yyyy-mm-dd"/>
- <col ref="blodcomcd"/>
- <col ref="blodbarcd"/>
- <col ref="blodstat"/>
- <col ref="pid"/>
- <col ref="tnsreqacptno"/>
- <col ref="prcpblodbarcd"/>
- <col ref="prcpblodcomcd"/>
- <col ref="testpsnid"/>
- <col ref="tnsreqseq"/>
- <col ref="blodcomstat"/>
- <col ref="rsltlist"/>
- <col ref="cmrslt"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_prepblood.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_prepblood.isCell(event.target) && grd_prepblood.row >= grd_prepblood.fixedRows){
-
- if(grd_prepblood.col == grd_prepblood.colRef("cs")){
- fSetCMRslt();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_prepblood.col == 1 ){
- for(i=0; i<grd_prepblood.rows; i++){
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/chk") =="Y"){ // 선택된것
- grd_prepblood.rowStatus(i) = 2;
- }else{
- grd_prepblood.rowStatus(i) = 0;
- }
-
- }
- }else if(grd_prepblood.col == grd_prepblood.colRef("rslt")){
- model.setValue("/root/main/getbloodinfo/blod/getprepbloodlist["+grd_prepblood.row+"]/chk", "Y");
- }
-
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //alert("col= " + grd_prepblood.col + " row= " + grd_prepblood.row);
- /*if(grd_prepblood.col == "1" && grd_prepblood.row =="0"){
- alert("Y");
- }else{
- alert("N");
- }
- */
-
- if(grd_prepblood.col != 1){
- fSetCMRsltFit();
- }
-
- for(i=0; i<grd_prepblood.rows; i++){
- if(model.getValue("/root/main/getbloodinfo/blod/getprepbloodlist["+i+"]/chk")=="Y"){
- grd_prepblood.rowStatus(i) = 2;
- }
- }
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="tit_2" style="left:5px; top:5px; width:141px; height:13px; ">혈액은행 처방 목록</caption>
- <line id="line2" class="line_1" style="x1:620px; y1:132px; x2:1193px; y2:132px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:22px; x2:615px; y2:22px; "/>
- <line id="line6" class="line_3" style="x1:620px; y1:228px; x2:1193px; y2:228px; "/>
- <caption id="caption9" class="tit_2" style="left:625px; top:5px; width:80px; height:13px; ">환자정보</caption>
- <caption id="caption13" class="tit_2" style="left:625px; top:239px; width:139px; height:13px; ">환자별 Comment</caption>
- <line id="line8" class="line_1" style="x1:620px; y1:254px; x2:1193px; y2:254px; "/>
- <caption id="caption14" class="tit_2" style="left:5px; top:536px; width:91px; height:13px; ">수혈 내역</caption>
- <line id="line9" class="line_1" style="x1:0px; y1:551px; x2:615px; y2:551px; "/>
- <caption id="caption15" class="tit_2" style="left:625px; top:418px; width:121px; height:13px; ">준비 혈액 내역</caption>
- <line id="line10" class="line_1" style="x1:620px; y1:433px; x2:1193px; y2:433px; "/>
- <caption id="caption17" class="tit_2" style="left:625px; top:117px; width:100px; height:13px; ">환자 혈액정보</caption>
- <line id="line16" class="line_1" style="x1:620px; y1:332px; x2:1193px; y2:332px; "/>
- <caption id="caption7" class="tit_2" style="left:625px; top:317px; width:91px; height:13px; ">혈액성분</caption>
- <button id="btn_addrow" class="btn2_letter3" style="left:1038px; top:234px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetCmtAdd();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter3" style="left:1094px; top:234px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCmtDel();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn2_letter2" style="left:1150px; top:234px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCmtSave();
- ]]>
- </script>
- </button>
- <output id="opt_pid" ref="/root/main/getbloodinfo/getpatinfo/pid" class="font_pid" style="left:620px; top:20px; width:300px; height:65px; text-align:left; "/>
- <output id="opt_patnm" ref="/root/main/getbloodinfo/getpatinfo/patnm" class="font_pid" style="left:922px; top:20px; width:270px; height:65px; font-size:34ptpt; text-align:left; "/>
- <output id="opt_abo" ref="/root/main/getbloodinfo/getpatinfo/aborh" class="font_ab" style="left:620px; top:157px; width:150px; height:75px; font-size:44pt; word-wrap:word; "/>
- <line id="line3" class="line_2" style="x1:920px; y1:24px; x2:920px; y2:81px; "/>
- <output id="output2" ref="/root/main/getbloodinfo/getpatinfo/reqqnt" visibility="hidden" style="left:1080px; top:5px; width:30px; height:19px; "/>
- <output id="output3" ref="/root/main/getbloodinfo/getpatinfo/blodcomcd" visibility="hidden" style="left:1125px; top:5px; width:30px; height:19px; "/>
- <output id="output4" ref="/root/main/getbloodinfo/getprepcnt/prepcnt" visibility="hidden" style="left:920px; top:420px; width:50px; height:19px; "/>
- <button id="button2" class="btn2_letter3" style="left:1140px; top:412px; width:53px; height:19px; ">
- <caption>재출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fExeBarcdPrnt();
- fExeBarcdPrnt("reprnt");
- ]]>
- </script>
- </button>
- <!--<object id="CommAX" visibility="hidden" clsid="{35cc9cfa-e6f8-4b22-b6d2-fe7cd108f943}" style="left:165px; top:275px; width:60px; height:35px; "/>-->
- <datagrid id="grd_lastrslt" nodeset="/root/main/getbloodinfo/getblodinforslt/row" visibility="visible" caption="a^b^c^d^e^f^g" colwidth="0, 0, 0, 0, 0, 0, 0" dataheight="23" defaultrows="2" ellipsis="true" mergecellsfixedrows="bycolrec" selectionmode="free" rowsep="|" colsep="^" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:773px; top:137px; width:420px; height:89px; ">
- <col ref="a1"/>
- <col ref="a2"/>
- <col ref="a3"/>
- <col ref="a4"/>
- <col ref="a5"/>
- <col ref="a6"/>
- <col ref="a7"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_lastrslt.isCell(event.target) && grd_lastrslt.row >= grd_lastrslt.fixedRows){
- fGetBlodInfoHistory();
- }
- ]]>
- </script>
- </datagrid>
- <group id="grp_history" visibility="hidden" style="left:980px; top:135px; width:213px; height:189px; border-color:#5abaff; border-width:1px; border-style:solid; ">
- <datagrid id="datagrid1" nodeset="/root/main/getbloodinfo/blodrslthistory" caption="일자^결과" colwidth="100, 88" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:0px; width:211px; height:163px; ">
- <col ref="rsltdt" format="yyyy-mm-dd"/>
- <col ref="rslt"/>
- </datagrid>
- <button id="button3" class="btn2_letter2" style="left:168px; top:166px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_history.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <button id="button4" class="btn2_letter5" visibility="hidden" style="left:805px; top:0px; width:75px; height:19px; ">
- <caption>탑정보(숨)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetTopInfo();
- ]]>
- </script>
- </button>
- <select id="checkbox2" ref="/root/hidden/cancel/cancelgbn" overflow="visible" appearance="full" style="left:958px; top:414px; width:70px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>접수취소</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <button id="button5" class="btn2_letter2" style="left:1026px; top:412px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrepCancel();
- ]]>
- </script>
- </button>
- <button id="btn_nurse2" class="btn2_letter7" style="left:450px; top:0px; width:97px; height:19px; ">
- <caption>특수 간호부전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SPLBT90200_특수혈액간호부전송.xrw");
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter4" style="left:550px; top:0px; width:64px; height:19px; ">
- <caption>접수취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 처방목록에서 준비 and 접수 취소
- fExeAcptPrepCancel();
- ]]>
- </script>
- </button>
- <select id="checkbox3" ref="/root/hidden/cancel/prepLog" visibility="hidden" overflow="visible" appearance="full" style="left:750px; top:5px; width:50px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>신청</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <group id="grp_rsrv" visibility="hidden" style="left:140px; top:0px; width:300px; height:20px; ">
- <input id="ipt_rsrvtm" ref="/root/hidden/rsrvinfo/rsrvtm" class="input_search" format="hh:nn" style="left:169px; top:1px; width:35px; height:19px; "/>
- <input id="ipt_rsrvdd" ref="/root/hidden/rsrvinfo/rsrvdd" class="input_s_essential" inputtype="date" style="left:79px; top:1px; width:91px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:3px; top:0px; width:72px; height:20px; ">예약일시 :</caption>
- <button id="button9" class="btn2_letter2" style="left:255px; top:0px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_rsrv.visible = false;
- ]]>
- </script>
- </button>
- <button id="button10" class="btn2_letter2" style="left:210px; top:0px; width:42px; height:19px; ">
- <caption>변경</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetTnsRsrvDT();
- ]]>
- </script>
- </button>
- </group>
- <button id="button7" class="btn2_letter4" style="left:1073px; top:412px; width:64px; height:19px; ">
- <caption>CM입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeCMRslt();
- ]]>
- </script>
- </button>
- <caption id="caption4" style="left:735px; top:412px; width:55px; height:20px; color:#0000EE; text-align:center; background-color:#ffe79d; border-width:1px; border-style:solid; ">혈액준비</caption>
- <caption id="caption6" style="left:793px; top:412px; width:55px; height:20px; color:#ff00ff; text-align:center; background-color:#7BE6B7; border-width:1px; border-style:solid; ">CM입력</caption>
- <caption id="caption20" style="left:851px; top:412px; width:35px; height:20px; color:#ee0000; text-align:center; background-color:#fcd2c1; border-width:1px; border-style:solid; ">불출</caption>
- <caption id="caption12" class="cell_1" style="left:620px; top:137px; width:150px; height:23px; vertical-align:middle; ">환자혈액형</caption>
- <line id="line7" class="line_1" style="x1:620px; y1:20px; x2:1193px; y2:20px; "/>
- <output id="output11" class="output_fix" style="left:1108px; top:85px; width:85px; height:19px; "/>
- <output id="output13" class="output_fix" style="left:905px; top:85px; width:60px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:1069px; top:84px; width:35px; height:23px; vertical-align:middle; ">일시</caption>
- <caption id="caption5" class="cell_1" style="left:824px; top:84px; width:40px; height:23px; vertical-align:middle; ">BMT</caption>
- <caption id="caption11" class="cell_1" style="left:968px; top:84px; width:35px; height:23px; vertical-align:middle; ">Do</caption>
- <output id="opt_regno" ref="/root/main/getbloodinfo/getpatinfo/rstno" class="output_fix" style="left:708px; top:85px; width:110px; height:19px; "/>
- <caption id="caption18" class="cell_1" style="left:620px; top:84px; width:85px; height:23px; vertical-align:middle; ">주민등록번호</caption>
- <line id="line5" class="line_2" style="x1:620px; y1:81px; x2:1193px; y2:81px; "/>
- <caption id="caption21" class="cell_1" style="left:867px; top:84px; width:35px; height:23px; vertical-align:middle; ">Pt</caption>
- <output id="output1" class="output_fix" style="left:1006px; top:85px; width:60px; height:19px; "/>
- <line id="line12" class="line_3" style="x1:620px; y1:106px; x2:1193px; y2:106px; "/>
- </group>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|