SPLMR90200_미생물소견등록.xrw 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLMR90200_소견등록.xrw
  4. * 설 명 : 환자특이사항 관리
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 조철형
  7. * 작 성 일 : 2007.06.22
  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. <cmt>
  20. <testcontcd/>
  21. <testcont/>
  22. <cmtrsltstat/>
  23. <bcno/>
  24. <sectcd/>
  25. <tsectcd/>
  26. <testcontcdnm/>
  27. </cmt>
  28. </main>
  29. <send>
  30. <data1/>
  31. <codeflag/>
  32. </send>
  33. <init>
  34. </init>
  35. <hidden>
  36. <add>1</add>
  37. <newline>1</newline>
  38. <refflag>
  39. <searchtext/>
  40. <searchflag>1</searchflag>
  41. <testlrgkind>M</testlrgkind>
  42. <rsltstat/>
  43. <bcno/>
  44. <testcont/>
  45. <testcontcd/>
  46. <p_isedit/>
  47. </refflag>
  48. </hidden>
  49. </root>
  50. </instance>
  51. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  52. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  53. <script src="../../../com/commonweb/js/stringHelper.js" type="javascript"/>
  54. <script src="../../../com/commonweb/js/numericHelper.js" type="javascript"/>
  55. <script src="../../../lis/commonweb/js/LLZ001.js" type="javascript"/>
  56. <script ev:event="xforms-ready" type="javascript">
  57. <![CDATA[
  58. init();
  59. ]]>
  60. </script>
  61. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  62. </model>
  63. <script type="javascript">
  64. <![CDATA[
  65. function init(){
  66. var vIsedit = opener.model.getValue("/root/hidden/refflag/p_isedit");
  67. var vCmtpcd = opener.model.getValue("/root/main/TestInfo/getSpcInfo/testcontcd");
  68. var vCmtp = opener.model.getValue("/root/main/TestInfo/getSpcInfo/testcont");
  69. var vCmtprstflag = opener.model.getValue("/root/main/TestInfo/getSpcInfo/cmtrsltstat");
  70. var vBcno = opener.model.getValue("/root/main/TestInfo/getSpcInfo/bcno");
  71. var vSectcd = opener.model.getValue("/root/main/TestInfo/getSpcInfo/sectcd");
  72. var vTsectcd = opener.model.getValue("/root/main/TestInfo/getSpcInfo/tsectcd");
  73. model.setvalue("/root/hidden/refflag/p_isedit", vIsedit);
  74. model.setvalue("/root/main/cmt/testcontcd","");
  75. model.setvalue("/root/main/cmt/testcont", vCmtp);
  76. model.setvalue("/root/main/cmt/cmtrsltstat", vCmtprstflag);
  77. model.setvalue("/root/main/cmt/bcno",vBcno);
  78. model.setvalue("/root/main/cmt/sectcd",vSectcd);
  79. model.setvalue("/root/main/cmt/tsectcd", vTsectcd);
  80. model.setvalue("/root/hidden/add", "1");
  81. model.setvalue("/root/hidden/newline", "1");
  82. fBaseInfoRef("0210|");
  83. combo1.choices.itemset.attribute("nodeset")="/root/init/LB0210[cd='00' or (etc01='" + "M" + "'and etc02='" + vTsectcd + "')]" ;
  84. model.refresh();
  85. }
  86. function fCmtCombo(){
  87. var curCmptcd = model.getValue("/root/main/cmt/testcontcd");
  88. var vSectcd = model.getValue("/root/main/cmt/sectcd");
  89. var vTsectcd = model.getValue("/root/main/cmt/tsectcd");
  90. //alert(curCmptcd);
  91. //alert(vSectcd);
  92. //alert(vTsectcd);
  93. //var cmtcont = model.getValue("/root/Init/LB0210[cd='" + s + "' and etc01='" + vSectcd + "' and etc02='" + vTsectcd + "']/etc03");
  94. var newCmt = model.getValue("/root/init/LB0210[cd='" + curCmptcd + "' and etc01='" + vSectcd + "' and etc02='" + vTsectcd + "']/etc03");
  95. //var cmtcont = "";
  96. //alert(newCmt);
  97. if (model.getValue("/root/hidden/add") == "1") {
  98. var crlf = (model.getValue("/root/hidden/newline") == "1") ? "\n" : "";
  99. model.setvalue("/root/main/cmt/testcont", model.getValue("/root/main/cmt/testcont") + crlf + newCmt);
  100. } else {
  101. model.setvalue("/root/main/cmt/testcont", newCmt);
  102. }
  103. model.refresh();
  104. fCMT_SetEditFlag()
  105. }
  106. // 입력버튼 클릭
  107. function fSelect_Click() {
  108. var vIsedit = model.getValue("/root/hidden/refflag/p_isedit");
  109. var vCmtpcd = model.getValue("/root/main/cmt/testcontcd");
  110. var vCmtp = model.getValue("/root/main/cmt/testcont");
  111. opener.model.setvalue("/root/hidden/refflag/p_isedit", vIsedit);
  112. opener.model.setvalue("/root/main/TestInfo/getSpcInfo/testcontcd", vCmtpcd);
  113. opener.model.setvalue("/root/main/TestInfo/getSpcInfo/testcont", vCmtp);
  114. window.close();
  115. }
  116. function fCMT_SetEditFlag() {
  117. model.setvalue("/root/hidden/refflag/p_isedit", "true");
  118. }
  119. function fCmtFind(){
  120. if (event.keyCode == 13) {
  121. var s = model.getValue("/root/main/cmt/testcontcd");
  122. var vSectcd = model.getValue("/root/main/cmt/sectcd");
  123. var vTsectcd = model.getValue("/root/main/cmt/tsectcd");
  124. var cmtcont = "";//model.getValue("/root/Inita/LB0210[cd='" + s + "' and etc01='" + vSectcd + "' and etc02='" + vTsectcd + "']/etc03");
  125. if (cmtcont == "") {
  126. model.setvalue("/root/MainData/cmtpcd", "-");
  127. }
  128. fCmtCombo();
  129. }
  130. }
  131. ]]>
  132. </script>
  133. </xhtml:head>
  134. <xhtml:body pagewidth="440" pageheight="300" guideline="1,1194;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  135. <group id="group1" style="left:0px; top:0px; width:415px; height:275px; ">
  136. <caption id="caption2" class="tit_2" style="left:5px; top:11px; width:100px; height:14px; ">소견등록</caption>
  137. <caption id="caption3" class="cell_1" style="left:0px; top:31px; width:72px; height:23px; vertical-align:middle; ">특이사항</caption>
  138. <button id="button9" class="btn4_letter2" style="left:359px; top:250px; width:56px; height:22px; ">
  139. <caption>취소</caption>
  140. <script ev:event="onclick" type="javascript">
  141. <![CDATA[
  142. window.close();
  143. ]]>
  144. </script>
  145. </button>
  146. <line id="line2" class="line_1" style="x1:0px; y1:26px; x2:415px; y2:26px; "/>
  147. <input id="input2" ref="/root/main/cmt/testcontcdnm" class="input_default" visibility="hidden" style="left:90px; top:2px; width:55px; height:19px; ">
  148. <script ev:event="onkeypress" type="javascript">
  149. <![CDATA[
  150. fCmtFind();
  151. ]]>
  152. </script>
  153. </input>
  154. <caption id="caption4" class="cell_1" style="left:0px; top:31px; width:72px; height:23px; ">소견코드</caption>
  155. <line id="line4" class="line_3" style="x1:0px; y1:53px; x2:415px; y2:53px; "/>
  156. <select1 id="combo1" ref="/root/main/cmt/testcontcd" class="combo_default" appearance="minimal" style="left:75px; top:32px; width:340px; height:19px; ">
  157. <choices>
  158. <itemset nodeset="/root/init/LB0210">
  159. <label ref="nm"/>
  160. <value ref="cd"/>
  161. </itemset>
  162. </choices>
  163. <script ev:event="xforms-select" type="javascript">
  164. <![CDATA[
  165. fCmtCombo();
  166. ]]>
  167. </script>
  168. </select1>
  169. <button id="btn_cfm" class="btn4_letter2" style="left:301px; top:250px; width:56px; height:22px; ">
  170. <caption>확인</caption>
  171. <script ev:event="onclick" type="javascript">
  172. <![CDATA[
  173. fSelect_Click();
  174. ]]>
  175. </script>
  176. </button>
  177. <select id="checkbox1" ref="/root/hidden/add" visibility="hidden" overflow="visible" appearance="full" cols="2" style="left:299px; top:10px; width:50px; height:13px; border-style:none; ">
  178. <choices>
  179. <item>
  180. <label>추가</label>
  181. <value>1</value>
  182. </item>
  183. </choices>
  184. </select>
  185. <textarea id="textarea2" ref="/root/main/cmt/testcont" style="left:0px; top:58px; width:415px; height:187px; ">
  186. <script ev:event="xforms-value-changed" type="javascript">
  187. <![CDATA[
  188. fCMT_SetEditFlag();
  189. ]]>
  190. </script>
  191. </textarea>
  192. <select id="checkbox2" ref="/root/hidden/newline" visibility="hidden" overflow="visible" appearance="full" cols="2" style="left:350px; top:10px; width:60px; height:13px; border-style:none; ">
  193. <choices>
  194. <item>
  195. <label>다음줄</label>
  196. <value>1</value>
  197. </item>
  198. </choices>
  199. </select>
  200. </group>
  201. </xhtml:body>
  202. </xhtml:html>