trade02DataSet.xsd 102 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="trade02DataSet" targetNamespace="http://tempuri.org/trade02DataSet.xsd" xmlns:mstns="http://tempuri.org/trade02DataSet.xsd" xmlns="http://tempuri.org/trade02DataSet.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="trade02ConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="trade02ConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings._02trade.Properties.Settings.GlobalReference.Default.trade02ConnectionString" Provider="System.Data.SqlClient" />
  8. </Connections>
  9. <Tables>
  10. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="OrderTableAdapter" GeneratorDataComponentClassName="OrderTableAdapter" Name="Order" UserDataComponentName="OrderTableAdapter">
  11. <MainSource>
  12. <DbSource ConnectionRef="trade02ConnectionString (Settings)" DbObjectName="trade02.dbo.[Order]" 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].[Order] WHERE (([OrderID] = @Original_OrderID) AND ([OrderDeliveryDate] = @Original_OrderDeliveryDate) AND ([OrderPickupPoint] = @Original_OrderPickupPoint) AND ((@IsNull_DateZakaza = 1 AND [DateZakaza] IS NULL) OR ([DateZakaza] = @Original_DateZakaza)) AND ((@IsNull_KodPolycheniya = 1 AND [KodPolycheniya] IS NULL) OR ([KodPolycheniya] = @Original_KodPolycheniya)))</CommandText>
  16. <Parameters>
  17. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OrderID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OrderID" SourceColumnNullMapping="false" SourceVersion="Original" />
  18. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_OrderDeliveryDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="OrderDeliveryDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  19. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@Original_OrderPickupPoint" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="OrderPickupPoint" SourceColumnNullMapping="false" SourceVersion="Original" />
  20. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DateZakaza" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DateZakaza" SourceColumnNullMapping="true" SourceVersion="Original" />
  21. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DateZakaza" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateZakaza" SourceColumnNullMapping="false" SourceVersion="Original" />
  22. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_KodPolycheniya" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="KodPolycheniya" SourceColumnNullMapping="true" SourceVersion="Original" />
  23. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_KodPolycheniya" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="KodPolycheniya" SourceColumnNullMapping="false" SourceVersion="Original" />
  24. </Parameters>
  25. </DbCommand>
  26. </DeleteCommand>
  27. <InsertCommand>
  28. <DbCommand CommandType="Text" ModifiedByUser="false">
  29. <CommandText>INSERT INTO [dbo].[Order] ([OrderStatus], [OrderDeliveryDate], [OrderPickupPoint], [DateZakaza], [fioKlienta], [KodPolycheniya]) VALUES (@OrderStatus, @OrderDeliveryDate, @OrderPickupPoint, @DateZakaza, @fioKlienta, @KodPolycheniya);
  30. SELECT OrderID, OrderStatus, OrderDeliveryDate, OrderPickupPoint, DateZakaza, fioKlienta, KodPolycheniya FROM [Order] WHERE (OrderID = SCOPE_IDENTITY())</CommandText>
  31. <Parameters>
  32. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@OrderStatus" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="OrderStatus" SourceColumnNullMapping="false" SourceVersion="Current" />
  33. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@OrderDeliveryDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="OrderDeliveryDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  34. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@OrderPickupPoint" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="OrderPickupPoint" SourceColumnNullMapping="false" SourceVersion="Current" />
  35. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DateZakaza" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateZakaza" SourceColumnNullMapping="false" SourceVersion="Current" />
  36. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@fioKlienta" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="fioKlienta" SourceColumnNullMapping="false" SourceVersion="Current" />
  37. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@KodPolycheniya" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="KodPolycheniya" SourceColumnNullMapping="false" SourceVersion="Current" />
  38. </Parameters>
  39. </DbCommand>
  40. </InsertCommand>
  41. <SelectCommand>
  42. <DbCommand CommandType="Text" ModifiedByUser="false">
  43. <CommandText>SELECT OrderID, OrderStatus, OrderDeliveryDate, OrderPickupPoint, DateZakaza, fioKlienta, KodPolycheniya FROM dbo.[Order]</CommandText>
  44. <Parameters />
  45. </DbCommand>
  46. </SelectCommand>
  47. <UpdateCommand>
  48. <DbCommand CommandType="Text" ModifiedByUser="false">
  49. <CommandText>UPDATE [dbo].[Order] SET [OrderStatus] = @OrderStatus, [OrderDeliveryDate] = @OrderDeliveryDate, [OrderPickupPoint] = @OrderPickupPoint, [DateZakaza] = @DateZakaza, [fioKlienta] = @fioKlienta, [KodPolycheniya] = @KodPolycheniya WHERE (([OrderID] = @Original_OrderID) AND ([OrderDeliveryDate] = @Original_OrderDeliveryDate) AND ([OrderPickupPoint] = @Original_OrderPickupPoint) AND ((@IsNull_DateZakaza = 1 AND [DateZakaza] IS NULL) OR ([DateZakaza] = @Original_DateZakaza)) AND ((@IsNull_KodPolycheniya = 1 AND [KodPolycheniya] IS NULL) OR ([KodPolycheniya] = @Original_KodPolycheniya)));
  50. SELECT OrderID, OrderStatus, OrderDeliveryDate, OrderPickupPoint, DateZakaza, fioKlienta, KodPolycheniya FROM [Order] WHERE (OrderID = @OrderID)</CommandText>
  51. <Parameters>
  52. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@OrderStatus" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="OrderStatus" SourceColumnNullMapping="false" SourceVersion="Current" />
  53. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@OrderDeliveryDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="OrderDeliveryDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  54. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@OrderPickupPoint" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="OrderPickupPoint" SourceColumnNullMapping="false" SourceVersion="Current" />
  55. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DateZakaza" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateZakaza" SourceColumnNullMapping="false" SourceVersion="Current" />
  56. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@fioKlienta" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="fioKlienta" SourceColumnNullMapping="false" SourceVersion="Current" />
  57. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@KodPolycheniya" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="KodPolycheniya" SourceColumnNullMapping="false" SourceVersion="Current" />
  58. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OrderID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OrderID" SourceColumnNullMapping="false" SourceVersion="Original" />
  59. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_OrderDeliveryDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="OrderDeliveryDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  60. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@Original_OrderPickupPoint" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="OrderPickupPoint" SourceColumnNullMapping="false" SourceVersion="Original" />
  61. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DateZakaza" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DateZakaza" SourceColumnNullMapping="true" SourceVersion="Original" />
  62. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DateZakaza" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateZakaza" SourceColumnNullMapping="false" SourceVersion="Original" />
  63. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_KodPolycheniya" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="KodPolycheniya" SourceColumnNullMapping="true" SourceVersion="Original" />
  64. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_KodPolycheniya" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="KodPolycheniya" SourceColumnNullMapping="false" SourceVersion="Original" />
  65. <Parameter AllowDbNull="false" AutogeneratedName="OrderID" ColumnName="OrderID" DataSourceName="trade02.dbo.[Order]" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@OrderID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="OrderID" SourceColumnNullMapping="false" SourceVersion="Current" />
  66. </Parameters>
  67. </DbCommand>
  68. </UpdateCommand>
  69. </DbSource>
  70. </MainSource>
  71. <Mappings>
  72. <Mapping SourceColumn="OrderID" DataSetColumn="OrderID" />
  73. <Mapping SourceColumn="OrderStatus" DataSetColumn="OrderStatus" />
  74. <Mapping SourceColumn="OrderDeliveryDate" DataSetColumn="OrderDeliveryDate" />
  75. <Mapping SourceColumn="OrderPickupPoint" DataSetColumn="OrderPickupPoint" />
  76. <Mapping SourceColumn="DateZakaza" DataSetColumn="DateZakaza" />
  77. <Mapping SourceColumn="fioKlienta" DataSetColumn="fioKlienta" />
  78. <Mapping SourceColumn="KodPolycheniya" DataSetColumn="KodPolycheniya" />
  79. </Mappings>
  80. <Sources />
  81. </TableAdapter>
  82. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="OrderProductTableAdapter" GeneratorDataComponentClassName="OrderProductTableAdapter" Name="OrderProduct" UserDataComponentName="OrderProductTableAdapter">
  83. <MainSource>
  84. <DbSource ConnectionRef="trade02ConnectionString (Settings)" DbObjectName="trade02.dbo.OrderProduct" 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">
  85. <DeleteCommand>
  86. <DbCommand CommandType="Text" ModifiedByUser="false">
  87. <CommandText>DELETE FROM [dbo].[OrderProduct] WHERE (([OrderID] = @Original_OrderID) AND ([ProductArticleNumber] = @Original_ProductArticleNumber) AND ((@IsNull_Количество_товара = 1 AND [Количество_товара] IS NULL) OR ([Количество_товара] = @Original_Количество_товара)))</CommandText>
  88. <Parameters>
  89. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OrderID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OrderID" SourceColumnNullMapping="false" SourceVersion="Original" />
  90. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ProductArticleNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductArticleNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
  91. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Количество_товара" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Количество_товара" SourceColumnNullMapping="true" SourceVersion="Original" />
  92. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Количество_товара" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Количество_товара" SourceColumnNullMapping="false" SourceVersion="Original" />
  93. </Parameters>
  94. </DbCommand>
  95. </DeleteCommand>
  96. <InsertCommand>
  97. <DbCommand CommandType="Text" ModifiedByUser="false">
  98. <CommandText>INSERT INTO [dbo].[OrderProduct] ([OrderID], [ProductArticleNumber], [Количество_товара]) VALUES (@OrderID, @ProductArticleNumber, @Количество_товара);
  99. SELECT OrderID, ProductArticleNumber, Количество_товара FROM OrderProduct WHERE (OrderID = @OrderID) AND (ProductArticleNumber = @ProductArticleNumber)</CommandText>
  100. <Parameters>
  101. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OrderID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OrderID" SourceColumnNullMapping="false" SourceVersion="Current" />
  102. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductArticleNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductArticleNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
  103. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Количество_товара" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Количество_товара" SourceColumnNullMapping="false" SourceVersion="Current" />
  104. </Parameters>
  105. </DbCommand>
  106. </InsertCommand>
  107. <SelectCommand>
  108. <DbCommand CommandType="Text" ModifiedByUser="false">
  109. <CommandText>SELECT OrderID, ProductArticleNumber, Количество_товара FROM dbo.OrderProduct</CommandText>
  110. <Parameters />
  111. </DbCommand>
  112. </SelectCommand>
  113. <UpdateCommand>
  114. <DbCommand CommandType="Text" ModifiedByUser="false">
  115. <CommandText>UPDATE [dbo].[OrderProduct] SET [OrderID] = @OrderID, [ProductArticleNumber] = @ProductArticleNumber, [Количество_товара] = @Количество_товара WHERE (([OrderID] = @Original_OrderID) AND ([ProductArticleNumber] = @Original_ProductArticleNumber) AND ((@IsNull_Количество_товара = 1 AND [Количество_товара] IS NULL) OR ([Количество_товара] = @Original_Количество_товара)));
  116. SELECT OrderID, ProductArticleNumber, Количество_товара FROM OrderProduct WHERE (OrderID = @OrderID) AND (ProductArticleNumber = @ProductArticleNumber)</CommandText>
  117. <Parameters>
  118. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OrderID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OrderID" SourceColumnNullMapping="false" SourceVersion="Current" />
  119. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductArticleNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductArticleNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
  120. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Количество_товара" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Количество_товара" SourceColumnNullMapping="false" SourceVersion="Current" />
  121. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OrderID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OrderID" SourceColumnNullMapping="false" SourceVersion="Original" />
  122. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ProductArticleNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductArticleNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
  123. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Количество_товара" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Количество_товара" SourceColumnNullMapping="true" SourceVersion="Original" />
  124. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Количество_товара" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Количество_товара" SourceColumnNullMapping="false" SourceVersion="Original" />
  125. </Parameters>
  126. </DbCommand>
  127. </UpdateCommand>
  128. </DbSource>
  129. </MainSource>
  130. <Mappings>
  131. <Mapping SourceColumn="OrderID" DataSetColumn="OrderID" />
  132. <Mapping SourceColumn="ProductArticleNumber" DataSetColumn="ProductArticleNumber" />
  133. <Mapping SourceColumn="Количество_товара" DataSetColumn="Количество_товара" />
  134. </Mappings>
  135. <Sources />
  136. </TableAdapter>
  137. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductTableAdapter" GeneratorDataComponentClassName="ProductTableAdapter" Name="Product" UserDataComponentName="ProductTableAdapter">
  138. <MainSource>
  139. <DbSource ConnectionRef="trade02ConnectionString (Settings)" DbObjectName="trade02.dbo.Product" 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">
  140. <DeleteCommand>
  141. <DbCommand CommandType="Text" ModifiedByUser="false">
  142. <CommandText>DELETE FROM [Product] WHERE (([ProductArticleNumber] = @Original_ProductArticleNumber) AND ([ProductCost] = @Original_ProductCost) AND ((@IsNull_ProductDiscountAmount = 1 AND [ProductDiscountAmount] IS NULL) OR ([ProductDiscountAmount] = @Original_ProductDiscountAmount)) AND ((@IsNull_ProductMaxDiscount = 1 AND [ProductMaxDiscount] IS NULL) OR ([ProductMaxDiscount] = @Original_ProductMaxDiscount)) AND ([ProductQuantityInStock] = @Original_ProductQuantityInStock) AND ([Id] = @Original_Id) AND ([ProductPhormat] = @Original_ProductPhormat))</CommandText>
  143. <Parameters>
  144. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ProductArticleNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductArticleNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
  145. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_ProductCost" Precision="19" ProviderType="Decimal" Scale="4" Size="0" SourceColumn="ProductCost" SourceColumnNullMapping="false" SourceVersion="Original" />
  146. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductDiscountAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductDiscountAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
  147. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@Original_ProductDiscountAmount" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="ProductDiscountAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
  148. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductMaxDiscount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductMaxDiscount" SourceColumnNullMapping="true" SourceVersion="Original" />
  149. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@Original_ProductMaxDiscount" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="ProductMaxDiscount" SourceColumnNullMapping="false" SourceVersion="Original" />
  150. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProductQuantityInStock" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductQuantityInStock" SourceColumnNullMapping="false" SourceVersion="Original" />
  151. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Original" />
  152. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ProductPhormat" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductPhormat" SourceColumnNullMapping="false" SourceVersion="Original" />
  153. </Parameters>
  154. </DbCommand>
  155. </DeleteCommand>
  156. <InsertCommand>
  157. <DbCommand CommandType="Text" ModifiedByUser="false">
  158. <CommandText>INSERT INTO [Product] ([ProductArticleNumber], [ProductName], [ProductDescription], [ProductCategory], [ProductPhoto], [ProductManufacturer], [ProductCost], [ProductDiscountAmount], [ProductMaxDiscount], [ProductQuantityInStock], [ProductStatus], [ProductPhormat]) VALUES (@ProductArticleNumber, @ProductName, @ProductDescription, @ProductCategory, @ProductPhoto, @ProductManufacturer, @ProductCost, @ProductDiscountAmount, @ProductMaxDiscount, @ProductQuantityInStock, @ProductStatus, @ProductPhormat);
  159. SELECT ProductArticleNumber, ProductName, ProductDescription, ProductCategory, ProductPhoto, ProductManufacturer, ProductCost, ProductDiscountAmount, ProductMaxDiscount, ProductQuantityInStock, ProductStatus, Id, ProductPhormat FROM Product WHERE (Id = SCOPE_IDENTITY()) AND (ProductArticleNumber = @ProductArticleNumber)</CommandText>
  160. <Parameters>
  161. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductArticleNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductArticleNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
  162. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductName" SourceColumnNullMapping="false" SourceVersion="Current" />
  163. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductDescription" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductDescription" SourceColumnNullMapping="false" SourceVersion="Current" />
  164. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductCategory" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductCategory" SourceColumnNullMapping="false" SourceVersion="Current" />
  165. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Binary" Direction="Input" ParameterName="@ProductPhoto" Precision="0" ProviderType="VarBinary" Scale="0" Size="0" SourceColumn="ProductPhoto" SourceColumnNullMapping="false" SourceVersion="Current" />
  166. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductManufacturer" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductManufacturer" SourceColumnNullMapping="false" SourceVersion="Current" />
  167. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@ProductCost" Precision="19" ProviderType="Decimal" Scale="4" Size="0" SourceColumn="ProductCost" SourceColumnNullMapping="false" SourceVersion="Current" />
  168. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@ProductDiscountAmount" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="ProductDiscountAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
  169. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@ProductMaxDiscount" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="ProductMaxDiscount" SourceColumnNullMapping="false" SourceVersion="Current" />
  170. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProductQuantityInStock" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductQuantityInStock" SourceColumnNullMapping="false" SourceVersion="Current" />
  171. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductStatus" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductStatus" SourceColumnNullMapping="false" SourceVersion="Current" />
  172. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductPhormat" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductPhormat" SourceColumnNullMapping="false" SourceVersion="Current" />
  173. </Parameters>
  174. </DbCommand>
  175. </InsertCommand>
  176. <SelectCommand>
  177. <DbCommand CommandType="Text" ModifiedByUser="false">
  178. <CommandText>SELECT ProductArticleNumber, ProductName, ProductDescription, ProductCategory, ProductPhoto, ProductManufacturer, ProductCost, ProductDiscountAmount, ProductMaxDiscount, ProductQuantityInStock, ProductStatus, Id, ProductPhormat FROM Product</CommandText>
  179. <Parameters />
  180. </DbCommand>
  181. </SelectCommand>
  182. <UpdateCommand>
  183. <DbCommand CommandType="Text" ModifiedByUser="false">
  184. <CommandText>UPDATE [Product] SET [ProductArticleNumber] = @ProductArticleNumber, [ProductName] = @ProductName, [ProductDescription] = @ProductDescription, [ProductCategory] = @ProductCategory, [ProductPhoto] = @ProductPhoto, [ProductManufacturer] = @ProductManufacturer, [ProductCost] = @ProductCost, [ProductDiscountAmount] = @ProductDiscountAmount, [ProductMaxDiscount] = @ProductMaxDiscount, [ProductQuantityInStock] = @ProductQuantityInStock, [ProductStatus] = @ProductStatus, [ProductPhormat] = @ProductPhormat WHERE (([ProductArticleNumber] = @Original_ProductArticleNumber) AND ([ProductCost] = @Original_ProductCost) AND ((@IsNull_ProductDiscountAmount = 1 AND [ProductDiscountAmount] IS NULL) OR ([ProductDiscountAmount] = @Original_ProductDiscountAmount)) AND ((@IsNull_ProductMaxDiscount = 1 AND [ProductMaxDiscount] IS NULL) OR ([ProductMaxDiscount] = @Original_ProductMaxDiscount)) AND ([ProductQuantityInStock] = @Original_ProductQuantityInStock) AND ([Id] = @Original_Id) AND ([ProductPhormat] = @Original_ProductPhormat));
  185. SELECT ProductArticleNumber, ProductName, ProductDescription, ProductCategory, ProductPhoto, ProductManufacturer, ProductCost, ProductDiscountAmount, ProductMaxDiscount, ProductQuantityInStock, ProductStatus, Id, ProductPhormat FROM Product WHERE (Id = @Id) AND (ProductArticleNumber = @ProductArticleNumber)</CommandText>
  186. <Parameters>
  187. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductArticleNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductArticleNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
  188. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductName" SourceColumnNullMapping="false" SourceVersion="Current" />
  189. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductDescription" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductDescription" SourceColumnNullMapping="false" SourceVersion="Current" />
  190. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductCategory" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductCategory" SourceColumnNullMapping="false" SourceVersion="Current" />
  191. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Binary" Direction="Input" ParameterName="@ProductPhoto" Precision="0" ProviderType="VarBinary" Scale="0" Size="0" SourceColumn="ProductPhoto" SourceColumnNullMapping="false" SourceVersion="Current" />
  192. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductManufacturer" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductManufacturer" SourceColumnNullMapping="false" SourceVersion="Current" />
  193. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@ProductCost" Precision="19" ProviderType="Decimal" Scale="4" Size="0" SourceColumn="ProductCost" SourceColumnNullMapping="false" SourceVersion="Current" />
  194. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@ProductDiscountAmount" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="ProductDiscountAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
  195. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@ProductMaxDiscount" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="ProductMaxDiscount" SourceColumnNullMapping="false" SourceVersion="Current" />
  196. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProductQuantityInStock" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductQuantityInStock" SourceColumnNullMapping="false" SourceVersion="Current" />
  197. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductStatus" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductStatus" SourceColumnNullMapping="false" SourceVersion="Current" />
  198. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductPhormat" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductPhormat" SourceColumnNullMapping="false" SourceVersion="Current" />
  199. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ProductArticleNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductArticleNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
  200. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_ProductCost" Precision="19" ProviderType="Decimal" Scale="4" Size="0" SourceColumn="ProductCost" SourceColumnNullMapping="false" SourceVersion="Original" />
  201. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductDiscountAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductDiscountAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
  202. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@Original_ProductDiscountAmount" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="ProductDiscountAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
  203. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductMaxDiscount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductMaxDiscount" SourceColumnNullMapping="true" SourceVersion="Original" />
  204. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@Original_ProductMaxDiscount" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="ProductMaxDiscount" SourceColumnNullMapping="false" SourceVersion="Original" />
  205. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProductQuantityInStock" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductQuantityInStock" SourceColumnNullMapping="false" SourceVersion="Original" />
  206. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Original" />
  207. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ProductPhormat" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductPhormat" SourceColumnNullMapping="false" SourceVersion="Original" />
  208. <Parameter AllowDbNull="false" AutogeneratedName="Id" ColumnName="Id" DataSourceName="trade02.dbo.Product" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Current" />
  209. </Parameters>
  210. </DbCommand>
  211. </UpdateCommand>
  212. </DbSource>
  213. </MainSource>
  214. <Mappings>
  215. <Mapping SourceColumn="ProductArticleNumber" DataSetColumn="ProductArticleNumber" />
  216. <Mapping SourceColumn="ProductName" DataSetColumn="ProductName" />
  217. <Mapping SourceColumn="ProductDescription" DataSetColumn="ProductDescription" />
  218. <Mapping SourceColumn="ProductCategory" DataSetColumn="ProductCategory" />
  219. <Mapping SourceColumn="ProductPhoto" DataSetColumn="ProductPhoto" />
  220. <Mapping SourceColumn="ProductManufacturer" DataSetColumn="ProductManufacturer" />
  221. <Mapping SourceColumn="ProductCost" DataSetColumn="ProductCost" />
  222. <Mapping SourceColumn="ProductDiscountAmount" DataSetColumn="ProductDiscountAmount" />
  223. <Mapping SourceColumn="ProductMaxDiscount" DataSetColumn="ProductMaxDiscount" />
  224. <Mapping SourceColumn="ProductQuantityInStock" DataSetColumn="ProductQuantityInStock" />
  225. <Mapping SourceColumn="ProductStatus" DataSetColumn="ProductStatus" />
  226. <Mapping SourceColumn="Id" DataSetColumn="Id" />
  227. <Mapping SourceColumn="ProductPhormat" DataSetColumn="ProductPhormat" />
  228. </Mappings>
  229. <Sources />
  230. </TableAdapter>
  231. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="punkt_vidachiTableAdapter" GeneratorDataComponentClassName="punkt_vidachiTableAdapter" Name="punkt_vidachi" UserDataComponentName="punkt_vidachiTableAdapter">
  232. <MainSource>
  233. <DbSource ConnectionRef="trade02ConnectionString (Settings)" DbObjectName="trade02.dbo.punkt_vidachi" 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">
  234. <DeleteCommand>
  235. <DbCommand CommandType="Text" ModifiedByUser="false">
  236. <CommandText>DELETE FROM [dbo].[punkt_vidachi] WHERE (([id] = @Original_id) AND ([index] = @Original_index) AND ([gorod] = @Original_gorod) AND ([ulica] = @Original_ulica) AND ((@IsNull_dom = 1 AND [dom] IS NULL) OR ([dom] = @Original_dom)))</CommandText>
  237. <Parameters>
  238. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@Original_id" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Original" />
  239. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_index" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="index" SourceColumnNullMapping="false" SourceVersion="Original" />
  240. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_gorod" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="gorod" SourceColumnNullMapping="false" SourceVersion="Original" />
  241. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ulica" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ulica" SourceColumnNullMapping="false" SourceVersion="Original" />
  242. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dom" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dom" SourceColumnNullMapping="true" SourceVersion="Original" />
  243. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@Original_dom" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="dom" SourceColumnNullMapping="false" SourceVersion="Original" />
  244. </Parameters>
  245. </DbCommand>
  246. </DeleteCommand>
  247. <InsertCommand>
  248. <DbCommand CommandType="Text" ModifiedByUser="false">
  249. <CommandText>INSERT INTO [dbo].[punkt_vidachi] ([index], [gorod], [ulica], [dom]) VALUES (@index, @gorod, @ulica, @dom);
  250. SELECT id, [index], gorod, ulica, dom FROM punkt_vidachi WHERE (id = SCOPE_IDENTITY())</CommandText>
  251. <Parameters>
  252. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@index" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="index" SourceColumnNullMapping="false" SourceVersion="Current" />
  253. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@gorod" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="gorod" SourceColumnNullMapping="false" SourceVersion="Current" />
  254. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ulica" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ulica" SourceColumnNullMapping="false" SourceVersion="Current" />
  255. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@dom" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="dom" SourceColumnNullMapping="false" SourceVersion="Current" />
  256. </Parameters>
  257. </DbCommand>
  258. </InsertCommand>
  259. <SelectCommand>
  260. <DbCommand CommandType="Text" ModifiedByUser="false">
  261. <CommandText>SELECT id, [index], gorod, ulica, dom FROM dbo.punkt_vidachi</CommandText>
  262. <Parameters />
  263. </DbCommand>
  264. </SelectCommand>
  265. <UpdateCommand>
  266. <DbCommand CommandType="Text" ModifiedByUser="false">
  267. <CommandText>UPDATE [dbo].[punkt_vidachi] SET [index] = @index, [gorod] = @gorod, [ulica] = @ulica, [dom] = @dom WHERE (([id] = @Original_id) AND ([index] = @Original_index) AND ([gorod] = @Original_gorod) AND ([ulica] = @Original_ulica) AND ((@IsNull_dom = 1 AND [dom] IS NULL) OR ([dom] = @Original_dom)));
  268. SELECT id, [index], gorod, ulica, dom FROM punkt_vidachi WHERE (id = @id)</CommandText>
  269. <Parameters>
  270. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@index" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="index" SourceColumnNullMapping="false" SourceVersion="Current" />
  271. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@gorod" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="gorod" SourceColumnNullMapping="false" SourceVersion="Current" />
  272. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ulica" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ulica" SourceColumnNullMapping="false" SourceVersion="Current" />
  273. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@dom" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="dom" SourceColumnNullMapping="false" SourceVersion="Current" />
  274. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@Original_id" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Original" />
  275. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_index" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="index" SourceColumnNullMapping="false" SourceVersion="Original" />
  276. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_gorod" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="gorod" SourceColumnNullMapping="false" SourceVersion="Original" />
  277. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ulica" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ulica" SourceColumnNullMapping="false" SourceVersion="Original" />
  278. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dom" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dom" SourceColumnNullMapping="true" SourceVersion="Original" />
  279. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@Original_dom" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="dom" SourceColumnNullMapping="false" SourceVersion="Original" />
  280. <Parameter AllowDbNull="false" AutogeneratedName="id" ColumnName="id" DataSourceName="trade02.dbo.punkt_vidachi" DataTypeServer="tinyint" DbType="Byte" Direction="Input" ParameterName="@id" Precision="0" ProviderType="TinyInt" Scale="0" Size="1" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Current" />
  281. </Parameters>
  282. </DbCommand>
  283. </UpdateCommand>
  284. </DbSource>
  285. </MainSource>
  286. <Mappings>
  287. <Mapping SourceColumn="id" DataSetColumn="id" />
  288. <Mapping SourceColumn="index" DataSetColumn="index" />
  289. <Mapping SourceColumn="gorod" DataSetColumn="gorod" />
  290. <Mapping SourceColumn="ulica" DataSetColumn="ulica" />
  291. <Mapping SourceColumn="dom" DataSetColumn="dom" />
  292. </Mappings>
  293. <Sources />
  294. </TableAdapter>
  295. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="RoleTableAdapter" GeneratorDataComponentClassName="RoleTableAdapter" Name="Role" UserDataComponentName="RoleTableAdapter">
  296. <MainSource>
  297. <DbSource ConnectionRef="trade02ConnectionString (Settings)" DbObjectName="trade02.dbo.Role" 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">
  298. <DeleteCommand>
  299. <DbCommand CommandType="Text" ModifiedByUser="false">
  300. <CommandText>DELETE FROM [dbo].[Role] WHERE (([RoleID] = @Original_RoleID) AND ([RoleName] = @Original_RoleName))</CommandText>
  301. <Parameters>
  302. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RoleID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RoleID" SourceColumnNullMapping="false" SourceVersion="Original" />
  303. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_RoleName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="RoleName" SourceColumnNullMapping="false" SourceVersion="Original" />
  304. </Parameters>
  305. </DbCommand>
  306. </DeleteCommand>
  307. <InsertCommand>
  308. <DbCommand CommandType="Text" ModifiedByUser="false">
  309. <CommandText>INSERT INTO [dbo].[Role] ([RoleName]) VALUES (@RoleName);
  310. SELECT RoleID, RoleName FROM Role WHERE (RoleID = SCOPE_IDENTITY())</CommandText>
  311. <Parameters>
  312. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@RoleName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="RoleName" SourceColumnNullMapping="false" SourceVersion="Current" />
  313. </Parameters>
  314. </DbCommand>
  315. </InsertCommand>
  316. <SelectCommand>
  317. <DbCommand CommandType="Text" ModifiedByUser="false">
  318. <CommandText>SELECT RoleID, RoleName FROM dbo.Role</CommandText>
  319. <Parameters />
  320. </DbCommand>
  321. </SelectCommand>
  322. <UpdateCommand>
  323. <DbCommand CommandType="Text" ModifiedByUser="false">
  324. <CommandText>UPDATE [dbo].[Role] SET [RoleName] = @RoleName WHERE (([RoleID] = @Original_RoleID) AND ([RoleName] = @Original_RoleName));
  325. SELECT RoleID, RoleName FROM Role WHERE (RoleID = @RoleID)</CommandText>
  326. <Parameters>
  327. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@RoleName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="RoleName" SourceColumnNullMapping="false" SourceVersion="Current" />
  328. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RoleID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RoleID" SourceColumnNullMapping="false" SourceVersion="Original" />
  329. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_RoleName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="RoleName" SourceColumnNullMapping="false" SourceVersion="Original" />
  330. <Parameter AllowDbNull="false" AutogeneratedName="RoleID" ColumnName="RoleID" DataSourceName="trade02.dbo.Role" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@RoleID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="RoleID" SourceColumnNullMapping="false" SourceVersion="Current" />
  331. </Parameters>
  332. </DbCommand>
  333. </UpdateCommand>
  334. </DbSource>
  335. </MainSource>
  336. <Mappings>
  337. <Mapping SourceColumn="RoleID" DataSetColumn="RoleID" />
  338. <Mapping SourceColumn="RoleName" DataSetColumn="RoleName" />
  339. </Mappings>
  340. <Sources />
  341. </TableAdapter>
  342. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="UserTableAdapter" GeneratorDataComponentClassName="UserTableAdapter" Name="User" UserDataComponentName="UserTableAdapter">
  343. <MainSource>
  344. <DbSource ConnectionRef="trade02ConnectionString (Settings)" DbObjectName="trade02.dbo.[User]" 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">
  345. <DeleteCommand>
  346. <DbCommand CommandType="Text" ModifiedByUser="false">
  347. <CommandText>DELETE FROM [dbo].[User] WHERE (([UserID] = @Original_UserID) AND ([UserSurname] = @Original_UserSurname) AND ([UserName] = @Original_UserName) AND ([UserPatronymic] = @Original_UserPatronymic) AND ([UserRole] = @Original_UserRole))</CommandText>
  348. <Parameters>
  349. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_UserID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Original" />
  350. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_UserSurname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserSurname" SourceColumnNullMapping="false" SourceVersion="Original" />
  351. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_UserName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Original" />
  352. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_UserPatronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserPatronymic" SourceColumnNullMapping="false" SourceVersion="Original" />
  353. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_UserRole" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserRole" SourceColumnNullMapping="false" SourceVersion="Original" />
  354. </Parameters>
  355. </DbCommand>
  356. </DeleteCommand>
  357. <InsertCommand>
  358. <DbCommand CommandType="Text" ModifiedByUser="false">
  359. <CommandText>INSERT INTO [dbo].[User] ([UserSurname], [UserName], [UserPatronymic], [UserLogin], [UserPassword], [UserRole]) VALUES (@UserSurname, @UserName, @UserPatronymic, @UserLogin, @UserPassword, @UserRole);
  360. SELECT UserID, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, UserRole FROM [User] WHERE (UserID = SCOPE_IDENTITY())</CommandText>
  361. <Parameters>
  362. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserSurname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserSurname" SourceColumnNullMapping="false" SourceVersion="Current" />
  363. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Current" />
  364. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserPatronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserPatronymic" SourceColumnNullMapping="false" SourceVersion="Current" />
  365. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserLogin" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserLogin" SourceColumnNullMapping="false" SourceVersion="Current" />
  366. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserPassword" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserPassword" SourceColumnNullMapping="false" SourceVersion="Current" />
  367. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@UserRole" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserRole" SourceColumnNullMapping="false" SourceVersion="Current" />
  368. </Parameters>
  369. </DbCommand>
  370. </InsertCommand>
  371. <SelectCommand>
  372. <DbCommand CommandType="Text" ModifiedByUser="false">
  373. <CommandText>SELECT UserID, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, UserRole FROM dbo.[User]</CommandText>
  374. <Parameters />
  375. </DbCommand>
  376. </SelectCommand>
  377. <UpdateCommand>
  378. <DbCommand CommandType="Text" ModifiedByUser="false">
  379. <CommandText>UPDATE [dbo].[User] SET [UserSurname] = @UserSurname, [UserName] = @UserName, [UserPatronymic] = @UserPatronymic, [UserLogin] = @UserLogin, [UserPassword] = @UserPassword, [UserRole] = @UserRole WHERE (([UserID] = @Original_UserID) AND ([UserSurname] = @Original_UserSurname) AND ([UserName] = @Original_UserName) AND ([UserPatronymic] = @Original_UserPatronymic) AND ([UserRole] = @Original_UserRole));
  380. SELECT UserID, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, UserRole FROM [User] WHERE (UserID = @UserID)</CommandText>
  381. <Parameters>
  382. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserSurname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserSurname" SourceColumnNullMapping="false" SourceVersion="Current" />
  383. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Current" />
  384. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserPatronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserPatronymic" SourceColumnNullMapping="false" SourceVersion="Current" />
  385. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserLogin" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserLogin" SourceColumnNullMapping="false" SourceVersion="Current" />
  386. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserPassword" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserPassword" SourceColumnNullMapping="false" SourceVersion="Current" />
  387. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@UserRole" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserRole" SourceColumnNullMapping="false" SourceVersion="Current" />
  388. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_UserID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Original" />
  389. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_UserSurname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserSurname" SourceColumnNullMapping="false" SourceVersion="Original" />
  390. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_UserName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Original" />
  391. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_UserPatronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserPatronymic" SourceColumnNullMapping="false" SourceVersion="Original" />
  392. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_UserRole" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserRole" SourceColumnNullMapping="false" SourceVersion="Original" />
  393. <Parameter AllowDbNull="false" AutogeneratedName="UserID" ColumnName="UserID" DataSourceName="trade02.dbo.[User]" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@UserID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Current" />
  394. </Parameters>
  395. </DbCommand>
  396. </UpdateCommand>
  397. </DbSource>
  398. </MainSource>
  399. <Mappings>
  400. <Mapping SourceColumn="UserID" DataSetColumn="UserID" />
  401. <Mapping SourceColumn="UserSurname" DataSetColumn="UserSurname" />
  402. <Mapping SourceColumn="UserName" DataSetColumn="UserName" />
  403. <Mapping SourceColumn="UserPatronymic" DataSetColumn="UserPatronymic" />
  404. <Mapping SourceColumn="UserLogin" DataSetColumn="UserLogin" />
  405. <Mapping SourceColumn="UserPassword" DataSetColumn="UserPassword" />
  406. <Mapping SourceColumn="UserRole" DataSetColumn="UserRole" />
  407. </Mappings>
  408. <Sources />
  409. </TableAdapter>
  410. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="UserTableTableAdapter" GeneratorDataComponentClassName="UserTableTableAdapter" Name="UserTable" UserDataComponentName="UserTableTableAdapter">
  411. <MainSource>
  412. <DbSource ConnectionRef="trade02ConnectionString (Settings)" DbObjectName="trade02.dbo.UserTable" 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">
  413. <DeleteCommand>
  414. <DbCommand CommandType="Text" ModifiedByUser="false">
  415. <CommandText>DELETE FROM [dbo].[UserTable] WHERE (([UserID] = @Original_UserID) AND ([UserSurname] = @Original_UserSurname) AND ([UserName] = @Original_UserName) AND ([UserPatronymic] = @Original_UserPatronymic) AND ([UserRole] = @Original_UserRole))</CommandText>
  416. <Parameters>
  417. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_UserID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Original" />
  418. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_UserSurname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserSurname" SourceColumnNullMapping="false" SourceVersion="Original" />
  419. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_UserName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Original" />
  420. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_UserPatronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserPatronymic" SourceColumnNullMapping="false" SourceVersion="Original" />
  421. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_UserRole" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserRole" SourceColumnNullMapping="false" SourceVersion="Original" />
  422. </Parameters>
  423. </DbCommand>
  424. </DeleteCommand>
  425. <InsertCommand>
  426. <DbCommand CommandType="Text" ModifiedByUser="false">
  427. <CommandText>INSERT INTO [dbo].[UserTable] ([UserSurname], [UserName], [UserPatronymic], [UserLogin], [UserPassword], [UserRole]) VALUES (@UserSurname, @UserName, @UserPatronymic, @UserLogin, @UserPassword, @UserRole);
  428. SELECT UserID, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, UserRole FROM UserTable WHERE (UserID = SCOPE_IDENTITY())</CommandText>
  429. <Parameters>
  430. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserSurname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserSurname" SourceColumnNullMapping="false" SourceVersion="Current" />
  431. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Current" />
  432. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserPatronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserPatronymic" SourceColumnNullMapping="false" SourceVersion="Current" />
  433. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserLogin" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserLogin" SourceColumnNullMapping="false" SourceVersion="Current" />
  434. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserPassword" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserPassword" SourceColumnNullMapping="false" SourceVersion="Current" />
  435. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@UserRole" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserRole" SourceColumnNullMapping="false" SourceVersion="Current" />
  436. </Parameters>
  437. </DbCommand>
  438. </InsertCommand>
  439. <SelectCommand>
  440. <DbCommand CommandType="Text" ModifiedByUser="false">
  441. <CommandText>SELECT UserID, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, UserRole FROM dbo.UserTable</CommandText>
  442. <Parameters />
  443. </DbCommand>
  444. </SelectCommand>
  445. <UpdateCommand>
  446. <DbCommand CommandType="Text" ModifiedByUser="false">
  447. <CommandText>UPDATE [dbo].[UserTable] SET [UserSurname] = @UserSurname, [UserName] = @UserName, [UserPatronymic] = @UserPatronymic, [UserLogin] = @UserLogin, [UserPassword] = @UserPassword, [UserRole] = @UserRole WHERE (([UserID] = @Original_UserID) AND ([UserSurname] = @Original_UserSurname) AND ([UserName] = @Original_UserName) AND ([UserPatronymic] = @Original_UserPatronymic) AND ([UserRole] = @Original_UserRole));
  448. SELECT UserID, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, UserRole FROM UserTable WHERE (UserID = @UserID)</CommandText>
  449. <Parameters>
  450. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserSurname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserSurname" SourceColumnNullMapping="false" SourceVersion="Current" />
  451. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Current" />
  452. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserPatronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserPatronymic" SourceColumnNullMapping="false" SourceVersion="Current" />
  453. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserLogin" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserLogin" SourceColumnNullMapping="false" SourceVersion="Current" />
  454. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserPassword" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserPassword" SourceColumnNullMapping="false" SourceVersion="Current" />
  455. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@UserRole" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserRole" SourceColumnNullMapping="false" SourceVersion="Current" />
  456. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_UserID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Original" />
  457. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_UserSurname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserSurname" SourceColumnNullMapping="false" SourceVersion="Original" />
  458. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_UserName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Original" />
  459. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_UserPatronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserPatronymic" SourceColumnNullMapping="false" SourceVersion="Original" />
  460. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_UserRole" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserRole" SourceColumnNullMapping="false" SourceVersion="Original" />
  461. <Parameter AllowDbNull="false" AutogeneratedName="UserID" ColumnName="UserID" DataSourceName="trade02.dbo.UserTable" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@UserID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Current" />
  462. </Parameters>
  463. </DbCommand>
  464. </UpdateCommand>
  465. </DbSource>
  466. </MainSource>
  467. <Mappings>
  468. <Mapping SourceColumn="UserID" DataSetColumn="UserID" />
  469. <Mapping SourceColumn="UserSurname" DataSetColumn="UserSurname" />
  470. <Mapping SourceColumn="UserName" DataSetColumn="UserName" />
  471. <Mapping SourceColumn="UserPatronymic" DataSetColumn="UserPatronymic" />
  472. <Mapping SourceColumn="UserLogin" DataSetColumn="UserLogin" />
  473. <Mapping SourceColumn="UserPassword" DataSetColumn="UserPassword" />
  474. <Mapping SourceColumn="UserRole" DataSetColumn="UserRole" />
  475. </Mappings>
  476. <Sources />
  477. </TableAdapter>
  478. </Tables>
  479. <Sources />
  480. </DataSource>
  481. </xs:appinfo>
  482. </xs:annotation>
  483. <xs:element name="trade02DataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="trade02DataSet" msprop:Generator_UserDSName="trade02DataSet">
  484. <xs:complexType>
  485. <xs:choice minOccurs="0" maxOccurs="unbounded">
  486. <xs:element name="Order" msprop:Generator_TableClassName="OrderDataTable" msprop:Generator_TableVarName="tableOrder" msprop:Generator_RowChangedName="OrderRowChanged" msprop:Generator_TablePropName="Order" msprop:Generator_RowDeletingName="OrderRowDeleting" msprop:Generator_RowChangingName="OrderRowChanging" msprop:Generator_RowEvHandlerName="OrderRowChangeEventHandler" msprop:Generator_RowDeletedName="OrderRowDeleted" msprop:Generator_RowClassName="OrderRow" msprop:Generator_UserTableName="Order" msprop:Generator_RowEvArgName="OrderRowChangeEvent">
  487. <xs:complexType>
  488. <xs:sequence>
  489. <xs:element name="OrderID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnOrderID" msprop:Generator_ColumnPropNameInRow="OrderID" msprop:Generator_ColumnPropNameInTable="OrderIDColumn" msprop:Generator_UserColumnName="OrderID" type="xs:int" />
  490. <xs:element name="OrderStatus" msprop:Generator_ColumnVarNameInTable="columnOrderStatus" msprop:Generator_ColumnPropNameInRow="OrderStatus" msprop:Generator_ColumnPropNameInTable="OrderStatusColumn" msprop:Generator_UserColumnName="OrderStatus">
  491. <xs:simpleType>
  492. <xs:restriction base="xs:string">
  493. <xs:maxLength value="2147483647" />
  494. </xs:restriction>
  495. </xs:simpleType>
  496. </xs:element>
  497. <xs:element name="OrderDeliveryDate" msprop:Generator_ColumnVarNameInTable="columnOrderDeliveryDate" msprop:Generator_ColumnPropNameInRow="OrderDeliveryDate" msprop:Generator_ColumnPropNameInTable="OrderDeliveryDateColumn" msprop:Generator_UserColumnName="OrderDeliveryDate" type="xs:dateTime" />
  498. <xs:element name="OrderPickupPoint" msprop:Generator_ColumnVarNameInTable="columnOrderPickupPoint" msprop:Generator_ColumnPropNameInRow="OrderPickupPoint" msprop:Generator_ColumnPropNameInTable="OrderPickupPointColumn" msprop:Generator_UserColumnName="OrderPickupPoint" type="xs:unsignedByte" />
  499. <xs:element name="DateZakaza" msprop:Generator_ColumnVarNameInTable="columnDateZakaza" msprop:Generator_ColumnPropNameInRow="DateZakaza" msprop:Generator_ColumnPropNameInTable="DateZakazaColumn" msprop:Generator_UserColumnName="DateZakaza" type="xs:dateTime" minOccurs="0" />
  500. <xs:element name="fioKlienta" msprop:Generator_ColumnVarNameInTable="columnfioKlienta" msprop:Generator_ColumnPropNameInRow="fioKlienta" msprop:Generator_ColumnPropNameInTable="fioKlientaColumn" msprop:Generator_UserColumnName="fioKlienta" minOccurs="0">
  501. <xs:simpleType>
  502. <xs:restriction base="xs:string">
  503. <xs:maxLength value="2147483647" />
  504. </xs:restriction>
  505. </xs:simpleType>
  506. </xs:element>
  507. <xs:element name="KodPolycheniya" msprop:Generator_ColumnVarNameInTable="columnKodPolycheniya" msprop:Generator_ColumnPropNameInRow="KodPolycheniya" msprop:Generator_ColumnPropNameInTable="KodPolycheniyaColumn" msprop:Generator_UserColumnName="KodPolycheniya" type="xs:int" minOccurs="0" />
  508. </xs:sequence>
  509. </xs:complexType>
  510. </xs:element>
  511. <xs:element name="OrderProduct" msprop:Generator_TableClassName="OrderProductDataTable" msprop:Generator_TableVarName="tableOrderProduct" msprop:Generator_RowChangedName="OrderProductRowChanged" msprop:Generator_TablePropName="OrderProduct" msprop:Generator_RowDeletingName="OrderProductRowDeleting" msprop:Generator_RowChangingName="OrderProductRowChanging" msprop:Generator_RowEvHandlerName="OrderProductRowChangeEventHandler" msprop:Generator_RowDeletedName="OrderProductRowDeleted" msprop:Generator_RowClassName="OrderProductRow" msprop:Generator_UserTableName="OrderProduct" msprop:Generator_RowEvArgName="OrderProductRowChangeEvent">
  512. <xs:complexType>
  513. <xs:sequence>
  514. <xs:element name="OrderID" msprop:Generator_ColumnVarNameInTable="columnOrderID" msprop:Generator_ColumnPropNameInRow="OrderID" msprop:Generator_ColumnPropNameInTable="OrderIDColumn" msprop:Generator_UserColumnName="OrderID" type="xs:int" />
  515. <xs:element name="ProductArticleNumber" msprop:Generator_ColumnVarNameInTable="columnProductArticleNumber" msprop:Generator_ColumnPropNameInRow="ProductArticleNumber" msprop:Generator_ColumnPropNameInTable="ProductArticleNumberColumn" msprop:Generator_UserColumnName="ProductArticleNumber">
  516. <xs:simpleType>
  517. <xs:restriction base="xs:string">
  518. <xs:maxLength value="100" />
  519. </xs:restriction>
  520. </xs:simpleType>
  521. </xs:element>
  522. <xs:element name="Количество_товара" msprop:Generator_ColumnVarNameInTable="columnКоличество_товара" msprop:Generator_ColumnPropNameInRow="Количество_товара" msprop:Generator_ColumnPropNameInTable="Количество_товараColumn" msprop:Generator_UserColumnName="Количество_товара" type="xs:int" minOccurs="0" />
  523. </xs:sequence>
  524. </xs:complexType>
  525. </xs:element>
  526. <xs:element name="Product" msprop:Generator_TableClassName="ProductDataTable" msprop:Generator_TableVarName="tableProduct" msprop:Generator_RowChangedName="ProductRowChanged" msprop:Generator_TablePropName="Product" msprop:Generator_RowDeletingName="ProductRowDeleting" msprop:Generator_RowChangingName="ProductRowChanging" msprop:Generator_RowEvHandlerName="ProductRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductRowDeleted" msprop:Generator_RowClassName="ProductRow" msprop:Generator_UserTableName="Product" msprop:Generator_RowEvArgName="ProductRowChangeEvent">
  527. <xs:complexType>
  528. <xs:sequence>
  529. <xs:element name="ProductArticleNumber" msprop:Generator_ColumnVarNameInTable="columnProductArticleNumber" msprop:Generator_ColumnPropNameInRow="ProductArticleNumber" msprop:Generator_ColumnPropNameInTable="ProductArticleNumberColumn" msprop:Generator_UserColumnName="ProductArticleNumber">
  530. <xs:simpleType>
  531. <xs:restriction base="xs:string">
  532. <xs:maxLength value="100" />
  533. </xs:restriction>
  534. </xs:simpleType>
  535. </xs:element>
  536. <xs:element name="ProductName" msprop:Generator_ColumnVarNameInTable="columnProductName" msprop:Generator_ColumnPropNameInRow="ProductName" msprop:Generator_ColumnPropNameInTable="ProductNameColumn" msprop:Generator_UserColumnName="ProductName">
  537. <xs:simpleType>
  538. <xs:restriction base="xs:string">
  539. <xs:maxLength value="2147483647" />
  540. </xs:restriction>
  541. </xs:simpleType>
  542. </xs:element>
  543. <xs:element name="ProductDescription" msprop:Generator_ColumnVarNameInTable="columnProductDescription" msprop:Generator_ColumnPropNameInRow="ProductDescription" msprop:Generator_ColumnPropNameInTable="ProductDescriptionColumn" msprop:Generator_UserColumnName="ProductDescription">
  544. <xs:simpleType>
  545. <xs:restriction base="xs:string">
  546. <xs:maxLength value="2147483647" />
  547. </xs:restriction>
  548. </xs:simpleType>
  549. </xs:element>
  550. <xs:element name="ProductCategory" msprop:Generator_ColumnVarNameInTable="columnProductCategory" msprop:Generator_ColumnPropNameInRow="ProductCategory" msprop:Generator_ColumnPropNameInTable="ProductCategoryColumn" msprop:Generator_UserColumnName="ProductCategory">
  551. <xs:simpleType>
  552. <xs:restriction base="xs:string">
  553. <xs:maxLength value="2147483647" />
  554. </xs:restriction>
  555. </xs:simpleType>
  556. </xs:element>
  557. <xs:element name="ProductPhoto" msprop:Generator_ColumnVarNameInTable="columnProductPhoto" msprop:Generator_ColumnPropNameInRow="ProductPhoto" msprop:Generator_ColumnPropNameInTable="ProductPhotoColumn" msprop:Generator_UserColumnName="ProductPhoto" type="xs:base64Binary" minOccurs="0" />
  558. <xs:element name="ProductManufacturer" msprop:Generator_ColumnVarNameInTable="columnProductManufacturer" msprop:Generator_ColumnPropNameInRow="ProductManufacturer" msprop:Generator_ColumnPropNameInTable="ProductManufacturerColumn" msprop:Generator_UserColumnName="ProductManufacturer">
  559. <xs:simpleType>
  560. <xs:restriction base="xs:string">
  561. <xs:maxLength value="2147483647" />
  562. </xs:restriction>
  563. </xs:simpleType>
  564. </xs:element>
  565. <xs:element name="ProductCost" msprop:Generator_ColumnVarNameInTable="columnProductCost" msprop:Generator_ColumnPropNameInRow="ProductCost" msprop:Generator_ColumnPropNameInTable="ProductCostColumn" msprop:Generator_UserColumnName="ProductCost" type="xs:decimal" />
  566. <xs:element name="ProductDiscountAmount" msprop:Generator_ColumnVarNameInTable="columnProductDiscountAmount" msprop:Generator_ColumnPropNameInRow="ProductDiscountAmount" msprop:Generator_ColumnPropNameInTable="ProductDiscountAmountColumn" msprop:Generator_UserColumnName="ProductDiscountAmount" type="xs:unsignedByte" minOccurs="0" />
  567. <xs:element name="ProductMaxDiscount" msprop:Generator_ColumnVarNameInTable="columnProductMaxDiscount" msprop:Generator_ColumnPropNameInRow="ProductMaxDiscount" msprop:Generator_ColumnPropNameInTable="ProductMaxDiscountColumn" msprop:Generator_UserColumnName="ProductMaxDiscount" type="xs:unsignedByte" minOccurs="0" />
  568. <xs:element name="ProductQuantityInStock" msprop:Generator_ColumnVarNameInTable="columnProductQuantityInStock" msprop:Generator_ColumnPropNameInRow="ProductQuantityInStock" msprop:Generator_ColumnPropNameInTable="ProductQuantityInStockColumn" msprop:Generator_UserColumnName="ProductQuantityInStock" type="xs:int" />
  569. <xs:element name="ProductStatus" msprop:Generator_ColumnVarNameInTable="columnProductStatus" msprop:Generator_ColumnPropNameInRow="ProductStatus" msprop:Generator_ColumnPropNameInTable="ProductStatusColumn" msprop:Generator_UserColumnName="ProductStatus" minOccurs="0">
  570. <xs:simpleType>
  571. <xs:restriction base="xs:string">
  572. <xs:maxLength value="2147483647" />
  573. </xs:restriction>
  574. </xs:simpleType>
  575. </xs:element>
  576. <xs:element name="Id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnId" msprop:Generator_ColumnPropNameInRow="Id" msprop:Generator_ColumnPropNameInTable="IdColumn" msprop:Generator_UserColumnName="Id" type="xs:int" />
  577. <xs:element name="ProductPhormat" msprop:Generator_ColumnVarNameInTable="columnProductPhormat" msprop:Generator_ColumnPropNameInRow="ProductPhormat" msprop:Generator_ColumnPropNameInTable="ProductPhormatColumn" msprop:Generator_UserColumnName="ProductPhormat">
  578. <xs:simpleType>
  579. <xs:restriction base="xs:string">
  580. <xs:maxLength value="50" />
  581. </xs:restriction>
  582. </xs:simpleType>
  583. </xs:element>
  584. </xs:sequence>
  585. </xs:complexType>
  586. </xs:element>
  587. <xs:element name="punkt_vidachi" msprop:Generator_TableClassName="punkt_vidachiDataTable" msprop:Generator_TableVarName="tablepunkt_vidachi" msprop:Generator_RowChangedName="punkt_vidachiRowChanged" msprop:Generator_TablePropName="punkt_vidachi" msprop:Generator_RowDeletingName="punkt_vidachiRowDeleting" msprop:Generator_RowChangingName="punkt_vidachiRowChanging" msprop:Generator_RowEvHandlerName="punkt_vidachiRowChangeEventHandler" msprop:Generator_RowDeletedName="punkt_vidachiRowDeleted" msprop:Generator_RowClassName="punkt_vidachiRow" msprop:Generator_UserTableName="punkt_vidachi" msprop:Generator_RowEvArgName="punkt_vidachiRowChangeEvent">
  588. <xs:complexType>
  589. <xs:sequence>
  590. <xs:element name="id" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnid" msprop:Generator_ColumnPropNameInRow="id" msprop:Generator_ColumnPropNameInTable="idColumn" msprop:Generator_UserColumnName="id" type="xs:unsignedByte" />
  591. <xs:element name="index" msprop:Generator_ColumnVarNameInTable="columnindex" msprop:Generator_ColumnPropNameInRow="index" msprop:Generator_ColumnPropNameInTable="indexColumn" msprop:Generator_UserColumnName="index" type="xs:int" />
  592. <xs:element name="gorod" msprop:Generator_ColumnVarNameInTable="columngorod" msprop:Generator_ColumnPropNameInRow="gorod" msprop:Generator_ColumnPropNameInTable="gorodColumn" msprop:Generator_UserColumnName="gorod">
  593. <xs:simpleType>
  594. <xs:restriction base="xs:string">
  595. <xs:maxLength value="50" />
  596. </xs:restriction>
  597. </xs:simpleType>
  598. </xs:element>
  599. <xs:element name="ulica" msprop:Generator_ColumnVarNameInTable="columnulica" msprop:Generator_ColumnPropNameInRow="ulica" msprop:Generator_ColumnPropNameInTable="ulicaColumn" msprop:Generator_UserColumnName="ulica">
  600. <xs:simpleType>
  601. <xs:restriction base="xs:string">
  602. <xs:maxLength value="50" />
  603. </xs:restriction>
  604. </xs:simpleType>
  605. </xs:element>
  606. <xs:element name="dom" msprop:Generator_ColumnVarNameInTable="columndom" msprop:Generator_ColumnPropNameInRow="dom" msprop:Generator_ColumnPropNameInTable="domColumn" msprop:Generator_UserColumnName="dom" type="xs:unsignedByte" minOccurs="0" />
  607. </xs:sequence>
  608. </xs:complexType>
  609. </xs:element>
  610. <xs:element name="Role" msprop:Generator_TableClassName="RoleDataTable" msprop:Generator_TableVarName="tableRole" msprop:Generator_RowChangedName="RoleRowChanged" msprop:Generator_TablePropName="Role" msprop:Generator_RowDeletingName="RoleRowDeleting" msprop:Generator_RowChangingName="RoleRowChanging" msprop:Generator_RowEvHandlerName="RoleRowChangeEventHandler" msprop:Generator_RowDeletedName="RoleRowDeleted" msprop:Generator_RowClassName="RoleRow" msprop:Generator_UserTableName="Role" msprop:Generator_RowEvArgName="RoleRowChangeEvent">
  611. <xs:complexType>
  612. <xs:sequence>
  613. <xs:element name="RoleID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnRoleID" msprop:Generator_ColumnPropNameInRow="RoleID" msprop:Generator_ColumnPropNameInTable="RoleIDColumn" msprop:Generator_UserColumnName="RoleID" type="xs:int" />
  614. <xs:element name="RoleName" msprop:Generator_ColumnVarNameInTable="columnRoleName" msprop:Generator_ColumnPropNameInRow="RoleName" msprop:Generator_ColumnPropNameInTable="RoleNameColumn" msprop:Generator_UserColumnName="RoleName">
  615. <xs:simpleType>
  616. <xs:restriction base="xs:string">
  617. <xs:maxLength value="100" />
  618. </xs:restriction>
  619. </xs:simpleType>
  620. </xs:element>
  621. </xs:sequence>
  622. </xs:complexType>
  623. </xs:element>
  624. <xs:element name="User" msprop:Generator_TableClassName="UserDataTable" msprop:Generator_TableVarName="tableUser" msprop:Generator_RowChangedName="UserRowChanged" msprop:Generator_TablePropName="User" msprop:Generator_RowDeletingName="UserRowDeleting" msprop:Generator_RowChangingName="UserRowChanging" msprop:Generator_RowEvHandlerName="UserRowChangeEventHandler" msprop:Generator_RowDeletedName="UserRowDeleted" msprop:Generator_RowClassName="UserRow" msprop:Generator_UserTableName="User" msprop:Generator_RowEvArgName="UserRowChangeEvent">
  625. <xs:complexType>
  626. <xs:sequence>
  627. <xs:element name="UserID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnUserID" msprop:Generator_ColumnPropNameInRow="UserID" msprop:Generator_ColumnPropNameInTable="UserIDColumn" msprop:Generator_UserColumnName="UserID" type="xs:int" />
  628. <xs:element name="UserSurname" msprop:Generator_ColumnVarNameInTable="columnUserSurname" msprop:Generator_ColumnPropNameInRow="UserSurname" msprop:Generator_ColumnPropNameInTable="UserSurnameColumn" msprop:Generator_UserColumnName="UserSurname">
  629. <xs:simpleType>
  630. <xs:restriction base="xs:string">
  631. <xs:maxLength value="100" />
  632. </xs:restriction>
  633. </xs:simpleType>
  634. </xs:element>
  635. <xs:element name="UserName" msprop:Generator_ColumnVarNameInTable="columnUserName" msprop:Generator_ColumnPropNameInRow="UserName" msprop:Generator_ColumnPropNameInTable="UserNameColumn" msprop:Generator_UserColumnName="UserName">
  636. <xs:simpleType>
  637. <xs:restriction base="xs:string">
  638. <xs:maxLength value="100" />
  639. </xs:restriction>
  640. </xs:simpleType>
  641. </xs:element>
  642. <xs:element name="UserPatronymic" msprop:Generator_ColumnVarNameInTable="columnUserPatronymic" msprop:Generator_ColumnPropNameInRow="UserPatronymic" msprop:Generator_ColumnPropNameInTable="UserPatronymicColumn" msprop:Generator_UserColumnName="UserPatronymic">
  643. <xs:simpleType>
  644. <xs:restriction base="xs:string">
  645. <xs:maxLength value="100" />
  646. </xs:restriction>
  647. </xs:simpleType>
  648. </xs:element>
  649. <xs:element name="UserLogin" msprop:Generator_ColumnVarNameInTable="columnUserLogin" msprop:Generator_ColumnPropNameInRow="UserLogin" msprop:Generator_ColumnPropNameInTable="UserLoginColumn" msprop:Generator_UserColumnName="UserLogin">
  650. <xs:simpleType>
  651. <xs:restriction base="xs:string">
  652. <xs:maxLength value="2147483647" />
  653. </xs:restriction>
  654. </xs:simpleType>
  655. </xs:element>
  656. <xs:element name="UserPassword" msprop:Generator_ColumnVarNameInTable="columnUserPassword" msprop:Generator_ColumnPropNameInRow="UserPassword" msprop:Generator_ColumnPropNameInTable="UserPasswordColumn" msprop:Generator_UserColumnName="UserPassword">
  657. <xs:simpleType>
  658. <xs:restriction base="xs:string">
  659. <xs:maxLength value="2147483647" />
  660. </xs:restriction>
  661. </xs:simpleType>
  662. </xs:element>
  663. <xs:element name="UserRole" msprop:Generator_ColumnVarNameInTable="columnUserRole" msprop:Generator_ColumnPropNameInRow="UserRole" msprop:Generator_ColumnPropNameInTable="UserRoleColumn" msprop:Generator_UserColumnName="UserRole" type="xs:int" />
  664. </xs:sequence>
  665. </xs:complexType>
  666. </xs:element>
  667. <xs:element name="UserTable" msprop:Generator_TableClassName="UserTableDataTable" msprop:Generator_TableVarName="tableUserTable" msprop:Generator_TablePropName="UserTable" msprop:Generator_RowDeletingName="UserTableRowDeleting" msprop:Generator_RowChangingName="UserTableRowChanging" msprop:Generator_RowEvHandlerName="UserTableRowChangeEventHandler" msprop:Generator_RowDeletedName="UserTableRowDeleted" msprop:Generator_UserTableName="UserTable" msprop:Generator_RowChangedName="UserTableRowChanged" msprop:Generator_RowEvArgName="UserTableRowChangeEvent" msprop:Generator_RowClassName="UserTableRow">
  668. <xs:complexType>
  669. <xs:sequence>
  670. <xs:element name="UserID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnUserID" msprop:Generator_ColumnPropNameInRow="UserID" msprop:Generator_ColumnPropNameInTable="UserIDColumn" msprop:Generator_UserColumnName="UserID" type="xs:int" />
  671. <xs:element name="UserSurname" msprop:Generator_ColumnVarNameInTable="columnUserSurname" msprop:Generator_ColumnPropNameInRow="UserSurname" msprop:Generator_ColumnPropNameInTable="UserSurnameColumn" msprop:Generator_UserColumnName="UserSurname">
  672. <xs:simpleType>
  673. <xs:restriction base="xs:string">
  674. <xs:maxLength value="100" />
  675. </xs:restriction>
  676. </xs:simpleType>
  677. </xs:element>
  678. <xs:element name="UserName" msprop:Generator_ColumnVarNameInTable="columnUserName" msprop:Generator_ColumnPropNameInRow="UserName" msprop:Generator_ColumnPropNameInTable="UserNameColumn" msprop:Generator_UserColumnName="UserName">
  679. <xs:simpleType>
  680. <xs:restriction base="xs:string">
  681. <xs:maxLength value="100" />
  682. </xs:restriction>
  683. </xs:simpleType>
  684. </xs:element>
  685. <xs:element name="UserPatronymic" msprop:Generator_ColumnVarNameInTable="columnUserPatronymic" msprop:Generator_ColumnPropNameInRow="UserPatronymic" msprop:Generator_ColumnPropNameInTable="UserPatronymicColumn" msprop:Generator_UserColumnName="UserPatronymic">
  686. <xs:simpleType>
  687. <xs:restriction base="xs:string">
  688. <xs:maxLength value="100" />
  689. </xs:restriction>
  690. </xs:simpleType>
  691. </xs:element>
  692. <xs:element name="UserLogin" msprop:Generator_ColumnVarNameInTable="columnUserLogin" msprop:Generator_ColumnPropNameInRow="UserLogin" msprop:Generator_ColumnPropNameInTable="UserLoginColumn" msprop:Generator_UserColumnName="UserLogin">
  693. <xs:simpleType>
  694. <xs:restriction base="xs:string">
  695. <xs:maxLength value="2147483647" />
  696. </xs:restriction>
  697. </xs:simpleType>
  698. </xs:element>
  699. <xs:element name="UserPassword" msprop:Generator_ColumnVarNameInTable="columnUserPassword" msprop:Generator_ColumnPropNameInRow="UserPassword" msprop:Generator_ColumnPropNameInTable="UserPasswordColumn" msprop:Generator_UserColumnName="UserPassword">
  700. <xs:simpleType>
  701. <xs:restriction base="xs:string">
  702. <xs:maxLength value="2147483647" />
  703. </xs:restriction>
  704. </xs:simpleType>
  705. </xs:element>
  706. <xs:element name="UserRole" msprop:Generator_ColumnVarNameInTable="columnUserRole" msprop:Generator_ColumnPropNameInRow="UserRole" msprop:Generator_ColumnPropNameInTable="UserRoleColumn" msprop:Generator_UserColumnName="UserRole" type="xs:int" />
  707. </xs:sequence>
  708. </xs:complexType>
  709. </xs:element>
  710. </xs:choice>
  711. </xs:complexType>
  712. <xs:unique name="Constraint1" msdata:PrimaryKey="true">
  713. <xs:selector xpath=".//mstns:Order" />
  714. <xs:field xpath="mstns:OrderID" />
  715. </xs:unique>
  716. <xs:unique name="OrderProduct_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  717. <xs:selector xpath=".//mstns:OrderProduct" />
  718. <xs:field xpath="mstns:OrderID" />
  719. <xs:field xpath="mstns:ProductArticleNumber" />
  720. </xs:unique>
  721. <xs:unique name="Product_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  722. <xs:selector xpath=".//mstns:Product" />
  723. <xs:field xpath="mstns:ProductArticleNumber" />
  724. </xs:unique>
  725. <xs:unique name="punkt_vidachi_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  726. <xs:selector xpath=".//mstns:punkt_vidachi" />
  727. <xs:field xpath="mstns:id" />
  728. </xs:unique>
  729. <xs:unique name="Role_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  730. <xs:selector xpath=".//mstns:Role" />
  731. <xs:field xpath="mstns:RoleID" />
  732. </xs:unique>
  733. <xs:unique name="User_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  734. <xs:selector xpath=".//mstns:User" />
  735. <xs:field xpath="mstns:UserID" />
  736. </xs:unique>
  737. <xs:unique name="UserTable_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  738. <xs:selector xpath=".//mstns:UserTable" />
  739. <xs:field xpath="mstns:UserID" />
  740. </xs:unique>
  741. </xs:element>
  742. <xs:annotation>
  743. <xs:appinfo>
  744. <msdata:Relationship name="FK_Order_punkt_vidachi" msdata:parent="punkt_vidachi" msdata:child="Order" msdata:parentkey="id" msdata:childkey="OrderPickupPoint" msprop:Generator_UserChildTable="Order" msprop:Generator_ChildPropName="GetOrderRows" msprop:Generator_UserRelationName="FK_Order_punkt_vidachi" msprop:Generator_ParentPropName="punkt_vidachiRow" msprop:Generator_RelationVarName="relationFK_Order_punkt_vidachi" msprop:Generator_UserParentTable="punkt_vidachi" />
  745. <msdata:Relationship name="FK_OrderProduct_Order" msdata:parent="Order" msdata:child="OrderProduct" msdata:parentkey="OrderID" msdata:childkey="OrderID" msprop:Generator_UserChildTable="OrderProduct" msprop:Generator_ChildPropName="GetOrderProductRows" msprop:Generator_UserRelationName="FK_OrderProduct_Order" msprop:Generator_RelationVarName="relationFK_OrderProduct_Order" msprop:Generator_UserParentTable="Order" msprop:Generator_ParentPropName="OrderRow" />
  746. <msdata:Relationship name="FK__User__UserRole__25869641" msdata:parent="Role" msdata:child="User" msdata:parentkey="RoleID" msdata:childkey="UserRole" msprop:Generator_UserChildTable="User" msprop:Generator_ChildPropName="GetUserRows" msprop:Generator_UserRelationName="FK__User__UserRole__25869641" msprop:Generator_RelationVarName="relationFK__User__UserRole__25869641" msprop:Generator_UserParentTable="Role" msprop:Generator_ParentPropName="RoleRow" />
  747. <msdata:Relationship name="FK__User__UserRole__258696411" msdata:parent="Role" msdata:child="UserTable" msdata:parentkey="RoleID" msdata:childkey="UserRole" msprop:Generator_UserChildTable="UserTable" msprop:Generator_ChildPropName="GetUserTableRows" msprop:Generator_UserRelationName="FK__User__UserRole__258696411" msprop:Generator_ParentPropName="RoleRow" msprop:Generator_RelationVarName="relationFK__User__UserRole__258696411" msprop:Generator_UserParentTable="Role" />
  748. </xs:appinfo>
  749. </xs:annotation>
  750. </xs:schema>