123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLR00400.xrw
- * 설 명 : 검사항목별결과관리
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 조철형
- * 작 성 일 : 2007.5.21
- * 수정이력 :
- * 기 타 :
- -->
- <?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/>
- <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/>
- <rsltregid/>
- <mdlreptid/>
- <lastreptdt/>
- <cmt/>
- <testcmt/>
- <testcont/>
- <testcmts/>
- </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>
- </main>
- <send>
- <data1/>
- <data2/>
- <data4/>
- </send>
- <init>
- <LB0106>
- <cd/>
- <nm/>
- </LB0106>
- <LB0103>
- <cd/>
- <nm/>
- </LB0103>
- </init>
- <hidden>
- <refparam>
- <startdd/>
- <enddd/>
- <tsectcd/>
- <sworkseq/>
- <eworkseq>9999</eworkseq>
- <rsltstat0>1</rsltstat0>
- <tclscdlist/>
- <rsltstat1/>
- <rsltstat2/>
- <tclscdlist2/>
- <testgrupseqno/>
- <rsltstat/>
- <userid/>
- <starttm>0000</starttm>
- <endtm>2359</endtm>
- </refparam>
- <ref>
- <tclscdlist>
- <tclsnmlist/>
- <tclscdlist/>
- <tclscdlist2/>
- <testgrup/>
- <tclsnmlist2/>
- </tclscdlist>
- </ref>
- <testcont>
- <tsectcd/>
- <testcontcd/>
- </testcont>
- <testconttsectcd>
- <cd/>
- <nm/>
- </testconttsectcd>
- <default/>
- <currenRow/>
- <updateparam>
- <rsltstat/>
- <tclslrgkind>-</tclslrgkind>
- <XFMGbn>result</XFMGbn>
- </updateparam>
- <rsltcode>
- <cd/>
- <nm/>
- </rsltcode>
- <rsltcont>
- </rsltcont>
- <refflag>
- <userid/>
- <p_isedit/>
- <bcno/>
- <rsltstat/>
- <testlrgkind/>
- </refflag>
- <cursor/>
- <cmtflag>1</cmtflag>
- </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[
- fSetInit();
- ]]>
- </script>
- <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/numericHelper.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"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <submission id="TRLLR00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testinfo"/>
- <submission id="TXLLR00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <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="TXLLR80101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/properties"/>
- <submission id="TRLLR80104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dpd" replace="instance" resultref="/root/hidden/dpdrslt"/>
- <submission id="TRLZZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/LB0210"/>
- </model>
- <script type="javascript">
- <![CDATA[
- var gStartCol = 12;
-
- 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);
-
- 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", model.getValue("/root/init/LB0000/nm"));
-
- submit("TRLLR00402" , 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;
-
- 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) );
-
- var testcol = col + gStartCol;
- var testrow = fGetRow(row, testcol);
-
- //positive 결과 뻘건색 표시
- if(isSearchString(grd_testlist.valueMatrix(row, testcol).toUpperCase(), "POSITIVE")){
- grd_testlist.cellStyle("color", row, testcol, row, testcol) = "#ff0000";
- }
-
- 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";
- }
- }
- }
- }
-
- //검사그룹 선택시 그리드 리 메이크
- function fGrdReMake(){
-
- if(model.getvalue("/root/hidden/ref/tclscdlist/tclscdlist") !=""){
- model.removeNodeset("/root/main/testinfo/patlist");
- model.refresh();
- if(grd_testlist.cols > gStartCol){
- var cols = grd_testlist.cols
- for(i=cols ; i > gStartCol ; i--)
- grd_testlist.colHidden(i) = true;
- }
-
- var caption = "^접수일시^바코드번호^등록번호^성명^성별^나이^진료과^병동/병실^의뢰의사^검체명";
- var vTclsnmA = model.getvalue("/root/hidden/ref/tclscdlist/tclsnmlist2").split("▦");
-
- for(i=0;i<vTclsnmA.length;i++){
- grd_testlist.colHidden(i + gStartCol) = false;
-
- caption += "^" + vTclsnmA[i];
- //grd_testlist.caption = caption; //블럭밖으로 뺌 20080825_승현
-
- //grd_testlist.caption = grd_testlist.caption +"^" + vTclsnmA[i];
- //grd_testlist.valueMatrix(0, i + 11) = vTclsnmA[i];
- }
- grd_testlist.colHidden(i + gStartCol) = false;
- caption += "^" + '편차' ;
- grd_testlist.caption = caption;
- //grd_testlist.rebuild();
- }
-
- }
-
- function fPatGridClick(pRow,pCol, Event){
-
- var sDetilRow = fGetRow(pRow,pCol);
- //fCurrentHangMok(pCol);
-
- //결과코드 값 가져오기
- var testcd = model.getvalue("/root/main/testinfo/testlist["+ sDetilRow +"]/testcd");
- cmb_rslt.choices.itemset.attribute("nodeset") = "/root/init/LB0109[etc01='"+ testcd +"']";
-
- 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/rsltrgsgnm" , model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/rsltrgsgnm"));
- model.makeValue("/root/main/testinfo/spcinfo/mdlreptnm" , model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/mdlreptnm"));
- model.makeValue("/root/main/testinfo/spcinfo/lastreptnm" , model.getvalue("/root/main/testinfo/testlist["+sDetilRow+"]/lastreptnm"));
- //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"));
- model.makeValue("/root/main/testinfo/spcinfo/testcont" , "");
- model.makeValue("/root/main/testinfo/spcinfo/testcmts" , ""); //검사항목별소견
-
-
- 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";
- }
-
- /*if(model.getValue("/root/main/testinfo/testlist["+ sDetilRow +"]/judgmark") != ""
- || model.getValue("/root/main/testinfo/testlist["+ sDetilRow +"]/panicmark") != ""
- || model.getValue("/root/main/testinfo/testlist["+ sDetilRow +"]/deltamark") != ""
- || model.getValue("/root/main/testinfo/testlist["+ sDetilRow +"]/criticalmark") != ""
- || model.getValue("/root/main/testinfo/testlist["+ sDetilRow +"]/alertmark") != ""
- || model.getValue("/root/main/testinfo/testlist["+ sDetilRow +"]/relatingmark") != ""
- || model.getValue("/root/main/testinfo/testlist["+ sDetilRow +"]/amrmark") != "") {
-
- grd_testlist.cellStyle("color", pRow, pCol) = "#f7a08b";
- }else {
- grd_testlist.cellStyle("color", pRow, pCol) = "#000000";
- }*/
-
-
- //model.setvalue("/root/main/testinfo/spcinfo/comment" , "-")
-
- if(Event != "M") { //이벤트가 mousemove가 아닐때..
- var vSectcd = model.getValue("/root/main/testinfo/testlist["+ sDetilRow +"]/sectcd");
- var vTsectcd = model.getValue("/root/main/testinfo/testlist["+ sDetilRow +"]/tsectcd");
-
- fCMTPCD_ChangeNodeset(vSectcd, vTsectcd, sDetilRow);
- fInitializeSoGyeon(sDetilRow); //소견 조회초기화
- }
-
- model.refresh();
- }
- else{
- model.setValue("/root/hidden/currenRow", "");
- model.resetInstanceNode("/root/main/testinfo/spcinfo");
- model.refresh();
- }
- }
-
- // 환자 선택, 취소 클릭
- function fSelectCancle() {
- pCol = grd_testlist.col;
- pRow = grd_testlist.row;
-
- if(pRow == 0) {
- for(i = 1; i < grd_testlist.rows; i++) {
- var isChk = model.getValue("/root/main/testinfo/patlist[" + i + "]/chk");
- var vWorkno = model.getValue("/root/main/testinfo/patlist[" + i + "]/workno");
-
-
- var vCdList = model.getValue("/root/hidden/refparam/tclscdlist2").split("▦");
-
- if (isChk == "true") {
- grd_testlist.rowStyle(i, "data", "background-color") = "#f3e1bf";
- } else {
- grd_testlist.rowStyle(i, "data", "background-color") = "#FFFFFF";
- fGrdReMake2();
- }
-
-
- for (var idx=0; idx < vCdList.length; idx++) {
- var vInptRslt = "";
- vInptRslt = "inptrslt" + (eval(idx+1) );
- var readonly = model.getValue("/root/main/testinfo/patlist["+ i +"]/"+vInptRslt+"/@readonly");
- var rstval = model.getValue("/root/main/testinfo/patlist["+ i +"]/"+vInptRslt);
-
- if (readonly == "false") {
-
- col = idx + gStartCol;
- var refRow = fGetRow(i, col);
-
- if(rstval == ""){
- model.setValue("/root/main/testinfo/testlist[" + refRow + "]/iud", "");
- }else{
- // 수정된항목 색변경
- // grd_testlist.cellStyle("background-color", i, col, i, col) = "#f3e1bf";
- model.setValue("/root/main/testinfo/testlist[" + refRow + "]/iud", (isChk != "true") ? "" : "U");
- }
- }
- }
- }
- } else {
- var isChk = model.getValue("/root/main/testinfo/patlist[" + pRow + "]/chk");
- var vWorkno = model.getValue("/root/main/testinfo/patlist[" + pRow + "]/workno");
-
- var vCdList = model.getValue("/root/hidden/refparam/tclscdlist2").split("▦");
-
- if (isChk == "true") {
- grd_testlist.rowStyle(pRow, "data", "background-color") = "#f3e1bf";
- } else {
- grd_testlist.rowStyle(pRow, "data", "background-color") = "#FFFFFF";
- fGrdReMake2();
- }
-
- 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") {
- //var find = grd_testlist.findRow("true", 1, 1, true, true);
-
- col = idx + gStartCol;
-
- //grd_testlist.col = col;
- //grd_testlist.row = pRow;
- grd_testlist.select(pRow, col) = true;
-
- 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");
- }
- }
- }
- }
- //결과코드 값 가져오기
- var testcd = model.getvalue("/root/main/testinfo/testlist["+ refRow +"]/testcd");
- cmb_rslt.choices.itemset.attribute("nodeset") = "/root/init/LB0109[etc01='"+ testcd +"']";
-
- model.refresh();
- }
-
- //소견 노드 셋팅
- function fCMTPCD_ChangeNodeset(pSectcd, pTsectcd, refRow) {
- model.resetInstanceNode("/root/hidden/testconttsectcd");
-
- if(typeof(pSectcd) == "undefined") {
- cmb_cmt.choices.itemset.attribute("nodeset") ="/root/init/LB0210[cd='00']";
- //model.setValue("/root/hidden/testcont/testcontcd", "-");
- } else {
- cmb_cmt.choices.itemset.attribute("nodeset")="/root/init/LB0210[cd='00' or (etc01='" + pSectcd + "' and etc02='" + pTsectcd + "')]";
- }
- model.setvalue("/root/hidden/testcont/testcontcd" , "00");
- cmb_cmt.refresh();
-
- var vCmtTsect = model.getValue("/root/main/testinfo/testlist["+ refRow +"]/tsectcd");
-
- model.setValue("/root/hidden/testconttsectcd[1]/cd", "00");
- model.setValue("/root/hidden/testconttsectcd[1]/nm", "- 시행부서선택 -");
-
- if(vCmtTsect != ""){
- model.makeValue("/root/hidden/testconttsectcd[2]/cd" , vCmtTsect);
- model.makeValue("/root/hidden/testconttsectcd[2]/nm" ,
- model.getValue("/root/init/LB0106[cd='" + vCmtTsect + "']/nm"));
- }
- else{
- model.setvalue("/root/hidden/testcont/tsectcd" , "00");
- }
-
- cmb_sect.refresh();
- }
-
- //시행부서선택시 소견노드 셋팅
- function fCMTPCD_ChangeNodeset2(){
- var tsectcd = model.getvalue("/root/hidden/testcont/tsectcd");
-
- if(tsectcd == "00"){
- cmb_cmt.choices.itemset.attribute("nodeset") ="/root/init/LB0210[cd='00']";
- }
- else{
- cmb_cmt.choices.itemset.attribute("nodeset")="/root/init/LB0210[cd='00' or (etc02='" + tsectcd + "')]" ;
- }
-
-
- model.setvalue("/root/hidden/testcont/testcontcd" , "00");
- cmb_cmt.refresh();
- }
-
- //소견 초기화
- function fInitializeSoGyeon(refRow){
- var cntTsect = getNodesetCount("/root/hidden/testconttsectcd");
- var cntSG = getNodesetCount("/root/main/testinfo/testcont");
- var curTsect = "";
- var strSG = "";
- var plusIdx = 1;
-
-
- /*if(cntSG == 0){
- model.makenode("/root/main/testinfo/testcont");
- }
-
- for(var sNum = 2; sNum <= cntTsect; sNum++){
- curTsect = model.getValue("/root/hidden/testconttsectcd[" + sNum + "]/cd");
-
- if(model.getValue("/root/main/testinfo/testcont[execdeptcd='"+ curTsect + "']/execdeptcd") == ""){
- var SG = parseInt(cntSG)+parseInt(plusIdx);
- model.makeNode("/root/main/testinfo/testcont[" + SG + "]/testcontcd");
- model.makeNode("/root/main/testinfo/testcont[" + SG + "]/execdeptcd");
- model.makeNode("/root/main/testinfo/testcont[" + SG + "]/testcont");
- model.makeNode("/root/main/testinfo/testcont[" + SG + "]/testcontkind");
- //model.makeNode("/root/main/TestInfo/testcont[" + (cntSG+plusIdx) + "]/rsltstat");
- model.makeNode("/root/main/testinfo/testcont[" + SG+ "]/iud");
-
- model.setValue("/root/main/testinfo/testcont[" +SG + "]/execdeptcd", curTsect);
- model.setValue("/root/main/testinfo/testcont[" + SG + "]/iud", "n");
- plusIdx++;
- }
- }
- */
- if(cntTsect == 2){
- model.setValue("/root/hidden/testcont/tsectcd", model.getValue("/root/hidden/testconttsectcd[2]/cd"));
- model.setValue("/root/hidden/testcont/testcontcd", "00");
- }else{
- model.setValue("/root/hidden/testcont/tsectcd", "00");
- model.setValue("/root/hidden/testcont/testcontcd", "00");
- }
-
- fSelectTestContTsect(refRow);
-
- //model.makeValue("/root/hidden/refflag/p_isedit", "");
- //model.refresh();
- }
-
- //선택 시행부서 소견
- function fSelectTestContTsect(refRow){
- var selTsectcd = model.getValue("/root/hidden/testcont/tsectcd").getTrim();
- var vSectcd = "";
- var vTsectcd = "";
- var vBcno = "";
- var vTestcd = "";
-
- if(refRow != "return") {
- vSectcd = model.getValue("/root/main/testinfo/testlist["+ refRow +"]/sectcd");
- vTsectcd = model.getValue("/root/main/testinfo/testlist["+ refRow +"]/tsectcd");
- vBcno = model.getValue("/root/main/testinfo/testlist["+ refRow +"]/bcno");
- vTestcd = model.getValue("/root/main/testinfo/testlist["+ refRow +"]/testcd");
- }else{//소견 시행부서 변경시 그냥 return
- return;
- }
-
-
- //오류있음.. 전체 선택시 해당 검체의 모든 시행부서 소견을 가져와야 하나 다른 검체 소견 같이 가져옴..
- //주석처리합니다.20100205
- /*var cntSoGyeon = getNodesetCount("/root/main/testinfo/testcont"); //소견 저장 개수
- var strSG = "";
-
- if(selTsectcd == "00"){
- for(var slipR = 1; slipR <= cntSoGyeon; slipR++){
- if(model.getValue("/root/main/testinfo/testcont[" + slipR + "]/iud") != "n"){
- strSG += "【" + model.getValue("/root/main/testinfo/testcont[" + slipR + "]/execdeptcd") + "】"
- + model.getValue("/root/main/testinfo/testcont[" + slipR + "]/testcont") + "\n";
- }
- }
- }else{
- for(var slipR = 1; slipR <= cntSoGyeon; slipR++){
- if(model.getValue("/root/main/testinfo/testcont[" + slipR + "]/execdeptcd") == vTsectcd){
- if(model.getValue("/root/main/testinfo/testcont[" + slipR + "]/bcno") == vBcno){
- strSG += model.getValue("/root/main/testinfo/testcont[" + slipR + "]/testcont") + "\n";
- //strSG += "【" + selSlip + "】"
- // + model.getValue("/root/MainData/GSHMSangSe/GeomSaSoGyeon[" + slipR + "]/cmtp") + "\n";
- }
- }
- }
- }*/
-
- //시행부서별 소견 전체는.. 걍 버리고 해당 검사 시행부서 소견만 조회
- model.setValue("/root/main/testinfo/spcinfo/testcont"
- , model.getValue("/root/main/testinfo/testcont[bcno = '"+ vBcno + "' and execdeptcd = '" + selTsectcd + "']/testcont"));
-
- //검사항목별 소견 추가
- model.setValue("/root/main/testinfo/spcinfo/testcmts"
- , model.getValue("/root/main/testinfo/testcmts[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']/testcont") != "" ?
- model.getValue("/root/main/testinfo/testcmts[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']/testcont")
- : model.getvalue("/root/main/testinfo/testlist["+refRow+"]/tclsscrnnm") + " : ");
-
- model.refresh();
-
- }
-
- //소견 선택시
- function fSetCmt(pRow,pCol){
- var sDetilRow = fGetRow(pRow,pCol); //testlist row 조회
-
- var curSlip = model.getValue("/root/hidden/testcont/tsectcd");
- var curCmptcd = model.getValue("/root/hidden/testcont/testcontcd");
-
- if(curSlip == "00"){
- //TFGetMsgBox( -1, "소견을 입력할 슬립을 지정하여 주세요", "소견입력오류", "I", "OK" );
- model.setValue("/root/hidden/testcont/testcontcd", "00");
- model.refresh();
- return;
- }
-
- var vSectcd = model.getValue("/root/main/testinfo/testlist["+ sDetilRow +"]/sectcd");
- var vTsectcd = model.getValue("/root/main/testinfo/testlist["+ sDetilRow +"]/tsectcd");
-
- var newCmt = model.getValue("/root/init/LB0210[cd='" + curCmptcd + "' and etc01='" + vSectcd + "' and etc02='" + vTsectcd + "']/etc03");
-
- var vContFlag = model.getValue("/root/hidden/cmtflag");
- if(vContFlag == 1){ //시행부서별 소견
- var curCmt = model.getValue("/root/main/testinfo/spcinfo/testcont");
- if(curCmt == "\n" || curCmt=="") {
- var rstCmt = newCmt;
- } else{
- var rstCmt = curCmt + "\n" + newCmt;
- }
- model.setValue("/root/main/testinfo/spcinfo/testcont", rstCmt);
- textarea3.selBegin = (rstCmt).length;
- }else{ //검사항목별 소견
- var curCmt = model.getValue("/root/main/testinfo/spcinfo/testcmts");
- var rstCmt = curCmt + " " + newCmt;
-
- model.setValue("/root/main/testinfo/spcinfo/testcmts", rstCmt);
- text_testcmts.selBegin = (rstCmt).length;
-
- }
-
- //model.refresh();
- fSoGyeonJeoJang(vContFlag);
- }
-
- //소견저장
- function fSetContCmt(pRow,pCol){
- var sDetilRow = fGetRow(pRow,pCol); //testlist row 조회
-
- if(model.getvalue("/root/hidden/refparam/userid") == "" || model.getvalue("/root/main/getUsernm/usernm") == ""){
- messageBox("검사자를 " , "C001" ,"");
- model.setFocus("ipt_testpsn");
- return;
- }
-
- /* 결과 저장시 소견 입력 여부에 따라 등록되지 않은게 있다면 같이 저장하기 위해 막음
- if(model.getvalue("/root/main/testinfo/testlist["+ sDetilRow +"]/rsltstat") == "-") {
- messageBox("소견등록은 결과저장 이후에 가능합니다. " , "C" ,"");
- return;
- }*/
-
- /*if(model.getvalue("/root/main/testpatlist/patlist["+grd_patList.row+"]/rsltstat") == "4") {
- messageBox("최종보고된 검체의 소견은 수정할수 없습니다." , "C" ,"");
- return;
- }*/
- if (model.getValue("/root/hidden/refflag/p_isedit") != "true"
- && model.getxPathValue('count(/root/main/testinfo/testcmts[m = ""])') == "0") {
- messageBox("소견을 입력 하세요!" , "C" ,"");
- return;
- }
-
- model.setvalue("/root/send/data1", "m▦rownum▦selchk▦tclsscrnm▦bufinptrslt▦reptrslt▦multiflag▦rstdt▦refval▦rsltunit▦judgmark▦panicmark▦deltamark▦criticalmark▦alertmark▦▦▦rsltmark▦erprcpflag▦bfreptrslt▦bflastreptdt▦rstnm▦eqmtnm▦testcmt▦tclskind▦testcd▦spccd▦rsltseq▦inptrslt▩");
-
- model.setValue("/root/hidden/refflag/bcno", model.getvalue("/root/main/testinfo/testlist["+ sDetilRow +"]/bcno"));
- model.setValue("/root/hidden/refflag/rsltstat", "1");
- model.setValue("/root/hidden/refflag/testlrgkind", "-");
- model.setValue("/root/hidden/refflag/userid", model.getValue("/root/hidden/refparam/userid"));
-
- //여러 검체 동시에 일괄 저장 때리기 위한 구분
- model.makeValue("/root/hidden/refflag/rsltscrflag", "test");
-
- model.copyNode("/root/send/data2" , "/root/hidden/refflag");
-
- //시행부서별, 검사항목별 소견 저장데이터 생성
- fMakeSendSoGyeon();
-
- }
-
- //소견 저장을 위한 소견 데이터 만들기
- function fMakeSendSoGyeon(){
-
- //시행부서별 소견
- var cntSG = getNodesetCount("/root/main/testinfo/testcont"); //소견 저장 개수
- var vSndSG = "m▦bcno▦testcontcd▦execdeptcd▦testcont▦testcontkind▩";
-
- for(var i = 1; i <= cntSG; i++){
- if(model.getValue("/root/main/testinfo/testcont[" + i + "]/iud") != ""){
- vSndSG += "u" + "▦" //i로 넣었다 왜 u로 넣고 있어? ㅡ,.ㅡ
- + model.getValue("/root/main/testinfo/testcont[" + i + "]/bcno") + "▦"
- + model.getValue("/root/main/testinfo/testcont[" + i + "]/testcontcd") + "▦"
- + model.getValue("/root/main/testinfo/testcont[" + i + "]/execdeptcd") + "▦"
- + model.getValue("/root/main/testinfo/testcont[" + i + "]/testcont") + "▦"
- + model.getValue("/root/main/testinfo/testcont[" + i + "]/testcontkind") + "▩";
- }
- }
- model.makeValue("/root/send/data3", vSndSG);
-
- //검사항목별 소견
- var vSndTestcmts = "m▦bcno▦tclscd▦testcd▦spccd▦rsltseq▦testcontcd▦testcont▦flag▩";
- var vTestCmtCounts = model.getxPathValue('count(/root/main/testinfo/testcmts)');
- var xPath = "/root/main/testinfo/testcmts";
- for (j = 1; j <= vTestCmtCounts; j++){
- if(model.getValue(xPath+ "[" + j + "]/m") != ""){
- vSndTestcmts += model.getValue(xPath+ "[" + j + "]/m") + "▦"
- + model.getValue(xPath+ "[" + j + "]/bcno") + "▦"
- + model.getValue(xPath+ "[" + j + "]/tclscd") + "▦"
- + model.getValue(xPath+ "[" + j + "]/testcd") + "▦"
- + model.getValue(xPath+ "[" + j + "]/spccd") + "▦"
- + model.getValue(xPath+ "[" + j + "]/rsltseq") + "▦"
- + model.getValue(xPath+ "[" + j + "]/testcontcd") + "▦"
- + model.getValue(xPath+ "[" + j + "]/testcont") + "▦"
- + "2▩"; //소견만 저장하기때문에 2보냄 결과등록시와 소견만 저장시 결과seq때문에..
-
- }
- }
- model.makeValue("/root/send/data4", vSndTestcmts);
-
- submit("TXLLR80101",false);
-
- //저장 후 소견 iud초기화
- for (j = 1; j <= vTestCmtCounts; j++){
- model.setValue(xPath+ "[" + j + "]/m", "");
- }
- model.setValue("/root/hidden/refflag/p_isedit", "");
- model.removeNodeset("/root/send/data2"); //아씨..이게 소견저장할때와 검사결과 저장할때 같은 노드임 ㅡ,.ㅡ
- model.makeNode("/root/send/data2");
- model.refresh();
- }
-
- //소견내용이 바뀔경우
- function fSoGyeonJeoJang(pRef){ //pRef : 소견구분 1:시행부서별, 2:검사항목별
-
- var curSlip = model.getValue("/root/hidden/testcont/tsectcd");
- var curCmptcd = model.getValue("/root/hidden/testcont/testcontcd");
- var vCmtp = model.getValue("/root/main/testinfo/spcinfo/testcont"); //시행부서별 소견
- var vTestCmts = model.getValue("/root/main/testinfo/spcinfo/testcmts"); //검사항목별 소견
- var vNodeCnt, vContNodeCount;
-
- var vRow = fGetRow(grd_testlist.row,grd_testlist.col);
- var vBcno = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/bcno");
- var vTestcd = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/testcd"); //검사코드
- var vTsectcd = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/tsectcd"); //시행부서
- var vTclscd, vSpccd, vRsltseq;
-
- if(curSlip == "-"){
- return;
- }
-
- if(pRef == 1){ //시행부서별 소견
- var xPath_Cont = "/root/main/testinfo/testcont";
-
- //해당 바코드, 시행부서 노드 존재 여부 판단 위해
- vNodeCnt = model.getxPathValue('count(/root/main/testinfo/testcont[bcno = "'+ vBcno + '" and execdeptcd = "'+ vTsectcd + '"]/testcont)');
- if(vCmtp.getTrim() == "" || vCmtp.getTrim() == "-"){
- if(vNodeCnt > 0){ //소견 변경했는데 소견이 빈값이고 저장된 소견이 존재 할 경우
- model.setValue(xPath_Cont + "[bcno = '" + vBcno + "' and execdeptcd = '" + vTsectcd + "' ]/testcontcd", "-");
- model.setValue(xPath_Cont + "[bcno = '" + vBcno + "' and execdeptcd = '" + vTsectcd + "' ]/testcont", "-");
- //시행부서별 소견은 무조건 넣고 이력쌓아서 무조건 i로 날림
- model.setValue(xPath_Cont + "[bcno = '" + vBcno + "' and execdeptcd = '" + vTsectcd + "' ]/iud", "i");
- model.setValue(xPath_Cont + "[bcno = '" + vBcno + "' and execdeptcd = '" + vTsectcd + "' ]/testcontkind", "3"); //이건 어떤 용도?
- }else{
- return; //소견내용 없고 저장된소견도 없을때 return;
- }
- }else{
- if(vNodeCnt > 0){ //소견 존재시 setValue
- model.setValue(xPath_Cont + "[bcno = '" + vBcno + "' and execdeptcd = '" + vTsectcd + "' ]/testcontcd", curCmptcd);
- model.setValue(xPath_Cont + "[bcno = '" + vBcno + "' and execdeptcd = '" + vTsectcd + "' ]/testcont", vCmtp);
- model.setValue(xPath_Cont + "[bcno = '" + vBcno + "' and execdeptcd = '" + vTsectcd + "' ]/iud", "i");
- }else{ //없을때 만들어 넣기
- vContNodeCount = model.getxPathValue('count(/root/main/testinfo/testcont)');
- vContNodeCount = parseInt(vContNodeCount) + 1;
-
- model.makeValue(xPath_Cont + "[" + vContNodeCount + "]/iud" , "i")
- model.makeValue(xPath_Cont + "[" + vContNodeCount + "]/bcno" , vBcno)
- model.makeValue(xPath_Cont + "[" + vContNodeCount + "]/testcontcd" , curCmptcd)
- model.makeValue(xPath_Cont + "[" + vContNodeCount + "]/testcont" , vCmtp)
- model.makeValue(xPath_Cont + "[" + vContNodeCount + "]/testcontkind" , "01")
- model.makeValue(xPath_Cont + "[" + vContNodeCount + "]/execdeptcd" , vTsectcd)
- }
- model.setValue("/root/hidden/refflag/p_isedit", "true"); //저장할거 생겼다.
- }
-
- }else{ //검사항목별 소견
-
- var xPath_TestCmts = "/root/main/testinfo/testcmts";
- //검사별 소견 노드 존재 여부
- vNodeCnt = model.getxPathValue('count(/root/main/testinfo/testcmts[bcno = "'+ vBcno + '" and testcd = "'+ vTestcd + '"]/testcont)');
- //소견을 수정했는데 빈값일경우
- if(vTestCmts.getTrim() == ""){
- if(vNodeCnt > 0){
- if(model.getvalue("/root/main/testinfo/testcmts[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']/m") == "i"){
- //신규로 저장하고자 존재 했다면 노드 삭제
- model.removeNode("/root/main/testinfo/testcmts[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']");
- }else{ //u, d일경우 d로 변경
- model.setValue("/root/main/testinfo/testcmts[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']/m", "d");
- model.setValue(xPath_TestCmts + "[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']/testcont", vTestCmts);
- }
- }
- return;
- }
-
-
- if( vNodeCnt > 0){
- model.setValue(xPath_TestCmts + "[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']/testcont", vTestCmts);
- model.setValue(xPath_TestCmts+ "[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']/testcontcd", curCmptcd);
-
- if(model.getvalue(xPath_TestCmts + "[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']/m") == "i"){ //신규 소견등록시
- //저장 내역 조회될때 m에는 빈값, 신규 저장시 i넣어주고, 수정될때 u로 바꿈
- model.setValue(xPath_TestCmts + "[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']/m", "i");
- }else{
- //신규저장이 아니면 저장내역으로 보고 u로 변경
- model.setValue(xPath_TestCmts + "[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']/m", "u");
- }
- }else{ //없다면 makeValue
-
- vContNodeCount = model.getxPathValue('count(/root/main/testinfo/testcmts)');
- vTclscd = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/tclscd");
- vSpccd = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/spccd");
- vRsltseq = model.getvalue("/root/main/testinfo/testlist["+vRow+"]/rsltseq");
-
- vContNodeCount = parseInt(vContNodeCount) +1;
-
- model.makeValue(xPath_TestCmts + "[" + vContNodeCount + "]/m" , "i")
- model.makeValue(xPath_TestCmts + "[" + vContNodeCount + "]/bcno" , vBcno);
- model.makeValue(xPath_TestCmts + "[" + vContNodeCount + "]/tclscd" , vTclscd);
- model.makeValue(xPath_TestCmts + "[" + vContNodeCount + "]/testcd" , vTestcd);
- model.makeValue(xPath_TestCmts + "[" + vContNodeCount + "]/spccd" , vSpccd);
- model.makeValue(xPath_TestCmts + "[" + vContNodeCount + "]/rsltseq" , vRsltseq);
- model.makeValue(xPath_TestCmts + "[" + vContNodeCount + "]/testcontcd", curCmptcd);
- model.makeValue(xPath_TestCmts + "[" + vContNodeCount + "]/testcont" , vTestCmts)
- }
- model.setValue("/root/hidden/refflag/p_isedit", "true"); //저장할거 생겼다.
- //
- }
- model.refresh();
- }
-
- //선택한 testlist row 알기
- function fGetRow(pRow, pCol) {
- var findRow = pRow;
-
- 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 = parseInt(pCol) - parseInt(gStartCol);
-
- if(vCdList.length > vIdx) {
- var vRkey = vWorkno+vCdList[vIdx].getTrim();
- findRow = datagrid1.findRow(vRkey, 1,1, 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;
- }
- //수정된 소견이 있을경우 소견부터 저장
- if (model.getValue("/root/hidden/refflag/p_isedit") == "true"
- || model.getxPathValue('count(/root/main/testinfo/testcmts[m != ""])') > 0) {
-
- fSetContCmt();
- }
-
- 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, 74, 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")) {
- if(fUpdtRslt() != 0) return;
-
- 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 fUpdtRslt(){
- var testlist = "";
- var returnyn = "";
- var bufDJGG = "";
-
- for(i = 0; i < datagrid1.rows; i++) {
- if(((model.getValue("/root/main/testinfo/testlist["+ i +"]/rsltstat") == "4") || (model.getValue("/root/main/testinfo/testlist["+ i +"]/rsltstat") == "5"))
- && (model.getvalue("/root/main/testinfo/testlist["+ i +"]/iud") == "U")) { //수정 및 선택된 경우
- var vPID = model.getValue("/root/main/testinfo/testlist["+ i +"]/pid"); //등록번호
- var vBcno = model.getValue("/root/main/testinfo/testlist["+ i +"]/bcno"); //바코드
-
- bufDJGG += model.getValue("/root/main/testinfo/testlist["+ i +"]/testcd") + "▦" + model.getValue("/root/main/testinfo/testlist["+ i +"]/reptrslt") + "▩";
- testlist += "'" + model.getValue("/root/main/testinfo/testlist["+ i +"]/testcd") + "',"; //'testcd', 'testcd',
- //model.setvalue("/root/hidden/DJGGParm/userid" , model.getvalue("/root/hidden/refflag/userid")); 6/12일 수정자ID 직접입력을 원하셔서 막음..
-
- if((vPID != "") //pid가 있고
- && (vBcno != model.getValue("/root/main/testinfo/testlist["+ (i+1) +"]/bcno")) //이전바코드번호랑 다르고
- && (i != 0)){ //i != 0임
- model.makeValue("/root/hidden/DJGGParm/bcno" , vBcno);
- model.makeValue("/root/hidden/DJGGParm/testcdlist", testlist.substr(0, testlist.length - 1)); //'testcd', 'testcd', <-맨뒤의 ',' 빼기 위해
- model.makeValue("/root/hidden/DJGGParm/bufDJGG", bufDJGG);
- model.makeNode("/root/hidden/DJGGParm/userid");
- model.makeNode("/root/hidden/DJGGParm/rsltsaveYN");
-
- testlist = ""; //초기화
-
- modal("SMLLR90600" , "","","","","/root/hidden/DJGGParm" , "/root/hidden/DJGGParm");
-
- if(model.getvalue("/root/hidden/DJGGParm/rsltsaveYN") == "Y")
- returnyn = 0;
- else
- returnyn = 1;
- }
- }
- }
-
- return returnyn;
- }
-
- //onkeypress 이벤트시..
- function fGridKeyEvent(){
- var curRow = grd_testlist.row;
- var curCol = grd_testlist.col;
-
- if (event.keyCode == 13) {
- 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;
- }*/
-
-
-
- /*------------------------------------------------------------------시작
- DPD 검사일 경우 Urine Creatinine(LCU102) 검사의 결과와 계산하여 결과 보고 하여야 한다고 함
- DPD / (Creatinine × 0.088)
- Creatinine 조회 기준은 같은 처방일 임 */
-
-
- var vTestcd = model.getvalue("/root/main/testinfo/testlist["+refRow+"]/testcd")
- var vPrcpdd = model.getvalue("/root/main/testinfo/testlist["+refRow+"]/prcpdd")
- var vPid = model.getvalue("/root/main/testinfo/testlist["+refRow+"]/pid")
-
- //일단 하드코딩 합니다 ^^
- if(vTestcd == "LSS180"){
- model.makeValue("/root/send/dpd/prcpdd" , vPrcpdd);
- model.makeValue("/root/send/dpd/testcd" , "LCU102");
- model.makeValue("/root/send/dpd/pid" , vPid);
-
- if(vInptRslt.isFloat()){
- submit("TRLLR80104");
-
- var vUrineRslt = model.getValue("/root/hidden/dpdrslt/rslt");
- var vUrineRsltDt = model.getValue("/root/hidden/dpdrslt/dt");
-
- if(vUrineRslt == ""){
- messageBox("해당 처방일에 Urine Creatinine 검사결과가 없습니다.", "I");
- }else{
- if(vUrineRslt.isFloat()){
- var rtn = messageBox("Urine Creatinine 결과 : " + vUrineRslt + "\n보고일 : " + vUrineRsltDt + "\n계산식 : DPD / (Creatinine × 0.088)\n변환", "S001");
- if(rtn == 6){ //예
- //계산적용
- vInptRslt = parseFloat(vInptRslt) / (parseFloat(vUrineRslt) * 0.088) ;
- //소숫점 2째에서 반올림
- vInptRslt = Math.round(vInptRslt * Math.pow(10, -2 * (-1)-1)) / Math.pow(10, -2 *(-1)-1);
- vInptRslt = vInptRslt.toString(); //요거 String으로 안바꿔주면 에러남
-
- //보이는 그리드에 변환 된 값 설정
- grd_testlist.valueMatrix(curRow, curCol) = vInptRslt;
-
- }
- else if(rtn == 2){ //취소
- grd_testlist.valueMatrix(curRow, curCol) = "";
- return;
- }
-
- }else{
- messageBox("Urine Creatinine검사 결과 수치가 부적합 합니다.\n검사결과 : "+ vUrineRslt, "I");
- }
-
- }
-
-
- }else{
- messageBox("DPD검사 결과변환은 숫자만 가능합니다!!", "E");
- }
- }
- //-------------------------------------------------------------------끝
-
- fCvtViewResult(vInptRslt, refRow);
-
- /*if(model.getValue("/root/main/testinfo/testlist["+ refRow +"]/judgmark") != ""
- || model.getValue("/root/main/testinfo/testlist["+ refRow +"]/panicmark") != ""
- || model.getValue("/root/main/testinfo/testlist["+ refRow +"]/deltamark") != ""
- || model.getValue("/root/main/testinfo/testlist["+ refRow +"]/criticalmark") != ""
- || model.getValue("/root/main/testinfo/testlist["+ refRow +"]/alertmark") != ""
- || model.getValue("/root/main/testinfo/testlist["+ refRow +"]/relatingmark") != ""
- || model.getValue("/root/main/testinfo/testlist["+ refRow +"]/amrmark") != "") {
-
- grd_testlist.cellStyle("color", curRow, curCol) = "#f7a08b";
- } else {
- grd_testlist.cellStyle("color", curRow, curCol) = "#000000";
- }*/
-
- if(vInptRslt == ""){
- if(model.getValue("/root/main/testinfo/testlist["+refRow+"]/iud") != "") {
- model.setValue("/root/main/testinfo/testlist["+refRow+"]/iud", "");
- datagrid1.rebuild();
- }
-
- model.setValue("/root/main/testinfo/patlist["+ curRow +"]/chk", "false");
- //return;
- } else {
- model.setValue("/root/main/testinfo/patlist["+ curRow +"]/chk", "true");
- }
- grd_testlist.cellStyle("background-color", curRow, curCol, curRow, curCol) = "#f3e1bf";
-
- if(model.getValue("/root/hidden/cursor") == "1") {
- // 다음 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 {
- // 다음 Col로 이동
- var max = grd_testlist.cols;
- var posCol = -1
-
- for (var r = (curCol + 1); r < max; r++) {
- var vRstNo = parseInt(eval(r - gStartCol + 1)).toString();
-
- var isReadonly = model.getValue("/root/main/testinfo/patlist[" + curRow + "]/inptrslt" + vRstNo + "/@readonly");
- if (isReadonly == "false") {
- posCol = r;
- break;
- }
- }
-
- if (posCol > 0) {
- grd_testlist.row= curRow;
- grd_testlist.col = posCol;
-
- fPatGridClick(curRow, posCol);
-
- } else {
- fPatGridClick(curRow, curCol);
-
- }
- }
-
- } else {
- //fg.textMatrix(curRow, curCol) = "";
-
- }
-
- }
- }
-
- //onkeydown 이벤트시
- function fGridKeyDown(){
- var curRow = grd_testlist.row; //현재로우
- var curCol = grd_testlist.col; //현재컬럼
-
- if (event.keyCode == 37 || event.keyCode == 38 || event.keyCode == 39 || event.keyCode == 40) {
- 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); //실제 데이터있는 그리드의 로우 검색
-
- fPatGridClick(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 count = getNodesetCount("/root/main/testgrupdetl")
- if(count > 0){
-
- var sendtclsnm = model.getValue("/root/main/testgrupdetl[1]/tclsnm");
- var sendtclsnm2 = model.getValue("/root/main/testgrupdetl[1]/tclsnm");
- var sendtclscd = model.getValue("/root/main/testgrupdetl[1]/tclscd");
- var sendtclscd2 = model.getValue("/root/main/testgrupdetl[1]/tclscd");
-
-
- // 검사그룹 상세 목록 없을때
- if(sendtclsnm == ""){
- model.setValue("/root/hidden/tclscdlist/tclscdlist", "");
- model.setValue("/root/hidden/tclscdlist/tclsnmlist", "");
-
- }else{ // 검사그룹 상세 목록 있을때
- for(i=2; i<= count; i++){
- sendtclsnm = sendtclsnm + ", " + model.getValue("/root/main/testgrupdetl["+i+"]/tclsnm");
- sendtclsnm2 = sendtclsnm2 + "▦ " + model.getValue("/root/main/testgrupdetl["+i+"]/tclsnm");
- //sendtclscd = sendtclscd + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- sendtclscd = sendtclscd + "','" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- sendtclscd2 = sendtclscd2 + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- }
- 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.setValue("/root/hidden/ref/tclscdlist/tclsnmlist2", sendtclsnm2);
-
- }
-
- model.refresh();
- fGrdReMake();
- }
-
- }
-
- function fSetInit(ref){
- if(ref != 2) {
- model.removeNodeset("/root/main/testinfo/patlist");
- model.removeNodeset("/root/main/testinfo/testlist");
-
- model.resetInstanceNode("/root/main/testinfo/spcinfo");
-
- model.setvalue("/root/hidden/refparam/startdd" , getCurrentDate());
- model.setvalue("/root/hidden/refparam/enddd" , getCurrentDate());
- model.setValue("/root/hidden/refparam/tsectcd" , "00");
- model.setValue("/root/hidden/refparam/sworkseq" , "0");
- model.setValue("/root/hidden/refparam/eworkseq" , "0");
- model.setValue("/root/hidden/refparam/starttm" , "0000");
- model.setValue("/root/hidden/refparam/endtm" , "2359");
- model.setValue("/root/hidden/refparam/rsltstat0" , "1");
- model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist" , "");
- model.setValue("/root/hidden/ref/tclscdlist/testgrup" , "");
- model.setValue("/root/hidden/rsltcont" , "");
- model.setValue("/root/hidden/refparam/rsltstat1" , "");
- model.setValue("/root/hidden/refparam/rsltstat2" , "");
- model.setValue("/root/hidden/cursor" , "1");
-
- datagrid2.rowStyle(1, "data", "background-color") = "#FFFFFF";
-
- //model.setvalue("/root/hidden/refparam/testgrupseqno", model.getvalue("/root/init/LB0103/cd"));
-
- datagrid2.disabled = true;
- grd_testlist.fixedcellcheckbox(0, 1) = true;
- grd_testlist.fixedcellischeck(0, 1) = false;
- grd_testlist.removeRow();
- for(i=grd_testlist.cols ; i >= gStartCol ; i--)
- grd_testlist.colHidden(i) = true;
-
- if(ref != 1) {
- model.setvalue("/root/hidden/refparam/userid" , "");
- model.setvalue("/root/main/getUsernm/usernm" , "");
- }
- }
-
- fBaseInfoRef("0106|0103|0109|0000|0210|0105|1005|");
-
- fCMTPCD_ChangeNodeset();
-
- model.refresh();
- }
-
- function fSetClear2(){
- model.removeNodeset("/root/main/testinfo/patlist");
-
- model.resetInstanceNode("/root/main/testinfo/spcinfo");
- model.removeNodeset("/root/main/testinfo/testlist");
- datagrid2.rowStyle(1, "data", "background-color") = "#FFFFFF";
- //model.setvalue("/root/hidden/refparam/userid" , "");
- //model.setvalue("/root/main/getUsernm/usernm" , "");
-
- model.refresh();
- }
-
- function fRsltCDEnterKey(vInptRslt){
-
- //var vInptRslt = cmb_rslt.label.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 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 curCol = cell.col;
- var refRow = fGetRow(curRow, curCol);
-
- var vOrgrstseq = "inptrslt" + eval((curCol - gStartCol) + 1).toString();
-
- if (refRow > 0) {
- model.setValue("/root/main/testinfo/patlist[" + curRow + "]/" + vOrgrstseq, vInptRslt);
-
- fCvtViewResult(vInptRslt, refRow);
-
- if(vInptRslt == ""){
- if(model.getValue("/root/main/testinfo/testlist["+ refRow +"]/iud") != "") {
- model.setValue("/root/main/testinfo/testlist["+ refRow +"]/iud", "");
- datagrid1.rebuild();
- }
-
- model.setValue("/root/main/testinfo/patlist["+ curRow +"]/chk", "false");
- //return;
- } else {
- model.setValue("/root/main/testinfo/patlist["+ curRow +"]/chk", "true");
- }
- // 수정항목 색변경
- //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 fGetMouseDown(){
- model.removeNodeset("/root/hidden/popupmenu");
- if(event.button == 3){ // 라이트클릭 메뉴만들기...
- model.makeNode("/root/hidden/popupmenu/grid");
- model.makeNode("/root/hidden/popupmenu/grid/item");
-
- var curRow = grd_testlist.mouseRow;
- var curCol = grd_testlist.mouseCol;
- var refRow = fGetRow(curRow, curCol);
-
- if(curCol >= gStartCol && refRow >0){
- var testcd = model.getvalue("/root/main/testinfo/testlist["+ refRow +"]/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"){
- //var cd = model.getvalue("/root/init/LB0109[etc01='" + testcd + "']["+ i +"]/cd");
- //var nm = model.getvalue("/root/init/LB0109[etc01='" + testcd + "']["+ i +"]/nm");
-
- model.makeValue("/root/hidden/popupmenu/grid/item["+ i +"]/name" , "["+cd+"] "+ nm);
- model.makeValue("/root/hidden/popupmenu/grid/item["+ i +"]/func" , nm + "▦" + refRow);
- //model.makeValue("/root/hidden/popupmenu/grid/item["+i+"]/value" , cd);
- }
-
- }
- }
-
- n = parseInt(getNodesetCount("/root/hidden/popupmenu/grid/item")) + 1;
-
- if(n>1){
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/name" , "-");
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/func" , "");
- n++
- }
-
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/name" , "▶ 누적결과조회");
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/func" , "fAcmlRsltRef▦" + refRow);
- }
- }
-
- if((grd_testlist.isCell(event.target) && grd_testlist.row >= grd_testlist.fixedRows) && grd_testlist.col >= gStartCol ){
- 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 fAcmlRsltRef(row){
- model.makeValue("/root/hidden/AcmlRsltRef/pid", model.getValue("/root/main/testinfo/testlist["+ row +"]/pid"));
- model.makeValue("/root/hidden/AcmlRsltRef/testcd", model.getValue("/root/main/testinfo/testlist["+ row +"]/testcd"));
- model.makeValue("/root/hidden/AcmlRsltRef/hngnm", model.getValue("/root/main/testinfo/testlist["+ row +"]/patnm"));
- model.makeValue("/root/hidden/AcmlRsltRef/sex", model.getValue("/root/main/testinfo/testlist["+ row +"]/patsex"));
- model.makeValue("/root/hidden/AcmlRsltRef/age", model.getValue("/root/main/testinfo/testlist["+ row +"]/patage"));
-
- modal("SPLLP90100 ","","","","","/root/hidden/AcmlRsltRef","/root/init/baseinfo");
- }
-
- //팝업메뉴
- function fOnmenu(popupParam){
- if(popupParam.substring(0,12) == "fAcmlRsltRef") { //누적결과조회
- var aL = popupParam.split("▦");
- fAcmlRsltRef(aL[1]);
- }else{
- if(popupParam != ""){
- var aL = popupParam.split("▦");
- fRsltCDEnterKey(aL[0]);
- }
- }
- }
-
- ]]>
- </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:40; width:1195px; height:744px; ">
- <group id="group4" style="left:0px; top:10px; width:1195px; height:60px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:60px; "/>
- <button id="button3" class="btn1_letter2" style="left:1123px; top:31px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOnclick_btnRef();
- ]]>
- </script>
- </button>
- <line id="line9" class="line_4" style="x1:1108px; y1:31px; x2:1108px; y2:53px; "/>
- <select id="checkbox4" ref="/root/hidden/refparam/rsltstat0" class="checkbox_search" overflow="visible" appearance="full" cols="3" style="left:607px; 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="caption23" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">작업일자 :</caption>
- <select1 id="combo3" ref="/root/hidden/refparam/tsectcd" class="combo_search" appearance="minimal" style="left:105px; top:35px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0106">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption24" class="search_no_b" style="left:193px; top:10px; width:12px; height:17px; ">~</caption>
- <caption id="caption25" class="search_name" style="left:15px; top:36px; width:90px; height:17px; ">작업그룹 :</caption>
- <caption id="caption26" class="search_name" style="left:304px; top:9px; width:90px; height:17px; ">작업번호 :</caption>
- <input id="input5" ref="/root/hidden/refparam/startdd" class="input_search" inputtype="date" style="left:105px; top:8px; width:85px; height:19px; "/>
- <caption id="caption27" class="search_no_b" style="left:440px; top:10px; width:12px; height:17px; ">~</caption>
- <input id="input6" ref="/root/hidden/refparam/enddd" class="input_search" inputtype="date" style="left:209px; top:8px; width:85px; height:19px; "/>
- <caption id="caption28" class="search_name" style="left:514px; top:9px; width:90px; height:17px; ">결과구분 :</caption>
- <input id="input7" ref="/root/hidden/refparam/sworkseq" class="input_search" style="left:392px; top:8px; width:45px; height:19px; "/>
- <input id="input8" ref="/root/hidden/refparam/eworkseq" class="input_search" style="left:457px; top:8px; width:45px; height:19px; "/>
- <caption id="caption29" class="search_name" style="left:414px; top:34px; width:90px; height:17px; ">검사항목 :</caption>
- <button id="button4" class="icon_search" style="left:1071px; top:32px; width:16px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMLLF90400", "", "", "", "", "/root/hidden/ref/tclscdlist/testgrup", "/root/hidden/tclscdlist/testgrup");
- fGrdReMake();
- ]]>
- </script>
- </button>
- <input id="input9" ref="/root/hidden/ref/tclscdlist/tclsnmlist" class="input_search" style="left:625px; top:33px; width:434px; height:19px; "/>
- <select id="checkbox5" ref="/root/hidden/refparam/rsltstat1" class="checkbox_search" overflow="visible" appearance="full" cols="3" style="left:689px; 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="checkbox6" ref="/root/hidden/refparam/rsltstat2" class="checkbox_search" overflow="visible" appearance="full" cols="3" style="left:758px; top:11px; width:72px; 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>
- <select1 id="combo4" ref="/root/hidden/ref/tclscdlist/testgrup" class="combo_search" appearance="minimal" style="left:506px; top:33px; width:118px; 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[
- fSelectTestGrup();
- ]]>
- </script>
- </select1>
- <caption id="caption30" class="search_name" style="left:225px; top:35px; width:95px; height:17px; ">결과코드 :</caption>
- <input id="input10" ref="/root/hidden/refparam/userid" class="input_essential" 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="output11" ref="/root/main/getUsernm/usernm" class="output_fix" style="left:1096px; top:7px; width:82px; height:19px; "/>
- <caption id="caption31" class="tit_2" style="left:948px; top:10px; width:66px; height:13px; ">검사자 :</caption>
- <select1 id="combo5" ref="/root/hidden/rsltcont" class="combo_search" appearance="minimal" editmode="input" style="left:315px; top:34px; width:85px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0109[etc01='']">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fRsltCDEnterKey(cmb_rslt.label.getTrim());
- ]]>
- </script>
- </select1>
- <caption id="caption32" class="tit_2" style="left:948px; top:10px; width:66px; height:13px; ">검사자 :</caption>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1194px; y2:95px; "/>
- <caption id="caption2" class="tit_2" style="left:5px; top:80px; width:134px; height:14px; ">검사항목내역</caption>
- <button id="button2" class="btn2_letter2" style="left:1152px; top:74px; 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 != "")
- {
- grd_testlist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:60px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:60px; "/>
- <button id="button1" class="btn1_letter2" style="left:1123px; top:21px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOnclick_btnRef();
- ]]>
- </script>
- </button>
- <line id="line11" class="line_4" style="x1:1105px; y1:10px; x2:1105px; y2:58px; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">접수일자 :</caption>
- <select1 id="combo1" ref="/root/hidden/refparam/tsectcd" class="combo_search" appearance="minimal" style="left:500px; top:10px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0106">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_no_b" style="left:238px; top:10px; width:12px; height:17px; ">~</caption>
- <caption id="caption4" class="search_name" style="left:410px; top:10px; width:90px; 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; "/>
- <input id="input_starttm" ref="/root/hidden/refparam/starttm" class="input_search" maxlength="4" format="99:99" style="left:190px; top:8px; width:45px; height:19px; "/>
- <input id="input2" ref="/root/hidden/refparam/enddd" class="input_search" inputtype="date" style="left:254px; top:8px; width:85px; height:19px; "/>
- <input id="input_endtm" ref="/root/hidden/refparam/endtm" class="input_search" maxlength="4" format="99:99" style="left:340px; top:8px; width:45px; height:19px; "/>
- <input id="input3" ref="/root/hidden/refparam/sworkseq" class="input_search" visibility="visible" style="left:710px; top:26px; width:45px; height:19px; "/>
- <input id="input4" ref="/root/hidden/refparam/eworkseq" class="input_search" visibility="hidden" style="left:905px; top:30px; width:35px; height:19px; "/>
- <caption id="caption9" class="search_name" style="left:15px; top:35px; width:90px; height:17px; ">검사항목 :</caption>
- <button id="button61" class="icon_search" style="left:610px; top:35px; width:16px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMLLF90400", "", "", "", "", "/root/hidden/ref/tclscdlist/testgrup", "/root/hidden/tclscdlist/testgrup");
- fGrdReMake();
- ]]>
- </script>
- </button>
- <input id="ipt_tclscdlist" ref="/root/hidden/ref/tclscdlist/tclsnmlist" class="input_search" style="left:230px; top:35px; width:375px; height:19px; "/>
- <select1 id="combo2" ref="/root/hidden/ref/tclscdlist/testgrup" class="combo_search" appearance="minimal" style="left:105px; top:35px; width:118px; 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[
- fSelectTestGrup();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_rslt" ref="/root/hidden/rsltcont" class="combo_search" visibility="hidden" appearance="minimal" editmode="input" style="left:760px; top:5px; width:35px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0109[etc01='']">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fRsltCDEnterKey(cmb_rslt.label.getTrim());
- ]]>
- </script>
- </select1>
- <caption id="caption5" class="search_name" visibility="visible" style="left:640px; top:25px; width:90px; height:17px; ">기준값:</caption>
- </group>
- <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" rowheader="update" rowsep="|" style="left:135px; top:305px; width:300px; 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>
- <line id="line8" class="line_2" style="x1:267px; y1:687px; x2:522px; y2:687px; "/>
- <input id="ipt_bf" ref="/root/main/testinfo/spcinfo/bfreptrslt" class="input_fix" style="left:343px; top:642px; 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:83px; top:664px; 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>
- <select1 id="cmb_cmt" ref="/root/hidden/testcont/testcontcd" class="combo_default" appearance="minimal" style="left:923px; top:617px; width:250px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0210">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSetCmt(grd_testlist.row,grd_testlist.col);
- ]]>
- </script>
- </select1>
- <input id="ipt_bfdt" ref="/root/main/testinfo/spcinfo/bflastreptdt" class="input_fix" format="yyyy-mm-dd hh:nn:ss" style="left:343px; top:666px; width:179px; height:19px; "/>
- <output id="output10" ref="/root/main/testinfo/spcinfo/lastreptnm" class="output_fix" style="left:436px; top:720px; width:85px; height:19px; "/>
- <output id="output6" ref="/root/main/testinfo/spcinfo/testeqmtcd" class="output_fix" style="left:343px; top:690px; width:179px; height:19px; "/>
- <output id="output7" ref="/root/hidden/currenRow" visibility="hidden" style="left:680px; top:591px; width:100px; height:19px; "/>
- <line id="line10" class="line_1" style="x1:785px; y1:610px; x2:1194px; y2:610px; "/>
- <output id="output8" ref="/root/main/testinfo/spcinfo/rsltrgsgnm" class="output_fix" style="left:83px; top:720px; width:85px; height:19px; "/>
- <caption id="caption20" class="cell_1" style="left:0px; top:719px; width:80px; height:23px; ">결과입력자</caption>
- <button id="button5" class="icon_search" style="left:1178px; top:617px; width:16px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMLLF00800");
- model.removeNodeset("/root/init/LB0210");
- fBaseInfoRef2("0210|");
- var vSectcd = model.getValue("/root/main/TestInfo/getSpcInfo/sectcd");
- var vTsectcd = model.getValue("/root/main/TestInfo/getSpcInfo/tsectcd");
- //alert(model.getValue("/root/main/TestInfo/getSpcInfo/sectcd"));
- //alert(model.getValue("/root/main/TestInfo/getSpcInfo/tsectcd"));
- fCMTPCD_ChangeNodeset(vSectcd, vTsectcd);
- //fGrdReMake();
- ]]>
- </script>
- </button>
- <output id="output9" ref="/root/main/testinfo/spcinfo/mdlreptnm" class="output_fix" style="left:274px; top:720px; width:85px; height:19px; "/>
- <line id="line12" class="line_1" style="x1:527px; y1:610px; x2:780px; y2:610px; "/>
- <button id="button6" class="btn2_letter4" style="left:1130px; top:591px; width:64px; height:19px; ">
- <caption>소견저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetContCmt(grd_testlist.row,grd_testlist.col);
- ]]>
- </script>
- </button>
- <caption id="caption21" class="cell_1" style="left:171px; top:719px; width:100px; height:23px; ">중간보고자</caption>
- <line id="line13" class="line_2" style="x1:267px; y1:711px; x2:522px; y2:711px; "/>
- <caption id="caption10" class="tit_2" style="left:5px; top:595px; width:74px; height:13px; ">검체정보</caption>
- <caption id="caption11" class="cell_1" style="left:0px; top:615px; width:80px; height:23px; ">검체명</caption>
- <caption id="caption22" class="cell_1" style="left:363px; top:719px; width:70px; height:23px; ">최종보고자</caption>
- <caption id="caption12" class="cell_1" style="left:0px; top:639px; width:80px; height:78px; ">
- <![CDATA[참고치&판정]]>
- </caption>
- <caption id="caption35" class="tit_2" style="left:790px; top:595px; width:84px; height:14px; ">소견</caption>
- <caption id="caption13" class="cell_1" style="left:267px; top:617px; width:73px; height:23px; ">보이는결과</caption>
- <caption id="caption14" class="cell_1" style="left:267px; top:641px; width:73px; height:23px; ">이전결과</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:610px; x2:522px; y2:610px; "/>
- <caption id="caption15" class="cell_1" style="left:267px; top:665px; width:73px; height:23px; ">이전결과일</caption>
- <line id="line3" class="line_2" style="x1:0px; y1:717px; x2:262px; y2:717px; "/>
- <caption id="caption16" class="cell_1" style="left:267px; top:689px; width:73px; height:23px; ">검사장비</caption>
- <textarea id="textarea1" ref="/root/main/testinfo/spcinfo/testcmt" style="left:527px; top:617px; width:253px; height:125px; ">
- <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>
- <line id="line4" class="line_2" style="x1:0px; y1:637px; x2:262px; y2:637px; "/>
- <textarea id="textarea3" ref="/root/main/testinfo/spcinfo/testcont" style="left:825px; top:639px; width:369px; height:50px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSoGyeonJeoJang(1);
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- textarea3.selBegin = (textarea3.value).length;
- ]]>
- </script>
- </textarea>
- <textarea id="text_testcmts" ref="/root/main/testinfo/spcinfo/testcmts" style="left:825px; top:690px; width:369px; height:52px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSoGyeonJeoJang(2);
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- text_testcmts.selBegin = (text_testcmts.value).length;
- ]]>
- </script>
- </textarea>
- <caption id="cap_1818" class="cell_1" style="left:785px; top:638px; width:38px; height:103px; ">
- <![CDATA[시행
- 부서
- 검사
- 항목]]>
- </caption>
- <select1 id="cmb_sect" ref="/root/hidden/testcont/tsectcd" class="combo_default" appearance="minimal" style="left:785px; top:617px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/testconttsectcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSelectTestContTsect("return");
- fCMTPCD_ChangeNodeset2();
- ]]>
- </script>
- </select1>
- <caption id="caption18" class="tit_2" style="left:532px; top:595px; width:84px; height:13px; ">comment</caption>
- <line id="line5" class="line_2" style="x1:83px; y1:661px; x2:262px; y2:661px; "/>
- <output id="output1" ref="/root/main/testinfo/spcinfo/spcscrnnm" class="output_fix" style="left:83px; top:616px; width:179px; height:19px; "/>
- <line id="line6" class="line_2" style="x1:267px; y1:639px; x2:522px; y2:639px; "/>
- <output id="output2" ref="/root/main/testinfo/spcinfo/refval" class="output_fix" style="left:83px; top:640px; width:179px; height:19px; "/>
- <line id="line7" class="line_2" style="x1:267px; y1:663px; x2:522px; y2:663px; "/>
- <output id="output3" ref="/root/main/testinfo/spcinfo/reptrslt" class="output_fix" style="left:343px; top:618px; width:179px; height:19px; "/>
- <select1 id="radio2" ref="/root/hidden/cmtflag" appearance="full" vcellspacing="28" overflow="visible" style="left:795px; top:623px; width:15px; height:85px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>1</value>
- </item>
- <item>
- <label/>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <button id="button7" class="btn3_letter6" visibility="hidden" style="left:815px; top:15px; width:104px; height:22px; ">
- <caption>바코드재출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- openInternal("modeless", "SMLLJ00400", "scn", "", "", "", "", "", "", "", "");
- ]]>
- </script>
- </button>
- <button id="btn_cle" class="btn4_letter3" style="left:1025px; top:30px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetInit(1);
- ]]>
- </script>
- </button>
- <datagrid id="grd_testlist" nodeset="/root/main/testinfo/patlist" class="datagrid2" autoresize="true" backcoloralternate="transparent" caption="^접수일시^바코드번호^등록번호^성명^성별^나이^진료과^병동/병실^의뢰의사^검체명^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="20, 114, 98, 80, 70, 30, 30, 70, 60, 70, 100, 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:100px; width:1194px; height:640px; ">
- <col checkvalue="true,false" ref="chk" type="checkbox"/>
- <col ref="spcacptdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="bcno" type="input"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="sex"/>
- <col ref="age"/>
- <col ref="orddeptnm"/>
- <col ref="wardroom"/>
- <col ref="orddrnm"/>
- <col disabled="true" ref="spccd" type="combo">
- <choices>
- <itemset nodeset="/root/init/LB0105">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <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="onmousemove">
- <![CDATA[
- if((grd_testlist.isCell(event.target) && grd_testlist.row >= grd_testlist.fixedRows) && grd_testlist.col >= 10 ){
- alert(1);
- fPatGridClick(grd_testlist.row,grd_testlist.col, "M");
- }
- ]]>
- </script> -->
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fGridKeyEvent();
- ]]>
- </script>
- <!-- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if((grd_testlist.isCell(event.target) && grd_testlist.row >= grd_testlist.fixedRows) && grd_testlist.col == 3 ){ //바코드
- var strBcno = model.getValue("/root/main/testinfo/patlist[" + grd_testlist.row + "]/bcno");
- window.clipBoardData = strBcno;
- }
- ]]>
- </script> -->
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fGetMouseDown();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_testlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="oncopy">
- <![CDATA[
- //grid_oncopy();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- fGridKeyDown();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if((grd_testlist.isCell(event.target) && grd_testlist.row >= grd_testlist.fixedRows) && grd_testlist.col >= 2 ){ //검사항목
- fPatGridClick(grd_testlist.row,grd_testlist.col);
-
- if(grd_testlist.col == 3){
- var strBcno = model.getValue("/root/main/testinfo/patlist[" + grd_testlist.row + "]/bcno");
- window.clipBoardData = strBcno;
- }
-
- } else if(grd_testlist.col == 1) { //체크박스
- fSelectCancle();
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group2" style="left:0px; top:15px; width:1195px; height:13px; ">
- <caption id="caption17" class="tit_1" style="left:0px; top:0px; width:800px; height:15px; ">
- <![CDATA[ 두검사결과 비교조회]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(datagrid1.visible == true){
- datagrid1.visible = false;
- }else{
- datagrid1.visible = true;
- }
- ]]>
- </script>
- </caption>
- </group>
- <script type="javascript" ev:event="onmenu">
- <![CDATA[
-
- var popupParam = event.description;
- fOnmenu(popupParam);
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|