123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLRR90800_Hemolysis 계산 확인.xrw
- * 설 명 : Hemolysis 계산 확인
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 윤재한
- * 작 성 일 : 2007.11.15
- * 수정이력 :
- * 기 타 :
- -->
- <?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>Hemolysis 계산 확인</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- </main>
- <send>
- </send>
- <init>
- </init>
- <hidden/>
- </root>
- </instance>
- <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/stringHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fCalc();
- ]]>
- </script>
- <submission id="TXLRR90201" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/rtnval/rtnvalinfo"/>
- <submission id="TRLRR90201" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/reqfrm"/>
- </model>
- <script type="javascript">
- <![CDATA[
- //hemolysis 계산하기
- function fCalc() {
- L1c = model.getValue("/root/main/incu1con[13]/od");
- N1c = model.getValue("/root/main/incu1con[14]/od");
-
- L1p = model.getValue("/root/main/incu1pat[13]/od");
- N1p = model.getValue("/root/main/incu1pat[14]/od");
-
- L24c = model.getValue("/root/main/incu24con[13]/od");
- N24c = model.getValue("/root/main/incu24con[14]/od");
-
- L24p = model.getValue("/root/main/incu24pat[13]/od");
- N24p = model.getValue("/root/main/incu24pat[14]/od");
- //alert(L1c + "\n" + N1c);
-
- for(i = 1; i<= 12; i++) {
- var val1c = model.getValue("/root/main/incu1con["+ i +"]/od");
- var val1p = model.getValue("/root/main/incu1con["+ i +"]/od");
- var val24c = model.getValue("/root/main/incu1con["+ i +"]/od");
- var val24p = model.getValue("/root/main/incu1con["+ i +"]/od");
-
- if(L1c != "" && val1c != "" && N1c != "") {
- var rslt = ((parseFloat(val1c) - parseFloat(N1c)) / parseFloat(L1c)) * 100;
-
- model.setValue("/root/main/incu1con["+ i +"]/hm", rslt);
- }
-
- if(L1p != "" && val1p != "" && N1p != "") {
- var rslt = ((parseFloat(val1p) - parseFloat(N1p)) / parseFloat(L1p)) * 100;
-
- model.setValue("/root/main/incu1pat["+ i +"]/hm", rslt);
- }
-
- if(L24c != "" && val24c != "" && N24c != "") {
- var rslt = ((parseFloat(val24c) - parseFloat(N24c)) / parseFloat(L24c)) * 100;
-
- model.setValue("/root/main/incu24con["+ i +"]/hm", rslt);
- }
-
- if(L24p != "" && val24p != "" && N24p != "") {
- var rslt = ((parseFloat(val24p) - parseFloat(N24p)) / parseFloat(L24p)) * 100;
-
- model.setValue("/root/main/incu24pat["+ i +"]/hm", rslt);
- }
- }
- model.refresh();
- }
-
- // 닫기
- function fSetClose(){
- window.close();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="900" pageheight="500" guideline="1,1194;" style="border-color:#000000; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:865px; height:390px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:195px; height:13px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">Hemolysis 계산 확인</caption>
- <datagrid id="grd_1pat" nodeset="/root/main/incu1pat" caption="NaCl(%)^OD^Hemolysis(%)" colwidth="70, 40, 90" extendlastcol="scroll" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:215px; top:41px; width:210px; height:347px; text-align:center; ">
- <col ref="nacl"/>
- <col ref="od" type="input"/>
- <col ref="hm"/>
- </datagrid>
- <datagrid id="grd_1con" nodeset="/root/main/incu1con" caption="NaCl(%)^OD^Hemolysis(%)" colwidth="70, 40, 90" extendlastcol="scroll" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:41px; width:210px; height:347px; text-align:center; ">
- <col ref="nacl"/>
- <col ref="od" type="input"/>
- <col ref="hm"/>
- </datagrid>
- <caption id="caption52" class="tit_2" style="left:5px; top:20px; width:192px; height:13px; ">1시간 incubation (Control)</caption>
- <line id="line33" class="line_1" style="x1:0px; y1:36px; x2:210px; y2:36px; "/>
- <line id="line34" class="line_1" style="x1:215px; y1:36px; x2:425px; y2:36px; "/>
- <caption id="caption53" class="tit_2" style="left:220px; top:20px; width:192px; height:13px; ">1시간 incubation (Patient)</caption>
- <caption id="caption54" class="tit_2" style="left:435px; top:20px; width:194px; height:13px; ">24시간 incubation (Control)</caption>
- <line id="line35" class="line_1" style="x1:430px; y1:36px; x2:640px; y2:36px; "/>
- <line id="line36" class="line_1" style="x1:645px; y1:36px; x2:855px; y2:36px; "/>
- <caption id="caption55" class="tit_2" style="left:650px; top:20px; width:192px; height:13px; ">24시간 incubation (Patient)</caption>
- <datagrid id="grd_24pat" nodeset="/root/main/incu24pat" caption="NaCl(%)^OD^Hemolysis(%)" colwidth="70, 40, 90" extendlastcol="scroll" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:645px; top:41px; width:210px; height:347px; text-align:center; ">
- <col ref="nacl"/>
- <col ref="od" type="input"/>
- <col ref="hm"/>
- </datagrid>
- <datagrid id="grd_24con" nodeset="/root/main/incu24con" caption="NaCl(%)^OD^Hemolysis(%)" colwidth="70, 40, 90" extendlastcol="scroll" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:430px; top:41px; width:210px; height:347px; text-align:center; ">
- <col ref="nacl"/>
- <col ref="od" type="input"/>
- <col ref="hm"/>
- </datagrid>
- </group>
- <group id="group3" style="left:0px; top:390px; width:865px; height:27px; ">
- <line id="line8" class="line_6" style="x1:0px; y1:0px; x2:300px; y2:0px; "/>
- <button id="btn_close" class="btn4_letter2" style="left:807px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetClose();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" visibility="visible" style="left:748px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.copyNode(opener.root.main.osmotic, root.main);
- opener.model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|