﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="dsRequisition" targetNamespace="http://tempuri.org/dsRequisition.xsd" xmlns:mstns="http://tempuri.org/dsRequisition.xsd" xmlns="http://tempuri.org/dsRequisition.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="ExcludeSchema" 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="dsRequisitionTableAdapter" GeneratorDataComponentClassName="dsRequisitionTableAdapter" Name="dsRequisition" UserDataComponentName="dsRequisitionTableAdapter">
            <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        RIGHT('0000' + CAST(fsrRequisition.RequisitionID AS varchar(10)), 5) AS RequisitionID, fsrRequisition.strPinkSlipNumber, mstUser.strUserName, fsrRequestType.strRequestType, 
                         LEFT(CONVERT(varchar(24), fsrRequisition.dtDate, 120), 10) AS dtDate, fsrRequisition.strRegion, fsrRequisition.strExpense, 
                         fsrRequisition.strContactPerson, fsrRequisition.strContactNumber, fsrRequisition.blnDelivery, fsrRequisition.strStatus, 
                         fsrRequisition.strInvoiceNumber, fsrRequisition.dtLastEdit, fsrRequisition.strAuthorizedBy, fsrRequisition.txtRequestDetail, ISNULL(tBillTo.strCustomerNo, '') 
                         + ' - ' + ISNULL(tBillTo.strCustomerName, '') AS strBillToAccount, ISNULL(tShipTo.strCustomerNo, '') + ' - ' + ISNULL(tShipTo.strCustomerName, '') 
                         AS strShipToAccount
FROM            fsrRequisition INNER JOIN
                         mstUser ON fsrRequisition.refUserID = mstUser.UserID INNER JOIN
                         fsrRequestType ON fsrRequisition.refRequestTypeID = fsrRequestType.RequestTypeID LEFT OUTER JOIN
                         dwdCustomer AS tShipTo ON fsrRequisition.strShipToAccount = tShipTo.strCustomerNo LEFT OUTER JOIN
                         dwdCustomer AS tBillTo ON fsrRequisition.strBillToAccount = tBillTo.strCustomerNo
