<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="My" GeneratedClassName="MySettings" UseMySettingsClassName="true">
  <Profiles />
  <Settings>
    <Setting Name="MC_SUPPLYWATCHConnectionString" Type="(Connection string)" Scope="Application">
      <DesignTimeValue Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
  &lt;ConnectionString&gt;Data Source=192.168.8.13;Initial Catalog=MC2_SUPPLYWATCH;User ID=sa;Password=dd&lt;/ConnectionString&gt;
  &lt;ProviderName&gt;System.Data.SqlClient&lt;/ProviderName&gt;
&lt;/SerializableConnectionString&gt;</DesignTimeValue>
      <Value Profile="(Default)">Data Source=192.168.8.13;Initial Catalog=MC2_SUPPLYWATCH;User ID=sa;Password=dd</Value>
    </Setting>
    <Setting Name="ConfigConnectionString" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)">Data Source=192.168.8.13;Initial Catalog=MC2_SUPPLYWATCH;User ID=sa;Password=dd</Value>
    </Setting>
    <Setting Name="SQL_DATENBANK" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)">MC_SUPPLYWATCH</Value>
    </Setting>
    <Setting Name="SQL_SERVERNAME" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)" />
    </Setting>
    <Setting Name="SQL_USER" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)">sa</Value>
    </Setting>
    <Setting Name="SQL_PW" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)" />
    </Setting>
    <Setting Name="TBSTATUSDataGridView" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)" />
    </Setting>
    <Setting Name="SpDGeraete" Roaming="true" Type="System.Int32" Scope="User">
      <Value Profile="(Default)">308</Value>
    </Setting>
    <Setting Name="VWSUPPLIES_AKTUELLDataGridView" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)" />
    </Setting>
    <Setting Name="SPDOrderGeraet" Roaming="true" Type="System.Int32" Scope="User">
      <Value Profile="(Default)">332</Value>
    </Setting>
    <Setting Name="VWSUPPLIES_TO_ORDERDataGridView" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)" />
    </Setting>
    <Setting Name="Setting" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)" />
    </Setting>
    <Setting Name="spltGeraeteUebersicht" Roaming="true" Type="System.Drawing.Point" Scope="User">
      <Value Profile="(Default)">3, 28</Value>
    </Setting>
    <Setting Name="spltSupplies" Roaming="true" Type="System.Drawing.Point" Scope="User">
      <Value Profile="(Default)">224, 28</Value>
    </Setting>
    <Setting Name="TBWH_STATUSFILTERDataGridView" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)" />
    </Setting>
    <Setting Name="TBWH_MARKTDataGridView" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)" />
    </Setting>
    <Setting Name="spltBestellungen" Roaming="true" Type="System.Drawing.Point" Scope="User">
      <Value Profile="(Default)">0, 56</Value>
    </Setting>
    <Setting Name="TBSUPPLY_BESTELLUNGDataGridView" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)" />
    </Setting>
    <Setting Name="TBSUPPLY_BESTELLUNGViewDataGridView" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)" />
    </Setting>
    <Setting Name="DGTBWH_Markt_Bestellungen" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)" />
    </Setting>
    <Setting Name="spltVerfolgung" Roaming="true" Type="System.Int32" Scope="User">
      <Value Profile="(Default)">111</Value>
    </Setting>
    <Setting Name="spltGeraet_Supply" Roaming="true" Type="System.Int32" Scope="User">
      <Value Profile="(Default)">229</Value>
    </Setting>
    <Setting Name="splitterVerfolgung" Roaming="true" Type="System.Drawing.Point" Scope="User">
      <Value Profile="(Default)">469, 25</Value>
    </Setting>
    <Setting Name="VWGERAETE_VERFOLGUNGDataGridView" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)" />
    </Setting>
    <Setting Name="VWSUPPLY_VERFOLGUNGDataGridView" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)" />
    </Setting>
    <Setting Name="spltProduktVertrag" Roaming="true" Type="System.Int32" Scope="User">
      <Value Profile="(Default)">266</Value>
    </Setting>
    <Setting Name="TBVERTRAEGEDataGridView" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)" />
    </Setting>
    <Setting Name="TBPRODUKT_VERTRAGDataGridView" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)" />
    </Setting>
    <Setting Name="splitter_VertragProdukt" Roaming="true" Type="System.Drawing.Point" Scope="User">
      <Value Profile="(Default)">510, 3</Value>
    </Setting>
    <Setting Name="TBSUPPLY_DEFINITIONDataGridView" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)" />
    </Setting>
    <Setting Name="VWNotInListDataGridView" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)" />
    </Setting>
    <Setting Name="TBVERTRAG_NOTEXISTDataGridView" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)" />
    </Setting>
    <Setting Name="frmImport_Report" Roaming="true" Type="System.Drawing.Point" Scope="User">
      <Value Profile="(Default)">0, 0</Value>
    </Setting>
    <Setting Name="SheetnameBestellung" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)">RptOrder_Supplies</Value>
    </Setting>
    <Setting Name="conFile_Reporting" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)">modReporting.xml</Value>
    </Setting>
    <Setting Name="FehlerEmail_to" Type="System.String" Scope="Application">
      <Value Profile="(Default)">m.schreiber@didalog.de</Value>
    </Setting>
    <Setting Name="verf_id" Roaming="true" Type="System.Int32" Scope="User">
      <Value Profile="(Default)">0</Value>
    </Setting>
    <Setting Name="Mandant_ID" Roaming="true" Type="System.String" Scope="User">
      <Value Profile="(Default)" />
    </Setting>
    <Setting Name="selectATR" Type="System.String" Scope="Application">
      <Value Profile="(Default)">SELECT   
    '&gt;=2013' ABGRENZUNG,      
	T.GERAETE_ID,
	T.SERIENNR,
	T.BEZEICHNUNG AS DEVICE, 
	MIN(CONVERT(DATE, T.MELDEDATUM)) AS ERSTES_MELDEDATUM,
	MAX(CONVERT(DATE, T.MELDEDATUM)) AS LETZTES_MELDEDATUM,
	MIN(T.PAGE_COUNT) AS PAGECOUNT_MIN, 
	MAX(T.PAGE_COUNT) AS PAGECOUNT_MAX, 
	MAX(T.PAGE_COUNT) - MIN(T.PAGE_COUNT) AS PAGECOUNT_ALL, 
	--A4Mono
	(CASE WHEN MAX(T.A4MONOTotalImpressions) IS NULL OR MAX(T.A4MONOTotalImpressions) = 0 
		THEN 0 ELSE MAX(T.A4MONOTotalImpressions) 
		END) - 
		CASE WHEN MIN(T.A4MONOTotalImpressions) IS NULL OR MIN(T.A4MONOTotalImpressions) = 0 
		THEN 0 ELSE MIN(T.A4MONOTotalImpressions) 
		END
	AS PAGECOUNT_A4MONO,
	--A3Mono
	(CASE WHEN MAX(T.A3MONOTotalImpressions) IS NULL OR MAX(T.A3MONOTotalImpressions) = 0 
		THEN 0 ELSE MAX(T.A3MONOTotalImpressions) 
		END) - 
		CASE WHEN MIN(T.A3MONOTotalImpressions) IS NULL OR MIN(T.A3MONOTotalImpressions) = 0 
		THEN 0 ELSE MIN(T.A3MONOTotalImpressions) 
		END
	AS PAGECOUNT_A3MONO,
	(CASE WHEN MAX(T.A4MONOTotalImpressions) IS NULL OR MAX(T.A4MONOTotalImpressions) = 0 
		THEN 0 ELSE MAX(T.A4MONOTotalImpressions) 
		END) - (CASE WHEN MIN(T.A4MONOTotalImpressions) IS NULL OR MIN(T.A4MONOTotalImpressions) = 0 
				THEN 0 ELSE MIN(T.A4MONOTotalImpressions) 
				END) 
		+ 
		(CASE WHEN MAX(T.A3MONOTotalImpressions) IS NULL OR MAX(T.A3MONOTotalImpressions) = 0 
		THEN 0 ELSE MAX(T.A3MONOTotalImpressions) 
		END) - (CASE WHEN MIN(T.A3MONOTotalImpressions) IS NULL OR MIN(T.A3MONOTotalImpressions) = 0 
				THEN 0 ELSE MIN(T.A3MONOTotalImpressions) 
				END) 
	AS PAGECOUNT_MONO,
	--A4Color
	(CASE WHEN MAX(T.A4ColorTotalImpressions) IS NULL OR MAX(T.A4ColorTotalImpressions) = 0 
		THEN 0 ELSE MAX(T.A4ColorTotalImpressions) 
		END) - 	(CASE WHEN MIN(T.A4ColorTotalImpressions) IS NULL OR MIN(T.A4ColorTotalImpressions) = 0 
				THEN 0 ELSE MIN(T.A4ColorTotalImpressions) END)
	AS PAGECOUNT_A4COLOR,
	--A3COLOR
	(CASE WHEN MAX(T.A3COLORTotalImpressions) IS NULL OR MAX(T.A3COLORTotalImpressions) = 0 
		THEN 0 ELSE MAX(T.A3COLORTotalImpressions) 
		END) - (CASE WHEN MIN(T.A3COLORTotalImpressions) IS NULL OR MIN(T.A3COLORTotalImpressions) = 0 
				THEN 0 ELSE MIN(T.A3COLORTotalImpressions) END)
	AS PAGECOUNT_A3COLOR,
	--PAGECOUNT COLOR MIN
	CASE WHEN MIN(T.A4ColorTotalImpressions) IS NULL OR MIN(T.A4ColorTotalImpressions) = 0
	THEN MIN(T.A4ColorTotalImpressions) 
	ELSE
	(CASE WHEN MIN(T.A4ColorTotalImpressions) IS NULL OR MIN(T.A4ColorTotalImpressions) = 0 
	THEN 0 ELSE MIN(T.A4ColorTotalImpressions) END) +
	(CASE WHEN MIN(T.A3COLORTotalImpressions) IS NULL OR MIN(T.A3COLORTotalImpressions) = 0 
		THEN 0 ELSE MIN(T.A3COLORTotalImpressions) END)
	END
	AS PAGECOUNT_COLOR_MIN,
	--PAGECOUNT COLOR MAX
	(CASE WHEN MAX(T.A4ColorTotalImpressions) IS NULL OR MAX(T.A4ColorTotalImpressions) = 0 
		THEN 0 ELSE MAX(T.A4ColorTotalImpressions) END) +
	(CASE WHEN MAX(T.A3COLORTotalImpressions) IS NULL OR MAX(T.A3COLORTotalImpressions) = 0 
	THEN 0 ELSE MAX(T.A3COLORTotalImpressions) END)
	AS PAGECOUNT_COLOR_MAX,
	--PAGECOUNT COLOR ALL
	(CASE WHEN MAX(T.A4ColorTotalImpressions) IS NULL OR MAX(T.A4ColorTotalImpressions) = 0 
		THEN 0 ELSE MAX(T.A4ColorTotalImpressions) 
		END) - 
	CASE WHEN YEAR(CONVERT(DATE, '@DATE_VON')) = 2012 THEN 
		CASE WHEN MIN(T.A4ColorTotalImpressions) IS NULL OR MIN(T.A4ColorTotalImpressions) = 0 
		THEN 0 ELSE MIN(T.A4ColorTotalImpressions) 
		END
	ELSE 
		CASE WHEN MIN(T.A4ColorTotalImpressions) IS NULL OR MIN(T.A4ColorTotalImpressions) = 0 
		THEN 0 ELSE MIN(T.A4ColorTotalImpressions) 
		END
	END
	 + 
	(CASE WHEN MAX(T.A3COLORTotalImpressions) IS NULL OR MAX(T.A3COLORTotalImpressions) = 0 
	THEN 0 ELSE MAX(T.A3COLORTotalImpressions) 
	END) - 
	CASE WHEN YEAR(CONVERT(DATE,'@DATE_VON')) = 2012 THEN
	CASE WHEN MIN(T.A3COLORTotalImpressions) IS NULL OR MIN(T.A3COLORTotalImpressions) = 0 
		THEN 0 ELSE MIN(T.A3COLORTotalImpressions) END
	ELSE 
		CASE WHEN MIN(T.A3COLORTotalImpressions) IS NULL OR MIN(T.A3COLORTotalImpressions) = 0 
		THEN 0 ELSE MIN(T.A3COLORTotalImpressions) END
	END AS PAGECOUNT_COLOR_ALL
