12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLJ00100_검체접수관리.xrw
- * 설 명 : 검체접수 및 검체조회
- * 설 계 자 : (주)에이씨케이 - 박정은
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2006.11.11
- * 수정이력 : 2007-08-02 박정은 코드인스펙션
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>검체접수관리</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/>
- </spclist>
- <reqdrremark>오른쪽 혈관이 잘 보이지 않습니다.</reqdrremark>
- <spclistref>
- <chk/>
- <pid/>
- <patnm/>
- <rrgstno/>
- <patage/>
- <patsex/>
- <tclsnm/>
- <orddeptnm/>
- <wardroom/>
- <bcnostat/>
- <reptrslt/>
- <bcno/>
- <prcpdd/>
- <bcolldt/>
- <workdd/>
- <nmedworkdt/>
- <workno/>
- <spccnclinfo/>
- </spclistref>
- <sectlist>
- <sectusdd/>
- <sectuedd/>
- <sectcd/>
- <sectnm/>
- <sectscrnnm/>
- <sectabbrnm/>
- <sectprntnm/>
- <sectlblnm/>
- </sectlist>
- <barcdprntsetup>
- </barcdprntsetup>
- <acptcntlist>
- <acptcnt/>
- <todayacptcnt/>
- </acptcntlist>
- </main>
- <send>
- <Data1/>
- <Data2/>
- <Data3/>
- <Data4/>
- <Data5/>
- <refflag/>
- <bcnolist/>
- <spcchoiyn/>
- <execdept/>
- <codeflag/>
- <bcno/>
- <batacptgrd/>
- <refbase/>
- <reffromdd/>
- <reftodd/>
- <refgbn/>
- <reftext/>
- <genrflag/>
- <scrnid/>
- <sectcd/>
- <NL/>
- <menuparam/>
- <rsltflag/>
- <cancelgrd>
- <status/>
- <chk/>
- <tclscd/>
- <testcd/>
- <tclsnm/>
- <bcno2/>
- <orddeptnm/>
- <atdrid/>
- <spccd/>
- <genrflagcd/>
- <ssectcd/>
- <tsectcd/>
- <tclskind/>
- <cancelgbn/>
- <resncd/>
- <resndesc/>
- <cmt/>
- <pid/>
- <spcstat/>
- </cancelgrd>
- <data6>
- <divgrupcd/>
- <pid/>
- </data6>
- </send>
- <init>
- <title>접수취소등록</title>
- <execdept>
- <testmdlcd/>
- <testmdlnm/>
- </execdept>
- </init>
- <hidden>
- <spcref>
- <refbase>2</refbase>
- <reffromdd/>
- <reftodd/>
- <refflag>1</refflag>
- <refcnts/>
- <execdept>00</execdept>
- <isbcoll/>
- <isacp/>
- <isrslt/>
- <iscancle/>
- <genrflag>00</genrflag>
- <rsltflag/>
- </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>
- <acptcntdd/>
- <barcdcheck/>
- <popupmenu/>
- <canceltclsnmlist/>
- <request>
- <pid/>
- <spccd/>
- <reqno/>
- <prcpcd/>
- </request>
- <ref>
- <viewgbn/>
- </ref>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" 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|0126|"); // 0102= 중분류 // 0106=시행부서(검사계) // 0104 대분류 // 0111 계(시행) // 0000 userdeptflag //0126 : 병원별 간략보기 체크 설정
- submit("TRLZZ00101");
-
- if(model.getValue("/root/init/LB0126/nm") == "Y") {
- checkbox9.value = "1";
- fViewList();
- }
-
- // 노드 초기화
- model.removeNodeset("/root/main/spclist");
- model.removeNodeset("/root/main/detllistref");
- model.removeNodeset("/root/main/spclistref");
-
-
-
- // 핵의학
- 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/acptcntdd", today);
-
- fSetNCnt(); // 핵의학 화면 접수검체갯수 보이기
-
- model.refresh(); //??
- model.setFocus("ipt_bcno");
- //lzzfMakeBrcdPrntObj("CommAX"); //이전 OCX
-
-
- model.setValue("/root/send/scrnid", getScreenID());
- submit("TRLLC90101");
- lzzfMakeBrcdPrntObjHanDo("CommAX");
- ]]>
- </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="TXLLJ00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLLJ00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/acptcntlist"/>
- </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(i = 1; i <= count; i++) {
- if(model.getValue("/root/main/spclist["+ spc +"]/bcno") == model.getValue("/root/main/getspcltestlist["+ i +"]/bcno")) {
- fPrint(i);
- }
- }
- }
- }
-
- ipt_bcno.selBegin = 0;
- ipt_bcno.selEnd = ipt_bcno.currentText.length;
- }
- if(event.target=="ipt_text"){
- model.setValue("/root/hidden/spcref/refcnts", (ipt_text.currentText).toUpperCase());
- fGetSpcListref();
-
- ipt_text.selBegin = 0;
- ipt_text.selEnd = ipt_text.currentText.length;
- }
-
- }
-
- }
-
- // 검체접수 바코드번호
- /*function fKeyEventacpt(){
-
- if(ipt_bcno.currentText.length == 9){
-
- inputEnterKey("ipt_bcno", "DOMActivate");
- model.setvalue("/root/hidden/spcacpt/bcno",ipt_bcno.currentText);
-
- fsetBCNOEnter();
-
- ipt_bcno.selBegin = 0;
- ipt_bcno.selEnd = ipt_bcno.currentText.length;
-
- }
- }*/
-
- // 검체조회 검색내용
- function fKeyEventref(){
-
- inputEnterKey("ipt_text", "DOMActivate");
- model.setvalue("/root/hidden/spcref/refcnts",ipt_text.currentText);
- fGetSpcListref();
- 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 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/cd"));
- 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/Data5", model.getValue("/root/hidden/labelyn"));
- model.setValue("/root/send/NL", model.getValue("root/properties/menu/menuparam"));
- //model.setValue("/root/send/NL", "N");
-
- submit("TXLLJ00105");
- grd_spclist.row = (grd_spclist.rows-1);
-
- var gridRow = grd_spclist.rows;
- grd_spclist.topRow = gridRow;
-
- // 메세지 표시
- 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", "");
- var msgbcno = model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/bcno");
- for(i =1 ; i < grd_spclist.rows ; i ++){
- if(model.getValue("/root/main/spclist["+i+"]/bcno") == msgbcno
- && model.getValue("/root/main/spclist["+i+"]/Msg") != "" ){
- grd_spclist.cellStyle("color", i, 1, i, 11) = "#aaaaaa";
- model.setValue("/root/main/spclist["+i+"]/chk", "false");
- }
- }
-
- //grd_spclist.cellStyle("color", (grd_spclist.rows-1), 1, (grd_spclist.rows-1), 9) = "#aaaaaa";
-
- //if(grd_spclist.rows >1){
- // model.setValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/chk", "false");
- //}
-
- }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(); //바코드 프린트 연결 안된데서 실행하면 뻗어요 ~~ // 분주라벨
-
- }
- }
- //if("정상적으로 처리되었습니다." != model.getValue("/root/hidden/error/msg")){
- // model.alert(model.getValue("/root/hidden/error/msg"));
- //}
-
- ipt_bcno.selBegin = 0;
- ipt_bcno.selEnd = ipt_bcno.currentText.length;
-
- // 검체 상세목록 보여주기
- var sRow = grd_spclist.rows;
- if(sRow > 1){
- // 검체 상세목록 보여주기
- fGetSpcDetlList(sRow);
- }
-
- // 유린검체 정보 등록
- 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);
-
- }
- }
- }
-
- }
-
- // 접수시 spcacptbarcdprntcnt 갯수만큼 바코드 출력
-
-
- // if(model.getValue("/root/hidden/barcdcheck") == "1"){ // 바코드 출력 체크박스 체크
-
- if(model.getValue("/root/hidden/spcacpt/spcchoiyn") == "1"){
-
- }else{
-
- if(model.getValue("root/properties/menu/menuparam")=="N"){
- if(model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/Msg") == "" || model.getValue("/root/hidden/barcdcheck") == "1"){
-
- fExeNBarcdPrnt(); //핵의학 바코드 프린트 연결 안된데서 실행하면 뻗어요 ~~
- }
- fGetNAcptCnt(); //접수된 검체개수 보이게
- }else{
- if(model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/Msg") == "" ){
- fExeBarcdPrnt(); //바코드 프린트 연결 안된데서 실행하면 뻗어요 ~~
- }
- //fGetNAcptCnt(); //접수된 검체개수 보이게
- }
-
- }
- model.removeNodeset("/root/main/barcode"); //// ★★★ 임시로막음
-
- // }
-
-
- }
-
- // 핵의학 접수바코드 Cnt 조회
- function fGetNAcptCnt(){
- model.makeValue("/root/send/acptcntdd", model.getValue("/root/hidden/acptcntdd"));
- submit("TRLLJ00201");
- model.removenode("/root/send/acptcntdd");
- }
-
-
- // 유효성 체크
- 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;
- opt_cnt2.visible = true;
-
- }else{
- cap_cnt.visible = false;
- opt_cnt.visible = false;
- opt_cnt2.visible = false;
- }
- fGetNAcptCnt();
- //cap_cnt.refresh();
- //opt_cnt.refresh();
- }
-
- // 검체접수
- /*function fSetSpcAcpt(){
- // 접수 flow
-
- // 검체정보 조회
- model.setValue("/root/send/Data1", model.getValue("/root/hidden/spcacpt/bcno"));
- model.setValue("/root/send/Data2", model.getValue("/root/hidden/spcacpt/refflag")); // 1 : 가접수 2 : 접수
- model.setValue("/root/send/Data3", model.getValue("/root/hidden/spcacpt/spcchoiyn"));
- model.setValue("/root/send/Data4", model.getValue("/root/hidden/spcacpt/testmdlcd"));
-
- submit("TXLLJ00101");
- //alert("grd_spclist.rows= " +grd_spclist.rows + " grd_spclist.row= " + grd_spclist.row);
- if(model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/Msg") != "" ){
- //alert(model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/Msg"));
- var msg = model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/Msg");
- messageBox(msg , "I001");
- }
-
- // 검체상세목록 조회
- //if(grd_spclist.rows >= 1){
- // model.setValue("/root/send/Data1", model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/bcno"));
- // submit("TRLLJ00101");
- //}
-
- // 유린검체여부 Y 일때 팝업뜰때
- if(model.getValue("/root/main/spclist/urineyn")== "Y"){
-
- var bcno = model.getValue("/root/hidden/spcacpt/bcno");
- model.setValue("/root/hidden/bcno", bcno);
-
- window.load("SPLLJ90200_UrineVolume.xrw","modeless", "SPLLJ90200_UrineVolume", "width:300px; height:200;min:hidden;max:hidden;align:center", "/root/hidden/bcno", "/root/hidden/bcno");
- }
-
- //model.refresh();
- var col = grd_spclist.col;
-
- model.setValue("/root/send/Data1", model.getValue("/root/hidden/spcacpt/bcno"));
- submit("TRLLJ00101");
- }
- */
-
- // 일괄접수 버튼
- 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(i==1){
- if(model.getValue("/root/main/spclist["+i+"]/chk") == "true"){
- bcnolist = grd_spclist.textmatrix(i,4);
- }
- }else{
- if(model.getValue("/root/main/spclist["+i+"]/chk") =="true"){
- bcnolist = bcnolist + "▦" + grd_spclist.textmatrix(i,4);
- }
- }
- */
- if(model.getValue("/root/main/spclist["+i+"]/chk") == "true"){
- bcnolist += model.getValue("/root/main/spclist["+i+"]/bcno") + "▦";
-
- }
- //alert("bcnolist= " +bcnolist);
- 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/cd"));
- model.setValue("/root/send/execdept", model.getValue("/root/hidden/spcacpt/testmdlcd"));
- 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 prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
- //alert("count2= " +count2);
- //for(i=1; i<=count2; i++ ){
-
- var mTF = false;
- var spcTF = false;
- for(i=1; i<=count2; i++ ){
- if(model.getValue("/root/main/barcode/barcodeinfo["+i+"]/spcacptbarcdprntcnt") >0){
- spcTF = true;
- }
-
- if(model.getValue("/root/main/barcode/barcodeinfo["+i+"]/microbarcdprntcnt") >0){
- mTF = true;
- }
- }
-
- // 접수 바코드 출력
- if(spcTF){
- //alert(model.getValue("/root/main/barcode/barcodeinfo["+i+"]/spcacptbarcdprntcnt"));
- if(prtkind=="8"){
- fLisSpcBarcodePrint3("/root/main/barcode/barcodeinfo");
- }else{
- fLisSpcBarcodePrint("/root/main/barcode/barcodeinfo"); // 접수 바코드 출력
- }
- }
- //fLisSpcBarcodePrint("/root/main/barcode/dbarcodeinfo"); // 분주
- fLisSpcBarcodePrintB("/root/main/barcode/dbarcodeinfo"); // 분주 바뀐거
-
- // 미생물 바코드 출력
- if(mTF){
- //alert("qqq");
- fLisMicroWorknoSpcBarcodePrint("/root/main/barcode/barcodeinfo"); // 미생물 작업번호 바코드 출력
- }
- var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
- var portnm = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/commkind");
- // 핵의학 바코드 출력
- if(model.getValue("/root/hidden/spcacpt/testmdlcd")=="NR"){
- copyNodeType("/root/main/barcode/nbarcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
-
-
- if( (prtkind == "9" && portnm == "01") || (prtkind == "11" && portnm == "01") || prtkind == "10" || prtkind == "2" || prtkind == "6" || prtkind == "7"){
- fLisNSpcBarcodePrint2("/root/main/barcode/nbarcodeinfo");
- }
- else{
- fLisNSpcBarcodePrint("/root/main/barcode/nbarcodeinfo");
- }
-
- }
- //}
- model.removeNodeset("/root/main/barcode");
-
- model.resetInstanceNode("/root/main/spclist");
- grd_spclist.rebuild();
-
- model.resetInstanceNode("/root/main/detllistref");
- grd_detllist.rebuild();
- }
-
- }
-
-
- /*
- var tg = model.vsGrid("grid1");
- var iMaxRow = TFGetGridCount("grid1");
- var sBCNO;
- if ( TFGetMsgBox(5, "모든 리스트를 접수 하시겠습니까?", "확인", "q", "YN") == 6){
- model.removeNodeset("/root/MainData/BCNO");
- for( i=1; i<=iMaxRow; i++) {
- if(i==1) {
- sBCNO = tg.TextMatrix (i, 2);
- } else {
- sBCNO = sBCNO + "▦" + tg.TextMatrix (i, 2);
- }
- }
-
- // SendData Set
- model.setvalue("/root/SendData/Mode", "reqSetJeopSuJeongBo");
- model.setvalue("/root/SendData/Data1", sBCNO);
-
- // Submit
- model.submitInstance("reqGetMessageData");
- model.resetinstanceNode("/root/SendData");
-
- if(model.getValue("/root/MainData/BCNO/errMsg") == "접수된 검체번호") model.alert("이미접수된 검체번호입니다.");
- if(model.getValue("/root/MainData/BCNO/errMsg") == "접수번호 오류") model.alert("잘못된 접수번호입니다.");
- if(model.getValue("/root/MainData/BCNO/errMsg") == "다른 과의 검체") model.alert("다른 과의 검체입니다.\n\r\n\r확인하시고 다시 접수 하여 주십시요");
- if(model.getValue("/root/MainData/BCNO/errMsg") == "퇴원환자") model.alert("퇴원환자입니다.\n\r\n\r확인하시고 다시 접수 하여 주십시요");
- if(model.getValue("/root/MainData/BCNO/errMsg") == "퇴원통보환자") model.alert("퇴원통보환자입니다.\n\r\n\r확인하시고 다시 접수 하여 주십시요");
- if(model.getValue("/root/MainData/BCNO/errMsg") == "입원환자의 외래처방") model.alert("해당 환자는 현재 입원해 있습니다.\n\r\n\r입원 환자의 외래 처방은 접수가 불가능 합니다.\n\r\n\r확인하여 주십시요");
- if(model.getValue("/root/MainData/BCNO/errMsg") == "가퇴원환자") model.alert("가퇴원환자입니다.\n\r\n\r확인하시고 다시 접수 하여 주십시요");
-
- TFSetMessage("/root/MainData");
-
- fnBtnClear_Click(); // clear
-
- }else{
-
- model.alert("접수가 취소되었습니다.");
- return false;
- }
-
- model.vbscript.FreeObj(tg);
- */
-
- }
-
-
-
- // 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 일경우 팝업띄워서 등록
- //window.load("SPLLJ90200_UrineVolume.xrw","modeless", "SPLLJ90200_UrineVolume", "width:340px; height:180;min:hidden;max:hidden;align:center", "/root/hidden/bcno", "/root/hidden/bcno");
- open("SPLLJ90200", 1 ,300, 400, "SPLLJ90200","/root/hidden/bcno","/root/hidden/bcno");
-
- }
-
-
- // 특이사항 저장 버튼 클릭
- 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/menuparam", model.getValue("root/properties/menu/menuparam"));
- submit("TRLLJ00101");
-
- // 응급 빨간색으로 표시
- for(i=1; i<grd_detllist.rows; i++){
- if("Y" == model.getValue("/root/main/detllistref["+i+"]/erprcpflag")){
- //alert("aa= " + i + " " + model.getValue("/root/main/detllistref["+i+"]/erprcpflag"));
- grd_detllist.cellStyle("color", i, 3, i, 3) = "#ff3300";
- }
- if("0" == model.getValue("/root/main/detllistref["+i+"]/spcstat")){
- grd_detllist.cellStyle("color", i, 1, i, 4) = "#aaaaaa";
- }
-
- }
-
- }
-
- // 검체조회 tab 검체조회
- function fGetSpcListref(){
- //model.resetInstanceNode("/root/main/spclistref");
- if(fSetRefFromdd()==true){
-
- model.setValue("/root/send/refbase", model.getValue("/root/hidden/spcref/refbase"));
- 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/reftext", model.getValue("/root/hidden/spcref/refcnts"));
- model.setValue("/root/send/execdept", model.getValue("/root/hidden/spcref/execdept"));
- model.setValue("/root/send/rsltflag" , model.getValue("/root/hidden/spcref/rsltflag"));
-
- model.setValue("/root/send/genrflag", model.getValue("/root/hidden/spcref/genrflag"));
- var isvalue = "";
- if(model.getValue("/root/hidden/spcref/isbcoll") == "1','2','3"){
- isvalue = "'" + model.getValue("/root/hidden/spcref/isbcoll") + "'";
- }
- if(model.getValue("/root/hidden/spcref/isacp") == "4-"){
- if(isvalue == ""){
- isvalue = "'" + model.getValue("/root/hidden/spcref/isacp") + "'";
- }else{
- isvalue = isvalue + "," + "'" + model.getValue("/root/hidden/spcref/isacp") + "'";
- }
- }
- if(model.getValue("/root/hidden/spcref/isrslt") == "41','42','44','45"){
- if(isvalue == ""){
- isvalue = "'" + model.getValue("/root/hidden/spcref/isrslt") + "'";
- }else{
- isvalue = isvalue + "," + "'" + model.getValue("/root/hidden/spcref/isrslt") + "'";
- }
- }
- if(model.getValue("/root/hidden/spcref/iscancle") == "0"){
- if(isvalue == ""){
- isvalue = "'" + model.getValue("/root/hidden/spcref/iscancle") + "'";
- }else{
- isvalue = isvalue + "," + "'" + model.getValue("/root/hidden/spcref/iscancle") + "'";
- }
- }
- model.makeValue("/root/send/isvalue", isvalue);
-
- model.setValue("/root/send/NL", model.getValue("root/properties/menu/menuparam"));
- //model.setValue("/root/send/NL", "N");
- submit("TRLLJ00103"); // 검체접수화면 검체조회
- model.removenode("/root/send/isvalue");
- initGridStyle("grd_spcreflist");
- if(getNodesetCount("/root/main/spclistref") > 0){
- setRowStyle("grd_spcreflist", "5", "d", "retestyn", "equal");
- setRowStyle("grd_spcreflist", "5", "e", "retestyn", "equal");
- setRowStyle("grd_spcreflist", "5", "t", "retestyn", "equal");
- setRowStyle("grd_spcreflist", "5", "D", "retestyn", "equal");
- setRowStyle("grd_spcreflist", "5", "E", "retestyn", "equal");
- setRowStyle("grd_spcreflist", "5", "T", "retestyn", "equal");
- }
-
- }
- }
-
- // 부적합검체등록
- 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);
-
- //if(bcno != ""){
- //window.load("../../../lis/commonweb/xrw/SPLLJ90100_부적합검체등록.xrw","modeless", "SPLLJ90100_부적합검체등록", "width:360px; height:465;min:hidden;max:hidden;align:center", "/root/hidden/bcno", "/root/hidden/bcno");
- modal("SPLLJ90100_부적합검체등록","","","","","/root/hidden/bcno","/root/hidden/bcno");
- //open("SPLLJ90100", 1 ,300, 400, "SPLLJ90100", "", "/root/hidden/bcno", "/root/hidden/bcno");
- //}
- }
-
-
-
- // 채혈접수취소등록
- function fSetAcptCncl(){
-
- if(grd_spcreflist.row < 1 ){
- messageBox("선택된 검체가 없습니다. 검체를 ", "C002"); // 선택하십시오!
- return;
- }
- if(model.getValue("/root/main/spclistref["+grd_spcreflist.row+"]/bcnostat") == "채혈"){
- alert("채혈상태인 검체 입니다."); // 선택하십시오!
- return;
- }
-
- model.setValue("/root/hidden/canceldata/data1", model.getValue("/root/main/spclistref["+grd_spcreflist.row+"]/bcno"));
- model.setValue("/root/hidden/canceldata/data2", "02");
-
- //modal("SPLLC90400", "", "", "", "", "/root/hidden/canceldata", "/root/hidden/openerdata");
- //window.load("../../../lis/commonweb/xrw/SPLLC90400_채혈접수취소등록.xrw", "modeless", "SPLLC90400_채혈접수취소등록", "width:360px; height:240px; min:hidden;max:hidden;align:center", "/root/hidden/canceldata", "/root/hidden/openerdata");
- open("SPLLC90400", 1 ,300, 400, "SPLLC90400","/root/hidden/canceldata", "/root/hidden/openerdata");
-
-
-
- }
-
- // 바코드 프린터 설정 삭제예정
- function fSetPrntSetting(){
-
- //modal("SPLLC90100","","","","","/root/hidden","/root/hidden");
- //window.load("../../../lis/commonweb/xrw/SPLLC90100_바코드프린터설정.xrw","modeless", "SPLLC90100_바코드프린터설정", "width:350px; height:190;min:hidden;max:hidden;align:center", "/root/hidden", "/root/hidden");
- 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;
- }
- // 검체조회
- else if(ref == "B"){
- group7.visible = true;
- group6.visible = false;
- }
- }
-
- // 접수 시 바코드 출력
- function fExeBarcdPrnt(){
- var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
- //var brows = getNodesetCount("/root/hidden/barcode/barcodeinfo");
- // 2007-10-14 수정
- //for(i=1; i<=brows; i++){
- model.makeNode("/root/main/barcode/barcodeinfo/cntflag");
- model.setValue("/root/main/barcode/barcodeinfo/cntflag", "acpt");
- //model.makeValue("/root/main/barcode/barcodeinfo/cntflag", "acpt");
- //}
- // 접수 바코드 출력
- if(model.getValue("/root/main/barcode/barcodeinfo/spcacptbarcdprntcnt") >0){
- //fLisSpcBarcodePrint("/root/main/barcode/barcodeinfo["+(grd_spclist.rows-1)+"]"); // 접수 바코드 출력
- if(prtkind == "8"){
- fLisSpcBarcodePrint3("/root/main/barcode/barcodeinfo");
- }else{
- fLisSpcBarcodePrint("/root/main/barcode/barcodeinfo"); // 접수 바코드 출력
- }
- }
-
- //var drows = getNodesetCount("/root/hidden/barcode/dbarcodeinfo");
- //for(i=1; i<drows; i++){
- // model.makeValue("root/main/barcode/dbarcodeinfo["+i+"]/cntflag", "acpt");
- //}
-
- model.makeValue("/root/main/barcode[2]/dbarcodeinfo/cntflag", "acpt");
- fLisSpcBarcodePrint("/root/main/barcode/dbarcodeinfo"); // 분주
-
-
- // 미생물 바코드 출력
- var Mcount = getNodesetCount("/root/main/barcode/barcodeinfo");
- //alert(Mcount);
- for(i = 1; i < Mcount+1; i++){
- if(model.getValue("/root/main/barcode/barcodeinfo["+i+"]/microbarcdprntcnt") > 0){
- //alert("미생물 출력하러감");
- fLisMicroWorknoSpcBarcodePrint("/root/main/barcode/barcodeinfo"); // 미생물 작업번호 바코드 출력
- return;
- }
- }
-
-
- /*
- //model.removeNodeset("/root/hidden/barcode/barcodeinfo");
- //var bcno = "";
- //bcno = "'" + model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/bcno") + "'";
- //model.makeValue("/root/send/bcnolist" , bcno);
-
- //--------------------
- //submit("TRLZZ00102");
- model.makeNode("/root/hidden/barcode/barcodeinfo/cntflag");
- model.setValue("/root/hidden/barcode/barcodeinfo/cntflag", "acpt");
-
- if(model.getValue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/commkind") == ""){
- //alert("프린터 설정이 필요합니다.");
- }else{
- //model.makeNode("/root/hidden/barcode/barcodeinfo/commkind");
- //model.setValue("/root/hidden/barcode/barcodeinfo/commkind", model.getValue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/commkind"));
- copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
- }
- // 접수 바코드 출력
- if(model.getValue("/root/hidden/barcode/barcodeinfo/spcacptbarcdprntcnt") >0){
- copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
- fLisSpcBarcodePrint("/root/hidden/barcode/barcodeinfo"); // 접수 바코드 출력
- }
- // 미생물 바코드 출력
- if(model.getValue("/root/hidden/barcode/barcodeinfo/microbarcdprntcnt") > 0){
- copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
- fLisMicroWorknoSpcBarcodePrint("/root/hidden/barcode/barcodeinfo"); // 미생물 작업번호 바코드 출력
- }
-
- */
- }
-
- // 핵의학 바코드 출력
- function fExeNBarcdPrnt(){
- /*model.removeNodeset("/root/hidden/barcode/barcodeinfo");
- var bcno = "";
- bcno = "'" + model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/bcno") + "'";
- model.makeValue("/root/send/bcnolist" , bcno);
-
- submit("TRLZZ00105");
-
- if(model.getValue("/root/properties/menu/menuparam")=="N"){
- copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
- }else{
- if(model.getValue("/root/hidden/barcode/barcodeinfo/divgrupcd") != ""){
- //alert(model.getValue("/root/hidden/barcode/barcodeinfo/divgrupcd"));
- copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
- }
- }
-
- // 분주바코드출력
- fLisNSpcBarcodePrint("/root/hidden/barcode/barcodeinfo"); // 핵의학 바코드 출력
- */
-
- copyNodeType("/root/main/barcode/nbarcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
- var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
- var portnm = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/commkind");
- if( (prtkind == "9" && portnm == "01") || (prtkind == "11" && portnm == "01") || prtkind == "10" || prtkind == "2" || prtkind == "6" || prtkind == "7"){
- fLisNSpcBarcodePrint2("/root/main/barcode/nbarcodeinfo"); // 핵의학 바코드 출력
- }else{
- fLisNSpcBarcodePrint("/root/main/barcode/nbarcodeinfo"); // 핵의학 바코드 출력
- }
- //model.removeNodeset("/root/main/barcode/nbarcodeinfo");
- }
- // 바코드 재출력
- 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;
- }
- }
- //alert("bcno= " +bcno);
- if(bcollTF == false){
- alert("재출력할 검체를 선택하십시오. ");
- }
-
- if(bcollTF) {
- bcno = bcno.substring( 0 ,bcno.length - 1);
- model.makeValue("/root/send/bcnolist" , bcno);
-
- //--------------------
- submit("TRLZZ00105");
- //model.makeNode("/root/hidden/barcode/barcodeinfo/cntflag");
- //model.setValue("/root/hidden/barcode/barcodeinfo/cntflag", "acpt");
- copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
- //-----------------------------------------------------
-
- var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
- var portnm = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/commkind");
- if( (prtkind == "9" && portnm == "01") || (prtkind == "11" && portnm == "01") || prtkind == "10" || prtkind == "2" || prtkind == "6" || prtkind == "7"){
- fLisNSpcBarcodePrint2("/root/hidden/barcode/barcodeinfo"); // 핵의학 바코드 출력
- }else{
- fLisNSpcBarcodePrint("/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 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"));
-
- 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.setValue("/root/send/instcd", getUserInfo("posinstcd"));
- 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);
-
- 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.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/tclsnm");
-
- // var count = getNodesetCount("/root/main/detltestlist");
- // var testlist = "";
-
- // for(j = 1; j <= count; j++) {
- // testlist = testlist + model.getValue("/root/main/detltestlist["+j+"]/tclsnm") + "\n";
- // }
-
- // model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/tclsnm", testlist);
-
-
- 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 today = getCurrentDate();
- var todd = model.getValue("/root/hidden/spcref/reftodd");
-
- var mDate = todd.toDate("YYYYMMDD").getAddDate(-3);
- var fromdd = model.getValue("/root/hidden/spcref/reffromdd");
- //alert("mDate= " +mDate);
- //alert("fromdd= " + fromdd);
- if( mDate.getDateFormat("YYYYMMDD") > fromdd){
- model.alert("3일 이내의 기간으로 검색하세요.");
- //model.setValue("/root/hidden/spcref/reffromdd", mDate.getDateFormat("YYYYMMDD"));
- return false;
- }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));
- /* model.makeValue("/root/hidden/report["+prtrow+"]/pid", model.getValue("/root/main/spclistref["+i+"]/pid"));
- model.makeValue("/root/hidden/report["+prtrow+"]/patnm", model.getValue("/root/main/spclistref["+i+"]/patnm"));
- model.makeValue("/root/hidden/report["+prtrow+"]/orddeptnm", model.getValue("/root/main/spclistref["+i+"]/orddeptcd"));
- model.makeValue("/root/hidden/report["+prtrow+"]/wardroom", model.getValue("/root/main/spclistref["+i+"]/wardroom"));
- model.makeValue("/root/hidden/report["+prtrow+"]/tsectcd", model.getValue("/root/main/spclistref["+i+"]/tsectcd"));
- model.makeValue("/root/hidden/report["+prtrow+"]/workno", model.getValue("/root/main/spclistref["+i+"]/workno"));
- model.makeValue("/root/hidden/report["+prtrow+"]/bcno", model.getValue("/root/main/spclistref["+i+"]/bcno"));
- model.makeValue("/root/hidden/report["+prtrow+"]/spcnm", model.getValue("/root/main/spclistref["+i+"]/spcnm"));
- model.makeValue("/root/hidden/report["+prtrow+"]/spcltestseq", model.getValue("/root/main/spclistref["+i+"]/spcltestseq"));
- model.makeValue("/root/hidden/report["+prtrow+"]/prcpdd", model.getValue("/root/main/spclistref["+i+"]/prcpdd"));
- model.makeValue("/root/hidden/report["+prtrow+"]/spcstat", model.getValue("/root/main/spclistref["+i+"]/spcstat"));*/
-
- prtrow ++;
-
- }
- }
-
- if(prtrow < 2){
- messageBox("출력할", "E013");
- return;
- }
- exeReportPreview("RPLLJ00100", "XMLSTR");
- }
-
-
- function fdetllistClick(row){
- model.removeNodeset("/root/hidden/popupmenu");
- if("4" == model.getValue("/root/main/detllistref["+row+"]/spcstat")){
- if(event.button == 3){ // 라이트클릭 메뉴만들기...
- model.makeNode("/root/hidden/popupmenu/grid");
- model.makeNode("/root/hidden/popupmenu/grid/item");
-
- if(grd_detllist.mouseCol == 1 || grd_detllist.mouseCol == 2 || grd_detllist.mouseCol == 3 || grd_detllist.mouseCol == 4){
-
- model.makeValue("/root/hidden/popupmenu/grid/item["+1+"]/name" , "▶ 검체취소");
- model.makeValue("/root/hidden/popupmenu/grid/item["+1+"]/func" , "fdClick");
-
- if(grd_detllist.isCell(event.target) && grd_detllist.mouseRow >= grd_detllist.fixedrows){
- window.setPopupMenu(true , "/root/hidden/popupmenu/grid/item" , "name", "func", true);
- //setPopupMenu("grd_TestInfoCnts" , true, "/root/hidden/popupmenu/grid/item", "name", "func");
- }else{
- window.setPopupMenu(false);
- }
- }
- }
- }
- else{
- window.setPopupMenu(false);
- }
- }
-
- function fdClick(){
- model.setValue("/root/hidden/canceltclsnmlist", "");
- for(i = 1 ; i < grd_detllist.rows ; i++){
- if(model.getValue("/root/main/detllistref["+i+"]/tclscd2") == model.getValue("/root/main/detllistref["+grd_detllist.row+"]/tclscd2")){
- model.setValue("/root/hidden/canceltclsnmlist" ,
- model.getValue("/root/hidden/canceltclsnmlist") + model.getValue("/root/main/detllistref["+i+"]/tclsscrnnm") + ", ");
- }
- }
- modal("SPLLJ90300","","","","","/root/hidden/canceltclsnmlist","/root/hidden/ref/tclsnmlist");
- }
-
- function fcancelClick(){
-
- model.setvalue("/root/send/cancelgrd/status" , "u");
- model.setvalue("/root/send/cancelgrd/chk" , "true");
- model.setvalue("/root/send/cancelgrd/tclscd" , model.getValue("/root/main/detllistref["+grd_detllist.row+"]/tclscd2"));
- model.setvalue("/root/send/cancelgrd/testcd" , "");
- model.setvalue("/root/send/cancelgrd/tclsnm" , model.getValue("/root/main/detllistref["+grd_detllist.row+"]/tclsscrnnm"));
- model.setvalue("/root/send/cancelgrd/bcno2" , model.getValue("/root/main/detllistref["+grd_detllist.row+"]/bcno"));
- model.setvalue("/root/send/cancelgrd/orddeptnm" , model.getValue("/root/main/detllistref["+grd_detllist.row+"]/orddeptnm"));
- model.setvalue("/root/send/cancelgrd/atdrid" , "");
- model.setvalue("/root/send/cancelgrd/spccd" , model.getValue("/root/main/detllistref["+grd_detllist.row+"]/spccd"));
- model.setvalue("/root/send/cancelgrd/genrflagcd" , "");
- model.setvalue("/root/send/cancelgrd/ssectcd" , model.getValue("/root/main/detllistref["+grd_detllist.row+"]/sectcd"));
- model.setvalue("/root/send/cancelgrd/tsectcd" , model.getValue("/root/main/detllistref["+grd_detllist.row+"]/tsectcd"));
- model.setvalue("/root/send/cancelgrd/tclskind" , "");
- model.setvalue("/root/send/cancelgrd/cancelgbn", "04");
- //model.setvalue("/root/send/cancelgrd/resncd", "04000");
- //model.setvalue("/root/send/cancelgrd/resndesc", "검체 Clot 됨");
- model.setvalue("/root/send/cancelgrd/cmt", "");
- model.setvalue("/root/send/cancelgrd/pid", model.getValue("/root/main/detllistref["+grd_detllist.row+"]/pid"));
- model.setvalue("/root/send/cancelgrd/spcstat", model.getValue("/root/main/detllistref["+grd_detllist.row+"]/spcstat"));
-
- if(submit("TXLLJ00302")==true){
- //model.reset();
- }
- fGetSpcDetlList("");
- //grd_detllist.deleteItem(grd_detllist.row);
- }
-
- function fOnmenu(popupParam){
-
- if(popupParam == "fdClick"){
- //alert("메롱");
- fdClick();
- }
-
- }
-
- function fpopupmenu() {
- model.removeNodeset("/root/hidden/popupmenu");
-
- var reqno = model.getValue("/root/main/spclistref["+grd_spcreflist.mouserow+"]/reqno");
- var trustinstcd = model.getValue("/root/main/spclistref["+grd_spcreflist.mouserow+"]/trustinstcd");
-
- if(event.button == 3){ // 라이트클릭 메뉴만들기...
- model.makeNode("/root/hidden/popupmenu/grid");
- model.makeNode("/root/hidden/popupmenu/grid/item");
-
- model.makeValue("/root/hidden/popupmenu/grid/item["+1+"]/name" , "▶ 이전결과");
- model.makeValue("/root/hidden/popupmenu/grid/item["+1+"]/func" , "fbfrslt");
-
- model.makeValue("/root/hidden/popupmenu/grid/item["+2+"]/name" , "▶ 통합결과조회");
- model.makeValue("/root/hidden/popupmenu/grid/item["+2+"]/func" , "fTGyeolGwa");
-
- if(reqno != 0 && trustinstcd == "-"){
- model.makeValue("/root/hidden/popupmenu/grid/item["+3+"]/name" , "▶ 의뢰서 보기");
- model.makeValue("/root/hidden/popupmenu/grid/item["+3+"]/func" , "fRequestPage");
-
- }
-
- if(grd_spcreflist.isCell(event.target) && grd_spcreflist.mouseRow >= grd_spcreflist.fixedrows){
- setPopupMenu("grd_spcreflist", false, "/root/hidden/popupmenu/grid/item", "name", "func");
- }else{
- window.setPopupMenu(false);
- }
- }
- }
-
- function fRequestPage(){
-
- var reqno = model.getValue("/root/main/spclistref["+grd_spcreflist.row+"]/reqno");
- var pid = model.getValue("/root/main/spclistref["+grd_spcreflist.row+"]/pid");
- var prcpcd = model.getValue("/root/main/spclistref["+grd_spcreflist.row+"]/prcpcd");
- var spccd = model.getValue("/root/main/spclistref["+grd_spcreflist.row+"]/spccd");
-
- model.setValue("/root/hidden/request/pid", pid);
- model.setValue("/root/hidden/request/reqno", reqno);
- model.setValue("/root/hidden/request/prcpcd", prcpcd);
- model.setValue("/root/hidden/request/spccd", spccd);
-
- modal("SPLRR91000" ,"","","","","/root/hidden/request", "/root/hidden/reqfrminfo");
-
- }
-
-
- function fTGyeolGwa(){
- modal("SMAER00800 ","","","","","/root/main/spclistref["+grd_spcreflist.row+"]/pid","/root/send/data/singdata/srchpid");
- }
-
- function fbfrslt(){
- //var count = getNodesetCount("/root/main/divgrupnmlist");
- //if(count > 0){
- //var tclscdlist = model.getValue("/root/main/divgrupnmlist[1]/tclscd");
- //for(i=2; i<= count; i++){
- // tclscdlist = tclscdlist + "','" + model.getValue("/root/main/divgrupnmlist["+i+"]/tclscd");
- //}
- //tclscdlist = "'" + tclscdlist + "'";
- model.setValue("/root/send/data6/pid", model.getValue("/root/main/spclistref["+grd_spcreflist.row+"]/pid"));
- model.setValue("/root/send/data6/divgrupcd", model.getValue("/root/main/spclistref["+grd_spcreflist.row+"]/testcd"));
- modal("SPLNR90600","","","","","/root/send/data6","/root/hidden/ref");
- //}
- }
-
-
- function fSetThreeDay(){
-
- var mDate = model.getValue("/root/hidden/spcref/reffromdd").toDate("YYYYMMDD").getAddDate(+3);
- model.setValue("/root/hidden/spcref/reftodd", mDate.getDateFormat("YYYYMMDD"));
- model.refresh();
-
- }
-
-
- function fUpPatinfo(){
- if(grd_spcreflist.col == 4){
- if(getPatientInfo("pid") != model.getValue("/root/main/spclistref["+ grd_spcreflist.row +"]/pid")) {
- if(grd_spcreflist.rows> 1){
- setParameter("errflag", "Y");
- setParameter("condparam", "S" + "▦" + model.getvalue("/root/main/spclistref["+ grd_spcreflist.row +"]/prcpdd")+ "▦"
- + model.getvalue("/root/main/spclistref["+ grd_spcreflist.row +"]/execprcpuniqno") + "▦"
- + model.getvalue("/root/main/spclistref["+ grd_spcreflist.row +"]/instcd") );
-
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
-
- var paminfo = getGlobalVariable("paminfo");
- if((paminfo.length < 0) || (getPatientInfo("pid") != model.getValue("/root/main/spclistref["+ grd_spcreflist.row +"]/pid"))){ //상단정보가 없는 경우
- delPatientInfos(); //환자정보 전체 삭제
-
- var pid = model.getValue("/root/main/spclistref["+ grd_spcreflist.row +"]/pid")
- var hngnm = model.getValue("/root/main/spclistref["+ grd_spcreflist.row +"]/patnm");
- //상단에 올릴 수 있는 정보가 있으면 아래와 같이 설정해 주시면 됩니다. 없으면 안 해주셔도 되구요..
-
- setPatientInfo("pid" , pid); //등록번호
- setPatientInfo("pname" , pid + "|" + hngnm); //환자명
- }
- }
- }
- }
-
-
- function fUpPatinfo2(){
- if(grd_spclist.col == 7){
- if(getPatientInfo("pid") != model.getValue("/root/main/spclist["+ grd_spclist.row +"]/pid")) {
- if(grd_spclist.rows> 1){
- setParameter("errflag", "Y");
- setParameter("condparam", "S" + "▦" + model.getvalue("/root/main/spclist["+ grd_spclist.row +"]/prcpdd")+ "▦"
- + model.getvalue("/root/main/spclist["+ grd_spclist.row +"]/execprcpuniqno") + "▦"
- + model.getvalue("/root/main/spclist["+ grd_spclist.row +"]/instcd") );
-
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
-
- var paminfo = getGlobalVariable("paminfo");
- if((paminfo.length < 0) || (getPatientInfo("pid") != model.getValue("/root/main/spclist["+ grd_spclist.row +"]/pid"))){ //상단정보가 없는 경우
- 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); //환자명
- }
- }
- }
- }
-
-
- function fViewList(){
-
- var viewgbn = model.getValue("/root/hidden/ref/viewgbn");
-
- if(viewgbn == "1"){
-
- grd_spcreflist.colWidth(8) = 0;
- grd_spcreflist.colWidth(9) = 0;
- grd_spcreflist.colWidth(12) = 0;
- }else{
- grd_spcreflist.colWidth(8) = 60;
- grd_spcreflist.colWidth(9) = 60;
- grd_spcreflist.colWidth(12) = 150;
- }
-
-
- }
-
- //검체목록 더블클릭시 바코드 재출력 기능 추가 변경요청서 1606번
- function fBcdPrnt(){
-
- model.removeNodeset("/root/hidden/barcode/barcodeinfo");
-
- var bcno = "'" + model.getValue("/root/main/spclist["+grd_spclist.row +"]/bcno") + "'" ;
- model.makeValue("/root/send/bcnolist" , bcno);
-
- submit("TRLZZ00105");
-
- copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
-
- var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
- var portnm = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/commkind");
- if( (prtkind == "9" && portnm == "01") || (prtkind == "11" && portnm == "01") || prtkind == "10" || prtkind == "2" || prtkind == "6" || prtkind == "7"){
- fLisNSpcBarcodePrint2("/root/hidden/barcode/barcodeinfo"); // 핵의학 바코드 출력
- }else{
- fLisNSpcBarcodePrint("/root/hidden/barcode/barcodeinfo"); // 핵의학 바코드 출력
- }
- }
-
-
- ]]>
- </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:750px; y2:65px; "/>
- <caption id="caption21" class="tit_2" style="left:6px; top:50px; width:100px; height:13px; ">검체목록</caption>
- <caption id="caption1" class="tit_2" style="left:760px; top:50px; width:100px; height:13px; ">검체상세목록</caption>
- <line id="line1" class="line_1" style="x1:760px; y1:65px; x2:1189px; y2:65px; "/>
- <caption id="caption7" class="tit_2" style="left:764px; top:609px; width:108px; height:13px; ">의뢰의사리마크</caption>
- <line id="line3" class="line_1" style="x1:765px; y1:625px; x2:1189px; y2:624px; "/>
- <caption id="caption8" class="cell_1" style="left:764px; top:629px; width:95px; height:83px; ">의뢰의사리마크</caption>
- <line id="line4" class="line_3" style="x1:865px; y1:710px; x2:1190px; y2:711px; "/>
- <datagrid id="grd_spclist" nodeset="/root/main/spclist" caption="^시행부서^접수번호^바코드번호^진료과^병동/병실^등록번호^환자명^검체명^접수일시^가접수일시" colwidth="20, 90, 95, 85, 80, 80,80,80, 160, 80, 80" defaultrows="0" ellipsis="false" mergecellsfixedrows="bycolrec" rowheader="seq" style="left:5px; top:70px; width:745px; height:623px; ">
- <col checkvalue="true,false" ref="chk" type="checkbox"/>
- <col disabled="true" ref="execdeptcd" type="combo" visibility="hidden">
- <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="orddeptcd"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="spccd"/>
- <col ref="spcacptdt" format="yyyy-mm-dd"/>
- <col ref="spcarvdt" format="yyyy-mm-dd"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_spclist.isCell(event.target) && grd_spclist.mouseRow >= grd_spclist.fixedrows){
- var col = grd_spclist.col;
-
- // 체크박스(1), 검체별특이사항(10) col 제외
- //if(col != 1 && col != 10){
- //if(col != 1){
- if(col > 4){
- // 검체상세목록 조회
- //var grow = grd_spclist.row;
- var grow = "";
- fGetSpcDetlList(grow);
-
- }
- fUpPatinfo2();
- }
-
-
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //더블클릭하면 바코드 재발행한다
- if(grd_spclist.isCell(event.target) && grd_spclist.mouseRow >= grd_spclist.fixedrows){
- if(grd_spclist.col == grd_spclist.colRef("bcno")){
-
- fBcdPrnt();
-
- var grow = "";
- fGetSpcDetlList(grow);
- fUpPatinfo2();
- }
- }
- ]]>
- </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[
- // 바코드번호에 버튼 눌렀을때
- //fSetSpcAcpt();
- //fSetBCNO();
- fsetBCNOEnter();
-
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- //fKeyEventacpt();
- 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");
- //grd_spclist.rebuild();
- //grd_spclist.removeItem();
- model.refresh();
- ]]>
- </script>
- </select>
- <select id="checkbox2" ref="/root/hidden/spcacpt/resetyn" class="checkbox_search" visibility="hidden" 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" visibility="hidden" 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, 60,60" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:760px; top:70px; width:429px; height:527px; ">
- <col ref="tclscd"/>
- <col ref="tclsscrnnm" style="text-align:left; "/>
- <col ref="erprcpflag"/>
- <col ref="workno"/>
- <col ref="phone"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fdetllistClick(grd_detllist.mouseRow);
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseout">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- </datagrid>
- <button id="btn_spcf" class="btn2_letter6" style="left:663px; 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:865px; top:630px; width:324px; height:80px; text-align:left; "/>
- <output id="opt_cnt" ref="/root/main/acptcntlist/acptcnt" visibility="hidden" style="left:552px; top:45px; width:95px; height:19px; font-weight:bold; text-align:center; "/>
- <caption id="cap_cnt" class="tit_2" visibility="hidden" style="left:225px; top:50px; width:140px; height:13px; ">접수검체 / 바코드 :</caption>
- <select id="checkbox1" ref="/root/hidden/barcdcheck" overflow="visible" appearance="full" style="left:1095px; top:45px; 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:870px; top:43px; width:141px; height:19px; font-family:새굴림; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/LB0106">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <input id="input1" ref="/root/hidden/acptcntdd" class="input_search" navindex="10" inputtype="date" format="yyyy-mm-dd" style="left:458px; top:45px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetNAcptCnt();
- ]]>
- </script>
- </input>
- <output id="opt_cnt2" ref="/root/main/acptcntlist/todayacptcnt" visibility="hidden" style="left:359px; top:45px; width:95px; height:19px; font-weight:bold; text-align:center; "/>
- </case>
- <case id="case2">
- <line id="line2" class="line_1" style="x1:5px; y1:100px; x2:1190px; y2:100px; "/>
- <caption id="caption9" class="tit_2" style="left:6px; top:85px; width:80px; height:13px; ">검체목록</caption>
- <group id="group5" style="left:5px; top:5px; width:1185px; height:65px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1184px; height:65px; "/>
- <line id="line6" class="line_4" style="x1:1113px; y1:7px; x2:1113px; y2:29px; "/>
- <caption id="caption13" class="search_name" style="left:845px; top:9px; width:87px; height:17px; ">검색구분 :</caption>
- <caption id="caption14" class="search_name" style="left:558px; top:9px; width:86px; height:17px; ">조회일자 :</caption>
- <caption id="caption16" class="search_no_b" style="left:739px; top:9px; width:15px; height:17px; text-align:center; ">~</caption>
- <caption id="caption17" class="search_name" style="left:299px; top:9px; width:90px; height:17px; ">조회기준 :</caption>
- <caption id="caption2" class="search_name" style="left:5px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
- <input id="ipt_text" ref="/root/hidden/spcref/refcnts" class="input_search" navindex="12" style="left:1017px; top:8px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- //fKeyEventref();
- fKeyEvent();
- ]]>
- </script>
- </input>
- <button id="btn_ref" class="btn1_letter2" navindex="13" style="left:1123px; top:7px; 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:934px; top:8px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>환자명</label>
- <value>3</value>
- </item>
- <item>
- <label>환자번호</label>
- <value>1</value>
- </item>
- <item>
- <label>바코드번호</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <select1 id="rdo_acptdd" ref="/root/hidden/spcref/refbase" class="radio_search" navindex="8" appearance="full" cols="2" overflow="visible" style="left:392px; top:11px; width:165px; height:13px; ">
- <choices>
- <item>
- <label>검체접수일</label>
- <value>1</value>
- </item>
- <item>
- <label>검체채취일</label>
- <value>2</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:649px; top:8px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fSetRefFromdd();
- fSetThreeDay();
- ]]>
- </script>
- </input>
- <input id="ipt_reftodd" ref="/root/hidden/spcref/reftodd" class="input_search" navindex="10" inputtype="date" format="yyyy-mm-dd" style="left:752px; top:8px; width:90px; height:19px; "/>
- <select id="checkbox4" ref="/root/hidden/spcref/isbcoll" overflow="visible" appearance="full" style="left:95px; top:10px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>채혈</label>
- <value>1','2','3</value>
- </item>
- </choices>
- </select>
- <select id="checkbox5" ref="/root/hidden/spcref/isacp" overflow="visible" appearance="full" style="left:145px; top:10px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>접수</label>
- <value>4-</value>
- </item>
- </choices>
- </select>
- <select id="checkbox6" ref="/root/hidden/spcref/isrslt" overflow="visible" appearance="full" style="left:195px; top:10px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>보고</label>
- <value>41','42','44','45</value>
- </item>
- </choices>
- </select>
- <select id="checkbox7" ref="/root/hidden/spcref/iscancle" overflow="visible" appearance="full" style="left:245px; top:10px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>취소</label>
- <value>0</value>
- </item>
- </choices>
- </select>
- <select id="checkbox8" ref="/root/hidden/spcref/rsltflag" overflow="visible" appearance="full" style="left:1040px; top:41px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>최종결과</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <caption id="caption12" class="search_name" style="left:5px; top:39px; width:98px; height:17px; ">입/외 구분 :</caption>
- <select1 id="radio1" ref="/root/hidden/spcref/genrflag" class="radio_search" navindex="8" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:108px; top:40px; width:157px; height:16px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>00</value>
- </item>
- <item>
- <label>입원</label>
- <value>1</value>
- </item>
- <item>
- <label>외래</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- </group>
- <datagrid id="grd_spcreflist" nodeset="/root/main/spclistref" caption="^등록번호^바코드번호^환자명^주민번호^연령^성별^진료과^주치의^병동/병실^검사명^검체명^검체상태^결과값^등록일자^처방일자^채혈일자^접수일자^작업번호^Lab 부여일자^결과일시^재검^Urin vol.^참고치^단위^검사자^취소정보" colsep="^" colwidth="21, 70, 70, 65, 100, 30, 30, 60, 60, 75, 150, 80, 65, 70, 104, 80, 104, 104, 104, 104, 100, 100, 70, 120, 60, 70, 280" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshow" frozencols="14" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25px" rowsep="|" tooltip="true" style="left:5px; top:105px; width:1185px; height:603px; text-align:center; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="pid" type="input" style="text-align:center; "/>
- <col ref="bcno" type="input" style="text-align:left; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="rrgstno" style="text-align:center; "/>
- <col ref="patage" style="text-align:center; "/>
- <col ref="patsex" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:left; "/>
- <col ref="orddrnm" style="text-align:left; "/>
- <col ref="wardroom" style="text-align:left; "/>
- <col ref="tclsnm" style="text-align:left; "/>
- <col ref="spcnm" style="text-align:left; "/>
- <col ref="bcnostat" style="text-align:left; "/>
- <col ref="reptrslt" style="text-align:left; "/>
- <col ref="rgstdt" format="yyyy-mm-dd hh:nn" style="text-align:left; "/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:left; "/>
- <col ref="bcolldt" style="text-align:left; "/>
- <col ref="workdd" style="text-align:left; "/>
- <col ref="workno"/>
- <col ref="nmedworkdt" format="yyyy-mm-dd hh:nn" style="text-align:left; "/>
- <col ref="lastreptdt" format="yyyy-mm-dd hh:nn" style="text-align:left; "/>
- <col ref="retestyn" visibility="hidden"/>
- <col ref="urinextrvol" style="text-align:center; "/>
- <col ref="reflh" style="text-align:center; "/>
- <col ref="rvalchar" style="text-align:center; "/>
- <col ref="reptnm" style="text-align:center; "/>
- <col ref="spccnclinfo" style="text-align:left; "/>
- <script type="javascript" ev:event="onmouseout">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fpopupmenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fUpPatinfo();
- ]]>
- </script>
- </datagrid>
- <!--<object id="CommAX" visibility="hidden" clsid="{35cc9cfa-e6f8-4b22-b6d2-fe7cd108f943}" style="left:145px; top:200px; width:45px; height:45px; "/>-->
- <button id="btn_excel" class="btn2_letter4" style="left:1126px; top:79px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fExeExcel(grd_worklistdetl);
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != ""){
- grd_spcreflist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <caption id="caption5" class="search_name" visibility="hidden" style="left:220px; top:79px; width:86px; height:17px; ">시행부서 :</caption>
- <select1 id="combo1" ref="/root/hidden/spcref/execdept" class="combo_search" navindex="7" visibility="hidden" appearance="minimal" itemcount="20" style="left:308px; top:78px; width:117px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0106">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select id="checkbox9" ref="/root/hidden/ref/viewgbn" overflow="visible" appearance="full" style="left:100px; top:85px; width:100px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>간략보기</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fViewList();
- ]]>
- </script>
- </select>
- </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>
- </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.reset();
- model.removeNodeset("/root/main/spclistref");
- grd_spcreflist.rebuild();
- ]]>
- </script>
- </button>
- <button id="btn_acptcancel" class="btn4_letter4" navindex="14" style="left:109px; 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" visibility="hidden" style="left:5px; 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[
- //model.reset();
- 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[
- //fSetPrntSetting();
- 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>
- </group>
- <output id="output5" ref="/root/main/detllistref/scrn" class="output_fix" visibility="hidden" style="left:130px; top:112px; width:88px; height:19px; "/>
- <caption id="caption4" class="cell_1" visibility="hidden" style="left:86px; top:112px; width:44px; height:19px; ">동의서</caption>
- <script type="javascript" ev:event="onmenu">
- <![CDATA[
- var popupParam = event.description;
- fOnmenu(popupParam);
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|