filterCombine.xts 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. BI and PM: qs
  5. (C) Copyright IBM Corp. 2001, 2017
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. -->
  12. <xts:morphlet version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/QSRVUITextPL.xml,messages/portal.xml,messages/portalRL.xml" requiredCapability="canUseQueryStudio, canUseQueryStudioAdvancedMode" nodelist="debug, http, env, command, system, session, user, actions, tabs, http, configProps, credential, cookies, setCookies, accountOptions, newSession, gatewayURI, cm:queryResponse, objectClass">
  13. <xts:block id="page" type="exec" mode="output" processor="XSLT" mimeType="text/html">
  14. <!-- get the debug logic sheet -->
  15. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  16. <!-- get the new theme stuff -->
  17. <xts:logicsheet path="logicsheets/portal.xsl"/>
  18. <xts:logicsheet path="qs/logicsheets/dialogs.xsl"/>
  19. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  20. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  21. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  22. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  23. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  24. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  25. <!-- apply the form logic -->
  26. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  27. <xsl:stylesheet version="1.0"
  28. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  29. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  30. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  31. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  32. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  33. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  34. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  35. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  36. xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/"
  37. xmlns:qsdlg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/qs/dialog/"
  38. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  39. exclude-result-prefixes="xsl xts lyt pf dp df cp cf dbg qsdlg xtsext">
  40. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  41. <!-- dbg:templates / -->
  42. <!-- Default variables (like skin) -->
  43. <qsdlg:variables/>
  44. <!-- add any theme variables -->
  45. <df:variables/>
  46. <pf:variables/>
  47. <xsl:variable name="mname" select="'filterCombine.xts'"/>
  48. <!-- start the output -->
  49. <xsl:template match="/root">
  50. <!--Get HTML output for the HEAD section -->
  51. <dp:page>
  52. <dp:script>
  53. <link rel="stylesheet" type="text/css" href="{$qsdlgskin}/qs/QSRVDialog.css" />
  54. <link rel="stylesheet" type="text/css" href="{$qsdlgskin}/qs/CRN.css" />
  55. <script type="text/javascript">
  56. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/layout.js</xsl:attribute>
  57. <xsl:text/>//<xsl:text/>
  58. </script>
  59. <script type="text/javascript">
  60. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/dialogs/filterDialog.js</xsl:attribute>
  61. <xsl:text/>//<xsl:text/>
  62. </script>
  63. <script type="text/javascript">
  64. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/rv/cvConstants.js</xsl:attribute>
  65. <xsl:text/>//<xsl:text/>
  66. </script>
  67. <script type="text/javascript">
  68. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/rv/common.js</xsl:attribute>
  69. <xsl:text/>//<xsl:text/>
  70. </script>
  71. <script type="text/javascript">
  72. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/rv/cvui.js</xsl:attribute>
  73. <xsl:text/>//<xsl:text/>
  74. </script>
  75. <script type="text/javascript">
  76. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/common/framework/notification/CObserver.js</xsl:attribute>
  77. <xsl:text/>//<xsl:text/>
  78. </script>
  79. <script type="text/javascript">
  80. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/CFilterContextMenu.js</xsl:attribute>
  81. <xsl:text/>//<xsl:text/>
  82. </script>
  83. <script type="text/javascript">
  84. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CDialogManager.js</xsl:attribute>
  85. <xsl:text/>//<xsl:text/>
  86. </script>
  87. <script type="text/javascript">
  88. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CWindowManager.js</xsl:attribute>
  89. <xsl:text/>//<xsl:text/>
  90. </script>
  91. <script type="text/javascript">&lt;!--
  92. var goDialogManager = new CDialogManager();
  93. var isComplexFilterDialog=true;
  94. var cf = getConfigFrame();
  95. var oCFilters = null;
  96. var oFilterViewObj = null;
  97. var gFContextMenu = null;
  98. var UI_HTMLSTRING = "";
  99. function execute(evt, bLeaveDialog) {
  100. if(goDialogManager.isSpaceOrEnterKeyEvent(evt))
  101. {
  102. filterCombine_execute(bLeaveDialog);
  103. }
  104. }
  105. function cancelDialog(evt) {
  106. if(goDialogManager.isSpaceOrEnterKeyEvent(evt))
  107. {
  108. filterCombine_cancelDialog();
  109. }
  110. }
  111. function applyChanges(evt) {
  112. if(goDialogManager.isSpaceOrEnterKeyEvent(evt))
  113. {
  114. filterCombine_applyChanges();
  115. }
  116. }
  117. function init()
  118. {
  119. filterCombine_init( <xsl:text/>
  120. <xsl:text/>"<xsl:value-of select="xtsext:javascriptencode(string(env/param[@name='m_tab']))"/>", <xsl:text/>
  121. <xsl:choose>
  122. <xsl:when test="env/param[@name='m_tab']='r'">cf.giFILTERVIEW_RAW</xsl:when>
  123. <xsl:otherwise>cf.giFILTERVIEW_SUMMARY</xsl:otherwise>
  124. </xsl:choose>);
  125. }
  126. function renderFilterView() { filterCombine_renderFilterView(); }
  127. function gf() { filterCombine_gf(); }
  128. function ugf() { filterCombine_ugf(); }
  129. function df() { filterCombine_df(); }
  130. function fNot(bNot) { filterCombine_fNot(bNot); }
  131. function dfa() { filterCombine_dfa(); }
  132. function afl() { filterCombine_afl(); }
  133. function cOp(sId, sOp) { filterCombine_cOp(sId, sOp); }
  134. function modifyFilter(sFID) { filterCombine_modifyFilter(sFID, "<xsl:value-of select="xtsext:javascriptencode(string(env/param[@name='m_tab']))"/>"); }
  135. function tab(sTab) { filterCombine_tab(sTab, "<xsl:value-of select="xtsext:javascriptencode(string($mname))"/>"); }
  136. //--&gt;</script>
  137. </dp:script>
  138. <form style="margin:0px" name="f" method="POST" onsubmit="execute();return false;">
  139. <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
  140. <tr>
  141. <td width="100%" height="0%">
  142. <!-- dialog header -->
  143. <dp:header help="false">
  144. <!-- header titles -->
  145. <dp:title><xts:string id="FILTER_COMBINE_TITLE"/></dp:title>
  146. <!-- close link for the header -->
  147. <dp:close>
  148. <a href="javascript:this.cancelDialog()">
  149. <dp:closeMarker/>
  150. </a>
  151. </dp:close>
  152. <!-- description (hint text) -->
  153. <dp:description>
  154. <cp:tabset>
  155. <cp:select>
  156. <xsl:choose>
  157. <xsl:when test="env/param[@name='m_tab']='s'">
  158. <xsl:value-of select="env/param[@name='m_tab']"/>
  159. </xsl:when>
  160. <xsl:otherwise>r</xsl:otherwise>
  161. </xsl:choose>
  162. </cp:select>
  163. <cp:tab name="r" position="start">
  164. <a id="rTab" href="javascript:void tab('r');">
  165. <xsl:text/>
  166. <cp:label><xts:string id="FILTER_COMBINE_TAB_DETAIL"/></cp:label>
  167. <xsl:text/>
  168. </a>
  169. </cp:tab>
  170. <cp:tab name="s" position="end">
  171. <a href="javascript:void tab('s');">
  172. <xsl:text/>
  173. <cp:label><xts:string id="FILTER_COMBINE_TAB_SUMMARY"/></cp:label>
  174. <xsl:text/>
  175. </a>
  176. </cp:tab>
  177. </cp:tabset>
  178. <div style="padding-top:10px;">
  179. <xsl:choose>
  180. <xsl:when test="env/param[@name='m_tab']='s'">
  181. <xts:string id="FILTER_COMBINE_TAB_SUMMARY_DESC"/>
  182. </xsl:when>
  183. <xsl:otherwise>
  184. <xts:string id="FILTER_COMBINE_TAB_DETAIL_DESC"/>
  185. </xsl:otherwise>
  186. </xsl:choose>
  187. </div>
  188. </dp:description>
  189. </dp:header>
  190. </td>
  191. </tr>
  192. <tr>
  193. <td width="100%" height="100%">
  194. <!-- layout -->
  195. <lyt:layout style="1" border="no">
  196. <lyt:section>
  197. <div id="filterList" class="cctable" style="height:130px; overflow:auto;"></div>
  198. <table width="100%" cellspacing="0" cellpadding="0" border="0">
  199. <tbody>
  200. <tr>
  201. <td width="100%">&#160;</td>
  202. <td class="formText" nowrap="nowrap" style="padding-left:10px;">
  203. <xsl:text/>
  204. <a id="gfLink" href="javascript:void(0);" onclick="gf();" onmouseout="window.status='';return true;" onmouseover="window.status=''; return true;">
  205. <xsl:text/><xts:string id="FILTER_COMBINE_GROUP"/><xsl:text/>
  206. </a>
  207. <xsl:text/>
  208. </td>
  209. <td class="formText" nowrap="nowrap" style="padding-left:10px;">
  210. <xsl:text/>
  211. <a id="ugfLink" href="javascript:void(0);" onclick="ugf();" onmouseout="window.status='';return true;" onmouseover="window.status=''; return true;">
  212. <xsl:text/><xts:string id="FILTER_COMBINE_UNGROUP"/><xsl:text/>
  213. </a>
  214. <xsl:text/>
  215. </td>
  216. <td class="formText" nowrap="nowrap" style="padding-left:10px;">
  217. <xsl:text/>
  218. <a id="addNOT" href="javascript:void(0);" onclick="fNot(true);" onmouseout="window.status='';return true;" onmouseover="window.status=''; return true;">
  219. <xsl:text/><xts:string id="FILTER_COMBINE_ADD_NOT"/><xsl:text/>
  220. </a>
  221. <xsl:text/>
  222. </td>
  223. <td class="formText" nowrap="nowrap" style="padding-left:10px;">
  224. <xsl:text/>
  225. <a id="removeNOT" href="javascript:void(0);" onclick="fNot(false);" onmouseout="window.status='';return true;" onmouseover="window.status=''; return true;">
  226. <xsl:text/><xts:string id="FILTER_COMBINE_REMOVE_NOT"/><xsl:text/>
  227. </a>
  228. <xsl:text/>
  229. </td>
  230. <td class="formText" nowrap="nowrap" style="padding-left:10px;">
  231. <xsl:text/>
  232. <a id="delLink" href="javascript:void(0);" onclick="df();" onmouseout="window.status='';return true;" onmouseover="window.status=''; return true;">
  233. <xsl:text/><xts:string id="FILTER_COMBINE_DELETE"/><xsl:text/>
  234. </a>
  235. <xsl:text/>
  236. </td>
  237. <td class="formText" nowrap="nowrap" style="padding-left:10px;">
  238. <xsl:text/>
  239. <a id="delAllLink" href="javascript:void(0);" onclick="dfa();" onmouseout="window.status='';return true;" onmouseover="window.status=''; return true;">
  240. <xsl:text/><xts:string id="FILTER_COMBINE_DELETEALL"/><xsl:text/>
  241. </a>
  242. <xsl:text/>
  243. </td>
  244. <td class="formText" nowrap="nowrap" style="padding-left:10px;">
  245. <xsl:text/>
  246. <a id="aflLink" href="javascript:void afl();" onmouseout="window.status='';return true;" onmouseover="window.status=''; return true;">
  247. <xsl:text/><xts:string id="FILTER_COMBINE_ADD_LINE"/><xsl:text/>
  248. </a>
  249. <xsl:text/>
  250. </td>
  251. </tr>
  252. </tbody>
  253. </table>
  254. </lyt:section>
  255. </lyt:layout>
  256. </td>
  257. </tr>
  258. <tr>
  259. <td width="100%" height="0%">
  260. <dp:footer>
  261. <df:button df:id="IDS_OK" df:style="href" onkeypress="javascript:execute(event)" df:href="javascript:execute(null)" df:defaultKey="active"/>
  262. <df:button df:id="IDS_CANCEL" df:style="href" onkeypress="javascript:cancelDialog(event)" df:href="javascript:cancelDialog(null)"/>
  263. <df:button df:id="IDS_APPLY" df:style="href" onkeypress="javascript:applyChanges(event)" df:href="javascript:applyChanges(null)"/>
  264. </dp:footer>
  265. </td>
  266. </tr>
  267. <!-- dbg:dumpxml select="/"/ -->
  268. </table>
  269. </form>
  270. </dp:page>
  271. </xsl:template>
  272. </xsl:stylesheet>
  273. </xts:block>
  274. </xts:morphlet>