WHERE        (fsrRequisition.RequisitionID = @RequisitionID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="RequisitionID" ColumnName="RequisitionID" DataSourceName="Superbowl.dbo.fsrRequisition" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@RequisitionID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="RequisitionID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="RequisitionID" DataSetColumn="RequisitionID" />
              <Mapping SourceColumn="strUserName" DataSetColumn="strUserName" />
              <Mapping SourceColumn="strRequestType" DataSetColumn="strRequestType" />
              <Mapping SourceColumn="dtDate" DataSetColumn="dtDate" />
              <Mapping SourceColumn="blnDelivery" DataSetColumn="blnDelivery" />
              <Mapping SourceColumn="strStatus" DataSetColumn="strStatus" />
              <Mapping SourceColumn="strInvoiceNumber" DataSetColumn="strInvoiceNumber" />
              <Mapping SourceColumn="dtLastEdit" DataSetColumn="dtLastEdit" />
              <Mapping SourceColumn="strAuthorizedBy" DataSetColumn="strAuthorizedBy" />
              <Mapping SourceColumn="txtRequestDetail" DataSetColumn="txtRequestDetail" />
              <Mapping SourceColumn="strRegion" DataSetColumn="strRegion" />
              <Mapping SourceColumn="strExpense" DataSetColumn="strExpense" />
              <Mapping SourceColumn="strBillToAccount" DataSetColumn="strBillToAccount" />
              <Mapping SourceColumn="strShipToAccount" DataSetColumn="strShipToAccount" />
              <Mapping SourceColumn="strContactPerson" DataSetColumn="strContactPerson" />
              <Mapping SourceColumn="strContactNumber" DataSetColumn="strContactNumber" />
              <Mapping SourceColumn="strPinkSlipNumber" DataSetColumn="strPinkSlipNumber" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="dsRequisition" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msdata:EnforceConstraints="False" msprop:EnableTableAdapterManager="False" msprop:Generator_DataSetName="dsRequisition" msprop:Generator_UserDSName="dsRequisition">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="dsRequisition" msprop:Generator_TableClassName="dsRequisitionDataTable" msprop:Generator_TableVarName="tabledsRequisition" msprop:Generator_RowChangedName="dsRequisitionRowChanged" msprop:Generator_TablePropName="_dsRequisition" msprop:Generator_RowDeletingName="dsRequisitionRowDeleting" msprop:Generator_RowChangingName="dsRequisitionRowChanging" msprop:Generator_RowEvHandlerName="dsRequisitionRowChangeEventHandler" msprop:Generator_RowDeletedName="dsRequisitionRowDeleted" msprop:Generator_RowClassName="dsRequisitionRow" msprop:Generator_UserTableName="dsRequisition" msprop:Generator_RowEvArgName="dsRequisitionRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="RequisitionID" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnRequisitionID" msprop:Generator_ColumnPropNameInRow="RequisitionID" msprop:Generator_ColumnPropNameInTable="RequisitionIDColumn" msprop:Generator_UserColumnName="RequisitionID" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="strUserName" msprop:Generator_ColumnVarNameInTable="columnstrUserName" msprop:Generator_ColumnPropNameInRow="strUserName" msprop:Generator_ColumnPropNameInTable="strUserNameColumn" msprop:Generator_UserColumnName="strUserName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="strRequestType" msprop:Generator_ColumnVarNameInTable="columnstrRequestType" msprop:Generator_ColumnPropNameInRow="strRequestType" msprop:Generator_ColumnPropNameInTable="strRequestTypeColumn" msprop:Generator_UserColumnName="strRequestType">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="dtDate" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columndtDate" msprop:Generator_ColumnPropNameInRow="dtDate" msprop:Generator_ColumnPropNameInTable="dtDateColumn" msprop:Generator_UserColumnName="dtDate" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="blnDelivery" msprop:Generator_ColumnVarNameInTable="columnblnDelivery" msprop:Generator_ColumnPropNameInRow="blnDelivery" msprop:Generator_ColumnPropNameInTable="blnDeliveryColumn" msprop:Generator_UserColumnName="blnDelivery" type="xs:boolean" />
              <xs:element name="strStatus" msprop:Generator_ColumnVarNameInTable="columnstrStatus" msprop:Generator_ColumnPropNameInRow="strStatus" msprop:Generator_ColumnPropNameInTable="strStatusColumn" msprop:Generator_UserColumnName="strStatus">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="30" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="strInvoiceNumber" msprop:Generator_ColumnVarNameInTable="columnstrInvoiceNumber" msprop:Generator_ColumnPropNameInRow="strInvoiceNumber" msprop:Generator_ColumnPropNameInTable="strInvoiceNumberColumn" msprop:Generator_UserColumnName="strInvoiceNumber" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="30" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="dtLastEdit" msprop:Generator_ColumnVarNameInTable="columndtLastEdit" msprop:Generator_ColumnPropNameInRow="dtLastEdit" msprop:Generator_ColumnPropNameInTable="dtLastEditColumn" msprop:Generator_UserColumnName="dtLastEdit">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="strAuthorizedBy" msprop:Generator_ColumnVarNameInTable="columnstrAuthorizedBy" msprop:Generator_ColumnPropNameInRow="strAuthorizedBy" msprop:Generator_ColumnPropNameInTable="strAuthorizedByColumn" msprop:Generator_UserColumnName="strAuthorizedBy" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="txtRequestDetail" msprop:Generator_ColumnVarNameInTable="columntxtRequestDetail" msprop:Generator_ColumnPropNameInRow="txtRequestDetail" msprop:Generator_ColumnPropNameInTable="txtRequestDetailColumn" msprop:Generator_UserColumnName="txtRequestDetail" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="strRegion" msprop:Generator_ColumnVarNameInTable="columnstrRegion" msprop:Generator_ColumnPropNameInRow="strRegion" msprop:Generator_ColumnPropNameInTable="strRegionColumn" msprop:Generator_UserColumnName="strRegion" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="30" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="strExpense" msprop:nullValue="_throw" msprop:Generator_ColumnPropNameInRow="strExpense" msprop:Generator_ColumnVarNameInTable="columnstrExpense" msprop:Generator_ColumnPropNameInTable="strExpenseColumn" msprop:Generator_UserColumnName="strExpense" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="strBillToAccount" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnstrBillToAccount" msprop:Generator_ColumnPropNameInRow="strBillToAccount" msprop:Generator_ColumnPropNameInTable="strBillToAccountColumn" msprop:Generator_UserColumnName="strBillToAccount" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="150" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="strShipToAccount" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnstrShipToAccount" msprop:Generator_ColumnPropNameInRow="strShipToAccount" msprop:Generator_ColumnPropNameInTable="strShipToAccountColumn" msprop:Generator_UserColumnName="strShipToAccount" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="150" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="strContactPerson" msprop:Generator_ColumnVarNameInTable="columnstrContactPerson" msprop:Generator_ColumnPropNameInRow="strContactPerson" msprop:Generator_ColumnPropNameInTable="strContactPersonColumn" msprop:Generator_UserColumnName="strContactPerson" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="strContactNumber" msprop:Generator_ColumnVarNameInTable="columnstrContactNumber" msprop:Generator_ColumnPropNameInRow="strContactNumber" msprop:Generator_ColumnPropNameInTable="strContactNumberColumn" msprop:Generator_UserColumnName="strContactNumber">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="strPinkSlipNumber" msprop:Generator_ColumnVarNameInTable="columnstrPinkSlipNumber" msprop:Generator_ColumnPropNameInRow="strPinkSlipNumber" msprop:Generator_ColumnPropNameInTable="strPinkSlipNumberColumn" msprop:Generator_UserColumnName="strPinkSlipNumber" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>