SMLLR90500_AB결과선택.xrw 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLLR90500_ab결과선택.xrw
  4. * 설 명 : ab결과선택
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 조철형
  7. * 작 성 일 : 2007.05.30
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>Abnormal Result</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <TestInfo>
  20. <abnormallist>
  21. <chk/>
  22. <testcd/>
  23. <tclsscrnm/>
  24. </abnormallist>
  25. </TestInfo>
  26. </main>
  27. <send>
  28. </send>
  29. <init>
  30. </init>
  31. <hidden>
  32. <abnormalresult/>
  33. </hidden>
  34. </root>
  35. </instance>
  36. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. var testcd = model.getvalue("/root/main/TestInfo/testcd");
  41. datagrid3.nodeset = "/root/main/TestInfo/abnormallist[testcd2='" + testcd + "']"
  42. ]]>
  43. </script>
  44. </model>
  45. <script type="javascript">
  46. <![CDATA[
  47. function fAbResult(){
  48. var cnt = getNodesetCount("/root/main/TestInfo/abnormallist");
  49. abCnt = 1;
  50. var abTF = false;
  51. for(i = 1; i<=cnt ; i++){
  52. if(model.getvalue("/root/main/TestInfo/abnormallist["+i+"]/chk") == "true"){
  53. model.makeNode("/root/hidden/abnormalresult/abnormallist["+abCnt+"]");
  54. model.copyNode("/root/hidden/abnormalresult/abnormallist["+abCnt+"]" , "/root/main/TestInfo/abnormallist["+i+"]");
  55. abCnt++;
  56. abTF = true;
  57. }
  58. }
  59. if(abTF){
  60. //window.opener.model.copyNode("root/hidden/abresult", "root/hidden/abresult");
  61. //opener.model.copyNode("/root/hidden/abresult" , "/root/hidden/abresult");
  62. model.copyNode(opener.root.hidden.abresult , root.hidden.abnormalresult);
  63. window.close();
  64. }
  65. else{
  66. messageBox("검사항목을","C002","") ;
  67. return;
  68. }
  69. }
  70. ]]>
  71. </script>
  72. </xhtml:head>
  73. <xhtml:body pagewidth="350" pageheight="370" guideline="1,1194;" style="border-color:#000000; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  74. <group id="group1" style="left:0px; top:0px; width:330px; height:312px; ">
  75. <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:325px; y2:26px; "/>
  76. <datagrid id="datagrid3" nodeset="/root/main/TestInfo/abnormallist" caption="선택^검사코드^검사항목명" colwidth="34, 81, 163" dataheight="23" defaultrows="1" ellipsis="true" extendlastcol="scroll" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:31px; width:325px; height:278px; ">
  77. <col ref="chk" type="checkbox" checkvalue="true,false"/>
  78. <col ref="testcd"/>
  79. <col ref="tclsscrnm" format="yyyy-mm-dd"/>
  80. </datagrid>
  81. <caption id="caption3" class="tit_2" style="left:5px; top:11px; width:123px; height:14px; ">Abnormal Result</caption>
  82. </group>
  83. <group id="group3" style="left:0px; top:315px; width:330px; height:27px; ">
  84. <button id="button1" class="btn4_letter2" visibility="visible" style="left:210px; top:5px; width:56px; height:22px; ">
  85. <caption>선택</caption>
  86. <script type="javascript" ev:event="DOMActivate">
  87. <![CDATA[
  88. fAbResult();
  89. ]]>
  90. </script>
  91. </button>
  92. <button id="button2" class="btn4_letter2" style="left:269px; top:5px; width:56px; height:22px; ">
  93. <caption>닫기</caption>
  94. <script type="javascript" ev:event="onclick">
  95. <![CDATA[
  96. window.close();
  97. ]]>
  98. </script>
  99. </button>
  100. <line id="line8" class="line_6" style="x1:0px; y1:0px; x2:325px; y2:0px; "/>
  101. </group>
  102. </xhtml:body>
  103. </xhtml:html>