Lyakhov_Bilet10DataSet.xsd 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="Lyakhov_Bilet10DataSet" targetNamespace="http://tempuri.org/Lyakhov_Bilet10DataSet.xsd" xmlns:mstns="http://tempuri.org/Lyakhov_Bilet10DataSet.xsd" xmlns="http://tempuri.org/Lyakhov_Bilet10DataSet.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="Lyakhov_Bilet10ConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="Lyakhov_Bilet10ConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Lyakhov_Bilet10.Properties.Settings.GlobalReference.Default.Lyakhov_Bilet10ConnectionString" 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="Lyakhov_Bilet10ConnectionString (Settings)" DbObjectName="Lyakhov_Bilet10.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 (([ID_Zakaza] = @Original_ID_Zakaza) AND ([Kolichestvo] = @Original_Kolichestvo) AND ([ID_Tovara] = @Original_ID_Tovara) AND ([ID_Klienta] = @Original_ID_Klienta))</CommandText>
  16. <Parameters>
  17. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID_Zakaza" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Zakaza" SourceColumnNullMapping="false" SourceVersion="Original" />
  18. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Kolichestvo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Kolichestvo" SourceColumnNullMapping="false" SourceVersion="Original" />
  19. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID_Tovara" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Tovara" SourceColumnNullMapping="false" SourceVersion="Original" />
  20. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID_Klienta" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Klienta" SourceColumnNullMapping="false" SourceVersion="Original" />
  21. </Parameters>
  22. </DbCommand>
  23. </DeleteCommand>
  24. <InsertCommand>
  25. <DbCommand CommandType="Text" ModifiedByUser="false">
  26. <CommandText>INSERT INTO [dbo].[Заказ] ([Kolichestvo], [ID_Tovara], [ID_Klienta]) VALUES (@Kolichestvo, @ID_Tovara, @ID_Klienta);
  27. SELECT ID_Zakaza, Kolichestvo, ID_Tovara, ID_Klienta FROM Заказ WHERE (ID_Zakaza = SCOPE_IDENTITY())</CommandText>
  28. <Parameters>
  29. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Kolichestvo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Kolichestvo" SourceColumnNullMapping="false" SourceVersion="Current" />
  30. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ID_Tovara" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Tovara" SourceColumnNullMapping="false" SourceVersion="Current" />
  31. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ID_Klienta" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Klienta" SourceColumnNullMapping="false" SourceVersion="Current" />
  32. </Parameters>
  33. </DbCommand>
  34. </InsertCommand>
  35. <SelectCommand>
  36. <DbCommand CommandType="Text" ModifiedByUser="false">
  37. <CommandText>SELECT ID_Zakaza, Kolichestvo, ID_Tovara, ID_Klienta FROM dbo.Заказ</CommandText>
  38. <Parameters />
  39. </DbCommand>
  40. </SelectCommand>
  41. <UpdateCommand>
  42. <DbCommand CommandType="Text" ModifiedByUser="false">
  43. <CommandText>UPDATE [dbo].[Заказ] SET [Kolichestvo] = @Kolichestvo, [ID_Tovara] = @ID_Tovara, [ID_Klienta] = @ID_Klienta WHERE (([ID_Zakaza] = @Original_ID_Zakaza) AND ([Kolichestvo] = @Original_Kolichestvo) AND ([ID_Tovara] = @Original_ID_Tovara) AND ([ID_Klienta] = @Original_ID_Klienta));
  44. SELECT ID_Zakaza, Kolichestvo, ID_Tovara, ID_Klienta FROM Заказ WHERE (ID_Zakaza = @ID_Zakaza)</CommandText>
  45. <Parameters>
  46. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Kolichestvo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Kolichestvo" SourceColumnNullMapping="false" SourceVersion="Current" />
  47. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ID_Tovara" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Tovara" SourceColumnNullMapping="false" SourceVersion="Current" />
  48. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ID_Klienta" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Klienta" SourceColumnNullMapping="false" SourceVersion="Current" />
  49. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID_Zakaza" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Zakaza" SourceColumnNullMapping="false" SourceVersion="Original" />
  50. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Kolichestvo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Kolichestvo" SourceColumnNullMapping="false" SourceVersion="Original" />
  51. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID_Tovara" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Tovara" SourceColumnNullMapping="false" SourceVersion="Original" />
  52. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID_Klienta" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Klienta" SourceColumnNullMapping="false" SourceVersion="Original" />
  53. <Parameter AllowDbNull="false" AutogeneratedName="ID_Zakaza" ColumnName="ID_Zakaza" DataSourceName="Lyakhov_Bilet10.dbo.Заказ" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID_Zakaza" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID_Zakaza" SourceColumnNullMapping="false" SourceVersion="Current" />
  54. </Parameters>
  55. </DbCommand>
  56. </UpdateCommand>
  57. </DbSource>
  58. </MainSource>
  59. <Mappings>
  60. <Mapping SourceColumn="ID_Zakaza" DataSetColumn="ID_Zakaza" />
  61. <Mapping SourceColumn="Kolichestvo" DataSetColumn="Kolichestvo" />
  62. <Mapping SourceColumn="ID_Tovara" DataSetColumn="ID_Tovara" />
  63. <Mapping SourceColumn="ID_Klienta" DataSetColumn="ID_Klienta" />
  64. </Mappings>
  65. <Sources />
  66. </TableAdapter>
  67. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="История продажиTableAdapter" GeneratorDataComponentClassName="История_продажиTableAdapter" Name="История продажи" UserDataComponentName="История продажиTableAdapter">
  68. <MainSource>
  69. <DbSource ConnectionRef="Lyakhov_Bilet10ConnectionString (Settings)" DbObjectName="Lyakhov_Bilet10.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">
  70. <DeleteCommand>
  71. <DbCommand CommandType="Text" ModifiedByUser="false">
  72. <CommandText>DELETE FROM [dbo].[История продажи] WHERE (([ID_Istorii] = @Original_ID_Istorii) AND ([Nazvanie] = @Original_Nazvanie) AND ([Data_Prodaji] = @Original_Data_Prodaji) AND ([ID_Tovara] = @Original_ID_Tovara))</CommandText>
  73. <Parameters>
  74. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID_Istorii" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Istorii" SourceColumnNullMapping="false" SourceVersion="Original" />
  75. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Nazvanie" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Nazvanie" SourceColumnNullMapping="false" SourceVersion="Original" />
  76. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Data_Prodaji" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Data_Prodaji" SourceColumnNullMapping="false" SourceVersion="Original" />
  77. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID_Tovara" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Tovara" SourceColumnNullMapping="false" SourceVersion="Original" />
  78. </Parameters>
  79. </DbCommand>
  80. </DeleteCommand>
  81. <InsertCommand>
  82. <DbCommand CommandType="Text" ModifiedByUser="false">
  83. <CommandText>INSERT INTO [dbo].[История продажи] ([Nazvanie], [Data_Prodaji], [ID_Tovara]) VALUES (@Nazvanie, @Data_Prodaji, @ID_Tovara);
  84. SELECT ID_Istorii, Nazvanie, Data_Prodaji, ID_Tovara FROM [История продажи] WHERE (ID_Istorii = SCOPE_IDENTITY())</CommandText>
  85. <Parameters>
  86. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Nazvanie" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Nazvanie" SourceColumnNullMapping="false" SourceVersion="Current" />
  87. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Data_Prodaji" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Data_Prodaji" SourceColumnNullMapping="false" SourceVersion="Current" />
  88. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ID_Tovara" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Tovara" SourceColumnNullMapping="false" SourceVersion="Current" />
  89. </Parameters>
  90. </DbCommand>
  91. </InsertCommand>
  92. <SelectCommand>
  93. <DbCommand CommandType="Text" ModifiedByUser="false">
  94. <CommandText>SELECT ID_Istorii, Nazvanie, Data_Prodaji, ID_Tovara FROM dbo.[История продажи]</CommandText>
  95. <Parameters />
  96. </DbCommand>
  97. </SelectCommand>
  98. <UpdateCommand>
  99. <DbCommand CommandType="Text" ModifiedByUser="false">
  100. <CommandText>UPDATE [dbo].[История продажи] SET [Nazvanie] = @Nazvanie, [Data_Prodaji] = @Data_Prodaji, [ID_Tovara] = @ID_Tovara WHERE (([ID_Istorii] = @Original_ID_Istorii) AND ([Nazvanie] = @Original_Nazvanie) AND ([Data_Prodaji] = @Original_Data_Prodaji) AND ([ID_Tovara] = @Original_ID_Tovara));
  101. SELECT ID_Istorii, Nazvanie, Data_Prodaji, ID_Tovara FROM [История продажи] WHERE (ID_Istorii = @ID_Istorii)</CommandText>
  102. <Parameters>
  103. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Nazvanie" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Nazvanie" SourceColumnNullMapping="false" SourceVersion="Current" />
  104. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Data_Prodaji" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Data_Prodaji" SourceColumnNullMapping="false" SourceVersion="Current" />
  105. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ID_Tovara" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Tovara" SourceColumnNullMapping="false" SourceVersion="Current" />
  106. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID_Istorii" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Istorii" SourceColumnNullMapping="false" SourceVersion="Original" />
  107. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Nazvanie" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Nazvanie" SourceColumnNullMapping="false" SourceVersion="Original" />
  108. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Data_Prodaji" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Data_Prodaji" SourceColumnNullMapping="false" SourceVersion="Original" />
  109. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID_Tovara" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Tovara" SourceColumnNullMapping="false" SourceVersion="Original" />
  110. <Parameter AllowDbNull="false" AutogeneratedName="ID_Istorii" ColumnName="ID_Istorii" DataSourceName="Lyakhov_Bilet10.dbo.[История продажи]" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID_Istorii" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID_Istorii" SourceColumnNullMapping="false" SourceVersion="Current" />
  111. </Parameters>
  112. </DbCommand>
  113. </UpdateCommand>
  114. </DbSource>
  115. </MainSource>
  116. <Mappings>
  117. <Mapping SourceColumn="ID_Istorii" DataSetColumn="ID_Istorii" />
  118. <Mapping SourceColumn="Nazvanie" DataSetColumn="Nazvanie" />
  119. <Mapping SourceColumn="Data_Prodaji" DataSetColumn="Data_Prodaji" />
  120. <Mapping SourceColumn="ID_Tovara" DataSetColumn="ID_Tovara" />
  121. </Mappings>
  122. <Sources />
  123. </TableAdapter>
  124. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="КлиентыTableAdapter" GeneratorDataComponentClassName="КлиентыTableAdapter" Name="Клиенты" UserDataComponentName="КлиентыTableAdapter">
  125. <MainSource>
  126. <DbSource ConnectionRef="Lyakhov_Bilet10ConnectionString (Settings)" DbObjectName="Lyakhov_Bilet10.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">
  127. <DeleteCommand>
  128. <DbCommand CommandType="Text" ModifiedByUser="false">
  129. <CommandText>DELETE FROM [dbo].[Клиенты] WHERE (([ID_Klienta] = @Original_ID_Klienta) AND ([FIO] = @Original_FIO) AND ([Telepfone] = @Original_Telepfone) AND ((@IsNull_ID_Zakaza = 1 AND [ID_Zakaza] IS NULL) OR ([ID_Zakaza] = @Original_ID_Zakaza)))</CommandText>
  130. <Parameters>
  131. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID_Klienta" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Klienta" SourceColumnNullMapping="false" SourceVersion="Original" />
  132. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FIO" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FIO" SourceColumnNullMapping="false" SourceVersion="Original" />
  133. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Telepfone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telepfone" SourceColumnNullMapping="false" SourceVersion="Original" />
  134. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ID_Zakaza" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Zakaza" SourceColumnNullMapping="true" SourceVersion="Original" />
  135. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID_Zakaza" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Zakaza" SourceColumnNullMapping="false" SourceVersion="Original" />
  136. </Parameters>
  137. </DbCommand>
  138. </DeleteCommand>
  139. <InsertCommand>
  140. <DbCommand CommandType="Text" ModifiedByUser="false">
  141. <CommandText>INSERT INTO [dbo].[Клиенты] ([FIO], [Telepfone], [ID_Zakaza]) VALUES (@FIO, @Telepfone, @ID_Zakaza);
  142. SELECT ID_Klienta, FIO, Telepfone, ID_Zakaza FROM Клиенты WHERE (ID_Klienta = SCOPE_IDENTITY())</CommandText>
  143. <Parameters>
  144. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FIO" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FIO" SourceColumnNullMapping="false" SourceVersion="Current" />
  145. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Telepfone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telepfone" SourceColumnNullMapping="false" SourceVersion="Current" />
  146. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ID_Zakaza" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Zakaza" SourceColumnNullMapping="false" SourceVersion="Current" />
  147. </Parameters>
  148. </DbCommand>
  149. </InsertCommand>
  150. <SelectCommand>
  151. <DbCommand CommandType="Text" ModifiedByUser="false">
  152. <CommandText>SELECT ID_Klienta, FIO, Telepfone, ID_Zakaza FROM dbo.Клиенты</CommandText>
  153. <Parameters />
  154. </DbCommand>
  155. </SelectCommand>
  156. <UpdateCommand>
  157. <DbCommand CommandType="Text" ModifiedByUser="false">
  158. <CommandText>UPDATE [dbo].[Клиенты] SET [FIO] = @FIO, [Telepfone] = @Telepfone, [ID_Zakaza] = @ID_Zakaza WHERE (([ID_Klienta] = @Original_ID_Klienta) AND ([FIO] = @Original_FIO) AND ([Telepfone] = @Original_Telepfone) AND ((@IsNull_ID_Zakaza = 1 AND [ID_Zakaza] IS NULL) OR ([ID_Zakaza] = @Original_ID_Zakaza)));
  159. SELECT ID_Klienta, FIO, Telepfone, ID_Zakaza FROM Клиенты WHERE (ID_Klienta = @ID_Klienta)</CommandText>
  160. <Parameters>
  161. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FIO" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FIO" SourceColumnNullMapping="false" SourceVersion="Current" />
  162. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Telepfone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telepfone" SourceColumnNullMapping="false" SourceVersion="Current" />
  163. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ID_Zakaza" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Zakaza" SourceColumnNullMapping="false" SourceVersion="Current" />
  164. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID_Klienta" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Klienta" SourceColumnNullMapping="false" SourceVersion="Original" />
  165. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FIO" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FIO" SourceColumnNullMapping="false" SourceVersion="Original" />
  166. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Telepfone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telepfone" SourceColumnNullMapping="false" SourceVersion="Original" />
  167. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ID_Zakaza" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Zakaza" SourceColumnNullMapping="true" SourceVersion="Original" />
  168. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID_Zakaza" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Zakaza" SourceColumnNullMapping="false" SourceVersion="Original" />
  169. <Parameter AllowDbNull="false" AutogeneratedName="ID_Klienta" ColumnName="ID_Klienta" DataSourceName="Lyakhov_Bilet10.dbo.Клиенты" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID_Klienta" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID_Klienta" SourceColumnNullMapping="false" SourceVersion="Current" />
  170. </Parameters>
  171. </DbCommand>
  172. </UpdateCommand>
  173. </DbSource>
  174. </MainSource>
  175. <Mappings>
  176. <Mapping SourceColumn="ID_Klienta" DataSetColumn="ID_Klienta" />
  177. <Mapping SourceColumn="FIO" DataSetColumn="FIO" />
  178. <Mapping SourceColumn="Telepfone" DataSetColumn="Telepfone" />
  179. <Mapping SourceColumn="ID_Zakaza" DataSetColumn="ID_Zakaza" />
  180. </Mappings>
  181. <Sources />
  182. </TableAdapter>
  183. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ТоварыTableAdapter" GeneratorDataComponentClassName="ТоварыTableAdapter" Name="Товары" UserDataComponentName="ТоварыTableAdapter">
  184. <MainSource>
  185. <DbSource ConnectionRef="Lyakhov_Bilet10ConnectionString (Settings)" DbObjectName="Lyakhov_Bilet10.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">
  186. <DeleteCommand>
  187. <DbCommand CommandType="Text" ModifiedByUser="false">
  188. <CommandText>DELETE FROM [dbo].[Товары] WHERE (([ID_Tovara] = @Original_ID_Tovara) AND ([Nazvanie] = @Original_Nazvanie) AND ([Cena] = @Original_Cena) AND ([ID_Klienta] = @Original_ID_Klienta))</CommandText>
  189. <Parameters>
  190. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID_Tovara" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Tovara" SourceColumnNullMapping="false" SourceVersion="Original" />
  191. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Nazvanie" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Nazvanie" SourceColumnNullMapping="false" SourceVersion="Original" />
  192. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Cena" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Cena" SourceColumnNullMapping="false" SourceVersion="Original" />
  193. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID_Klienta" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Klienta" SourceColumnNullMapping="false" SourceVersion="Original" />
  194. </Parameters>
  195. </DbCommand>
  196. </DeleteCommand>
  197. <InsertCommand>
  198. <DbCommand CommandType="Text" ModifiedByUser="false">
  199. <CommandText>INSERT INTO [dbo].[Товары] ([Nazvanie], [Cena], [ID_Klienta]) VALUES (@Nazvanie, @Cena, @ID_Klienta);
  200. SELECT ID_Tovara, Nazvanie, Cena, ID_Klienta FROM Товары WHERE (ID_Tovara = SCOPE_IDENTITY())</CommandText>
  201. <Parameters>
  202. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Nazvanie" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Nazvanie" SourceColumnNullMapping="false" SourceVersion="Current" />
  203. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Cena" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Cena" SourceColumnNullMapping="false" SourceVersion="Current" />
  204. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ID_Klienta" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Klienta" SourceColumnNullMapping="false" SourceVersion="Current" />
  205. </Parameters>
  206. </DbCommand>
  207. </InsertCommand>
  208. <SelectCommand>
  209. <DbCommand CommandType="Text" ModifiedByUser="false">
  210. <CommandText>SELECT ID_Tovara, Nazvanie, Cena, ID_Klienta FROM dbo.Товары</CommandText>
  211. <Parameters />
  212. </DbCommand>
  213. </SelectCommand>
  214. <UpdateCommand>
  215. <DbCommand CommandType="Text" ModifiedByUser="false">
  216. <CommandText>UPDATE [dbo].[Товары] SET [Nazvanie] = @Nazvanie, [Cena] = @Cena, [ID_Klienta] = @ID_Klienta WHERE (([ID_Tovara] = @Original_ID_Tovara) AND ([Nazvanie] = @Original_Nazvanie) AND ([Cena] = @Original_Cena) AND ([ID_Klienta] = @Original_ID_Klienta));
  217. SELECT ID_Tovara, Nazvanie, Cena, ID_Klienta FROM Товары WHERE (ID_Tovara = @ID_Tovara)</CommandText>
  218. <Parameters>
  219. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Nazvanie" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Nazvanie" SourceColumnNullMapping="false" SourceVersion="Current" />
  220. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Cena" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Cena" SourceColumnNullMapping="false" SourceVersion="Current" />
  221. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ID_Klienta" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Klienta" SourceColumnNullMapping="false" SourceVersion="Current" />
  222. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID_Tovara" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Tovara" SourceColumnNullMapping="false" SourceVersion="Original" />
  223. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Nazvanie" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Nazvanie" SourceColumnNullMapping="false" SourceVersion="Original" />
  224. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Cena" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Cena" SourceColumnNullMapping="false" SourceVersion="Original" />
  225. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID_Klienta" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_Klienta" SourceColumnNullMapping="false" SourceVersion="Original" />
  226. <Parameter AllowDbNull="false" AutogeneratedName="ID_Tovara" ColumnName="ID_Tovara" DataSourceName="Lyakhov_Bilet10.dbo.Товары" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID_Tovara" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID_Tovara" SourceColumnNullMapping="false" SourceVersion="Current" />
  227. </Parameters>
  228. </DbCommand>
  229. </UpdateCommand>
  230. </DbSource>
  231. </MainSource>
  232. <Mappings>
  233. <Mapping SourceColumn="ID_Tovara" DataSetColumn="ID_Tovara" />
  234. <Mapping SourceColumn="Nazvanie" DataSetColumn="Nazvanie" />
  235. <Mapping SourceColumn="Cena" DataSetColumn="Cena" />
  236. <Mapping SourceColumn="ID_Klienta" DataSetColumn="ID_Klienta" />
  237. </Mappings>
  238. <Sources>
  239. <DbSource ConnectionRef="Lyakhov_Bilet10ConnectionString (Settings)" DbObjectName="Lyakhov_Bilet10.dbo.Товары" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBy" GenerateMethods="Fill" GenerateShortCommands="true" GeneratorSourceName="FillBy" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="FillBy">
  240. <SelectCommand>
  241. <DbCommand CommandType="Text" ModifiedByUser="false">
  242. <CommandText>SELECT ID_Tovara, Nazvanie, Cena, ID_Klienta FROM dbo.Товары</CommandText>
  243. <Parameters />
  244. </DbCommand>
  245. </SelectCommand>
  246. </DbSource>
  247. </Sources>
  248. </TableAdapter>
  249. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="View_1TableAdapter" GeneratorDataComponentClassName="View_1TableAdapter" Name="View_1" UserDataComponentName="View_1TableAdapter">
  250. <MainSource>
  251. <DbSource ConnectionRef="Lyakhov_Bilet10ConnectionString (Settings)" DbObjectName="Lyakhov_Bilet10.dbo.View_1" 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">
  252. <SelectCommand>
  253. <DbCommand CommandType="Text" ModifiedByUser="false">
  254. <CommandText>SELECT Дата, Название FROM dbo.View_1</CommandText>
  255. <Parameters />
  256. </DbCommand>
  257. </SelectCommand>
  258. </DbSource>
  259. </MainSource>
  260. <Mappings>
  261. <Mapping SourceColumn="Дата" DataSetColumn="Дата" />
  262. <Mapping SourceColumn="Название" DataSetColumn="Название" />
  263. </Mappings>
  264. <Sources />
  265. </TableAdapter>
  266. </Tables>
  267. <Sources />
  268. </DataSource>
  269. </xs:appinfo>
  270. </xs:annotation>
  271. <xs:element name="Lyakhov_Bilet10DataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="Lyakhov_Bilet10DataSet" msprop:Generator_UserDSName="Lyakhov_Bilet10DataSet">
  272. <xs:complexType>
  273. <xs:choice minOccurs="0" maxOccurs="unbounded">
  274. <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">
  275. <xs:complexType>
  276. <xs:sequence>
  277. <xs:element name="ID_Zakaza" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID_Zakaza" msprop:Generator_ColumnPropNameInRow="ID_Zakaza" msprop:Generator_ColumnPropNameInTable="ID_ZakazaColumn" msprop:Generator_UserColumnName="ID_Zakaza" type="xs:int" />
  278. <xs:element name="Kolichestvo" msprop:Generator_ColumnVarNameInTable="columnKolichestvo" msprop:Generator_ColumnPropNameInRow="Kolichestvo" msprop:Generator_ColumnPropNameInTable="KolichestvoColumn" msprop:Generator_UserColumnName="Kolichestvo" type="xs:int" />
  279. <xs:element name="ID_Tovara" msprop:Generator_ColumnVarNameInTable="columnID_Tovara" msprop:Generator_ColumnPropNameInRow="ID_Tovara" msprop:Generator_ColumnPropNameInTable="ID_TovaraColumn" msprop:Generator_UserColumnName="ID_Tovara" type="xs:int" />
  280. <xs:element name="ID_Klienta" msprop:Generator_ColumnVarNameInTable="columnID_Klienta" msprop:Generator_ColumnPropNameInRow="ID_Klienta" msprop:Generator_ColumnPropNameInTable="ID_KlientaColumn" msprop:Generator_UserColumnName="ID_Klienta" type="xs:int" />
  281. </xs:sequence>
  282. </xs:complexType>
  283. </xs:element>
  284. <xs:element name="История_x0020_продажи" 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">
  285. <xs:complexType>
  286. <xs:sequence>
  287. <xs:element name="ID_Istorii" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID_Istorii" msprop:Generator_ColumnPropNameInRow="ID_Istorii" msprop:Generator_ColumnPropNameInTable="ID_IstoriiColumn" msprop:Generator_UserColumnName="ID_Istorii" type="xs:int" />
  288. <xs:element name="Nazvanie" msprop:Generator_ColumnVarNameInTable="columnNazvanie" msprop:Generator_ColumnPropNameInRow="Nazvanie" msprop:Generator_ColumnPropNameInTable="NazvanieColumn" msprop:Generator_UserColumnName="Nazvanie">
  289. <xs:simpleType>
  290. <xs:restriction base="xs:string">
  291. <xs:maxLength value="50" />
  292. </xs:restriction>
  293. </xs:simpleType>
  294. </xs:element>
  295. <xs:element name="Data_Prodaji" msprop:Generator_ColumnVarNameInTable="columnData_Prodaji" msprop:Generator_ColumnPropNameInRow="Data_Prodaji" msprop:Generator_ColumnPropNameInTable="Data_ProdajiColumn" msprop:Generator_UserColumnName="Data_Prodaji" type="xs:dateTime" />
  296. <xs:element name="ID_Tovara" msprop:Generator_ColumnVarNameInTable="columnID_Tovara" msprop:Generator_ColumnPropNameInRow="ID_Tovara" msprop:Generator_ColumnPropNameInTable="ID_TovaraColumn" msprop:Generator_UserColumnName="ID_Tovara" type="xs:int" />
  297. </xs:sequence>
  298. </xs:complexType>
  299. </xs:element>
  300. <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">
  301. <xs:complexType>
  302. <xs:sequence>
  303. <xs:element name="ID_Klienta" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID_Klienta" msprop:Generator_ColumnPropNameInRow="ID_Klienta" msprop:Generator_ColumnPropNameInTable="ID_KlientaColumn" msprop:Generator_UserColumnName="ID_Klienta" type="xs:int" />
  304. <xs:element name="FIO" msprop:Generator_ColumnVarNameInTable="columnFIO" msprop:Generator_ColumnPropNameInRow="FIO" msprop:Generator_ColumnPropNameInTable="FIOColumn" msprop:Generator_UserColumnName="FIO">
  305. <xs:simpleType>
  306. <xs:restriction base="xs:string">
  307. <xs:maxLength value="50" />
  308. </xs:restriction>
  309. </xs:simpleType>
  310. </xs:element>
  311. <xs:element name="Telepfone" msprop:Generator_ColumnVarNameInTable="columnTelepfone" msprop:Generator_ColumnPropNameInRow="Telepfone" msprop:Generator_ColumnPropNameInTable="TelepfoneColumn" msprop:Generator_UserColumnName="Telepfone">
  312. <xs:simpleType>
  313. <xs:restriction base="xs:string">
  314. <xs:maxLength value="50" />
  315. </xs:restriction>
  316. </xs:simpleType>
  317. </xs:element>
  318. <xs:element name="ID_Zakaza" msprop:Generator_ColumnVarNameInTable="columnID_Zakaza" msprop:Generator_ColumnPropNameInRow="ID_Zakaza" msprop:Generator_ColumnPropNameInTable="ID_ZakazaColumn" msprop:Generator_UserColumnName="ID_Zakaza" type="xs:int" minOccurs="0" />
  319. </xs:sequence>
  320. </xs:complexType>
  321. </xs:element>
  322. <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">
  323. <xs:complexType>
  324. <xs:sequence>
  325. <xs:element name="ID_Tovara" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID_Tovara" msprop:Generator_ColumnPropNameInRow="ID_Tovara" msprop:Generator_ColumnPropNameInTable="ID_TovaraColumn" msprop:Generator_UserColumnName="ID_Tovara" type="xs:int" />
  326. <xs:element name="Nazvanie" msprop:Generator_ColumnVarNameInTable="columnNazvanie" msprop:Generator_ColumnPropNameInRow="Nazvanie" msprop:Generator_ColumnPropNameInTable="NazvanieColumn" msprop:Generator_UserColumnName="Nazvanie">
  327. <xs:simpleType>
  328. <xs:restriction base="xs:string">
  329. <xs:maxLength value="50" />
  330. </xs:restriction>
  331. </xs:simpleType>
  332. </xs:element>
  333. <xs:element name="Cena" msprop:Generator_ColumnVarNameInTable="columnCena" msprop:Generator_ColumnPropNameInRow="Cena" msprop:Generator_ColumnPropNameInTable="CenaColumn" msprop:Generator_UserColumnName="Cena" type="xs:decimal" />
  334. <xs:element name="ID_Klienta" msprop:Generator_ColumnVarNameInTable="columnID_Klienta" msprop:Generator_ColumnPropNameInRow="ID_Klienta" msprop:Generator_ColumnPropNameInTable="ID_KlientaColumn" msprop:Generator_UserColumnName="ID_Klienta" type="xs:int" />
  335. </xs:sequence>
  336. </xs:complexType>
  337. </xs:element>
  338. <xs:element name="View_1" msprop:Generator_TableClassName="View_1DataTable" msprop:Generator_TableVarName="tableView_1" msprop:Generator_TablePropName="View_1" msprop:Generator_RowDeletingName="View_1RowDeleting" msprop:Generator_RowChangingName="View_1RowChanging" msprop:Generator_RowEvHandlerName="View_1RowChangeEventHandler" msprop:Generator_RowDeletedName="View_1RowDeleted" msprop:Generator_UserTableName="View_1" msprop:Generator_RowChangedName="View_1RowChanged" msprop:Generator_RowEvArgName="View_1RowChangeEvent" msprop:Generator_RowClassName="View_1Row">
  339. <xs:complexType>
  340. <xs:sequence>
  341. <xs:element name="Дата" msprop:Generator_ColumnVarNameInTable="columnДата" msprop:Generator_ColumnPropNameInRow="Дата" msprop:Generator_ColumnPropNameInTable="ДатаColumn" msprop:Generator_UserColumnName="Дата" type="xs:dateTime" />
  342. <xs:element name="Название" msprop:Generator_ColumnVarNameInTable="columnНазвание" msprop:Generator_ColumnPropNameInRow="Название" msprop:Generator_ColumnPropNameInTable="НазваниеColumn" msprop:Generator_UserColumnName="Название">
  343. <xs:simpleType>
  344. <xs:restriction base="xs:string">
  345. <xs:maxLength value="50" />
  346. </xs:restriction>
  347. </xs:simpleType>
  348. </xs:element>
  349. </xs:sequence>
  350. </xs:complexType>
  351. </xs:element>
  352. </xs:choice>
  353. </xs:complexType>
  354. <xs:unique name="Constraint1" msdata:PrimaryKey="true">
  355. <xs:selector xpath=".//mstns:Заказ" />
  356. <xs:field xpath="mstns:ID_Zakaza" />
  357. </xs:unique>
  358. <xs:unique name="История_x0020_продажи_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  359. <xs:selector xpath=".//mstns:История_x0020_продажи" />
  360. <xs:field xpath="mstns:ID_Istorii" />
  361. </xs:unique>
  362. <xs:unique name="Клиенты_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  363. <xs:selector xpath=".//mstns:Клиенты" />
  364. <xs:field xpath="mstns:ID_Klienta" />
  365. </xs:unique>
  366. <xs:unique name="Товары_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  367. <xs:selector xpath=".//mstns:Товары" />
  368. <xs:field xpath="mstns:ID_Tovara" />
  369. </xs:unique>
  370. </xs:element>
  371. <xs:annotation>
  372. <xs:appinfo>
  373. <msdata:Relationship name="FK_Заказ_Клиенты" msdata:parent="Клиенты" msdata:child="Заказ" msdata:parentkey="ID_Klienta" msdata:childkey="ID_Klienta" msprop:Generator_UserChildTable="Заказ" msprop:Generator_ChildPropName="GetЗаказRows" msprop:Generator_UserRelationName="FK_Заказ_Клиенты" msprop:Generator_RelationVarName="relationFK_Заказ_Клиенты" msprop:Generator_UserParentTable="Клиенты" msprop:Generator_ParentPropName="КлиентыRow" />
  374. <msdata:Relationship name="FK_Заказ_Товары" msdata:parent="Товары" msdata:child="Заказ" msdata:parentkey="ID_Tovara" msdata:childkey="ID_Tovara" msprop:Generator_UserChildTable="Заказ" msprop:Generator_ChildPropName="GetЗаказRows" msprop:Generator_UserRelationName="FK_Заказ_Товары" msprop:Generator_RelationVarName="relationFK_Заказ_Товары" msprop:Generator_UserParentTable="Товары" msprop:Generator_ParentPropName="ТоварыRow" />
  375. <msdata:Relationship name="FK_История_x0020_продажи_Товары" msdata:parent="Товары" msdata:child="История_x0020_продажи" msdata:parentkey="ID_Tovara" msdata:childkey="ID_Tovara" msprop:Generator_UserChildTable="История продажи" msprop:Generator_ChildPropName="GetИстория_продажиRows" msprop:Generator_UserRelationName="FK_История продажи_Товары" msprop:Generator_RelationVarName="relationFK_История_продажи_Товары" msprop:Generator_UserParentTable="Товары" msprop:Generator_ParentPropName="ТоварыRow" />
  376. </xs:appinfo>
  377. </xs:annotation>
  378. </xs:schema>