SMLRR03000_FISH 결과관리.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" ztype="text/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. </root>
  10. </instance>
  11. </model>
  12. <script type="javascript">
  13. <![CDATA[
  14. //이미지 콤보 박스 조회
  15. function fImgRslt(cmb, cpt, img){
  16. cmb = document.controls.item(cmb);
  17. cpt = document.controls.item(cpt);
  18. fimg = document.controls.item(img);
  19. model.copyNode("/root/send/data1" , "/root/main/testinfo/spcltestinfo");
  20. if(model.getValue("/root/main/testinfo/spcltestinfo/testcd") == "LSI113") { //ld 이미지
  21. submit("TRLRR01501");
  22. model.makeNode("/root/main/imglistld"); //ld history 노드 생성
  23. copyNodeType("/root/main/imglistld", "/root/main/imglist"); //history 이동
  24. model.removenode("/root/main/imglist"); //이전 history 노드 삭제
  25. if(getNodesetCount("/root/main/imglistld/rsltseqno") > 0){ //history가 존재하면 이미지 조회
  26. cmb.value = model.getvalue("/root/main/imglistld/rsltseqno");
  27. fImgRef(img);
  28. fimg.attribute("visibility") = "visible";
  29. cpt.attribute("visibility") = "hidden";
  30. }else { //history가 없으면 no_img 띄움.
  31. fimg.attribute("visibility") = "hidden";
  32. cpt.attribute("visibility") = "visible";
  33. }
  34. } else {
  35. submit("TRLRR01501");
  36. if(getNodesetCount("/root/main/imglist/rsltseqno") > 0){ //history가 존재하면 이미지 조회
  37. cmb.value = model.getvalue("/root/main/imglist/rsltseqno");
  38. fImgRef(img);
  39. fimg.attribute("visibility") = "visible";
  40. cpt.attribute("visibility") = "hidden";
  41. }else { //history가 없으면 no_img 띄움.
  42. fimg.attribute("visibility") = "hidden";
  43. cpt.attribute("visibility") = "visible";
  44. }
  45. }
  46. model.removeNodeset("/root/send/data1");
  47. model.makeNode("/root/send/data1");
  48. model.refresh();
  49. }
  50. //판독예문 조회
  51. function fRsltCode(gridID){
  52. gridObj = document.all(gridID);
  53. model.removeNodeset("/root/main/rsltcode");
  54. model.refresh();
  55. var vTestcd = model.getvalue("/root/main/testinfo/spcltestinfo/testcd");
  56. if(model.getValue("/root/main/rslt/desc/rslt/refflag") == "01") { //Bone Marrow는 콤보
  57. cmb_exmp.choices.itemset.attribute("nodeset") = "/root/init/readrslt[etc03='" + vTestcd + "']";
  58. } else { //나머지는 그리드이므로.
  59. if(gridID != "") { //판독예문 창을 띄어 수정한 후
  60. var cdNodes = instance1.selectNodes("/root/init/readrslt[etc03='" + vTestcd + "']/cd");
  61. var cdNodes2 = instance1.selectNodes("/root/init/readrslt[etc03='" + vTestcd + "']/nm");
  62. var vRstcontLower ="";
  63. var vRstcontUpper = "";
  64. for (i = 1; i <= cdNodes.length; i++) {
  65. var cd = cdNodes.item(i - 1).text;
  66. var nm = cdNodes2.item(i - 1).text;
  67. gridObj.addRow(false);
  68. model.setvalue("/root/main/rsltcode["+i+"]/cd" , cd);
  69. model.setvalue("/root/main/rsltcode["+i+"]/nm" , nm);
  70. }
  71. if(cdNodes.length > 0)
  72. model.refresh();
  73. } else { //특수검사 조회시에는 그리드아이디를 보내지 않는다. 어느 검사인지 알수 없기에..
  74. var cdNodes = instance1.selectNodes("/root/init/readrslt[etc03='" + vTestcd + "']/cd");
  75. var cdNodes2 = instance1.selectNodes("/root/init/readrslt[etc03='" + vTestcd + "']/nm");
  76. var vRstcontLower ="";
  77. var vRstcontUpper = "";
  78. for (i = 1; i <= cdNodes.length; i++) {
  79. var cd = cdNodes.item(i - 1).text;
  80. var nm = cdNodes2.item(i - 1).text;
  81. model.makeValue("/root/main/rsltcode["+ i +"]/cd" , cd);
  82. model.makeValue("/root/main/rsltcode["+ i +"]/nm" , nm);
  83. }
  84. if(cdNodes.length > 0)
  85. model.refresh();
  86. }
  87. }
  88. }
  89. ]]>
  90. </script>
  91. </xhtml:head>
  92. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  93. <caption id="caption167" class="tit_2" style="left:205px; top:67px; width:85px; height:13px; ">처방명</caption>
  94. <caption id="captionProbe" class="tit_2" style="left:5px; top:15px; width:115px; height:13px; ">Probe</caption>
  95. <caption id="caption157" class="tit_2" style="left:5px; top:42px; width:115px; height:14px; ">사용하는 시약</caption>
  96. <switch id="switch6" style="left:5px; top:85px; width:1150px; height:555px; ">
  97. <case id="fish_desc" selected="true">
  98. <caption id="caption158" class="tit_2" style="left:10px; top:10px; width:115px; height:14px; ">검사 결과</caption>
  99. <caption id="caption159" class="tit_2" style="left:565px; top:10px; width:192px; height:13px; ">판독예문</caption>
  100. <select id="checkbox16" ref="/root/hidden/readexmpadd" overflow="visible" appearance="full" style="left:1030px; top:10px; width:50px; height:20px; border-style:none; ">
  101. <choices>
  102. <item>
  103. <label>추가</label>
  104. <value>Y</value>
  105. </item>
  106. </choices>
  107. </select>
  108. <button id="button6" class="btn2_letter4" style="left:1080px; top:10px; width:64px; height:19px; ">
  109. <caption>판독예문</caption>
  110. <script type="javascript" ev:event="DOMActivate">
  111. <![CDATA[
  112. modal("SMLLF02000 ","","","","","/root/main/testinfo/spcltestinfo/testcd","/root/hidden/testcd");
  113. submit("TRLRR00402");
  114. fRsltCode("grd_fishld_rsltcode");
  115. model.refresh();
  116. ]]>
  117. </script>
  118. </button>
  119. <datagrid id="grd_fishld_rsltcode" nodeset="/root/main/rsltcode" caption="판독예문코드^판독예문내용" colsep="^" colwidth="115, 426" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:560px; top:29px; width:585px; height:123px; ">
  120. <col ref="cd"/>
  121. <col ref="nm"/>
  122. <script type="javascript" ev:event="ondblclick">
  123. <![CDATA[
  124. fRsltCodeDBClick("grd_fishld_rsltcode");
  125. ]]>
  126. </script>
  127. </datagrid>
  128. <caption id="caption160" class="tit_2" style="left:564px; top:154px; width:115px; height:13px; ">판독결과</caption>
  129. <textarea id="tar_fishld_weekmedi" ref="/root/main/rslt/desc/rslt/readrslt" style="left:560px; top:168px; width:585px; height:123px; "/>
  130. <caption id="caption161" class="tit_2" style="left:560px; top:305px; width:115px; height:13px; ">Interpretation</caption>
  131. <textarea id="tar_fish_itpt" ref="/root/main/rslt/desc/rslt/inter" style="left:560px; top:320px; width:585px; height:105px; "/>
  132. <line id="line102" class="line_1" style="x1:560px; y1:316px; x2:1145px; y2:316px; "/>
  133. <line id="line101" class="line_1" style="x1:560px; y1:165px; x2:1145px; y2:165px; "/>
  134. <line id="line103" class="line_1" style="x1:560px; y1:25px; x2:1145px; y2:25px; "/>
  135. <line id="line104" class="line_1" style="x1:21px; y1:25px; x2:547px; y2:25px; "/>
  136. <caption id="caption162" class="tit_2" style="left:560px; top:430px; width:158px; height:13px; ">Comments</caption>
  137. <line id="line105" class="line_1" style="x1:560px; y1:441px; x2:1145px; y2:441px; "/>
  138. <textarea id="textarea1" ref="/root/main/rslt/desc/rslt/comments" style="left:560px; top:445px; width:585px; height:100px; "/>
  139. <datagrid id="grd_fishrslt2" nodeset="/root/main/rslt/desc/rslt/fishrslt" visibility="hidden" caption="검사명^Control^MMC" colsep="^" colwidth="300, 113,113" mergecellsfixedrows="bycolrec" rowsep="|" style="left:20px; top:25px; width:526px; height:516px; ">
  140. <col ref="basecdnm"/>
  141. <col ref="reptrslt1" type="input"/>
  142. <col ref="reptrslt2" type="input"/>
  143. </datagrid>
  144. <datagrid id="grd_fishrslt1" nodeset="/root/main/rslt/desc/rslt/fishrslt" visibility="visible" caption="검사명^결과" colsep="^" colwidth="300, 226" mergecellsfixedrows="bycolrec" rowsep="|" style="left:20px; top:25px; width:526px; height:516px; ">
  145. <col ref="basecdnm"/>
  146. <col ref="reptrslt" type="input"/>
  147. </datagrid>
  148. </case>
  149. <case id="fish_img">
  150. <caption id="caption164" class="cell_1" style="left:5px; top:2px; width:80px; height:23px; vertical-align:middle; ">History</caption>
  151. <caption id="cpt_fish_noimg" class="no_image" style="left:5px; top:23px; width:225px; height:240px; vertical-align:middle; background-image:../../../com/commonweb/images/no_image.gif; "/>
  152. <button id="button8" class="btn2_letter7" style="left:210px; top:4px; width:97px; height:19px; ">
  153. <caption>이미지결과등록</caption>
  154. <script type="javascript" ev:event="DOMActivate">
  155. <![CDATA[
  156. if(model.getvalue("/root/main/testinfo/spcltestinfo/bcno") != ""){
  157. modal("SMLRR01500","", "", "","", "/root/main/testinfo/spcltestinfo", "/root/hidden/spcltestinfo");
  158. fImgRslt("cmb_fish_seq", "cpt_fish_noimg", "img_fish");
  159. }
  160. ]]>
  161. </script>
  162. </button>
  163. <img id="img_fish" ref="/root/main/view/imgrslt" src="../images/결과이미지.gif" style="left:5px; top:23px; width:775px; height:587px; background-stretch:stretch; "/>
  164. <img id="img5" visibility="hidden" style="left:305px; top:45px; width:365px; height:148px; background-color:#ff6600; background-stretch:stretch; "/>
  165. <select1 id="cmb_fish_seq" ref="/root/hidden/rsltseqno" class="combo_default" appearance="minimal" style="left:88px; top:4px; width:120px; height:19px; ">
  166. <choices>
  167. <itemset nodeset="/root/main/imglist">
  168. <label ref="lastupdtrdt"/>
  169. <value ref="rsltseqno"/>
  170. </itemset>
  171. </choices>
  172. <script type="javascript" ev:event="xforms-value-changed">
  173. <![CDATA[
  174. fImgRef("img_fish");
  175. ]]>
  176. </script>
  177. </select1>
  178. </case>
  179. </switch>
  180. <button id="btn_fish_desc" class="btn_sw" group="tab" selected="true" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:5px; top:65px; width:89px; height:22px; ">
  181. <caption>판독결과</caption>
  182. <script type="javascript" ev:event="DOMActivate">
  183. <![CDATA[
  184. model.toggle("fish_desc");
  185. ]]>
  186. </script>
  187. </button>
  188. <button id="btn_fish_img" class="btn_sw" group="tab" selected="true" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:95px; top:65px; width:89px; height:22px; ">
  189. <caption>이미지결과</caption>
  190. <script type="javascript" ev:event="DOMActivate">
  191. <![CDATA[
  192. model.toggle("fish_img");
  193. ]]>
  194. </script>
  195. </button>
  196. <input id="input_siyak" ref="/root/main/rslt/desc/rslt/fishinfo/basecddesc" class="input_essential" style="left:110px; top:42px; width:1045px; height:19px; ">
  197. <script type="javascript" ev:event="xforms-value-changed">
  198. <![CDATA[
  199. model.setValue("/root/main/rslt/desc/rslt/siyak",input_siyak.currentText);
  200. input_siyak.refresh();
  201. ]]>
  202. </script>
  203. </input>
  204. <input id="input_probe" ref="/root/main/rslt/desc/rslt/fishinfo/basecdnm" class="input_essential" style="left:110px; top:15px; width:1045px; height:19px; ">
  205. <script type="javascript" ev:event="xforms-value-changed">
  206. <![CDATA[
  207. model.setValue("/root/main/rslt/desc/rslt/probe",input_probe.currentText);
  208. input_probe.refresh();
  209. ]]>
  210. </script>
  211. </input>
  212. <output id="output6" ref="/root/main/testinfo/spcltestinfo/prcpnm" class="output_fix" style="left:265px; top:65px; width:295px; height:19px; "/>
  213. <output id="output7" ref="/root/main/testinfo/spcltestinfo/workno" class="output_fix" style="left:635px; top:65px; width:150px; height:19px; "/>
  214. <caption id="caption168" class="tit_2" style="left:567px; top:68px; width:85px; height:13px; ">접수번호</caption>
  215. </xhtml:body>
  216. </xhtml:html>