pracFabricaDataSet.xsd 103 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="pracFabricaDataSet" targetNamespace="http://tempuri.org/pracFabricaDataSet.xsd" xmlns:mstns="http://tempuri.org/pracFabricaDataSet.xsd" xmlns="http://tempuri.org/pracFabricaDataSet.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="pracFabricaConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="pracFabricaConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.СУБД_Швейная_фабрика.Properties.Settings.GlobalReference.Default.pracFabricaConnectionString" Provider="System.Data.SqlClient" />
  8. </Connections>
  9. <Tables>
  10. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ColorTableAdapter" GeneratorDataComponentClassName="ColorTableAdapter" Name="Color" UserDataComponentName="ColorTableAdapter">
  11. <MainSource>
  12. <DbSource ConnectionRef="pracFabricaConnectionString (Settings)" DbObjectName="pracFabrica.dbo.Color" 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].[Color] WHERE (([id_colors] = @Original_id_colors) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)))</CommandText>
  16. <Parameters>
  17. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_colors" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_colors" SourceColumnNullMapping="false" SourceVersion="Original" />
  18. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Title" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="true" SourceVersion="Original" />
  19. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  20. </Parameters>
  21. </DbCommand>
  22. </DeleteCommand>
  23. <InsertCommand>
  24. <DbCommand CommandType="Text" ModifiedByUser="false">
  25. <CommandText>INSERT INTO [dbo].[Color] ([Title]) VALUES (@Title);
  26. SELECT id_colors, Title FROM Color WHERE (id_colors = SCOPE_IDENTITY())</CommandText>
  27. <Parameters>
  28. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  29. </Parameters>
  30. </DbCommand>
  31. </InsertCommand>
  32. <SelectCommand>
  33. <DbCommand CommandType="Text" ModifiedByUser="false">
  34. <CommandText>SELECT id_colors, Title FROM dbo.Color</CommandText>
  35. <Parameters />
  36. </DbCommand>
  37. </SelectCommand>
  38. <UpdateCommand>
  39. <DbCommand CommandType="Text" ModifiedByUser="false">
  40. <CommandText>UPDATE [dbo].[Color] SET [Title] = @Title WHERE (([id_colors] = @Original_id_colors) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)));
  41. SELECT id_colors, Title FROM Color WHERE (id_colors = @id_colors)</CommandText>
  42. <Parameters>
  43. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  44. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_colors" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_colors" SourceColumnNullMapping="false" SourceVersion="Original" />
  45. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Title" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="true" SourceVersion="Original" />
  46. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  47. <Parameter AllowDbNull="false" AutogeneratedName="id_colors" ColumnName="id_colors" DataSourceName="pracFabrica.dbo.Color" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id_colors" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="id_colors" SourceColumnNullMapping="false" SourceVersion="Current" />
  48. </Parameters>
  49. </DbCommand>
  50. </UpdateCommand>
  51. </DbSource>
  52. </MainSource>
  53. <Mappings>
  54. <Mapping SourceColumn="id_colors" DataSetColumn="id_colors" />
  55. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  56. </Mappings>
  57. <Sources />
  58. </TableAdapter>
  59. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="FurnituraTableAdapter" GeneratorDataComponentClassName="FurnituraTableAdapter" Name="Furnitura" UserDataComponentName="FurnituraTableAdapter">
  60. <MainSource>
  61. <DbSource ConnectionRef="pracFabricaConnectionString (Settings)" DbObjectName="pracFabrica.dbo.Furnitura" 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">
  62. <DeleteCommand>
  63. <DbCommand CommandType="Text" ModifiedByUser="false">
  64. <CommandText>DELETE FROM [dbo].[Furnitura] WHERE (([id_fur] = @Original_id_fur) AND ((@IsNull_namefur = 1 AND [namefur] IS NULL) OR ([namefur] = @Original_namefur)) AND ((@IsNull_photo = 1 AND [photo] IS NULL) OR ([photo] = @Original_photo)) AND ((@IsNull_countfur = 1 AND [countfur] IS NULL) OR ([countfur] = @Original_countfur)))</CommandText>
  65. <Parameters>
  66. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_fur" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_fur" SourceColumnNullMapping="false" SourceVersion="Original" />
  67. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_namefur" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="namefur" SourceColumnNullMapping="true" SourceVersion="Original" />
  68. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_namefur" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="namefur" SourceColumnNullMapping="false" SourceVersion="Original" />
  69. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_photo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="photo" SourceColumnNullMapping="true" SourceVersion="Original" />
  70. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_photo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="photo" SourceColumnNullMapping="false" SourceVersion="Original" />
  71. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_countfur" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="countfur" SourceColumnNullMapping="true" SourceVersion="Original" />
  72. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_countfur" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="countfur" SourceColumnNullMapping="false" SourceVersion="Original" />
  73. </Parameters>
  74. </DbCommand>
  75. </DeleteCommand>
  76. <InsertCommand>
  77. <DbCommand CommandType="Text" ModifiedByUser="false">
  78. <CommandText>INSERT INTO [dbo].[Furnitura] ([namefur], [photo], [countfur]) VALUES (@namefur, @photo, @countfur);
  79. SELECT id_fur, namefur, photo, countfur FROM Furnitura WHERE (id_fur = SCOPE_IDENTITY())</CommandText>
  80. <Parameters>
  81. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@namefur" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="namefur" SourceColumnNullMapping="false" SourceVersion="Current" />
  82. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@photo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="photo" SourceColumnNullMapping="false" SourceVersion="Current" />
  83. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@countfur" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="countfur" SourceColumnNullMapping="false" SourceVersion="Current" />
  84. </Parameters>
  85. </DbCommand>
  86. </InsertCommand>
  87. <SelectCommand>
  88. <DbCommand CommandType="Text" ModifiedByUser="false">
  89. <CommandText>SELECT id_fur, namefur, photo, countfur FROM dbo.Furnitura</CommandText>
  90. <Parameters />
  91. </DbCommand>
  92. </SelectCommand>
  93. <UpdateCommand>
  94. <DbCommand CommandType="Text" ModifiedByUser="false">
  95. <CommandText>UPDATE [dbo].[Furnitura] SET [namefur] = @namefur, [photo] = @photo, [countfur] = @countfur WHERE (([id_fur] = @Original_id_fur) AND ((@IsNull_namefur = 1 AND [namefur] IS NULL) OR ([namefur] = @Original_namefur)) AND ((@IsNull_photo = 1 AND [photo] IS NULL) OR ([photo] = @Original_photo)) AND ((@IsNull_countfur = 1 AND [countfur] IS NULL) OR ([countfur] = @Original_countfur)));
  96. SELECT id_fur, namefur, photo, countfur FROM Furnitura WHERE (id_fur = @id_fur)</CommandText>
  97. <Parameters>
  98. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@namefur" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="namefur" SourceColumnNullMapping="false" SourceVersion="Current" />
  99. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@photo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="photo" SourceColumnNullMapping="false" SourceVersion="Current" />
  100. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@countfur" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="countfur" SourceColumnNullMapping="false" SourceVersion="Current" />
  101. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_fur" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_fur" SourceColumnNullMapping="false" SourceVersion="Original" />
  102. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_namefur" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="namefur" SourceColumnNullMapping="true" SourceVersion="Original" />
  103. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_namefur" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="namefur" SourceColumnNullMapping="false" SourceVersion="Original" />
  104. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_photo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="photo" SourceColumnNullMapping="true" SourceVersion="Original" />
  105. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_photo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="photo" SourceColumnNullMapping="false" SourceVersion="Original" />
  106. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_countfur" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="countfur" SourceColumnNullMapping="true" SourceVersion="Original" />
  107. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_countfur" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="countfur" SourceColumnNullMapping="false" SourceVersion="Original" />
  108. <Parameter AllowDbNull="false" AutogeneratedName="id_fur" ColumnName="id_fur" DataSourceName="pracFabrica.dbo.Furnitura" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id_fur" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="id_fur" SourceColumnNullMapping="false" SourceVersion="Current" />
  109. </Parameters>
  110. </DbCommand>
  111. </UpdateCommand>
  112. </DbSource>
  113. </MainSource>
  114. <Mappings>
  115. <Mapping SourceColumn="id_fur" DataSetColumn="id_fur" />
  116. <Mapping SourceColumn="namefur" DataSetColumn="namefur" />
  117. <Mapping SourceColumn="photo" DataSetColumn="photo" />
  118. <Mapping SourceColumn="countfur" DataSetColumn="countfur" />
  119. </Mappings>
  120. <Sources />
  121. </TableAdapter>
  122. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="IzdelieTableAdapter" GeneratorDataComponentClassName="IzdelieTableAdapter" Name="Izdelie" UserDataComponentName="IzdelieTableAdapter">
  123. <MainSource>
  124. <DbSource ConnectionRef="pracFabricaConnectionString (Settings)" DbObjectName="pracFabrica.dbo.Izdelie" 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">
  125. <DeleteCommand>
  126. <DbCommand CommandType="Text" ModifiedByUser="false">
  127. <CommandText>DELETE FROM [dbo].[Izdelie] WHERE (([id_izd] = @Original_id_izd) AND ((@IsNull_name_izd = 1 AND [name_izd] IS NULL) OR ([name_izd] = @Original_name_izd)) AND ((@IsNull_length = 1 AND [length] IS NULL) OR ([length] = @Original_length)) AND ((@IsNull_width = 1 AND [width] IS NULL) OR ([width] = @Original_width)))</CommandText>
  128. <Parameters>
  129. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_izd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_izd" SourceColumnNullMapping="false" SourceVersion="Original" />
  130. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_name_izd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="name_izd" SourceColumnNullMapping="true" SourceVersion="Original" />
  131. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_name_izd" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="name_izd" SourceColumnNullMapping="false" SourceVersion="Original" />
  132. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_length" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="length" SourceColumnNullMapping="true" SourceVersion="Original" />
  133. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_length" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="length" SourceColumnNullMapping="false" SourceVersion="Original" />
  134. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_width" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="width" SourceColumnNullMapping="true" SourceVersion="Original" />
  135. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_width" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="width" SourceColumnNullMapping="false" SourceVersion="Original" />
  136. </Parameters>
  137. </DbCommand>
  138. </DeleteCommand>
  139. <InsertCommand>
  140. <DbCommand CommandType="Text" ModifiedByUser="false">
  141. <CommandText>INSERT INTO [dbo].[Izdelie] ([name_izd], [length], [width]) VALUES (@name_izd, @length, @width);
  142. SELECT id_izd, name_izd, length, width FROM Izdelie WHERE (id_izd = SCOPE_IDENTITY())</CommandText>
  143. <Parameters>
  144. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@name_izd" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="name_izd" SourceColumnNullMapping="false" SourceVersion="Current" />
  145. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@length" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="length" SourceColumnNullMapping="false" SourceVersion="Current" />
  146. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@width" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="width" SourceColumnNullMapping="false" SourceVersion="Current" />
  147. </Parameters>
  148. </DbCommand>
  149. </InsertCommand>
  150. <SelectCommand>
  151. <DbCommand CommandType="Text" ModifiedByUser="false">
  152. <CommandText>SELECT id_izd, name_izd, length, width FROM dbo.Izdelie</CommandText>
  153. <Parameters />
  154. </DbCommand>
  155. </SelectCommand>
  156. <UpdateCommand>
  157. <DbCommand CommandType="Text" ModifiedByUser="false">
  158. <CommandText>UPDATE [dbo].[Izdelie] SET [name_izd] = @name_izd, [length] = @length, [width] = @width WHERE (([id_izd] = @Original_id_izd) AND ((@IsNull_name_izd = 1 AND [name_izd] IS NULL) OR ([name_izd] = @Original_name_izd)) AND ((@IsNull_length = 1 AND [length] IS NULL) OR ([length] = @Original_length)) AND ((@IsNull_width = 1 AND [width] IS NULL) OR ([width] = @Original_width)));
  159. SELECT id_izd, name_izd, length, width FROM Izdelie WHERE (id_izd = @id_izd)</CommandText>
  160. <Parameters>
  161. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@name_izd" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="name_izd" SourceColumnNullMapping="false" SourceVersion="Current" />
  162. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@length" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="length" SourceColumnNullMapping="false" SourceVersion="Current" />
  163. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@width" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="width" SourceColumnNullMapping="false" SourceVersion="Current" />
  164. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_izd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_izd" SourceColumnNullMapping="false" SourceVersion="Original" />
  165. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_name_izd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="name_izd" SourceColumnNullMapping="true" SourceVersion="Original" />
  166. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_name_izd" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="name_izd" SourceColumnNullMapping="false" SourceVersion="Original" />
  167. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_length" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="length" SourceColumnNullMapping="true" SourceVersion="Original" />
  168. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_length" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="length" SourceColumnNullMapping="false" SourceVersion="Original" />
  169. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_width" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="width" SourceColumnNullMapping="true" SourceVersion="Original" />
  170. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_width" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="width" SourceColumnNullMapping="false" SourceVersion="Original" />
  171. <Parameter AllowDbNull="false" AutogeneratedName="id_izd" ColumnName="id_izd" DataSourceName="pracFabrica.dbo.Izdelie" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id_izd" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="id_izd" SourceColumnNullMapping="false" SourceVersion="Current" />
  172. </Parameters>
  173. </DbCommand>
  174. </UpdateCommand>
  175. </DbSource>
  176. </MainSource>
  177. <Mappings>
  178. <Mapping SourceColumn="id_izd" DataSetColumn="id_izd" />
  179. <Mapping SourceColumn="name_izd" DataSetColumn="name_izd" />
  180. <Mapping SourceColumn="length" DataSetColumn="length" />
  181. <Mapping SourceColumn="width" DataSetColumn="width" />
  182. </Mappings>
  183. <Sources />
  184. </TableAdapter>
  185. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="OrdersTableAdapter" GeneratorDataComponentClassName="OrdersTableAdapter" Name="Orders" UserDataComponentName="OrdersTableAdapter">
  186. <MainSource>
  187. <DbSource ConnectionRef="pracFabricaConnectionString (Settings)" DbObjectName="pracFabrica.dbo.Orders" 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">
  188. <DeleteCommand>
  189. <DbCommand CommandType="Text" ModifiedByUser="false">
  190. <CommandText>DELETE FROM [dbo].[Orders] WHERE (([id_order] = @Original_id_order) AND ((@IsNull_id_izd = 1 AND [id_izd] IS NULL) OR ([id_izd] = @Original_id_izd)) AND ((@IsNull_id_zak = 1 AND [id_zak] IS NULL) OR ([id_zak] = @Original_id_zak)) AND ((@IsNull_id_men = 1 AND [id_men] IS NULL) OR ([id_men] = @Original_id_men)) AND ((@IsNull_id_tkan = 1 AND [id_tkan] IS NULL) OR ([id_tkan] = @Original_id_tkan)) AND ((@IsNull_id_fur = 1 AND [id_fur] IS NULL) OR ([id_fur] = @Original_id_fur)) AND ((@IsNull_CountFur = 1 AND [CountFur] IS NULL) OR ([CountFur] = @Original_CountFur)) AND ((@IsNull_CountIzd = 1 AND [CountIzd] IS NULL) OR ([CountIzd] = @Original_CountIzd)))</CommandText>
  191. <Parameters>
  192. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_order" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_order" SourceColumnNullMapping="false" SourceVersion="Original" />
  193. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_id_izd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_izd" SourceColumnNullMapping="true" SourceVersion="Original" />
  194. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_izd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_izd" SourceColumnNullMapping="false" SourceVersion="Original" />
  195. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_id_zak" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_zak" SourceColumnNullMapping="true" SourceVersion="Original" />
  196. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_zak" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_zak" SourceColumnNullMapping="false" SourceVersion="Original" />
  197. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_id_men" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_men" SourceColumnNullMapping="true" SourceVersion="Original" />
  198. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_men" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_men" SourceColumnNullMapping="false" SourceVersion="Original" />
  199. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_id_tkan" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_tkan" SourceColumnNullMapping="true" SourceVersion="Original" />
  200. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_tkan" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_tkan" SourceColumnNullMapping="false" SourceVersion="Original" />
  201. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_id_fur" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_fur" SourceColumnNullMapping="true" SourceVersion="Original" />
  202. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_fur" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_fur" SourceColumnNullMapping="false" SourceVersion="Original" />
  203. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CountFur" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountFur" SourceColumnNullMapping="true" SourceVersion="Original" />
  204. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CountFur" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountFur" SourceColumnNullMapping="false" SourceVersion="Original" />
  205. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CountIzd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountIzd" SourceColumnNullMapping="true" SourceVersion="Original" />
  206. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CountIzd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountIzd" SourceColumnNullMapping="false" SourceVersion="Original" />
  207. </Parameters>
  208. </DbCommand>
  209. </DeleteCommand>
  210. <InsertCommand>
  211. <DbCommand CommandType="Text" ModifiedByUser="false">
  212. <CommandText>INSERT INTO [dbo].[Orders] ([id_izd], [id_zak], [id_men], [id_tkan], [id_fur], [CountFur], [CountIzd]) VALUES (@id_izd, @id_zak, @id_men, @id_tkan, @id_fur, @CountFur, @CountIzd);
  213. SELECT id_order, id_izd, id_zak, id_men, id_tkan, id_fur, CountFur, CountIzd FROM Orders WHERE (id_order = SCOPE_IDENTITY())</CommandText>
  214. <Parameters>
  215. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id_izd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_izd" SourceColumnNullMapping="false" SourceVersion="Current" />
  216. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id_zak" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_zak" SourceColumnNullMapping="false" SourceVersion="Current" />
  217. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id_men" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_men" SourceColumnNullMapping="false" SourceVersion="Current" />
  218. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id_tkan" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_tkan" SourceColumnNullMapping="false" SourceVersion="Current" />
  219. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id_fur" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_fur" SourceColumnNullMapping="false" SourceVersion="Current" />
  220. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CountFur" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountFur" SourceColumnNullMapping="false" SourceVersion="Current" />
  221. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CountIzd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountIzd" SourceColumnNullMapping="false" SourceVersion="Current" />
  222. </Parameters>
  223. </DbCommand>
  224. </InsertCommand>
  225. <SelectCommand>
  226. <DbCommand CommandType="Text" ModifiedByUser="false">
  227. <CommandText>SELECT id_order, id_izd, id_zak, id_men, id_tkan, id_fur, CountFur, CountIzd FROM dbo.Orders</CommandText>
  228. <Parameters />
  229. </DbCommand>
  230. </SelectCommand>
  231. <UpdateCommand>
  232. <DbCommand CommandType="Text" ModifiedByUser="false">
  233. <CommandText>UPDATE [dbo].[Orders] SET [id_izd] = @id_izd, [id_zak] = @id_zak, [id_men] = @id_men, [id_tkan] = @id_tkan, [id_fur] = @id_fur, [CountFur] = @CountFur, [CountIzd] = @CountIzd WHERE (([id_order] = @Original_id_order) AND ((@IsNull_id_izd = 1 AND [id_izd] IS NULL) OR ([id_izd] = @Original_id_izd)) AND ((@IsNull_id_zak = 1 AND [id_zak] IS NULL) OR ([id_zak] = @Original_id_zak)) AND ((@IsNull_id_men = 1 AND [id_men] IS NULL) OR ([id_men] = @Original_id_men)) AND ((@IsNull_id_tkan = 1 AND [id_tkan] IS NULL) OR ([id_tkan] = @Original_id_tkan)) AND ((@IsNull_id_fur = 1 AND [id_fur] IS NULL) OR ([id_fur] = @Original_id_fur)) AND ((@IsNull_CountFur = 1 AND [CountFur] IS NULL) OR ([CountFur] = @Original_CountFur)) AND ((@IsNull_CountIzd = 1 AND [CountIzd] IS NULL) OR ([CountIzd] = @Original_CountIzd)));
  234. SELECT id_order, id_izd, id_zak, id_men, id_tkan, id_fur, CountFur, CountIzd FROM Orders WHERE (id_order = @id_order)</CommandText>
  235. <Parameters>
  236. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id_izd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_izd" SourceColumnNullMapping="false" SourceVersion="Current" />
  237. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id_zak" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_zak" SourceColumnNullMapping="false" SourceVersion="Current" />
  238. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id_men" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_men" SourceColumnNullMapping="false" SourceVersion="Current" />
  239. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id_tkan" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_tkan" SourceColumnNullMapping="false" SourceVersion="Current" />
  240. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id_fur" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_fur" SourceColumnNullMapping="false" SourceVersion="Current" />
  241. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CountFur" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountFur" SourceColumnNullMapping="false" SourceVersion="Current" />
  242. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CountIzd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountIzd" SourceColumnNullMapping="false" SourceVersion="Current" />
  243. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_order" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_order" SourceColumnNullMapping="false" SourceVersion="Original" />
  244. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_id_izd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_izd" SourceColumnNullMapping="true" SourceVersion="Original" />
  245. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_izd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_izd" SourceColumnNullMapping="false" SourceVersion="Original" />
  246. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_id_zak" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_zak" SourceColumnNullMapping="true" SourceVersion="Original" />
  247. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_zak" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_zak" SourceColumnNullMapping="false" SourceVersion="Original" />
  248. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_id_men" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_men" SourceColumnNullMapping="true" SourceVersion="Original" />
  249. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_men" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_men" SourceColumnNullMapping="false" SourceVersion="Original" />
  250. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_id_tkan" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_tkan" SourceColumnNullMapping="true" SourceVersion="Original" />
  251. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_tkan" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_tkan" SourceColumnNullMapping="false" SourceVersion="Original" />
  252. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_id_fur" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_fur" SourceColumnNullMapping="true" SourceVersion="Original" />
  253. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_fur" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_fur" SourceColumnNullMapping="false" SourceVersion="Original" />
  254. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CountFur" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountFur" SourceColumnNullMapping="true" SourceVersion="Original" />
  255. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CountFur" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountFur" SourceColumnNullMapping="false" SourceVersion="Original" />
  256. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CountIzd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountIzd" SourceColumnNullMapping="true" SourceVersion="Original" />
  257. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CountIzd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountIzd" SourceColumnNullMapping="false" SourceVersion="Original" />
  258. <Parameter AllowDbNull="false" AutogeneratedName="id_order" ColumnName="id_order" DataSourceName="pracFabrica.dbo.Orders" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id_order" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="id_order" SourceColumnNullMapping="false" SourceVersion="Current" />
  259. </Parameters>
  260. </DbCommand>
  261. </UpdateCommand>
  262. </DbSource>
  263. </MainSource>
  264. <Mappings>
  265. <Mapping SourceColumn="id_order" DataSetColumn="id_order" />
  266. <Mapping SourceColumn="id_izd" DataSetColumn="id_izd" />
  267. <Mapping SourceColumn="id_zak" DataSetColumn="id_zak" />
  268. <Mapping SourceColumn="id_men" DataSetColumn="id_men" />
  269. <Mapping SourceColumn="id_tkan" DataSetColumn="id_tkan" />
  270. <Mapping SourceColumn="id_fur" DataSetColumn="id_fur" />
  271. <Mapping SourceColumn="CountFur" DataSetColumn="CountFur" />
  272. <Mapping SourceColumn="CountIzd" DataSetColumn="CountIzd" />
  273. </Mappings>
  274. <Sources />
  275. </TableAdapter>
  276. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="RolesTableAdapter" GeneratorDataComponentClassName="RolesTableAdapter" Name="Roles" UserDataComponentName="RolesTableAdapter">
  277. <MainSource>
  278. <DbSource ConnectionRef="pracFabricaConnectionString (Settings)" DbObjectName="pracFabrica.dbo.Roles" 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">
  279. <DeleteCommand>
  280. <DbCommand CommandType="Text" ModifiedByUser="false">
  281. <CommandText>DELETE FROM [dbo].[Roles] WHERE (([id_Roles] = @Original_id_Roles) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)))</CommandText>
  282. <Parameters>
  283. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_Roles" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_Roles" SourceColumnNullMapping="false" SourceVersion="Original" />
  284. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Title" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="true" SourceVersion="Original" />
  285. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  286. </Parameters>
  287. </DbCommand>
  288. </DeleteCommand>
  289. <InsertCommand>
  290. <DbCommand CommandType="Text" ModifiedByUser="false">
  291. <CommandText>INSERT INTO [dbo].[Roles] ([Title]) VALUES (@Title);
  292. SELECT id_Roles, Title FROM Roles WHERE (id_Roles = SCOPE_IDENTITY())</CommandText>
  293. <Parameters>
  294. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  295. </Parameters>
  296. </DbCommand>
  297. </InsertCommand>
  298. <SelectCommand>
  299. <DbCommand CommandType="Text" ModifiedByUser="false">
  300. <CommandText>SELECT id_Roles, Title FROM dbo.Roles</CommandText>
  301. <Parameters />
  302. </DbCommand>
  303. </SelectCommand>
  304. <UpdateCommand>
  305. <DbCommand CommandType="Text" ModifiedByUser="false">
  306. <CommandText>UPDATE [dbo].[Roles] SET [Title] = @Title WHERE (([id_Roles] = @Original_id_Roles) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)));
  307. SELECT id_Roles, Title FROM Roles WHERE (id_Roles = @id_Roles)</CommandText>
  308. <Parameters>
  309. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  310. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_Roles" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_Roles" SourceColumnNullMapping="false" SourceVersion="Original" />
  311. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Title" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="true" SourceVersion="Original" />
  312. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  313. <Parameter AllowDbNull="false" AutogeneratedName="id_Roles" ColumnName="id_Roles" DataSourceName="pracFabrica.dbo.Roles" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id_Roles" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="id_Roles" SourceColumnNullMapping="false" SourceVersion="Current" />
  314. </Parameters>
  315. </DbCommand>
  316. </UpdateCommand>
  317. </DbSource>
  318. </MainSource>
  319. <Mappings>
  320. <Mapping SourceColumn="id_Roles" DataSetColumn="id_Roles" />
  321. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  322. </Mappings>
  323. <Sources />
  324. </TableAdapter>
  325. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TkanTableAdapter" GeneratorDataComponentClassName="TkanTableAdapter" Name="Tkan" UserDataComponentName="TkanTableAdapter">
  326. <MainSource>
  327. <DbSource ConnectionRef="pracFabricaConnectionString (Settings)" DbObjectName="pracFabrica.dbo.Tkan" 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">
  328. <DeleteCommand>
  329. <DbCommand CommandType="Text" ModifiedByUser="false">
  330. <CommandText>DELETE FROM [dbo].[Tkan] WHERE (([id_Tkan] = @Original_id_Tkan) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)) AND ((@IsNull_id_color = 1 AND [id_color] IS NULL) OR ([id_color] = @Original_id_color)) AND ((@IsNull_Length = 1 AND [Length] IS NULL) OR ([Length] = @Original_Length)) AND ((@IsNull_Width = 1 AND [Width] IS NULL) OR ([Width] = @Original_Width)) AND ((@IsNull_Comment = 1 AND [Comment] IS NULL) OR ([Comment] = @Original_Comment)) AND ((@IsNull_NamePhoto = 1 AND [NamePhoto] IS NULL) OR ([NamePhoto] = @Original_NamePhoto)))</CommandText>
  331. <Parameters>
  332. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_Tkan" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_Tkan" SourceColumnNullMapping="false" SourceVersion="Original" />
  333. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Title" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="true" SourceVersion="Original" />
  334. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  335. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_id_color" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_color" SourceColumnNullMapping="true" SourceVersion="Original" />
  336. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_color" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_color" SourceColumnNullMapping="false" SourceVersion="Original" />
  337. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Length" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Length" SourceColumnNullMapping="true" SourceVersion="Original" />
  338. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Length" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Length" SourceColumnNullMapping="false" SourceVersion="Original" />
  339. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Width" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Width" SourceColumnNullMapping="true" SourceVersion="Original" />
  340. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Width" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Width" SourceColumnNullMapping="false" SourceVersion="Original" />
  341. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Comment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Comment" SourceColumnNullMapping="true" SourceVersion="Original" />
  342. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Comment" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Comment" SourceColumnNullMapping="false" SourceVersion="Original" />
  343. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NamePhoto" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NamePhoto" SourceColumnNullMapping="true" SourceVersion="Original" />
  344. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NamePhoto" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NamePhoto" SourceColumnNullMapping="false" SourceVersion="Original" />
  345. </Parameters>
  346. </DbCommand>
  347. </DeleteCommand>
  348. <InsertCommand>
  349. <DbCommand CommandType="Text" ModifiedByUser="false">
  350. <CommandText>INSERT INTO [dbo].[Tkan] ([Title], [id_color], [Length], [Width], [Comment], [NamePhoto]) VALUES (@Title, @id_color, @Length, @Width, @Comment, @NamePhoto);
  351. SELECT id_Tkan, Title, id_color, Length, Width, Comment, NamePhoto FROM Tkan WHERE (id_Tkan = SCOPE_IDENTITY())</CommandText>
  352. <Parameters>
  353. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  354. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id_color" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_color" SourceColumnNullMapping="false" SourceVersion="Current" />
  355. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Length" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Length" SourceColumnNullMapping="false" SourceVersion="Current" />
  356. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Width" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Width" SourceColumnNullMapping="false" SourceVersion="Current" />
  357. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Comment" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Comment" SourceColumnNullMapping="false" SourceVersion="Current" />
  358. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NamePhoto" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NamePhoto" SourceColumnNullMapping="false" SourceVersion="Current" />
  359. </Parameters>
  360. </DbCommand>
  361. </InsertCommand>
  362. <SelectCommand>
  363. <DbCommand CommandType="Text" ModifiedByUser="false">
  364. <CommandText>SELECT id_Tkan, Title, id_color, Length, Width, Comment, NamePhoto FROM dbo.Tkan</CommandText>
  365. <Parameters />
  366. </DbCommand>
  367. </SelectCommand>
  368. <UpdateCommand>
  369. <DbCommand CommandType="Text" ModifiedByUser="false">
  370. <CommandText>UPDATE [dbo].[Tkan] SET [Title] = @Title, [id_color] = @id_color, [Length] = @Length, [Width] = @Width, [Comment] = @Comment, [NamePhoto] = @NamePhoto WHERE (([id_Tkan] = @Original_id_Tkan) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)) AND ((@IsNull_id_color = 1 AND [id_color] IS NULL) OR ([id_color] = @Original_id_color)) AND ((@IsNull_Length = 1 AND [Length] IS NULL) OR ([Length] = @Original_Length)) AND ((@IsNull_Width = 1 AND [Width] IS NULL) OR ([Width] = @Original_Width)) AND ((@IsNull_Comment = 1 AND [Comment] IS NULL) OR ([Comment] = @Original_Comment)) AND ((@IsNull_NamePhoto = 1 AND [NamePhoto] IS NULL) OR ([NamePhoto] = @Original_NamePhoto)));
  371. SELECT id_Tkan, Title, id_color, Length, Width, Comment, NamePhoto FROM Tkan WHERE (id_Tkan = @id_Tkan)</CommandText>
  372. <Parameters>
  373. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  374. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id_color" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_color" SourceColumnNullMapping="false" SourceVersion="Current" />
  375. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Length" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Length" SourceColumnNullMapping="false" SourceVersion="Current" />
  376. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Width" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Width" SourceColumnNullMapping="false" SourceVersion="Current" />
  377. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Comment" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Comment" SourceColumnNullMapping="false" SourceVersion="Current" />
  378. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NamePhoto" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NamePhoto" SourceColumnNullMapping="false" SourceVersion="Current" />
  379. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_Tkan" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_Tkan" SourceColumnNullMapping="false" SourceVersion="Original" />
  380. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Title" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="true" SourceVersion="Original" />
  381. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  382. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_id_color" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_color" SourceColumnNullMapping="true" SourceVersion="Original" />
  383. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_color" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_color" SourceColumnNullMapping="false" SourceVersion="Original" />
  384. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Length" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Length" SourceColumnNullMapping="true" SourceVersion="Original" />
  385. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Length" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Length" SourceColumnNullMapping="false" SourceVersion="Original" />
  386. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Width" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Width" SourceColumnNullMapping="true" SourceVersion="Original" />
  387. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Width" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Width" SourceColumnNullMapping="false" SourceVersion="Original" />
  388. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Comment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Comment" SourceColumnNullMapping="true" SourceVersion="Original" />
  389. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Comment" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Comment" SourceColumnNullMapping="false" SourceVersion="Original" />
  390. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NamePhoto" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NamePhoto" SourceColumnNullMapping="true" SourceVersion="Original" />
  391. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NamePhoto" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NamePhoto" SourceColumnNullMapping="false" SourceVersion="Original" />
  392. <Parameter AllowDbNull="false" AutogeneratedName="id_Tkan" ColumnName="id_Tkan" DataSourceName="pracFabrica.dbo.Tkan" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id_Tkan" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="id_Tkan" SourceColumnNullMapping="false" SourceVersion="Current" />
  393. </Parameters>
  394. </DbCommand>
  395. </UpdateCommand>
  396. </DbSource>
  397. </MainSource>
  398. <Mappings>
  399. <Mapping SourceColumn="id_Tkan" DataSetColumn="id_Tkan" />
  400. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  401. <Mapping SourceColumn="id_color" DataSetColumn="id_color" />
  402. <Mapping SourceColumn="Length" DataSetColumn="Length" />
  403. <Mapping SourceColumn="Width" DataSetColumn="Width" />
  404. <Mapping SourceColumn="Comment" DataSetColumn="Comment" />
  405. <Mapping SourceColumn="NamePhoto" DataSetColumn="NamePhoto" />
  406. </Mappings>
  407. <Sources />
  408. </TableAdapter>
  409. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="UsersTableAdapter" GeneratorDataComponentClassName="UsersTableAdapter" Name="Users" UserDataComponentName="UsersTableAdapter">
  410. <MainSource>
  411. <DbSource ConnectionRef="pracFabricaConnectionString (Settings)" DbObjectName="pracFabrica.dbo.Users" 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">
  412. <DeleteCommand>
  413. <DbCommand CommandType="Text" ModifiedByUser="false">
  414. <CommandText>DELETE FROM [dbo].[Users] WHERE (([id_User] = @Original_id_User) AND ((@IsNull_login = 1 AND [login] IS NULL) OR ([login] = @Original_login)) AND ((@IsNull_pass = 1 AND [pass] IS NULL) OR ([pass] = @Original_pass)) AND ((@IsNull_Role = 1 AND [Role] IS NULL) OR ([Role] = @Original_Role)) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Otch = 1 AND [Otch] IS NULL) OR ([Otch] = @Original_Otch)) AND ((@IsNull_Phone = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)))</CommandText>
  415. <Parameters>
  416. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_User" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_User" SourceColumnNullMapping="false" SourceVersion="Original" />
  417. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_login" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="login" SourceColumnNullMapping="true" SourceVersion="Original" />
  418. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_login" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="login" SourceColumnNullMapping="false" SourceVersion="Original" />
  419. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_pass" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="pass" SourceColumnNullMapping="true" SourceVersion="Original" />
  420. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_pass" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="pass" SourceColumnNullMapping="false" SourceVersion="Original" />
  421. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Role" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Role" SourceColumnNullMapping="true" SourceVersion="Original" />
  422. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Role" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Role" SourceColumnNullMapping="false" SourceVersion="Original" />
  423. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Surname" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Surname" SourceColumnNullMapping="true" SourceVersion="Original" />
  424. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Surname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Surname" SourceColumnNullMapping="false" SourceVersion="Original" />
  425. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="true" SourceVersion="Original" />
  426. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
  427. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Otch" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Otch" SourceColumnNullMapping="true" SourceVersion="Original" />
  428. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Otch" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Otch" SourceColumnNullMapping="false" SourceVersion="Original" />
  429. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Phone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Phone" SourceColumnNullMapping="true" SourceVersion="Original" />
  430. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Phone" SourceColumnNullMapping="false" SourceVersion="Original" />
  431. </Parameters>
  432. </DbCommand>
  433. </DeleteCommand>
  434. <InsertCommand>
  435. <DbCommand CommandType="Text" ModifiedByUser="false">
  436. <CommandText>INSERT INTO [dbo].[Users] ([login], [pass], [Role], [Surname], [Name], [Otch], [Phone]) VALUES (@login, @pass, @Role, @Surname, @Name, @Otch, @Phone);
  437. SELECT id_User, login, pass, Role, Surname, Name, Otch, Phone FROM Users WHERE (id_User = SCOPE_IDENTITY())</CommandText>
  438. <Parameters>
  439. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@login" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="login" SourceColumnNullMapping="false" SourceVersion="Current" />
  440. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@pass" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="pass" SourceColumnNullMapping="false" SourceVersion="Current" />
  441. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Role" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Role" SourceColumnNullMapping="false" SourceVersion="Current" />
  442. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Surname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Surname" SourceColumnNullMapping="false" SourceVersion="Current" />
  443. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
  444. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Otch" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Otch" SourceColumnNullMapping="false" SourceVersion="Current" />
  445. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Phone" SourceColumnNullMapping="false" SourceVersion="Current" />
  446. </Parameters>
  447. </DbCommand>
  448. </InsertCommand>
  449. <SelectCommand>
  450. <DbCommand CommandType="Text" ModifiedByUser="false">
  451. <CommandText>SELECT id_User, login, pass, Role, Surname, Name, Otch, Phone FROM dbo.Users</CommandText>
  452. <Parameters />
  453. </DbCommand>
  454. </SelectCommand>
  455. <UpdateCommand>
  456. <DbCommand CommandType="Text" ModifiedByUser="false">
  457. <CommandText>UPDATE [dbo].[Users] SET [login] = @login, [pass] = @pass, [Role] = @Role, [Surname] = @Surname, [Name] = @Name, [Otch] = @Otch, [Phone] = @Phone WHERE (([id_User] = @Original_id_User) AND ((@IsNull_login = 1 AND [login] IS NULL) OR ([login] = @Original_login)) AND ((@IsNull_pass = 1 AND [pass] IS NULL) OR ([pass] = @Original_pass)) AND ((@IsNull_Role = 1 AND [Role] IS NULL) OR ([Role] = @Original_Role)) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Otch = 1 AND [Otch] IS NULL) OR ([Otch] = @Original_Otch)) AND ((@IsNull_Phone = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)));
  458. SELECT id_User, login, pass, Role, Surname, Name, Otch, Phone FROM Users WHERE (id_User = @id_User)</CommandText>
  459. <Parameters>
  460. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@login" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="login" SourceColumnNullMapping="false" SourceVersion="Current" />
  461. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@pass" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="pass" SourceColumnNullMapping="false" SourceVersion="Current" />
  462. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Role" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Role" SourceColumnNullMapping="false" SourceVersion="Current" />
  463. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Surname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Surname" SourceColumnNullMapping="false" SourceVersion="Current" />
  464. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
  465. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Otch" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Otch" SourceColumnNullMapping="false" SourceVersion="Current" />
  466. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Phone" SourceColumnNullMapping="false" SourceVersion="Current" />
  467. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id_User" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id_User" SourceColumnNullMapping="false" SourceVersion="Original" />
  468. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_login" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="login" SourceColumnNullMapping="true" SourceVersion="Original" />
  469. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_login" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="login" SourceColumnNullMapping="false" SourceVersion="Original" />
  470. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_pass" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="pass" SourceColumnNullMapping="true" SourceVersion="Original" />
  471. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_pass" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="pass" SourceColumnNullMapping="false" SourceVersion="Original" />
  472. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Role" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Role" SourceColumnNullMapping="true" SourceVersion="Original" />
  473. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Role" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Role" SourceColumnNullMapping="false" SourceVersion="Original" />
  474. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Surname" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Surname" SourceColumnNullMapping="true" SourceVersion="Original" />
  475. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Surname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Surname" SourceColumnNullMapping="false" SourceVersion="Original" />
  476. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="true" SourceVersion="Original" />
  477. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
  478. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Otch" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Otch" SourceColumnNullMapping="true" SourceVersion="Original" />
  479. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Otch" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Otch" SourceColumnNullMapping="false" SourceVersion="Original" />
  480. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Phone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Phone" SourceColumnNullMapping="true" SourceVersion="Original" />
  481. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Phone" SourceColumnNullMapping="false" SourceVersion="Original" />
  482. <Parameter AllowDbNull="false" AutogeneratedName="id_User" ColumnName="id_User" DataSourceName="pracFabrica.dbo.Users" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id_User" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="id_User" SourceColumnNullMapping="false" SourceVersion="Current" />
  483. </Parameters>
  484. </DbCommand>
  485. </UpdateCommand>
  486. </DbSource>
  487. </MainSource>
  488. <Mappings>
  489. <Mapping SourceColumn="id_User" DataSetColumn="id_User" />
  490. <Mapping SourceColumn="login" DataSetColumn="login" />
  491. <Mapping SourceColumn="pass" DataSetColumn="pass" />
  492. <Mapping SourceColumn="Role" DataSetColumn="Role" />
  493. <Mapping SourceColumn="Surname" DataSetColumn="Surname" />
  494. <Mapping SourceColumn="Name" DataSetColumn="Name" />
  495. <Mapping SourceColumn="Otch" DataSetColumn="Otch" />
  496. <Mapping SourceColumn="Phone" DataSetColumn="Phone" />
  497. </Mappings>
  498. <Sources />
  499. </TableAdapter>
  500. </Tables>
  501. <Sources />
  502. </DataSource>
  503. </xs:appinfo>
  504. </xs:annotation>
  505. <xs:element name="pracFabricaDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_UserDSName="pracFabricaDataSet" msprop:Generator_DataSetName="pracFabricaDataSet">
  506. <xs:complexType>
  507. <xs:choice minOccurs="0" maxOccurs="unbounded">
  508. <xs:element name="Color" msprop:Generator_RowEvHandlerName="ColorRowChangeEventHandler" msprop:Generator_RowDeletedName="ColorRowDeleted" msprop:Generator_RowDeletingName="ColorRowDeleting" msprop:Generator_RowEvArgName="ColorRowChangeEvent" msprop:Generator_TablePropName="Color" msprop:Generator_RowChangedName="ColorRowChanged" msprop:Generator_RowChangingName="ColorRowChanging" msprop:Generator_TableClassName="ColorDataTable" msprop:Generator_RowClassName="ColorRow" msprop:Generator_TableVarName="tableColor" msprop:Generator_UserTableName="Color">
  509. <xs:complexType>
  510. <xs:sequence>
  511. <xs:element name="id_colors" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="id_colors" msprop:Generator_ColumnPropNameInTable="id_colorsColumn" msprop:Generator_ColumnVarNameInTable="columnid_colors" msprop:Generator_UserColumnName="id_colors" type="xs:int" />
  512. <xs:element name="Title" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_UserColumnName="Title" minOccurs="0">
  513. <xs:simpleType>
  514. <xs:restriction base="xs:string">
  515. <xs:maxLength value="50" />
  516. </xs:restriction>
  517. </xs:simpleType>
  518. </xs:element>
  519. </xs:sequence>
  520. </xs:complexType>
  521. </xs:element>
  522. <xs:element name="Furnitura" msprop:Generator_RowEvHandlerName="FurnituraRowChangeEventHandler" msprop:Generator_RowDeletedName="FurnituraRowDeleted" msprop:Generator_RowDeletingName="FurnituraRowDeleting" msprop:Generator_RowEvArgName="FurnituraRowChangeEvent" msprop:Generator_TablePropName="Furnitura" msprop:Generator_RowChangedName="FurnituraRowChanged" msprop:Generator_RowChangingName="FurnituraRowChanging" msprop:Generator_TableClassName="FurnituraDataTable" msprop:Generator_RowClassName="FurnituraRow" msprop:Generator_TableVarName="tableFurnitura" msprop:Generator_UserTableName="Furnitura">
  523. <xs:complexType>
  524. <xs:sequence>
  525. <xs:element name="id_fur" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="id_fur" msprop:Generator_ColumnPropNameInTable="id_furColumn" msprop:Generator_ColumnVarNameInTable="columnid_fur" msprop:Generator_UserColumnName="id_fur" type="xs:int" />
  526. <xs:element name="namefur" msprop:Generator_ColumnPropNameInRow="namefur" msprop:Generator_ColumnPropNameInTable="namefurColumn" msprop:Generator_ColumnVarNameInTable="columnnamefur" msprop:Generator_UserColumnName="namefur" minOccurs="0">
  527. <xs:simpleType>
  528. <xs:restriction base="xs:string">
  529. <xs:maxLength value="50" />
  530. </xs:restriction>
  531. </xs:simpleType>
  532. </xs:element>
  533. <xs:element name="photo" msprop:Generator_ColumnPropNameInRow="photo" msprop:Generator_ColumnPropNameInTable="photoColumn" msprop:Generator_ColumnVarNameInTable="columnphoto" msprop:Generator_UserColumnName="photo" minOccurs="0">
  534. <xs:simpleType>
  535. <xs:restriction base="xs:string">
  536. <xs:maxLength value="50" />
  537. </xs:restriction>
  538. </xs:simpleType>
  539. </xs:element>
  540. <xs:element name="countfur" msprop:Generator_ColumnPropNameInRow="countfur" msprop:Generator_ColumnPropNameInTable="countfurColumn" msprop:Generator_ColumnVarNameInTable="columncountfur" msprop:Generator_UserColumnName="countfur" type="xs:int" minOccurs="0" />
  541. </xs:sequence>
  542. </xs:complexType>
  543. </xs:element>
  544. <xs:element name="Izdelie" msprop:Generator_RowEvHandlerName="IzdelieRowChangeEventHandler" msprop:Generator_RowDeletedName="IzdelieRowDeleted" msprop:Generator_RowDeletingName="IzdelieRowDeleting" msprop:Generator_RowEvArgName="IzdelieRowChangeEvent" msprop:Generator_TablePropName="Izdelie" msprop:Generator_RowChangedName="IzdelieRowChanged" msprop:Generator_RowChangingName="IzdelieRowChanging" msprop:Generator_TableClassName="IzdelieDataTable" msprop:Generator_RowClassName="IzdelieRow" msprop:Generator_TableVarName="tableIzdelie" msprop:Generator_UserTableName="Izdelie">
  545. <xs:complexType>
  546. <xs:sequence>
  547. <xs:element name="id_izd" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="id_izd" msprop:Generator_ColumnPropNameInTable="id_izdColumn" msprop:Generator_ColumnVarNameInTable="columnid_izd" msprop:Generator_UserColumnName="id_izd" type="xs:int" />
  548. <xs:element name="name_izd" msprop:Generator_ColumnPropNameInRow="name_izd" msprop:Generator_ColumnPropNameInTable="name_izdColumn" msprop:Generator_ColumnVarNameInTable="columnname_izd" msprop:Generator_UserColumnName="name_izd" minOccurs="0">
  549. <xs:simpleType>
  550. <xs:restriction base="xs:string">
  551. <xs:maxLength value="50" />
  552. </xs:restriction>
  553. </xs:simpleType>
  554. </xs:element>
  555. <xs:element name="length" msprop:Generator_ColumnPropNameInRow="length" msprop:Generator_ColumnPropNameInTable="lengthColumn" msprop:Generator_ColumnVarNameInTable="columnlength" msprop:Generator_UserColumnName="length" type="xs:int" minOccurs="0" />
  556. <xs:element name="width" msprop:Generator_ColumnPropNameInRow="width" msprop:Generator_ColumnPropNameInTable="widthColumn" msprop:Generator_ColumnVarNameInTable="columnwidth" msprop:Generator_UserColumnName="width" type="xs:int" minOccurs="0" />
  557. </xs:sequence>
  558. </xs:complexType>
  559. </xs:element>
  560. <xs:element name="Orders" msprop:Generator_RowEvHandlerName="OrdersRowChangeEventHandler" msprop:Generator_RowDeletedName="OrdersRowDeleted" msprop:Generator_RowDeletingName="OrdersRowDeleting" msprop:Generator_RowEvArgName="OrdersRowChangeEvent" msprop:Generator_TablePropName="Orders" msprop:Generator_RowChangedName="OrdersRowChanged" msprop:Generator_RowChangingName="OrdersRowChanging" msprop:Generator_TableClassName="OrdersDataTable" msprop:Generator_RowClassName="OrdersRow" msprop:Generator_TableVarName="tableOrders" msprop:Generator_UserTableName="Orders">
  561. <xs:complexType>
  562. <xs:sequence>
  563. <xs:element name="id_order" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="id_order" msprop:Generator_ColumnPropNameInTable="id_orderColumn" msprop:Generator_ColumnVarNameInTable="columnid_order" msprop:Generator_UserColumnName="id_order" type="xs:int" />
  564. <xs:element name="id_izd" msprop:Generator_ColumnPropNameInRow="id_izd" msprop:Generator_ColumnPropNameInTable="id_izdColumn" msprop:Generator_ColumnVarNameInTable="columnid_izd" msprop:Generator_UserColumnName="id_izd" type="xs:int" minOccurs="0" />
  565. <xs:element name="id_zak" msprop:Generator_ColumnPropNameInRow="id_zak" msprop:Generator_ColumnPropNameInTable="id_zakColumn" msprop:Generator_ColumnVarNameInTable="columnid_zak" msprop:Generator_UserColumnName="id_zak" type="xs:int" minOccurs="0" />
  566. <xs:element name="id_men" msprop:Generator_ColumnPropNameInRow="id_men" msprop:Generator_ColumnPropNameInTable="id_menColumn" msprop:Generator_ColumnVarNameInTable="columnid_men" msprop:Generator_UserColumnName="id_men" type="xs:int" minOccurs="0" />
  567. <xs:element name="id_tkan" msprop:Generator_ColumnPropNameInRow="id_tkan" msprop:Generator_ColumnPropNameInTable="id_tkanColumn" msprop:Generator_ColumnVarNameInTable="columnid_tkan" msprop:Generator_UserColumnName="id_tkan" type="xs:int" minOccurs="0" />
  568. <xs:element name="id_fur" msprop:Generator_ColumnPropNameInRow="id_fur" msprop:Generator_ColumnPropNameInTable="id_furColumn" msprop:Generator_ColumnVarNameInTable="columnid_fur" msprop:Generator_UserColumnName="id_fur" type="xs:int" minOccurs="0" />
  569. <xs:element name="CountFur" msprop:Generator_ColumnPropNameInRow="CountFur" msprop:Generator_ColumnPropNameInTable="CountFurColumn" msprop:Generator_ColumnVarNameInTable="columnCountFur" msprop:Generator_UserColumnName="CountFur" type="xs:int" minOccurs="0" />
  570. <xs:element name="CountIzd" msprop:Generator_ColumnPropNameInRow="CountIzd" msprop:Generator_ColumnPropNameInTable="CountIzdColumn" msprop:Generator_ColumnVarNameInTable="columnCountIzd" msprop:Generator_UserColumnName="CountIzd" type="xs:int" minOccurs="0" />
  571. </xs:sequence>
  572. </xs:complexType>
  573. </xs:element>
  574. <xs:element name="Roles" msprop:Generator_RowEvHandlerName="RolesRowChangeEventHandler" msprop:Generator_RowDeletedName="RolesRowDeleted" msprop:Generator_RowDeletingName="RolesRowDeleting" msprop:Generator_RowEvArgName="RolesRowChangeEvent" msprop:Generator_TablePropName="Roles" msprop:Generator_RowChangedName="RolesRowChanged" msprop:Generator_RowChangingName="RolesRowChanging" msprop:Generator_TableClassName="RolesDataTable" msprop:Generator_RowClassName="RolesRow" msprop:Generator_TableVarName="tableRoles" msprop:Generator_UserTableName="Roles">
  575. <xs:complexType>
  576. <xs:sequence>
  577. <xs:element name="id_Roles" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="id_Roles" msprop:Generator_ColumnPropNameInTable="id_RolesColumn" msprop:Generator_ColumnVarNameInTable="columnid_Roles" msprop:Generator_UserColumnName="id_Roles" type="xs:int" />
  578. <xs:element name="Title" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_UserColumnName="Title" minOccurs="0">
  579. <xs:simpleType>
  580. <xs:restriction base="xs:string">
  581. <xs:maxLength value="50" />
  582. </xs:restriction>
  583. </xs:simpleType>
  584. </xs:element>
  585. </xs:sequence>
  586. </xs:complexType>
  587. </xs:element>
  588. <xs:element name="Tkan" msprop:Generator_RowEvHandlerName="TkanRowChangeEventHandler" msprop:Generator_RowDeletedName="TkanRowDeleted" msprop:Generator_RowDeletingName="TkanRowDeleting" msprop:Generator_RowEvArgName="TkanRowChangeEvent" msprop:Generator_TablePropName="Tkan" msprop:Generator_RowChangedName="TkanRowChanged" msprop:Generator_RowChangingName="TkanRowChanging" msprop:Generator_TableClassName="TkanDataTable" msprop:Generator_RowClassName="TkanRow" msprop:Generator_TableVarName="tableTkan" msprop:Generator_UserTableName="Tkan">
  589. <xs:complexType>
  590. <xs:sequence>
  591. <xs:element name="id_Tkan" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="id_Tkan" msprop:Generator_ColumnPropNameInTable="id_TkanColumn" msprop:Generator_ColumnVarNameInTable="columnid_Tkan" msprop:Generator_UserColumnName="id_Tkan" type="xs:int" />
  592. <xs:element name="Title" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_UserColumnName="Title" minOccurs="0">
  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="id_color" msprop:Generator_ColumnPropNameInRow="id_color" msprop:Generator_ColumnPropNameInTable="id_colorColumn" msprop:Generator_ColumnVarNameInTable="columnid_color" msprop:Generator_UserColumnName="id_color" type="xs:int" minOccurs="0" />
  600. <xs:element name="Length" msprop:Generator_ColumnPropNameInRow="Length" msprop:Generator_ColumnPropNameInTable="LengthColumn" msprop:Generator_ColumnVarNameInTable="columnLength" msprop:Generator_UserColumnName="Length" type="xs:int" minOccurs="0" />
  601. <xs:element name="Width" msprop:Generator_ColumnPropNameInRow="Width" msprop:Generator_ColumnPropNameInTable="WidthColumn" msprop:Generator_ColumnVarNameInTable="columnWidth" msprop:Generator_UserColumnName="Width" type="xs:int" minOccurs="0" />
  602. <xs:element name="Comment" msprop:Generator_ColumnPropNameInRow="Comment" msprop:Generator_ColumnPropNameInTable="CommentColumn" msprop:Generator_ColumnVarNameInTable="columnComment" msprop:Generator_UserColumnName="Comment" minOccurs="0">
  603. <xs:simpleType>
  604. <xs:restriction base="xs:string">
  605. <xs:maxLength value="50" />
  606. </xs:restriction>
  607. </xs:simpleType>
  608. </xs:element>
  609. <xs:element name="NamePhoto" msprop:Generator_ColumnPropNameInRow="NamePhoto" msprop:Generator_ColumnPropNameInTable="NamePhotoColumn" msprop:Generator_ColumnVarNameInTable="columnNamePhoto" msprop:Generator_UserColumnName="NamePhoto" minOccurs="0">
  610. <xs:simpleType>
  611. <xs:restriction base="xs:string">
  612. <xs:maxLength value="50" />
  613. </xs:restriction>
  614. </xs:simpleType>
  615. </xs:element>
  616. </xs:sequence>
  617. </xs:complexType>
  618. </xs:element>
  619. <xs:element name="Users" msprop:Generator_RowEvHandlerName="UsersRowChangeEventHandler" msprop:Generator_RowDeletedName="UsersRowDeleted" msprop:Generator_RowDeletingName="UsersRowDeleting" msprop:Generator_RowEvArgName="UsersRowChangeEvent" msprop:Generator_TablePropName="Users" msprop:Generator_RowChangedName="UsersRowChanged" msprop:Generator_RowChangingName="UsersRowChanging" msprop:Generator_TableClassName="UsersDataTable" msprop:Generator_RowClassName="UsersRow" msprop:Generator_TableVarName="tableUsers" msprop:Generator_UserTableName="Users">
  620. <xs:complexType>
  621. <xs:sequence>
  622. <xs:element name="id_User" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="id_User" msprop:Generator_ColumnPropNameInTable="id_UserColumn" msprop:Generator_ColumnVarNameInTable="columnid_User" msprop:Generator_UserColumnName="id_User" type="xs:int" />
  623. <xs:element name="login" msprop:Generator_ColumnPropNameInRow="login" msprop:Generator_ColumnPropNameInTable="loginColumn" msprop:Generator_ColumnVarNameInTable="columnlogin" msprop:Generator_UserColumnName="login" minOccurs="0">
  624. <xs:simpleType>
  625. <xs:restriction base="xs:string">
  626. <xs:maxLength value="50" />
  627. </xs:restriction>
  628. </xs:simpleType>
  629. </xs:element>
  630. <xs:element name="pass" msprop:Generator_ColumnPropNameInRow="pass" msprop:Generator_ColumnPropNameInTable="passColumn" msprop:Generator_ColumnVarNameInTable="columnpass" msprop:Generator_UserColumnName="pass" minOccurs="0">
  631. <xs:simpleType>
  632. <xs:restriction base="xs:string">
  633. <xs:maxLength value="50" />
  634. </xs:restriction>
  635. </xs:simpleType>
  636. </xs:element>
  637. <xs:element name="Role" msprop:Generator_ColumnPropNameInRow="Role" msprop:Generator_ColumnPropNameInTable="RoleColumn" msprop:Generator_ColumnVarNameInTable="columnRole" msprop:Generator_UserColumnName="Role" type="xs:int" minOccurs="0" />
  638. <xs:element name="Surname" msprop:Generator_ColumnPropNameInRow="Surname" msprop:Generator_ColumnPropNameInTable="SurnameColumn" msprop:Generator_ColumnVarNameInTable="columnSurname" msprop:Generator_UserColumnName="Surname" minOccurs="0">
  639. <xs:simpleType>
  640. <xs:restriction base="xs:string">
  641. <xs:maxLength value="50" />
  642. </xs:restriction>
  643. </xs:simpleType>
  644. </xs:element>
  645. <xs:element name="Name" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_UserColumnName="Name" minOccurs="0">
  646. <xs:simpleType>
  647. <xs:restriction base="xs:string">
  648. <xs:maxLength value="50" />
  649. </xs:restriction>
  650. </xs:simpleType>
  651. </xs:element>
  652. <xs:element name="Otch" msprop:Generator_ColumnPropNameInRow="Otch" msprop:Generator_ColumnPropNameInTable="OtchColumn" msprop:Generator_ColumnVarNameInTable="columnOtch" msprop:Generator_UserColumnName="Otch" minOccurs="0">
  653. <xs:simpleType>
  654. <xs:restriction base="xs:string">
  655. <xs:maxLength value="50" />
  656. </xs:restriction>
  657. </xs:simpleType>
  658. </xs:element>
  659. <xs:element name="Phone" msprop:Generator_ColumnPropNameInRow="Phone" msprop:Generator_ColumnPropNameInTable="PhoneColumn" msprop:Generator_ColumnVarNameInTable="columnPhone" msprop:Generator_UserColumnName="Phone" minOccurs="0">
  660. <xs:simpleType>
  661. <xs:restriction base="xs:string">
  662. <xs:maxLength value="50" />
  663. </xs:restriction>
  664. </xs:simpleType>
  665. </xs:element>
  666. </xs:sequence>
  667. </xs:complexType>
  668. </xs:element>
  669. </xs:choice>
  670. </xs:complexType>
  671. <xs:unique name="Constraint1" msdata:PrimaryKey="true">
  672. <xs:selector xpath=".//mstns:Color" />
  673. <xs:field xpath="mstns:id_colors" />
  674. </xs:unique>
  675. <xs:unique name="Furnitura_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  676. <xs:selector xpath=".//mstns:Furnitura" />
  677. <xs:field xpath="mstns:id_fur" />
  678. </xs:unique>
  679. <xs:unique name="Izdelie_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  680. <xs:selector xpath=".//mstns:Izdelie" />
  681. <xs:field xpath="mstns:id_izd" />
  682. </xs:unique>
  683. <xs:unique name="Orders_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  684. <xs:selector xpath=".//mstns:Orders" />
  685. <xs:field xpath="mstns:id_order" />
  686. </xs:unique>
  687. <xs:unique name="Roles_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  688. <xs:selector xpath=".//mstns:Roles" />
  689. <xs:field xpath="mstns:id_Roles" />
  690. </xs:unique>
  691. <xs:unique name="Tkan_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  692. <xs:selector xpath=".//mstns:Tkan" />
  693. <xs:field xpath="mstns:id_Tkan" />
  694. </xs:unique>
  695. <xs:unique name="Users_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  696. <xs:selector xpath=".//mstns:Users" />
  697. <xs:field xpath="mstns:id_User" />
  698. </xs:unique>
  699. </xs:element>
  700. <xs:annotation>
  701. <xs:appinfo>
  702. <msdata:Relationship name="FK_Orders_Furnitura" msdata:parent="Furnitura" msdata:child="Orders" msdata:parentkey="id_fur" msdata:childkey="id_fur" msprop:Generator_UserParentTable="Furnitura" msprop:Generator_UserChildTable="Orders" msprop:Generator_RelationVarName="relationFK_Orders_Furnitura" msprop:Generator_ChildPropName="GetOrdersRows" msprop:Generator_ParentPropName="FurnituraRow" msprop:Generator_UserRelationName="FK_Orders_Furnitura" />
  703. <msdata:Relationship name="FK_Orders_Izdelie" msdata:parent="Izdelie" msdata:child="Orders" msdata:parentkey="id_izd" msdata:childkey="id_izd" msprop:Generator_UserParentTable="Izdelie" msprop:Generator_UserChildTable="Orders" msprop:Generator_RelationVarName="relationFK_Orders_Izdelie" msprop:Generator_ChildPropName="GetOrdersRows" msprop:Generator_ParentPropName="IzdelieRow" msprop:Generator_UserRelationName="FK_Orders_Izdelie" />
  704. <msdata:Relationship name="FK_Orders_Tkan" msdata:parent="Tkan" msdata:child="Orders" msdata:parentkey="id_Tkan" msdata:childkey="id_tkan" msprop:Generator_UserParentTable="Tkan" msprop:Generator_UserChildTable="Orders" msprop:Generator_RelationVarName="relationFK_Orders_Tkan" msprop:Generator_UserRelationName="FK_Orders_Tkan" msprop:Generator_ChildPropName="GetOrdersRows" msprop:Generator_ParentPropName="TkanRow" />
  705. <msdata:Relationship name="FK_Orders_Users1" msdata:parent="Users" msdata:child="Orders" msdata:parentkey="id_User" msdata:childkey="id_men" msprop:Generator_UserParentTable="Users" msprop:Generator_UserChildTable="Orders" msprop:Generator_RelationVarName="relationFK_Orders_Users1" msprop:Generator_UserRelationName="FK_Orders_Users1" msprop:Generator_ChildPropName="GetOrdersRowsByFK_Orders_Users1" msprop:Generator_ParentPropName="UsersRowByFK_Orders_Users1" />
  706. <msdata:Relationship name="FK_Orders_Users2" msdata:parent="Users" msdata:child="Orders" msdata:parentkey="id_User" msdata:childkey="id_zak" msprop:Generator_UserParentTable="Users" msprop:Generator_UserChildTable="Orders" msprop:Generator_RelationVarName="relationFK_Orders_Users2" msprop:Generator_UserRelationName="FK_Orders_Users2" msprop:Generator_ChildPropName="GetOrdersRowsByFK_Orders_Users2" msprop:Generator_ParentPropName="UsersRowByFK_Orders_Users2" />
  707. <msdata:Relationship name="FK_Tkan_Color" msdata:parent="Color" msdata:child="Tkan" msdata:parentkey="id_colors" msdata:childkey="id_color" msprop:Generator_UserParentTable="Color" msprop:Generator_UserChildTable="Tkan" msprop:Generator_RelationVarName="relationFK_Tkan_Color" msprop:Generator_ChildPropName="GetTkanRows" msprop:Generator_ParentPropName="ColorRow" msprop:Generator_UserRelationName="FK_Tkan_Color" />
  708. <msdata:Relationship name="FK_Users_Roles" msdata:parent="Roles" msdata:child="Users" msdata:parentkey="id_Roles" msdata:childkey="Role" msprop:Generator_UserParentTable="Roles" msprop:Generator_UserChildTable="Users" msprop:Generator_RelationVarName="relationFK_Users_Roles" msprop:Generator_ChildPropName="GetUsersRows" msprop:Generator_ParentPropName="RolesRow" msprop:Generator_UserRelationName="FK_Users_Roles" />
  709. </xs:appinfo>
  710. </xs:annotation>
  711. </xs:schema>