SPASB02000_VS정보조회.xrw 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>VS정보조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <vsinfo>
  11. </vsinfo>
  12. <cond>
  13. <flag>B</flag>
  14. <pid/>
  15. <fromdd/>
  16. <todd/>
  17. <org_flag/>
  18. </cond>
  19. </main>
  20. <send>
  21. <reqdata/>
  22. </send>
  23. <hidden/>
  24. <init>
  25. <initdate>
  26. <today/>
  27. </initdate>
  28. </init>
  29. </root>
  30. </instance>
  31. <script type="javascript" ev:event="xforms-ready">
  32. <![CDATA[
  33. fInitialize();
  34. var flag = model.getValue("/root/main/cond/flag");
  35. model.makeValue("/root/main/cond/org_flag", flag);
  36. flag = flag.substr(0, 1);
  37. model.removeNodeset("/root/main/vsinfo");
  38. model.refresh();
  39. ]]>
  40. </script>
  41. <submission id="TRASB02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/vsinfo"/>
  42. </model>
  43. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  45. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  46. <script type="javascript">
  47. <![CDATA[
  48. function fInitialize() {
  49. var today = getCurrentDate();
  50. var idate = new Date();
  51. var peveDate = idate.getAddDate(-1, "M");
  52. model.setValue("/root/init/initdate/today", today);
  53. model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
  54. model.makeValue("/root/send/cond/todd", today);
  55. model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
  56. model.setValue("/root/main/cond/todd", today);
  57. model.refresh();
  58. }
  59. ]]>
  60. </script>
  61. </xhtml:head>
  62. <xhtml:body pagewidth="660" pageheight="437" style="margin-left:8; margin-right:8; ">
  63. <group id="group2" scroll="auto" style="left:0px; top:0px; width:642px; height:410px; ">
  64. <line id="line56" class="line_3" style="x1:0px; y1:410px; x2:420px; y2:410px; "/>
  65. <caption id="caption5" class="tit_2" style="left:5px; top:7px; width:100px; height:14px; ">V/S정보조회</caption>
  66. <line id="line2" class="line_1" style="x1:0px; y1:22px; x2:640px; y2:22px; "/>
  67. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_s_essential" disabled="true" maxlength="10" style="left:56px; top:29px; width:90px; height:19px; "/>
  68. <button id="btn_search" class="btn1_letter2" style="left:478px; top:27px; width:56px; height:22px; ">
  69. <caption>조회</caption>
  70. <script type="javascript" ev:event="DOMActivate">
  71. <![CDATA[
  72. if( !isRequiredControls("ipt_pid","ipt_fromdd","ipt_todd") ){
  73. return;
  74. }
  75. model.makeNode("/root/send/reqdata");
  76. model.copyNode("/root/send/reqdata", "/root/main/cond");
  77. submit("TRASB02001");
  78. ]]>
  79. </script>
  80. </button>
  81. <caption id="caption3" style="left:338px; top:30px; width:15px; height:20px; ">~</caption>
  82. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:351px; top:29px; width:113px; height:19px; "/>
  83. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:220px; top:29px; width:113px; height:19px; "/>
  84. <datagrid id="grd_vslist" nodeset="/root/main/vsinfo/vslist" caption="등록번호^이름^기록일자^기록시간^혈압^체온^호흡^맥박" colsep="^" colwidth="100, 100, 80, 80, 78, 60, 60, 60" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:53px; width:640px; height:352px; ">
  85. <col ref="pid"/>
  86. <col ref="patnm"/>
  87. <col ref="recdd" format="yyyy-mm-dd"/>
  88. <col ref="rectm" format="hh:nn"/>
  89. <col ref="bp"/>
  90. <col ref="bt"/>
  91. <col ref="breth"/>
  92. <col ref="pulse"/>
  93. <script type="javascript" ev:event="ondblclick">
  94. <![CDATA[
  95. if((grd_vslist.mouseRow > 0) && ( grd_vslist.mouseRow <= grd_vslist.rows )) {
  96. var iRow = grd_vslist.row;
  97. var flag = model.getValue("/root/main/cond/org_flag");
  98. if (flag == "BP"){
  99. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/bdtptestdate1", model.getValue("/root/main/vsinfo/vslist[" + iRow + "]/recdd"));
  100. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/bdtptesttime1", model.getValue("/root/main/vsinfo/vslist[" + iRow + "]/bp"));
  101. }
  102. else if (flag == "BT1"){
  103. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/bdtptestdt1", model.getValue("/root/main/vsinfo/vslist[" + iRow + "]/recdd") + model.getValue("/root/main/vsinfo/vslist[" + iRow + "]/rectm"));
  104. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/bdtptestrslt1", model.getValue("/root/main/vsinfo/vslist[" + iRow + "]/bt"));
  105. }
  106. else if (flag == "BT2"){
  107. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/bdtptestdt2", model.getValue("/root/main/vsinfo/vslist[" + iRow + "]/recdd") + model.getValue("/root/main/vsinfo/vslist[" + iRow + "]/rectm"));
  108. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/bdtptestrslt2", model.getValue("/root/main/vsinfo/vslist[" + iRow + "]/bt"));
  109. }
  110. else if (flag == "BR"){
  111. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/brethdate2", model.getValue("/root/main/vsinfo/vslist[" + iRow + "]/recdd"));
  112. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/brethtime2", model.getValue("/root/main/vsinfo/vslist[" + iRow + "]/breth"));
  113. }
  114. else if (flag == "PU"){
  115. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/pulsedate2", model.getValue("/root/main/vsinfo/vslist[" + iRow + "]/recdd"));
  116. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/pulsetime2", model.getValue("/root/main/vsinfo/vslist[" + iRow + "]/pulse"));
  117. }
  118. opener.model.refresh();
  119. window.close();
  120. }
  121. ]]>
  122. </script>
  123. <script type="javascript" ev:event="onaftersort">
  124. <![CDATA[
  125. grd_vslist.gridToInstance();
  126. ]]>
  127. </script>
  128. </datagrid>
  129. <caption id="cap_fromdd" class="cell_1" visibility="hidden" style="left:149px; top:27px; width:69px; height:23px; vertical-align:middle; ">조회기간</caption>
  130. <caption id="cap_todd" class="cell_1" style="left:149px; top:27px; width:69px; height:23px; vertical-align:middle; ">조회기간</caption>
  131. <caption id="cap_pid" class="cell_1" style="left:0px; top:27px; width:55px; height:23px; vertical-align:middle; ">등록번호</caption>
  132. <input id="input1" ref="/root/main/cond/flag" class="input_s_essential" visibility="hidden" maxlength="10" style="left:105px; top:30px; width:24px; height:19px; "/>
  133. <line id="line1" class="line_3" style="x1:0px; y1:51px; x2:640px; y2:51px; "/>
  134. </group>
  135. <group id="grp_btn" style="left:0px; top:410px; width:640px; height:27px; ">
  136. <button id="btn_cnfm" class="btn4_letter2" style="left:526px; top:3px; width:56px; height:22px; ">
  137. <caption>확인</caption>
  138. <script type="javascript" ev:event="DOMActivate">
  139. <![CDATA[
  140. var iRow = grd_vslist.row;
  141. var flag = model.getValue("/root/main/cond/org_flag");
  142. if (flag == "BT1"){
  143. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/bdtptestdate1", model.getValue("/root/main/vsinfo/vslist[" + iRow + "]/recdt"));
  144. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/bdtptesttime1", model.getValue("/root/main/vsinfo/vslist[" + iRow + "]/bt"));
  145. }
  146. else if (flag == "BT2"){
  147. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/bdtptestdate2", model.getValue("/root/main/vsinfo/vslist[" + iRow + "]/recdt"));
  148. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/bdtptesttime2", model.getValue("/root/main/vsinfo/vslist[" + iRow + "]/bt"));
  149. }
  150. opener.model.refresh();
  151. window.close();
  152. ]]>
  153. </script>
  154. </button>
  155. <button id="btn_cncl" class="btn4_letter2" style="left:583px; top:3px; width:56px; height:22px; ">
  156. <caption>취소</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. window.close();
  160. ]]>
  161. </script>
  162. </button>
  163. </group>
  164. </xhtml:body>
  165. </xhtml:html>