123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852 |
- <?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>복막평형검사</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <condition>
- <srchpid/>
- <patname/>
- <patrrgstno1/>
- <patrrgstno2/>
- <fromdd/>
- <todd/>
- <patsex/>
- <patage/>
- </condition>
- <hpdetlist/>
- <calccr>
- <ccr0/>
- <ccr2/>
- <ccr4/>
- </calccr>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <paminfo/>
- </main>
- <send>
- <reqdata/>
- <savedata>
- <execdt>
- </execdt>
- <serumcreatival/>
- <serumglucoval/>
- <preblodbunval/>
- <precreatival/>
- <blodbunval/>
- <drainvol/>
- <remcnts/>
- <creatival/>
- <creatival2/>
- <creatival4/>
- <srchpid/>
- <testseq/>
- <instcd/>
- <glucoval/>
- <glucoval2/>
- <glucoval4/>
- <state/>
- <rsltcnts2/>
- <chart1y2/>
- <chart1y4/>
- <chart2y0/>
- <chart2y2/>
- <chart2y4/>
- </savedata>
- <req>
- <data1/>
- </req>
- <cond1/>
- <cond2/>
- <cond3/>
- <cond99/>
- </send>
- <hidden>
- <ret>
- <count/>
- </ret>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </hidden>
- <init>
- <srchcond1/>
- </init>
- </root>
- </instance>
- <submission id="TRMMO08201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/hpdetlist"/>
- <submission id="TXMMO08201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden/ret"/>
- <submission id="TRMMO08402" 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"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- //createTChart8("TChart1", 87, 376, 220, 265);
- TChart1.visible = false;
- TChart2.visible = false;
- /*
- var localfile1 = "C:/Program Files/himed/components/TrustForm/TFViewer/hpdet1.gif";
- model.download(getDomain()+"/himed/webapps/emr/emrdialexamweb/images/hpdet1.gif", localfile1, false);
- var localfile2 = "C:/Program Files/himed/components/TrustForm/TFViewer/hpdet2.gif";
- model.download(getDomain()+"/himed/webapps/emr/emrdialexamweb/images/hpdet2.gif", localfile2, false);
- */
- fInitialize();
-
- model.makeValue("/root/send/savedata/execdt", getCurrentDate());
- model.refresh();
-
- var pamInfoCvs = getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색
- var pid = "";
- 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.setValue ( "/root/send/cond1", "1");
- model.setValue ( "/root/send/cond2", model.getValue ("/root/main/condition/srchpid" ));
- 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");
- input17.text = model.getValue ("/root/patinfo/patinfolist/hngnm");
-
- model.setValue("/root/main/condition/patrrgstno1", model.getValue("/root/patinfo/patinfolist/rrgstno1"));
- var patrrgstno2 = model.getValue("/root/patinfo/patinfolist/rrgstno2");
- patrrgstno2 = patrrgstno2.substr(0,1) + "******";
- model.setValue("/root/main/condition/patrrgstno2", patrrgstno2);
- model.setValue("/root/main/condition/patsex", model.getValue("/root/patinfo/patinfolist/sex"));
- model.setValue("/root/main/condition/patage", model.getValue("/root/patinfo/patinfolist/age"));
-
- model.refresh();
- doSearch("F");
-
- } else if ( srcNodeList.length > 1 ) { //값이 한개이상이면 팝업을 띄운다.
- searchPatinfoPop();
- }
-
- //doSearch("F");
- }
- ]]>
- </script>
- <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());
- }
-
- function doSearch(flag) {
- 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);
-
- submit("TRMMO08201");
- }
-
- function viewDetInfo() {
-
- model.setValue("/root/main/condition/srchpid", model.getValue("/root/main/hpdetlist/info[" + grd_hpdetlist.row + "]/srchpid"));
- model.copyNode("/root/send/savedata", "/root/main/hpdetlist/info[" + grd_hpdetlist.row + "]");
- model.refresh();
-
- calCcr();
- setChartInitLeft();
- setChartInitRight();
- //fMakeChart();
- }
-
- function calCcr() {
-
- TChart1.visible = true;
- TChart2.visible = true;
- var serum_cr = model.getValue("/root/send/savedata/serumcreatival");
- var glucose = model.getValue("/root/send/savedata/serumglucoval");
- var creatival = model.getValue("/root/send/savedata/creatival");
- var creatival2 = model.getValue("/root/send/savedata/creatival2");
- var creatival4 = model.getValue("/root/send/savedata/creatival4");
- var glucoval = model.getValue("/root/send/savedata/glucoval");
- var glucoval2 = model.getValue("/root/send/savedata/glucoval2");
- var glucoval4 = model.getValue("/root/send/savedata/glucoval4");
- if(serum_cr == "") {serum_cr = 0; }
- if(glucose == "") {glucose = 0; }
- if(creatival == "") {creatival = 0; }
- if(creatival2 == "") {creatival2 = 0; }
- if(creatival4 == "") {creatival4 = 0; }
- if(glucoval == "") {glucoval = 0; }
- if(glucoval2 == "") {glucoval2 = 0; }
- if(glucoval4 == "") {glucoval4 = 0; }
-
- model.setValue("/root/main/calccr/ccr0", getCcr(creatival, glucoval));
- model.setValue("/root/main/calccr/ccr2", getCcr(creatival2, glucoval2));
- model.setValue("/root/main/calccr/ccr4", getCcr(creatival4, glucoval4));
- model.refresh();
- }
-
- function getCcr(creatival, glucoval) {
- var returnCcr = creatival - glucoval * 0.000531415; // 20080118 회의후 결정
- returnCcr = getCutNumber(returnCcr, 2);
- return returnCcr;
- }
-
- function getCutNumber(num, place) {
- return Math.floor( num * Math.pow(10,parseInt(place,10)) ) / Math.pow(10,parseInt(place,10));
- }
- function fMakeChart(){
- setChartInitLeft();
- setChartInitRight();
- var glucoval = model.getValue("/root/send/savedata/glucoval");
- var glucoval2 = model.getValue("/root/send/savedata/glucoval2");
- var glucoval4 = model.getValue("/root/send/savedata/glucoval4");
- //var chart1y0 = model.getValue("/root/main/calccr/ccr0");
- var chart1y2; var chart1y4;
- if(glucoval == 0) {
- chart1y2 = 0;
- chart1y4 = 0;
- } else {
- chart1y2 = glucoval2 / glucoval;
- chart1y4 = glucoval4 / glucoval;
- }
- var chart2y0 = model.getValue("/root/main/calccr/ccr0");
- var chart2y2 = model.getValue("/root/main/calccr/ccr2");
- var chart2y4 = model.getValue("/root/main/calccr/ccr4");
- //if(chart1y0 == "") chart2y0 = 0;
- if(chart1y2 == "") chart1y2 = 0;
- if(chart1y4 == "") chart1y4 = 0;
- if(chart2y0 == "") chart2y0 = 0;
- if(chart2y2 == "") chart2y2 = 0;
- if(chart2y4 == "") chart2y4 = 0;
-
- model.makeValue("/root/send/savedata/chart1y2", chart1y2);
- model.makeValue("/root/send/savedata/chart1y4", chart1y4);
- model.makeValue("/root/send/savedata/chart2y0", chart2y0);
- model.makeValue("/root/send/savedata/chart2y2", chart2y2);
- model.makeValue("/root/send/savedata/chart2y4", chart2y4);
-
- if(chart1y2 < 0 || chart1y2 >1.1) {
- messageBox("GLUCOSE 2시간 값이 범위를", "E003");
- return;
- }
- if(chart1y4 < 0 || chart1y4 >1.1) {
- messageBox("GLUCOSE 4시간 값이 범위를", "E003");
- return;
- }
- if(chart2y0 < 0 || chart2y0 >1.1) {
- messageBox("CORRECTED CREATININE 0시간 값이 범위를", "E003");
- return;
- }
- if(chart2y2 < 0 || chart2y2 >1.1) {
- messageBox("CORRECTED CREATININE 2시간 값이 범위를", "E003");
- return;
- }
- if(chart2y4 < 0 || chart2y4 >1.1) {
- messageBox("CORRECTED CREATININE 4시간 값이 범위를", "E003");
- return;
- }
- TChart1.Series(0).AddXY (0, 1, "", TChart1.Series(0).Color);
- TChart1.Series(0).AddXY (2, chart1y2, "", TChart1.Series(0).Color);
- TChart1.Series(0).AddXY (4, chart1y4, "", TChart1.Series(0).Color);
-
- TChart2.Series(0).AddXY (0, chart2y0, "", TChart2.Series(0).Color);
- TChart2.Series(0).AddXY (2, chart2y2, "", TChart2.Series(0).Color);
- TChart2.Series(0).AddXY (4, chart2y4, "", TChart2.Series(0).Color);
- }
-
- function setChartInitLeft() {
- TChart1.RemoveAllSeries();
- TChart1.Axis.RemoveAllCustom();
- //margin 값 정하기
- TChart1.Panel.MarginTop = 23;
- TChart1.Panel.MarginLeft = 24.5;
- TChart1.Panel.MarginRight = 2.4;
- //TChart1.Panel.MarginBottom = 7.5; // 가로 X축 보일때
- TChart1.Panel.MarginBottom = 13.5; // 가로 X축 보이지 않을때
- //TChart1.Axis.Bottom.TickLength = 1010;
-
- //백그라운드 이미지
- // TChart1.Panel.BackImageLoad("../../../Program Files/himed/components/TrustForm/TFViewer/hpdet1.gif");
- setBackImageLoad(TChart1,"hpdet1");
-
-
- //하단축 칸 수 정하기와 눈금 없애기
- //TChart1.Axis.Bottom.SetMinMax (0, MinTimeConst * 60 * 24 * 7 - 1);
- TChart1.Axis.Bottom.SetMinMax (0, 4); // 가로좌표 표현
- TChart1.Axis.Bottom.Increment = 2;
- 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; //하단 축 눈금 명칭 색을 하얀색으로 하여 보이지 않게 처리 (하얀색 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.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.Font.Size = 8;
- TChart1.Axis.Custom(0).Title.Angle = 90;
- TChart1.Axis.Custom(0).PositionPercent = -8;
- TChart1.Axis.Custom(0).Automatic = false;
- TChart1.Axis.Custom(0).Maximum = 1.1;
- TChart1.Axis.Custom(0).Minimum = 0.0;
- TChart1.Axis.Custom(0).Increment = 0.1;
- 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 = 2; // 포인터 크기
- TChart1.Series(0).asLine.Pointer.HorizontalSize = 2;
- TChart1.Series(0).Depth = 1;
- }
-
- function setChartInitRight() {
- TChart2.RemoveAllSeries();
- TChart2.Axis.RemoveAllCustom();
- //margin 값 정하기
- TChart2.Panel.MarginTop = 23;
- TChart2.Panel.MarginLeft = 32;
- TChart2.Panel.MarginRight = 15.5;
- //TChart2.Panel.MarginBottom = 7.5; // 가로 X축 보일때
- TChart2.Panel.MarginBottom = 13.5; // 가로 X축 보이지 않을때
- //TChart2.Axis.Bottom.TickLength = 1010;
-
- //백그라운드 이미지
- setBackImageLoad(TChart2,"hpdet2");
-
- //하단축 칸 수 정하기와 눈금 없애기
- //TChart1.Axis.Bottom.SetMinMax (0, MinTimeConst * 60 * 24 * 7 - 1);
- TChart2.Axis.Bottom.SetMinMax (0, 4); // 가로좌표 표현
- TChart2.Axis.Bottom.Increment = 2;
- TChart2.Axis.Bottom.MinorTickCount = 0.5;
- TChart2.Axis.Bottom.AxisPen.Color = 0xffffff; // 가로축 아래 색 설정
- TChart2.Axis.Bottom.GridPen.Color = 0xffffff; // 세로 축 점선의 색 설정
- TChart2.Axis.Bottom.Labels.Font.Color = 0xffffff; //하단 축 눈금 명칭 색을 하얀색으로 하여 보이지 않게 처리 (하얀색 0xffffff)
- TChart2.Axis.Bottom.Labels.Visible = false; // 세로선 Visible
- TChart2.Header.Visible = false;
- TChart2.Header.Text(0)="혈액투석 적절도"; //헤더제목넣기
- TChart2.Header.Font.Bold = true; //헤더 굵게
- TChart2.Header.Font.Size = 10; //헤더 사이즈
- TChart2.Aspect.View3D = 0; //2d 로 표현하기
-
- TChart2.Zoom.enable = false; // zoom 사용하지 않기
- TChart2.Scroll.Enable = false; // scroll 사용하지 않기
- TChart2.Legend.Visible = false; // 그래프 참조 박스 띄우지 않기
- TChart2.Environment.MouseWheelScroll = false;
- //TChart2.Panel.Gradient.Visible = true; // 페널에 그라디언트 적용
-
- var cus_axis1 = TChart2.Axis.AddCustom(false);
- TChart2.Axis.Custom(0).AxisPen.Color = 0x0000ff; // 좌측 Y 축색 설정
- TChart2.Axis.Custom(0).Title.Font.Size = 8;
- TChart2.Axis.Custom(0).Title.Angle = 90;
- TChart2.Axis.Custom(0).PositionPercent = -8;
- TChart2.Axis.Custom(0).Automatic = false;
- TChart2.Axis.Custom(0).Maximum = 1.1;
- TChart2.Axis.Custom(0).Minimum = 0.0;
- TChart2.Axis.Custom(0).Increment = 0.1;
- TChart2.Axis.Custom(0).Visible= false; // 가로선 Visible
- TChart2.AddSeries (0);
- TChart2.Series(0).VerticalAxisCustom = cus_axis1; // Y축 기준
- TChart2.Series(0).asLine.LinePen.Width = 2;
- TChart2.Series(0).Color = 0x0000ff; // red
- TChart2.Series(0).asLine.Pointer.Visible = true;
- TChart2.Series(0).asLine.Pointer.Style = 1;
- TChart2.Series(0).asLine.Pointer.VerticalSize = 2; // 포인터 크기
- TChart2.Series(0).asLine.Pointer.HorizontalSize = 2;
- TChart2.Series(0).Depth = 1;
- }
-
- 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();
-
- 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"/>
- </xhtml:head>
- <xhtml:body pagewidth="745" pageheight="700" guideline="1,723;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:724px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:160px; height:14px; ">복막평형검사</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:58px; width:724px; height:630px; ">
- <caption id="caption31" class="tit_2" style="left:5px; top:10px; width:144px; height:13px; vertical-align:middle; ">복막평형검사</caption>
- <datagrid id="grd_hpdetlist" nodeset="/root/main/hpdetlist/info" caption="시행일자^검사결과^비 고" colsep="^" colwidth="112, 258, 332" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:28px; width:723px; height:117px; ">
- <col ref="execdt" format="yyyy-mm-dd" style="left:613px; top:32px; width:93px; height:23px; "/>
- <col disabled="true" ref="rsltcnts2" type="combo">
- <choices>
- <item>
- <label>High</label>
- <value>1</value>
- </item>
- <item>
- <label>High Average</label>
- <value>2</value>
- </item>
- <item>
- <label>Low Average</label>
- <value>3</value>
- </item>
- <item>
- <label>Low</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="remcnts"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( grd_hpdetlist.rows- grd_hpdetlist.fixedRows > 0 && grd_hpdetlist.mouseRow != 0){
- viewDetInfo();
- }
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:25px; x2:723px; y2:25px; "/>
- <group id="grp_btn" style="left:0px; top:600px; width:720px; height:27px; ">
- <button id="button42" class="btn4_letter2" style="left:663px; top:3px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("데이터를", "Q001") == 6 ) {
- if( grd_hpdetlist.rows- grd_hpdetlist.fixedRows > 0 ){
- var rowcnt = grd_hpdetlist.selectedRow(0);
- if(rowcnt < 1) {
- var msg = messageBox("삭제할 정보를 ", "C002");
- return;
- } else {
- model.setValue("/root/send/savedata/state", "D");111
- model.copyNode("/root/send/req/data1", "/root/send/savedata");
- var exec_date = model.getValue("/root/send/savedata/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("TXMMO08201");
-
- // 삭제후 상세정보 지우기
- //model.resetInstanceNode("/root/main/condition");
- model.resetInstanceNode("/root/send/savedata");
- model.resetInstanceNode("/root/main/calccr");
- model.refresh();
-
- setChartInitLeft();
- setChartInitRight();
-
- doSearch("D");
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="button8" class="btn4_letter2" style="left:604px; top:3px; 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/send/savedata/execdt") == "") {
- messageBox("시행일자 항목은", "I003");
- model.setFocus("ipt_attackdd");
- return;
- }
-
- calCcr();
- var ccrRslt = model.getValue("/root/main/calccr/ccr4");
- var rsltcnts2;
- if(ccrRslt > 0.81) { rsltcnts2 = "1" }
- else if(ccrRslt > 0.6501 && ccrRslt < 0.81) { rsltcnts2 = "2" }
- else if(ccrRslt >0.501 && ccrRslt < 0.65) { rsltcnts2 = "3" }
- else { rsltcnts2 = "4" }
- model.setValue("/root/send/savedata/rsltcnts2", rsltcnts2);
-
- model.setValue("/root/send/savedata/srchpid", model.getValue("/root/main/condition/srchpid"));
- if(model.getValue("/root/send/savedata/testseq") == ""){
- model.setValue("/root/send/savedata/testseq", 0);
- }
- model.setValue("/root/send/savedata/state", "U");
- model.copyNode("/root/send/req/data1", "/root/send/savedata");
-
- var exec_date = model.getValue("/root/send/savedata/execdt");
- //alert(model.getValue("/root/send/savedata/execdt"));
- //alert(model.getValue("/root/send/req/data1/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);
- //alert(exec_date);
-
- submit("TXMMO08201"); // 저장/수정
-
- doSearch("S");
-
- }
- ]]>
- </script>
- </button>
- <button id="button16" class="btn4_letter3" style="left:533px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send/savedata");
- model.resetInstanceNode("/root/main/calccr");
- model.makeValue("/root/send/savedata/execdt", getCurrentDate());
- model.refresh();
- setChartInitLeft();
- setChartInitRight();
- ]]>
- </script>
- </button>
- </group>
- <line id="line8" class="line_2" style="x1:0px; y1:268px; x2:431px; y2:268px; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:268px; x2:433px; y2:268px; "/>
- <caption id="caption42" class="cell_1" style="left:0px; top:245px; width:110px; height:23px; vertical-align:middle; ">Do_Bun</caption>
- <caption id="caption10" class="cell_1" style="left:0px; top:270px; width:110px; height:23px; vertical-align:middle; ">Remark</caption>
- <caption id="caption32" class="tit_2" style="left:5px; top:154px; width:170px; height:14px; vertical-align:middle; ">복막평형검사 상세정보</caption>
- <caption id="caption11" class="cell_1" style="left:233px; top:221px; width:110px; height:23px; vertical-align:middle; ">Pre D_Cr</caption>
- <caption id="caption4" class="cell_1" style="left:0px; top:197px; width:110px; height:23px; vertical-align:middle; ">Serum Cr</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:169px; x2:723px; y2:169px; "/>
- <caption id="caption8" class="cell_1" style="left:0px; top:173px; width:110px; height:23px; vertical-align:middle; ">시행일자</caption>
- <caption id="caption39" class="cell_1" style="left:0px; top:221px; width:110px; height:23px; vertical-align:middle; ">Pre D_Bun</caption>
- <line id="line4" class="line_2" style="x1:0px; y1:195px; x2:433px; y2:195px; "/>
- <caption id="caption9" class="cell_1" style="left:233px; top:245px; width:110px; height:23px; vertical-align:middle; ">Drained Vol(ml)</caption>
- <input id="ipt_attackdd" ref="/root/send/savedata/execdt" class="input_essential" inputtype="date" style="left:113px; top:174px; width:117px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input5");
- ]]>
- </script>
- </input>
- <line id="line5" class="line_2" style="x1:0px; y1:219px; x2:433px; y2:219px; "/>
- <input id="input5" ref="/root/send/savedata/serumcreatival" class="input_default" imemode="disabled" format="#.#" style="left:113px; top:198px; width:117px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input1");
- ]]>
- </script>
- </input>
- <input id="input1" ref="/root/send/savedata/serumglucoval" class="input_default" imemode="disabled" format="#.#" style="left:346px; top:198px; width:86px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input6");
- ]]>
- </script>
- </input>
- <input id="input6" ref="/root/send/savedata/preblodbunval" class="input_default" imemode="disabled" format="#.#" style="left:113px; top:222px; width:117px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input13");
- ]]>
- </script>
- </input>
- <input id="input13" ref="/root/send/savedata/precreatival" class="input_default" imemode="disabled" format="#.#" style="left:346px; top:222px; width:86px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input9");
- ]]>
- </script>
- </input>
- <input id="input9" ref="/root/send/savedata/blodbunval" class="input_default" imemode="disabled" format="#.#" style="left:113px; top:247px; width:117px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input2");
- ]]>
- </script>
- </input>
- <input id="input2" ref="/root/send/savedata/drainvol" class="input_default" imemode="disabled" format="#.#" style="left:346px; top:247px; width:86px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input3");
- ]]>
- </script>
- </input>
- <input id="input3" ref="/root/send/savedata/remcnts" class="input_default" style="left:113px; top:272px; width:319px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input7");
- ]]>
- </script>
- </input>
- <input id="input7" ref="/root/send/savedata/creatival" class="input_default" imemode="disabled" format="#.#" style="left:478px; top:223px; width:78px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input14");
- ]]>
- </script>
- </input>
- <input id="input14" ref="/root/send/savedata/creatival2" class="input_default" imemode="disabled" format="#.#" style="left:478px; top:247px; width:78px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input4");
- ]]>
- </script>
- </input>
- <input id="input4" ref="/root/send/savedata/creatival4" class="input_default" imemode="disabled" format="#.#" style="left:478px; top:272px; width:78px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input12");
- ]]>
- </script>
- </input>
- <input id="input12" ref="/root/send/savedata/glucoval" class="input_default" imemode="disabled" format="#.#" style="left:640px; top:223px; width:78px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input15");
- ]]>
- </script>
- </input>
- <input id="input15" ref="/root/send/savedata/glucoval2" class="input_default" imemode="disabled" format="#.#" style="left:640px; top:247px; width:78px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input16");
- ]]>
- </script>
- </input>
- <input id="input16" ref="/root/send/savedata/glucoval4" class="input_default" imemode="disabled" format="#.#" style="left:640px; top:272px; width:78px; height:19px; "/>
- <input id="input11" ref="/root/main/calccr/ccr4" class="output_search" editable="false" imemode="disabled" format="#.#" style="left:559px; top:272px; width:78px; height:19px; "/>
- <line id="line1" class="line_2" style="x1:0px; y1:243px; x2:433px; y2:243px; "/>
- <caption id="caption1" class="cell_1" style="left:233px; top:197px; width:110px; height:23px; vertical-align:middle; ">Glucose</caption>
- <caption id="caption2" class="cell_1" style="left:435px; top:270px; width:40px; height:23px; text-align:center; vertical-align:middle; ">4</caption>
- <caption id="caption7" class="cell_1" style="left:435px; top:222px; width:40px; height:23px; text-align:center; vertical-align:middle; ">0</caption>
- <line id="line11" class="line_2" style="x1:435px; y1:268px; x2:718px; y2:268px; "/>
- <line id="line13" class="line_2" style="x1:435px; y1:220px; x2:718px; y2:220px; "/>
- <caption id="caption12" class="cell_1" style="left:435px; top:246px; width:40px; height:23px; text-align:center; vertical-align:middle; ">2</caption>
- <caption id="caption13" class="cell_1" style="left:435px; top:198px; width:40px; height:23px; text-align:center; vertical-align:middle; ">시간</caption>
- <line id="line14" class="line_2" style="x1:435px; y1:244px; x2:718px; y2:244px; "/>
- <input id="input8" ref="/root/main/calccr/ccr0" class="output_search" editable="false" imemode="disabled" format="#.#" style="left:559px; top:223px; width:78px; height:19px; "/>
- <input id="input10" ref="/root/main/calccr/ccr2" class="output_search" editable="false" imemode="disabled" format="#.#" style="left:559px; top:247px; width:78px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:478px; top:198px; width:78px; height:23px; text-align:center; vertical-align:middle; ">Creatinine</caption>
- <caption id="caption5" class="cell_1" style="left:559px; top:198px; width:78px; height:23px; text-align:center; vertical-align:middle; ">교정된 Cr</caption>
- <caption id="caption14" class="cell_1" style="left:640px; top:198px; width:78px; height:23px; text-align:center; vertical-align:middle; ">Glucose</caption>
- <shape id="rectangle1" appearance="rectangle" style="left:5px; top:304px; width:655px; height:286px; "/>
- <button id="button3" class="btn2_letter3" style="left:665px; top:305px; width:53px; height:19px; ">
- <caption>그래프</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- calCcr();
- fMakeChart();
- ]]>
- </script>
- </button>
- <shape id="rectangle2" appearance="rectangle" style="left:435px; top:197px; width:283px; height:97px; border-width:2px; "/>
- <object id="TChart1" clsid="{fab9b41c-87d6-474d-ab7e-f07d78f2422e}" Top="315" Width="220" Height="266" Left="110" style="left:80px; top:315px; width:220px; height:265px; margin-left:1; margin-top:1; ">
- <!--object id="TChart1" clsid="{BDEB0088-66F9-4A55-ABD2-0BF8DEEC1196}" Top="315" Width="220" Left="110" Height="266" style="left:80px; top:315px; width:220px; height:265px; margin-left:1; margin-top:1; "-->
- <script ev:event="OnClick">
- <![CDATA[
- ]]>
- </script>
- </object>
- <line id="line33" class="line_3" style="x1:0px; y1:293px; x2:433px; y2:293px; "/>
- <object id="TChart2" clsid="{fab9b41c-87d6-474d-ab7e-f07d78f2422e}" Top="315" Width="289" Left="413" Height="266" style="left:305px; top:315px; width:290px; height:265px; margin-left:2; margin-top:2; ">
- <!--object id="TChart2" clsid="{BDEB0088-66F9-4A55-ABD2-0BF8DEEC1196}" Top="315" Width="289" Height="266" Left="413" style="left:305px; top:315px; width:290px; height:265px; margin-left:2; margin-top:2; "-->
- <script ev:event="OnClick">
- <![CDATA[
- ]]>
- </script>
- </object>
- <button id="btn_bfprcpsrch" class="btn1_letter2" visibility="hidden" style="left:655px; top:3px; 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");
- input17.text = model.getValue ("/root/patinfo/patinfolist/hngnm");
-
- model.setValue("/root/main/condition/patrrgstno1", model.getValue("/root/patinfo/patinfolist/rrgstno1"));
- var patrrgstno2 = model.getValue("/root/patinfo/patinfolist/rrgstno2");
- patrrgstno2 = patrrgstno2.substr(0,1) + "******";
- model.setValue("/root/main/condition/patrrgstno2", patrrgstno2);
- model.setValue("/root/main/condition/patsex", model.getValue("/root/patinfo/patinfolist/sex"));
- model.setValue("/root/main/condition/patage", model.getValue("/root/patinfo/patinfolist/age"));
-
- doSearch("F");
-
- } else if ( srcNodeList.length > 1 ) { //값이 한개이상이면 팝업을 띄운다.
- searchPatinfoPop();
- }
- model.refresh();
-
-
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter3" style="left:665px; top:327px; width:53px; height:19px; ">
- <caption>출 력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- TChart1.Export.SaveToBitmapFile(getTChartBackgroundImage("dialexamprint2"));
- TChart2.Export.SaveToBitmapFile(getTChartBackgroundImage("dialexamprint3"));
- exeReportPreview("RPMMO08200", "XMLSTR", "", "", "false", "", "", "", "", "false");
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:25px; width:724px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:724px; height:35px; "/>
- <button id="button2" class="btn1_letter2" style="left:663px; 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;
- }
- if(model.getValue("/root/main/condition/fromdd") ==""){
- messageBox("시행일자를 ", "C001");
- model.setFocus("ipt_fromdd");
- return;
- }
- if(model.getValue("/root/main/condition/todd") ==""){
- messageBox("시행일자를 ", "C001");
- model.setFocus("ipt_todd");
- return;
- }
- doSearch("F");
- setChartInitLeft();
- setChartInitRight();
- ]]>
- </script>
- </button>
- <line id="line6" class="line_4" style="x1:653px; y1:7px; x2:653px; y2:29px; "/>
- <caption id="caption15" class="search_name" style="left:484px; top:9px; width:86px; height:17px; ">환자명 :</caption>
- <input id="input17" ref="/root/main/condition/patname" class="input_s_essential" navindex="2" autonext="false" imemode="hangul" style="left:563px; top:9px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- model.setValue ( "/root/init/srchcond1", "2");
- inputEnterKey ( "btn_bfprcpsrch", "DOMActivate" )
- ]]>
- </script>
- </input>
- <input id="ipt_srchpid" ref="/root/main/condition/srchpid" class="input_s_essential" navindex="1" autonext="false" imemode="disabled" style="left:373px; 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="caption16" class="search_name" style="left:287px; top:9px; width:99px; height:17px; ">등록번호 :</caption>
- <button id="btn_srchpid" class="icon_search" style="left:456px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- searchPatinfoPop();
- ]]>
- </script>
- </button>
- <caption id="caption46" class="search_no_b" style="left:177px; top:9px; width:12px; height:17px; ">~</caption>
- <input id="ipt_todd" ref="/root/main/condition/todd" class="input_default" inputtype="date" style="left:191px; top:9px; width:86px; height:19px; "/>
- <caption id="caption37" class="search_name" style="left:2px; top:9px; width:116px; height:17px; ">시행일자 :</caption>
- <input id="ipt_fromdd" ref="/root/main/condition/fromdd" class="input_default" inputtype="date" style="left:89px; top:9px; width:86px; height:19px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|