SMLRR03100_범용보고서 결과관리.xrw 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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="caption108" class="tit_2" style="left:10px; top:10px; width:115px; height:13px; ">세부검사</caption>
  94. <line id="line73" class="line_1" style="x1:5px; y1:25px; x2:590px; y2:25px; "/>
  95. <line id="line74" class="line_1" style="x1:5px; y1:377px; x2:590px; y2:377px; "/>
  96. <caption id="caption109" class="tit_2" style="left:10px; top:362px; width:115px; height:13px; ">Image</caption>
  97. <line id="line75" class="line_1" style="x1:595px; y1:25px; x2:1180px; y2:25px; "/>
  98. <datagrid id="grd_wideuse_rsltcode" nodeset="/root/main/rsltcode" caption="판독예문코드^판독예문내용" colsep="^" colwidth="115, 425" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:595px; top:382px; width:585px; height:115px; ">
  99. <col ref="cd"/>
  100. <col ref="nm"/>
  101. <script type="javascript" ev:event="ondblclick">
  102. <![CDATA[
  103. fRsltCodeDBClick("grd_wideuse_rsltcode");
  104. ]]>
  105. </script>
  106. </datagrid>
  107. <line id="line76" class="line_1" style="x1:595px; y1:377px; x2:1180px; y2:377px; "/>
  108. <caption id="caption110" class="tit_2" style="left:600px; top:362px; width:110px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">판독예문</caption>
  109. <line id="line77" class="line_1" style="x1:595px; y1:517px; x2:1180px; y2:517px; "/>
  110. <caption id="caption111" class="tit_2" style="left:600px; top:502px; width:110px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">판독결과</caption>
  111. <textarea id="tar_wideuse_readrslt" ref="/root/main/rslt/desc/rslt/readrslt" style="left:595px; top:522px; width:585px; height:130px; "/>
  112. <button id="button23" class="btn2_letter4" style="left:1115px; top:357px; width:64px; height:19px; ">
  113. <caption>판독예문</caption>
  114. <script type="javascript" ev:event="DOMActivate">
  115. <![CDATA[
  116. modal("SMLLF02000 ","","","","","/root/main/testinfo/spcltestinfo/testcd","/root/hidden/testcd");
  117. submit("TRLRR00402");
  118. fRsltCode("grd_wideuse_rsltcode");
  119. model.refresh();
  120. ]]>
  121. </script>
  122. </button>
  123. <datagrid id="grd_wideuse_dtcl1" nodeset="/root/main/rslt/desc/rslt/detltclsinfo" caption="^검사코드^검사명^결과^단위^이전보고일시^이전결과^inptrslt" colsep="^" colwidth="0, 70, 100, 50, 50, 105, 65, 0" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:5px; top:31px; width:585px; height:322px; ">
  124. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  125. <col ref="testcd"/>
  126. <col ref="tclsscrnnm"/>
  127. <col ref="reptrslt" type="input"/>
  128. <col ref="rsltunit"/>
  129. <col ref="bflastreptdt"/>
  130. <col ref="bfreptrslt"/>
  131. <col ref="inptrslt"/>
  132. <script type="javascript" ev:event="onendedit">
  133. <![CDATA[
  134. fGridKeyEvent("grd_wideuse_dtcl1", "/root/main/rslt/desc/rslt/detltclsinfo");
  135. ]]>
  136. </script>
  137. </datagrid>
  138. <datagrid id="grd_wideuse_dtcl2" nodeset="/root/main/rslt/desc/rslt/detltclsinfo2" caption="^검사코드^검사명^결과^단위^이전보고일시^이전결과^inptrslt" colsep="^" colwidth="0, 70, 100, 50, 50, 105, 65, 0" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:595px; top:30px; width:585px; height:322px; x1:595px; ">
  139. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  140. <col ref="testcd"/>
  141. <col ref="tclsscrnnm"/>
  142. <col ref="reptrslt" type="input"/>
  143. <col ref="rsltunit"/>
  144. <col ref="bflastreptdt"/>
  145. <col ref="bfreptrslt"/>
  146. <col ref="inptrslt"/>
  147. <script type="javascript" ev:event="onendedit">
  148. <![CDATA[
  149. fGridKeyEvent("grd_wideuse_dtcl2", "/root/main/rslt/desc/rslt/detltclsinfo2");
  150. ]]>
  151. </script>
  152. </datagrid>
  153. <group id="group7" style="left:5px; top:382px; width:585px; height:268px; ">
  154. <img id="img_wideuse" ref="/root/main/view/imgrslt" src="../images/결과이미지.gif" style="left:0px; top:0px; width:585px; height:268px; background-stretch:stretch; "/>
  155. <caption id="cpt_wideuse_noimg" class="no_image" style="left:0px; top:-1px; width:210px; height:240px; vertical-align:middle; background-image:../../../com/commonweb/images/no_image.gif; "/>
  156. </group>
  157. <select1 id="cmb_wideuse_seq" ref="/root/hidden/rsltseqno" class="combo_default" appearance="minimal" style="left:420px; top:356px; width:120px; height:19px; ">
  158. <choices>
  159. <itemset nodeset="/root/main/imglist">
  160. <label ref="lastupdtrdt"/>
  161. <value ref="rsltseqno"/>
  162. </itemset>
  163. </choices>
  164. <script type="javascript" ev:event="xforms-value-changed">
  165. <![CDATA[
  166. fImgRef("img_wideuse");
  167. ]]>
  168. </script>
  169. </select1>
  170. <button id="button28" class="btn2_letter2" style="left:547px; top:357px; width:42px; height:19px; ">
  171. <caption>등록</caption>
  172. <script type="javascript" ev:event="DOMActivate">
  173. <![CDATA[
  174. if(model.getvalue("/root/main/testinfo/spcltestinfo/bcno") != ""){
  175. modal("SMLRR01500","", "", "","", "/root/main/testinfo/spcltestinfo", "/root/hidden/spcltestinfo");
  176. fImgRslt("cmb_wideuse_seq", "cpt_wideuse_noimg", "img_wideuse");
  177. }
  178. ]]>
  179. </script>
  180. </button>
  181. <caption id="caption136" class="hand" style="left:337px; top:354px; width:80px; height:23px; vertical-align:middle; ">History</caption>
  182. <select id="checkbox3" ref="/root/hidden/readexmpadd" overflow="visible" appearance="full" style="left:1060px; top:359px; width:50px; height:20px; border-style:none; ">
  183. <choices>
  184. <item>
  185. <label>추가</label>
  186. <value>Y</value>
  187. </item>
  188. </choices>
  189. </select>
  190. </xhtml:body>
  191. </xhtml:html>