SMLRR02900_CKLD 결과관리.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  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="caption148" class="tit_2" style="left:10px; top:10px; width:55px; height:13px; ">CK</caption>
  94. <line id="line95" class="line_1" style="x1:5px; y1:25px; x2:560px; y2:25px; "/>
  95. <line id="line96" class="line_1" style="x1:565px; y1:25px; x2:1180px; y2:25px; "/>
  96. <caption id="caption149" class="tit_2" style="left:570px; top:10px; width:65px; height:13px; ">LD</caption>
  97. <caption id="caption151" class="hand" style="left:307px; top:215px; width:80px; height:23px; vertical-align:middle; ">History</caption>
  98. <line id="line97" class="line_1" style="x1:5px; y1:238px; x2:560px; y2:238px; "/>
  99. <button id="button34" class="btn2_letter2" style="left:517px; top:218px; width:42px; height:19px; ">
  100. <caption>등록</caption>
  101. <script type="javascript" ev:event="DOMActivate">
  102. <![CDATA[
  103. if(model.getvalue("/root/main/testinfo/spcltestinfo/bcno") != ""){
  104. modal("SMLRR01500","", "", "","", "/root/main/testinfo/spcltestinfo", "/root/hidden/spcltestinfo");
  105. fImgRslt("cmb_ck_seq", "cpt_ck_noimg", "img_ck");
  106. }
  107. ]]>
  108. </script>
  109. </button>
  110. <caption id="caption152" class="tit_2" style="left:10px; top:223px; width:115px; height:13px; ">CK Image</caption>
  111. <group id="group9" style="left:5px; top:243px; width:555px; height:287px; ">
  112. <img id="img_ck" ref="/root/main/view/imgrslt" src="../images/결과이미지.gif" style="left:0px; top:0px; width:555px; height:287px; background-stretch:stretch; "/>
  113. <caption id="cpt_ck_noimg" class="no_image" style="left:0px; top:-1px; width:210px; height:230px; vertical-align:middle; background-image:../../../com/commonweb/images/no_image.gif; "/>
  114. </group>
  115. <datagrid id="grd_ck" nodeset="/root/main/rslt/desc/rslt/ckld/ck" caption="^이전결과접수일시^이전결과^결과^단위" colsep="^" colwidth="166, 105, 80, 80, 50" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:5px; top:30px; width:555px; height:140px; ">
  116. <col ref="tclsscrnnm"/>
  117. <col ref="bfspcacptdt" format="yyyy-mm-dd hh:nn"/>
  118. <col ref="bfreptrslt"/>
  119. <col ref="reptrslt" type="input"/>
  120. <col ref="rsltunit"/>
  121. <script type="javascript" ev:event="onendedit">
  122. <![CDATA[/*
  123. var testcd = model.getValue("/root/main/rslt/desc/rslt/pra/prascreening["+ grd_pra_scrn.row +"]/testcd");
  124. var find = grd_rslt.findRow(testcd, 1, 1, true, true);
  125. if(grd_pra_scrn.row == grd_pra_scrn.rows - 1) {
  126. model.setValue("/root/main/rslt/desc/rslt/pra/prascreening["+ grd_pra_scrn.row +"]/inptrslt", model.getValue("/root/main/rslt/desc/rslt/pra/prascreening["+ grd_pra_scrn.row +"]/reptrslt"));
  127. model.setValue("/root/main/testinfo/detailtestinfo["+ find +"]/reptrslt", model.getValue("/root/main/rslt/desc/rslt/pra/prascreening["+ grd_pra_scrn.row +"]/reptrslt"));
  128. model.setValue("/root/main/testinfo/detailtestinfo["+ find +"]/inptrslt", model.getValue("/root/main/rslt/desc/rslt/pra/prascreening["+ grd_pra_scrn.row +"]/reptrslt"));
  129. if(model.getValue("/root/main/testinfo/detailtestinfo["+ find +"]/reptrslt") != "") {
  130. model.setValue("/root/main/testinfo/detailtestinfo["+ find +"]/chk" , "Y");
  131. }
  132. grd_pra_scrn.row = 1;
  133. } else {
  134. model.setValue("/root/main/rslt/desc/rslt/pra/prascreening["+ datagrid26.row +"]/inptrslt", model.getValue("/root/main/rslt/desc/rslt/pra/prascreening["+ grd_pra_scrn.row +"]/reptrslt"));
  135. model.setValue("/root/main/testinfo/detailtestinfo["+ find +"]/reptrslt", model.getValue("/root/main/rslt/desc/rslt/pra/prascreening["+ grd_pra_scrn.row +"]/reptrslt"));
  136. model.setValue("/root/main/testinfo/detailtestinfo["+ find +"]/inptrslt", model.getValue("/root/main/rslt/desc/rslt/pra/prascreening["+ grd_pra_scrn.row +"]/reptrslt"));
  137. if(model.getValue("/root/main/testinfo/detailtestinfo["+ find +"]/reptrslt") != "") {
  138. model.setValue("/root/main/testinfo/detailtestinfo["+ find +"]/chk" , "Y");
  139. }
  140. grd_pra_scrn.row = (grd_pra_scrn.row) + 1;
  141. }*/
  142. fGridKeyEvent("grd_ck", "/root/main/rslt/desc/rslt/ckld/ck");
  143. ]]>
  144. </script>
  145. </datagrid>
  146. <datagrid id="grd_ld" nodeset="/root/main/rslt/desc/rslt/ckld/ld" caption="^이전결과접수일시^이전결과^결과^단위" colsep="^" colwidth="250, 110, 80, 100, 50" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:565px; top:30px; width:615px; height:186px; ">
  147. <col ref="tclsscrnnm"/>
  148. <col ref="bfspcacptdt" format="yyyy-mm-dd hh:nn"/>
  149. <col ref="bfreptrslt"/>
  150. <col ref="reptrslt" type="input"/>
  151. <col ref="rsltunit"/>
  152. <script type="javascript" ev:event="onendedit">
  153. <![CDATA[/*
  154. var testcd = model.getValue("/root/main/rslt/desc/rslt/pra/iden["+ datagrid27.row +"]/testcd");
  155. var find = grd_rslt.findRow(testcd, 1, 1, true, true);
  156. if(datagrid27.row == datagrid27.rows - 1) {
  157. model.setValue("/root/main/rslt/desc/rslt/pra/iden["+ datagrid27.row +"]/inptrslt", model.getValue("/root/main/rslt/desc/rslt/pra/iden["+ datagrid27.row +"]/reptrslt"));
  158. model.setValue("/root/main/testinfo/detailtestinfo["+ find +"]/reptrslt", model.getValue("/root/main/rslt/desc/rslt/pra/iden["+ datagrid27.row +"]/reptrslt"));
  159. model.setValue("/root/main/testinfo/detailtestinfo["+ find +"]/inptrslt", model.getValue("/root/main/rslt/desc/rslt/pra/iden["+ datagrid27.row +"]/reptrslt"));
  160. datagrid27.row = 1;
  161. } else {
  162. model.setValue("/root/main/rslt/desc/rslt/pra/iden["+ datagrid27.row +"]/inptrslt", model.getValue("/root/main/rslt/desc/rslt/pra/iden["+ datagrid27.row +"]/reptrslt"));
  163. model.setValue("/root/main/testinfo/detailtestinfo["+ find +"]/reptrslt", model.getValue("/root/main/rslt/desc/rslt/pra/iden["+ datagrid27.row +"]/reptrslt"));
  164. model.setValue("/root/main/testinfo/detailtestinfo["+ find +"]/inptrslt", model.getValue("/root/main/rslt/desc/rslt/pra/iden["+ datagrid27.row +"]/reptrslt"));
  165. datagrid27.row = (datagrid27.row) + 1;
  166. }
  167. var per = model.getValue("/root/main/rslt/desc/rslt/pra/iden["+ grd_pra_iden.row +"]/per");
  168. var testcd = model.getValue("/root/main/rslt/desc/rslt/pra/iden["+ grd_pra_iden.row +"]/testcd");
  169. var find = grd_rslt.findRow(testcd, 1, 1, true, true);
  170. if(per == "0") {
  171. model.setValue("/root/main/rslt/desc/rslt/pra/iden["+ grd_pra_iden.row +"]/reptrslt", "Negative");
  172. model.setValue("/root/main/rslt/desc/rslt/pra/iden["+ grd_pra_iden.row +"]/inptrslt", "Negative");
  173. model.setValue("/root/main/testinfo/detailtestinfo["+ find +"]/reptrslt", "Negative");
  174. model.setValue("/root/main/testinfo/detailtestinfo["+ find +"]/inptrslt", "Negative");
  175. if(grd_pra_iden.row == grd_pra_iden.rows - 1) {
  176. grd_pra_iden.row = 1;
  177. }else {
  178. grd_pra_iden.row = (grd_pra_iden.row) + 1;
  179. }
  180. } else if(per >= 1) {
  181. model.setValue("/root/main/rslt/desc/rslt/pra/iden["+ grd_pra_iden.row +"]/reptrslt", "Positive");
  182. model.setValue("/root/main/rslt/desc/rslt/pra/iden["+ grd_pra_iden.row +"]/inptrslt", "Positive");
  183. model.setValue("/root/main/testinfo/detailtestinfo["+ find +"]/reptrslt", "Positive");
  184. model.setValue("/root/main/testinfo/detailtestinfo["+ find +"]/inptrslt", "Positive");
  185. if(grd_pra_iden.row == grd_pra_iden.rows - 1) {
  186. grd_pra_iden.row = 1;
  187. }else {
  188. grd_pra_iden.row = (grd_pra_iden.row) + 1;
  189. }
  190. } */
  191. fGridKeyEvent("grd_ld", "/root/main/rslt/desc/rslt/ckld/ld");
  192. ]]>
  193. </script>
  194. </datagrid>
  195. <select1 id="cmb_ck_seq" ref="/root/hidden/rsltseqno" class="combo_default" appearance="minimal" style="left:390px; top:217px; width:120px; height:19px; ">
  196. <choices>
  197. <itemset nodeset="/root/main/imglist">
  198. <label ref="lastupdtrdt"/>
  199. <value ref="rsltseqno"/>
  200. </itemset>
  201. </choices>
  202. <script type="javascript" ev:event="xforms-value-changed">
  203. <![CDATA[
  204. fImgRef("img_ck");
  205. ]]>
  206. </script>
  207. </select1>
  208. <line id="line98" class="line_1" style="x1:565px; y1:238px; x2:1180px; y2:238px; "/>
  209. <caption id="caption153" class="hand" style="left:927px; top:215px; width:80px; height:23px; vertical-align:middle; ">History</caption>
  210. <caption id="caption154" class="tit_2" style="left:570px; top:223px; width:115px; height:13px; ">LD Image</caption>
  211. <group id="group10" style="left:565px; top:243px; width:615px; height:287px; ">
  212. <img id="img_ld" ref="/root/main/viewld/imgrslt" src="../images/결과이미지.gif" style="left:0px; top:0px; width:615px; height:287px; background-stretch:stretch; "/>
  213. <caption id="cpt_ld_noimg" class="no_image" style="left:0px; top:-1px; width:210px; height:240px; vertical-align:middle; background-image:../../../com/commonweb/images/no_image.gif; "/>
  214. </group>
  215. <button id="button35" class="btn2_letter2" style="left:1137px; top:218px; width:42px; height:19px; ">
  216. <caption>등록</caption>
  217. <script type="javascript" ev:event="DOMActivate">
  218. <![CDATA[
  219. if(model.getvalue("/root/main/testinfo/spcltestinfo/bcno") != ""){
  220. var testcd = model.getValue("/root/main/testinfo/spcltestinfo/testcd");
  221. model.setValue("/root/main/testinfo/spcltestinfo/testcd", "LSI113"); //CK 가 조회되므로 임시로 LD로 변경.
  222. modal("SMLRR01500","", "", "","", "/root/main/testinfo/spcltestinfo", "/root/hidden/spcltestinfo");
  223. fImgRslt("cmb_ld_seq", "cpt_ld_noimg", "img_ld");
  224. model.setValue("/root/main/testinfo/spcltestinfo/testcd", testcd); //원상 복구..
  225. fImgRslt("cmb_ck_seq", "cpt_ck_noimg", "img_ck"); //ck history가 지워짐으로 ck history 한번 더 조회
  226. }
  227. ]]>
  228. </script>
  229. </button>
  230. <select1 id="cmb_ld_seq" ref="/root/hidden/rsltseqnold" class="combo_default" appearance="minimal" style="left:1010px; top:217px; width:120px; height:19px; ">
  231. <choices>
  232. <itemset nodeset="/root/main/imglistld">
  233. <label ref="lastupdtrdt"/>
  234. <value ref="rsltseqno"/>
  235. </itemset>
  236. </choices>
  237. <script type="javascript" ev:event="xforms-value-changed">
  238. <![CDATA[
  239. var testcd = model.getValue("/root/main/testinfo/spcltestinfo/testcd");
  240. model.setValue("/root/main/testinfo/spcltestinfo/testcd", "LSI113"); //CK 가 조회되므로 임시로 LD로 변경.
  241. fImgRef("img_ld");
  242. model.setValue("/root/main/testinfo/spcltestinfo/testcd", testcd); //원상 복구..
  243. fImgRef("img_ck"); //ck 이미지가 지워짐으로 ck 이미지 한번더 조회
  244. ]]>
  245. </script>
  246. </select1>
  247. <caption id="caption155" class="tit_2" style="left:570px; top:537px; width:115px; height:13px; ">판독결과</caption>
  248. <datagrid id="grd_ckld_rsltcode" nodeset="/root/main/rsltcode" caption="판독예문코드^판독예문내용" colsep="^" colwidth="80, 275" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:5px; top:558px; width:555px; height:92px; ">
  249. <col ref="cd"/>
  250. <col ref="nm"/>
  251. <script type="javascript" ev:event="ondblclick">
  252. <![CDATA[
  253. fRsltCodeDBClick("grd_ckld_rsltcode");
  254. ]]>
  255. </script>
  256. </datagrid>
  257. <caption id="caption156" class="tit_2" style="left:10px; top:537px; width:192px; height:13px; ">판독예문</caption>
  258. <select id="checkbox15" ref="/root/hidden/readexmpadd" overflow="visible" appearance="full" style="left:440px; top:535px; width:50px; height:20px; border-style:none; ">
  259. <choices>
  260. <item>
  261. <label>추가</label>
  262. <value>Y</value>
  263. </item>
  264. </choices>
  265. </select>
  266. <textarea id="tar_ckld_weekmedi" ref="/root/main/rslt/desc/rslt/readrslt" style="left:565px; top:558px; width:615px; height:92px; "/>
  267. <line id="line99" class="line_1" style="x1:5px; y1:553px; x2:560px; y2:553px; "/>
  268. <button id="button36" class="btn2_letter4" style="left:495px; top:533px; width:64px; height:19px; ">
  269. <caption>판독예문</caption>
  270. <script type="javascript" ev:event="DOMActivate">
  271. <![CDATA[
  272. modal("SMLLF02000 ","","","","","/root/main/testinfo/spcltestinfo/testcd","/root/hidden/testcd");
  273. submit("TRLRR00402");
  274. fRsltCode("grd_ckld_rsltcode");
  275. model.refresh();
  276. ]]>
  277. </script>
  278. </button>
  279. <line id="line100" class="line_1" style="x1:565px; y1:553px; x2:1180px; y2:553px; "/>
  280. </xhtml:body>
  281. </xhtml:html>