123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLJ00100_검체접수관리.xrw
- * 설 명 : 검체접수 및 검체조회
- * 설 계 자 : (주)에이씨케이 - 박정은
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2006.11.11
- * 수정이력 : 2007-08-02 박정은 코드인스펙션
- * 기 타 :
- -->
- <?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>검체접수관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <detllistref>
- <tclscd/>
- <tclsscrnnm/>
- <erprcpflag/>
- <spcltestseq/>
- <workno/>
- <phone/>
- </detllistref>
- <spclist>
- <chk/>
- <execdept/>
- <acptno/>
- <bcno/>
- <orddeptcd/>
- <patnm/>
- <spccd/>
- <spcarvdt/>
- <spcacptdt/>
- <spcfrem/>
- <Msg/>
- <urineyn/>
- <prcpremfact/>
- <spcstat/>
- </spclist>
- <reqdrremark>오른쪽 혈관이 잘 보이지 않습니다.</reqdrremark>
- <spclistref>
- <chk/>
- <pid/>
- <patnm/>
- <orddeptnm/>
- <wardroom/>
- <tsectcd/>
- <workno/>
- <bcno/>
- <spcnm/>
- <spcltestseq/>
- <prcpdd/>
- <barcdprntdt/>
- <bcolldt/>
- <spcarvdt/>
- <spcacptdt/>
- <spcstat/>
- <cnclcnts/>
- <testcd/>
- <tclsnm/>
- <reptrslt/>
- </spclistref>
- <sectlist>
- <sectusdd/>
- <sectuedd/>
- <sectcd/>
- <sectnm/>
- <sectscrnnm/>
- <sectabbrnm/>
- <sectprntnm/>
- <sectlblnm/>
- </sectlist>
- <barcdprntsetup>
- </barcdprntsetup>
- <!--<page>
- <lastpage/>
- <total/>
- <now/>
- </page>-->
- </main>
- <send>
- <Data1/>
- <Data2/>
- <Data3/>
- <Data4/>
- <Data5/>
- <refflag/>
- <bcnolist/>
- <spcchoiyn/>
- <execdept/>
- <codeflag/>
- <bcno/>
- <batacptgrd/>
- <refbase/>
- <reffromdd/>
- <reftodd/>
- <refgbn/>
- <reftext/>
- <scrnid/>
- <sectcd/>
- <NL/>
- <menuparam/>
- <undoacpt/>
- <genrflag/>
- <spcstat/>
- <page>1</page>
- <detlspcinfoyn/>
- <pidfromdd/>
- <pidtodd/>
- <piddd/>
- </send>
- <init>
- <title>접수취소등록</title>
- <execdept>
- <testmdlcd/>
- <testmdlnm/>
- </execdept>
- </init>
- <hidden>
- <spcref>
- <refbase>1</refbase>
- <reffromdd/>
- <reftodd/>
- <refflag>2</refflag>
- <refcnts/>
- <lrgexecdept>00</lrgexecdept>
- <execdept>00</execdept>
- <undoacpt/>
- <genrflag>00</genrflag>
- <detlspcinfoyn/>
- <pidfromdd/>
- <pidtodd/>
- <piddd>1</piddd>
- </spcref>
- <spcacpt>
- <!--
- <testmdlcd>
- <cd>00</cd>
- </testmdlcd>
- -->
- <testmdlcd>00</testmdlcd>
- <testlrgcd>00</testlrgcd>
- <refflag>2</refflag>
- <spcchoiyn/>
- <bcno/>
- <resetyn/>
- <bt/>
- </spcacpt>
- <bcno/>
- <labelyn>Y</labelyn>
- <acptbcdyn>Y</acptbcdyn>
- <cancel>
- <bcno/>
- <title/>
- </cancel>
- <canceldata>
- <data1/>
- <data2/>
- </canceldata>
- <acptcnt/>
- <barcdcheck/>
- <test>
- <startdt/>
- <enddt/>
- </test>
- <toppatinfo/>
- <refprnt/>
- <microorder/>
- <remicroorder/>
- </hidden>
- <temp>
- <mreport/>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/HanFont24.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 핵의학 메뉴 (테스트용)
- //model.setValue("/root/properties/menu/menuparam", "N");
- //model.setValue("/root/hidden/spcacpt/testmdlcd", "NR");
-
- // 그리드 전체 선택 기능
- grd_spclist.fixedcellcheckbox(0,1)=true;
-
- // 검체접수 tab 선택
- model.toggle("case1");
-
- // 스위치에 따라 버튼 보이기
- fbuttonvisible("A");
-
- // 초기정보 조회
- model.setValue("/root/send/codeflag", "0102|0106|0104|0111|0000|"); // 0102= 중분류 // 0106=시행부서(검사계) // 0104 대분류 // 0111 계(시행) // 0000 userdeptflag
- submit("TRLZZ00101");
-
- // 노드 초기화
- model.removeNodeset("/root/main/spclist");
- model.removeNodeset("/root/main/detllistref");
- model.removeNodeset("/root/main/spclistref");
-
- fSetNCnt(); // 핵의학 화면 접수검체갯수 보이기
-
- // 핵의학
- if( (model.getValue("root/properties/menu/menuparam")=="N") || (model.getValue("/root/init/LB0000/nm")=="N") ){
-
- model.setValue("/root/hidden/spcacpt/testmdlcd", "NR");
- model.setValue("/root/hidden/spcref/execdept", "NR");
-
- model.removenode("/root/init/LB0106[1]"); // 핵의학 -전체- 노드삭제
-
- }
-
-
- // 핵의학 일때 바코드 설정
- /* if (model.getValue("/root/init/execdept/testmdlcd") == "핵의학코드"){
- chk_label.visible = true;
- chk_acptbcd.visible = false; // 접수 바코드시 발행여부
- model.setValue("/root/hidden/labelyn", "Y");
- model.setValue("/root/hidden/acptbcdyn", "N");
-
- }
- else{
- chk_label.visible = false;
- chk_acptbcd.visible = true; // 접수 바코드시 발행여부
- model.setValue("/root/hidden/labelyn", "N");
- model.setValue("/root/hidden/acptbcdyn", "Y");
- }
- */
- var today = getCurrentDate();
- //var mDate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-3);
- //model.setValue("/root/hidden/spcref/reffromdd", today-2);
-
- //model.setValue("/root/hidden/spcref/reffromdd", mDate.getDateFormat("YYYYMMDD"));
- model.setValue("/root/hidden/spcref/reffromdd", today);
- model.setValue("/root/hidden/spcref/reftodd", today);
- model.setValue("/root/hidden/spcref/pidfromdd", today);
- model.setValue("/root/hidden/spcref/pidtodd", today);
- model.refresh();
- model.setFocus("ipt_bcno");
- //lzzfMakeBrcdPrntObj("CommAX"); //이전 OCX
-
- model.setValue("/root/send/scrnid", getScreenID());
- submit("TRLLC90101");
- lzzfMakeBrcdPrntObjHanDo("CommAX");
-
- delPatientInfos(); //환자정보 전체 삭제
- ]]>
- </script>
- <!-- *사용* 시행부서 조회 -->
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0102"/>
- <!-- *미사용* 검체접수 -->
- <!--<submission id="TXLLJ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/spclist"/>-->
- <!-- *사용* 검체상세목록 조회-->
- <submission id="TRLLJ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/detllistref"/>
- <!-- *미사용* 검체선택여부 선택 검체정보조회-->
- <!--<submission id="TRLLJ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/spclist"/>-->
- <!-- *미사용* 부적합검체등록 -->
- <submission id="TXLLJ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spclist"/>
- <!-- *미사용* 특이사항 저장 -->
- <!--<submission id="TXLLJ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spclist"/>-->
- <!-- *사용* 검체조회탭 조회-->
- <submission id="TRLLJ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spclistref"/>
- <!-- *사용* 일괄접수-->
- <submission id="TXLLJ00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spclist"/>
- <!-- *사용* 검체 접수-->
- <submission id="TXLLJ00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" add="bottom" resultref="/root/main/spclist"/>
- <!-- *사용* 바코드 출력-->
- <submission id="TRLZZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/barcd"/>
- <submission id="TRLZZ00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/barcd"/>
- <!-- 프린터 설정-->
- <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
- <!-- 특수검사 의뢰서 조회-->
- <submission id="TRLRP00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spcltestlist"/>
- <submission id="TRLRP00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/detltestlist"/>
- <submission id="TRLRP00703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsltlist"/>
- <!-- 상단정보 조회-->
- <submission id="TRLZZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/prcpinfo"/>
- <!--감염정보조회-->
- <submission id="TRLLC90801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/infdisinfolist"/>
- <!--성모병원바코드조회-->
- <submission id="TRLMP00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcd"/>
- <!--미생물처방전-->
- <submission id="TRLLJ00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/mreport"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
-
-
- // *사용* 키이벤트 엔터키 입력시 접수flow
- function fKeyEvent(){
-
- if(event.keyCode == "13"){
- if(event.target == "ipt_bcno"){
- model.setvalue("/root/hidden/spcacpt/bcno", (ipt_bcno.currentText).toUpperCase());
- //fSetSpcAcpt();
- fsetBCNOEnter();
- if(model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/Msg") == "" ){
- fGetSpclTestList();
-
- var count = getNodesetCount("/root/main/getspcltestlist") ;
- var spc = getNodesetCount("/root/main/spclist");
-
- if(count > 0 ) {
- for(var jki = 1; jki <= count; jki++) {
-
- if(model.getValue("/root/main/spclist["+ spc +"]/bcno") == model.getValue("/root/main/getspcltestlist["+ jki +"]/bcno")) {
- //alert(getUserInfo("dutplceinstcd"));
- var i = "";
- var row = grd_detllist.rows;
- if(getUserInfo("dutplceinstcd") != "011") {
- fPrint(jki);
- }else if(getUserInfo("dutplceinstcd") == "011"){
- for (i = 1; i <= row-1; i++){
- if(model.getValue("/root/main/detllistref[" + i + "]/tclscd") == "LHR114"){
- var bbb = "1";
- break;
- }
- }
- if(bbb != "1") {
- fPrint(jki);
- }
- }
- }
- }
- }
- }
-
- model.setFocus("ipt_bcno"); //20090422 김성희 추가 : 세포유전 출력물 출력후 포커스 아웃 현상 발생하여 수정
- ipt_bcno.selBegin = 0;
- ipt_bcno.selEnd = ipt_bcno.currentText.length;
- }
- if(event.target=="ipt_text"){
- if ( ipt_text.currentText .length > 11 ){
- var a1 = (ipt_text.currentText).toUpperCase();
- var a2 = "20" + a1.substr(0,8) + "0" + a1.substr(8,4);
- // alert(a1);
- // alert(a1.substr(0,8));
- // alert(a1.substr(8,4));
- // alert(a2);
- ipt_text.currentText = a2 ;
- }
-
- if(ipt_text.currentText != "") {
- model.setValue("/root/hidden/spcref/refcnts", (ipt_text.currentText).toUpperCase());
- fGetSpcListref("K");
- } else {
- messageBox("검색어를", "C001");
- }
-
- ipt_text.selBegin = 0;
- ipt_text.selEnd = ipt_text.currentText.length;
- }
-
- }
-
- }
-
- // 검체조회 검색내용
- function fKeyEventref(){
- inputEnterKey("ipt_text", "DOMActivate");
- model.setvalue("/root/hidden/spcref/refcnts",ipt_text.currentText);
- fGetSpcListref("K");
-
- ipt_text.selBegin = 0;
- ipt_text.selEnd = ipt_text.currentText.length;
-
- }
-
- // 전체선택 버튼
- function fInsAllChoi(pGridId){
- pGridId.fixedcellischeck(0,1)=true;
- }
-
- // 전체취소 버튼
- function fInsAllCncl(pGridId) {
- pGridId.fixedcellischeck(0,1)=false;
- }
-
- function fSetBCNO(){
- if (model.getvalue("/root/hidden/spcacpt/bcno") != ""){
-
- fsetBCNOEnter();
-
- model.setValue("/root/hidden/spcacpt/bcno", "");
-
- // 영어로 입력받을 수 있게
- ipt_bcno.attribute("imemode") = "alpha" ;
- model.refresh();
-
- model.setFocus("ipt_bcno");
-
- }
- }
-
- // *** 접수 *** 바코드번호 등록후 엔터 쳤을때
- function fsetBCNOEnter(){
- var bfnodecount = getNodesetCount("/root/main/spclist");
- var btdt = getCurrentDateTime().toDate("YYYYMMDD hhmmss").getAddDate(-10, "m").getDateFormat("YYYYMMDDhhmmss");
- // 유효성 체크
- if ( fexeBCNOtrue() == false ){
- //return;
- }else{
- // 화면초기화여부 선택되면
- if(model.getValue("/root/hidden/spcacpt/resetyn")=="1"){
- model.removeNodeset("/root/main/spclist");
- model.refresh();
- }
-
- var bcno = model.getValue("/root/hidden/spcacpt/bcno").toUpperCase();
- var acptcnt = 0;
-
- if(model.getValue("/root/hidden/spcacpt/spcchoiyn") == "1") {
- var find = grd_spclist.findRow(bcno, 1, 4, true, true);
-
- if(find > 0) {
- messageBox("이미 선택된 검체", "E008");
- model.setValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/Msg", "error");
- return;
- }
- }
- model.setValue("/root/send/bcno", bcno);
- model.setValue("/root/send/refflag", model.getValue("/root/hidden/spcacpt/refflag"));
- model.setValue("/root/send/spcchoiyn", model.getValue("/root/hidden/spcacpt/spcchoiyn"));
- model.makeValue("/root/send/btyn", model.getValue("/root/hidden/spcacpt/bt"));
- model.makeValue("/root/send/btdt", btdt);
- model.setValue("/root/send/execdept", model.getValue("/root/hidden/spcacpt/testmdlcd"));
- model.setValue("/root/send/sectcd", model.getValue("/root/hidden/spcacpt/testlrgcd"));
- model.setValue("/root/send/NL", model.getValue("root/properties/menu/menuparam"));
-
- submit("TXLLJ00105");
-
- var afnodecount = getNodesetCount("/root/main/spclist");
-
- if(model.getValue("/root/hidden/spcacpt/resetyn") != "1") {
- if(bfnodecount == afnodecount) { //조회된 데이터가 없을 경우 메세지 띄움.
- messageBox("바코드 번호를", "I007");
- return;
- }
- }
-
- grd_spclist.row = (grd_spclist.rows-1);
- if(model.getValue("/root/hidden/toppatinfo")=="1"){ // 환자정보띄우기 체크되있을때만
- if(grd_spclist.rows > 1){
- if(getPatientInfo("pid") != model.getValue("/root/main/spclist["+grd_spclist.row+"]/pid")){
- fGetTopInfo();
- }
- }
- }else{
- delPatientInfos(); //환자정보 전체 삭제
- }
-
- var gridRow = grd_spclist.rows;
- grd_spclist.topRow = gridRow;
-
- //색깔 구분 및 체크 아래 메세지 표시 안에 있던거에서 위로 뺌(검체 내 일부 취소건 있을때 두줄 조회되서)
- for(i =1 ; i < grd_spclist.rows ; i ++){
- var msgbcno = model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/bcno");
-
- if(model.getValue("/root/main/spclist["+i+"]/bcno") == msgbcno
- && model.getValue("/root/main/spclist["+i+"]/Msg") != "" ){
- grd_spclist.cellStyle("color", i, 1, i, 9) = "#aaaaaa";
- model.setValue("/root/main/spclist["+i+"]/chk", "false");
- }else if(model.getValue("/root/main/spclist["+i+"]/spcstat") == "0" ){
- grd_spclist.cellStyle("color", i, 1, i, 9) = "#aaaaaa";
- model.setValue("/root/main/spclist["+i+"]/chk", "false");
- }else{
- model.setValue("/root/main/spclist["+i+"]/chk", "true");
- }
- }
- // 메세지 표시
- if(model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/Msg") != ""){
-
- var msg = model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/Msg");
- messageBox(msg , "E008", "");
- //위로 끌어올림
-
- }else{
- if(grd_spclist.rows >1){
- //model.setValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/chk", "true");
-
- if(model.getValue("root/properties/menu/menuparam") != "N"){
- // fExeBarcdPrnt(); //바코드 프린트 연결 안된데서 실행하면 뻗어요 ~~
-
- }
-
- //fExeNBarcdPrnt(); //바코드 프린트 연결 안된데서 실행하면 뻗어요 ~~ // 분주라벨
-
- //감염정보 조회
- //model.makeValue("/root/send/pid", "20493"); //test 용
- model.makeValue("/root/send/pid", model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/pid"));
- model.makeValue("/root/send/bcno", model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/bcno"));
- model.makeValue("/root/send/flag", "");
-
- submit("TRLLC90801");
-
- model.removenode("/root/send/pid"); //인스턴스 삭제
- model.removenode("/root/send/bcno"); //인스턴스 삭제
- model.removenode("/root/send/flag"); //인스턴스 삭제
- model.makeNode("/root/send/bcno"); //인스턴스 생성
-
- if(getNodesetCount("/root/main/infdisinfolist") > 0) { //감염정보가 있다면..
- modal("SPLLC90800", "", "", "", "", "/root/main/infdisinfolist", "/root/main/infdisinfolist"); //감염정보창 띄우기
- }
- }
- }
-
- model.setFocus("ipt_bcno");
- ipt_bcno.selBegin = 0;
- ipt_bcno.selEnd = ipt_bcno.currentText.length;
-
- // 검체 상세목록 보여주기
- var sRow = grd_spclist.rows;
- if(sRow > 1){
- // 검체 상세목록 보여주기
- fGetSpcDetlList(sRow);
- }
-
- var prntYN = "N" // 세포유전 워크리스트 출력여부
- for(i=1; i<grd_detllist.rows; i++){
-
- if("Y" == model.getValue("/root/main/detllistref["+i+"]/refprntyn")){
- prntYN = "Y";
- }
-
- }
- //접수 할 검체이거나, 접수된 검체만 report 출력 20090422 김성희 수정 : 세포유전 요청사항
- if(prntYN == "Y" && model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/spcacptdt") != ""){
-
- model.makeValue("/root/hidden/refprnt/workno", grd_spclist.valueMatrix(sRow-1, 3));
- model.makeValue("/root/hidden/refprnt/workdd", grd_spclist.valueMatrix(sRow-1, 8).substring(0,8));
- model.makeValue("/root/hidden/refprnt/spcnm", grd_spclist.valueMatrix(sRow-1, 10));
- model.makeValue("/root/hidden/refprnt/patnm", grd_spclist.valueMatrix(sRow-1, 6));
- model.makeValue("/root/hidden/refprnt/patage", grd_spclist.valueMatrix(sRow-1, 12));
- model.makeValue("/root/hidden/refprnt/pid", grd_spclist.valueMatrix(sRow-1, 11));
- model.makeValue("/root/hidden/refprnt/orddeptnm", grd_spclist.valueMatrix(sRow-1, 5));
- model.makeValue("/root/hidden/refprnt/haspnm", grd_spclist.valueMatrix(sRow-1, 13));
-
-
- exeReportPreview("RPLLJ00101", "XMLSTR", "", "", "true", "", "", "", "","true");
- }
-
- // 유린검체 정보 등록
- //if(model.getValue("/root/hidden/spcacpt/refflag")=="2"){
- if(model.getValue("/root/main/spclist["+ (sRow-1) +"]/urineyn") == "Y"){
- //if(model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/Msg") == "" ){
- // 유린 팝업 띄우고 등록하기
- fSetUrine(sRow-1);
-
- //}
- }
- //}
-
- }
-
- var remicroorder = "";
-
- // 접수시 spcacptbarcdprntcnt 갯수만큼 바코드 출력
- if(model.getValue("/root/hidden/spcacpt/spcchoiyn") == "1"){
-
- }else{
-
- if(model.getValue("root/properties/menu/menuparam")=="N"){
-
- fExeNBarcdPrnt(); //핵의학 바코드 프린트 연결 안된데서 실행하면 뻗어요 ~~
- fGetNAcptCnt(); //접수된 검체개수 보이게
- }else{
- if(model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/Msg") == "" ){
- fExeBarcdPrnt(); //바코드 프린트 연결 안된데서 실행하면 뻗어요 ~~
-
- if(model.getValue("/root/hidden/microorder") == "1"){
-
- submit("TRLLJ00106");
- exeReportPreview("RPLLJ00102", "XMLSTR", "", "", "true", "", "", "", "","true");
- model.removeNodeset("/root/temp/mreport");
- remicroorder = "1";
-
- }
- }
- }
- }
-
- fExeSlidIss();
- model.removeNodeset("/root/main/barcode"); //// ★★★ 임시로막음
-
-
-
-
- // 접수시 상단정보 올리기
- /*if(grd_spclist.rows > 1){
- if(getPatientInfo("pid") != model.getValue("/root/main/spclist["+grd_spclist.row+"]/pid")){
- fGetTopInfo();
- }
- }
-
-
-
-
- ipt_bcno.selBegin = 0;
- ipt_bcno.selEnd = ipt_bcno.currentText.length;
- */
-
- //미생물처방전 출력
-
-
- if(remicroorder == "" && model.getValue("/root/hidden/remicroorder") == "1"){
-
- submit("TRLLJ00106");
-
- exeReportPreview("RPLLJ00102", "XMLSTR", "", "", "true", "", "", "", "","true");
-
- model.removeNodeset("/root/temp/mreport");
-
- }
-
-
-
- for (i = 1; i<grd_spclist.rows; i++){
- if(model.getValue("/root/main/spclist["+i+"]/patnm").indexOf("★") == "1") {
- for (j = 1; j<grd_spclist.cols; j++){
- grd_spclist.cellStyle("color", i, j, i, j) = "#ff0000";
- }
- }
- }
- }
-
- function fExeSlidIss() {
- //장비IP set
- var slideprnt = getNodesetCount("/root/main/slide/slideprnt");
- var casetprnt = getNodesetCount("/root/main/slide/casetprnt");
-
- if(slideprnt > 0){
- sSlidBcIP = model.getValue("/root/main/slide/slidecaset/slideip");
- sSlidBcPort = model.getValue("/root/main/slide/slidecaset/slideport");
-
- //----------------------------------------
- if (sSlidBcIP == "" || sSlidBcIP == "-") {
- messageBox("슬라이드 라벨지 장비의 IP주소가 없습니다. 병원별 환경설정에서 ", "C001");
- return false;
- }
- //--------------------------------------------
- if (sSlidBcPort == "" || sSlidBcPort == "-"){
- messageBox("슬라이드 라벨지 장비의 Port번호가 없습니다. 병원별 환경설정에서 ", "C001");
- return false;
- }
-
- socket.connect(sSlidBcIP, sSlidBcPort);
- }
-
- if(casetprnt > 0){
-
- sSlidBcIP2 = model.getValue("/root/main/slide/slidecaset/casetip");
- sSlidBcPort2 = model.getValue("/root/main/slide/slidecaset/casetport");
-
- //----------------------------------------
- if (sSlidBcIP2 == "" || sSlidBcIP2 == "-") {
- messageBox("카세트 장비의 IP주소가 없습니다. 병원별 환경설정에서 ", "C001");
- return false;
- }
- //--------------------------------------------
- if (sSlidBcPort2 == "" || sSlidBcPort2 == "-") {
- messageBox("카세트 장비의 Port번호가 없습니다. 병원별 환경설정에서 ", "C001");
- return false;
- }
- //-------------------------------------
-
- socket2.connect(sSlidBcIP2, sSlidBcPort2);
- }
- }
-
- function fExeSlidIssA(){
-
- var iMaxRowCnt = 0;
- var sSlidNode = "/root/main/slide/slideprnt";
- //--------------------------------------
- iMaxRowCnt = getNodesetCount(sSlidNode);
-
- for (var iRowNo=1; iRowNo <= iMaxRowCnt; iRowNo++) {
-
- var prntcnt = model.getValue(sSlidNode+"["+iRowNo+"]/prntcnt");
- for(var slidecnt = 1 ; slidecnt <= prntcnt ; slidecnt++){
-
- var patnm= getNameInitial(model.getValue(sSlidNode+"["+iRowNo+"]/patnm"));
- var etc1 = model.getValue(sSlidNode+"["+iRowNo+"]/etc1");
- if(etc1 == ""){
- etc1 = "-";
- }
- sSendMsg = "S▦"; //슬라이드구분
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/spclno") + "▦"; // 특수검사연번호
- sSendMsg += patnm + "▦"; // 환자명
- sSendMsg += etc1 + "▦";
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/workdd") + "▦"; // 접수일시
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/etc2") + "▦";
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/hospnm") + "▩"; // 병원명
-
- //sSendMsg += "▩";
- socket.sendString(sSendMsg);
- }
-
- }
- socket.close();
- model.removeNodeset("/root/main/slide/slideprnt");
- }
-
-
- function fExeSlidIssB(){
- var iMaxRowCnt2 = 0;
- var sSlidNode2 = "/root/main/slide/casetprnt";
- //--------------------------------------
- iMaxRowCnt2 = getNodesetCount(sSlidNode2);
-
-
- for (var iRowNo2=1; iRowNo2 <= iMaxRowCnt2; iRowNo2++) {
-
- var patnm= getNameInitial(model.getValue(sSlidNode2+"["+iRowNo2+"]/patnm"));
- var etcvalue = model.getValue(sSlidNode2+"["+iRowNo2+"]/etc");
- var etcMark = "";
- if(etcvalue.indexOf("C") == -1){
- etcMark = "1";
- }
- else{
- etcMark = "2";
- }
-
-
- sSendMsg = "C▦"; //카세트구분
- sSendMsg += model.getValue(sSlidNode2+"["+iRowNo2+"]/spclno") + "▦"; // 특수검사연번호
- sSendMsg += etcMark + "▦"; //후퍼
- sSendMsg += model.getValue(sSlidNode2+"["+iRowNo2+"]/etc") + "▦";
- sSendMsg += patnm + "▩"; // 환자명
-
- socket2.sendString(sSendMsg);
- }
-
- socket2.close();
- model.removeNodeset("/root/main/slide/casetprnt");
- }
-
-
-
-
-
- /* @group : 슬라이드일괄출력 화면
- * @ver : 2007.06.26 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 슬라이드 목록을 장비에 출력 처리 함수
- function fExeSlidIss() {
-
- //장비IP set
- var slideprnt = getNodesetCount("/root/main/slide/slideprnt");
- var casetprnt = getNodesetCount("/root/main/slide/casetprnt");
-
- if(slideprnt > 0){
- sSlidBcIP = model.getValue("/root/main/slide/slidecaset/slideip");
- sSlidBcPort = model.getValue("/root/main/slide/slidecaset/slideport");
-
- //----------------------------------------
- if (sSlidBcIP == "" || sSlidBcIP == "-") {
- messageBox("슬라이드 라벨지 장비의 IP주소가 없습니다. 병원별 환경설정에서 ", "C001");
- return false;
- }
- //--------------------------------------------
- if (sSlidBcPort == "" || sSlidBcPort == "-"){
- messageBox("슬라이드 라벨지 장비의 Port번호가 없습니다. 병원별 환경설정에서 ", "C001");
- return false;
- }
-
- socket.connect(sSlidBcIP, sSlidBcPort);
- var iMaxRowCnt = 0;
- var sSlidNode = "/root/main/slide/slideprnt";
- //--------------------------------------
- iMaxRowCnt = getNodesetCount(sSlidNode);
-
- for (var iRowNo=1; iRowNo <= iMaxRowCnt; iRowNo++) {
-
- var prntcnt = model.getValue(sSlidNode+"["+iRowNo+"]/prntcnt");
- for(var slidecnt = 1 ; slidecnt <= prntcnt ; slidecnt++){
-
- var patnm= getNameInitial(model.getValue(sSlidNode+"["+iRowNo+"]/patnm"));
- var etc1 = model.getValue(sSlidNode+"["+iRowNo+"]/etc1");
- if(etc1 == ""){
- etc1 = "-";
- }
- sSendMsg = "S▦"; //슬라이드구분
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/spclno") + "▦"; // 특수검사연번호
- sSendMsg += patnm + "▦"; // 환자명
- sSendMsg += etc1 + "▦";
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/workdd") + "▦"; // 접수일시
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/etc2") + "▦";
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/hospnm") + "▩"; // 병원명
-
- //sSendMsg += "▩";
- socket.sendString(sSendMsg);
- }
-
- }
-
- socket.close();
-
- model.removeNodeset("/root/main/slide/slideprnt");
- }
-
- if(casetprnt > 0){
-
- sSlidBcIP2 = model.getValue("/root/main/slide/slidecaset/casetip");
- sSlidBcPort2 = model.getValue("/root/main/slide/slidecaset/casetport");
-
- //----------------------------------------
- if (sSlidBcIP2 == "" || sSlidBcIP2 == "-") {
- messageBox("카세트 장비의 IP주소가 없습니다. 병원별 환경설정에서 ", "C001");
- return false;
- }
- //--------------------------------------------
- if (sSlidBcPort2 == "" || sSlidBcPort2 == "-") {
- messageBox("카세트 장비의 Port번호가 없습니다. 병원별 환경설정에서 ", "C001");
- return false;
- }
- //-------------------------------------
-
- socket2.connect(sSlidBcIP2, sSlidBcPort2);
-
-
- var iMaxRowCnt2 = 0;
- var sSlidNode2 = "/root/main/slide/casetprnt";
- //--------------------------------------
- iMaxRowCnt2 = getNodesetCount(sSlidNode2);
-
-
- for (var iRowNo2=1; iRowNo2 <= iMaxRowCnt2; iRowNo2++) {
-
- var patnm= getNameInitial(model.getValue(sSlidNode2+"["+iRowNo2+"]/patnm"));
-
- sSendMsg = "C▦"; //카세트구분
- sSendMsg += model.getValue(sSlidNode2+"["+iRowNo2+"]/spclno") + "▦"; // 특수검사연번호
- sSendMsg += model.getValue(sSlidNode2+"["+iRowNo2+"]/etc") + "▦";
- sSendMsg += patnm + "▩"; // 환자명
-
- socket2.sendString(sSendMsg);
- }
-
- socket2.close();
- model.removeNodeset("/root/main/slide/casetprnt");
- }
- }
- */
-
- function getNameInitial(nameStr){
- //받은 이름 문자열을 스페이스바로 분리
- var part = nameStr.split(' ');
-
- var str = "";
- var nameChr = "";
- var chr;
- var cnt = 3;
-
- //영문이름을 위한 대문자 변환
- nameStr = nameStr.toUpperCase();
- //스페이스로 구분되어 있는 이름(영문)의 경우 첫단어와 마지막 단어의 이니셜만 처리
- if(part.length>1){
- if(part[0].length == 0) part[0] = " ";
- if(part[part.length-1].length == 0) part[part.length-1] = " ";
- nameChr = part[0].substr(0,1) + "." + part[part.length-1].substr(0,1);
- }
- else{
- nameChr = part[0];
- }
-
- //변환할 값이 0보다 큰지 확인
- if(nameChr.length < cnt) cnt = nameChr.length;
- if(cnt <= 0) return str;
-
- //영문일 때를 위해 대문자로 변환
- nameChr = nameChr.toUpperCase();
-
- for(var pati=0;pati<cnt;pati++){
- chr = nameChr.substr(pati,1).charCodeAt(0);
- if(chr<128) str = str + nameChr.substr(pati,1);
- else{
- switch(nameChr.substr(pati,1)){
- case "박":
- str = str + "P";
- break;
- case "김":
- str = str + "K";
- break;
- case "이":
- if(pati==0) str = str + "L";
- else str = str + "I";
- break;
- default :
- if(chr>=44032 && chr<45208) str = str + "G";
- else if(chr>=45208 && chr<45796) str = str + "N";
- else if(chr>=45796 && chr<46972) str = str + "D";
- else if(chr>=46972 && chr<47560) str = str + "R";
- else if(chr>=47560 && chr<48148) str = str + "M";
- else if(chr>=48148 && chr<49324) str = str + "B";
- else if(chr>=49324 && chr<50500) str = str + "S";
- else if(chr>=50500 && chr<50556) str = str + "A";
- else if(chr>=50556 && chr<50612) str = str + "Y";
- else if(chr>=50612 && chr<50668) str = str + "E";
- else if(chr>=50668 && chr<50724) str = str + "Y";
- else if(chr>=50724 && chr<50752) str = str + "O";
- else if(chr>=50752 && chr<50808) str = str + "W";
- else if(chr>=50808 && chr<50836) str = str + "O";
- else if(chr>=50836 && chr<50864) str = str + "Y";
- else if(chr>=50864 && chr<50892) str = str + "U";
- else if(chr>=50892 && chr<50976) str = str + "W";
- else if(chr>=50976 && chr<51004) str = str + "Y";
- else if(chr>=51004 && chr<51032) str = str + "E";
- else if(chr>=51032 && chr<51060) str = str + "U";
- else if(chr>=51060 && chr<51088) str = str + "I";
- else if(chr>=51088 && chr<52264) str = str + "J";
- else if(chr>=52264 && chr<52852) str = str + "C";
- else if(chr>=52852 && chr<53440) str = str + "K";
- else if(chr>=53440 && chr<54028) str = str + "T";
- else if(chr>=54028 && chr<54616) str = str + "P";
- else if(chr>=54616 && chr<55203) str = str + "H";
- else str = str + " ";
- break;
- }
- }
- }
-
- return str;
- }
-
- // 탑정보 위한 조회
- function fGetTopInfo(){
-
- model.makeValue("/root/send/pid", model.getValue("/root/main/spclist["+grd_spclist.row+"]/pid"));
- submit("TRLZZ00109");
-
- //fUpPatinfo2();
- if(grd_spclist.rows> 1){
- if(model.getValue("/root/init/prcpinfo/pid")!=""){
- setParameter("errflag", "Y");
-
- var ordtype = "";
- var genrflag = model.getValue("/root/init/prcpinfo/genrflag");
-
- /*if((genrflag == "I") || (genrflag =="E") || (genrflag =="D")){
- ordtype = "I";
- }else if ((genrflag =="O") || (genrflag =="S")){
- ordtype = "O";
- }*/
- //DSC 환자인 경우 genrflag를 I 로 보냄. 오류나서 2008.12.03 김성희 수정
- //SPMMO08900.js 파일(fInitialize_SPMMO08900())에서 genrflag가 "D"인 것을 처리하는 구문이 없음.("I" 로 처리해야함.)
- if(genrflag =="D"){
- genrflag = "I";
- }
-
- //modal("SPMMO08900");
- if((genrflag == "I") || (genrflag =="E")){
- setParameter("condparam", genrflag + "▦" +
- model.getValue("/root/init/prcpinfo/pid") + "▦" +
- model.getValue("/root/init/prcpinfo/orddd") + "▦" +
- model.getValue("/root/init/prcpinfo/cretno") + "▦" +
- model.getValue("/root/init/prcpinfo/acptseqno") + "▦" + // seqno
- model.getValue("/root/init/prcpinfo/todd") + "▦" +
- model.getValue("/root/init/prcpinfo/instcd")); // 임시로
-
- }else if((genrflag =="O") || (genrflag =="S")){
- setParameter("condparam", genrflag + "▦" +
- model.getValue("/root/init/prcpinfo/pid") + "▦" +
- model.getValue("/root/init/prcpinfo/orddd") + "▦" +
- model.getValue("/root/init/prcpinfo/cretno") + "▦" +
- model.getValue("/root/init/prcpinfo/instcd") + "▦" +
- model.getValue("/root/init/prcpinfo/acptseqno") + "▦" +
- model.getValue("/root/init/prcpinfo/orgorddd") + "▦");
-
- }
-
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
-
- }
-
- var paminfo = getGlobalVariable("paminfo");
- if(paminfo.length < 1){ //상단정보가 없는 경우
- delPatientInfos(); //환자정보 전체 삭제
-
- var pid = model.getValue("/root/main/spclist["+grd_spclist.row+"]/pid");
- var hngnm = model.getValue("/root/main/spclist["+grd_spclist.row+"]/patnm");
- //상단에 올릴 수 있는 정보가 있으면 아래와 같이 설정해 주시면 됩니다. 없으면 안 해주셔도 되구요..
-
- setPatientInfo("pid" , pid); //등록번호
- setPatientInfo("pname" , pid + "|" + hngnm); //환자명
-
- }
-
- }
-
- }
-
- // 핵의학 접수된 Cnt 조회
- function fGetNAcptCnt(){
-
- var ncnt = 0;
-
- for(i=1; i<grd_spclist.rows; i++){
-
- if(model.getValue("/root/main/spclist["+i+"]/Msg") == ""){
- ncnt += 1;
- }
-
- }
- cap_cnt.visible = true;
- opt_cnt.visible = true;
- model.setValue("/root/hidden/acptcnt", ncnt);
- model.refresh();
- }
-
-
- // 유효성 체크
- function fexeBCNOtrue(){
- var txtbcno = ipt_bcno.value;
- if(txtbcno != "" ){
-
- // 바코드 길이 9자리
- if(txtbcno.length == 9 ){
-
- }else{
- messageBox("잘못된 검체번호 ", "E008"); // 잘못된 검체번호 입니다.
- return false;
- }
- }
- }
-
- // 핵의학 화면 접수검체갯수 보이기
- function fSetNCnt(){
- if(model.getValue("root/properties/menu/menuparam")=="N"){
- cap_cnt.visible = true;
- opt_cnt.visible = true;
-
- }else{
- cap_cnt.visible = false;
- opt_cnt.visible = false;
- }
- cap_cnt.refresh();
- opt_cnt.refresh();
- }
-
-
- // 일괄접수 버튼
- function fSetBatAcpt(){
- var btdt = getCurrentDateTime().toDate("YYYYMMDD hhmmss").getAddDate(-10, "m").getDateFormat("YYYYMMDDhhmmss");
-
-
- // 일괄접수
- var bcnolist ="";
-
- if(messageBox("모든 리스트를 접수", "Q004") == 6){
-
- for(i=1; i< grd_spclist.rows; i++){
- if(model.getValue("/root/main/spclist["+i+"]/chk") == "true"){
- bcnolist += model.getValue("/root/main/spclist["+i+"]/bcno") + "▦";
-
- }
-
- grd_spclist.rowStatus(i) =1;
- }
- var grdbatacpt = grd_spclist.getUpdateData();
-
- model.setValue("/root/send/bcnolist", bcnolist);
- model.setValue("/root/send/refflag", model.getValue("/root/hidden/spcacpt/refflag"));
- model.setValue("/root/send/spcchoiyn", model.getValue("/root/hidden/spcacpt/spcchoiyn"));
- model.makeValue("/root/send/btyn", model.getValue("/root/hidden/spcacpt/bt"));
- model.makeValue("/root/send/btdt", btdt);
- model.setValue("/root/send/execdept", model.getValue("/root/hidden/spcacpt/testmdlcd"));
- model.setValue("/root/send/sectcd", model.getValue("/root/hidden/spcacpt/testlrgcd"));
- model.setValue("/root/send/batacptgrd", grdbatacpt);
-
- if(submit("TXLLJ00104")==true){
-
- model.makeValue("/root/main/barcode/barcodeinfo/cntflag", "acpt");
- model.makeValue("/root/main/barcode[2]/dbarcodeinfo/cntflag", "acpt");
-
- var count2 = getNodesetCount("/root/main/barcode/barcodeinfo");
- var mTF = false;
- var spcTF = false;
- var LCount = 0;
- var MCount = 0;
- var BCount = 0;
-
- for(i=1; i<=count2; i++ ){
- if(model.getValue("/root/main/barcode/barcodeinfo["+i+"]/spcacptbarcdprntcnt") >0){
- spcTF = true;
- LCount = 1;
- }
-
- if(model.getValue("/root/main/barcode/barcodeinfo["+i+"]/microbarcdprntcnt") >0){
- mTF = true;
- MCount = 1;
- }
- }
-
- var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
- var portnm = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/commkind");
-
- BCount = getNodesetCount("/root/main/barcode/dbarcodeinfo"); //분주바코드갯수
- // 접수 바코드 출력
- if(spcTF){
- //alert(model.getValue("/root/main/barcode/barcodeinfo["+i+"]/spcacptbarcdprntcnt"));
- if( (prtkind == "9" && portnm == "01") || (prtkind == "11" && portnm == "01") || prtkind == "10" || prtkind == "2" || prtkind == "6" || prtkind == "7" ){
- fLisSpcBarcodePrint2("/root/main/barcode/barcodeinfo", 0, BCount);
- }else if(prtkind == "8" ){
- fLisSpcBarcodePrint3("/root/main/barcode/barcodeinfo", 0, BCount);
- }else{
- fLisSpcBarcodePrint("/root/main/barcode/barcodeinfo", 0, BCount); // 접수 바코드 출력(접수바코드출력노드, 보관검체출력수, 분주바코드 출력수)
- }
- }
- if( prtkind == "2" || prtkind == "6" || prtkind == "7" ){
- fLisSpcBarcodePrintB2("/root/main/barcode/dbarcodeinfo", LCount, MCount); // 분주 바뀐거 (분주바코드출력노드, 접수 바코드 출력수, 미생물바코드 출력수)
- }else{
- fLisSpcBarcodePrintB("/root/main/barcode/dbarcodeinfo", LCount, MCount);
- }
- // 미생물 바코드 출력
- if(mTF){
-
- if( (BCount != 0) || (LCount != 0) ) {
- BCount = 1; //분주바코드가 있거나, 진검바코드가 있을경우 미생물 바코드 portopen 을 하지 않는다.
- } else {
- BCount = 0; //분주바코드, 진검바코드가 모두 없을 경우 portopen을 한다.
- }
- if( prtkind == "2" || prtkind == "6" || prtkind == "7" ){
- fLisMicroWorknoSpcBarcodePrint2("/root/main/barcode/barcodeinfo", BCount);
- }
- else{
- //fLisMicroWorknoSpcBarcodePrint("/root/main/barcode/barcodeinfo", BCount); // 미생물 작업번호 바코드 출력 (미생물바코드 출력노드, 분주 또는 진검바코드 출력여부)
- if(getUserInfo("dutplceinstcd") =="011"){ // 여의도 성모일때 미생물바코드 출력해야함
- //alert( "aaa= " + model.getValue("/root/main/barcode/barcodeinfo/bcno"));
- fLisMicroWorknoSpcBarcodePrint011("/root/main/barcode/barcodeinfo", BCount); // 미생물 작업번호 바코드 출력(출력노드, 분주 또는 진검 바코드여부)
- }else{
- fLisMicroWorknoSpcBarcodePrint("/root/main/barcode/barcodeinfo", BCount); // 미생물 작업번호 바코드 출력(출력노드, 분주 또는 진검 바코드여부)
- }
- }
- }
-
- model.removeNodeset("/root/main/barcode");
-
- model.resetInstanceNode("/root/main/spclist");
- grd_spclist.rebuild();
-
- model.resetInstanceNode("/root/main/detllistref");
- grd_detllist.rebuild();
- }
-
- }
- }
-
-
-
- // Urine Volume 등록
- function fSetUrine(Row){
-
- //
- if(Row ==""){
- Row = grd_spclist.row;
- }
- var bcno = model.getValue("/root/main/spclist["+Row+"]/bcno");
- model.setValue("/root/hidden/bcno", bcno);
-
- // 검체명 24시간 Urine 일경우 팝업띄워서 등록
- open("SPLLJ90200", 1 ,0, 0, "SPLLJ90200","/root/hidden/bcno","/root/hidden/bcno", "sysmenu:hidden;");
- }
-
-
- // 특이사항 저장 버튼 클릭
- function fSetSpcffact(){
- var grddata = grd_spclist.getUpdateData();
-
- model.setValue("/root/send/Data1", model.getValue("/root/hidden/spcacpt/refflag")); // 접수구분
- model.setValue("/root/send/Data2", grddata);
-
- //submit("TXLLJ00103");
-
- /*for(i=1; i<grd_spclist.rows; i++){
- var choi = model.getValue("/root/main/spclist["+i+"]/chk");
- if(choi== "true"){
- model.setValue("/root/send/Data1", model.getValue("/root/main/spclist["+i+"]/bcno"));
- model.setValue("/root/send/Data2", model.getValue("/root/main/spclist["+i+"]/spcfrem"));
- //model.setValue("/root/send/Data2", grddata);
- model.setValue("/root/send/Data3", model.getValue("/root/hidden/spcacpt/refflag"));
- model.setValue("/root/send/Data4", model.getValue("/root/main/spclist["+i+"]/acptno"));
- alert("true " + model.getValue("/root/send"));
-
- submit("TXLLJ00103");
- }
-
- }*/
- }
-
- // 검체상세목록 조회
- function fGetSpcDetlList(Ref){
-
- grd_detllist.rebuildStyle();
-
- var rRow = "";
- if(Ref !=""){ // 자동 상세목록 조회(Ref = 마지막 Row)
- rRow = Ref-1;
- }else{
- rRow = grd_spclist.row;
- }
- model.setValue("/root/send/bcno", model.getValue("/root/main/spclist["+rRow+"]/bcno"));
- model.setValue("/root/send/spcstat", model.getValue("/root/main/spclist["+rRow+"]/spcstat"));
- model.setValue("/root/send/menuparam", model.getValue("root/properties/menu/menuparam"));
- submit("TRLLJ00101");
-
- if(model.getValue("/root/main/detllistref/scanyn") == "Y") {
- btn_formprnt.disabled = false;
- btn_formprnt.value = model.getValue("/root/main/detllistref/scrn");
- } else {
- btn_formprnt.value = model.getValue("/root/main/detllistref/scrn");
- btn_formprnt.disabled = true;
- }
-
- // 응급 빨간색으로 표시
- for(i=1; i<grd_detllist.rows; i++){
-
- if("Y" == model.getValue("/root/main/detllistref["+i+"]/erprcpflag")){
- grd_detllist.cellStyle("color", i, 3, i, 3) = "#ff3300";
- }
-
- }
-
- // 접수시 상단정보 올리기
- /*if(grd_spclist.rows > 1){
- if(getPatientInfo("pid") != model.getValue("/root/main/spclist["+grd_spclist.row+"]/pid")){
- fGetTopInfo();
- }
- }*/
- }
-
- // 검체조회 tab 검체조회
- function fGetSpcListref(flag){
-
-
- //if(fSetRefFromdd()==true){
-
- model.setValue("/root/send/refbase" , model.getValue("/root/hidden/spcref/refbase"));
- model.setValue("/root/send/piddd" , model.getValue("/root/hidden/spcref/piddd"));
- model.setValue("/root/send/reffromdd" , model.getValue("/root/hidden/spcref/reffromdd"));
- model.setValue("/root/send/reftodd" , model.getValue("/root/hidden/spcref/reftodd"));
- model.setValue("/root/send/refgbn" , model.getValue("/root/hidden/spcref/refflag"));
- model.setValue("/root/send/pidfromdd" , model.getValue("/root/hidden/spcref/pidfromdd"));
- model.setValue("/root/send/pidtodd" , model.getValue("/root/hidden/spcref/pidtodd"));
- model.setValue("/root/send/execdept" , model.getValue("/root/hidden/spcref/execdept"));
- model.setValue("/root/send/undoacpt" , model.getValue("/root/hidden/spcref/undoacpt"));
- model.setValue("/root/send/genrflag" , model.getValue("/root/hidden/spcref/genrflag"));
- model.setValue("/root/send/detlspcinfoyn" , model.getValue("/root/hidden/spcref/detlspcinfoyn")); //상세조회 성가병원 요청 20090930 추가
- if(flag != "P"){
- model.setValue("/root/send/page" , "1"); //page처리 20090930 추가
- }
-
- if((flag == "K") || ((flag == "C") && (model.getValue("/root/hidden/spcref/refcnts") != ""))) { //bcno enter키 누르거나, input 버튼 눌렀을 경우, 접수취소 후 검색어가 있으면 검색어로 조회
- model.setValue("/root/send/reftext", model.getValue("/root/hidden/spcref/refcnts"));
- } else { //조회버튼 클릭시
- if(fSetRefFromdd()==true){
- model.setValue("/root/send/reftext", "");
- model.makeValue("/root/send/flag", "1");
- }
- }
-
- var tmpPage = model.getValue("/root/send/page");
-
- model.removeNodeset("/root/main/page"); //상세 조회일 경우 page관련 내용 같이 조회 해 오는데 조회해올때마다 초기화
-
-
-
- if(submit("TRLLJ00103")) { // 검체접수화면 검체조회
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/page", tmpPage);
- fSetSpcRefList(); //상세조회 여부에 따른 컬럼 Hidden
- if(chk_detlspcinfoyn.value == 1 && parseInt(model.getValue("/root/main/page/lastpage")) > 1){
- group_page.visible = true;
- }else{
- group_page.visible = false;
- }
- }
-
-
- }
-
- // 부적합검체등록
- function fSetBadSpc(){
- if(switch3.selectedIndex=="0"){ //접수
- if(grd_spclist.rows > 0){
- var bcno = model.getValue("/root/main/spclist["+grd_spclist.row+"]/bcno");
- }
- }else if(switch3.selectedIndex=="1"){ //조회
- if(grd_spcreflist.rows > 1){
- var bcno = model.getValue("/root/main/spclistref["+grd_spcreflist.row+"]/bcno");
- }
- }
-
- model.setValue("/root/hidden/bcno", bcno);
-
- modal("SPLLJ90100_부적합검체등록","","","","","/root/hidden/bcno","/root/hidden/bcno");
- }
-
-
-
- // 채혈접수취소등록
- function fSetAcptCncl(){
-
- if(grd_spcreflist.row < 1 ){
- messageBox("선택된 검체가 없습니다. 검체를 ", "C002"); // 선택하십시오!
- return;
- }
-
- var find = grd_spcreflist.findRow("Y", 1, 1);
-
- if(find < 0) {
- messageBox("선택된 검체가 없습니다. 검체를 ", "C002"); // 선택하십시오!
- return;
- }
-
- if(model.getValue("/root/main/spclistref["+ find +"]/bcno").substr(0, 1) == "G") {
- messageBox("헌혈 검체는 취소", "E001"); //헌혈검체는 취소할 수 없습니다.
- return;
- }
-
- if(model.getValue("/root/main/spclistref["+ find +"]/spcstat") != "4-") {
- messageBox("접수상태가 아니라 접수취소를", "E001") //할 수 없습니다.
- return;
- }
-
- model.setValue("/root/hidden/canceldata/data1", model.getValue("/root/main/spclistref["+grd_spcreflist.row+"]/bcno"));
- model.setValue("/root/hidden/canceldata/data2", "02");
-
- open("SPLLC90400", 1 ,300, 400, "SPLLC90400","/root/hidden/canceldata", "/root/hidden/openerdata");
- }
-
- // 바코드 프린터 설정 삭제예정
- function fSetPrntSetting(){
-
- open("SPLLC90100", 1 ,300, 400, "SPLLC90100");
- }
-
- //프린터 설정
- function fSetPrint() {
- var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
-
- if(count == 0) {
- model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
-
- open("SPLLC90100_바코드프린터설정.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
-
- // 초기화
- function fSetInit(){
- model.removeNodeset("/root/main");
- model.refresh();
- }
-
- // 스위치에 따라 버튼 보이기
- function fbuttonvisible(ref){
- // 검체접수
- if(ref == "A"){
- group7.visible = false;
- group6.visible = true;
- checkbox4.visible = true;
- }
- // 검체조회
- else if(ref == "B"){
- group7.visible = true;
- group6.visible = false;
- checkbox4.visible = false;
- }
- }
-
- // 접수 시 바코드 출력
- function fExeBarcdPrnt(){
- var BCount = 0; //분주바코드
- var LCount = 0; //진검바코드
- var MCount = 0; //미생물 바코드
- var spcTF = false;
- var mTF = false;
-
- // 2007-10-14 수정
- model.makeNode("/root/main/barcode/barcodeinfo/cntflag");
- model.setValue("/root/main/barcode/barcodeinfo/cntflag", "acpt");
-
- var count = getNodesetCount("/root/main/barcode/barcodeinfo");
-
- for(i=1; i<=count; i++ ){
-
- if(model.getValue("/root/main/barcode/barcodeinfo["+i+"]/spcacptbarcdprntcnt") >0){
- model.setValue("/root/main/barcode/barcodeinfo["+i+"]/tclslblnmlist", model.getValue("/root/main/barcode/barcodeinfo["+i+"]/tclsnmlist"));
- spcTF = true;
- LCount = 1;
- }else{
- model.removeNodeset("/root/main/barcode/barcodeinfo["+i+"]");
- i--;
- count--;
- }
-
- if(model.getValue("/root/main/barcode/barcodeinfo["+i+"]/microbarcdprntcnt") >0){
- mTF = true;
- MCount = 1;
- }
- }
-
-
- BCount = getNodesetCount("/root/main/barcode/dbarcodeinfo");//분주바코드 갯수
-
- var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
- var portnm = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/commkind");
-
- // 접수 바코드 출력
- if(spcTF){
- if( (prtkind == "9" && portnm == "01") || (prtkind == "11" && portnm == "01") || prtkind == "10" || prtkind == "2" || prtkind == "6" || prtkind == "7" ){ // sato
- fLisSpcBarcodePrint2("/root/main/barcode/barcodeinfo", 0, BCount);// 접수 바코드 출력 //fLisSpcBarcodePrint(출력노드, 오픈을 위해 0셋팅, 분주바코드갯수)
- }else if(prtkind == "8" ){ // b472
- fLisSpcBarcodePrint3("/root/main/barcode/barcodeinfo", 0, BCount);
- }else{ // zebra ...
- fLisSpcBarcodePrint("/root/main/barcode/barcodeinfo", 0, BCount);// 접수 바코드 출력 //fLisSpcBarcodePrint(출력노드, 오픈을 위해 0셋팅, 분주바코드갯수)
- }
- }
-
- model.makeValue("/root/main/barcode[2]/dbarcodeinfo/cntflag", "acpt");
- if( prtkind == "2" || prtkind == "6" || prtkind == "7"){
- fLisSpcBarcodePrintB2("/root/main/barcode/dbarcodeinfo", LCount, MCount); // 분주(출력노드, 진검바코드여부, 미생물바코드여부)
- }else{
- fLisSpcBarcodePrintB("/root/main/barcode/dbarcodeinfo", LCount, MCount); // 분주(출력노드, 진검바코드여부, 미생물바코드여부)
- }
-
-
- // 미생물 바코드 출력
-
- if(mTF){
- if((BCount != 0) || (LCount != 0) ){ //분주 바코드가 있거나 진검 바코드가 있을 경우 portopen을 하지 않는다.
- BCount = 1;
- } else {
- BCount = 0; //분주바코드, 진검바코드 모두 없을 경우 portopen을 하기 위해 셋팅.
- }
-
- if( prtkind == "2" || prtkind == "6" || prtkind == "7"){ // sato
- fLisMicroWorknoSpcBarcodePrint2("/root/main/barcode/barcodeinfo", BCount);
- }else{ // 기타바코드 zebra...
- //alert("여의도 일까요 " + getUserInfo("dutplceinstcd"));
- if(getUserInfo("dutplceinstcd") =="011"){ // 여의도 성모일때 미생물바코드 출력해야함
- //alert( "aaa= " + model.getValue("/root/main/barcode/barcodeinfo/bcno"));
-
- if(model.getValue("/root/hidden/spcacpt/refflag")=="2"){ // 접수일때만 나오고 가접수일때 안나오게 이미란샘 요청
- //model.removeNodeset("/root/main/barcode");
- //model.setValue("/root/send/bcnolist", "'" + model.getValue("/root/hidden/spcacpt/bcno") + "'");
- //submit("TRLMP00203");
- //model.setValue("/root/send/bcnolist", "");
- //copyNodeType("/root/main/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
- fLisMicroWorknoSpcBarcodePrint011("/root/main/barcode/barcodeinfo"); // 미생물 작업번호 바코드 출력(출력노드, 분주 또는 진검 바코드여부)
- }
- }else{
- fLisMicroWorknoSpcBarcodePrint("/root/main/barcode/barcodeinfo", BCount); // 미생물 작업번호 바코드 출력(출력노드, 분주 또는 진검 바코드여부)
- }
- }
- return;
- }
- }
-
- // 바코드 재출력
- function fExeBarcdRePrnt(){
-
- model.removeNodeset("/root/hidden/barcode/barcodeinfo");
- var bcno = "";
- var bcollTF = false;
-
- for(i=1; i< grd_spcreflist.rows; i++){
- if(model.getValue("/root/main/spclistref["+i+"]/chk")=="Y"){
- bcno = bcno + "'" + model.getvalue("/root/main/spclistref["+i+"]/bcno") + "'" + ",";
- bcollTF = true;
- }
- }
- ;
- if(bcollTF == false){
- alert("재출력할 검체를 선택하십시오. ");
- }
-
- if(bcollTF) {
- bcno = bcno.substring( 0 ,bcno.length - 1);
- model.makeValue("/root/send/bcnolist" , bcno);
-
- //--------------------
- submit("TRLZZ00102");
- model.makeNode("/root/hidden/barcode/barcodeinfo/cntflag");
- model.setValue("/root/hidden/barcode/barcodeinfo/cntflag", "acpt");
-
- var count2 = getNodesetCount("/root/hidden/barcode/barcodeinfo");
- var spcTF = false;
-
- for(i=1; i<=count2; i++ ){
- if(model.getValue("/root/hidden/barcode/barcodeinfo["+i+"]/spcacptbarcdprntcnt") >0){
- spcTF = true;
- }
- }
- var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
- var portnm = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/commkind");
-
-
- // 접수 바코드 출력
- if(spcTF){
- //-----------------------------------------------------
- if( (prtkind == "9" && portnm == "01") || (prtkind == "11" && portnm == "01") || prtkind == "10" || prtkind == "2" || prtkind == "6" || prtkind == "7"){
- fLisSpcBarcodePrint2("/root/hidden/barcode/barcodeinfo");
- }else if(prtkind == "8" ){
- fLisSpcBarcodePrint3("/root/main/barcode/barcodeinfo");
- }else{
- fLisSpcBarcodePrint("/root/hidden/barcode/barcodeinfo");
- }
- }
-
- }
-
- }
-
- // 대분류콤보 선택시
- function fSetTLrgCd() {
- var etc = model.getvalue("/root/hidden/spcacpt/testlrgcd");
-
- if(etc == "00"){
- cmd_TMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
- model.setValue("/root/hidden/spcacpt/testmdlcd" , "00");
- }
- else{
- model.setValue("/root/hidden/spcacpt/testmdlcd" , "00");
- cmd_TMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ etc +"']";
- }
- cmd_TMdlCd.refresh();
- }
-
- function fSetTLrgCd2() {
- var etc = model.getvalue("/root/hidden/spcref/lrgexecdept");
- //alert(etc);
- if(etc == "00"){
- cmb_exec.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
- model.setValue("/root/hidden/spcref/execdept" , "00");
- }
- else{
- model.setValue("/root/hidden/spcref/execdept" , "00");
- cmb_exec.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ etc +"']";
- }
- cmb_exec.refresh();
- }
- //특수검사 조회
- function fGetSpclTestList() {
- model.removeNodeset("/root/main/getspcltestlist");
-
- model.makeValue("/root/send/acptsdd", getCurrentDate());
- model.makeValue("/root/send/acptedd", getCurrentDate());
- model.makeValue("/root/send/spcltestgrup", "00");
- model.makeValue("/root/send/seqsno", "00000");
- model.makeValue("/root/send/seqeno", "99999");
- model.makeValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
- model.makeValue("/root/send/refflag", "1");
- model.makeValue("/root/send/spcchoiyn", "1");
- //model.makeValue("/root/send/bcno", model.getValue("/root/main/spclist/bcno"));
- model.makeValue("/root/send/bcno", model.getValue("/root/hidden/spcacpt/bcno"));
- submit("TRLRP00701");
- }
-
- //특수검사 의뢰서 출력
- function fPrint(find){
- model.removeNodeset("/root/hidden/report");
- model.makeNode("/root/hidden/report");
-
- model.removeNodeset("/root/main/rslt");
- model.removeNodeset("/root/main/cf");
-
- //골수 결과
- if(model.getValue("/root/main/getspcltestlist["+ find +"]/reqcnts/reqfrminfo/inptitem01/initial") == "Initial") {
- model.setValue("/root/main/getspcltestlist["+ find +"]/reqcnts/reqfrminfo/inptitem01/initial", "Initial");
- } else if(model.getValue("/root/main/getspcltestlist["+ find +"]/reqcnts/reqfrminfo/inptitem01/fu") == "F/U") {
- model.setValue("/root/main/getspcltestlist["+ find +"]/reqcnts/reqfrminfo/inptitem01/initial", "F/U");
- } else if(model.getValue("/root/main/getspcltestlist["+ find +"]/reqcnts/reqfrminfo/inptitem01/others") == "Others") {
- model.setValue("/root/main/getspcltestlist["+ find +"]/reqcnts/reqfrminfo/inptitem01/initial", "Others");
- }
-
- copyNodeListType("/root/hidden/report", "/root/main/getspcltestlist["+ find +"]", "after");
-
- var report = getNodesetCount("/root/hidden/report/getspcltestlist");
-
-
- model.makeValue("/root/send/pid", model.getValue("/root/main/getspcltestlist["+ find +"]/pid"));
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- //model.makeValue("/root/send/instcd", "012");
-
- submit("TRLRP00703");
-
- //CBC 검사결과
- model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/tcls");
- model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/rslt");
- model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/tcls2");
- model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/rslt2");
-
- var count = getNodesetCount("/root/main/rslt");
- var tclslist = "";
- var rsltlist = "";
- var tclslist2 = "";
- var rsltlist2 = "";
- var tcls = "";
-
- for(j = 1; j <= count; j++) {
- tcls = model.getValue("/root/main/rslt["+ j +"]/tclscd");
- if(tcls.substr(3, 3) != "105") {
- tclslist = tclslist + model.getValue("/root/main/rslt["+ j +"]/tclsnm") + "\n";
- rsltlist = rsltlist + model.getValue("/root/main/rslt["+ j +"]/reptrslt") + "\n";
- } else if(tcls.substr(3, 3) == "105") {
- tclslist2 = tclslist2 + model.getValue("/root/main/rslt["+ j +"]/tclsnm") + "\n";
- rsltlist2 = rsltlist2 + model.getValue("/root/main/rslt["+ j +"]/reptrslt") + "\n";
- }
- }
-
- model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/tcls", tclslist);
- model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/rslt", rsltlist);
- model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/tcls2", tclslist2);
- model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/rslt2", rsltlist2);
- model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/tm");
- model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/tm", model.getValue("/root/main/rslt["+ count +"]/lastreptdt"));
-
- //CF 검사결과
- /* model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/ptno");
- model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/part");
- model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/mthd");
- model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/drg");
- model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/acpt");
- model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/drnm");
-
- var count = getNodesetCount("/root/main/cf");
- var ptno = "";
- var part = "";
- var mthd = "";
- var drg = "";
- var acpt = "";
- var drnm = "";
-
- for(j = 1; j <= count; j++) {
- ptno = ptno + model.getValue("/root/main/cf["+ j +"]/dispptno") + "\n";
- part = part + model.getValue("/root/main/cf["+ j +"]/extrpartcd") + "\n" ;
- mthd = mthd + model.getValue("/root/main/cf["+ j +"]/extrmthdcd") + "\n";
- drg = drg + model.getValue("/root/main/cf["+ j +"]/drgcd") + "\n";
- acpt = acpt + model.getValue("/root/main/cf["+ j +"]/acptdd") + "\n";
- drnm = drnm + model.getValue("/root/main/cd["+ j +"]/readdrnm") + "\n";
- }
-
- model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/ptno", ptno);
- model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/part", part);
- model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/mthd", mthd);
- model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/drg", drg);
- model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/acpt", acpt);
- model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/drnm", drnm);*/
-
- var count = getNodesetCount("/root/main/cf");
-
- for(j = 1; j <= count; j++) {
- model.makeNode("/root/hidden/report/getspcltestlist/cf["+ j +"]");
-
- copyNodeType("/root/hidden/report/getspcltestlist/cf["+ j +"]", "/root/main/cf["+ j +"]");
- }
-
- // model.makeValue("/root/send/tclscd", model.getValue("/root/main/getspcltestlist["+ find +"]/tclscd"));
- model.makeValue("/root/send/spccd", model.getValue("/root/main/getspcltestlist["+ find +"]/spccd"));
- model.makeValue("/root/send/prcpgenrflag", model.getValue("/root/main/getspcltestlist["+ find +"]/prcpgenrflag"));
- model.makeValue("/root/send/bcno", model.getValue("/root/main/getspcltestlist["+ find +"]/bcno"));
-
- submit("TRLRP00702");
-
- model.makeValue("/root/hidden/report/getspcltestlist["+ report +"]/termengnm", model.getValue("/root/main/detltestlist/termengnm"));
-
- var flag = model.getValue("/root/hidden/report/getspcltestlist/reqfrmcd");
-
- // switch(flag) {
- // case "01" :
- //exeReportPreview("RPLRP00100", "XMLSTR", "/root/hidden/report", "", "true"); //골수검사의뢰서
- /* break;
- case "02" :
- exeReportPreview("RPLRP00200", "XMLSTR", "/root/hidden/report", "", "true"); //분자생물학부의뢰서
- break;
- case "03" :
- exeReportPreview("RPLRP00300", "XMLSTR", "/root/hidden/report", "", "true"); //산전검사의뢰서
- break;
- case "04" :
- exeReportPreview("RPLRP00400", "XMLSTR", "/root/hidden/report", "", "true"); //세포유전학검사의뢰서
- break;
- case "05" :
- exeReportPreview("RPLRP00500", "XMLSTR", "/root/hidden/report", "", "true"); //장기이식의뢰서
- break;
- case "06" :
- exeReportPreview("RPLRP00600", "XMLSTR", "/root/hidden/report", "", "true"); //TDM 의뢰서
- break;
- }*/
- }
-
- // 조회일자 3일 이전으로 못가게 막기
- function fSetRefFromdd(){
- var todd = model.getValue("/root/hidden/spcref/reftodd");
-
- var mDate = todd.toDate("YYYYMMDD").getAddDate(-3);
- var fromdd = model.getValue("/root/hidden/spcref/reffromdd");
-
- if( mDate.getDateFormat("YYYYMMDD") > fromdd){
- messageBox("환자개별 조회 이외의 검색구간은 최대 3일까지","E008");
-
- var mr = messageBox("최대 3일 조회","S001"); //메세지에서 선택한 값.
-
- if(mr == "6") {
- model.setValue("/root/hidden/spcref/reffromdd", mDate.getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/reffromdd", model.getValue("/root/hidden/spcref/reffromdd"));
- model.refresh();
-
- return true;
- } else if(mr == "2") {
- return false;
- }else {
- return true;
- }
- }else if(todd < fromdd){
- model.alert("기간설정이 잘못 되었습니다.");
- return false;
- }else{
- return true;
- }
- }
-
-
- // 검체목록출력
- function fExePrint(){
- model.removeNodeset("/root/hidden/report");
-
- if(grd_spcreflist.rows < 2){
- messageBox("출력할", "E013");
- return;
- }
-
- var prtrow = 1;
-
- for(i=1; i< grd_spcreflist.rows; i++){
-
- if(model.getValue("/root/main/spclistref["+i+"]/chk")=="Y"){
- model.makeNode("/root/hidden/report/spclistref["+ prtrow +"]");
-
- copyNodeType("/root/hidden/report/spclistref["+ prtrow +"]", "/root/main/spclistref["+i+"]");
- model.setValue("/root/hidden/report/spclistref["+ prtrow +"]/spcstat", grd_spcreflist.labelMatrix(i, 12));
-
- prtrow ++;
-
- }
- }
-
- if(prtrow < 2){
- messageBox("출력할", "E013");
- return;
- }
- exeReportPreview("RPLLJ00100", "XMLSTR");
- }
-
- //상세조회 선택시 검체 목록 컬럼 Hidden 변경
- function fSetSpcRefList(){
- //상세조회
- if(chk_detlspcinfoyn.value == 1){
- grd_spcreflist.colHidden(grd_spcreflist.colRef("testcd")) = false;
- grd_spcreflist.colHidden(grd_spcreflist.colRef("tclsnm")) = false;
- grd_spcreflist.colHidden(grd_spcreflist.colRef("reptrslt")) = false;
-
- for(var Rrow = 1; Rrow < grd_spcreflist.rows ; Rrow++){
- if(model.getValue("/root/main/spclistref["+Rrow+"]/reptrslt") == "미등록"){
- grd_spcreflist.cellStyle("color", Rrow, 12, Rrow, 12) = "#EE0000";
- }else{
- grd_spcreflist.cellStyle("color", Rrow, 12, Rrow, 12) = "#000000";
- }
- }
-
-
- }else{
- grd_spcreflist.colHidden(grd_spcreflist.colRef("testcd")) = true;
- grd_spcreflist.colHidden(grd_spcreflist.colRef("tclsnm")) = true;
- grd_spcreflist.colHidden(grd_spcreflist.colRef("reptrslt")) = true;
- /* 이재오 추가 20120704 일 */
- if (rdo_acptdd.value == 3){
- grd_spcreflist.colHidden(grd_spcreflist.colRef("tsectcd")) = true;
- grd_spcreflist.colHidden(grd_spcreflist.colRef("workno")) = true;
- grd_spcreflist.colHidden(grd_spcreflist.colRef("bcno")) = true;
- grd_spcreflist.colHidden(grd_spcreflist.colRef("testcd")) = true;
- grd_spcreflist.colHidden(grd_spcreflist.colRef("tclsnm")) = true;
- grd_spcreflist.colHidden(grd_spcreflist.colRef("spcnm")) = true;
- grd_spcreflist.colHidden(grd_spcreflist.colRef("spcltestseq")) = true;
-
- }else{
- grd_spcreflist.colHidden(grd_spcreflist.colRef("tsectcd")) = false;
- grd_spcreflist.colHidden(grd_spcreflist.colRef("workno")) = false;
- grd_spcreflist.colHidden(grd_spcreflist.colRef("bcno")) = false;
- grd_spcreflist.colHidden(grd_spcreflist.colRef("testcd")) = false;
- grd_spcreflist.colHidden(grd_spcreflist.colRef("tclsnm")) = false;
- grd_spcreflist.colHidden(grd_spcreflist.colRef("spcnm")) = false;
- grd_spcreflist.colHidden(grd_spcreflist.colRef("spcltestseq")) = false;
- }
- /* 이재오 추가 20120704 일 */
- }
-
- }
-
- //페이지 버튼에따라 처리
- function fSetPage(pVal){
- //pVal = 1:맨처음, 2:이전, 3:다음, 4:맨끝 page로..
- var vFPage = parseInt(model.getValue("/root/send/page"));
- //model.setValue("/root/main/page/lastpage", 10); //test
- var vLPage = parseInt(model.getValue("/root/main/page/lastpage"));
-
- if(pVal == "1"){
- if(vFPage != 1){
- model.setValue("/root/send/page", 1);
- }else{
- return;
- }
- }else if(pVal == "2"){
- if(vFPage != 1){
- vFPage -= 1;
- model.setValue("/root/send/page", vFPage);
- }else{
- return;
- }
- }else if(pVal == "3"){
- if(vFPage < vLPage){
- vFPage += 1;
- model.setValue("/root/send/page", vFPage);
- }else{
- return;
- }
- }else if(pVal == "4"){
- if(vLPage != vFPage){
- model.setValue("/root/send/page", vLPage);
- }else{
- return;
- }
- }
- group_page.refresh();
- //alert(model.getValue("/root/send/page"));
- fGetSpcListref("P");
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="text-align:center; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:98px; height:14px; ">검체접수</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <switch id="switch3" class="sw_box" style="left:0px; top:26px; width:1194px; height:718px; ">
- <case id="case1" selected="true">
- <line id="line8" class="line_1" style="x1:5px; y1:65px; x2:653px; y2:65px; "/>
- <caption id="caption21" class="tit_2" style="left:5px; top:50px; width:100px; height:13px; ">검체목록</caption>
- <caption id="caption1" class="tit_2" style="left:660px; top:50px; width:100px; height:13px; ">검체상세목록</caption>
- <line id="line1" class="line_1" style="x1:659px; y1:65px; x2:1189px; y2:65px; "/>
- <caption id="caption7" class="tit_2" style="left:659px; top:609px; width:108px; height:13px; ">의뢰의사리마크</caption>
- <line id="line3" class="line_1" style="x1:659px; y1:624px; x2:1189px; y2:624px; "/>
- <caption id="caption8" class="cell_1" style="left:659px; top:629px; width:95px; height:83px; ">의뢰의사리마크</caption>
- <line id="line4" class="line_3" style="x1:762px; y1:711px; x2:1190px; y2:711px; "/>
- <datagrid id="grd_spclist" nodeset="/root/main/spclist" caption="^시행부서^접수번호^바코드번호^진료과^환자명^검체명^접수일시^가접수일시" colwidth="20, 90, 95, 85, 80, 95, 110, 125, 80, 100, 100, 100, 100" defaultrows="0" ellipsis="false" mergecellsfixedrows="bycolrec" rowheader="seq" style="left:5px; top:70px; width:648px; height:623px; ">
- <col checkvalue="true,false" ref="chk" type="checkbox"/>
- <col disabled="true" ref="execdeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/LB0106">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="workno" visibility="hidden"/>
- <col ref="bcno"/>
- <col ref="orddeptnm"/>
- <col ref="patnm"/>
- <col ref="spccd"/>
- <col ref="spcacptdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="spcarvdt" format="yyyy-mm-dd"/>
- <col ref="spcnm" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="patage" visibility="hidden"/>
- <col ref="haspnm" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var col = grd_spclist.col;
-
- // 체크박스(1), 검체별특이사항(10) col 제외
- if(col != 1){
- // 검체상세목록 조회
- var grow = "";
-
- fGetSpcDetlList(grow);
-
- }
-
-
-
- ]]>
- </script>
- </datagrid>
- <group id="group2" style="left:5px; top:5px; width:1185px; height:35px; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1184px; height:35px; "/>
- <caption id="caption3" class="search_name" style="left:19px; top:9px; width:86px; height:17px; ">시행부서 :</caption>
- <caption id="caption10" class="search_name" style="left:749px; top:9px; width:99px; height:17px; ">바코드번호 :</caption>
- <caption id="caption11" class="search_name" style="left:339px; top:9px; width:97px; height:17px; ">접수구분 :</caption>
- <input id="ipt_bcno" ref="/root/hidden/spcacpt/bcno" class="input_button" navindex="4" imemode="disabled" inputtype="button" _chartype="upper" style="left:854px; top:8px; width:135px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- // 바코드번호에 버튼 눌렀을때
- fsetBCNOEnter();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- <select1 id="rdo_acptflag" ref="/root/hidden/spcacpt/refflag" class="radio_search" navindex="2" appearance="full" cols="3" overflow="visible" style="left:439px; top:10px; width:125px; height:13px; ">
- <choices>
- <item>
- <label>가접수</label>
- <value>1</value>
- </item>
- <item>
- <label>접 수</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <select id="chk_spcchoi" ref="/root/hidden/spcacpt/spcchoiyn" class="checkbox_search" navindex="3" overflow="visible" appearance="full" style="left:574px; top:10px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>검체선택여부</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/hidden/spcacpt/spcchoiyn") == "1"){
- btn_batacpt.visible = "true";
- }else{
- btn_batacpt.visible = "false";
- }
-
- model.removeNodeset("/root/main/spclist");
- model.removeNodeset("/root/main/detllistref");
- model.refresh();
- ]]>
- </script>
- </select>
- <select id="checkbox2" ref="/root/hidden/spcacpt/resetyn" class="checkbox_search" overflow="visible" appearance="full" style="left:995px; top:10px; width:110px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>화면초기화여부</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <select1 id="cmd_TMdlCd" ref="/root/hidden/spcacpt/testmdlcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:216px; top:8px; width:100px; height:19px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/LB0106">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_TLrgCd" ref="/root/hidden/spcacpt/testlrgcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:110px; top:8px; width:100px; height:19px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/LB0111">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetTLrgCd();
- ]]>
- </script>
- </select1>
- <select id="checkbox3" ref="/root/hidden/spcacpt/bt" class="checkbox_search" overflow="visible" appearance="full" style="left:1110px; top:10px; width:75px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>아침채혈</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- </group>
- <select id="chk_label" ref="/root/hidden/labelyn" visibility="hidden" overflow="visible" appearance="full" style="left:9px; top:694px; width:100px; height:20px; ">
- <choices>
- <item>
- <label>라벨발행</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chk_acptbcd" ref="/root/hidden/acptbcdyn" visibility="hidden" overflow="visible" appearance="full" style="left:144px; top:694px; width:100px; height:20px; ">
- <choices>
- <item>
- <label>접수 바코드</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <datagrid id="grd_detllist" nodeset="/root/main/detllistref" caption="검사코드^검사명^응급^작업번호^표시^특수검사연번호^원내전화" colsep="^" colwidth="80, 160, 40, 125 ,0,0,80" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:659px; top:70px; width:530px; height:527px; ">
- <col ref="tclscd"/>
- <col ref="tclsscrnnm" style="text-align:left; "/>
- <col ref="erprcpflag"/>
- <col ref="workno"/>
- <col ref="spcltestseq"/>
- <col ref="refprntyn" visibility="hidden"/>
- <col ref="phone"/>
- </datagrid>
- <button id="btn_spcf" class="btn2_letter6" style="left:567px; top:44px; width:86px; height:19px; ">
- <caption>특이사항저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fSetSpcffact();
- ]]>
- </script>
- </button>
- <textarea id="tar_rem" ref="/root/main/detllistref/prcpremfact" style="left:755px; top:630px; width:434px; height:80px; text-align:left; "/>
- <button id="btn_urine" class="btn2_letter13" visibility="hidden" style="left:980px; top:40px; width:163px; height:19px; ">
- <caption>Urine 24시간유린일때 보이기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetUrine();
- ]]>
- </script>
- </button>
- <output id="opt_cnt" ref="/root/hidden/acptcnt" style="left:512px; top:47px; width:50px; height:19px; font-weight:bold; text-align:left; "/>
- <caption id="cap_cnt" class="tit_2" style="left:370px; top:50px; width:139px; height:13px; ">
- <![CDATA[접수된 검체 갯수 =>]]>
- </caption>
- <select id="checkbox1" ref="/root/hidden/barcdcheck" visibility="hidden" overflow="visible" appearance="full" style="left:1100px; top:40px; width:93px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>바코드출력</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <select1 id="cmb_execdept" ref="/root/hidden/spcacpt/testmdlcd" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" itemcount="20" style="left:820px; top:40px; width:141px; height:19px; font-family:새굴림; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/LB0106">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_formprnt" disabled="true" style="left:155px; top:45px; width:222px; height:20px; font-size:10pt; font-weight:bold; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //================================================================================================
- //pid : 환자번호
- //orddeptcd : 진료과 코드
- //indd : 입(내)원일
- //docucd : 서식코드
- //ioflag : 입원/외래
- //cmc_cretno : 생성번호
- //================================================================================================
- model.resetInstanceNode("/root/send/iemr");
-
- var prcpgenrflag = model.getValue("/root/main/spclist/prcpgenrflag");
-
- /* if((prcpgenrflag == "O") ||(prcpgenrflag == "S")) {
- prcpgenrflag = "O";
- } else {
- prcpgenrflag = "I";
- }*/
-
- model.makeValue("/root/send/iemr/pid", model.getValue("/root/main/spclist/pid"));
- model.makeValue("/root/send/iemr/orddeptcd", model.getValue("/root/main/spclist/orddeptcd"));
- model.makeValue("/root/send/iemr/indd", model.getValue("/root/main/spclist/orddd"));
- model.makeValue("/root/send/iemr/docucd", model.getValue("/root/main/detllistref/formcd"));
- model.makeValue("/root/send/iemr/ioflag", prcpgenrflag);
- model.makeValue("/root/send/iemr/cmc_cretno", model.getValue("/root/main/detllistref/cretno"));
- model.makeValue("/root/send/iemr/cmc_spcid", "");
- model.makeValue("/root/send/iemr/cmc_orddate", "");
- model.makeValue("/root/send/iemr/cmc_orderseqno", "");
-
- if(window.children.item("imgemrviewer") == null) {
- window.load("SSMRC03110.xrw", "modeless", "imgemrviewer", "", "/root/send/iemr", "/root/hidden/temp");
- }
- else
- {
- // 팝업 EMR Viewer 사용중인 상태에서 리로드 기능 추가 - 20080416
- var iemrNode = instance1.selectSingleNode("/root/send/iemr");
- window.children.item("imgemrviewer").javascript.reloadChart(iemrNode);
- // 팝업 EMR Viewer 화면 맨 앞으로 가져오기
- window.children.item("imgemrviewer").modelesstopmost = true;
- window.children.item("imgemrviewer").modelesstopmost = false;
- }
- ]]>
- </script>
- </button>
- <caption id="caption5" class="hand" style="left:76px; top:44px; width:81px; height:23px; ">동의서 :</caption>
- </case>
- <case id="case2">
- <line id="line2" class="line_1" style="x1:5px; y1:95px; x2:1190px; y2:95px; "/>
- <caption id="caption9" class="tit_2" style="left:9px; top:80px; width:80px; height:13px; ">검체목록</caption>
- <group id="group5" style="left:5px; top:5px; width:1185px; height:66px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1184px; height:66PX; "/>
- <line id="line6" class="line_4" style="x1:1103px; y1:37px; x2:1103px; y2:59px; "/>
- <caption id="caption13" class="search_name" style="left:15px; top:10px; width:87px; height:17px; ">검색구분 :</caption>
- <caption id="caption14" class="search_name" style="left:360px; top:40px; width:86px; height:17px; ">조회일자 :</caption>
- <caption id="caption16" class="search_no_b" style="left:552px; top:40px; width:15px; height:17px; text-align:center; ">~</caption>
- <caption id="caption17" class="search_name" style="left:677px; top:39px; width:90px; height:17px; ">조회기준 :</caption>
- <caption id="caption2" class="search_name" style="left:15px; top:39px; width:86px; height:17px; ">시행부서 :</caption>
- <input id="ipt_text" ref="/root/hidden/spcref/refcnts" class="input_button" navindex="12" inputtype="button" style="left:197px; top:9px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(ipt_text.currentText != "") {
- model.setValue("/root/hidden/spcref/refcnts", (ipt_text.currentText).toUpperCase());
- fGetSpcListref("K");
- } else {
- messageBox("검색어를", "C001");
- }
-
- ipt_text.selBegin = 0;
- ipt_text.selEnd = ipt_text.currentText.length;
- ]]>
- </script>
- </input>
- <button id="btn_ref" class="btn1_letter2" navindex="13" style="left:1113px; top:38px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 검체조회 tab 조회 버튼 클릭시
- fGetSpcListref();
- ]]>
- </script>
- </button>
- <select1 id="cmb_refgbn" ref="/root/hidden/spcref/refflag" class="combo_search" navindex="11" appearance="minimal" style="left:104px; top:9px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>환자번호</label>
- <value>1</value>
- </item>
- <item>
- <label>바코드번호</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var cmb_value = model.getValue("/root/hidden/spcref/refflag");
- if(cmb_value == "1"){
- caption12.visible = true;
- caption4.visible = true;
- input1.visible = true;
- input2.visible = true;
- checkbox6.visible = true;
-
- }else{
- caption12.visible = false;
- caption4.visible = false;
- input1.visible = false;
- input2.visible = false;
- checkbox6.visible = false;
-
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="rdo_acptdd" ref="/root/hidden/spcref/refbase" class="radio_search" navindex="8" appearance="full" cols="3" overflow="visible" style="left:770px; top:41px; width:250px; height:13px; ">
- <choices>
- <item>
- <label>검체접수일</label>
- <value>1</value>
- </item>
- <item>
- <label>검체채취일</label>
- <value>2</value>
- </item>
- <item>
- <label>채혈리스트</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_reffromdd" ref="/root/hidden/spcref/reffromdd" class="input_search" navindex="9" inputtype="date" format="yyyy-mm-dd" style="left:456px; top:39px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fSetRefFromdd();
- ]]>
- </script>
- </input>
- <input id="ipt_reftodd" ref="/root/hidden/spcref/reftodd" class="input_search" navindex="10" inputtype="date" format="yyyy-mm-dd" style="left:574px; top:39px; width:90px; height:19px; "/>
- <select1 id="cmb_exec" ref="/root/hidden/spcref/execdept" class="combo_search" navindex="7" appearance="minimal" itemcount="20" style="left:208px; top:38px; width:137px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0106">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select id="chk_undoacpt" ref="/root/hidden/spcref/undoacpt" class="checkbox_search" overflow="visible" appearance="full" style="left:1037px; top:41px; width:55px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>미접수</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <select id="chk_detlspcinfoyn" ref="/root/hidden/spcref/detlspcinfoyn" class="checkbox_search" visibility="visible" overflow="visible" appearance="full" style="left:1037px; top:11px; width:68px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>상세조회</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <line id="line5" class="line_7" style="x1:15px; y1:32px; x2:1185px; y2:31px; "/>
- <input id="input1" ref="/root/hidden/spcref/pidtodd" class="input_search" navindex="10" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:539px; top:9px; width:90px; height:19px; "/>
- <caption id="caption4" class="search_no_b" visibility="hidden" style="left:522px; top:10px; width:15px; height:17px; text-align:center; ">~</caption>
- <input id="input2" ref="/root/hidden/spcref/pidfromdd" class="input_search" navindex="9" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:431px; top:9px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fSetRefFromdd();
- ]]>
- </script>
- </input>
- <caption id="caption12" class="search_name" visibility="hidden" style="left:315px; top:10px; width:121px; height:17px; ">검색처방일자 :</caption>
- <select id="checkbox6" ref="/root/hidden/spcref/piddd" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" style="left:637px; top:11px; width:68px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>일자사용</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <select1 id="cmb_lrgexec" ref="/root/hidden/spcref/lrgexecdept" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:105px; top:38px; width:100px; height:19px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/LB0111">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetTLrgCd2();
- ]]>
- </script>
- </select1>
- <select1 id="radio1" ref="/root/hidden/spcref/genrflag" class="radio_search" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:770px; top:10px; width:230px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>00</value>
- </item>
- <item>
- <label>입원</label>
- <value>1</value>
- </item>
- <item>
- <label>외래</label>
- <value>2</value>
- </item>
- <item>
- <label>건진</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- </group>
- <datagrid id="grd_spcreflist" nodeset="/root/main/spclistref" caption="^등록번호^환자명^진료과^병동/병실^시행부서^접수번호^바코드번호^검사코드^검사명^검체명^결과^특수검사연번호^처방일시^검체상태^바코드출력일시^채취일시^가접수일시^접수일시^취소사유^취소자^검체상태" colsep="^" colwidth="21, 68, 95, 85, 90, 100, 130, 80, 80, 140, 80, 80, 100, 80, 60, 140, 130, 100, 120, 100, 100, 0" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25px" rowsep="|" tooltip="true" style="left:5px; top:95px; width:1185px; height:598px; text-align:center; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="pid" style="text-align:left; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:left; "/>
- <col ref="wardroom" style="text-align:left; "/>
- <col disabled="true" ref="tsectcd" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/LB0106">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="workno" style="text-align:left; "/>
- <col ref="bcno" type="input" style="text-align:left; "/>
- <col ref="testcd" visibility="hidden" style="text-align:left; "/>
- <col ref="tclsnm" visibility="hidden" style="text-align:left; "/>
- <col ref="spcnm" style="text-align:left; "/>
- <col ref="reptrslt" visibility="hidden"/>
- <col ref="spcltestseq"/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:left; "/>
- <col disabled="true" ref="spcstat" type="combo">
- <choices>
- <item>
- <label>검체취소</label>
- <value>0</value>
- </item>
- <item>
- <label>바코드출력</label>
- <value>1</value>
- </item>
- <item>
- <label>채혈</label>
- <value>2</value>
- </item>
- <item>
- <label>가접수</label>
- <value>3</value>
- </item>
- <item>
- <label>접수</label>
- <value>4-</value>
- </item>
- <item>
- <label>결과저장</label>
- <value>41</value>
- </item>
- <item>
- <label>중간보고</label>
- <value>42</value>
- </item>
- <item>
- <label>검사중</label>
- <value>43</value>
- </item>
- <item>
- <label>최종보고</label>
- <value>44</value>
- </item>
- <item>
- <label>수정보고</label>
- <value>45</value>
- </item>
- </choices>
- </col>
- <col ref="barcdprntdt" style="text-align:left; "/>
- <col ref="bcolldt" style="text-align:left; "/>
- <col ref="spcarvdt" style="text-align:left; "/>
- <col ref="spcacptdt" style="text-align:left; "/>
- <col ref="cnclcnts"/>
- <col ref="spccnclnm"/>
- <col disabled="true" ref="spcstat" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label>검체취소</label>
- <value>0</value>
- </item>
- <item>
- <label>바코드출력</label>
- <value>1</value>
- </item>
- <item>
- <label>채혈</label>
- <value>2</value>
- </item>
- <item>
- <label>가접수</label>
- <value>3</value>
- </item>
- <item>
- <label>접수</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_spcreflist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <group id="group_page" visibility="hidden" style="left:1040px; top:693px; width:145px; height:22px; ">
- <output id="opt_first" ref="/root/send/page" style="left:45px; top:1px; width:25px; height:19px; ">
- <![CDATA[>]]>
- </output>
- <output id="opt_last" ref="/root/main/page/lastpage" style="left:82px; top:1px; width:25px; height:19px; "/>
- <caption id="cap_aaa" style="left:72px; top:2px; width:15px; height:15px; ">/</caption>
- <button id="btn_pp" class="icon_pre_month" style="left:28px; top:2px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetPage("2");
- ]]>
- </script>
- </button>
- <button id="btn_pf" class="icon_pre_year" style="left:11px; top:2px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetPage("1");
- ]]>
- </script>
- </button>
- <button id="btn_np" class="icon_next_month" style="left:108px; top:2px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetPage("3");
- ]]>
- </script>
- </button>
- <button id="ntn_nl" class="icon_next_year" style="left:125px; top:2px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetPage("4");
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_excel" class="btn2_letter4" style="left:1126px; top:74px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != ""){
- grd_spcreflist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <button id="btn_swacpt" class="btn_sw" group="tab" selected="true" style="left:0px; top:5px; width:70px; height:22px; ">
- <caption>검체접수</caption>
- <!-- 검체접수 화면 -->
- <toggle case="case1" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fbuttonvisible("A");
- ]]>
- </script>
- </button>
- <button id="btn_swref" class="btn_sw" group="tab" style="left:70px; top:5px; width:70px; height:22px; ">
- <caption>검체조회</caption>
- <toggle case="case2" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fbuttonvisible("B");
- ]]>
- </script>
- </button>
- <select id="checkbox4" ref="/root/hidden/toppatinfo" overflow="visible" appearance="full" style="left:1088px; top:7px; width:105px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>환자정보띄우기</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <object id="socket" clsid="{81e9de7e-90be-4958-bbda-ac731c05aba8}" visibility="hidden" style="left:320px; top:5px; width:35px; height:30px; ">
- <!-- 소켓 받은 메시지 이벤트 -->
- <script type="javascript" ev:event="OnReceive(nDataLength, szID)">
- <![CDATA[
- ]]>
- </script>
- <!-- 소켓 에러 이벤트 -->
- <script type="javascript" ev:event="OnError(lError, szMsg)">
- <![CDATA[
- alert("Error code = " + lError+"\nError Message : "+szMsg);
- socket.close(); // 소켓 닫기
- //isConnected = false; // 접속 여부 false
- ]]>
- </script>
- <!-- 소켓 연결 이벤트 -->
- <script type="javascript" ev:event="OnConnect(szID)">
- <![CDATA[
- fExeSlidIssA();
- ]]>
- </script>
- <!-- 소켓 close 이벤트
- <script ev:event="OnClose(szID)" type="javascript">
- <![CDATA[
- isConnected = false; // 접속 여부 false
- ]]>
- </script>
- -->
- </object>
- <object id="socket2" clsid="{81e9de7e-90be-4958-bbda-ac731c05aba8}" visibility="hidden" style="left:355px; top:5px; width:35px; height:30px; ">
- <!-- 소켓 받은 메시지 이벤트 -->
- <script type="javascript" ev:event="OnReceive(nDataLength, szID)">
- <![CDATA[
- ]]>
- </script>
- <!-- 소켓 에러 이벤트 -->
- <script type="javascript" ev:event="OnError(lError, szMsg)">
- <![CDATA[
- alert("Error code = " + lError+"\nError Message : "+szMsg);
- socket.close(); // 소켓 닫기
- //isConnected = false; // 접속 여부 false
- ]]>
- </script>
- <!-- 소켓 연결 이벤트 -->
- <script type="javascript" ev:event="OnConnect(szID)">
- <![CDATA[
- fExeSlidIssB();
- ]]>
- </script>
- <!-- 소켓 close 이벤트
- <script ev:event="OnClose(szID)" type="javascript">
- <![CDATA[
- isConnected = false; // 접속 여부 false
- ]]>
- </script>
- -->
- </object>
- <select id="checkbox5" ref="/root/hidden/microorder" overflow="visible" appearance="full" style="left:990px; top:7px; width:95px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>미생물처방전</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <select id="checkbox7" ref="/root/hidden/remicroorder" overflow="visible" appearance="full" style="left:955px; top:7px; width:35px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>재</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1194px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <group id="group7" style="left:827px; top:0px; width:367px; height:25px; ">
- <button id="btn_init" class="btn4_letter3" style="left:298px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/spclistref");
- grd_spcreflist.rebuild();
- ]]>
- </script>
- </button>
- <button id="btn_acptcancel" class="btn4_letter4" navindex="14" style="left:3px; top:3px; width:80px; height:22px; ">
- <caption>접수취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //채혈접수취소등록
- fSetAcptCncl();
- ]]>
- </script>
- </button>
- <button id="btn_spclist" class="btn4_letter6" navindex="15" style="left:85px; top:3px; width:104px; height:22px; ">
- <caption>검체목록출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExePrint();
- ]]>
- </script>
- </button>
- <button id="btn_rebarcd" class="btn4_letter6" navindex="16" style="left:192px; top:3px; width:104px; height:22px; ">
- <caption>바코드재출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeBarcdRePrnt();
- ]]>
- </script>
- </button>
- </group>
- <group id="group6" style="left:1039px; top:0px; width:155px; height:25px; ">
- <button id="btn_batacpt" class="btn4_letter4" navindex="6" visibility="hidden" style="left:3px; top:3px; width:80px; height:22px; ">
- <caption>일괄접수</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetBatAcpt();
- ]]>
- </script>
- </button>
- <button id="btn_reset" class="btn4_letter3" navindex="5" style="left:86px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_prnt" class="btn3_letter5" navindex="18" style="left:0px; top:3px; width:92px; height:22px; ">
- <caption>프린터설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetPrint();
- ]]>
- </script>
- </button>
- <button id="btn_badspc" class="btn3_letter7" navindex="17" style="left:93px; top:3px; width:116px; height:22px; ">
- <caption>부적합검체등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetBadSpc();
- ]]>
- </script>
- </button>
- <button id="btn_aprv" class="btn3_letter6" style="left:210px; top:3px; width:104px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
- <caption>유전자동의서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //model.makeValue("/root/init/popup/ioflag", "I");
- //open("SPLLJ90400","","","","","/root/init/popup/ioflag","/root/send/ioflag");
- //model.removenode("/root/init/ioflag");
- open("SPLLJ90400");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|