TradebaseDataSet.xsd 76 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="TradebaseDataSet" targetNamespace="http://tempuri.org/TradebaseDataSet.xsd" xmlns:mstns="http://tempuri.org/TradebaseDataSet.xsd" xmlns="http://tempuri.org/TradebaseDataSet.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="Tradebase" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="Tradebase (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings._09_OOO_StroyMateryali.Properties.Settings.GlobalReference.Default.Tradebase" 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="Tradebase (Settings)" DbObjectName="[09Trade].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_OrderDate = 1 AND [OrderDate] IS NULL) OR ([OrderDate] = @Original_OrderDate)) AND ((@IsNull_KodPoluch = 1 AND [KodPoluch] IS NULL) OR ([KodPoluch] = @Original_KodPoluch)))</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="Int32" Direction="Input" ParameterName="@Original_OrderPickupPoint" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OrderPickupPoint" SourceColumnNullMapping="false" SourceVersion="Original" />
  20. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OrderDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OrderDate" SourceColumnNullMapping="true" SourceVersion="Original" />
  21. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_OrderDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="OrderDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  22. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_KodPoluch" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="KodPoluch" SourceColumnNullMapping="true" SourceVersion="Original" />
  23. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_KodPoluch" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="KodPoluch" 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], [OrderDate], [FIOKlient], [KodPoluch]) VALUES (@OrderStatus, @OrderDeliveryDate, @OrderPickupPoint, @OrderDate, @FIOKlient, @KodPoluch);
  30. SELECT OrderID, OrderStatus, OrderDeliveryDate, OrderPickupPoint, OrderDate, FIOKlient, KodPoluch 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="Int32" Direction="Input" ParameterName="@OrderPickupPoint" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OrderPickupPoint" SourceColumnNullMapping="false" SourceVersion="Current" />
  35. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@OrderDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="OrderDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  36. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FIOKlient" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FIOKlient" SourceColumnNullMapping="false" SourceVersion="Current" />
  37. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@KodPoluch" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="KodPoluch" 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, OrderDate, FIOKlient, KodPoluch 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, [OrderDate] = @OrderDate, [FIOKlient] = @FIOKlient, [KodPoluch] = @KodPoluch WHERE (([OrderID] = @Original_OrderID) AND ([OrderDeliveryDate] = @Original_OrderDeliveryDate) AND ([OrderPickupPoint] = @Original_OrderPickupPoint) AND ((@IsNull_OrderDate = 1 AND [OrderDate] IS NULL) OR ([OrderDate] = @Original_OrderDate)) AND ((@IsNull_KodPoluch = 1 AND [KodPoluch] IS NULL) OR ([KodPoluch] = @Original_KodPoluch)));
  50. SELECT OrderID, OrderStatus, OrderDeliveryDate, OrderPickupPoint, OrderDate, FIOKlient, KodPoluch 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="Int32" Direction="Input" ParameterName="@OrderPickupPoint" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OrderPickupPoint" SourceColumnNullMapping="false" SourceVersion="Current" />
  55. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@OrderDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="OrderDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  56. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FIOKlient" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FIOKlient" SourceColumnNullMapping="false" SourceVersion="Current" />
  57. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@KodPoluch" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="KodPoluch" 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="Int32" Direction="Input" ParameterName="@Original_OrderPickupPoint" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OrderPickupPoint" SourceColumnNullMapping="false" SourceVersion="Original" />
  61. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OrderDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OrderDate" SourceColumnNullMapping="true" SourceVersion="Original" />
  62. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_OrderDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="OrderDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  63. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_KodPoluch" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="KodPoluch" SourceColumnNullMapping="true" SourceVersion="Original" />
  64. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_KodPoluch" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="KodPoluch" SourceColumnNullMapping="false" SourceVersion="Original" />
  65. <Parameter AllowDbNull="false" AutogeneratedName="OrderID" ColumnName="OrderID" DataSourceName="[09Trade].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="OrderDate" DataSetColumn="OrderDate" />
  77. <Mapping SourceColumn="FIOKlient" DataSetColumn="FIOKlient" />
  78. <Mapping SourceColumn="KodPoluch" DataSetColumn="KodPoluch" />
  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="Tradebase (Settings)" DbObjectName="[09Trade].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. <InsertCommand>
  86. <DbCommand CommandType="Text" ModifiedByUser="false">
  87. <CommandText>INSERT INTO [dbo].[OrderProduct] ([OrderID], [ProductArticleNumber], [KolTovar]) VALUES (@OrderID, @ProductArticleNumber, @KolTovar)</CommandText>
  88. <Parameters>
  89. <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" />
  90. <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" />
  91. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@KolTovar" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="KolTovar" SourceColumnNullMapping="false" SourceVersion="Current" />
  92. </Parameters>
  93. </DbCommand>
  94. </InsertCommand>
  95. <SelectCommand>
  96. <DbCommand CommandType="Text" ModifiedByUser="false">
  97. <CommandText>SELECT OrderID, ProductArticleNumber, KolTovar FROM dbo.OrderProduct</CommandText>
  98. <Parameters />
  99. </DbCommand>
  100. </SelectCommand>
  101. </DbSource>
  102. </MainSource>
  103. <Mappings>
  104. <Mapping SourceColumn="OrderID" DataSetColumn="OrderID" />
  105. <Mapping SourceColumn="ProductArticleNumber" DataSetColumn="ProductArticleNumber" />
  106. <Mapping SourceColumn="KolTovar" DataSetColumn="KolTovar" />
  107. </Mappings>
  108. <Sources />
  109. </TableAdapter>
  110. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductTableAdapter" GeneratorDataComponentClassName="ProductTableAdapter" Name="Product" UserDataComponentName="ProductTableAdapter">
  111. <MainSource>
  112. <DbSource ConnectionRef="Tradebase (Settings)" DbObjectName="[09Trade].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">
  113. <DeleteCommand>
  114. <DbCommand CommandType="Text" ModifiedByUser="false">
  115. <CommandText>DELETE FROM [dbo].[Product] WHERE (([ProductArticleNumber] = @Original_ProductArticleNumber) AND ([ProductCost] = @Original_ProductCost) AND ((@IsNull_ProductDiscountAmount = 1 AND [ProductDiscountAmount] IS NULL) OR ([ProductDiscountAmount] = @Original_ProductDiscountAmount)) AND ((@IsNull_ProductMaxDiscountAmount = 1 AND [ProductMaxDiscountAmount] IS NULL) OR ([ProductMaxDiscountAmount] = @Original_ProductMaxDiscountAmount)) AND ([ProductQuantityInStock] = @Original_ProductQuantityInStock))</CommandText>
  116. <Parameters>
  117. <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" />
  118. <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" />
  119. <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" />
  120. <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" />
  121. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductMaxDiscountAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductMaxDiscountAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
  122. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@Original_ProductMaxDiscountAmount" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="ProductMaxDiscountAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
  123. <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" />
  124. </Parameters>
  125. </DbCommand>
  126. </DeleteCommand>
  127. <InsertCommand>
  128. <DbCommand CommandType="Text" ModifiedByUser="false">
  129. <CommandText>INSERT INTO [dbo].[Product] ([ProductArticleNumber], [ProductName], [ProductDescription], [ProductCategory], [ProductPhoto], [ProductManufacturer], [ProductCost], [ProductDiscountAmount], [ProductMaxDiscountAmount], [ProductQuantityInStock], [ProductStatus]) VALUES (@ProductArticleNumber, @ProductName, @ProductDescription, @ProductCategory, @ProductPhoto, @ProductManufacturer, @ProductCost, @ProductDiscountAmount, @ProductMaxDiscountAmount, @ProductQuantityInStock, @ProductStatus);
  130. SELECT ProductArticleNumber, ProductName, ProductDescription, ProductCategory, ProductPhoto, ProductManufacturer, ProductCost, ProductDiscountAmount, ProductMaxDiscountAmount, ProductQuantityInStock, ProductStatus FROM Product WHERE (ProductArticleNumber = @ProductArticleNumber)</CommandText>
  131. <Parameters>
  132. <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" />
  133. <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" />
  134. <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" />
  135. <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" />
  136. <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" />
  137. <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" />
  138. <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" />
  139. <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" />
  140. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@ProductMaxDiscountAmount" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="ProductMaxDiscountAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
  141. <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" />
  142. <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" />
  143. </Parameters>
  144. </DbCommand>
  145. </InsertCommand>
  146. <SelectCommand>
  147. <DbCommand CommandType="Text" ModifiedByUser="false">
  148. <CommandText>SELECT ProductArticleNumber, ProductName, ProductDescription, ProductCategory, ProductPhoto, ProductManufacturer, ProductCost, ProductDiscountAmount, ProductMaxDiscountAmount, ProductQuantityInStock, ProductStatus FROM dbo.Product</CommandText>
  149. <Parameters />
  150. </DbCommand>
  151. </SelectCommand>
  152. <UpdateCommand>
  153. <DbCommand CommandType="Text" ModifiedByUser="false">
  154. <CommandText>UPDATE [dbo].[Product] SET [ProductArticleNumber] = @ProductArticleNumber, [ProductName] = @ProductName, [ProductDescription] = @ProductDescription, [ProductCategory] = @ProductCategory, [ProductPhoto] = @ProductPhoto, [ProductManufacturer] = @ProductManufacturer, [ProductCost] = @ProductCost, [ProductDiscountAmount] = @ProductDiscountAmount, [ProductMaxDiscountAmount] = @ProductMaxDiscountAmount, [ProductQuantityInStock] = @ProductQuantityInStock, [ProductStatus] = @ProductStatus WHERE (([ProductArticleNumber] = @Original_ProductArticleNumber) AND ([ProductCost] = @Original_ProductCost) AND ((@IsNull_ProductDiscountAmount = 1 AND [ProductDiscountAmount] IS NULL) OR ([ProductDiscountAmount] = @Original_ProductDiscountAmount)) AND ((@IsNull_ProductMaxDiscountAmount = 1 AND [ProductMaxDiscountAmount] IS NULL) OR ([ProductMaxDiscountAmount] = @Original_ProductMaxDiscountAmount)) AND ([ProductQuantityInStock] = @Original_ProductQuantityInStock));
  155. SELECT ProductArticleNumber, ProductName, ProductDescription, ProductCategory, ProductPhoto, ProductManufacturer, ProductCost, ProductDiscountAmount, ProductMaxDiscountAmount, ProductQuantityInStock, ProductStatus FROM Product WHERE (ProductArticleNumber = @ProductArticleNumber)</CommandText>
  156. <Parameters>
  157. <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" />
  158. <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" />
  159. <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" />
  160. <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" />
  161. <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" />
  162. <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" />
  163. <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" />
  164. <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" />
  165. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@ProductMaxDiscountAmount" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="ProductMaxDiscountAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
  166. <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" />
  167. <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" />
  168. <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" />
  169. <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" />
  170. <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" />
  171. <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" />
  172. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductMaxDiscountAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductMaxDiscountAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
  173. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@Original_ProductMaxDiscountAmount" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="ProductMaxDiscountAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
  174. <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" />
  175. </Parameters>
  176. </DbCommand>
  177. </UpdateCommand>
  178. </DbSource>
  179. </MainSource>
  180. <Mappings>
  181. <Mapping SourceColumn="ProductArticleNumber" DataSetColumn="ProductArticleNumber" />
  182. <Mapping SourceColumn="ProductName" DataSetColumn="ProductName" />
  183. <Mapping SourceColumn="ProductDescription" DataSetColumn="ProductDescription" />
  184. <Mapping SourceColumn="ProductCategory" DataSetColumn="ProductCategory" />
  185. <Mapping SourceColumn="ProductPhoto" DataSetColumn="ProductPhoto" />
  186. <Mapping SourceColumn="ProductManufacturer" DataSetColumn="ProductManufacturer" />
  187. <Mapping SourceColumn="ProductCost" DataSetColumn="ProductCost" />
  188. <Mapping SourceColumn="ProductDiscountAmount" DataSetColumn="ProductDiscountAmount" />
  189. <Mapping SourceColumn="ProductMaxDiscountAmount" DataSetColumn="ProductMaxDiscountAmount" />
  190. <Mapping SourceColumn="ProductQuantityInStock" DataSetColumn="ProductQuantityInStock" />
  191. <Mapping SourceColumn="ProductStatus" DataSetColumn="ProductStatus" />
  192. </Mappings>
  193. <Sources />
  194. </TableAdapter>
  195. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="punkt_vydachyTableAdapter" GeneratorDataComponentClassName="punkt_vydachyTableAdapter" Name="punkt_vydachy" UserDataComponentName="punkt_vydachyTableAdapter">
  196. <MainSource>
  197. <DbSource ConnectionRef="Tradebase (Settings)" DbObjectName="[09Trade].dbo.punkt_vydachy" 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">
  198. <DeleteCommand>
  199. <DbCommand CommandType="Text" ModifiedByUser="false">
  200. <CommandText>DELETE FROM [dbo].[punkt_vydachy] WHERE (([id] = @Original_id) AND ([index] = @Original_index) AND ((@IsNull_dom = 1 AND [dom] IS NULL) OR ([dom] = @Original_dom)))</CommandText>
  201. <Parameters>
  202. <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" />
  203. <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" />
  204. <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" />
  205. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_dom" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="dom" SourceColumnNullMapping="false" SourceVersion="Original" />
  206. </Parameters>
  207. </DbCommand>
  208. </DeleteCommand>
  209. <InsertCommand>
  210. <DbCommand CommandType="Text" ModifiedByUser="false">
  211. <CommandText>INSERT INTO [dbo].[punkt_vydachy] ([index], [gorod], [ulica], [dom]) VALUES (@index, @gorod, @ulica, @dom);
  212. SELECT id, [index], gorod, ulica, dom FROM punkt_vydachy WHERE (id = SCOPE_IDENTITY())</CommandText>
  213. <Parameters>
  214. <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" />
  215. <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" />
  216. <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" />
  217. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@dom" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="dom" SourceColumnNullMapping="false" SourceVersion="Current" />
  218. </Parameters>
  219. </DbCommand>
  220. </InsertCommand>
  221. <SelectCommand>
  222. <DbCommand CommandType="Text" ModifiedByUser="false">
  223. <CommandText>SELECT id, [index], gorod, ulica, dom FROM dbo.punkt_vydachy</CommandText>
  224. <Parameters />
  225. </DbCommand>
  226. </SelectCommand>
  227. <UpdateCommand>
  228. <DbCommand CommandType="Text" ModifiedByUser="false">
  229. <CommandText>UPDATE [dbo].[punkt_vydachy] SET [index] = @index, [gorod] = @gorod, [ulica] = @ulica, [dom] = @dom WHERE (([id] = @Original_id) AND ([index] = @Original_index) AND ((@IsNull_dom = 1 AND [dom] IS NULL) OR ([dom] = @Original_dom)));
  230. SELECT id, [index], gorod, ulica, dom FROM punkt_vydachy WHERE (id = @id)</CommandText>
  231. <Parameters>
  232. <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" />
  233. <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" />
  234. <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" />
  235. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@dom" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="dom" SourceColumnNullMapping="false" SourceVersion="Current" />
  236. <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" />
  237. <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" />
  238. <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" />
  239. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_dom" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="dom" SourceColumnNullMapping="false" SourceVersion="Original" />
  240. <Parameter AllowDbNull="false" AutogeneratedName="id" ColumnName="id" DataSourceName="[09Trade].dbo.punkt_vydachy" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Current" />
  241. </Parameters>
  242. </DbCommand>
  243. </UpdateCommand>
  244. </DbSource>
  245. </MainSource>
  246. <Mappings>
  247. <Mapping SourceColumn="id" DataSetColumn="id" />
  248. <Mapping SourceColumn="index" DataSetColumn="index" />
  249. <Mapping SourceColumn="gorod" DataSetColumn="gorod" />
  250. <Mapping SourceColumn="ulica" DataSetColumn="ulica" />
  251. <Mapping SourceColumn="dom" DataSetColumn="dom" />
  252. </Mappings>
  253. <Sources />
  254. </TableAdapter>
  255. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="RoleTableAdapter" GeneratorDataComponentClassName="RoleTableAdapter" Name="Role" UserDataComponentName="RoleTableAdapter">
  256. <MainSource>
  257. <DbSource ConnectionRef="Tradebase (Settings)" DbObjectName="[09Trade].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">
  258. <DeleteCommand>
  259. <DbCommand CommandType="Text" ModifiedByUser="false">
  260. <CommandText>DELETE FROM [dbo].[Role] WHERE (([RoleID] = @Original_RoleID) AND ([RoleName] = @Original_RoleName))</CommandText>
  261. <Parameters>
  262. <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" />
  263. <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" />
  264. </Parameters>
  265. </DbCommand>
  266. </DeleteCommand>
  267. <InsertCommand>
  268. <DbCommand CommandType="Text" ModifiedByUser="false">
  269. <CommandText>INSERT INTO [dbo].[Role] ([RoleName]) VALUES (@RoleName);
  270. SELECT RoleID, RoleName FROM Role WHERE (RoleID = SCOPE_IDENTITY())</CommandText>
  271. <Parameters>
  272. <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" />
  273. </Parameters>
  274. </DbCommand>
  275. </InsertCommand>
  276. <SelectCommand>
  277. <DbCommand CommandType="Text" ModifiedByUser="false">
  278. <CommandText>SELECT RoleID, RoleName FROM dbo.Role</CommandText>
  279. <Parameters />
  280. </DbCommand>
  281. </SelectCommand>
  282. <UpdateCommand>
  283. <DbCommand CommandType="Text" ModifiedByUser="false">
  284. <CommandText>UPDATE [dbo].[Role] SET [RoleName] = @RoleName WHERE (([RoleID] = @Original_RoleID) AND ([RoleName] = @Original_RoleName));
  285. SELECT RoleID, RoleName FROM Role WHERE (RoleID = @RoleID)</CommandText>
  286. <Parameters>
  287. <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" />
  288. <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" />
  289. <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" />
  290. <Parameter AllowDbNull="false" AutogeneratedName="RoleID" ColumnName="RoleID" DataSourceName="[09Trade].dbo.Role" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@RoleID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="RoleID" SourceColumnNullMapping="false" SourceVersion="Current" />
  291. </Parameters>
  292. </DbCommand>
  293. </UpdateCommand>
  294. </DbSource>
  295. </MainSource>
  296. <Mappings>
  297. <Mapping SourceColumn="RoleID" DataSetColumn="RoleID" />
  298. <Mapping SourceColumn="RoleName" DataSetColumn="RoleName" />
  299. </Mappings>
  300. <Sources />
  301. </TableAdapter>
  302. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="UserTableAdapter" GeneratorDataComponentClassName="UserTableAdapter" Name="User" UserDataComponentName="UserTableAdapter">
  303. <MainSource>
  304. <DbSource ConnectionRef="Tradebase (Settings)" DbObjectName="[09Trade].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">
  305. <DeleteCommand>
  306. <DbCommand CommandType="Text" ModifiedByUser="false">
  307. <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>
  308. <Parameters>
  309. <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" />
  310. <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" />
  311. <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" />
  312. <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" />
  313. <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" />
  314. </Parameters>
  315. </DbCommand>
  316. </DeleteCommand>
  317. <InsertCommand>
  318. <DbCommand CommandType="Text" ModifiedByUser="false">
  319. <CommandText>INSERT INTO [dbo].[User] ([UserSurname], [UserName], [UserPatronymic], [UserLogin], [UserPassword], [UserRole]) VALUES (@UserSurname, @UserName, @UserPatronymic, @UserLogin, @UserPassword, @UserRole);
  320. SELECT UserID, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, UserRole FROM [User] WHERE (UserID = SCOPE_IDENTITY())</CommandText>
  321. <Parameters>
  322. <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" />
  323. <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" />
  324. <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" />
  325. <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" />
  326. <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" />
  327. <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" />
  328. </Parameters>
  329. </DbCommand>
  330. </InsertCommand>
  331. <SelectCommand>
  332. <DbCommand CommandType="Text" ModifiedByUser="false">
  333. <CommandText>SELECT UserID, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, UserRole FROM dbo.[User]</CommandText>
  334. <Parameters />
  335. </DbCommand>
  336. </SelectCommand>
  337. <UpdateCommand>
  338. <DbCommand CommandType="Text" ModifiedByUser="false">
  339. <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));
  340. SELECT UserID, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, UserRole FROM [User] WHERE (UserID = @UserID)</CommandText>
  341. <Parameters>
  342. <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" />
  343. <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" />
  344. <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" />
  345. <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" />
  346. <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" />
  347. <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" />
  348. <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" />
  349. <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" />
  350. <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" />
  351. <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" />
  352. <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" />
  353. <Parameter AllowDbNull="false" AutogeneratedName="UserID" ColumnName="UserID" DataSourceName="[09Trade].dbo.[User]" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@UserID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Current" />
  354. </Parameters>
  355. </DbCommand>
  356. </UpdateCommand>
  357. </DbSource>
  358. </MainSource>
  359. <Mappings>
  360. <Mapping SourceColumn="UserID" DataSetColumn="UserID" />
  361. <Mapping SourceColumn="UserSurname" DataSetColumn="UserSurname" />
  362. <Mapping SourceColumn="UserName" DataSetColumn="UserName" />
  363. <Mapping SourceColumn="UserPatronymic" DataSetColumn="UserPatronymic" />
  364. <Mapping SourceColumn="UserLogin" DataSetColumn="UserLogin" />
  365. <Mapping SourceColumn="UserPassword" DataSetColumn="UserPassword" />
  366. <Mapping SourceColumn="UserRole" DataSetColumn="UserRole" />
  367. </Mappings>
  368. <Sources />
  369. </TableAdapter>
  370. </Tables>
  371. <Sources />
  372. </DataSource>
  373. </xs:appinfo>
  374. </xs:annotation>
  375. <xs:element name="TradebaseDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="TradebaseDataSet" msprop:Generator_UserDSName="TradebaseDataSet">
  376. <xs:complexType>
  377. <xs:choice minOccurs="0" maxOccurs="unbounded">
  378. <xs:element name="Order" msprop:Generator_TableClassName="OrderDataTable" msprop:Generator_TableVarName="tableOrder" msprop:Generator_TablePropName="Order" msprop:Generator_RowDeletingName="OrderRowDeleting" msprop:Generator_RowChangingName="OrderRowChanging" msprop:Generator_RowEvHandlerName="OrderRowChangeEventHandler" msprop:Generator_RowDeletedName="OrderRowDeleted" msprop:Generator_UserTableName="Order" msprop:Generator_RowChangedName="OrderRowChanged" msprop:Generator_RowEvArgName="OrderRowChangeEvent" msprop:Generator_RowClassName="OrderRow">
  379. <xs:complexType>
  380. <xs:sequence>
  381. <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" />
  382. <xs:element name="OrderStatus" msprop:Generator_ColumnVarNameInTable="columnOrderStatus" msprop:Generator_ColumnPropNameInRow="OrderStatus" msprop:Generator_ColumnPropNameInTable="OrderStatusColumn" msprop:Generator_UserColumnName="OrderStatus">
  383. <xs:simpleType>
  384. <xs:restriction base="xs:string">
  385. <xs:maxLength value="2147483647" />
  386. </xs:restriction>
  387. </xs:simpleType>
  388. </xs:element>
  389. <xs:element name="OrderDeliveryDate" msprop:Generator_ColumnVarNameInTable="columnOrderDeliveryDate" msprop:Generator_ColumnPropNameInRow="OrderDeliveryDate" msprop:Generator_ColumnPropNameInTable="OrderDeliveryDateColumn" msprop:Generator_UserColumnName="OrderDeliveryDate" type="xs:dateTime" />
  390. <xs:element name="OrderPickupPoint" msprop:Generator_ColumnVarNameInTable="columnOrderPickupPoint" msprop:Generator_ColumnPropNameInRow="OrderPickupPoint" msprop:Generator_ColumnPropNameInTable="OrderPickupPointColumn" msprop:Generator_UserColumnName="OrderPickupPoint" type="xs:int" />
  391. <xs:element name="OrderDate" msprop:Generator_ColumnVarNameInTable="columnOrderDate" msprop:Generator_ColumnPropNameInRow="OrderDate" msprop:Generator_ColumnPropNameInTable="OrderDateColumn" msprop:Generator_UserColumnName="OrderDate" type="xs:dateTime" minOccurs="0" />
  392. <xs:element name="FIOKlient" msprop:Generator_ColumnVarNameInTable="columnFIOKlient" msprop:Generator_ColumnPropNameInRow="FIOKlient" msprop:Generator_ColumnPropNameInTable="FIOKlientColumn" msprop:Generator_UserColumnName="FIOKlient" minOccurs="0">
  393. <xs:simpleType>
  394. <xs:restriction base="xs:string">
  395. <xs:maxLength value="2147483647" />
  396. </xs:restriction>
  397. </xs:simpleType>
  398. </xs:element>
  399. <xs:element name="KodPoluch" msprop:Generator_ColumnVarNameInTable="columnKodPoluch" msprop:Generator_ColumnPropNameInRow="KodPoluch" msprop:Generator_ColumnPropNameInTable="KodPoluchColumn" msprop:Generator_UserColumnName="KodPoluch" type="xs:int" minOccurs="0" />
  400. </xs:sequence>
  401. </xs:complexType>
  402. </xs:element>
  403. <xs:element name="OrderProduct" msprop:Generator_TableClassName="OrderProductDataTable" msprop:Generator_TableVarName="tableOrderProduct" msprop:Generator_TablePropName="OrderProduct" msprop:Generator_RowDeletingName="OrderProductRowDeleting" msprop:Generator_RowChangingName="OrderProductRowChanging" msprop:Generator_RowEvHandlerName="OrderProductRowChangeEventHandler" msprop:Generator_RowDeletedName="OrderProductRowDeleted" msprop:Generator_UserTableName="OrderProduct" msprop:Generator_RowChangedName="OrderProductRowChanged" msprop:Generator_RowEvArgName="OrderProductRowChangeEvent" msprop:Generator_RowClassName="OrderProductRow">
  404. <xs:complexType>
  405. <xs:sequence>
  406. <xs:element name="OrderID" msprop:Generator_ColumnVarNameInTable="columnOrderID" msprop:Generator_ColumnPropNameInRow="OrderID" msprop:Generator_ColumnPropNameInTable="OrderIDColumn" msprop:Generator_UserColumnName="OrderID" type="xs:int" />
  407. <xs:element name="ProductArticleNumber" msprop:Generator_ColumnVarNameInTable="columnProductArticleNumber" msprop:Generator_ColumnPropNameInRow="ProductArticleNumber" msprop:Generator_ColumnPropNameInTable="ProductArticleNumberColumn" msprop:Generator_UserColumnName="ProductArticleNumber">
  408. <xs:simpleType>
  409. <xs:restriction base="xs:string">
  410. <xs:maxLength value="100" />
  411. </xs:restriction>
  412. </xs:simpleType>
  413. </xs:element>
  414. <xs:element name="KolTovar" msprop:Generator_ColumnVarNameInTable="columnKolTovar" msprop:Generator_ColumnPropNameInRow="KolTovar" msprop:Generator_ColumnPropNameInTable="KolTovarColumn" msprop:Generator_UserColumnName="KolTovar" type="xs:int" minOccurs="0" />
  415. </xs:sequence>
  416. </xs:complexType>
  417. </xs:element>
  418. <xs:element name="Product" msprop:Generator_TableClassName="ProductDataTable" msprop:Generator_TableVarName="tableProduct" msprop:Generator_TablePropName="Product" msprop:Generator_RowDeletingName="ProductRowDeleting" msprop:Generator_RowChangingName="ProductRowChanging" msprop:Generator_RowEvHandlerName="ProductRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductRowDeleted" msprop:Generator_UserTableName="Product" msprop:Generator_RowChangedName="ProductRowChanged" msprop:Generator_RowEvArgName="ProductRowChangeEvent" msprop:Generator_RowClassName="ProductRow">
  419. <xs:complexType>
  420. <xs:sequence>
  421. <xs:element name="ProductArticleNumber" msprop:Generator_ColumnVarNameInTable="columnProductArticleNumber" msprop:Generator_ColumnPropNameInRow="ProductArticleNumber" msprop:Generator_ColumnPropNameInTable="ProductArticleNumberColumn" msprop:Generator_UserColumnName="ProductArticleNumber">
  422. <xs:simpleType>
  423. <xs:restriction base="xs:string">
  424. <xs:maxLength value="100" />
  425. </xs:restriction>
  426. </xs:simpleType>
  427. </xs:element>
  428. <xs:element name="ProductName" msprop:Generator_ColumnVarNameInTable="columnProductName" msprop:Generator_ColumnPropNameInRow="ProductName" msprop:Generator_ColumnPropNameInTable="ProductNameColumn" msprop:Generator_UserColumnName="ProductName">
  429. <xs:simpleType>
  430. <xs:restriction base="xs:string">
  431. <xs:maxLength value="2147483647" />
  432. </xs:restriction>
  433. </xs:simpleType>
  434. </xs:element>
  435. <xs:element name="ProductDescription" msprop:Generator_ColumnVarNameInTable="columnProductDescription" msprop:Generator_ColumnPropNameInRow="ProductDescription" msprop:Generator_ColumnPropNameInTable="ProductDescriptionColumn" msprop:Generator_UserColumnName="ProductDescription">
  436. <xs:simpleType>
  437. <xs:restriction base="xs:string">
  438. <xs:maxLength value="2147483647" />
  439. </xs:restriction>
  440. </xs:simpleType>
  441. </xs:element>
  442. <xs:element name="ProductCategory" msprop:Generator_ColumnVarNameInTable="columnProductCategory" msprop:Generator_ColumnPropNameInRow="ProductCategory" msprop:Generator_ColumnPropNameInTable="ProductCategoryColumn" msprop:Generator_UserColumnName="ProductCategory">
  443. <xs:simpleType>
  444. <xs:restriction base="xs:string">
  445. <xs:maxLength value="2147483647" />
  446. </xs:restriction>
  447. </xs:simpleType>
  448. </xs:element>
  449. <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" />
  450. <xs:element name="ProductManufacturer" msprop:Generator_ColumnVarNameInTable="columnProductManufacturer" msprop:Generator_ColumnPropNameInRow="ProductManufacturer" msprop:Generator_ColumnPropNameInTable="ProductManufacturerColumn" msprop:Generator_UserColumnName="ProductManufacturer">
  451. <xs:simpleType>
  452. <xs:restriction base="xs:string">
  453. <xs:maxLength value="2147483647" />
  454. </xs:restriction>
  455. </xs:simpleType>
  456. </xs:element>
  457. <xs:element name="ProductCost" msprop:Generator_ColumnVarNameInTable="columnProductCost" msprop:Generator_ColumnPropNameInRow="ProductCost" msprop:Generator_ColumnPropNameInTable="ProductCostColumn" msprop:Generator_UserColumnName="ProductCost" type="xs:decimal" />
  458. <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" />
  459. <xs:element name="ProductMaxDiscountAmount" msprop:Generator_ColumnVarNameInTable="columnProductMaxDiscountAmount" msprop:Generator_ColumnPropNameInRow="ProductMaxDiscountAmount" msprop:Generator_ColumnPropNameInTable="ProductMaxDiscountAmountColumn" msprop:Generator_UserColumnName="ProductMaxDiscountAmount" type="xs:unsignedByte" minOccurs="0" />
  460. <xs:element name="ProductQuantityInStock" msprop:Generator_ColumnVarNameInTable="columnProductQuantityInStock" msprop:Generator_ColumnPropNameInRow="ProductQuantityInStock" msprop:Generator_ColumnPropNameInTable="ProductQuantityInStockColumn" msprop:Generator_UserColumnName="ProductQuantityInStock" type="xs:int" />
  461. <xs:element name="ProductStatus" msprop:Generator_ColumnVarNameInTable="columnProductStatus" msprop:Generator_ColumnPropNameInRow="ProductStatus" msprop:Generator_ColumnPropNameInTable="ProductStatusColumn" msprop:Generator_UserColumnName="ProductStatus" minOccurs="0">
  462. <xs:simpleType>
  463. <xs:restriction base="xs:string">
  464. <xs:maxLength value="2147483647" />
  465. </xs:restriction>
  466. </xs:simpleType>
  467. </xs:element>
  468. </xs:sequence>
  469. </xs:complexType>
  470. </xs:element>
  471. <xs:element name="punkt_vydachy" msprop:Generator_TableClassName="punkt_vydachyDataTable" msprop:Generator_TableVarName="tablepunkt_vydachy" msprop:Generator_TablePropName="punkt_vydachy" msprop:Generator_RowDeletingName="punkt_vydachyRowDeleting" msprop:Generator_RowChangingName="punkt_vydachyRowChanging" msprop:Generator_RowEvHandlerName="punkt_vydachyRowChangeEventHandler" msprop:Generator_RowDeletedName="punkt_vydachyRowDeleted" msprop:Generator_UserTableName="punkt_vydachy" msprop:Generator_RowChangedName="punkt_vydachyRowChanged" msprop:Generator_RowEvArgName="punkt_vydachyRowChangeEvent" msprop:Generator_RowClassName="punkt_vydachyRow">
  472. <xs:complexType>
  473. <xs:sequence>
  474. <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" />
  475. <xs:element name="index" msprop:Generator_ColumnVarNameInTable="columnindex" msprop:Generator_ColumnPropNameInRow="index" msprop:Generator_ColumnPropNameInTable="indexColumn" msprop:Generator_UserColumnName="index" type="xs:int" />
  476. <xs:element name="gorod" msprop:Generator_ColumnVarNameInTable="columngorod" msprop:Generator_ColumnPropNameInRow="gorod" msprop:Generator_ColumnPropNameInTable="gorodColumn" msprop:Generator_UserColumnName="gorod">
  477. <xs:simpleType>
  478. <xs:restriction base="xs:string">
  479. <xs:maxLength value="2147483647" />
  480. </xs:restriction>
  481. </xs:simpleType>
  482. </xs:element>
  483. <xs:element name="ulica" msprop:Generator_ColumnVarNameInTable="columnulica" msprop:Generator_ColumnPropNameInRow="ulica" msprop:Generator_ColumnPropNameInTable="ulicaColumn" msprop:Generator_UserColumnName="ulica">
  484. <xs:simpleType>
  485. <xs:restriction base="xs:string">
  486. <xs:maxLength value="2147483647" />
  487. </xs:restriction>
  488. </xs:simpleType>
  489. </xs:element>
  490. <xs:element name="dom" msprop:Generator_ColumnVarNameInTable="columndom" msprop:Generator_ColumnPropNameInRow="dom" msprop:Generator_ColumnPropNameInTable="domColumn" msprop:Generator_UserColumnName="dom" minOccurs="0">
  491. <xs:simpleType>
  492. <xs:restriction base="xs:string">
  493. <xs:maxLength value="50" />
  494. </xs:restriction>
  495. </xs:simpleType>
  496. </xs:element>
  497. </xs:sequence>
  498. </xs:complexType>
  499. </xs:element>
  500. <xs:element name="Role" msprop:Generator_TableClassName="RoleDataTable" msprop:Generator_TableVarName="tableRole" msprop:Generator_TablePropName="Role" msprop:Generator_RowDeletingName="RoleRowDeleting" msprop:Generator_RowChangingName="RoleRowChanging" msprop:Generator_RowEvHandlerName="RoleRowChangeEventHandler" msprop:Generator_RowDeletedName="RoleRowDeleted" msprop:Generator_UserTableName="Role" msprop:Generator_RowChangedName="RoleRowChanged" msprop:Generator_RowEvArgName="RoleRowChangeEvent" msprop:Generator_RowClassName="RoleRow">
  501. <xs:complexType>
  502. <xs:sequence>
  503. <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" />
  504. <xs:element name="RoleName" msprop:Generator_ColumnVarNameInTable="columnRoleName" msprop:Generator_ColumnPropNameInRow="RoleName" msprop:Generator_ColumnPropNameInTable="RoleNameColumn" msprop:Generator_UserColumnName="RoleName">
  505. <xs:simpleType>
  506. <xs:restriction base="xs:string">
  507. <xs:maxLength value="100" />
  508. </xs:restriction>
  509. </xs:simpleType>
  510. </xs:element>
  511. </xs:sequence>
  512. </xs:complexType>
  513. </xs:element>
  514. <xs:element name="User" msprop:Generator_TableClassName="UserDataTable" msprop:Generator_TableVarName="tableUser" msprop:Generator_TablePropName="User" msprop:Generator_RowDeletingName="UserRowDeleting" msprop:Generator_RowChangingName="UserRowChanging" msprop:Generator_RowEvHandlerName="UserRowChangeEventHandler" msprop:Generator_RowDeletedName="UserRowDeleted" msprop:Generator_UserTableName="User" msprop:Generator_RowChangedName="UserRowChanged" msprop:Generator_RowEvArgName="UserRowChangeEvent" msprop:Generator_RowClassName="UserRow">
  515. <xs:complexType>
  516. <xs:sequence>
  517. <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" />
  518. <xs:element name="UserSurname" msprop:Generator_ColumnVarNameInTable="columnUserSurname" msprop:Generator_ColumnPropNameInRow="UserSurname" msprop:Generator_ColumnPropNameInTable="UserSurnameColumn" msprop:Generator_UserColumnName="UserSurname">
  519. <xs:simpleType>
  520. <xs:restriction base="xs:string">
  521. <xs:maxLength value="100" />
  522. </xs:restriction>
  523. </xs:simpleType>
  524. </xs:element>
  525. <xs:element name="UserName" msprop:Generator_ColumnVarNameInTable="columnUserName" msprop:Generator_ColumnPropNameInRow="UserName" msprop:Generator_ColumnPropNameInTable="UserNameColumn" msprop:Generator_UserColumnName="UserName">
  526. <xs:simpleType>
  527. <xs:restriction base="xs:string">
  528. <xs:maxLength value="100" />
  529. </xs:restriction>
  530. </xs:simpleType>
  531. </xs:element>
  532. <xs:element name="UserPatronymic" msprop:Generator_ColumnVarNameInTable="columnUserPatronymic" msprop:Generator_ColumnPropNameInRow="UserPatronymic" msprop:Generator_ColumnPropNameInTable="UserPatronymicColumn" msprop:Generator_UserColumnName="UserPatronymic">
  533. <xs:simpleType>
  534. <xs:restriction base="xs:string">
  535. <xs:maxLength value="100" />
  536. </xs:restriction>
  537. </xs:simpleType>
  538. </xs:element>
  539. <xs:element name="UserLogin" msprop:Generator_ColumnVarNameInTable="columnUserLogin" msprop:Generator_ColumnPropNameInRow="UserLogin" msprop:Generator_ColumnPropNameInTable="UserLoginColumn" msprop:Generator_UserColumnName="UserLogin">
  540. <xs:simpleType>
  541. <xs:restriction base="xs:string">
  542. <xs:maxLength value="2147483647" />
  543. </xs:restriction>
  544. </xs:simpleType>
  545. </xs:element>
  546. <xs:element name="UserPassword" msprop:Generator_ColumnVarNameInTable="columnUserPassword" msprop:Generator_ColumnPropNameInRow="UserPassword" msprop:Generator_ColumnPropNameInTable="UserPasswordColumn" msprop:Generator_UserColumnName="UserPassword">
  547. <xs:simpleType>
  548. <xs:restriction base="xs:string">
  549. <xs:maxLength value="2147483647" />
  550. </xs:restriction>
  551. </xs:simpleType>
  552. </xs:element>
  553. <xs:element name="UserRole" msprop:Generator_ColumnVarNameInTable="columnUserRole" msprop:Generator_ColumnPropNameInRow="UserRole" msprop:Generator_ColumnPropNameInTable="UserRoleColumn" msprop:Generator_UserColumnName="UserRole" type="xs:int" />
  554. </xs:sequence>
  555. </xs:complexType>
  556. </xs:element>
  557. </xs:choice>
  558. </xs:complexType>
  559. <xs:unique name="Constraint1" msdata:PrimaryKey="true">
  560. <xs:selector xpath=".//mstns:Order" />
  561. <xs:field xpath="mstns:OrderID" />
  562. </xs:unique>
  563. <xs:unique name="Product_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  564. <xs:selector xpath=".//mstns:Product" />
  565. <xs:field xpath="mstns:ProductArticleNumber" />
  566. </xs:unique>
  567. <xs:unique name="punkt_vydachy_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  568. <xs:selector xpath=".//mstns:punkt_vydachy" />
  569. <xs:field xpath="mstns:id" />
  570. </xs:unique>
  571. <xs:unique name="Role_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  572. <xs:selector xpath=".//mstns:Role" />
  573. <xs:field xpath="mstns:RoleID" />
  574. </xs:unique>
  575. <xs:unique name="User_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  576. <xs:selector xpath=".//mstns:User" />
  577. <xs:field xpath="mstns:UserID" />
  578. </xs:unique>
  579. </xs:element>
  580. <xs:annotation>
  581. <xs:appinfo>
  582. <msdata:Relationship name="FK_Order_punkt_vydachy" msdata:parent="punkt_vydachy" msdata:child="Order" msdata:parentkey="id" msdata:childkey="OrderPickupPoint" msprop:Generator_UserChildTable="Order" msprop:Generator_ChildPropName="GetOrderRows" msprop:Generator_UserRelationName="FK_Order_punkt_vydachy" msprop:Generator_RelationVarName="relationFK_Order_punkt_vydachy" msprop:Generator_UserParentTable="punkt_vydachy" msprop:Generator_ParentPropName="punkt_vydachyRow" />
  583. <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_ParentPropName="RoleRow" msprop:Generator_RelationVarName="relationFK__User__UserRole__25869641" msprop:Generator_UserParentTable="Role" />
  584. </xs:appinfo>
  585. </xs:annotation>
  586. </xs:schema>