|
|
|
|
@@ -0,0 +1,791 @@
|
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<xs:schema id="BealeEngDataSet" targetNamespace="http://tempuri.org/BealeEngDataSet.xsd" xmlns:mstns="http://tempuri.org/BealeEngDataSet.xsd" xmlns="http://tempuri.org/BealeEngDataSet.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="BealeEngConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="BealeEngConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.BealeEngineering.Accounts.Properties.Settings.GlobalReference.Default.BealeEngConnectionString" Provider="System.Data.SqlClient" />
|
|
|
|
|
</Connections>
|
|
|
|
|
<Tables>
|
|
|
|
|
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ClientPurchaseOrderTableAdapter" GeneratorDataComponentClassName="ClientPurchaseOrderTableAdapter" Name="ClientPurchaseOrder" UserDataComponentName="ClientPurchaseOrderTableAdapter">
|
|
|
|
|
<MainSource>
|
|
|
|
|
<DbSource ConnectionRef="BealeEngConnectionString (Settings)" DbObjectName="BealeEng.dbo.ClientPurchaseOrder" 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">
|
|
|
|
|
<DeleteCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>DELETE FROM [dbo].[ClientPurchaseOrder] WHERE (([ClientPurchaseOrderID] = @Original_ClientPurchaseOrderID) AND ([PurchaseOrderDate] = @Original_PurchaseOrderDate) AND ([ContactID] = @Original_ContactID) AND ([ClientReference] = @Original_ClientReference) AND ((@IsNull_RequestorEmail = 1 AND [RequestorEmail] IS NULL) OR ([RequestorEmail] = @Original_RequestorEmail)) AND ((@IsNull_OrderTotal = 1 AND [OrderTotal] IS NULL) OR ([OrderTotal] = @Original_OrderTotal)) AND ([IsClosed] = @Original_IsClosed))</CommandText>
|
|
|
|
|
<Parameters>
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientPurchaseOrderID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientPurchaseOrderID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_PurchaseOrderDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="PurchaseOrderDate" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ContactID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ContactID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_ClientReference" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ClientReference" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_RequestorEmail" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RequestorEmail" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_RequestorEmail" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="RequestorEmail" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OrderTotal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OrderTotal" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_OrderTotal" Precision="9" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="OrderTotal" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsClosed" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsClosed" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
</Parameters>
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</DeleteCommand>
|
|
|
|
|
<InsertCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>INSERT INTO [dbo].[ClientPurchaseOrder] ([PurchaseOrderDate], [ContactID], [ClientReference], [RequestorEmail], [OrderTotal], [IsClosed]) VALUES (@PurchaseOrderDate, @ContactID, @ClientReference, @RequestorEmail, @OrderTotal, @IsClosed);
|
|
|
|
|
SELECT ClientPurchaseOrderID, PurchaseOrderDate, ContactID, ClientReference, RequestorEmail, OrderTotal, IsClosed FROM ClientPurchaseOrder WHERE (ClientPurchaseOrderID = SCOPE_IDENTITY())</CommandText>
|
|
|
|
|
<Parameters>
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@PurchaseOrderDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="PurchaseOrderDate" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ContactID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ContactID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ClientReference" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ClientReference" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@RequestorEmail" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="RequestorEmail" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@OrderTotal" Precision="9" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="OrderTotal" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsClosed" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsClosed" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
</Parameters>
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</InsertCommand>
|
|
|
|
|
<SelectCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>SELECT ClientPurchaseOrderID, PurchaseOrderDate, ContactID, ClientReference, RequestorEmail, OrderTotal, IsClosed FROM dbo.ClientPurchaseOrder</CommandText>
|
|
|
|
|
<Parameters />
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</SelectCommand>
|
|
|
|
|
<UpdateCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>UPDATE [dbo].[ClientPurchaseOrder] SET [PurchaseOrderDate] = @PurchaseOrderDate, [ContactID] = @ContactID, [ClientReference] = @ClientReference, [RequestorEmail] = @RequestorEmail, [OrderTotal] = @OrderTotal, [IsClosed] = @IsClosed WHERE (([ClientPurchaseOrderID] = @Original_ClientPurchaseOrderID) AND ([PurchaseOrderDate] = @Original_PurchaseOrderDate) AND ([ContactID] = @Original_ContactID) AND ([ClientReference] = @Original_ClientReference) AND ((@IsNull_RequestorEmail = 1 AND [RequestorEmail] IS NULL) OR ([RequestorEmail] = @Original_RequestorEmail)) AND ((@IsNull_OrderTotal = 1 AND [OrderTotal] IS NULL) OR ([OrderTotal] = @Original_OrderTotal)) AND ([IsClosed] = @Original_IsClosed));
|
|
|
|
|
SELECT ClientPurchaseOrderID, PurchaseOrderDate, ContactID, ClientReference, RequestorEmail, OrderTotal, IsClosed FROM ClientPurchaseOrder WHERE (ClientPurchaseOrderID = @ClientPurchaseOrderID)</CommandText>
|
|
|
|
|
<Parameters>
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@PurchaseOrderDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="PurchaseOrderDate" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ContactID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ContactID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ClientReference" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ClientReference" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@RequestorEmail" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="RequestorEmail" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@OrderTotal" Precision="9" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="OrderTotal" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsClosed" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsClosed" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientPurchaseOrderID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientPurchaseOrderID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_PurchaseOrderDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="PurchaseOrderDate" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ContactID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ContactID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_ClientReference" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ClientReference" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_RequestorEmail" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RequestorEmail" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_RequestorEmail" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="RequestorEmail" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OrderTotal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OrderTotal" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_OrderTotal" Precision="9" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="OrderTotal" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsClosed" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsClosed" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="ClientPurchaseOrderID" ColumnName="ClientPurchaseOrderID" DataSourceName="BealeEng.dbo.ClientPurchaseOrder" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ClientPurchaseOrderID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ClientPurchaseOrderID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
</Parameters>
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</UpdateCommand>
|
|
|
|
|
</DbSource>
|
|
|
|
|
</MainSource>
|
|
|
|
|
<Mappings>
|
|
|
|
|
<Mapping SourceColumn="ClientPurchaseOrderID" DataSetColumn="ClientPurchaseOrderID" />
|
|
|
|
|
<Mapping SourceColumn="PurchaseOrderDate" DataSetColumn="PurchaseOrderDate" />
|
|
|
|
|
<Mapping SourceColumn="ContactID" DataSetColumn="ContactID" />
|
|
|
|
|
<Mapping SourceColumn="ClientReference" DataSetColumn="ClientReference" />
|
|
|
|
|
<Mapping SourceColumn="RequestorEmail" DataSetColumn="RequestorEmail" />
|
|
|
|
|
<Mapping SourceColumn="OrderTotal" DataSetColumn="OrderTotal" />
|
|
|
|
|
<Mapping SourceColumn="IsClosed" DataSetColumn="IsClosed" />
|
|
|
|
|
</Mappings>
|
|
|
|
|
<Sources />
|
|
|
|
|
</TableAdapter>
|
|
|
|
|
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ClientPurchaseOrderLineTableAdapter" GeneratorDataComponentClassName="ClientPurchaseOrderLineTableAdapter" Name="ClientPurchaseOrderLine" UserDataComponentName="ClientPurchaseOrderLineTableAdapter">
|
|
|
|
|
<MainSource>
|
|
|
|
|
<DbSource ConnectionRef="BealeEngConnectionString (Settings)" DbObjectName="BealeEng.dbo.ClientPurchaseOrderLine" 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">
|
|
|
|
|
<DeleteCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>DELETE FROM [dbo].[ClientPurchaseOrderLine] WHERE (([ClientPurchaseOrderLineID] = @Original_ClientPurchaseOrderLineID) AND ([ClientPurchaseOrderID] = @Original_ClientPurchaseOrderID) AND ([LineNumber] = @Original_LineNumber) AND ([ProjectJobID] = @Original_ProjectJobID) AND ((@IsNull_Description = 1 AND [Description] IS NULL) OR ([Description] = @Original_Description)) AND ([LineNetAmount] = @Original_LineNetAmount))</CommandText>
|
|
|
|
|
<Parameters>
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientPurchaseOrderLineID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientPurchaseOrderLineID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientPurchaseOrderID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientPurchaseOrderID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_LineNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LineNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProjectJobID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProjectJobID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Description" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Description" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_LineNetAmount" Precision="9" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="LineNetAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
</Parameters>
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</DeleteCommand>
|
|
|
|
|
<InsertCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>INSERT INTO [dbo].[ClientPurchaseOrderLine] ([ClientPurchaseOrderID], [LineNumber], [ProjectJobID], [Description], [LineNetAmount]) VALUES (@ClientPurchaseOrderID, @LineNumber, @ProjectJobID, @Description, @LineNetAmount);
|
|
|
|
|
SELECT ClientPurchaseOrderLineID, ClientPurchaseOrderID, LineNumber, ProjectJobID, Description, LineNetAmount FROM ClientPurchaseOrderLine WHERE (ClientPurchaseOrderLineID = SCOPE_IDENTITY())</CommandText>
|
|
|
|
|
<Parameters>
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ClientPurchaseOrderID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientPurchaseOrderID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@LineNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LineNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProjectJobID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProjectJobID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Description" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@LineNetAmount" Precision="9" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="LineNetAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
</Parameters>
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</InsertCommand>
|
|
|
|
|
<SelectCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>SELECT ClientPurchaseOrderLineID, ClientPurchaseOrderID, LineNumber, ProjectJobID, Description, LineNetAmount FROM dbo.ClientPurchaseOrderLine</CommandText>
|
|
|
|
|
<Parameters />
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</SelectCommand>
|
|
|
|
|
<UpdateCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>UPDATE [dbo].[ClientPurchaseOrderLine] SET [ClientPurchaseOrderID] = @ClientPurchaseOrderID, [LineNumber] = @LineNumber, [ProjectJobID] = @ProjectJobID, [Description] = @Description, [LineNetAmount] = @LineNetAmount WHERE (([ClientPurchaseOrderLineID] = @Original_ClientPurchaseOrderLineID) AND ([ClientPurchaseOrderID] = @Original_ClientPurchaseOrderID) AND ([LineNumber] = @Original_LineNumber) AND ([ProjectJobID] = @Original_ProjectJobID) AND ((@IsNull_Description = 1 AND [Description] IS NULL) OR ([Description] = @Original_Description)) AND ([LineNetAmount] = @Original_LineNetAmount));
|
|
|
|
|
SELECT ClientPurchaseOrderLineID, ClientPurchaseOrderID, LineNumber, ProjectJobID, Description, LineNetAmount FROM ClientPurchaseOrderLine WHERE (ClientPurchaseOrderLineID = @ClientPurchaseOrderLineID)</CommandText>
|
|
|
|
|
<Parameters>
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ClientPurchaseOrderID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientPurchaseOrderID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@LineNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LineNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProjectJobID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProjectJobID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Description" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@LineNetAmount" Precision="9" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="LineNetAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientPurchaseOrderLineID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientPurchaseOrderLineID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientPurchaseOrderID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientPurchaseOrderID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_LineNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LineNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProjectJobID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProjectJobID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Description" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Description" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_LineNetAmount" Precision="9" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="LineNetAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="ClientPurchaseOrderLineID" ColumnName="ClientPurchaseOrderLineID" DataSourceName="BealeEng.dbo.ClientPurchaseOrderLine" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ClientPurchaseOrderLineID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ClientPurchaseOrderLineID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
</Parameters>
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</UpdateCommand>
|
|
|
|
|
</DbSource>
|
|
|
|
|
</MainSource>
|
|
|
|
|
<Mappings>
|
|
|
|
|
<Mapping SourceColumn="ClientPurchaseOrderLineID" DataSetColumn="ClientPurchaseOrderLineID" />
|
|
|
|
|
<Mapping SourceColumn="ClientPurchaseOrderID" DataSetColumn="ClientPurchaseOrderID" />
|
|
|
|
|
<Mapping SourceColumn="LineNumber" DataSetColumn="LineNumber" />
|
|
|
|
|
<Mapping SourceColumn="ProjectJobID" DataSetColumn="ProjectJobID" />
|
|
|
|
|
<Mapping SourceColumn="Description" DataSetColumn="Description" />
|
|
|
|
|
<Mapping SourceColumn="LineNetAmount" DataSetColumn="LineNetAmount" />
|
|
|
|
|
</Mappings>
|
|
|
|
|
<Sources />
|
|
|
|
|
</TableAdapter>
|
|
|
|
|
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ClientPurchaseOrderLineSalesInvoiceTableAdapter" GeneratorDataComponentClassName="ClientPurchaseOrderLineSalesInvoiceTableAdapter" Name="ClientPurchaseOrderLineSalesInvoice" UserDataComponentName="ClientPurchaseOrderLineSalesInvoiceTableAdapter">
|
|
|
|
|
<MainSource>
|
|
|
|
|
<DbSource ConnectionRef="BealeEngConnectionString (Settings)" DbObjectName="BealeEng.dbo.ClientPurchaseOrderLineSalesInvoice" 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">
|
|
|
|
|
<DeleteCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>DELETE FROM [dbo].[ClientPurchaseOrderLineSalesInvoice] WHERE (([ClientPurchaseOrderLineID] = @Original_ClientPurchaseOrderLineID) AND ([SaleInvoiceID] = @Original_SaleInvoiceID) AND ([IsApproved] = @Original_IsApproved))</CommandText>
|
|
|
|
|
<Parameters>
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientPurchaseOrderLineID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientPurchaseOrderLineID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_SaleInvoiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SaleInvoiceID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsApproved" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsApproved" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
</Parameters>
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</DeleteCommand>
|
|
|
|
|
<InsertCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>INSERT INTO [dbo].[ClientPurchaseOrderLineSalesInvoice] ([ClientPurchaseOrderLineID], [SaleInvoiceID], [IsApproved]) VALUES (@ClientPurchaseOrderLineID, @SaleInvoiceID, @IsApproved);
|
|
|
|
|
SELECT ClientPurchaseOrderLineID, SaleInvoiceID, IsApproved FROM ClientPurchaseOrderLineSalesInvoice WHERE (SaleInvoiceID = @SaleInvoiceID)</CommandText>
|
|
|
|
|
<Parameters>
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ClientPurchaseOrderLineID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientPurchaseOrderLineID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SaleInvoiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SaleInvoiceID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsApproved" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsApproved" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
</Parameters>
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</InsertCommand>
|
|
|
|
|
<SelectCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>SELECT ClientPurchaseOrderLineID, SaleInvoiceID, IsApproved FROM dbo.ClientPurchaseOrderLineSalesInvoice</CommandText>
|
|
|
|
|
<Parameters />
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</SelectCommand>
|
|
|
|
|
<UpdateCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>UPDATE [dbo].[ClientPurchaseOrderLineSalesInvoice] SET [ClientPurchaseOrderLineID] = @ClientPurchaseOrderLineID, [SaleInvoiceID] = @SaleInvoiceID, [IsApproved] = @IsApproved WHERE (([ClientPurchaseOrderLineID] = @Original_ClientPurchaseOrderLineID) AND ([SaleInvoiceID] = @Original_SaleInvoiceID) AND ([IsApproved] = @Original_IsApproved));
|
|
|
|
|
SELECT ClientPurchaseOrderLineID, SaleInvoiceID, IsApproved FROM ClientPurchaseOrderLineSalesInvoice WHERE (SaleInvoiceID = @SaleInvoiceID)</CommandText>
|
|
|
|
|
<Parameters>
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ClientPurchaseOrderLineID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientPurchaseOrderLineID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SaleInvoiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SaleInvoiceID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsApproved" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsApproved" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientPurchaseOrderLineID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientPurchaseOrderLineID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_SaleInvoiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SaleInvoiceID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsApproved" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsApproved" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
</Parameters>
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</UpdateCommand>
|
|
|
|
|
</DbSource>
|
|
|
|
|
</MainSource>
|
|
|
|
|
<Mappings>
|
|
|
|
|
<Mapping SourceColumn="ClientPurchaseOrderLineID" DataSetColumn="ClientPurchaseOrderLineID" />
|
|
|
|
|
<Mapping SourceColumn="SaleInvoiceID" DataSetColumn="SaleInvoiceID" />
|
|
|
|
|
<Mapping SourceColumn="IsApproved" DataSetColumn="IsApproved" />
|
|
|
|
|
</Mappings>
|
|
|
|
|
<Sources />
|
|
|
|
|
</TableAdapter>
|
|
|
|
|
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ContactTableAdapter" GeneratorDataComponentClassName="ContactTableAdapter" Name="Contact" UserDataComponentName="ContactTableAdapter">
|
|
|
|
|
<MainSource>
|
|
|
|
|
<DbSource ConnectionRef="BealeEngConnectionString (Settings)" DbObjectName="BealeEng.dbo.Contact" 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">
|
|
|
|
|
<DeleteCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>DELETE FROM [dbo].[Contact] WHERE (([ContactID] = @Original_ContactID) AND ([ContactName] = @Original_ContactName) AND ((@IsNull_EmailAddress = 1 AND [EmailAddress] IS NULL) OR ([EmailAddress] = @Original_EmailAddress)) AND ((@IsNull_PrimaryPersonFirstName = 1 AND [PrimaryPersonFirstName] IS NULL) OR ([PrimaryPersonFirstName] = @Original_PrimaryPersonFirstName)) AND ((@IsNull_PrimaryPersonSurname = 1 AND [PrimaryPersonSurname] IS NULL) OR ([PrimaryPersonSurname] = @Original_PrimaryPersonSurname)) AND ((@IsNull_PrimaryPersonEmail = 1 AND [PrimaryPersonEmail] IS NULL) OR ([PrimaryPersonEmail] = @Original_PrimaryPersonEmail)) AND ((@IsNull_POAddressLine1 = 1 AND [POAddressLine1] IS NULL) OR ([POAddressLine1] = @Original_POAddressLine1)) AND ((@IsNull_POAddressLine2 = 1 AND [POAddressLine2] IS NULL) OR ([POAddressLine2] = @Original_POAddressLine2)) AND ((@IsNull_POAddressLine3 = 1 AND [POAddressLine3] IS NULL) OR ([POAddressLine3] = @Original_POAddressLine3)) AND ((@IsNull_POAddressLine4 = 1 AND [POAddressLine4] IS NULL) OR ([POAddressLine4] = @Original_POAddressLine4)) AND ((@IsNull_POAddressCity = 1 AND [POAddressCity] IS NULL) OR ([POAddressCity] = @Original_POAddressCity)) AND ((@IsNull_POAddressRegion = 1 AND [POAddressRegion] IS NULL) OR ([POAddressRegion] = @Original_POAddressRegion)) AND ((@IsNull_POAddressPostalCode = 1 AND [POAddressPostalCode] IS NULL) OR ([POAddressPostalCode] = @Original_POAddressPostalCode)) AND ((@IsNull_POAddressCountry = 1 AND [POAddressCountry] IS NULL) OR ([POAddressCountry] = @Original_POAddressCountry)))</CommandText>
|
|
|
|
|
<Parameters>
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ContactID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ContactID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_ContactName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ContactName" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_EmailAddress" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EmailAddress" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_EmailAddress" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="EmailAddress" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PrimaryPersonFirstName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PrimaryPersonFirstName" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_PrimaryPersonFirstName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="PrimaryPersonFirstName" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PrimaryPersonSurname" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PrimaryPersonSurname" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_PrimaryPersonSurname" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="PrimaryPersonSurname" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PrimaryPersonEmail" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PrimaryPersonEmail" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_PrimaryPersonEmail" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="PrimaryPersonEmail" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POAddressLine1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POAddressLine1" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_POAddressLine1" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressLine1" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POAddressLine2" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POAddressLine2" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_POAddressLine2" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressLine2" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POAddressLine3" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POAddressLine3" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_POAddressLine3" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressLine3" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POAddressLine4" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POAddressLine4" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_POAddressLine4" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressLine4" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POAddressCity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POAddressCity" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_POAddressCity" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressCity" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POAddressRegion" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POAddressRegion" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_POAddressRegion" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressRegion" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POAddressPostalCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POAddressPostalCode" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_POAddressPostalCode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressPostalCode" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POAddressCountry" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POAddressCountry" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_POAddressCountry" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressCountry" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
</Parameters>
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</DeleteCommand>
|
|
|
|
|
<InsertCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>INSERT INTO [dbo].[Contact] ([ContactName], [EmailAddress], [PrimaryPersonFirstName], [PrimaryPersonSurname], [PrimaryPersonEmail], [POAddressLine1], [POAddressLine2], [POAddressLine3], [POAddressLine4], [POAddressCity], [POAddressRegion], [POAddressPostalCode], [POAddressCountry]) VALUES (@ContactName, @EmailAddress, @PrimaryPersonFirstName, @PrimaryPersonSurname, @PrimaryPersonEmail, @POAddressLine1, @POAddressLine2, @POAddressLine3, @POAddressLine4, @POAddressCity, @POAddressRegion, @POAddressPostalCode, @POAddressCountry);
|
|
|
|
|
SELECT ContactID, ContactName, EmailAddress, PrimaryPersonFirstName, PrimaryPersonSurname, PrimaryPersonEmail, POAddressLine1, POAddressLine2, POAddressLine3, POAddressLine4, POAddressCity, POAddressRegion, POAddressPostalCode, POAddressCountry FROM Contact WHERE (ContactID = SCOPE_IDENTITY())</CommandText>
|
|
|
|
|
<Parameters>
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ContactName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ContactName" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@EmailAddress" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="EmailAddress" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@PrimaryPersonFirstName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="PrimaryPersonFirstName" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@PrimaryPersonSurname" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="PrimaryPersonSurname" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@PrimaryPersonEmail" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="PrimaryPersonEmail" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@POAddressLine1" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressLine1" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@POAddressLine2" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressLine2" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@POAddressLine3" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressLine3" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@POAddressLine4" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressLine4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@POAddressCity" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressCity" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@POAddressRegion" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressRegion" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@POAddressPostalCode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressPostalCode" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@POAddressCountry" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressCountry" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
</Parameters>
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</InsertCommand>
|
|
|
|
|
<SelectCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>SELECT ContactID, ContactName, EmailAddress, PrimaryPersonFirstName, PrimaryPersonSurname, PrimaryPersonEmail, POAddressLine1, POAddressLine2, POAddressLine3, POAddressLine4, POAddressCity, POAddressRegion, POAddressPostalCode, POAddressCountry FROM dbo.Contact</CommandText>
|
|
|
|
|
<Parameters />
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</SelectCommand>
|
|
|
|
|
<UpdateCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>UPDATE [dbo].[Contact] SET [ContactName] = @ContactName, [EmailAddress] = @EmailAddress, [PrimaryPersonFirstName] = @PrimaryPersonFirstName, [PrimaryPersonSurname] = @PrimaryPersonSurname, [PrimaryPersonEmail] = @PrimaryPersonEmail, [POAddressLine1] = @POAddressLine1, [POAddressLine2] = @POAddressLine2, [POAddressLine3] = @POAddressLine3, [POAddressLine4] = @POAddressLine4, [POAddressCity] = @POAddressCity, [POAddressRegion] = @POAddressRegion, [POAddressPostalCode] = @POAddressPostalCode, [POAddressCountry] = @POAddressCountry WHERE (([ContactID] = @Original_ContactID) AND ([ContactName] = @Original_ContactName) AND ((@IsNull_EmailAddress = 1 AND [EmailAddress] IS NULL) OR ([EmailAddress] = @Original_EmailAddress)) AND ((@IsNull_PrimaryPersonFirstName = 1 AND [PrimaryPersonFirstName] IS NULL) OR ([PrimaryPersonFirstName] = @Original_PrimaryPersonFirstName)) AND ((@IsNull_PrimaryPersonSurname = 1 AND [PrimaryPersonSurname] IS NULL) OR ([PrimaryPersonSurname] = @Original_PrimaryPersonSurname)) AND ((@IsNull_PrimaryPersonEmail = 1 AND [PrimaryPersonEmail] IS NULL) OR ([PrimaryPersonEmail] = @Original_PrimaryPersonEmail)) AND ((@IsNull_POAddressLine1 = 1 AND [POAddressLine1] IS NULL) OR ([POAddressLine1] = @Original_POAddressLine1)) AND ((@IsNull_POAddressLine2 = 1 AND [POAddressLine2] IS NULL) OR ([POAddressLine2] = @Original_POAddressLine2)) AND ((@IsNull_POAddressLine3 = 1 AND [POAddressLine3] IS NULL) OR ([POAddressLine3] = @Original_POAddressLine3)) AND ((@IsNull_POAddressLine4 = 1 AND [POAddressLine4] IS NULL) OR ([POAddressLine4] = @Original_POAddressLine4)) AND ((@IsNull_POAddressCity = 1 AND [POAddressCity] IS NULL) OR ([POAddressCity] = @Original_POAddressCity)) AND ((@IsNull_POAddressRegion = 1 AND [POAddressRegion] IS NULL) OR ([POAddressRegion] = @Original_POAddressRegion)) AND ((@IsNull_POAddressPostalCode = 1 AND [POAddressPostalCode] IS NULL) OR ([POAddressPostalCode] = @Original_POAddressPostalCode)) AND ((@IsNull_POAddressCountry = 1 AND [POAddressCountry] IS NULL) OR ([POAddressCountry] = @Original_POAddressCountry)));
|
|
|
|
|
SELECT ContactID, ContactName, EmailAddress, PrimaryPersonFirstName, PrimaryPersonSurname, PrimaryPersonEmail, POAddressLine1, POAddressLine2, POAddressLine3, POAddressLine4, POAddressCity, POAddressRegion, POAddressPostalCode, POAddressCountry FROM Contact WHERE (ContactID = @ContactID)</CommandText>
|
|
|
|
|
<Parameters>
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ContactName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ContactName" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@EmailAddress" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="EmailAddress" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@PrimaryPersonFirstName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="PrimaryPersonFirstName" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@PrimaryPersonSurname" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="PrimaryPersonSurname" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@PrimaryPersonEmail" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="PrimaryPersonEmail" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@POAddressLine1" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressLine1" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@POAddressLine2" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressLine2" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@POAddressLine3" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressLine3" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@POAddressLine4" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressLine4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@POAddressCity" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressCity" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@POAddressRegion" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressRegion" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@POAddressPostalCode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressPostalCode" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@POAddressCountry" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressCountry" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ContactID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ContactID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_ContactName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ContactName" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_EmailAddress" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EmailAddress" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_EmailAddress" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="EmailAddress" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PrimaryPersonFirstName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PrimaryPersonFirstName" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_PrimaryPersonFirstName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="PrimaryPersonFirstName" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PrimaryPersonSurname" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PrimaryPersonSurname" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_PrimaryPersonSurname" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="PrimaryPersonSurname" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PrimaryPersonEmail" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PrimaryPersonEmail" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_PrimaryPersonEmail" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="PrimaryPersonEmail" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POAddressLine1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POAddressLine1" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_POAddressLine1" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressLine1" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POAddressLine2" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POAddressLine2" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_POAddressLine2" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressLine2" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POAddressLine3" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POAddressLine3" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_POAddressLine3" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressLine3" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POAddressLine4" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POAddressLine4" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_POAddressLine4" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressLine4" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POAddressCity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POAddressCity" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_POAddressCity" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressCity" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POAddressRegion" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POAddressRegion" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_POAddressRegion" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressRegion" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POAddressPostalCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POAddressPostalCode" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_POAddressPostalCode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressPostalCode" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POAddressCountry" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POAddressCountry" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_POAddressCountry" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="POAddressCountry" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="ContactID" ColumnName="ContactID" DataSourceName="BealeEng.dbo.Contact" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ContactID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ContactID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
</Parameters>
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</UpdateCommand>
|
|
|
|
|
</DbSource>
|
|
|
|
|
</MainSource>
|
|
|
|
|
<Mappings>
|
|
|
|
|
<Mapping SourceColumn="ContactID" DataSetColumn="ContactID" />
|
|
|
|
|
<Mapping SourceColumn="ContactName" DataSetColumn="ContactName" />
|
|
|
|
|
<Mapping SourceColumn="EmailAddress" DataSetColumn="EmailAddress" />
|
|
|
|
|
<Mapping SourceColumn="PrimaryPersonFirstName" DataSetColumn="PrimaryPersonFirstName" />
|
|
|
|
|
<Mapping SourceColumn="PrimaryPersonSurname" DataSetColumn="PrimaryPersonSurname" />
|
|
|
|
|
<Mapping SourceColumn="PrimaryPersonEmail" DataSetColumn="PrimaryPersonEmail" />
|
|
|
|
|
<Mapping SourceColumn="POAddressLine1" DataSetColumn="POAddressLine1" />
|
|
|
|
|
<Mapping SourceColumn="POAddressLine2" DataSetColumn="POAddressLine2" />
|
|
|
|
|
<Mapping SourceColumn="POAddressLine3" DataSetColumn="POAddressLine3" />
|
|
|
|
|
<Mapping SourceColumn="POAddressLine4" DataSetColumn="POAddressLine4" />
|
|
|
|
|
<Mapping SourceColumn="POAddressCity" DataSetColumn="POAddressCity" />
|
|
|
|
|
<Mapping SourceColumn="POAddressRegion" DataSetColumn="POAddressRegion" />
|
|
|
|
|
<Mapping SourceColumn="POAddressPostalCode" DataSetColumn="POAddressPostalCode" />
|
|
|
|
|
<Mapping SourceColumn="POAddressCountry" DataSetColumn="POAddressCountry" />
|
|
|
|
|
</Mappings>
|
|
|
|
|
<Sources />
|
|
|
|
|
</TableAdapter>
|
|
|
|
|
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProjectTableAdapter" GeneratorDataComponentClassName="ProjectTableAdapter" Name="Project" UserDataComponentName="ProjectTableAdapter">
|
|
|
|
|
<MainSource>
|
|
|
|
|
<DbSource ConnectionRef="BealeEngConnectionString (Settings)" DbObjectName="BealeEng.dbo.Project" 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">
|
|
|
|
|
<DeleteCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>DELETE FROM [dbo].[Project] WHERE (([ProjectID] = @Original_ProjectID) AND ([ContactID] = @Original_ContactID) AND ((@IsNull_ProjectRef = 1 AND [ProjectRef] IS NULL) OR ([ProjectRef] = @Original_ProjectRef)) AND ([ProjectTitle] = @Original_ProjectTitle) AND ((@IsNull_DateStart = 1 AND [DateStart] IS NULL) OR ([DateStart] = @Original_DateStart)) AND ((@IsNull_DateEnd = 1 AND [DateEnd] IS NULL) OR ([DateEnd] = @Original_DateEnd)) AND ((@IsNull_ClientName = 1 AND [ClientName] IS NULL) OR ([ClientName] = @Original_ClientName)) AND ([IsArchived] = @Original_IsArchived))</CommandText>
|
|
|
|
|
<Parameters>
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProjectID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProjectID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ContactID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ContactID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProjectRef" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProjectRef" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_ProjectRef" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ProjectRef" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_ProjectTitle" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ProjectTitle" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DateStart" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DateStart" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DateStart" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateStart" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DateEnd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DateEnd" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DateEnd" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateEnd" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ClientName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientName" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_ClientName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ClientName" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsArchived" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsArchived" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
</Parameters>
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</DeleteCommand>
|
|
|
|
|
<InsertCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>INSERT INTO [dbo].[Project] ([ProjectID], [ContactID], [ProjectRef], [ProjectTitle], [DateStart], [DateEnd], [ClientName], [IsArchived]) VALUES (@ProjectID, @ContactID, @ProjectRef, @ProjectTitle, @DateStart, @DateEnd, @ClientName, @IsArchived);
|
|
|
|
|
SELECT ProjectID, ContactID, ProjectRef, ProjectTitle, DateStart, DateEnd, ClientName, IsArchived FROM Project WHERE (ProjectID = @ProjectID)</CommandText>
|
|
|
|
|
<Parameters>
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProjectID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProjectID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ContactID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ContactID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ProjectRef" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ProjectRef" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ProjectTitle" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ProjectTitle" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DateStart" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateStart" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DateEnd" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateEnd" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ClientName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ClientName" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsArchived" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsArchived" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
</Parameters>
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</InsertCommand>
|
|
|
|
|
<SelectCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>SELECT ProjectID, ContactID, ProjectRef, ProjectTitle, DateStart, DateEnd, ClientName, IsArchived FROM dbo.Project</CommandText>
|
|
|
|
|
<Parameters />
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</SelectCommand>
|
|
|
|
|
<UpdateCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>UPDATE [dbo].[Project] SET [ProjectID] = @ProjectID, [ContactID] = @ContactID, [ProjectRef] = @ProjectRef, [ProjectTitle] = @ProjectTitle, [DateStart] = @DateStart, [DateEnd] = @DateEnd, [ClientName] = @ClientName, [IsArchived] = @IsArchived WHERE (([ProjectID] = @Original_ProjectID) AND ([ContactID] = @Original_ContactID) AND ((@IsNull_ProjectRef = 1 AND [ProjectRef] IS NULL) OR ([ProjectRef] = @Original_ProjectRef)) AND ([ProjectTitle] = @Original_ProjectTitle) AND ((@IsNull_DateStart = 1 AND [DateStart] IS NULL) OR ([DateStart] = @Original_DateStart)) AND ((@IsNull_DateEnd = 1 AND [DateEnd] IS NULL) OR ([DateEnd] = @Original_DateEnd)) AND ((@IsNull_ClientName = 1 AND [ClientName] IS NULL) OR ([ClientName] = @Original_ClientName)) AND ([IsArchived] = @Original_IsArchived));
|
|
|
|
|
SELECT ProjectID, ContactID, ProjectRef, ProjectTitle, DateStart, DateEnd, ClientName, IsArchived FROM Project WHERE (ProjectID = @ProjectID)</CommandText>
|
|
|
|
|
<Parameters>
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProjectID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProjectID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ContactID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ContactID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ProjectRef" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ProjectRef" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ProjectTitle" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ProjectTitle" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DateStart" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateStart" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DateEnd" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateEnd" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ClientName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ClientName" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsArchived" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsArchived" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProjectID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProjectID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ContactID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ContactID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProjectRef" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProjectRef" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_ProjectRef" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ProjectRef" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_ProjectTitle" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ProjectTitle" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DateStart" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DateStart" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DateStart" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateStart" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DateEnd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DateEnd" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DateEnd" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateEnd" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ClientName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientName" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_ClientName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ClientName" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsArchived" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsArchived" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
</Parameters>
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</UpdateCommand>
|
|
|
|
|
</DbSource>
|
|
|
|
|
</MainSource>
|
|
|
|
|
<Mappings>
|
|
|
|
|
<Mapping SourceColumn="ProjectID" DataSetColumn="ProjectID" />
|
|
|
|
|
<Mapping SourceColumn="ContactID" DataSetColumn="ContactID" />
|
|
|
|
|
<Mapping SourceColumn="ProjectRef" DataSetColumn="ProjectRef" />
|
|
|
|
|
<Mapping SourceColumn="ProjectTitle" DataSetColumn="ProjectTitle" />
|
|
|
|
|
<Mapping SourceColumn="DateStart" DataSetColumn="DateStart" />
|
|
|
|
|
<Mapping SourceColumn="DateEnd" DataSetColumn="DateEnd" />
|
|
|
|
|
<Mapping SourceColumn="ClientName" DataSetColumn="ClientName" />
|
|
|
|
|
<Mapping SourceColumn="IsArchived" DataSetColumn="IsArchived" />
|
|
|
|
|
</Mappings>
|
|
|
|
|
<Sources />
|
|
|
|
|
</TableAdapter>
|
|
|
|
|
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProjectJobTableAdapter" GeneratorDataComponentClassName="ProjectJobTableAdapter" Name="ProjectJob" UserDataComponentName="ProjectJobTableAdapter">
|
|
|
|
|
<MainSource>
|
|
|
|
|
<DbSource ConnectionRef="BealeEngConnectionString (Settings)" DbObjectName="BealeEng.dbo.ProjectJob" 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">
|
|
|
|
|
<DeleteCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>DELETE FROM [dbo].[ProjectJob] WHERE (([ProjectJobID] = @Original_ProjectJobID) AND ([ProjectID] = @Original_ProjectID) AND ([ContactID] = @Original_ContactID) AND ([JobNumber] = @Original_JobNumber) AND ((@IsNull_JobTitle = 1 AND [JobTitle] IS NULL) OR ([JobTitle] = @Original_JobTitle)) AND ((@IsNull_JobDescription = 1 AND [JobDescription] IS NULL) OR ([JobDescription] = @Original_JobDescription)) AND ((@IsNull_DateStart = 1 AND [DateStart] IS NULL) OR ([DateStart] = @Original_DateStart)) AND ((@IsNull_DateEnd = 1 AND [DateEnd] IS NULL) OR ([DateEnd] = @Original_DateEnd)) AND ((@IsNull_ShareBob = 1 AND [ShareBob] IS NULL) OR ([ShareBob] = @Original_ShareBob)) AND ((@IsNull_ShareJohn = 1 AND [ShareJohn] IS NULL) OR ([ShareJohn] = @Original_ShareJohn)) AND ([IsArchived] = @Original_IsArchived))</CommandText>
|
|
|
|
|
<Parameters>
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProjectJobID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProjectJobID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProjectID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProjectID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ContactID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ContactID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_JobNumber" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="JobNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_JobTitle" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="JobTitle" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_JobTitle" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="JobTitle" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_JobDescription" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="JobDescription" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_JobDescription" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="JobDescription" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DateStart" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DateStart" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DateStart" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateStart" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DateEnd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DateEnd" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DateEnd" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateEnd" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ShareBob" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ShareBob" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_ShareBob" Precision="9" ProviderType="Decimal" Scale="8" Size="0" SourceColumn="ShareBob" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ShareJohn" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ShareJohn" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_ShareJohn" Precision="9" ProviderType="Decimal" Scale="8" Size="0" SourceColumn="ShareJohn" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsArchived" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsArchived" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
</Parameters>
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</DeleteCommand>
|
|
|
|
|
<InsertCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>INSERT INTO [dbo].[ProjectJob] ([ProjectID], [ContactID], [JobNumber], [JobTitle], [JobDescription], [DateStart], [DateEnd], [ShareBob], [ShareJohn], [IsArchived]) VALUES (@ProjectID, @ContactID, @JobNumber, @JobTitle, @JobDescription, @DateStart, @DateEnd, @ShareBob, @ShareJohn, @IsArchived);
|
|
|
|
|
SELECT ProjectJobID, ProjectID, ContactID, JobNumber, JobTitle, JobDescription, DateStart, DateEnd, ShareBob, ShareJohn, IsArchived FROM ProjectJob WHERE (ProjectJobID = SCOPE_IDENTITY())</CommandText>
|
|
|
|
|
<Parameters>
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProjectID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProjectID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ContactID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ContactID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@JobNumber" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="JobNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@JobTitle" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="JobTitle" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@JobDescription" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="JobDescription" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DateStart" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateStart" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DateEnd" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateEnd" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@ShareBob" Precision="9" ProviderType="Decimal" Scale="8" Size="0" SourceColumn="ShareBob" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@ShareJohn" Precision="9" ProviderType="Decimal" Scale="8" Size="0" SourceColumn="ShareJohn" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsArchived" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsArchived" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
</Parameters>
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</InsertCommand>
|
|
|
|
|
<SelectCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>SELECT ProjectJobID, ProjectID, ContactID, JobNumber, JobTitle, JobDescription, DateStart, DateEnd, ShareBob, ShareJohn, IsArchived FROM dbo.ProjectJob</CommandText>
|
|
|
|
|
<Parameters />
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</SelectCommand>
|
|
|
|
|
<UpdateCommand>
|
|
|
|
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
|
|
|
|
<CommandText>UPDATE [dbo].[ProjectJob] SET [ProjectID] = @ProjectID, [ContactID] = @ContactID, [JobNumber] = @JobNumber, [JobTitle] = @JobTitle, [JobDescription] = @JobDescription, [DateStart] = @DateStart, [DateEnd] = @DateEnd, [ShareBob] = @ShareBob, [ShareJohn] = @ShareJohn, [IsArchived] = @IsArchived WHERE (([ProjectJobID] = @Original_ProjectJobID) AND ([ProjectID] = @Original_ProjectID) AND ([ContactID] = @Original_ContactID) AND ([JobNumber] = @Original_JobNumber) AND ((@IsNull_JobTitle = 1 AND [JobTitle] IS NULL) OR ([JobTitle] = @Original_JobTitle)) AND ((@IsNull_JobDescription = 1 AND [JobDescription] IS NULL) OR ([JobDescription] = @Original_JobDescription)) AND ((@IsNull_DateStart = 1 AND [DateStart] IS NULL) OR ([DateStart] = @Original_DateStart)) AND ((@IsNull_DateEnd = 1 AND [DateEnd] IS NULL) OR ([DateEnd] = @Original_DateEnd)) AND ((@IsNull_ShareBob = 1 AND [ShareBob] IS NULL) OR ([ShareBob] = @Original_ShareBob)) AND ((@IsNull_ShareJohn = 1 AND [ShareJohn] IS NULL) OR ([ShareJohn] = @Original_ShareJohn)) AND ([IsArchived] = @Original_IsArchived));
|
|
|
|
|
SELECT ProjectJobID, ProjectID, ContactID, JobNumber, JobTitle, JobDescription, DateStart, DateEnd, ShareBob, ShareJohn, IsArchived FROM ProjectJob WHERE (ProjectJobID = @ProjectJobID)</CommandText>
|
|
|
|
|
<Parameters>
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProjectID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProjectID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ContactID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ContactID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@JobNumber" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="JobNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@JobTitle" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="JobTitle" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@JobDescription" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="JobDescription" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DateStart" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateStart" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DateEnd" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateEnd" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@ShareBob" Precision="9" ProviderType="Decimal" Scale="8" Size="0" SourceColumn="ShareBob" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@ShareJohn" Precision="9" ProviderType="Decimal" Scale="8" Size="0" SourceColumn="ShareJohn" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsArchived" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsArchived" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProjectJobID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProjectJobID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProjectID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProjectID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ContactID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ContactID" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_JobNumber" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="JobNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_JobTitle" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="JobTitle" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_JobTitle" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="JobTitle" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_JobDescription" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="JobDescription" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_JobDescription" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="JobDescription" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DateStart" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DateStart" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DateStart" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateStart" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DateEnd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DateEnd" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DateEnd" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateEnd" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ShareBob" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ShareBob" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_ShareBob" Precision="9" ProviderType="Decimal" Scale="8" Size="0" SourceColumn="ShareBob" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ShareJohn" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ShareJohn" SourceColumnNullMapping="true" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_ShareJohn" Precision="9" ProviderType="Decimal" Scale="8" Size="0" SourceColumn="ShareJohn" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsArchived" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsArchived" SourceColumnNullMapping="false" SourceVersion="Original" />
|
|
|
|
|
<Parameter AllowDbNull="false" AutogeneratedName="ProjectJobID" ColumnName="ProjectJobID" DataSourceName="BealeEng.dbo.ProjectJob" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ProjectJobID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ProjectJobID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
|
|
|
|
</Parameters>
|
|
|
|
|
</DbCommand>
|
|
|
|
|
</UpdateCommand>
|
|
|
|
|
</DbSource>
|
|
|
|
|
</MainSource>
|
|
|
|
|
<Mappings>
|
|
|
|
|
<Mapping SourceColumn="ProjectJobID" DataSetColumn="ProjectJobID" />
|
|
|
|
|
<Mapping SourceColumn="ProjectID" DataSetColumn="ProjectID" />
|
|
|
|
|
<Mapping SourceColumn="ContactID" DataSetColumn="ContactID" />
|
|
|
|
|
<Mapping SourceColumn="JobNumber" DataSetColumn="JobNumber" />
|
|
|
|
|
<Mapping SourceColumn="JobTitle" DataSetColumn="JobTitle" />
|
|
|
|
|
<Mapping SourceColumn="JobDescription" DataSetColumn="JobDescription" />
|
|
|
|
|
<Mapping SourceColumn="DateStart" DataSetColumn="DateStart" />
|
|
|
|
|
<Mapping SourceColumn="DateEnd" DataSetColumn="DateEnd" />
|
|
|
|
|
<Mapping SourceColumn="ShareBob" DataSetColumn="ShareBob" />
|
|
|
|
|
<Mapping SourceColumn="ShareJohn" DataSetColumn="ShareJohn" />
|
|
|
|
|
<Mapping SourceColumn="IsArchived" DataSetColumn="IsArchived" />
|
|
|
|
|
</Mappings>
|
|
|
|
|
<Sources />
|
|
|
|
|
</TableAdapter>
|
|
|
|
|
</Tables>
|
|
|
|
|
<Sources />
|
|
|
|
|
</DataSource>
|
|
|
|
|
</xs:appinfo>
|
|
|
|
|
</xs:annotation>
|
|
|
|
|
<xs:element name="BealeEngDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="BealeEngDataSet" msprop:Generator_UserDSName="BealeEngDataSet">
|
|
|
|
|
<xs:complexType>
|
|
|
|
|
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
|
|
|
|
<xs:element name="ClientPurchaseOrder" msprop:Generator_TableClassName="ClientPurchaseOrderDataTable" msprop:Generator_TableVarName="tableClientPurchaseOrder" msprop:Generator_TablePropName="ClientPurchaseOrder" msprop:Generator_RowDeletingName="ClientPurchaseOrderRowDeleting" msprop:Generator_RowChangingName="ClientPurchaseOrderRowChanging" msprop:Generator_RowEvHandlerName="ClientPurchaseOrderRowChangeEventHandler" msprop:Generator_RowDeletedName="ClientPurchaseOrderRowDeleted" msprop:Generator_UserTableName="ClientPurchaseOrder" msprop:Generator_RowChangedName="ClientPurchaseOrderRowChanged" msprop:Generator_RowEvArgName="ClientPurchaseOrderRowChangeEvent" msprop:Generator_RowClassName="ClientPurchaseOrderRow">
|
|
|
|
|
<xs:complexType>
|
|
|
|
|
<xs:sequence>
|
|
|
|
|
<xs:element name="ClientPurchaseOrderID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnClientPurchaseOrderID" msprop:Generator_ColumnPropNameInRow="ClientPurchaseOrderID" msprop:Generator_ColumnPropNameInTable="ClientPurchaseOrderIDColumn" msprop:Generator_UserColumnName="ClientPurchaseOrderID" type="xs:int" />
|
|
|
|
|
<xs:element name="PurchaseOrderDate" msprop:Generator_ColumnVarNameInTable="columnPurchaseOrderDate" msprop:Generator_ColumnPropNameInRow="PurchaseOrderDate" msprop:Generator_ColumnPropNameInTable="PurchaseOrderDateColumn" msprop:Generator_UserColumnName="PurchaseOrderDate" type="xs:dateTime" />
|
|
|
|
|
<xs:element name="ContactID" msprop:Generator_ColumnVarNameInTable="columnContactID" msprop:Generator_ColumnPropNameInRow="ContactID" msprop:Generator_ColumnPropNameInTable="ContactIDColumn" msprop:Generator_UserColumnName="ContactID" type="xs:int" />
|
|
|
|
|
<xs:element name="ClientReference" msprop:Generator_ColumnVarNameInTable="columnClientReference" msprop:Generator_ColumnPropNameInRow="ClientReference" msprop:Generator_ColumnPropNameInTable="ClientReferenceColumn" msprop:Generator_UserColumnName="ClientReference">
|
|
|
|
|
<xs:simpleType>
|
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
|
<xs:maxLength value="50" />
|
|
|
|
|
</xs:restriction>
|
|
|
|
|
</xs:simpleType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="RequestorEmail" msprop:Generator_ColumnVarNameInTable="columnRequestorEmail" msprop:Generator_ColumnPropNameInRow="RequestorEmail" msprop:Generator_ColumnPropNameInTable="RequestorEmailColumn" msprop:Generator_UserColumnName="RequestorEmail" minOccurs="0">
|
|
|
|
|
<xs:simpleType>
|
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
|
<xs:maxLength value="150" />
|
|
|
|
|
</xs:restriction>
|
|
|
|
|
</xs:simpleType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="OrderTotal" msprop:Generator_ColumnVarNameInTable="columnOrderTotal" msprop:Generator_ColumnPropNameInRow="OrderTotal" msprop:Generator_ColumnPropNameInTable="OrderTotalColumn" msprop:Generator_UserColumnName="OrderTotal" type="xs:decimal" minOccurs="0" />
|
|
|
|
|
<xs:element name="IsClosed" msprop:Generator_ColumnVarNameInTable="columnIsClosed" msprop:Generator_ColumnPropNameInRow="IsClosed" msprop:Generator_ColumnPropNameInTable="IsClosedColumn" msprop:Generator_UserColumnName="IsClosed" type="xs:boolean" />
|
|
|
|
|
</xs:sequence>
|
|
|
|
|
</xs:complexType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="ClientPurchaseOrderLine" msprop:Generator_TableClassName="ClientPurchaseOrderLineDataTable" msprop:Generator_TableVarName="tableClientPurchaseOrderLine" msprop:Generator_TablePropName="ClientPurchaseOrderLine" msprop:Generator_RowDeletingName="ClientPurchaseOrderLineRowDeleting" msprop:Generator_RowChangingName="ClientPurchaseOrderLineRowChanging" msprop:Generator_RowEvHandlerName="ClientPurchaseOrderLineRowChangeEventHandler" msprop:Generator_RowDeletedName="ClientPurchaseOrderLineRowDeleted" msprop:Generator_UserTableName="ClientPurchaseOrderLine" msprop:Generator_RowChangedName="ClientPurchaseOrderLineRowChanged" msprop:Generator_RowEvArgName="ClientPurchaseOrderLineRowChangeEvent" msprop:Generator_RowClassName="ClientPurchaseOrderLineRow">
|
|
|
|
|
<xs:complexType>
|
|
|
|
|
<xs:sequence>
|
|
|
|
|
<xs:element name="ClientPurchaseOrderLineID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnClientPurchaseOrderLineID" msprop:Generator_ColumnPropNameInRow="ClientPurchaseOrderLineID" msprop:Generator_ColumnPropNameInTable="ClientPurchaseOrderLineIDColumn" msprop:Generator_UserColumnName="ClientPurchaseOrderLineID" type="xs:int" />
|
|
|
|
|
<xs:element name="ClientPurchaseOrderID" msprop:Generator_ColumnVarNameInTable="columnClientPurchaseOrderID" msprop:Generator_ColumnPropNameInRow="ClientPurchaseOrderID" msprop:Generator_ColumnPropNameInTable="ClientPurchaseOrderIDColumn" msprop:Generator_UserColumnName="ClientPurchaseOrderID" type="xs:int" />
|
|
|
|
|
<xs:element name="LineNumber" msprop:Generator_ColumnVarNameInTable="columnLineNumber" msprop:Generator_ColumnPropNameInRow="LineNumber" msprop:Generator_ColumnPropNameInTable="LineNumberColumn" msprop:Generator_UserColumnName="LineNumber" type="xs:int" />
|
|
|
|
|
<xs:element name="ProjectJobID" msprop:Generator_ColumnVarNameInTable="columnProjectJobID" msprop:Generator_ColumnPropNameInRow="ProjectJobID" msprop:Generator_ColumnPropNameInTable="ProjectJobIDColumn" msprop:Generator_UserColumnName="ProjectJobID" type="xs:int" />
|
|
|
|
|
<xs:element name="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" msprop:Generator_UserColumnName="Description" minOccurs="0">
|
|
|
|
|
<xs:simpleType>
|
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
|
<xs:maxLength value="250" />
|
|
|
|
|
</xs:restriction>
|
|
|
|
|
</xs:simpleType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="LineNetAmount" msprop:Generator_ColumnVarNameInTable="columnLineNetAmount" msprop:Generator_ColumnPropNameInRow="LineNetAmount" msprop:Generator_ColumnPropNameInTable="LineNetAmountColumn" msprop:Generator_UserColumnName="LineNetAmount" type="xs:decimal" />
|
|
|
|
|
</xs:sequence>
|
|
|
|
|
</xs:complexType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="ClientPurchaseOrderLineSalesInvoice" msprop:Generator_TableClassName="ClientPurchaseOrderLineSalesInvoiceDataTable" msprop:Generator_TableVarName="tableClientPurchaseOrderLineSalesInvoice" msprop:Generator_TablePropName="ClientPurchaseOrderLineSalesInvoice" msprop:Generator_RowDeletingName="ClientPurchaseOrderLineSalesInvoiceRowDeleting" msprop:Generator_RowChangingName="ClientPurchaseOrderLineSalesInvoiceRowChanging" msprop:Generator_RowEvHandlerName="ClientPurchaseOrderLineSalesInvoiceRowChangeEventHandler" msprop:Generator_RowDeletedName="ClientPurchaseOrderLineSalesInvoiceRowDeleted" msprop:Generator_UserTableName="ClientPurchaseOrderLineSalesInvoice" msprop:Generator_RowChangedName="ClientPurchaseOrderLineSalesInvoiceRowChanged" msprop:Generator_RowEvArgName="ClientPurchaseOrderLineSalesInvoiceRowChangeEvent" msprop:Generator_RowClassName="ClientPurchaseOrderLineSalesInvoiceRow">
|
|
|
|
|
<xs:complexType>
|
|
|
|
|
<xs:sequence>
|
|
|
|
|
<xs:element name="ClientPurchaseOrderLineID" msprop:Generator_ColumnVarNameInTable="columnClientPurchaseOrderLineID" msprop:Generator_ColumnPropNameInRow="ClientPurchaseOrderLineID" msprop:Generator_ColumnPropNameInTable="ClientPurchaseOrderLineIDColumn" msprop:Generator_UserColumnName="ClientPurchaseOrderLineID" type="xs:int" />
|
|
|
|
|
<xs:element name="SaleInvoiceID" msprop:Generator_ColumnVarNameInTable="columnSaleInvoiceID" msprop:Generator_ColumnPropNameInRow="SaleInvoiceID" msprop:Generator_ColumnPropNameInTable="SaleInvoiceIDColumn" msprop:Generator_UserColumnName="SaleInvoiceID" type="xs:int" />
|
|
|
|
|
<xs:element name="IsApproved" msprop:Generator_ColumnVarNameInTable="columnIsApproved" msprop:Generator_ColumnPropNameInRow="IsApproved" msprop:Generator_ColumnPropNameInTable="IsApprovedColumn" msprop:Generator_UserColumnName="IsApproved" type="xs:boolean" />
|
|
|
|
|
</xs:sequence>
|
|
|
|
|
</xs:complexType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="Contact" msprop:Generator_TableClassName="ContactDataTable" msprop:Generator_TableVarName="tableContact" msprop:Generator_TablePropName="Contact" msprop:Generator_RowDeletingName="ContactRowDeleting" msprop:Generator_RowChangingName="ContactRowChanging" msprop:Generator_RowEvHandlerName="ContactRowChangeEventHandler" msprop:Generator_RowDeletedName="ContactRowDeleted" msprop:Generator_UserTableName="Contact" msprop:Generator_RowChangedName="ContactRowChanged" msprop:Generator_RowEvArgName="ContactRowChangeEvent" msprop:Generator_RowClassName="ContactRow">
|
|
|
|
|
<xs:complexType>
|
|
|
|
|
<xs:sequence>
|
|
|
|
|
<xs:element name="ContactID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnContactID" msprop:Generator_ColumnPropNameInRow="ContactID" msprop:Generator_ColumnPropNameInTable="ContactIDColumn" msprop:Generator_UserColumnName="ContactID" type="xs:int" />
|
|
|
|
|
<xs:element name="ContactName" msprop:Generator_ColumnVarNameInTable="columnContactName" msprop:Generator_ColumnPropNameInRow="ContactName" msprop:Generator_ColumnPropNameInTable="ContactNameColumn" msprop:Generator_UserColumnName="ContactName">
|
|
|
|
|
<xs:simpleType>
|
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
|
<xs:maxLength value="100" />
|
|
|
|
|
</xs:restriction>
|
|
|
|
|
</xs:simpleType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="EmailAddress" msprop:Generator_ColumnVarNameInTable="columnEmailAddress" msprop:Generator_ColumnPropNameInRow="EmailAddress" msprop:Generator_ColumnPropNameInTable="EmailAddressColumn" msprop:Generator_UserColumnName="EmailAddress" minOccurs="0">
|
|
|
|
|
<xs:simpleType>
|
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
|
<xs:maxLength value="150" />
|
|
|
|
|
</xs:restriction>
|
|
|
|
|
</xs:simpleType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="PrimaryPersonFirstName" msprop:Generator_ColumnVarNameInTable="columnPrimaryPersonFirstName" msprop:Generator_ColumnPropNameInRow="PrimaryPersonFirstName" msprop:Generator_ColumnPropNameInTable="PrimaryPersonFirstNameColumn" msprop:Generator_UserColumnName="PrimaryPersonFirstName" minOccurs="0">
|
|
|
|
|
<xs:simpleType>
|
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
|
<xs:maxLength value="100" />
|
|
|
|
|
</xs:restriction>
|
|
|
|
|
</xs:simpleType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="PrimaryPersonSurname" msprop:Generator_ColumnVarNameInTable="columnPrimaryPersonSurname" msprop:Generator_ColumnPropNameInRow="PrimaryPersonSurname" msprop:Generator_ColumnPropNameInTable="PrimaryPersonSurnameColumn" msprop:Generator_UserColumnName="PrimaryPersonSurname" minOccurs="0">
|
|
|
|
|
<xs:simpleType>
|
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
|
<xs:maxLength value="100" />
|
|
|
|
|
</xs:restriction>
|
|
|
|
|
</xs:simpleType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="PrimaryPersonEmail" msprop:Generator_ColumnVarNameInTable="columnPrimaryPersonEmail" msprop:Generator_ColumnPropNameInRow="PrimaryPersonEmail" msprop:Generator_ColumnPropNameInTable="PrimaryPersonEmailColumn" msprop:Generator_UserColumnName="PrimaryPersonEmail" minOccurs="0">
|
|
|
|
|
<xs:simpleType>
|
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
|
<xs:maxLength value="100" />
|
|
|
|
|
</xs:restriction>
|
|
|
|
|
</xs:simpleType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="POAddressLine1" msprop:Generator_ColumnVarNameInTable="columnPOAddressLine1" msprop:Generator_ColumnPropNameInRow="POAddressLine1" msprop:Generator_ColumnPropNameInTable="POAddressLine1Column" msprop:Generator_UserColumnName="POAddressLine1" minOccurs="0">
|
|
|
|
|
<xs:simpleType>
|
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
|
<xs:maxLength value="100" />
|
|
|
|
|
</xs:restriction>
|
|
|
|
|
</xs:simpleType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="POAddressLine2" msprop:Generator_ColumnVarNameInTable="columnPOAddressLine2" msprop:Generator_ColumnPropNameInRow="POAddressLine2" msprop:Generator_ColumnPropNameInTable="POAddressLine2Column" msprop:Generator_UserColumnName="POAddressLine2" minOccurs="0">
|
|
|
|
|
<xs:simpleType>
|
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
|
<xs:maxLength value="100" />
|
|
|
|
|
</xs:restriction>
|
|
|
|
|
</xs:simpleType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="POAddressLine3" msprop:Generator_ColumnVarNameInTable="columnPOAddressLine3" msprop:Generator_ColumnPropNameInRow="POAddressLine3" msprop:Generator_ColumnPropNameInTable="POAddressLine3Column" msprop:Generator_UserColumnName="POAddressLine3" minOccurs="0">
|
|
|
|
|
<xs:simpleType>
|
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
|
<xs:maxLength value="100" />
|
|
|
|
|
</xs:restriction>
|
|
|
|
|
</xs:simpleType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="POAddressLine4" msprop:Generator_ColumnVarNameInTable="columnPOAddressLine4" msprop:Generator_ColumnPropNameInRow="POAddressLine4" msprop:Generator_ColumnPropNameInTable="POAddressLine4Column" msprop:Generator_UserColumnName="POAddressLine4" minOccurs="0">
|
|
|
|
|
<xs:simpleType>
|
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
|
<xs:maxLength value="100" />
|
|
|
|
|
</xs:restriction>
|
|
|
|
|
</xs:simpleType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="POAddressCity" msprop:Generator_ColumnVarNameInTable="columnPOAddressCity" msprop:Generator_ColumnPropNameInRow="POAddressCity" msprop:Generator_ColumnPropNameInTable="POAddressCityColumn" msprop:Generator_UserColumnName="POAddressCity" minOccurs="0">
|
|
|
|
|
<xs:simpleType>
|
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
|
<xs:maxLength value="100" />
|
|
|
|
|
</xs:restriction>
|
|
|
|
|
</xs:simpleType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="POAddressRegion" msprop:Generator_ColumnVarNameInTable="columnPOAddressRegion" msprop:Generator_ColumnPropNameInRow="POAddressRegion" msprop:Generator_ColumnPropNameInTable="POAddressRegionColumn" msprop:Generator_UserColumnName="POAddressRegion" minOccurs="0">
|
|
|
|
|
<xs:simpleType>
|
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
|
<xs:maxLength value="100" />
|
|
|
|
|
</xs:restriction>
|
|
|
|
|
</xs:simpleType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="POAddressPostalCode" msprop:Generator_ColumnVarNameInTable="columnPOAddressPostalCode" msprop:Generator_ColumnPropNameInRow="POAddressPostalCode" msprop:Generator_ColumnPropNameInTable="POAddressPostalCodeColumn" msprop:Generator_UserColumnName="POAddressPostalCode" minOccurs="0">
|
|
|
|
|
<xs:simpleType>
|
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
|
<xs:maxLength value="50" />
|
|
|
|
|
</xs:restriction>
|
|
|
|
|
</xs:simpleType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="POAddressCountry" msprop:Generator_ColumnVarNameInTable="columnPOAddressCountry" msprop:Generator_ColumnPropNameInRow="POAddressCountry" msprop:Generator_ColumnPropNameInTable="POAddressCountryColumn" msprop:Generator_UserColumnName="POAddressCountry" minOccurs="0">
|
|
|
|
|
<xs:simpleType>
|
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
|
<xs:maxLength value="100" />
|
|
|
|
|
</xs:restriction>
|
|
|
|
|
</xs:simpleType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
</xs:sequence>
|
|
|
|
|
</xs:complexType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="Project" msprop:Generator_TableClassName="ProjectDataTable" msprop:Generator_TableVarName="tableProject" msprop:Generator_TablePropName="Project" msprop:Generator_RowDeletingName="ProjectRowDeleting" msprop:Generator_RowChangingName="ProjectRowChanging" msprop:Generator_RowEvHandlerName="ProjectRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectRowDeleted" msprop:Generator_UserTableName="Project" msprop:Generator_RowChangedName="ProjectRowChanged" msprop:Generator_RowEvArgName="ProjectRowChangeEvent" msprop:Generator_RowClassName="ProjectRow">
|
|
|
|
|
<xs:complexType>
|
|
|
|
|
<xs:sequence>
|
|
|
|
|
<xs:element name="ProjectID" msprop:Generator_ColumnVarNameInTable="columnProjectID" msprop:Generator_ColumnPropNameInRow="ProjectID" msprop:Generator_ColumnPropNameInTable="ProjectIDColumn" msprop:Generator_UserColumnName="ProjectID" type="xs:int" />
|
|
|
|
|
<xs:element name="ContactID" msprop:Generator_ColumnVarNameInTable="columnContactID" msprop:Generator_ColumnPropNameInRow="ContactID" msprop:Generator_ColumnPropNameInTable="ContactIDColumn" msprop:Generator_UserColumnName="ContactID" type="xs:int" />
|
|
|
|
|
<xs:element name="ProjectRef" msprop:Generator_ColumnVarNameInTable="columnProjectRef" msprop:Generator_ColumnPropNameInRow="ProjectRef" msprop:Generator_ColumnPropNameInTable="ProjectRefColumn" msprop:Generator_UserColumnName="ProjectRef" minOccurs="0">
|
|
|
|
|
<xs:simpleType>
|
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
|
<xs:maxLength value="16" />
|
|
|
|
|
</xs:restriction>
|
|
|
|
|
</xs:simpleType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="ProjectTitle" msprop:Generator_ColumnVarNameInTable="columnProjectTitle" msprop:Generator_ColumnPropNameInRow="ProjectTitle" msprop:Generator_ColumnPropNameInTable="ProjectTitleColumn" msprop:Generator_UserColumnName="ProjectTitle">
|
|
|
|
|
<xs:simpleType>
|
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
|
<xs:maxLength value="250" />
|
|
|
|
|
</xs:restriction>
|
|
|
|
|
</xs:simpleType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="DateStart" msprop:Generator_ColumnVarNameInTable="columnDateStart" msprop:Generator_ColumnPropNameInRow="DateStart" msprop:Generator_ColumnPropNameInTable="DateStartColumn" msprop:Generator_UserColumnName="DateStart" type="xs:dateTime" minOccurs="0" />
|
|
|
|
|
<xs:element name="DateEnd" msprop:Generator_ColumnVarNameInTable="columnDateEnd" msprop:Generator_ColumnPropNameInRow="DateEnd" msprop:Generator_ColumnPropNameInTable="DateEndColumn" msprop:Generator_UserColumnName="DateEnd" type="xs:dateTime" minOccurs="0" />
|
|
|
|
|
<xs:element name="ClientName" msprop:Generator_ColumnVarNameInTable="columnClientName" msprop:Generator_ColumnPropNameInRow="ClientName" msprop:Generator_ColumnPropNameInTable="ClientNameColumn" msprop:Generator_UserColumnName="ClientName" minOccurs="0">
|
|
|
|
|
<xs:simpleType>
|
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
|
<xs:maxLength value="50" />
|
|
|
|
|
</xs:restriction>
|
|
|
|
|
</xs:simpleType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="IsArchived" msprop:Generator_ColumnVarNameInTable="columnIsArchived" msprop:Generator_ColumnPropNameInRow="IsArchived" msprop:Generator_ColumnPropNameInTable="IsArchivedColumn" msprop:Generator_UserColumnName="IsArchived" type="xs:boolean" />
|
|
|
|
|
</xs:sequence>
|
|
|
|
|
</xs:complexType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="ProjectJob" msprop:Generator_TableClassName="ProjectJobDataTable" msprop:Generator_TableVarName="tableProjectJob" msprop:Generator_TablePropName="ProjectJob" msprop:Generator_RowDeletingName="ProjectJobRowDeleting" msprop:Generator_RowChangingName="ProjectJobRowChanging" msprop:Generator_RowEvHandlerName="ProjectJobRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectJobRowDeleted" msprop:Generator_UserTableName="ProjectJob" msprop:Generator_RowChangedName="ProjectJobRowChanged" msprop:Generator_RowEvArgName="ProjectJobRowChangeEvent" msprop:Generator_RowClassName="ProjectJobRow">
|
|
|
|
|
<xs:complexType>
|
|
|
|
|
<xs:sequence>
|
|
|
|
|
<xs:element name="ProjectJobID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnProjectJobID" msprop:Generator_ColumnPropNameInRow="ProjectJobID" msprop:Generator_ColumnPropNameInTable="ProjectJobIDColumn" msprop:Generator_UserColumnName="ProjectJobID" type="xs:int" />
|
|
|
|
|
<xs:element name="ProjectID" msprop:Generator_ColumnVarNameInTable="columnProjectID" msprop:Generator_ColumnPropNameInRow="ProjectID" msprop:Generator_ColumnPropNameInTable="ProjectIDColumn" msprop:Generator_UserColumnName="ProjectID" type="xs:int" />
|
|
|
|
|
<xs:element name="ContactID" msprop:Generator_ColumnVarNameInTable="columnContactID" msprop:Generator_ColumnPropNameInRow="ContactID" msprop:Generator_ColumnPropNameInTable="ContactIDColumn" msprop:Generator_UserColumnName="ContactID" type="xs:int" />
|
|
|
|
|
<xs:element name="JobNumber" msprop:Generator_ColumnVarNameInTable="columnJobNumber" msprop:Generator_ColumnPropNameInRow="JobNumber" msprop:Generator_ColumnPropNameInTable="JobNumberColumn" msprop:Generator_UserColumnName="JobNumber">
|
|
|
|
|
<xs:simpleType>
|
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
|
<xs:maxLength value="7" />
|
|
|
|
|
</xs:restriction>
|
|
|
|
|
</xs:simpleType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="JobTitle" msprop:Generator_ColumnVarNameInTable="columnJobTitle" msprop:Generator_ColumnPropNameInRow="JobTitle" msprop:Generator_ColumnPropNameInTable="JobTitleColumn" msprop:Generator_UserColumnName="JobTitle" minOccurs="0">
|
|
|
|
|
<xs:simpleType>
|
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
|
<xs:maxLength value="250" />
|
|
|
|
|
</xs:restriction>
|
|
|
|
|
</xs:simpleType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="JobDescription" msprop:Generator_ColumnVarNameInTable="columnJobDescription" msprop:Generator_ColumnPropNameInRow="JobDescription" msprop:Generator_ColumnPropNameInTable="JobDescriptionColumn" msprop:Generator_UserColumnName="JobDescription" minOccurs="0">
|
|
|
|
|
<xs:simpleType>
|
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
|
<xs:maxLength value="500" />
|
|
|
|
|
</xs:restriction>
|
|
|
|
|
</xs:simpleType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:element name="DateStart" msprop:Generator_ColumnVarNameInTable="columnDateStart" msprop:Generator_ColumnPropNameInRow="DateStart" msprop:Generator_ColumnPropNameInTable="DateStartColumn" msprop:Generator_UserColumnName="DateStart" type="xs:dateTime" minOccurs="0" />
|
|
|
|
|
<xs:element name="DateEnd" msprop:Generator_ColumnVarNameInTable="columnDateEnd" msprop:Generator_ColumnPropNameInRow="DateEnd" msprop:Generator_ColumnPropNameInTable="DateEndColumn" msprop:Generator_UserColumnName="DateEnd" type="xs:dateTime" minOccurs="0" />
|
|
|
|
|
<xs:element name="ShareBob" msprop:Generator_ColumnVarNameInTable="columnShareBob" msprop:Generator_ColumnPropNameInRow="ShareBob" msprop:Generator_ColumnPropNameInTable="ShareBobColumn" msprop:Generator_UserColumnName="ShareBob" type="xs:decimal" minOccurs="0" />
|
|
|
|
|
<xs:element name="ShareJohn" msprop:Generator_ColumnVarNameInTable="columnShareJohn" msprop:Generator_ColumnPropNameInRow="ShareJohn" msprop:Generator_ColumnPropNameInTable="ShareJohnColumn" msprop:Generator_UserColumnName="ShareJohn" type="xs:decimal" minOccurs="0" />
|
|
|
|
|
<xs:element name="IsArchived" msprop:Generator_ColumnVarNameInTable="columnIsArchived" msprop:Generator_ColumnPropNameInRow="IsArchived" msprop:Generator_ColumnPropNameInTable="IsArchivedColumn" msprop:Generator_UserColumnName="IsArchived" type="xs:boolean" />
|
|
|
|
|
</xs:sequence>
|
|
|
|
|
</xs:complexType>
|
|
|
|
|
</xs:element>
|
|
|
|
|
</xs:choice>
|
|
|
|
|
</xs:complexType>
|
|
|
|
|
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
|
|
|
|
|
<xs:selector xpath=".//mstns:ClientPurchaseOrder" />
|
|
|
|
|
<xs:field xpath="mstns:ClientPurchaseOrderID" />
|
|
|
|
|
</xs:unique>
|
|
|
|
|
<xs:unique name="ClientPurchaseOrderLine_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
|
|
|
|
<xs:selector xpath=".//mstns:ClientPurchaseOrderLine" />
|
|
|
|
|
<xs:field xpath="mstns:ClientPurchaseOrderLineID" />
|
|
|
|
|
</xs:unique>
|
|
|
|
|
<xs:unique name="ClientPurchaseOrderLineSalesInvoice_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
|
|
|
|
<xs:selector xpath=".//mstns:ClientPurchaseOrderLineSalesInvoice" />
|
|
|
|
|
<xs:field xpath="mstns:SaleInvoiceID" />
|
|
|
|
|
</xs:unique>
|
|
|
|
|
<xs:unique name="Contact_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
|
|
|
|
<xs:selector xpath=".//mstns:Contact" />
|
|
|
|
|
<xs:field xpath="mstns:ContactID" />
|
|
|
|
|
</xs:unique>
|
|
|
|
|
<xs:unique name="Project_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
|
|
|
|
<xs:selector xpath=".//mstns:Project" />
|
|
|
|
|
<xs:field xpath="mstns:ProjectID" />
|
|
|
|
|
</xs:unique>
|
|
|
|
|
<xs:unique name="ProjectJob_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
|
|
|
|
<xs:selector xpath=".//mstns:ProjectJob" />
|
|
|
|
|
<xs:field xpath="mstns:ProjectJobID" />
|
|
|
|
|
</xs:unique>
|
|
|
|
|
</xs:element>
|
|
|
|
|
<xs:annotation>
|
|
|
|
|
<xs:appinfo>
|
|
|
|
|
<msdata:Relationship name="FK_ClientPurchaseOrder_Contact" msdata:parent="Contact" msdata:child="ClientPurchaseOrder" msdata:parentkey="ContactID" msdata:childkey="ContactID" msprop:Generator_UserChildTable="ClientPurchaseOrder" msprop:Generator_ChildPropName="GetClientPurchaseOrderRows" msprop:Generator_UserRelationName="FK_ClientPurchaseOrder_Contact" msprop:Generator_RelationVarName="relationFK_ClientPurchaseOrder_Contact" msprop:Generator_UserParentTable="Contact" msprop:Generator_ParentPropName="ContactRow" />
|
|
|
|
|
<msdata:Relationship name="FK_ClientPurchaseOrderLine_ClientPurchaseOrder" msdata:parent="ClientPurchaseOrder" msdata:child="ClientPurchaseOrderLine" msdata:parentkey="ClientPurchaseOrderID" msdata:childkey="ClientPurchaseOrderID" msprop:Generator_UserChildTable="ClientPurchaseOrderLine" msprop:Generator_ChildPropName="GetClientPurchaseOrderLineRows" msprop:Generator_UserRelationName="FK_ClientPurchaseOrderLine_ClientPurchaseOrder" msprop:Generator_ParentPropName="ClientPurchaseOrderRow" msprop:Generator_RelationVarName="relationFK_ClientPurchaseOrderLine_ClientPurchaseOrder" msprop:Generator_UserParentTable="ClientPurchaseOrder" />
|
|
|
|
|
<msdata:Relationship name="FK_ClientPurchaseOrderLineSalesInvoice_ClientPurchaseOrderLine" msdata:parent="ClientPurchaseOrderLine" msdata:child="ClientPurchaseOrderLineSalesInvoice" msdata:parentkey="ClientPurchaseOrderLineID" msdata:childkey="ClientPurchaseOrderLineID" msprop:Generator_UserChildTable="ClientPurchaseOrderLineSalesInvoice" msprop:Generator_ChildPropName="GetClientPurchaseOrderLineSalesInvoiceRows" msprop:Generator_UserRelationName="FK_ClientPurchaseOrderLineSalesInvoice_ClientPurchaseOrderLine" msprop:Generator_ParentPropName="ClientPurchaseOrderLineRow" msprop:Generator_RelationVarName="relationFK_ClientPurchaseOrderLineSalesInvoice_ClientPurchaseOrderLine" msprop:Generator_UserParentTable="ClientPurchaseOrderLine" />
|
|
|
|
|
<msdata:Relationship name="FK_Project_Contact" msdata:parent="Contact" msdata:child="Project" msdata:parentkey="ContactID" msdata:childkey="ContactID" msprop:Generator_UserChildTable="Project" msprop:Generator_ChildPropName="GetProjectRows" msprop:Generator_UserRelationName="FK_Project_Contact" msprop:Generator_ParentPropName="ContactRow" msprop:Generator_RelationVarName="relationFK_Project_Contact" msprop:Generator_UserParentTable="Contact" />
|
|
|
|
|
<msdata:Relationship name="FK_ProjectJob_Contact" msdata:parent="Contact" msdata:child="ProjectJob" msdata:parentkey="ContactID" msdata:childkey="ContactID" msprop:Generator_UserChildTable="ProjectJob" msprop:Generator_ChildPropName="GetProjectJobRows" msprop:Generator_UserRelationName="FK_ProjectJob_Contact" msprop:Generator_ParentPropName="ContactRow" msprop:Generator_RelationVarName="relationFK_ProjectJob_Contact" msprop:Generator_UserParentTable="Contact" />
|
|
|
|
|
<msdata:Relationship name="FK_ProjectJob_Project" msdata:parent="Project" msdata:child="ProjectJob" msdata:parentkey="ProjectID" msdata:childkey="ProjectID" msprop:Generator_UserChildTable="ProjectJob" msprop:Generator_ChildPropName="GetProjectJobRows" msprop:Generator_UserRelationName="FK_ProjectJob_Project" msprop:Generator_ParentPropName="ProjectRow" msprop:Generator_RelationVarName="relationFK_ProjectJob_Project" msprop:Generator_UserParentTable="Project" />
|
|
|
|
|
</xs:appinfo>
|
|
|
|
|
</xs:annotation>
|
|
|
|
|
</xs:schema>
|