SMLRR02300_PB 결과관리.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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. <line id="line52" class="line_1" style="x1:5px; y1:26px; x2:400px; y2:26px; "/>
  94. <caption id="caption89" class="tit_2" style="left:10px; top:10px; width:192px; height:14px; ">CBC Result</caption>
  95. <line id="line53" class="line_1" style="x1:410px; y1:26px; x2:1190px; y2:26px; "/>
  96. <caption id="caption90" class="tit_2" style="left:415px; top:10px; width:192px; height:13px; ">말초도말검사</caption>
  97. <line id="line54" class="line_1" style="x1:5px; y1:242px; x2:400px; y2:242px; "/>
  98. <caption id="caption91" class="tit_2" style="left:10px; top:226px; width:192px; height:13px; ">CBC Diff</caption>
  99. <datagrid id="grd_pb_mal1" nodeset="/root/main/rslt/desc/rslt/mal1" caption="검사명^결과^결과^chk^testcd^inptrslt" colsep="^" colwidth="140, 55, 55, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:410px; top:31px; width:253px; height:322px; ">
  100. <col ref="tclsscrnnm"/>
  101. <col ref="reptrslt" type="input"/>
  102. <col ref="bfrslt"/>
  103. <col checkvalue="Y,N" type="chk"/>
  104. <col ref="testcd"/>
  105. <col ref="inptrslt"/>
  106. <script type="javascript" ev:event="onmousedown">
  107. <![CDATA[
  108. fGetMouseDown("grd_pb_mal1", "/root/main/rslt/desc/rslt/mal1");
  109. ]]>
  110. </script>
  111. <script type="javascript" ev:event="onendedit">
  112. <![CDATA[
  113. fGridEndEdit("grd_pb_mal1", "/root/main/rslt/desc/rslt/mal1");
  114. ]]>
  115. </script>
  116. </datagrid>
  117. <datagrid id="grd_pb_mal2" nodeset="/root/main/rslt/desc/rslt/mal2" caption="검사명^결과^결과^chk^testcd^inptrslt" colsep="^" colwidth="140, 50, 50, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:666px; top:31px; width:243px; height:322px; ">
  118. <col ref="tclsscrnnm"/>
  119. <col ref="reptrslt" type="input"/>
  120. <col ref="bfrslt"/>
  121. <col checkvalue="Y,N" type="chk"/>
  122. <col ref="testcd"/>
  123. <col ref="inptrslt"/>
  124. <script type="javascript" ev:event="onmousedown">
  125. <![CDATA[
  126. fGetMouseDown("grd_pb_mal2", "/root/main/rslt/desc/rslt/mal2");
  127. ]]>
  128. </script>
  129. <script type="javascript" ev:event="onendedit">
  130. <![CDATA[
  131. fGridEndEdit("grd_pb_mal2", "/root/main/rslt/desc/rslt/mal2");
  132. ]]>
  133. </script>
  134. </datagrid>
  135. <datagrid id="grd_pb_mal3" nodeset="/root/main/rslt/desc/rslt/mal3" caption="검사명^결과^결과^chk^testcd^inptrlst" colsep="^" colwidth="150, 50, 50, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:912px; top:31px; width:278px; height:322px; ">
  136. <col ref="tclsscrnnm"/>
  137. <col ref="reptrslt" type="input"/>
  138. <col ref="bfrslt"/>
  139. <col checkvalue="Y,N" type="chk"/>
  140. <col ref="testcd"/>
  141. <col ref="inptrslt"/>
  142. <script type="javascript" ev:event="onmousedown">
  143. <![CDATA[
  144. fGetMouseDown("grd_pb_mal3", "/root/main/rslt/desc/rslt/mal3");
  145. ]]>
  146. </script>
  147. <script type="javascript" ev:event="onendedit">
  148. <![CDATA[
  149. fGridEndEdit("grd_pb_mal3", "/root/main/rslt/desc/rslt/mal3");
  150. ]]>
  151. </script>
  152. </datagrid>
  153. <line id="line55" class="line_1" style="x1:410px; y1:378px; x2:796px; y2:378px; "/>
  154. <line id="line56" class="line_1" style="x1:803px; y1:378px; x2:1190px; y2:378px; "/>
  155. <textarea id="tar_pb_read" ref="/root/main/rslt/desc/rslt/readrslt" style="left:803px; top:383px; width:386px; height:253px; "/>
  156. <caption id="caption92" class="tit_2" style="left:415px; top:362px; width:192px; height:14px; ">판독예문</caption>
  157. <caption id="caption93" class="tit_2" style="left:808px; top:363px; width:115px; height:13px; ">판독결과</caption>
  158. <datagrid id="grd_pb_rsltcode" nodeset="/root/main/rsltcode" caption="판독예문코드^판독예문내용" colsep="^" colwidth="80, 275" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:410px; top:383px; width:386px; height:253px; ">
  159. <col ref="cd"/>
  160. <col ref="nm"/>
  161. <script type="javascript" ev:event="ondblclick">
  162. <![CDATA[
  163. fRsltCodeDBClick("grd_pb_rsltcode");
  164. ]]>
  165. </script>
  166. </datagrid>
  167. <datagrid id="grd_pb_cbc" nodeset="/root/main/rslt/desc/rslt/cbcrslt" caption="검사코드^검사명^결과^단위^보고일시^이전결과" colsep="^" colwidth="55, 100, 50, 50, 115, 65" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:5px; top:31px; width:395px; height:186px; ">
  168. <col ref="testcd"/>
  169. <col ref="tclsnm"/>
  170. <col ref="reptrslt"/>
  171. <col ref="rsltunit"/>
  172. <col ref="lastreptdt" format="yyyy-mm-dd hh:nn"/>
  173. <col ref="bfreptrst"/>
  174. <script type="javascript" ev:event="onmousedown">
  175. <![CDATA[
  176. if ( (grd_pb_cbc.row >= grd_pb_cbc.fixedRows) && (grd_pb_cbc.isCell(event.target))) {
  177. grd_pb_cbc.row = grd_pb_cbc.mouseRow;
  178. model.removenode("/root/hidden/popupmenu/grid");
  179. model.makeValue("/root/hidden/popupmenu/grid/item/name" , "▶ XE2100결과조회");
  180. model.makeValue("/root/hidden/popupmenu/grid/item/func" , "fXERslt");
  181. setPopupMenu("grd_pb_cbc", false, "/root/hidden/popupmenu/grid/item", "name", "func");
  182. }
  183. ]]>
  184. </script>
  185. <script type="javascript" ev:event="DOMFocusOut">
  186. <![CDATA[
  187. initPopupMenu();
  188. ]]>
  189. </script>
  190. </datagrid>
  191. <datagrid id="grd_pb_diff" nodeset="/root/main/rslt/desc/rslt/cbc2" caption="검사코드^검사명^결과^단위^보고일시^이전결과" colsep="^" colwidth="55, 100, 50, 50, 115, 65" dataheight="23" rowheader="seq" rowheight="23" rowsep="|" style="left:5px; top:247px; width:395px; height:391px; ">
  192. <col ref="testcd"/>
  193. <col ref="tclsnm"/>
  194. <col ref="reptrslt"/>
  195. <col ref="rsltunit"/>
  196. <col ref="lastreptdt" format="yyyy-mm-dd hh:nn"/>
  197. <col ref="bfreptrst"/>
  198. </datagrid>
  199. <button id="button12" class="btn2_letter4" style="left:731px; top:358px; width:64px; height:19px; ">
  200. <caption>판독예문</caption>
  201. <script type="javascript" ev:event="DOMActivate">
  202. <![CDATA[
  203. modal("SMLLF02000 ","","","","","/root/main/testinfo/spcltestinfo/testcd","/root/hidden/testcd");
  204. submit("TRLRR00402");
  205. fRsltCode("grd_pb_rsltcode");
  206. model.refresh();
  207. ]]>
  208. </script>
  209. </button>
  210. <select id="checkbox7" ref="/root/hidden/readexmpadd" overflow="visible" appearance="full" style="left:676px; top:360px; width:50px; height:20px; border-style:none; ">
  211. <choices>
  212. <item>
  213. <label>추가</label>
  214. <value>Y</value>
  215. </item>
  216. </choices>
  217. </select>
  218. </xhtml:body>
  219. </xhtml:html>