FROM
	MC2_SUPPLYWATCH_VERFOLGUNG.dbo.TBGERAETE_VERFOLGUNG AS T,
	MC2_SUPPLYWATCH.dbo.TBGERAET AS T1
WHERE 
	T.GERAETE_ID = T1.GUID AND 
	--NOT EXISTS (SELECT GERAETE_ID FROM MC2_SUPPLYWATCH_VERFOLGUNG.dbo.TBGERAETE_VERFOLGUNG_bis2012 WHERE GERAETE_ID = T.GERAETE_ID) AND
	T.PAGE_COUNT &gt; 0 AND T.GERAETE_ID IS NOT NULL AND
	REPLACE(T1.MARKT, ' ', '') = REPLACE('@MARKT', ' ', '') AND 
	(CONVERT(DATE, T.MELDEDATUM) BETWEEN CONVERT(DATE,'@DATE_VON') AND CONVERT(DATE,'@DATE_BIS'))
GROUP BY 
	T.GERAETE_ID, 
	T.SERIENNR,
	T.BEZEICHNUNG
ORDER BY ERSTES_MELDEDATUM</Value>
    </Setting>
    <Setting Name="SplitContainerSupplies_SD" Type="System.Int32" Scope="User">
      <Value Profile="(Default)">746</Value>
    </Setting>
    <Setting Name="SplitContainerSupplyBestellungenSD" Type="System.Int32" Scope="User">
      <Value Profile="(Default)">743</Value>
    </Setting>
  </Settings>
</SettingsFile>