12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>혈액투석적절도관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <condition>
- <srchpid/>
- <diafg/>
- <patsex/>
- <patage/>
- <patheight/>
- <execdt/>
- <dialseq/>
- <patname/>
- <patrrgstno1/>
- <patrrgstno2/>
- <todd/>
- <fromdd/>
- </condition>
- <dialexamlist/>
- <dialexaminfo>
- <execdt/>
- <bdwtval/>
- <serumcreatival/>
- <preblodbunval/>
- <postblodbunval/>
- <midblodbunval/>
- <dialintvlval/>
- <dialtims/>
- <filtvol/>
- <urinevol/>
- <urinetm/>
- <urineurea/>
- <urinecreatival/>
- <dialseq/>
- <instcd/>
- <srchpid/>
- <calpcr/>
- <calnpcr/>
- <calurr/>
- <calkrv/>
- <calktv/>
- <calresiktv/>
- <dialflag/>
- <state/>
- <bdhtval/>
- <signno/>
- <certflag/>
- <orddd/>
- <cretno/>
- <ioflag/>
- <orddeptcd/>
- <orddrid/>
- <recid/>
- <recnm/>
- </dialexaminfo>
- <caladequacy>
- <calpcr/>
- <calnpcr/>
- <calurr/>
- <calkrv/>
- <calktv/>
- <calresiktv/>
- </caladequacy>
- <patinfo>
- <patinfolist/>
- <patchosinfolist>
- <ordtype/>
- <ordddtm/>
- <dschdd/>
- <centcd/>
- <subdeptcd/>
- <depthngnm/>
- <diagnm/>
- <rsrvflag/>
- <orddrnm/>
- <orddrid/>
- <orddeptcd/>
- <pid/>
- <orddd/>
- <cretno/>
- </patchosinfolist>
- </patinfo>
- <patinfoht/>
- <paminfo/>
- <dialrawinfo/>
- </main>
- <hidden>
- <ret>
- <count/>
- </ret>
- </hidden>
- <hidden>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </hidden>
- <send>
- <req>
- <data1>
- </data1>
- <data2/>
- <signdata/>
- </req>
- <reqdata/>
- <cond1/>
- <cond2/>
- <cond3/>
- <cond99/>
- </send>
- <init>
- <srchcond1/>
- <dialfromdd/>
- <dialtodd/>
- <dialfromtm/>
- <dialtotm/>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //alert(getImageURL("dialexam2"));
- TChart1.visible = false;
- var localfile2 = "C:/Program Files/himed/components/TrustForm/TFViewer/dialexam2.gif";
- model.download(getDomain()+"/himed/webapps/emr/emrdialexamweb/images/dialexam2.gif", localfile2, false);
- var localfile3 = "C:/Program Files/himed/components/TrustForm/TFViewer/dialexam3.gif";
- model.download(getDomain()+"/himed/webapps/emr/emrdialexamweb/images/dialexam3.gif", localfile3, false);
-
- fInitialize();
-
- model.makeValue("/root/main/dialexaminfo/execdt", getCurrentDate());
- model.refresh();
-
- var pamInfoCvs = getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색
-
- //20130624 by kya
- //인증저장를 위해 상단정보가 있을 때만 인증저장/저장 버튼을 활성화시킨다.
- //start
- if ( pamInfoCvs == "" ){
- messageBox("상단정보가 없을 경우에는 저장기능이 제한됩니다.", "I007");
- button4.disabled = true;
- return;
- }
- //end
-
- var pid = "";
- //alert(pamInfoCvs);
- if(pamInfoCvs != "" ){ //cvs가 ""이 아닌 경우에만 처리함.
- model.removeNodeSet("/root/main/paminfo/list");
- setCSVToNode("/root/main/paminfo", pamInfoCvs);
- var ioflag = model.getValue("/root/main/paminfo/list/ioflag");
-
- //model.setValue("/root/hidden/condition/psnflag", ioflag);
- model.setValue("/root/main/condition/srchpid", model.getValue("/root/main/paminfo/list/pid") );
- //model.setValue("/root/main/condition/patname", model.getValue("/root/main/paminfo/list/hngnm") );
- //model.setValue("/root/main/condition/patrrgstno1", model.getValue("/root/main/paminfo/list/rrgstno1") );
- //model.setValue("/root/main/condition/patrrgstno2", model.getValue("/root/main/paminfo/list/rrgstno2") );
- //model.setValue("/root/main/condition/patsex", model.getValue("/root/main/paminfo/list/sex") );
- //model.setValue("/root/main/condition/patage", model.getValue("/root/main/paminfo/list/age") );
-
- model.refresh();
-
- model.makeValue ( "/root/send/cond1", "1");
- model.makeValue ( "/root/send/cond2", model.getValue ("/root/main/condition/srchpid" ));
- model.makeValue ( "/root/send/cond3", getUserInfo("dutplceinstcd"));
- model.makeValue ( "/root/send/cond99", "patchosinfo");
-
- if (!submit ( "TRMMO02501",false )) { //검색 시작 값이 없으면 clear 한다.
- model.resetInstanceNode ("/root/main/condition" );
- model.refresh();
- return;
- }
-
- var srcNodeList = model.instances(0).selectNodes("/root/patinfo/patinfolist");
- if ( srcNodeList.length == 1 ) { //값이 한개면 바로 화면에 보여준1다.
- ipt_srchpid.text = model.getValue ("/root/patinfo/patinfolist/pid");
- input5.text = model.getValue ("/root/patinfo/patinfolist/hngnm");
- output1.text = model.getValue ("/root/patinfo/patinfolist/rrgstno1");
- output5.text = model.getValue ("/root/patinfo/patinfolist/rrgstno2");
- output2.text = model.getValue ("/root/patinfo/patinfolist/sex");
- output3.text = model.getValue ("/root/patinfo/patinfolist/age");
-
- setHeight();
-
- doSearch("F");
-
- } else if ( srcNodeList.length > 1 ) { //값이 한개이상이면 팝업을 띄운다.
- searchPatinfoPop();
- }
-
-
-
- //setHeight();
-
- //doSearch("F");
- }
-
- ]]>
- </script>
- <submission id="TRMMO08403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/dialexamlist"/>
- <submission id="TXMMO08403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden/ret"/>
- <submission id="TRMMO08404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/patinfoht"/>
- <submission id="TRMMO02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/patinfo"/>
- <submission id="TRMMO08406" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/dialrawinfo"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
-
- var idate=new Date();
- var frDate=idate.getAddDate(-1, "M");
- model.setValue("/root/main/condition/fromdd", frDate.getDateFormat());
- model.setValue("/root/main/condition/todd", getCurrentDate());
-
-
-
- group4.visible = false;
-
- //setChartInit();
- }
-
- function calAdequacy() {
- TChart1.visible = true;
-
- if (model.getValue("/root/main/condition/patsex") == "" || model.getValue("/root/main/condition/patage") == "" || model.getValue("/root/main/condition/patheight") == "") {
- messageBox("적절도 계산시 성별, 나이, 신장은", "I003", "\n등록번호를 이용하여 환자정보를 조회하세요.");
- model.setFocus("ipt_srchpid");
- return;
- }
-
- // 계산에 필요한 항목
- var mid_pre_hdbun = model.getValue("/root/main/dialexaminfo/midblodbunval");
- var pre_hdbun = model.getValue("/root/main/dialexaminfo/preblodbunval");
- var post_hdbun = model.getValue("/root/main/dialexaminfo/postblodbunval");
- var interval = model.getValue("/root/main/dialexaminfo/dialintvlval");
- var weight = model.getValue("/root/main/dialexaminfo/bdwtval");
- var pat_sex = model.getValue("/root/main/condition/patsex");
- var pat_age = model.getValue("/root/main/condition/patage");
- var pat_height = model.getValue("/root/main/condition/patheight");
- var urine_vol = model.getValue("/root/main/dialexaminfo/urinevol"); // 소변량
- var urine_creatinine = model.getValue("/root/main/dialexaminfo/urinecreatival");
- var serum_creatinine = model.getValue("/root/main/dialexaminfo/serumcreatival");
- var urine_urea = model.getValue("/root/main/dialexaminfo/urineurea");
- var urine_time = model.getValue("/root/main/dialexaminfo/urinetm"); // 모은시간
- var ultrafilt_vol = model.getValue("/root/main/dialexaminfo/filtvol");
- var dial_time = model.getValue("/root/main/dialexaminfo/dialtims");
- var height = model.getValue("/root/main/dialexaminfo/bdhtval");
- var exec_dt = model.getValue("/root/main/dialexaminfo/execdt");
- if(exec_dt == "") { messageBox("검사일자는", "I003"); model.setFocus("ipt_execdt"); return; }
- if(weight == "") { messageBox("Weight는", "I003"); model.setFocus("input11"); return; }
- if(height == "") { messageBox("Height는", "I003"); model.setFocus("input1"); return; }
- if(serum_creatinine == "") { messageBox("Serum Creatinine은", "I003"); model.setFocus("input15"); return; }
- if(pre_hdbun == "") { messageBox("Pre HD BUN은", "I003"); model.setFocus("input3"); return; }
- if(post_hdbun == "") { messageBox("Post HD BUN은", "I003"); model.setFocus("input4"); return; }
- if(mid_pre_hdbun == "") { messageBox("MekWeek Pre HD BUN은", "I003"); model.setFocus("input16"); return; }
- if(interval == "") { messageBox("투석 Interval은", "I003"); model.setFocus("input6"); return; }
- if(dial_time == "") { messageBox("주당투석횟수는", "I003"); model.setFocus("combo1"); return; }
- if(ultrafilt_vol == "") { messageBox("Ultrafiltration Volume은", "I003"); model.setFocus("input17"); return; }
- if(urine_creatinine == "") { messageBox("Urine Creatinine은", "I003"); model.setFocus("input9"); return; }
- if(urine_vol == "") { messageBox("소변량은", "I003"); model.setFocus("input10"); return; }
- if(urine_time == "") { messageBox("모은시간은", "I003"); model.setFocus("input2"); return; }
- if(urine_urea == "") { messageBox("Urine Urea는", "I003"); model.setFocus("input14"); return; }
- //if(pat_age == "") { messageBox("나이는", "I003"); model.setFocus("weight"); return; }
-
- // Divide By Zero 관련 처리
- if(interval == 0) { messageBox("투석 Interval은 '0'값을 입력", "E001"); model.setFocus("input6"); return; }
- if(weight == 0) { messageBox("Weight는 '0'값을 입력", "E001"); model.setFocus("input11"); return; }
- if(pre_hdbun == 0) { messageBox("pre_hdbun은 '0'값을 입력", "E001"); model.setFocus("input3"); return; }
- if(urine_time == 0) { messageBox("모은시간은 '0'값을 입력", "E001"); model.setFocus("input2"); return; }
- if(serum_creatinine == 0) { messageBox("Serum Creatinine은 '0'값을 입력", "E001"); model.setFocus("input15"); return; }
- if(post_hdbun == 0) { messageBox("Post HD BUN은 '0'값을 입력", "E001"); model.setFocus("input4"); return; }
- if(mid_pre_hdbun == 0) { messageBox("MekWeek Pre HD BUN은 '0'값을 입력", "E001"); model.setFocus("input16"); return; }
-
- // 적절도 계산
- var tbw = getTBW(pat_sex, pat_age, height, weight);
- var pcr = getPCR(mid_pre_hdbun, post_hdbun, interval, urine_urea, weight);
- var npcr = getNPCR(pcr, tbw);
- var urr = getURR(pre_hdbun, post_hdbun);
- var krv = getKRV(urine_vol, urine_creatinine, serum_creatinine, urine_urea, post_hdbun, mid_pre_hdbun, urine_time);
- var cal_ktv = getCalKTV(post_hdbun, pre_hdbun, ultrafilt_vol, weight);
- var cal_resiktv = getCalResiKTV(cal_ktv, krv, tbw, dial_time);
-
- model.setValue("/root/main/caladequacy/calpcr", pcr); // PCR 계산
- model.setValue("/root/main/caladequacy/calnpcr", npcr); // NPCR 계산
- model.setValue("/root/main/caladequacy/calurr", urr); // URR 계산
- model.setValue("/root/main/caladequacy/calkrv", krv); // 잔여신기능 계산
- model.setValue("/root/main/caladequacy/calktv", cal_ktv); // 측정된 Kt/V 계산
- model.setValue("/root/main/caladequacy/calresiktv", cal_resiktv); // 잔여신기능을 포함한 Kt/V 계산
- model.refresh();
- fMakeChart();
- }
-
- function getCutNumber(num, place) {
- return Math.floor( num * Math.pow(10,parseInt(place,10)) ) / Math.pow(10,parseInt(place,10));
- }
-
- function getTBW(pat_sex, pat_age, pat_height, weight) {
- var this_tbw = 0;
- if(pat_sex == "M") { // 남자
- this_tbw = 2.447 - (0.09516 * pat_age) + (0.1074 * pat_height) + (0.3362 * weight);
- } else { // 여자
- this_tbw = (0.1069 * pat_height) + (0.2466 * weight) - 2.097;
- }
- return getCutNumber(this_tbw,4);
- }
-
- function getPCR(mid_pre_hdbun, post_hdbun, interval, urine_urea, weight) {
- var mid_post_interval;
- var urin_interval_weight;
-
- mid_post_interval = 0.036 * (mid_pre_hdbun - post_hdbun) * 24 / interval;
- var pcr1 = 0.22 + mid_post_interval;
-
- urin_interval_weight = 1.5 / interval / weight;
- var pcr2 = urine_urea * urin_interval_weight;
-
- var this_pcr = pcr1 + pcr2;
- return getCutNumber(this_pcr, 4);
- }
-
- function getNPCR(pcr, tbw) {
- var weight = model.getValue("/root/main/dialexaminfo/bdwtval");
- var this_npcr;
- if(tbw == 0) { this_npcr = 0; }
- else { this_npcr = pcr * weight / (tbw / 0.58); }
- return getCutNumber(this_npcr, 4);
- }
-
- function getURR(pre_hdbun, post_hdbun) {
- var this_urr;
- this_urr = (pre_hdbun - post_hdbun) / pre_hdbun * 100;
- return getCutNumber(this_urr, 4);
- }
-
- function getKRV(urine_vol, urine_creatinine, serum_creatinine, urine_urea, post_hdbun, mid_pre_hdbun, urine_time) { // 잔여신기능
-
- var urin_serum; var urin_post_mid; var urinTime;
-
- urin_serum = urine_creatinine/serum_creatinine;
- urin_serum = getCutNumber(urin_serum, 4);
- urin_post_mid = urine_urea/(0.25 * post_hdbun + 0.75 * mid_pre_hdbun);
- urin_post_mid = getCutNumber(urin_post_mid, 4);
- this_krv = urine_vol * (urin_serum + urin_post_mid) / (2 * urine_time * 60);
-
- return getCutNumber(this_krv, 4);
- }
-
- function getCalKTV(post_hdbun, pre_hdbun, ultrafilt_vol, weight) {
- var cal_ktv = 0;
- var post_pre; var ult_weight;
-
- post_pre = post_hdbun / pre_hdbun;
- ult_weight = ultrafilt_vol / weight;
-
- cal_ktv = -Math.log(post_pre - 0.03) + ((4 - 3.5 * (post_pre)) * ult_weight);
- return getCutNumber(cal_ktv, 4);
- }
-
- function getCalResiKTV(cal_ktv, krv, tbw, dial_time) {
- var cal_resiktv = 0; var krt_tbw = 0;
- if(dial_time == "2") {
- if(tbw == 0) { krt_tbw = 0; }
- else { krt_tbw = 9.5 * krv / tbw; }
- krt_tbw = getCutNumber(krt_tbw, 4);
- cal_resiktv = cal_ktv + krt_tbw;
- } else { // dial_time이 3일때
- if(tbw == 0) { krt_tbw = 0; }
- else { krt_tbw = 5.5 * krv / tbw; }
- krt_tbw = getCutNumber(krt_tbw, 4);
- cal_resiktv = cal_ktv + krt_tbw;
- }
- return getCutNumber(cal_resiktv, 4);
- }
-
- function viewDetInfo() {
-
- button4.disabled = false;
-
- model.setValue("/root/main/condition/srchpid", model.getValue("/root/main/dialexamlist/info[" + grd_dialexamlist.row + "]/srchpid"));
- model.copyNode("/root/main/dialexaminfo", "/root/main/dialexamlist/info[" + grd_dialexamlist.row + "]");
-
- if(model.getValue("/root/main/dialexaminfo/bdhtval") == "") {
- model.setValue("/root/main/dialexaminfo/bdhtval", model.getValue("/root/main/condition/patheight")) ;
- }
-
- model.refresh();
-
- calAdequacy(); // 적절도 계산
- //fMakeChart();
-
- }
-
- function doSearch(flag) {
- model.setValue("/root/main/condition/diafg", "H");
- model.copyNode("/root/send/reqdata", "/root/main/condition");
-
- var fromdd = model.getValue("/root/main/condition/fromdd");
- fromdd = fromdd.substr(0,4) + "-" + fromdd.substr(4,2) + "-" + fromdd.substr(6,2) + "-00.00.00.000000";
- model.setValue("/root/send/reqdata/fromdd", fromdd);
- var todd = model.getValue("/root/main/condition/todd");
- todd = todd.substr(0,4) + "-" + todd.substr(4,2) + "-" + todd.substr(6,2) + "-00.00.00.000000";
- model.setValue("/root/send/reqdata/todd", todd);
-
- //model.setValue("/root/send/reqdata/diafg", "D");
- submit("TRMMO08403");
- if(flag == "S"){ // 저장시
-
- } else { // 조회시
- model.resetInstanceNode("/root/main/dialexaminfo");
- model.resetInstanceNode("/root/main/caladequacy");
- model.refresh();
- setChartInit();
- }
- model.makeValue("/root/main/dialexaminfo/execdt", getCurrentDate());
- model.refresh();
- }
-
- function fMakeChart(){
- setChartInit();
-
- var xpoint = model.getValue("/root/main/caladequacy/calnpcr");
- var ypoint = model.getValue("/root/main/dialexaminfo/midblodbunval");
- if(xpoint == "") xpoint = 0;
- if(ypoint == "") ypoint = 0;
-
- if(xpoint < 0.5 || xpoint > 2.0) {
- messageBox("nPCR 값이 그래프 출력범위를", "E003");
- return;
- }
- if(ypoint < 10 || ypoint > 130) {
- messageBox("MidWeek Pre HD BUN 값이 그래프 축력범위를", "E003");
- return;
- }
-
- TChart1.Series(0).AddXY (xpoint, ypoint, "", TChart1.Series(0).Color);
- }
-
- function setChartInit() {
- TChart1.RemoveAllSeries();
- TChart1.Axis.RemoveAllCustom();
- //margin 값 정하기
- TChart1.Panel.MarginTop = 6;
- TChart1.Panel.MarginLeft = 16;
- TChart1.Panel.MarginRight = 8.5;
- //TChart1.Panel.MarginBottom = 8.6; // 가로 X축 보일때
- TChart1.Panel.MarginBottom = 13; // 가로 X축 보이지 않을때
- //TChart1.Panel.BorderStyle= 0;
- //TChart1.Axis.Bottom.TickLength = 1010;
-
- //백그라운드 이미지
- //alert(getDomain()+"/himed/webapps/emr/emrdialexamweb/images/97101201.gif");
- var examCnt = model.getValue("/root/main/dialexaminfo/dialtims") ;
- if(examCnt == 2) {
- setBackImageLoad(TChart1,"dialexam2");
- } else {
- setBackImageLoad(TChart1,"dialexam3");
- }
- //시간 생성
- //var stDate = new Date(2005, 2, 3, 0, 0);
- //var endDate = new Date(2005, 2, 10, 0, 0);
- //alert(Date.UTC(2005, 2, 3));
-
- //하단축 칸 수 정하기와 눈금 없애기
- //TChart1.Axis.Bottom.SetMinMax (0, MinTimeConst * 60 * 24 * 7 - 1);
- TChart1.Axis.Bottom.SetMinMax (0.5, 2.0); // 가로좌표 표현
- TChart1.Axis.Bottom.Increment = 0.1;
- TChart1.Axis.Bottom.MinorTickCount = 0.5;
- // TChart1.Axis.Bottom.AxisPen.Color = 0xffffff; // 가로축 아래 색 설정
- // TChart1.Axis.Bottom.GridPen.Color = 0xffffff // 세로 축 점선의 색 설정
- // TChart1.Axis.Bottom.Labels.Font.Color = 0xffffff; //하단 축 눈금 명칭 색을 하얀색으로 하여 보이지 않게 처리
- TChart1.Axis.Bottom.Labels.Visible = false; // 세로선 Visible
-
- TChart1.Header.Visible = false;
- TChart1.Header.Text(0)="혈액투석 적절도"; //헤더제목넣기
- TChart1.Header.Font.Bold = true; //헤더 굵게
- TChart1.Header.Font.Size = 10; //헤더 사이즈
- TChart1.Aspect.View3D = 0; //2d 로 표현하기
- //TChart1.Aspect.Chart3DPercent = 2;
-
- TChart1.Zoom.enable = false; // zoom 사용하지 않기
- TChart1.Scroll.Enable = false; // scroll 사용하지 않기
- TChart1.Legend.Visible = false; // 그래프 참조 박스 띄우지 않기
- TChart1.Environment.MouseWheelScroll = false;
- //TChart1.Panel.Gradient.Visible = true; // 페널에 그라디언트 적용
-
- var cus_axis1 = TChart1.Axis.AddCustom(false); // 체온축
- TChart1.Axis.Custom(0).AxisPen.Color = 0x0000ff; // 좌측 Y 축색 설정
- TChart1.Axis.Custom(0).Title.Caption = "HR";
- TChart1.Axis.Custom(0).Title.Font.Size = 8;
- // TChart1.Axis.Custom(0).Title.Font.Bold = true;
- TChart1.Axis.Custom(0).Title.Angle = 90;
- TChart1.Axis.Custom(0).PositionPercent = -8;
- TChart1.Axis.Custom(0).Automatic = false;
- TChart1.Axis.Custom(0).Maximum = 130;
- TChart1.Axis.Custom(0).Minimum = 10;
- TChart1.Axis.Custom(0).Increment = 10;
- TChart1.Axis.Custom(0).Visible= false; // 가로선 Visible
- TChart1.AddSeries (0); // 체온
- TChart1.Series(0).VerticalAxisCustom = cus_axis1; // Y축 기준
- TChart1.Series(0).asLine.LinePen.Width = 2;
- TChart1.Series(0).Color = 0x0000ff; // red
-
- TChart1.Series(0).asLine.Pointer.Visible = true;
- TChart1.Series(0).asLine.Pointer.Style = 1;
- TChart1.Series(0).asLine.Pointer.VerticalSize = 7; // 포인터 크기
- TChart1.Series(0).asLine.Pointer.HorizontalSize = 7;
- TChart1.Series(0).Depth = 1;
- }
-
- function setHeight() {
- model.copyNode("/root/send/reqdata", "/root/main/condition");
- submit("TRMMO08404");
- model.setValue("/root/main/condition/patheight", model.getValue("/root/main/patinfoht/info/bdht"));
- if(model.getValue("/root/main/condition/patheight") == ""){
- model.setValue("/root/main/condition/patheight", 0);
- }
- model.refresh();
- }
-
- function searchPatinfoPop() {
-
- if ( model.getValue ( "/root/init/srchcond1") == "1" ) { // 등록번호 검색
- model.makeValue("/root/temp/send/pid", model.getValue("/root/main/condition/srchpid"));
- model.makeValue("/root/temp/send/srchcond", "1");
- }
-
- if ( model.getValue ( "/root/init/srchcond1") == "2" ) { // 환자이름 검색
- model.makeValue("/root/temp/send/hngnm", model.getValue("/root/main/condition/patname"));
- model.makeValue("/root/temp/send/srchcond", "2");
- }
- var xpt = window.screenleft + 100;
- var ypt = window.screenTop + 100;
-
- modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/temp/send", "/root/send");
-
- if(model.getValue("/root/main/popupendflag") != "ok") {
- return;
- }
-
- model.setValue("/root/main/condition/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/main/condition/patname", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/main/condition/patrrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
- var patrrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
- patrrgstno2 = patrrgstno2.substr(0,1) + "******";
- //model.setValue("/root/main/condition/patrrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
- model.setValue("/root/main/condition/patrrgstno2", patrrgstno2);
- model.setValue("/root/main/condition/patsex", model.getValue("/root/main/patinfo/patinfolist/sex"));
- model.setValue("/root/main/condition/patage", model.getValue("/root/main/patinfo/patinfolist/age"));
-
- model.refresh();
-
- setHeight();
-
- doSearch("F");
- }
- function fMoveFocus(vCtrlID){
- if( event.keyCode == 13 ) {
- if( vCtrlID != "" ) model.setFocus(vCtrlID);
- }
- }
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tchartHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
- <script type="javascript" src="../../../emr/emrdialexamweb/js/SMMMO08400.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1240" pageheight="676" guideline="1,1194;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:160px; height:13px; ">혈액투석 적절도 관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:15px; width:1195px; height:650px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <output id="output4" ref="/root/main/condition/patheight" class="output_search" style="left:1065px; top:9px; width:30px; height:19px; "/>
- <output id="output5" ref="/root/main/condition/patrrgstno2" class="output_search" style="left:783px; top:9px; width:56px; height:19px; "/>
- <button id="button1" class="btn1_letter2" style="left:1129px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/condition/srchpid") ==""){
- messageBox("등록번호를 ", "C001");
- model.setFocus("ipt_srchpid");
- return;
- }
- doSearch("F");
- ]]>
- </script>
- </button>
- <input id="ipt_srchpid" ref="/root/main/condition/srchpid" class="input_s_essential" navindex="1" autonext="false" imemode="disabled" style="left:371px; top:9px; width:73px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- model.setValue ( "/root/init/srchcond1", "1");
- inputEnterKey ( "btn_bfprcpsrch", "DOMActivate" )
-
-
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:465px; top:9px; width:86px; height:17px; ">환자명 :</caption>
- <caption id="caption33" class="search_no_b" style="left:770px; top:10px; width:12px; height:17px; ">~</caption>
- <caption id="caption2" class="search_name" style="left:620px; top:9px; width:86px; height:17px; ">주민번호 :</caption>
- <caption id="caption3" class="search_name" style="left:844px; top:9px; width:93px; height:17px; ">성별/나이 :</caption>
- <caption id="caption5" class="search_name" style="left:986px; top:9px; width:79px; height:17px; ">Height :</caption>
- <line id="line1" class="line_4" style="x1:1119px; y1:7px; x2:1119px; y2:29px; "/>
- <input id="input5" ref="/root/main/condition/patname" class="input_s_essential" navindex="2" autonext="false" imemode="hangul" style="left:539px; top:9px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- model.setValue ( "/root/init/srchcond1", "2");
- inputEnterKey ( "btn_bfprcpsrch", "DOMActivate" )
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[]]>
- </script>
- </input>
- <caption id="caption7" style="left:1095px; top:13px; width:25px; height:15px; ">cm</caption>
- <caption id="caption16" class="search_name" style="left:284px; top:9px; width:99px; height:17px; ">등록번호 :</caption>
- <button id="btn_srchpid" class="icon_search" style="left:447px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- searchPatinfoPop();
- ]]>
- </script>
- </button>
- <output id="output1" ref="/root/main/condition/patrrgstno1" class="output_search" style="left:711px; top:9px; width:58px; height:19px; "/>
- <output id="output2" ref="/root/main/condition/patsex" class="output_search" style="left:941px; top:9px; width:20px; height:19px; "/>
- <output id="output3" ref="/root/main/condition/patage" class="output_search" style="left:963px; top:9px; width:20px; height:19px; "/>
- <caption id="caption37" class="search_name" style="left:3px; top:9px; width:116px; height:17px; ">시행일자 :</caption>
- <caption id="caption46" class="search_no_b" style="left:178px; top:9px; width:12px; height:17px; ">~</caption>
- <input id="ipt_todd" ref="/root/main/condition/todd" class="input_default" inputtype="date" style="left:192px; top:9px; width:86px; height:19px; "/>
- <input id="ipt_fromdd" ref="/root/main/condition/fromdd" class="input_default" inputtype="date" style="left:90px; top:9px; width:86px; height:19px; "/>
- </group>
- <caption id="caption31" class="tit_2" style="left:5px; top:53px; width:144px; height:13px; vertical-align:middle; ">혈액투석 적절도 조회</caption>
- <caption id="caption32" class="tit_2" style="left:455px; top:53px; width:170px; height:14px; vertical-align:middle; ">혈액투석 적절도 기본정보</caption>
- <button id="button2" class="btn2_letter5" style="left:1113px; top:198px; width:75px; height:19px; ">
- <caption>적절도 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- TChart1.Export.SaveToBitmapFile(getTChartBackgroundImage("dialexamprint"));
- exeReportPreview("RPMMO08400", "XMLSTR", "", "", "false", "", "", "", "", "false");
- ]]>
- </script>
- </button>
- <caption id="caption50" class="cell_1" style="left:450px; top:173px; width:100px; height:23px; vertical-align:middle; ">P C R</caption>
- <button id="button3" class="btn2_letter5" style="left:1113px; top:175px; width:75px; height:19px; ">
- <caption>적절도 계산</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- calAdequacy();
- //fMakeChart();
- ]]>
- </script>
- </button>
- <caption id="caption40" class="cell_1" style="left:673px; top:173px; width:107px; height:23px; vertical-align:middle; ">n P C R</caption>
- <line id="line33" class="line_3" style="x1:450px; y1:220px; x2:1191px; y2:220px; "/>
- <caption id="caption41" class="cell_1" style="left:450px; top:197px; width:100px; height:23px; vertical-align:middle; ">잔여신기능</caption>
- <input id="input20" ref="/root/main/caladequacy/calnpcr" class="output_search" disabled="false" editable="false" style="left:783px; top:174px; width:117px; height:19px; "/>
- <caption id="caption30" style="left:1132px; top:75px; width:40px; height:15px; ">mg/dl</caption>
- <input id="input21" ref="/root/main/caladequacy/calktv" class="output_search" disabled="false" editable="false" style="left:783px; top:198px; width:117px; height:19px; "/>
- <caption id="caption20" style="left:636px; top:150px; width:45px; height:15px; ">mg/dl</caption>
- <caption id="caption42" class="cell_1" style="left:450px; top:144px; width:100px; height:23px; vertical-align:middle; ">Urine Creatinine</caption>
- <caption id="caption21" style="left:865px; top:127px; width:35px; height:15px; ">회</caption>
- <caption id="caption10" class="cell_1" style="left:673px; top:96px; width:107px; height:23px; vertical-align:middle; ">Post HD BUN</caption>
- <caption id="caption44" class="cell_1" style="left:903px; top:197px; width:100px; height:23px; vertical-align:middle; ">KT/V</caption>
- <caption id="caption22" style="left:865px; top:102px; width:40px; height:15px; ">mg/dl</caption>
- <caption id="caption11" class="cell_1" style="left:673px; top:120px; width:107px; height:23px; vertical-align:middle; ">주당투석횟수</caption>
- <input id="input24" ref="/root/main/caladequacy/calurr" class="output_search" disabled="false" editable="false" style="left:1006px; top:174px; width:104px; height:19px; "/>
- <caption id="caption23" style="left:761px; top:77px; width:20px; height:15px; ">kg</caption>
- <caption id="caption12" class="cell_1" style="left:673px; top:72px; width:46px; height:23px; vertical-align:middle; ">Weight</caption>
- <input id="input25" ref="/root/main/caladequacy/calresiktv" class="output_search" disabled="false" editable="false" style="left:1006px; top:198px; width:104px; height:19px; "/>
- <caption id="caption35" class="cell_1" style="left:673px; top:197px; width:107px; height:23px; vertical-align:middle; ">측정된 Kt/V</caption>
- <caption id="caption24" style="left:761px; top:150px; width:23px; height:15px; ">ml</caption>
- <caption id="caption13" class="cell_1" style="left:903px; top:96px; width:140px; height:23px; vertical-align:middle; ">MidWeek Pre HD BUN</caption>
- <caption id="caption4" class="cell_1" style="left:450px; top:96px; width:100px; height:23px; vertical-align:middle; ">Pre HD BUN</caption>
- <caption id="caption25" class="cell_1" style="left:783px; top:144px; width:56px; height:23px; vertical-align:middle; ">모은시간</caption>
- <caption id="caption14" class="cell_1" style="left:903px; top:120px; width:140px; height:23px; vertical-align:middle; ">Ultrafiltration Volume</caption>
- <line id="line2" class="line_1" style="x1:450px; y1:68px; x2:1191px; y2:68px; "/>
- <caption id="caption48" class="cell_1" style="left:903px; top:173px; width:100px; height:23px; vertical-align:middle; ">U R R</caption>
- <caption id="caption26" style="left:875px; top:150px; width:33px; height:15px; ">시간</caption>
- <caption id="caption15" class="cell_1" style="left:903px; top:72px; width:140px; height:23px; vertical-align:middle; ">Serum Creatinine</caption>
- <caption id="caption27" style="left:1132px; top:150px; width:40px; height:15px; ">mg/dl</caption>
- <line id="line4" class="line_2" style="x1:450px; y1:94px; x2:1187px; y2:94px; "/>
- <input id="input18" ref="/root/main/caladequacy/calpcr" class="output_search" disabled="false" editable="false" style="left:553px; top:176px; width:117px; height:19px; "/>
- <input id="input29" ref="/root/main/caladequacy/calkrv" class="output_search" disabled="false" editable="false" style="left:553px; top:198px; width:117px; height:19px; "/>
- <caption id="caption28" style="left:1132px; top:125px; width:40px; height:15px; ">l</caption>
- <caption id="caption17" class="cell_1" style="left:903px; top:144px; width:140px; height:23px; vertical-align:middle; ">Urine Urea</caption>
- <caption id="caption39" class="cell_1" style="left:450px; top:120px; width:100px; height:23px; vertical-align:middle; ">투석 Interval</caption>
- <caption id="caption8" class="cell_1" style="left:450px; top:72px; width:100px; height:23px; vertical-align:middle; ">검사일자</caption>
- <line id="line5" class="line_2" style="x1:450px; y1:118px; x2:1187px; y2:118px; "/>
- <caption id="caption29" style="left:1132px; top:100px; width:40px; height:15px; ">mg/dl</caption>
- <caption id="caption18" style="left:636px; top:102px; width:38px; height:15px; ">mg/dl</caption>
- <input id="ipt_execdt" ref="/root/main/dialexaminfo/execdt" class="input_essential" inputtype="date" style="left:553px; top:73px; width:117px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input11");
- ]]>
- </script>
- </input>
- <input id="input11" ref="/root/main/dialexaminfo/bdwtval" class="input_default" imemode="disabled" format="#.#" style="left:722px; top:73px; width:38px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input1");
- ]]>
- </script>
- </input>
- <input id="input1" ref="/root/main/dialexaminfo/bdhtval" class="input_default" imemode="disabled" format="#.#" style="left:830px; top:73px; width:44px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input15");
- ]]>
- </script>
- </input>
- <input id="input15" ref="/root/main/dialexaminfo/serumcreatival" class="input_default" imemode="disabled" format="#.#" style="left:1046px; top:73px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input3");
- ]]>
- </script>
- </input>
- <input id="input3" ref="/root/main/dialexaminfo/preblodbunval" class="input_default" imemode="disabled" format="#.#" style="left:553px; top:97px; width:82px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input4");
- ]]>
- </script>
- </input>
- <input id="input4" ref="/root/main/dialexaminfo/postblodbunval" class="input_default" imemode="disabled" format="#.#" style="left:783px; top:97px; width:81px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input16");
- ]]>
- </script>
- </input>
- <input id="input16" ref="/root/main/dialexaminfo/midblodbunval" class="input_default" imemode="disabled" format="#.#" style="left:1046px; top:97px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input6");
- ]]>
- </script>
- </input>
- <input id="input6" ref="/root/main/dialexaminfo/dialintvlval" class="input_default" imemode="disabled" format="#.#" style="left:553px; top:121px; width:62px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("combo1");
- ]]>
- </script>
- </input>
- <select1 id="combo1" ref="/root/main/dialexaminfo/dialtims" appearance="minimal" style="left:783px; top:121px; width:81px; height:19px; ">
- <choices>
- <item>
- <label>2</label>
- <value>2</value>
- </item>
- <item>
- <label>3</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input17");
- ]]>
- </script>
- </select1>
- <input id="input17" ref="/root/main/dialexaminfo/filtvol" class="input_default" imemode="disabled" format="#.#" style="left:1046px; top:121px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input9");
- ]]>
- </script>
- </input>
- <input id="input9" ref="/root/main/dialexaminfo/urinecreatival" class="input_default" imemode="disabled" format="#.#" style="left:553px; top:146px; width:82px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input10");
- ]]>
- </script>
- </input>
- <input id="input10" ref="/root/main/dialexaminfo/urinevol" class="input_default" imemode="disabled" format="#.#" style="left:722px; top:146px; width:38px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input2");
- ]]>
- </script>
- </input>
- <input id="input2" ref="/root/main/dialexaminfo/urinetm" class="input_default" imemode="disabled" format="#.#" style="left:842px; top:146px; width:32px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input14");
- ]]>
- </script>
- </input>
- <input id="input14" ref="/root/main/dialexaminfo/urineurea" class="input_default" imemode="disabled" format="#.#" style="left:1046px; top:146px; width:85px; height:19px; "/>
- <caption id="caption9" class="cell_1" style="left:673px; top:144px; width:46px; height:23px; vertical-align:middle; ">소변량</caption>
- <line id="line6" class="line_2" style="x1:450px; y1:142px; x2:1187px; y2:142px; "/>
- <caption id="caption19" style="left:636px; top:125px; width:34px; height:15px; ">시간</caption>
- <line id="line7" class="line_1" style="x1:450px; y1:169px; x2:1191px; y2:169px; "/>
- <datagrid id="grd_dialexamlist" nodeset="/root/main/dialexamlist/info" caption="시행일자^KT/V^URR^n-PCR" colsep="^" colwidth="100, 111, 109, 100" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:70px; width:443px; height:548px; ">
- <col ref="execdt" format="yyyy-mm-dd" style="left:613px; top:32px; width:93px; height:23px; "/>
- <col ref="calktv"/>
- <col ref="calurr"/>
- <col ref="calpcr"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( grd_dialexamlist.rows- grd_dialexamlist.fixedRows > 0 && grd_dialexamlist.mouseRow != 0){
- viewDetInfo();
- }
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:68px; x2:443px; y2:68px; "/>
- <shape id="rectangle1" appearance="rectangle" style="left:450px; top:230px; width:742px; height:387px; color:transparent; border-color:#c0c0c0; "/>
- <group id="grp_btn" style="left:0px; top:620px; width:1194px; height:27px; ">
- <button id="button42" class="btn4_letter2" visibility="visible" style="left:1135px; top:3px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fDelKTRecInfo("C");
-
- // if ( messageBox("데이터를", "Q001") == 6 ) {
- // if( grd_dialexamlist.rows- grd_dialexamlist.fixedRows > 0 ){
- // var rowcnt = grd_dialexamlist.selectedRow(0);
- // if(rowcnt < 1) {
- // var msg = messageBox("삭제할 정보를 ", "C002");
- // return;
- // } else {
- // model.setValue("/root/main/dialexaminfo/state", "D");
- // model.copyNode("/root/send/req/data1", "/root/main/dialexaminfo");
- // var exec_date = model.getValue("/root/main/dialexaminfo/execdt");
- // exec_date = exec_date.substr(0,4) + "-" + exec_date.substr(4,2) + "-" + exec_date.substr(6,2) + "-00.00.00.000000";
- // model.setValue("/root/send/req/data1/execdt", exec_date);
- //
- // //submit("TXMMO08403");
- // setCareInfoDel("TXMMO08403"); //CareCom.js
- //
- // // 삭제후 상세정보 지우기
- // //model.resetInstanceNode("/root/main/condition");
- // model.resetInstanceNode("/root/main/dialexaminfo");
- // model.resetInstanceNode("/root/main/caladequacy");
- // model.refresh();
- //
- // doSearch("D");
- // }
- // }
- // }
- ]]>
- </script>
- </button>
- <button id="button8" class="btn4_letter2" visibility="hidden" style="left:705px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("데이터를", "Q002") == 6 ) {
- if (model.getValue("/root/main/condition/srchpid") == "") {
- messageBox("등록번호 항목은", "I003");
- model.setFocus("ipt_srchpid");
- return;
- }
- if (model.getValue("/root/main/dialexaminfo/execdt") == "") {
- messageBox("검사일자 항목은", "I003");
- model.setFocus("ipt_execdt");
- return;
- }
- calAdequacy(); // 적절도 계산
- //fMakeChart();
-
- model.setValue("/root/main/dialexaminfo/srchpid", model.getValue("/root/main/condition/srchpid"));
- model.setValue("/root/main/dialexaminfo/calpcr", model.getValue("/root/main/caladequacy/calpcr"));
- model.setValue("/root/main/dialexaminfo/calurr", model.getValue("/root/main/caladequacy/calurr"));
- model.setValue("/root/main/dialexaminfo/calktv", model.getValue("/root/main/caladequacy/calktv"));
- //model.setValue("/root/main/dialexaminfo/calnpcr", model.getValue("/root/main/caladequacy/calnpcr"));
- //model.setValue("/root/main/dialexaminfo/calkrv", model.getValue("/root/main/caladequacy/calkrv"));
- //model.setValue("/root/main/dialexaminfo/calresiktv", model.getValue("/root/main/caladequacy/calresiktv"));
- model.setValue("/root/main/dialexaminfo/dialflag", "H");
-
- if(model.getValue("/root/main/dialexaminfo/dialseq") == ""){
- model.setValue("/root/main/dialexaminfo/dialseq", 0);
- }
- model.copyNode("/root/send/req/data1", "/root/main/dialexaminfo");
-
- var exec_date = model.getValue("/root/main/dialexaminfo/execdt");
- exec_date = exec_date.substr(0,4) + "-" + exec_date.substr(4,2) + "-" + exec_date.substr(6,2) + "-00.00.00.000000";
- model.setValue("/root/send/req/data1/execdt", exec_date);
-
- submit("TXMMO08403"); // 저장/수정
-
- doSearch("S");
- }
- ]]>
- </script>
- </button>
- <button id="button16" class="btn4_letter3" style="left:905px; top:3px; width:68px; height:22px; border-color:transparent; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/dialexaminfo");
- model.resetInstanceNode("/root/main/caladequacy");
- model.makeValue("/root/main/dialexaminfo/execdt", getCurrentDate());
- model.refresh();
- setChartInit();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter4" style="left:1055px; top:3px; width:80px; height:22px; ">
- <caption>인증저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSaveKTRecInfo("C");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter4" style="left:975px; top:3px; width:80px; height:22px; ">
- <caption>임시저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSaveKTRecInfo("T");
- ]]>
- </script>
- </button>
- <button id="button6" class="btn5_letter4" visibility="hidden" style="left:475px; top:5px; width:64px; height:19px; ">
- <caption>기록삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelKTRecInfo("C");
- ]]>
- </script>
- </button>
- </group>
- <line id="line8" class="line_3" style="x1:450px; y1:167px; x2:1191px; y2:167px; "/>
- <object id="TChart1" clsid="{fab9b41c-87d6-474d-ab7e-f07d78f2422e}" Top="253" Width="395" Left="316" Height="370" style="left:580px; top:240px; width:396px; height:370px; margin-left:2; margin-top:1; ">
- <script ev:event="OnClick">
- <![CDATA[
- ]]>
- </script>
- </object>
- <caption id="caption34" style="left:875px; top:77px; width:20px; height:15px; ">cm</caption>
- <caption id="caption36" class="cell_1" style="left:782px; top:72px; width:44px; height:23px; vertical-align:middle; ">Height</caption>
- <button id="btn_bfprcpsrch" class="btn1_letter2" visibility="hidden" style="left:1125px; top:45px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.setValue ( "/root/send/cond1", model.getValue ( "/root/init/srchcond1" ));
- if ( model.getValue ( "/root/send/cond1") == "1" ) {
- model.setValue ( "/root/send/cond2", model.getValue ("/root/main/condition/srchpid" ));
- } else {
- model.setValue ( "/root/send/cond2", model.getValue ("/root/main/condition/patname" ));
- }
- model.setValue ( "/root/send/cond3", getUserInfo("dutplceinstcd"));
- model.setValue ( "/root/send/cond99", "patchosinfo");
-
- if (!submit ( "TRMMO02501",false )) { //검색 시작 값이 없으면 clear 한다.
- model.resetInstanceNode ("/root/main/condition" );
- model.refresh();
- return;
- }
-
- var srcNodeList = model.instances(0).selectNodes("/root/patinfo/patinfolist");
- if ( srcNodeList.length == 1 ) { //값이 한개면 바로 화면에 보여준1다.
- ipt_srchpid.text = model.getValue ("/root/patinfo/patinfolist/pid");
- input5.text = model.getValue ("/root/patinfo/patinfolist/hngnm");
- output1.text = model.getValue ("/root/patinfo/patinfolist/rrgstno1");
- output5.text = model.getValue ("/root/patinfo/patinfolist/rrgstno2");
- output2.text = model.getValue ("/root/patinfo/patinfolist/sex");
- output3.text = model.getValue ("/root/patinfo/patinfolist/age");
-
- setHeight();
-
- doSearch("F");
-
- } else if ( srcNodeList.length > 1 ) { //값이 한개이상이면 팝업을 띄운다.
- searchPatinfoPop();
- }
- model.refresh();
-
-
- ]]>
- </script>
- </button>
- <button id="btn_get" class="btn1_letter2" style="left:810px; top:45px; width:56px; height:22px; ">
- <caption>수집</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (model.getValue("/root/main/condition/srchpid") == "") {
- messageBox("등록번호 항목은", "I003");
- model.setFocus("ipt_srchpid");
- return;
- }
- if (model.getValue("/root/main/dialexaminfo/execdt") == "") {
- messageBox("검사일자 항목은", "I003");
- model.setFocus("ipt_execdt");
- return;
- }
-
- model.makeValue ( "/root/send/reqdata/srchpid", model.getValue ("/root/main/condition/srchpid" ));
- model.makeValue ( "/root/send/reqdata/execdt", model.getValue ("/root/main/dialexaminfo/execdt").substr(0,8));
- model.makeValue ( "/root/send/reqdata/diafg", "H");
-
- if (submit ("TRMMO08406") ) {
- model.setValue("/root/main/dialexaminfo/bdwtval", model.getValue ("/root/main/dialrawinfo/info/bdwtval" ));
- model.setValue("/root/main/dialexaminfo/bdhtval", model.getValue ("/root/main/dialrawinfo/info/bdhtval" ));
- model.setValue("/root/main/dialexaminfo/serumcreatival", model.getValue ("/root/main/dialrawinfo/info/serumcreatival" ));
- model.setValue("/root/main/dialexaminfo/preblodbunval", model.getValue ("/root/main/dialrawinfo/info/preblodbunval" ));
-
- model.setValue("/root/main/dialexaminfo/postblodbunval", model.getValue ("/root/main/dialrawinfo/info/postblodbunval" ));
- model.setValue("/root/main/dialexaminfo/bdhtval", model.getValue ("/root/main/dialrawinfo/info/bdhtval" ));
- model.setValue("/root/main/dialexaminfo/midblodbunval", model.getValue ("/root/main/dialrawinfo/info/midblodbunval" ));
- model.setValue("/root/main/dialexaminfo/dialintvlval", model.getValue ("/root/main/dialrawinfo/info/dialintvlval" ));
-
- model.setValue("/root/main/dialexaminfo/dialtims", model.getValue ("/root/main/dialrawinfo/info/dialtims" ));
- model.setValue("/root/main/dialexaminfo/filtvol", model.getValue ("/root/main/dialrawinfo/info/filtvol" ));
- model.setValue("/root/main/dialexaminfo/urinecreatival", model.getValue ("/root/main/dialrawinfo/info/urinecreatival" ));
- model.setValue("/root/main/dialexaminfo/urineurea", model.getValue ("/root/main/dialrawinfo/info/urineurea" ));
-
- model.setValue("/root/main/dialexaminfo/urinevol", model.getValue ("/root/main/dialrawinfo/info/urinevol" ));
- model.setValue("/root/main/dialexaminfo/urinetm", model.getValue ("/root/main/dialrawinfo/info/urinetm" ));
-
-
- }
-
- model.refresh();
-
-
- ]]>
- </script>
- </button>
- <button id="btn_interval" class="btn1_letter2" style="left:615px; top:120px; width:56px; height:22px; ">
- <caption>시간</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //투석 interval 시간계산 화면
- model.setValue("/root/init/dialfromdd",model.getValue("/root/main/dialexaminfo/execdt"));
- model.setValue("/root/init/dialtodd",model.getValue("/root/main/dialexaminfo/execdt"));
- model.setValue("/root/init/dialfromtm","0000");
- model.setValue("/root/init/dialtotm", "2300");
-
- model.refresh();
- group4.visible = true;
- ]]>
- </script>
- </button>
- <group id="group4" style="left:510px; top:150px; width:260px; height:85px; ">
- <caption id="caption38" style="left:15px; top:15px; width:85px; height:15px; ">투석시작일시 :</caption>
- <caption id="caption43" style="left:15px; top:35px; width:85px; height:15px; ">투석종료일시 :</caption>
- <button id="button7" class="btn1_letter2" style="left:130px; top:60px; width:56px; height:22px; ">
- <caption>계산</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
-
- var frdd = model.getValue("/root/init/dialfromdd");
- var frtm = model.getValue("/root/init/dialfromtm"); //시작일자
- var todd = model.getValue("/root/init/dialtodd");
- var totm = model.getValue("/root/init/dialtotm") ; //종료일자
-
- model.refresh();
-
- if(frdd == "") {
- model.alert("적용시작일자를 입력해 주십시요");
- return false;
- }
- if(todd == "") {
- model.alert("적용종료일자를 입력해 주십시요");
- return false;
- }
- if(frdd > todd) {
- model.alert("적용시작일자가 적용종료일자보다 큽니다.");
- return false;
- }
-
-
- var term = (getDateInterval(frdd, todd) * 12 ) + (getTimeInterval(frtm, totm)/60/60) ;
-
- model.setValue("/root/main/dialexaminfo/dialintvlval",term);
- // alert("간격 term= " + term);
- input6.refresh();
- group4.visible = false;
- ]]>
- </script>
- </button>
- <button id="button9" class="btn1_letter2" style="left:190px; top:60px; width:56px; height:22px; ">
- <caption>종료</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- group4.visible = false;
- ]]>
- </script>
- </button>
- <input id="ipt_dialfromdd" ref="/root/init/dialfromdd" inputtype="date" format="yyyy-mm-dd hh:mm" style="left:105px; top:10px; width:85px; height:19px; "/>
- <input id="ipt_dialtodd" ref="/root/init/dialtodd" inputtype="date" style="left:105px; top:35px; width:85px; height:19px; "/>
- <input id="ipt_dialfromtm" ref="/root/init/dialfromtm" maxlength="5" format="hh:nn" style="left:195px; top:10px; width:55px; height:19px; "/>
- <input id="ipt_dialtotm" ref="/root/init/dialtotm" maxlength="5" format="hh:nn" style="left:195px; top:35px; width:55px; height:19px; "/>
- <shape id="rectangle2" appearance="rectangle" style="left:5px; top:5px; width:250px; height:80px; "/>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|