<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DS_batch" targetNamespace="http://tempuri.org/DS_batch.xsd" xmlns:mstns="http://tempuri.org/DS_batch.xsd" xmlns="http://tempuri.org/DS_batch.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="Settings" AppSettingsPropertyName="GMWConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="GMWConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.GMW_data.Properties.Settings.GlobalReference.Default.GMWConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AS400_ComandiTableAdapter" GeneratorDataComponentClassName="AS400_ComandiTableAdapter" Name="AS400_Comandi" UserDataComponentName="AS400_ComandiTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.RawData.AS400_Comandi" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [RawData].[AS400_Comandi] ([DataEsecuzione], [Stored], [ComandoTSQL], [Test]) VALUES (@DataEsecuzione, @Stored, @ComandoTSQL, @Test)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DataEsecuzione" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DataEsecuzione" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Stored" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Stored" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ComandoTSQL" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ComandoTSQL" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Test" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Test" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT DataEsecuzione, Stored, ComandoTSQL, Test FROM RawData.AS400_Comandi</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="DataEsecuzione" DataSetColumn="DataEsecuzione" />
              <Mapping SourceColumn="Stored" DataSetColumn="Stored" />
              <Mapping SourceColumn="ComandoTSQL" DataSetColumn="ComandoTSQL" />
              <Mapping SourceColumn="Test" DataSetColumn="Test" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.stp_ComAs_lastComandoByStored" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByStored" GetMethodModifier="Public" GetMethodName="getByStored" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByStored" UserSourceName="getByStored">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.stp_ComAs_lastComandoByStored</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Stored" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.BatchQueue.stp_processaCodaMovimMag" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="stp_processaCodaMovimMag" Modifier="Public" Name="stp_processaCodaMovimMag" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="stp_processaCodaMovimMag">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>BatchQueue.stp_processaCodaMovimMag</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.BatchQueue.stp_processaCodaMovimPackList" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="stp_processaCodaMovimPackList" Modifier="Public" Name="stp_processaCodaMovimPackList" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="stp_processaCodaMovimPackList">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>BatchQueue.stp_processaCodaMovimPackList</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DS_batch" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_batch" msprop:Generator_UserDSName="DS_batch">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="AS400_Comandi" msprop:Generator_TableClassName="AS400_ComandiDataTable" msprop:Generator_TableVarName="tableAS400_Comandi" msprop:Generator_TablePropName="AS400_Comandi" msprop:Generator_RowDeletingName="AS400_ComandiRowDeleting" msprop:Generator_RowChangingName="AS400_ComandiRowChanging" msprop:Generator_RowEvHandlerName="AS400_ComandiRowChangeEventHandler" msprop:Generator_RowDeletedName="AS400_ComandiRowDeleted" msprop:Generator_UserTableName="AS400_Comandi" msprop:Generator_RowChangedName="AS400_ComandiRowChanged" msprop:Generator_RowEvArgName="AS400_ComandiRowChangeEvent" msprop:Generator_RowClassName="AS400_ComandiRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="DataEsecuzione" msprop:Generator_ColumnVarNameInTable="columnDataEsecuzione" msprop:Generator_ColumnPropNameInRow="DataEsecuzione" msprop:Generator_ColumnPropNameInTable="DataEsecuzioneColumn" msprop:Generator_UserColumnName="DataEsecuzione" type="xs:dateTime" />
              <xs:element name="Stored" msprop:Generator_ColumnVarNameInTable="columnStored" msprop:Generator_ColumnPropNameInRow="Stored" msprop:Generator_ColumnPropNameInTable="StoredColumn" msprop:Generator_UserColumnName="Stored">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ComandoTSQL" msprop:Generator_ColumnVarNameInTable="columnComandoTSQL" msprop:Generator_ColumnPropNameInRow="ComandoTSQL" msprop:Generator_ColumnPropNameInTable="ComandoTSQLColumn" msprop:Generator_UserColumnName="ComandoTSQL" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="4000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Test" msprop:Generator_ColumnVarNameInTable="columnTest" msprop:Generator_ColumnPropNameInRow="Test" msprop:Generator_ColumnPropNameInTable="TestColumn" msprop:Generator_UserColumnName="Test" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>