12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLBT10300_CM결과관리.xrw
- * 설 명 : CM결과관리
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2007.06.05
- * 수정이력 : 2007.08.24
- * 기 타 :
- -->
- <?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>CM 결과관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <getblodprcplist>
- <pid/>
- <patnm/>
- <tclsscrnnm/>
- <abo/>
- <iryn/>
- <no/>
- <erprcpflag/>
- <prcphopedd/>
- <tnsreqacptno/>
- <blodcomcd/>
- <prcpgenrflag/>
- <coombsyn/>
- <prcpdd/>
- <kabo/>
- <keepspcno/>
- </getblodprcplist>
- <getbloodinfo>
- <getblodprcplist>
- <pid/>
- <patnm/>
- <tclsscrnnm/>
- <abo/>
- <iryn/>
- <no/>
- <erprcpflag/>
- <prcphopedd/>
- <tnsreqacptno/>
- </getblodprcplist>
- <getblooddetllist>
- <prcphopedd/>
- <blodcomnm/>
- <aborh/>
- <iryn/>
- <reqqty/>
- <cno/>
- <blodcomcd/>
- <blodbarcd/>
- </getblooddetllist>
- <getpatinfo>
- <pid/>
- <patnm/>
- <sexage/>
- <rstno/>
- <prcpgenrflag/>
- <orddeptnm/>
- <wardroom/>
- <aborh/>
- <orddrnm/>
- <f1/>
- <f2/>
- <f3/>
- <abrnblodyn/>
- </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>
- <blodrslthistory>
- <rsltdd>20070309</rsltdd>
- <rsltval>A+</rsltval>
- </blodrslthistory>
- <blodrslthistory>
- <rsltdd>20070204</rsltdd>
- <rsltval>A+</rsltval>
- </blodrslthistory>
- <blodrslthistory>
- <rsltdd>20070110</rsltdd>
- <rsltval>A+</rsltval>
- </blodrslthistory>
- <blodrslthistory>
- <rsltdd>20061109</rsltdd>
- <rsltval>A+</rsltval>
- </blodrslthistory>
- <blodrslthistory>
- <rsltdd>20061020</rsltdd>
- <rsltval>A+</rsltval>
- </blodrslthistory>
- <blodrslthistory>
- <rsltdd>20060907</rsltdd>
- <rsltval>A+</rsltval>
- </blodrslthistory>
- <getcomment/>
- <getbloodcom>
- <blodcomnm/>
- <fromno/>
- <tono/>
- <pcnt/>
- </getbloodcom>
- <getblodinfolist>
- <dt/>
- <rslt/>
- <tclsnm/>
- <testcd/>
- <unit/>
- <tclsnmabbr/>
- </getblodinfolist>
- <getblodinforslt>
- <row>
- <a1/>
- </row>
- <row>
- <a1/>
- </row>
- <hearder/>
- </getblodinforslt>
- <blodrslthistory>
- <rsltdt/>
- <rslt/>
- </blodrslthistory>
- <getprepblood>
- <getprepbloodlist>
- <chk/>
- <pno/>
- <blodno/>
- <blodcomnm/>
- <abo/>
- <iryn/>
- <testpsn/>
- <rslt/>
- <cs/>
- <blodcmt/>
- <testdt/>
- <rsltlist/>
- <blodcomstat/>
- <cmrslt/>
- <tnsreqacptno/>
- <blodbarcd/>
- <blodcomcd/>
- <pid/>
- <blodcomstatnm/>
- </getprepbloodlist>
- </getprepblood>
- </getbloodinfo>
- <gettestpsnnm>
- <testpsnnm/>
- </gettestpsnnm>
- <getUsernm>
- <usernm/>
- </getUsernm>
- <temp>
- <getprepbloodlist>
- <chk/>
- <pno/>
- <blodno/>
- <blodcomnm/>
- <abo/>
- <iryn/>
- <testpsn/>
- <rslt/>
- <cs/>
- <blodcmt/>
- <testdt/>
- <rsltlist/>
- <blodcomstat/>
- <cmrslt/>
- <tnsreqacptno/>
- <blodbarcd/>
- <blodcomcd/>
- </getprepbloodlist>
- </temp>
- <getBMTInfo>
- <getBMTInfo>
- <pid/>
- <btype/>
- <dnorbtype/>
- <trnptdg/>
- <trnptdd/>
- </getBMTInfo>
- <getBMTInfoList>
- <pid/>
- <btype/>
- <dnorbtype/>
- <trnptdg/>
- </getBMTInfoList>
- </getBMTInfo>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <pid/>
- <tnsreqacptno/>
- <blodno/>
- <testpsnid/>
- <execdt/>
- <cmrslt/>
- <cmrsltlist/>
- <txt/>
- <blodcomcd/>
- <tclscd/>
- <prcpdd/>
- <iogbn/>
- <gbn/>
- <cancelflag/>
- <blodnolist/>
- <cmend/>
- <testpsnnm/>
- <cmt/>
- <blodcmt/>
- <codeflag/>
- <blodbarcd/>
- <acptnolist/>
- <prcphopedd/>
- <iryn/>
- <preplog/>
- <bmtsearchgbn/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <reffromdd/>
- <reftodd/>
- <testpsn/>
- <pid/>
- <testdt/>
- <cmend/>
- <prcpdd/>
- </ref>
- <cmrslt>
- </cmrslt>
- <rslt/>
- <info>
- <blodrslthistory>
- <rsltdd>20070505</rsltdd>
- <rsltval>A+</rsltval>
- </blodrslthistory>
- <blodrslthistory>
- <rsltdd>20070309</rsltdd>
- <rsltval>A+</rsltval>
- </blodrslthistory>
- <blodrslthistory>
- <rsltdd>20070204</rsltdd>
- <rsltval>A+</rsltval>
- </blodrslthistory>
- <blodrslthistory>
- <rsltdd>20070110</rsltdd>
- <rsltval>A+</rsltval>
- </blodrslthistory>
- <blodrslthistory>
- <rsltdd>20061109</rsltdd>
- <rsltval>A+</rsltval>
- </blodrslthistory>
- <blodrslthistory>
- <rsltdd>20061020</rsltdd>
- <rsltval>A+</rsltval>
- </blodrslthistory>
- <blodrslthistory>
- <rsltdd>20060907</rsltdd>
- <rsltval>A+</rsltval>
- </blodrslthistory>
- </info>
- <cancel>
- <cancelgbn/>
- <preplog/>
- </cancel>
- <keepno/>
- <userinfo>
- <tmptestpsn/>
- <tmptestpsnnm/>
- </userinfo>
- </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" ev:event="xforms-ready">
- <![CDATA[
- finit();
- ]]>
- </script>
- <submission id="TRLBT10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getblodprcplist"/>
- <submission id="TRLBT10302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getbloodinfo"/>
- <submission id="TXLBT10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLBT10303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/gettestpsnnm"/>
- <submission id="TRLBT10407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getbloodinfo/blodrslthistory"/>
- <submission id="TXLBT10302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLZZ00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/prcpinfo"/>
- <submission id="TXLLB00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TXLBT10303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0122"/>
- <submission id="TXLBT10304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLBT10304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/temp"/>
- <submission id="TRLZZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/prcpinfo"/>
- <submission id="TRLBT10209" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getBMTInfo/getBMTInfo"/>
- <submission id="TRLBT10210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getBMTInfo/getBMTInfoList"/>
- <submission id="TRLZZ00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getUsernm"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 초기값
- function finit(){
- model.setValue("/root/send/codeflag", "0122|"); // 0122 수혈 반납/폐기 사유
- submit("TRLZZ00101");
-
-
- // 조회일자 시스템데이트 가져오기
- var today = getCurrentDate();
- var mDate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-2);
- model.setValue("/root/hidden/ref/reffromdd", mDate.getDateFormat("YYYYMMDD"));
- model.setValue("/root/hidden/ref/reftodd", today);
- model.setValue("/root/hidden/ref/testdt", today);
- model.setValue("/root/hidden/keepno", "");
-
- // focus 검사자 칸에
- model.setFocus("ipt_testpsn");
- delPatientInfos(); //환자정보 전체 삭제
- // 준비혈액내역 그리드 전체 선택 기능
- grd_prepblood.fixedcellcheckbox(0,1)= true;
-
- // 준비혈액내역 폰트 설정
- fSetPrepbloodFont();
-
- model.removeNodeset("/root/main/getblodprcplist");
- model.removeNodeset("/root/main/getbloodinfo/getblooddetllist");
- model.removeNodeset("/root/main/getbloodinfo/getpatinfo");
- model.removeNodeset("/root/main/getbloodinfo/getpatcmt");
- model.removeNodeset("/root/main/getbloodinfo/getbloodcom");
- model.removeNodeset("/root/main/getbloodinfo/getprepblood/getprepbloodlist");
- model.removeNodeset("/root/main/getbloodinfo/getblodinforslt/row");
- model.setValue("/root/hidden/ref/pid","");
-
- //grd_comment.rebuild();
- model.refresh();
- }
-
-
- //키이벤트 엔터키 입력시
- function fKeyEvent(){
- if(event.keyCode == "13"){
-
- // 검사자 바코드 리딩시
- if(event.target == "ipt_testpsn"){
- model.setvalue("/root/hidden/ref/testpsn", (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/hidden/ref/pid", ipt_pid.currentText);
-
- fGetBloodPrcpList("bbcd");
- //fGetBlodInfo("bcd"); // 정보조회
- ipt_pid.selBegin = 0;
- ipt_pid.selEnd = ipt_pid.currentText.length;
-
- }
-
- }
- }
-
- // 검사자 조회
- function fGetTestPsn(){
- //model.setValue("/root/send/testpsnid", model.getValue("/root/hidden/ref/testpsn"));
- //submit("TRLBT10303");
- //model.setValue("/root/main/gettestpsnnm/testpsnnm", model.getValue("/root/main/gettestpsnnm/testpsnnm"));
-
- model.makeValue("/root/send/userid" , model.getValue("/root/hidden/ref/testpsn"));
- submit("TRLZZ00104");
-
- model.setValue("/root/hidden/userinfo/tmptestpsn", model.getValue("/root/hidden/ref/testpsn"));
- model.setValue("/root/hidden/userinfo/tmptestpsnnm", model.getValue("/root/main/getUsernm/usernm"));
- opt_testpsn.refresh();
-
- }
-
- // CM 완료
- function fSetRsltReg(){
-
- if(model.getValue("/root/hidden/ref/testpsn")=="" || model.getValue("/root/main/getUsernm/usernm") == ""){
- messageBox("검사자를 입력하세요.", 'E');
- return;
- }
-
- if(model.getValue("/root/hidden/ref/testpsn") != model.getValue("/root/hidden/userinfo/tmptestpsn")
- || model.getValue("/root/main/getUsernm/usernm") != model.getValue("/root/hidden/userinfo/tmptestpsnnm") ){
- messageBox("검사자를 확인해주세요.", "I");
- return;
- }
-
- if(model.getValue("/root/hidden/ref/pid")==""){
- messageBox("등록번호를 입력하세요.", 'E');
- return;
- }
-
- if(model.getValue("/root/hidden/ref/cmend") == "1" ){ // CM완료포함 선택됐을때 CM결과값 수정 2008-07-25 정은 수정함
- // CM 저장한 것 & 불출하기전 만 결과수정
- var blod = "";
- var cmRslt = "";
- var cmRsltList = "";
- var acptno ="";
-
-
- for(o= 1; o<grd_prepblood.rows; o++){
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+o+"]/chk")=="Y"){ // 준비혈액중 선택한것만
-
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+o+"]/blodcomstat") > "2"){ //CM완료된것만
-
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+o+"]/rslt")=="5"){ // 검사중
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+o+"]/rslt", "1"); // 적합으로 바꾸고
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+o+"]/cs")=="Y"){ // Coomb's Y면 적,적,적으로
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+o+"]/rsltlist", "▦적합▦적합▦적합▦ ▦ ▦ ");
- }else{
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+o+"]/rsltlist", "▦ ▦ ▦ ▦ ▦ ▦ ");
- }
- }
- blod += "▦" + model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+o+"]/blodno");
- cmRslt += "▦" + model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+o+"]/rslt");
- cmRsltList += "★" + model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+o+"]/rsltlist");
- acptno += "▦" + model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+o+"]/tnsreqacptno");
- }
- }
- }
-
-
- if(blod == ""){
- messageBox("결과수정 할 혈액을 선택하십시오.", 'E');
- return;
- }
-
- model.setValue("/root/send/acptnolist", acptno);
- model.setValue("/root/send/blodno", blod);
- model.setValue("/root/send/cmrslt", cmRslt);
- model.setValue("/root/send/cmrsltlist", cmRsltList);
-
-
- if(submit("TXLBT10304")){
- model.setValue("/root/hidden/ref/pid", "");
- fGetBloodPrcpList("rref");
-
- if(grd_prcplist.rows > 1){
-
- }else{
- model.removeNodeset("/root/main/getbloodinfo/getprepblood/getprepbloodlist");
- grd_prepblood.rebuild();
- }
-
- model.setFocus("ipt_pid");
- }
-
-
- }else{ //정상 CM완료 시킬때
- /*if(model.getValue("/root/hidden/ref/testpsn")=="" || model.getValue("/root/main/gettestpsnnm/testpsnnm") == ""){
- messageBox("검사자를 입력하세요.", 'E');
- return;
- }
-
- if(model.getValue("/root/hidden/ref/pid")==""){
- messageBox("등록번호를 입력하세요.", 'E');
- return;
- }*/
-
-
- var blod = "";
- var cmRslt = "";
- var cmRsltList = "";
- var blodcmt = "";
- var blodbarcd = "";
-
- for(i=1; i<grd_prepblood.rows; i++){
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/chk")=="Y"){ // 준비혈액내역에서 선택된혈액만 CM할때
-
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/blodcomstat")=="2"){ // 준비된 혈액만 CM가능
-
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/rslt")=="5"){ // 검사중
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/rslt", "1"); //적합으로 바꾸고
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/cs")=="Y"){ // Coomb's Y면 적,적,적으로
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/rsltlist", "▦적합▦적합▦적합▦ ▦ ▦ ");
- }else{
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/rsltlist", "▦ ▦ ▦ ▦ ▦ ▦ ");
- }
- }
- blod += "▦" + model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/blodno");
- blodbarcd += "▦" + model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/blodbarcd");
-
- cmRslt += "▦" + model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/rslt");
- cmRsltList += "★" + model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/rsltlist");
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/blodcmt")==""){
- blodcmt += "▦" + " ";
- }else{
- blodcmt += "▦" + model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/blodcmt");
- }// ▦0300000001▦0300000002 ...
- }
-
- }
- }
-
- if(blod == ""){
- messageBox("결과저장할 혈액을 선택하십시오.", 'E');
- return;
- }
-
- model.setValue("/root/send/pid", model.getValue("/root/hidden/ref/pid"));
- model.setValue("/root/send/tnsreqacptno", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/tnsreqacptno"));
- model.setValue("/root/send/blodno", blod);
- model.setValue("/root/send/blodbarcd", blodbarcd);
-
- //alert("cmRslt= " +cmRslt);
- model.setValue("/root/send/cmrslt", cmRslt);
- model.setValue("/root/send/testpsnid", model.getValue("/root/hidden/ref/testpsn"));
- model.setValue("/root/send/execdt", model.getValue("/root/hidden/ref/testdt"));
- model.setValue("/root/send/cmrsltlist", cmRsltList);
- model.setValue("/root/send/testpsnnm", model.getValue("/root/main/gettestpsnnm/testpsnnm"));
- model.setValue("/root/send/blodcmt", blodcmt);
-
-
-
- if(submit("TXLBT10301")==true){
- //model.reset();
- model.setValue("/root/hidden/ref/pid", "");
- fGetBloodPrcpList("rref");
-
- if(grd_prcplist.rows > 1){
-
- //grd_prcplist.row = 1;
- //fGetBlodInfo("auto");
- //fGetBlodInfo("bcd");
- }else{
- model.removeNodeset("/root/main/getbloodinfo/getprepblood/getprepbloodlist");
- grd_prepblood.rebuild();
- }
-
- model.setFocus("ipt_pid");
- }
-
- } // cm완료포함 선택 안했을때
-
-
- }
-
-
- // 혈액은행 처방 목록 조회
- function fGetBloodPrcpList(ref){
- model.setValue("/root/send/fromdd", model.getValue("/root/hidden/ref/reffromdd"));
- model.setValue("/root/send/todd", model.getValue("/root/hidden/ref/reftodd"));
- model.setValue("/root/send/pid", model.getValue("/root/hidden/ref/pid"));
- model.setValue("/root/send/txt", ref);
- model.setValue("/root/send/cmend", model.getValue("/root/hidden/ref/cmend"));
-
- //submit("TRLBT10301");
- if(submit("TRLBT10301")==true){
- if(grd_prcplist.rows >1){
-
- for(i=1; i< grd_prcplist.rows; i++){
- grd_prcplist.rebuildStyle(i,1,i,8);
- //이형 type 빨간색으로 표시되게
- if(model.getValue("/root/main/getblodprcplist["+i+"]/abrnblodyn")=="Y"){
- grd_prcplist.cellStyle("color", i, 4, i, 4) = "red";
- }
-
- /*
- if(model.getValue("/root/main/getblodprcplist["+i+"]/iryn")=="Y"){
- grd_prcplist.cellStyle("font-weight", i, 5, i, 5) = "bold";
- }else if(model.getValue("/root/main/getblodprcplist["+i+"]/iryn")=="N"){
- model.setValue("/root/main/getblodprcplist["+i+"]/iryn", "");
- }
- */
- }
- if(ref == "bbcd"){
- grd_prcplist.row = 1;
- fGetBlodInfo("auto", "Y");
- }else if(ref == "rref"){
- //fGetBlodInfo("bcd");
- delPatientInfos(); //환자정보 전체 삭제
- model.removeNodeset("/root/main/getbloodinfo/getblooddetllist");
- model.removeNodeset("/root/main/getbloodinfo/getpatinfo");
- model.removeNodeset("/root/main/getbloodinfo/getbloodcom");
- model.removeNodeset("/root/main/getbloodinfo/getprepblood/getprepbloodlist");
- model.removeNodeset("/root/main/getbloodinfo/getpatcmt");
- model.removeNodeset("/root/main/getbloodinfo/getblodinforslt/row");
- grd_lastrslt.rebuild();
- grd_detllist.rebuild();
- grd_comment.rebuild();
- grd_com.rebuild();
- grd_prepblood.rebuild();
- grd_comment.rebuild();
- model.refresh();
- }else{
- model.setFocus("ipt_testpsn");
- }
- }else{
- //등록번호 조회시 처방 목록 없어도 수혈내역 조회
- if(ref == "bbcd"){
- fGetBlodInfo("bcd", "Y");
- }else{
- // 초기화 시켜야함
- //model.resetInstanceNode("/root/main/getbloodinfo");
- model.removeNodeset("/root/main/getbloodinfo");
- opt_pid.refresh();
- opt_patnm.refresh();
- opt_rstno.refresh();
- output13.refresh();
- output11.refresh();
- opt_abo.refresh();
- grd_prepblood.rebuild();
- model.setValue("/root/hidden/keepno","");
- cap_keep.refresh();
- }
- }
- }
- }
-
- // 등록번호 엔터 또는 처방목록 클릭시 수혈내역, 환자정보, 혈액정보, 환자별 cmt, 혈액성분 조회
- function fGetBlodInfo(Ref, top){
-
- chk_cmend.deselect(0);
-
- //alert(model.getValue("/root/hidden/ref/cmend"));
-
- if(Ref == "bcd"){
- model.setValue("/root/send/pid", model.getValue("/root/hidden/ref/pid"));
-
- }else if(Ref =="select"){
- 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"));
- model.setValue("/root/send/blodcomcd", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/blodcomcd"));
-
- model.setValue("/root/hidden/ref/pid", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/pid"));
- model.setValue("/root/send/prcpdd", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/prcpdd"));
-
-
- }else{
- model.setValue("/root/send/pid", model.getValue("/root/main/getblodprcplist[1]/pid"));
- model.setValue("/root/send/tnsreqacptno", model.getValue("/root/main/getblodprcplist[1]/tnsreqacptno"));
- model.setValue("/root/send/blodcomcd", model.getValue("/root/main/getblodprcplist[1]/blodcomcd"));
- model.setValue("/root/send/prcpdd", model.getValue("/root/main/getblodprcplist[1]/prcpdd"));
- }
-
- model.setValue("/root/send/fromdd", model.getValue("/root/hidden/ref/reffromdd"));
- model.setValue("/root/send/todd", model.getValue("/root/hidden/ref/reftodd"));
- model.setValue("/root/send/cmend", model.getValue("/root/hidden/ref/cmend"));
-
- var kabo = model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/kabo");
- var keepno = model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/keepspcno");
- model.setValue("/root/hidden/keepno", kabo + keepno);
- cap_keep.refresh();
-
- // 혈액 상세내역, 환자정보, 혈액정보, 혈액성분 조회
- submit("TRLBT10302");
-
- // 최근결과내역 표시
- fGetBlodRslt();
-
- //--------------------------------------------------------------------
- // BMT 실시 정보
- fGetBMTInfo("info");
-
- 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;
-
- //이형혈액인경우
- 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"){
- 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("class") = "font_b";
- }else if(aborh=="O"){
- opt_abo.attribute("class") = "font_o";
- }else{
- // 기타 혈액형
- opt_abo.attribute("class") = "font_b";
- opt_abo.attribute("font-size") = 28;
- }
- }
- grd_prepblood.rebuildStyle(1,2,(grd_prepblood.rows-1),8);
-
- //준비혈액내역
- for(i=1; i<grd_prepblood.rows ; i++){
-
-
- if((model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/cmrslt")=="-") || (model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/cmrslt")=="")){
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/rslt", "5");
- 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/getprepblood/getprepbloodlist["+i+"]/cmrslt")=="6"){ // 보류, 적합(응급) 은 결과수정할수 있어야함
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/rslt", "6");
- 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/getprepblood/getprepbloodlist["+i+"]/cmrslt")=="3"){
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/rslt", "3");
- 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/getprepblood/getprepbloodlist["+i+"]/rslt", model.getValue("/root/main/getbloodinfo/getprepblood/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.setValue("/root/hidden/cmrslt", "");
-
- }
-
- if(model.getValue("/root/hidden/ref/cmend")=="1"){
- grd_prepblood.fixedcellischeck(0,1) = false;
- }else{
- grd_prepblood.fixedcellischeck(0,1) = true;
- }
- grd_prepblood.rebuild();
-
- // 준비혈액맨밑줄보이게
- grd_prepblood.row = (grd_prepblood.rows-1);
- var gridRow = grd_prepblood.rows;
- grd_prepblood.topRow = gridRow;
-
- if(top=="Y"){
- if(grd_prcplist.rows > 1){
- if(getPatientInfo("pid") != model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/pid")){
- fGetTopInfo();
- }
- }
- }
- model.setFocus("ipt_testpsn");
- }
-
- // 탑정보 위한 조회
- function fGetTopInfo(){
- // 2008-11-27 박정은 탑정보조회방법 변경
- model.setValue("/root/send/pid", model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/pid"));
-
- submit("TRLZZ00109");
-
- fUpPatinfo2();
- }
-
- // 탑정보
- function fUpPatinfo2(){
- if(grd_prcplist.rows> 1){
- if(model.getValue("/root/init/prcpinfo/pid")!=""){
- setParameter("errflag", "Y");
-
- //var ordtype = "";
- var genrflag = model.getValue("/root/init/prcpinfo/genrflag");
-
- /*if((genrflag == "I") || (genrflag =="E") || (genrflag =="D")){
- ordtype = "I";
- }else if ((genrflag =="O") || (genrflag =="S")){
- ordtype = "O";
- }*/
- //DSC 환자인 경우 genrflag를 I 로 보냄. 오류나서 2008.12.03 김성희 수정
- //SPMMO08900.js 파일(fInitialize_SPMMO08900())에서 genrflag가 "D"인 것을 처리하는 구문이 없음.("I" 로 처리해야함.)
- if(genrflag =="D"){
- genrflag = "I";
- }
-
- //modal("SPMMO08900");
- if((genrflag == "I") || (genrflag =="E")){
- setParameter("condparam", genrflag + "▦" +
- model.getValue("/root/init/prcpinfo/pid") + "▦" +
- model.getValue("/root/init/prcpinfo/orddd") + "▦" +
- model.getValue("/root/init/prcpinfo/cretno") + "▦" +
- model.getValue("/root/init/prcpinfo/acptseqno") + "▦" + // seqno
- model.getValue("/root/init/prcpinfo/todd") + "▦" +
- model.getValue("/root/init/prcpinfo/instcd")); // 임시로
-
- }else if((genrflag =="O") || (genrflag =="S")){
- setParameter("condparam", genrflag + "▦" +
- model.getValue("/root/init/prcpinfo/pid") + "▦" +
- model.getValue("/root/init/prcpinfo/orddd") + "▦" +
- model.getValue("/root/init/prcpinfo/cretno") + "▦" +
- model.getValue("/root/init/prcpinfo/instcd") + "▦" +
- model.getValue("/root/init/prcpinfo/acptseqno") + "▦" +
- model.getValue("/root/init/prcpinfo/orgorddd") + "▦");
-
- }
-
- 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 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");
- 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 fGetBlodRslt(){
- //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[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();
- }
-
- // 환자별 comment 행추가
- function fSetCmtAdd(){
- grd_comment.addRow();
- grd_comment.rowStatus(0) = 1;
- }
-
- // 준비혈액내역 CS 체크박스 선택하면 팝업 띄우기
- function fSetCMRslt(){
-
- if(model.getValue("/root/hidden/ref/cmend")=="1"){ // 완료된것
-
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rslt") == "3"
- || model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rslt") == "6"
- ){ // 적합(응급),보류,최소적합
- model.setValue("/root/hidden/cmrslt", model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist"));
-
- modal("SPLBT90100","","300","300","","/root/hidden","/root/hidden");
-
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist", model.getValue("/root/hidden/cmrslt"));
-
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist") != "▦ ▦ ▦ ▦ ▦ ▦ "){
- // 적합응급일때는 부적합으로 안바꿈
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rslt") == "3"){
-
- // CS에 값 넣으면 부적합으로 바꾸기
- }else if( (model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist") != "▦적합▦적합▦적합▦ ▦ ▦ ") &&
- (model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist") != "▦적합▦ ▦ ▦ ▦ ▦ ") &&
- (model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist") != "▦-▦-▦-▦ ▦ ▦ ") &&
- (model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist") != "▦-▦ ▦ ▦ ▦ ▦ ") ){
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rslt", "2");
- }
- }
- }
-
- }else{ // 미완료
-
- model.setValue("/root/hidden/cmrslt", model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist"));
- model.setValue("/root/hidden/rslt", model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rslt"));
-
- modal("SPLBT90100","","300","300","","/root/hidden","/root/hidden");
-
- model.setValue("/root/main/getbloodinfo/getprepblood/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/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist") != "▦ ▦ ▦ ▦ ▦ ▦ "){
- // 적합응급일때는 부적합으로 안바꿈
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rslt") == "3"){
-
- // 최소적합일때 부적합으로 안바꿈
- }else if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rslt") == "7"){
-
- // CS에 값 넣으면 부적합으로 바꾸기
- }else if( (model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist") != "▦적합▦적합▦적합▦ ▦ ▦ ") &&
- (model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist") != "▦적합▦ ▦ ▦ ▦ ▦ ") &&
- (model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist") != "▦-▦-▦-▦ ▦ ▦ ") &&
- (model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist") != "▦-▦ ▦ ▦ ▦ ▦ ") ){
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rslt", "2");
- }
- }
- }
- }
-
- // 준비혈액 내역에 적합콤보 적합 선택시 결과값 셋팅
- function fSetCMRsltFit(){
-
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rslt")=="1"){ // 적합
- ////if(model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/coombsyn") == "Y"){
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/cs") == "Y"){
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist", "▦-▦-▦-▦ ▦ ▦ "); // 2byte 값 들어가있음 조심하세요
- }else{
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist")=="▦ ▦ ▦ ▦ ▦ ▦ "){ // 다른값들어있으면 안바뀌게
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist", "▦ ▦ ▦ ▦ ▦ ▦ "); // 2byte 값 들어가있음 조심하세요
- }
- }
- }else if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rslt")=="2"){ // 부적합
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist")=="▦ ▦ ▦ ▦ ▦ ▦ "){ // 다른값들어있으면 안바뀌게
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist", "▦부적합▦ ▦ ▦ ▦ ▦ ");
- }
- }else if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rslt")=="3"){ // 적합(응급)
- //alert(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist") + "/");
- //alert(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist") == "▦ ▦ ▦ ▦ ▦ ▦ ");
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist")=="▦ ▦ ▦ ▦ ▦ ▦ "){ // 다른값들어있으면 안바뀌게
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist", "▦-▦ ▦ ▦ ▦ ▦ ");
- }
- }else if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rslt")=="4"){ // 준비
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist")=="▦ ▦ ▦ ▦ ▦ ▦ "){ // 다른값들어있으면 안바뀌게
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist", "▦ ▦ ▦ ▦ ▦ ▦ ");
- }
- }else if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rslt")=="5"){ // 검사중
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist")=="▦ ▦ ▦ ▦ ▦ ▦ "){ // 다른값들어있으면 안바뀌게
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist", "▦ ▦ ▦ ▦ ▦ ▦ ");
- }
- }else if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rslt")=="6"){ // 보류
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist")=="▦ ▦ ▦ ▦ ▦ ▦ "){ // 다른값들어있으면 안바뀌게
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist", "▦ ▦ ▦ ▦ ▦ ▦ ");
- }
- }else if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rslt")=="7"){ // 최소적합
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/cs") == "Y"){
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist", "▦-▦ ▦ ▦ ▦ ▦ "); // 2byte 값 들어가있음 조심하세요
- }else{
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist")=="▦ ▦ ▦ ▦ ▦ ▦ "){ // 다른값들어있으면 안바뀌게
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist", "▦ ▦ ▦ ▦ ▦ ▦ "); // 2byte 값 들어가있음 조심하세요
- }
- }
- }
-
- model.setValue("/root/hidden/cmrslt", model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rsltlist"));
- }
-
-
- // 혈액정보 결과값 더블 클릭시 검사항목 결과 히스토리 보여주기
- 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");
- grp_history.visible = true;
- }
- }
-
- }
-
- }
-
- // CM취소
- function fCMCancel(){
- var blodnolist = "";
- var blodnolist2 = "";
- var Msg = "";
- var acptnolist = "";
- var cancellist = "";
- for(i=0; i< grd_prepblood.rows; i++){
-
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/chk")=="Y"){
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/blodcomstat")=="4"){
- blodnolist += model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/blodno") + "▦" ;
- acptnolist += model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/tnsreqacptno") + "▦" ;
- cancellist += "CM" + "▦";
- }else if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/blodcomstat")=="3"){
- blodnolist += model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/blodno") + "▦" ;
- acptnolist += model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/tnsreqacptno") + "▦" ;
- cancellist += "CM" + "▦";
- }else if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/blodcomstat")=="2"){
- blodnolist += model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/blodno") + "▦" ;
- acptnolist += model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/tnsreqacptno") + "▦" ;
- cancellist += "prep" + "▦";
- }else{
- blodnolist2 += i;
-
- }
- }
- }
- if(model.getValue("/root/hidden/cancel/cancelgbn")=="1"){ //접수취소체크
- if(model.getValue("/root/hidden/cancel/preplog")=="1"){ //신청체크됨
- Msg="신청 취소를" ;
- }else{
- Msg="접수 취소를" ;
- }
- }else{ //접수취소체크안됨
- if(model.getValue("/root/hidden/cancel/preplog")=="1"){//신청체크됨
- Msg="신청 취소를" ;
- }else{
- Msg="CM완료 취소를" ;
- }
- }
-
- model.setValue("/root/send/blodnolist", blodnolist);
- model.setValue("/root/send/acptnolist", acptnolist);
- model.setValue("/root/send/pid", model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlistp/pid")); // 준비혈액 pid 는 다 똑같음
- model.setValue("/root/send/tnsreqacptno", model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/tnsreqacptno"));
- model.setValue("/root/send/blodcomcd", model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/blodcomcd"));
-
- model.setValue("/root/send/gbn", model.getValue("/root/hidden/cancel/cancelgbn")); // 1=접수취소 else 준비취소
- model.makeValue("/root/send/cancellist", cancellist);
-
- var rtn = messageBox( Msg , "Q004" ); // 실행 하시겠습니까?
- if(rtn == "7" ){
- return;
- }
-
- if(submit("TXLLB00101")==true){
- fGetBloodPrcpList("rref");
- }
-
-
- }
-
- /************************************
- // 수혈내역 클릭하면 준비혈액내역에
- // 선택한 처방일자의 혈액성분별 CM결과입력 된 준비혈액내역을 조회
- // 2008-08-13 김성희
- ************************************/
- function fGetPrepBloodDetllist(row){
- chk_cmend.select(0);
-
- //준비혈액내역조회
- 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/hidden/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/cmend" ,model.getValue("/root/hidden/ref/cmend"));
- model.setValue("/root/send/iryn" ,iryn);
- model.setValue("/root/send/tnsreqacptno" ,tnsreqacptno);
-
- submit("TRLBT10304");
- copyNodeType("/root/main/getbloodinfo/getprepblood", "/root/main/temp", "replace");
-
- grd_prepblood.refresh();
-
- grd_prepblood.rebuildStyle(1,2,(grd_prepblood.rows-1),8);
-
- //준비혈액내역
- for(i=1; i<grd_prepblood.rows ; i++){
-
-
- if((model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/cmrslt")=="-") || (model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/cmrslt")=="")){
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/rslt", "5");
- 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/getprepblood/getprepbloodlist["+i+"]/cmrslt")=="6"){ // 보류, 적합(응급) 은 결과수정할수 있어야함
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/rslt", "6");
- 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/getprepblood/getprepbloodlist["+i+"]/cmrslt")=="3"){
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/rslt", "3");
- 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/getprepblood/getprepbloodlist["+i+"]/rslt", model.getValue("/root/main/getbloodinfo/getprepblood/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.setValue("/root/hidden/cmrslt", "");
-
- }
-
- if(model.getValue("/root/hidden/ref/cmend")=="1"){
- grd_prepblood.fixedcellischeck(0,1) = false;
- }else{
- grd_prepblood.fixedcellischeck(0,1) = true;
- }
- grd_prepblood.rebuild();
-
- // 준비혈액맨밑줄보이게
- grd_prepblood.row = (grd_prepblood.rows-1);
- var gridRow = grd_prepblood.rows;
- grd_prepblood.topRow = gridRow;
- model.setFocus("ipt_testpsn");
-
- }
-
- // 준비혈액내역 폰트 설정
- function fSetPrepbloodFont(){
- grd_prepblood.rebuildStyle(1,2,(grd_prepblood.rows-1),8);
-
- for(i=1; i<=grd_prepblood.rows; i++){
-
- if(model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+i+"]/rslt") != "1"){
-
- grd_prepblood.cellStyle("font-weight", i, 2, i, 8) = "bold";
- grd_prepblood.cellStyle("font-size", i, 2, i, 8) = 14;
-
- }
- }
- grd_prepblood.rebuild();
- }
-
-
- // cmt 저장
- function fExePatCmt(){
- var cmt = grd_comment.getUpdateData();
- model.setValue("/root/send/pid", model.getValue("/root/main/getbloodinfo/getpatinfo/pid"));
- model.setValue("/root/send/cmt", cmt);
-
- submit("TXLBT10303");
-
- fGetBlodInfo("select", "N");
- }
-
- // cmt 삭제
- function fDelCmtAdd(){
-
- grd_comment.rowStatus(grd_comment.row) = 4;
-
- var cmt = grd_comment.getUpdateData();
- model.setValue("/root/send/pid", model.getValue("/root/main/getbloodinfo/getpatinfo/pid"));
- model.setValue("/root/send/cmt", cmt);
-
- submit("TXLBT10303");
-
- fGetBlodInfo("select", "N");
- }
-
- //BMT 실시 정보
- function fGetBMTInfo(gbn){
-
- //--------------------------------------------------------------------
- // BMT 실시 정보
- model.setValue("/root/send/pid" , model.getValue("/root/main/getblodprcplist["+grd_prcplist.row+"]/pid"));
- model.setValue("/root/send/bmtsearchgbn" , gbn);
-
- if(gbn == "info"){
-
- submit("TRLBT10209");
-
- }else if(gbn == "list"){
- submit("TRLBT10210");
-
- grp_bmtinfo.visible = true;
-
- }
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:199px; height:13px; ">CM결과관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <datagrid id="grd_prcplist" nodeset="/root/main/getblodprcplist" caption="등록번호^환자명^처방^Type^I^수량^E^예약일자^caption1^coombs^접수번호^성분제제" colsep="^" colwidth="80, 80, 117, 115, 24, 43, 22, 149, 0, 0, 0, 0" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:75px; width:640px; height:502px; font-weight:bold; ">
- <col ref="pid"/>
- <col ref="patnm" format="yyyy-mm-dd"/>
- <col ref="tclsscrnnm" format="yyyy-mm-dd hh:nn"/>
- <col ref="abo"/>
- <col ref="iryn" type="output" style="font-weight:bold; color:#ff0000; text-align:center; "/>
- <col ref="no"/>
- <col checkvalue="Y,N" disabled="true" ref="erprcpflag" type="checkbox"/>
- <col ref="prcphopedd" format="yyyy-mm-dd hh:nn"/>
- <col ref="prcpdd"/>
- <col ref="coombsyn"/>
- <col ref="tnsreqacptno"/>
- <col ref="blodcomcd"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 처방 목록 리스트 선택
- if(grd_prcplist.isCell(event.target) && grd_prcplist.row >= grd_prcplist.fixedRows){
- fGetBlodInfo("select", "Y");
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_prcplist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_prepblood" nodeset="/root/main/getbloodinfo/getprepblood/getprepbloodlist" caption="^No^혈액번호^혈액성분^혈액형^I^검사자^적합^CS^Comment^검사일시^혈액바코드^성분제제코드^pid^상태^cmrslt^rsltlist^tnsreqacptno" colsep="^" colwidth="25, 50, 80, 100, 56, 30, 64, 60, 30, 70, 70, 0, 0, 0,70,0, 0, 0" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:645px; top:551px; width:549px; height:192px; font-weight:bold; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="pno"/>
- <col ref="blodno"/>
- <col ref="blodcomnm"/>
- <col ref="abo"/>
- <col ref="iryn" type="output" style="font-weight:bold; color:#ff0000; text-align:center; "/>
- <col ref="testid"/>
- <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 checkvalue="Y,N" disabled="true" ref="cs" type="checkbox"/>
- <col ref="blodcmt" type="input"/>
- <col ref="testdt" format="yyyy-mm-dd"/>
- <col ref="blodbarcd"/>
- <col ref="blodcomcd"/>
- <col ref="pid"/>
- <col ref="blodcomstatnm"/>
- <col ref="cmrslt"/>
- <col ref="rsltlist"/>
- <col ref="tnsreqacptno"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // if(grd_prepblood.isCell(event.target) && grd_prepblood.row >= grd_prepblood.fixedRows){
-
- // CM 저장할꺼
- if(grd_prepblood.col != 1){
- fSetCMRsltFit();
- }
-
- // }
-
-
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_prepblood.isCell(event.target) && grd_prepblood.row >= grd_prepblood.fixedRows){
-
- if(grd_prepblood.col == 9){
- //교차시험 완료 이후이고, 적합응급,보류혈액인 경우와 교차시험 완료 이전인 경우
- //var blodcomstat = model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/blodcomstat");
- //var rslt = model.getValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/rslt");
- //if(((blodcomstat == "3" || blodcomstat == "4" || blodcomstat == "5") && (rslt == "3" || rslt == "6")) || blodcomstat == "2"){
- fSetCMRslt();
- // }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- model.setValue("/root/main/getbloodinfo/getprepblood/getprepbloodlist["+grd_prepblood.row+"]/chk", "Y");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_prepblood.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_detllist" nodeset="/root/main/getbloodinfo/getblooddetllist" caption="처방일자^혈액성분^Type^I^처방수량^준비수량^혈액성분코드^blodbarcd^tnsreqacptno" colsep="^" colwidth="119, 100, 75, 30, 130, 127, 0,0,0" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:606px; width:640px; height:137px; ">
- <col ref="prcphopedd" format="yyyy-mm-dd"/>
- <col ref="blodcomnm"/>
- <col ref="aborh"/>
- <col ref="iryn" type="output" style="font-weight:bold; color:#ff0000; text-align:center; "/>
- <col ref="reqqty"/>
- <col ref="cno"/>
- <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_com" nodeset="/root/main/getbloodinfo/getbloodcom" caption="혈액성분^From No^To No^준비수량" colsep="^" colwidth="198, 110, 120, 80" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:645px; top:427px; width:549px; height:94px; ">
- <col ref="blodcomnm"/>
- <col ref="fromno"/>
- <col ref="tono"/>
- <col ref="pcnt"/>
- </datagrid>
- <datagrid id="grd_comment" nodeset="/root/main/getbloodinfo/getpatcmt" caption="등록일자^Comment" colsep="^" colwidth="119, 390" dataheight="23" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:645px; top:326px; width:549px; height:71px; ">
- <col ref="rgstdt" format="yyyy-mm-dd hh:nn"/>
- <col editmode="input" ref="patcmt" type="combo">
- <choices>
- <itemset nodeset="/root/init/LB0122">
- <label ref="nm"/>
- <value ref="nm"/>
- </itemset>
- </choices>
- </col>
- </datagrid>
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <caption id="caption1" class="search_no_b" visibility="hidden" style="left:563px; top:10px; width:15px; height:17px; ">~</caption>
- <caption id="caption16" class="search_name" style="left:742px; top:8px; width:93px; height:17px; ">등록번호 :</caption>
- <caption id="caption8" class="search_name" style="left:45px; top:8px; width:80px; height:17px; ">검사자 :</caption>
- <caption id="caption2" class="search_name" visibility="hidden" style="left:356px; top:9px; width:91px; height:17px; ">조회일자 :</caption>
- <button id="btn_ref" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetBloodPrcpList("rref");
- ]]>
- </script>
- </button>
- <input id="ipt_fromdd" ref="/root/hidden/ref/reffromdd" class="input_s_essential" visibility="hidden" inputtype="date" style="left:445px; top:8px; width:115px; height:19px; "/>
- <input id="ipt_testpsn" ref="/root/hidden/ref/testpsn" class="input_button" inputtype="button" style="left:128px; top:8px; width:90px; height:19px; "/>
- <output id="opt_testpsn" ref="/root/main/getUsernm/usernm" class="output_fix" style="left:221px; top:8px; width:95px; height:19px; "/>
- <input id="ipt_pid" ref="/root/hidden/ref/pid" class="input_button" inputtype="button" style="left:835px; top:8px; width:100px; height:19px; "/>
- <input id="ipt_todd" ref="/root/hidden/ref/reftodd" class="input_s_essential" visibility="hidden" inputtype="date" style="left:581px; top:8px; width:115px; height:19px; "/>
- </group>
- <line id="line10" class="line_1" style="x1:0px; y1:70px; x2:640px; y2:70px; "/>
- <line id="line12" class="line_1" style="x1:0px; y1:601px; x2:640px; y2:601px; "/>
- <caption id="caption32" class="tit_2" style="left:5px; top:55px; width:131px; height:13px; ">혈액은행 처방 목록</caption>
- <caption id="caption7" class="tit_2" style="left:5px; top:586px; width:70px; height:13px; ">수혈내역</caption>
- <line id="line8" class="line_1" style="x1:645px; y1:321px; x2:1194px; y2:321px; "/>
- <output id="output11" ref="/root/main/getBMTInfo/getBMTInfo/trnptdd" class="output_fix" style="left:1114px; top:144px; width:80px; height:19px; "/>
- <output id="output13" ref="/root/main/getBMTInfo/getBMTInfo/btype" class="output_fix" style="left:912px; top:144px; width:60px; height:19px; "/>
- <line id="line15" class="line_1" style="x1:645px; y1:70px; x2:1194px; y2:70px; "/>
- <caption id="caption3" class="tit_2" style="left:650px; top:306px; width:124px; height:13px; ">환자별 Comment</caption>
- <caption id="caption14" class="tit_2" style="left:650px; top:55px; width:70px; height:13px; ">환자정보</caption>
- <line id="line1" class="line_3" style="x1:645px; y1:166px; x2:1194px; y2:166px; "/>
- <line id="line3" class="line_1" style="x1:645px; y1:191px; x2:1194px; y2:191px; "/>
- <caption id="caption17" class="tit_2" style="left:650px; top:176px; width:70px; height:13px; ">혈액정보</caption>
- <caption id="caption15" class="tit_2" style="left:650px; top:531px; width:136px; height:13px; ">준비 혈액 내역</caption>
- <line id="line2" class="line_1" style="x1:645px; y1:546px; x2:1194px; y2:546px; "/>
- <caption id="caption13" class="tit_2" style="left:650px; top:407px; width:136px; height:8px; ">혈액성분</caption>
- <line id="line16" class="line_1" style="x1:645px; y1:422px; x2:1194px; y2:422px; "/>
- <line id="line7" class="line_3" style="x1:645px; y1:297px; x2:1194px; y2:297px; "/>
- <caption id="caption4" visibility="hidden" style="left:850px; top:305px; width:102px; height:20px; vertical-align:middle; ">진료에 보여주는거</caption>
- <button id="btn_addrow" class="btn2_letter3" style="left:1040px; top:301px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetCmtAdd();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn2_letter2" style="left:1152px; top:301px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // cmt 저장
- fExePatCmt();
- ]]>
- </script>
- </button>
- <output id="opt_pid" ref="/root/main/getbloodinfo/getpatinfo/pid" class="font_pid" style="left:645px; top:75px; width:300px; height:65px; text-align:left; "/>
- <output id="opt_patnm" ref="/root/main/getbloodinfo/getpatinfo/patnm" class="font_pid" style="left:948px; top:75px; width:245px; height:65px; text-align:left; "/>
- <output id="opt_sexage" ref="/root/main/getbloodinfo/getpatinfo/sexage" class="output_fix" visibility="hidden" style="left:840px; top:400px; width:55px; height:19px; "/>
- <output id="opt_rstno" ref="/root/main/getbloodinfo/getpatinfo/rstno" class="output_fix" style="left:733px; top:144px; width:95px; height:19px; "/>
- <output id="opt_iogbn" ref="/root/main/getbloodinfo/getpatinfo/prcpgenrflag" class="output_fix" visibility="hidden" style="left:900px; top:400px; width:80px; height:19px; "/>
- <output id="opt_dept" ref="/root/main/getbloodinfo/getpatinfo/orddeptnm" class="output_fix" visibility="hidden" style="left:1050px; top:400px; width:49px; height:19px; "/>
- <output id="opt_wardroom" ref="/root/main/getbloodinfo/getpatinfo/wardroom" class="output_fix" visibility="hidden" style="left:1105px; top:400px; width:80px; height:19px; "/>
- <output id="opt_abo" ref="/root/main/getbloodinfo/getpatinfo/aborh" class="font_ab" style="left:645px; top:221px; width:150px; height:75px; font-size:36pt; word-wrap:word; "/>
- <output id="output1" ref="/root/main/getbloodinfo/getpatinfo/orddrnm" class="output_fix" visibility="hidden" style="left:985px; top:400px; width:60px; height:19px; "/>
- <line id="line4" class="line_2" style="x1:946px; y1:75px; x2:946px; y2:137px; "/>
- <datagrid id="grd_lastrslt" nodeset="/root/main/getbloodinfo/getblodinforslt/row" visibility="visible" caption="a^b^c^d^e^f^g^h^i^j^k^l" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="23" defaultrows="2" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:798px; top:196px; width:396px; height:100px; ">
- <col ref="a1"/>
- <col ref="a2"/>
- <col ref="a3"/>
- <col ref="a4"/>
- <col ref="a5"/>
- <col ref="a6"/>
- <col ref="a7"/>
- <col ref="a8"/>
- <col ref="a9"/>
- <col ref="a10"/>
- <col ref="a11"/>
- <col ref="a12"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_lastrslt.isCell(event.target) && grd_lastrslt.row >= grd_lastrslt.fixedRows){
- fGetBlodInfoHistory();
- }
- ]]>
- </script>
- </datagrid>
- <select id="checkbox2" ref="/root/hidden/cancel/cancelgbn" overflow="visible" appearance="full" style="left:1081px; top:527px; width:70px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>접수취소</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <button id="btn_cancel" class="btn2_letter2" style="left:1152px; top:525px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fPrepCancel();
- fCMCancel();
- ]]>
- </script>
- </button>
- <caption id="caption12" class="cell_1" style="left:645px; top:196px; width:150px; height:23px; vertical-align:middle; ">환자혈액형</caption>
- <caption id="caption5" class="cell_1" style="left:645px; top:142px; width:85px; height:23px; vertical-align:middle; ">주민등록번호</caption>
- <caption id="caption10" class="cell_1" style="left:1076px; top:142px; width:35px; height:23px; vertical-align:middle; ">일시</caption>
- <line id="line5" class="line_2" style="x1:645px; y1:140px; x2:1194px; y2:140px; "/>
- <select id="chk_cmend" ref="/root/hidden/ref/cmend" visibility="hidden" overflow="visible" appearance="full" style="left:143px; top:54px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>CM완료 포함</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <caption id="caption11" class="cell_1" style="left:975px; top:142px; width:35px; height:23px; vertical-align:middle; ">Do</caption>
- <caption id="caption18" class="cell_1" style="left:874px; top:142px; width:35px; height:23px; vertical-align:middle; ">Pt</caption>
- <output id="output2" ref="/root/main/getBMTInfo/getBMTInfo/dnorbtype" class="output_fix" style="left:1013px; top:144px; width:60px; height:19px; "/>
- <button id="button2" class="btn2_letter3" style="left:1096px; top:301px; width:56px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelCmtAdd();
- ]]>
- </script>
- </button>
- <group id="grp_bmtinfo" visibility="hidden" style="left:865px; top:170px; width:330px; height:215px; border-color:#5abaff; border-width:1px; border-style:solid; ">
- <datagrid id="gdp_bmtinfo" nodeset="/root/main/getBMTInfo/getBMTInfoList" caption="이식전 btype^공여자 btype^이식일자^차수" colsep="^" colwidth="100, 80, 80, 40" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:324px; height:190px; ">
- <col ref="btype"/>
- <col ref="dnorbtype"/>
- <col ref="trnptdd" format="yyyy-mm-dd"/>
- <col ref="trnptdg"/>
- </datagrid>
- <button id="button7" class="btn2_letter2" style="left:280px; top:191px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_bmtinfo.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_history" visibility="hidden" style="left:984px; top:195px; width:210px; height:190px; border-color:#5abaff; border-width:1px; border-style:solid; ">
- <datagrid id="datagrid1" nodeset="/root/main/getbloodinfo/blodrslthistory" caption="일자^결과" colsep="^" colwidth="100, 86" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:208px; height:163px; ">
- <col ref="rsltdt" format="yyyy-mm-dd"/>
- <col ref="rslt"/>
- </datagrid>
- <button id="button1" class="btn2_letter2" style="left:166px; top:166px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_history.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <select id="checkbox1" ref="/root/hidden/cancel/preplog" visibility="hidden" overflow="visible" appearance="full" style="left:1030px; top:528px; width:46px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>신청</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <button id="button8" class="btn2_letter2" style="left:830px; top:143px; width:42px; height:19px; ">
- <caption>BMT</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetBMTInfo("list");
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_cm" class="btn4_letter6" style="left:1021px; top:3px; width:80px; height:22px; ">
- <caption>CM 결과저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetRsltReg();
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- finit();
- ]]>
- </script>
- </button>
- </group>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- <caption id="caption19" style="left:220px; top:12px; width:55px; height:25px; font-size:12pt; font-weight:bold; border-color:#f3e1bf; border-width:1px; border-style:solid; ">보검</caption>
- <caption id="cap_keep" ref="/root/hidden/keepno" style="left:285px; top:12px; width:85px; height:25px; font-size:14pt; font-weight:bold; border-color:#f3e1bf; border-width:1px; border-style:solid; "/>
- </xhtml:body>
- </xhtml:html>
|