Prokatavto08DataSet.xsd 97 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <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">
  3. <xs:annotation>
  4. <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
  5. <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
  6. <Connections>
  7. <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" />
  8. </Connections>
  9. <Tables>
  10. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="АвтомобилиTableAdapter" GeneratorDataComponentClassName="АвтомобилиTableAdapter" Name="Автомобили" UserDataComponentName="АвтомобилиTableAdapter">
  11. <MainSource>
  12. <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">
  13. <DeleteCommand>
  14. <DbCommand CommandType="Text" ModifiedByUser="false">
  15. <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>
  16. <Parameters>
  17. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Код_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
  18. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Марка_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Марка_автомобиля" SourceColumnNullMapping="true" SourceVersion="Original" />
  19. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Марка_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Марка_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
  20. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Цвет_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Цвет_автомобиля" SourceColumnNullMapping="true" SourceVersion="Original" />
  21. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Цвет_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Цвет_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
  22. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Год_выпуска_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Год_выпуска_автомобиля" SourceColumnNullMapping="true" SourceVersion="Original" />
  23. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Год_выпуска_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Год_выпуска_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
  24. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Госномер_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Госномер_автомобиля" SourceColumnNullMapping="true" SourceVersion="Original" />
  25. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Госномер_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Госномер_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
  26. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Страховая_стоимость" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Страховая_стоимость" SourceColumnNullMapping="true" SourceVersion="Original" />
  27. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Страховая_стоимость" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Страховая_стоимость" SourceColumnNullMapping="false" SourceVersion="Original" />
  28. </Parameters>
  29. </DbCommand>
  30. </DeleteCommand>
  31. <InsertCommand>
  32. <DbCommand CommandType="Text" ModifiedByUser="false">
  33. <CommandText>INSERT INTO [dbo].[Автомобили] ([Марка_автомобиля], [Цвет_автомобиля], [Год_выпуска_автомобиля], [Госномер_автомобиля], [Страховая_стоимость]) VALUES (@Марка_автомобиля, @Цвет_автомобиля, @Год_выпуска_автомобиля, @Госномер_автомобиля, @Страховая_стоимость);
  34. SELECT Код_автомобиля, Марка_автомобиля, Цвет_автомобиля, Год_выпуска_автомобиля, Госномер_автомобиля, Страховая_стоимость FROM Автомобили WHERE (Код_автомобиля = SCOPE_IDENTITY())</CommandText>
  35. <Parameters>
  36. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Марка_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Марка_автомобиля" SourceColumnNullMapping="false" SourceVersion="Current" />
  37. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Цвет_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Цвет_автомобиля" SourceColumnNullMapping="false" SourceVersion="Current" />
  38. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Год_выпуска_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Год_выпуска_автомобиля" SourceColumnNullMapping="false" SourceVersion="Current" />
  39. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Госномер_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Госномер_автомобиля" SourceColumnNullMapping="false" SourceVersion="Current" />
  40. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Страховая_стоимость" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Страховая_стоимость" SourceColumnNullMapping="false" SourceVersion="Current" />
  41. </Parameters>
  42. </DbCommand>
  43. </InsertCommand>
  44. <SelectCommand>
  45. <DbCommand CommandType="Text" ModifiedByUser="false">
  46. <CommandText>SELECT Код_автомобиля, Марка_автомобиля, Цвет_автомобиля, Год_выпуска_автомобиля, Госномер_автомобиля, Страховая_стоимость FROM dbo.Автомобили</CommandText>
  47. <Parameters />
  48. </DbCommand>
  49. </SelectCommand>
  50. <UpdateCommand>
  51. <DbCommand CommandType="Text" ModifiedByUser="false">
  52. <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_Страховая_стоимость)));
  53. SELECT Код_автомобиля, Марка_автомобиля, Цвет_автомобиля, Год_выпуска_автомобиля, Госномер_автомобиля, Страховая_стоимость FROM Автомобили WHERE (Код_автомобиля = @Код_автомобиля)</CommandText>
  54. <Parameters>
  55. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Марка_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Марка_автомобиля" SourceColumnNullMapping="false" SourceVersion="Current" />
  56. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Цвет_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Цвет_автомобиля" SourceColumnNullMapping="false" SourceVersion="Current" />
  57. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Год_выпуска_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Год_выпуска_автомобиля" SourceColumnNullMapping="false" SourceVersion="Current" />
  58. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Госномер_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Госномер_автомобиля" SourceColumnNullMapping="false" SourceVersion="Current" />
  59. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Страховая_стоимость" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Страховая_стоимость" SourceColumnNullMapping="false" SourceVersion="Current" />
  60. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Код_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
  61. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Марка_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Марка_автомобиля" SourceColumnNullMapping="true" SourceVersion="Original" />
  62. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Марка_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Марка_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
  63. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Цвет_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Цвет_автомобиля" SourceColumnNullMapping="true" SourceVersion="Original" />
  64. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Цвет_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Цвет_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
  65. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Год_выпуска_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Год_выпуска_автомобиля" SourceColumnNullMapping="true" SourceVersion="Original" />
  66. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Год_выпуска_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Год_выпуска_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
  67. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Госномер_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Госномер_автомобиля" SourceColumnNullMapping="true" SourceVersion="Original" />
  68. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Госномер_автомобиля" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Госномер_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
  69. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Страховая_стоимость" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Страховая_стоимость" SourceColumnNullMapping="true" SourceVersion="Original" />
  70. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Страховая_стоимость" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Страховая_стоимость" SourceColumnNullMapping="false" SourceVersion="Original" />
  71. <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" />
  72. </Parameters>
  73. </DbCommand>
  74. </UpdateCommand>
  75. </DbSource>
  76. </MainSource>
  77. <Mappings>
  78. <Mapping SourceColumn="Код_автомобиля" DataSetColumn="Код_автомобиля" />
  79. <Mapping SourceColumn="Марка_автомобиля" DataSetColumn="Марка_автомобиля" />
  80. <Mapping SourceColumn="Цвет_автомобиля" DataSetColumn="Цвет_автомобиля" />
  81. <Mapping SourceColumn="Год_выпуска_автомобиля" DataSetColumn="Год_выпуска_автомобиля" />
  82. <Mapping SourceColumn="Госномер_автомобиля" DataSetColumn="Госномер_автомобиля" />
  83. <Mapping SourceColumn="Страховая_стоимость" DataSetColumn="Страховая_стоимость" />
  84. </Mappings>
  85. <Sources />
  86. </TableAdapter>
  87. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="КлиентыTableAdapter" GeneratorDataComponentClassName="КлиентыTableAdapter" Name="Клиенты" UserDataComponentName="КлиентыTableAdapter">
  88. <MainSource>
  89. <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">
  90. <DeleteCommand>
  91. <DbCommand CommandType="Text" ModifiedByUser="false">
  92. <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>
  93. <Parameters>
  94. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Код_клиента" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_клиента" SourceColumnNullMapping="false" SourceVersion="Original" />
  95. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Фамилия" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="true" SourceVersion="Original" />
  96. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Фамилия" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="false" SourceVersion="Original" />
  97. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Имя" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="true" SourceVersion="Original" />
  98. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Имя" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="false" SourceVersion="Original" />
  99. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Отчество" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="true" SourceVersion="Original" />
  100. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Отчество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="false" SourceVersion="Original" />
  101. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Серия_и_номер_паспорта" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Серия_и_номер_паспорта" SourceColumnNullMapping="true" SourceVersion="Original" />
  102. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Серия_и_номер_паспорта" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Серия_и_номер_паспорта" SourceColumnNullMapping="false" SourceVersion="Original" />
  103. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Адрес" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="true" SourceVersion="Original" />
  104. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Адрес" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="false" SourceVersion="Original" />
  105. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Телефон" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="true" SourceVersion="Original" />
  106. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="false" SourceVersion="Original" />
  107. </Parameters>
  108. </DbCommand>
  109. </DeleteCommand>
  110. <InsertCommand>
  111. <DbCommand CommandType="Text" ModifiedByUser="false">
  112. <CommandText>INSERT INTO [dbo].[Клиенты] ([Фамилия], [Имя], [Отчество], [Серия_и_номер_паспорта], [Адрес], [Телефон]) VALUES (@Фамилия, @Имя, @Отчество, @Серия_и_номер_паспорта, @Адрес, @Телефон);
  113. SELECT Код_клиента, Фамилия, Имя, Отчество, Серия_и_номер_паспорта, Адрес, Телефон FROM Клиенты WHERE (Код_клиента = SCOPE_IDENTITY())</CommandText>
  114. <Parameters>
  115. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Фамилия" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="false" SourceVersion="Current" />
  116. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Имя" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="false" SourceVersion="Current" />
  117. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Отчество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="false" SourceVersion="Current" />
  118. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Серия_и_номер_паспорта" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Серия_и_номер_паспорта" SourceColumnNullMapping="false" SourceVersion="Current" />
  119. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Адрес" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="false" SourceVersion="Current" />
  120. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="false" SourceVersion="Current" />
  121. </Parameters>
  122. </DbCommand>
  123. </InsertCommand>
  124. <SelectCommand>
  125. <DbCommand CommandType="Text" ModifiedByUser="false">
  126. <CommandText>SELECT Код_клиента, Фамилия, Имя, Отчество, Серия_и_номер_паспорта, Адрес, Телефон FROM dbo.Клиенты</CommandText>
  127. <Parameters />
  128. </DbCommand>
  129. </SelectCommand>
  130. <UpdateCommand>
  131. <DbCommand CommandType="Text" ModifiedByUser="false">
  132. <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_Телефон)));
  133. SELECT Код_клиента, Фамилия, Имя, Отчество, Серия_и_номер_паспорта, Адрес, Телефон FROM Клиенты WHERE (Код_клиента = @Код_клиента)</CommandText>
  134. <Parameters>
  135. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Фамилия" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="false" SourceVersion="Current" />
  136. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Имя" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="false" SourceVersion="Current" />
  137. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Отчество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="false" SourceVersion="Current" />
  138. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Серия_и_номер_паспорта" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Серия_и_номер_паспорта" SourceColumnNullMapping="false" SourceVersion="Current" />
  139. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Адрес" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="false" SourceVersion="Current" />
  140. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="false" SourceVersion="Current" />
  141. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Код_клиента" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_клиента" SourceColumnNullMapping="false" SourceVersion="Original" />
  142. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Фамилия" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="true" SourceVersion="Original" />
  143. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Фамилия" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="false" SourceVersion="Original" />
  144. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Имя" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="true" SourceVersion="Original" />
  145. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Имя" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="false" SourceVersion="Original" />
  146. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Отчество" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="true" SourceVersion="Original" />
  147. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Отчество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="false" SourceVersion="Original" />
  148. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Серия_и_номер_паспорта" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Серия_и_номер_паспорта" SourceColumnNullMapping="true" SourceVersion="Original" />
  149. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Серия_и_номер_паспорта" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Серия_и_номер_паспорта" SourceColumnNullMapping="false" SourceVersion="Original" />
  150. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Адрес" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="true" SourceVersion="Original" />
  151. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Адрес" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="false" SourceVersion="Original" />
  152. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Телефон" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="true" SourceVersion="Original" />
  153. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="false" SourceVersion="Original" />
  154. <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" />
  155. </Parameters>
  156. </DbCommand>
  157. </UpdateCommand>
  158. </DbSource>
  159. </MainSource>
  160. <Mappings>
  161. <Mapping SourceColumn="Код_клиента" DataSetColumn="Код_клиента" />
  162. <Mapping SourceColumn="Фамилия" DataSetColumn="Фамилия" />
  163. <Mapping SourceColumn="Имя" DataSetColumn="Имя" />
  164. <Mapping SourceColumn="Отчество" DataSetColumn="Отчество" />
  165. <Mapping SourceColumn="Серия_и_номер_паспорта" DataSetColumn="Серия_и_номер_паспорта" />
  166. <Mapping SourceColumn="Адрес" DataSetColumn="Адрес" />
  167. <Mapping SourceColumn="Телефон" DataSetColumn="Телефон" />
  168. </Mappings>
  169. <Sources />
  170. </TableAdapter>
  171. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ПрокатыTableAdapter" GeneratorDataComponentClassName="ПрокатыTableAdapter" Name="Прокаты" UserDataComponentName="ПрокатыTableAdapter">
  172. <MainSource>
  173. <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">
  174. <DeleteCommand>
  175. <DbCommand CommandType="Text" ModifiedByUser="false">
  176. <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>
  177. <Parameters>
  178. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Код_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
  179. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Код_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
  180. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Код_клиента" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_клиента" SourceColumnNullMapping="false" SourceVersion="Original" />
  181. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Дата_начала_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Дата_начала_проката" SourceColumnNullMapping="true" SourceVersion="Original" />
  182. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Дата_начала_проката" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Дата_начала_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
  183. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Количество_дней_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Количество_дней_проката" SourceColumnNullMapping="true" SourceVersion="Original" />
  184. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Количество_дней_проката" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Количество_дней_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
  185. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Дата_окончания_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Дата_окончания_проката" SourceColumnNullMapping="true" SourceVersion="Original" />
  186. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Дата_окончания_проката" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Дата_окончания_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
  187. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Стоимость_одного_дня_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Стоимость_одного_дня_проката" SourceColumnNullMapping="true" SourceVersion="Original" />
  188. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Стоимость_одного_дня_проката" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Стоимость_одного_дня_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
  189. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Стоимость_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Стоимость_проката" SourceColumnNullMapping="true" SourceVersion="Original" />
  190. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Стоимость_проката" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Стоимость_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
  191. </Parameters>
  192. </DbCommand>
  193. </DeleteCommand>
  194. <InsertCommand>
  195. <DbCommand CommandType="Text" ModifiedByUser="false">
  196. <CommandText>INSERT INTO [dbo].[Прокаты] ([Код_автомобиля], [Код_клиента], [Дата_начала_проката], [Количество_дней_проката], [Дата_окончания_проката], [Стоимость_одного_дня_проката], [Стоимость_проката]) VALUES (@Код_автомобиля, @Код_клиента, @Дата_начала_проката, @Количество_дней_проката, @Дата_окончания_проката, @Стоимость_одного_дня_проката, @Стоимость_проката);
  197. SELECT Код_проката, Код_автомобиля, Код_клиента, Дата_начала_проката, Количество_дней_проката, Дата_окончания_проката, Стоимость_одного_дня_проката, Стоимость_проката FROM Прокаты WHERE (Код_проката = SCOPE_IDENTITY())</CommandText>
  198. <Parameters>
  199. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Код_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_автомобиля" SourceColumnNullMapping="false" SourceVersion="Current" />
  200. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Код_клиента" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_клиента" SourceColumnNullMapping="false" SourceVersion="Current" />
  201. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Дата_начала_проката" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Дата_начала_проката" SourceColumnNullMapping="false" SourceVersion="Current" />
  202. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Количество_дней_проката" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Количество_дней_проката" SourceColumnNullMapping="false" SourceVersion="Current" />
  203. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Дата_окончания_проката" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Дата_окончания_проката" SourceColumnNullMapping="false" SourceVersion="Current" />
  204. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Стоимость_одного_дня_проката" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Стоимость_одного_дня_проката" SourceColumnNullMapping="false" SourceVersion="Current" />
  205. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Стоимость_проката" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Стоимость_проката" SourceColumnNullMapping="false" SourceVersion="Current" />
  206. </Parameters>
  207. </DbCommand>
  208. </InsertCommand>
  209. <SelectCommand>
  210. <DbCommand CommandType="Text" ModifiedByUser="false">
  211. <CommandText>SELECT Код_проката, Код_автомобиля, Код_клиента, Дата_начала_проката, Количество_дней_проката, Дата_окончания_проката, Стоимость_одного_дня_проката, Стоимость_проката FROM dbo.Прокаты</CommandText>
  212. <Parameters />
  213. </DbCommand>
  214. </SelectCommand>
  215. <UpdateCommand>
  216. <DbCommand CommandType="Text" ModifiedByUser="false">
  217. <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_Стоимость_проката)));
  218. SELECT Код_проката, Код_автомобиля, Код_клиента, Дата_начала_проката, Количество_дней_проката, Дата_окончания_проката, Стоимость_одного_дня_проката, Стоимость_проката FROM Прокаты WHERE (Код_проката = @Код_проката)</CommandText>
  219. <Parameters>
  220. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Код_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_автомобиля" SourceColumnNullMapping="false" SourceVersion="Current" />
  221. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Код_клиента" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_клиента" SourceColumnNullMapping="false" SourceVersion="Current" />
  222. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Дата_начала_проката" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Дата_начала_проката" SourceColumnNullMapping="false" SourceVersion="Current" />
  223. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Количество_дней_проката" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Количество_дней_проката" SourceColumnNullMapping="false" SourceVersion="Current" />
  224. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Дата_окончания_проката" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Дата_окончания_проката" SourceColumnNullMapping="false" SourceVersion="Current" />
  225. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Стоимость_одного_дня_проката" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Стоимость_одного_дня_проката" SourceColumnNullMapping="false" SourceVersion="Current" />
  226. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Стоимость_проката" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Стоимость_проката" SourceColumnNullMapping="false" SourceVersion="Current" />
  227. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Код_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
  228. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Код_автомобиля" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_автомобиля" SourceColumnNullMapping="false" SourceVersion="Original" />
  229. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Код_клиента" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Код_клиента" SourceColumnNullMapping="false" SourceVersion="Original" />
  230. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Дата_начала_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Дата_начала_проката" SourceColumnNullMapping="true" SourceVersion="Original" />
  231. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Дата_начала_проката" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Дата_начала_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
  232. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Количество_дней_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Количество_дней_проката" SourceColumnNullMapping="true" SourceVersion="Original" />
  233. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Количество_дней_проката" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Количество_дней_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
  234. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Дата_окончания_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Дата_окончания_проката" SourceColumnNullMapping="true" SourceVersion="Original" />
  235. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Дата_окончания_проката" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Дата_окончания_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
  236. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Стоимость_одного_дня_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Стоимость_одного_дня_проката" SourceColumnNullMapping="true" SourceVersion="Original" />
  237. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Стоимость_одного_дня_проката" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Стоимость_одного_дня_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
  238. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Стоимость_проката" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Стоимость_проката" SourceColumnNullMapping="true" SourceVersion="Original" />
  239. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Стоимость_проката" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Стоимость_проката" SourceColumnNullMapping="false" SourceVersion="Original" />
  240. <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" />
  241. </Parameters>
  242. </DbCommand>
  243. </UpdateCommand>
  244. </DbSource>
  245. </MainSource>
  246. <Mappings>
  247. <Mapping SourceColumn="Код_проката" DataSetColumn="Код_проката" />
  248. <Mapping SourceColumn="Код_автомобиля" DataSetColumn="Код_автомобиля" />
  249. <Mapping SourceColumn="Код_клиента" DataSetColumn="Код_клиента" />
  250. <Mapping SourceColumn="Дата_начала_проката" DataSetColumn="Дата_начала_проката" />
  251. <Mapping SourceColumn="Количество_дней_проката" DataSetColumn="Количество_дней_проката" />
  252. <Mapping SourceColumn="Дата_окончания_проката" DataSetColumn="Дата_окончания_проката" />
  253. <Mapping SourceColumn="Стоимость_одного_дня_проката" DataSetColumn="Стоимость_одного_дня_проката" />
  254. <Mapping SourceColumn="Стоимость_проката" DataSetColumn="Стоимость_проката" />
  255. </Mappings>
  256. <Sources />
  257. </TableAdapter>
  258. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ПредставлениеTableAdapter" GeneratorDataComponentClassName="ПредставлениеTableAdapter" Name="Представление" UserDataComponentName="ПредставлениеTableAdapter">
  259. <MainSource>
  260. <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">
  261. <SelectCommand>
  262. <DbCommand CommandType="Text" ModifiedByUser="false">
  263. <CommandText>SELECT Фамилия, Имя, Отчество, Марка_автомобиля, Госномер_автомобиля, Дата_начала_проката, Количество_дней_проката, Стоимость_одного_дня_проката, Стоимость_проката FROM dbo.Представление</CommandText>
  264. <Parameters />
  265. </DbCommand>
  266. </SelectCommand>
  267. </DbSource>
  268. </MainSource>
  269. <Mappings>
  270. <Mapping SourceColumn="Фамилия" DataSetColumn="Фамилия" />
  271. <Mapping SourceColumn="Имя" DataSetColumn="Имя" />
  272. <Mapping SourceColumn="Отчество" DataSetColumn="Отчество" />
  273. <Mapping SourceColumn="Марка_автомобиля" DataSetColumn="Марка_автомобиля" />
  274. <Mapping SourceColumn="Госномер_автомобиля" DataSetColumn="Госномер_автомобиля" />
  275. <Mapping SourceColumn="Дата_начала_проката" DataSetColumn="Дата_начала_проката" />
  276. <Mapping SourceColumn="Количество_дней_проката" DataSetColumn="Количество_дней_проката" />
  277. <Mapping SourceColumn="Стоимость_одного_дня_проката" DataSetColumn="Стоимость_одного_дня_проката" />
  278. <Mapping SourceColumn="Стоимость_проката" DataSetColumn="Стоимость_проката" />
  279. </Mappings>
  280. <Sources />
  281. </TableAdapter>
  282. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ГосномерTableAdapter" GeneratorDataComponentClassName="ГосномерTableAdapter" Name="Госномер" UserDataComponentName="ГосномерTableAdapter">
  283. <MainSource>
  284. <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">
  285. <SelectCommand>
  286. <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
  287. <CommandText>dbo.Госномер</CommandText>
  288. <Parameters>
  289. <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" />
  290. <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" />
  291. <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" />
  292. </Parameters>
  293. </DbCommand>
  294. </SelectCommand>
  295. </DbSource>
  296. </MainSource>
  297. <Mappings>
  298. <Mapping SourceColumn="Госномер_автомобиля" DataSetColumn="Госномер_автомобиля" />
  299. </Mappings>
  300. <Sources />
  301. </TableAdapter>
  302. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Госномер_автомобиляTableAdapter" GeneratorDataComponentClassName="Госномер_автомобиляTableAdapter" Name="Госномер_автомобиля" UserDataComponentName="Госномер_автомобиляTableAdapter">
  303. <MainSource>
  304. <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">
  305. <SelectCommand>
  306. <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
  307. <CommandText>dbo.Госномер_автомобиля</CommandText>
  308. <Parameters>
  309. <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" />
  310. <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" />
  311. </Parameters>
  312. </DbCommand>
  313. </SelectCommand>
  314. </DbSource>
  315. </MainSource>
  316. <Mappings>
  317. <Mapping SourceColumn="Госномер_автомобиля" DataSetColumn="Госномер_автомобиля" />
  318. </Mappings>
  319. <Sources />
  320. </TableAdapter>
  321. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ДатаTableAdapter" GeneratorDataComponentClassName="ДатаTableAdapter" Name="Дата" UserDataComponentName="ДатаTableAdapter">
  322. <MainSource>
  323. <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">
  324. <SelectCommand>
  325. <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
  326. <CommandText>dbo.Дата</CommandText>
  327. <Parameters>
  328. <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" />
  329. <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" />
  330. <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" />
  331. </Parameters>
  332. </DbCommand>
  333. </SelectCommand>
  334. </DbSource>
  335. </MainSource>
  336. <Mappings>
  337. <Mapping SourceColumn="Дата_начала_проката" DataSetColumn="Дата_начала_проката" />
  338. </Mappings>
  339. <Sources />
  340. </TableAdapter>
  341. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Дата_началаTableAdapter" GeneratorDataComponentClassName="Дата_началаTableAdapter" Name="Дата_начала" UserDataComponentName="Дата_началаTableAdapter">
  342. <MainSource>
  343. <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">
  344. <SelectCommand>
  345. <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
  346. <CommandText>dbo.Дата_начала</CommandText>
  347. <Parameters>
  348. <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" />
  349. <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" />
  350. <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" />
  351. </Parameters>
  352. </DbCommand>
  353. </SelectCommand>
  354. </DbSource>
  355. </MainSource>
  356. <Mappings>
  357. <Mapping SourceColumn="Дата_начала_проката" DataSetColumn="Дата_начала_проката" />
  358. </Mappings>
  359. <Sources />
  360. </TableAdapter>
  361. </Tables>
  362. <Sources />
  363. </DataSource>
  364. </xs:appinfo>
  365. </xs:annotation>
  366. <xs:element name="Prokatavto08DataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="Prokatavto08DataSet" msprop:Generator_UserDSName="Prokatavto08DataSet">
  367. <xs:complexType>
  368. <xs:choice minOccurs="0" maxOccurs="unbounded">
  369. <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">
  370. <xs:complexType>
  371. <xs:sequence>
  372. <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" />
  373. <xs:element name="Марка_автомобиля" msprop:Generator_ColumnVarNameInTable="columnМарка_автомобиля" msprop:Generator_ColumnPropNameInRow="Марка_автомобиля" msprop:Generator_ColumnPropNameInTable="Марка_автомобиляColumn" msprop:Generator_UserColumnName="Марка_автомобиля" minOccurs="0">
  374. <xs:simpleType>
  375. <xs:restriction base="xs:string">
  376. <xs:maxLength value="10" />
  377. </xs:restriction>
  378. </xs:simpleType>
  379. </xs:element>
  380. <xs:element name="Цвет_автомобиля" msprop:Generator_ColumnVarNameInTable="columnЦвет_автомобиля" msprop:Generator_ColumnPropNameInRow="Цвет_автомобиля" msprop:Generator_ColumnPropNameInTable="Цвет_автомобиляColumn" msprop:Generator_UserColumnName="Цвет_автомобиля" minOccurs="0">
  381. <xs:simpleType>
  382. <xs:restriction base="xs:string">
  383. <xs:maxLength value="10" />
  384. </xs:restriction>
  385. </xs:simpleType>
  386. </xs:element>
  387. <xs:element name="Год_выпуска_автомобиля" msprop:Generator_ColumnVarNameInTable="columnГод_выпуска_автомобиля" msprop:Generator_ColumnPropNameInRow="Год_выпуска_автомобиля" msprop:Generator_ColumnPropNameInTable="Год_выпуска_автомобиляColumn" msprop:Generator_UserColumnName="Год_выпуска_автомобиля" minOccurs="0">
  388. <xs:simpleType>
  389. <xs:restriction base="xs:string">
  390. <xs:maxLength value="4" />
  391. </xs:restriction>
  392. </xs:simpleType>
  393. </xs:element>
  394. <xs:element name="Госномер_автомобиля" msprop:Generator_ColumnVarNameInTable="columnГосномер_автомобиля" msprop:Generator_ColumnPropNameInRow="Госномер_автомобиля" msprop:Generator_ColumnPropNameInTable="Госномер_автомобиляColumn" msprop:Generator_UserColumnName="Госномер_автомобиля" minOccurs="0">
  395. <xs:simpleType>
  396. <xs:restriction base="xs:string">
  397. <xs:maxLength value="10" />
  398. </xs:restriction>
  399. </xs:simpleType>
  400. </xs:element>
  401. <xs:element name="Страховая_стоимость" msprop:Generator_ColumnVarNameInTable="columnСтраховая_стоимость" msprop:Generator_ColumnPropNameInRow="Страховая_стоимость" msprop:Generator_ColumnPropNameInTable="Страховая_стоимостьColumn" msprop:Generator_UserColumnName="Страховая_стоимость" type="xs:decimal" minOccurs="0" />
  402. </xs:sequence>
  403. </xs:complexType>
  404. </xs:element>
  405. <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">
  406. <xs:complexType>
  407. <xs:sequence>
  408. <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" />
  409. <xs:element name="Фамилия" msprop:Generator_ColumnVarNameInTable="columnФамилия" msprop:Generator_ColumnPropNameInRow="Фамилия" msprop:Generator_ColumnPropNameInTable="ФамилияColumn" msprop:Generator_UserColumnName="Фамилия" minOccurs="0">
  410. <xs:simpleType>
  411. <xs:restriction base="xs:string">
  412. <xs:maxLength value="20" />
  413. </xs:restriction>
  414. </xs:simpleType>
  415. </xs:element>
  416. <xs:element name="Имя" msprop:Generator_ColumnVarNameInTable="columnИмя" msprop:Generator_ColumnPropNameInRow="Имя" msprop:Generator_ColumnPropNameInTable="ИмяColumn" msprop:Generator_UserColumnName="Имя" minOccurs="0">
  417. <xs:simpleType>
  418. <xs:restriction base="xs:string">
  419. <xs:maxLength value="20" />
  420. </xs:restriction>
  421. </xs:simpleType>
  422. </xs:element>
  423. <xs:element name="Отчество" msprop:Generator_ColumnVarNameInTable="columnОтчество" msprop:Generator_ColumnPropNameInRow="Отчество" msprop:Generator_ColumnPropNameInTable="ОтчествоColumn" msprop:Generator_UserColumnName="Отчество" minOccurs="0">
  424. <xs:simpleType>
  425. <xs:restriction base="xs:string">
  426. <xs:maxLength value="20" />
  427. </xs:restriction>
  428. </xs:simpleType>
  429. </xs:element>
  430. <xs:element name="Серия_и_номер_паспорта" msprop:Generator_ColumnVarNameInTable="columnСерия_и_номер_паспорта" msprop:Generator_ColumnPropNameInRow="Серия_и_номер_паспорта" msprop:Generator_ColumnPropNameInTable="Серия_и_номер_паспортаColumn" msprop:Generator_UserColumnName="Серия_и_номер_паспорта" minOccurs="0">
  431. <xs:simpleType>
  432. <xs:restriction base="xs:string">
  433. <xs:maxLength value="30" />
  434. </xs:restriction>
  435. </xs:simpleType>
  436. </xs:element>
  437. <xs:element name="Адрес" msprop:Generator_ColumnVarNameInTable="columnАдрес" msprop:Generator_ColumnPropNameInRow="Адрес" msprop:Generator_ColumnPropNameInTable="АдресColumn" msprop:Generator_UserColumnName="Адрес" minOccurs="0">
  438. <xs:simpleType>
  439. <xs:restriction base="xs:string">
  440. <xs:maxLength value="50" />
  441. </xs:restriction>
  442. </xs:simpleType>
  443. </xs:element>
  444. <xs:element name="Телефон" msprop:Generator_ColumnVarNameInTable="columnТелефон" msprop:Generator_ColumnPropNameInRow="Телефон" msprop:Generator_ColumnPropNameInTable="ТелефонColumn" msprop:Generator_UserColumnName="Телефон" minOccurs="0">
  445. <xs:simpleType>
  446. <xs:restriction base="xs:string">
  447. <xs:maxLength value="15" />
  448. </xs:restriction>
  449. </xs:simpleType>
  450. </xs:element>
  451. </xs:sequence>
  452. </xs:complexType>
  453. </xs:element>
  454. <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">
  455. <xs:complexType>
  456. <xs:sequence>
  457. <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" />
  458. <xs:element name="Код_автомобиля" msprop:Generator_ColumnVarNameInTable="columnКод_автомобиля" msprop:Generator_ColumnPropNameInRow="Код_автомобиля" msprop:Generator_ColumnPropNameInTable="Код_автомобиляColumn" msprop:Generator_UserColumnName="Код_автомобиля" type="xs:int" />
  459. <xs:element name="Код_клиента" msprop:Generator_ColumnVarNameInTable="columnКод_клиента" msprop:Generator_ColumnPropNameInRow="Код_клиента" msprop:Generator_ColumnPropNameInTable="Код_клиентаColumn" msprop:Generator_UserColumnName="Код_клиента" type="xs:int" />
  460. <xs:element name="Дата_начала_проката" msprop:Generator_ColumnVarNameInTable="columnДата_начала_проката" msprop:Generator_ColumnPropNameInRow="Дата_начала_проката" msprop:Generator_ColumnPropNameInTable="Дата_начала_прокатаColumn" msprop:Generator_UserColumnName="Дата_начала_проката" type="xs:dateTime" minOccurs="0" />
  461. <xs:element name="Количество_дней_проката" msprop:Generator_ColumnVarNameInTable="columnКоличество_дней_проката" msprop:Generator_ColumnPropNameInRow="Количество_дней_проката" msprop:Generator_ColumnPropNameInTable="Количество_дней_прокатаColumn" msprop:Generator_UserColumnName="Количество_дней_проката" minOccurs="0">
  462. <xs:simpleType>
  463. <xs:restriction base="xs:string">
  464. <xs:maxLength value="3" />
  465. </xs:restriction>
  466. </xs:simpleType>
  467. </xs:element>
  468. <xs:element name="Дата_окончания_проката" msprop:Generator_ColumnVarNameInTable="columnДата_окончания_проката" msprop:Generator_ColumnPropNameInRow="Дата_окончания_проката" msprop:Generator_ColumnPropNameInTable="Дата_окончания_прокатаColumn" msprop:Generator_UserColumnName="Дата_окончания_проката" type="xs:dateTime" minOccurs="0" />
  469. <xs:element name="Стоимость_одного_дня_проката" msprop:Generator_ColumnVarNameInTable="columnСтоимость_одного_дня_проката" msprop:Generator_ColumnPropNameInRow="Стоимость_одного_дня_проката" msprop:Generator_ColumnPropNameInTable="Стоимость_одного_дня_прокатаColumn" msprop:Generator_UserColumnName="Стоимость_одного_дня_проката" type="xs:decimal" minOccurs="0" />
  470. <xs:element name="Стоимость_проката" msprop:Generator_ColumnVarNameInTable="columnСтоимость_проката" msprop:Generator_ColumnPropNameInRow="Стоимость_проката" msprop:Generator_ColumnPropNameInTable="Стоимость_прокатаColumn" msprop:Generator_UserColumnName="Стоимость_проката" type="xs:decimal" minOccurs="0" />
  471. </xs:sequence>
  472. </xs:complexType>
  473. </xs:element>
  474. <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">
  475. <xs:complexType>
  476. <xs:sequence>
  477. <xs:element name="Фамилия" msprop:Generator_ColumnVarNameInTable="columnФамилия" msprop:Generator_ColumnPropNameInRow="Фамилия" msprop:Generator_ColumnPropNameInTable="ФамилияColumn" msprop:Generator_UserColumnName="Фамилия" minOccurs="0">
  478. <xs:simpleType>
  479. <xs:restriction base="xs:string">
  480. <xs:maxLength value="20" />
  481. </xs:restriction>
  482. </xs:simpleType>
  483. </xs:element>
  484. <xs:element name="Имя" msprop:Generator_ColumnVarNameInTable="columnИмя" msprop:Generator_ColumnPropNameInRow="Имя" msprop:Generator_ColumnPropNameInTable="ИмяColumn" msprop:Generator_UserColumnName="Имя" minOccurs="0">
  485. <xs:simpleType>
  486. <xs:restriction base="xs:string">
  487. <xs:maxLength value="20" />
  488. </xs:restriction>
  489. </xs:simpleType>
  490. </xs:element>
  491. <xs:element name="Отчество" msprop:Generator_ColumnVarNameInTable="columnОтчество" msprop:Generator_ColumnPropNameInRow="Отчество" msprop:Generator_ColumnPropNameInTable="ОтчествоColumn" msprop:Generator_UserColumnName="Отчество" minOccurs="0">
  492. <xs:simpleType>
  493. <xs:restriction base="xs:string">
  494. <xs:maxLength value="20" />
  495. </xs:restriction>
  496. </xs:simpleType>
  497. </xs:element>
  498. <xs:element name="Марка_автомобиля" msprop:Generator_ColumnVarNameInTable="columnМарка_автомобиля" msprop:Generator_ColumnPropNameInRow="Марка_автомобиля" msprop:Generator_ColumnPropNameInTable="Марка_автомобиляColumn" msprop:Generator_UserColumnName="Марка_автомобиля" minOccurs="0">
  499. <xs:simpleType>
  500. <xs:restriction base="xs:string">
  501. <xs:maxLength value="10" />
  502. </xs:restriction>
  503. </xs:simpleType>
  504. </xs:element>
  505. <xs:element name="Госномер_автомобиля" msprop:Generator_ColumnVarNameInTable="columnГосномер_автомобиля" msprop:Generator_ColumnPropNameInRow="Госномер_автомобиля" msprop:Generator_ColumnPropNameInTable="Госномер_автомобиляColumn" msprop:Generator_UserColumnName="Госномер_автомобиля" minOccurs="0">
  506. <xs:simpleType>
  507. <xs:restriction base="xs:string">
  508. <xs:maxLength value="10" />
  509. </xs:restriction>
  510. </xs:simpleType>
  511. </xs:element>
  512. <xs:element name="Дата_начала_проката" msprop:Generator_ColumnVarNameInTable="columnДата_начала_проката" msprop:Generator_ColumnPropNameInRow="Дата_начала_проката" msprop:Generator_ColumnPropNameInTable="Дата_начала_прокатаColumn" msprop:Generator_UserColumnName="Дата_начала_проката" type="xs:dateTime" minOccurs="0" />
  513. <xs:element name="Количество_дней_проката" msprop:Generator_ColumnVarNameInTable="columnКоличество_дней_проката" msprop:Generator_ColumnPropNameInRow="Количество_дней_проката" msprop:Generator_ColumnPropNameInTable="Количество_дней_прокатаColumn" msprop:Generator_UserColumnName="Количество_дней_проката" minOccurs="0">
  514. <xs:simpleType>
  515. <xs:restriction base="xs:string">
  516. <xs:maxLength value="3" />
  517. </xs:restriction>
  518. </xs:simpleType>
  519. </xs:element>
  520. <xs:element name="Стоимость_одного_дня_проката" msprop:Generator_ColumnVarNameInTable="columnСтоимость_одного_дня_проката" msprop:Generator_ColumnPropNameInRow="Стоимость_одного_дня_проката" msprop:Generator_ColumnPropNameInTable="Стоимость_одного_дня_прокатаColumn" msprop:Generator_UserColumnName="Стоимость_одного_дня_проката" type="xs:decimal" minOccurs="0" />
  521. <xs:element name="Стоимость_проката" msprop:Generator_ColumnVarNameInTable="columnСтоимость_проката" msprop:Generator_ColumnPropNameInRow="Стоимость_проката" msprop:Generator_ColumnPropNameInTable="Стоимость_прокатаColumn" msprop:Generator_UserColumnName="Стоимость_проката" type="xs:decimal" minOccurs="0" />
  522. </xs:sequence>
  523. </xs:complexType>
  524. </xs:element>
  525. <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">
  526. <xs:complexType>
  527. <xs:sequence>
  528. <xs:element name="Госномер_автомобиля" msprop:Generator_ColumnVarNameInTable="columnГосномер_автомобиля" msprop:Generator_ColumnPropNameInRow="Госномер_автомобиля" msprop:Generator_ColumnPropNameInTable="Госномер_автомобиляColumn" msprop:Generator_UserColumnName="Госномер_автомобиля" minOccurs="0">
  529. <xs:simpleType>
  530. <xs:restriction base="xs:string">
  531. <xs:maxLength value="10" />
  532. </xs:restriction>
  533. </xs:simpleType>
  534. </xs:element>
  535. </xs:sequence>
  536. </xs:complexType>
  537. </xs:element>
  538. <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">
  539. <xs:complexType>
  540. <xs:sequence>
  541. <xs:element name="Госномер_автомобиля" msprop:Generator_ColumnVarNameInTable="columnГосномер_автомобиля" msprop:Generator_ColumnPropNameInRow="Госномер_автомобиля" msprop:Generator_ColumnPropNameInTable="Госномер_автомобиляColumn" msprop:Generator_UserColumnName="Госномер_автомобиля" minOccurs="0">
  542. <xs:simpleType>
  543. <xs:restriction base="xs:string">
  544. <xs:maxLength value="10" />
  545. </xs:restriction>
  546. </xs:simpleType>
  547. </xs:element>
  548. </xs:sequence>
  549. </xs:complexType>
  550. </xs:element>
  551. <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">
  552. <xs:complexType>
  553. <xs:sequence>
  554. <xs:element name="Дата_начала_проката" msprop:Generator_ColumnVarNameInTable="columnДата_начала_проката" msprop:Generator_ColumnPropNameInRow="Дата_начала_проката" msprop:Generator_ColumnPropNameInTable="Дата_начала_прокатаColumn" msprop:Generator_UserColumnName="Дата_начала_проката" type="xs:dateTime" minOccurs="0" />
  555. </xs:sequence>
  556. </xs:complexType>
  557. </xs:element>
  558. <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">
  559. <xs:complexType>
  560. <xs:sequence>
  561. <xs:element name="Дата_начала_проката" msprop:Generator_ColumnVarNameInTable="columnДата_начала_проката" msprop:Generator_ColumnPropNameInRow="Дата_начала_проката" msprop:Generator_ColumnPropNameInTable="Дата_начала_прокатаColumn" msprop:Generator_UserColumnName="Дата_начала_проката" type="xs:dateTime" minOccurs="0" />
  562. </xs:sequence>
  563. </xs:complexType>
  564. </xs:element>
  565. </xs:choice>
  566. </xs:complexType>
  567. <xs:unique name="Constraint1" msdata:PrimaryKey="true">
  568. <xs:selector xpath=".//mstns:Автомобили" />
  569. <xs:field xpath="mstns:Код_автомобиля" />
  570. </xs:unique>
  571. <xs:unique name="Клиенты_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  572. <xs:selector xpath=".//mstns:Клиенты" />
  573. <xs:field xpath="mstns:Код_клиента" />
  574. </xs:unique>
  575. <xs:unique name="Прокаты_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  576. <xs:selector xpath=".//mstns:Прокаты" />
  577. <xs:field xpath="mstns:Код_проката" />
  578. </xs:unique>
  579. </xs:element>
  580. <xs:annotation>
  581. <xs:appinfo>
  582. <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="Автомобили" />
  583. <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="Клиенты" />
  584. </xs:appinfo>
  585. </xs:annotation>
  586. </xs:schema>