SPLQP00300_QC핵의학검사항목조회.xrw 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLQP00111.xrw
  4. * 설 명 : QC장비별검사항목 조회
  5. * 설 계 자 : PHIS - 승현씨
  6. * 작 성 자 : PHIS - 승현씨
  7. * 작 성 일 : 2008.07.04
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>장비별 검사항목 조회</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <eqmttestlist>
  20. <chk/>
  21. <eqmtcd/>
  22. <eqmtnm/>
  23. <testcd/>
  24. <testnm/>
  25. </eqmttestlist>
  26. </main>
  27. <send>
  28. <eqmtcd/>
  29. <deptflag/>
  30. <eqmtcd2/>
  31. <getflag/>
  32. <divgrupcd/>
  33. </send>
  34. <init>
  35. </init>
  36. <hidden>
  37. <ref>
  38. <testnm/>
  39. <testcd/>
  40. <testcd2/>
  41. <testnm2/>
  42. </ref>
  43. </hidden>
  44. </root>
  45. </instance>
  46. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  48. <script type="javascript" ev:event="xforms-ready">
  49. <![CDATA[
  50. if (checkOpener()) { //opener 검사
  51. var param = opener.javascript.getParameter("opener_parameter_id"); //opener parameter value를 get
  52. if(param != "") { // opener parameter value가 있는 경우
  53. //parameter value를 이용하여 프로그램 수행
  54. condarray = param.split("▦");
  55. model.setValue("/root/send/eqmtcd", condarray[1]);
  56. model.setValue("/root/send/deptflag", condarray[2]);
  57. if(condarray.length != "3"){ //장비상관관계 조회시에는 장비코드가 두개 넘어옴 length = 4
  58. grd_eqmtTestList.colHidden(1) = true;
  59. grd_eqmtTestList.colHidden(2) = true;
  60. model.setValue("/root/send/eqmtcd2", condarray[3]);
  61. model.setValue("/root/send/getflag", "Dual");
  62. }else{
  63. model.setValue("/root/send/getflag", "Single");
  64. }
  65. fGetTestList(); //장비별 검사항목 조회
  66. }
  67. }
  68. grd_eqmtTestList.fixedcellcheckbox(0,0) = true;
  69. ]]>
  70. </script>
  71. <submission id="TRLQP00115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/eqmttestlist"/>
  72. </model>
  73. <script type="javascript">
  74. <![CDATA[
  75. //닫기
  76. function fExeCancel() {
  77. window.close();
  78. }
  79. //확인
  80. function fAccept(){
  81. var testnm = ""; //검사명 ,로 구분(검사항목조회에 보이는놈)
  82. var testnm2 = ""; //검사명 ▦로 구분(그리드 셋팅때 사용)
  83. var testcd = ""; //검사코드
  84. var testcd2 = ""; //검사코드2(조회때 사용)
  85. for (i = 1; i < grd_eqmtTestList.rows; i++){
  86. if(model.getValue("/root/main/eqmttestlist[" + i + "]/chk" )== "1"){ //선택된 항목만 가져가기 위해..
  87. if (testnm == ""){ //검사명이 아직 비어있다면 그대로 값 저장
  88. testnm = testnm + model.getValue("/root/main/eqmttestlist[" + i + "]/testnm");
  89. testnm2 = testnm2 + model.getValue("/root/main/eqmttestlist[" + i + "]/testnm");
  90. testcd = testcd + model.getValue("/root/main/eqmttestlist[" + i + "]/testcd");
  91. testcd2 = testcd2 + model.getValue("/root/main/eqmttestlist[" + i + "]/testcd");
  92. }else { //검사명이 하나라도 추가 되어 있다면 ▦나 , 추가해서~
  93. testnm = testnm + ", " + model.getValue("/root/main/eqmttestlist[" + i + "]/testnm"); //검사항목에 표시~
  94. testnm2 = testnm2 + "▦" + model.getValue("/root/main/eqmttestlist[" + i + "]/testnm"); //검사항목에 표시~
  95. testcd = testcd + "▦" + model.getValue("/root/main/eqmttestlist[" + i + "]/testcd"); //요거는 여기저기서 씀.. 컬럼삭제, 생성, 그리고 서버단에서도 씀
  96. testcd2 = testcd2 + "', '" + model.getValue("/root/main/eqmttestlist[" + i + "]/testcd"); //요거는 sql에서 testcd in ()할라고..
  97. }
  98. }
  99. }
  100. model.setValue("/root/hidden/ref/testcd" , testcd); //저장된 값을 보내주기 위해 노드에 저장
  101. model.setValue("/root/hidden/ref/testcd2" , testcd2); //저장된 값을 보내주기 위해 노드에 저장
  102. model.setValue("/root/hidden/ref/testnm" , testnm);
  103. model.setValue("/root/hidden/ref/testnm2" , testnm2);
  104. //alert(model.getValue("/root/send/divgrupcd"));
  105. model.copyNode(opener.root.hidden.ref.testlist, root.hidden.ref); //메인으로 보내준다~~
  106. //opener.model.refresh();
  107. fExeCancel(); //종료
  108. }
  109. //장비별 검사항목 조회
  110. function fGetTestList(){
  111. //alert(model.getValue("/root/send/divgrupcd"));
  112. submit("TRLQP00115"); //ref : eqmtcd, deptflag
  113. }
  114. //esc키 누르면 종료~~~
  115. function fKeyEvent(){
  116. if(event.keyCode == "27"){
  117. fExeCancel();
  118. }
  119. }
  120. ]]>
  121. </script>
  122. </xhtml:head>
  123. <xhtml:body pagewidth="550" pageheight="620" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  124. <group id="group1" style="left:0px; top:0px; width:530px; height:570px; ">
  125. <caption id="caption5" class="tit_2" style="left:5px; top:11px; width:150px; height:14px; ">장비별 검사항목 조회</caption>
  126. <line id="line8" class="line_1" style="x1:0px; y1:26px; x2:530px; y2:26px; "/>
  127. <line id="line2" class="line_3" style="x1:530px; y1:570px; x2:530px; y2:570px; "/>
  128. <datagrid id="grd_eqmtTestList" nodeset="/root/main/eqmttestlist" caption="^그룹코드^사용부서^검사코드^검사명" colsep="^" colwidth="30, 70, 130, 80, 220" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:530px; height:540px; ">
  129. <col checkvalue="1,0" ref="chk" type="checkbox"/>
  130. <col ref="eqmtcd"/>
  131. <col ref="eqmtnm"/>
  132. <col ref="testcd"/>
  133. <col ref="testnm"/>
  134. <script type="javascript" ev:event="onkeypress">
  135. <![CDATA[
  136. fKeyEvent();
  137. ]]>
  138. </script>
  139. </datagrid>
  140. </group>
  141. <group id="group2" style="left:0px; top:570px; width:530px; height:30px; ">
  142. <line id="line11" class="line_6" style="x1:0px; y1:30px; x2:0px; y2:30px; "/>
  143. <button id="btn_can" class="btn4_letter2" style="left:465px; top:5px; width:56px; height:22px; ">
  144. <caption>닫기</caption>
  145. <script type="javascript" ev:event="DOMActivate">
  146. <![CDATA[
  147. fExeCancel();
  148. ]]>
  149. </script>
  150. </button>
  151. <button id="btn_accept" class="btn4_letter2" style="left:405px; top:5px; width:56px; height:22px; ">
  152. <caption>확인</caption>
  153. <script type="javascript" ev:event="DOMActivate">
  154. <![CDATA[
  155. fAccept();
  156. ]]>
  157. </script>
  158. </button>
  159. </group>
  160. <script type="javascript" ev:event="onkeydown">
  161. <![CDATA[
  162. fKeyEvent();
  163. ]]>
  164. </script>
  165. </xhtml:body>
  166. </xhtml:html>