123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586 |
- <?xml version="1.0" encoding="utf-8"?>
- <xs:schema id="Prokatavto08DataSet" targetNamespace="http://tempuri.org/Prokatavto08DataSet.xsd" xmlns:mstns="http://tempuri.org/Prokatavto08DataSet.xsd" xmlns="http://tempuri.org/Prokatavto08DataSet.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="Prokatavto08ConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="Prokatavto08ConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Prokatavto08.Properties.Settings.GlobalReference.Default.Prokatavto08ConnectionString" Provider="System.Data.SqlClient" />
- </Connections>
- <Tables>
- <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="АвтомобилиTableAdapter" GeneratorDataComponentClassName="АвтомобилиTableAdapter" Name="Автомобили" UserDataComponentName="АвтомобилиTableAdapter">
- <MainSource>
- <DbSource ConnectionRef="Prokatavto08ConnectionString (Settings)" DbObjectName="Prokatavto08.dbo.Автомобили" 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].[Автомобили] WHERE (([Код_автомобиля] = @Original_Код_автомобиля) AND ((@IsNull_Марка_автомобиля = 1 AND [Марка_автомобиля] IS NULL) OR ([Марка_автомобиля] = @Original_Марка_автомобиля)) AND ((@IsNull_Цвет_автомобиля = 1 AND [Цвет_автомобиля] IS NULL) OR ([Цвет_автомобиля] = @Original_Цвет_автомобиля)) AND ((@IsNull_Год_выпуска_автомобиля = 1 AND [Год_выпуска_автомобиля] IS NULL) OR ([Год_выпуска_автомобиля] = @Original_Год_выпуска_автомобиля)) AND ((@IsNull_Госномер_автомобиля = 1 AND [Госномер_автомобиля] IS NULL) OR ([Госномер_автомобиля] = @Original_Госномер_автомобиля)) AND ((@IsNull_Страховая_стоимость = 1 AND [Страховая_стоимость] IS NULL) OR ([Страховая_стоимость] = @Original_Страховая_стоимость)))</CommandText>
- <Parameters>
- <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Код_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Марка_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Марка_автомобиля" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Марка_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Марка_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Цвет_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Цвет_автомобиля" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Цвет_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Цвет_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Год_выпуска_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Год_выпуска_автомобиля" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Год_выпуска_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Год_выпуска_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Госномер_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Госномер_автомобиля" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Госномер_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Госномер_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Страховая_стоимость" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Страховая_стоимость" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Страховая_стоимость" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Страховая_стоимость" SourceColumnNullMapping="false" SourceVersion="Original" />
- </Parameters>
- </DbCommand>
- </DeleteCommand>
- <InsertCommand>
- <DbCommand CommandType="Text" ModifiedByUser="false">
- <CommandText>INSERT INTO [dbo].[Автомобили] ([Марка_автомобиля], [Цвет_автомобиля], [Год_выпуска_автомобиля], [Госномер_автомобиля], [Страховая_стоимость]) VALUES (@Марка_автомобиля, @Цвет_автомобиля, @Год_выпуска_автомобиля, @Госномер_автомобиля, @Страховая_стоимость);
- SELECT Код_автомобиля, Марка_автомобиля, Цвет_автомобиля, Год_выпуска_автомобиля, Госномер_автомобиля, Страховая_стоимость FROM Автомобили WHERE (Код_автомобиля = SCOPE_IDENTITY())</CommandText>
- <Parameters>
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Марка_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Марка_автомобиля" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Цвет_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Цвет_автомобиля" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Год_выпуска_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Год_выпуска_автомобиля" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Госномер_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Госномер_автомобиля" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Страховая_стоимость" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Страховая_стоимость" SourceColumnNullMapping="false" SourceVersion="Current" />
- </Parameters>
- </DbCommand>
- </InsertCommand>
- <SelectCommand>
- <DbCommand CommandType="Text" ModifiedByUser="false">
- <CommandText>SELECT Код_автомобиля, Марка_автомобиля, Цвет_автомобиля, Год_выпуска_автомобиля, Госномер_автомобиля, Страховая_стоимость FROM dbo.Автомобили</CommandText>
- <Parameters />
- </DbCommand>
- </SelectCommand>
- <UpdateCommand>
- <DbCommand CommandType="Text" ModifiedByUser="false">
- <CommandText>UPDATE [dbo].[Автомобили] SET [Марка_автомобиля] = @Марка_автомобиля, [Цвет_автомобиля] = @Цвет_автомобиля, [Год_выпуска_автомобиля] = @Год_выпуска_автомобиля, [Госномер_автомобиля] = @Госномер_автомобиля, [Страховая_стоимость] = @Страховая_стоимость WHERE (([Код_автомобиля] = @Original_Код_автомобиля) AND ((@IsNull_Марка_автомобиля = 1 AND [Марка_автомобиля] IS NULL) OR ([Марка_автомобиля] = @Original_Марка_автомобиля)) AND ((@IsNull_Цвет_автомобиля = 1 AND [Цвет_автомобиля] IS NULL) OR ([Цвет_автомобиля] = @Original_Цвет_автомобиля)) AND ((@IsNull_Год_выпуска_автомобиля = 1 AND [Год_выпуска_автомобиля] IS NULL) OR ([Год_выпуска_автомобиля] = @Original_Год_выпуска_автомобиля)) AND ((@IsNull_Госномер_автомобиля = 1 AND [Госномер_автомобиля] IS NULL) OR ([Госномер_автомобиля] = @Original_Госномер_автомобиля)) AND ((@IsNull_Страховая_стоимость = 1 AND [Страховая_стоимость] IS NULL) OR ([Страховая_стоимость] = @Original_Страховая_стоимость)));
- SELECT Код_автомобиля, Марка_автомобиля, Цвет_автомобиля, Год_выпуска_автомобиля, Госномер_автомобиля, Страховая_стоимость FROM Автомобили WHERE (Код_автомобиля = @Код_автомобиля)</CommandText>
- <Parameters>
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Марка_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Марка_автомобиля" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Цвет_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Цвет_автомобиля" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Год_выпуска_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Год_выпуска_автомобиля" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Госномер_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Госномер_автомобиля" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Страховая_стоимость" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Страховая_стоимость" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Код_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Марка_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Марка_автомобиля" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Марка_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Марка_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Цвет_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Цвет_автомобиля" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Цвет_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Цвет_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Год_выпуска_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Год_выпуска_автомобиля" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Год_выпуска_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Год_выпуска_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Госномер_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Госномер_автомобиля" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Госномер_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Госномер_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Страховая_стоимость" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Страховая_стоимость" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Страховая_стоимость" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Страховая_стоимость" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="false" AutogeneratedName="Код_автомобиля" ColumnName="Код_автомобиля" DataSourceName="Prokatavto08.dbo.Автомобили" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Код_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="Код_автомобиля" SourceColumnNullMapping="false" SourceVersion="Current" />
- </Parameters>
- </DbCommand>
- </UpdateCommand>
- </DbSource>
- </MainSource>
- <Mappings>
- <Mapping SourceColumn="Код_автомобиля" DataSetColumn="Код_автомобиля" />
- <Mapping SourceColumn="Марка_автомобиля" DataSetColumn="Марка_автомобиля" />
- <Mapping SourceColumn="Цвет_автомобиля" DataSetColumn="Цвет_автомобиля" />
- <Mapping SourceColumn="Год_выпуска_автомобиля" DataSetColumn="Год_выпуска_автомобиля" />
- <Mapping SourceColumn="Госномер_автомобиля" DataSetColumn="Госномер_автомобиля" />
- <Mapping SourceColumn="Страховая_стоимость" DataSetColumn="Страховая_стоимость" />
- </Mappings>
- <Sources />
- </TableAdapter>
- <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="КлиентыTableAdapter" GeneratorDataComponentClassName="КлиентыTableAdapter" Name="Клиенты" UserDataComponentName="КлиентыTableAdapter">
- <MainSource>
- <DbSource ConnectionRef="Prokatavto08ConnectionString (Settings)" DbObjectName="Prokatavto08.dbo.Клиенты" 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].[Клиенты] WHERE (([Код_клиента] = @Original_Код_клиента) AND ((@IsNull_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)) AND ((@IsNull_Имя = 1 AND [Имя] IS NULL) OR ([Имя] = @Original_Имя)) AND ((@IsNull_Отчество = 1 AND [Отчество] IS NULL) OR ([Отчество] = @Original_Отчество)) AND ((@IsNull_Серия_и_номер_паспорта = 1 AND [Серия_и_номер_паспорта] IS NULL) OR ([Серия_и_номер_паспорта] = @Original_Серия_и_номер_паспорта)) AND ((@IsNull_Адрес = 1 AND [Адрес] IS NULL) OR ([Адрес] = @Original_Адрес)) AND ((@IsNull_Телефон = 1 AND [Телефон] IS NULL) OR ([Телефон] = @Original_Телефон)))</CommandText>
- <Parameters>
- <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Код_клиента" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_клиента" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Фамилия" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Фамилия" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Имя" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Имя" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Отчество" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Отчество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Серия_и_номер_паспорта" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Серия_и_номер_паспорта" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Серия_и_номер_паспорта" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Серия_и_номер_паспорта" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Адрес" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Адрес" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Телефон" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="false" SourceVersion="Original" />
- </Parameters>
- </DbCommand>
- </DeleteCommand>
- <InsertCommand>
- <DbCommand CommandType="Text" ModifiedByUser="false">
- <CommandText>INSERT INTO [dbo].[Клиенты] ([Фамилия], [Имя], [Отчество], [Серия_и_номер_паспорта], [Адрес], [Телефон]) VALUES (@Фамилия, @Имя, @Отчество, @Серия_и_номер_паспорта, @Адрес, @Телефон);
- SELECT Код_клиента, Фамилия, Имя, Отчество, Серия_и_номер_паспорта, Адрес, Телефон FROM Клиенты WHERE (Код_клиента = SCOPE_IDENTITY())</CommandText>
- <Parameters>
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Фамилия" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Имя" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Отчество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Серия_и_номер_паспорта" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Серия_и_номер_паспорта" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Адрес" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="false" SourceVersion="Current" />
- </Parameters>
- </DbCommand>
- </InsertCommand>
- <SelectCommand>
- <DbCommand CommandType="Text" ModifiedByUser="false">
- <CommandText>SELECT Код_клиента, Фамилия, Имя, Отчество, Серия_и_номер_паспорта, Адрес, Телефон FROM dbo.Клиенты</CommandText>
- <Parameters />
- </DbCommand>
- </SelectCommand>
- <UpdateCommand>
- <DbCommand CommandType="Text" ModifiedByUser="false">
- <CommandText>UPDATE [dbo].[Клиенты] SET [Фамилия] = @Фамилия, [Имя] = @Имя, [Отчество] = @Отчество, [Серия_и_номер_паспорта] = @Серия_и_номер_паспорта, [Адрес] = @Адрес, [Телефон] = @Телефон WHERE (([Код_клиента] = @Original_Код_клиента) AND ((@IsNull_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)) AND ((@IsNull_Имя = 1 AND [Имя] IS NULL) OR ([Имя] = @Original_Имя)) AND ((@IsNull_Отчество = 1 AND [Отчество] IS NULL) OR ([Отчество] = @Original_Отчество)) AND ((@IsNull_Серия_и_номер_паспорта = 1 AND [Серия_и_номер_паспорта] IS NULL) OR ([Серия_и_номер_паспорта] = @Original_Серия_и_номер_паспорта)) AND ((@IsNull_Адрес = 1 AND [Адрес] IS NULL) OR ([Адрес] = @Original_Адрес)) AND ((@IsNull_Телефон = 1 AND [Телефон] IS NULL) OR ([Телефон] = @Original_Телефон)));
- SELECT Код_клиента, Фамилия, Имя, Отчество, Серия_и_номер_паспорта, Адрес, Телефон FROM Клиенты WHERE (Код_клиента = @Код_клиента)</CommandText>
- <Parameters>
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Фамилия" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Имя" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Отчество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Серия_и_номер_паспорта" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Серия_и_номер_паспорта" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Адрес" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Код_клиента" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_клиента" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Фамилия" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Фамилия" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Имя" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Имя" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Отчество" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Отчество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Серия_и_номер_паспорта" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Серия_и_номер_паспорта" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Серия_и_номер_паспорта" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Серия_и_номер_паспорта" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Адрес" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Адрес" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Телефон" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="false" AutogeneratedName="Код_клиента" ColumnName="Код_клиента" DataSourceName="Prokatavto08.dbo.Клиенты" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Код_клиента" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="Код_клиента" SourceColumnNullMapping="false" SourceVersion="Current" />
- </Parameters>
- </DbCommand>
- </UpdateCommand>
- </DbSource>
- </MainSource>
- <Mappings>
- <Mapping SourceColumn="Код_клиента" DataSetColumn="Код_клиента" />
- <Mapping SourceColumn="Фамилия" DataSetColumn="Фамилия" />
- <Mapping SourceColumn="Имя" DataSetColumn="Имя" />
- <Mapping SourceColumn="Отчество" DataSetColumn="Отчество" />
- <Mapping SourceColumn="Серия_и_номер_паспорта" DataSetColumn="Серия_и_номер_паспорта" />
- <Mapping SourceColumn="Адрес" DataSetColumn="Адрес" />
- <Mapping SourceColumn="Телефон" DataSetColumn="Телефон" />
- </Mappings>
- <Sources />
- </TableAdapter>
- <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ПрокатыTableAdapter" GeneratorDataComponentClassName="ПрокатыTableAdapter" Name="Прокаты" UserDataComponentName="ПрокатыTableAdapter">
- <MainSource>
- <DbSource ConnectionRef="Prokatavto08ConnectionString (Settings)" DbObjectName="Prokatavto08.dbo.Прокаты" 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].[Прокаты] WHERE (([Код_проката] = @Original_Код_проката) AND ([Код_автомобиля] = @Original_Код_автомобиля) AND ([Код_клиента] = @Original_Код_клиента) AND ((@IsNull_Дата_начала_проката = 1 AND [Дата_начала_проката] IS NULL) OR ([Дата_начала_проката] = @Original_Дата_начала_проката)) AND ((@IsNull_Количество_дней_проката = 1 AND [Количество_дней_проката] IS NULL) OR ([Количество_дней_проката] = @Original_Количество_дней_проката)) AND ((@IsNull_Дата_окончания_проката = 1 AND [Дата_окончания_проката] IS NULL) OR ([Дата_окончания_проката] = @Original_Дата_окончания_проката)) AND ((@IsNull_Стоимость_одного_дня_проката = 1 AND [Стоимость_одного_дня_проката] IS NULL) OR ([Стоимость_одного_дня_проката] = @Original_Стоимость_одного_дня_проката)) AND ((@IsNull_Стоимость_проката = 1 AND [Стоимость_проката] IS NULL) OR ([Стоимость_проката] = @Original_Стоимость_проката)))</CommandText>
- <Parameters>
- <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Код_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Код_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Код_клиента" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_клиента" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Дата_начала_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Дата_начала_проката" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Дата_начала_проката" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Дата_начала_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Количество_дней_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Количество_дней_проката" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Количество_дней_проката" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Количество_дней_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Дата_окончания_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Дата_окончания_проката" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Дата_окончания_проката" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Дата_окончания_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Стоимость_одного_дня_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Стоимость_одного_дня_проката" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Стоимость_одного_дня_проката" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Стоимость_одного_дня_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Стоимость_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Стоимость_проката" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Стоимость_проката" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Стоимость_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
- </Parameters>
- </DbCommand>
- </DeleteCommand>
- <InsertCommand>
- <DbCommand CommandType="Text" ModifiedByUser="false">
- <CommandText>INSERT INTO [dbo].[Прокаты] ([Код_автомобиля], [Код_клиента], [Дата_начала_проката], [Количество_дней_проката], [Дата_окончания_проката], [Стоимость_одного_дня_проката], [Стоимость_проката]) VALUES (@Код_автомобиля, @Код_клиента, @Дата_начала_проката, @Количество_дней_проката, @Дата_окончания_проката, @Стоимость_одного_дня_проката, @Стоимость_проката);
- SELECT Код_проката, Код_автомобиля, Код_клиента, Дата_начала_проката, Количество_дней_проката, Дата_окончания_проката, Стоимость_одного_дня_проката, Стоимость_проката FROM Прокаты WHERE (Код_проката = SCOPE_IDENTITY())</CommandText>
- <Parameters>
- <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Код_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_автомобиля" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Код_клиента" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_клиента" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Дата_начала_проката" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Дата_начала_проката" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Количество_дней_проката" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Количество_дней_проката" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Дата_окончания_проката" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Дата_окончания_проката" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Стоимость_одного_дня_проката" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Стоимость_одного_дня_проката" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Стоимость_проката" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Стоимость_проката" SourceColumnNullMapping="false" SourceVersion="Current" />
- </Parameters>
- </DbCommand>
- </InsertCommand>
- <SelectCommand>
- <DbCommand CommandType="Text" ModifiedByUser="false">
- <CommandText>SELECT Код_проката, Код_автомобиля, Код_клиента, Дата_начала_проката, Количество_дней_проката, Дата_окончания_проката, Стоимость_одного_дня_проката, Стоимость_проката FROM dbo.Прокаты</CommandText>
- <Parameters />
- </DbCommand>
- </SelectCommand>
- <UpdateCommand>
- <DbCommand CommandType="Text" ModifiedByUser="false">
- <CommandText>UPDATE [dbo].[Прокаты] SET [Код_автомобиля] = @Код_автомобиля, [Код_клиента] = @Код_клиента, [Дата_начала_проката] = @Дата_начала_проката, [Количество_дней_проката] = @Количество_дней_проката, [Дата_окончания_проката] = @Дата_окончания_проката, [Стоимость_одного_дня_проката] = @Стоимость_одного_дня_проката, [Стоимость_проката] = @Стоимость_проката WHERE (([Код_проката] = @Original_Код_проката) AND ([Код_автомобиля] = @Original_Код_автомобиля) AND ([Код_клиента] = @Original_Код_клиента) AND ((@IsNull_Дата_начала_проката = 1 AND [Дата_начала_проката] IS NULL) OR ([Дата_начала_проката] = @Original_Дата_начала_проката)) AND ((@IsNull_Количество_дней_проката = 1 AND [Количество_дней_проката] IS NULL) OR ([Количество_дней_проката] = @Original_Количество_дней_проката)) AND ((@IsNull_Дата_окончания_проката = 1 AND [Дата_окончания_проката] IS NULL) OR ([Дата_окончания_проката] = @Original_Дата_окончания_проката)) AND ((@IsNull_Стоимость_одного_дня_проката = 1 AND [Стоимость_одного_дня_проката] IS NULL) OR ([Стоимость_одного_дня_проката] = @Original_Стоимость_одного_дня_проката)) AND ((@IsNull_Стоимость_проката = 1 AND [Стоимость_проката] IS NULL) OR ([Стоимость_проката] = @Original_Стоимость_проката)));
- SELECT Код_проката, Код_автомобиля, Код_клиента, Дата_начала_проката, Количество_дней_проката, Дата_окончания_проката, Стоимость_одного_дня_проката, Стоимость_проката FROM Прокаты WHERE (Код_проката = @Код_проката)</CommandText>
- <Parameters>
- <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Код_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_автомобиля" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Код_клиента" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_клиента" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Дата_начала_проката" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Дата_начала_проката" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Количество_дней_проката" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Количество_дней_проката" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Дата_окончания_проката" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Дата_окончания_проката" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Стоимость_одного_дня_проката" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Стоимость_одного_дня_проката" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Стоимость_проката" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Стоимость_проката" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Код_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Код_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Код_клиента" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_клиента" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Дата_начала_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Дата_начала_проката" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Дата_начала_проката" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Дата_начала_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Количество_дней_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Количество_дней_проката" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Количество_дней_проката" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Количество_дней_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Дата_окончания_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Дата_окончания_проката" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Дата_окончания_проката" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Дата_окончания_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Стоимость_одного_дня_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Стоимость_одного_дня_проката" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Стоимость_одного_дня_проката" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Стоимость_одного_дня_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Стоимость_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Стоимость_проката" SourceColumnNullMapping="true" SourceVersion="Original" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Стоимость_проката" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Стоимость_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
- <Parameter AllowDbNull="false" AutogeneratedName="Код_проката" ColumnName="Код_проката" DataSourceName="Prokatavto08.dbo.Прокаты" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Код_проката" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="Код_проката" SourceColumnNullMapping="false" SourceVersion="Current" />
- </Parameters>
- </DbCommand>
- </UpdateCommand>
- </DbSource>
- </MainSource>
- <Mappings>
- <Mapping SourceColumn="Код_проката" DataSetColumn="Код_проката" />
- <Mapping SourceColumn="Код_автомобиля" DataSetColumn="Код_автомобиля" />
- <Mapping SourceColumn="Код_клиента" DataSetColumn="Код_клиента" />
- <Mapping SourceColumn="Дата_начала_проката" DataSetColumn="Дата_начала_проката" />
- <Mapping SourceColumn="Количество_дней_проката" DataSetColumn="Количество_дней_проката" />
- <Mapping SourceColumn="Дата_окончания_проката" DataSetColumn="Дата_окончания_проката" />
- <Mapping SourceColumn="Стоимость_одного_дня_проката" DataSetColumn="Стоимость_одного_дня_проката" />
- <Mapping SourceColumn="Стоимость_проката" DataSetColumn="Стоимость_проката" />
- </Mappings>
- <Sources />
- </TableAdapter>
- <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ПредставлениеTableAdapter" GeneratorDataComponentClassName="ПредставлениеTableAdapter" Name="Представление" UserDataComponentName="ПредставлениеTableAdapter">
- <MainSource>
- <DbSource ConnectionRef="Prokatavto08ConnectionString (Settings)" DbObjectName="Prokatavto08.dbo.Представление" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
- <SelectCommand>
- <DbCommand CommandType="Text" ModifiedByUser="false">
- <CommandText>SELECT Фамилия, Имя, Отчество, Марка_автомобиля, Госномер_автомобиля, Дата_начала_проката, Количество_дней_проката, Стоимость_одного_дня_проката, Стоимость_проката FROM dbo.Представление</CommandText>
- <Parameters />
- </DbCommand>
- </SelectCommand>
- </DbSource>
- </MainSource>
- <Mappings>
- <Mapping SourceColumn="Фамилия" DataSetColumn="Фамилия" />
- <Mapping SourceColumn="Имя" DataSetColumn="Имя" />
- <Mapping SourceColumn="Отчество" DataSetColumn="Отчество" />
- <Mapping SourceColumn="Марка_автомобиля" DataSetColumn="Марка_автомобиля" />
- <Mapping SourceColumn="Госномер_автомобиля" DataSetColumn="Госномер_автомобиля" />
- <Mapping SourceColumn="Дата_начала_проката" DataSetColumn="Дата_начала_проката" />
- <Mapping SourceColumn="Количество_дней_проката" DataSetColumn="Количество_дней_проката" />
- <Mapping SourceColumn="Стоимость_одного_дня_проката" DataSetColumn="Стоимость_одного_дня_проката" />
- <Mapping SourceColumn="Стоимость_проката" DataSetColumn="Стоимость_проката" />
- </Mappings>
- <Sources />
- </TableAdapter>
- <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ГосномерTableAdapter" GeneratorDataComponentClassName="ГосномерTableAdapter" Name="Госномер" UserDataComponentName="ГосномерTableAdapter">
- <MainSource>
- <DbSource ConnectionRef="Prokatavto08ConnectionString (Settings)" DbObjectName="Prokatavto08.dbo.Госномер" DbObjectType="StoredProcedure" 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">
- <SelectCommand>
- <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
- <CommandText>dbo.Госномер</CommandText>
- <Parameters>
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="date" DbType="Date" Direction="Input" ParameterName="@Value1" Precision="10" ProviderType="Date" Scale="0" Size="3" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="date" DbType="Date" Direction="Input" ParameterName="@Value2" Precision="10" ProviderType="Date" Scale="0" Size="3" SourceColumnNullMapping="false" SourceVersion="Current" />
- </Parameters>
- </DbCommand>
- </SelectCommand>
- </DbSource>
- </MainSource>
- <Mappings>
- <Mapping SourceColumn="Госномер_автомобиля" DataSetColumn="Госномер_автомобиля" />
- </Mappings>
- <Sources />
- </TableAdapter>
- <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Госномер_автомобиляTableAdapter" GeneratorDataComponentClassName="Госномер_автомобиляTableAdapter" Name="Госномер_автомобиля" UserDataComponentName="Госномер_автомобиляTableAdapter">
- <MainSource>
- <DbSource ConnectionRef="Prokatavto08ConnectionString (Settings)" DbObjectName="Prokatavto08.dbo.Госномер_автомобиля" DbObjectType="StoredProcedure" 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">
- <SelectCommand>
- <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
- <CommandText>dbo.Госномер_автомобиля</CommandText>
- <Parameters>
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Value1" Precision="0" ProviderType="NVarChar" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
- </Parameters>
- </DbCommand>
- </SelectCommand>
- </DbSource>
- </MainSource>
- <Mappings>
- <Mapping SourceColumn="Госномер_автомобиля" DataSetColumn="Госномер_автомобиля" />
- </Mappings>
- <Sources />
- </TableAdapter>
- <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ДатаTableAdapter" GeneratorDataComponentClassName="ДатаTableAdapter" Name="Дата" UserDataComponentName="ДатаTableAdapter">
- <MainSource>
- <DbSource ConnectionRef="Prokatavto08ConnectionString (Settings)" DbObjectName="Prokatavto08.dbo.Дата" DbObjectType="StoredProcedure" 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">
- <SelectCommand>
- <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
- <CommandText>dbo.Дата</CommandText>
- <Parameters>
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="date" DbType="Date" Direction="Input" ParameterName="@Value1" Precision="10" ProviderType="Date" Scale="0" Size="3" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="date" DbType="Date" Direction="Input" ParameterName="@Value2" Precision="10" ProviderType="Date" Scale="0" Size="3" SourceColumnNullMapping="false" SourceVersion="Current" />
- </Parameters>
- </DbCommand>
- </SelectCommand>
- </DbSource>
- </MainSource>
- <Mappings>
- <Mapping SourceColumn="Дата_начала_проката" DataSetColumn="Дата_начала_проката" />
- </Mappings>
- <Sources />
- </TableAdapter>
- <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Дата_началаTableAdapter" GeneratorDataComponentClassName="Дата_началаTableAdapter" Name="Дата_начала" UserDataComponentName="Дата_началаTableAdapter">
- <MainSource>
- <DbSource ConnectionRef="Prokatavto08ConnectionString (Settings)" DbObjectName="Prokatavto08.dbo.Дата_начала" DbObjectType="StoredProcedure" 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">
- <SelectCommand>
- <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
- <CommandText>dbo.Дата_начала</CommandText>
- <Parameters>
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="date" DbType="Date" Direction="Input" ParameterName="@Value1" Precision="10" ProviderType="Date" Scale="0" Size="3" SourceColumnNullMapping="false" SourceVersion="Current" />
- <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="date" DbType="Date" Direction="Input" ParameterName="@Value2" Precision="10" ProviderType="Date" Scale="0" Size="3" SourceColumnNullMapping="false" SourceVersion="Current" />
- </Parameters>
- </DbCommand>
- </SelectCommand>
- </DbSource>
- </MainSource>
- <Mappings>
- <Mapping SourceColumn="Дата_начала_проката" DataSetColumn="Дата_начала_проката" />
- </Mappings>
- <Sources />
- </TableAdapter>
- </Tables>
- <Sources />
- </DataSource>
- </xs:appinfo>
- </xs:annotation>
- <xs:element name="Prokatavto08DataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="Prokatavto08DataSet" msprop:Generator_UserDSName="Prokatavto08DataSet">
- <xs:complexType>
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element name="Автомобили" msprop:Generator_TableClassName="АвтомобилиDataTable" msprop:Generator_TableVarName="tableАвтомобили" msprop:Generator_TablePropName="Автомобили" msprop:Generator_RowDeletingName="АвтомобилиRowDeleting" msprop:Generator_RowChangingName="АвтомобилиRowChanging" msprop:Generator_RowEvHandlerName="АвтомобилиRowChangeEventHandler" msprop:Generator_RowDeletedName="АвтомобилиRowDeleted" msprop:Generator_UserTableName="Автомобили" msprop:Generator_RowChangedName="АвтомобилиRowChanged" msprop:Generator_RowEvArgName="АвтомобилиRowChangeEvent" msprop:Generator_RowClassName="АвтомобилиRow">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="Код_автомобиля" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnКод_автомобиля" msprop:Generator_ColumnPropNameInRow="Код_автомобиля" msprop:Generator_ColumnPropNameInTable="Код_автомобиляColumn" msprop:Generator_UserColumnName="Код_автомобиля" type="xs:int" />
- <xs:element name="Марка_автомобиля" msprop:Generator_ColumnVarNameInTable="columnМарка_автомобиля" msprop:Generator_ColumnPropNameInRow="Марка_автомобиля" msprop:Generator_ColumnPropNameInTable="Марка_автомобиляColumn" msprop:Generator_UserColumnName="Марка_автомобиля" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="10" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Цвет_автомобиля" msprop:Generator_ColumnVarNameInTable="columnЦвет_автомобиля" msprop:Generator_ColumnPropNameInRow="Цвет_автомобиля" msprop:Generator_ColumnPropNameInTable="Цвет_автомобиляColumn" msprop:Generator_UserColumnName="Цвет_автомобиля" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="10" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Год_выпуска_автомобиля" msprop:Generator_ColumnVarNameInTable="columnГод_выпуска_автомобиля" msprop:Generator_ColumnPropNameInRow="Год_выпуска_автомобиля" msprop:Generator_ColumnPropNameInTable="Год_выпуска_автомобиляColumn" msprop:Generator_UserColumnName="Год_выпуска_автомобиля" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="4" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Госномер_автомобиля" msprop:Generator_ColumnVarNameInTable="columnГосномер_автомобиля" msprop:Generator_ColumnPropNameInRow="Госномер_автомобиля" msprop:Generator_ColumnPropNameInTable="Госномер_автомобиляColumn" msprop:Generator_UserColumnName="Госномер_автомобиля" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="10" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Страховая_стоимость" msprop:Generator_ColumnVarNameInTable="columnСтраховая_стоимость" msprop:Generator_ColumnPropNameInRow="Страховая_стоимость" msprop:Generator_ColumnPropNameInTable="Страховая_стоимостьColumn" msprop:Generator_UserColumnName="Страховая_стоимость" type="xs:decimal" minOccurs="0" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Клиенты" msprop:Generator_TableClassName="КлиентыDataTable" msprop:Generator_TableVarName="tableКлиенты" msprop:Generator_TablePropName="Клиенты" msprop:Generator_RowDeletingName="КлиентыRowDeleting" msprop:Generator_RowChangingName="КлиентыRowChanging" msprop:Generator_RowEvHandlerName="КлиентыRowChangeEventHandler" msprop:Generator_RowDeletedName="КлиентыRowDeleted" msprop:Generator_UserTableName="Клиенты" msprop:Generator_RowChangedName="КлиентыRowChanged" msprop:Generator_RowEvArgName="КлиентыRowChangeEvent" msprop:Generator_RowClassName="КлиентыRow">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="Код_клиента" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnКод_клиента" msprop:Generator_ColumnPropNameInRow="Код_клиента" msprop:Generator_ColumnPropNameInTable="Код_клиентаColumn" msprop:Generator_UserColumnName="Код_клиента" type="xs:int" />
- <xs:element name="Фамилия" msprop:Generator_ColumnVarNameInTable="columnФамилия" msprop:Generator_ColumnPropNameInRow="Фамилия" msprop:Generator_ColumnPropNameInTable="ФамилияColumn" msprop:Generator_UserColumnName="Фамилия" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="20" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Имя" msprop:Generator_ColumnVarNameInTable="columnИмя" msprop:Generator_ColumnPropNameInRow="Имя" msprop:Generator_ColumnPropNameInTable="ИмяColumn" msprop:Generator_UserColumnName="Имя" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="20" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Отчество" msprop:Generator_ColumnVarNameInTable="columnОтчество" msprop:Generator_ColumnPropNameInRow="Отчество" msprop:Generator_ColumnPropNameInTable="ОтчествоColumn" msprop:Generator_UserColumnName="Отчество" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="20" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Серия_и_номер_паспорта" msprop:Generator_ColumnVarNameInTable="columnСерия_и_номер_паспорта" msprop:Generator_ColumnPropNameInRow="Серия_и_номер_паспорта" msprop:Generator_ColumnPropNameInTable="Серия_и_номер_паспортаColumn" msprop:Generator_UserColumnName="Серия_и_номер_паспорта" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="30" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Адрес" msprop:Generator_ColumnVarNameInTable="columnАдрес" msprop:Generator_ColumnPropNameInRow="Адрес" msprop:Generator_ColumnPropNameInTable="АдресColumn" msprop:Generator_UserColumnName="Адрес" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="50" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Телефон" msprop:Generator_ColumnVarNameInTable="columnТелефон" msprop:Generator_ColumnPropNameInRow="Телефон" msprop:Generator_ColumnPropNameInTable="ТелефонColumn" msprop:Generator_UserColumnName="Телефон" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="15" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Прокаты" msprop:Generator_TableClassName="ПрокатыDataTable" msprop:Generator_TableVarName="tableПрокаты" msprop:Generator_TablePropName="Прокаты" msprop:Generator_RowDeletingName="ПрокатыRowDeleting" msprop:Generator_RowChangingName="ПрокатыRowChanging" msprop:Generator_RowEvHandlerName="ПрокатыRowChangeEventHandler" msprop:Generator_RowDeletedName="ПрокатыRowDeleted" msprop:Generator_UserTableName="Прокаты" msprop:Generator_RowChangedName="ПрокатыRowChanged" msprop:Generator_RowEvArgName="ПрокатыRowChangeEvent" msprop:Generator_RowClassName="ПрокатыRow">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="Код_проката" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnКод_проката" msprop:Generator_ColumnPropNameInRow="Код_проката" msprop:Generator_ColumnPropNameInTable="Код_прокатаColumn" msprop:Generator_UserColumnName="Код_проката" type="xs:int" />
- <xs:element name="Код_автомобиля" msprop:Generator_ColumnVarNameInTable="columnКод_автомобиля" msprop:Generator_ColumnPropNameInRow="Код_автомобиля" msprop:Generator_ColumnPropNameInTable="Код_автомобиляColumn" msprop:Generator_UserColumnName="Код_автомобиля" type="xs:int" />
- <xs:element name="Код_клиента" msprop:Generator_ColumnVarNameInTable="columnКод_клиента" msprop:Generator_ColumnPropNameInRow="Код_клиента" msprop:Generator_ColumnPropNameInTable="Код_клиентаColumn" msprop:Generator_UserColumnName="Код_клиента" type="xs:int" />
- <xs:element name="Дата_начала_проката" msprop:Generator_ColumnVarNameInTable="columnДата_начала_проката" msprop:Generator_ColumnPropNameInRow="Дата_начала_проката" msprop:Generator_ColumnPropNameInTable="Дата_начала_прокатаColumn" msprop:Generator_UserColumnName="Дата_начала_проката" type="xs:dateTime" minOccurs="0" />
- <xs:element name="Количество_дней_проката" msprop:Generator_ColumnVarNameInTable="columnКоличество_дней_проката" msprop:Generator_ColumnPropNameInRow="Количество_дней_проката" msprop:Generator_ColumnPropNameInTable="Количество_дней_прокатаColumn" msprop:Generator_UserColumnName="Количество_дней_проката" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="3" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Дата_окончания_проката" msprop:Generator_ColumnVarNameInTable="columnДата_окончания_проката" msprop:Generator_ColumnPropNameInRow="Дата_окончания_проката" msprop:Generator_ColumnPropNameInTable="Дата_окончания_прокатаColumn" msprop:Generator_UserColumnName="Дата_окончания_проката" type="xs:dateTime" minOccurs="0" />
- <xs:element name="Стоимость_одного_дня_проката" msprop:Generator_ColumnVarNameInTable="columnСтоимость_одного_дня_проката" msprop:Generator_ColumnPropNameInRow="Стоимость_одного_дня_проката" msprop:Generator_ColumnPropNameInTable="Стоимость_одного_дня_прокатаColumn" msprop:Generator_UserColumnName="Стоимость_одного_дня_проката" type="xs:decimal" minOccurs="0" />
- <xs:element name="Стоимость_проката" msprop:Generator_ColumnVarNameInTable="columnСтоимость_проката" msprop:Generator_ColumnPropNameInRow="Стоимость_проката" msprop:Generator_ColumnPropNameInTable="Стоимость_прокатаColumn" msprop:Generator_UserColumnName="Стоимость_проката" type="xs:decimal" minOccurs="0" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Представление" msprop:Generator_TableClassName="ПредставлениеDataTable" msprop:Generator_TableVarName="tableПредставление" msprop:Generator_TablePropName="Представление" msprop:Generator_RowDeletingName="ПредставлениеRowDeleting" msprop:Generator_RowChangingName="ПредставлениеRowChanging" msprop:Generator_RowEvHandlerName="ПредставлениеRowChangeEventHandler" msprop:Generator_RowDeletedName="ПредставлениеRowDeleted" msprop:Generator_UserTableName="Представление" msprop:Generator_RowChangedName="ПредставлениеRowChanged" msprop:Generator_RowEvArgName="ПредставлениеRowChangeEvent" msprop:Generator_RowClassName="ПредставлениеRow">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="Фамилия" msprop:Generator_ColumnVarNameInTable="columnФамилия" msprop:Generator_ColumnPropNameInRow="Фамилия" msprop:Generator_ColumnPropNameInTable="ФамилияColumn" msprop:Generator_UserColumnName="Фамилия" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="20" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Имя" msprop:Generator_ColumnVarNameInTable="columnИмя" msprop:Generator_ColumnPropNameInRow="Имя" msprop:Generator_ColumnPropNameInTable="ИмяColumn" msprop:Generator_UserColumnName="Имя" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="20" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Отчество" msprop:Generator_ColumnVarNameInTable="columnОтчество" msprop:Generator_ColumnPropNameInRow="Отчество" msprop:Generator_ColumnPropNameInTable="ОтчествоColumn" msprop:Generator_UserColumnName="Отчество" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="20" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Марка_автомобиля" msprop:Generator_ColumnVarNameInTable="columnМарка_автомобиля" msprop:Generator_ColumnPropNameInRow="Марка_автомобиля" msprop:Generator_ColumnPropNameInTable="Марка_автомобиляColumn" msprop:Generator_UserColumnName="Марка_автомобиля" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="10" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Госномер_автомобиля" msprop:Generator_ColumnVarNameInTable="columnГосномер_автомобиля" msprop:Generator_ColumnPropNameInRow="Госномер_автомобиля" msprop:Generator_ColumnPropNameInTable="Госномер_автомобиляColumn" msprop:Generator_UserColumnName="Госномер_автомобиля" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="10" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Дата_начала_проката" msprop:Generator_ColumnVarNameInTable="columnДата_начала_проката" msprop:Generator_ColumnPropNameInRow="Дата_начала_проката" msprop:Generator_ColumnPropNameInTable="Дата_начала_прокатаColumn" msprop:Generator_UserColumnName="Дата_начала_проката" type="xs:dateTime" minOccurs="0" />
- <xs:element name="Количество_дней_проката" msprop:Generator_ColumnVarNameInTable="columnКоличество_дней_проката" msprop:Generator_ColumnPropNameInRow="Количество_дней_проката" msprop:Generator_ColumnPropNameInTable="Количество_дней_прокатаColumn" msprop:Generator_UserColumnName="Количество_дней_проката" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="3" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="Стоимость_одного_дня_проката" msprop:Generator_ColumnVarNameInTable="columnСтоимость_одного_дня_проката" msprop:Generator_ColumnPropNameInRow="Стоимость_одного_дня_проката" msprop:Generator_ColumnPropNameInTable="Стоимость_одного_дня_прокатаColumn" msprop:Generator_UserColumnName="Стоимость_одного_дня_проката" type="xs:decimal" minOccurs="0" />
- <xs:element name="Стоимость_проката" msprop:Generator_ColumnVarNameInTable="columnСтоимость_проката" msprop:Generator_ColumnPropNameInRow="Стоимость_проката" msprop:Generator_ColumnPropNameInTable="Стоимость_прокатаColumn" msprop:Generator_UserColumnName="Стоимость_проката" type="xs:decimal" minOccurs="0" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Госномер" msprop:Generator_TableClassName="ГосномерDataTable" msprop:Generator_TableVarName="tableГосномер" msprop:Generator_TablePropName="Госномер" msprop:Generator_RowDeletingName="ГосномерRowDeleting" msprop:Generator_RowChangingName="ГосномерRowChanging" msprop:Generator_RowEvHandlerName="ГосномерRowChangeEventHandler" msprop:Generator_RowDeletedName="ГосномерRowDeleted" msprop:Generator_UserTableName="Госномер" msprop:Generator_RowChangedName="ГосномерRowChanged" msprop:Generator_RowEvArgName="ГосномерRowChangeEvent" msprop:Generator_RowClassName="ГосномерRow">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="Госномер_автомобиля" msprop:Generator_ColumnVarNameInTable="columnГосномер_автомобиля" msprop:Generator_ColumnPropNameInRow="Госномер_автомобиля" msprop:Generator_ColumnPropNameInTable="Госномер_автомобиляColumn" msprop:Generator_UserColumnName="Госномер_автомобиля" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="10" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Госномер_автомобиля" msprop:Generator_TableClassName="Госномер_автомобиляDataTable" msprop:Generator_TableVarName="tableГосномер_автомобиля" msprop:Generator_TablePropName="Госномер_автомобиля" msprop:Generator_RowDeletingName="Госномер_автомобиляRowDeleting" msprop:Generator_RowChangingName="Госномер_автомобиляRowChanging" msprop:Generator_RowEvHandlerName="Госномер_автомобиляRowChangeEventHandler" msprop:Generator_RowDeletedName="Госномер_автомобиляRowDeleted" msprop:Generator_UserTableName="Госномер_автомобиля" msprop:Generator_RowChangedName="Госномер_автомобиляRowChanged" msprop:Generator_RowEvArgName="Госномер_автомобиляRowChangeEvent" msprop:Generator_RowClassName="Госномер_автомобиляRow">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="Госномер_автомобиля" msprop:Generator_ColumnVarNameInTable="columnГосномер_автомобиля" msprop:Generator_ColumnPropNameInRow="Госномер_автомобиля" msprop:Generator_ColumnPropNameInTable="Госномер_автомобиляColumn" msprop:Generator_UserColumnName="Госномер_автомобиля" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:maxLength value="10" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Дата" msprop:Generator_TableClassName="ДатаDataTable" msprop:Generator_TableVarName="tableДата" msprop:Generator_TablePropName="Дата" msprop:Generator_RowDeletingName="ДатаRowDeleting" msprop:Generator_RowChangingName="ДатаRowChanging" msprop:Generator_RowEvHandlerName="ДатаRowChangeEventHandler" msprop:Generator_RowDeletedName="ДатаRowDeleted" msprop:Generator_UserTableName="Дата" msprop:Generator_RowChangedName="ДатаRowChanged" msprop:Generator_RowEvArgName="ДатаRowChangeEvent" msprop:Generator_RowClassName="ДатаRow">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="Дата_начала_проката" msprop:Generator_ColumnVarNameInTable="columnДата_начала_проката" msprop:Generator_ColumnPropNameInRow="Дата_начала_проката" msprop:Generator_ColumnPropNameInTable="Дата_начала_прокатаColumn" msprop:Generator_UserColumnName="Дата_начала_проката" type="xs:dateTime" minOccurs="0" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Дата_начала" msprop:Generator_TableClassName="Дата_началаDataTable" msprop:Generator_TableVarName="tableДата_начала" msprop:Generator_TablePropName="Дата_начала" msprop:Generator_RowDeletingName="Дата_началаRowDeleting" msprop:Generator_RowChangingName="Дата_началаRowChanging" msprop:Generator_RowEvHandlerName="Дата_началаRowChangeEventHandler" msprop:Generator_RowDeletedName="Дата_началаRowDeleted" msprop:Generator_UserTableName="Дата_начала" msprop:Generator_RowChangedName="Дата_началаRowChanged" msprop:Generator_RowEvArgName="Дата_началаRowChangeEvent" msprop:Generator_RowClassName="Дата_началаRow">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="Дата_начала_проката" msprop:Generator_ColumnVarNameInTable="columnДата_начала_проката" msprop:Generator_ColumnPropNameInRow="Дата_начала_проката" msprop:Generator_ColumnPropNameInTable="Дата_начала_прокатаColumn" msprop:Generator_UserColumnName="Дата_начала_проката" type="xs:dateTime" minOccurs="0" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- </xs:choice>
- </xs:complexType>
- <xs:unique name="Constraint1" msdata:PrimaryKey="true">
- <xs:selector xpath=".//mstns:Автомобили" />
- <xs:field xpath="mstns:Код_автомобиля" />
- </xs:unique>
- <xs:unique name="Клиенты_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
- <xs:selector xpath=".//mstns:Клиенты" />
- <xs:field xpath="mstns:Код_клиента" />
- </xs:unique>
- <xs:unique name="Прокаты_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
- <xs:selector xpath=".//mstns:Прокаты" />
- <xs:field xpath="mstns:Код_проката" />
- </xs:unique>
- </xs:element>
- <xs:annotation>
- <xs:appinfo>
- <msdata:Relationship name="FK_Прокаты_Автомобили" msdata:parent="Автомобили" msdata:child="Прокаты" msdata:parentkey="Код_автомобиля" msdata:childkey="Код_автомобиля" msprop:Generator_UserChildTable="Прокаты" msprop:Generator_ChildPropName="GetПрокатыRows" msprop:Generator_UserRelationName="FK_Прокаты_Автомобили" msprop:Generator_ParentPropName="АвтомобилиRow" msprop:Generator_RelationVarName="relationFK_Прокаты_Автомобили" msprop:Generator_UserParentTable="Автомобили" />
- <msdata:Relationship name="FK_Прокаты_Клиенты" msdata:parent="Клиенты" msdata:child="Прокаты" msdata:parentkey="Код_клиента" msdata:childkey="Код_клиента" msprop:Generator_UserChildTable="Прокаты" msprop:Generator_ChildPropName="GetПрокатыRows" msprop:Generator_UserRelationName="FK_Прокаты_Клиенты" msprop:Generator_ParentPropName="КлиентыRow" msprop:Generator_RelationVarName="relationFK_Прокаты_Клиенты" msprop:Generator_UserParentTable="Клиенты" />
- </xs:appinfo>
- </xs:annotation>
- </xs:schema>
|