SPLBT90300_공여자처방결과.xrw 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLBT90300_공여자처방결과.xrw
  4. * 설 명 : 교차시험완료
  5. * 설 계 자 : (주)에이씨케이 - 박정은
  6. * 작 성 자 : (주)에이씨케이 -
  7. * 작 성 일 : 2009.03.10
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>공여자 처방 결과</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <dnorinfo>
  20. <dnorprcpinfo>
  21. <tnsrpid/>
  22. <prcpdt/>
  23. <spcacptdt/>
  24. <dnornm/>
  25. <dnorno/>
  26. </dnorprcpinfo>
  27. <dnorprcprslt>
  28. <testcd/>
  29. <tclsnm/>
  30. <reptrslt/>
  31. <refval/>
  32. <lastreptdt/>
  33. <prcpcd/>
  34. </dnorprcprslt>
  35. <dnorrslt102>
  36. <rsltlbd102/>
  37. </dnorrslt102>
  38. <dnorrslt101>
  39. <rsltlbd101/>
  40. </dnorrslt101>
  41. </dnorinfo>
  42. </main>
  43. <send>
  44. <blodno/>
  45. </send>
  46. <init>
  47. </init>
  48. <hidden>
  49. <ref>
  50. <blodno/>
  51. </ref>
  52. </hidden>
  53. </root>
  54. </instance>
  55. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  58. <script type="javascript" ev:event="xforms-ready">
  59. <![CDATA[
  60. fSetInit();
  61. ]]>
  62. </script>
  63. <submission id="TRLBT90301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dnorinfo"/>
  64. </model>
  65. <script type="javascript">
  66. <![CDATA[
  67. //초기화
  68. function fSetInit() {
  69. button4.disabled = false;
  70. button9.disabled = false;
  71. var blodno = model.getValue("/root/hidden/ref/blodno");
  72. if(blodno == ""){
  73. return;
  74. }
  75. model.setValue("/root/send/blodno", blodno);
  76. submit("TRLBT90301");
  77. setRowStyle("grd_dnorrslt", "4", "LBD100", "prcpcd", "equal"); // 사전검사
  78. setRowStyle("grd_dnorrslt", "1", "LBD101", "prcpcd", "equal"); // NAT
  79. setRowStyle("grd_dnorrslt", "11", "LBD102", "prcpcd", "equal"); // 사후검사
  80. // 사후검사 결과 여부
  81. if(model.getValue("/root/main/dnorinfo/dnorrslt102/rsltlbd102")=="Y"){
  82. // NAT 결과 여부
  83. if(model.getValue("/root/main/dnorinfo/dnorrslt101/rsltlbd101")=="N"){
  84. alert("NAT 미결과 공여자 입니다. \n NAT 미검사 동의서를 받으시고 Comment에 '응급'이라고 써 주십시오. ");
  85. }
  86. }else{ // 사후검사 결과 없음
  87. alert("사후검사 결과가 없어 불출 할 수 없습니다. ");
  88. button4.disabled = false; //닫기버튼
  89. button9.disabled = true; //불출버튼
  90. opener.model.setvalue("/root/hidden/natinfo/deliveYN" , "Y");
  91. return;
  92. }
  93. }
  94. // 불출 버튼 클릭시
  95. function fExeDelive(){
  96. if(model.getValue("/root/main/dnorinfo/dnorrslt102/rsltlbd102")=="Y"){ // 사후검사결과있을때
  97. var refynlist = "";
  98. for(i=1; i<grd_dnorrslt.rows; i++){
  99. if(model.getValue("/root/main/dnorinfo/dnorprcprslt["+i+"]/refyn")=="N"){
  100. refynlist += model.getValue("/root/main/dnorinfo/dnorprcprslt["+i+"]/refyn");
  101. }
  102. }
  103. //alert("refynlist= " + refynlist );
  104. if(refynlist == ""){ // 이상치결과 없을때
  105. opener.model.setvalue("/root/hidden/natinfo/deliveYN" , "Y");
  106. }else{ // positive 있을때
  107. opener.model.setvalue("/root/hidden/natinfo/deliveYN" , "N");
  108. }
  109. }else{ // 사후검사결과 없을때는 불출돼야함
  110. opener.model.setvalue("/root/hidden/natinfo/deliveYN" , "Y");
  111. }
  112. window.close();
  113. }
  114. ]]>
  115. </script>
  116. </xhtml:head>
  117. <xhtml:body pagewidth="690" pageheight="470" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  118. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:670px; height:440px; ">
  119. <datagrid id="grd_dnorinfo" nodeset="/root/main/dnorinfo/dnorprcpinfo" caption="등록번호^처방시간^접수시간^공여자명^공여자번호" colsep="^" colwidth="90, 130, 130, 100, 120" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:5px; top:30px; width:640px; height:94px; text-align:center; ">
  120. <col ref="tnsrpid" style="text-align:center; "/>
  121. <col ref="prcpdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  122. <col ref="spcacptdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  123. <col ref="dnornm"/>
  124. <col ref="dnorno"/>
  125. <script type="javascript" ev:event="onaftersort">
  126. <![CDATA[
  127. grd_dnorinfo.gridToInstance();
  128. ]]>
  129. </script>
  130. </datagrid>
  131. <line id="line10" class="line_1" style="x1:5px; y1:25px; x2:645px; y2:25px; "/>
  132. <caption id="caption32" class="tit_2" style="left:10px; top:10px; width:131px; height:13px; ">공여자 처방 정보</caption>
  133. <line id="line15" class="line_1" style="x1:5px; y1:149px; x2:645px; y2:149px; "/>
  134. <caption id="caption14" class="tit_2" style="left:10px; top:134px; width:145px; height:13px; ">공여자 처방 결과</caption>
  135. <datagrid id="grd_dnorrslt" nodeset="/root/main/dnorinfo/dnorprcprslt" caption="처방코드^처망명^결과^참고치^결과입력일시^prcpcd" colsep="^" colwidth="80, 180, 90, 130, 120, 0" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:5px; top:154px; width:640px; height:254px; text-align:center; ">
  136. <col ref="testcd" style="text-align:left; "/>
  137. <col ref="tclsnm" style="text-align:left; "/>
  138. <col ref="reptrslt" style="text-align:left; "/>
  139. <col ref="refval" style="text-align:left; "/>
  140. <col ref="lastreptdt" format="yyyy-mm-dd hh:nn"/>
  141. <col ref="prcpcd"/>
  142. <script type="javascript" ev:event="onaftersort">
  143. <![CDATA[
  144. grd_dnorrslt.gridToInstance();
  145. ]]>
  146. </script>
  147. </datagrid>
  148. <group id="group2" style="left:0px; top:410px; width:668px; height:27px; ">
  149. <button id="button4" class="btn4_letter2" style="left:531px; top:5px; width:56px; height:22px; ">
  150. <caption>닫기</caption>
  151. <script type="javascript" ev:event="onclick">
  152. <![CDATA[
  153. //opener.model.setvalue("/root/hidden/natinfo/deliveYN" , "");
  154. if(model.getValue("/root/main/dnorinfo/dnorrslt102/rsltlbd102")=="Y"){ // 사후검사결과있을때
  155. var refynlist = "";
  156. for(i=1; i<grd_dnorrslt.rows; i++){
  157. if(model.getValue("/root/main/dnorinfo/dnorprcprslt["+i+"]/refyn")=="N"){
  158. refynlist += model.getValue("/root/main/dnorinfo/dnorprcprslt["+i+"]/refyn");
  159. }
  160. }
  161. if(refynlist == ""){
  162. opener.model.setvalue("/root/hidden/natinfo/deliveYN" , "Y");
  163. }else{
  164. opener.model.setvalue("/root/hidden/natinfo/deliveYN" , "N");
  165. }
  166. }else{ // 사후검사결과 없음
  167. opener.model.setvalue("/root/hidden/natinfo/deliveYN" , "Y");
  168. }
  169. window.close();
  170. ]]>
  171. </script>
  172. </button>
  173. <line id="line14" class="line_6" style="x1:5px; y1:0px; x2:643px; y2:0px; "/>
  174. <button id="button9" class="btn4_letter2" style="left:590px; top:5px; width:56px; height:22px; ">
  175. <caption>불출</caption>
  176. <script type="javascript" ev:event="onclick">
  177. <![CDATA[
  178. fExeDelive();
  179. ]]>
  180. </script>
  181. </button>
  182. </group>
  183. <caption id="caption1" style="left:145px; top:127px; width:60px; height:20px; text-align:center; vertical-align:middle; background-color:#b9e5fb; border-style:solid; ">사전검사</caption>
  184. <caption id="caption2" style="left:210px; top:127px; width:60px; height:20px; text-align:center; vertical-align:middle; background-color:#e5f3c2; border-style:solid; ">사후검사</caption>
  185. <caption id="caption3" style="left:275px; top:127px; width:60px; height:20px; text-align:center; vertical-align:middle; background-color:#ffe79d; border-style:solid; ">NAT</caption>
  186. </group>
  187. <script type="javascript" ev:event="onkeypress">
  188. <![CDATA[
  189. //fKeyEvent();
  190. ]]>
  191. </script>
  192. </xhtml:body>
  193. </xhtml:html>