SPLLJ90200_UrineVolume.xrw 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLLJ90200_UrineVolume.xrw
  4. * 설 명 : UrineVolume 유린정보입력
  5. * 설 계 자 : (주)에이씨케이 - 박정은
  6. * 작 성 자 : (주)에이씨케이 - 박정은
  7. * 작 성 일 : 2007.02.26
  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>Urine Volume</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <getSpcInfo>
  20. <bcno/>
  21. <urinetm/>
  22. <urinevol/>
  23. </getSpcInfo>
  24. <msg/>
  25. </main>
  26. <send>
  27. <bcno/>
  28. <urinedt/>
  29. <urinevol/>
  30. </send>
  31. <init>
  32. </init>
  33. <hidden>
  34. <urinedt>24</urinedt>
  35. <urinevol/>
  36. <bcno/>
  37. </hidden>
  38. </root>
  39. </instance>
  40. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  42. <submission id="TXLLJ90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/msg"/>
  43. <script type="javascript" ev:event="xforms-ready">
  44. <![CDATA[
  45. model.setFocus("ipt_volume");
  46. ]]>
  47. </script>
  48. </model>
  49. <script type="javascript">
  50. <![CDATA[
  51. // 유린정보 입력
  52. function fSetUrineVolume(){
  53. var vVol = model.getValue("/root/hidden/urinevol") ;
  54. if(vVol == "") {
  55. messageBox("Urine Volume 값을", "C001");
  56. return;
  57. }
  58. if(!vVol.isFloat()){
  59. messageBox("Urine Volume 값은 수치만입력 가능합니다.", "C");
  60. ipt_volume.value = "";
  61. return;
  62. }
  63. model.setValue("/root/send/bcno", model.getValue("/root/hidden/bcno"));
  64. model.setValue("/root/send/urinedt", model.getValue("/root/hidden/urinedt"));
  65. //if(model.getValue("/root/hidden/urinedt")=="1"){
  66. // var dt1 = 24;
  67. //}else if(model.getValue("/root/hidden/urinedt")=="2"){
  68. // var dt1 = 12;
  69. //}else{
  70. // var dt1 = 8;
  71. //}
  72. //model.setValue("/root/send/Data2", dt1);
  73. model.setValue("/root/send/urinevol", model.getValue("/root/hidden/urinevol"));
  74. //alert("TXLLJ90201");
  75. if(submit("TXLLJ90201") == true){
  76. window.close();
  77. }
  78. }
  79. // 엔터키 이벤트
  80. function fKeyEvent(){
  81. if(event.keyCode == "13"){
  82. if(event.target=="ipt_volume"){
  83. model.setvalue("/root/hidden/urinevol", ipt_volume.currentText);
  84. fSetUrineVolume();
  85. }
  86. }
  87. }
  88. ]]>
  89. </script>
  90. </xhtml:head>
  91. <xhtml:body pagewidth="327" pageheight="160" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  92. <group id="group1" style="left:0px; top:0px; width:311px; height:134px; ">
  93. <caption id="caption1" class="tit_2" style="left:5px; top:11px; width:123px; height:13px; ">Urine 정보 입력</caption>
  94. <caption id="caption2" class="cell_1" style="left:0px; top:79px; width:100px; height:23px; ">Urine Volume</caption>
  95. <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:310px; y2:26px; "/>
  96. <line id="line2" class="line_2" style="x1:0px; y1:77px; x2:310px; y2:77px; "/>
  97. <line id="line6" class="line_2" style="x1:0px; y1:53px; x2:310px; y2:53px; "/>
  98. <line id="line8" class="line_3" style="x1:0px; y1:101px; x2:310px; y2:101px; "/>
  99. <caption id="caption3" class="cell_1" style="left:0px; top:31px; width:100px; height:23px; ">검체번호</caption>
  100. <caption id="caption4" class="cell_1" style="left:0px; top:55px; width:100px; height:23px; ">Urine 수거시간</caption>
  101. <button id="btn_cancel" class="btn4_letter2" visibility="hidden" style="left:254px; top:107px; width:56px; height:22px; ">
  102. <caption>취소</caption>
  103. <!--<script type="javascript" ev:event="DOMActivate">
  104. <![CDATA[
  105. window.close();
  106. ]]>
  107. </script>-->
  108. <close ev:event="DOMActivate"/>
  109. </button>
  110. <button id="btn_cnfm" class="btn4_letter2" style="left:254px; top:107px; width:56px; height:22px; ">
  111. <caption>확인</caption>
  112. <script type="javascript" ev:event="DOMActivate">
  113. <![CDATA[
  114. fSetUrineVolume();
  115. ]]>
  116. </script>
  117. </button>
  118. <output id="opt_bcno" ref="/root/hidden/bcno" class="output_fix" style="left:103px; top:32px; width:207px; height:19px; "/>
  119. <select1 id="rdo_urine" ref="/root/hidden/urinedt" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:105px; top:59px; width:195px; height:14px; border-style:none; ">
  120. <choices>
  121. <item>
  122. <label>24Hr</label>
  123. <value>24</value>
  124. </item>
  125. <item>
  126. <label>12Hr</label>
  127. <value>12</value>
  128. </item>
  129. <item>
  130. <label>8Hr</label>
  131. <value>8</value>
  132. </item>
  133. </choices>
  134. </select1>
  135. <input id="ipt_volume" ref="/root/hidden/urinevol" class="input_essential" style="left:103px; top:80px; width:207px; height:19px; ">
  136. <script type="javascript" ev:event="onkeypress">
  137. <![CDATA[
  138. fKeyEvent();
  139. ]]>
  140. </script>
  141. </input>
  142. </group>
  143. </xhtml:body>
  144. </xhtml:html>