SMLRR01900_세포유전결과관리.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  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. <textarea id="tar_cell_bfbmrslt" ref="/root/main/rslt/desc/rslt/bfbm/inter" style="left:130px; top:31px; width:1050px; height:37px; "/>
  94. <output id="output9" ref="/root/main/rslt/desc/rslt/bfbm/spcltestno" class="output_fix" style="left:5px; top:31px; width:120px; height:19px; "/>
  95. <line id="line21" class="line_1" style="x1:5px; y1:26px; x2:1180px; y2:26px; "/>
  96. <line id="line22" class="line_1" style="x1:5px; y1:96px; x2:1180px; y2:96px; "/>
  97. <caption id="caption41" class="tit_2" style="left:10px; top:10px; width:145px; height:13px; ">Bone Marrow 결과</caption>
  98. <caption id="caption42" class="tit_2" style="left:10px; top:80px; width:135px; height:13px; ">이전 검사 결과</caption>
  99. <line id="line23" class="line_3" style="x1:5px; y1:69px; x2:1180px; y2:69px; "/>
  100. <caption id="caption165" class="tit_2" style="left:195px; top:77px; width:135px; height:13px; ">처방명</caption>
  101. <output id="output4" ref="/root/main/testinfo/spcltestinfo/prcpnm" class="output_fix" style="left:250px; top:75px; width:295px; height:19px; "/>
  102. <caption id="caption166" class="tit_2" style="left:550px; top:77px; width:135px; height:14px; ">접수번호</caption>
  103. <output id="output5" ref="/root/main/testinfo/spcltestinfo/workno" class="output_fix" style="left:620px; top:75px; width:150px; height:19px; "/>
  104. <datagrid id="grd_cell_bfrslt" nodeset="/root/main/rslt/desc/rslt/beforerslt" caption="이름^등록번호^성별^나이^진료과^검사명^보고일자^결과" colsep="^" colwidth="80, 100, 40, 40, 50, 150, 105, 585" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:5px; top:101px; width:1175px; height:138px; text-align:center; ">
  105. <col ref="hngnm"/>
  106. <col ref="pid"/>
  107. <col ref="sex"/>
  108. <col ref="age"/>
  109. <col ref="orddeptnm"/>
  110. <col ref="tclsscrnnm"/>
  111. <col ref="lastreptdt" format="yyyy-mm-dd hh:nn"/>
  112. <col ref="inter"/>
  113. </datagrid>
  114. <button id="btn_cell_img" class="btn_sw" group="tab" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:94px; top:254px; width:90px; height:22px; ">
  115. <caption>이미지결과</caption>
  116. <script type="javascript" ev:event="DOMActivate">
  117. <![CDATA[
  118. model.toggle("cell_img");
  119. ]]>
  120. </script>
  121. </button>
  122. <button id="btn_cell_desc" class="btn_sw" group="tab" selected="true" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:5px; top:254px; width:89px; height:22px; ">
  123. <caption>서술결과</caption>
  124. <script type="javascript" ev:event="DOMActivate">
  125. <![CDATA[
  126. model.toggle("cell_desc");
  127. ]]>
  128. </script>
  129. </button>
  130. <button id="button1" class="btn2_letter4" style="left:530px; top:255px; width:64px; height:19px; ">
  131. <caption>연관검사</caption>
  132. <script type="javascript" ev:event="DOMActivate">
  133. <![CDATA[
  134. if(grd_cm.attribute("visibility") == "visible") {
  135. grd_cm.attribute("visibility") = "hidden";
  136. }else {
  137. grd_cm.attribute("visibility") = "visible";
  138. //modal("SMLLF00900");
  139. fGetRelRslt();
  140. }
  141. ]]>
  142. </script>
  143. </button>
  144. <button id="button26" class="btn2_letter4" style="left:1115px; top:75px; width:64px; height:19px; ">
  145. <caption>Refresh</caption>
  146. </button>
  147. <switch id="switch5" class="sw_box" style="left:5px; top:275px; width:1185px; height:380px; ">
  148. <case id="cell_desc" selected="true">
  149. <datagrid id="datagrid1" nodeset="/root/main/rsltcode" caption="판독예문코드^판독예문내용" colsep="^" colwidth="115, 427" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:31px; width:585px; height:209px; ">
  150. <col ref="cd"/>
  151. <col ref="nm"/>
  152. <script type="javascript" ev:event="ondblclick">
  153. <![CDATA[
  154. fRsltCodeDBClick("grd_cell_rsltcode");
  155. ]]>
  156. </script>
  157. </datagrid>
  158. <line id="line24" class="line_1" style="x1:5px; y1:26px; x2:590px; y2:26px; "/>
  159. <caption id="caption45" class="tit_2" style="left:10px; top:10px; width:135px; height:14px; ">판독예문</caption>
  160. <datagrid id="grd_cell_rsltcode" nodeset="/root/main/rsltcode" caption="판독예문코드^판독예문내용" colsep="^" colwidth="115, 427" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:31px; width:585px; height:209px; ">
  161. <col ref="cd"/>
  162. <col ref="nm"/>
  163. <script type="javascript" ev:event="ondblclick">
  164. <![CDATA[
  165. fRsltCodeDBClick("grd_cell_rsltcode");
  166. ]]>
  167. </script>
  168. </datagrid>
  169. <line id="line25" class="line_1" style="x1:595px; y1:25px; x2:1174px; y2:25px; "/>
  170. <caption id="caption46" class="tit_2" style="left:600px; top:9px; width:135px; height:13px; ">판독결과</caption>
  171. <textarea id="tar_cell_readrslt" ref="/root/main/rslt/desc/rslt/readrslt" style="left:595px; top:30px; width:579px; height:210px; "/>
  172. <line id="line26" class="line_1" style="left:595; x1:595px; y1:262px; x2:1174px; y2:262px; "/>
  173. <caption id="caption47" class="tit_2" style="left:600px; top:246px; width:135px; height:13px; ">Interpretation</caption>
  174. <textarea id="tar_cell_inpt" ref="/root/main/rslt/desc/rslt/inter" style="left:595; top:267px; width:579px; height:109px; "/>
  175. <button id="button9" class="btn2_letter4" style="left:526px; top:5px; width:64px; height:19px; ">
  176. <caption>판독예문</caption>
  177. <script type="javascript" ev:event="DOMActivate">
  178. <![CDATA[
  179. modal("SMLLF02000 ","","","","","/root/main/testinfo/spcltestinfo/testcd","/root/hidden/testcd");
  180. submit("TRLRR00402");
  181. fRsltCode("grd_cell_rsltcode");
  182. model.refresh();
  183. ]]>
  184. </script>
  185. </button>
  186. <select id="checkbox11" ref="/root/hidden/readexmpadd" overflow="visible" appearance="full" style="left:471px; top:7px; width:50px; height:20px; border-style:none; ">
  187. <choices>
  188. <item>
  189. <label>추가</label>
  190. <value>Y</value>
  191. </item>
  192. </choices>
  193. </select>
  194. <caption id="caption163" class="tit_2" style="left:5px; top:246px; width:135px; height:13px; ">Comments</caption>
  195. <line id="line106" class="line_1" style="left:595; x1:0px; y1:262px; x2:590px; y2:262px; "/>
  196. <textarea id="textarea2" ref="/root/main/rslt/desc/rslt/comments" style="left:0px; top:267px; width:590px; height:109px; "/>
  197. <datagrid id="grd_cm" nodeset="/root/main/rslt/desc/rslt/testlist" visibility="hidden" caption="검사코드^검사명^결과^보고일시^참고치^이전결과" colsep="^" colwidth="150, 140" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:0px; width:585px; height:209px; ">
  198. <col ref="tclscd"/>
  199. <col ref="tclsscrnnm"/>
  200. <col ref="reptrslt"/>
  201. <col ref="lastreptdt" format="yyyy-mm-dd hh:nn"/>
  202. <col ref="ref"/>
  203. <col ref="bfreptrst"/>
  204. </datagrid>
  205. </case>
  206. <case id="cell_img">
  207. <img id="img_cell" ref="/root/main/view/imgrslt" src="../images/결과이미지.gif" style="left:25px; top:35px; width:800px; height:300px; background-stretch:stretch; "/>
  208. <select1 id="cmb_cell_seq" ref="/root/hidden/rsltseqno" class="combo_default" appearance="minimal" style="left:88px; top:4px; width:120px; height:19px; ">
  209. <choices>
  210. <itemset nodeset="/root/main/imglist">
  211. <label ref="lastupdtrdt"/>
  212. <value ref="rsltseqno"/>
  213. </itemset>
  214. </choices>
  215. <script type="javascript" ev:event="xforms-value-changed">
  216. <![CDATA[
  217. fImgRef("img_cell");
  218. ]]>
  219. </script>
  220. </select1>
  221. <button id="btn_cell_img_ins" class="btn2_letter7" style="left:210px; top:4px; width:97px; height:19px; ">
  222. <caption>이미지결과등록</caption>
  223. <script type="javascript" ev:event="DOMActivate">
  224. <![CDATA[
  225. if(model.getvalue("/root/main/testinfo/spcltestinfo/bcno") != ""){
  226. modal("SMLRR01500","", "", "","", "/root/main/testinfo/spcltestinfo", "/root/hidden/spcltestinfo");
  227. fImgRslt("cmb_cell_seq", "cpt_cell_noimg", "img_cell");
  228. }
  229. ]]>
  230. </script>
  231. </button>
  232. <caption id="caption43" class="cell_1" style="left:5px; top:2px; width:80px; height:23px; vertical-align:middle; ">History</caption>
  233. <caption id="cpt_cell_noimg" class="no_image" style="left:5px; top:25px; width:210px; height:240px; vertical-align:middle; background-image:../../../com/commonweb/images/no_image.gif; "/>
  234. <img id="img6" visibility="hidden" style="left:315px; top:10px; width:365px; height:325px; background-color:#ff6600; background-stretch:stretch; "/>
  235. </case>
  236. </switch>
  237. </xhtml:body>
  238. </xhtml:html>