SPLRR90800_Hemolysis 계산 확인.xrw 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLRR90800_Hemolysis 계산 확인.xrw
  4. * 설 명 : Hemolysis 계산 확인
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 윤재한
  7. * 작 성 일 : 2007.11.15
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>Hemolysis 계산 확인</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. </main>
  20. <send>
  21. </send>
  22. <init>
  23. </init>
  24. <hidden/>
  25. </root>
  26. </instance>
  27. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  28. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  29. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  30. <script type="javascript" ev:event="xforms-ready">
  31. <![CDATA[
  32. fCalc();
  33. ]]>
  34. </script>
  35. <submission id="TXLRR90201" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/rtnval/rtnvalinfo"/>
  36. <submission id="TRLRR90201" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/reqfrm"/>
  37. </model>
  38. <script type="javascript">
  39. <![CDATA[
  40. //hemolysis 계산하기
  41. function fCalc() {
  42. L1c = model.getValue("/root/main/incu1con[13]/od");
  43. N1c = model.getValue("/root/main/incu1con[14]/od");
  44. L1p = model.getValue("/root/main/incu1pat[13]/od");
  45. N1p = model.getValue("/root/main/incu1pat[14]/od");
  46. L24c = model.getValue("/root/main/incu24con[13]/od");
  47. N24c = model.getValue("/root/main/incu24con[14]/od");
  48. L24p = model.getValue("/root/main/incu24pat[13]/od");
  49. N24p = model.getValue("/root/main/incu24pat[14]/od");
  50. //alert(L1c + "\n" + N1c);
  51. for(i = 1; i<= 12; i++) {
  52. var val1c = model.getValue("/root/main/incu1con["+ i +"]/od");
  53. var val1p = model.getValue("/root/main/incu1con["+ i +"]/od");
  54. var val24c = model.getValue("/root/main/incu1con["+ i +"]/od");
  55. var val24p = model.getValue("/root/main/incu1con["+ i +"]/od");
  56. if(L1c != "" && val1c != "" && N1c != "") {
  57. var rslt = ((parseFloat(val1c) - parseFloat(N1c)) / parseFloat(L1c)) * 100;
  58. model.setValue("/root/main/incu1con["+ i +"]/hm", rslt);
  59. }
  60. if(L1p != "" && val1p != "" && N1p != "") {
  61. var rslt = ((parseFloat(val1p) - parseFloat(N1p)) / parseFloat(L1p)) * 100;
  62. model.setValue("/root/main/incu1pat["+ i +"]/hm", rslt);
  63. }
  64. if(L24c != "" && val24c != "" && N24c != "") {
  65. var rslt = ((parseFloat(val24c) - parseFloat(N24c)) / parseFloat(L24c)) * 100;
  66. model.setValue("/root/main/incu24con["+ i +"]/hm", rslt);
  67. }
  68. if(L24p != "" && val24p != "" && N24p != "") {
  69. var rslt = ((parseFloat(val24p) - parseFloat(N24p)) / parseFloat(L24p)) * 100;
  70. model.setValue("/root/main/incu24pat["+ i +"]/hm", rslt);
  71. }
  72. }
  73. model.refresh();
  74. }
  75. // 닫기
  76. function fSetClose(){
  77. window.close();
  78. }
  79. ]]>
  80. </script>
  81. </xhtml:head>
  82. <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; ">
  83. <group id="group1" style="left:0px; top:0px; width:865px; height:390px; ">
  84. <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>
  85. <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; ">
  86. <col ref="nacl"/>
  87. <col ref="od" type="input"/>
  88. <col ref="hm"/>
  89. </datagrid>
  90. <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; ">
  91. <col ref="nacl"/>
  92. <col ref="od" type="input"/>
  93. <col ref="hm"/>
  94. </datagrid>
  95. <caption id="caption52" class="tit_2" style="left:5px; top:20px; width:192px; height:13px; ">1시간 incubation (Control)</caption>
  96. <line id="line33" class="line_1" style="x1:0px; y1:36px; x2:210px; y2:36px; "/>
  97. <line id="line34" class="line_1" style="x1:215px; y1:36px; x2:425px; y2:36px; "/>
  98. <caption id="caption53" class="tit_2" style="left:220px; top:20px; width:192px; height:13px; ">1시간 incubation (Patient)</caption>
  99. <caption id="caption54" class="tit_2" style="left:435px; top:20px; width:194px; height:13px; ">24시간 incubation (Control)</caption>
  100. <line id="line35" class="line_1" style="x1:430px; y1:36px; x2:640px; y2:36px; "/>
  101. <line id="line36" class="line_1" style="x1:645px; y1:36px; x2:855px; y2:36px; "/>
  102. <caption id="caption55" class="tit_2" style="left:650px; top:20px; width:192px; height:13px; ">24시간 incubation (Patient)</caption>
  103. <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; ">
  104. <col ref="nacl"/>
  105. <col ref="od" type="input"/>
  106. <col ref="hm"/>
  107. </datagrid>
  108. <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; ">
  109. <col ref="nacl"/>
  110. <col ref="od" type="input"/>
  111. <col ref="hm"/>
  112. </datagrid>
  113. </group>
  114. <group id="group3" style="left:0px; top:390px; width:865px; height:27px; ">
  115. <line id="line8" class="line_6" style="x1:0px; y1:0px; x2:300px; y2:0px; "/>
  116. <button id="btn_close" class="btn4_letter2" style="left:807px; top:5px; width:56px; height:22px; ">
  117. <caption>닫기</caption>
  118. <script type="javascript" ev:event="DOMActivate">
  119. <![CDATA[
  120. fSetClose();
  121. ]]>
  122. </script>
  123. </button>
  124. <button id="btn_save" class="btn4_letter2" visibility="visible" style="left:748px; top:5px; width:56px; height:22px; ">
  125. <caption>확인</caption>
  126. <script type="javascript" ev:event="DOMActivate">
  127. <![CDATA[
  128. model.copyNode(opener.root.main.osmotic, root.main);
  129. opener.model.refresh();
  130. ]]>
  131. </script>
  132. </button>
  133. </group>
  134. </xhtml:body>
  135. </xhtml:html>