SMLLR90300_현장검사결과등록.xrw 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLR90300_현장검사결과등록.xrw
  4. * 설 명 : 현장검사결과등록
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 조철형
  7. * 작 성 일 : 2007.06.19
  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>현장검사결과등록</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <spcinfo>
  20. <eqmtcd/>
  21. <bcno/>
  22. <pid/>
  23. <patnm/>
  24. <orddeptnm/>
  25. <wardroom/>
  26. <rsltstat/>
  27. <execdeptcd/>
  28. </spcinfo>
  29. <testlist>
  30. <chk/>
  31. <tclscd/>
  32. <tclsscrnnm/>
  33. <inptrslt/>
  34. <bcno/>
  35. <spcstat/>
  36. </testlist>
  37. </main>
  38. <send>
  39. <data1/>
  40. <data2/>
  41. </send>
  42. <init>
  43. </init>
  44. <hidden>
  45. <refparam>
  46. <bcno/>
  47. <eqmtcd/>
  48. </refparam>
  49. <default/>
  50. <refflag>
  51. <bcno/>
  52. <rsltstat/>
  53. <testlrgkind/>
  54. <p_isedit/>
  55. <execdeptcd/>
  56. </refflag>
  57. </hidden>
  58. </root>
  59. </instance>
  60. <script type="javascript" ev:event="xforms-model-construct-done">
  61. <![CDATA[
  62. ]]>
  63. </script>
  64. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  66. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  68. <submission id="TRLLR90301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
  69. <submission id="TXLLR90301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  70. </model>
  71. <script type="javascript">
  72. <![CDATA[
  73. function fExeCancel() {
  74. window.close();
  75. }
  76. function fOnclickTest(){
  77. model.copyNode("/root/send/data1" , "/root/hidden/refparam");
  78. submit("TRLLR90301" , false);
  79. model.copyNode("/root/send/data1" , "/root/hidden/default");
  80. model.refresh();
  81. }
  82. function fSpcInfoRef(){
  83. if(event.keyCode == "13"){
  84. if(event.target == "ipt_bcno"){
  85. model.setvalue("/root/hidden/refparam/bcno",ipt_bcno.currentText);
  86. model.refresh();
  87. fOnclickTest();
  88. ipt_bcno.selBegin = 0;
  89. ipt_bcno.selEnd = ipt_bcno.currentText.length;
  90. }
  91. }
  92. }
  93. function fResultSave(){
  94. var tfSave = false;
  95. for(i=1;i<datagrid1.rows;i++){
  96. if(model.getvalue("/root/main/testlist["+i+"]/chk") == "true" && model.getvalue("/root/main/testlist["+i+"]/inptrslt") != ""){
  97. datagrid1.addStatus(i, "update");
  98. tfSave = true;
  99. }
  100. }
  101. if(tfSave){
  102. model.setvalue("/root/send/data1" , datagrid1.getUpdateData());
  103. model.setvalue("/root/hidden/refflag/bcno",model.getvalue("/root/hidden/refparam/bcno"));
  104. model.setvalue("/root/hidden/refflag/rsltstat",model.getvalue("/root/main/spcinfo/rsltstat"));
  105. model.setvalue("/root/hidden/refflag/testlrgkind","-");
  106. model.setvalue("/root/hidden/refflag/execdeptcd" , model.getvalue("/root/main/spcinfo/execdeptcd"));
  107. model.copyNode("/root/send/data2" , "/root/hidden/refflag");
  108. submit("TXLLR90301" , false);
  109. model.resetInstanceNode("/root/main/spcinfo");
  110. model.removeNodeset("/root/main/testlist");
  111. model.copyNode("/root/send/data1" , "/root/hidden/default");
  112. model.refresh()
  113. }
  114. }
  115. ]]>
  116. </script>
  117. </xhtml:head>
  118. <xhtml:body style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  119. <group id="group1" style="left:0px; top:0px; width:571px; height:270px; ">
  120. <caption id="caption1" class="tit_2" style="left:245px; top:11px; width:95px; height:13px; ">검사결과</caption>
  121. <caption id="caption2" class="tit_2" style="left:5px; top:11px; width:95px; height:14px; ">검체정보</caption>
  122. <line id="line1" class="line_1" style="x1:240px; y1:26px; x2:570px; y2:26px; "/>
  123. <line id="line2" class="line_1" style="x1:0px; y1:26px; x2:235; y2:26px; "/>
  124. <datagrid id="datagrid1" nodeset="/root/main/testlist" caption="^검사코드^검사명^결과^검체번호^검체상태" colsep="^" colwidth="20, 74, 140, 50, 100, 100" dataheight="23" defaultrows="1" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:240px; top:31px; width:330px; height:232; ">
  125. <col ref="chk" type="checkbox"/>
  126. <col ref="tclscd"/>
  127. <col ref="tclsscrnnm"/>
  128. <col ref="inptrslt" type="input"/>
  129. <col ref="bcno"/>
  130. <col ref="spcstat"/>
  131. </datagrid>
  132. <caption id="caption5" class="cell_1" style="left:0px; top:-140px; width:72px; height:23px; vertical-align:middle; ">환자명</caption>
  133. <output id="output2" ref="/root/main/spcinfo/pid" class="output_fix" style="left:75px; top:80px; width:160px; height:19px; "/>
  134. <output id="output3" ref="/root/main/spcinfo/patnm" class="output_fix" style="left:75px; top:104px; width:160px; height:19px; "/>
  135. <output id="output4" ref="/root/main/spcinfo/orddeptnm" class="output_fix" style="left:75px; top:128px; width:160px; height:19px; "/>
  136. <output id="output5" ref="/root/main/spcinfo/wardroom" class="output_fix" style="left:75px; top:152px; width:160px; height:19px; "/>
  137. <line id="line4" class="line_2" style="x1:0px; y1:77px; x2:235px; y2:77px; "/>
  138. <line id="line5" class="line_2" style="x1:0px; y1:101px; x2:235px; y2:101px; "/>
  139. <line id="line6" class="line_2" style="x1:0px; y1:125px; x2:235px; y2:125px; "/>
  140. <line id="line7" class="line_2" style="x1:0px; y1:149px; x2:235px; y2:149px; "/>
  141. <line id="line8" class="line_3" style="x1:0px; y1:173px; x2:235px; y2:173px; "/>
  142. <select1 id="combo1" ref="/root/hidden/refparam/eqmtcd" class="combo_default" appearance="minimal" style="left:75px; top:33px; width:160px; height:19px; ">
  143. <choices>
  144. <item>
  145. <label>HCG</label>
  146. <value>01</value>
  147. </item>
  148. </choices>
  149. </select1>
  150. <line id="line3" class="line_2" style="x1:0px; y1:53px; x2:235px; y2:53px; "/>
  151. <caption id="caption8" class="cell_1" style="left:0px; top:151px; width:72px; height:23px; vertical-align:middle; ">병동/병실</caption>
  152. <caption id="caption3" class="cell_1" style="left:0px; top:31px; width:72px; height:23px; vertical-align:middle; ">검사그룹</caption>
  153. <caption id="caption4" class="cell_1" style="left:0px; top:79px; width:72px; height:23px; vertical-align:middle; ">등록번호</caption>
  154. <caption id="caption6" class="cell_1" style="left:0px; top:103px; width:72px; height:23px; vertical-align:middle; ">환자명</caption>
  155. <caption id="caption7" class="cell_1" style="left:0px; top:127px; width:72px; height:23px; vertical-align:middle; ">진료과</caption>
  156. <caption id="caption9" class="cell_1" style="left:0px; top:55px; width:72px; height:23px; vertical-align:middle; ">검체번호</caption>
  157. <input id="ipt_bcno" ref="/root/hidden/refparam/bcno" class="input_button" inputtype="button" style="left:75px; top:56px; width:160px; height:19px; ">
  158. <script type="javascript" ev:event="onbuttonclick">
  159. <![CDATA[
  160. fOnclickTest();
  161. ]]>
  162. </script>
  163. <script type="javascript" ev:event="onkeypress">
  164. <![CDATA[
  165. fSpcInfoRef();
  166. ]]>
  167. </script>
  168. </input>
  169. </group>
  170. <group id="group2" style="left:0px; top:270px; width:571px; height:27px; ">
  171. <line id="line9" class="line_6" style="x1:0px; y1:0px; x2:570px; y2:0px; "/>
  172. <button id="button4" class="btn4_letter2" style="left:455px; top:5px; width:56px; height:22px; ">
  173. <caption>저장</caption>
  174. <script type="javascript" ev:event="DOMActivate">
  175. <![CDATA[
  176. fResultSave();
  177. ]]>
  178. </script>
  179. </button>
  180. <button id="button9" class="btn4_letter2" style="left:514px; top:5px; width:56px; height:22px; ">
  181. <caption>취소</caption>
  182. <script type="javascript" ev:event="DOMActivate">
  183. <![CDATA[
  184. fExeCancel();
  185. ]]>
  186. </script>
  187. </button>
  188. </group>
  189. </xhtml:body>
  190. </xhtml:html>