123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLR00400_판독결과관리.xrw
- * 설 명 : 판독결과관리
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 윤재한
- * 작 성 일 : 2007.11.05
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" ztype="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>
- <testinfo>
- <spcltestinfo>
- <extrtestinstcd/>
- <pid/>
- <patnm/>
- <orddeptnm/>
- <orddrnm/>
- <bcno/>
- <bcolldt/>
- <spcacptdt/>
- <lastreptdt/>
- <medispcdt/>
- <testcd/>
- <tclsscrnm/>
- <descrslt/>
- <testlrgkind/>
- <tclscd/>
- <prcpdd/>
- </spcltestinfo>
- <detailtestinfo>
- <testcd/>
- <tclsscrnnm/>
- <inptrslt/>
- </detailtestinfo>
- </testinfo>
- <imglist>
- <rsltseqno/>
- <lastupdtrdt/>
- <imght/>
- <imgwidt/>
- </imglist>
- <view>
- <imgnm/>
- <imgrslt/>
- <imgwidt/>
- <imght/>
- <rsltseqno/>
- <savdelflag/>
- </view>
- <rsltcode>
- <cd/>
- <nm/>
- </rsltcode>
- <rslt>
- <desc>
- <rslt>
- <refflag/>
- <readrslt/>
- <bm/>
- <comment/>
- <inter/>
- </rslt>
- </desc>
- </rslt>
- <getUsernm>
- <usernm/>
- </getUsernm>
- </main>
- <send>
- <data1/>
- <data2/>
- <bcno/>
- <testcd/>
- <pid/>
- </send>
- <init/>
- <hidden>
- <TestData>
- <bcno/>
- <testcd/>
- <spccd/>
- <inptrslt/>
- <rsltstat/>
- <testlrgkind/>
- <descrslt/>
- <inter/>
- </TestData>
- <default/>
- <rsltseqno/>
- <rsltseqnold/>
- <RelationParm>
- <pid/>
- <tclsscrnnm/>
- <testcd/>
- <spccd/>
- </RelationParm>
- <testid/>
- <testnm/>
- <readid/>
- <readnm/>
- <ref>
- <refgbn/>
- <text/>
- <spclno/>
- </ref>
- <refparam>
- <refflag/>
- <refflag2/>
- </refparam>
- <spcltestkind/>
- <readexmp/>
- <readexmpadd/>
- <xslt>
- <signno/>
- <form/>
- </xslt>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- fSetClear();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fBaseInfoRef("0901|0109|");
-
- var op = open("SPLRR90700", "", "", "", "", "/root/properties/menu/menuparam", "/root/hidden/testgroup/formkind"); //환자리스트
-
- model.setFocus("ipt_reftext");
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-model-destruct">
- <![CDATA[
- setCloseChildWindow(); //화면전환시 child가 close되도록 저장
- closeChildWindow(); //화면전환시 child닫기로 지정된 경우 해당 child를 모두 닫는다.
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <submission id="TRLZZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/LB0103"/>
- <submission id="TRLZZ00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getUsernm"/>
- <submission id="TXLRR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TXLRR00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLRR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/patlist"/>
- <submission id="TRLRR00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testinfo"/>
- <submission id="TRLRR00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rslt/desc/rslt/cbcrslt"/>
- <submission id="TRLRR00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/readrslt"/>
- <submission id="TRLRR00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rslt"/>
- <submission id="TRLRR00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rslt/desc/rslt/detltclsinfo"/>
- <submission id="TRLRR00405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rslt/desc/rslt/mal1"/>
- <submission id="TRLRR00406" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getUsernm"/>
- <submission id="TRLRR00407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rslt/desc/rslt/bm"/>
- <submission id="TRLRR00408" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rslt/desc/rslt/fishrslt"/>
- <submission id="TRLRR00409" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rslt/desc/rslt/proteinEP"/>
- <submission id="TRLRP00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rslt/desc/patinfo"/>
- <submission id="TRLRR01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/imglist"/>
- <submission id="TRLRR01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/view"/>
- <submission id="TRLRR90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rslt/desc/rslt/testlist"/>
- <submission id="TRLRR90402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rslt/desc/rslt/bfbm"/>
- <submission id="TRLRR90403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rslt/desc/patinfo"/>
- <submission id="TRLRR01505" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testinfo/spcltestinfo/address"/>
- </model>
- <script type="javascript">
- <![CDATA[
- //초기화
- function fSetClear(flag) {
- model.resetInstanceNode("/root/");
-
- if(flag != "P") { //화면 열었을 경우 또는 초기화 눌렀을때.
- fBaseInfoRef("0901|0109|"); // 0901 : 특수검사 그룹, 0109 : 결과코드
-
- model.setvalue("/root/hidden/ref/refgbn" , "1");
- model.setvalue("/root/hidden/ref/text" , "");
- model.setValue("/root/hidden/readexmpadd", "Y");
-
- var param = model.getValue("/root/properties/menu/menuparam");
-
- model.setValue("/root/main/rslt/desc/rslt/refflag", param); //메뉴파람 or 특수결과양식유형 에 따른..
-
- fTranscrn();//화면전환
- }else { //결과저장 후 화면초기화(flag = 'P')
- model.removenode("/root/main/rslt/desc/rslt"); //서술결과 지움
- model.removeNodeset("/root/main/rslt/desc/rslt/osmotic"); //osmotic 경우 입력했던 OD값 및 %값 지움
-
- if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "05") { //osmotic 인 경우
- fGridMake(); //그리드 생성
- }
- }
-
- model.setFocus("ipt_reftext");
-
- model.removeNodeset("/root/main/rsltcode"); //결과코드 지움
- model.removeNodeset("/root/main/rslt/desc/rslt/cbcrslt"); //CBC결과
- model.removeNodeset("/root/main/rslt/desc/rslt/testlist");//연관검사
- model.removeNodeset("/root/main/testinfo/spcltestinfo");//환자정보
- model.removenode("/root/main/imglist"); //이미지 콤보 지움
- model.removenode("/root/main/view"); //이미지 지움
- model.removenode("/root/main/imglistld"); //LD 이미지 콤보 지움
- model.removenode("/root/main/viewld"); //LD 이미지 지움
- model.removenode("/root/main/testinfo"); //grd_rslt 지움
-
- model.refresh();
- }
-
- //화면 전환
- function fTranscrn() {
- if(model.getValue("/root/main/rslt/desc/rslt/refflag") != "05") {
- model.removenode("/root/main/rslt/desc/rslt/osmotic");
- }
-
- var yy = getCurrentDate(); //특수검사연번호때문
- yy = yy.substr(2, 2);
-
- import1.visible = false;
- import2.visible = false;
- import3.visible = false;
- import4.visible = false;
- import5.visible = false;
- import6.visible = false;
- import7.visible = false;
- import8.visible = false;
- import9.visible = false;
- import10.visible = false;
- import11.visible = false;
- import12.visible = false;
- import13.visible = false;
- import14.visible = false;
- import15.visible = false;
-
- import1.disabled = true;
- import2.disabled = true;
- import3.disabled = true;
- import4.disabled = true;
- import5.disabled = true;
- import6.disabled = true;
- import7.disabled = true;
- import8.disabled = true;
- import9.disabled = true;
- import10.disabled = true;
- import11.disabled = true;
- import12.disabled = true;
- import13.disabled = true;
- import14.disabled = true;
- import15.disabled = true;
-
- if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "01") { //Bone Marrow
- //model.toggle("bm");
-
- import1.disabled = false;
- import1.visible = true;
-
- btn_bm_desc.dispatch("DOMActivate");
- btn_bm_desc.selected = true;
-
- cpt_title.attribute("text") = "Bone Marrow 결과관리";
-
- model.setValue("/root/main/rslt/desc/rslt/refflag", "01");
-
- model.setValue("/root/hidden/ref/spclno", "B" + yy + "-"); //특수검사연번호
- } else if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "02") { //분자유전
- //model.toggle("mole");
-
- import2.disabled = false;
- import2.visible = true;
-
- btn_mole_desc.dispatch("DOMActivate");
- btn_mole_desc.selected = true;
-
- cpt_title.attribute("text") = "분자유전 결과관리";
-
- model.setValue("/root/main/rslt/desc/rslt/refflag", "02");
-
- model.setValue("/root/hidden/ref/spclno", yy + "-"); //특수검사연번호
- } else if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "03") { //세포유전
- //model.toggle("cell");
-
- import3.visible = true;
- import3.disabled = false;
-
- btn_cell_desc.dispatch("DOMActivate");
- btn_cell_desc.selected = true;
-
- cpt_title.attribute("text") = "세포유전 결과관리";
-
- model.setValue("/root/main/rslt/desc/rslt/refflag", "03");
-
- model.setValue("/root/hidden/ref/spclno", yy + "-"); //특수검사연번호
- } else if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "04") { //Immunophenotyping
- //model.toggle("im");
- import4.visible = true;
- import4.disabled = false;
-
- cpt_title.attribute("text") = "Immunophenotyping 결과관리";
-
- model.setValue("/root/main/rslt/desc/rslt/refflag", "04");
-
- model.setValue("/root/hidden/ref/spclno", yy + "-"); //특수검사연번호
- } else if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "05") { //Osmotic
- //model.toggle("of");
-
- import5.visible = true;
- import5.disabled = false;
-
- cpt_title.attribute("text") = "Osmotic Fragility 결과관리";
-
- if(getNodesetCount("/root/main/rslt/desc/rslt/osmotic") < 1) {
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/f1con");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/e1con");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/f24con");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/e24con");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/f1pat");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/e1pat");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/f24pat");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/e24pat");
- }
-
- model.setValue("/root/hidden/ref/spclno", "OFT" + yy + "-"); //특수검사연번호
-
- fGridMake();
- } else if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "06") { //ICG
- //model.toggle("icg");
-
- import6.visible = true;
- import6.disabled = false;
-
- cpt_title.attribute("text") = "ICG 결과관리";
-
- model.setValue("/root/main/rslt/desc/rslt/refflag", "06");
-
- model.setValue("/root/hidden/ref/spclno", yy + "-"); //특수검사연번호
- } else if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "07") { //PB
- //model.toggle("pb");
-
- import7.visible = true;
- import7.disabled = false;
-
- cpt_title.attribute("text") = "PB 결과관리";
-
- model.setValue("/root/main/rslt/desc/rslt/refflag", "07");
-
- model.setValue("/root/hidden/ref/spclno", "PB" + yy + "-"); //특수검사연번호
- } else if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "08") { //EP
- //model.toggle("ep");
-
- import8.visible = true;
- import8.disabled = false;
-
- cpt_title.attribute("text") = "EP 결과관리";
-
- model.setValue("/root/main/rslt/desc/rslt/refflag", "08");
-
- model.setValue("/root/hidden/ref/spclno", yy + "-"); //특수검사연번호
- } else if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "09") { //산전기형
- //model.toggle("befchildbrth");
-
- import9.visible = true;
- import9.disabled = false;
-
- cpt_title.attribute("text") = "산전기형 결과관리";
-
- model.setValue("/root/main/rslt/desc/rslt/refflag", "09");
-
- model.setValue("/root/hidden/ref/spclno", yy + "-"); //특수검사연번호
- } else if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "10") { //PRA
- //model.toggle("pra");
-
- import10.visible = true;
- import10.disabled = false;
-
- cpt_title.attribute("text") = "PRA 결과관리";
-
- model.setValue("/root/main/rslt/desc/rslt/refflag", "10");
-
- model.setValue("/root/hidden/ref/spclno", yy + "-"); //특수검사연번호
- } else if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "11") { //교차시험
- //model.toggle("cm");
-
- import11.visible = true;
- import11.disabled = false;
-
- cpt_title.attribute("text") = "교차시험 결과관리";
-
- model.setValue("/root/main/rslt/desc/rslt/refflag", "11");
-
- model.setValue("/root/hidden/ref/spclno", yy + "-"); //특수검사연번호
- } else if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "12") { //TDM
- //model.toggle("tdm");
-
- import12.visible = true;
- import12.disabled = false;
-
- cpt_title.attribute("text") = "TDM 결과관리";
-
- model.setValue("/root/main/rslt/desc/rslt/refflag", "12");
-
- model.setValue("/root/hidden/ref/spclno", yy + "-"); //특수검사연번호
- } else if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "13") { //CKLD
- //model.toggle("ckld");
-
- import13.visible = true;
- import13.disabled = false;
-
- cpt_title.attribute("text") = "CKLD 결과관리";
-
- model.setValue("/root/main/rslt/desc/rslt/refflag", "13");
-
- model.setValue("/root/hidden/ref/spclno", yy + "-"); //특수검사연번호
-
- }else if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "14") { //CKLD
- //model.toggle("fish");
-
- import14.visible = true;
- import14.disabled = false;
-
- btn_fish_desc.dispatch("DOMActivate");
- btn_fish_desc.selected = true;
-
- cpt_title.attribute("text") = "fish&염색체 결과관리";
-
- model.setValue("/root/main/rslt/desc/rslt/refflag", "14");
-
- model.setValue("/root/hidden/ref/spclno", yy + "-"); //특수검사연번호
-
- }else if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "99") { //범용보고서
- //model.toggle("wideuse");
-
- import15.visible = true;
- import15.disabled = false;
-
- cpt_title.attribute("text") = "범용보고서 결과관리";
-
- model.setValue("/root/main/rslt/desc/rslt/refflag", "99");
-
- model.setValue("/root/hidden/ref/spclno", yy + "-"); //특수검사연번호
- }
-
- model.refresh();
- }
-
- //환자정보 조회
- function fOnclick_grd_patList(flag){
- model.makeValue("/root/main/rslt/desc/rslt/readrslt", "");
-
- if(flag != "R") { //PB 처럼 판독에서 결과 저장을 하지 않고 검체별에서 결과저장을 한 경우 다시 조회 (flag = "R")가 아니다.
- model.resetInstanceNode("/root/main/testinfo");
- model.resetInstanceNode("/root/main/imglist");
- model.resetInstanceNode("/root/main/imglistld");
- model.resetInstanceNode("/root/main/view");
- model.resetInstanceNode("/root/main/viewld");
- model.removeNodeset("/root/main/rslt/desc/rslt/bfbm");
- model.removeNodeset("/root/main/rslt/desc/rslt/beforerslt");
- model.removeNodeset("/root/main/rslt/desc/rslt/pra");
- model.removeNodeset("/root/main/rslt/desc/rslt/cm");
- model.removeNodeset("/root/main/rslt/desc/rslt/sst");
- model.removeNodeset("/root/main/rslt/desc/rslt/diff");
- model.removeNodeset("/root/main/rslt/desc/rslt/ihc");
- model.removeNodeset("/root/main/rslt/desc/rslt/testlist");
- model.removeNodeset("/root/main/rslt/desc/rslt/cbcrslt");
- model.removeNodeset("/root/main/rslt/desc/rslt/mal1");
- model.removeNodeset("/root/main/rslt/desc/rslt/mal2");
- model.removeNodeset("/root/main/rslt/desc/rslt/mal3");
- model.removeNodeset("/root/main/rslt/desc/rslt/ckld");
- model.removeNodeset("/root/main/rslt/desc/rslt/proteinEP");
- model.removeNodeset("/root/main/rslt/desc/rslt/bm");
- model.removeNodeset("/root/main/rslt/desc/rslt/fishinfo");
- model.removeNodeset("/root/main/rslt/desc/rslt/fishrslt");
- model.removeNodeset("/root/main/rslt/desc/rslt/address");
-
- model.makeValue("/root/send/bcno" , model.getvalue("/root/hidden/refflag/bcno"));
- model.makeValue("/root/send/testcd" , model.getvalue("/root/hidden/refflag/testcd"));
- model.makeValue("/root/send/prcpgenrflag" , model.getvalue("/root/hidden/refflag/prcpgenrflag"));
- model.makeValue("/root/send/spclrsltformkind" , model.getvalue("/root/hidden/refflag/spclrsltformkind"));
- submit("TRLRR00102"); //환자정보 & 검사리스트
-
-
- if(model.getValue("/root/main/testinfo/spcltestinfo/lastreptid" ) !== ""){
-
- model.setValue("/root/hidden/testid",model.getValue("/root/main/testinfo/spcltestinfo/lastreptid"));
- fUserNMRef("t");
- }
- if(model.getValue("/root/main/testinfo/spcltestinfo/medireptid" ) !== ""){
-
- model.setValue("/root/hidden/readid",model.getValue("/root/main/testinfo/spcltestinfo/medireptid"));
- fUserNMRef("r");
-
-
- }
- // if(model.getValue("/root/main/testinfo/spcltestinfo/lastreptid") == "" ){
- // //alert(1111111);
- // model.setValue("/root/hidden/testid","");
- // model.setValue("/root/hidden/testnm","");
- //
- // }
- // if(model.getValue("/root/main/testinfo/spcltestinfo/medispclid") == "" ){
- // //alert(1111111);
- // model.setValue("/root/hidden/readid","");
- // model.setValue("/root/hidden/readnm","");
- //
- // }
- model.refresh();
- submit("TRLRR00402"); //판독예문
-
- model.removeNodeset("/root/send/bcno");
- model.removeNodeset("/root/send/testcd");
- model.removeNodeset("/root/send/prcpgenrflag");
- }
-
- if(getNodesetCount("/root/main/testinfo/spcltestinfo") > 0) { //환자정보가 있을경우
- if(getNodesetCount("/root/main/testinfo/spcltestinfo/reqcnts/reqfrminfo") > 0) { //의뢰지가 있을 경우 의뢰서 조회 버튼 보이게
- btn_reqref.attribute("visibility") = "visible";
- } else { //의뢰지가 없을 경우 의뢰서 조회 버튼 안 보이게
- btn_reqref.attribute("visibility") = "hidden";
- }
-
- if(flag != "R") { //PB 처럼 판독에서 결과 저장을 하지 않고 검체별에서 결과저장을 한 경우 다시 조회 (flag = "R")가 아니다.
- fUpPatinfo();
- fRsltCode("");
- }
-
- var refNo = model.getValue("/root/main/rslt/desc/rslt/refflag");
-
- if(model.getValue("/root/main/testinfo/spcltestinfo/rsltstat") == "-" || flag == "R") { //재조회이거나 결과플래그가 '-'일 때
- //alert("A");
- if(refNo == "01") { //Bone Marrow 결과입력
- model.makeNode("/root/main/rslt/desc/rslt/ssr");
- model.makeNode("/root/main/rslt/desc/rslt/inter");
- model.makeNode("/root/main/rslt/desc/rslt/comments");
-
- fGetCBCRslt("01"); //CBC 결과
- fGetRelRslt(); //연관검사
- fGetBInterRslt(); //이전검사
- fGetSD(); //Special stain과 BM Diff.count
- fImgRslt("cmb_bm_seq", "cpt_bm_noimg", "img_bm");
- } else if(refNo == "02") { // 분자유전
- fGetBInterRslt("D"); //Bone Marrow 이전결과와 이전결과
-
- fGetDetlTcls(); //세부검사
-
- fImgRslt("cmb_mole_seq", "cpt_mole_noimg", "img_mole"); //이미지
- } else if(refNo == "03") { //세포유전
- model.makeNode("/root/main/rslt/desc/rslt/inter");
- model.makeNode("/root/main/rslt/desc/rslt/comments");
-
- //model.setValue("/root/main/rslt/desc/rslt/comments","aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
- fGetBInterRslt("D"); //Bone Marrow 이전결과와 이전결과
- fGetRelRslt();// 연관검사
- fImgRslt("cmb_cell_seq", "cpt_cell_noimg", "img_cell"); //이미지
- fAddress();
- model.makeValue("/root/main/rslt/desc/rslt/address/basecd",model.getValue("/root/main/testinfo/spcltestinfo/address/basecd"));
- model.makeValue("/root/main/rslt/desc/rslt/address/basecdidnm",model.getValue("/root/main/testinfo/spcltestinfo/address/basecdidnm"));
- model.makeValue("/root/main/rslt/desc/rslt/address/basecdnm",model.getValue("/root/main/testinfo/spcltestinfo/address/basecdnm"));
- model.makeValue("/root/main/rslt/desc/rslt/address/basecddesc",model.getValue("/root/main/testinfo/spcltestinfo/address/basecddesc"));
- } else if(refNo == "04") { //Immunophenotyping
- fGetBInterRslt("D"); //Bone Marrow 이전결과와 이전결과
-
- fGetDetlTcls(); //세부검사
-
- if(getNodesetCount("/root/main/rslt/desc/rslt/detltclsinfo") > 0) {
- for(i = 9; i <= getNodesetCount("/root/main/rslt/desc/rslt/detltclsinfo"); i++) {
- model.makeNode("/root/main/rslt/desc/rslt/detltclsinfo2");
-
- if(getNodesetCount("/root/main/rslt/desc/rslt/detltclsinfo2/testcd") < 1) {
- copyNodesetType("/root/main/rslt/desc/rslt/detltclsinfo2", "/root/main/rslt/desc/rslt/detltclsinfo["+ i +"]");
- } else {
- copyNodesetType("/root/main/rslt/desc/rslt/detltclsinfo2", "/root/main/rslt/desc/rslt/detltclsinfo["+ i +"]", "after");
- }
- model.removeNodeset("/root/main/rslt/desc/rslt/detltclsinfo["+ i +"]");
- i = i - 1;
- }
- }
-
- model.refresh();
- } else if(refNo == "05") { //Osmotic
- fImgRslt("cmb_of_seq", "cpt_of_noimg", "img_of"); //이미지
- } else if(refNo == "06") { //ICG
- model.makeNode("/root/main/rslt/desc/rslt/icg/min5");
- model.makeNode("/root/main/rslt/desc/rslt/icg/min10");
- model.makeNode("/root/main/rslt/desc/rslt/icg/min15");
- model.makeNode("/root/main/rslt/desc/rslt/icg/sosil");
- model.makeNode("/root/main/rslt/desc/rslt/icg/vangam");
- model.makeNode("/root/main/rslt/desc/rslt/icg/r15");
-
- fImgRslt("cmb_icg_seq", "cpt_icg_noimg", "img_icg"); //이미지
- } else if(refNo == "07") { //PB 결과입력
- fGetCBCRslt("07");
-
- model.removeNodeset("/root/main/rslt/desc/rslt/cbc2");
-
- var count = getNodesetCount("/root/main/rslt/desc/rslt/cbcrslt");
- var val = model.getValue("/root/main/rslt/desc/rslt/cbcrslt["+ count +"]/testcd");
- var i = 0;
-
- if(count > 0) {
-
- for(j = 1; j <= count; j++) {
- tcls = model.getValue("/root/main/rslt/desc/rslt/cbcrslt["+ j +"]/testcd");
-
- if(tcls.substr(3, 3) == "105") { //diff결과는 다른 그리드에 표현
- if(i == 0) {
- model.makeNode("/root/main/rslt/desc/rslt/cbc2");
- }
-
- if(getNodesetCount("/root/main/rslt/desc/rslt/cbc2/testcd") < 1) {
- copyNodesetType("/root/main/rslt/desc/rslt/cbc2", "/root/main/rslt/desc/rslt/cbcrslt["+ j +"]");
- } else {
- copyNodesetType("/root/main/rslt/desc/rslt/cbc2", "/root/main/rslt/desc/rslt/cbcrslt["+ j +"]", "after");
- }
-
- if(model.getValue("/root/main/rslt/desc/rslt/cbcrslt["+ j +"]/testcd") == val) {
- model.removeNodeset("/root/main/rslt/desc/rslt/cbcrslt["+ j +"]");
- break;
- } else {
- model.removeNodeset("/root/main/rslt/desc/rslt/cbcrslt["+ j +"]");
- }
- j = j - 1;
- i++;
- }
- }
-
- model.refresh();
- }
- fGetMalRslt();
- } else if(refNo == "08") { //EP
- //alert(tclscd);
- var tclscd = model.getValue("/root/main/testinfo/spcltestinfo/tclscd");
- //alert(tclscd);
- model.makeValue("/root/main/rslt/desc/rslt/tclscd",tclscd);
-
- if( tclscd == "LSI103" || tclscd == "LSI102"){
- //alert("!@$@#$$!@$");
- fGetproteinEP();//proteinEP검사
- for (i=1;i <= grd_proteinEP.rows;i++){
- //alert("!!!!!!!!!!!!!!!!!!!!!!");
- var vJudg1 = model.getvalue("/root/main/rslt/desc/rslt/proteinEP["+i+"]/judgmarkorigin");
-
- if(vJudg1 == "H"){
- grd_proteinEP.cellStyle ("background-color",i,3,i,3) = "#f7a08b";
- }
- else if(vJudg1 == "L"){
- grd_proteinEP.cellStyle ("background-color",i,3,i,3) = "#b9e5fb";
- }
- else{
- grd_proteinEP.cellStyle ("background-color",i,3,i,3) = "#ffffff";
- }
-
- var vJudg2 = model.getvalue("/root/main/rslt/desc/rslt/proteinEP["+i+"]/judgmarkpersent");
-
- if(vJudg2 == "H"){
- grd_proteinEP.cellStyle ("background-color",i,5,i,5) = "#f7a08b";
- }
- else if(vJudg2 == "L"){
- grd_proteinEP.cellStyle ("background-color",i,5,i,5) = "#b9e5fb";
- }
- else{
- grd_proteinEP.cellStyle ("background-color",i,5,i,5) = "#ffffff";
- }
- }
-
- }
- else{
- //alert("$#@$@#$@#$@#$@#$@#$@#");
- fGetDetlTcls(); //세부검사
- }
-
-
-
- if( tclscd == "LSI103" || tclscd == "LSI102"){
- grd_proteinEP.attribute("visibility") = "visible"
- grd_ep_dtcl.attribute("visibility") = "hidden"
- }
- else{
- grd_proteinEP.attribute("visibility") = "hidden"
- grd_ep_dtcl.attribute("visibility") = "visible"
- }
- if(tclscd == "LSI103"){
- grd_proteinEP.caption = "^검사명^정량(mg/dL)^참고치(mg/dL)^결과(%)^참고치(%)^이전결과^";
- }
- if(tclscd == "LSI102"){
- grd_proteinEP.caption = "^검사명^정량(g/dL)^참고치(g/dL)^결과(%)^참고치(%)^이전결과^";
- }
- fGetRelRslt(); //연관검사
-
- fImgRslt("cmb_ep_seq", "cpt_ep_noimg", "img_ep"); //이미지
- } else if(refNo == "09") { //산전기형
- fGetRelRslt(); //연관검사
- } else if(refNo == "10") { //PRA
- fGetPRA(); //PRA 검사항목
- } else if(refNo == "11") { //교차시험
- fGetCM(); //교차시험 검사항목
- } else if(refNo == "12") { //TDM
- fGetRelRslt(); //연관검사
- } else if(refNo == "13") { //CKLD
- fGetCKLD(); //CKLD 검사항목
- var testcd = model.getValue("/root/main/testinfo/spcltestinfo/testcd");
-
- model.setValue("/root/main/testinfo/spcltestinfo/testcd", "LSI113"); //LD 이미지 조회하기 위해 임시로 LD 코드로 박음.
- fImgRslt("cmb_ld_seq", "cpt_ld_noimg", "img_ld"); //이미지
- model.setValue("/root/main/testinfo/spcltestinfo/testcd", testcd); //원상복귀..
-
- fImgRslt("cmb_ck_seq", "cpt_ck_noimg", "img_ck"); //이미지
- } else if(refNo == "14"){
- model.makeNode("/root/main/rslt/desc/rslt/inter");
- model.makeNode("/root/main/rslt/desc/rslt/comments");
- model.makenode("/root/main/rslt/desc/rslt/fishrslt/reptrslt1");
- model.makenode("/root/main/rslt/desc/rslt/fishrslt/reptrslt2");
- fGetFishRslt();
- fAddress();
- model.makeValue("/root/main/rslt/desc/rslt/address/basecd",model.getValue("/root/main/testinfo/spcltestinfo/address/basecd"));
- model.makeValue("/root/main/rslt/desc/rslt/address/basecdidnm",model.getValue("/root/main/testinfo/spcltestinfo/address/basecdidnm"));
- model.makeValue("/root/main/rslt/desc/rslt/address/basecdnm",model.getValue("/root/main/testinfo/spcltestinfo/address/basecdnm"));
- model.makeValue("/root/main/rslt/desc/rslt/address/basecddesc",model.getValue("/root/main/testinfo/spcltestinfo/address/basecddesc"));
-
- model.makeValue("/root/main/rslt/desc/rslt/tclscd",model.getValue("/root/main/testinfo/spcltestinfo/tclscd"));
-
- if(model.getValue("/root/main/testinfo/spcltestinfo/tclscd") == "LDR113") {
- grd_fishrslt1.attribute("visibility") = "hidden"
- grd_fishrslt2.attribute("visibility") = "visible"
- }else {
- grd_fishrslt1.attribute("visibility") = "visible"
- grd_fishrslt2.attribute("visibility") = "hidden"
- }
-
- model.refresh();
- } else if(refNo == "99") { //범용
- fGetDetlTcls(); //세부검사
-
- if(getNodesetCount("/root/main/rslt/desc/rslt/detltclsinfo") > 0) {
- for(i = 13; i <= getNodesetCount("/root/main/rslt/desc/rslt/detltclsinfo"); i++) {
- model.makeNode("/root/main/rslt/desc/rslt/detltclsinfo2");
-
- if(getNodesetCount("/root/main/rslt/desc/rslt/detltclsinfo2/testcd") < 1) {
- copyNodesetType("/root/main/rslt/desc/rslt/detltclsinfo2", "/root/main/rslt/desc/rslt/detltclsinfo["+ i +"]");
- } else {
- copyNodesetType("/root/main/rslt/desc/rslt/detltclsinfo2", "/root/main/rslt/desc/rslt/detltclsinfo["+ i +"]", "after");
- }
- model.removeNodeset("/root/main/rslt/desc/rslt/detltclsinfo["+ i +"]");
- i = i - 1;
- }
- }
-
- model.refresh();
-
- fImgRslt("cmb_wideuse_seq", "cpt_wideuse_noimg", "img_wideuse"); //이미지
- }
- } else { //결과저장 및 결과보고 되어있을 경우 서술결과(판독결과)만 조회
- fGetRead();
- // alert("B");
- refNo = model.getValue("/root/main/rslt/desc/rslt/refflag");
-
- if(refNo == "01") {
- fImgRslt("cmb_bm_seq", "cpt_bm_noimg", "img_bm");
- } else if(refNo == "02") {
- fImgRslt("cmb_mole_seq", "cpt_mole_noimg", "img_mole");
- } else if(refNo == "03") {
- fImgRslt("cmb_cell_seq", "cpt_cell_noimg", "img_cell");
- } else if(refNo == "05") { //Osmotic Fragility
- fImgRslt("cmb_of_seq", "cpt_of_noimg", "img_of"); //이미지
- } else if(refNo == "06") { //ICG
- fImgRslt("cmb_icg_seq", "cpt_icg_noimg", "img_icg"); //이미지
- } else if(refNo == "07") { //PB
- setRowStyle("grd_pb_mal1", "0", "", "testcd");
- setRowStyle("grd_pb_mal2", "0", "", "testcd");
- setRowStyle("grd_pb_mal3", "0", "", "testcd");
- } else if(refNo == "08") { //EP
-
- fGetRelRslt(); //연관검사
-
- var tclscd = model.getValue("/root/main/testinfo/spcltestinfo/tclscd");
- model.makeValue("/root/main/rslt/desc/rslt/tclscd",tclscd);
-
- if( tclscd == "LSI103" || tclscd == "LSI102"){
- grd_proteinEP.attribute("visibility") = "visible";
- grd_ep_dtcl.attribute("visibility") = "hidden";
- }
- else{
- grd_proteinEP.attribute("visibility") = "hidden";
- grd_ep_dtcl.attribute("visibility") = "visible";
- }
- if(tclscd == "LSI103"){
- grd_proteinEP.caption = "^검사명^정량(mg/dL)^참고치(mg/dL)^결과(%)^참고치(%)^이전결과^";
- }
- if(tclscd == "LSI102"){
- grd_proteinEP.caption = "^검사명^정량(g/dL)^참고치(g/dL)^결과(%)^참고치(%)^이전결과^";
- }
- fImgRslt("cmb_ep_seq", "cpt_ep_noimg", "img_ep"); //이미지
-
- if( tclscd == "LSI103" || tclscd == "LSI102"){
- //alert("!@$@#$$!@$");
- fGetproteinEP();//proteinEP검사
- for (i=1;i <= grd_proteinEP.rows;i++){
- //alert("!!!!!!!!!!!!!!!!!!!!!!");
- var vJudg1 = model.getvalue("/root/main/rslt/desc/rslt/proteinEP["+i+"]/judgmarkorigin");
-
- if(vJudg1 == "H"){
- grd_proteinEP.cellStyle ("background-color",i,3,i,3) = "#f7a08b";
- }
- else if(vJudg1 == "L"){
- grd_proteinEP.cellStyle ("background-color",i,3,i,3) = "#b9e5fb";
- }
- else{
- grd_proteinEP.cellStyle ("background-color",i,3,i,3) = "#ffffff";
- }
-
- var vJudg2 = model.getvalue("/root/main/rslt/desc/rslt/proteinEP["+i+"]/judgmarkpersent");
-
- if(vJudg2 == "H"){
- grd_proteinEP.cellStyle ("background-color",i,5,i,5) = "#f7a08b";
- }
- else if(vJudg2 == "L"){
- grd_proteinEP.cellStyle ("background-color",i,5,i,5) = "#b9e5fb";
- }
- else{
- grd_proteinEP.cellStyle ("background-color",i,5,i,5) = "#ffffff";
- }
- }
- }
- } else if(refNo == "13") { //CKLD
- var testcd = model.getValue("/root/main/testinfo/spcltestinfo/testcd");
-
- model.setValue("/root/main/testinfo/spcltestinfo/testcd", "LSI113"); //LD 이미지 조회하기 위해 임시로 LD 코드로 박음.
- fImgRslt("cmb_ld_seq", "cpt_ld_noimg", "img_ld"); //이미지
- model.setValue("/root/main/testinfo/spcltestinfo/testcd", testcd); //원상복귀..
-
- fImgRslt("cmb_ck_seq", "cpt_ck_noimg", "img_ck"); //이미지
-
- } else if(refNo == "14") { //CKLD
- if(model.getValue("/root/main/testinfo/spcltestinfo/tclscd") == "LDR113") {
- grd_fishrslt1.attribute("visibility") = "hidden"
- grd_fishrslt2.attribute("visibility") = "visible"
- }else {
- grd_fishrslt1.attribute("visibility") = "visible"
- grd_fishrslt2.attribute("visibility") = "hidden"
- }
-
- }else if(refNo == "99") { //범용보고서
- fImgRslt("cmb_wideuse_seq", "cpt_wideuse_noimg", "img_wideuse"); //이미지
- }
- }
- model.removeNodeset("/root/send/bcno");
- model.removeNodeset("/root/send/testcd");
- }
- model.refresh();
- }
-
- //CBC 결과
- function fGetCBCRslt(viewflag) {
- model.makeValue("/root/send/pid", model.getValue("/root/main/testinfo/spcltestinfo/pid"));
- model.makeValue("/root/send/bcno", model.getValue("/root/main/testinfo/spcltestinfo/bcno"));
- model.makeValue("/root/send/tclsflag", viewflag);
-
- submit("TRLRR00401");
-
- model.removeNodeset("/root/send/pid");
-
- model.refresh();
- }
-
- //연관결과
- function fGetRelRslt() {
- model.makeValue("/root/send/pid", model.getValue("/root/main/testinfo/spcltestinfo/pid"));
- model.makeValue("/root/send/spccd", model.getValue("/root/main/testinfo/spcltestinfo/spccd"));
- model.makeValue("/root/send/testcd", model.getValue("/root/main/testinfo/spcltestinfo/testcd"));
-
- submit("TRLRR90401");
-
- model.removeNodeset("/root/send/pid");
- model.removeNodeset("/root/send/testcd");
- model.removeNodeset("/root/send/spccd");
-
- model.refresh();
- }
-
- //BM 이전결과, 이전검사결과
- function fGetBInterRslt(flag) {
- model.makeValue("/root/send/pid", model.getValue("/root/main/testinfo/spcltestinfo/pid"));
- if(flag == "D") { //Bone Marrow에서의 이전결과 조회가 아닐 때 코드픽스
- model.makeValue("/root/send/testcd", "LHB001");
- }else {
- model.makeValue("/root/send/testcd", model.getValue("/root/main/testinfo/spcltestinfo/testcd"));
- }
- model.makeValue("/root/send/tclscd", model.getValue("/root/main/testinfo/spcltestinfo/testcd"));
- model.makeValue("/root/send/spclrsltformkind", model.getValue("/root/main/rslt/desc/rslt/refflag"));
-
- submit("TRLRR90402");
-
- if(getNodesetCount("/root/main/rslt/desc/rslt/bfbm") > 0) { //Bone Marrow 이전결과
- //model.setValue("/root/main/rslt/desc/rslt/bfbm/inter", model.getValue("/root/main/rslt/desc/rslt/bfbm/descrslt/rslt/inter"));
- //model.removeNodeset("/root/main/rslt/desc/rslt/bfbm/descrslt");
- }
-
- if(getNodesetCount("/root/main/rslt/desc/rslt/beforerslt") > 0) { //이전검사결과
- if(getNodesetCount("/root/main/rslt/desc/rslt/beforerslt/inter/inter") > 0) {
- //model.setValue("/root/main/rslt/desc/rslt/beforerslt/inter", model.getValue("/root/main/rslt/desc/rslt/beforerslt/descrslt/rslt/inter"));
- } else {
- //model.setValue("/root/main/rslt/desc/rslt/beforerslt/inter", model.getValue("/root/main/rslt/desc/rslt/beforerslt/descrslt/rslt/readrslt"));
- model.makeValue("/root/main/rslt/desc/rslt/beforerslt/inter/inter", model.getValue("/root/main/rslt/desc/rslt/beforerslt/readrslt/readrslt"));
- }
-
- //model.removeNodeset("/root/main/rslt/desc/rslt/beforerslt/descrslt");
- }
-
- model.removeNodeset("/root/send/pid");
- model.removeNodeset("/root/send/testcd");
- model.removeNodeset("/root/send/tclscd");
-
- model.refresh();
- }
-
- //Special Stain, Diff조회
- function fGetSD() {
- submit("TRLRR00407");
- }
-
- function fGetFishRslt(){
-
- model.makeValue("/root/send/bcno", model.getValue("/root/main/testinfo/spcltestinfo/bcno"));
- model.makeValue("/root/send/testcd", model.getValue("/root/main/testinfo/spcltestinfo/testcd"));
- //alert(model.getValue("/root/send/testcd"));
- submit("TRLRR00408");
- }
-
- //말초도말검사
- function fGetMalRslt() {
- model.removeNodeset("/root/main/rslt/desc/rslt/mal1");
- model.removeNodeset("/root/main/rslt/desc/rslt/mal2");
- model.removeNodeset("/root/main/rslt/desc/rslt/mal3");
-
- model.makeValue("/root/send/bcno", model.getValue("/root/main/testinfo/spcltestinfo/bcno"));
-
- submit("TRLRR00405");
-
- count = getNodesetCount("/root/main/rslt/desc/rslt/mal1");
-
- var ref1 = false;
- var ref2 = false;
- var val1 = model.getValue("/root/main/rslt/desc/rslt/mal1[12]/testcd");
- var val2 = model.getValue("/root/main/rslt/desc/rslt/mal1[24]/testcd");
- var val3 = model.getValue("/root/main/rslt/desc/rslt/mal1["+ count +"]/testcd");
- tCount = 1;
- if(count > 0) {
- model.makeNode("/root/main/rslt/desc/rslt/mal2");
- model.makeNode("/root/main/rslt/desc/rslt/mal3");
-
- for(i=1; i<=count; i++) {
- if(model.getValue("/root/main/rslt/desc/rslt/mal1["+ i +"]/testcd") == "") {
- if(tCount == 1) {
- } else {
- model.setValue("/root/main/rslt/desc/rslt/mal1["+ i +"]/reptrslt", "");
- model.setValue("/root/main/rslt/desc/rslt/mal1["+ i +"]/bfrslt", "");
- }
- tCount++;
- }
-
- if(!ref1 && !ref2) {
- if(model.getValue("/root/main/rslt/desc/rslt/mal1["+ i +"]/testcd") == val1) {
- ref1 = true;
- }
- } else if(ref1 && !ref2) {
- if(getNodesetCount("/root/main/rslt/desc/rslt/mal2/testcd") < 1) {
- copyNodesetType("/root/main/rslt/desc/rslt/mal2", "/root/main/rslt/desc/rslt/mal1["+ i +"]");
- } else {
- copyNodesetType("/root/main/rslt/desc/rslt/mal2", "/root/main/rslt/desc/rslt/mal1["+ i +"]", "after");
- }
-
- if(model.getValue("/root/main/rslt/desc/rslt/mal1["+ i +"]/testcd") == val2) {
- model.removeNodeset("/root/main/rslt/desc/rslt/mal1["+ i +"]");
- ref2 = true;
- } else {
- model.removeNodeset("/root/main/rslt/desc/rslt/mal1["+ i +"]");
- }
- i = i - 1;
- } else if(ref1 && ref2) {
- if(getNodesetCount("/root/main/rslt/desc/rslt/mal3/testcd") < 1) {
- copyNodesetType("/root/main/rslt/desc/rslt/mal3", "/root/main/rslt/desc/rslt/mal1["+ i +"]");
- } else {
- copyNodesetType("/root/main/rslt/desc/rslt/mal3", "/root/main/rslt/desc/rslt/mal1["+ i +"]", "after");
- }
-
- if(model.getValue("/root/main/rslt/desc/rslt/mal1["+ i +"]/testcd") == val3) {
- model.removeNodeset("/root/main/rslt/desc/rslt/mal1["+ i +"]");
- break;
- } else {
- model.removeNodeset("/root/main/rslt/desc/rslt/mal1["+ i +"]");
- }
- i = i - 1;
- }
- }
- }
- model.refresh();
-
- setRowStyle("grd_pb_mal1", "0", "", "testcd");
- setRowStyle("grd_pb_mal2", "0", "", "testcd");
- setRowStyle("grd_pb_mal3", "0", "", "testcd");
-
- model.removeNodeset("/root/send/bcno");
-
- model.refresh();
- }
-
- //of그리드 만들기
- function fGridMake() {
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1con[1]");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1con[1]/nacl");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1con[1]/od");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1con[1]/hm");
-
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1pat[1]");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1pat[1]/nacl");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1pat[1]/od");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1pat[1]/hm");
-
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24con[1]");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24con[1]/nacl");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24con[1]/od");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24con[1]/hm");
-
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24pat[1]");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24pat[1]/nacl");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24pat[1]/od");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24pat[1]/hm");
-
- model.setValue("/root/main/rslt/desc/rslt/osmotic/incu1con[1]/nacl", fCOMLIS_RstRound(1, 2, 1)); //ex) 0.3 -> 0.30
- model.setValue("/root/main/rslt/desc/rslt/osmotic/incu1pat[1]/nacl", fCOMLIS_RstRound(1, 2, 1));
- model.setValue("/root/main/rslt/desc/rslt/osmotic/incu24con[1]/nacl", fCOMLIS_RstRound(1, 2, 1));
- model.setValue("/root/main/rslt/desc/rslt/osmotic/incu24pat[1]/nacl", fCOMLIS_RstRound(1, 2, 1));
-
-
-
- val = 0.90;
-
- for(i = 2; i <= 15; i++) {
- val = val - 0.05 ;
-
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1con["+ i +"]");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1con["+ i +"]/nacl");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1con["+ i +"]/od");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1con["+ i +"]/hm");
-
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1pat["+ i +"]");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1pat["+ i +"]/nacl");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1pat["+ i +"]/od");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1pat["+ i +"]/hm");
-
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24con["+ i +"]");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24con["+ i +"]/nacl");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24con["+ i +"]/od");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24con["+ i +"]/hm");
-
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24pat["+ i +"]");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24pat["+ i +"]/nacl");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24pat["+ i +"]/od");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24pat["+ i +"]/hm");
-
- model.setValue("/root/main/rslt/desc/rslt/osmotic/incu1con["+ i +"]/nacl", fCOMLIS_RstRound(val, 2, 1)); //ex) 0.3 -> 0.30
- model.setValue("/root/main/rslt/desc/rslt/osmotic/incu1pat["+ i +"]/nacl", fCOMLIS_RstRound(val, 2, 1));
- model.setValue("/root/main/rslt/desc/rslt/osmotic/incu24con["+ i +"]/nacl", fCOMLIS_RstRound(val, 2, 1));
- model.setValue("/root/main/rslt/desc/rslt/osmotic/incu24pat["+ i +"]/nacl", fCOMLIS_RstRound(val, 2, 1));
- }
-
- for(i = 16; i <= 17; i++) {
- val = val - 0.1 ;
-
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1con["+ i +"]");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1con["+ i +"]/nacl");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1con["+ i +"]/od");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1con["+ i +"]/hm");
-
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1pat["+ i +"]");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1pat["+ i +"]/nacl");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1pat["+ i +"]/od");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu1pat["+ i +"]/hm");
-
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24con["+ i +"]");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24con["+ i +"]/nacl");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24con["+ i +"]/od");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24con["+ i +"]/hm");
-
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24pat["+ i +"]");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24pat["+ i +"]/nacl");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24pat["+ i +"]/od");
- model.makeNode("/root/main/rslt/desc/rslt/osmotic/incu24pat["+ i +"]/hm");
-
- model.setValue("/root/main/rslt/desc/rslt/osmotic/incu1con["+ i +"]/nacl", fCOMLIS_RstRound(val, 2, 1)); //ex) 0.3 -> 0.30
- model.setValue("/root/main/rslt/desc/rslt/osmotic/incu1pat["+ i +"]/nacl", fCOMLIS_RstRound(val, 2, 1));
- model.setValue("/root/main/rslt/desc/rslt/osmotic/incu24con["+ i +"]/nacl", fCOMLIS_RstRound(val, 2, 1));
- model.setValue("/root/main/rslt/desc/rslt/osmotic/incu24pat["+ i +"]/nacl", fCOMLIS_RstRound(val, 2, 1));
- }
-
- model.refresh();
- }
-
- //hemolysis 계산하기
- function fCalc() {
- L1c = model.getValue("/root/main/rslt/desc/rslt/osmotic/incu1con[17]/od"); //1시간 Control 0 OD값
- N1c = model.getValue("/root/main/rslt/desc/rslt/osmotic/incu1con[1]/od"); //1시간 Control 1 OD값
-
- L1p = model.getValue("/root/main/rslt/desc/rslt/osmotic/incu1pat[17]/od"); //1시간 Control 0 OD값
- N1p = model.getValue("/root/main/rslt/desc/rslt/osmotic/incu1pat[1]/od"); //1시간 Patient 1 OD값
-
- L24c = model.getValue("/root/main/rslt/desc/rslt/osmotic/incu24con[17]/od"); //24시간 Control 0 OD값
- N24c = model.getValue("/root/main/rslt/desc/rslt/osmotic/incu24con[1]/od"); //24시간 Control 1 OD값
-
- L24p = model.getValue("/root/main/rslt/desc/rslt/osmotic/incu24pat[17]/od"); //24시간 Patient 0 OD값
- N24p = model.getValue("/root/main/rslt/desc/rslt/osmotic/incu24pat[1]/od"); //24시간 Patient 1 OD값
-
- for(i = 2; i<= 16; i++) {
- var val1c = model.getValue("/root/main/rslt/desc/rslt/osmotic/incu1con["+ i +"]/od"); //1시간 Control OD값
- var val1p = model.getValue("/root/main/rslt/desc/rslt/osmotic/incu1pat["+ i +"]/od"); //1시간 Control OD값
- var val24c = model.getValue("/root/main/rslt/desc/rslt/osmotic/incu24con["+ i +"]/od"); //24시간 Control OD값
- var val24p = model.getValue("/root/main/rslt/desc/rslt/osmotic/incu24pat["+ i +"]/od"); //24시간 Patient OD값
-
- if(val1c != "") {
- if(L1c != "" && N1c != "") {
- var rslt = ((parseFloat(val1c) - parseFloat(N1c)) / parseFloat(L1c)) * 100;
- rslt = fCOMLIS_RstRound(rslt, "2", "1");
-
- model.setValue("/root/main/rslt/desc/rslt/osmotic/incu1con["+ i +"]/hm", rslt);
- } else if(L1c == "" || N1c == "") { //'0' 이나 '1' OD값이 없을때
- if(L1c == "") {
- messageBox("1시간 incubation (Control)의 0(Lysis (C))을", "C001");
- return;
- } else {
- messageBox("1시간 incubation (Control)의 1(Non-L (C))을", "C001");
- return;
- }
- }
- }
-
- if(val1p != "") {
- if(L1p != "" && N1p != "") {
- var rslt = ((parseFloat(val1p) - parseFloat(N1p)) / parseFloat(L1p)) * 100;
- rslt = fCOMLIS_RstRound(rslt, "2", "1");
-
- model.setValue("/root/main/rslt/desc/rslt/osmotic/incu1pat["+ i +"]/hm", rslt);
- }else if(L1p == "" || N1p == "") { //'0' 이나 '1' OD값이 없을때
- if(L1p == "") {
- messageBox("1시간 incubation (Patient)의 0(Lysis (C))을", "C001");
- return;
- } else {
- messageBox("1시간 incubation (Patient)의 1(Non-L (C))을", "C001");
- return;
- }
- }
- }
-
- if(val24c != "") {
- if(L24c != "" && N24c != "") {
- var rslt = ((parseFloat(val24c) - parseFloat(N24c)) / parseFloat(L24c)) * 100;
- rslt = fCOMLIS_RstRound(rslt, "2", "1");
-
- model.setValue("/root/main/rslt/desc/rslt/osmotic/incu24con["+ i +"]/hm", rslt);
- }else if(L24c == "" || N24c == "") { //'0' 이나 '1' OD값이 없을때
- if(L24c == "") {
- messageBox("24시간 incubation (Control)의 0(Lysis (C))을", "C001");
- return;
- } else {
- messageBox("24시간 incubation (Control)의 1(Non-L (C))을", "C001");
- return;
- }
- }
- }
-
- if(val24p != "") {
- if(L24p != "" && N24p != "") {
- var rslt = ((parseFloat(val24p) - parseFloat(N24p)) / parseFloat(L24p)) * 100;
- rslt = fCOMLIS_RstRound(rslt, "2", "1");
-
- model.setValue("/root/main/rslt/desc/rslt/osmotic/incu24pat["+ i +"]/hm", rslt);
- }else if(L24p == "" || N24p == "") { //'0' 이나 '1' OD값이 없을때
- if(L24p == "") {
- messageBox("24시간 incubation (Patient)의 0(Lysis (C))을", "C001");
- return;
- } else {
- messageBox("24시간 incubation (Patient)의 1(Non-L (C))을", "C001");
- return;
- }
- }
- }
- }
- model.refresh();
- }
-
- //PRA Screening & Identification 조회
- function fGetPRA() {
- Scount = 1;
- Icount = 1;
-
- for(i = 1; i <= getNodesetCount("/root/main/testinfo/detailtestinfo"); i++) {
- var testcd = model.getValue("/root/main/testinfo/detailtestinfo["+ i +"]/testcd");
-
- if(testcd.substr(0, 6) == "LIP162" || testcd.substr(0, 6) == "LIP163") {
- model.makeNode("/root/main/rslt/desc/rslt/pra/prascreening["+ Scount +"]");
-
- copyNodesetType("/root/main/rslt/desc/rslt/pra/prascreening["+ Scount +"]", "/root/main/testinfo/detailtestinfo["+ i +"]");
-
- Scount++;
- } else if(testcd.substr(0, 6) == "LIP165" || testcd.substr(0, 6) == "LIP166") {
- model.makeNode("/root/main/rslt/desc/rslt/pra/iden["+ Icount +"]");
-
- copyNodesetType("/root/main/rslt/desc/rslt/pra/iden["+ Icount +"]", "/root/main/testinfo/detailtestinfo["+ i +"]");
-
- Icount++;
- }
- }
-
- model.refresh();
- }
-
- //Cytotoxicity, Flow cyrometric 조회
- function fGetCM() {
- Ccount = 1;
- Fcount = 1;
- Dcount = 1;
-
- model.makeValue("/root/main/rslt/desc/rslt/cm/dnorpid", model.getValue("/root/main/testinfo/spcltestinfo/reqfrmtbl/reqfrminfo/inptitem01/dnorpid"));
- model.makeValue("/root/main/rslt/desc/rslt/cm/dnornm", model.getValue("/root/main/testinfo/spcltestinfo/reqfrmtbl/reqfrminfo/inptitem01/dnornm"));
-
- for(i = 1; i <= getNodesetCount("/root/main/testinfo/detailtestinfo"); i++) {
- var testcd = model.getValue("/root/main/testinfo/detailtestinfo["+ i +"]/testcd");
-
- if(testcd.substr(0, 6) == "LIP153" || testcd.substr(0, 6) == "LIP154") {
- model.makeNode("/root/main/rslt/desc/rslt/cm/cytoto["+ Ccount +"]");
-
- copyNodesetType("/root/main/rslt/desc/rslt/cm/cytoto["+ Ccount +"]", "/root/main/testinfo/detailtestinfo["+ i +"]");
-
- Ccount++;
- } else if(testcd.substr(0, 6) == "LIP156" || testcd.substr(0, 6) == "LIP157") {
- model.makeNode("/root/main/rslt/desc/rslt/cm/flow["+ Fcount +"]");
-
- copyNodesetType("/root/main/rslt/desc/rslt/cm/flow["+ Fcount +"]", "/root/main/testinfo/detailtestinfo["+ i +"]");
-
- Fcount++;
- }else if(testcd.substr(0, 6) == "LIP158" || testcd.substr(0, 6) == "LIP159") {
- model.makeNode("/root/main/rslt/desc/rslt/cm/dshla["+ Dcount +"]");
-
- copyNodesetType("/root/main/rslt/desc/rslt/cm/dshla["+ Dcount +"]", "/root/main/testinfo/detailtestinfo["+ i +"]");
-
- model.makeNode("/root/main/rslt/desc/rslt/cm/dshla["+ Dcount +"]/scratio");
-
- Dcount++;
- }
- }
-
- model.refresh();
- }
-
- //CKLD 조회
- function fGetCKLD() {
- Ccount = 1;
- Lcount = 1;
-
- for(i = 1; i <= getNodesetCount("/root/main/testinfo/detailtestinfo"); i++) {
- var testcd = model.getValue("/root/main/testinfo/detailtestinfo["+ i +"]/testcd");
-
- if(testcd.substr(0, 6) == "LSI112") { //CK 검사항목
- model.makeNode("/root/main/rslt/desc/rslt/ckld/ck["+ Ccount +"]");
-
- copyNodesetType("/root/main/rslt/desc/rslt/ckld/ck["+ Ccount +"]", "/root/main/testinfo/detailtestinfo["+ i +"]");
-
- Ccount++;
- } else if(testcd.substr(0, 6) == "LSI113") { //LD 검사항목
- model.makeNode("/root/main/rslt/desc/rslt/ckld/ld["+ Lcount +"]");
-
- copyNodesetType("/root/main/rslt/desc/rslt/ckld/ld["+ Lcount +"]", "/root/main/testinfo/detailtestinfo["+ i +"]");
-
- Lcount++;
- }
- }
-
- model.refresh();
- }
-
- function fGetFish() {
- Ccount = 1;
- Lcount = 1;
-
- for(i = 1; i <= getNodesetCount("/root/main/testinfo/detailtestinfo"); i++) {
- var testcd = model.getValue("/root/main/testinfo/detailtestinfo["+ i +"]/testcd");
-
- if(testcd.substr(0, 6) == "LSI112") { //CK 검사항목
- model.makeNode("/root/main/rslt/desc/rslt/fish/ck["+ Ccount +"]");
-
- copyNodesetType("/root/main/rslt/desc/rslt/fish/ck["+ Ccount +"]", "/root/main/testinfo/detailtestinfo["+ i +"]");
-
- Ccount++;
- } else if(testcd.substr(0, 6) == "LSI113") { //LD 검사항목
- model.makeNode("/root/main/rslt/desc/rslt/fish/ld["+ Lcount +"]");
-
- copyNodesetType("/root/main/rslt/desc/rslt/fish/ld["+ Lcount +"]", "/root/main/testinfo/detailtestinfo["+ i +"]");
-
- Lcount++;
- }
- }
-
- model.refresh();
- }
-
- //판독예문 조회
- function fRsltCode(gridID){
- gridObj = document.all(gridID);
-
- model.removeNodeset("/root/main/rsltcode");
-
- model.refresh();
-
- var vTestcd = model.getvalue("/root/main/testinfo/spcltestinfo/testcd");
-
- if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "01") { //Bone Marrow는 콤보
- cmb_exmp.choices.itemset.attribute("nodeset") = "/root/init/readrslt[etc03='" + vTestcd + "']";
- } else { //나머지는 그리드이므로.
- if(gridID != "") { //판독예문 창을 띄어 수정한 후
- var cdNodes = instance1.selectNodes("/root/init/readrslt[etc03='" + vTestcd + "']/cd");
- var cdNodes2 = instance1.selectNodes("/root/init/readrslt[etc03='" + vTestcd + "']/nm");
- var vRstcontLower ="";
- var vRstcontUpper = "";
-
- for (i = 1; i <= cdNodes.length; i++) {
-
- var cd = cdNodes.item(i - 1).text;
- var nm = cdNodes2.item(i - 1).text;
-
- gridObj.addRow(false);
-
- model.setvalue("/root/main/rsltcode["+i+"]/cd" , cd);
- model.setvalue("/root/main/rsltcode["+i+"]/nm" , nm);
- }
-
- if(cdNodes.length > 0)
- model.refresh();
- } else { //특수검사 조회시에는 그리드아이디를 보내지 않는다. 어느 검사인지 알수 없기에..
- var cdNodes = instance1.selectNodes("/root/init/readrslt[etc03='" + vTestcd + "']/cd");
- var cdNodes2 = instance1.selectNodes("/root/init/readrslt[etc03='" + vTestcd + "']/nm");
- var vRstcontLower ="";
- var vRstcontUpper = "";
-
- for (i = 1; i <= cdNodes.length; i++) {
-
- var cd = cdNodes.item(i - 1).text;
- var nm = cdNodes2.item(i - 1).text;
-
- model.makeValue("/root/main/rsltcode["+ i +"]/cd" , cd);
- model.makeValue("/root/main/rsltcode["+ i +"]/nm" , nm);
- }
-
- if(cdNodes.length > 0)
- model.refresh();
- }
- }
- }
-
- //판독예문코드 더블 클릭시
- function fRsltCodeDBClick(gridID){
- gridObj = document.all(gridID);
-
- if(gridObj.rows < 2) { //판독예문이 있을경우에만 이벤트 타도록.
- return;
- }
-
- var vTestcd = model.getvalue("/root/main/testinfo/spcltestinfo/testcd");
- var cd = model.getValue("/root/main/rsltcode["+ gridObj.row +"]/cd");
- var vDescrsltN = instance1.selectNodes("/root/init/readrslt[etc03='" + vTestcd + "' and cd='"+ cd +"']/etc01");
- var vInterN = instance1.selectNodes("/root/init/readrslt[etc03='" + vTestcd + "' and cd='"+ cd +"']/etc02");
- var vCMTN = instance1.selectNodes("/root/init/readrslt[etc03='" + vTestcd + "' and cd='"+ cd +"']/etc04");
-
- var vDescrslt = vDescrsltN.item(0).text; //판독예문
- var vInter = vInterN.item(0).text; //Interpretation
- var vCMT = vCMTN.item(0).text; //Interpretation
-
- if(model.getValue("/root/hidden/readexmpadd") == "Y") {
- var read = model.getValue("/root/main/rslt/desc/rslt/readrslt");
-
- model.setValue("/root/main/rslt/desc/rslt/readrslt", read + vDescrslt);
-
- if(vInter != "") {
- var inter = model.getValue("/root/main/rslt/desc/rslt/inter");
-
- model.setvalue("/root/main/rslt/desc/rslt/inter", inter + vInter);
- }
-
- if(vCMT != "") {
- var cmt = model.getValue("/root/main/rslt/desc/rslt/comments");
-
- model.setvalue("/root/main/rslt/desc/rslt/comments", cmt + vCMT);
- }
- } else {
- model.setvalue("/root/main/rslt/desc/rslt/readrslt" , vDescrslt);
-
- if(vInter != "") {
- model.setvalue("/root/main/rslt/desc/rslt/inter", vInter);
- }
-
- if(vCMT != "") {
- model.setvalue("/root/main/rslt/desc/rslt/comments", vCMT);
- }
- }
-
- model.refresh();
-
- }
-
- //세부검사목록
- function fGetDetlTcls() {
- model.removenode("/root/main/rslt/desc/rslt/detltclsinfo");
- model.removenode("/root/main/rslt/desc/rslt/detltclsinfo2");
-
- model.makeValue("/root/send/tclscd", model.getValue("/root/main/testinfo/spcltestinfo/tclscd"));
- model.makeValue("/root/send/bcno", model.getValue("/root/main/testinfo/spcltestinfo/bcno"));
-
- submit("TRLRR00404");
-
- model.removeNodeset("/root/send/tclscd");
- model.removeNodeset("/root/send/bcno");
- }
-
- //proteinEP 검사
-
- function fGetproteinEP() {
-
- model.removenode("/root/main/rslt/desc/rslt/proteinEP");
-
- model.makeValue("/root/send/tclscd", model.getValue("/root/main/testinfo/spcltestinfo/tclscd"));
- model.makeValue("/root/send/bcno", model.getValue("/root/main/testinfo/spcltestinfo/bcno"));
-
- submit("TRLRR00409");
-
- model.removeNodeset("/root/send/tclscd");
- model.removeNodeset("/root/send/bcno");
- }
-
- //탑정보
- function fUpPatinfo(){
- if(getPatientInfo("pid") != model.getValue("/root/main/testinfo/spcltestinfo/pid")) {
- if(getNodesetCount("/root/main/testinfo/spcltestinfo") > 0){
- setParameter("errflag", "Y"); // exception error창을 띄우지 않음
-
- setParameter("condparam", "S" + "▦" + model.getvalue("/root/main/testinfo/spcltestinfo/prcpdd")+ "▦"
- + model.getvalue("/root/main/testinfo/spcltestinfo/execprcpuniqno") + "▦"
- + model.getvalue("/root/main/testinfo/spcltestinfo/extrtestinstcd") );
-
- modal("SPMMO08900");
- }
-
- var paminfo = getGlobalVariable("paminfo");
- if(paminfo.length < 0){ //상단정보가 없는 경우
- delPatientInfos(); //환자정보 전체 삭제
-
- var pid = model.getValue("/root/main/testinfo/spcltestinfo/pid");
- var hngnm = model.getValue("/root/main/testinfo/spcltestinfo/patnm");
- //상단에 올릴 수 있는 정보가 있으면 아래와 같이 설정해 주시면 됩니다. 없으면 안 해주셔도 되구요..
-
- setPatientInfo("pid" , pid); //등록번호
- setPatientInfo("pname" , pid + "|" + hngnm); //환자명
- }
- }
- }
-
- function fReMake(){
- for(i=1;i<datagrid3.rows;i++){
- datagrid3.cellstyle("background-color" , i,4) = "#EEFFFF";
- datagrid3.cellstyle("background-color" , i,5) = "#FFFFFA";
-
- if(model.getvalue("/root/main/testinfo/detailtestinfo["+i+"]/rstcdexists") == "Y"){
- datagrid3.cellstyle("background-image", i, 4) = "../../../lis/commonweb/images/icnRstCDExists.gif";
- datagrid3.cellstyle("background-position", i, 4) = "right";
- }
- }
- }
-
- //결과저장, 결과보고, 전문의확인
- function fInsRsltSave(flag){
- var node = instance1.selectSingleNode("/root/main/rslt/desc/rslt");
- //alert(node.xml);
- if(model.getvalue("/root/main/testinfo/spcltestinfo/bcno") == "") {
- messageBox("환자가 선택되지", "E007");
- model.setFocus("ipt_reftext");
- model.refresh();
- return;
- }
-
- if(flag == "6") {
- if(model.getValue("/root/hidden/readnm") == "") {
- messageBox("판독자를", "C001");
- model.setFocus("ipt_readpsn");
- model.refresh();
- return;
- }
- } else if(model.getValue("/root/hidden/testnm") == "") {
- messageBox("입력자를", "C001");
- model.setFocus("ipt_testpsn");
- model.refresh();
- return;
- }
-
- model.setvalue("/root/hidden/TestData/bcno" , model.getvalue("/root/main/testinfo/spcltestinfo/bcno"));
- model.setvalue("/root/hidden/TestData/testcd", model.getValue("/root/main/testinfo/spcltestinfo/testcd"));
- model.makevalue("/root/hidden/TestData/tclscd", model.getValue("/root/main/testinfo/spcltestinfo/tclscd"));
-
- model.setvalue("/root/hidden/TestData/spccd", model.getvalue("/root/main/testinfo/spcltestinfo/spccd"));
- model.setvalue("/root/hidden/TestData/inptrslt", "");
- model.setvalue("/root/hidden/TestData/rsltstat" , flag);
- model.setvalue("/root/hidden/TestData/testlrgkind" , model.getvalue("/root/main/testinfo/spcltestinfo/testlrgkind"));
- model.setValue("/root/hidden/TestData/descrslt", node.xml, true);
- model.setValue("/root/hidden/TestData/inter", model.getValue("/root/main/rslt/desc/rslt/inter"));
- model.makevalue("/root/hidden/TestData/readid" , model.getvalue("/root/hidden/readid"));
- model.makevalue("/root/hidden/TestData/testid" , model.getvalue("/root/hidden/testid"));
- model.makevalue("/root/hidden/TestData/formkind" , model.getvalue("/root/main/rslt/desc/rslt/refflag"));
-
- model.copyNode("/root/send/data1" ,"/root/hidden/TestData" );
-
- if((model.getValue("/root/main/rslt/desc/rslt/refflag") == "01")//Bone Marrow
- || (model.getValue("/root/main/rslt/desc/rslt/refflag") == "05")) { //osmo
- for(i = 1; i <= getNodesetCount("/root/main/testinfo/detailtestinfo"); i++) {
- model.setValue("/root/main/testinfo/detailtestinfo["+ i +"]/chk", "Y");
- }
- }
-
- //if((model.getValue("/root/main/rslt/desc/rslt/refflag") == "02") //분자유전
- // || (model.getValue("/root/main/rslt/desc/rslt/refflag") == "03") //세포유전
- // || (model.getValue("/root/main/rslt/desc/rslt/refflag") == "04") //Immunophenotyping
- // || (model.getValue("/root/main/rslt/desc/rslt/refflag") == "06") //ICG
- // || (model.getValue("/root/main/rslt/desc/rslt/refflag") == "08") //EP
- /// || (model.getValue("/root/main/rslt/desc/rslt/refflag") == "09")/*산전기형*/) {
- var testcd = model.getValue("/root/main/testinfo/spcltestinfo/testcd");
- var find = grd_rslt.findRow(testcd, 0, 1);
-
- model.setValue("/root/main/testinfo/detailtestinfo["+ find +"]/chk", "Y");
- //}
-
- //if(model.getValue("/root/main/testinfo/spcltestinfo/rsltstat") != "-") {
- for(i = 1; i <= getNodesetCount("/root/main/testinfo/detailtestinfo"); i++) {
- if(model.getValue("/root/main/testinfo/spcltestinfo/rsltstat") != "-") {
- if((model.getValue("/root/main/testinfo/detailtestinfo["+ i +"]/reptrslt") != "")
- || (model.getValue("/root/main/testinfo/detailtestinfo["+ i +"]/rsltstat") != "-")) {
- model.setValue("/root/main/testinfo/detailtestinfo["+ i +"]/chk", "Y");
- }
- }
- var testcd = model.getValue("/root/main/testinfo/detailtestinfo["+ i +"]/testcd").substring(0, 6);
- var count = getNodesetCount("/root/main/rslt/desc/rslt/detailtestinfo");
-
- if((model.getValue("/root/main/rslt/desc/rslt/refflag") == "02") //분자유전
- || (model.getValue("/root/main/rslt/desc/rslt/refflag") == "03")) {//세포유전
- if(testcd == model.getValue("/root/main/testinfo/spcltestinfo/testcd")) {
- if(model.getValue("/root/main/testinfo/detailtestinfo["+ i +"]/chk") == "Y") {
- model.makeNode("/root/main/rslt/desc/rslt/detailtestinfo["+ count +"]");
- copyNodeType("/root/main/rslt/desc/rslt/detailtestinfo["+ count +"]", "/root/main/testinfo/detailtestinfo["+ i +"]");
- }
- }
- }
- }
- //}
-
- if(getNodesetCount("/root/main/testinfo/detailtestinfo") > 0){
- for(i = 0; i < grd_rslt.rows; i++) {
- var find = grd_rslt.findRow("Y", i, 0, false, false);
-
- if(find < 0) {
- break;
- }
-
- grd_rslt.addStatus(find,"update");
-
- i = find;
- }
-
- var sSendData = grd_rslt.getUpdateData();
-
- } else {
- var sSendData = "m▦rownum▦chk▦testcd▦bufinptrslt▦reptrslt▦inptrslt▦bcno▩";
- sSendData = sSendData + "u▦100▦Y▦"+model.getValue("/root/hidden/TestData/testcd") +"▦" + model.getvalue("/root/main/testinfo/spcltestinfo/tclsscrnnm") +"▦▦▦" + model.getValue("/root/main/testinfo/spcltestinfo/bcno") + "▩";
- }
-
- model.setvalue("/root/send/data2" , sSendData);
-
- if(flag == "6") {
- model.makeValue("/root/send/bcno", model.getValue("/root/main/testinfo/spcltestinfo/bcno"));
- model.makeValue("/root/send/spccd", model.getValue("/root/main/testinfo/spcltestinfo/spccd"));
- model.makeValue("/root/send/prcpgenrflag", model.getValue("/root/main/testinfo/spcltestinfo/prcpgenrflag"));
-
- submit("TRLRP00702"); //주진단명
-
- model.removenode("/root/send/bcno");
- model.removenode("/root/send/spccd");
- model.removenode("/root/send/prcpgenrflag");
-
- model.makeValue("/root/main/rslt/desc/detltestlist/tclsnm", model.getValue("/root/main/testinfo/spcltestinfo/prcpnm")); //처방명
- model.makeValue("/root/main/rslt/desc/detltestlist/spcnm", model.getValue("/root/main/testinfo/spcltestinfo/spcprntnm")); //검체명
-
- model.makeValue("/root/send/tclscd", model.getValue("/root/main/testinfo/spcltestinfo/tclscd"));
- model.makeValue("/root/send/testcd", model.getValue("/root/main/testinfo/spcltestinfo/testcd"));
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/pid", model.getValue("/root/main/testinfo/spcltestinfo/pid"));
-
- submit("TRLRR90403"); //인증에 필요한 환자정보
-
- model.removenode("/root/send/tclscd");
- model.removenode("/root/send/testcd");
- model.removenode("/root/send/instcd");
- model.removenode("/root/send/pid");
-
- model.makeValue("/root/main/rslt/desc/patinfo/medispcdt", getCurrentDate()); //판독시간
- model.makevalue("/root/main/rslt/desc/patinfo/bcolldt",model.getValue("/root/main/testinfo/spcltestinfo/bcolldt"));//채취일자
- model.makevalue("/root/main/rslt/desc/patinfo/workno",model.getValue("/root/main/testinfo/spcltestinfo/workno"));//접수번호
- model.makeValue("/root/main/rslt/desc/patinfo/testid", model.getValue("/root/hidden/testnm"));// 입력자
- model.makeValue("/root/main/rslt/desc/patinfo/medispclid", model.getValue("/root/hidden/readnm")); //판독자
- model.makeValue("/root/main/rslt/desc/patinfo/specdrid", model.getValue("/root/hidden/specdrid")); //특진의
- model.makeValue("/root/main/rslt/desc/patinfo/userflag", model.getValue("/root/hidden/userflag")); //사용자구분
- model.makeValue("/root/main/rslt/desc/patinfo/server", getDomain()); //이미지불러오기 위해 현 서버를 server 노드에 넣는다.
-
- if(getNodesetCount("/root/main/imglist/rsltseqno") > 0){ //이미지가 있을 경우..
- count = 1
- for(i = model.getValue("/root/main/imglist/minseqno"); i <= model.getValue("/root/main/imglist/maxseqno"); i++) {
- model.makeValue("/root/main/rslt/desc/patinfo/rsltseq["+ count +"]/rsltseq", i);
- count++;
- }
-
- }
-
- if(getNodesetCount("/root/main/imglistld/rsltseqno") > 0){ //LD 이미지가 있을 경우..
- count = 1
- for(i = model.getValue("/root/main/imglistld/minseqno"); i <= model.getValue("/root/main/imglistld/maxseqno"); i++) {
- model.makeValue("/root/main/rslt/desc/patinfo/rsltseqld["+ count +"]/rsltseq", i);
- count++;
- }
- }
-
- model.makeNode("/root/main/rslt/desc/patinfo/reqcnts"); //의뢰지 내용 담을
- copyNodesetType("/root/main/rslt/desc/patinfo/reqcnts", "/root/main/testinfo/spcltestinfo/reqcnts"); //의뢰지 내용을 인증 노드에 카피
-
- if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "01") { //Bone Marrow
- model.makeNode("/root/main/rslt/desc/patinfo/reqcnts/reqfrminfo/inptitem01/rslt"); //의뢰지 표현을 위해 의뢰지 결과 담을 노드 생성
- //골수 의뢰서 내용
- if(model.getValue("/root/main/rslt/desc/patinfo/reqcnts/reqfrminfo/inptitem01/initial") == "Initial") {
- model.setValue("/root/main/rslt/desc/patinfo/reqcnts/reqfrminfo/inptitem01/initial", "Initial");
- model.setValue("/root/main/rslt/desc/patinfo/reqcnts/reqfrminfo/inptitem01/rslt", model.getValue("/root/main/rslt/desc/patinfo/reqcnts/reqfrminfo/inptitem02/initial"));
- } else if(model.getValue("/root/main/rslt/desc/patinfo/reqcnts/reqfrminfo/inptitem01/fu") == "F/U") {
- model.setValue("/root/main/rslt/desc/patinfo/reqcnts/reqfrminfo/inptitem01/initial", "F/U");
-
- if(model.getValue("/root/main/rslt/desc/patinfo/reqcnts/reqfrminfo/inptitem02/chemo") != "") {
- model.setValue("/root/main/rslt/desc/patinfo/reqcnts/reqfrminfo/inptitem01/rslt", model.getValue("/root/main/rslt/desc/patinfo/reqcnts/reqfrminfo/inptitem02/chemo") + "\n");
- } else if(model.getValue("/root/main/rslt/desc/patinfo/reqcnts/reqfrminfo/inptitem02/bmt") != "") {
- model.setValue("/root/main/rslt/desc/patinfo/reqcnts/reqfrminfo/inptitem01/rslt", model.getValue("/root/main/rslt/desc/patinfo/reqcnts/reqfrminfo/inptitem02/bmt") + "\n");
- } else if(model.getValue("/root/main/rslt/desc/patinfo/reqcnts/reqfrminfo/inptitem02/ro") != "") {
- model.setValue("/root/main/rslt/desc/patinfo/reqcnts/reqfrminfo/inptitem01/rslt", model.getValue("/root/main/rslt/desc/patinfo/reqcnts/reqfrminfo/inptitem02/ro") + "\n");
- }
- } else if(model.getValue("/root/main/rslt/desc/patinfo/reqcnts/reqfrminfo/inptitem01/others") == "Others") {
- model.setValue("/root/main/rslt/desc/patinfo/reqcnts/reqfrminfo/inptitem01/initial", "Others");
- model.setValue("/root/main/rslt/desc/patinfo/reqcnts/reqfrminfo/inptitem01/rslt", model.getValue("/root/main/rslt/desc/patinfo/reqcnts/reqfrminfo/inptitem02/othersl"));
- }
- } else if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "06") { //ICG
- var sfind = grd_rslt.findRow("LSS18101", 1, 1, true, true);
- var rfind = grd_rslt.findRow("LSS18102", 1, 1, true, true);
-
- model.makeValue("/root/main/rslt/desc/rslt/icg/sref", model.getValue("/root/main/testinfo/detailtestinfo["+ sfind +"]/refval"));
- model.makeValue("/root/main/rslt/desc/rslt/icg/rref", model.getValue("/root/main/testinfo/detailtestinfo["+ rfind +"]/refval"));
- }
-
- //인증
- if(Sign.signprocess()){
- model.makeNode("/root/send/signdata");
- model.makeValue("/root/send/signdata/bcno", model.getValue("/root/main/testinfo/spcltestinfo/bcno")); //결과테이블에 생성번호 넣기위해.
- model.makeValue("/root/send/signdata/pid", model.getValue("/root/main/testinfo/spcltestinfo/pid")); //등록번호
- model.makeValue("/root/send/signdata/orddd", model.getValue("/root/main/testinfo/spcltestinfo/orddd")); //입원, 응급 : 입원일자, 외래 : 진료일자
- model.makeValue("/root/send/signdata/signno", model.getValue("/root/main/testinfo/spcltestinfo/signno")); //서명번호
- model.makeValue("/root/send/signdata/cretno", model.getValue("/root/main/testinfo/spcltestinfo/cretno")); //생성번호
- model.makeValue("/root/send/signdata/recdd", getCurrentDate()); // 실제기록이 이루어진 기록일자
- model.makeValue("/root/send/signdata/rectm", getCurrentTime()); //실제기록이 이루어진 기록시간
- model.makeValue("/root/send/signdata/recsaveflag", "Y"); // 전자서명 인적정보 변경여부(기록일시 변경되는 경우 : Y, 그외 : N)
- model.makeValue("/root/send/signdata/signflag", "30"); // 서명자료구분(01 : 진료, 02 : 간호, 30:검사)
- model.makeValue("/root/send/signdata/signgenrflag", model.getValue("/root/main/testinfo/spcltestinfo/prcpgenrflag")); //입원, 외래구분
- model.makeValue("/root/send/signdata/formcd", model.getValue("/root/main/testinfo/spcltestinfo/formcd")); //각 기록지별 서식코드 0000002916 : BM
- model.makeValue("/root/send/signdata/orddeptcd", model.getValue("/root/main/testinfo/spcltestinfo/orddeptcd")); //진료과
- model.makeValue("/root/send/signdata/orddrid", model.getValue("/root/main/testinfo/spcltestinfo/orddrid")); //진료의ID
- model.makeValue("/root/send/signdata/signbfcnts", Sign.signedInfos[3]); // 인증할 데이터 정보(미기록 노드 제거된 정보), 미기록 노드 제거전 원본 노드 정보 : Sign.signedInfos[3]
- model.makeValue("/root/send/signdata/signaftcnts", Sign.signedInfos[2]); //공인인증 처리후 데이터
-
- if(model.getValue("/root/main/testinfo/spcltestinfo/basecdid") == "LL010") {
- model.makeValue("/root/send/signdata/dispyn", "N"); //통합기록조회(통합결과조회)에 기록 보여질 여부(LL010이면 보이지 않는다)
- }
- }else{
- alert("인증실패");
-
- model.removeNodeset("/root/send/data1");
- model.removeNodeset("/root/send/data2");
- model.removeNodeset("/root/send/signdata");
- model.makeNode("/root/send/data1");
- model.makeNode("/root/send/data2");
- model.resetInstanceNode("/root/hidden/TestData");
-
- return false;
- }
-
- //submit("TXLRR00401");
- }
-
- if(submit("TXLRR00101")) {
- var rsltYN = true;
- }
-
- if(rsltYN) {
- fSetClear("P");
- }else {
- alert("저장실패");
- }
-
- model.removeNodeset("/root/send/data1");
- model.removeNodeset("/root/send/data2");
- model.removeNodeset("/root/send/signdata");
- model.makeNode("/root/send/data1");
- model.makeNode("/root/send/data2");
- model.resetInstanceNode("/root/hidden/TestData");
- model.resetInstanceNode("/root/send");
-
-
- fchildsearch("SPLRR90700");
- activateChild("SPLRR90700");
-
- model.refresh();
- }
-
- //인증데이터 만들기
- function fMake_SignData(){
- Sign.addnode("/root/main/rslt/desc");
- }
-
- //이미지 결과 조회, 이미지 표현
- function fImgRef(img){
- var img = document.controls.item(img);
-
- model.copyNode("/root/send/data1" , "/root/main/testinfo/spcltestinfo");
- model.removeNodeset("/root/send/data2");
-
-
- if(model.getValue("/root/main/testinfo/spcltestinfo/testcd") == "LSI113") { //ld이미지
- model.makeValue("/root/send/data1/rsltseqno" , model.getValue("/root/hidden/rsltseqnold"));
- submit("TRLRR01502", false);
-
- model.makeNode("/root/main/viewld"); //ld 이미지 노드 생성
- copyNodeType("/root/main/viewld", "/root/main/view"); //이미지 이동
- model.removenode("/root/main/view"); //이전 이미지 노드 삭제
-
- setImageRefInstance("/root/main/viewld/imgrslt"); //이미지 셋팅
-
- img.attribute("width")= model.getValue("/root/main/viewld/imgwidt");
- img.attribute("height")= model.getValue("/root/main/viewld/imght");
- } else {
- model.makeValue("/root/send/data1/rsltseqno" , model.getValue("/root/hidden/rsltseqno"));
-
- submit("TRLRR01502", false);
- setImageRefInstance("/root/main/view/imgrslt");//이미지 셋팅
-
- img.attribute("width")= model.getValue("/root/main/view/imgwidt");
- img.attribute("height")= model.getValue("/root/main/view/imght");
- }
-
-
- model.removeNodeset("/root/send/data1");
- model.makeNode("/root/send/data1");
- model.makeNode("/root/send/data2");
-
- model.refresh();
- }
-
- //이미지 콤보 박스 조회
- function fImgRslt(cmb, cpt, img){
- cmb = document.controls.item(cmb);
- cpt = document.controls.item(cpt);
- fimg = document.controls.item(img);
-
- model.copyNode("/root/send/data1" , "/root/main/testinfo/spcltestinfo");
-
- if(model.getValue("/root/main/testinfo/spcltestinfo/testcd") == "LSI113") { //ld 이미지
- submit("TRLRR01501");
-
- model.makeNode("/root/main/imglistld"); //ld history 노드 생성
- copyNodeType("/root/main/imglistld", "/root/main/imglist"); //history 이동
- model.removenode("/root/main/imglist"); //이전 history 노드 삭제
-
- if(getNodesetCount("/root/main/imglistld/rsltseqno") > 0){ //history가 존재하면 이미지 조회
- cmb.value = model.getvalue("/root/main/imglistld/rsltseqno");
- fImgRef(img);
- fimg.attribute("visibility") = "visible";
- cpt.attribute("visibility") = "hidden";
- }else { //history가 없으면 no_img 띄움.
- fimg.attribute("visibility") = "hidden";
- cpt.attribute("visibility") = "visible";
- }
- } else {
- submit("TRLRR01501");
-
- if(getNodesetCount("/root/main/imglist/rsltseqno") > 0){ //history가 존재하면 이미지 조회
- cmb.value = model.getvalue("/root/main/imglist/rsltseqno");
- fImgRef(img);
- fimg.attribute("visibility") = "visible";
- cpt.attribute("visibility") = "hidden";
- }else { //history가 없으면 no_img 띄움.
- fimg.attribute("visibility") = "hidden";
- cpt.attribute("visibility") = "visible";
- }
- }
-
- model.removeNodeset("/root/send/data1");
- model.makeNode("/root/send/data1");
-
- model.refresh();
- }
-
- //그리드 키이벤트
- function fGridKeyEvent(grd, pRef){
- gridObj = document.all(grd);
-
- var row = gridObj.row;
- var col = gridObj.col;
-
- if(col == 1 || col == 4){
- var vBufInptRslt = model.getvalue(pRef +"["+row+"]/bufinptrslt");
- var vReptRslt = model.getValue(pRef +"["+row+"]/reptrslt");
- var InptRslt = model.getvalue(pRef +"["+row+"]/inptrslt");
-
- /* if(vReptRslt != "") {
- if(vReptRslt == "" && InptRslt==""){
- model.setvalue(pRef +"["+row+"]/inptrslt",vReptRslt);
- return;
- }
- else{
- if(vReptRslt == InptRslt){
- fCvtViewResult(gridObj, pRef,true);
- return;
- }
- }
- }else {
- if(vBufInptRslt == "" && InptRslt==""){
- model.setvalue(pRef +"["+row+"]/inptrslt",vBufInptRslt);
- return;
- }
- else{
- if(vBufInptRslt == InptRslt){
- fCvtViewResult(gridObj, pRef,true);
- return;
- }
- }
- }*/
-
-
- fCvtResultCode(row, pRef); //결과코드
- fCvtViewResult(gridObj, pRef); //결과판정
- } else{
- }
- }
-
- //그리드 EndEdit (PB만)
- function fGridEndEdit(grd, pRef){
- gridObj = document.all(grd);
-
- var row = gridObj.row;
- var col = gridObj.col;
-
- if(model.getValue(pRef +"["+row+"]/lvl") == "1") { //RBC, WBC, Platelet일때.
- return;
- }
-
- if(col == 1 || col == 4){
- var vBufInptRslt = model.getvalue(pRef +"["+row+"]/bufinptrslt");
- var vReptRslt = model.getValue(pRef +"["+row+"]/reptrslt");
- var InptRslt = model.getvalue(pRef +"["+row+"]/inptrslt");
-
- /* if(vReptRslt != "") {//말초도말검사
- if(vReptRslt == "" && InptRslt==""){
- model.setvalue(pRef +"["+row+"]/inptrslt",vReptRslt);
- return;
- }
- else{
- if(vReptRslt == InptRslt){
- fCvtViewResult(gridObj, pRef,true);
- return;
- }
- }
- }else {
- if(vBufInptRslt == "" && InptRslt==""){
- model.setvalue(pRef +"["+row+"]/inptrslt",vBufInptRslt);
- return;
- }
- else{
- if(vBufInptRslt == InptRslt){
- fCvtViewResult(gridObj, pRef,true);
- return;
- }
- }
- }*/
-
- fCvtResultCode(row, pRef); //결과코드
- fCvtViewResult(gridObj, pRef); //결과판정
- } else{
- }
- }
-
- // 결과판정
- function fCvtViewResult(gridObj, pRef, pMatch, pMulty, pRow){
- var vRow = gridObj.row;
- var vCol = gridObj.col;
-
- var vMaxRow = gridObj.rows-1;
-
- if (typeof(pMatch) == "undefined") pMatch = false;
- if (typeof(pMulty) == "undefined") pMulty = false;
- if (typeof(pRow) != "undefined") vRow = pRow;
-
- var vBufinptrslt = model.getvalue(pRef +"["+vRow+"]/bufinptrslt");
- var vReptrslt = model.getvalue(pRef +"["+vRow+"]/reptrslt");
-
- if(vReptrslt != "") {//말초도말검사
- model.setvalue(pRef +"["+vRow+"]/inptrslt",vReptrslt);
-
- var testcd = model.getValue(pRef + "[" + vRow + "]/testcd");
- var find = grd_rslt.findRow(testcd, 1, 1, true, true);
-
- model.setValue("/root/main/testinfo/detailtestinfo["+ find +"]/reptrslt", vReptrslt);
- model.setValue("/root/main/testinfo/detailtestinfo["+ find +"]/inptrslt", vReptrslt);
- }else {
- model.setvalue(pRef +"["+vRow+"]/inptrslt",vReptrslt);
- model.setvalue (pRef +"["+vRow+"]/reptrslt",vReptrslt);
-
- var testcd = model.getValue(pRef + "[" + vRow + "]/testcd");
- var find = grd_rslt.findRow(testcd, 1, 1, true, true);
-
- model.setValue("/root/main/testinfo/detailtestinfo["+ find +"]/reptrslt", vReptrslt);
- model.setValue("/root/main/testinfo/detailtestinfo["+ find +"]/inptrslt", vReptrslt);
- }
-
- //if(model.getvalue("/root/main/testinfo/detailtestinfo["+ find +"]/reptrslt") != ""){ PB 때문에 20080919 윤재한 막음
- model.setvalue("/root/main/testinfo/detailtestinfo["+ find +"]/chk", "Y");
- //}
-
- if (pMulty) {
- model.setvalue(pRef +"["+vRow+"]/bufinptrslt", "");
- } else {
- var vMoveRow = "";
- if(vMaxRow == parseInt(vRow))
- vMoveRow = 1;
- else
- vMoveRow = parseInt(vRow) + 1;
- if( vMaxRow >= vMoveRow ) {
- } else {
- vMoveRow -= 1;
- }
-
- model.setvalue(pRef +"["+vRow+"]/bufinptrslt", "");
-
- gridObj.row = vMoveRow;
- gridObj.col = vCol;
-
-
- model.setvalue(pRef +"["+vMoveRow+"]/bufinptrslt", model.getvalue(pRef +"["+vMoveRow+"]/inptrslt"));
- }
- }
-
- function fCvtResultCode(row, pRef){
- var vTestcd = model.getValue(pRef + "["+row+"]/tclscd");
- var vInptRslt = model.getValue(pRef + "["+row+"]/bufinptrslt");
-
- var cdNodes = instance1.selectNodes("/root/init/LB0109[etc01='" + vTestcd + "']/cd");
- var cdNodes2 = instance1.selectNodes("/root/init/LB0109[etc01='" + vTestcd + "']/nm");
- var vRstcontLower ="";
- var vRstcontUpper = "";
- for (i = 1; i <= cdNodes.length; i++) {
- var cd = cdNodes.item(i - 1).text;
- var nm = cdNodes2.item(i - 1).text;
-
- if(vInptRslt.toLowerCase() == cd) vRstcontLower = nm;
- if(vInptRslt.toUpperCase() == cd) vRstcontUpper = nm;
- }
-
-
- if (vRstcontLower.getTrim() != "" || vRstcontUpper.getTrim() != "" ) {
- var vRstcont = (vRstcontLower.getTrim() != "") ? vRstcontLower.getTrim() : vRstcontUpper.getTrim();
-
- model.setValue(pRef + "["+row+"]/bufinptrslt", vRstcont);
- model.setValue(pRef + "["+row+"]/inptrslt", vRstcont);
- }
- }
-
- //의뢰서 조회
- function fRefREQSHT() {
- if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "01") { //Bone Marrow
- modal("SPLRR90100","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
- } else if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "02") { //분자유전
- modal("SPLRR90200","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
- } else if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "03") { //세포유전
- if(model.getValue("/root/main/testinfo/spcltestinfo/reqfrmcd") =="04" ){
- modal("SPLRR90400","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
- }
- else{
- modal("SPLRR91300","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
- }
- } else if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "10" || model.getValue("/root/main/rslt/desc/rslt/refflag") == "11") { //PRA, 교차시험
- modal("SPLRR90500","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
- } else if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "09") {//산전기형
- modal("SPLRR90300","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
- } else if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "12") { //TDM
- modal("SPLRR90600","","","","","/root/main/testinfo/spcltestinfo", "/root/hidden/reqfrminfo");
- }
- }
-
- //키이벤트
- function fKeyEvent(){
- if(event.keyCode == "13"){
- if(event.target == "ipt_testpsn"){ //입력자
- model.setvalue("/root/hidden/testid",ipt_testpsn.currentText.toUpperCase());
- model.refresh();
- fUserNMRef("t");
-
- ipt_testpsn.selBegin = 0;
- ipt_testpsn.selEnd = ipt_testpsn.currentText.length;
- model.setFocus("ipt_readpsn");
- }
-
- if(event.target == "ipt_readpsn"){ //판독자
- model.setvalue("/root/hidden/readid",ipt_readpsn.currentText.toUpperCase());
- model.refresh();
- fUserNMRef("r");
-
- ipt_readpsn.selBegin = 0;
- ipt_readpsn.selEnd = ipt_readpsn.currentText.length;
- model.setFocus("ipt_testpsn");
- }
-
- if(event.target == "ipt_reftext"){ //검색
- model.setvalue("/root/hidden/ref/text",ipt_reftext.currentText.toUpperCase());
- model.refresh();
- Onclick_btnRef();
-
- ipt_reftext.selBegin = 0;
- ipt_reftext.selEnd = ipt_reftext.currentText.length;
- model.setFocus("ipt_reftext");
- }
- }
- }
-
- //환자조회
- function Onclick_btnRef(flag){
- if(flag != "R") {
- model.removeNodeset("/root/main/patlist");
- model.resetInstanceNode("/root/main/testinfo/spcltestinfo");
- model.removeNodeset("/root/main/testinfo/detailtestinfo");
- }
-
- model.setvalue("/root/hidden/refparam/refflag", "3");
-
- if(flag == "R") {
- model.copyNode("/root/send/data1","/root/hidden/ref");
- model.setValue("/root/send/data1/refgbn", "2");
- model.setValue("/root/send/data1/text", model.getValue("/root/main/testinfo/spcltestinfo/bcno"));
- model.copyNode("/root/send/data2","/root/hidden/refparam");
- } else {
- model.copyNode("/root/send/data1","/root/hidden/ref");
-
- if(model.getValue("/root/send/data1/refgbn") == "1") {
- model.setValue("/root/send/data1/text", model.getValue("/root/send/data1/spclno") + model.getValue("/root/send/data1/text"));
- }
-
- model.copyNode("/root/send/data2","/root/hidden/refparam");
- }
-
- submit("TRLRR00101");
-
- if(getNodesetCount("/root/main/patlist") > 0) {
- var grup = model.getValue("/root/main/rslt/desc/rslt/refflag");
- var ngrup = model.getValue("/root/main/patlist/spclrsltformkind");
-
- if(grup != ngrup) {
- model.makeValue("/root/main/rslt/desc/rslt/refflag", ngrup);
- fTranscrn();
- }else {
- model.resetInstanceNode("/root/main/rslt");
-
- model.makeValue("/root/main/rslt/desc/rslt/refflag", grup);
- fTranscrn();
- }
-
- model.makeValue("/root/hidden/refflag/bcno", model.getValue("/root/main/patlist/bcno"));
- model.makeValue("/root/hidden/refflag/testcd", model.getValue("/root/main/patlist/testcd"));
- model.makeValue("/root/hidden/refflag/prcpgenrflag", model.getValue("/root/main/patlist/prcpgenrflag"));
-
- // if(model.getValue("/root/main/patlist/descrsltyn") != "Y") {
- //alert("!@$#!@$");
- fOnclick_grd_patList(flag);
- // }
- }else {
- messageBox("해당", "E013");
- }
-
- model.removeNodeset("/root/send/data1");
- model.makeNode("/root/send/data1");
- model.removeNodeset("/root/send/data2");
- model.makeNode("/root/send/data2");
-
- model.refresh();
- }
-
- //판독 불러오기
- function fGetRead() {
- model.makeValue("/root/send/bcno" , model.getvalue("/root/hidden/refflag/bcno"));
- model.makeValue("/root/send/testcd" , model.getValue("/root/main/testinfo/spcltestinfo/testcd"));
-
- submit("TRLRR00403");
-
- if(model.getValue("/root/main/rslt/desc/rslt/refflag") != "") {
- fTranscrn();
- }
-
- if(getNodesetCount("/root/main/rslt/desc/rslt") < 1) {
- Onclick_btnRef("R");
- }
-
- model.removeNodeset("/root/send/bcno");
- model.removeNodeset("/root/send/testcd");
-
- model.refresh();
- }
-
- //사용자 이름 검색
- function fUserNMRef(flag){
- if(flag == "t") { //입력자
- if(model.getvalue("/root/hidden/testid") != ""){
- model.makeValue("/root/send/userid" , model.getvalue("/root/hidden/testid"));
- submit("TRLZZ00104");
-
- model.setValue("/root/hidden/testnm", model.getValue("/root/main/getUsernm/usernm"));
- }
- } else if(flag == "r") { //판독자
- if(model.getvalue("/root/hidden/readid") != ""){
- model.makeValue("/root/send/userid" , model.getvalue("/root/hidden/readid"));
- submit("TRLRR00406");
-
- model.setValue("/root/hidden/readnm", model.getValue("/root/main/getUsernm/usernm"));
- model.makeValue("/root/hidden/userflag", model.getValue("/root/main/getUsernm/userflag"));
-
- if(model.getValue("/root/main/getUsernm/userflag") == "2"){
- model.setValue("/root/main/getUsernm/specdrid","");
- model.makeValue("/root/hidden/specdrid","");
- }
- else{
- model.makeValue("/root/hidden/specdrid",model.getValue("/root/main/getUsernm/specdrid"));
- }
- }
- }
-
- model.removeNodeset("/root/send/userid");
-
- model.refresh();
- }
-
- //오른쪽 마우스 눌렀을 때 결과코드 보여주기.
- function fGetMouseDown(gridid, pRef){
- gridObj = document.all(gridid);
-
- model.removeNodeset("/root/hidden/popupmenu");
-
- if(event.button == 3){ // 라이트클릭 메뉴만들기...
- model.makeNode("/root/hidden/popupmenu/grid");
- model.makeNode("/root/hidden/popupmenu/grid/item");
-
- if(gridObj.mouseCol== 1){
- var testcd = model.getvalue(pRef + "["+ gridObj.mouseRow +"]/testcd");
- //결과코드관련
- var n = getNodesetCount("/root/init/LB0109[etc01='" + testcd + "']");
-
- if (n > 0) {
- var cdNodes = instance1.selectNodes("/root/init/LB0109[etc01='" + testcd + "']/cd");
- var cdNodes2 = instance1.selectNodes("/root/init/LB0109[etc01='" + testcd + "']/nm");
- var dispyn = instance1.selectNodes("/root/init/LB0109[etc01='" + testcd + "']/etc03");
-
- for (i = 1; i <= n; i++) {
- var cd = cdNodes.item(i - 1).text;
- var nm = cdNodes2.item(i - 1).text;
- var yn = dispyn.item(i - 1).text;
-
- if(yn == "Y"){
- model.makeValue("/root/hidden/popupmenu/grid/item["+ i +"]/name" , "["+ cd +"] "+ nm);
- model.makeValue("/root/hidden/popupmenu/grid/item["+ i +"]/func" , nm + "▦" + gridObj.mouseRow + "▦" + pRef + "▦" + gridObj);
- }
-
- }
- }
- }
-
- if(gridObj.isCell(event.target) && gridObj.mouseRow >= gridObj.fixedrows){
- window.setPopupMenu(true , "/root/hidden/popupmenu/grid/item" , "name", "func" , true);
- //setPopupMenu("grd_TestInfoCnts" , true, "/root/hidden/popupmenu/grid/item", "name", "func");
- }else{
- window.setPopupMenu(false);
- }
- }
- }
-
- function fOnmenu(popupParam){
- var aL = popupParam.split("▦");
-
- fRsltCode2(aL[0] , aL[1], aL[2], aL[3]);
- }
-
- function fRsltCode2(nm , pRow, pRef, gridObj){
- model.setvalue(pRef + "["+ pRow +"]/reptrslt", nm);
- model.refresh();
- fCvtViewResult(gridObj, pRef, true, true, pRow);
- model.removeNodeset("/root/hidden/popupmenu");
- }
-
-
- function fXERslt(){
- modal("SPLLR91500 ","","","","","/root/main/rslt/desc/rslt/cbcrslt/bcno","/root/send/bcno");
- }
-
-
- function fAddress(){//세포유전및FISH검사관리 주소 조회
- //model.makeValue("/root/send/instcd","012");
- submit("TRLRR01505");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <switch id="switch3" style="left:0px; top:85px; width:1192px; height:655px; "/>
- <line id="line6" class="line_3" style="x1:414px; y1:83px; x2:1192px; y2:83px; "/>
- <line id="line9" class="line_2" style="x1:414px; y1:58px; x2:1192px; y2:58px; "/>
- <caption id="caption21" class="tit_2" style="left:0px; top:15px; width:115px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">특수검사 정보</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:31px; x2:405px; y2:31px; "/>
- <caption id="caption20" class="cell_1" style="left:414px; top:60px; width:56px; height:23px; vertical-align:middle; ">채취일시</caption>
- <caption id="caption24" class="cell_1" style="left:1009px; top:60px; width:59px; height:23px; vertical-align:middle; ">보고일시</caption>
- <output id="output1" ref="/root/main/testinfo/spcltestinfo/extrtestinstcd" class="output_fix" style="left:473px; top:36px; width:112px; height:19px; "/>
- <output id="opt_pid" ref="/root/main/testinfo/spcltestinfo/pid" class="output_fix" style="left:663px; top:36px; width:70px; height:19px; "/>
- <output id="opt_patnm" ref="/root/main/testinfo/spcltestinfo/patnm" class="output_fix" style="left:809px; top:36px; width:80px; height:19px; "/>
- <output id="opt_orddept" ref="/root/main/testinfo/spcltestinfo/orddeptnm" class="output_fix" style="left:965px; top:36px; width:50px; height:19px; "/>
- <output id="opt_orddr" ref="/root/main/testinfo/spcltestinfo/orddrnm" class="output_fix" style="left:1091px; top:36px; width:100px; height:19px; "/>
- <output id="opt_bcolldt" ref="/root/main/testinfo/spcltestinfo/bcolldt" class="output_fix" format="9999-99-99 99:99:99" style="left:473px; top:62px; width:115px; height:19px; "/>
- <output id="opt_testdt" ref="/root/main/testinfo/spcltestinfo/rsltrgstdt" class="output_fix" style="left:853px; top:62px; width:153px; height:19px; "/>
- <output id="opt_resddt" ref="/root/main/testinfo/spcltestinfo/lastreptdt" class="output_fix" format="9999-99-99 99:99:99" style="left:1071px; top:62px; width:120px; height:19px; "/>
- <caption id="caption1" class="cell_1" style="left:590px; top:35px; width:70px; height:23px; vertical-align:middle; ">등록번호</caption>
- <caption id="caption13" class="cell_1" style="left:736px; top:35px; width:70px; height:23px; vertical-align:middle; ">성명</caption>
- <caption id="caption14" class="cell_1" style="left:414px; top:35px; width:56px; height:23px; vertical-align:middle; ">병원명</caption>
- <caption id="caption15" class="cell_1" style="left:892px; top:35px; width:70px; height:23px; vertical-align:middle; ">진료과명</caption>
- <caption id="caption19" class="cell_1" style="left:1018px; top:35px; width:70px; height:23px; vertical-align:middle; ">진료의명</caption>
- <output id="opt_acptdt" ref="/root/main/testinfo/spcltestinfo/spcacptdt" class="output_fix" format="9999-99-99 99:99:99" style="left:653px; top:62px; width:115px; height:19px; "/>
- <caption id="caption2" class="cell_1" style="left:591px; top:60px; width:59px; height:23px; vertical-align:middle; ">접수일시</caption>
- <caption id="caption3" class="cell_1" style="left:771px; top:60px; width:79px; height:23px; vertical-align:middle; ">결과입력일시</caption>
- <input id="ipt_readpsn" ref="/root/hidden/readid" class="input_essential" style="left:948px; top:5px; width:76px; height:19px; "/>
- <output id="opt_readpsn" ref="/root/hidden/readnm" class="output_fix" style="left:1026px; top:5px; width:82px; height:19px; "/>
- <caption id="caption16" class="tit_2" style="left:892px; top:9px; width:60px; height:13px; ">판독자</caption>
- <input id="ipt_testpsn" ref="/root/hidden/testid" class="input_essential" style="left:730px; top:6px; width:76px; height:19px; "/>
- <output id="opt_testpsn" ref="/root/hidden/testnm" class="output_fix" style="left:808px; top:6px; width:82px; height:19px; "/>
- <output id="output12" ref="/root/hidden/specdrid" class="output_fix" style="left:1110px; top:5px; width:82px; height:19px; "/>
- <caption id="caption7" class="tit_2" style="left:674px; top:9px; width:60px; height:13px; ">입력자</caption>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:5px; top:35px; width:305px; height:48px; "/>
- <caption id="caption127" class="search_name" style="left:15px; top:39px; width:94px; height:17px; ">검색구분 :</caption>
- <select1 id="cmb_refflag" ref="/root/hidden/ref/refgbn" class="combo_search" appearance="minimal" style="left:105px; top:38px; width:195px; height:19px; ">
- <choices>
- <item>
- <label>특수검사번호</label>
- <value>1</value>
- </item>
- <item>
- <label>바코드번호</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/hidden/ref/refgbn") == "1") {
- input1.attribute("visibility") = "visible"
- }else {
- input1.attribute("visibility") = "hidden"
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_reftext" ref="/root/hidden/ref/text" class="input_button" navindex="1" imemode="alpha" inputtype="button" style="left:105px; top:62px; width:195px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- model.setvalue("/root/hidden/ref/text",ipt_reftext.currentText.toUpperCase());
- model.setValue("/root/hidden/ref/spclno", input1.currentText.toUpperCase());
- model.refresh();
- Onclick_btnRef();
- ]]>
- </script>
- </input>
- <button id="button24" class="btn2_letter4" style="left:341px; top:10px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter6.gif; ">
- <caption>환자조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //window.load("SPLRR90700.xrw","mdichild","","left:100; top:100; width:400; height:400; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
- //window.children.item("SPLRR90700").activate();
- open("SPLRR90700");
- ]]>
- </script>
- </button>
- <datagrid id="grd_rslt" nodeset="/root/main/testinfo/detailtestinfo" visibility="hidden" caption="chk^검사코드^검사명^결과^결과^inptrslt^bcno" colsep="^" colwidth="50, 100, 100, 100, 100, 10, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:185px; top:380px; width:480px; height:120px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="testcd"/>
- <col ref="tclsscrnnm"/>
- <col ref="bufinptrslt" type="input"/>
- <col ref="reptrslt"/>
- <col ref="inptrslt"/>
- <col ref="bcno"/>
- </datagrid>
- <datagrid id="grd_lb0901" nodeset="/root/init/LB0901" visibility="hidden" caption="caption1^caption2^caption3" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:355px; top:180px; width:350px; height:150px; ">
- <col ref="cd"/>
- <col ref="nm"/>
- <col ref="etc04"/>
- </datagrid>
- <line id="line12" class="line_1" style="x1:414px; y1:31px; x2:1192px; y2:31px; "/>
- <input id="input1" ref="/root/hidden/ref/spclno" style="left:45px; top:62px; width:60px; height:19px; font-weight:bold; text-align:right; "/>
- <output id="output2" ref="/root/main/testinfo/spcltestinfo/medispclid" class="output_fix" style="left:493px; top:7px; width:47px; height:19px; "/>
- <caption id="caption11" class="cell_1" style="left:415px; top:5px; width:75px; height:23px; vertical-align:middle; ">판독자/일시</caption>
- <caption id="caption18" style="left:544px; top:7px; width:10px; height:20px; ">/</caption>
- <output id="output3" ref="/root/main/testinfo/spcltestinfo/medispcdt" class="output_fix" format="9999-99-99 99:99:99" style="left:555px; top:7px; width:115px; height:19px; "/>
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:315px; top:36px; width:90px; height:48px; "/>
- <caption id="caption170" class="cell_1" style="left:325px; top:39px; width:70px; height:22px; text-align:center; vertical-align:middle; ">처방일자</caption>
- <output id="output10" ref="/root/main/testinfo/spcltestinfo/prcpdd" class="output_fix" format="9999-99-99" style="left:325px; top:63px; width:70px; height:19px; text-align:center; "/>
- </group>
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:475px; height:13px; background-image:../../../com/commonweb/images/tit_bullet1.gif; "/>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button29" class="btn3_letter6" style="left:166px; top:3px; width:104px; height:22px; background-image:../../../com/commonweb/images/btn3_letter6.gif; ">
- <caption>통합결과조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMAER00800 ","","","","","/root/main/testinfo/spcltestinfo/pid","/root/send/data/singdata/srchpid");
- ]]>
- </script>
- </button>
- <button id="btn_reqref" class="btn3_letter5" visibility="hidden" style="left:273px; top:3px; width:92px; height:22px; background-image:../../../com/commonweb/images/btn3_letter5.gif; ">
- <caption>의뢰서조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fRefREQSHT();
- ]]>
- </script>
- </button>
- <button id="button38" class="btn3_letter6" style="left:59px; top:3px; width:104px; height:22px; background-image:../../../com/commonweb/images/btn3_letter6.gif; ">
- <caption>수진이력조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter ("SMMMO02500_cond", model.getvalue("/root/main/testinfo/spcltestinfo/pid")+ "▩");
- open ("SMMMO02500");
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_rsltsave" class="btn4_letter4" disable.background-image="../../../com/commonweb/images/dis_btn4_letter4.gif" style="left:783px; top:3px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn4_letter4.gif; ">
- <caption>결과입력</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fInsRsltSave("1");
- ]]>
- </script>
- </button>
- <button id="button45" class="btn4_letter4" disable.background-image="../../../com/commonweb/images/dis_btn4_letter4.gif" style="left:866px; top:3px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn4_letter4.gif; ">
- <caption>중간보고</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fInsRsltSave("2");
- ]]>
- </script>
- </button>
- <button id="btn_LstRept" class="btn4_letter4" disable.background-image="../../../com/commonweb/images/dis_btn4_letter4.gif" style="left:949px; top:3px; width:82px; height:22px; background-image:../../../com/commonweb/images/btn4_letter4.gif; ">
- <caption>결과보고</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fInsRsltSave("4");
- ]]>
- </script>
- </button>
- <button id="btn_cle" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1127px; top:3px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetClear();
- ]]>
- </script>
- </button>
- <button id="button39" class="btn4_letter5" disable.background-image="../../../com/commonweb/images/dis_btn4_letter5.gif" style="left:1032px; top:3px; width:92px; height:22px; background-image:../../../com/commonweb/images/btn4_letter5.gif; ">
- <caption>전문의확인</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fInsRsltSave("6");
- ]]>
- </script>
- </button>
- <button id="button40" class="btn4_letter4" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn4_letter4.gif" style="left:700px; top:3px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn4_letter4.gif; ">
- <caption>검사완료</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var testcd = model.getValue("/root/main/testinfo/spcltestinfo/testcd")
- var find = grd_rslt.findRow(testcd, 0, 1);
-
- model.setValue("/root/main/testinfo/detailtestinfo["+ find +"]/chk", "Y");
- fInsRsltSave("4");
- ]]>
- </script>
- </button>
- <button id="button43" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /* model.setValue("/root/hidden/xslt/signno", model.getValue("/root/main/testinfo/spcltestinfo/signno"));
- model.setValue("/root/hidden/xslt/form", "0000002916");
- modal("SPLRR90900 ","","","","","/root/hidden/xslt","/root/init");*/
-
- var signno = model.getValue("/root/main/testinfo/spcltestinfo/signno");
- var formcd = model.getValue("/root/main/testinfo/spcltestinfo/formcd");//"0000002916";
-
- if(signno != 0) {
- setParameter("SPMRI02400_prtrecinfo","E▦" + signno + "▦" + formcd + "▩");
- modal("SPMRI02400");
- } else {
- messageBox("전문의 확인이 되지", "E007");
- }
- ]]>
- </script>
- </button>
- </group>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- <script type="javascript" ev:event="onmenu">
- <![CDATA[
- var popupParam = event.description;
- fOnmenu(popupParam);
- ]]>
- </script>
- <group id="group2" style="left:0px; top:125px; width:1190px; height:655px; ">
- <import id="import1" disabled="true" visibility="hidden" src="SMLRR01600_Bonemarrow결과관리.xrw" style="left:0px; top:0px; width:1190px; height:655px; "/>
- <import id="import2" disabled="true" visibility="hidden" src="SMLRR01800_분자유전결과관리.xrw" style="left:0px; top:0px; width:1190px; height:655px; "/>
- <import id="import3" disabled="true" visibility="hidden" src="SMLRR01900_세포유전결과관리.xrw" style="left:0px; top:0px; width:1190px; height:655px; "/>
- <import id="import4" disabled="true" visibility="hidden" src="SMLRR02000_Immunophenotyping결과관리.xrw" style="left:0px; top:0px; width:1190px; height:655px; "/>
- <import id="import5" disabled="true" visibility="hidden" src="SMLRR02100_Osmotic Fragility결과관리.xrw" style="left:0px; top:0px; width:1190px; height:655px; "/>
- <import id="import6" disabled="true" visibility="hidden" src="SMLRR02200_ICG 결과관리.xrw" style="left:0px; top:0px; width:1190px; height:655px; "/>
- <import id="import7" disabled="true" visibility="hidden" src="SMLRR02300_PB 결과관리.xrw" style="left:0px; top:0px; width:1190px; height:655px; "/>
- <import id="import8" disabled="true" visibility="hidden" src="SMLRR02400_EP 결과관리.xrw" style="left:0px; top:0px; width:1190px; height:655px; "/>
- <import id="import9" disabled="true" visibility="hidden" src="SMLRR02500_산전기형 결과관리.xrw" style="left:0px; top:0px; width:1190px; height:655px; "/>
- <import id="import10" disabled="true" visibility="hidden" src="SMLRR02600_PRA 결과관리.xrw" style="left:0px; top:0px; width:1190px; height:655px; "/>
- <import id="import11" disabled="true" visibility="hidden" src="SMLRR02700_교차시험 결과관리.xrw" style="left:0px; top:0px; width:1190px; height:655px; "/>
- <import id="import12" disabled="true" visibility="hidden" src="SMLRR02800_TDM 결과관리.xrw" style="left:0px; top:0px; width:1190px; height:655px; "/>
- <import id="import13" disabled="true" visibility="hidden" src="SMLRR02900_CKLD 결과관리.xrw" style="left:0px; top:0px; width:1190px; height:655px; "/>
- <import id="import14" disabled="true" visibility="hidden" src="SMLRR03000_FISH 결과관리.xrw" style="left:0px; top:0px; width:1190px; height:655px; "/>
- <import id="import15" disabled="true" visibility="hidden" src="SMLRR03100_범용보고서 결과관리.xrw" style="left:0px; top:0px; width:1190px; height:655px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|