SMLLR90200_특이결과등록.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLR90100.xrw
  4. * 설 명 : 특이결과등록
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 조철형
  7. * 작 성 일 : 2007.07.02
  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. <spcfrsltlist>
  20. <testcd/>
  21. <spccd/>
  22. <rsltstat/>
  23. <tclsscrnnm/>
  24. <reptrslt/>
  25. <judgmark/>
  26. <panicmark/>
  27. <deltamark/>
  28. <criticalmark/>
  29. <alertmark/>
  30. <patnm/>
  31. <pid/>
  32. <roomcd/>
  33. <orddeptnm/>
  34. <chk/>
  35. <dt/>
  36. <tclscd/>
  37. <bcno/>
  38. <rec/>
  39. </spcfrsltlist>
  40. <getuserAnm>
  41. <acceptnm/>
  42. </getuserAnm>
  43. <getUsernm>
  44. <usernm/>
  45. </getUsernm>
  46. <getRecnm>
  47. <rec/>
  48. </getRecnm>
  49. </main>
  50. <send>
  51. <bcno/>
  52. <data1/>
  53. <data2/>
  54. <acceptid/>
  55. </send>
  56. <init>
  57. </init>
  58. <hidden>
  59. <refparam>
  60. <rcpnm/>
  61. <rmk/>
  62. <bcno/>
  63. <dt/>
  64. <rcpid/>
  65. <notiid/>
  66. <notinm/>
  67. <recnm/>
  68. </refparam>
  69. </hidden>
  70. </root>
  71. </instance>
  72. <script type="javascript" ev:event="xforms-model-construct-done">
  73. <![CDATA[
  74. if(getPatientInfoDetail("orddrnm") != "") {
  75. model.setValue("/root/main/getRecnm/rec", getPatientInfoDetail("orddrnm"));
  76. model.setValue("/root/hidden/refparam/recnm", model.getValue("/root/main/getRecnm/rec"));
  77. //model.setValue("/root/main/getuserAnm/acceptnm", getPatientInfoDetail("orddrnm"));
  78. //model.setValue("/root/hidden/refparam/rcpnm", model.getValue("/root/main/getuserAnm/acceptnm"));
  79. }
  80. model.setvalue("/root/send/bcno", model.getvalue("/root/hidden/refparam/bcno"));
  81. submit("TRLLR90201");
  82. model.refresh();
  83. ]]>
  84. </script>
  85. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  86. <submission id="TRLLR90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spcfrsltlist"/>
  87. <submission id="TXLLR90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  88. <submission id="TRLZZ00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getUsernm"/>
  89. <submission id="TRLBT10404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getuserAnm"/>
  90. </model>
  91. <script type="javascript">
  92. <![CDATA[
  93. function fExeCancel(){
  94. window.close();
  95. }
  96. function fSpclResultSave(){
  97. if(model.getvalue("/root/main/getUsernm/usernm") == ""){
  98. messageBox("통보자를", "C001");
  99. return;
  100. }
  101. if(model.getvalue("/root/hidden/refparam/recnm") == ""){
  102. messageBox("수신인을", "C001");
  103. return;
  104. }
  105. var isSpcl = false;
  106. datagrid1.clearStatus();
  107. for(i=1;i< datagrid1.rows ; i++){
  108. if(model.getvalue("/root/main/spcfrsltlist["+i+"]/chk") == "true"){
  109. datagrid1.addStatus(i , "insert");
  110. isSpcl = true;
  111. }
  112. }
  113. if(isSpcl){
  114. model.setvalue("/root/hidden/refparam/dt" , model.getvalue("/root/main/spcfrsltlist/dt"));
  115. model.setValue("/root/hidden/refparam/notinm", model.getValue("/root/main/getUsernm/usernm"));
  116. model.setValue("/root/hidden/refparam/rcpnm", model.getValue("/root/main/getuserAnm/acceptnm"));
  117. if(model.getValue("/root/hidden/refparam/rcpid") == "") {
  118. model.setValue("/root/hidden/refparam/rcpid", "-");
  119. }
  120. if(model.getValue("/root/hidden/refparam/notiid") == "") {
  121. model.setValue("/root/hidden/refparam/notiid", "-");
  122. }
  123. model.copyNode("/root/send/data1" , "/root/hidden/refparam");
  124. model.setvalue("/root/send/data2" , datagrid1.getUpdateData());
  125. if(submit("TXLLR90201")) {
  126. window.close();
  127. }
  128. }
  129. }
  130. function fKeyEvent(){
  131. if(event.keyCode == "13"){
  132. // 검사자 바코드 리딩시
  133. if(event.target == "ipt_repid"){
  134. model.setvalue("/root/hidden/refparam/rcpid", ipt_repid.currentText);
  135. fGetusernm("R");
  136. ipt_repid.selBegin = 0;
  137. ipt_repid.selEnd = ipt_repid.currentText.length;
  138. }
  139. if(event.target == "ipt_notiid"){
  140. model.setvalue("/root/hidden/refparam/notiid", ipt_notiid.currentText);
  141. fGetusernm("N");
  142. ipt_notiid.selBegin = 0;
  143. ipt_notiid.selEnd = ipt_notiid.currentText.length;
  144. }
  145. }
  146. }
  147. function fGetusernm(flag){
  148. if(flag == "R") {
  149. if(model.getValue("/root/hidden/refparam/rcpid")==""){
  150. messageBox("피통보자ID를", "C001");
  151. return;
  152. }
  153. model.makeValue("/root/send/acceptid", model.getvalue("/root/hidden/refparam/rcpid"));
  154. submit("TRLBT10404");
  155. // model.setValue("/root/hidden/refparam/rcpnm", model.getValue("/root/main/getuserAnm/acceptnm"));
  156. ipt_repid.refresh();
  157. model.setFocus("textarea1");
  158. } else if(flag == "N") {
  159. if(model.getValue("/root/hidden/refparam/notiid")==""){
  160. messageBox("통보자ID를", "C001");
  161. return;
  162. }
  163. model.makeValue("/root/send/userid", model.getvalue("/root/hidden/refparam/notiid"));
  164. submit("TRLZZ00104");
  165. ipt_notiid.refresh();
  166. model.setFocus("ipt_repid");
  167. }
  168. //model.makeValue("/root/send/userid", model.getValue("/root/hidden/refparam/rcpid"));
  169. //submit("TRLZZ00104");
  170. //if(model.getValue("/root/main/getUsernm/usernm")!=""){
  171. // model.setValue("/root/hidden/refparam/rcpnm", model.getValue("/root/main/getUsernm/usernm")) ;
  172. //}
  173. }
  174. ]]>
  175. </script>
  176. </xhtml:head>
  177. <xhtml:body pagewidth="590" pageheight="340" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  178. <group id="group1" style="left:0px; top:0px; width:571px; height:292px; ">
  179. <caption id="caption1" class="tit_2" style="left:210px; top:11px; width:95px; height:13px; ">특이결과내역</caption>
  180. <caption id="caption2" class="tit_2" style="left:5px; top:11px; width:115px; height:13px; ">환자정보</caption>
  181. <line id="line1" class="line_1" style="x1:205px; y1:26px; x2:570px; y2:26px; "/>
  182. <line id="line2" class="line_1" style="x1:0px; y1:26px; x2:200; y2:26px; "/>
  183. <datagrid id="datagrid1" nodeset="/root/main/spcfrsltlist" caption="^검사항목명^결과^N^P^D^C^A^testcd^spccd^tclscd^bcno" colsep="^" colwidth="19, 154, 50, 20, 20, 20, 20, 20, 100, 100, 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:205px; top:31px; width:365px; height:257px; ">
  184. <col checkvalue="true,false" ref="chk" type="checkbox"/>
  185. <col ref="tclsscrnnm"/>
  186. <col ref="reptrslt"/>
  187. <col ref="judgmark"/>
  188. <col ref="panicmark"/>
  189. <col ref="deltamark"/>
  190. <col ref="criticalmark"/>
  191. <col ref="alertmark"/>
  192. <col ref="testcd"/>
  193. <col ref="spccd"/>
  194. <col ref="tclscd"/>
  195. <col ref="bcno"/>
  196. </datagrid>
  197. <caption id="caption5" class="cell_1" style="left:0px; top:-140px; width:72px; height:23px; vertical-align:middle; ">환자명</caption>
  198. <output id="output1" ref="/root/main/spcfrsltlist/patnm" class="output_fix" style="left:75px; top:32px; width:125px; height:19px; "/>
  199. <output id="output2" ref="/root/main/spcfrsltlist/pid" class="output_fix" style="left:75px; top:56px; width:125px; height:19px; "/>
  200. <output id="output3" ref="/root/main/spcfrsltlist/orddeptnm" class="output_fix" style="left:75px; top:80px; width:125px; height:19px; "/>
  201. <output id="output4" ref="/root/main/spcfrsltlist/roomcd" class="output_fix" style="left:75px; top:104px; width:125px; height:19px; "/>
  202. <output id="output5" ref="/root/main/spcfrsltlist/dt" class="output_fix" format="yyyy-mm-dd hh:nn" style="left:75px; top:199px; width:125px; height:19px; "/>
  203. <line id="line4" class="line_2" style="x1:0px; y1:53px; x2:200px; y2:53px; "/>
  204. <line id="line5" class="line_2" style="x1:0px; y1:77px; x2:200px; y2:77px; "/>
  205. <line id="line6" class="line_2" style="x1:0px; y1:101px; x2:200px; y2:101px; "/>
  206. <line id="line7" class="line_2" style="x1:0px; y1:125px; x2:200px; y2:125px; "/>
  207. <line id="line8" class="line_2" style="x1:0px; y1:149px; x2:200px; y2:149px; "/>
  208. <line id="line9" class="line_3" style="x1:0px; y1:287px; x2:200px; y2:287px; "/>
  209. <textarea id="textarea1" ref="/root/hidden/refparam/rmk" style="left:75px; top:224px; width:125px; height:61px; "/>
  210. <caption id="caption10" class="cell_1" style="left:0px; top:223px; width:72px; height:63px; vertical-align:middle; ">조치사항</caption>
  211. <caption id="caption3" class="cell_1" style="left:0px; top:31px; width:72px; height:23px; vertical-align:middle; ">환자명</caption>
  212. <caption id="caption4" class="cell_1" style="left:0px; top:55px; width:72px; height:23px; vertical-align:middle; ">등록번호</caption>
  213. <caption id="caption6" class="cell_1" style="left:0px; top:79px; width:72px; height:23px; vertical-align:middle; ">진료과</caption>
  214. <caption id="caption7" class="cell_1" style="left:0px; top:103px; width:72px; height:23px; vertical-align:middle; ">병실</caption>
  215. <caption id="caption8" class="cell_1" style="left:0px; top:127px; width:72px; height:23px; vertical-align:middle; ">통보자</caption>
  216. <caption id="caption9" class="cell_1" style="left:0px; top:199px; width:72px; height:23px; vertical-align:middle; ">통보시간</caption>
  217. <line id="line11" class="line_2" style="x1:0px; y1:173px; x2:200px; y2:173px; "/>
  218. <caption id="caption11" class="cell_1" style="left:0px; top:175px; width:72px; height:23px; vertical-align:middle; ">피통보자</caption>
  219. <input id="ipt_repid" ref="/root/hidden/refparam/rcpid" imemode="disabled" _chartype="upper" style="left:75px; top:175px; width:65px; height:19px; ">
  220. <script type="javascript" ev:event="onkeypress">
  221. <![CDATA[
  222. fKeyEvent();
  223. ]]>
  224. </script>
  225. </input>
  226. <input id="ipt_repnm" ref="/root/main/getuserAnm/acceptnm" class="input_essential" style="left:142px; top:175px; width:57px; height:19px; "/>
  227. <input id="ipt_notinm" ref="/root/main/getUsernm/usernm" class="input_essential" style="left:142px; top:128px; width:57px; height:19px; "/>
  228. <input id="ipt_notiid" ref="/root/hidden/refparam/notiid" imemode="disabled" _chartype="upper" style="left:75px; top:128px; width:65px; height:19px; ">
  229. <script type="javascript" ev:event="onkeypress">
  230. <![CDATA[
  231. fKeyEvent();
  232. ]]>
  233. </script>
  234. </input>
  235. <caption id="caption12" class="cell_1" style="left:0px; top:151px; width:72px; height:23px; vertical-align:middle; ">수신인</caption>
  236. <input id="ipt_rec" ref="/root/main/getRecnm/rec" class="input_default" disabled="true" style="left:75px; top:152px; width:124px; height:19px; "/>
  237. </group>
  238. <group id="group2" style="left:0px; top:291px; width:571px; height:27px; ">
  239. <line id="line10" class="line_6" style="x1:0px; y1:0px; x2:570px; y2:0px; "/>
  240. <button id="button4" class="btn4_letter2" style="left:456px; top:5px; width:56px; height:22px; ">
  241. <caption>확인</caption>
  242. <script type="javascript" ev:event="DOMActivate">
  243. <![CDATA[
  244. fSpclResultSave();
  245. ]]>
  246. </script>
  247. </button>
  248. <button id="button9" class="btn4_letter2" style="left:515px; top:5px; width:56px; height:22px; ">
  249. <caption>취소</caption>
  250. <script type="javascript" ev:event="onclick">
  251. <![CDATA[
  252. fExeCancel();
  253. ]]>
  254. </script>
  255. </button>
  256. </group>
  257. </xhtml:body>
  258. </xhtml:html>