123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLNR00300.xrw
- * 설 명 : 핵의학검사항목별 결과관리
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 조철형
- * 작 성 일 : 2007.09.05
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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/>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <testinfo>
- <patlist>
- <chk/>
- <workno/>
- <bcno/>
- <pid/>
- <patnm/>
- <sexage/>
- <orddrnm/>
- <orddeptnm/>
- <wardroom/>
- <prcpdd/>
- <execprcpuniqno/>
- <instcd/>
- <inptrslt1 readonly=""/>
- <inptrslt2 readonly=""/>
- <inptrslt3 readonly=""/>
- <inptrslt4 readonly=""/>
- <inptrslt5 readonly=""/>
- <inptrslt6 readonly=""/>
- <inptrslt7 readonly=""/>
- <inptrslt8 readonly=""/>
- <inptrslt9 readonly=""/>
- <inptrslt10 readonly=""/>
- <inptrslt11 readonly=""/>
- <inptrslt12 readonly=""/>
- <inptrslt13 readonly=""/>
- <inptrslt14 readonly=""/>
- <inptrslt15 readonly=""/>
- <inptrslt16 readonly=""/>
- <inptrslt17 readonly=""/>
- <inptrslt18 readonly=""/>
- <inptrslt19 readonly=""/>
- <inptrslt20 readonly=""/>
- <inptrslt21 readonly=""/>
- <inptrslt22 readonly=""/>
- <inptrslt23 readonly=""/>
- <inptrslt24 readonly=""/>
- <inptrslt25 readonly=""/>
- <inptrslt26 readonly=""/>
- <inptrslt27 readonly=""/>
- <inptrslt28 readonly=""/>
- <inptrslt29 readonly=""/>
- <inptrslt30 readonly=""/>
- </patlist>
- <spcinfo>
- <spcscrnnm/>
- <refval/>
- <judgmark/>
- <panicmark/>
- <deltamark/>
- <criticalmark/>
- <alertmark/>
- <rsltmark/>
- <reptrslt/>
- <bfreptrslt/>
- <bflastreptdt/>
- <testeqmtcd/>
- <rsltrgsgid/>
- <mdlreptid/>
- <lastreptdt/>
- <cmt/>
- <testcmt/>
- </spcinfo>
- <testlist>
- <rkey/>
- <workno/>
- <bcno/>
- <execprcpuniqno/>
- <testcd/>
- <spccd/>
- <bufinptrslt/>
- <reptrslt/>
- <rsltunit/>
- <judgmark/>
- <panicmark/>
- <deltamark/>
- <criticalmark/>
- <alertmark/>
- <rsltmark/>
- <rsltstat/>
- <bfbcno/>
- <bflastreptdt/>
- <testeqmtcd/>
- <comment/>
- <tclskind/>
- <spcacptid/>
- <spcacptdt/>
- <spcacptnm/>
- <rsltrgsgid/>
- <rsltrgstdt/>
- <rsltrgstnm/>
- <mdlreptid/>
- <mdlreptdt/>
- <mdlreptnm/>
- <lastreptid/>
- <lastreptdt/>
- <lastreptnm/>
- <tclscd/>
- <bfinptrslt/>
- <bfreptrslt/>
- <rsltseq/>
- <prcpgenrflag/>
- <rsltkind/>
- <rsltintsize/>
- <rsltdcmlsize/>
- <rundkind/>
- <rvalflag/>
- <descrval/>
- <judgkind/>
- <userjudgchar1/>
- <userjudgchar2/>
- <userjudgchar3/>
- <panicflag/>
- <panicminval/>
- <panicmaxval/>
- <deltaflag/>
- <deltaminval/>
- <deltamaxval/>
- <deltaterm/>
- <criticflag/>
- <criticminval/>
- <criticmaxval/>
- <alertflag/>
- <alertminval/>
- <allertmaxval/>
- <alimitls/>
- <alimitflag/>
- <alimitminval/>
- <alimith/>
- <alimiths/>
- <alimitls/>
- <refl/>
- <refls/>
- <refh/>
- <refhs/>
- <reflt/>
- <rstinterval/>
- <iud/>
- <spcscrnnm/>
- <inptrslt/>
- </testlist>
- <BAK_TESTITEM>
- <rkey/>
- <workno/>
- <testcd/>
- <spccd/>
- <inptrslt/>
- </BAK_TESTITEM>
- </testinfo>
- <testgrupdetl>
- <chk/>
- <tclsnm/>
- <tclscd/>
- </testgrupdetl>
- <getUsernm>
- <usernm/>
- </getUsernm>
- <divgrupnmlist>
- <divgrupcd/>
- <tclscd/>
- <tclsnm/>
- <spccd/>
- <instcd/>
- </divgrupnmlist>
- </main>
- <send>
- <data1/>
- <data2/>
- <data3>
- <bcno/>
- <tclslist/>
- <pid/>
- </data3>
- <divgrupcd/>
- </send>
- <init>
- <LB0106>
- <cd/>
- <nm/>
- </LB0106>
- <LB0103>
- <cd/>
- <nm/>
- </LB0103>
- <spc>
- <spclist/>
- </spc>
- </init>
- <hidden>
- <refparam>
- <startdd/>
- <enddd/>
- <divgrupcd/>
- <sworkseq>00000</sworkseq>
- <eworkseq>99999</eworkseq>
- <rsltstat0>1</rsltstat0>
- <tclscdlist/>
- <rsltstat1>1</rsltstat1>
- <rsltstat2/>
- <tclscdlist2/>
- <testgrupseqno/>
- <rsltstat/>
- <userid/>
- <onlytest/>
- <spccd/>
- <spcflag/>
- </refparam>
- <ref>
- <tclscdlist>
- <tclsnmlist/>
- <tclscdlist/>
- <tclscdlist2/>
- </tclscdlist>
- <allcheck/>
- <tclscd/>
- </ref>
- <default/>
- <currenRow/>
- <updateparam>
- <rsltstat/>
- <tclslrgkind>-</tclslrgkind>
- </updateparam>
- <rsltcode>
- <cd/>
- <nm/>
- </rsltcode>
- <rsltcont/>
- <refflag>
- <userid/>
- <bcno/>
- <rsltstat/>
- <testlrgkind/>
- </refflag>
- <popupmenu>
- <grid>
- <item/>
- </grid>
- </popupmenu>
- <search>
- <spc/>
- <spcgbn/>
- </search>
- <spccd/>
- <spcflag>0</spcflag>
- <spcall/>
- <popupval/>
- </hidden>
- </root>
- </instance>
- <bind id="bind1" ref="/root/main/testinfo/patlist/inptrslt1" readonly="../inptrslt1/@readonly = 'true'"/>
- <bind id="bind2" ref="/root/main/testinfo/patlist/inptrslt2" readonly="../inptrslt2/@readonly = 'true'"/>
- <bind id="bind3" ref="/root/main/testinfo/patlist/inptrslt3" readonly="../inptrslt3/@readonly = 'true'"/>
- <bind id="bind4" ref="/root/main/testinfo/patlist/inptrslt4" readonly="../inptrslt4/@readonly = 'true'"/>
- <bind id="bind5" ref="/root/main/testinfo/patlist/inptrslt5" readonly="../inptrslt5/@readonly = 'true'"/>
- <bind id="bind6" ref="/root/main/testinfo/patlist/inptrslt6" readonly="../inptrslt6/@readonly = 'true'"/>
- <bind id="bind7" ref="/root/main/testinfo/patlist/inptrslt7" readonly="../inptrslt7/@readonly = 'true'"/>
- <bind id="bind8" ref="/root/main/testinfo/patlist/inptrslt8" readonly="../inptrslt8/@readonly = 'true'"/>
- <bind id="bind9" ref="/root/main/testinfo/patlist/inptrslt9" readonly="../inptrslt9/@readonly = 'true'"/>
- <bind id="bind10" ref="/root/main/testinfo/patlist/inptrslt10" readonly="../inptrslt10/@readonly = 'true'"/>
- <bind id="bind11" ref="/root/main/testinfo/patlist/inptrslt11" readonly="../inptrslt11/@readonly = 'true'"/>
- <bind id="bind12" ref="/root/main/testinfo/patlist/inptrslt12" readonly="../inptrslt12/@readonly = 'true'"/>
- <bind id="bind13" ref="/root/main/testinfo/patlist/inptrslt13" readonly="../inptrslt13/@readonly = 'true'"/>
- <bind id="bind14" ref="/root/main/testinfo/patlist/inptrslt14" readonly="../inptrslt14/@readonly = 'true'"/>
- <bind id="bind15" ref="/root/main/testinfo/patlist/inptrslt15" readonly="../inptrslt15/@readonly = 'true'"/>
- <bind id="bind16" ref="/root/main/testinfo/patlist/inptrslt16" readonly="../inptrslt16/@readonly = 'true'"/>
- <bind id="bind17" ref="/root/main/testinfo/patlist/inptrslt17" readonly="../inptrslt17/@readonly = 'true'"/>
- <bind id="bind18" ref="/root/main/testinfo/patlist/inptrslt18" readonly="../inptrslt18/@readonly = 'true'"/>
- <bind id="bind19" ref="/root/main/testinfo/patlist/inptrslt19" readonly="../inptrslt19/@readonly = 'true'"/>
- <bind id="bind20" ref="/root/main/testinfo/patlist/inptrslt20" readonly="../inptrslt20/@readonly = 'true'"/>
- <bind id="bind21" ref="/root/main/testinfo/patlist/inptrslt21" readonly="../inptrslt21/@readonly = 'true'"/>
- <bind id="bind22" ref="/root/main/testinfo/patlist/inptrslt22" readonly="../inptrslt22/@readonly = 'true'"/>
- <bind id="bind23" ref="/root/main/testinfo/patlist/inptrslt23" readonly="../inptrslt23/@readonly = 'true'"/>
- <bind id="bind24" ref="/root/main/testinfo/patlist/inptrslt24" readonly="../inptrslt24/@readonly = 'true'"/>
- <bind id="bind25" ref="/root/main/testinfo/patlist/inptrslt25" readonly="../inptrslt25/@readonly = 'true'"/>
- <bind id="bind26" ref="/root/main/testinfo/patlist/inptrslt26" readonly="../inptrslt26/@readonly = 'true'"/>
- <bind id="bind27" ref="/root/main/testinfo/patlist/inptrslt27" readonly="../inptrslt27/@readonly = 'true'"/>
- <bind id="bind28" ref="/root/main/testinfo/patlist/inptrslt28" readonly="../inptrslt28/@readonly = 'true'"/>
- <bind id="bind29" ref="/root/main/testinfo/patlist/inptrslt29" readonly="../inptrslt29/@readonly = 'true'"/>
- <bind id="bind30" ref="/root/main/testinfo/patlist/inptrslt30" readonly="../inptrslt30/@readonly = 'true'"/>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- fBaseInfoRef("0103|0116|0000|");
-
- model.setvalue("/root/hidden/refparam/divgrupcd", "00");
- //model.setvalue("/root/hidden/refparam/testgrupseqno", model.getvalue("/root/init/LB0103/cd"));
- model.setvalue("/root/hidden/refparam/startdd",getCurrentDate());
- model.setvalue("/root/hidden/refparam/enddd",getCurrentDate());
- datagrid2.disabled = true;
- grd_testlist.removeRow();
- for(i=grd_testlist.cols ; i > 9 ; i--)
- grd_testlist.colHidden(i) = true;
-
- //그리드초기화
- model.removeNodeset("/root/init/spc");
- submit("TRLMS00001");
-
- // submit("TRLMS00401");
- model.setValue("/root/hidden/spcall", fGetCdList("/root/init/spc/spclist"));
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <submission id="TRLLF90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testgrupdetl"/>
- <submission id="TRLZZ00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getUsernm"/>
- <submission id="TXLLR00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TXLLR80101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLNP00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/divgrupnmlist"/>
- <submission id="TRLNR00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testinfo"/>
- <submission id="TRLMS00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/"/>
- </model>
- <script type="javascript">
- <![CDATA[
- var gStartCol = 10;
-
- function fSetInit(){
- fBaseInfoRef("0103|0116|0000|");
- }
-
- //선택팝업 화면 오픈 처리
- function fOpenSetup(gbn) {
- switch2.disabled = false;
-
- switch (gbn) {
- case "bact" :
- model.toggle("case_bactlist");
- break;
- case "ward" :
- model.toggle("case_wardlist");
- break;
- case "spc" :
- model.toggle("case_spclist");
- break;
- case "tcls" :
- model.toggle("case_tclslist");
- break;
- case "anti" :
- model.toggle("case_antilist");
- break;
- }
- model.setValue("/root/hidden/popupval", gbn);
- switch2.visible = true;
- btn_close_setup.visible = true;
- if(gbn != "anti") btn_selall.visible = true;
- btn_selnot.visible = true;
- }
- //선택팝업 화면 클로즈 처리
- function fCloseSetup() {
- switch2.disabled = true;
- switch2.visible = false;
- btn_close_setup.visible = false;
- btn_selall.visible = false;
- btn_selnot.visible = false;
- }
-
- //선택팝업 화면 모두선택 처리
- function fSelectAll() {
- switch (model.getValue("/root/hidden/popupval")) {
- case "spc" :
- model.setValue("/root/hidden/spccd", model.getValue("/root/hidden/spcall"));
- chk_spccd.refresh();
- break;
- }
- }
-
- //모두 선택 리스트 값 리턴
- function fGetCdList(xpath, icu){
- var cnt = parseInt(model.getXPathValue("count(" + xpath + ")"));
- var cdlist = "";
-
- for(i = 1; i <= cnt; i++){
- if(icu == "icu"){
- if(model.getValue(xpath + "[" + i + "]/icu" ) == "Y"){
- if(cdlist == "") cdlist = model.getValue(xpath + "[" + i + "]/cd" );
- else cdlist = cdlist + "▦" + model.getValue(xpath + "[" + i + "]/cd" );
- }
- }
- else{
- if(cdlist == "") cdlist = model.getValue(xpath + "[" + i + "]/cd" );
- else cdlist = cdlist + "▦" + model.getValue(xpath + "[" + i + "]/cd" );
- }
- }
-
- return cdlist;
- }
-
- //선택팝업 화면 선택해제 처리
- function fSelectNot() {
- switch (model.getValue("/root/hidden/popupval")) {
- case "bact" :
- break;
- case "ward" :
- break;
- case "spc" :
- model.setValue("/root/hidden/spccd", "");
- chk_spccd.refresh();
- break;
- case "tcls" :
- break;
- case "anti" :
- break;
- }
- }
-
- function fOnclick_btnRef(){
-
- grd_testlist.rebuildStyle();
-
- if(model.getvalue("/root/hidden/ref/tclscdlist/tclscdlist") == ""){
- messageBox("검사항목을","C002","") ;
- return;
- }
-
- var sworkseq = model.getvalue("/root/hidden/refparam/sworkseq");
- var eworkseq = model.getvalue("/root/hidden/refparam/eworkseq");
-
- sworkseq = sworkseq.getLeftPad(4,"0");
- eworkseq = eworkseq.getLeftPad(4,"0");
-
- model.setvalue("/root/hidden/refparam/sworkseq" , sworkseq);
- model.setvalue("/root/hidden/refparam/eworkseq" , eworkseq);
- //검체추가 2013 10월 30일
- model.setvalue("/root/hidden/refparam/spccd" , model.getvalue("/root/hidden/spccd"));
- model.setvalue("/root/hidden/refparam/spcflag" , model.getvalue("/root/hidden/spcflag"));
-
-
- model.setvalue("/root/hidden/refparam/tclscdlist" , model.getvalue("/root/hidden/ref/tclscdlist/tclscdlist"));
- model.setvalue("/root/hidden/refparam/tclscdlist2" , model.getvalue("/root/hidden/ref/tclscdlist/tclscdlist2"));
-
- var rsltstat0 = model.getvalue("/root/hidden/refparam/rsltstat0");
- var rsltstat1 = model.getvalue("/root/hidden/refparam/rsltstat1");
- var rsltstat2 = model.getvalue("/root/hidden/refparam/rsltstat2");
-
- if(rsltstat0 == "" && rsltstat1 == "" && rsltstat2 == ""){
- messageBox("결과구분을 하나이상","C002","") ;
- return;
- }
- // 결과구분 정의
-
-
- var isRstGbn0 = false; //결과미입력
- var isRstGbn1 = false; //결과입력
- var isRstGbn2 = false; //최종보고
-
- if(rsltstat0 == "1") isRstGbn0 = true;
- if(rsltstat1 == "1") isRstGbn1 = true;
- if(rsltstat2 == "1") isRstGbn2 = true;
-
- if (isRstGbn2) {
- model.setvalue("/root/hidden/refparam/rsltstat" , "3");
-
- } else {
- if (isRstGbn0 && isRstGbn1) {
- model.setvalue("/root/hidden/refparam/rsltstat" , "2");
- } else if (isRstGbn1) {
- model.setvalue("/root/hidden/refparam/rsltstat" , "1");
- } else {
- model.setvalue("/root/hidden/refparam/rsltstat" , "0");
- }
-
- }
- model.copyNode("/root/send/data1" , "/root/hidden/refparam");
- model.makeValue("/root/send/data1/userdeptflagcd", "N");
-
- // 검체추가
- submit("TRLNR00401" , false);
-
- model.copyNode("/root/send/data1" , "/root/hidden/default");
- model.refresh();
- fGrdReMake2();
-
-
-
- }
-
-
- function fGrdReMake2(){
-
- var vCdList = model.getValue("/root/hidden/ref/tclscdlist/tclscdlist2").split("▦");
- var vCdCount = vCdList.length;
-
- if(model.getvalue("/root/hidden/refparam/onlytest") == 1 ) vCdCount = 6;
-
- var vOrgrst = "";
- var curCol = 0;
-
- for (var row = 1; row < grd_testlist.rows; row++) {
- for (var col=0; col < parseInt(vCdCount); col++) {
- vOrgrst = "inptrslt" + (eval(col+1) );
-
- if (model.getValue("/root/main/testinfo/patlist["+row+"]/"+vOrgrst+"/@readonly") == "true") {
-
- curCol = eval(gStartCol+col);
- grd_testlist.cellStyle("background-color", row, curCol, row, curCol) = "#eaeaea";
- }
- else{
- if(model.getValue("/root/main/testinfo/patlist["+row+"]/retestyn") == "Y"){
- curCol = eval(gStartCol+col);
- grd_testlist.cellStyle("background-color", row, curCol, row, curCol) = "#f7a08b";
- }else if(model.getValue("/root/main/testinfo/patlist["+row+"]/retestyn") == "D"){
- curCol = eval(gStartCol+col);
- grd_testlist.cellStyle("background-color", row, curCol, row, curCol) = "#99cc00";
- }
- }
- }
- }
- }
-
-
- function fGrdReMake(){
-
- if(model.getvalue("/root/hidden/refparam/onlytest") == "1") fHidden();
-
-
- if(model.getvalue("/root/hidden/ref/tclscdlist/tclscdlist") !=""){
- model.removeNodeset("/root/main/testinfo/patlist");
- model.refresh();
- if(grd_testlist.cols > 10){
- var cols = grd_testlist.cols
- for(i=cols ; i > 10 ; i--)
- grd_testlist.colHidden(i) = true;
- }
-
- var caption = "^작업번호^바코드번호^등록번호^성명^Sex/Age^의뢰의사^진료과^병동/병실";
- //var vTclsnmA = model.getvalue("/root/hidden/ref/tclscdlist/tclsnmlist2").split("▦");
- var vTclsnmA = model.getvalue("/root/hidden/ref/tclscdlist/tclsnmlist").split(",");
- for(i=0;i<vTclsnmA.length;i++){
-
- grd_testlist.colHidden(i + 10) = false;
-
- //grd_testlist.caption = grd_testlist.caption +"^" + vTclsnmA[i];
- //grd_testlist.valueMatrix(0, i + 10) = vTclsnmA[i];
-
- //grd_testlist.colHidden(i + 11) = false;
-
- caption += "^" + vTclsnmA[i];
- //grd_testlist.caption = caption; //블럭아래로 뺌 20080825_승현
- }
- grd_testlist.caption = caption;
-
- if(model.getvalue("/root/hidden/refparam/onlytest") == "1"){
-
-
-
- for(xx=1;xx<=5;xx++){
- grd_testlist.colHidden( xx + 10) = false;
-
- //grd_testlist.caption = grd_testlist.caption +"^" + vTclsnmA[i];
- grd_testlist.valueMatrix(0, xx + 10) = "이전결과" + xx;
-
- }
- }
- //grd_testlist.rebuild();
- }
-
- }
-
- function fPatGridClick(pRow,pCol){
- if(model.getvalue("/root/hidden/refparam/onlytest") == 1 && pCol > 10) return;
- var sDetilRow = fGetRow(pRow,pCol);
-
- //fCurrentHangMok(pCol);
-
- if(sDetilRow > 0){
- model.setValue("/root/hidden/currenRow", sDetilRow);
-
- model.makeValue("/root/main/testinfo/spcinfo/spcscrnnm" , model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/spcscrnnm"));
- model.makeValue("/root/main/testinfo/spcinfo/refval" , model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/refval"));
- model.makeValue("/root/main/testinfo/spcinfo/judgmark" , model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/judgmark"));
- model.makeValue("/root/main/testinfo/spcinfo/panicmark" , model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/panicmark"));
- model.makeValue("/root/main/testinfo/spcinfo/deltamark" , model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/deltamark"));
- model.makeValue("/root/main/testinfo/spcinfo/criticalmark" , model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/criticalmark"));
- model.makeValue("/root/main/testinfo/spcinfo/alertmark" , model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/alertmark"));
- model.makeValue("/root/main/testinfo/spcinfo/rsltmark" , model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/rsltmark"));
- model.makeValue("/root/main/testinfo/spcinfo/reptrslt" , model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/reptrslt"));
- model.makeValue("/root/main/testinfo/spcinfo/bfreptrslt" , model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/bfreptrslt"));
- model.makeValue("/root/main/testinfo/spcinfo/bflastreptdt" , model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/bflastreptdt"));
- model.makeValue("/root/main/testinfo/spcinfo/testeqmtcd" , model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/testeqmtcd"));
- model.makeValue("/root/main/testinfo/spcinfo/rsltrgsgid" , model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/rsltrgsgid"));
- model.makeValue("/root/main/testinfo/spcinfo/mdlreptid" , model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/mdlreptid"));
- model.makeValue("/root/main/testinfo/spcinfo/lastreptdt" , model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/lastreptdt"));
- //model.makeValue("/root/main/testinfo/spcinfo/comment" , model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/comment"));
- model.makeValue("/root/main/testinfo/spcinfo/testcmt" , model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/testcmt"));
-
- var vJudg = model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/judgmark")
- if(vJudg == "H"){
- datagrid2.cellStyle ("background-color",1,0,1,0) = "#f7a08b";
- }
- else if(vJudg == "L"){
- datagrid2.cellStyle ("background-color",1,0,1,0) = "#b9e5fb";
- }
- else{
- datagrid2.cellStyle ("background-color",1,0,1,0) = "#ffffff";
- }
- //panic
- var vPanic = model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/panicmark");
- if(vPanic == "P"){
- datagrid2.cellStyle ("background-color",1,1,1,1) = "#7BE6B7";
- //datagrid2.cellStyle ("background-color",1,1,1,1) = "#7BE6B7";
- }
- else{
- datagrid2.cellStyle ("background-color",1,1,1,1) = "#ffffff";
- }
-
-
- //delta
- var vDelta = model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/deltamark");
-
- if(vDelta == "D"){
- datagrid2.cellStyle ("background-color",1,2,1,2) = "#dec6a4";
- //grd_TestInfoCnts.cellstyle("background-color" , i,4) = "#7BE6B7";
- }
- else{
- datagrid2.cellStyle ("background-color",1,2,1,2) = "#ffffff";
- }
-
- //critical
- var vCritical = model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/criticalmark");
- if(vCritical == "C"){
- datagrid2.cellStyle ("background-color",1,3,1,3) = "#ffe79d";
- //grd_TestInfoCnts.cellstyle("background-color" , i,4) = "#7BE6B7";
- }
- else{
- datagrid2.cellStyle ("background-color",1,3,1,3) = "#ffffff";
- }
-
- //alert
- var vAlert= model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/alertmark");
- if(vAlert == "A"){
- datagrid2.cellStyle ("background-color",1,4,1,4) = "#fec34d";
- //grd_TestInfoCnts.cellstyle("background-color" , i,4) = "#7BE6B7";
- }
- else{
- datagrid2.cellStyle ("background-color",1,4,1,4) = "#ffffff";
- }
- //model.setvalue("/root/main/testinfo/spcinfo/comment" , "-")
- model.refresh();
- }
- else{
- model.setValue("/root/hidden/currenRow", "");
- model.resetInstanceNode("/root/main/testinfo/spcinfo");
- model.refresh();
- }
-
- // 환자 선택, 취소 클릭
- if (pCol == 1) {
- var isChk = model.getValue("/root/main/testinfo/patlist[" + + "]/chk");
- var vWorkno = model.getValue("/root/main/testinfo/patlist[" + pRow + "]/workno");
- var vCdList = model.getValue("/root/hidden/refparam/tclscdlist2").split("▦");
-
- //alert ("pRow = " + pRow + ", i = " + i);
-
- if (isChk == "true") {
- grd_testlist.rowStyle(pRow, "data", "background-color") = "#f3e1bf";
- } else {
- grd_testlist.rowStyle(pRow, "data", "background-color") = "#FFFFFF";
- }
- for (var idx=0; idx < vCdList.length; idx++) {
- var vInptRslt = "";
- vInptRslt = "inptrslt" + (eval(idx+1) );
- var readonly = model.getValue("/root/main/testinfo/patlist["+pRow+"]/"+vInptRslt+"/@readonly");
- var rstval = model.getValue("/root/main/testinfo/patlist["+pRow+"]/"+vInptRslt)
-
- if (readonly == "false") {
- col = idx + gStartCol;
- var refRow = fGetRow(pRow, col);
-
- if(rstval == ""){
- model.setValue("/root/main/testinfo/testlist[" + refRow + "]/iud", "");
- }else{
- // 수정된항목 색변경
- grd_testlist.cellStyle("background-color", pRow, col, pRow, col) = "#f3e1bf";
- model.setValue("/root/main/testinfo/testlist[" + refRow + "]/iud", (isChk != "true") ? "" : "U");
- }
- }
- }
- }
- }
-
- function fGetRow(pRow, pCol) {
-
- if (!pRow>0) return 0;
-
- if (pCol < gStartCol) {
-
-
- } else {
-
- var vWorkno = model.getValue("/root/main/testinfo/patlist["+pRow+"]/workno").getTrim();
- var vCdList = model.getValue("/root/hidden/refparam/tclscdlist2").split("▦");
- var vIdx = eval(pCol - gStartCol);
-
- var vRkey = vWorkno+vCdList[vIdx].getTrim();
- var findRow = datagrid1.findRow(vRkey, 1,0, false, true);
-
-
- return findRow;
- }
-
- return 0;
- }
-
- function fCvtViewResult(pInptRslt, pRefRow, pMatch) {
-
- var vRow = pRefRow;
- if (typeof(pMatch) == "undefined") pMatch = false
-
- // 실제 결과
- var vBufInptRslt = pInptRslt;
-
- // 입력결과와 기존의 결과가 같으면 판정안함...
- if (!pMatch) {
- model.setValue("/root/main/testinfo/testlist["+vRow+"]/inptrslt", vBufInptRslt);
-
-
- var colorTF = false;
- var vRsltkind = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/testrsltkind");
- var vRsltintsize = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/rsltintsize");
- var vRsltdcmlsize = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/rsltdcmlsize");
- var vRundkind = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/rundkind");
- var vNvalrsltlimyn = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/nvalrsltlimyn");
-
- var vReptrslt = fCOMLIS_CvtReptrslt(vBufInptRslt, vRsltkind, vRsltintsize, vRsltdcmlsize, vRundkind,vNvalrsltlimyn);
-
- if(vReptrslt == "err") {
-
- model.setvalue("/root/main/testinfo/testlist["+vRow+"]/bufinptrslt","");
- return;
- }
- model.setvalue("/root/main/testinfo/testlist["+vRow+"]/inptrslt",vBufInptRslt);
-
- //LH 판정
- var vJudgkind = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/judgkind");
- var vRefL = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/refl");
- var vRefLS = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/refls");
- var vRefH = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/refh");
- var vRefHS = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/refhs");
- var vRefLT = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/reflt");
- var vRvalflag = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/rvalflag");
-
- var vJudgLH = fCOMLIS_JudgLH(vReptrslt, vJudgkind, vRefL, vRefLS, vRefH, vRefHS, vRefLT,vRvalflag);
- model.setvalue("/root/main/testinfo/testlist["+vRow+"]/judgmark",vJudgLH);
-
- if(vJudgLH == "H"){
- datagrid2.cellStyle ("background-color", 1,0,1,0) = "#f7a08b";
- }
- else if(vJudgLH == "L"){
- datagrid2.cellStyle ("background-color", 1,0,1,0) = "#b9e5fb";
- }
- else{
- datagrid2.cellStyle ("background-color", 1,0,1,0) = "#fffff:"
- }
- //grd_TestInfoCnts.cellStyle("text-align",vRow,8) = "center";
-
-
-
- //panic 판정
- var vJudgGbn = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/panicflag").getTrim();
- var vRefL = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/panicminval").getTrim();
- var vRefH = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/panicmaxval").getTrim();
-
- var vJudgPanic = fCOMLIS_JudgPCA(vReptrslt, vJudgGbn, vRefL, vRefH, "P");
-
- if(vJudgPanic == "P"){
-
- datagrid2.cellStyle ("background-color", 1,1,1,1) = "#7BE6B7";
- //datagrid2.cellstyle ("background-color" , vRow,4,vRow,4) = "#7BE6B7";
- colorTF = true;
- }
- else{
- datagrid2.cellStyle ("background-color", 1,1,1,1) = "#ffffff";
-
- }
- model.setvalue("/root/main/testinfo/testlist["+vRow+"]/panicmark", vJudgPanic);
- // Panic판정의 전경/배경색 변경
-
-
- // Delta판정
- var vBfResult = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/bfreptrslt").getTrim();
- var vJudgGbn = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/deltaflag").getTrim();
- var vRefH = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/deltamaxval").getTrim();
- var vDeltaday = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/deltaterm").getTrim();
- var vRstinterval = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/rstinterval").getTrim();
- var vJudgDelta = fCOMLIS_JudgDelta(vReptrslt, vBfResult, vJudgGbn, vRefH, vDeltaday, vRstinterval);
- model.setvalue("/root/main/testinfo/testlist["+vRow+"]/deltamark", vJudgDelta);
-
- if(vJudgDelta == "D"){
- datagrid2.cellStyle ("background-color", 1,2,1,2) = "#dec6a4";
- //grd_TestInfoCnts.cellstyle("background-color" , vRow,4) = "#7BE6B7";
- colorTF = true;
- }
- else{
- datagrid2.cellStyle ("background-color", 1,2,1,2) = "#ffffff";
- }
-
- // Critical판정
- var vJudgGbn = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/criticalflag").getTrim();
- var vRefL = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/criticalminval").getTrim();
- var vRefH = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/criticalmaxval").getTrim();
- var vJudgCritical = fCOMLIS_JudgPCA(vReptrslt, vJudgGbn, vRefL, vRefH, "C");
- model.setvalue("/root/main/testinfo/testlist["+vRow+"]/criticalmark", vJudgCritical);
- // Critical판정의 전경/배경색 변경
-
- if(vJudgCritical == "C"){
- datagrid2.cellStyle ("background-color", 1,3,1,3) = "#ffe79d";
- //grd_TestInfoCnts.cellstyle("background-color" , vRow,4) = "#7BE6B7";
- colorTF = true;
- }
- else{
- datagrid2.cellStyle ("background-color", 1,3,1,3) = "#ffffff";
- }
-
- // Alert판정
- var vJudgGbn = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/alertflag").getTrim();
- var vRefL = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/alertminval").getTrim();
- var vRefH = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/alertmaxval").getTrim();
- var vJudgAlert = fCOMLIS_JudgPCA(vReptrslt, vJudgGbn, vRefL, vRefH, "A");
- model.setvalue("/root/main/testinfo/testlist["+vRow+"]/alertmark", vJudgAlert)
- // Alert판정의 전경/배경색 변경
- if(vJudgAlert == "A"){
- datagrid2.cellStyle ("background-color", 1,4,1,4) = "#fec34d";
- //grd_TestInfoCnts.cellstyle("background-color" , vRow,4) = "#7BE6B7";
- colorTF = true;
- }
- else{
- datagrid2.cellStyle ("background-color", 1,4,1,4) = "#ffffff";
- }
-
- //if(!colorTF) grd_TestInfoCnts.cellstyle("background-color" , vRow,4) = "#FFFFFA";
- // 허용참고치 판정
- var vJudgGbn = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/alimitflag").getTrim();
- var vRefL = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/alimitminval").getTrim();
- var vRefLS = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/alimitmaxval").getTrim();
- var vRefH = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/alimitmaxvalsinq").getTrim();
- var vRefHS = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/alimiminvalsinq").getTrim();
- vReptrslt = fCOMLIS_JudgLimit(vReptrslt, vJudgGbn, vRefL, vRefLS, vRefH, vRefHS);
-
- // 사용자정의판정 결과변경
- var vUjudglt = new Array(3);
- vUjudglt[0] = vJudgkind;
-
- for (var i = 1; i <= 3; i++) {
- vUjudglt[i] = model.getValue("/root/main/testinfo/testlist["+vRow+"]/userjudgchar" + i.toString());
- }
-
- vReptrslt = fCOMLIS_CvtUjudgRst(vBufInptRslt, vReptrslt, vJudgLH, vUjudglt);
-
-
- model.setvalue ("/root/main/testinfo/testlist["+vRow+"]/reptrslt",vReptrslt);
-
-
- // 수정데이타 반영
- model.setValue("/root/main/testinfo/testlist["+vRow+"]/iud", "U");
-
- model.refresh();
-
- }
- }
-
- function fValidation(pRstflag) {
- if(model.getvalue("/root/hidden/refparam/userid") == "" || model.getvalue("/root/main/getUsernm/usernm") == ""){
- messageBox("검사자를 " , "C001" ,"");
- model.setFocus("ipt_testpsn");
- return;
- }
- var nMaxRow = grd_testlist.rows - 1;
- var isErr = false;
- var sErrMsg = "";
-
- if (pRstflag == "1") {
- sErrMsg = "결과저장";
- } else if (pRstflag == "2") {
- sErrMsg = "중간(예비)보고";
- } else if (pRstflag == "4") {
- sErrMsg = "최종보고";
- }
-
- // 수정/선택한 환자 유무
- if (nMaxRow > 0) {
-
- var findRow = datagrid1.FindRow("U", 1, 73, false, false);
-
- if (findRow < 0) isErr = true;
- } else {
- isErr = true;
-
- }
-
- if (isErr) {
- alert( "수정된 항목이 없습니다.");
- return false;
- }
- return true;
- }
-
- function fCheckChangeValue(pState){
-
- var nMaxRow = datagrid1.rows;
- var rkey = "";
- var vO_inptrslt = "";
- var vN_inptrslt = "";
- var vRstflag = "";
- var isErr = "false";
-
-
- for(var vRow = 1; vRow < nMaxRow; vRow++){
- isUpdate = model.getValue("/root/main/testinfo/testlist[" + vRow + "]/iud");
-
- if(pState == "3"){
- //"권한관리"
- }
-
- if(isUpdate == "U"){
- datagrid1.addStatus(vRow , "update");
- rkey = model.getValue("/root/main/testinfo/testlist[" + vRow + "]/rkey");
- vO_inptrslt = model.getValue("/root/main/testinfo/BAK_TESTITEM[rkey = '" + rkey + "']/inptrslt");
- vN_inptrslt = model.getValue("/root/main/testinfo/testlist[" + vRow + "]/inptrslt");
- vRstflag = model.getValue("/root/main/testinfo/testlist[" + vRow + "]/rsltstat");
-
- if(vO_inptrslt == vN_inptrslt){
- if(vRstflag == pState){
- model.setValue("/root/main/testinfo/testlist[" + vRow + "]/iud", "");
- datagrid1.removeStatus(vRow,"update");
- }
- }
- }
- }
- return isErr;
- }
- // 결과저장
- function fInsRsltSave(){
-
- //model.setValue("/root/HideData/RstCode", "");
-
- if(fCheckChangeValue("1") == "false"){
-
- if (fValidation("1")) {
- model.setvalue("/root/hidden/updateparam/rsltstat" , "1") ;
- model.copyNode("/root/send/data1" , "/root/hidden/updateparam");
- model.setValue("/root/send/data2", datagrid1.getUpdateData());
-
- submit("TXLLR00401" , false);
-
- datagrid1.clearStatus();
- model.setValue("/root/hidden/currenRow", "");
-
- datagrid2.cellStyle("background-color",1,1,1,5) = "#ffffff";
-
- fSetClear2();
-
- }
- }
-
- }
-
- // 중간보고
- function fSetMdlRept(){
- if(fCheckChangeValue("2") == "false"){
-
- if (fValidation("2")) {
- model.setvalue("/root/hidden/updateparam/rsltstat" , "2") ;
- model.copyNode("/root/send/data1" , "/root/hidden/updateparam");
- model.setValue("/root/send/data2", datagrid1.getUpdateData());
-
- submit("TXLLR00401" , false);
-
- datagrid1.clearStatus();
- model.setValue("/root/hidden/currenRow", "");
-
- datagrid2.cellStyle("background-color",1,1,1,5) = "#ffffff";
-
- fSetClear2();
-
- }
- }
- }
-
- // 최종보고
- function fSetLstRept(){
- if(fCheckChangeValue("4") == "false"){
-
- if (fValidation("4")) {
- model.setvalue("/root/hidden/updateparam/rsltstat" , "4") ;
- model.copyNode("/root/send/data1" , "/root/hidden/updateparam");
- model.setValue("/root/send/data2", datagrid1.getUpdateData());
-
- submit("TXLLR00401" , false);
-
- datagrid1.clearStatus();
- model.setValue("/root/hidden/currenRow", "");
-
- datagrid2.cellStyle("background-color",1,1,1,5) = "#ffffff";
-
- fSetClear2();
-
- }
- }
- }
-
-
- function fGridKeyEvent(){
- var curRow = grd_testlist.row;
- var curCol = grd_testlist.col;
-
-
- if (event.keyCode == 13) {
- if(model.getvalue("/root/hidden/refparam/onlytest") == 1 && curCol >10) return;
- var refRow = fGetRow(curRow, curCol);
-
- if (refRow > 0) {
- // 입력 실제결과
- var vInptRslt = grd_testlist.valueMatrix(curRow, curCol).getTrim();
-
-
- if(vInptRslt == ""){
- return;
- }
-
- //결과코드 검색
- /*var vTclscd = model.getValue("/root/HideData/CurrentHangMok/tclscd");
- var vCvtRst = fGetSeekRst(vTclscd, vOrgRst);
-
- if (vOrgRst != vCvtRst) {
- vOrgRst = vCvtRst;
- grd_testlist.valueMatrix(curRow, curCol) = vOrgRst;
- }*/
-
- fCvtViewResult(vInptRslt, refRow);
-
- grd_testlist.cellStyle("background-color", curRow, curCol, curRow, curCol) = "#f3e1bf";
- // 다음 Row로 이동
- var max = grd_testlist.rows;
- var vRstNo = parseInt(eval(curCol - gStartCol + 1)).toString();
- var posRow = -1
- for (var r = (curRow + 1); r < max; r++) {
- var isReadonly = model.getValue("/root/main/testinfo/patlist[" + r + "]/inptrslt" + vRstNo + "/@readonly");
- if (isReadonly == "false") {
- posRow = r;
- break;
- }
- }
-
- if (posRow > 0) {
- grd_testlist.row= posRow;
- grd_testlist.col = curCol;
-
- fPatGridClick(posRow, curCol);
-
- } else {
- fPatGridClick(curRow, curCol);
-
- }
-
- } else {
- //fg.textMatrix(curRow, curCol) = "";
-
- }
-
- } else if (event.keyCode == 37 || event.keyCode == 38 || event.keyCode == 39 || event.keyCode == 40) {
- fPatGridClick(refRow, curCol);
-
- if (event.keyCode == 37) {
- ++curCol;
- } else if (event.keyCode == 38) {
- ++curRow;
- } else if (event.keyCode == 39) {
- --curCol;
- } else if (event.keyCode == 40) {
- --curRow;
- }
-
- var refRow = fGetRow(curRow, curCol);
- if (refRow > 0) {
- var vInptRslt = model.getValue("/root/main/testinfo/testlist["+refRow+"]/inptrslt");
- grd_testlist.valueMatrix(curRow, curCol) = vInptRslt;
- }
- }
-
- }
-
- function fRstGbn_XForms_Value_Changed(pIdx) {
- // alert(pIdx);
- if (pIdx == "0") {
- // 결과미입력 클릭
- if (model.getValue("/root/hidden/refparam/rsltstat0") == "1") {
- model.setValue("/root/hidden/refparam/rsltstat2", "");
- }
-
- } else if (pIdx == "1") {
- // 결과입력 클릭
- if (model.getValue("/root/hidden/refparam/rsltstat1") == "1") {
- model.setValue("/root/hidden/refparam/rsltstat2", "");
- }
-
- } else {
- // 최종보고 클릭
- if (model.getValue("/root/hidden/refparam/rsltstat2") == "1") {
- model.setValue("/root/hidden/refparam/rsltstat0", "");
- model.setValue("/root/hidden/refparam/rsltstat1", "");
- }
- }
- model.refresh();
- }
-
- function fSelectTestGrup(){
-
- model.makeValue("/root/send/testgrupnm", combo2.label);
- submit("TRLLF90401" ,false);
-
-
- fSetPopUpTclscdList();
- }
-
- function fSetPopUpTclscdList(){
- var divgrupnmlist = chk_divgrupnmlist.value;
- var divgrupnmlistlabel = chk_divgrupnmlist.label;
- var divgrupnm = divgrupnmlistlabel.split("▦");
- var divgrupcd = divgrupnmlist.split("▦");
- var count = divgrupnm.length;
-
-
- if(count > 0){
-
- var sendtclsnm = divgrupnm[0];
- var sendtclscd = divgrupcd[0];
- var sendtclscd2 = divgrupcd[0];
-
-
- // 검사그룹 상세 목록 없을때
- if(sendtclsnm == ""){
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "");
- model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", "");
-
- }else{ // 검사그룹 상세 목록 있을때
- for(i=1; i< count; i++){
- sendtclsnm = sendtclsnm + ", " + divgrupnm[i];
- //sendtclscd = sendtclscd + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- sendtclscd = sendtclscd + "','" + divgrupcd[i];
- sendtclscd2 = sendtclscd2 + "▦" + divgrupcd[i];
- }
- model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", sendtclsnm);
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "'" + sendtclscd + "'");
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist2", sendtclscd2);
-
- }
-
- model.refresh();
- fGrdReMake();
- }
-
- }
-
- function fSetClear(){
- model.removeNodeset("/root/main/testinfo/patlist");
-
- model.resetInstanceNode("/root/main/testinfo/spcinfo");
- model.removeNodeset("/root/main/testinfo/testlist");
- model.setvalue("/root/hidden/refparam/userid" , "");
- model.setvalue("/root/main/getUsernm/usernm" , "");
- datagrid2.rowStyle(1, "data", "background-color") = "#FFFFFF";
-
- model.refresh();
- }
-
- function fSetClear2(){
- model.removeNodeset("/root/main/testinfo/patlist");
-
- model.resetInstanceNode("/root/main/testinfo/spcinfo");
- model.removeNodeset("/root/main/testinfo/testlist");
- //model.setvalue("/root/hidden/refparam/userid" , "");
- //model.setvalue("/root/main/getUsernm/usernm" , "");
- datagrid2.rowStyle(1, "data", "background-color") = "#FFFFFF";
-
- model.refresh();
- }
-
- function fRsltCDEnterKey(){
-
- if (event.keyCode == 13) {
- model.setvalue("/root/hidden/rsltcont", input5.currentText);
- model.refresh();
-
- input5.selBegin = 0;
- input5.selEnd = input5.currentText.length;
-
- var vInptRslt = model.getValue("/root/hidden/rsltcont").getTrim(); // 적용할 실제결과
- var curRow = grd_testlist.row;
- var curCol = grd_testlist.Col;
-
- if (curCol < parseInt(gStartCol)) return;
- if (curRow < 0) return;
- if (vInptRslt.getTrim() == "") return;
-
- var vOrgrstseq = "inptrslt" + eval((curCol - gStartCol) + 1).toString();
-
- var vTclscd = model.getValue("/root/hidden/currentest/tclscd");
- var vCvtRst = fGetSeekRst(vTclscd, vInptRslt);
-
- if (vInptRslt != vCvtRst) {
- vInptRslt = vCvtRst;
- }
-
- var selectedCells = grd_testlist.selectedCells;
-
- for (var i=0; i<selectedCells.length; i++){
- var cell = selectedCells.item(i);
-
- if (cell){
- var curRow = cell.row;
- var refRow = fGetRow(curRow, curCol);
-
- if (refRow > 0) {
- model.setValue("/root/main/testinfo/patlist[" + curRow + "]/" + vOrgrstseq, vInptRslt);
-
- fCvtViewResult(vInptRslt, refRow);
-
- // 수정항목 색변경
- //var color = fCOMLIS_getBackColor("GREEN");
- grd_testlist.cellStyle("background-color", curRow, curCol, curRow, curCol) = "#f3e1bf";
- //TFGridRowColor("grdHwanJaGSHML", i, curCol, i, curCol, 1, color[0], color[1], color[2]);
- }
- }
- }
-
-
- model.setValue("/root/hidden/rsltcont", "");
-
- }
-
- }
-
- function fGetSeekRst(vTestcd, vInptRslt) {
- var result = vInptRslt
-
- 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() != "" ) {
-
- result = (vRstcontLower.getTrim() != "") ? vRstcontLower.getTrim() : vRstcontUpper.getTrim();
-
- }
-
-
- return result;
- }
-
- function fUserNMRef(){
-
- if(model.getvalue("/root/hidden/refparam/userid") != ""){
-
- model.makeValue("/root/send/userid" , model.getvalue("/root/hidden/refparam/userid"));
- submit("TRLZZ00104");
- }
- }
-
- function fHidden(){
- if(model.getvalue("/root/hidden/refparam/onlytest") == "1"){
- if(model.getvalue("/root/hidden/ref/tclscdlist/tclscdlist") != ""){
- var Atclscdlist = model.getvalue("/root/hidden/ref/tclscdlist/tclscdlist").split(",");
- var Atclsnmlist = model.getvalue("/root/hidden/ref/tclscdlist/tclsnmlist").split(",");
- var Atclscdlist2= model.getvalue("/root/hidden/ref/tclscdlist/tclscdlist2").split("▦");
- var Atclsnmlist2 = model.getvalue("/root/hidden/ref/tclscdlist/tclsnmlist2").split("▦");
-
- model.setvalue("/root/hidden/ref/tclscdlist/tclscdlist" , Atclscdlist[0]);
- model.setvalue("/root/hidden/ref/tclscdlist/tclsnmlist" , Atclsnmlist[0]);
- model.setvalue("/root/hidden/ref/tclscdlist/tclscdlist2" , Atclscdlist2[0]);
- model.setvalue("/root/hidden/ref/tclscdlist/tclsnmlist2" , Atclsnmlist2[0]);
-
-
- }
- }
- else{
-
- }
-
- }
-
- function fbfrslt(){
- var count = getNodesetCount("/root/main/divgrupnmlist");
- if(count > 0){
- var tclscdlist = model.getValue("/root/main/divgrupnmlist[1]/tclscd");
- for(i=2; i<= count; i++){
- tclscdlist = tclscdlist + "','" + model.getValue("/root/main/divgrupnmlist["+i+"]/tclscd");
- }
- tclscdlist = "'" + tclscdlist + "'";
- model.setValue("/root/send/data3/pid", model.getValue("/root/main/testinfo/patlist["+grd_testlist.row+"]/pid"));
- model.setValue("/root/send/data3/tclslist", tclscdlist);
- modal("SPLNR90600","","","","","/root/send/data3","/root/hidden/ref");
- //model.setValue("/root/send/data3/bcno", model.getValue("/root/main/testinfo/patlist["+grd_testlist.row+"]/bcno"));
- //model.setValue("/root/send/data3/tclslist", tclscdlist);
- //modal("SPLNR00900","","","","","/root/send/data3","/root/hidden/ref");
- }
- }
- function fpopupmenu() {
- model.removeNodeset("/root/hidden/popupmenu");
- if(event.button == 3){ // 라이트클릭 메뉴만들기...
- model.makeNode("/root/hidden/popupmenu/grid");
- model.makeNode("/root/hidden/popupmenu/grid/item");
-
- model.makeValue("/root/hidden/popupmenu/grid/item["+1+"]/name" , "▶ 재검");
- model.makeValue("/root/hidden/popupmenu/grid/item["+1+"]/func" , "fretest");
-
- model.makeValue("/root/hidden/popupmenu/grid/item["+2+"]/name" , "-");
- model.makeValue("/root/hidden/popupmenu/grid/item["+2+"]/func" , "");
-
- model.makeValue("/root/hidden/popupmenu/grid/item["+3+"]/name" , "▶ 희석");
- model.makeValue("/root/hidden/popupmenu/grid/item["+3+"]/func" , "fretest2");
-
- model.makeValue("/root/hidden/popupmenu/grid/item["+4+"]/name" , "-");
- model.makeValue("/root/hidden/popupmenu/grid/item["+4+"]/func" , "");
-
- model.makeValue("/root/hidden/popupmenu/grid/item["+5+"]/name" , "▶ 이전결과");
- model.makeValue("/root/hidden/popupmenu/grid/item["+5+"]/func" , "fbfrslt");
-
- if(grd_testlist.isCell(event.target) && grd_testlist.mouseRow >= grd_testlist.fixedrows){
- setPopupMenu("grd_testlist", false, "/root/hidden/popupmenu/grid/item", "name", "func");
- }else{
- window.setPopupMenu(false);
- }
- }
- }
-
- function fretest(){
- model.copyNode("/root/send/data1","/root/hidden/default");
- model.copyNode("/root/send/data2","/root/hidden/default");
-
- var curRow = grd_testlist.row;
- var curCol = grd_testlist.col;
- if(model.getvalue("/root/hidden/refparam/onlytest") == 1 && curCol >10) return;
- var refRow = fGetRow(curRow, curCol);
- datagrid1.rowstatus(refRow) = 2;
-
- model.setvalue("/root/send/data1", datagrid1.getUpdateData());
- model.setvalue("/root/hidden/refflag/bcno",model.getvalue("/root/main/testinfo/patlist["+grd_testlist.row+"]/bcno"));
- model.setvalue("/root/hidden/refflag/rsltstat","11");
- model.setvalue("/root/hidden/refflag/testlrgkind","-");
- model.copyNode("/root/send/data2" , "/root/hidden/refflag");
-
- submit("TXLLR80101",false);
-
- model.copyNode("/root/send/data1","/root/hidden/default");
- model.copyNode("/root/send/data2","/root/hidden/default");
-
- datagrid1.clearStatus();
- model.setValue("/root/hidden/currenRow", "");
-
- datagrid2.cellStyle("background-color",1,1,1,5) = "#ffffff";
-
- fSetClear2();
-
- }
-
- function fretest2(){
- model.copyNode("/root/send/data1","/root/hidden/default");
- model.copyNode("/root/send/data2","/root/hidden/default");
-
- var curRow = grd_testlist.row;
- var curCol = grd_testlist.col;
- if(model.getvalue("/root/hidden/refparam/onlytest") == 1 && curCol >10) return;
- var refRow = fGetRow(curRow, curCol);
- datagrid1.rowstatus(refRow) = 2;
-
- model.setvalue("/root/send/data1", datagrid1.getUpdateData());
- model.setvalue("/root/hidden/refflag/bcno",model.getvalue("/root/main/testinfo/patlist["+grd_testlist.row+"]/bcno"));
- model.setvalue("/root/hidden/refflag/rsltstat","12");
- model.setvalue("/root/hidden/refflag/testlrgkind","-");
- model.copyNode("/root/send/data2" , "/root/hidden/refflag");
-
- modal("SPLNR90500","","","","","/root/hidden/nmed","/root/hidden/ref");
- submit("TXLLR80101",false);
-
- model.copyNode("/root/send/data1","/root/hidden/default");
- model.copyNode("/root/send/data2","/root/hidden/default");
-
- datagrid1.clearStatus();
- model.setValue("/root/hidden/currenRow", "");
-
- datagrid2.cellStyle("background-color",1,1,1,5) = "#ffffff";
-
- fSetClear2();
-
- }
-
- function fExeallcheck(){
- var count = getNodesetCount("/root/main/divgrupnmlist");
- if(model.getValue("/root/hidden/ref/allcheck") == "1"){
- if(count > 0){
- for(i=0; i< count; i++){
- chk_divgrupnmlist.select(i);
- }
- }
- }
- else{
- if(count > 0){
- for(i=0; i< count; i++){
- chk_divgrupnmlist.deselect(i);
- }
- }
- }
- }
-
- //분주라벨그룹 상세조회
- function fSelectDivGrup(){
-
- model.removenodeset("/root/main/divgrupnmlist");
- model.refresh();
- model.setValue("/root/hidden/ref/tclscd", "");
- model.setValue("/root/send/divgrupcd", combo2.value);
- //model.setValue("/root/send/divgrupcd", "TFT");
- submit("TRLNP00103" ,false);
-
- if(model.getValue("/root/hidden/ref/divgrupcd") == "00"){
- checkbox5.visible = false;
- }
- else{
- checkbox5.visible = true;
- }
- model.setValue("/root/hidden/ref/allcheck", "");
-
- model.refresh();
- }
-
- //아직안됨 막아놨음
- function fUpPatinfo(){
- if(grd_testlist.col == 5){
- if(getPatientInfo("pid") != model.getValue("/root/main/testinfo/patlist["+ grd_testlist.row +"]/pid")) {
- if(grd_testlist.rows> 1){
- //setParameter("errflag", "Y");
- setParameter("condparam", "S" + "▦" + model.getvalue("/root/main/testinfo/patlist["+ grd_testlist.row +"]/prcpdd")+ "▦"
- + model.getvalue("/root/main/testinfo/patlist["+ grd_testlist.row +"]/execprcpuniqno") + "▦"
- + model.getvalue("/root/main/testinfo/patlist["+ grd_testlist.row +"]/instcd") );
-
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
-
- var paminfo = getGlobalVariable("paminfo");
- if((paminfo.length < 0) || (getPatientInfo("pid") != model.getValue("/root/main/testinfo/patlist["+ grd_testlist.row +"]/pid"))){ //상단정보가 없는 경우
- delPatientInfos(); //환자정보 전체 삭제
-
- var pid = model.getValue("/root/main/testinfo/patlist["+ grd_testlist.row +"]/pid")
- var hngnm = model.getValue("/root/main/testinfo/patlist["+ grd_testlist.row +"]/patnm");
- //상단에 올릴 수 있는 정보가 있으면 아래와 같이 설정해 주시면 됩니다. 없으면 안 해주셔도 되구요..
-
- setPatientInfo("pid" , pid); //등록번호
- setPatientInfo("pname" , pid + "|" + hngnm); //환자명
- }
- }
- }
- }
-
- ]]>
- </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:1450px; height:839px; ">
- <group id="group1" style="left:5px; top:10px; width:1195px; height:110px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:95px; "/>
- <button id="button1" class="btn1_letter2" style="left:1123px; top:31px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetPopUpTclscdList();
- fOnclick_btnRef();
- ]]>
- </script>
- </button>
- <line id="line11" class="line_4" style="x1:1108px; y1:31px; x2:1108px; y2:53px; "/>
- <select id="checkbox1" ref="/root/hidden/refparam/rsltstat0" class="checkbox_search" overflow="visible" appearance="full" cols="3" style="left:622px; top:11px; width:81px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>결과미입력</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fRstGbn_XForms_Value_Changed("0");
- ]]>
- </script>
- </select>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">작업일자 :</caption>
- <caption id="caption3" class="search_no_b" style="left:193px; top:10px; width:12px; height:17px; ">~</caption>
- <caption id="caption5" class="search_name" style="left:304px; top:9px; width:100px; height:17px; ">작업순번 :</caption>
- <input id="input1" ref="/root/hidden/refparam/startdd" class="input_search" inputtype="date" style="left:105px; top:8px; width:85px; height:19px; "/>
- <caption id="caption7" class="search_no_b" style="left:440px; top:10px; width:12px; height:17px; ">~</caption>
- <input id="input2" ref="/root/hidden/refparam/enddd" class="input_search" inputtype="date" style="left:209px; top:8px; width:85px; height:19px; "/>
- <caption id="caption8" class="search_name" style="left:529px; top:9px; width:90px; height:17px; ">결과구분 :</caption>
- <input id="input3" ref="/root/hidden/refparam/sworkseq" class="input_search" style="left:392px; top:8px; width:45px; height:19px; "/>
- <input id="input4" ref="/root/hidden/refparam/eworkseq" class="input_search" style="left:457px; top:8px; width:45px; height:19px; "/>
- <select id="checkbox2" ref="/root/hidden/refparam/rsltstat1" class="checkbox_search" overflow="visible" appearance="full" cols="3" style="left:704px; top:11px; width:69px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>결과입력</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fRstGbn_XForms_Value_Changed("1");
- ]]>
- </script>
- </select>
- <select id="checkbox3" ref="/root/hidden/refparam/rsltstat2" class="checkbox_search" overflow="visible" appearance="full" cols="3" style="left:773px; top:11px; width:86px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>최종보고</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fRstGbn_XForms_Value_Changed("2");
- ]]>
- </script>
- </select>
- <input id="input5" ref="/root/hidden/rsltcont" class="input_search" visibility="hidden" style="left:200px; top:60px; width:156px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fRsltCDEnterKey();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <caption id="caption6" class="search_name" visibility="hidden" style="left:111px; top:61px; width:95px; height:17px; ">결과코드 :</caption>
- <input id="ipt_testpsn" ref="/root/hidden/refparam/userid" class="input_essential" visibility="hidden" imemode="disabled" _chartype="upper" style="left:1018px; top:7px; width:76px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13"){
-
- model.setvalue("/root/hidden/refparam/userid",ipt_testpsn.currentText);
- model.refresh();
- fUserNMRef();
- ipt_testpsn.selBegin = 0;
- ipt_testpsn.selEnd = ipt_testpsn.currentText.length;
- }
- ]]>
- </script>
- </input>
- <output id="opt_testpsn" ref="/root/main/getUsernm/usernm" class="output_fix" visibility="hidden" style="left:1096px; top:7px; width:82px; height:19px; "/>
- <caption id="caption19" class="tit_2" visibility="hidden" style="left:933px; top:10px; width:66px; height:13px; ">검사자 :</caption>
- <select id="checkbox5" ref="/root/hidden/ref/allcheck" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" style="left:265px; top:36px; width:70px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체선택</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeallcheck();
- ]]>
- </script>
- </select>
- <select1 id="combo2" ref="/root/hidden/refparam/divgrupcd" class="combo_search" appearance="minimal" style="left:105px; top:35px; width:155px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0103">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSelectDivGrup();
- ]]>
- </script>
- </select1>
- <caption id="caption9" class="search_name" style="left:15px; top:35px; width:120px; height:17px; ">검사그룹 :</caption>
- <group id="group7" style="left:360px; top:31px; width:745px; height:55px; background-color:#fffbf2; ">
- <select id="chk_divgrupnmlist" ref="/root/main/divgrupnmlist" class="checkbox_search" overflow="visible" appearance="full" cellspacing="5" cols="5" direction="acrossdown" rows="1" sep="▦" style="left:5px; top:5px; width:735px; height:45px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/main/divgrupnmlist">
- <label ref="tclsscrnnm"/>
- <value ref="tclscd"/>
- </itemset>
- </choices>
- </select>
- </group>
- <button id="btn_spc" class="btn2_letter5" style="left:20px; top:60px; width:75px; height:19px; ">
- <caption>검체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenSetup("spc");
- ]]>
- </script>
- </button>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:135px; x2:1190px; y2:135px; "/>
- <caption id="caption2" class="tit_2" style="left:5px; top:115px; width:134px; height:13px; ">검사항목내역</caption>
- <button id="button2" class="btn2_letter2" style="left:1147px; top:75px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //addData();
- //datagrid1.saveExcel();
- var fileName = window.fileDialog("save", ",", false, "검사항목별결과관리", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- datagrid1.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <caption id="caption10" class="tit_2" style="left:2px; top:599px; width:74px; height:13px; ">검체정보</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:614px; x2:565px; y2:614px; "/>
- <output id="output1" ref="/root/main/testinfo/spcinfo/spcscrnnm" class="output_fix" style="left:100px; top:620px; width:179px; height:19px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:641px; x2:282px; y2:641px; "/>
- <output id="output2" ref="/root/main/testinfo/spcinfo/refval" class="output_fix" style="left:100px; top:644px; width:179px; height:19px; "/>
- <datagrid id="datagrid2" nodeset="/root/main/testinfo/spcinfo" caption="N^P^D^C^A^R" colsep="^" colwidth="30, 30, 30, 30, 30, 27" dataheight="23" defaultrows="1" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:100px; top:667px; width:179px; height:48px; ">
- <col ref="judgmark" style="text-align:center; "/>
- <col ref="panicmark" style="text-align:center; "/>
- <col ref="deltamark" style="left:60px; top:25px; width:30px; height:25px; text-align:center; "/>
- <col ref="criticalmark" style="text-align:center; "/>
- <col ref="alertmark" style="text-align:center; "/>
- <col ref="rsltmark" style="text-align:center; "/>
- </datagrid>
- <output id="output3" ref="/root/main/testinfo/spcinfo/reptrslt" class="output_fix" style="left:385px; top:621px; width:177px; height:19px; "/>
- <output id="output4" ref="/root/main/testinfo/spcinfo/bfreptrslt" class="output_fix" style="left:385px; top:645px; width:177px; height:19px; "/>
- <output id="output5" ref="/root/main/testinfo/spcinfo/bflastreptdt" class="output_fix" style="left:385px; top:669px; width:177px; height:19px; "/>
- <output id="output6" ref="/root/main/testinfo/spcinfo/testeqmtcd" class="output_fix" style="left:385px; top:693px; width:177px; height:19px; "/>
- <line id="line5" class="line_2" style="x1:100px; y1:665px; x2:279px; y2:665px; "/>
- <line id="line8" class="line_2" style="x1:282px; y1:690px; x2:564px; y2:690px; "/>
- <line id="line6" class="line_2" style="x1:282px; y1:642px; x2:564px; y2:642px; "/>
- <line id="line7" class="line_2" style="x1:282px; y1:666px; x2:564px; y2:666px; "/>
- <line id="line12" class="line_1" style="x1:567px; y1:614px; x2:1192px; y2:614px; "/>
- <caption id="caption18" class="tit_2" style="left:572px; top:599px; width:84px; height:13px; ">comment</caption>
- <textarea id="textarea1" ref="/root/main/testinfo/spcinfo/testcmt" style="left:567px; top:619px; width:625px; height:119px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var vCurrentRow = model.getValue("/root/hidden/currenRow");
-
- if(vCurrentRow !="") {
- var vComment = model.getValue("/root/main/testinfo/spcinfo/testcmt");
- model.setValue("/root/main/testinfo/testlist["+vCurrentRow+"]/testcmt", vComment);
- }
- ]]>
- </script>
- </textarea>
- <output id="output8" ref="/root/main/testinfo/spcinfo/rsltrgsgid" class="output_fix" style="left:75px; top:717px; width:108px; height:19px; "/>
- <output id="output9" ref="/root/main/testinfo/spcinfo/mdlreptid" class="output_fix" style="left:265px; top:717px; width:108px; height:19px; "/>
- <output id="output10" ref="/root/main/testinfo/spcinfo/lastreptdt" class="output_fix" style="left:454px; top:717px; width:108px; height:19px; "/>
- <line id="line16" class="line_3" style="x1:567px; y1:739px; x2:1192px; y2:739px; "/>
- <caption id="caption20" class="cell_1" style="left:0px; top:716px; width:75px; height:23px; ">결과입력자</caption>
- <caption id="caption21" class="cell_1" style="left:187px; top:716px; width:75px; height:23px; ">중간보고자</caption>
- <caption id="caption22" class="cell_1" style="left:376px; top:716px; width:75px; height:23px; ">최종보고자</caption>
- <caption id="caption11" class="cell_1" style="left:0px; top:619px; width:100px; height:23px; ">검체명</caption>
- <caption id="caption12" class="cell_1" style="left:0px; top:642px; width:100px; height:73px; ">
- <![CDATA[참고치&판정]]>
- </caption>
- <caption id="caption13" class="cell_1" style="left:282px; top:620px; width:100px; height:23px; ">보이는결과</caption>
- <caption id="caption14" class="cell_1" style="left:282px; top:644px; width:100px; height:23px; ">이전결과</caption>
- <caption id="caption15" class="cell_1" style="left:282px; top:668px; width:100px; height:23px; ">이전결과일</caption>
- <caption id="caption16" class="cell_1" style="left:282px; top:692px; width:100px; height:23px; ">검사장비</caption>
- <datagrid id="grd_testlist" nodeset="/root/main/testinfo/patlist" class="datagrid2" backcoloralternate="transparent" caption="^작업번호^바코드번호^등록번호^성명^Sex/Age^의뢰의사^진료과^병동/병실^inptrslt1^inptrslt12^inptrslt3^inptrslt4^inptrslt5^inptrslt6^inptrslt7^inptrslt8^inptrslt9^inptrslt10^inptrslt11^inptrslt12^inptrslt13^inptrslt14^inptrslt15^inptrslt16^inptrslt17^inptrslt18^inptrslt19^inptrslt20^inptrslt21^inptrslt22^inptrslt23^inptrslt24^inptrslt25^inptrslt26^inptrslt27^inptrslt28^inptrslt29^inptrslt30" colsep="^" colwidth="0, 0, 0, 80, 70, 55, 0, 0, 0, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" selectionmode="free" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:140px; width:1190px; height:455px; ">
- <col checkvalue="true,false" ref="chk" type="checkbox"/>
- <col ref="workno"/>
- <col ref="bcno"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="sexage"/>
- <col ref="orddrnm"/>
- <col ref="orddeptnm"/>
- <col ref="wardroom"/>
- <col ref="inptrslt1" type="input"/>
- <col ref="inptrslt2" type="input"/>
- <col ref="inptrslt3" type="input"/>
- <col ref="inptrslt4" type="input"/>
- <col ref="inptrslt5" type="input"/>
- <col ref="inptrslt6" type="input"/>
- <col ref="inptrslt7" type="input"/>
- <col ref="inptrslt8" type="input"/>
- <col ref="inptrslt9" type="input"/>
- <col ref="inptrslt10" type="input"/>
- <col ref="inptrslt11" type="input"/>
- <col ref="inptrslt12" type="input"/>
- <col ref="inptrslt13" type="input"/>
- <col ref="inptrslt14" type="input"/>
- <col ref="inptrslt15" type="input"/>
- <col ref="inptrslt16" type="input"/>
- <col ref="inptrslt17" type="input"/>
- <col ref="inptrslt18" type="input"/>
- <col ref="inptrslt19" type="input"/>
- <col ref="inptrslt20" type="input"/>
- <col ref="inptrslt21" type="input"/>
- <col ref="inptrslt22" type="input"/>
- <col ref="inptrslt23" type="input"/>
- <col ref="inptrslt24" type="input"/>
- <col ref="inptrslt25" type="input"/>
- <col ref="inptrslt26" type="input"/>
- <col ref="inptrslt27" type="input"/>
- <col ref="inptrslt28" type="input"/>
- <col ref="inptrslt29" type="input"/>
- <col ref="inptrslt30" type="input"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_testlist.isCell(event.target) && grd_testlist.row >= grd_testlist.fixedRows ){
- fPatGridClick(grd_testlist.row,grd_testlist.col);
- //fUpPatinfo();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fGridKeyEvent();
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseout">
- <![CDATA[
- //window.setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- //fpopupmenu();
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid1" nodeset="/root/main/testinfo/testlist" class="datagrid2" visibility="hidden" caption="rkey^workno^bcno^execprcpuniqno^testcd^spccd^bufinptrslt^reptrslt^rsltunit^judgmark^panicmark^deltamark^criticalmark^alertmark^rsltmark^rsltstat^bfbcno^bflastreptdt^testeqmtcd^comment^tclskind^spcacptid^spcacptdt^spcacptnm^rsltrgsgid^rsltrgstdt^rsltrgstnm^mdlreptid^mdlreptdt^mdlreptnm^lastreptid^lastreptdt^lastreptnm^tclscd^bfinptrslt^bfreptrslt^rsltseq^prcpgenrflag^rsltkind^rsltintsize^rsltdcmlsize^rundkind^rvalflag^descrval^judgkind^userjudgchar1^userjudgchar2^userjudgchar3^panicflag^panicminval^panicmaxval^deltaflag^deltaminval^deltamaxval^deltaterm^criticflag^criticminval^criticmaxval^alertflag^alertminval^allertmaxval^alimitls^alimitflag^alimitminval^alimith^alimiths^alimitls^refl^refls^refh^refhs^reflt^rstinterval^iud^spcscrnnm^inptrslt^testcmt" colsep="^" colwidth="150, 118, 104, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" style="left:930px; top:365px; width:85px; height:80px; ">
- <col ref="rkey"/>
- <col ref="workno"/>
- <col ref="bcno"/>
- <col ref="execprcpuniqno"/>
- <col ref="testcd"/>
- <col ref="spccd"/>
- <col ref="bufinptrslt"/>
- <col ref="reptrslt"/>
- <col ref="rsltunit"/>
- <col ref="judgmark"/>
- <col ref="panicmark"/>
- <col ref="deltamark"/>
- <col ref="criticalmark"/>
- <col ref="alertmark"/>
- <col ref="rsltmark"/>
- <col ref="rsltstat"/>
- <col ref="bfbcno"/>
- <col ref="bflastreptdt"/>
- <col ref="testeqmtcd"/>
- <col ref="comment"/>
- <col ref="tclskind"/>
- <col ref="spcacptid"/>
- <col ref="spcacptdt"/>
- <col ref="spcacptnm"/>
- <col ref="rsltrgsgid"/>
- <col ref="rsltrgstdt"/>
- <col ref="rsltrgstnm"/>
- <col ref="mdlreptid"/>
- <col ref="mdlreptdt"/>
- <col ref="mdlreptnm"/>
- <col ref="lastreptid"/>
- <col ref="lastreptdt"/>
- <col ref="lastreptnm"/>
- <col ref="tclscd"/>
- <col ref="bfinptrslt"/>
- <col ref="bfreptrslt"/>
- <col ref="rsltseq"/>
- <col ref="prcpgenrflag"/>
- <col ref="rsltkind"/>
- <col ref="rsltintsize"/>
- <col ref="rsltdcmlsize"/>
- <col ref="rundkind"/>
- <col ref="rvalflag"/>
- <col ref="descrval"/>
- <col ref="judgkind"/>
- <col ref="userjudgchar1"/>
- <col ref="userjudgchar2"/>
- <col ref="userjudgchar3"/>
- <col ref="panicflag"/>
- <col ref="panicminval"/>
- <col ref="panicmaxval"/>
- <col ref="deltaflag"/>
- <col ref="deltaminval"/>
- <col ref="deltamaxval"/>
- <col ref="deltaterm"/>
- <col ref="criticflag"/>
- <col ref="criticminval"/>
- <col ref="criticmaxval"/>
- <col ref="alertflag"/>
- <col ref="alertminval"/>
- <col ref="allertmaxval"/>
- <col ref="alimitls"/>
- <col ref="alimitflag"/>
- <col ref="alimitminval"/>
- <col ref="alimith"/>
- <col ref="alimiths"/>
- <col ref="alimitls"/>
- <col ref="refl"/>
- <col ref="refls"/>
- <col ref="refh"/>
- <col ref="refhs"/>
- <col ref="reflt"/>
- <col ref="rstinterval"/>
- <col ref="iud"/>
- <col ref="spcscrnnm"/>
- <col ref="inptrslt"/>
- <col ref="testcmt"/>
- </datagrid>
- <output id="output7" ref="/root/hidden/currenRow" visibility="hidden" style="left:720px; top:594px; width:100px; height:19px; "/>
- <line id="line3" class="line_3" style="x1:0px; y1:739px; x2:565px; y2:739px; "/>
- <case id="case_bactlist" selected="true" style="left:0px; top:0px; width:690px; height:625px; "/>
- <case id="case_bactlist" selected="true" style="left:0px; top:0px; width:690px; height:625px; "/>
- <switch id="switch2" disabled="true" visibility="hidden" style="left:399px; top:140px; width:695px; height:630px; border-width:3px; ">
- <case id="case_antilist" style="left:0px; top:0px; width:690px; height:625px; ">
- <caption id="caption4" class="search_name" style="left:20px; top:10px; width:135px; height:17px; ">기준 항생제 선택</caption>
- <group id="group_searchanti" visibility="hidden" style="left:330px; top:5px; width:325px; height:25px; ">
- <button id="button3" class="btn2_letter2" style="left:260px; top:5px; width:42px; height:19px; ">
- <caption>검색</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/hidden/search/anti") != "")
- fSearchItem(chk_anticd, model.getValue("/root/hidden/search/antigbn"), model.getValue("/root/hidden/search/anti"));
- ]]>
- </script>
- </button>
- <input id="input7" ref="/root/hidden/search/anti" style="left:110px; top:5px; width:135px; height:19px; "/>
- <select1 id="radio7" ref="/root/hidden/search/antigbn" appearance="full" cols="2" overflow="visible" style="left:10px; top:5px; width:90px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>코드</label>
- <value>cd</value>
- </item>
- <item>
- <label>명칭</label>
- <value>nm</value>
- </item>
- </choices>
- </select1>
- </group>
- <select id="checkbox6" ref="/root/hidden/antiflag" overflow="visible" appearance="full" style="left:190px; top:10px; width:125px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>기준 항생제 선택</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/hidden/antiflag") == "1"){
- group_anti.visible = true;
- group_searchanti.visible = true;
- btn_anti.value = "기준 항생제 선택*";
- }
- else{
- group_anti.visible = false;
- group_searchanti.visible = false;
- btn_anti.value = "기준 항생제 선택";
- }
- ]]>
- </script>
- </select>
- <group id="group_anti" visibility="hidden" style="left:10px; top:35px; width:670px; height:580px; background-color:transparent; ">
- <caption id="caption23" style="left:10px; top:5px; width:495px; height:25px; ">※ 기준 항생제는 10개 이내로 만 선택 하여 주십시요</caption>
- <select id="chk_anticd" ref="/root/hidden/anticd" visibility="visible" overflow="scroll" scroll="auto" appearance="full" cols="2" sep="▦" vcellspacing="5" style="left:5px; top:30px; width:495px; height:545px; border-width:1px; border-style:solid; ">
- <choices>
- <itemset nodeset="/root/init/anti/antilist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(chk_anticd.value == "") model.setValue("/root/hidden/anticnt","0");
- else model.setValue("/root/hidden/anticnt", chk_anticd.value.split("▦").length);
- model.setValue("/root/hidden/antinmlist", chk_anticd.label.replace(/▦/g, "\n"));
- cap_anticnt.refresh();
- textarea1.refresh();
- ]]>
- </script>
- </select>
- <textarea id="textarea2" ref="/root/hidden/antinmlist" scroll="both" editable="false" style="left:505px; top:30px; width:160px; height:545px; word-wrap:hard; "/>
- <caption id="caption24" class="search_name" style="left:505px; top:5px; width:95px; height:17px; ">선택 항생제</caption>
- <caption id="cap_anticnt" ref="/root/hidden/anticnt" style="left:605px; top:5px; width:35px; height:20px; font-weight:bold; text-align:right; "/>
- <caption id="caption25" style="left:645px; top:5px; width:20px; height:20px; font-weight:bold; ">건</caption>
- </group>
- </case>
- <case id="case_wardlist" style="left:0px; top:0px; width:690px; height:625px; ">
- <select id="chk_wardcd" ref="/root/hidden/wardcd" visibility="hidden" overflow="scroll" scroll="auto" appearance="full" cellspacing="20" cols="4" sep="▦" vcellspacing="5" style="left:20px; top:30px; width:655px; height:580px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/ward/wardlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select>
- <caption id="caption26" class="search_name" style="left:20px; top:10px; width:150px; height:17px; ">병동 선택</caption>
- <select1 id="radio1" ref="/root/hidden/wardflag" appearance="full" cols="2" overflow="visible" style="left:145px; top:10px; width:160px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체조회</label>
- <value>0</value>
- </item>
- <item>
- <label>일부 조회</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/hidden/wardflag") == "1"){
- chk_wardcd.visible = true;
- btn_ward.value = "병동*";
- }
- else{
- chk_wardcd.visible = false;
- btn_ward.value = "병동";
- }
- ]]>
- </script>
- </select1>
- </case>
- <case id="case_bactlist" style="left:0px; top:0px; width:690px; height:625px; ">
- <select id="chk_bactcd" ref="/root/hidden/bactcd" overflow="scroll" scroll="auto" appearance="full" cellspacing="20" cols="2" sep="▦" vcellspacing="5" style="left:20px; top:35px; width:655px; height:575px; border-style:none; ">
- <choices>
- <itemset>
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select>
- <caption id="caption27" class="search_name" style="left:20px; top:10px; width:80px; height:17px; ">균 선택</caption>
- <caption id="caption28" style="left:440px; top:10px; width:235px; height:20px; ">※ 기타 균의 경우 전체 선택되지 않습니다</caption>
- <input id="ipt_bactnm" ref="/root/hidden/search/bact" style="left:225px; top:10px; width:135px; height:19px; "/>
- <button id="btn_searchBact" class="btn2_letter2" style="left:375px; top:10px; width:42px; height:19px; ">
- <caption>검색</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/hidden/search/bact") != "")
- fSearchItem(chk_bactcd, model.getValue("/root/hidden/search/bactgbn"), model.getValue("/root/hidden/search/bact"));
- ]]>
- </script>
- </button>
- <select1 id="radio3" ref="/root/hidden/search/bactgbn" appearance="full" cols="2" overflow="visible" style="left:125px; top:10px; width:90px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>코드</label>
- <value>cd</value>
- </item>
- <item>
- <label>명칭</label>
- <value>nm</value>
- </item>
- </choices>
- </select1>
- </case>
- <case id="case_spclist" selected="true" style="left:0px; top:0px; width:690px; height:625px; ">
- <select id="chk_spccd" ref="/root/hidden/spccd" visibility="hidden" overflow="scroll" scroll="auto" appearance="full" cols="3" sep="▦" vcellspacing="5" style="left:20px; top:35px; width:655px; height:575px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/spc/spclist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select>
- <select1 id="rdo_spc" ref="/root/hidden/spcflag" appearance="full" cols="2" overflow="visible" style="left:145px; top:10px; width:160px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체조회</label>
- <value>0</value>
- </item>
- <item>
- <label>일부 조회</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/hidden/spcflag") == "1"){
- chk_spccd.visible = true;
- group_searchspc.visible = true;
- btn_spc.value = "검체선택*";
- }
- else{
- chk_spccd.visible = false;
- group_searchspc.visible = false;
- btn_spc.value = "검체선택";
- }
- ]]>
- </script>
- </select1>
- <caption id="caption29" class="search_name" style="left:20px; top:10px; width:115px; height:17px; ">검체 선택</caption>
- <group id="group_searchspc" visibility="hidden" style="left:330px; top:5px; width:325px; height:25px; ">
- <button id="btn_searchSpc" class="btn2_letter2" style="left:260px; top:5px; width:42px; height:19px; ">
- <caption>검색</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/hidden/search/spc") != "")
- fSearchItem(chk_spccd, model.getValue("/root/hidden/search/spcgbn"), model.getValue("/root/hidden/search/spc"));
- ]]>
- </script>
- </button>
- <input id="input6" ref="/root/hidden/search/spc" style="left:110px; top:5px; width:135px; height:19px; "/>
- <select1 id="radio4" ref="/root/hidden/search/spcgbn" appearance="full" cols="2" overflow="visible" style="left:10px; top:5px; width:90px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>코드</label>
- <value>cd</value>
- </item>
- <item>
- <label>명칭</label>
- <value>nm</value>
- </item>
- </choices>
- </select1>
- </group>
- </case>
- <case id="case_tclslist" style="left:0px; top:0px; width:690px; height:625px; ">
- <select id="chk_tclscd" ref="/root/hidden/tclscd" visibility="visible" overflow="scroll" scroll="auto" appearance="full" cols="1" sep="▦" vcellspacing="5" style="left:10px; top:65px; width:490px; height:540px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/tcls/tclslist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fchgTclsSet2();
- ]]>
- </script>
- </select>
- <caption id="caption30" class="search_name" style="left:20px; top:10px; width:115px; height:17px; ">검사 설정</caption>
- <group id="group_searchtcls" visibility="visible" style="left:170px; top:5px; width:325px; height:25px; ">
- <button id="button4" class="btn2_letter2" style="left:260px; top:5px; width:42px; height:19px; ">
- <caption>검색</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/hidden/search/tcls") != "")
- fSearchItem(chk_tclscd, model.getValue("/root/hidden/search/tclsgbn"), model.getValue("/root/hidden/search/tcls"));
- ]]>
- </script>
- </button>
- <input id="input8" ref="/root/hidden/search/tcls" style="left:110px; top:5px; width:135px; height:19px; "/>
- <select1 id="radio5" ref="/root/hidden/search/tclsgbn" appearance="full" cols="2" overflow="visible" style="left:10px; top:5px; width:90px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>코드</label>
- <value>cd</value>
- </item>
- <item>
- <label>명칭</label>
- <value>nm</value>
- </item>
- </choices>
- </select1>
- </group>
- <button id="button5" class="btn2_letter5" style="left:600px; top:10px; width:75px; height:19px; ">
- <caption>설정 저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetSelTcls();
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter5" style="left:515px; top:10px; width:75px; height:19px; ">
- <caption>선택 적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetTclsToMain();
- ]]>
- </script>
- </button>
- <textarea id="txa_tclsset" ref="/root/hidden/tclslist" scroll="both" editable="false" style="left:520px; top:95px; width:160px; height:514px; word-wrap:hard; "/>
- <caption id="caption31" class="search_name" style="left:520px; top:68px; width:95px; height:17px; ">선택 검사</caption>
- <caption id="caption32" style="left:660px; top:68px; width:20px; height:20px; font-weight:bold; ">건</caption>
- <caption id="cap_tclscnt" ref="/root/hidden/tclscnt" style="left:620px; top:68px; width:35px; height:20px; font-weight:bold; text-align:right; "/>
- <select1 id="cmb_tclsset" ref="/root/hidden/tclsset" appearance="minimal" style="left:620px; top:40px; width:55px; height:19px; ">
- <choices>
- <item>
- <label>1</label>
- <value>0</value>
- </item>
- <item>
- <label>2</label>
- <value>1</value>
- </item>
- <item>
- <label>3</label>
- <value>2</value>
- </item>
- <item>
- <label>4</label>
- <value>3</value>
- </item>
- <item>
- <label>5</label>
- <value>4</value>
- </item>
- <item>
- <label>6</label>
- <value>5</value>
- </item>
- <item>
- <label>7</label>
- <value>6</value>
- </item>
- <item>
- <label>8</label>
- <value>7</value>
- </item>
- <item>
- <label>9</label>
- <value>8</value>
- </item>
- <item>
- <label>10</label>
- <value>9</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fchgTclsSet();
- ]]>
- </script>
- </select1>
- <caption id="caption33" class="search_name" style="left:520px; top:42px; width:95px; height:17px; ">검사SET</caption>
- <caption id="caption34" style="left:30px; top:35px; width:460px; height:25px; ">※ 선택 검사는 검사SET 당 10개까지만 유효 합니다</caption>
- </case>
- </switch>
- <button id="btn_selall" class="btn_sw" visibility="hidden" group="tab2" style="left:400px; top:125px; width:70px; height:22px; text-align:center; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSelectAll();
- ]]>
- </script>
- </button>
- <button id="btn_selnot" class="btn_sw" visibility="hidden" group="tab2" style="left:470px; top:125px; width:70px; height:22px; text-align:center; ">
- <caption>전체해제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSelectNot() ;
- ]]>
- </script>
- </button>
- <button id="btn_close_setup" class="btn_sw" visibility="hidden" group="tab2" style="left:1025px; top:115px; width:70px; height:22px; ">
- <caption>설정닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCloseSetup();
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption17" class="tit_1" style="left:0px; top:0px; width:800px; height:15px; ">검사항목별결과조회</caption>
- </group>
- <select id="checkbox4" ref="/root/hidden/refparam/onlytest" visibility="hidden" overflow="visible" appearance="full" style="left:265px; top:142px; width:90px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>단일항목여부</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGrdReMake();
- ]]>
- </script>
- </select>
- </xhtml:body>
- </xhtml:html>
|