SPLMP90100_결핵균검사의뢰항목입력.xrw 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>결핵균검사의뢰항목입력</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <reqitem>
  11. <bcno/>
  12. <reqbcno/>
  13. <tclsnm/>
  14. <reqkind/>
  15. </reqitem>
  16. <patinfo>
  17. <pathngnm/>
  18. <patsex/>
  19. <patage/>
  20. <roomcd/>
  21. <orddeptnm/>
  22. <orddrnm/>
  23. </patinfo>
  24. </main>
  25. <send>
  26. <req>
  27. <bcno/>
  28. <tclscd/>
  29. <spccd/>
  30. <testcd/>
  31. <rsltseq/>
  32. <reqkind/>
  33. <reqbcno/>
  34. <reqspcacptdt/>
  35. </req>
  36. <searchbcno/>
  37. <searchpid/>
  38. <searchspccd/>
  39. <acptset>
  40. <bcno/>
  41. <userid/>
  42. <instcd/>
  43. </acptset>
  44. </send>
  45. <temp>
  46. <tbtestrsltinfo>
  47. <spcacptdt/>
  48. <pid/>
  49. <pathngnm/>
  50. <bcno/>
  51. <rsltrgstdt/>
  52. <reptrslt/>
  53. <spcnm/>
  54. <reqdt/>
  55. <reqkind/>
  56. <tclscd/>
  57. <testcd/>
  58. <rsltseq/>
  59. <spccd/>
  60. <tclsnm/>
  61. <orddrnm/>
  62. <orddeptnm/>
  63. <roomcd/>
  64. <patsex/>
  65. <patage/>
  66. </tbtestrsltinfo>
  67. <reqbcnoinfo>
  68. <bcno/>
  69. <tclscd/>
  70. </reqbcnoinfo>
  71. </temp>
  72. </root>
  73. </instance>
  74. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  76. <script type="javascript" ev:event="xforms-ready">
  77. <![CDATA[
  78. //model.setValue("/root/main/reqitem/testcd", model.getValue("/root/temp/tbtestrsltinfo/testcd"));
  79. model.setValue("/root/main/reqitem/bcno", model.getValue("/root/temp/tbtestrsltinfo/bcno"));
  80. //model.setValue("/root/main/reqitem/tclsnm", model.getValue("/root/temp/tbtestrsltinfo/tclsnm"));
  81. model.setValue("/root/main/patinfo/pathngnm", model.getValue("/root/temp/tbtestrsltinfo/pathngnm"));
  82. model.setValue("/root/main/patinfo/patsex", model.getValue("/root/temp/tbtestrsltinfo/sex"));
  83. model.setValue("/root/main/patinfo/patage", model.getValue("/root/temp/tbtestrsltinfo/patage"));
  84. model.setValue("/root/main/patinfo/roomcd", model.getValue("/root/temp/tbtestrsltinfo/roomcd"));
  85. model.setValue("/root/main/patinfo/orddeptnm", model.getValue("/root/temp/tbtestrsltinfo/orddeptnm"));
  86. model.setValue("/root/main/patinfo/orddrnm", model.getValue("/root/temp/tbtestrsltinfo/orddrnm"));
  87. model.refresh();
  88. ]]>
  89. </script>
  90. <submission id="TXLMP90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/temp/item"/>
  91. <submission id="TRLMP90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/reqbcnoinfo"/>
  92. <submission id="TXLII00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/acptset" replace="instance"/>
  93. </model>
  94. <script type="javascript">
  95. <![CDATA[
  96. function fExeSave() {
  97. if(model.getValue("/root/main/reqitem/reqkind") == ""){
  98. alert("외부의뢰 항목이 입력되지 않았습니다.");
  99. return;
  100. }else{
  101. model.setValue("/root/send/req/bcno", model.getValue("/root/temp/tbtestrsltinfo/bcno"));
  102. model.setValue("/root/send/req/reqbcno", model.getValue("/root/main/reqitem/reqbcno"));
  103. model.setValue("/root/send/req/spccd", model.getValue("/root/temp/tbtestrsltinfo/spccd"));
  104. model.setValue("/root/send/req/tclscd", model.getValue("/root/temp/tbtestrsltinfo/tclscd"));
  105. model.setValue("/root/send/req/testcd", model.getValue("/root/main/reqitem/reqkind"));
  106. model.setValue("/root/send/req/rsltseq", "1");
  107. model.setValue("/root/send/req/reqkind", model.getValue("/root/main/reqitem/reqkind"));
  108. model.setValue("/root/send/req/reqspcacptdt", model.getValue("/root/temp/reqbcnoinfo/spcacptdt"));
  109. submit("TXLMP90101");
  110. }
  111. }
  112. function fKeyEvent(){
  113. if(event.keyCode == "13"){
  114. model.setvalue("/root/main/reqitem/reqbcno", iptSearch.currentText);
  115. model.refresh();
  116. fOnclickBtnRef();
  117. iptSearch.selBegin = 0;
  118. iptSearch.selEnd = iptSearch.currentText.length;
  119. model.setFocus("iptSearch");
  120. }
  121. }
  122. function fOnclickBtnRef(){
  123. model.setvalue("/root/send/acptset/instcd", getUserInfo("dutplceinstcd"));
  124. model.setvalue("/root/send/acptset/bcno", model.getValue("/root/main/reqitem/reqbcno"));
  125. model.setvalue("/root/send/acptset/userid", getUserInfo("userid"));
  126. //alert(model.getvalue("/root/send/acptset/instcd"));
  127. //alert(model.getvalue("/root/send/acptset/bcno"));
  128. //alert(model.getvalue("/root/send/acptset/userid"));
  129. submit("TXLII00107");
  130. model.setvalue("/root/send/searchbcno", model.getValue("/root/main/reqitem/reqbcno"));
  131. model.setvalue("/root/send/searchpid", model.getValue("/root/temp/tbtestrsltinfo/pid"));
  132. model.setvalue("/root/send/searchspccd", model.getValue("/root/temp/tbtestrsltinfo/spccd"));
  133. submit("TRLMP90101");
  134. if(model.getValue("/root/temp/reqbcnoinfo/tclscd") == ""){
  135. alert("의뢰할 수 없는 바코드입니다.");
  136. }else{
  137. model.setValue("/root/main/reqitem/tclsnm", model.getValue("/root/temp/reqbcnoinfo/tclsnm"));
  138. var cv = model.getValue("/root/temp/reqbcnoinfo/tclscd");
  139. //var cvr = cv.substring(0, cv.length -1);
  140. //checkbox1.value = cvr;
  141. checkbox1.value = cv;
  142. checkbox1.refresh();
  143. }
  144. }
  145. ]]>
  146. </script>
  147. </xhtml:head>
  148. <xhtml:body pagewidth="415" pageheight="225" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  149. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:395px; height:185px; ">
  150. <line id="line1" class="line_1" style="x1:5px; y1:25px; x2:390px; y2:25px; "/>
  151. <caption id="cpt_title" class="tit_2" style="left:10px; top:10px; width:170px; height:13px; ">의뢰항목</caption>
  152. <input id="ipt_wbc" ref="/root/main/reqitem/bcno" class="input_default" navindex="2" style="left:105px; top:31px; width:285px; height:19px; "/>
  153. <input id="input8" ref="/root/main/reqitem/tclsnm" class="input_default" navindex="4" style="left:105px; top:79px; width:285px; height:19px; "/>
  154. <line id="line2" class="line_2" style="x1:5px; y1:52px; x2:390px; y2:52px; "/>
  155. <line id="line3" class="line_2" style="x1:5px; y1:76px; x2:390px; y2:76px; "/>
  156. <line id="line4" class="line_2" style="x1:5px; y1:100px; x2:390px; y2:100px; "/>
  157. <line id="line5" class="line_2" style="x1:5px; y1:124px; x2:205px; y2:124px; "/>
  158. <caption id="cpt_prc" class="cell_1" style="left:5px; top:102px; width:97px; height:23px; ">의뢰항목</caption>
  159. <caption id="cpt_hgb" class="cell_1" style="left:5px; top:54px; width:97px; height:23px; ">외부의뢰바코드</caption>
  160. <caption id="cpt_wbc" class="cell_1" style="left:5px; top:30px; width:97px; height:23px; ">바코드번호</caption>
  161. <caption id="cpt_plt" class="cell_1" style="left:5px; top:78px; width:97px; height:23px; ">처방명칭</caption>
  162. <line id="line7" class="line_3" style="x1:5px; y1:124px; x2:390px; y2:124px; "/>
  163. <select id="checkbox1" ref="/root/main/reqitem/reqkind" disabled="true" navindex="1" overflow="visible" appearance="full" cellspacing="10" cols="4" sep="," style="left:105px; top:105px; width:285px; height:20px; border-style:none; ">
  164. <choices>
  165. <item>
  166. <label>LMA107</label>
  167. <value>LMA107</value>
  168. </item>
  169. <item>
  170. <label>LMA001</label>
  171. <value>LMA001</value>
  172. </item>
  173. <item>
  174. <label>LPD193</label>
  175. <value>LPD193</value>
  176. </item>
  177. <item>
  178. <label>LPD011</label>
  179. <value>LPD011</value>
  180. </item>
  181. </choices>
  182. <script type="javascript" ev:event="xforms-value-changed">
  183. <![CDATA[
  184. alert(checkbox1.value);
  185. ]]>
  186. </script>
  187. </select>
  188. <datagrid id="grd_patinfo" nodeset="/root/main/patinfo" caption="환자명^성별^나이^병실^처방과^처방의" colsep="^" colwidth="93, 37, 37, 56, 63, 93" extendlastcol="noscroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:130px; width:385px; height:48px; ">
  189. <col ref="pathngnm"/>
  190. <col ref="patsex"/>
  191. <col ref="patage"/>
  192. <col ref="roomcd"/>
  193. <col ref="orddeptnm"/>
  194. <col ref="orddrnm"/>
  195. </datagrid>
  196. <input id="iptSearch" ref="/root/main/reqitem/reqbcno" class="input_button" navindex="1" imemode="alpha" inputtype="button" style="left:105px; top:55px; width:285px; height:19px; ">
  197. <script type="javascript" ev:event="onbuttonclick">
  198. <![CDATA[
  199. fOnclickBtnRef();
  200. ]]>
  201. </script>
  202. <script type="javascript" ev:event="onkeyup">
  203. <![CDATA[
  204. fKeyEvent();
  205. ]]>
  206. </script>
  207. </input>
  208. </group>
  209. <group id="grp_btn" scroll="auto" style="left:0px; top:185px; width:395px; height:27px; ">
  210. <button id="btn_confirm" class="btn4_letter2" navindex="5" style="left:275px; top:3px; width:56px; height:22px; ">
  211. <caption>확인</caption>
  212. <script type="javascript" ev:event="onclick">
  213. <![CDATA[
  214. fExeSave();
  215. ]]>
  216. </script>
  217. <close ev:event="onclick"/>
  218. </button>
  219. <button id="btn_cancel" class="btn4_letter2" navindex="6" style="left:334px; top:3px; width:56px; height:22px; ">
  220. <caption>취소</caption>
  221. <close ev:event="DOMActivate"/>
  222. </button>
  223. </group>
  224. </xhtml:body>
  225. </xhtml:html>