﻿<?xml version="1.0" encoding="utf-8"?>
<ReportsExport>
  <Reports>
    <Report id="9e79eefd-6f8a-4c56-8870-90481bc0bb97" codekey="AllActiveCustomerMandatorsForTheme" categoryCodekey="SpecialPurpose" name="All active Customer mandators with given themes" description="Retrieves all active mandators of real customers (all mandators which are not deleted, not a template and not VIWIS), with themes matching the given ImportPath-Pattern. This report is required for VIWIS internal usage.">
      <MetaData created="2015-04-05T20:54:36" createdBy="VIWIS, Administrator (Administrator)" createdBy_user_id="243" modified="2020-06-09T15:08:56" modifiedBy="VIWIS, Administrator (Administrator)" modifiedBy_user_id="243" />
      <ExecutionDetails format="TableResult" commandType="SqlCommandOrQuery" exportHandler="" adminControl="" exportMultipleTablesToSheets="False" datesWithTime="False" extraParams="" />
      <Mandators mandatorMode="OnlyOwner" mandator_id="89174709-9ecf-4ca6-9919-464fdea856b3" mandatorName="VIWIS" isStandard="False" isUsedByMenu="False" />
      <Parameters>
        <Parameter id="c34dbe08-0158-4ad3-9e5d-9b603447c72a" isRequired="False" allowMultiSelect="False" name="Text" contextName="ThemeImportPath-Pattern" defaultValue="" renderHint="Undefined" disableParameter="DontDisable" />
      </Parameters>
      <Roles />
      <command>
        SELECT
        id, name
        FROM tblMandators
        WHERE
        tblMandators.deleted IS NULL
        AND tblMandators.isTemplate = 0
        AND tblMandators.name != 'VIWIS'
        AND ((IsNull(@string,'') = '')
        OR (EXISTS (SELECT * FROM tblThemes WHERE tblThemes.importPath LIKE @string AND tblThemes.mandator_id = tblMandators.id))
        )
      </command>
    </Report>
  </Reports>
  <Parameters>
    <Parameter id="c34dbe08-0158-4ad3-9e5d-9b603447c72a" isSystem="True" name="Text" reportParameterType_id="6e221a70-58e9-46eb-b028-181b9983b2f6" queryParameterName="@string" />
  </Parameters>
  <ParameterTypes>
    <ParameterType id="6e221a70-58e9-46eb-b028-181b9983b2f6" isSystem="True" name="String" datatype="String" dataValueField="" dataTextField="" />
  </ParameterTypes>
</ReportsExport>