SPLLR91500_XE2100결과조회.xrw 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>XE2100 결과조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root>
  9. <main>
  10. <xersltlist>
  11. <tclsnm/>
  12. <reptrslt/>
  13. <reptdt/>
  14. <refval/>
  15. <rsltunit/>
  16. <bfinptrslt/>
  17. <bflastreptdt/>
  18. <bfrsltnm/>
  19. <prcpyn/>
  20. </xersltlist>
  21. </main>
  22. <send>
  23. <bcno/>
  24. </send>
  25. <init>
  26. </init>
  27. <hidden>
  28. </hidden>
  29. </root>
  30. </instance>
  31. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  32. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  33. <script ev:event="xforms-ready" type="javascript">
  34. <![CDATA[
  35. submit("TRLLR91501");
  36. initGridStyle("xersltlist");
  37. setRowStyleSep("xersltlist", "0", "N", "prcpyn", "equal");
  38. ]]>
  39. </script>
  40. <submission id="TRLLR91501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/xersltlist"/>
  41. </model>
  42. <script type="javascript">
  43. <![CDATA[
  44. function fExeCancel() {
  45. window.close();
  46. }
  47. function fExeOut(){
  48. if (event.keyCode == 115) {
  49. fExeCancel();
  50. }
  51. }
  52. function setRowStyleSep( gridID , styleFlag , data , colRef , control ) {
  53. var style = new Array("#33cc33" , "#ffe79d" , "#f3e1bf" , "#7BE6B7" , "#b9e5fb" , "#f7a08b" , "#fec34d" , "#dec6a4" , "#c8e67b" , "#43c8f5", "#99cf16", "#e5f3c2" );
  54. var styleFlags = styleFlag.split("^");
  55. var datas = data.split("^");
  56. if( control == null || control == "" )
  57. control = "equal";
  58. var controls = control.split("^");
  59. gridObj = document.all(gridID);
  60. gridObj.backcoloralternate = "transparent";
  61. for( var j = 0 ; j < datas.length ; j++ ) {
  62. var dataValue = datas[j];
  63. var styleValue = style[styleFlags[j]];
  64. for( var i = gridObj.fixedRows ; i < gridObj.Rows ; i++ ) {
  65. if(controls[j] == null)
  66. controls[j] = "equal";
  67. switch( controls[j] ) {
  68. case "small":
  69. if( gridObj.valueMatrix(i , gridObj.colRef(colRef)) < dataValue ) {
  70. gridObj.rowstyle( i , "data" , "color" ) = styleValue;
  71. gridObj.rowstyle( i , "data" , "font-weight" ) = "bold";
  72. }
  73. break;
  74. case "smallThen":
  75. if( gridObj.valueMatrix(i , gridObj.colRef(colRef)) <= dataValue ) {
  76. gridObj.rowstyle( i , "data" , "color" ) = styleValue;
  77. gridObj.rowstyle( i , "data" , "font-weight" ) = "bold";
  78. }
  79. break;
  80. case "bigger":
  81. if( gridObj.valueMatrix(i , gridObj.colRef(colRef)) > dataValue ) {
  82. gridObj.rowstyle( i , "data" , "color" ) = styleValue;
  83. gridObj.rowstyle( i , "data" , "font-weight" ) = "bold";
  84. }
  85. break;
  86. case "biggerThen":
  87. if( gridObj.valueMatrix(i , gridObj.colRef(colRef)) >= dataValue ) {
  88. gridObj.rowstyle( i , "data" , "color" ) = styleValue;
  89. gridObj.rowstyle( i , "data" , "font-weight" ) = "bold";
  90. }
  91. break;
  92. case "notEqual":
  93. if( gridObj.valueMatrix(i , gridObj.colRef(colRef)) != dataValue ) {
  94. gridObj.rowstyle( i , "data" , "color" ) = styleValue;
  95. gridObj.rowstyle( i , "data" , "font-weight" ) = "bold";
  96. }
  97. break;
  98. case "equal":
  99. if( gridObj.valueMatrix(i , gridObj.colRef(colRef)) == dataValue ) {
  100. gridObj.rowstyle( i , "data" , "color" ) = styleValue;
  101. gridObj.rowstyle( i , "data" , "font-weight" ) = "bold";
  102. }
  103. break;
  104. }
  105. }
  106. }
  107. }
  108. ]]>
  109. </script>
  110. </xhtml:head>
  111. <xhtml:body pagewidth="900" pageheight="650" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  112. <group id="group1" style="left:0px; top:0px; width:830px; height:585px; ">
  113. <caption id="caption5" class="tit_2" style="left:5px; top:1px; width:134px; height:13px; ">결과 리스트</caption>
  114. <line id="line8" class="line_1" style="x1:0px; y1:16px; x2:830px; y2:16px; "/>
  115. <line id="line2" class="line_3" style="x1:0px; y1:584px; x2:830px; y2:584px; "/>
  116. <datagrid id="xersltlist" nodeset="/root/main/xersltlist" class="datagrid2" caption="검사명^결과^결과보고시간^참고치^단위^이전결과^이전결과일^이전검사자" colsep="^" colwidth="210, 60, 135, 85, 60, 60, 135, 80, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:20px; width:830px; height:563px; ">
  117. <col ref="tclsnm"/>
  118. <col ref="reptrslt"/>
  119. <col ref="reptdt" format="yyyy-mm-dd hh:nn:ss"/>
  120. <col ref="refval" style="text-align:center; "/>
  121. <col ref="rsltunit"/>
  122. <col ref="bfinptrslt"/>
  123. <col ref="bflastreptdt" format="yyyy-mm-dd hh:nn:ss"/>
  124. <col ref="bfrsltnm"/>
  125. <col ref="prcpyn" visibility="hidden"/>
  126. </datagrid>
  127. </group>
  128. <group id="group2" style="left:0px; top:585px; width:830px; height:25px; ">
  129. <line id="line11" class="line_6" style="x1:0px; y1:0px; x2:830px; y2:0px; "/>
  130. <button id="btn_can" class="btn4_letter2" style="left:770px; top:1px; width:56px; height:22px; ">
  131. <caption>닫기</caption>
  132. <script ev:event="DOMActivate" type="javascript">
  133. <![CDATA[
  134. fExeCancel();
  135. ]]>
  136. </script>
  137. </button>
  138. </group>
  139. <script ev:event="onkeydown" type="javascript">
  140. <![CDATA[
  141. fExeOut();
  142. ]]>
  143. </script>
  144. </xhtml:body>
  145. </xhtml:html>