12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAHR00500.xrw
- * 설 명 : 종합건진 종합판정관리
- * 설 계 자 : 손주연
- * 작 성 자 : 손주연
- * 작 성 일 : 2007.10.01
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <judgdetl>
- <rsltlst>
- <item>
- <testnm/>
- <rslt1/>
- <judgrsltcnts1/>
- <rslt2/>
- <judgrsltcnts2/>
- <rslt3/>
- <judgrsltcnts3/>
- <rsltunit/>
- <stndval/>
- <testcd/>
- <execprcpuniqno/>
- <prcpdd/>
- </item>
- <itemtext>
- <testnm/>
- <testcd/>
- <rslt1/>
- <rslt2/>
- <rslt3/>
- <execprcpuniqno/>
- <prcpdd/>
- </itemtext>
- <rslttextinfo>
- <rslt1/>
- <rslt2/>
- <rslt3/>
- <orddd1/>
- <orddd2/>
- <orddd3/>
- </rslttextinfo>
- <itemorddd>
- <orddd1/>
- <orddd2/>
- <orddd3/>
- <hopedd1/>
- <hopedd2/>
- <hopedd3/>
- </itemorddd>
- </rsltlst>
- <judginfo>
- <item>
- <shrtengjudgcnts/>
- <engjudgcnts/>
- <shrthngjudgcnts/>
- <hngjudgcnts/>
- <pkgnm/>
- <judgdrid/>
- <judgdd/>
- <judgtm/>
- <rsltcnstdrid/>
- </item>
- <itemsick>
- <sickcd/>
- <sicknm/>
- <judgcd/>
- <cmpycd/>
- </itemsick>
- </judginfo>
- </judgdetl>
- <judgexmpcdlst>
- <item>
- <lvl/>
- <sel/>
- <judgexmpcd/>
- <judghangshrtcnts/>
- <judgengshrtcnts/>
- <judghangcnts/>
- <judgengcnts/>
- </item>
- </judgexmpcdlst>
- <judgpatlst>
- <item>
- <hngnm/>
- <engnm/>
- <pid/>
- <sex/>
- <age/>
- <statflag/>
- <ordtm/>
- <orddd/>
- <pkgcd/>
- <pkgnm/>
- <cmpycd/>
- <cmpynm/>
- <hopedd/>
- <rsrvtm/>
- <judgdd/>
- <judgdrid/>
- <acptremcnts/>
- <rsrvdd/>
- <rsrvno/>
- <cretno/>
- <rgstno1/>
- <rgstno2/>
- <mpphontel/>
- <hometel/>
- </item>
- </judgpatlst>
- <inqrinfo>
- <inqr/>
- </inqrinfo>
- <seqdata/>
- <afexamlist>
- <item/>
- </afexamlist>
- </main>
- <send>
- <srchhealexamflag/>
- <srchhealexamdetlflag/>
- <srchjudgdrid/>
- <srchfromdd/>
- <srchtodd/>
- <srchpid/>
- <srchorddd/>
- <srchpnm/>
- <srchrsrvdd/>
- <srchrsrvno/>
- <srchinstcd/>
- <srchstatflag/>
- <srchcretno/>
- <srchcmpycd/>
- <srchrgstno1/>
- <srchrgstno2/>
- <savedata>
- <savesick/>
- <healexamflag/>
- <rsrvdd/>
- <rsrvno/>
- <instcd/>
- <pkgcd/>
- <pid/>
- <orddd/>
- <shrthngjudgcnts/>
- <shrtengjudgcnts/>
- <hngjudgcnts/>
- <engjudgcnts/>
- </savedata>
- <srchstatflag2/>
- <iemr/>
- <iemr2/>
- <srchhealexamplacecd/>
- <windowloadinstance>SMAHR00500</windowloadinstance>
- <srchafexam>
- <healexamflag/>
- <rsrvdd/>
- <rsrvno/>
- </srchafexam>
- <saveAfexam>
- <item/>
- </saveAfexam>
- </send>
- <init>
- <baseinfo>
- <choiflaglst/>
- <hedetlflaglst/>
- <rslttypelst/>
- <plceflag/>
- <rsltcnstflaglst/>
- <pamcdlst>
- <uncocdlst/>
- <disccdlst/>
- </pamcdlst>
- <inqrflag/>
- <drlst>
- <itemdr/>
- </drlst>
- <statlst/>
- <healexamplacelst/>
- <formcdlst/>
- <orddeptcdlst/>
- </baseinfo>
- <send>
- <srchhealexamdetlflag/>
- <srchjudgdrid/>
- <srchfromdd/>
- <srchtodd/>
- <srchpid/>
- <srchpnm/>
- <srchhealexamdetlflag2/>
- <srchcretno/>
- <item1>
- <pid/>
- <hngnm/>
- </item1>
- <item2>
- <pid/>
- <hngnm/>
- <sex/>
- <age/>
- <telno/>
- <mpphon/>
- </item2>
- <item3>
- <cmpycd/>
- <cmpynm/>
- </item3>
- </send>
- </init>
- <hidden>
- <medpatinfo/>
- <temp_1/>
- <checkseq/>
- </hidden>
- <temp>
- <okflag/>
- <patinfo>
- <item>
- <sex/>
- <age/>
- <pid/>
- <hngnm/>
- </item>
- </patinfo>
- <histlst>
- <item>
- <histinfo/>
- <rsrvdd/>
- <rsrvno/>
- </item>
- </histlst>
- <judgexmpdetl>
- <item>
- <judgexmpcd/>
- <judghangshrtcnts/>
- <judgengshrtcnts/>
- <useyn/>
- <judghangcnts/>
- <judgengcnts/>
- </item>
- <itemsick>
- <sickcd/>
- <sicknm/>
- <judgcd/>
- <cmpycd/>
- <sickcdcnts/>
- </itemsick>
- </judgexmpdetl>
- <judginfo>
- </judginfo>
- <temprslt>
- <temprsltcnts/>
- <temptestnm/>
- </temprslt>
- <instcd/>
- <healexamflag/>
- <testcd/>
- <judgexmpcd/>
- <sickcd/>
- <sicknm/>
- <prcpdd/>
- <seqno/>
- <chkflag/>
- </temp>
- </root>
- </instance>
- <submission id="TRZBC00101"/>
- <submission id="TRAHA00001"/>
- <submission id="TRAHA00002"/>
- <submission id="TRAHA00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/patinfo"/>
- <submission id="TRAHA00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/baseinfo/pamcdlst"/>
- <submission id="TRAHA00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/histlst"/>
- <submission id="TRAHB00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/baseinfo/item"/>
- <submission id="TRAHB01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/baseinfo/drlst"/>
- <submission id="TRAHR00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsltpatlst"/>
- <submission id="TRAHR00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/judginfo"/>
- <submission id="TRAHB00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/judgexmpdetl"/>
- <submission id="TXAHR00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden"/>
- <submission id="TRAHR00503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/judgdetl/rsltlst"/>
- <submission id="TRAHB00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/judgexmpcdlst"/>
- <submission id="TRAHB00804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/judgdetl/rsltlst" replace="instance"/>
- <submission id="TRAHB00805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/inqrinfo"/>
- <submission id="TRAHA00013" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRAHR00506" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchafexam" resultref="/root/main/afexamlist"/>
- <submission id="TXAHR00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/temp_1"/>
- <submission id="TXAHR00603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/saveAfexam" replace="instance" resultref="/root/temp"/>
- </model>
- <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/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/pacsweb/js/ZEP001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if(checkOpener()){
- m_vHealexamflag = opener.javascript.getParameter("SMAHR00500_PARAM1");
- var sPid = opener.javascript.getParameter("SMAHR00500_PARAM2");
-
- if(sPid != ""){
- btn_patlst.selected = true;
- model.setValue( ipt_srchpid2.attribute("ref"), sPid);
- if(checkAuth("R")){
- fGetPatinfoWithPid(sPid); //건진자 정보 조회
- }
- }
- model.toggle("case_pat");
- }
-
- fGetBasicCdList();
- fSetJudgDr(); // 판정의 셋팅
- fSrchInit();
- fInit(false );
-
- btn_search.disabled = !checkAuth("R");
- btn_search2.disabled = !checkAuth("R");
- btn_save.disabled = !checkAuth("X");
- btn_clear.disabled = !checkAuth("X");
- model.toggle("case_hng");
- checkbox1.value = "G H I";
-
- if(checkAuth("R")){
- fGetJudgPatList();
- }
- grp_textview.visible = false;
- //환자정보 삭제 common.js
- delPatientInfos();
- if(checkOpener()){
- btn_searchhist.dispatch("DOMActivate");
- }
- cmb_srchrsrvdd.select(0);
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var m_vHealexamflag = "";
- var col_hngnm = grd_judgpatlst.colRef("hngnm");
- var col_engnm = grd_judgpatlst.colRef("engnm");
- var col_pid = grd_judgpatlst.colRef("pid");
- var col_sex = grd_judgpatlst.colRef("sex");
- var col_age = grd_judgpatlst.colRef("age");
- var col_stat = grd_judgpatlst.colRef("statflag");
- var col_ordtm = grd_judgpatlst.colRef("ordtm");
- var col_orddd = grd_judgpatlst.colRef("orddd");
- var col_pkgcd = grd_judgpatlst.colRef("pkgcd");
- var col_pkgnm = grd_judgpatlst.colRef("pkgnm");
- var col_cmpycd = grd_judgpatlst.colRef("cmpycd");
- var col_cmpynm = grd_judgpatlst.colRef("cmpynm");
- var col_hopedd = grd_judgpatlst.colRef("hopedd");
- var col_rsrvtm = grd_judgpatlst.colRef("rsrvtm");
- var col_judgdd = grd_judgpatlst.colRef("judgdd");
- var col_judgtm = grd_judgpatlst.colRef("judgtm");
- var col_judgdrid = grd_judgpatlst.colRef("judgdrid");
- var col_acptremcnts = grd_judgpatlst.colRef("acptremcnts");
- var col_rsrvdd = grd_judgpatlst.colRef("rsrvdd");
- var col_rsrvno = grd_judgpatlst.colRef("rsrvno");
- var col_cretno = grd_judgpatlst.colRef("cretno");
- var col_rgstno1 = grd_judgpatlst.colRef("rgstno1");
- var col_rgstno2 = grd_judgpatlst.colRef("rgstno2");
-
- /**===================================================================================
- *초기화
- * bDetl => true : 건진자별 상세내역만 초기화
- =====================================================================================*/
- function fInit(bDetl){
- model.removeNodeset(grd_rsltlst.nodeset);
- model.removeNodeset(grd_rslttextlst.nodeset);
- model.removeNodeset(grd_sicklst.nodeset);
- model.resetInstanceNode("/root/main/judgdetl/judginfo/item");
-
- var cur_date = getCurrentDate();
- model.setValue(ipt_judgdd.attribute("ref"), cur_date);
- if(bDetl){
- return;
- }
- model.removeNodeset(grd_judgpatlst.nodeset);
- model.refresh();
- }
-
- /**===================================================================================
- ** 조회조건 초기화
- =====================================================================================*/
- function fSrchInit(){
- //cmb_srchhealexamdetlflag.refresh();
- //cmb_srchhealexamdetlflag.select(0);
- //cmb_srchhealexamdetlflag2.refresh();
- //cmb_srchhealexamdetlflag2.select(0);
-
- var vHealExamDetlFg = fGetHealExamDetlFlag();
- if( vHealExamDetlFg == 'C01' ){
- cmb_placeflag.value='S';
- } else if (vHealExamDetlFg == 'C03') {
- cmb_placeflag.value='K';
- }
- cmb_srchhealexamdetlflag.refresh();
- cmb_srchhealexamdetlflag2.refresh();
- cmb_srchhealexamdetlflag.value = vHealExamDetlFg;
- cmb_srchhealexamdetlflag2.value = vHealExamDetlFg;
-
- var cur_date = getCurrentDate();
- model.setValue(ipt_srchfromdd.attribute("ref"), cur_date);
- model.setValue(ipt_srchtodd.attribute("ref"), cur_date);
- }
-
- /**===================================================================================
- *기본코드 내역 가져오기
- =====================================================================================*/
- function fGetBasicCdList(){
- if(!checkOpener() ){
- model.toggle("case_pat");
- }
- btn_patlst.selected= true;
- if( m_vHealexamflag == "" ) {
- m_vHealexamflag = fGetHealExamFlag();
- }
- openLoadingBar("기초정보 ") ;//처리중 화면을 오픈한다.
-
-
- zbcfGetCodeList( new Array("A0069", "A0066","A0110","A0106", "A0107", "A0123")
- , new Array( "/root/init/baseinfo/hedetlflaglst"
- , "/root/init/baseinfo/rslttypelst"
- , "/root/init/baseinfo/plceflag"
- , "/root/init/baseinfo/inqrflag"
- , "/root/init/baseinfo/statlst"
- , "/root/init/baseinfo/rsltcnstflaglst" ) );
- addComboItem("checkbox1","결과완료","GY","below");
- submit("TRZBC00101");
-
- /*=======================================================================================================
- **구분값에 임의로 항목을 추가함으로 인해 순서의 이동이 필요하여 추구함======================================*/
- model.copyNode("/root/temp/tmpInfo", "/root/init/baseinfo/statlst");
- model.makeValue("/root/temp/tmpInfo/A0107[1]/cdid", model.getValue("/root/init/baseinfo/statlst/A0107[1]/cdid"));
- model.makeValue("/root/temp/tmpInfo/A0107[1]/cdnm", model.getValue("/root/init/baseinfo/statlst/A0107[1]/cdnm"));
- model.makeValue("/root/temp/tmpInfo/A0107[2]/cdid", model.getValue("/root/init/baseinfo/statlst/A0107[2]/cdid"));
- model.makeValue("/root/temp/tmpInfo/A0107[2]/cdnm", model.getValue("/root/init/baseinfo/statlst/A0107[2]/cdnm"));
- model.makeValue("/root/temp/tmpInfo/A0107[3]/cdid", model.getValue("/root/init/baseinfo/statlst/A0107[3]/cdid"));
- model.makeValue("/root/temp/tmpInfo/A0107[3]/cdnm", model.getValue("/root/init/baseinfo/statlst/A0107[3]/cdnm"));
- model.makeValue("/root/temp/tmpInfo/A0107[4]/cdid", model.getValue("/root/init/baseinfo/statlst/A0107[4]/cdid"));
- model.makeValue("/root/temp/tmpInfo/A0107[4]/cdnm", model.getValue("/root/init/baseinfo/statlst/A0107[4]/cdnm"));
- model.makeValue("/root/temp/tmpInfo/A0107[5]/cdid", model.getValue("/root/init/baseinfo/statlst/A0107[5]/cdid"));
- model.makeValue("/root/temp/tmpInfo/A0107[5]/cdnm", model.getValue("/root/init/baseinfo/statlst/A0107[5]/cdnm"));
- model.makeValue("/root/temp/tmpInfo/A0107[6]/cdid", model.getValue("/root/init/baseinfo/statlst/A0107[6]/cdid"));
- model.makeValue("/root/temp/tmpInfo/A0107[6]/cdnm", model.getValue("/root/init/baseinfo/statlst/A0107[6]/cdnm"));
- model.makeValue("/root/temp/tmpInfo/A0107[7]/cdid", model.getValue("/root/init/baseinfo/statlst/A0107[7]/cdid"));
- model.makeValue("/root/temp/tmpInfo/A0107[7]/cdnm", model.getValue("/root/init/baseinfo/statlst/A0107[7]/cdnm"));
- model.makeValue("/root/temp/tmpInfo/A0107[8]/cdid", model.getValue("/root/init/baseinfo/statlst/A0107[10]/cdid"));
- model.makeValue("/root/temp/tmpInfo/A0107[8]/cdnm", model.getValue("/root/init/baseinfo/statlst/A0107[10]/cdnm"));
- model.makeValue("/root/temp/tmpInfo/A0107[9]/cdid", model.getValue("/root/init/baseinfo/statlst/A0107[8]/cdid"));
- model.makeValue("/root/temp/tmpInfo/A0107[9]/cdnm", model.getValue("/root/init/baseinfo/statlst/A0107[8]/cdnm"));
- model.makeValue("/root/temp/tmpInfo/A0107[10]/cdid", model.getValue("/root/init/baseinfo/statlst/A0107[9]/cdid"));
- model.makeValue("/root/temp/tmpInfo/A0107[10]/cdnm", model.getValue("/root/init/baseinfo/statlst/A0107[9]/cdnm"));
-
- model.copyNode("/root/init/baseinfo/statlst", "/root/temp/tmpInfo");
- checkbox1.refresh();
- /*=======================================================================================================*/
-
- healGetCodeList( new Array("S600"), new Array("/root/init/baseinfo/healexamplacelst") );
- healGetCodeListSubmit( new Array("S290"), new Array("/root/init/baseinfo/formcdlst"), false);
-
- //2015/08/17 이정택 추가
- healGetCodeList( new Array("S610"), new Array("/root/init/baseinfo/orddeptcdlst") );
- model.removenode("/root/init/baseinfo/orddeptcdlst/S610[0]");
- //2015/08/17 이정택 추가
-
- //판정의조회
- model.setValue("/root/send/srchhealexamflag", m_vHealexamflag);
- model.makeNode("/root/send/srchcond" );
- model.setValue("/root/send/srchcond", "J");
- submit("TRAHB01504");
-
- closeLoadingBar() ;//처리중 화면을 close한다.
- }
-
- /**===================================================================================
- @desc : 판정입력대상자 가져오기
- @param : 건진구분/건진일자/환자id/사업장명 별 조회
- =====================================================================================*/
- function fGetJudgPatList(){
- openLoadingBar("판정 대상 건진자리스트");
- model.removeNodeset(grd_judgpatlst.nodeset);
- //model.resetInstanceNode("/root/send");
-
- model.setValue("/root/send/srchcmpycd" , model.getValue(ipt_cmpycd.attribute("ref") ) );
- model.setValue("/root/send/srchhealexamdetlflag" , model.getValue("/root/init/send/srchhealexamdetlflag") );
- model.setValue("/root/send/srchpid" , model.getValue(ipt_pid.attribute("ref") ) );
- model.setValue("/root/send/srchpnm" , model.getValue(ipt_pnm.attribute("ref") ) );
- model.setValue("/root/send/srchfromdd" , model.getValue("/root/init/send/srchfromdd") );
- model.setValue("/root/send/srchtodd" , model.getValue("/root/init/send/srchtodd") );
- model.setValue("/root/send/srchjudgdrid" , model.getValue(cmb_srchjudgdrid.attribute("ref")) );
-
- model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd") );
- model.setValue("/root/send/srchhealexamflag" , fGetHealExamFlag());
-
- if(model.getValue("/root/send/srchstatflag2").indexOf("GY") >= 0){
- model.makeValue("/root/send/srchstatcmpl", "Y");
- }else{
- model.makeValue("/root/send/srchstatcmpl", "N");
- }
- submit("TRAHR00501");
-
- /*대상자 색구분(2010.03.24) - 녹색:결과, 붉은색:결과완료*/
- grd_judgpatlst.rebuildStyle();
- for(var i=grd_judgpatlst.fixedRows; i<grd_judgpatlst.rows; i++){
- if(grd_judgpatlst.valueMatrix(i, grd_judgpatlst.colRef("statflag")) == "G"){
- if(grd_judgpatlst.valueMatrix(i, grd_judgpatlst.colRef("rsltyn")) == "Y"){
- grd_judgpatlst.rowStyle(i, "data", "background-color") = "#f8939f";
- }else{
- grd_judgpatlst.rowStyle(i, "data", "background-color") = "#7ffc76";
- }
- }
- }
- closeLoadingBar();
- }
- /**===================================================================================
- @desc : 판정정보조회(판정대기자 선택시 종합판정입력tab이동)
- @param : healexamflag, pid, rsrvdd, rsrvno
- =====================================================================================*/
- function fGetJudgInfo(){
- var idx = grd_judgpatlst.row;
- if( idx < 1) return ;
-
- var vPid = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("pid"));
- if( vPid == "" ) return ;
-
- var vRsrvdd = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("rsrvdd"));
- var vRsrvno = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("rsrvno"));
- var vOrdDD = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("orddd"));
- var vCretno = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("cretno"));
- var vRgstno1 = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("rgstno1"));
- var vRgstno2 = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("rgstno2"));
-
- var vHometel = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("hometel"));
- var vMpphontel = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("mpphontel"));
-
- cmb_srchhealexamdetlflag2.value = cmb_srchhealexamdetlflag.value;
- //tab이동
- fInit(true);
- model.toggle("case_judg");
- btn_judg.selected= true;
-
- model.setValue(ipt_srchpid2.attribute("ref") , vPid );
- model.setValue(ipt_srchpnm2.attribute("ref") , grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("hngnm")));
- model.setValue(opt_sex.attribute("ref") , grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("sex")));
- model.setValue(opt_age.attribute("ref") , grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("age")));
- model.makeValue("/root/init/send/item2/orddd" , vOrdDD);
- model.makeValue("/root/init/send/item2/cretno" , vCretno);
- model.setValue("/root/init/send/srchcretno" , vCretno);
- model.setValue("/root/send/srchrgstno1" , vRgstno1);
- model.setValue("/root/send/srchrgstno2" , vRgstno2);
-
- model.setValue(ipt_hometel.attribute("ref") , vHometel);
- model.setValue(ipt_mpphontel.attribute("ref") , vMpphontel);
-
- //해당환자의 건진history조회
- ahafGetHistList2(vPid, cmb_srchhealexamdetlflag.value , "E");
-
- // 판정정보상세내역 조회
- var vPkgnm = grd_judgpatlst.valueMatrix(idx, col_pkgnm);
- //fGetJudgDetlInfo(vRsrvdd, vRsrvno, vPkgnm, vPid, vOrdDD );
-
- //화면상단 환자정보 조회
- ahafSetScreenTopPatInfo(vPid , vOrdDD , vCretno);
-
- //전 환자의 문진 내역이 있으면 닫고 아래에서 새 환자의 문진을 띄운다.
- var child = getChildWindow("SPAHR00500");
- if(child != null) {
- child.close();
- }
- model.refresh();
-
- //결과 판정값 체크
- //fRsltJudgChk();
- cmb_srchrsrvdd.dispatch("xforms-select");
-
- /*******
- 기관코드하드코딩으로 인해 수정(2010.01.12 안규옥)
- if(getUserInfo("dutplceinstcd") == "012"){
-
- }else{
- button4.dispatch("onclick"); //종합판정 탭의 문진표 팝업클릭
- }
- *******/
- if(chk_inqrautocall.value == "Y"){
- button4.dispatch("onclick"); //종합판정 탭의 문진표 팝업클릭
- }
- }
-
- /**===================================================================================
- @desc : 판정정보상세내역 조회
- @param : healexamflag, rsrvdd, rsrvno , instcd
- =====================================================================================*/
- function fGetJudgDetlInfo(vRsrvdd, vRsrvno , vPkgnm , vPid, vOrdDD , vCretno){
- model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
- model.setValue("/root/send/srchhealexamdetlflag" , model.getValue(cmb_srchhealexamdetlflag2.attribute("ref")));
- model.setValue("/root/send/srchrsrvdd" , vRsrvdd);
- model.setValue("/root/send/srchrsrvno" , vRsrvno);
- model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/srchpid" , vPid);
- model.setValue("/root/send/srchorddd" , vOrdDD);
- model.setValue("/root/send/srchcretno" , vCretno);
-
- model.resetInstanceNode("/root/main/judgdetl/judginfo/item"); // 판정내역 초기화
-
- openLoadingBar("결과 정보");
- var ret = submit("TRAHR00503");
- fRsltJudgChk(); //결과 판정값 체크
- closeLoadingBar();
- var vRsltCaption = "처방명칭" + "^" + cap_year1.value + "^" +"판정" + "^" + cap_year2.value + "^" + "판정" + "^" + cap_year3.value + "^" + "판정" + "^" + "기준" + "^" + "단위" ;
- grd_rsltlst.caption = vRsltCaption ;
-
- openLoadingBar("판정 정보");
- ret = submit("TRAHR00502");
- closeLoadingBar();
-
- if(ret == true ){
- var retNode = model.instance1.selectSingleNode("/root/temp/judginfo/item/judgdrid");
- if(retNode != null){
- model.copyNode("/root/main/judgdetl/judginfo","/root/temp/judginfo");
- }
- }
-
- //판정의 체크
- var judgDr = model.getValue("/root/main/judgdetl/judginfo/item/judgdrid"); //판정등록한 판정의
- var logJudgDr = model.getValue("/root/hidden/judgdr"); //로그인 한 판정의
-
- if(judgDr == ""){
- //등록한 판정의가 없을경우
- if(logJudgDr != ""){
- //로그인 한 판정의가 있을 경우
- model.setValue("/root/main/judgdetl/judginfo/item/judgdrid" , logJudgDr);
- } else {
- model.setValue("/root/main/judgdetl/judginfo/item/judgdrid" , model.property("judgdr"));
- }
- } else {
- //등록 된 판정의와 로그인 한 판정의가 다를 경우
- if(judgDr != logJudgDr) {
- if(logJudgDr != "") {
- //로그인한 판정의가 존재할 경우
- var judgDrNm = "";
- var logJudgDrNm = ""
- //이름 찾기
- for(var i=0; i < cmb_judgdr.length; i++) {
- if(cmb_judgdr.item(i).value == judgDr){
- judgDrNm = cmb_judgdr.item(i).label;
- }
- if(cmb_judgdr.item(i).value == logJudgDr){
- logJudgDrNm = cmb_judgdr.item(i).label;
- }
- }
- var vb = messageBox("판정의를 [" + judgDrNm + "]에서 [" + logJudgDrNm + "]로 변경" ,"S001");
- if(vb == "6"){
- model.setValue("/root/main/judgdetl/judginfo/item/judgdrid", logJudgDr);
- }
- }
- }
- }
- model.makeNode(opt_pkgnm.attribute("ref"));
- model.setValue(opt_pkgnm.attribute("ref"), vPkgnm);
- model.refresh();
- }
-
- /**===================================================================================
- @desc : 다음환자조회
- =====================================================================================*/
- function fGetNextPatInfo(){
- var cur_idx = grd_judgpatlst.row;
- var grd_cnt = grd_judgpatlst.rows;
-
- cur_idx++;
- if( cur_idx >= grd_cnt ){
- cur_idx = 1; //초기화
- }
- grd_judgpatlst.row = cur_idx ;
-
- //판정정보 조회
- fGetJudgInfo();
- }
-
- /**===================================================================================
- @desc : 다음환자조회
- =====================================================================================*/
- function fGetPrePatInfo(){
- var cur_idx = grd_judgpatlst.row;
- var grd_cnt = grd_judgpatlst.rows;
-
- cur_idx--;
- if( cur_idx >= grd_cnt ) {
- cur_idx = grd_cnt; //초기화
- }
- grd_judgpatlst.row = cur_idx ;
-
- //판정정보 조회
- fGetJudgInfo();
- }
- /**===================================================================================
- @desc : 건진내역 콤보박스 선택 시 해당 선택건진 key 값 얻기
- @param : index , param(rsrvdd, rsrvno, pkgnm, pkgcd )
- =====================================================================================*/
- function fGetRsrvInfoFromHistory(vCmbIndex, vParam ){
- if( vCmbIndex < 0 ) return "";
- var ndlist = instance1.selectNodes("/root/temp/histlst/item");
- if( ndlist == null ) return "";
- if( ndlist.length < 1) return ;
- var ret = "";
- if( vParam == "rsrvdd"){
- ret = ndlist.item(vCmbIndex).rsrvdd.text ;
- }
- else if( vParam == "rsrvno"){
- ret = ndlist.item(vCmbIndex).rsrvno.text ;
- }
- else if( vParam == "pkgnm"){
- ret = ndlist.item(vCmbIndex).pkgnm.text ;
- }
- else if( vParam == "pkgcd"){
- ret = ndlist.item(vCmbIndex).pkgcd.text ;
- }
- else if( vParam == "pid"){
- ret = ndlist.item(vCmbIndex).pid.text ;
- }
- else if( vParam == "orddd"){
- ret = ndlist.item(vCmbIndex).orddd.text ;
- }
- else if( vParam == "cretno"){
- ret = ndlist.item(vCmbIndex).cretno.text ;
- }
- else if( vParam == "healexamflag"){
- ret = ndlist.item(vCmbIndex).healexamflag.text ;
- }
- return ret ;
- }
- /**===================================================================================
- @desc : 종합판정입력
- @param : 저장, 판정완료 (H, I) 저장 일시 판정대기 이고 판정완료 일 경우 판정 완료
- =====================================================================================*/
- function fSaveJudg(vJudgStat){
- if( messageBox("종합판정내역을 ", "Q002") !=6) return ;
- //판정내역
- var idx = cmb_srchrsrvdd.mouseRow;
- //출력여부
- var prntYN = model.getValue("/root/main/judgdetl/judginfo/item/prntyn");
- //질환판정
- var sickJudg = false;
- if(idx < 0){
- messageBox("판정대상내역을", "C002");
- model.setFocus("cmb_srchrsrvdd");
- return ;
- }
- if(prntYN == "Y"){
- if(messageBox("기출력된 검사입니다", "Q003") !=6) return;
- }
-
- model.makeNode("/root/main/judgdetl/judginfo/item/healexamflag");
- model.makeNode("/root/main/judgdetl/judginfo/item/healexamdetlflag");
- model.makeNode("/root/main/judgdetl/judginfo/item/rsrvdd");
- model.makeNode("/root/main/judgdetl/judginfo/item/rsrvno");
- model.makeNode("/root/main/judgdetl/judginfo/item/judgdd");
- model.makeNode("/root/main/judgdetl/judginfo/item/judgdd");
- model.makeNode("/root/main/judgdetl/judginfo/item/judgtm");
- model.makeNode("/root/main/judgdetl/judginfo/item/judgstat");
-
- model.makeNode("/root/main/judgdetl/judginfo/item/judgdrid");
- model.makeNode("/root/main/judgdetl/judginfo/item/pid");
- model.makeNode("/root/main/judgdetl/judginfo/item/orddd");
- model.makeNode("/root/main/judgdetl/judginfo/item/cretno");
- model.makeNode("/root/main/judgdetl/judginfo/item/pkgcd");
-
- if(model.getValue("/root/main/judgdetl/judginfo/item/judgdrid") == ""){
- messageBox("판정의를", "C002");
- model.setFocus("cmb_judgdrid");
- return;
- }
-
- model.setValue("/root/main/judgdetl/judginfo/item/healexamflag" , fGetRsrvInfoFromHistory(idx, "healexamflag")); //건진구분
- model.setValue("/root/main/judgdetl/judginfo/item/healexamdetlflag" , model.getValue(cmb_srchhealexamdetlflag2.attribute("ref"))); //건진상세구분
- model.setValue("/root/main/judgdetl/judginfo/item/rsrvdd" , fGetRsrvInfoFromHistory(idx , "rsrvdd")); //예약등록일자
- model.setValue("/root/main/judgdetl/judginfo/item/rsrvno" , fGetRsrvInfoFromHistory(idx , "rsrvno")); //예약번호
- model.setValue("/root/main/judgdetl/judginfo/item/pid" , fGetRsrvInfoFromHistory(idx , "pid")); //등록번호
- model.setValue("/root/main/judgdetl/judginfo/item/orddd" , fGetRsrvInfoFromHistory(idx , "orddd")); //진료일자
- model.setValue("/root/main/judgdetl/judginfo/item/cretno" , fGetRsrvInfoFromHistory(idx , "cretno")); //생성번호
- model.setValue("/root/main/judgdetl/judginfo/item/pkgcd" , fGetRsrvInfoFromHistory(idx , "pkgcd")); //패키지코드
- model.setValue("/root/main/judgdetl/judginfo/item/judgstat" ,vJudgStat); //패키지코드
- model.copyNode("/root/send/savedata", "/root/main/judgdetl/judginfo/item");
-
- //질환코드내역
- // for(var i = 1; i < grd_sicklst.rows; i++){
- // if(grd_sicklst.rowStatus(i) > 0){
- // var sickJudgCd = grd_sicklst.valueMatrix( i , grd_sicklst.colRef("jugdcd"));
- // if(sickJudgCd == ""){
- // sickJudg = true;
- // }
- // }
- // }
- // if(sickJudg){
- // var sickcd = model.getValue("/root/main/judgdetl/judginfo/itemsick/sickcd");
- // if(sickcd == "1"){
- // model.setValue("/root/main/judgdetl/judginfo/itemsick/judgcd", "A");
- // }else{
- // model.setValue("/root/main/judgdetl/judginfo/itemsick/judgcd", "B");
- // }
- // messageBox("질환코드의 판정을", "C002");
- // return;
- // }
-
- model.makeNode("/root/send/savedata/savesick");
- model.setValue("/root/send/savedata/savesick", grd_sicklst.getUpdateData());
- submit("TRAHB00804"); //검사결과 수정
- var ret = submit("TXAHR00501"); //판정/질환코드 입력, 환자 상태값 수정(AST.AHAMACPT - STATFLAG)
-
- model.toggle("case_pat");
- btn_patlst.selected= true;
- /*
- if( ret == true ){
- //재조회z
- if( model.getValue("/root/hidden/item/rsrvdd") == "") return ;
- fGetJudgDetlInfo(model.getValue("/root/hidden/item/rsrvdd"), model.getValue("/root/hidden/item/rsrvno") , opt_pkgnm.value, model.getValue("/root/hidden/item/pid"), model.getValue("/root/hidden/item/orddd") , model.getValue("/root/hidden/item/cretno") );
- //다음환자
- fGetNextPatInfo();
- }
- */
- }
- /**===================================================================================
- @desc : 소견 및 조치내용 가져오기
- 소견및 조치내용은 종합판정문구 관리에서 건진구분 .
- @param :
- * vEditObj : 선택한 판정내용이 입력될 입력컨트롤명
- * SPAHR00300_PARAM1: 다중선택여부(Y/N)
- * SPAHR00300_PARAM2: 목적노드Set
- * SPAHR00300_PARAM3: 종합판정문구코드 목적노드
- * SPAHR00300_PARAM4: 종합판정문구내용 목적노드
- * SPAHR00300_PARAM5: 종합판정문구검색코드
- * SPAHR00300_PARAM6: 종합판정문구검색내용
- * SPAHR00300_PARAM7: 건진구분
- =====================================================================================*/
- function fGetJudgExmpCnts(vHngShrtEditObj,vHngEditObj , vEngShrtEditObj , vEngEditObj ){
- //if( (vHngShrtEditObj == null ) || (vHngEditObj) || (vEngShrtEditObj == null ) || (vEngEditObj) ) return ;
- model.makeNode("/root/temp/judgexaminfo");
- setParameter("SPAHR00300_PARAM1" , "Y");
- setParameter("SPAHR00300_PARAM2" , "/root/temp/judgexaminfo");
- setParameter("SPAHR00300_PARAM7" , fGetHealExamFlag());
- modal("SPAHR00300", 100, 100, "SPAHR00300");
-
- if( model.getValue("/root/temp/SPAHR00300/okflag") != "ok" ) return ;
-
- var vNodeList = instance1.selectNodes("/root/temp/judgexaminfo/list");
- if( vNodeList == null ) reutrn ;
-
- var vJudgShrtCnts = model.getValue( vHngShrtEditObj.attribute("ref") );
- var vJudgCnts = model.getValue( vHngEditObj.attribute("ref") );
- var vJudgShrtEngCnts = model.getValue( vEngShrtEditObj.attribute("ref") );
- var vJudgEngCnts = model.getValue( vEngEditObj.attribute("ref") );
- var sNd = "/root/temp/judgexaminfo/list";
- var cnt = vNodeList.length;
-
- for(var i=0; i<cnt; i++){
- //조회해오기...
- if( vJudgShrtCnts != "" ) vJudgShrtCnts += ",";
- if( vJudgShrtEngCnts != "" ) vJudgShrtEngCnts += ",";
- if( vJudgCnts != "" ) vJudgCnts += "\n";
- if( vJudgEngCnts != "" ) vJudgEngCnts += "\n";
-
- vJudgShrtCnts += vNodeList.item(i).judghangshrtcnts.text ; //model.getValue(sNd + i + "]/judghangshrtcnts");
- vJudgCnts += vNodeList.item(i).judghangcnts.text; //model.getValue(sNd + i + "]/judghangcnts");
- vJudgShrtEngCnts += vNodeList.item(i).judgengshrtcnts.text; //model.getValue(sNd + i + "]/judgengshrtcnts");
- vJudgEngCnts += vNodeList.item(i).judgengcnts.text; //model.getValue(sNd + i + "]/judgengcnts");
- }
-
- model.setValue( vHngShrtEditObj.attribute("ref") , vJudgShrtCnts );
- model.setValue( vHngEditObj.attribute("ref") , vJudgCnts );
- model.setValue( vEngShrtEditObj.attribute("ref") , vJudgShrtEngCnts );
- model.setValue( vEngEditObj.attribute("ref") , vJudgEngCnts );
- model.refresh();
- }
-
- /*=====================================================================================
- @desc : 환자번호로 건진자 정보 가져오기...
- =====================================================================================*/
- function fGetPatinfoWithPid(sPid){
- if(sPid == "") return;
-
- if(ahafGetPatInfo(2, sPid, "" , "/root/init/send/item2") == true){
- ahafGetHistList2(sPid, cmb_srchhealexamdetlflag.value, "E"); //해당환자의 건진history조회
- }
- }
- /*=====================================================================================
- @desc : text결과 크게 보기.
- =====================================================================================*/
- function fSetLargView(vRsltCnts, vYear ){
- var idx = grd_rslttextlst.row;
- if(idx < 1) return;
-
- cap_temptestnm.value = vYear + " : " + grd_rslttextlst.valueMatrix(idx, 1);
- tar_temprsltcnts.value = vRsltCnts;
- grp_textrslt.visible = true;
- grp_textrslt.attribute("top") = 150;
- }
- /*=====================================================================================
- @desc : 문진 스캔정보가 있을 경우 스캔화면을 보여주며 그렇지 않을 경우 문진입력화면을 보여준다.
- =====================================================================================*/
- function fGetInqrInfo() {
- var ret = submit("TRAHB00805");
- if(ret){
- var rootNode = instance1.selectSingleNode("/root/main/inqrinfo/inqr");
- if(rootNode == null) {
- fGetInptInqrInfo();
- }else {
- fGetInqrImge();
- }
- }
- }
- /*=====================================================================================
- @desc : 입력한 문진정보 팝업화면을 보여준다..
- SPAHR00200_PARAM1 : 건진구분
- SPAHR00200_PARAM2 : 등록번호
- SPAHR00200_PARAM3 : 건진일자
- SPAHR00200_PARAM4 : 예약일자
- SPAHR00200_PARAM5 : 예약번호
- SPAHR00200_PARAM6 : 기관코드
- SPAHR00200_PARAM7 : 문진구분
- =====================================================================================*/
- function fGetInptInqrInfo(){
- clearParameter("SPAHR00500_PARAM1");
- clearParameter("SPAHR00500_PARAM2");
- clearParameter("SPAHR00500_PARAM3");
- clearParameter("SPAHR00500_PARAM4");
- clearParameter("SPAHR00500_PARAM5");
- clearParameter("SPAHR00500_PARAM6");
- clearParameter("SPAHR00500_PARAM7");
-
- setParameter("SPAHR00500_PARAM1" , model.getValue("/root/send/srchhealexamflag"));
- setParameter("SPAHR00500_PARAM2" , model.getValue("/root/send/srchpid"));
- setParameter("SPAHR00500_PARAM3" , model.getValue("/root/send/srchorddd"));
- setParameter("SPAHR00500_PARAM4" , model.getValue("/root/send/srchrsrvdd"));
- setParameter("SPAHR00500_PARAM5" , model.getValue("/root/send/srchrsrvno"));
- setParameter("SPAHR00500_PARAM6" , model.getValue("/root/send/srchinstcd"));
- setParameter("SPAHR00500_PARAM7" , "T");
- open("SPAHR00500");
- }
-
- /*=====================================================================================
- @desc : 문진 스캔 화면을 보여준다.
- =====================================================================================*/
- function fGetInqrImge() {
- model.makeValue("/root/send/iemr/pid" , model.getValue("/root/main/inqrinfo/inqr/pid"));
- model.makeValue("/root/send/iemr/orddeptcd" , model.getValue("/root/main/inqrinfo/inqr/orddeptcd") );
- model.makeValue("/root/send/iemr/indd" , model.getValue("/root/main/inqrinfo/inqr/orddd"));
- model.makeValue("/root/send/iemr/docucd" , model.getValue("/root/main/inqrinfo/inqr/formcd"));
- model.makeValue("/root/send/iemr/ioflag" , model.getValue("/root/main/inqrinfo/inqr/ioflag"));
- model.makeValue("/root/send/iemr/cmc_cretno" , model.getValue("/root/main/inqrinfo/inqr/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("../../../emr/imgemrweb/xrw/SSMRC03130.xrw", "modeless", "imgemrviewer", "", "/root/send/iemr", "/root/hidden/temp");
- // window.children.item("imgemrviewer").document.title = "Image EMR Viewer";
- // window.children.item("imgemrviewer").javaScript.searchChart("/root/hidden/temp");
- // window.children.item("imgemrviewer").javaScript.downloadChart();
- // window.children.item("imgemrviewer").javaScript.setupChart("ChartView");
- }
- }
- /*=====================================================================================
- @desc : 로그인 된 사람이 판정의 경우 등록
- =====================================================================================*/
- function fSetJudgDr() {
- var licnsno = getUserInfo("licnsno");
- var selChk = false;
- for(var i=0; i < cmb_srchjudgdrid.length; i++) {
- // 판정의 의사번호가 있을 경우 선택
- if(cmb_srchjudgdrid.item(i).value == licnsno) {
- cmb_srchjudgdrid.select(i);
- model.makeValue("/root/hidden/judgdr" , licnsno);
- selChk = true;
- }
- }
- //선택된 것이 없으면 default
- if(selChk == false) {
- cmb_srchjudgdrid.select(0);
- }
- }
-
- /**==================================================================================================================
- @author : 손범성
- @version :2007-12-17
- @desc : 결과 판정을 체크한다.
- @param :
- ====================================================================================================================*/
- function fRsltJudgChk(){
- grd_rsltlst.rebuildStyle();
- for(var i=1; i<=grd_rsltlst.rows; i++){
- var judgrsltcnts1 = grd_rsltlst.valueMatrix( i , grd_rsltlst.colRef("judgrsltcnts1") );
- var judgrsltcnts2 = grd_rsltlst.valueMatrix( i , grd_rsltlst.colRef("judgrsltcnts2") );
- var judgrsltcnts3 = grd_rsltlst.valueMatrix( i , grd_rsltlst.colRef("judgrsltcnts3") );
- var testyn = grd_rsltlst.valueMatrix( i , grd_rsltlst.colRef("testyn") );
- // 첫번째 건진 판정
- if(judgrsltcnts1 != "") {
- if(judgrsltcnts1 == "H") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts1") , i , grd_rsltlst.colRef("judgrsltcnts1")) = "#ff7a85";
- if(judgrsltcnts1 == "L") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts1") , i , grd_rsltlst.colRef("judgrsltcnts1")) = "#99ccff";
- grd_rsltlst.cellStyle("background-position" , i , grd_rsltlst.colRef("judgrsltcnts1") , i , grd_rsltlst.colRef("judgrsltcnts1")) = "center";
- }
-
- // 두번째 건진 판정
- if(judgrsltcnts2 != "") {
- if(judgrsltcnts2 == "H") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts2") , i , grd_rsltlst.colRef("judgrsltcnts2")) = "#ff7a85";
- if(judgrsltcnts2 == "L") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts2") , i , grd_rsltlst.colRef("judgrsltcnts2")) = "#99ccff";
- grd_rsltlst.cellStyle("background-position" , i , grd_rsltlst.colRef("judgrsltcnts2") , i , grd_rsltlst.colRef("judgrsltcnts2")) = "center";
- }
-
- // 세번째 건진 판정
- if(judgrsltcnts3 != "") {
- if(judgrsltcnts3 == "H") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts3") , i , grd_rsltlst.colRef("judgrsltcnts3")) = "#ff7a85";
- if(judgrsltcnts3 == "L") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts3") , i , grd_rsltlst.colRef("judgrsltcnts3")) = "#99ccff";
- grd_rsltlst.cellStyle("background-position" , i , grd_rsltlst.colRef("judgrsltcnts3") , i , grd_rsltlst.colRef("judgrsltcnts3")) = "center";
- }
-
- //판정코드 있을 경우 처방명칭에 색상 칠해주기
- if(testyn != "") {
- //if(testyn == "Y") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("testyn") , i , grd_rsltlst.colRef("testyn")) = "#ff7a85";
- if(testyn == "Y") grd_rsltlst.cellStyle("font-weight" , i , grd_rsltlst.colRef("testnm") , i , grd_rsltlst.colRef("testnm")) = "bold";
- }
- }
-
- for(var i=1; i<=grd_rslttextlst.rows; i++){
- grd_rslttextlst.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
- grd_rslttextlst.rowstyle( i , "data" , "color" ) = "#000000";
- var olddd = grd_rslttextlst.valueMatrix(i, grd_rslttextlst.colRef("rsrvdd"));
- var nowdd = cmb_srchrsrvdd.value;
- if(olddd == nowdd){
- grd_rslttextlst.rowstyle( i , "data" , "background-color" ) = "#CCFFCC";
- }
- }
- }
- /**==================================================================================================================
- @author : 손범성
- @version :2008-07-04
- @desc : 결과 판정을 체크한다.
- @param :
- ====================================================================================================================*/
- function fSetColRsltText(vRow){
- if(vRow < 1) return;
- var nodeList = instance1.selectNodes(grd_rslttextlst.attribute("nodeset"));
- if(nodeList == null) return;
- if(nodeList.length < 1) return;
-
- model.makeNode(tar_rsltcnts1.attribute("ref"));
- model.makeNode(tar_rsltcnts2.attribute("ref"));
- model.makeNode(tar_rsltcnts3.attribute("ref"));
- model.setValue(tar_rsltcnts1.attribute("ref"), nodeList.item( vRow - 1 ).rslt1.text);
- model.setValue(tar_rsltcnts2.attribute("ref"), nodeList.item( vRow - 1 ).rslt2.text);
- model.setValue(tar_rsltcnts3.attribute("ref"), nodeList.item( vRow - 1 ).rslt3.text);
- model.refresh();
- }
-
- /*=====================================================================================
- @desc : 추가, 재검, 타과의뢰 정보 조회
- =====================================================================================*/
- function fGetAfexamlist(){
- if(model.getValue("/root/send/srchrsrvdd") == "" || model.getValue("/root/send/srchrsrvno") == ""){
- // messageBox("조회 후" , "C003");
- return;
- }else{
- model.removeNodeset("/root/main/afexamlist");
- model.setValue("/root/send/srchafexam/healexamflag" , model.getValue("/root/send/srchhealexamflag"));
- model.setValue("/root/send/srchafexam/rsrvdd" , model.getValue("/root/send/srchrsrvdd"));
- model.setValue("/root/send/srchafexam/rsrvno" , model.getValue("/root/send/srchrsrvno"));
- submit("TRAHR00506");
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1197;2,757;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:75px; height:13px; ">종합판정</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <switch id="switch1" style="left:3px; top:25px; width:1190px; height:713px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case_pat" selected="true">
- <group id="group3" style="left:1045px; top:78px; width:135px; height:25px; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:6px; top:4px; width:20px; height:17px; background-color:#7ffc76; border-color:#ffffff; "/>
- <shape id="roundrect4" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:60px; top:4px; width:20px; height:17px; background-color:#f8939f; border-color:#ffffff; "/>
- <caption id="caption25" style="left:25px; top:5px; width:30px; height:15px; ">결과</caption>
- <caption id="caption27" style="left:80px; top:5px; width:55px; height:15px; ">결과완료</caption>
- </group>
- <line id="line6" class="line_1" style="x1:5px; y1:115px; x2:1180px; y2:115px; "/>
- <datagrid id="grd_judgpatlst" nodeset="/root/main/judgpatlst/item" caption="성명^영문명^등록번호^성별^나이^집전화^휴대전화^상태^접수시간^접수일자^패키지코드^패키지명^단체코드^단체명^예약일자^예약시간^결과상담^판정일자^판정시간^판정의^접수비고^예약등록일자^예약등록번호^외래생성번호^주민번호1^주민번호2^rsltyn" colsep="^" colwidth="76, 0, 73, 38, 36, 90, 90, 60, 0, 0, 0, 100, 0, 100, 71, 58, 71, 71, 60, 90, 246, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:5px; top:100px; width:1175px; height:607px; ">
- <col ref="hngnm"/>
- <col ref="engnm" visibility="hidden"/>
- <col ref="pid"/>
- <col ref="sex"/>
- <col ref="age"/>
- <col ref="hometel"/>
- <col ref="mpphontel"/>
- <col disabled="true" ref="statflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/statlst/A0107">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="ordtm" visibility="hidden" format="hh:nn"/>
- <col ref="orddd" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="pkgcd" visibility="hidden"/>
- <col ref="pkgnm"/>
- <col ref="cmpycd" visibility="hidden"/>
- <col ref="cmpynm"/>
- <col ref="hopedd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rsrvtm" format="hh:nn" style="text-align:center; "/>
- <col disabled="true" ref="rsltcnstflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/rsltcnstflaglst/A0123">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="judgdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="judgtm" format="hh:nn" style="text-align:center; "/>
- <col disabled="true" ref="judgdrid" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
- <label ref="drnm"/>
- <value ref="drid"/>
- </itemset>
- </choices>
- </col>
- <col ref="acptremcnts"/>
- <col ref="rsrvdd" visibility="hidden"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="rgstno1" visibility="hidden"/>
- <col ref="rgstno2" visibility="hidden"/>
- <col ref="rsltyn" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //2016/10/25 동명이인 관련 알림 팝업
- fChkPatNameC(grd_judgpatlst.nodeset, "hngnm", grd_judgpatlst.valueMatrix(grd_judgpatlst.row, grd_judgpatlst.colRef("hngnm")));
- //2016/10/25 동명이인 관련 알림 팝업
-
- fGetJudgInfo();
- ]]>
- </script>
- </datagrid>
- <group id="group2" style="left:5px; top:9px; width:1179px; height:66px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1178px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption13" class="search_name" style="left:425px; top:10px; width:86px; height:17px; ">건진일자 :</caption>
- <caption id="caption14" class="search_name" style="left:11px; top:10px; width:89px; height:17px; ">건진종류 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1113px; top:9px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetJudgPatList();
- ]]>
- </script>
- </button>
- <line id="line16" style="x1:1101px; y1:10px; x2:1101px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_srchhealexamdetlflag" ref="/root/init/send/srchhealexamdetlflag" class="combo_s_essential" appearance="minimal" style="left:101px; top:10px; width:109px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/hedetlflaglst/A0069">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_srchfromdd" ref="/root/init/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:514px; top:10px; width:100px; height:19px; "/>
- <input id="ipt_srchtodd" ref="/root/init/send/srchtodd" class="input_s_essential" inputtype="date" style="left:634px; top:10px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetJudgPatList();
- ]]>
- </script>
- </input>
- <select1 id="cmb_srchjudgdrid" ref="/root/init/send/srchjudgdrid" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:1070px; top:35px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
- <label ref="drnm"/>
- <value ref="drid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetJudgPatList();
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" visibility="hidden" style="left:992px; top:35px; width:89px; height:17px; ">판정의 :</caption>
- <input id="ipt_pnm" ref="/root/init/send/item1/hngnm" class="input_default" style="left:987px; top:10px; width:104px; height:19px; "/>
- <input id="ipt_pid" ref="/root/init/send/item1/pid" class="input_default" style="left:855px; top:10px; width:105px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode != 13) return ;
- if( !ahafGetPatInfo(2, ipt_pid.currentText , "" , "/root/init/send/item1" ) ) return ;
- // //model.setValue(ipt_pid.attribute("ref"), model.getValue("/root/temp/patinfo/item/pid") );
- // //model.setValue(ipt_pnm.attribute("ref"), model.getValue("/root/temp/patinfo/item/hngnm") );
- // if( model.getValue( ipt_pid.attribute("ref") ) == "" ) return ;
- // fGetJudgPatList();
-
- model.setValue("/root/init/send/item1/pid", model.getValue("/root/temp/patinfo/item/pid"));
- model.setValue("/root/init/send/item1/hngnm", model.getValue("/root/temp/patinfo/item/hngnm") );
- model.refresh();
- if( model.getValue("/root/init/send/item1/pid") == "" ) return ;
- fGetJudgPatList();
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:765px; top:10px; width:89px; height:17px; ">등록번호 :</caption>
- <caption id="caption18" class="search_no_b" style="left:619px; top:11px; width:12px; height:17px; ">~</caption>
- <button id="btn_srchpat" class="icon_search" style="left:964px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearchPatInfo("SMAHA00100", "pnm", ipt_pnm.currentText , "N", "/root/send" ,ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
- if( model.getValue(ipt_pid.attribute("ref")) != "" ) fGetJudgPatList();
- ]]>
- </script>
- </button>
- <caption id="caption20" class="search_name" style="left:11px; top:35px; width:89px; height:17px; ">사업장명 :</caption>
- <input id="ipt_cmpycd" ref="/root/init/send/item3/cmpycd" class="input_default" style="left:101px; top:35px; width:109px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
-
- inputEnterKey("btn_selcmpy", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_selcmpy" class="icon_search" style="left:215px; top:37px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fGetComnCd("SMAHA02300", "08" , "nm", ipt_cmpycd.currentText ,ipt_cmpycd.attribute("ref"),opt_cmpynm.attribute("ref"));
- ]]>
- </script>
- </button>
- <output id="opt_cmpynm" ref="/root/init/send/item3/cmpynm" class="output_fix" style="left:240px; top:35px; width:160px; height:19px; "/>
- <caption id="caption24" class="search_name" style="left:220px; top:10px; width:86px; height:17px; ">건진장소 :</caption>
- <select1 id="cmb_placeflag" ref="/root/send/srchhealexamplacecd" class="combo_default" appearance="minimal" style="left:315px; top:10px; width:76px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamplacelst/S600">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <caption id="caption5" class="tit_2" style="left:5px; top:85px; width:100px; height:13px; ">대기자리스트</caption>
- <select id="checkbox1" ref="/root/send/srchstatflag2" overflow="visible" appearance="full" cols="10" style="left:515px; top:45px; width:640px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/statlst/A0107">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select>
- <caption id="caption31" class="search_name" style="left:425px; top:45px; width:97px; height:17px; ">상태구분 :</caption>
- </case>
- <case id="case_judg">
- <datagrid id="grd_rsltlst" nodeset="/root/main/judgdetl/rsltlst/item" caption="처방명칭^2009^판정^2008^판정^2007^판정^기준^단위^testcd^execprcpuniqno^prcpdd^testyn" colsep="^" colwidth="95, 67, 30, 67, 30, 67, 30, 65, 50, 50, 50, 50, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:5px; top:142px; width:540px; height:373px; ">
- <col ref="testnm"/>
- <col ref="rslt1"/>
- <col ref="judgrsltcnts1" style="text-align:center; "/>
- <col ref="rslt2"/>
- <col ref="judgrsltcnts2" style="text-align:center; "/>
- <col ref="rslt3"/>
- <col ref="judgrsltcnts3" style="text-align:center; "/>
- <col ref="stndval"/>
- <col ref="rsltunit"/>
- <col ref="testcd" visibility="hidden"/>
- <col ref="execprcpuniqno" visibility="hidden"/>
- <col ref="prcpdd" visibility="hidden"/>
- <col ref="testyn" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell()) {
- model.makeValue("/root/send/srchtestcd",model.getValue("/root/main/judgdetl/rsltlst/item["+grd_rsltlst.row+"]/testcd"));
- submit("TRAHB00803");
- grp_textview.visible = true;
-
- grd_judglst.outlinelevelcol = grd_judglst.colRef("lvl");
- grd_judglst.outlinecol = grd_judglst.colRef("judgexmpcd");
- grd_judglst.outlinebar = 2;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (isDataCell()) {
- model.makeValue("/root/temp/seqno", model.getValue("/root/main/judgdetl/rsltlst/item["+grd_rsltlst.row+"]/execprcpuniqno"));
- model.makeValue("/root/temp/prcpdd",model.getValue("/root/main/judgdetl/rsltlst/item["+grd_rsltlst.row+"]/prcpdd"));
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_rslttextlst" nodeset="/root/main/judgdetl/rsltlst/itemtext" caption="처방명칭^testcd^caption1^caption2^execprcpuniqno^prcpdd^rsrvdd" colsep="^" colwidth="197, 100, 100, 100, 50, 50, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:522px; width:233px; height:183px; ">
- <col ref="testnm"/>
- <col ref="testcd" visibility="hidden"/>
- <col ref="judgrslt" visibility="hidden"/>
- <col ref="rslt1" visibility="hidden"/>
- <col ref="execprcpuniqno" visibility="hidden"/>
- <col ref="prcpdd" visibility="hidden"/>
- <col ref="rsrvdd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell()) {
- model.makeValue("/root/send/srchtestcd",model.getValue("/root/main/judgdetl/rsltlst/itemtext["+grd_rslttextlst.row+"]/testcd"));
- submit("TRAHB00803");
- grp_textview.visible = true;
- grp_textview.attribute("top") = 210;
- grp_textview.attribute("left") = 350;
-
- grd_judglst.outlinelevelcol = grd_judglst.colRef("lvl");
- grd_judglst.outlinecol = grd_judglst.colRef("judgexmpcd");
- grd_judglst.outlinebar = 2;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (isDataCell()) {
- fSetColRsltText(grd_rslttextlst.row);
- model.makeValue("/root/temp/seqno", model.getValue("/root/main/judgdetl/rsltlst/itemtext["+grd_rslttextlst.row+"]/execprcpuniqno"));
- model.makeValue("/root/temp/prcpdd",model.getValue("/root/main/judgdetl/rsltlst/itemtext["+grd_rslttextlst.row+"]/prcpdd"));
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- var idx = grd_rslttextlst.row;
- if(event.keyCode == 38 && idx > 0) {
- fSetColRsltText( idx - 1 );
- }else if(event.keyCode == 40 && idx < grd_rslttextlst.rows -1) {
- fSetColRsltText( idx + 1 );
- }
- ]]>
- </script>
- </datagrid>
- <group id="group5" style="left:240px; top:522px; width:306px; height:183px; vertical-align:top; ">
- <caption id="cap_year1" ref="/root/main/judgdetl/rsltlst/itemorddd/hopedd1" class="cell_1" format="yyyy" roundmode="round" style="left:-2px; top:1px; width:35px; height:60px; vertical-align:middle; cursor:hand; ">
- <![CDATA[2006]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fSetLargView(tar_rsltcnts1.value, cap_year1.value);
- ]]>
- </script>
- </caption>
- <caption id="cap_year2" ref="/root/main/judgdetl/rsltlst/itemorddd/hopedd2" class="cell_1" format="yyyy" style="left:-2px; top:62px; width:35px; height:60px; vertical-align:middle; cursor:hand; ">
- <![CDATA[2005]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fSetLargView(tar_rsltcnts2.value, cap_year2.value);
- ]]>
- </script>
- </caption>
- <caption id="cap_year3" ref="/root/main/judgdetl/rsltlst/itemorddd/hopedd3" class="cell_1" format="yyyy" style="left:-2px; top:123px; width:35px; height:60px; vertical-align:middle; cursor:hand; ">
- <![CDATA[2004]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fSetLargView(tar_rsltcnts3.value, cap_year3.value);
- ]]>
- </script>
- </caption>
- <textarea id="tar_rsltcnts1" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt1" scroll="vertical" editable="false" style="left:36px; top:2px; width:268px; height:56px; "/>
- <textarea id="tar_rsltcnts3" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt3" scroll="vertical" editable="false" style="left:36px; top:125px; width:268px; height:56px; "/>
- <textarea id="tar_rsltcnts2" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt2" scroll="vertical" editable="false" style="left:36px; top:64px; width:268px; height:56px; "/>
- <line id="line4" class="line_2" style="x1:-2px; y1:-1px; x2:292px; y2:-1px; "/>
- <line id="line5" class="line_2" style="x1:30px; y1:121px; x2:304px; y2:121px; "/>
- <line id="line7" class="line_2" style="x1:30px; y1:60px; x2:304px; y2:60px; "/>
- <button id="btn_plus" class="icon_plus" style="left:17px; top:5px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- tar_rsltcnts1_plus.visible = true;
- tar_rsltcnts1_plus.attribute("top") = 0;
- tar_rsltcnts1_plus.attribute("width") = 630;
- tar_rsltcnts2_plus.visible = true;
- tar_rsltcnts2_plus.attribute("top") = 235;
- tar_rsltcnts2_plus.attribute("width") = 630;
- tar_rsltcnts3_plus.visible = true;
- tar_rsltcnts3_plus.attribute("top") = 470;
- tar_rsltcnts3_plus.attribute("width") = 630;
- ]]>
- </script>
- </button>
- <button id="btn_minus" class="icon_minus" style="left:2px; top:5px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- tar_rsltcnts1_plus.visible = false;
- tar_rsltcnts2_plus.visible = false;
- tar_rsltcnts3_plus.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <line id="line9" class="line_1" style="x1:5px; y1:517px; x2:546px; y2:517px; "/>
- <line id="line3" class="line_1" style="x1:550px; y1:27px; x2:1180px; y2:27px; "/>
- <caption id="caption21" class="tit_2" style="left:550px; top:10px; width:100px; height:14px; ">종합판정내용</caption>
- <button id="btn_nextpat" class="btn2_letter4" style="left:1116px; top:6px; width:64px; height:19px; font-weight:bold; ">
- <caption>다음환자</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetNextPatInfo();
- ]]>
- </script>
- </button>
- <line id="line11" class="line_3" style="x1:5px; y1:706px; x2:536px; y2:706px; "/>
- <caption id="caption4" class="tit_2" style="left:5px; top:95px; width:100px; height:13px; ">종합판정</caption>
- <caption id="caption23" class="cell_1" style="left:5px; top:117px; width:60px; height:23px; vertical-align:middle; ">패키지명</caption>
- <output id="opt_pkgnm" ref="/root/main/judgdetl/judginfo/item/pkgnm" class="output_fix" appearance="output" style="left:67px; top:118px; width:328px; height:19px; "/>
- <line id="line8" class="line_3" style="x1:5px; y1:139px; x2:546px; y2:139px; "/>
- <line id="line12" class="line_3" style="x1:551px; y1:152px; x2:1181px; y2:152px; "/>
- <caption id="caption7" class="cell_1" style="left:550px; top:32px; width:70px; height:120px; vertical-align:middle; "/>
- <switch id="switch2" style="left:550px; top:180px; width:630px; height:525px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case_all" selected="true">
- <line id="line13" class="line_1" style="x1:5px; y1:6px; x2:622px; y2:6px; "/>
- <caption id="caption10" class="cell_1" style="left:5px; top:51px; width:53px; height:213px; vertical-align:middle; ">한글</caption>
- <line id="line14" class="line_2" style="x1:-2px; y1:-1px; x2:292px; y2:-1px; "/>
- <caption id="caption12" class="cell_1" style="left:5px; top:307px; width:52px; height:213px; vertical-align:middle; ">영문</caption>
- <line id="line17" class="line_2" style="x1:5px; y1:266px; x2:620px; y2:266px; "/>
- <line id="line15" class="line_3" style="x1:5px; y1:520px; x2:620px; y2:520px; "/>
- <line id="line10" class="line_2" style="x1:5px; y1:305px; x2:620px; y2:305px; "/>
- <line id="line18" class="line_2" style="x1:5px; y1:49px; x2:620px; y2:49px; "/>
- <caption id="caption11" class="cell_1" style="left:5px; top:11px; width:53px; height:38px; vertical-align:middle; ">단문(한)</caption>
- <caption id="caption15" class="cell_1" style="left:5px; top:267px; width:53px; height:38px; vertical-align:middle; ">단문(영)</caption>
- <textarea id="tar_judghngcnts2" ref="/root/main/judgdetl/judginfo/item/hngjudgcnts" scroll="vertical" style="left:60px; top:51px; width:562px; height:214px; "/>
- <textarea id="tar_judgengcnts2" ref="/root/main/judgdetl/judginfo/item/engjudgcnts" scroll="vertical" style="left:60px; top:307px; width:562px; height:214px; "/>
- <textarea id="tar_shrthngjudgcnts1" ref="/root/main/judgdetl/judginfo/item/shrthngjudgcnts" scroll="vertical" style="left:60px; top:11px; width:562px; height:38px; "/>
- <textarea id="tar_shrtengjudgcnts1" ref="/root/main/judgdetl/judginfo/item/shrtengjudgcnts" scroll="vertical" style="left:60px; top:267px; width:562px; height:38px; "/>
- </case>
- <case id="case_eng">
- <textarea id="tar_judgengcnts" ref="/root/main/judgdetl/judginfo/item/engjudgcnts" scroll="vertical" style="left:5px; top:56px; width:619px; height:464px; font-size:12px; line-spacing:5; "/>
- <line id="line21" class="line_2" style="x1:5px; y1:54px; x2:620px; y2:54px; "/>
- <line id="line22" class="line_1" style="x1:5px; y1:6px; x2:624px; y2:6px; "/>
- <textarea id="tar_shrtengjudgcnts" ref="/root/main/judgdetl/judginfo/item/shrtengjudgcnts" scroll="vertical" style="left:72px; top:11px; width:552px; height:43px; font-size:12px; line-spacing:5; "/>
- <caption id="caption16" class="cell_1" style="left:5px; top:11px; width:65px; height:43px; vertical-align:middle; ">단문</caption>
- <button id="button10" class="icon_top" style="left:43px; top:35px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- tar_shrtengjudgcnts.attribute("height") = 43;
- tar_judgengcnts.attribute("top") = 57;
- tar_judgengcnts.attribute("height") = 464;
- button10.visible = false;
- button11.visible = true;
- ]]>
- </script>
- </button>
- <button id="button11" class="icon_bottom" style="left:43px; top:35px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- tar_shrtengjudgcnts.attribute("height") = 193;
- tar_judgengcnts.attribute("top") = 207;
- tar_judgengcnts.attribute("height") = 314;
- button10.visible = true;
- button11.visible = false;
- ]]>
- </script>
- </button>
- </case>
- <case id="case_hng">
- <line id="line19" class="line_2" style="x1:5px; y1:54px; x2:620px; y2:54px; "/>
- <line id="line20" class="line_1" style="x1:5px; y1:6px; x2:624px; y2:6px; "/>
- <caption id="caption17" class="cell_1" style="left:5px; top:11px; width:65px; height:43px; vertical-align:middle; ">단문</caption>
- <textarea id="tar_shrthngjudgcnts" ref="/root/main/judgdetl/judginfo/item/shrthngjudgcnts" scroll="vertical" style="left:72px; top:11px; width:552px; height:43px; font-family:돋움, Arial; font-size:12px; "/>
- <textarea id="tar_judghngcnts" ref="/root/main/judgdetl/judginfo/item/hngjudgcnts" scroll="vertical" style="left:5px; top:57px; width:619px; height:464px; font-family:돋움, Arial; line-spacing:5; "/>
- <button id="btn_small" class="icon_top" style="left:43px; top:35px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- tar_shrthngjudgcnts.attribute("height") = 43;
- tar_judghngcnts.attribute("top") = 57;
- tar_judghngcnts.attribute("height") = 464;
- btn_small.visible = false;
- btn_large.visible = true;
- ]]>
- </script>
- </button>
- <button id="btn_large" class="icon_bottom" style="left:43px; top:35px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- tar_shrthngjudgcnts.attribute("height") = 193;
- tar_judghngcnts.attribute("top") = 207;
- tar_judghngcnts.attribute("height") = 314;
- btn_small.visible = true;
- btn_large.visible = false;
- ]]>
- </script>
- </button>
- </case>
- <case id="case_afexam">
- <button id="button16" class="btn2_letter3" style="left:469px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_afexamlist.addRow();
- var healexamflag = model.getValue("/root/send/srchhealexamflag");
- var healexamdetlflag = model.getValue("/root/send/srchhealexamdetlflag");
- var rsrvdd = model.getValue("/root/send/srchrsrvdd");
- var rsrvno = model.getValue("/root/send/srchrsrvno");
- model.setValue("/root/main/afexamlist/item["+ grd_afexamlist.row +"]/healexamflag" , healexamflag);
- model.setValue("/root/main/afexamlist/item["+ grd_afexamlist.row +"]/healexamdetlflag" , healexamdetlflag);
- model.setValue("/root/main/afexamlist/item["+ grd_afexamlist.row +"]/rsrvdd" , rsrvdd);
- model.setValue("/root/main/afexamlist/item["+ grd_afexamlist.row +"]/rsrvno" , rsrvno);
- ]]>
- </script>
- </button>
- <button id="btn_grdpkgdel" class="btn2_letter3" style="left:526px; top:5px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_afexamlist, true);
- ]]>
- </script>
- </button>
- <button id="btn_basesave" class="btn5_letter2" visibility="visible" style="left:583px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updData = grd_afexamlist.getUpdateData();
- if(updData == ""){
- messageBox("저장할 데이터가 존재하지 않습니다.", "E999");
- return false;
- }
-
- model.makeValue("/root/send/saveAfexam/item", updData);
- if(submit("TXAHR00603")){
- messageBox("저장이", "I002");
- btn_searchhist.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_afexamlist" nodeset="/root/main/afexamlist/item" caption="healexamflag^rsrvdd^rsrvno^seq^healexamdetlflag^통보^구분^코드^검사명^월구분^이전결과^재검결과^검사일자^상담일자^진료의뢰과^진료의^비고" colsep="^" colwidth="10, 10, 10, 10, 10, 30, 40, 70, 90, 50, 80, 80, 90, 90, 80, 60, 300" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:30px; width:625px; height:490px; ">
- <col ref="healexamflag" visibility="hidden"/>
- <col ref="rsrvdd" visibility="hidden"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="seq" visibility="hidden"/>
- <col ref="healexamdetlflag" visibility="hidden"/>
- <col checkvalue="Y,N" ref="notiyn" type="checkbox"/>
- <col ref="aftype" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>추가</label>
- <value>A</value>
- </item>
- <item>
- <label>재검</label>
- <value>B</value>
- </item>
- <item>
- <label>타과</label>
- <value>C</value>
- </item>
- <item>
- <label>연장</label>
- <value>D</value>
- </item>
- <item>
- <label>전화</label>
- <value>E</value>
- </item>
- <item>
- <label>방문</label>
- <value>F</value>
- </item>
- </choices>
- </col>
- <col ref="testcd" type="inputbutton" style="padding-left:5; "/>
- <col ref="testnm" type="output" style="padding-left:5; "/>
- <col ref="monthgb" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>1개월</label>
- <value>1</value>
- </item>
- <item>
- <label>3개월</label>
- <value>3</value>
- </item>
- <item>
- <label>6개월</label>
- <value>6</value>
- </item>
- <item>
- <label>9개월</label>
- <value>9</value>
- </item>
- </choices>
- </col>
- <col ref="berslt" type="input"/>
- <col ref="afrslt" type="input"/>
- <col ref="aforddd" type="inputdate" style="text-align:center; "/>
- <col ref="cnstdd" type="inputdate" style="text-align:center; "/>
- <col ref="afdeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/orddeptcdlst/S610">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="afdrnm" type="input"/>
- <col ref="remcnts" type="input"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_afexamlist.col == grd_afexamlist.colRef("testcd")){
- model.removeNodeset("/root/main/detlcodelst/item");
- modal("SPAHA00801"); //선택화면 Call
-
- if(model.getValue("/root/temp/okflag") == "ok"){
- model.makeValue("/root/main/afexamlist/item["+ grd_afexamlist.row +"]/aftype" , model.getValue("/root/main/detlcodelst/item[" + 1 + "]/aftype"));
- model.makeValue("/root/main/afexamlist/item["+ grd_afexamlist.row +"]/testcd" , model.getValue("/root/main/detlcodelst/item[" + 1 + "]/etcdetlcd"));
- model.makeValue("/root/main/afexamlist/item["+ grd_afexamlist.row +"]/testnm" , model.getValue("/root/main/detlcodelst/item[" + 1 + "]/etcdetlnm"));
- if(grd_afexamlist.rowStatus(grd_afexamlist.row)!=1){ // Insert가 아닐때 업데이트로 변경
- grd_afexamlist.rowStatus(grd_afexamlist.row)=2;
- }
- model.refresh();
- }
- }
- ]]>
- </script>
- </datagrid>
- <line id="line25" class="line_1" style="x1:0px; y1:27px; x2:625px; y2:27px; "/>
- <caption id="caption28" class="tit_2" style="left:0px; top:9px; width:205px; height:13px; ">추가/재검/타과의뢰/연장</caption>
- </case>
- </switch>
- <button id="btn_eng" class="btn_sw" group="tab" style="left:605px; top:159px; width:55px; height:22px; ">
- <caption>영문</caption>
- <toggle case="case_eng" ev:event="onclick"/>
- </button>
- <button id="btn_selsickcd" class="btn2_letter4" style="left:555px; top:75px; width:64px; height:19px; font-weight:bolder; ">
- <caption>질환코드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cnt = grd_sicklst.rows;
- ahafGetSickCd("SMAHR00500", "", "", cnt , grd_sicklst.nodeset );
- if( model.getValue( "/root/temp/okflag") == "Y" ){
- for( var i = cnt ; i < grd_sicklst.rows ; i++){
- grd_sicklst.addStatus(i, "insert");
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_all" class="btn_sw" group="tab" style="left:660px; top:159px; width:55px; height:22px; ">
- <caption>한/영</caption>
- <toggle case="case_all" ev:event="onclick"/>
- </button>
- <button id="btn_hng" class="btn_sw" group="tab" style="left:550px; top:159px; width:55px; height:22px; ">
- <caption>한글</caption>
- <toggle case="case_hng" ev:event="onclick"/>
- </button>
- <datagrid id="grd_sicklst" nodeset="/root/main/judgdetl/judginfo/itemsick" caption="질환코드^질환명^판정코드^cmpycd" colsep="^" colwidth="96, 417, 101, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:620px; top:32px; width:558px; height:120px; ">
- <col ref="sickcd"/>
- <col ref="sicknm"/>
- <col ref="judgcd" type="combo" visibility="hidden">
- <choices>
- <item>
- <label>A</label>
- <value>A</value>
- </item>
- <item>
- <label>B</label>
- <value>B</value>
- </item>
- <item>
- <label>C</label>
- <value>C</value>
- </item>
- <item>
- <label>R</label>
- <value>R</value>
- </item>
- </choices>
- </col>
- <col ref="cmpycd" visibility="hidden"/>
- </datagrid>
- <button id="btn_sickdel" class="btn2_letter5" style="left:704px; top:6px; width:75px; height:19px; font-weight:bold; ">
- <caption>선택행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_sicklst, true);
- ]]>
- </script>
- </button>
- <group id="group1" style="left:5px; top:5px; width:541px; height:85px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:540px; height:84px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption22" class="search_name" style="left:3px; top:9px; width:89px; height:17px; ">건진종류 :</caption>
- <button id="btn_searchhist" class="btn1_letter2" style="left:460px; top:42px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var vPid = model.getValue(ipt_srchpid2.attribute("ref")) ;
- if(vPid != "" ){
- ahafGetHistList2(vPid, cmb_srchhealexamdetlflag.value, "E"); //해당환자의 건진history조회
- fGetAfexamlist(); //추가, 재검, 타과의뢰 조회
- cmb_srchrsrvdd.select(0);
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <line id="line1" style="x1:443px; y1:33px; x2:443px; y2:73px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_srchhealexamdetlflag2" ref="/root/init/send/srchhealexamdetlflag2" class="combo_s_essential" disabled="true" appearance="minimal" style="left:87px; top:8px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/hedetlflaglst/A0069">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_srchpnm2" ref="/root/init/send/item2/hngnm" class="input_default" style="left:217px; top:32px; width:115px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search2","DOMActivate" );
- ]]>
- </script>
- </input>
- <input id="ipt_srchpid2" ref="/root/init/send/item2/pid" class="input_default" style="left:87px; top:32px; width:105px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode == 13 ){
- //건진자 정보 가져오기...
- fGetPatinfoWithPid(ipt_srchpid2.currentText);
- }
- ]]>
- </script>
- </input>
- <caption id="caption26" class="search_name" style="left:3px; top:32px; width:89px; height:17px; ">등록번호 :</caption>
- <caption id="caption2" class="search_name" style="left:2px; top:55px; width:86px; height:17px; ">건진정보 :</caption>
- <select1 id="cmb_srchrsrvdd" ref="/root/send/srchrsrvdd" class="combo_s_essential" appearance="minimal" style="left:87px; top:55px; width:325px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/histlst/item">
- <label ref="hopedd"/>
- <value ref="rsrvdd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var idx = cmb_srchrsrvdd.mouseRow;
- if(idx < 0) return;
-
- var sNd = cmb_srchrsrvdd.choices.itemset.attribute("nodeset");
- var nodelist = instance1.selectNodes(sNd);
- if(nodelist == null) return;
- if(idx >= nodelist.length) idx = 0;
-
- var sRsrvdd = nodelist.item(idx).rsrvdd.text;
- var sRsrvno = nodelist.item(idx).rsrvno.text;
- var sPkgnm = nodelist.item(idx).pkgnm.text;
- var sPid = nodelist.item(idx).pid.text;
- var sOrdDD = nodelist.item(idx).orddd.text;
- var sCretno = nodelist.item(idx).cretno.text;
- var sHealExamDetlFlag = nodelist.item(idx).healexamdetlflag.text;
-
- //종합건진,기업건진 따라 건진종류 변경
- model.setValue("/root/init/send/srchhealexamdetlflag2", sHealExamDetlFlag);
-
- fGetJudgDetlInfo(sRsrvdd, sRsrvno , sPkgnm, sPid, sOrdDD, sCretno); //판정정보 상세내역 조회
- fGetAfexamlist(); //추가, 재검, 타과의뢰 정보 조회
- ]]>
- </script>
- </select1>
- <output id="opt_sex" ref="/root/init/send/item2/sex" class="output_fix" style="left:335px; top:32px; width:36px; height:19px; "/>
- <output id="opt_age" ref="/root/init/send/item2/age" class="output_fix" style="left:374px; top:32px; width:36px; height:19px; "/>
- <button id="btn_search2" class="icon_search" style="left:195px; top:32px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearchPatInfo("SMAHA00100", "pnm", ipt_srchpnm2.currentText , "N", "/root/send" ,ipt_srchpid2.attribute("ref"), ipt_srchpnm2.attribute("ref"), "", "", ipt_hometel.attribute("ref"), ipt_mpphontel.attribute("ref"), opt_sex.attribute("ref"), opt_age.attribute("ref"));
- var vPid = model.getValue(ipt_srchpid2.attribute("ref")) ;
- if( vPid != "" ) {
- //해당환자의 건진history조회
- ahafGetHistList2(vPid, cmb_srchhealexamdetlflag.value , "E");
- }
- ]]>
- </script>
- </button>
- <caption id="caption30" class="search_name" style="left:195px; top:9px; width:70px; height:17px; ">집전화:</caption>
- <input id="ipt_hometel" ref="/root/init/send/item2/telno" disabled="true" style="left:265px; top:10px; width:90px; height:19px; "/>
- <caption id="caption32" class="search_name" style="left:357px; top:9px; width:83px; height:17px; ">휴대전화:</caption>
- <input id="ipt_mpphontel" ref="/root/init/send/item2/mpphon" disabled="true" style="left:443px; top:10px; width:90px; height:19px; "/>
- </group>
- <button id="btn_seljudgcnts" class="btn2_letter4" style="left:986px; top:6px; width:64px; height:19px; font-weight:bold; ">
- <caption>판정선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetJudgExmpCnts(tar_shrthngjudgcnts ,tar_judghngcnts , tar_shrtengjudgcnts , tar_judgengcnts );
- ]]>
- </script>
- </button>
- <select1 id="cmb_judgdr" ref="/root/main/judgdetl/judginfo/item/judgdrid" class="combo_essential" appearance="minimal" style="left:1085px; top:158px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
- <label ref="drnm"/>
- <value ref="drid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.property("judgdr") = cmb_judgdr.value;
- ]]>
- </script>
- </select1>
- <caption id="caption6" class="cell_1" style="left:1037px; top:156px; width:45px; height:23px; vertical-align:middle; ">판정의</caption>
- <caption id="caption8" class="cell_1" style="left:877px; top:156px; width:59px; height:23px; vertical-align:middle; ">판정일자</caption>
- <line id="line2" class="line_1" style="x1:5px; y1:112px; x2:546px; y2:112px; "/>
- <input id="ipt_judgdd" ref="/root/main/judgdetl/judginfo/item/judgdd" class="input_essential" disabled="true" inputtype="date" style="left:939px; top:158px; width:95px; height:19px; "/>
- <line id="line23" class="line_3" style="x1:877px; y1:155px; x2:1179px; y2:155px; "/>
- <button id="button4" class="btn2_letter3" style="left:932px; top:6px; width:53px; height:19px; font-weight:bold; ">
- <caption>문진표</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetInqrInfo();
- ]]>
- </script>
- </button>
- <group id="grp_textview" style="left:550px; top:300px; width:458px; height:315px; ">
- <datagrid id="grd_judglst" nodeset="/root/main/judgexmpcdlst/item" caption="level^선택^판정코드^판정내용(한)^판정내용(영)" colsep="^" colwidth="18, 31, 100, 150, 122" dataheight="25" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:5px; top:31px; width:446px; height:249px; ">
- <col ref="lvl" visibility="hidden"/>
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="judgexmpcd"/>
- <col ref="judghangshrtcnts"/>
- <col ref="judgengshrtcnts"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var idx = grd_judglst.row;
- var level = grd_judglst.valueMatrix(idx,grd_judglst.colRef("lvl"));
- var sel = grd_judglst.valueMatrix(idx,grd_judglst.colRef("sel"));
- if(grd_judglst.colRef("sel") == grd_judglst.col && level == "1") {
- while(true) {
- idx++;
- if(grd_judglst.valueMatrix(idx,grd_judglst.colRef("lvl")) != "2") break;
- grd_judglst.valueMatrix(idx,grd_judglst.colRef("sel")) = sel == "Y" ? "Y" : "N";
-
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="button2" class="btn2_letter2" style="left:409px; top:5px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_textview.visible = false;
- ]]>
- </script>
- </button>
- <line id="line24" class="line_1" style="x1:5px; y1:26px; x2:451px; y2:26px; "/>
- <caption id="caption9" ref="/root/temp/temprslt/temptestnm" class="tit_2" style="left:5px; top:5px; width:305px; height:13px; "/>
- <button id="button1" class="btn4_letter2" style="left:395px; top:285px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fDocCmtChoice();
- grp_textview.visible = false;
- ]]>
- </script>
- </button>
- <shape id="rectangle1" appearance="rectangle" style="left:0px; top:0px; width:456px; height:310px; "/>
- </group>
- <button id="button5" class="btn2_letter4" style="left:1051px; top:6px; width:64px; height:19px; font-weight:bold; ">
- <caption>이전환자</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetPrePatInfo();
- ]]>
- </script>
- </button>
- <group id="grp_textrslt" visibility="hidden" style="left:5px; top:165px; width:535px; height:345px; ">
- <caption id="cap_temptestnm" ref="/root/temp/temprslt/temptestnm" class="tit_2" style="left:5px; top:5px; width:475px; height:13px; "/>
- <line id="line37" class="line_1" style="x1:5px; y1:25px; x2:530px; y2:25px; "/>
- <textarea id="tar_temprsltcnts" ref="/root/temp/temprslt/temprsltcnts" editable="false" style="left:5px; top:30px; width:525px; height:315px; "/>
- <button id="btn_rsltclose" class="btn2_letter2" style="left:488px; top:5px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_textrslt.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <button id="button8" class="btn2_letter5" style="left:780px; top:6px; width:75px; height:19px; font-weight:bold; ">
- <caption>PACS조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if ( model.getValue("/root/init/send/item2/pid") == "" ) {
- messageBox("등록번호를 입력하세요.","I999");
- return true;
- }else{
- // fClickPACSOrdPatResultList(grd_acptlst);
- var prcpdd = model.getValue("/root/temp/prcpdd");
- var execprcpuniqno= model.getValue("/root/temp/seqno");
- var pid = model.getValue("/root/init/send/item2/pid");
- var pacsorderid = prcpdd+execprcpuniqno;
- zepfpacsAll(pacsorderid, pid);
- }
- ]]>
- </script>
- </button>
- <button id="button9" class="btn2_letter5" style="left:856px; top:6px; width:75px; height:19px; font-weight:bold; ">
- <caption>CDIS조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send/iemr2");
- model.makeNode("/root/hidden/temp");
-
- var prcpdd = model.getValue("/root/temp/prcpdd");
- var execprcpuniqno = model.getValue("/root/temp/seqno");
- var instcd = getUserInfo("dutplceinstcd");
-
- var sprcpdd = aezfTrim(prcpdd, 44);
- var sexecprcpuniqno = aezfTrim(execprcpuniqno, 44);
- var sinstcd = aezfTrim(instcd, 44);
-
- model.makeValue("/root/send/iemr2/cmc_orddate", sprcpdd);
- model.makeValue("/root/send/iemr2/cmc_orderseqno", sexecprcpuniqno);
- model.makeValue("/root/send/iemr2/cmc_spcid", sinstcd);
- model.makeValue("/root/send/iemr2/pid", "");
- model.makeValue("/root/send/iemr2/orddeptcd", "");
- model.makeValue("/root/send/iemr2/indd", "");
- model.makeValue("/root/send/iemr2/docucd", "");
- model.makeValue("/root/send/iemr2/ioflag", "");
- model.makeValue("/root/send/iemr2/pagetot", "");
- model.makeValue("/root/send/iemr2/treatno", "");
- if(window.children.item("imgemrviewer") == null){
- window.load("../../../emr/imgemrweb/xrw/SSMRC03130.xrw","modeless", "imgemrviewer", "", "/root/send/iemr2", "/root/hidden/temp");
- }
- ]]>
- </script>
- </button>
- <textarea id="tar_rsltcnts1_plus" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt1" visibility="hidden" style="left:550px; top:460px; width:75px; height:235px; "/>
- <textarea id="tar_rsltcnts2_plus" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt2" visibility="hidden" style="left:550px; top:465px; width:70px; height:235px; "/>
- <textarea id="tar_rsltcnts3_plus" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt3" visibility="hidden" style="left:550px; top:470px; width:65px; height:235px; "/>
- <button id="button14" class="btn_sw" group="tab" style="left:715px; top:159px; width:69px; height:22px; ">
- <caption>추가검사</caption>
- <toggle case="case_afexam" ev:event="onclick"/>
- </button>
- <button id="button15" class="btn2_letter5" style="left:797px; top:158px; width:75px; height:19px; ">
- <caption>예정일문구</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var next_hopedd = cmb_srchrsrvdd.label.toDate().getAddDate(1, 'Y').getDateFormat(); //model.getValue("/root/send/srchrsrvdd").toDate().getAddDate(1, 'Y').getDateFormat();
- var next_value = model.getValue("/root/main/judgdetl/judginfo/item/hngjudgcnts") + "\n" + "\n";
- var cnt = getNodesetCount("/root/init/baseinfo/drlst/itemdr");
- for (var i = 0; i <= cnt; i++) {
- if (model.getValue("/root/init/baseinfo/drlst/itemdr[" + i + "]/drid") == cmb_judgdr.value) {
- var drlicnsno = model.getValue("/root/init/baseinfo/drlst/itemdr[" + i + "]/drlicnsno")
- }
- }
- next_value = next_value + "* 선생님의 다음 건강검진 예정일은 " +
- next_hopedd.substring(0,4) + " 년 " + next_hopedd.substring(4,6) + " 월 " + next_hopedd.substring(6,8) + " 일 입니다." + "\n" +
- " 판정의사 " + cmb_judgdr.label + "(면허번호 : " + drlicnsno + " )";
- model.setValue("/root/main/judgdetl/judginfo/item/hngjudgcnts", next_value);
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption29" class="cell_1" style="left:395px; top:115px; width:60px; height:23px; vertical-align:middle; ">상담의사</caption>
- <select1 id="combo1" ref="/root/main/judgdetl/judginfo/item/rsltcnstdrid" class="combo_essential" disabled="true" appearance="minimal" style="left:455px; top:118px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
- <label ref="drnm"/>
- <value ref="drid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.property("judgdr") = cmb_judgdr.value;
- ]]>
- </script>
- </select1>
- <button id="btn_auto" class="btn4_letter4" style="left:465px; top:90px; width:80px; height:22px; ">
- <caption>자동판정</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(model.getValue("/root/init/send/srchhealexamdetlflag2") == ""
- || model.getValue("/root/init/send/item2/pid") == ""
- || model.getValue("/root/send/srchrsrvdd") == "" ){
- messageBox("판정대기자 정보가 없습니다.", "I999", "");
- return;
- }
- model.makeValue("/root/hidden/checkseq","23");
- window.load( "SPAHA00701_자동판정코드선택.xrw","modal","code", "left:100px; top:150px; min:hidden; max:hidden; resize:false;");
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <button id="btn_patlst" class="btn_sw" group="tab" selected="true" style="left:3px; top:4px; width:80px; height:22px; ">
- <caption>판정대기자</caption>
- <toggle case="case_pat" ev:event="onclick"/>
- </button>
- <button id="btn_judg" class="btn_sw" group="tab" style="left:83px; top:4px; width:80px; height:22px; ">
- <caption>종합판정</caption>
- <toggle case="case_judg" ev:event="onclick"/>
- </button>
- <select id="chk_inqrautocall" ref="/root/temp/chkflag" overflow="visible" appearance="full" style="left:1074px; top:4px; width:116px; height:19px; border-style:none; ">
- <choices>
- <item>
- <label>문진표 자동 호출</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- chk_inqrautocall.value = "Y";
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- chk_inqrautocall.value = "N";
- ]]>
- </script>
- </select>
- </group>
- <group id="grp_btn" style="left:0px; top:754px; width:1195px; height:27px; ">
- <button id="btn_clear" class="btn4_letter3" style="left:1122px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInit(false );
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1065px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveJudg("H");
- ]]>
- </script>
- </button>
- <button id="btn_allprnt" class="btn3_letter4" style="left:5px; top:5px; width:80px; height:22px; ">
- <caption>일괄출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("SMAHR00900_PARAM1", fGetHealExamFlag());
- open("SMAHR00900");
- ]]>
- </script>
- </button>
- <button id="button3" class="btn3_letter4" style="left:88px; top:5px; width:80px; height:22px; ">
- <caption>결과조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("SMAHR00200_PARAM1", fGetHealExamFlag());
- setParameter("SMAHR00200_PARAM2", model.getValue("/root/init/send/srchhealexamdetlflag2"));
- setParameter("SMAHR00200_PARAM3", model.getValue("/root/init/send/item2/pid"));
- setParameter("SMAHR00200_PARAM4", cmb_srchrsrvdd.label);
-
- //modal("SMAER00800","","","","","/root/init/send/item2/pid","/root/send/data/singdata/srchpid");
- openUrl("SMAHR00200_검사결과관리[종합건진].xrw","1","","","","","");
- ]]>
- </script>
- </button>
- <button id="button6" class="btn4_letter4" style="left:984px; top:5px; width:80px; height:22px; ">
- <caption>판정완료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveJudg("I");
- ]]>
- </script>
- </button>
- <button id="button7" class="btn3_letter6" style="left:171px; top:5px; width:80px; height:22px; ">
- <caption>통합결과조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //modal("SMAER00800","","","","","/root/init/send/item2/pid","/root/send/data/singdata/srchpid");
- openUrl("SMAER00800_결과조회.xrw","1","","","","/root/init/send/item2/pid","/root/send/data/singdata/srchpid");
- ]]>
- </script>
- </button>
- <button id="button12" class="btn3_letter5" style="left:359px; top:5px; width:92px; height:22px; ">
- <caption>진료의뢰서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(case_judg.selected == true) {
- var pamInfoCvs = getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색
- var formcd = model.getValue("/root/init/baseinfo/formcdlst/S290[cdid='01']/cmt");
- model.makeNode("/root/hidden/medpatinfo");
- model.removenode("/root/hidden/medpatinfo/list");
- setCSVToNode("/root/hidden/medpatinfo" , pamInfoCvs);
-
- if(formcd == "") {
- messageBox("서식코드가 존재하지 않습니다. 서식코드를 " , "I007");
- return ;
- }
-
- setParameter("SPMMR05400_parm_pinfo", model.getValue("/root/init/send/item2/pid") + "▦"
- + model.getValue("/root/init/send/item2/orddd") + "▦"
- + model.getValue("/root/init/send/item2/cretno")+ "▦"
- + "S" + "▦"
- + model.getValue("/root/hidden/medpatinfo/list/orddeptcd") + "▦"
- + model.getValue("/root/hidden/medpatinfo/list/orddrid") + "▦"
- + model.getValue("/root/init/send/item2/hngnm") + "▦"
- + model.getValue("/root/init/send/item2/age") + "▦"
- + model.getValue("/root/init/send/item2/sex") + "▦"
- + "2380000000"); // 원무정보
- setParameter("SPMMR05400_parm_formcd", formcd); // 서식코드
- open("SPMMR05400");
- }
- ]]>
- </script>
- </button>
- <button id="button13" class="btn3_letter4" style="left:277px; top:5px; width:80px; height:22px; ">
- <caption>통합기록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMMRI00400","","","","","","");
- ]]>
- </script>
- </button>
- <button id="button17" class="btn3_letter5" style="left:453px; top:5px; width:92px; height:22px; ">
- <caption>추후관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(case_judg.selected == true) {
- clearParameter("SMAHR00600_PARAM1");
- clearParameter("SMAHR00600_PARAM2");
- clearParameter("SMAHR00600_PARAM3");
- clearParameter("SMAHR00600_PARAM4");
- clearParameter("SMAHR00600_PARAM5");
- clearParameter("SMAHR00600_PARAM6");
-
- //2015/11/02 이정택 추가
- clearParameter("SMAHR00600_PARAM7");
- clearParameter("SMAHR00600_PARAM8");
- //2015/11/02 이정택 추가
-
- setParameter ("SMAHR00600_PARAM1" , model.getValue("/root/send/srchrsrvdd"));
- setParameter ("SMAHR00600_PARAM2" , model.getValue("/root/send/srchrsrvno"));
- setParameter ("SMAHR00600_PARAM3" , model.getValue("/root/send/srchpid"));
- setParameter ("SMAHR00600_PARAM4" , ipt_srchpnm2.currentText);
- setParameter ("SMAHR00600_PARAM5" , model.getValue("/root/send/srchrgstno1"));
- setParameter ("SMAHR00600_PARAM6" , model.getValue("/root/send/srchrgstno2"));
- //2015/11/02 이정택 추가
- setParameter ("SMAHR00600_PARAM7" , ipt_hometel.value);
- setParameter ("SMAHR00600_PARAM8" , ipt_mpphontel.value);
- //2015/11/02 이정택 추가
-
- modal("SMAHR00600");
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|