12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>CyberKnife결과관리및조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <patpsn>
- <patpsninfo>
- <pid/>
- <hngnm/>
- <instcd/>
- <iogb/>
- <mpphon/>
- <sex/>
- <age/>
- <rrgstno/>
- <homedetladdr/>
- <ckno/>
- <cknoseq/>
- <mpphontel/>
- <hometel/>
- </patpsninfo>
- </patpsn>
- <carerecinfo>
- <carerecmat>
- <ckno/>
- <cknoseq/>
- <cybplanimg/>
- <fiducialdd/>
- <fiducialhh/>
- <fiducialmm/>
- <rayphodd1/>
- <rayphohh1/>
- <rayphomm1/>
- <rayphodd2/>
- <rayphohh2/>
- <rayphomm2/>
- <reqdeptcd1/>
- <reqdrid1/>
- <reqdeptcd2/>
- <reqdrid2/>
- <execdeptcd1/>
- <execdrid1/>
- <execdeptcd2/>
- <execdrid2/>
- <pid/>
- <instcd/>
- <iudgb/>
- <curedd/>
- <reqinstcd/>
- <reqinstcd2/>
- <exeinstcd/>
- <exeinstcd2/>
- <reqinstcdhg/>
- <reqdeptcdhg/>
- <reqdridhg/>
- <reqinstcd2hg/>
- <reqdeptcd2hg/>
- <reqdrid2hg/>
- <exeinstcdhg/>
- <execdeptcdhg/>
- <execdridhg/>
- <exeinstcd2hg/>
- <execdeptcd2hg/>
- <execdrid2hg/>
- </carerecmat>
- <caresumdetl>
- <seq/>
- <curepartcnt/>
- <curefromdd/>
- <curetodd/>
- <cktype/>
- <tumkind/>
- <partgrupcd/>
- <partcd/>
- <diagnm/>
- <diagcd/>
- <cklocation/>
- <curecnt/>
- <memo/>
- <ckno/>
- <cknoseq/>
- <pid/>
- </caresumdetl>
- <carerecdetl>
- <curepartcnt/>
- <pxseq/>
- <fx/>
- <seq/>
- <cureldd/>
- <bp/>
- <pulse/>
- <breth/>
- <bdtp/>
- <memo/>
- <ckno/>
- <cknoseq/>
- </carerecdetl>
- </carerecinfo>
- <treatmentsum>
- <treatmentinfo>
- <diagnm1/>
- <diagnm2/>
- <diagnm3/>
- <pathology1/>
- <pathology2/>
- <pathology3/>
- <pretx/>
- <previous1/>
- <previous2/>
- <previous3/>
- <mdremark/>
- <ckno/>
- <cknoseq/>
- <trseq/>
- <test/>
- </treatmentinfo>
- </treatmentsum>
- <treatmentsuminfo>
- <treatmentlist>
- <check/>
- <image/>
- <curepartcnt/>
- <curefromdd/>
- <diagnm/>
- <cklocation/>
- <ckposition/>
- <isodose/>
- <mvdose/>
- <colsize/>
- <fracdose/>
- <fraction/>
- <totdose/>
- <elapday/>
- <targetvol/>
- <brthtime/>
- <fidutot/>
- <fiduuse/>
- <image/>
- <ckno/>
- <cknoseq/>
- <trseq/>
- <pretx/>
- <remark/>
- <statflag/>
- <statflaghg/>
- <fx/>
- <curedd/>
- <grupcd/>
- <confrtt/>
- <confphy/>
- <confmd/>
- <sortseq/>
- <formrecseq/>
- </treatmentlist>
- </treatmentsuminfo>
- <printdatalist>
- <printdata>
- <rn/>
- <ckno/>
- <cknoseq/>
- <curefromdd/>
- <diagnm/>
- <cklocation/>
- <isodose/>
- <mvdose/>
- <colsize/>
- <tfe/>
- <totdose/>
- <fracdose/>
- <fraction/>
- <elapday/>
- <targetvol/>
- <brthtime/>
- <fidu/>
- <fx/>
- <curedd/>
- <confrttid/>
- <confphyid/>
- <confmdid/>
- <grupcd/>
- <sortseq/>
- </printdata>
- </printdatalist>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <imgsend>
- <filepath/>
- </imgsend>
- <list>
- <attachlist>
- <instcd/>
- <ckno/>
- <cknoseq/>
- <filename/>
- <filepath/>
- <filesize/>
- <filetype/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- </attachlist>
- </list>
- <codelist/>
- </main>
- <send>
- <reqdata>
- <pid/>
- <ckno/>
- <cknoseq/>
- <rtno/>
- <trseq/>
- <gb/>
- <statflag/>
- <srchflag/>
- <basecdflag>G</basecdflag>
- <basesuppdeptcd/>
- </reqdata>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <req>
- <data>
- <attach>
- <file/>
- </attach>
- <ckno/>
- <cknoseq/>
- </data>
- <data2/>
- </req>
- <treatmentinfo/>
- <popdata>
- <pid/>
- <ckno/>
- <cknoseq/>
- </popdata>
- <comcd>
- <grupcdid/>
- </comcd>
- <data/>
- </send>
- <init>
- <cmb_info>
- <seqinfo>
- <cknoseq/>
- <cknoseqnm/>
- </seqinfo>
- </cmb_info>
- <cmb_info1>
- <partgrupcdlist>
- <basecd/>
- <basecdflagdesc/>
- </partgrupcdlist>
- <partcdlist>
- <basecd/>
- <basecdflagdesc/>
- </partcdlist>
- </cmb_info1>
- <cmbinfo>
- <instcd>
- <Z0007>
- <cdid/>
- <cdnm/>
- </Z0007>
- </instcd>
- </cmbinfo>
- <userlist>
- <usercombo>
- <userid/>
- <usernm/>
- </usercombo>
- </userlist>
- <userlist1>
- <usercombo>
- <userid/>
- <usernm/>
- </usercombo>
- </userlist1>
- <tempdata>
- <pidinfo>
- <pid/>
- </pidinfo>
- </tempdata>
- <cmb_cdinfo>
- <targetnolist>
- <basecd/>
- <basecdflagdesc/>
- </targetnolist>
- <cktypelist>
- <basecd/>
- <basecdflagdesc/>
- </cktypelist>
- <tumorkindlist>
- <basecd/>
- <basecdflagdesc/>
- </tumorkindlist>
- <lesionlist>
- <basecd/>
- <basecdflagdesc/>
- </lesionlist>
- <tumortypelist>
- <basecd/>
- <basecdflagdesc/>
- </tumortypelist>
- <diagcdlist>
- <basecd/>
- <basecdflagdesc/>
- </diagcdlist>
- <locationlist>
- <basecd/>
- <basecdflagdesc/>
- </locationlist>
- <fractiontypelist>
- <basecd/>
- <basecdflagdesc/>
- </fractiontypelist>
- <ckpositionlist>
- <basecd/>
- <basecdflagdesc/>
- </ckpositionlist>
- <collimatorlist>
- <basecd/>
- <basecdflagdesc/>
- </collimatorlist>
- </cmb_cdinfo>
- <cmb_cc>
- <ccid/>
- <ccnm/>
- </cmb_cc>
- </init>
- <hidden>
- <count/>
- <instlist/>
- <reqinoutorddeptlist/>
- <exeinoutorddeptlist/>
- <reqinoutorddeptdoctorlist1/>
- <reqinoutorddeptdoctorlist2/>
- <exeinoutorddeptdoctorlist1/>
- <exeinoutorddeptdoctorlist2/>
- <source>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <acptdd/>
- </source>
- <medirec>
- <reclist>
- <cdid/>
- <cdnm/>
- </reclist>
- <eqmtifynlist>
- <eqmtifimgyn/>
- <execprcpuniqno/>
- </eqmtifynlist>
- </medirec>
- </hidden>
- <hidden1>
- <orddeptlist>
- <dept>
- <deptcd/>
- <depthngnm/>
- </dept>
- </orddeptlist>
- <userlist>
- <usercombo>
- <userid/>
- <usernm/>
- </usercombo>
- </userlist>
- <userlist1>
- <usercombo>
- <userid/>
- <usernm/>
- </usercombo>
- </userlist1>
- </hidden1>
- <hidden2>
- <popupmenu>
- <menu>
- <label>MD승인</label>
- <func>MdAppFunc</func>
- </menu>
- <menu>
- <label>MD승인취소</label>
- <func>MdAppCanFunc</func>
- </menu>
- </popupmenu>
- </hidden2>
- <temp>
- <grdindex>
- <indx/>
- </grdindex>
- <treatmentlist>
- <check/>
- <image/>
- <curepartcnt/>
- <curefromdd/>
- <diagnm/>
- <cklocation/>
- <ckposition/>
- <isodose/>
- <mvdose/>
- <colsize/>
- <fracdose/>
- <fraction/>
- <totdose/>
- <elapday/>
- <targetvol/>
- <brthtime/>
- <fidutot/>
- <fiduuse/>
- <image/>
- <ckno/>
- <cknoseq/>
- <trseq/>
- <pretx/>
- <remark/>
- <statflag/>
- </treatmentlist>
- </temp>
- <popdata>
- <ckno/>
- <cknoseq/>
- <diagnm1/>
- <diagnm2/>
- <diagnm3/>
- <pathology1/>
- <pathology2/>
- <pathology3/>
- <previous1/>
- <previous2/>
- <previous3/>
- <mdremark/>
- </popdata>
- <imgsend>
- <filepath/>
- </imgsend>
- <image>
- <attachfile>
- <image/>
- </attachfile>
- </image>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //=====================================================================================================
- // 타병원조회를 위한 세팅
- //-----------------------------------------------------------------------------------------------------
- var instcd = "012";
- var rslt_ref = "/root/hidden/reqinoutorddeptlist1";
- var sort_field = "dispseq";
- var sort_method = "asc";
- var basedd = getCurrentDate();
-
- //zsdfGetInOutOrdDeptList( instcd, rslt_ref, sort_field, sort_method, basedd );
- zbcfGetKindCodeList(new Array("A0025"), new Array("Z0007"), new Array("/root/hidden/instlist"), true, new Array("cdnm"), new Array("asc"));
- //=====================================================================================================
- zbcfGetCodeList( new Array("Z0007"), new Array("/root/init/cmbinfo/instcd"));
-
-
- // "초"를 넣어주기 위해 노드를 만들어서 공유하도록 함
- for (var i=1; i<= 30; i++)
- {
- model.makeNode( "/root/init/cmb_cc[" + i + "]/ccid" );
- model.makeNode( "/root/init/cmb_cc[" + i + "]/ccnm" );
-
- model.setValue( "/root/init/cmb_cc[" + i + "]/ccid" , i);
- model.setValue( "/root/init/cmb_cc[" + i + "]/ccnm" , i);
-
- // i = i + 1;
- }
-
- //병원코드
- submit("TRZBC00101", false);
- model.setValue("/root/send/reqdata/pid", model.getValue("/root/send/popdata/pid"));
- model.setValue("/root/send/reqdata/ckno", model.getValue("/root/send/popdata/ckno"));
- model.setValue("/root/send/reqdata/cknoseq", model.getValue("/root/send/popdata/cknoseq"));
- // alert(model.getValue("/root/send/reqdata/cknoseq"));
-
- // model.setValue("/root/send/reqdata/pid", "21225574"); //상준 테스트
- // model.setValue("/root/send/reqdata/ckno","990");
- // model.setValue("/root/send/reqdata/cknoseq","4");
- // 개발
- // model.setValue("/root/send/reqdata/pid", "14024873"); //상준 테스트
- // model.setValue("/root/send/reqdata/ckno","831");
- // model.setValue("/root/send/reqdata/cknoseq","2");
- aezfSetSuppDeptcd();
- model.setValue("/root/send/reqdata/basesuppdeptcd", model.getValue("/root/send/globalinstance/instance1") );
- //코드조회 (TargetNo, CK Type, Tumor Kind 등의 기준정보를 가져온다)
- submit("TRAEA02605");
- //CKNO seq 갖고오기
- submit("TRAEA02601");
- cmb_cknoseq.select(0);
- //환자정보
- submit("TRAEA02602");
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = 'D';
- var rslt_ref = "/root/hidden1/orddeptlist";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
-
- submit("TRAEA02604");
-
- // 간호기록에서 저장한 Nursing Record 저장되어 있던 정보를 가져온다.
- readfunc();
-
- // 진단, MD Remark, Pathology 등의 정보를 가져온다
- submit("TRAEA03906");
-
- //Treatment Summary 조회
- submit("TRAEA03901");
-
- // GrupCode를 기준으로 로딩된 Treatment Summary 자료 Merge 작업 하기
- fmerge1();
- // 인증여부 관련 체크
- chkassgyn();
-
- // 사진올리기 버튼 권한적용 여부 공통코드 테이블에서 가져오기
- model.setValue("/root/send/comcd/grupcdid","A0010");
- submit("TRAEB00010");
- if( model.getValue("/root/main/codelist/item/cdid") == "Y" ) {
- btn_uploadimage.visible = true;
- }
-
- // 환자사진관련 정보 처리
- freadimage();
-
- // model.refresh();
- // readfunc();
- ]]>
- </script>
- <submission id="TRAEA02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/cmb_info"/>
- <submission id="TRAEA02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/patpsn"/>
- <submission id="TRAEA02603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/carerecinfo"/>
- <submission id="TRZBC00101"/>
- <submission id="TXAEA02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/senddata/execdata" resultref="/root/hidden"/>
- <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRAEA02604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info1"/>
- <submission id="TRAEA03901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/treatmentsuminfo"/>
- <submission id="TRAEA03902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/init/tempdata"/>
- <submission id="TRAEA03903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/treatmentsum"/>
- <submission id="TXAEA03901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req/data2" replace="instance" resultref="/root/hidden"/>
- <submission id="TXAEA03902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/treatmentsum/treatmentinfo" replace="instance" resultref="/root/hidden"/>
- <submission id="TRAEA02605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_cdinfo"/>
- <submission id="TXAEA03906" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/treatmentinfo" resultref="/root/hidden"/>
- <submission id="TRAEA03906" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/treatmentsum"/>
- <submission id="TRAEA03907" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/printdatalist"/>
- <submission id="TXAEA03910" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/hidden"/>
- <!-- 타병원조회-->
- <submission id="TRZSU10117" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRAEA03911" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/patpsn/patpsninfo" replace="instance" resultref="/root/hidden/medirec"/>
- <submission id="TXAEA03208" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/req/data" resultref="/root/hidden"/>
- <!-- 환자사진 저장-->
- <submission id="TRAEA03213" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/"/>
- <!-- 등록된 환자사진 리스트 가져오기-->
- <submission id="TRAEA03905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/imgsend" resultref="/root/imgbinary"/>
- <!-- 조회된 ImagePath를 가지고 파일서버를 조회하여 실제 이미지 가져온다-->
- <submission id="TRAEB00010" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/codelist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/SMAEA03900.js"/>
- <script type="javascript" src="../../../emr/emrcommonweb/js/EMRCommon.js"/>
- <script type="javascript" src="../../../emr/medirecweb/js/MMR01100.js"/>
- <script type="javascript">
- <![CDATA[
- /******************************************
- 그리드 엔터 입력시 다음 셀로 가는 이벤트
- ******************************************/
- function onkeypress ()
- {
- var targetID = event.currentTarget;
- if(targetID.indexOf("_$") != -1)
- return;
- var obj = eval(event.currentTarget);
- if (obj.elementName != "xforms:datagrid")
- return;
-
- if(event.keyCode == 13)
- {
- event.defaultAction = "cancel";
-
- if(obj.col == obj.cols - 1 && obj.row == obj.rows - 1)
- return;
-
- if(obj.col == obj.cols - 1)
- {
- obj.row += 1;
- obj.col = 0;
- }
- else
- {
- obj.col += 1;
- }
- }
- }
-
- /****************************************************************************************************************************************************
- @ 해당 조건에 대한 검사내역을 조회한다.
- *****************************************************************************************************************************************************/
- function readfunc(){
- // model.removeNodeset("/root/main/carerecinfo/caresumdetl");
- model.removeNodeset("/root/main/treatmentsuminfo/treatmentlist");
- model.resetInstanceNode("/root/main/carerecinfo/carerecmat");
- if (submit("TRAEA02603")){
- // btn_save.disabled = false;
- if (model.getValue("/root/main/carerecinfo/carerecmat/ckno") == ""){
- // btn_del.disabled = true;
- model.setValue("/root/main/carerecinfo/carerecmat/iudgb", "I");
- model.setValue("/root/main/carerecinfo/carerecmat/ckno", model.getValue("/root/send/reqdata/ckno"));
- model.setValue("/root/main/carerecinfo/carerecmat/pid", model.getValue("/root/send/reqdata/pid"));
- model.setValue("/root/main/carerecinfo/carerecmat/cknoseq", model.getValue("/root/send/reqdata/cknoseq"));
- }else{
- // btn_del.disabled = false;
- }
-
- if (model.getValue("/root/main/carerecinfo/carerecmat/reqdeptcd1") == "" || model.getValue("/root/main/carerecinfo/carerecmat/reqdeptcd1") == "-"){
- }else{
- var deptcd = model.getValue("/root/main/carerecinfo/carerecmat/reqdeptcd1");
- var zsuResultRef = "/root/hidden/zsu/userlist";
- model.removenode(zsuResultRef);
- model.makenode(zsuResultRef);
- setParameter("dutplcecd", deptcd);
- setParameter("flag", "_D");
- if (deptcd != ""){
- submit("TRZSU10105", "false", getParameterPath(), zsuResultRef);
- model.copyNode("/root/hidden1/userlist", "/root/hidden/zsu/userlist");
- }
- }
- if (model.getValue("/root/main/carerecinfo/carerecmat/reqdeptcd2") == "" || model.getValue("/root/main/carerecinfo/carerecmat/reqdeptcd2") == "-"){
- }else{
- var deptcd = model.getValue("/root/main/carerecinfo/carerecmat/reqdeptcd2");
- var zsuResultRef = "/root/hidden/zsu/userlist";
- model.removenode(zsuResultRef);
- model.makenode(zsuResultRef);
- setParameter("dutplcecd", deptcd);
- setParameter("flag", "_D");
- if (deptcd != ""){
- submit("TRZSU10105", "false", getParameterPath(), zsuResultRef);
- model.copyNode("/root/hidden1/userlist1", "/root/hidden/zsu/userlist");
- }
- }
- if (model.getValue("/root/main/carerecinfo/carerecmat/execdeptcd1") == "" || model.getValue("/root/main/carerecinfo/carerecmat/execdeptcd1") == "-"){
- }else{
- var deptcd = model.getValue("/root/main/carerecinfo/carerecmat/execdeptcd1");
- zsufGetUserInfoCombo(deptcd, "/root/init/userlist","_D");
- model.refresh();
- }
- if (model.getValue("/root/main/carerecinfo/carerecmat/execdeptcd2") == "" || model.getValue("/root/main/carerecinfo/carerecmat/execdeptcd2") == "-"){
- }else{
- var deptcd = model.getValue("/root/main/carerecinfo/carerecmat/execdeptcd2");
- zsufGetUserInfoCombo(deptcd, "/root/init/userlist1","_D");
- model.refresh();
- }
- }
-
- model.refresh();
- }
-
- /****************************************************************************************************************************************************
- @ Treatment Summary 데이터 조작시 그리드 해더 상태 바꾸기(임의로 상태바뀜 제어)
- *****************************************************************************************************************************************************/
- function fchangeRowStatus(){
-
- var indx = model.getValue("/root/temp/grdindex/indx");
- var cnt = 0;
- for (var i = 0 ; i < grd_treatment.rows ; i++) {
- if(grd_treatment.rowStatus(i) != "0" ) {
- cnt++;
- }
- }
-
- //선택한 행에 대해서 데이터 조작을 여러번 할 경우 예외처리
- if(grd_treatment.rowStatus(indx) != "0" ) {
- cnt = cnt-1;
- }
-
- if( cnt >= 1) {
- alert("이전 데이터를 저장하시오" + cnt);
- grd_treatment.rowStatus(indx) = "0";
- }
- else {
-
- if(grd_treatment.rowStatus(indx) != "3" ) {
- grd_treatment.rowStatus(indx) = 2;
- model.refresh();
- }
- }
- }
-
- /****************************************************************************************************************************************************
- @ Treatment Summary 데이터 조작시 그리드 해더 상태 바꾸기2 (자동상태바뀜 제어)
- *****************************************************************************************************************************************************/
- function fchangeRowCntl(status){
- if(status == "del" || status == "upt"){
- var indx = model.getValue("/root/temp/grdindex/indx");
- var cnt = 0;
- for (var i = 0 ; i < grd_treatment.rows ; i++) {
- if(grd_treatment.rowStatus(i) != "0" ) {
- cnt++;
- }
- }
- //선택한 행에 대해서 데이터 조작을 여러번 할 경우 예외처리
- if(grd_treatment.rowStatus(indx) != "0" ) {
- cnt = cnt-1;
- }
-
- if( cnt >= 1) {
- alert("이전 데이터를 저장하시오" + cnt);
- grd_treatment.rowStatus(indx) = "0";
- }
- }
- else if( status == "add" ){
- var indx = model.getValue("/root/temp/grdindex/indx");
- var cnt = 0;
- for (var i = 0 ; i < grd_treatment.rows ; i++) {
- if(grd_treatment.rowStatus(i) != "0" ) {
- cnt++;
- }
- }
-
- if( cnt >= 1) {
- alert("이전 데이터를 저장하시오" + cnt);
- grd_treatment.rowStatus(grd_treatment.bottomRow) = "0";
- }
-
- }
- }
- /****************************************************************************************************************************************************
- @ MD 승인된 데이터를 수정하려고 하면 수정못하게 막기위해 체크한다.
- *****************************************************************************************************************************************************/
- function CuremdynChk(){
- var row = 0;
- var row = grd_treatment.row;
- // alert("선택된로우넘버 : " + row);
- if(model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + row + "]/statflag")=="Y"){
- // messageBox("MD승인","I002");
- return(0);
- }
- }
- /****************************************************************************************************************************************************
- @ Physics 승인된 데이터를 체크한다. "Physics 승인 이후만 가능합니다"
- *****************************************************************************************************************************************************/
- function PhysicsChk(){
- var row = 0;
- var row = grd_treatment.row;
- // alert("선택된로우넘버 : " + row);
- if(model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + row + "]/statflag")=="R"){
- // messageBox("Physics승인 ","E012");
- return(0);
- }
- }
-
- /****************************************************************************************************************************************************
- @ RTT 승인 여부 체크한다. ( 최조입력 또는 MD 승인상태라면 Return )
- *****************************************************************************************************************************************************/
- function RTTChk(){
- var row = 0;
- var row = grd_treatment.row;
- // alert("선택된로우넘버 : " + row);
- if(model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + row + "]/statflag")=="S" || model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + row + "]/statflag")=="Y"){
- // messageBox("Physics승인 ","E012");
- return(0);
- }
- }
-
- /****************************************************************************************************************************************************
- @ Physics 또는 MD 승인된 데이터를 수정하려고 하면 수정못하게 막기위해 체크한다.
- *****************************************************************************************************************************************************/
- function PhysicsMDYN(){
- var row = 0;
- var irow = 0;
-
- var row = grd_treatment.row;
- var irow = grd_treatment.row;
- // alert("선택된로우넘버 : " + row);
- if(model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + row + "]/statflag")=="P" || model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + row + "]/statflag")=="Y"){
- // 초기값은 허용으로
- grd_treatment.isReadOnly(irow, 3, irow, 24) = false;
-
- // 지정된 셀의 범위안에 있는 항목들을 모두 설정 함
- grd_treatment.isReadOnly(irow, 3, irow, 24) = true;
- }else{
- grd_treatment.isReadOnly(irow, 3, irow, 24) = false;
- }
- }
-
- // CKNO에 치료 사이트가 다수일 경우 메시지로 알려주기
- // 1개일때도 알려달라고 하여 seqcount 조건 수정 함
- function seqList(){
- var seqcount = instance1.selectNodes("/root/init/cmb_info/seqinfo").length;
- var ckno = model.getValue("/root/main/patpsn/patpsninfo/ckno");
- var seqList = "";
- var seqListSum = "";
- var k = 1;
-
- // alert("가져온 가지수 : " + seqcount);
- if (seqcount >= 1){
- for (i=0; i<seqcount; i++) {
- seqList = model.getValue("/root/init/cmb_info/seqinfo["+ k +"]/cknoseq");
- seqListSum = seqListSum + ckno + "-" + seqList + " ";
-
- k++;
- }
- messageBox(seqListSum + "치료 결과가","I010");
- }
- }
-
- // 서식연동 2009-09-17
- function ITEMVAL2()
- {
- this.rectermcd = "";
- this.rectermnm = "";
- this.reccnts = "";
- this.recimge = "";
- }
-
- /* @group : GrupCode를 기준으로 로딩된 자료 Merge 작업 하기
- * @ver : 2009.09.28
- * @by : 박상준
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : GrupCode를 기준으로 로딩된 자료 컬럼단위 Merge 작업 하기 위한 Function
- */
- function fmerge1() {
- if ( grd_treatment.rows <= grd_treatment.fixedRows + 1) // 로딩된 데이터가 1행이거나 없으면 리턴
- return;
-
- // colRef : 주어진 문자열과 동일하게 ref 속성으로 가지는 col 을 찾아서 그 열의 인덱스를 반환한다.
- var grupcdColNum = grd_treatment.colRef("grupcd"); // Merge작업의 기준이 되는 GrupCode
- var imageColNum = grd_treatment.colRef("image"); // Image
- var curepartcntColNum = grd_treatment.colRef("curepartcnt"); // TargetNo
- var diagnmColNum = grd_treatment.colRef("diagnm"); // 진단명
- var cklocationColNum = grd_treatment.colRef("cklocation"); // Location
- var ckpositionColNum = grd_treatment.colRef("ckposition"); // Position
- var isodoseColNum = grd_treatment.colRef("isodose"); // Prescription isodose Curve(%)
- var mvdoseColNum = grd_treatment.colRef("mvdose"); // Prescription 6MV Dose (cGy)
- var colsizeColNum = grd_treatment.colRef("colsize"); // Collimator Size(mm)
- var targetvolColNum = grd_treatment.colRef("targetvol"); // Target Volume(cc)
- var brthtimeColNum = grd_treatment.colRef("brthtime"); // Breath Hold(sec)
- var fidutotColNum = grd_treatment.colRef("fidutot"); // Fiducial (ea)
- // alert("1.grupcd 열의 인덱스: " + grupcdColNum);
- // alert("2.diagnm 열의 인덱스: :" + diagnmColNum);
- // valueMatrix : 특정 셀에 맵핑되어있는 인스턴스의 값을 설정하거나 반환한다
- var tmpStr1 = grd_treatment.valueMatrix(grd_treatment.fixedRows, grupcdColNum); // 고정된 행(fixed row)의 인스턴스 값
- var tmpStr2 = "";
- // var tmpStr11 = grd_treatment.valueMatrix(grd_treatment.fixedRows, curepartcntColNum);
- // var tmpStr21 = "";
- // alert("3. 고정된 행 grupcdCol 인스턴스의 값: " + tmpStr1);
-
- // fixedRows : 그리드 상단에 스크롤이 가능하지 않은 고정된 행(fixed row) 의 갯수를 설정하거나 반환한다.
- // fixedRows 의 갯수는 hidden 상태인 row 도 포함하는 갯수이다.
- var tmpNum = grd_treatment.fixedRows;
- // alert("4.그리드상단 고정된 행: " + tmpNum);
-
- // 고정된 행(fixed row) 부터 그리드의 전체행수까지 하나씩 증가하면서 체크
- for ( i = grd_treatment.fixedRows; i < grd_treatment.rows; i++ ) {
- if ( i + 1 <= grd_treatment.rows ) { //전체행보다 작으면
- tmpStr2 = grd_treatment.valueMatrix(i + 1, grupcdColNum); // 하나씩 증가하면서 그룹코드의 인스턴스의 값을 가져온다.
- // tmpStr21 = grd_treatment.valueMatrix(i + 1, curepartcntColNum);
- } else if ( i + 1 == grd_treatment.rows ) { //전체행과 같으면 초기화
- tmpStr2 = "";
- // tmpStr21 = "";
- }
-
- // mergeByFree : 셀의 범위를 지정하면 범위 내의 셀들이 바로 머지가 된다. 단, data cell 과 fixed cell 들을 함께 지정하면 머지되지 않는다.
- // 머지 된 셀의 데이터와 스타일 등은 지정된 범위에서 좌상단에 위치한 셀의 값을 가지게 된다.
- // Integer row1 : 셀들의 범위를 지정할 때 끝점이 될 좌상단 셀의 행 인덱스
- // Integer col1 : 셀들의 범위를 지정할 때 끝점이 될 좌상단 셀의 열 인덱스
- // Integer row2 : 셀들의 범위를 지정할 때 끝점이 될 우하단 셀의 행 인덱스
- // Integer col2 : 셀들의 범위를 지정할 때 끝점이 될 우하단 셀의 열 인덱스
- // if ( (tmpStr11 != tmpStr21) || (tmpStr1 != tmpStr2 && tmpStr11 == tmpStr21) ) {
- // 프로그램 수정 정 저장되어 있던 데이터들은 GrupCode를 일괄 "0"으로 했기 때문에 0인 데이터는 머지하여 보여주지 않음
- if ( (tmpStr1 != tmpStr2) || (tmpStr2 == "0") ) {
- // alert(tmpStr1 + "<===>"+ tmpStr2 + "머지작업 시작!!!!");
- // GrupCode 기준으로 실제 Merge 대상이 될 컬럼들 작업진행
- grd_treatment.mergeByFree(tmpNum, imageColNum, i, imageColNum); // Image
- grd_treatment.mergeByFree(tmpNum, curepartcntColNum, i, curepartcntColNum); // TargetNo
- grd_treatment.mergeByFree(tmpNum, diagnmColNum, i, diagnmColNum); // 진단명
- grd_treatment.mergeByFree(tmpNum, cklocationColNum, i, cklocationColNum); // Location
- grd_treatment.mergeByFree(tmpNum, ckpositionColNum, i, ckpositionColNum); // Position
-
- grd_treatment.mergeByFree(tmpNum, isodoseColNum, i, isodoseColNum); // Prescription isodose Curve(%)
- grd_treatment.mergeByFree(tmpNum, mvdoseColNum, i, mvdoseColNum); // Prescription 6MV Dose (cGy)
- grd_treatment.mergeByFree(tmpNum, colsizeColNum, i, colsizeColNum); // Collimator Size(mm)
- grd_treatment.mergeByFree(tmpNum, targetvolColNum, i, targetvolColNum); // Target Volume(cc)
- grd_treatment.mergeByFree(tmpNum, brthtimeColNum, i, brthtimeColNum); // Breath Hold(sec)
- grd_treatment.mergeByFree(tmpNum, fidutotColNum, i, fidutotColNum); // Fiducial (ea)
-
- tmpStr1 = tmpStr2;
- // tmpStr11 = tmpStr21;
- tmpNum = i + 1;
- }
- }
- }
-
- /* @group : 특정 항목의 값이 수정되면 GrupCode를 기준으로 로딩된 자료 자동 셋팅하기
- * @ver : 2009.10.15
- * @by : 박상준
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 특정 항목의 값이 수정되면 GrupCode를 기준으로 로딩된 자료 자동 셋팅하기 위한 Function
- */
- function EditAutoSet() {
- if ( grd_treatment.rows <= grd_treatment.fixedRows + 1) // 로딩된 데이터가 1행이거나 없으면 리턴
- return;
-
- // 비교 기준이될 Grupcode
- var grupcd = model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ grd_treatment.row +"]/grupcd");
- //var grupcd = model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ grd_treatment.row +"]/curepartcnt");
-
- //수정된값 가져와서 적용 준비
- var t_cklocation = model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ grd_treatment.row +"]/cklocation");
- var t_ckposition = model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ grd_treatment.row +"]/ckposition");
- var t_isodose = model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ grd_treatment.row +"]/isodose");
- var t_mvdose = model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ grd_treatment.row +"]/mvdose");
- var t_colsize = model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ grd_treatment.row +"]/colsize");
- var t_targetvol = model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ grd_treatment.row +"]/targetvol");
- var t_brthtime = model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ grd_treatment.row +"]/brthtime");
- var t_fidutot = model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ grd_treatment.row +"]/fidutot");
- // 고정된 행(fixed row) 부터 그리드의 전체행수까지 하나씩 증가하면서 체크
- for ( i = grd_treatment.fixedRows; i < grd_treatment.rows; i++ ) {
- // 비교대상이 될 그룹코드 돌면서 가져오기
- var tmpgrupcd = model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ i +"]/grupcd");
- //var tmpgrupcd = model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ i +"]/curepartcnt");
- // 그룹코드가 같으면 수정값으로 자동 셋팅 되도록, 기본 GrupCode값이 "0"이면 대상에서 제외
- if ( (grupcd == tmpgrupcd) && (model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ i +"]/grupcd") != "0") ) {
- // 수정된 항목에 대한 값만 동기화 하고, 적용된 행의 상태값을 저장대상Mode(Check)로 변환
- if(grd_treatment.colAttribute(grd_treatment.col,"ref")=="cklocation"){
- model.setValue("/root/main/treatmentsuminfo/treatmentlist["+ i +"]/cklocation", t_cklocation);
- }
- if(grd_treatment.colAttribute(grd_treatment.col,"ref")=="ckposition"){
- model.setValue("/root/main/treatmentsuminfo/treatmentlist["+ i +"]/ckposition", t_ckposition);
- }
- if(grd_treatment.colAttribute(grd_treatment.col,"ref")=="isodose"){
- model.setValue("/root/main/treatmentsuminfo/treatmentlist["+ i +"]/isodose", t_isodose);
- }
- if(grd_treatment.colAttribute(grd_treatment.col,"ref")=="mvdose"){
- model.setValue("/root/main/treatmentsuminfo/treatmentlist["+ i +"]/mvdose", t_mvdose);
- }
- if(grd_treatment.colAttribute(grd_treatment.col,"ref")=="colsize"){
- model.setValue("/root/main/treatmentsuminfo/treatmentlist["+ i +"]/colsize", t_colsize);
- }
- if(grd_treatment.colAttribute(grd_treatment.col,"ref")=="targetvol"){
- model.setValue("/root/main/treatmentsuminfo/treatmentlist["+ i +"]/targetvol", t_targetvol);
- }
- if(grd_treatment.colAttribute(grd_treatment.col,"ref")=="brthtime"){
- model.setValue("/root/main/treatmentsuminfo/treatmentlist["+ i +"]/brthtime", t_brthtime);
- }
- if(grd_treatment.colAttribute(grd_treatment.col,"ref")=="fidutot"){
- model.setValue("/root/main/treatmentsuminfo/treatmentlist["+ i +"]/fidutot", t_fidutot);
- }
- // 변경된 행의 상태값을 update 상태로 변경
- grd_treatment.rowStatus(i) = 2;
- } //if 종료
- } //for 종료
- } //function 종료
-
-
- /* @group : AccDose값은 TargetNo가 동일한 값을 기준으로 FxDose(1) + 전AccDose(0) 기준으로 계산
- * @ver : 2009.10.26
- * @by : 박상준
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : AccDose값은 TargetNo가 동일한 값을 기준으로 FxDose(1) + 전AccDose(0) 기준으로 셋팅하기 위한 Function
- */
- function AccDoseEditSet() {
- if ( grd_treatment.rows < grd_treatment.fixedRows + 1) // 로딩된 데이터가 없으면 리턴
- return;
-
- var curepartcnt = model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ grd_treatment.row +"]/curepartcnt");
- for ( i = grd_treatment.fixedRows; i < grd_treatment.rows; i++ ) {
- if (curepartcnt == model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ i +"]/curepartcnt") ){
-
- var a = model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ i +"]/fracdose");
- var b = model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ (i - 1) +"]/totdose");
- // 첫로우일때 공백이면 기본값 셋팅, 그룹구분이 바뀌었을때는 다른 그룹값을 자겨오지 않게 하기위해 비교
- if ( b == "" || curepartcnt != model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ (i - 1) +"]/curepartcnt") ){
- b = 0; //전 AccDose값이 NULL 이면 기본값 셋팅
- }
- //var ReAccdos = parseInt(a)+ parseInt(b);
- var ReAccdos = parseFloat(a) + parseFloat(b);
- //alert("1: "+ a +" 2: "+ b +" 3: " + ReAccdos);
- var ReAccdos = ReAccdos.toString().getRound(-3, "DOWN");
- //alert("First ReAccdos : " + ReAccdos);
- // 계산된 값이 #.95 이상이면 올림처리 하기위해 : 박상준 추가 20091103
- var ilen = ReAccdos.toString().length;
- if (ilen > 0){
- var s = ReAccdos.toString().substr(ilen - 2, ilen - 1);
- if (ReAccdos.toString().substr(ilen - 2, ilen - 1) >= "95"){
- //alert("반올림적용 : " + s + "---" + ReAccdos);
- var ReAccdos = ReAccdos.toString().getRound(-1, "HALF_UP");
- }
- }
- //alert("ReAccdos : " + ReAccdos);
- model.setValue("/root/main/treatmentsuminfo/treatmentlist["+ i +"]/totdose",ReAccdos);
- grd_treatment.rowStatus(i) = 2; // 변경된 행의 상태값을 update 상태로 변경
- }
- }
- } //function 종료
-
- function chkassgyn() {
-
- if ( model.getValue("/root/send/globalinstance/instance1") == "2360500000" ) {
- btn_formacpt.disabled = false;
- }else {
- btn_formacpt.disabled = true;
- }
-
- var formrecseq = model.getValue("/root/main/treatmentsuminfo/treatmentlist[1]/formrecseq");
- //alert('formrecseq==>'+formrecseq);
-
- if ( formrecseq == 0 ) {
- btn_formacpt.text = "서식저장";
- model.makeValue("/root/send/reqdata/chkassgyn", "Y");
- }else {
- btn_formacpt.text = "서식삭제";
- model.makeValue("/root/send/reqdata/chkassgyn", "N");
- }
- }
-
- /* @group : 환자의 Image 등록되어 있으면 사진 불러오기
- * @ver : 2010.06.28
- * @by : 박상준
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 환자의 Image 등록되어 있으면 사진 불러오기 위한 Function
- */
- function freadimage() {
- model.removeNodeset("/root/image/attachfile/image"); // 사진파일 정보 초기화
- model.removeNodeset("/root/send/req/data/attach"); // 사진올리기 사용시 선택된 Image Path Grid 초기화
- grd_attach.refresh();
- model.removeNodeset("/root/main/list/attachlist"); // 등록된 사진 내역가져오는 Grid 초기화
- grd_attachfile.refresh();
-
- submit("TRAEA03213"); // 환자의 사진정보가 있으면 가져온다
- grd_attachfile.dispatch("onclick"); // 로딩된 데이터가 있으면 자동으로 보여 줌
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <script type="javascript" ev:event="onloadcomplete">
- <![CDATA[
- fSetChild();
- ]]>
- </script>
- <group id="group2" style="left:1px; top:0px; width:1194px; height:52px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:52px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" style="x1:1100px; y1:10px; x2:1101px; y2:45px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_sea" class="btn1_letter2" visibility="hidden" style="left:1110px; top:12px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 정보조회시 기존에 Display되었던 정보를 초기화 시킨다.
- model.removenode("/root/main/treatmentsum/treatmentinfo");
- model.removenode("/root/main/carerecinfo/carerecmat");
- if( model.getValue("/root/send/reqdata/srchflag") == "ckno" ) {
-
- //CKNO seq 갖고오기
- submit("TRAEA02601");
- cmb_cknoseq.select(0);
-
- //등록번호 갖고오기
- submit("TRAEA03902");
- model.setValue("/root/send/reqdata/pid", model.getValue("/root/init/tempdata/pidinfo/pid"));
-
- //환자정보 조회
- submit("TRAEA02602");
- // cmb_cknoseq.select(0);
-
- // 치료 SITE내역이 2개 이상일 경우 메시지로 알려주기
- seqList()
-
- // 간호기록에서 저장한 Nursing Record 저장되어 있던 정보를 가져온다.
- readfunc();
-
- // 진단, MD Remark, Pathology 등의 정보를 가져온다
- submit("TRAEA03906");
-
- //Treatment Summary 조회
- submit("TRAEA03901");
-
- }
- if( model.getValue("/root/send/reqdata/srchflag") == "cknoseq" ) {
- //환자정보 조회
- submit("TRAEA02602");
- // cmb_cknoseq.select(0);
-
- // 간호기록에서 저장한 Nursing Record 저장되어 있던 정보를 가져온다.
- readfunc();
-
- // 진단, MD Remark, Pathology 등의 정보를 가져온다
- submit("TRAEA03906");
-
- //Treatment Summary 조회
- submit("TRAEA03901");
-
- }
- if( model.getValue("/root/send/reqdata/srchflag") == "pid" ) {
-
- // model.setValue("/root/send/reqdata/gb", "R");
- //환자정보
- submit("TRAEA02602");
- model.setValue("/root/send/reqdata/ckno" , model.getValue("/root/main/patpsn/patpsninfo/ckno"));
-
- //CKNO seq 갖고오기, 등록번호로 조회시에는 cknoseq를 무조건 마지막것 가져오게 하기
- submit("TRAEA02601");
- cmb_cknoseq.select(0);
-
- // 치료 SITE내역이 2개 이상일 경우 메시지로 알려주기
- seqList()
- // 간호기록에서 저장한 Nursing Record 저장되어 있던 정보를 가져온다.
- readfunc();
-
- // 진단, MD Remark, Pathology 등의 정보를 가져온다
- submit("TRAEA03906");
-
- //Treatment Summary 조회
- submit("TRAEA03901");
-
- }
- // GrupCode를 기준으로 로딩된 Treatment Summary 자료 Merge 작업 하기
- fmerge1();
- // 인증여부 관련 체크
- chkassgyn();
- //환자의 Image 등록되어 있으면 사진 불러오기 위한 Function
- freadimage()
- ]]>
- </script>
- </button>
- <input id="ipt_pid" ref="/root/send/reqdata/pid" class="input_search" disabled="false" navindex="3" _chartype="upper" style="left:440px; top:15px; width:105px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- model.setValue("/root/send/reqdata/srchflag", "pid");
- inputEnterKey("btn_sea","DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_cknoseq" ref="/root/send/reqdata/cknoseq" navindex="2" appearance="minimal" style="left:215px; top:15px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/seqinfo">
- <label ref="cknoseqnm"/>
- <value ref="cknoseq"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // model.setValue("/root/send/reqdata/srchflag", "ckno");
- model.setValue("/root/send/reqdata/srchflag", "cknoseq");
- btn_sea.dispatch("DOMActivate");
-
- ]]>
- </script>
- </select1>
- <output id="opt_patnm" ref="/root/hidden/source/hngnm" class="output_fix" style="left:571px; top:16px; width:105px; height:19px; "/>
- <button id="button61" class="icon_search" style="left:551px; top:18px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 환자조회
- // modal(id,monNo,xPos,yPos,wid,ref,resultref,userProp,prevPos, authCode)
- modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/reqdata/pid","/root/main/send");
-
- model.setValue("/root/hidden/source/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/send/reqdata/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.refresh();
-
- model.setValue("/root/send/reqdata/srchflag", "pid");
- // inputEnterKey("btn_sea","DOMActivate");
- btn_sea.dispatch("DOMActivate")
- ]]>
- </script>
- </button>
- <button id="btn_uploadimage" class="btn2_letter5" visibility="hidden" style="left:1110px; top:30px; width:75px; height:19px; ">
- <caption>사진올리기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/send/req/data/attach"); // 사진올리기 사용시 선택된 Image Path Grid
- grd_attach.refresh();
- model.removeNodeset("/root/main/list/attachlist"); // 등록된 사진 내역가져오는 Grid
- grd_attachfile.refresh();
-
- var maxsize = upload1.attribute("filesize");
-
- files = window.fileDialog("open", "|", true);
- filelist = files.split("|");
-
- for(var i = 0 ; i < filelist.length ; i++ ) {
- grd_attach.addRow(false);
- grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
- if (!checkFileSize(upload1)){
- grd_attach.removeItem();
- messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
- return;
- }
- }
-
- btn_saveimage.dispatch("DOMActivate"); // 자동저장 되도록 저장기능 호출
- ]]>
- </script>
- </button>
- <upload id="upload1" nodeset="/root/send/req/data/attach/file" ext="zip" filecount="2" filesize="5242880" validate="true" style="left:975px; top:15px; width:30px; height:20px; "/>
- <button id="btn_saveimage" class="btn2_letter4" visibility="hidden" style="left:975px; top:30px; width:64px; height:19px; ">
- <caption>사진저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_attach.rows > 2){
- messageBox("한개의 Image 파일만 선택하세요.","I999");
- model.removeNodeset("/root/send/req/data/attach"); // 사진올리기 사용시 선택된 Image Path Grid
- grd_attach.refresh();
- return;
- }
-
- model.setValue("/root/send/req/data/ckno", model.getValue("/root/send/reqdata/ckno") );
- model.setValue("/root/send/req/data/cknoseq", model.getValue("/root/send/reqdata/cknoseq") );
-
- if (submit("TXAEA03208")) {
- //messageBox("Upload가 성공적으로 이루어졌습니다.","I999");
- model.removeNodeset("/root/send/req/data/attach");
- model.refresh();
-
- // 저장된 사진정보를 불러온다
- submit("TRAEA03213");
- grd_attachfile.dispatch("onclick"); // 로딩된 데이터가 있으면 자동으로 보여 줌
- model.refresh();
- }
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption47" class="search_name" style="left:20px; top:15px; width:88px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">CK 번호 :</caption>
- <group id="group1" style="left:0px; top:55px; width:1195px; height:725px; ">
- <line id="line5" class="line_1" style="x1:0px; y1:336px; x2:1192px; y2:336px; "/>
- <line id="line14" class="line_3" style="x1:0px; y1:698px; x2:1192px; y2:698px; "/>
- <line id="line8" class="line_3" style="x1:0px; y1:181px; x2:1192px; y2:181px; "/>
- <output id="op" ref="/root/main/patpsn/patpsninfo/sex" class="output_fix" style="left:93px; top:32px; width:55px; height:19px; text-align:center; "/>
- <output id="opRT" ref="/root/main/patpsn/patpsninfo/hngnm" class="output_fix" style="left:324px; top:7px; width:120px; height:19px; text-align:center; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:179px; x2:1192px; y2:179px; "/>
- <line id="line11" class="line_3" style="x1:0px; y1:53px; x2:1192px; y2:53px; "/>
- <caption id="caption1" class="cell_1" style="left:0px; top:30px; width:90px; height:23px; ">성별/나이</caption>
- <caption id="caption43" style="left:155px; top:34px; width:10px; height:20px; vertical-align:middle; ">/</caption>
- <caption id="caption12" class="cell_1" style="left:0px; top:6px; width:90px; height:23px; ">등록번호</caption>
- <caption id="caption24" class="tit_2" style="left:6px; top:167px; width:142px; height:13px; ">Treatment Summary</caption>
- <caption id="caption4" class="cell_1" style="left:231px; top:6px; width:90px; height:23px; text-align:left; vertical-align:middle; ">환자이름</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:0px; x2:1192px; y2:0px; "/>
- <line id="line17" class="line_2" style="x1:0px; y1:30px; x2:1192px; y2:30px; "/>
- <caption id="caption5" class="cell_1" visibility="hidden" style="left:452px; top:159px; width:90px; height:23px; text-align:left; vertical-align:middle; ">병원</caption>
- <caption id="caption6" class="cell_1" style="left:231px; top:30px; width:90px; height:23px; text-align:left; vertical-align:middle; ">주민번호</caption>
- <output id="opAge" ref="/root/main/patpsn/patpsninfo/age" class="output_fix" style="left:172px; top:32px; width:55px; height:19px; text-align:center; "/>
- <line id="line3" class="line_1" style="x1:0px; y1:182px; x2:1192px; y2:182px; "/>
- <select1 id="combo7" ref="/root/main/patpsn/patpsninfo/instcd" disabled="true" visibility="hidden" appearance="minimal" style="left:545px; top:160px; width:183px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/instcd/Z0007">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <output id="opID" ref="/root/main/patpsn/patpsninfo/pid" class="output_fix" style="left:93px; top:7px; width:134px; height:19px; text-align:center; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:28px; x2:1192px; y2:28px; "/>
- <output id="opRegNo" ref="/root/main/patpsn/patpsninfo/rrgstno" class="output_fix" format="999999-9999999" style="left:324px; top:32px; width:120px; height:19px; text-align:center; "/>
- <line id="line15" class="line_3" style="x1:0px; y1:262px; x2:1192px; y2:262px; "/>
- <caption id="caption8" class="cell_1" style="left:0px; top:187px; width:35px; height:72px; ">진단</caption>
- <caption id="caption3" class="cell_1" style="left:255px; top:187px; width:65px; height:72px; ">Pathology</caption>
- <caption id="caption10" class="cell_1" style="left:525px; top:187px; width:59px; height:72px; ">
- <![CDATA[Previous
- Tx]]>
- </caption>
- <caption id="caption14" class="cell_1" navindex="14" style="left:0px; top:265px; width:55px; height:60px; ">Remark</caption>
- <line id="line18" class="line_2" style="x1:0px; y1:326px; x2:1192px; y2:326px; "/>
- <textarea id="textarea2" ref="/root/main/treatmentsum/treatmentinfo/mdremark" navindex="13" scroll="auto" maxlength="500" style="left:60px; top:265px; width:1131px; height:58px; "/>
- <input id="input5" ref="/root/main/treatmentsum/treatmentinfo/diagnm1" navindex="4" appearance="input" style="left:50px; top:190px; width:200px; height:19px; "/>
- <input id="input6" ref="/root/main/treatmentsum/treatmentinfo/diagnm2" class="input_default" disabled="false" navindex="5" style="left:50px; top:215px; width:200px; height:19px; "/>
- <input id="input7" ref="/root/main/treatmentsum/treatmentinfo/diagnm3" class="input_default" disabled="false" navindex="6" style="left:50px; top:240px; width:200px; height:19px; "/>
- <caption id="caption11" style="left:36px; top:190px; width:15px; height:20px; ">1.</caption>
- <caption id="caption17" style="left:36px; top:215px; width:15px; height:20px; ">2.</caption>
- <caption id="caption28" style="left:36px; top:240px; width:15px; height:20px; ">3.</caption>
- <input id="input8" ref="/root/main/treatmentsum/treatmentinfo/pathology3" class="input_default" disabled="false" navindex="9" style="left:322px; top:240px; width:200px; height:19px; "/>
- <input id="input9" ref="/root/main/treatmentsum/treatmentinfo/pathology1" class="input_default" disabled="false" navindex="7" style="left:322px; top:190px; width:200px; height:19px; "/>
- <input id="input10" ref="/root/main/treatmentsum/treatmentinfo/pathology2" class="input_default" disabled="false" navindex="8" style="left:322px; top:215px; width:200px; height:19px; "/>
- <select id="checkbox2" ref="/root/main/treatmentsum/treatmentinfo/pretx" visibility="hidden" overflow="visible" appearance="full" cols="1" rows="3" vcellspacing="7" style="left:1050px; top:175px; width:120px; height:70px; border-style:none; ">
- <choices>
- <item>
- <label>Operation</label>
- <value>O</value>
- </item>
- <item>
- <label>Chemotherapy</label>
- <value>C</value>
- </item>
- <item>
- <label>Radaition therapy</label>
- <value>R</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- // CK 번호로 저장하는 기준을 잡음. 하여 아래 건단위로 하는 로직은 주석처리 함.
- // var indx = model.getValue("/root/temp/grdindex/indx");
- // model.setValue("/root/main/treatmentsuminfo/treatmentlist["+ indx +"]/pretx", model.getValue("/root/main/treatmentsum/treatmentinfo/pretx"));
- // model.setValue("/root/main/treatmentsuminfo/treatmentlist["+ indx +"]/remark", model.getValue("/root/main/treatmentsum/treatmentinfo/remark"));
- //
- // fchangeRowStatus();
- ]]>
- </script>
- </select>
- <input id="input12" ref="/root/main/treatmentsum/treatmentinfo/previous3" class="input_default" disabled="false" navindex="12" style="left:703px; top:237px; width:487px; height:19px; "/>
- <input id="input13" ref="/root/main/treatmentsum/treatmentinfo/previous1" class="input_default" disabled="false" navindex="10" style="left:703px; top:189px; width:487px; height:19px; "/>
- <input id="input14" ref="/root/main/treatmentsum/treatmentinfo/previous2" class="input_default" disabled="false" navindex="11" style="left:703px; top:213px; width:487px; height:19px; "/>
- <button id="btn_tmpsave" class="btn4_letter2" disabled="false" style="left:0px; top:700px; width:80px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("","Q002")==6 ) {
-
- var update = getGridUpdateData(grd_treatment);
- model.setValue("/root/send/req/data2", update);
- submit("TXAEA03901");
-
- //treatment sub저장 (없앨 예정)
- //submit("TXAEA03902");
-
- }
-
- //Treatment Summary 조회
- submit("TRAEA03901");
- // GrupCode를 기준으로 로딩된 Treatment Summary 자료 Merge 작업 하기
- fmerge1();
- // btn_sea.dispatch("DOMActivate");
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_treatment" nodeset="/root/main/treatmentsuminfo/treatmentlist" class="datagrid3" autoresize="true" caption="^Status_h^Image^Target
No^치료기간_h^진단명^Location^Position^Prescription
isodose
Curve(%)^Prescription
6MV
Dose (cGy)^Collimator
Size
(mm)^Target
Volume
(cc)^Fx
No^치료일^Fx
Dose
(cGy)^Fraction_h^Acc
Dose
(cGy)^RTT^Phy^MD^Elapsed
Day_h^Target
Volume
(cc)_h^Breath
Hold
(sec)^Fiducial
(ea)^Fiducial
Use
(ea)_h^ckno^cknoseq^seq(trseq)^pretx^Remark^curemdyn(statflag)^grupcd_h^sortseq_h" colsep="^" colwidth="20, 42, 40, 45, 150, 250, 130, 52, 80, 80, 65, 65, 40, 70, 50, 52, 50, 52, 52, 52, 70, 70, 50, 50, 70, 56, 64, 65, 58, 310, 113, 100, 100" dataheight="30" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="250" rowsep="|" style="left:0px; top:327px; width:1192px; height:210px; ">
- <col checkvalue="Y,N" ref="check" type="checkbox"/>
- <col ref="statflaghg" visibility="hidden" style="text-align:center; "/>
- <col ref="image" type="inputbutton"/>
- <col disabled="false" ref="curepartcnt" type="combo" style="text-align:center; vertical-align:middle; ">
- <choices>
- <itemset nodeset="/root/init/cmb_cdinfo/targetnolist">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" editmode="inputsearch" ref="curefromdd" type="input" visibility="hidden" style="text-align:center; vertical-align:middle; "/>
- <col disabled="true" ref="diagnm" type="input" style="text-align:center; vertical-align:middle; "/>
- <col disabled="true" ref="cklocation" type="combo" style="text-align:center; vertical-align:middle; ">
- <choices>
- <itemset nodeset="/root/init/cmb_cdinfo/locationlist">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- </col>
- <col ref="ckposition" type="combo" style="text-align:center; vertical-align:middle; ">
- <choices>
- <itemset nodeset="/root/init/cmb_cdinfo/ckpositionlist">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="false" ref="isodose" type="input" maxlength="8" style="text-align:center; vertical-align:middle; "/>
- <col ref="mvdose" type="input" format="#####.99" maxlength="7" style="text-align:center; vertical-align:middle; "/>
- <col ref="colsize" type="input" style="text-align:center; vertical-align:middle; "/>
- <col ref="targetvol" type="input" format="###.999" maxlength="6" style="left:1117px; top:32px; width:85px; height:23px; text-align:center; vertical-align:middle; "/>
- <col disabled="true" ref="fx" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_cdinfo/fractiontypelist">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="curedd" type="input" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="fracdose" type="input" format="####.99" maxlength="8" roundmode="floor" roundposition="-2" style="text-align:center; vertical-align:middle; "/>
- <col disabled="true" ref="fraction" type="combo" visibility="hidden" style="text-align:center; vertical-align:middle; ">
- <choices>
- <itemset nodeset="/root/init/cmb_cdinfo/fractiontypelist">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- </col>
- <col ref="totdose" type="input" format="######.99" maxlength="8" roundmode="round" roundposition="-1" style="left:899px; top:32px; width:117px; height:23px; text-align:center; vertical-align:middle; "/>
- <col disabled="true" ref="confrtt" style="text-align:center; "/>
- <col disabled="true" ref="confphy" style="text-align:center; "/>
- <col disabled="true" ref="confmd" style="text-align:center; "/>
- <col disabled="true" ref="elapday" type="input" visibility="hidden" style="text-align:center; vertical-align:middle; "/>
- <col ref="targetvol_old" type="input" visibility="hidden" maxlength="6" style="left:1117px; top:32px; width:85px; height:23px; text-align:center; vertical-align:middle; "/>
- <col ref="brthtime" type="combo" style="text-align:center; vertical-align:middle; ">
- <choices>
- <itemset nodeset="/root/init/cmb_cc">
- <label ref="ccnm"/>
- <value ref="ccid"/>
- </itemset>
- </choices>
- </col>
- <col ref="fidutot" type="combo" style="text-align:center; vertical-align:middle; ">
- <choices>
- <itemset nodeset="/root/init/cmb_cc">
- <label ref="ccnm"/>
- <value ref="ccid"/>
- </itemset>
- </choices>
- </col>
- <col ref="fiduuse" type="combo" visibility="hidden" style="text-align:center; vertical-align:middle; ">
- <choices>
- <itemset nodeset="/root/init/cmb_cc">
- <label ref="ccnm"/>
- <value ref="ccid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="ckno" visibility="hidden"/>
- <col disabled="true" ref="cknoseq" visibility="hidden"/>
- <col disabled="true" ref="trseq" visibility="hidden"/>
- <col ref="pretx" visibility="hidden"/>
- <col ref="remark" type="input"/>
- <col ref="statflag" visibility="hidden"/>
- <col ref="grupcd" visibility="hidden"/>
- <col ref="sortseq" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- // Physics / MD 승인된것은 수정하지 못하도록 막음
- PhysicsMDYN();
-
- // MD승인여부 체크하기
- CuremdynChk();
-
- //이미지 등록/조회 버튼을 선택했을때 필요한 값을 넘기고 팝업창을 호출한다.
- if(grd_treatment.colAttribute(grd_treatment.col,"ref")=="image"){
- model.makeNode("/root/poptemp/ckno");
- model.makeNode("/root/poptemp/cknoseq");
- model.makeNode("/root/poptemp/trseq");
- model.makeNode("/root/poptemp/statflag");
- model.setValue("/root/poptemp/ckno", model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ grd_treatment.row +"]/ckno"));
- model.setValue("/root/poptemp/cknoseq", model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ grd_treatment.row +"]/cknoseq"));
- model.setValue("/root/poptemp/trseq", model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ grd_treatment.row +"]/trseq"));
- model.setValue("/root/poptemp/statflag", model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ grd_treatment.row +"]/statflag"));
-
- //전달하는 상태값 확인하기
- // alert(model.getValue("/root/poptemp/ckno"));
- // alert(model.getValue("/root/poptemp/cknoseq"));
- // alert(model.getValue("/root/poptemp/trseq"));
-
- modal("SPAEA02602", "", "", "", "SPAEA02602","/root/poptemp","/root/send");
- model.removenode("/root/poptemp");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // Physics / MD 승인된것은 수정하지 못하도록 막음
- PhysicsMDYN();
- // MD승인여부 체크하기
- CuremdynChk();
-
- /* var indx = grd_treatment.row;
- model.setValue("/root/temp/grdindex/indx", indx);
- alert(indx);
-
- model.setValue("/root/send/reqdata/trseq", model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ indx+"]/trseq") );
-
- model.setValue("/root/main/treatmentsum/treatmentinfo/ckno" , model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ indx +"]/ckno"));
- model.setValue("/root/main/treatmentsum/treatmentinfo/cknoseq" , model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ indx +"]/cknoseq"));
- model.setValue("/root/main/treatmentsum/treatmentinfo/trseq" , model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ indx +"]/trseq"));
- model.setValue("/root/main/treatmentsum/treatmentinfo/pretx" , model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ indx +"]/pretx"));
- model.refresh();
- // submit("TRAEA03903");
-
- */
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 리스트박스 형태의 데이터가 수정되었을때 동기화 루틴 호출
- EditAutoSet();
-
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
- //그리드를 선택했을때만 적용 (스크롤은 반영안되게)
- // 체크값을 전부 풀었다가 선택한것만 체크를 해준다
- // 리스크 키조합의 경우 여러개가 선택될 수 있음. <= 건수를 확인하여 조건을 체크해 주어야 함.
- if (isDataCell()) {
- for ( var i = 1; i < grd_treatment.rows; i++) {
- model.setValue("/root/main/treatmentsuminfo/treatmentlist[" + i + "]/check", "N");
- }
- for ( var i =0 ; i< grd_treatment.selectedRows;i++){
- model.setValue("/root/main/treatmentsuminfo/treatmentlist[" + grd_treatment.selectedRow(i) + "]/check", "Y");
- }
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- /*
- * 계산조건 변경 (2009.10.14 박상준)
- * 그룹코드를 기준으로 6MV 입력시 FxDose는 나눠진 값으로, AccDose는 누적값으로 계산
- */
- if(grd_treatment.colAttribute(grd_treatment.col,"ref")=="mvdose"){
-
- var grupcd = model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ grd_treatment.row +"]/grupcd");
- var curepartcnt = model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ grd_treatment.row +"]/curepartcnt");
- var mvdose = model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ grd_treatment.row +"]/mvdose");
- var divcnt = 0;
- var accdos = 0;
- // 선택된 그룹코드와 동일한 항목 건수체크
- for ( i = grd_treatment.fixedRows; i < grd_treatment.rows; i++ ) {
- if (grupcd == model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ i +"]/grupcd") ){
- //if (grupcd == model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ i +"]/curepartcnt") ){
- divcnt = divcnt + 1;
- }
- }
- // 계산된 값을 실제 적용처리
- var div = (mvdose/divcnt);
- var accdos = (mvdose/divcnt);
- // 소숫점 반올림,올림,버림을 적용하기 위해서 사용 : numericHelper.js, stringHelper.js 두가지 스크립트 필요
- // 소숫점 둘째자리까지만 표시하고 이하는 버림 (그냥 계산한 값은 엄청길게 이상하게 들어오네~!!!)
- var roundmode = div.toString().getRound(-3, "DOWN");
- //alert(div + "-------" + accdos + "---------" + tmp);
- for ( i = grd_treatment.fixedRows; i < grd_treatment.rows; i++ ) {
- if (grupcd == model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ i +"]/grupcd") ){
- //if (grupcd == model.getValue("/root/main/treatmentsuminfo/treatmentlist["+ i +"]/curepartcnt") ){
- model.setValue("/root/main/treatmentsuminfo/treatmentlist["+ i +"]/fracdose",roundmode);
- //model.setValue("/root/main/treatmentsuminfo/treatmentlist["+ i +"]/totdose",accdos);
- //accdos = (accdos + div);
- }
- }
-
- // AccDose 값은 TargetNo 가 동일한 값을 기준으로 FxDose + 전AccDose 기준으로 계산
- AccDoseEditSet();
- } //IF문 종료
-
- // 자동계산된 이후 바로 수정할 경우 재계산하도록 호출 함
- if(grd_treatment.colAttribute(grd_treatment.col,"ref")=="fracdose"){
- AccDoseEditSet();
- }
-
- // 수정된 특정컴럼 그룹코드 기준으로 동기화
- EditAutoSet();
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:0px; y1:55px; x2:1192px; y2:55px; "/>
- <input id="input1" ref="/root/main/carerecinfo/carerecmat/fiducialdd" class="input_default" disabled="true" style="left:222px; top:62px; width:220px; height:19px; font-weight:302px; "/>
- <textarea id="textarea1" ref="/root/main/carerecinfo/carerecmat/rayphodd1" disabled="true" style="left:222px; top:85px; width:220px; height:73px; "/>
- <caption id="caption46" class="cell_1" style="left:95px; top:85px; width:125px; height:73px; vertical-align:middle; ">Plan Image 촬영일</caption>
- <caption id="caption29" class="cell_1" style="left:95px; top:60px; width:125px; height:23px; vertical-align:middle; ">Fiducial 시행일</caption>
- <button id="button4" class="icon_search" disabled="true" style="left:195px; top:125px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.property("rayphodd1") = "/root/main/carerecinfo/carerecmat/rayphodd1";
- model.property("rayphohh1") = "/root/main/carerecinfo/carerecmat/rayphohh1";
- model.property("rayphomm1") = "/root/main/carerecinfo/carerecmat/rayphomm1";
- model.setValue("/root/send/popdata/cknoseq", model.getValue("/root/send/reqdata/cknoseq"));
-
- if (model.getValue("/root/main/carerecinfo/carerecmat/cybplanimg") == ""){
- messageBox("CyberKinfer Plan Image를 선택한 후 작업하시기 바랍니다.", "E999", "");
- return;
- }
-
- if (model.getValue("/root/main/carerecinfo/carerecmat/cybplanimg") == "01"){
- model.setValue("/root/send/popdata/lrgcd", "CT");
- }else if (model.getValue("/root/main/carerecinfo/carerecmat/cybplanimg") == "02"){
- model.setValue("/root/send/popdata/lrgcd", "MRI");
- }else if (model.getValue("/root/main/carerecinfo/carerecmat/cybplanimg") == "03"){
- model.setValue("/root/send/popdata/lrgcd", "ANGIO");
- }else if (model.getValue("/root/main/carerecinfo/carerecmat/cybplanimg") == "04"){
- model.setValue("/root/send/popdata/lrgcd", "CT");
- }else if (model.getValue("/root/main/carerecinfo/carerecmat/cybplanimg") == "05"){
- model.setValue("/root/send/popdata/lrgcd", "CT");
- }
- modal("SPAOR01600", "", "200", "200", "SPAOR01600","/root/send/popdata","/root/send/popdata");
- ]]>
- </script>
- </button>
- <button id="button1" class="icon_search" disabled="true" style="left:194px; top:62px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.property("rayphodd1") = "/root/main/carerecinfo/carerecmat/rayphodd1";
- model.property("rayphohh1") = "/root/main/carerecinfo/carerecmat/rayphohh1";
- model.property("rayphomm1") = "/root/main/carerecinfo/carerecmat/rayphomm1";
- model.setValue("/root/send/popdata/cknoseq", model.getValue("/root/send/reqdata/cknoseq"));
-
- if (model.getValue("/root/main/carerecinfo/carerecmat/cybplanimg") == ""){
- messageBox("CyberKinfer Plan Image를 선택한 후 작업하시기 바랍니다.", "E999", "");
- return;
- }
-
- if (model.getValue("/root/main/carerecinfo/carerecmat/cybplanimg") == "01"){
- model.setValue("/root/send/popdata/lrgcd", "CT");
- }else if (model.getValue("/root/main/carerecinfo/carerecmat/cybplanimg") == "02"){
- model.setValue("/root/send/popdata/lrgcd", "MRI");
- }else if (model.getValue("/root/main/carerecinfo/carerecmat/cybplanimg") == "03"){
- model.setValue("/root/send/popdata/lrgcd", "ANGIO");
- }else if (model.getValue("/root/main/carerecinfo/carerecmat/cybplanimg") == "04"){
- model.setValue("/root/send/popdata/lrgcd", "CT");
- }else if (model.getValue("/root/main/carerecinfo/carerecmat/cybplanimg") == "05"){
- model.setValue("/root/send/popdata/lrgcd", "CT");
- }
- modal("SPAOR01600", "", "200", "200", "SPAOR01600","/root/send/popdata","/root/send/popdata");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter3" style="left:1136px; top:161px; width:53px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.copyNode("/root/send/treatmentinfo", "/root/main/treatmentsum/treatmentinfo");
- model.setValue("/root/send/treatmentinfo/ckno",model.getValue("/root/send/reqdata/ckno"));
- model.setValue("/root/send/treatmentinfo/cknoseq",model.getValue("/root/send/reqdata/cknoseq"));
-
- // 입력값 저장하기
- submit("TXAEA03906");
-
- submit("TRAEA03906");
- /*
- //의뢰병원 조회건수 있을경우 콤보박스 선택됨
- if( model.getValue("/root/main/carerecinfo/carerecmat/reqinstcd") != ''){
- cmb_reqhosp.dispatch("xforms-select");
- }
-
- //의뢰과1 조회건수 있을경우 콤보박스 선택됨
- if( model.getValue("/root/main/carerecinfo/carerecmat/reqdeptcd1") != ''){
- cmb_reqdeptcd1.dispatch("xforms-value-changed");
- }
-
- //의뢰과2 조회건수 있을경우 콤보박스 선택됨
- if( model.getValue("/root/main/carerecinfo/carerecmat/reqdeptcd2") != ''){
- cmb_reqdeptcd2.dispatch("xforms-value-changed");
- }
-
- //시행병원 조회건수 있을경우 콤보박스 선택됨
- if( model.getValue("/root/main/carerecinfo/carerecmat/exeinstcd") != ''){
- cmb_exeinstcd.dispatch("xforms-select");
- }
-
- //치료과1 조회건수 있을경우 콤보박스 선택됨
- if( model.getValue("/root/main/carerecinfo/carerecmat/execdeptcd1") != ''){
- cmb_execdeptcd1.dispatch("xforms-value-changed");
- }
-
- //치료과2 조회건수 있을경우 콤보박스 선택됨
- if( model.getValue("/root/main/carerecinfo/carerecmat/execdeptcd2") != ''){
- cmb_execdeptcd2.dispatch("xforms-value-changed");
- }
- model.refresh();
- */
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter2" style="left:1135px; top:700px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 출력전에 필요한 데이터를 명칭으로 전환하여 가져온다
- submit("TRAEA03907");
- //exeReportPreview("RPAEA03900", "XMLSTR", "/root/main");
- exeReportPreview("RPAEA03901", "XMLSTR", "/root/main");
- ]]>
- </script>
- </button>
- <caption id="caption25" class="cell_1" style="left:586px; top:189px; width:115px; height:20px; ">Operation</caption>
- <caption id="caption32" class="cell_1" style="left:586px; top:213px; width:115px; height:20px; ">Chemotherapy</caption>
- <caption id="caption34" class="cell_1" style="left:586px; top:237px; width:115px; height:20px; ">Radaition therapy</caption>
- <button id="button3" class="btn4_letter5" style="left:165px; top:700px; width:92px; height:22px; ">
- <caption>Physicist</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var idx = parseFloat(1);
- model.removeNodeset("/root/popdata");
-
- var idx = 1;
- var kk = 0;
- var chk = 0; // 선택여부 건수 체크를 위해, 멀티건 체크 방지
-
- var rowcnt = grd_treatment.rows + 1;
-
- model.removenode("/root/temp/treatment");
- // 그리드의 로우수만큼 돌면서 체크된 자료만 넘겨준다.
- for( i = 1; i < rowcnt ; i++) {
-
- if(model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + i + "]/check") == "Y") {
- chk++;
- kk = kk + 1;
- // 처음값을 기준으로 같은 상태의 대상을 선택했는지 비교해보자
- var currow = grd_treatment.row;
- //var samcode = model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + currow + "]/statflag"); // 김병현 선생님 요구사항으로 기능 해제 2010.04.23
- //if (model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + i + "]/statflag") == samcode){ // 김병현 선생님 요구사항으로 기능 해제 2010.04.23
- var samcode = model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + currow + "]/confphy");
- if (model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + i + "]/confphy") == samcode){
- model.makeValue("/root/temp/treatment/treatmentlist["+ kk +"]/ckno", model.getValue("/root/main/treatmentsuminfo/treatmentlist/ckno"));
- model.makeValue("/root/temp/treatment/treatmentlist["+ kk +"]/cknoseq", model.getValue("/root/main/treatmentsuminfo/treatmentlist/cknoseq"));
- model.makeValue("/root/temp/treatment/treatmentlist["+ kk +"]/trseq", model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + i + "]/trseq"));
- model.makeValue("/root/temp/treatment/treatmentlist["+ kk +"]/statflag", model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + i + "]/statflag"));
- // 구분자를 넘겨 팝업창에서 승인 대상자 리스트를 그룹별로 보여준다
- model.makeValue("/root/temp/treatment/treatmentlist[" + kk + "]/rttmd", 3); // 1:Dometrist, 2:RTT, 3:Physicist, 4:MD
- model.makeValue("/root/temp/treatment/treatmentlist[" + kk + "]/m", "Physicist"); // 구분자에 따라서 app단에서 체크하는 부분이 있다
- // 승인여부에 따라서 팝업창에서 어던 버튼을 활성화 할지 결정
- //if(model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + i + "]/statflag") == "R"){ // 김병현 선생님 요구사항으로 기능 해제 2010.04.23
- if(model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + i + "]/confphy") == ""){
- model.makeValue("/root/temp/treatment/treatmentlist["+ kk +"]/appgb","Y");
- }else{
- model.makeValue("/root/temp/treatment/treatmentlist["+ kk +"]/appgb","N");
- }
- }else{
- messageBox("진행상태가 ","E004");
- return (0);
- }
- }
-
- }
- // 체크된 데이터가 있는지 확인하여 선택하도록 한다.
- // 두개이상 선택했을때 하나만 선택하도록 한다.
- if(chk == 0){
- messageBox("선택된 데이터가","I004");
- return(0);
- } else{
- // if(chk >=2){
- // messageBox("하나만 선택","I008");
- // return(0);
- // }
- }
- /**
- 김병현 선생님 요구사항으로 기능 해제 2010.04.23
- // MD승인여부 체크하기
- if(CuremdynChk() == '0'){
- return;
- }
-
- // 최조입력(S) 또는 MD승인(Y)상태라면 Return
- if(RTTChk() == '0'){
- return;
- }
- */
-
- modal("SPAEA03901", "", "800", "650", "SPAEA03901","/root/temp/treatment","/root/popdata/treatment");
- //Treatment Summary 조회
- submit("TRAEA03901");
- // GrupCode를 기준으로 로딩된 Treatment Summary 자료 Merge 작업 하기
- fmerge1();
-
- ]]>
- </script>
- </button>
- <caption id="caption2" class="cell_1" style="left:448px; top:29px; width:102px; height:23px; text-align:left; vertical-align:middle; ">집주소</caption>
- <output id="opPhone" ref="/root/main/patpsn/patpsninfo/mpphontel" class="output_fix" style="left:1044px; top:6px; width:149px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( model.getValue("/root/main/patpsn/patpsninfo/pid") != "" || model.getValue("/root/main/patpsn/patpsninfo/pid") != " " ) {
- // 전화번호 더블클릭시 해당환자의 '전화번호/주소 조회 및 수정 창' 팝업창을 호출!!!
- //예약내역이 없는 필드 체크
- var hngnm = model.getValue("/root/main/patpsn/patpsninfo/hngnm");
- var pid = model.getValue("/root/main/patpsn/patpsninfo/pid");
- if (hngnm == null && hngnm == "" && hngnm == " " && hngnm == "-"){
- return false;
- }
- //setParameter("opener_parameter_id", pid);
- model.removeNodeset("/root/temp/source");
- model.makeValue("/root/temp/source/srchcond", "1");
- model.makeValue("/root/temp/source/pid", pid);
- modal("SPPMO01400", "1", "100", "100", "SPPMO01400", "/root/temp/source", "/root/source");
-
- var hometel = getParameter("SMPMO01400_hometel");
- var mpphontel = getParameter("SMPMO01400_mpphontel");
-
- if( hometel != '' && mpphontel != '' ){
- model.setValue("/root/main/patpsn/patpsninfo/hometel", hometel) ;
- model.setValue("/root/main/patpsn/patpsninfo/mpphontel", mpphontel) ;
- }
-
- model.removeNodeset("/root/temp/source");
- model.refresh();
- }
- ]]>
- </script>
- </output>
- <caption id="caption7" class="cell_1" style="left:721px; top:5px; width:80px; height:23px; text-align:left; vertical-align:middle; ">연락처1</caption>
- <caption id="caption15" class="cell_1" style="left:960px; top:5px; width:80px; height:23px; text-align:left; vertical-align:middle; ">연락처2</caption>
- <input id="input2" ref="/root/main/patpsn/patpsninfo/homedetladdr" class="input_default" disabled="true" style="left:555px; top:32px; width:638px; height:19px; "/>
- <select1 id="radio3" ref="/root/main/patpsn/patpsninfo/iogb" disabled="true" appearance="full" cols="2" overflow="visible" style="left:450px; top:9px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </select1>
- <output id="output1" ref="/root/main/patpsn/patpsninfo/hometel" class="output_fix" style="left:805px; top:6px; width:149px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( model.getValue("/root/main/patpsn/patpsninfo/pid") != "" || model.getValue("/root/main/patpsn/patpsninfo/pid") != " " ) {
- // 전화번호 더블클릭시 해당환자의 '전화번호/주소 조회 및 수정 창' 팝업창을 호출!!!
- //예약내역이 없는 필드 체크
- var hngnm = model.getValue("/root/main/patpsn/patpsninfo/hngnm");
- var pid = model.getValue("/root/main/patpsn/patpsninfo/pid");
- if (hngnm == null && hngnm == "" && hngnm == " " && hngnm == "-"){
- return false;
- }
- //setParameter("opener_parameter_id", pid);
- model.removeNodeset("/root/temp/source");
- model.makeValue("/root/temp/source/srchcond", "1");
- model.makeValue("/root/temp/source/pid", pid);
- modal("SPPMO01400", "1", "100", "100", "SPPMO01400", "/root/temp/source", "/root/source");
-
- var hometel = getParameter("SMPMO01400_hometel");
- var mpphontel = getParameter("SMPMO01400_mpphontel");
-
- if( hometel != '' && mpphontel != '' ){
- model.setValue("/root/main/patpsn/patpsninfo/hometel", hometel) ;
- model.setValue("/root/main/patpsn/patpsninfo/mpphontel", mpphontel) ;
- }
-
- model.removeNodeset("/root/temp/source");
- model.refresh();
- }
- ]]>
- </script>
- </output>
- <caption id="caption30" class="cell_1" style="left:985px; top:60px; width:80px; height:23px; text-align:center; vertical-align:middle; ">의뢰 의사1</caption>
- <caption id="caption31" class="cell_1" style="left:779px; top:85px; width:81px; height:23px; text-align:center; vertical-align:middle; ">의뢰 과2</caption>
- <caption id="caption20" class="cell_1" style="left:985px; top:111px; width:80px; height:23px; text-align:center; vertical-align:middle; ">치료 의사1</caption>
- <caption id="caption21" class="cell_1" style="left:779px; top:136px; width:80px; height:23px; text-align:center; vertical-align:middle; ">치료 과2</caption>
- <caption id="caption16" class="cell_1" style="left:589px; top:85px; width:76px; height:23px; text-align:center; vertical-align:middle; ">의뢰병원2</caption>
- <caption id="caption33" class="cell_1" style="left:447px; top:111px; width:140px; height:48px; vertical-align:middle; ">
- <![CDATA[< 치료시행 과 / 의사 >]]>
- </caption>
- <caption id="caption18" class="cell_1" style="left:589px; top:136px; width:76px; height:23px; text-align:center; vertical-align:middle; ">시행병원2</caption>
- <caption id="caption23" class="cell_1" style="left:985px; top:136px; width:80px; height:23px; text-align:center; vertical-align:middle; ">치료 의사2</caption>
- <caption id="caption26" class="cell_1" style="left:589px; top:60px; width:76px; height:23px; text-align:center; vertical-align:middle; ">의뢰병원1</caption>
- <caption id="caption27" class="cell_1" style="left:447px; top:60px; width:140px; height:48px; vertical-align:middle; ">
- <![CDATA[< 치료의뢰 과 / 의사 >]]>
- </caption>
- <caption id="caption35" class="cell_1" style="left:779px; top:60px; width:81px; height:23px; text-align:center; vertical-align:middle; ">의뢰 과1</caption>
- <caption id="caption36" class="cell_1" style="left:985px; top:85px; width:80px; height:23px; text-align:center; vertical-align:middle; ">의뢰 의사2</caption>
- <caption id="caption37" class="cell_1" style="left:589px; top:112px; width:76px; height:23px; text-align:center; vertical-align:middle; ">시행병원1</caption>
- <caption id="caption38" class="cell_1" style="left:779px; top:111px; width:80px; height:23px; text-align:center; vertical-align:middle; ">치료 과1</caption>
- <line id="line7" class="line_2" style="x1:582px; y1:104px; x2:1192px; y2:104px; "/>
- <output id="output2" ref="/root/main/carerecinfo/carerecmat/reqinstcdhg" class="output_fix" style="left:667px; top:62px; width:110px; height:19px; text-align:center; vertical-align:middle; "/>
- <output id="output3" ref="/root/main/carerecinfo/carerecmat/reqdeptcdhg" class="output_fix" style="left:862px; top:61px; width:120px; height:19px; text-align:center; vertical-align:middle; "/>
- <output id="output4" ref="/root/main/carerecinfo/carerecmat/reqdridhg" class="output_fix" style="left:1069px; top:61px; width:120px; height:19px; text-align:center; vertical-align:middle; "/>
- <output id="output5" ref="/root/main/carerecinfo/carerecmat/reqinstcd2hg" class="output_fix" style="left:667px; top:87px; width:110px; height:19px; text-align:center; vertical-align:middle; "/>
- <output id="output6" ref="/root/main/carerecinfo/carerecmat/reqdeptcd2hg" class="output_fix" style="left:862px; top:87px; width:120px; height:19px; text-align:center; vertical-align:middle; "/>
- <output id="output7" ref="/root/main/carerecinfo/carerecmat/reqdrid2hg" class="output_fix" style="left:1069px; top:87px; width:120px; height:19px; text-align:center; vertical-align:middle; "/>
- <output id="output8" ref="/root/main/carerecinfo/carerecmat/exeinstcdhg" class="output_fix" style="left:667px; top:114px; width:110px; height:19px; text-align:center; vertical-align:middle; "/>
- <output id="output9" ref="/root/main/carerecinfo/carerecmat/execdeptcdhg" class="output_fix" style="left:862px; top:112px; width:120px; height:19px; text-align:center; vertical-align:middle; "/>
- <output id="output10" ref="/root/main/carerecinfo/carerecmat/execdridhg" class="output_fix" style="left:1069px; top:112px; width:120px; height:19px; text-align:center; vertical-align:middle; "/>
- <output id="output11" ref="/root/main/carerecinfo/carerecmat/exeinstcd2hg" class="output_fix" style="left:666px; top:138px; width:110px; height:19px; text-align:center; vertical-align:middle; "/>
- <output id="output12" ref="/root/main/carerecinfo/carerecmat/execdeptcd2hg" class="output_fix" style="left:862px; top:138px; width:120px; height:19px; text-align:center; vertical-align:middle; "/>
- <output id="output13" ref="/root/main/carerecinfo/carerecmat/execdrid2hg" class="output_fix" style="left:1069px; top:138px; width:120px; height:19px; text-align:center; vertical-align:middle; "/>
- <datagrid id="grd_nurrec" nodeset="/root/main/carerecinfo/carerecdetl" class="datagrid2" disabled="false" autoresize="true" caption="FX^Target
No^Fx^순번^치료일^혈압^맥박^호흡^체온^메 모^caption31^caption32^caption18" colsep="^" colwidth="25, 57, 33, 42, 90, 50, 35, 35, 35, 729, 22, 24" dataheight="30" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:539px; width:1192px; height:156px; ">
- <col disabled="true" ref="pxseq" visibility="hidden" style="text-align:center; vertical-align:middle; "/>
- <col disabled="true" ref="curepartcnt" type="combo" style="text-align:center; vertical-align:middle; ">
- <choices>
- <itemset nodeset="/root/init/cmb_cdinfo/targetnolist">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="fx" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/cmb_cdinfo/fxlist">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- </col>
- <choices>
- <itemset nodeset="/root/init/cmb_cdinfo/targetnolist">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- <col disabled="true" ref="seq" visibility="hidden"/>
- <col disabled="true" ref="cureldd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="bp" type="input" maxlength="20" style="text-align:center; "/>
- <col disabled="true" ref="pulse" type="input" maxlength="20" style="text-align:center; "/>
- <col disabled="true" ref="breth" type="input" maxlength="20" style="text-align:center; "/>
- <col disabled="true" ref="bdtp" type="input" maxlength="20" style="text-align:center; "/>
- <col disabled="true" ref="memo" type="input"/>
- <col ref="ckno" visibility="hidden"/>
- <col ref="cknoseq" visibility="hidden"/>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- // 엔터키를 치면 다음 컬럼으로 포커스가 넘어가도록 만듬
- if(event.keyCode == "13"){
- grd_nurrec.col= grd_nurrec.col + 1;
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_cnfsave" class="btn4_letter4" style="left:257px; top:700px; width:80px; height:22px; ">
- <caption>MD승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //인증저장 체크
- var formrecseq = model.getValue("/root/main/treatmentsuminfo/treatmentlist[1]/formrecseq");
- //alert('formrecseq==>'+formrecseq);
- if ( formrecseq == 0 ) {
- }else {
- messageBox("서식삭제가 완료되지 ","E007");
- return 0;
- }
-
- var idx = parseFloat(1);
- model.removeNodeset("/root/popdata");
-
- var idx = 1;
- var kk = 0;
- var chk = 0; // 선택여부 건수 체크를 위해, 멀티건 체크 방지
-
- var rowcnt = grd_treatment.rows + 1;
-
- model.removenode("/root/temp/treatment");
- // 그리드의 로우수만큼 돌면서 체크된 자료만 넘겨준다.
- for( i = 1; i < rowcnt ; i++) {
-
- if(model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + i + "]/check") == "Y") {
- chk++;
- kk = kk + 1;
- // 처음값을 기준으로 같은 상태의 대상을 선택했는지 비교해보자
- var currow = grd_treatment.row;
- //var samcode = model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + currow + "]/statflag"); // 김병현 선생님 요구사항으로 기능 해제 2010.04.23
- //if (model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + i + "]/statflag") == samcode){ // 김병현 선생님 요구사항으로 기능 해제 2010.04.23
- var samcode = model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + currow + "]/confmd");
- if (model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + i + "]/confmd") == samcode){
-
- model.makeValue("/root/temp/treatment/treatmentlist["+ kk +"]/ckno", model.getValue("/root/main/treatmentsuminfo/treatmentlist/ckno"));
- model.makeValue("/root/temp/treatment/treatmentlist["+ kk +"]/cknoseq", model.getValue("/root/main/treatmentsuminfo/treatmentlist/cknoseq"));
- model.makeValue("/root/temp/treatment/treatmentlist["+ kk +"]/trseq", model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + i + "]/trseq"));
- model.makeValue("/root/temp/treatment/treatmentlist["+ kk +"]/statflag", model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + i + "]/statflag"));
-
- // 구분자를 넘겨 팝업창에서 승인 대상자 리스트를 그룹별로 보여준다
- model.makeValue("/root/temp/treatment/treatmentlist[" + kk + "]/rttmd", 4); // 1:Dometrist, 2:RTT, 3:Physicist, 4:MD
- model.makeValue("/root/temp/treatment/treatmentlist[" + kk + "]/m", "MD"); // 구분자에 따라서 app단에서 체크하는 부분이 있다
-
- // 승인여부에 따라서 팝업창에서 어던 버튼을 활성화 할지 결정
- // Physicist 승인이 되어야 MD 승인을 진행할 수 있다
- //if(model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + i + "]/statflag") == "P"){ // 김병현 선생님 요구사항으로 기능 해제 2010.04.23
- if(model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + i + "]/confmd") == ""){
- model.makeValue("/root/temp/treatment/treatmentlist["+ kk +"]/appgb","Y");
- }else{
- model.makeValue("/root/temp/treatment/treatmentlist["+ kk +"]/appgb","N");
- }
- }else{
- messageBox("진행상태가 ","E004");
- return (0);
- }
- }
- }
-
- // 체크된 데이터가 있는지 확인하여 선택하도록 한다.
- // 두개이상 선택했을때 하나만 선택하도록 한다.
- if(chk == 0){
- messageBox("선택된 데이터가","I004");
- return(0);
- } else{
- // if(chk >=2){
- // messageBox("하나만 선택","I008");
- // return(0);
- // }
- }
- /**
- 김병현 선생님 요구사항으로 기능 해제 2010.04.23
- // MD승인여부 체크하기
- // Physics 승인되었는지 체크
- if(PhysicsChk() == "0"){
- return;
- }
- */
- //MD저장
- modal("SPAEA03901", "", "800", "650", "SPAEA03901","/root/temp/treatment","/root/popdata/treatment");
- submit("TRAEA03901");
- // GrupCode를 기준으로 로딩된 Treatment Summary 자료 Merge 작업 하기
- fmerge1();
- ]]>
- </script>
- </button>
- <button id="btn_formacpt" class="btn4_letter4" style="left:344px; top:700px; width:80px; height:22px; ">
- <caption>서식저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fMediRecSave();
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_eqmtifyn" nodeset="/root/hidden/medirec/eqmtifynlist" class="datagrid2" disabled="false" visibility="hidden" autoresize="true" caption="eqmtifimgyn^execprcpuniqno^caption18" colsep="^" colwidth="81, 97" dataheight="30" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:825px; top:440px; width:200px; height:156px; ">
- <col disabled="false" ref="eqmtifimgyn"/>
- <col disabled="true" ref="execprcpuniqno" style="text-align:center; "/>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- // 엔터키를 치면 다음 컬럼으로 포커스가 넘어가도록 만듬
- if(event.keyCode == "13"){
- grd_nurrec.col= grd_nurrec.col + 1;
- }
- ]]>
- </script>
- </datagrid>
- <button id="button6" class="btn4_letter4" disabled="false" style="left:85px; top:700px; width:80px; height:22px; ">
- <caption>RTT승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var idx = parseFloat(1);
- model.removeNodeset("/root/popdata");
-
- var idx = 1;
- var kk = 0;
- var chk = 0; // 선택여부 건수 체크를 위해, 멀티건 체크 방지
-
- // 상태값이 Physicist 또는 MD승인 상태면 RTT작업 리턴
- /**
- 김병현 선생님 요구사항으로 기능 해제 2010.04.23
- if(model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + grd_treatment.row + "]/statflag")=="P" || model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + grd_treatment.row + "]/statflag")=="Y"){
- return(0);
- }
- */
- var rowcnt = grd_treatment.rows + 1;
-
- model.removenode("/root/temp/treatment");
- // 그리드의 로우수만큼 돌면서 체크된 자료만 넘겨준다.
- for( i = 1; i < rowcnt ; i++) {
-
- if(model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + i + "]/check") == "Y") {
- chk++;
- kk = kk + 1;
-
- // 처음값을 기준으로 같은 상태의 대상을 선택했는지 비교해보자
- var currow = grd_treatment.row;
- //var samcode = model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + currow + "]/statflag"); // 김병현 선생님 요구사항으로 기능 해제 2010.04.23
- //if (model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + i + "]/statflag") == samcode){ // 김병현 선생님 요구사항으로 기능 해제 2010.04.23
- var samcode = model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + currow + "]/confrtt");
- if (model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + i + "]/confrtt") == samcode){
-
- model.makeValue("/root/temp/treatment/treatmentlist["+ kk +"]/ckno", model.getValue("/root/main/treatmentsuminfo/treatmentlist/ckno"));
- model.makeValue("/root/temp/treatment/treatmentlist["+ kk +"]/cknoseq", model.getValue("/root/main/treatmentsuminfo/treatmentlist/cknoseq"));
- model.makeValue("/root/temp/treatment/treatmentlist["+ kk +"]/trseq", model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + i + "]/trseq"));
- model.makeValue("/root/temp/treatment/treatmentlist["+ kk +"]/statflag", model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + i + "]/statflag"));
-
- // 구분자를 넘겨 팝업창에서 승인 대상자 리스트를 그룹별로 보여준다
- model.makeValue("/root/temp/treatment/treatmentlist[" + kk + "]/rttmd", 2); // 1:Dometrist, 2:RTT, 3:Physicist, 4:MD
- model.makeValue("/root/temp/treatment/treatmentlist[" + kk + "]/m", "RTT"); // 구분자에 따라서 app단에서 체크하는 부분이 있다
-
- // 승인여부에 따라서 팝업창에서 어던 버튼을 활성화 할지 결정
- //if(model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + i + "]/statflag") == "S"){ // 김병현 선생님 요구사항으로 기능 해제 2010.04.23
- if(model.getValue("/root/main/treatmentsuminfo/treatmentlist[" + i + "]/confrtt") == ""){
- model.makeValue("/root/temp/treatment/treatmentlist["+ kk +"]/appgb","Y");
- }else{
- model.makeValue("/root/temp/treatment/treatmentlist["+ kk +"]/appgb","N");
- }
-
- }else{
- messageBox("진행상태가 ","E004");
- return (0);
- }
- }
-
- }
-
- // 체크된 데이터가 있는지 확인하여 선택하도록 한다.
- // 두개이상 선택했을때 하나만 선택하도록 한다.
- /**
- if(chk == 0){
- messageBox("선택된 데이터가","I004");
- return(0);
- } else{
- if(chk >=2){
- messageBox("하나만 선택","I008");
- return(0);
- }
- }
- */
- /**
- 김병현 선생님 요구사항으로 기능 해제 2010.04.23
- // MD승인여부 체크하기
- if(CuremdynChk() == '0'){
- return;
- }
- **/
- modal("SPAEA03901", "", "800", "650", "SPAEA03901","/root/temp/treatment","/root/popdata/treatment");
-
- //Treatment Summary 조회
- submit("TRAEA03901");
- // GrupCode를 기준으로 로딩된 Treatment Summary 자료 Merge 작업 하기
- fmerge1();
- ]]>
- </script>
- </button>
- <datagrid id="grd_attach" nodeset="/root/send/req/data/attach" visibility="hidden" scroll="auto" autoresize="true" caption="ImagePath" colsep="^" colwidth="84" mergecellsfixedrows="bycolrec" rowsep="|" style="left:600px; top:5px; width:100px; height:50px; ">
- <col ref="file"/>
- </datagrid>
- <datagrid id="grd_attachfile" nodeset="/root/main/list/attachlist" visibility="hidden" scroll="auto" autoresize="true" caption="filename^filesize^filetype^filepath" colsep="^" colwidth="60, 63, 59, 67" mergecellsfixedrows="bycolrec" rowsep="|" style="left:715px; top:20px; width:285px; height:50px; ">
- <col ref="filename"/>
- <col ref="filesize"/>
- <col ref="filetype"/>
- <col ref="filepath"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( grd_attachfile.rows <= grd_treatment.fixedRows ) // 로딩된 데이터가 없으면 리턴
- return;
- var idx = grd_attachfile.row;
- if(idx == 0) return false;
- var filepath = model.getValue("/root/main/list/attachlist["+ 1 +"]/filepath"); // 첫번째 로딩된 값을 보여준다.
- model.setValue("/root/imgsend/filepath", filepath);
- submit("TRAEA03905");
-
- model.removenode("/root/image/attachfile/image[0]");
- setImageRefInstance("/root/image/attachfile/image");
-
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <img id="img2" ref="/root/image/attachfile/image" visibility="hidden" style="left:330px; top:230px; width:450px; height:405px; background-stretch:stretch; "/>
- <img id="img1" ref="/root/image/attachfile/image" style="left:0px; top:60px; width:93px; height:97px; background-stretch:stretch; border-style:sunken; ">
- <script type="javascript" ev:event="onmouseout">
- <![CDATA[
- img2.visible = false;
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- img2.visible = true;
- /*
- img2.initStyle("height");
- img2.initStyle("width");
- if(img2.currentStyle.width > 800)
- {
- var imgWidth = img2.currentStyle.width;
- var imgHeight = img2.currentStyle.height;
-
- var imgRate = 800 / imgWidth;
- img2.attribute("width") = 800;
- img2.attribute("height") = imgHeight * imgRate;
- }
-
- if(img2.currentStyle.height > 700)
- {
- var imgWidth = img2.currentStyle.width;
- var imgHeight = img2.currentStyle.height;
-
- var imgRate = 700 / imgHeight;
- img2.attribute("width") = imgWidth / imgRate;
- img2.attribute("height") = 700;
- }
-
- img2.refresh();
- */
- ]]>
- </script>
- </img>
- </group>
- <caption id="caption13" class="search_name" style="left:345px; top:15px; width:88px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">등록번호 :</caption>
- <input id="ipt_ckno" ref="/root/send/reqdata/ckno" class="input_search" disabled="false" navindex="1" _chartype="upper" style="left:108px; top:15px; width:105px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- model.setValue("/root/send/reqdata/srchflag", "ckno");
- inputEnterKey("btn_sea","DOMActivate");
- ]]>
- </script>
- </input>
- <button id="button7" class="btn3_letter6" style="left:1025px; top:755px; width:104px; height:22px; ">
- <caption>통합기록조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var pid = model.getValue("/root/send/reqdata/pid");
- if(pid == ""){
- messageBox("통합기록조회를 검색할 환자를", "C002");
- return;
- }
- var wndobj = getOpenWindow("SMMRI00400");
- if(wndobj != null){
- setParameter("SMMRI00400_param_pid", model.getValue("/root/send/reqdata/pid"));
- wndobj.javascript.fInitalize();
- }else{
- setParameter("SMMRI00400_param_pid", model.getValue("/root/send/reqdata/pid"));
- open("SMMRI00400", 2, 0, 0);
- }
-
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|