﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="dsItem" targetNamespace="http://tempuri.org/dsItem.xsd" xmlns:mstns="http://tempuri.org/dsItem.xsd" xmlns="http://tempuri.org/dsItem.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="SQLConnectionRPT" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="SQLConnectionRPT (MySettings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Snell_Cronjob.My.MySettings.GlobalReference.Default.SQLConnectionRPT" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="dsItemTableAdapter" GeneratorDataComponentClassName="dsItemTableAdapter" Name="dsItem" UserDataComponentName="dsItemTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="SQLConnectionRPT (MySettings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        fsrItem.strProdCode, dwdProduct.strLongProdDesc AS strProductDesc, fsrItem.intQuantityCase, fsrItem.intQuantityBottle
FROM            fsrItem INNER JOIN
                         dwdProduct ON fsrItem.strProdCode = dwdProduct.strProdCode
WHERE        (fsrItem.refRequisitionID = @RequisitionID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="RequisitionID" ColumnName="refRequisitionID" DataSourceName="snell_2015.dbo.fsrItem" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@RequisitionID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="refRequisitionID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="strProdCode" DataSetColumn="strProdCode" />
              <Mapping SourceColumn="strProductDesc" DataSetColumn="strProductDesc" />
              <Mapping SourceColumn="intQuantityCase" DataSetColumn="intQuantityCase" />
              <Mapping SourceColumn="intQuantityBottle" DataSetColumn="intQuantityBottle" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="dsItem" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="dsItem" msprop:Generator_UserDSName="dsItem">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="dsItem" msprop:Generator_TableClassName="dsItemDataTable" msprop:Generator_TableVarName="tabledsItem" msprop:Generator_RowChangedName="dsItemRowChanged" msprop:Generator_TablePropName="_dsItem" msprop:Generator_RowDeletingName="dsItemRowDeleting" msprop:Generator_RowChangingName="dsItemRowChanging" msprop:Generator_RowEvHandlerName="dsItemRowChangeEventHandler" msprop:Generator_RowDeletedName="dsItemRowDeleted" msprop:Generator_RowClassName="dsItemRow" msprop:Generator_UserTableName="dsItem" msprop:Generator_RowEvArgName="dsItemRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="strProdCode" msprop:Generator_ColumnVarNameInTable="columnstrProdCode" msprop:Generator_ColumnPropNameInRow="strProdCode" msprop:Generator_ColumnPropNameInTable="strProdCodeColumn" msprop:Generator_UserColumnName="strProdCode">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="6" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="strProductDesc" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnstrProductDesc" msprop:Generator_ColumnPropNameInRow="strProductDesc" msprop:Generator_ColumnPropNameInTable="strProductDescColumn" msprop:Generator_UserColumnName="strProductDesc">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="144" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="intQuantityCase" msprop:Generator_ColumnVarNameInTable="columnintQuantityCase" msprop:Generator_ColumnPropNameInRow="intQuantityCase" msprop:Generator_ColumnPropNameInTable="intQuantityCaseColumn" msprop:Generator_UserColumnName="intQuantityCase" type="xs:int" />
              <xs:element name="intQuantityBottle" msprop:Generator_ColumnVarNameInTable="columnintQuantityBottle" msprop:Generator_ColumnPropNameInRow="intQuantityBottle" msprop:Generator_ColumnPropNameInTable="intQuantityBottleColumn" msprop:Generator_UserColumnName="intQuantityBottle" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>