<?xml version="1.0" standalone="yes"?>
<Config xmlns="http://tempuri.org/Config.xsd">
  <xs:schema id="Config" targetNamespace="http://tempuri.org/Config.xsd" xmlns:mstns="http://tempuri.org/Config.xsd" xmlns="http://tempuri.org/Config.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified">
    <xs:element name="Config" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
      <xs:complexType>
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element name="Settings">
            <xs:complexType>
              <xs:sequence>
                <xs:element name="Name" type="xs:string" minOccurs="0" />
                <xs:element name="Value" type="xs:string" minOccurs="0" />
              </xs:sequence>
            </xs:complexType>
          </xs:element>
        </xs:choice>
      </xs:complexType>
    </xs:element>
  </xs:schema>
  <Settings>
    <Name>ConnStr</Name>
    <Value>SERVER=lucianlaptop\sql2008;UID=sa;PWD=rs232cv;Initial Catalog=ScaleIT_NorskGjenvinning</Value>
  </Settings>
  <Settings>
    <Name>DepartmentIDs</Name>
    <Value>1</Value>
  </Settings>
  <Settings>
    <Name>Criteria</Name>
    <Value>OrderID IN (SELECT ID FROM Orders WHERE Orders.RecordDeleted = 0 
AND Orders.Status = 2 
AND Datediff(d, (CASE WHEN Orders.DeliveryDate &gt; '1/1/1900' THEN Orders.DeliveryDate ELSE Orders.S2_Datetime END), GETDATE()) &gt;=6
AND (ABS(dbo.OrderLines.S1_Weight - dbo.OrderLines.S2_Weight)&gt; 0 OR dbo.OrderLines.M3Stk&gt;0))
</Value>
  </Settings>
  <Settings>
    <Name>PastDays</Name>
    <Value>7</Value>
  </Settings>
  <Settings>
    <Name>Locked</Name>
    <Value>FALSE</Value>
  </Settings>
  <Settings>
    <Name>SendEmails</Name>
    <Value>True</Value>
  </Settings>
  <Settings>
    <Name>ImportData</Name>
    <Value>False</Value>
  </Settings>
  <Settings>
    <Name>ExportData</Name>
    <Value>False</Value>
  </Settings>
</Config>