AlfafloorGDVDataSet.xsd 147 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="AlfafloorGDVDataSet" targetNamespace="http://tempuri.org/AlfafloorGDVDataSet.xsd" xmlns:mstns="http://tempuri.org/AlfafloorGDVDataSet.xsd" xmlns="http://tempuri.org/AlfafloorGDVDataSet.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="AlfafloorGDVConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="AlfafloorGDVConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.СУБД_Альфапол.Properties.Settings.GlobalReference.Default.AlfafloorGDVConnectionString" Provider="System.Data.SqlClient" />
  8. </Connections>
  9. <Tables>
  10. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CityTableAdapter" GeneratorDataComponentClassName="CityTableAdapter" Name="City" UserDataComponentName="CityTableAdapter">
  11. <MainSource>
  12. <DbSource ConnectionRef="AlfafloorGDVConnectionString (Settings)" DbObjectName="AlfafloorGDV.dbo.City" 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].[City] WHERE (([IDCity] = @Original_IDCity) AND ((@IsNull_City = 1 AND [City] IS NULL) OR ([City] = @Original_City)))</CommandText>
  16. <Parameters>
  17. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDCity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDCity" SourceColumnNullMapping="false" SourceVersion="Original" />
  18. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_City" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="City" SourceColumnNullMapping="true" SourceVersion="Original" />
  19. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_City" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="City" SourceColumnNullMapping="false" SourceVersion="Original" />
  20. </Parameters>
  21. </DbCommand>
  22. </DeleteCommand>
  23. <InsertCommand>
  24. <DbCommand CommandType="Text" ModifiedByUser="false">
  25. <CommandText>INSERT INTO [dbo].[City] ([City]) VALUES (@City);
  26. SELECT IDCity, City FROM City WHERE (IDCity = SCOPE_IDENTITY())</CommandText>
  27. <Parameters>
  28. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@City" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="City" SourceColumnNullMapping="false" SourceVersion="Current" />
  29. </Parameters>
  30. </DbCommand>
  31. </InsertCommand>
  32. <SelectCommand>
  33. <DbCommand CommandType="Text" ModifiedByUser="false">
  34. <CommandText>SELECT IDCity, City FROM dbo.City</CommandText>
  35. <Parameters />
  36. </DbCommand>
  37. </SelectCommand>
  38. <UpdateCommand>
  39. <DbCommand CommandType="Text" ModifiedByUser="false">
  40. <CommandText>UPDATE [dbo].[City] SET [City] = @City WHERE (([IDCity] = @Original_IDCity) AND ((@IsNull_City = 1 AND [City] IS NULL) OR ([City] = @Original_City)));
  41. SELECT IDCity, City FROM City WHERE (IDCity = @IDCity)</CommandText>
  42. <Parameters>
  43. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@City" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="City" SourceColumnNullMapping="false" SourceVersion="Current" />
  44. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDCity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDCity" SourceColumnNullMapping="false" SourceVersion="Original" />
  45. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_City" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="City" SourceColumnNullMapping="true" SourceVersion="Original" />
  46. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_City" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="City" SourceColumnNullMapping="false" SourceVersion="Original" />
  47. <Parameter AllowDbNull="false" AutogeneratedName="IDCity" ColumnName="IDCity" DataSourceName="AlfafloorGDV.dbo.City" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IDCity" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IDCity" SourceColumnNullMapping="false" SourceVersion="Current" />
  48. </Parameters>
  49. </DbCommand>
  50. </UpdateCommand>
  51. </DbSource>
  52. </MainSource>
  53. <Mappings>
  54. <Mapping SourceColumn="IDCity" DataSetColumn="IDCity" />
  55. <Mapping SourceColumn="City" DataSetColumn="City" />
  56. </Mappings>
  57. <Sources />
  58. </TableAdapter>
  59. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ManagerTableAdapter" GeneratorDataComponentClassName="ManagerTableAdapter" Name="Manager" UserDataComponentName="ManagerTableAdapter">
  60. <MainSource>
  61. <DbSource ConnectionRef="AlfafloorGDVConnectionString (Settings)" DbObjectName="AlfafloorGDV.dbo.Manager" 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].[Manager] WHERE (([IDManager] = @Original_IDManager) 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_Patronomyc = 1 AND [Patronomyc] IS NULL) OR ([Patronomyc] = @Original_Patronomyc)) AND ((@IsNull_Login = 1 AND [Login] IS NULL) OR ([Login] = @Original_Login)) AND ((@IsNull_Password = 1 AND [Password] IS NULL) OR ([Password] = @Original_Password)) AND ((@IsNull_Photo = 1 AND [Photo] IS NULL) OR ([Photo] = @Original_Photo)))</CommandText>
  65. <Parameters>
  66. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDManager" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDManager" SourceColumnNullMapping="false" SourceVersion="Original" />
  67. <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" />
  68. <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" />
  69. <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" />
  70. <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" />
  71. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Patronomyc" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Patronomyc" SourceColumnNullMapping="true" SourceVersion="Original" />
  72. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Patronomyc" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronomyc" SourceColumnNullMapping="false" SourceVersion="Original" />
  73. <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" />
  74. <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" />
  75. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Password" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="true" SourceVersion="Original" />
  76. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Original" />
  77. <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" />
  78. <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" />
  79. </Parameters>
  80. </DbCommand>
  81. </DeleteCommand>
  82. <InsertCommand>
  83. <DbCommand CommandType="Text" ModifiedByUser="false">
  84. <CommandText>INSERT INTO [dbo].[Manager] ([Surname], [Name], [Patronomyc], [Login], [Password], [Photo]) VALUES (@Surname, @Name, @Patronomyc, @Login, @Password, @Photo);
  85. SELECT IDManager, Surname, Name, Patronomyc, Login, Password, Photo FROM Manager WHERE (IDManager = SCOPE_IDENTITY())</CommandText>
  86. <Parameters>
  87. <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" />
  88. <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" />
  89. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Patronomyc" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronomyc" SourceColumnNullMapping="false" SourceVersion="Current" />
  90. <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" />
  91. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Current" />
  92. <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" />
  93. </Parameters>
  94. </DbCommand>
  95. </InsertCommand>
  96. <SelectCommand>
  97. <DbCommand CommandType="Text" ModifiedByUser="false">
  98. <CommandText>SELECT IDManager, Surname, Name, Patronomyc, Login, Password, Photo FROM dbo.Manager</CommandText>
  99. <Parameters />
  100. </DbCommand>
  101. </SelectCommand>
  102. <UpdateCommand>
  103. <DbCommand CommandType="Text" ModifiedByUser="false">
  104. <CommandText>UPDATE [dbo].[Manager] SET [Surname] = @Surname, [Name] = @Name, [Patronomyc] = @Patronomyc, [Login] = @Login, [Password] = @Password, [Photo] = @Photo WHERE (([IDManager] = @Original_IDManager) 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_Patronomyc = 1 AND [Patronomyc] IS NULL) OR ([Patronomyc] = @Original_Patronomyc)) AND ((@IsNull_Login = 1 AND [Login] IS NULL) OR ([Login] = @Original_Login)) AND ((@IsNull_Password = 1 AND [Password] IS NULL) OR ([Password] = @Original_Password)) AND ((@IsNull_Photo = 1 AND [Photo] IS NULL) OR ([Photo] = @Original_Photo)));
  105. SELECT IDManager, Surname, Name, Patronomyc, Login, Password, Photo FROM Manager WHERE (IDManager = @IDManager)</CommandText>
  106. <Parameters>
  107. <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" />
  108. <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" />
  109. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Patronomyc" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronomyc" SourceColumnNullMapping="false" SourceVersion="Current" />
  110. <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" />
  111. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Current" />
  112. <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" />
  113. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDManager" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDManager" SourceColumnNullMapping="false" SourceVersion="Original" />
  114. <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" />
  115. <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" />
  116. <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" />
  117. <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" />
  118. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Patronomyc" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Patronomyc" SourceColumnNullMapping="true" SourceVersion="Original" />
  119. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Patronomyc" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronomyc" SourceColumnNullMapping="false" SourceVersion="Original" />
  120. <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" />
  121. <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" />
  122. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Password" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="true" SourceVersion="Original" />
  123. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Original" />
  124. <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" />
  125. <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" />
  126. <Parameter AllowDbNull="false" AutogeneratedName="IDManager" ColumnName="IDManager" DataSourceName="AlfafloorGDV.dbo.Manager" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IDManager" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IDManager" SourceColumnNullMapping="false" SourceVersion="Current" />
  127. </Parameters>
  128. </DbCommand>
  129. </UpdateCommand>
  130. </DbSource>
  131. </MainSource>
  132. <Mappings>
  133. <Mapping SourceColumn="IDManager" DataSetColumn="IDManager" />
  134. <Mapping SourceColumn="Surname" DataSetColumn="Surname" />
  135. <Mapping SourceColumn="Name" DataSetColumn="Name" />
  136. <Mapping SourceColumn="Patronomyc" DataSetColumn="Patronomyc" />
  137. <Mapping SourceColumn="Login" DataSetColumn="Login" />
  138. <Mapping SourceColumn="Password" DataSetColumn="Password" />
  139. <Mapping SourceColumn="Photo" DataSetColumn="Photo" />
  140. </Mappings>
  141. <Sources />
  142. </TableAdapter>
  143. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PartnerTableAdapter" GeneratorDataComponentClassName="PartnerTableAdapter" Name="Partner" UserDataComponentName="PartnerTableAdapter">
  144. <MainSource>
  145. <DbSource ConnectionRef="AlfafloorGDVConnectionString (Settings)" DbObjectName="AlfafloorGDV.dbo.Partner" 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">
  146. <DeleteCommand>
  147. <DbCommand CommandType="Text" ModifiedByUser="false">
  148. <CommandText>DELETE FROM [dbo].[Partner] WHERE (([IDPartner] = @Original_IDPartner) AND ([IDTypePartner] = @Original_IDTypePartner) AND ((@IsNull_Namepartner = 1 AND [Namepartner] IS NULL) OR ([Namepartner] = @Original_Namepartner)) 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_Patronomyc = 1 AND [Patronomyc] IS NULL) OR ([Patronomyc] = @Original_Patronomyc)) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ((@IsNull_Phone = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)) AND ((@IsNull_IDPostCode = 1 AND [IDPostCode] IS NULL) OR ([IDPostCode] = @Original_IDPostCode)) AND ((@IsNull_IDRegion = 1 AND [IDRegion] IS NULL) OR ([IDRegion] = @Original_IDRegion)) AND ((@IsNull_IDCity = 1 AND [IDCity] IS NULL) OR ([IDCity] = @Original_IDCity)) AND ((@IsNull_IDStreet = 1 AND [IDStreet] IS NULL) OR ([IDStreet] = @Original_IDStreet)) AND ((@IsNull_House = 1 AND [House] IS NULL) OR ([House] = @Original_House)) AND ((@IsNull_INN = 1 AND [INN] IS NULL) OR ([INN] = @Original_INN)) AND ((@IsNull_Rating = 1 AND [Rating] IS NULL) OR ([Rating] = @Original_Rating)))</CommandText>
  149. <Parameters>
  150. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDPartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDPartner" SourceColumnNullMapping="false" SourceVersion="Original" />
  151. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDTypePartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDTypePartner" SourceColumnNullMapping="false" SourceVersion="Original" />
  152. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Namepartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Namepartner" SourceColumnNullMapping="true" SourceVersion="Original" />
  153. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Namepartner" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Namepartner" SourceColumnNullMapping="false" SourceVersion="Original" />
  154. <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" />
  155. <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" />
  156. <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" />
  157. <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" />
  158. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Patronomyc" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Patronomyc" SourceColumnNullMapping="true" SourceVersion="Original" />
  159. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Patronomyc" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronomyc" SourceColumnNullMapping="false" SourceVersion="Original" />
  160. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Email" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="true" SourceVersion="Original" />
  161. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Original" />
  162. <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" />
  163. <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" />
  164. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IDPostCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDPostCode" SourceColumnNullMapping="true" SourceVersion="Original" />
  165. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDPostCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDPostCode" SourceColumnNullMapping="false" SourceVersion="Original" />
  166. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IDRegion" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDRegion" SourceColumnNullMapping="true" SourceVersion="Original" />
  167. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDRegion" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDRegion" SourceColumnNullMapping="false" SourceVersion="Original" />
  168. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IDCity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDCity" SourceColumnNullMapping="true" SourceVersion="Original" />
  169. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDCity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDCity" SourceColumnNullMapping="false" SourceVersion="Original" />
  170. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IDStreet" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDStreet" SourceColumnNullMapping="true" SourceVersion="Original" />
  171. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDStreet" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDStreet" SourceColumnNullMapping="false" SourceVersion="Original" />
  172. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_House" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="House" SourceColumnNullMapping="true" SourceVersion="Original" />
  173. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_House" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="House" SourceColumnNullMapping="false" SourceVersion="Original" />
  174. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_INN" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INN" SourceColumnNullMapping="true" SourceVersion="Original" />
  175. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_INN" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="INN" SourceColumnNullMapping="false" SourceVersion="Original" />
  176. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Rating" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Rating" SourceColumnNullMapping="true" SourceVersion="Original" />
  177. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Rating" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Rating" SourceColumnNullMapping="false" SourceVersion="Original" />
  178. </Parameters>
  179. </DbCommand>
  180. </DeleteCommand>
  181. <InsertCommand>
  182. <DbCommand CommandType="Text" ModifiedByUser="false">
  183. <CommandText>INSERT INTO [dbo].[Partner] ([IDTypePartner], [Namepartner], [Surname], [Name], [Patronomyc], [Email], [Phone], [IDPostCode], [IDRegion], [IDCity], [IDStreet], [House], [INN], [Rating]) VALUES (@IDTypePartner, @Namepartner, @Surname, @Name, @Patronomyc, @Email, @Phone, @IDPostCode, @IDRegion, @IDCity, @IDStreet, @House, @INN, @Rating);
  184. SELECT IDPartner, IDTypePartner, Namepartner, Surname, Name, Patronomyc, Email, Phone, IDPostCode, IDRegion, IDCity, IDStreet, House, INN, Rating FROM Partner WHERE (IDPartner = SCOPE_IDENTITY())</CommandText>
  185. <Parameters>
  186. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IDTypePartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDTypePartner" SourceColumnNullMapping="false" SourceVersion="Current" />
  187. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Namepartner" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Namepartner" SourceColumnNullMapping="false" SourceVersion="Current" />
  188. <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" />
  189. <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" />
  190. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Patronomyc" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronomyc" SourceColumnNullMapping="false" SourceVersion="Current" />
  191. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Current" />
  192. <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" />
  193. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IDPostCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDPostCode" SourceColumnNullMapping="false" SourceVersion="Current" />
  194. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IDRegion" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDRegion" SourceColumnNullMapping="false" SourceVersion="Current" />
  195. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IDCity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDCity" SourceColumnNullMapping="false" SourceVersion="Current" />
  196. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IDStreet" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDStreet" SourceColumnNullMapping="false" SourceVersion="Current" />
  197. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@House" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="House" SourceColumnNullMapping="false" SourceVersion="Current" />
  198. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@INN" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="INN" SourceColumnNullMapping="false" SourceVersion="Current" />
  199. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Rating" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Rating" SourceColumnNullMapping="false" SourceVersion="Current" />
  200. </Parameters>
  201. </DbCommand>
  202. </InsertCommand>
  203. <SelectCommand>
  204. <DbCommand CommandType="Text" ModifiedByUser="false">
  205. <CommandText>SELECT IDPartner, IDTypePartner, Namepartner, Surname, Name, Patronomyc, Email, Phone, IDPostCode, IDRegion, IDCity, IDStreet, House, INN, Rating FROM dbo.Partner</CommandText>
  206. <Parameters />
  207. </DbCommand>
  208. </SelectCommand>
  209. <UpdateCommand>
  210. <DbCommand CommandType="Text" ModifiedByUser="false">
  211. <CommandText>UPDATE [dbo].[Partner] SET [IDTypePartner] = @IDTypePartner, [Namepartner] = @Namepartner, [Surname] = @Surname, [Name] = @Name, [Patronomyc] = @Patronomyc, [Email] = @Email, [Phone] = @Phone, [IDPostCode] = @IDPostCode, [IDRegion] = @IDRegion, [IDCity] = @IDCity, [IDStreet] = @IDStreet, [House] = @House, [INN] = @INN, [Rating] = @Rating WHERE (([IDPartner] = @Original_IDPartner) AND ([IDTypePartner] = @Original_IDTypePartner) AND ((@IsNull_Namepartner = 1 AND [Namepartner] IS NULL) OR ([Namepartner] = @Original_Namepartner)) 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_Patronomyc = 1 AND [Patronomyc] IS NULL) OR ([Patronomyc] = @Original_Patronomyc)) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ((@IsNull_Phone = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)) AND ((@IsNull_IDPostCode = 1 AND [IDPostCode] IS NULL) OR ([IDPostCode] = @Original_IDPostCode)) AND ((@IsNull_IDRegion = 1 AND [IDRegion] IS NULL) OR ([IDRegion] = @Original_IDRegion)) AND ((@IsNull_IDCity = 1 AND [IDCity] IS NULL) OR ([IDCity] = @Original_IDCity)) AND ((@IsNull_IDStreet = 1 AND [IDStreet] IS NULL) OR ([IDStreet] = @Original_IDStreet)) AND ((@IsNull_House = 1 AND [House] IS NULL) OR ([House] = @Original_House)) AND ((@IsNull_INN = 1 AND [INN] IS NULL) OR ([INN] = @Original_INN)) AND ((@IsNull_Rating = 1 AND [Rating] IS NULL) OR ([Rating] = @Original_Rating)));
  212. SELECT IDPartner, IDTypePartner, Namepartner, Surname, Name, Patronomyc, Email, Phone, IDPostCode, IDRegion, IDCity, IDStreet, House, INN, Rating FROM Partner WHERE (IDPartner = @IDPartner)</CommandText>
  213. <Parameters>
  214. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IDTypePartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDTypePartner" SourceColumnNullMapping="false" SourceVersion="Current" />
  215. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Namepartner" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Namepartner" SourceColumnNullMapping="false" SourceVersion="Current" />
  216. <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" />
  217. <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" />
  218. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Patronomyc" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronomyc" SourceColumnNullMapping="false" SourceVersion="Current" />
  219. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Current" />
  220. <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" />
  221. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IDPostCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDPostCode" SourceColumnNullMapping="false" SourceVersion="Current" />
  222. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IDRegion" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDRegion" SourceColumnNullMapping="false" SourceVersion="Current" />
  223. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IDCity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDCity" SourceColumnNullMapping="false" SourceVersion="Current" />
  224. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IDStreet" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDStreet" SourceColumnNullMapping="false" SourceVersion="Current" />
  225. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@House" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="House" SourceColumnNullMapping="false" SourceVersion="Current" />
  226. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@INN" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="INN" SourceColumnNullMapping="false" SourceVersion="Current" />
  227. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Rating" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Rating" SourceColumnNullMapping="false" SourceVersion="Current" />
  228. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDPartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDPartner" SourceColumnNullMapping="false" SourceVersion="Original" />
  229. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDTypePartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDTypePartner" SourceColumnNullMapping="false" SourceVersion="Original" />
  230. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Namepartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Namepartner" SourceColumnNullMapping="true" SourceVersion="Original" />
  231. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Namepartner" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Namepartner" SourceColumnNullMapping="false" SourceVersion="Original" />
  232. <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" />
  233. <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" />
  234. <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" />
  235. <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" />
  236. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Patronomyc" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Patronomyc" SourceColumnNullMapping="true" SourceVersion="Original" />
  237. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Patronomyc" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronomyc" SourceColumnNullMapping="false" SourceVersion="Original" />
  238. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Email" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="true" SourceVersion="Original" />
  239. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Original" />
  240. <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" />
  241. <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" />
  242. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IDPostCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDPostCode" SourceColumnNullMapping="true" SourceVersion="Original" />
  243. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDPostCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDPostCode" SourceColumnNullMapping="false" SourceVersion="Original" />
  244. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IDRegion" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDRegion" SourceColumnNullMapping="true" SourceVersion="Original" />
  245. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDRegion" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDRegion" SourceColumnNullMapping="false" SourceVersion="Original" />
  246. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IDCity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDCity" SourceColumnNullMapping="true" SourceVersion="Original" />
  247. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDCity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDCity" SourceColumnNullMapping="false" SourceVersion="Original" />
  248. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IDStreet" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDStreet" SourceColumnNullMapping="true" SourceVersion="Original" />
  249. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDStreet" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDStreet" SourceColumnNullMapping="false" SourceVersion="Original" />
  250. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_House" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="House" SourceColumnNullMapping="true" SourceVersion="Original" />
  251. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_House" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="House" SourceColumnNullMapping="false" SourceVersion="Original" />
  252. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_INN" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INN" SourceColumnNullMapping="true" SourceVersion="Original" />
  253. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_INN" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="INN" SourceColumnNullMapping="false" SourceVersion="Original" />
  254. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Rating" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Rating" SourceColumnNullMapping="true" SourceVersion="Original" />
  255. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Rating" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Rating" SourceColumnNullMapping="false" SourceVersion="Original" />
  256. <Parameter AllowDbNull="false" AutogeneratedName="IDPartner" ColumnName="IDPartner" DataSourceName="AlfafloorGDV.dbo.Partner" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IDPartner" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IDPartner" SourceColumnNullMapping="false" SourceVersion="Current" />
  257. </Parameters>
  258. </DbCommand>
  259. </UpdateCommand>
  260. </DbSource>
  261. </MainSource>
  262. <Mappings>
  263. <Mapping SourceColumn="IDPartner" DataSetColumn="IDPartner" />
  264. <Mapping SourceColumn="IDTypePartner" DataSetColumn="IDTypePartner" />
  265. <Mapping SourceColumn="Namepartner" DataSetColumn="Namepartner" />
  266. <Mapping SourceColumn="Surname" DataSetColumn="Surname" />
  267. <Mapping SourceColumn="Name" DataSetColumn="Name" />
  268. <Mapping SourceColumn="Patronomyc" DataSetColumn="Patronomyc" />
  269. <Mapping SourceColumn="Email" DataSetColumn="Email" />
  270. <Mapping SourceColumn="Phone" DataSetColumn="Phone" />
  271. <Mapping SourceColumn="IDPostCode" DataSetColumn="IDPostCode" />
  272. <Mapping SourceColumn="IDRegion" DataSetColumn="IDRegion" />
  273. <Mapping SourceColumn="IDCity" DataSetColumn="IDCity" />
  274. <Mapping SourceColumn="IDStreet" DataSetColumn="IDStreet" />
  275. <Mapping SourceColumn="House" DataSetColumn="House" />
  276. <Mapping SourceColumn="INN" DataSetColumn="INN" />
  277. <Mapping SourceColumn="Rating" DataSetColumn="Rating" />
  278. </Mappings>
  279. <Sources />
  280. </TableAdapter>
  281. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PartnerProductsTableAdapter" GeneratorDataComponentClassName="PartnerProductsTableAdapter" Name="PartnerProducts" UserDataComponentName="PartnerProductsTableAdapter">
  282. <MainSource>
  283. <DbSource ConnectionRef="AlfafloorGDVConnectionString (Settings)" DbObjectName="AlfafloorGDV.dbo.PartnerProducts" 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">
  284. <DeleteCommand>
  285. <DbCommand CommandType="Text" ModifiedByUser="false">
  286. <CommandText>DELETE FROM [dbo].[PartnerProducts] WHERE (([IDPartnerProduct] = @Original_IDPartnerProduct) AND ((@IsNull_IDProduct = 1 AND [IDProduct] IS NULL) OR ([IDProduct] = @Original_IDProduct)) AND ((@IsNull_IDPartner = 1 AND [IDPartner] IS NULL) OR ([IDPartner] = @Original_IDPartner)) AND ((@IsNull_CountProduct = 1 AND [CountProduct] IS NULL) OR ([CountProduct] = @Original_CountProduct)) AND ((@IsNull_DateSale = 1 AND [DateSale] IS NULL) OR ([DateSale] = @Original_DateSale)))</CommandText>
  287. <Parameters>
  288. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDPartnerProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDPartnerProduct" SourceColumnNullMapping="false" SourceVersion="Original" />
  289. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IDProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDProduct" SourceColumnNullMapping="true" SourceVersion="Original" />
  290. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDProduct" SourceColumnNullMapping="false" SourceVersion="Original" />
  291. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IDPartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDPartner" SourceColumnNullMapping="true" SourceVersion="Original" />
  292. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDPartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDPartner" SourceColumnNullMapping="false" SourceVersion="Original" />
  293. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CountProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountProduct" SourceColumnNullMapping="true" SourceVersion="Original" />
  294. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CountProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountProduct" SourceColumnNullMapping="false" SourceVersion="Original" />
  295. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DateSale" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DateSale" SourceColumnNullMapping="true" SourceVersion="Original" />
  296. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DateSale" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateSale" SourceColumnNullMapping="false" SourceVersion="Original" />
  297. </Parameters>
  298. </DbCommand>
  299. </DeleteCommand>
  300. <InsertCommand>
  301. <DbCommand CommandType="Text" ModifiedByUser="false">
  302. <CommandText>INSERT INTO [dbo].[PartnerProducts] ([IDProduct], [IDPartner], [CountProduct], [DateSale]) VALUES (@IDProduct, @IDPartner, @CountProduct, @DateSale);
  303. SELECT IDPartnerProduct, IDProduct, IDPartner, CountProduct, DateSale FROM PartnerProducts WHERE (IDPartnerProduct = SCOPE_IDENTITY())</CommandText>
  304. <Parameters>
  305. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IDProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDProduct" SourceColumnNullMapping="false" SourceVersion="Current" />
  306. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IDPartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDPartner" SourceColumnNullMapping="false" SourceVersion="Current" />
  307. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CountProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountProduct" SourceColumnNullMapping="false" SourceVersion="Current" />
  308. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DateSale" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateSale" SourceColumnNullMapping="false" SourceVersion="Current" />
  309. </Parameters>
  310. </DbCommand>
  311. </InsertCommand>
  312. <SelectCommand>
  313. <DbCommand CommandType="Text" ModifiedByUser="false">
  314. <CommandText>SELECT IDPartnerProduct, IDProduct, IDPartner, CountProduct, DateSale FROM dbo.PartnerProducts</CommandText>
  315. <Parameters />
  316. </DbCommand>
  317. </SelectCommand>
  318. <UpdateCommand>
  319. <DbCommand CommandType="Text" ModifiedByUser="false">
  320. <CommandText>UPDATE [dbo].[PartnerProducts] SET [IDProduct] = @IDProduct, [IDPartner] = @IDPartner, [CountProduct] = @CountProduct, [DateSale] = @DateSale WHERE (([IDPartnerProduct] = @Original_IDPartnerProduct) AND ((@IsNull_IDProduct = 1 AND [IDProduct] IS NULL) OR ([IDProduct] = @Original_IDProduct)) AND ((@IsNull_IDPartner = 1 AND [IDPartner] IS NULL) OR ([IDPartner] = @Original_IDPartner)) AND ((@IsNull_CountProduct = 1 AND [CountProduct] IS NULL) OR ([CountProduct] = @Original_CountProduct)) AND ((@IsNull_DateSale = 1 AND [DateSale] IS NULL) OR ([DateSale] = @Original_DateSale)));
  321. SELECT IDPartnerProduct, IDProduct, IDPartner, CountProduct, DateSale FROM PartnerProducts WHERE (IDPartnerProduct = @IDPartnerProduct)</CommandText>
  322. <Parameters>
  323. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IDProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDProduct" SourceColumnNullMapping="false" SourceVersion="Current" />
  324. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IDPartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDPartner" SourceColumnNullMapping="false" SourceVersion="Current" />
  325. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CountProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountProduct" SourceColumnNullMapping="false" SourceVersion="Current" />
  326. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DateSale" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateSale" SourceColumnNullMapping="false" SourceVersion="Current" />
  327. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDPartnerProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDPartnerProduct" SourceColumnNullMapping="false" SourceVersion="Original" />
  328. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IDProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDProduct" SourceColumnNullMapping="true" SourceVersion="Original" />
  329. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDProduct" SourceColumnNullMapping="false" SourceVersion="Original" />
  330. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IDPartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDPartner" SourceColumnNullMapping="true" SourceVersion="Original" />
  331. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDPartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDPartner" SourceColumnNullMapping="false" SourceVersion="Original" />
  332. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CountProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountProduct" SourceColumnNullMapping="true" SourceVersion="Original" />
  333. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CountProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountProduct" SourceColumnNullMapping="false" SourceVersion="Original" />
  334. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DateSale" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DateSale" SourceColumnNullMapping="true" SourceVersion="Original" />
  335. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DateSale" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateSale" SourceColumnNullMapping="false" SourceVersion="Original" />
  336. <Parameter AllowDbNull="false" AutogeneratedName="IDPartnerProduct" ColumnName="IDPartnerProduct" DataSourceName="AlfafloorGDV.dbo.PartnerProducts" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IDPartnerProduct" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IDPartnerProduct" SourceColumnNullMapping="false" SourceVersion="Current" />
  337. </Parameters>
  338. </DbCommand>
  339. </UpdateCommand>
  340. </DbSource>
  341. </MainSource>
  342. <Mappings>
  343. <Mapping SourceColumn="IDPartnerProduct" DataSetColumn="IDPartnerProduct" />
  344. <Mapping SourceColumn="IDProduct" DataSetColumn="IDProduct" />
  345. <Mapping SourceColumn="IDPartner" DataSetColumn="IDPartner" />
  346. <Mapping SourceColumn="CountProduct" DataSetColumn="CountProduct" />
  347. <Mapping SourceColumn="DateSale" DataSetColumn="DateSale" />
  348. </Mappings>
  349. <Sources />
  350. </TableAdapter>
  351. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PostCodeTableAdapter" GeneratorDataComponentClassName="PostCodeTableAdapter" Name="PostCode" UserDataComponentName="PostCodeTableAdapter">
  352. <MainSource>
  353. <DbSource ConnectionRef="AlfafloorGDVConnectionString (Settings)" DbObjectName="AlfafloorGDV.dbo.PostCode" 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">
  354. <DeleteCommand>
  355. <DbCommand CommandType="Text" ModifiedByUser="false">
  356. <CommandText>DELETE FROM [dbo].[PostCode] WHERE (([IDPostCode] = @Original_IDPostCode) AND ((@IsNull_PostCode = 1 AND [PostCode] IS NULL) OR ([PostCode] = @Original_PostCode)))</CommandText>
  357. <Parameters>
  358. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDPostCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDPostCode" SourceColumnNullMapping="false" SourceVersion="Original" />
  359. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PostCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PostCode" SourceColumnNullMapping="true" SourceVersion="Original" />
  360. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PostCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PostCode" SourceColumnNullMapping="false" SourceVersion="Original" />
  361. </Parameters>
  362. </DbCommand>
  363. </DeleteCommand>
  364. <InsertCommand>
  365. <DbCommand CommandType="Text" ModifiedByUser="false">
  366. <CommandText>INSERT INTO [dbo].[PostCode] ([PostCode]) VALUES (@PostCode);
  367. SELECT IDPostCode, PostCode FROM PostCode WHERE (IDPostCode = SCOPE_IDENTITY())</CommandText>
  368. <Parameters>
  369. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PostCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PostCode" SourceColumnNullMapping="false" SourceVersion="Current" />
  370. </Parameters>
  371. </DbCommand>
  372. </InsertCommand>
  373. <SelectCommand>
  374. <DbCommand CommandType="Text" ModifiedByUser="false">
  375. <CommandText>SELECT IDPostCode, PostCode FROM dbo.PostCode</CommandText>
  376. <Parameters />
  377. </DbCommand>
  378. </SelectCommand>
  379. <UpdateCommand>
  380. <DbCommand CommandType="Text" ModifiedByUser="false">
  381. <CommandText>UPDATE [dbo].[PostCode] SET [PostCode] = @PostCode WHERE (([IDPostCode] = @Original_IDPostCode) AND ((@IsNull_PostCode = 1 AND [PostCode] IS NULL) OR ([PostCode] = @Original_PostCode)));
  382. SELECT IDPostCode, PostCode FROM PostCode WHERE (IDPostCode = @IDPostCode)</CommandText>
  383. <Parameters>
  384. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PostCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PostCode" SourceColumnNullMapping="false" SourceVersion="Current" />
  385. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDPostCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDPostCode" SourceColumnNullMapping="false" SourceVersion="Original" />
  386. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PostCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PostCode" SourceColumnNullMapping="true" SourceVersion="Original" />
  387. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PostCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PostCode" SourceColumnNullMapping="false" SourceVersion="Original" />
  388. <Parameter AllowDbNull="false" AutogeneratedName="IDPostCode" ColumnName="IDPostCode" DataSourceName="AlfafloorGDV.dbo.PostCode" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IDPostCode" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IDPostCode" SourceColumnNullMapping="false" SourceVersion="Current" />
  389. </Parameters>
  390. </DbCommand>
  391. </UpdateCommand>
  392. </DbSource>
  393. </MainSource>
  394. <Mappings>
  395. <Mapping SourceColumn="IDPostCode" DataSetColumn="IDPostCode" />
  396. <Mapping SourceColumn="PostCode" DataSetColumn="PostCode" />
  397. </Mappings>
  398. <Sources />
  399. </TableAdapter>
  400. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductTableAdapter" GeneratorDataComponentClassName="ProductTableAdapter" Name="Product" UserDataComponentName="ProductTableAdapter">
  401. <MainSource>
  402. <DbSource ConnectionRef="AlfafloorGDVConnectionString (Settings)" DbObjectName="AlfafloorGDV.dbo.Product" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
  403. <DeleteCommand>
  404. <DbCommand CommandType="Text" ModifiedByUser="false">
  405. <CommandText>DELETE FROM [dbo].[Product] WHERE (([IDProduct] = @Original_IDProduct) AND ((@IsNull_IDProductType = 1 AND [IDProductType] IS NULL) OR ([IDProductType] = @Original_IDProductType)) AND ((@IsNull_ProductName = 1 AND [ProductName] IS NULL) OR ([ProductName] = @Original_ProductName)) AND ((@IsNull_Article = 1 AND [Article] IS NULL) OR ([Article] = @Original_Article)) AND ((@IsNull_Cost = 1 AND [Cost] IS NULL) OR ([Cost] = @Original_Cost)))</CommandText>
  406. <Parameters>
  407. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDProduct" SourceColumnNullMapping="false" SourceVersion="Original" />
  408. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IDProductType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDProductType" SourceColumnNullMapping="true" SourceVersion="Original" />
  409. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDProductType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDProductType" SourceColumnNullMapping="false" SourceVersion="Original" />
  410. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductName" SourceColumnNullMapping="true" SourceVersion="Original" />
  411. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ProductName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductName" SourceColumnNullMapping="false" SourceVersion="Original" />
  412. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Article" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Article" SourceColumnNullMapping="true" SourceVersion="Original" />
  413. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Article" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Article" SourceColumnNullMapping="false" SourceVersion="Original" />
  414. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Cost" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="true" SourceVersion="Original" />
  415. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Cost" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Original" />
  416. </Parameters>
  417. </DbCommand>
  418. </DeleteCommand>
  419. <InsertCommand>
  420. <DbCommand CommandType="Text" ModifiedByUser="false">
  421. <CommandText>INSERT INTO [dbo].[Product] ([IDProductType], [ProductName], [Article], [Cost]) VALUES (@IDProductType, @ProductName, @Article, @Cost);
  422. SELECT IDProduct, IDProductType, ProductName, Article, Cost FROM Product WHERE (IDProduct = SCOPE_IDENTITY())</CommandText>
  423. <Parameters>
  424. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IDProductType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDProductType" SourceColumnNullMapping="false" SourceVersion="Current" />
  425. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductName" SourceColumnNullMapping="false" SourceVersion="Current" />
  426. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Article" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Article" SourceColumnNullMapping="false" SourceVersion="Current" />
  427. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Cost" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Current" />
  428. </Parameters>
  429. </DbCommand>
  430. </InsertCommand>
  431. <SelectCommand>
  432. <DbCommand CommandType="Text" ModifiedByUser="false">
  433. <CommandText>SELECT IDProduct, IDProductType, ProductName, Article, Cost FROM dbo.Product</CommandText>
  434. <Parameters />
  435. </DbCommand>
  436. </SelectCommand>
  437. <UpdateCommand>
  438. <DbCommand CommandType="Text" ModifiedByUser="false">
  439. <CommandText>UPDATE [dbo].[Product] SET [IDProductType] = @IDProductType, [ProductName] = @ProductName, [Article] = @Article, [Cost] = @Cost WHERE (([IDProduct] = @Original_IDProduct) AND ((@IsNull_IDProductType = 1 AND [IDProductType] IS NULL) OR ([IDProductType] = @Original_IDProductType)) AND ((@IsNull_ProductName = 1 AND [ProductName] IS NULL) OR ([ProductName] = @Original_ProductName)) AND ((@IsNull_Article = 1 AND [Article] IS NULL) OR ([Article] = @Original_Article)) AND ((@IsNull_Cost = 1 AND [Cost] IS NULL) OR ([Cost] = @Original_Cost)));
  440. SELECT IDProduct, IDProductType, ProductName, Article, Cost FROM Product WHERE (IDProduct = @IDProduct)</CommandText>
  441. <Parameters>
  442. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IDProductType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDProductType" SourceColumnNullMapping="false" SourceVersion="Current" />
  443. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductName" SourceColumnNullMapping="false" SourceVersion="Current" />
  444. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Article" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Article" SourceColumnNullMapping="false" SourceVersion="Current" />
  445. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Cost" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Current" />
  446. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDProduct" SourceColumnNullMapping="false" SourceVersion="Original" />
  447. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IDProductType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDProductType" SourceColumnNullMapping="true" SourceVersion="Original" />
  448. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDProductType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDProductType" SourceColumnNullMapping="false" SourceVersion="Original" />
  449. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductName" SourceColumnNullMapping="true" SourceVersion="Original" />
  450. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ProductName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductName" SourceColumnNullMapping="false" SourceVersion="Original" />
  451. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Article" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Article" SourceColumnNullMapping="true" SourceVersion="Original" />
  452. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Article" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Article" SourceColumnNullMapping="false" SourceVersion="Original" />
  453. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Cost" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="true" SourceVersion="Original" />
  454. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Cost" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Original" />
  455. <Parameter AllowDbNull="false" AutogeneratedName="IDProduct" ColumnName="IDProduct" DataSourceName="AlfafloorGDV.dbo.Product" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IDProduct" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IDProduct" SourceColumnNullMapping="false" SourceVersion="Current" />
  456. </Parameters>
  457. </DbCommand>
  458. </UpdateCommand>
  459. </DbSource>
  460. </MainSource>
  461. <Mappings>
  462. <Mapping SourceColumn="IDProduct" DataSetColumn="IDProduct" />
  463. <Mapping SourceColumn="IDProductType" DataSetColumn="IDProductType" />
  464. <Mapping SourceColumn="ProductName" DataSetColumn="ProductName" />
  465. <Mapping SourceColumn="Article" DataSetColumn="Article" />
  466. <Mapping SourceColumn="Cost" DataSetColumn="Cost" />
  467. </Mappings>
  468. <Sources />
  469. </TableAdapter>
  470. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductTypeTableAdapter" GeneratorDataComponentClassName="ProductTypeTableAdapter" Name="ProductType" UserDataComponentName="ProductTypeTableAdapter">
  471. <MainSource>
  472. <DbSource ConnectionRef="AlfafloorGDVConnectionString (Settings)" DbObjectName="AlfafloorGDV.dbo.ProductType" 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">
  473. <DeleteCommand>
  474. <DbCommand CommandType="Text" ModifiedByUser="false">
  475. <CommandText>DELETE FROM [dbo].[ProductType] WHERE (([IDProductType] = @Original_IDProductType) AND ((@IsNull_ProductType = 1 AND [ProductType] IS NULL) OR ([ProductType] = @Original_ProductType)) AND ((@IsNull_Сoefficient = 1 AND [Сoefficient] IS NULL) OR ([Сoefficient] = @Original_Сoefficient)))</CommandText>
  476. <Parameters>
  477. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDProductType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDProductType" SourceColumnNullMapping="false" SourceVersion="Original" />
  478. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductType" SourceColumnNullMapping="true" SourceVersion="Original" />
  479. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ProductType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductType" SourceColumnNullMapping="false" SourceVersion="Original" />
  480. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Сoefficient" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Сoefficient" SourceColumnNullMapping="true" SourceVersion="Original" />
  481. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Сoefficient" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Сoefficient" SourceColumnNullMapping="false" SourceVersion="Original" />
  482. </Parameters>
  483. </DbCommand>
  484. </DeleteCommand>
  485. <InsertCommand>
  486. <DbCommand CommandType="Text" ModifiedByUser="false">
  487. <CommandText>INSERT INTO [dbo].[ProductType] ([ProductType], [Сoefficient]) VALUES (@ProductType, @Сoefficient);
  488. SELECT IDProductType, ProductType, Сoefficient FROM ProductType WHERE (IDProductType = SCOPE_IDENTITY())</CommandText>
  489. <Parameters>
  490. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductType" SourceColumnNullMapping="false" SourceVersion="Current" />
  491. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Сoefficient" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Сoefficient" SourceColumnNullMapping="false" SourceVersion="Current" />
  492. </Parameters>
  493. </DbCommand>
  494. </InsertCommand>
  495. <SelectCommand>
  496. <DbCommand CommandType="Text" ModifiedByUser="false">
  497. <CommandText>SELECT IDProductType, ProductType, Сoefficient FROM dbo.ProductType</CommandText>
  498. <Parameters />
  499. </DbCommand>
  500. </SelectCommand>
  501. <UpdateCommand>
  502. <DbCommand CommandType="Text" ModifiedByUser="false">
  503. <CommandText>UPDATE [dbo].[ProductType] SET [ProductType] = @ProductType, [Сoefficient] = @Сoefficient WHERE (([IDProductType] = @Original_IDProductType) AND ((@IsNull_ProductType = 1 AND [ProductType] IS NULL) OR ([ProductType] = @Original_ProductType)) AND ((@IsNull_Сoefficient = 1 AND [Сoefficient] IS NULL) OR ([Сoefficient] = @Original_Сoefficient)));
  504. SELECT IDProductType, ProductType, Сoefficient FROM ProductType WHERE (IDProductType = @IDProductType)</CommandText>
  505. <Parameters>
  506. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductType" SourceColumnNullMapping="false" SourceVersion="Current" />
  507. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Сoefficient" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Сoefficient" SourceColumnNullMapping="false" SourceVersion="Current" />
  508. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDProductType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDProductType" SourceColumnNullMapping="false" SourceVersion="Original" />
  509. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductType" SourceColumnNullMapping="true" SourceVersion="Original" />
  510. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ProductType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductType" SourceColumnNullMapping="false" SourceVersion="Original" />
  511. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Сoefficient" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Сoefficient" SourceColumnNullMapping="true" SourceVersion="Original" />
  512. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Сoefficient" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Сoefficient" SourceColumnNullMapping="false" SourceVersion="Original" />
  513. <Parameter AllowDbNull="false" AutogeneratedName="IDProductType" ColumnName="IDProductType" DataSourceName="AlfafloorGDV.dbo.ProductType" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IDProductType" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IDProductType" SourceColumnNullMapping="false" SourceVersion="Current" />
  514. </Parameters>
  515. </DbCommand>
  516. </UpdateCommand>
  517. </DbSource>
  518. </MainSource>
  519. <Mappings>
  520. <Mapping SourceColumn="IDProductType" DataSetColumn="IDProductType" />
  521. <Mapping SourceColumn="ProductType" DataSetColumn="ProductType" />
  522. <Mapping SourceColumn="Сoefficient" DataSetColumn="Сoefficient" />
  523. </Mappings>
  524. <Sources />
  525. </TableAdapter>
  526. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="RegionTableAdapter" GeneratorDataComponentClassName="RegionTableAdapter" Name="Region" UserDataComponentName="RegionTableAdapter">
  527. <MainSource>
  528. <DbSource ConnectionRef="AlfafloorGDVConnectionString (Settings)" DbObjectName="AlfafloorGDV.dbo.Region" 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">
  529. <DeleteCommand>
  530. <DbCommand CommandType="Text" ModifiedByUser="false">
  531. <CommandText>DELETE FROM [dbo].[Region] WHERE (([IDRegion] = @Original_IDRegion) AND ((@IsNull_Region = 1 AND [Region] IS NULL) OR ([Region] = @Original_Region)))</CommandText>
  532. <Parameters>
  533. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDRegion" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDRegion" SourceColumnNullMapping="false" SourceVersion="Original" />
  534. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Region" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Region" SourceColumnNullMapping="true" SourceVersion="Original" />
  535. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Region" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Region" SourceColumnNullMapping="false" SourceVersion="Original" />
  536. </Parameters>
  537. </DbCommand>
  538. </DeleteCommand>
  539. <InsertCommand>
  540. <DbCommand CommandType="Text" ModifiedByUser="false">
  541. <CommandText>INSERT INTO [dbo].[Region] ([Region]) VALUES (@Region);
  542. SELECT IDRegion, Region FROM Region WHERE (IDRegion = SCOPE_IDENTITY())</CommandText>
  543. <Parameters>
  544. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Region" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Region" SourceColumnNullMapping="false" SourceVersion="Current" />
  545. </Parameters>
  546. </DbCommand>
  547. </InsertCommand>
  548. <SelectCommand>
  549. <DbCommand CommandType="Text" ModifiedByUser="false">
  550. <CommandText>SELECT IDRegion, Region FROM dbo.Region</CommandText>
  551. <Parameters />
  552. </DbCommand>
  553. </SelectCommand>
  554. <UpdateCommand>
  555. <DbCommand CommandType="Text" ModifiedByUser="false">
  556. <CommandText>UPDATE [dbo].[Region] SET [Region] = @Region WHERE (([IDRegion] = @Original_IDRegion) AND ((@IsNull_Region = 1 AND [Region] IS NULL) OR ([Region] = @Original_Region)));
  557. SELECT IDRegion, Region FROM Region WHERE (IDRegion = @IDRegion)</CommandText>
  558. <Parameters>
  559. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Region" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Region" SourceColumnNullMapping="false" SourceVersion="Current" />
  560. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDRegion" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDRegion" SourceColumnNullMapping="false" SourceVersion="Original" />
  561. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Region" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Region" SourceColumnNullMapping="true" SourceVersion="Original" />
  562. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Region" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Region" SourceColumnNullMapping="false" SourceVersion="Original" />
  563. <Parameter AllowDbNull="false" AutogeneratedName="IDRegion" ColumnName="IDRegion" DataSourceName="AlfafloorGDV.dbo.Region" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IDRegion" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IDRegion" SourceColumnNullMapping="false" SourceVersion="Current" />
  564. </Parameters>
  565. </DbCommand>
  566. </UpdateCommand>
  567. </DbSource>
  568. </MainSource>
  569. <Mappings>
  570. <Mapping SourceColumn="IDRegion" DataSetColumn="IDRegion" />
  571. <Mapping SourceColumn="Region" DataSetColumn="Region" />
  572. </Mappings>
  573. <Sources />
  574. </TableAdapter>
  575. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="StreetTableAdapter" GeneratorDataComponentClassName="StreetTableAdapter" Name="Street" UserDataComponentName="StreetTableAdapter">
  576. <MainSource>
  577. <DbSource ConnectionRef="AlfafloorGDVConnectionString (Settings)" DbObjectName="AlfafloorGDV.dbo.Street" 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">
  578. <DeleteCommand>
  579. <DbCommand CommandType="Text" ModifiedByUser="false">
  580. <CommandText>DELETE FROM [dbo].[Street] WHERE (([IDStreet] = @Original_IDStreet) AND ((@IsNull_Street = 1 AND [Street] IS NULL) OR ([Street] = @Original_Street)))</CommandText>
  581. <Parameters>
  582. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDStreet" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDStreet" SourceColumnNullMapping="false" SourceVersion="Original" />
  583. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Street" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Street" SourceColumnNullMapping="true" SourceVersion="Original" />
  584. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Street" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Street" SourceColumnNullMapping="false" SourceVersion="Original" />
  585. </Parameters>
  586. </DbCommand>
  587. </DeleteCommand>
  588. <InsertCommand>
  589. <DbCommand CommandType="Text" ModifiedByUser="false">
  590. <CommandText>INSERT INTO [dbo].[Street] ([Street]) VALUES (@Street);
  591. SELECT IDStreet, Street FROM Street WHERE (IDStreet = SCOPE_IDENTITY())</CommandText>
  592. <Parameters>
  593. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Street" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Street" SourceColumnNullMapping="false" SourceVersion="Current" />
  594. </Parameters>
  595. </DbCommand>
  596. </InsertCommand>
  597. <SelectCommand>
  598. <DbCommand CommandType="Text" ModifiedByUser="false">
  599. <CommandText>SELECT IDStreet, Street FROM dbo.Street</CommandText>
  600. <Parameters />
  601. </DbCommand>
  602. </SelectCommand>
  603. <UpdateCommand>
  604. <DbCommand CommandType="Text" ModifiedByUser="false">
  605. <CommandText>UPDATE [dbo].[Street] SET [Street] = @Street WHERE (([IDStreet] = @Original_IDStreet) AND ((@IsNull_Street = 1 AND [Street] IS NULL) OR ([Street] = @Original_Street)));
  606. SELECT IDStreet, Street FROM Street WHERE (IDStreet = @IDStreet)</CommandText>
  607. <Parameters>
  608. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Street" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Street" SourceColumnNullMapping="false" SourceVersion="Current" />
  609. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDStreet" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDStreet" SourceColumnNullMapping="false" SourceVersion="Original" />
  610. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Street" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Street" SourceColumnNullMapping="true" SourceVersion="Original" />
  611. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Street" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Street" SourceColumnNullMapping="false" SourceVersion="Original" />
  612. <Parameter AllowDbNull="false" AutogeneratedName="IDStreet" ColumnName="IDStreet" DataSourceName="AlfafloorGDV.dbo.Street" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IDStreet" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IDStreet" SourceColumnNullMapping="false" SourceVersion="Current" />
  613. </Parameters>
  614. </DbCommand>
  615. </UpdateCommand>
  616. </DbSource>
  617. </MainSource>
  618. <Mappings>
  619. <Mapping SourceColumn="IDStreet" DataSetColumn="IDStreet" />
  620. <Mapping SourceColumn="Street" DataSetColumn="Street" />
  621. </Mappings>
  622. <Sources />
  623. </TableAdapter>
  624. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TypeMaterialTableAdapter" GeneratorDataComponentClassName="TypeMaterialTableAdapter" Name="TypeMaterial" UserDataComponentName="TypeMaterialTableAdapter">
  625. <MainSource>
  626. <DbSource ConnectionRef="AlfafloorGDVConnectionString (Settings)" DbObjectName="AlfafloorGDV.dbo.TypeMaterial" 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">
  627. <DeleteCommand>
  628. <DbCommand CommandType="Text" ModifiedByUser="false">
  629. <CommandText>DELETE FROM [dbo].[TypeMaterial] WHERE (([IDTypeMaterial] = @Original_IDTypeMaterial) AND ((@IsNull_TypeMaterial = 1 AND [TypeMaterial] IS NULL) OR ([TypeMaterial] = @Original_TypeMaterial)) AND ((@IsNull_DefectPercent = 1 AND [DefectPercent] IS NULL) OR ([DefectPercent] = @Original_DefectPercent)))</CommandText>
  630. <Parameters>
  631. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDTypeMaterial" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDTypeMaterial" SourceColumnNullMapping="false" SourceVersion="Original" />
  632. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TypeMaterial" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TypeMaterial" SourceColumnNullMapping="true" SourceVersion="Original" />
  633. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TypeMaterial" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TypeMaterial" SourceColumnNullMapping="false" SourceVersion="Original" />
  634. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DefectPercent" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DefectPercent" SourceColumnNullMapping="true" SourceVersion="Original" />
  635. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DefectPercent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DefectPercent" SourceColumnNullMapping="false" SourceVersion="Original" />
  636. </Parameters>
  637. </DbCommand>
  638. </DeleteCommand>
  639. <InsertCommand>
  640. <DbCommand CommandType="Text" ModifiedByUser="false">
  641. <CommandText>INSERT INTO [dbo].[TypeMaterial] ([TypeMaterial], [DefectPercent]) VALUES (@TypeMaterial, @DefectPercent);
  642. SELECT IDTypeMaterial, TypeMaterial, DefectPercent FROM TypeMaterial WHERE (IDTypeMaterial = SCOPE_IDENTITY())</CommandText>
  643. <Parameters>
  644. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TypeMaterial" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TypeMaterial" SourceColumnNullMapping="false" SourceVersion="Current" />
  645. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DefectPercent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DefectPercent" SourceColumnNullMapping="false" SourceVersion="Current" />
  646. </Parameters>
  647. </DbCommand>
  648. </InsertCommand>
  649. <SelectCommand>
  650. <DbCommand CommandType="Text" ModifiedByUser="false">
  651. <CommandText>SELECT IDTypeMaterial, TypeMaterial, DefectPercent FROM dbo.TypeMaterial</CommandText>
  652. <Parameters />
  653. </DbCommand>
  654. </SelectCommand>
  655. <UpdateCommand>
  656. <DbCommand CommandType="Text" ModifiedByUser="false">
  657. <CommandText>UPDATE [dbo].[TypeMaterial] SET [TypeMaterial] = @TypeMaterial, [DefectPercent] = @DefectPercent WHERE (([IDTypeMaterial] = @Original_IDTypeMaterial) AND ((@IsNull_TypeMaterial = 1 AND [TypeMaterial] IS NULL) OR ([TypeMaterial] = @Original_TypeMaterial)) AND ((@IsNull_DefectPercent = 1 AND [DefectPercent] IS NULL) OR ([DefectPercent] = @Original_DefectPercent)));
  658. SELECT IDTypeMaterial, TypeMaterial, DefectPercent FROM TypeMaterial WHERE (IDTypeMaterial = @IDTypeMaterial)</CommandText>
  659. <Parameters>
  660. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TypeMaterial" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TypeMaterial" SourceColumnNullMapping="false" SourceVersion="Current" />
  661. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DefectPercent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DefectPercent" SourceColumnNullMapping="false" SourceVersion="Current" />
  662. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDTypeMaterial" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDTypeMaterial" SourceColumnNullMapping="false" SourceVersion="Original" />
  663. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TypeMaterial" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TypeMaterial" SourceColumnNullMapping="true" SourceVersion="Original" />
  664. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TypeMaterial" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TypeMaterial" SourceColumnNullMapping="false" SourceVersion="Original" />
  665. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DefectPercent" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DefectPercent" SourceColumnNullMapping="true" SourceVersion="Original" />
  666. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DefectPercent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DefectPercent" SourceColumnNullMapping="false" SourceVersion="Original" />
  667. <Parameter AllowDbNull="false" AutogeneratedName="IDTypeMaterial" ColumnName="IDTypeMaterial" DataSourceName="AlfafloorGDV.dbo.TypeMaterial" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IDTypeMaterial" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IDTypeMaterial" SourceColumnNullMapping="false" SourceVersion="Current" />
  668. </Parameters>
  669. </DbCommand>
  670. </UpdateCommand>
  671. </DbSource>
  672. </MainSource>
  673. <Mappings>
  674. <Mapping SourceColumn="IDTypeMaterial" DataSetColumn="IDTypeMaterial" />
  675. <Mapping SourceColumn="TypeMaterial" DataSetColumn="TypeMaterial" />
  676. <Mapping SourceColumn="DefectPercent" DataSetColumn="DefectPercent" />
  677. </Mappings>
  678. <Sources />
  679. </TableAdapter>
  680. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TypePartnerTableAdapter" GeneratorDataComponentClassName="TypePartnerTableAdapter" Name="TypePartner" UserDataComponentName="TypePartnerTableAdapter">
  681. <MainSource>
  682. <DbSource ConnectionRef="AlfafloorGDVConnectionString (Settings)" DbObjectName="AlfafloorGDV.dbo.TypePartner" 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">
  683. <DeleteCommand>
  684. <DbCommand CommandType="Text" ModifiedByUser="false">
  685. <CommandText>DELETE FROM [dbo].[TypePartner] WHERE (([IDTypePartner] = @Original_IDTypePartner) AND ((@IsNull_TypePartner = 1 AND [TypePartner] IS NULL) OR ([TypePartner] = @Original_TypePartner)))</CommandText>
  686. <Parameters>
  687. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDTypePartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDTypePartner" SourceColumnNullMapping="false" SourceVersion="Original" />
  688. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TypePartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TypePartner" SourceColumnNullMapping="true" SourceVersion="Original" />
  689. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TypePartner" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TypePartner" SourceColumnNullMapping="false" SourceVersion="Original" />
  690. </Parameters>
  691. </DbCommand>
  692. </DeleteCommand>
  693. <InsertCommand>
  694. <DbCommand CommandType="Text" ModifiedByUser="false">
  695. <CommandText>INSERT INTO [dbo].[TypePartner] ([TypePartner]) VALUES (@TypePartner);
  696. SELECT IDTypePartner, TypePartner FROM TypePartner WHERE (IDTypePartner = SCOPE_IDENTITY())</CommandText>
  697. <Parameters>
  698. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TypePartner" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TypePartner" SourceColumnNullMapping="false" SourceVersion="Current" />
  699. </Parameters>
  700. </DbCommand>
  701. </InsertCommand>
  702. <SelectCommand>
  703. <DbCommand CommandType="Text" ModifiedByUser="false">
  704. <CommandText>SELECT IDTypePartner, TypePartner FROM dbo.TypePartner</CommandText>
  705. <Parameters />
  706. </DbCommand>
  707. </SelectCommand>
  708. <UpdateCommand>
  709. <DbCommand CommandType="Text" ModifiedByUser="false">
  710. <CommandText>UPDATE [dbo].[TypePartner] SET [TypePartner] = @TypePartner WHERE (([IDTypePartner] = @Original_IDTypePartner) AND ((@IsNull_TypePartner = 1 AND [TypePartner] IS NULL) OR ([TypePartner] = @Original_TypePartner)));
  711. SELECT IDTypePartner, TypePartner FROM TypePartner WHERE (IDTypePartner = @IDTypePartner)</CommandText>
  712. <Parameters>
  713. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TypePartner" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TypePartner" SourceColumnNullMapping="false" SourceVersion="Current" />
  714. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDTypePartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDTypePartner" SourceColumnNullMapping="false" SourceVersion="Original" />
  715. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TypePartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TypePartner" SourceColumnNullMapping="true" SourceVersion="Original" />
  716. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TypePartner" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TypePartner" SourceColumnNullMapping="false" SourceVersion="Original" />
  717. <Parameter AllowDbNull="false" AutogeneratedName="IDTypePartner" ColumnName="IDTypePartner" DataSourceName="AlfafloorGDV.dbo.TypePartner" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IDTypePartner" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IDTypePartner" SourceColumnNullMapping="false" SourceVersion="Current" />
  718. </Parameters>
  719. </DbCommand>
  720. </UpdateCommand>
  721. </DbSource>
  722. </MainSource>
  723. <Mappings>
  724. <Mapping SourceColumn="IDTypePartner" DataSetColumn="IDTypePartner" />
  725. <Mapping SourceColumn="TypePartner" DataSetColumn="TypePartner" />
  726. </Mappings>
  727. <Sources />
  728. </TableAdapter>
  729. </Tables>
  730. <Sources />
  731. </DataSource>
  732. </xs:appinfo>
  733. </xs:annotation>
  734. <xs:element name="AlfafloorGDVDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_UserDSName="AlfafloorGDVDataSet" msprop:Generator_DataSetName="AlfafloorGDVDataSet">
  735. <xs:complexType>
  736. <xs:choice minOccurs="0" maxOccurs="unbounded">
  737. <xs:element name="City" msprop:Generator_RowEvHandlerName="CityRowChangeEventHandler" msprop:Generator_RowDeletedName="CityRowDeleted" msprop:Generator_RowDeletingName="CityRowDeleting" msprop:Generator_RowEvArgName="CityRowChangeEvent" msprop:Generator_TablePropName="City" msprop:Generator_RowChangedName="CityRowChanged" msprop:Generator_RowChangingName="CityRowChanging" msprop:Generator_TableClassName="CityDataTable" msprop:Generator_RowClassName="CityRow" msprop:Generator_TableVarName="tableCity" msprop:Generator_UserTableName="City">
  738. <xs:complexType>
  739. <xs:sequence>
  740. <xs:element name="IDCity" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="IDCity" msprop:Generator_ColumnPropNameInTable="IDCityColumn" msprop:Generator_ColumnVarNameInTable="columnIDCity" msprop:Generator_UserColumnName="IDCity" type="xs:int" />
  741. <xs:element name="City" msprop:Generator_ColumnPropNameInRow="City" msprop:Generator_ColumnPropNameInTable="CityColumn" msprop:Generator_ColumnVarNameInTable="columnCity" msprop:Generator_UserColumnName="City" minOccurs="0">
  742. <xs:simpleType>
  743. <xs:restriction base="xs:string">
  744. <xs:maxLength value="50" />
  745. </xs:restriction>
  746. </xs:simpleType>
  747. </xs:element>
  748. </xs:sequence>
  749. </xs:complexType>
  750. </xs:element>
  751. <xs:element name="Manager" msprop:Generator_RowEvHandlerName="ManagerRowChangeEventHandler" msprop:Generator_RowDeletedName="ManagerRowDeleted" msprop:Generator_RowDeletingName="ManagerRowDeleting" msprop:Generator_RowEvArgName="ManagerRowChangeEvent" msprop:Generator_TablePropName="Manager" msprop:Generator_RowChangedName="ManagerRowChanged" msprop:Generator_RowChangingName="ManagerRowChanging" msprop:Generator_TableClassName="ManagerDataTable" msprop:Generator_RowClassName="ManagerRow" msprop:Generator_TableVarName="tableManager" msprop:Generator_UserTableName="Manager">
  752. <xs:complexType>
  753. <xs:sequence>
  754. <xs:element name="IDManager" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="IDManager" msprop:Generator_ColumnPropNameInTable="IDManagerColumn" msprop:Generator_ColumnVarNameInTable="columnIDManager" msprop:Generator_UserColumnName="IDManager" type="xs:int" />
  755. <xs:element name="Surname" msprop:Generator_ColumnPropNameInRow="Surname" msprop:Generator_ColumnPropNameInTable="SurnameColumn" msprop:Generator_ColumnVarNameInTable="columnSurname" msprop:Generator_UserColumnName="Surname" minOccurs="0">
  756. <xs:simpleType>
  757. <xs:restriction base="xs:string">
  758. <xs:maxLength value="50" />
  759. </xs:restriction>
  760. </xs:simpleType>
  761. </xs:element>
  762. <xs:element name="Name" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_UserColumnName="Name" minOccurs="0">
  763. <xs:simpleType>
  764. <xs:restriction base="xs:string">
  765. <xs:maxLength value="50" />
  766. </xs:restriction>
  767. </xs:simpleType>
  768. </xs:element>
  769. <xs:element name="Patronomyc" msprop:Generator_ColumnPropNameInRow="Patronomyc" msprop:Generator_ColumnPropNameInTable="PatronomycColumn" msprop:Generator_ColumnVarNameInTable="columnPatronomyc" msprop:Generator_UserColumnName="Patronomyc" minOccurs="0">
  770. <xs:simpleType>
  771. <xs:restriction base="xs:string">
  772. <xs:maxLength value="50" />
  773. </xs:restriction>
  774. </xs:simpleType>
  775. </xs:element>
  776. <xs:element name="Login" msprop:Generator_ColumnPropNameInRow="Login" msprop:Generator_ColumnPropNameInTable="LoginColumn" msprop:Generator_ColumnVarNameInTable="columnLogin" msprop:Generator_UserColumnName="Login" minOccurs="0">
  777. <xs:simpleType>
  778. <xs:restriction base="xs:string">
  779. <xs:maxLength value="50" />
  780. </xs:restriction>
  781. </xs:simpleType>
  782. </xs:element>
  783. <xs:element name="Password" msprop:Generator_ColumnPropNameInRow="Password" msprop:Generator_ColumnPropNameInTable="PasswordColumn" msprop:Generator_ColumnVarNameInTable="columnPassword" msprop:Generator_UserColumnName="Password" minOccurs="0">
  784. <xs:simpleType>
  785. <xs:restriction base="xs:string">
  786. <xs:maxLength value="50" />
  787. </xs:restriction>
  788. </xs:simpleType>
  789. </xs:element>
  790. <xs:element name="Photo" msprop:Generator_ColumnPropNameInRow="Photo" msprop:Generator_ColumnPropNameInTable="PhotoColumn" msprop:Generator_ColumnVarNameInTable="columnPhoto" msprop:Generator_UserColumnName="Photo" minOccurs="0">
  791. <xs:simpleType>
  792. <xs:restriction base="xs:string">
  793. <xs:maxLength value="255" />
  794. </xs:restriction>
  795. </xs:simpleType>
  796. </xs:element>
  797. </xs:sequence>
  798. </xs:complexType>
  799. </xs:element>
  800. <xs:element name="Partner" msprop:Generator_RowEvHandlerName="PartnerRowChangeEventHandler" msprop:Generator_RowDeletedName="PartnerRowDeleted" msprop:Generator_RowDeletingName="PartnerRowDeleting" msprop:Generator_RowEvArgName="PartnerRowChangeEvent" msprop:Generator_TablePropName="Partner" msprop:Generator_RowChangedName="PartnerRowChanged" msprop:Generator_RowChangingName="PartnerRowChanging" msprop:Generator_TableClassName="PartnerDataTable" msprop:Generator_RowClassName="PartnerRow" msprop:Generator_TableVarName="tablePartner" msprop:Generator_UserTableName="Partner">
  801. <xs:complexType>
  802. <xs:sequence>
  803. <xs:element name="IDPartner" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="IDPartner" msprop:Generator_ColumnPropNameInTable="IDPartnerColumn" msprop:Generator_ColumnVarNameInTable="columnIDPartner" msprop:Generator_UserColumnName="IDPartner" type="xs:int" />
  804. <xs:element name="IDTypePartner" msprop:Generator_ColumnPropNameInRow="IDTypePartner" msprop:Generator_ColumnPropNameInTable="IDTypePartnerColumn" msprop:Generator_ColumnVarNameInTable="columnIDTypePartner" msprop:Generator_UserColumnName="IDTypePartner" type="xs:int" />
  805. <xs:element name="Namepartner" msprop:Generator_ColumnPropNameInRow="Namepartner" msprop:Generator_ColumnPropNameInTable="NamepartnerColumn" msprop:Generator_ColumnVarNameInTable="columnNamepartner" msprop:Generator_UserColumnName="Namepartner" minOccurs="0">
  806. <xs:simpleType>
  807. <xs:restriction base="xs:string">
  808. <xs:maxLength value="150" />
  809. </xs:restriction>
  810. </xs:simpleType>
  811. </xs:element>
  812. <xs:element name="Surname" msprop:Generator_ColumnPropNameInRow="Surname" msprop:Generator_ColumnPropNameInTable="SurnameColumn" msprop:Generator_ColumnVarNameInTable="columnSurname" msprop:Generator_UserColumnName="Surname" minOccurs="0">
  813. <xs:simpleType>
  814. <xs:restriction base="xs:string">
  815. <xs:maxLength value="50" />
  816. </xs:restriction>
  817. </xs:simpleType>
  818. </xs:element>
  819. <xs:element name="Name" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_UserColumnName="Name" minOccurs="0">
  820. <xs:simpleType>
  821. <xs:restriction base="xs:string">
  822. <xs:maxLength value="50" />
  823. </xs:restriction>
  824. </xs:simpleType>
  825. </xs:element>
  826. <xs:element name="Patronomyc" msprop:Generator_ColumnPropNameInRow="Patronomyc" msprop:Generator_ColumnPropNameInTable="PatronomycColumn" msprop:Generator_ColumnVarNameInTable="columnPatronomyc" msprop:Generator_UserColumnName="Patronomyc" minOccurs="0">
  827. <xs:simpleType>
  828. <xs:restriction base="xs:string">
  829. <xs:maxLength value="50" />
  830. </xs:restriction>
  831. </xs:simpleType>
  832. </xs:element>
  833. <xs:element name="Email" msprop:Generator_ColumnPropNameInRow="Email" msprop:Generator_ColumnPropNameInTable="EmailColumn" msprop:Generator_ColumnVarNameInTable="columnEmail" msprop:Generator_UserColumnName="Email" minOccurs="0">
  834. <xs:simpleType>
  835. <xs:restriction base="xs:string">
  836. <xs:maxLength value="50" />
  837. </xs:restriction>
  838. </xs:simpleType>
  839. </xs:element>
  840. <xs:element name="Phone" msprop:Generator_ColumnPropNameInRow="Phone" msprop:Generator_ColumnPropNameInTable="PhoneColumn" msprop:Generator_ColumnVarNameInTable="columnPhone" msprop:Generator_UserColumnName="Phone" minOccurs="0">
  841. <xs:simpleType>
  842. <xs:restriction base="xs:string">
  843. <xs:maxLength value="50" />
  844. </xs:restriction>
  845. </xs:simpleType>
  846. </xs:element>
  847. <xs:element name="IDPostCode" msprop:Generator_ColumnPropNameInRow="IDPostCode" msprop:Generator_ColumnPropNameInTable="IDPostCodeColumn" msprop:Generator_ColumnVarNameInTable="columnIDPostCode" msprop:Generator_UserColumnName="IDPostCode" type="xs:int" minOccurs="0" />
  848. <xs:element name="IDRegion" msprop:Generator_ColumnPropNameInRow="IDRegion" msprop:Generator_ColumnPropNameInTable="IDRegionColumn" msprop:Generator_ColumnVarNameInTable="columnIDRegion" msprop:Generator_UserColumnName="IDRegion" type="xs:int" minOccurs="0" />
  849. <xs:element name="IDCity" msprop:Generator_ColumnPropNameInRow="IDCity" msprop:Generator_ColumnPropNameInTable="IDCityColumn" msprop:Generator_ColumnVarNameInTable="columnIDCity" msprop:Generator_UserColumnName="IDCity" type="xs:int" minOccurs="0" />
  850. <xs:element name="IDStreet" msprop:Generator_ColumnPropNameInRow="IDStreet" msprop:Generator_ColumnPropNameInTable="IDStreetColumn" msprop:Generator_ColumnVarNameInTable="columnIDStreet" msprop:Generator_UserColumnName="IDStreet" type="xs:int" minOccurs="0" />
  851. <xs:element name="House" msprop:Generator_ColumnPropNameInRow="House" msprop:Generator_ColumnPropNameInTable="HouseColumn" msprop:Generator_ColumnVarNameInTable="columnHouse" msprop:Generator_UserColumnName="House" type="xs:int" minOccurs="0" />
  852. <xs:element name="INN" msprop:Generator_ColumnPropNameInRow="INN" msprop:Generator_ColumnPropNameInTable="INNColumn" msprop:Generator_ColumnVarNameInTable="columnINN" msprop:Generator_UserColumnName="INN" minOccurs="0">
  853. <xs:simpleType>
  854. <xs:restriction base="xs:string">
  855. <xs:maxLength value="50" />
  856. </xs:restriction>
  857. </xs:simpleType>
  858. </xs:element>
  859. <xs:element name="Rating" msprop:Generator_ColumnPropNameInRow="Rating" msprop:Generator_ColumnPropNameInTable="RatingColumn" msprop:Generator_ColumnVarNameInTable="columnRating" msprop:Generator_UserColumnName="Rating" type="xs:int" minOccurs="0" />
  860. </xs:sequence>
  861. </xs:complexType>
  862. </xs:element>
  863. <xs:element name="PartnerProducts" msprop:Generator_RowEvHandlerName="PartnerProductsRowChangeEventHandler" msprop:Generator_RowDeletedName="PartnerProductsRowDeleted" msprop:Generator_RowDeletingName="PartnerProductsRowDeleting" msprop:Generator_RowEvArgName="PartnerProductsRowChangeEvent" msprop:Generator_TablePropName="PartnerProducts" msprop:Generator_RowChangedName="PartnerProductsRowChanged" msprop:Generator_RowChangingName="PartnerProductsRowChanging" msprop:Generator_TableClassName="PartnerProductsDataTable" msprop:Generator_RowClassName="PartnerProductsRow" msprop:Generator_TableVarName="tablePartnerProducts" msprop:Generator_UserTableName="PartnerProducts">
  864. <xs:complexType>
  865. <xs:sequence>
  866. <xs:element name="IDPartnerProduct" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="IDPartnerProduct" msprop:Generator_ColumnPropNameInTable="IDPartnerProductColumn" msprop:Generator_ColumnVarNameInTable="columnIDPartnerProduct" msprop:Generator_UserColumnName="IDPartnerProduct" type="xs:int" />
  867. <xs:element name="IDProduct" msprop:Generator_ColumnPropNameInRow="IDProduct" msprop:Generator_ColumnPropNameInTable="IDProductColumn" msprop:Generator_ColumnVarNameInTable="columnIDProduct" msprop:Generator_UserColumnName="IDProduct" type="xs:int" minOccurs="0" />
  868. <xs:element name="IDPartner" msprop:Generator_ColumnPropNameInRow="IDPartner" msprop:Generator_ColumnPropNameInTable="IDPartnerColumn" msprop:Generator_ColumnVarNameInTable="columnIDPartner" msprop:Generator_UserColumnName="IDPartner" type="xs:int" minOccurs="0" />
  869. <xs:element name="CountProduct" msprop:Generator_ColumnPropNameInRow="CountProduct" msprop:Generator_ColumnPropNameInTable="CountProductColumn" msprop:Generator_ColumnVarNameInTable="columnCountProduct" msprop:Generator_UserColumnName="CountProduct" type="xs:int" minOccurs="0" />
  870. <xs:element name="DateSale" msprop:Generator_ColumnPropNameInRow="DateSale" msprop:Generator_ColumnPropNameInTable="DateSaleColumn" msprop:Generator_ColumnVarNameInTable="columnDateSale" msprop:Generator_UserColumnName="DateSale" type="xs:dateTime" minOccurs="0" />
  871. </xs:sequence>
  872. </xs:complexType>
  873. </xs:element>
  874. <xs:element name="PostCode" msprop:Generator_RowEvHandlerName="PostCodeRowChangeEventHandler" msprop:Generator_RowDeletedName="PostCodeRowDeleted" msprop:Generator_RowDeletingName="PostCodeRowDeleting" msprop:Generator_RowEvArgName="PostCodeRowChangeEvent" msprop:Generator_TablePropName="PostCode" msprop:Generator_RowChangedName="PostCodeRowChanged" msprop:Generator_RowChangingName="PostCodeRowChanging" msprop:Generator_TableClassName="PostCodeDataTable" msprop:Generator_RowClassName="PostCodeRow" msprop:Generator_TableVarName="tablePostCode" msprop:Generator_UserTableName="PostCode">
  875. <xs:complexType>
  876. <xs:sequence>
  877. <xs:element name="IDPostCode" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="IDPostCode" msprop:Generator_ColumnPropNameInTable="IDPostCodeColumn" msprop:Generator_ColumnVarNameInTable="columnIDPostCode" msprop:Generator_UserColumnName="IDPostCode" type="xs:int" />
  878. <xs:element name="PostCode" msprop:Generator_ColumnPropNameInRow="PostCode" msprop:Generator_ColumnPropNameInTable="PostCodeColumn" msprop:Generator_ColumnVarNameInTable="columnPostCode" msprop:Generator_UserColumnName="PostCode" type="xs:int" minOccurs="0" />
  879. </xs:sequence>
  880. </xs:complexType>
  881. </xs:element>
  882. <xs:element name="Product" msprop:Generator_RowEvHandlerName="ProductRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductRowDeleted" msprop:Generator_RowDeletingName="ProductRowDeleting" msprop:Generator_RowEvArgName="ProductRowChangeEvent" msprop:Generator_TablePropName="Product" msprop:Generator_RowChangedName="ProductRowChanged" msprop:Generator_RowChangingName="ProductRowChanging" msprop:Generator_TableClassName="ProductDataTable" msprop:Generator_RowClassName="ProductRow" msprop:Generator_TableVarName="tableProduct" msprop:Generator_UserTableName="Product">
  883. <xs:complexType>
  884. <xs:sequence>
  885. <xs:element name="IDProduct" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="IDProduct" msprop:Generator_ColumnPropNameInTable="IDProductColumn" msprop:Generator_ColumnVarNameInTable="columnIDProduct" msprop:Generator_UserColumnName="IDProduct" type="xs:int" />
  886. <xs:element name="IDProductType" msprop:Generator_ColumnPropNameInRow="IDProductType" msprop:Generator_ColumnPropNameInTable="IDProductTypeColumn" msprop:Generator_ColumnVarNameInTable="columnIDProductType" msprop:Generator_UserColumnName="IDProductType" type="xs:int" minOccurs="0" />
  887. <xs:element name="ProductName" msprop:Generator_ColumnPropNameInRow="ProductName" msprop:Generator_ColumnPropNameInTable="ProductNameColumn" msprop:Generator_ColumnVarNameInTable="columnProductName" msprop:Generator_UserColumnName="ProductName" minOccurs="0">
  888. <xs:simpleType>
  889. <xs:restriction base="xs:string">
  890. <xs:maxLength value="150" />
  891. </xs:restriction>
  892. </xs:simpleType>
  893. </xs:element>
  894. <xs:element name="Article" msprop:Generator_ColumnPropNameInRow="Article" msprop:Generator_ColumnPropNameInTable="ArticleColumn" msprop:Generator_ColumnVarNameInTable="columnArticle" msprop:Generator_UserColumnName="Article" minOccurs="0">
  895. <xs:simpleType>
  896. <xs:restriction base="xs:string">
  897. <xs:maxLength value="50" />
  898. </xs:restriction>
  899. </xs:simpleType>
  900. </xs:element>
  901. <xs:element name="Cost" msprop:Generator_ColumnPropNameInRow="Cost" msprop:Generator_ColumnPropNameInTable="CostColumn" msprop:Generator_ColumnVarNameInTable="columnCost" msprop:Generator_UserColumnName="Cost" type="xs:decimal" minOccurs="0" />
  902. </xs:sequence>
  903. </xs:complexType>
  904. </xs:element>
  905. <xs:element name="ProductType" msprop:Generator_RowEvHandlerName="ProductTypeRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductTypeRowDeleted" msprop:Generator_RowDeletingName="ProductTypeRowDeleting" msprop:Generator_RowEvArgName="ProductTypeRowChangeEvent" msprop:Generator_TablePropName="ProductType" msprop:Generator_RowChangedName="ProductTypeRowChanged" msprop:Generator_RowChangingName="ProductTypeRowChanging" msprop:Generator_TableClassName="ProductTypeDataTable" msprop:Generator_RowClassName="ProductTypeRow" msprop:Generator_TableVarName="tableProductType" msprop:Generator_UserTableName="ProductType">
  906. <xs:complexType>
  907. <xs:sequence>
  908. <xs:element name="IDProductType" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="IDProductType" msprop:Generator_ColumnPropNameInTable="IDProductTypeColumn" msprop:Generator_ColumnVarNameInTable="columnIDProductType" msprop:Generator_UserColumnName="IDProductType" type="xs:int" />
  909. <xs:element name="ProductType" msprop:Generator_ColumnPropNameInRow="ProductType" msprop:Generator_ColumnPropNameInTable="ProductTypeColumn" msprop:Generator_ColumnVarNameInTable="columnProductType" msprop:Generator_UserColumnName="ProductType" minOccurs="0">
  910. <xs:simpleType>
  911. <xs:restriction base="xs:string">
  912. <xs:maxLength value="50" />
  913. </xs:restriction>
  914. </xs:simpleType>
  915. </xs:element>
  916. <xs:element name="Сoefficient" msprop:Generator_ColumnPropNameInRow="Сoefficient" msprop:Generator_ColumnPropNameInTable="СoefficientColumn" msprop:Generator_ColumnVarNameInTable="columnСoefficient" msprop:Generator_UserColumnName="Сoefficient" type="xs:double" minOccurs="0" />
  917. </xs:sequence>
  918. </xs:complexType>
  919. </xs:element>
  920. <xs:element name="Region" msprop:Generator_RowEvHandlerName="RegionRowChangeEventHandler" msprop:Generator_RowDeletedName="RegionRowDeleted" msprop:Generator_RowDeletingName="RegionRowDeleting" msprop:Generator_RowEvArgName="RegionRowChangeEvent" msprop:Generator_TablePropName="Region" msprop:Generator_RowChangedName="RegionRowChanged" msprop:Generator_RowChangingName="RegionRowChanging" msprop:Generator_TableClassName="RegionDataTable" msprop:Generator_RowClassName="RegionRow" msprop:Generator_TableVarName="tableRegion" msprop:Generator_UserTableName="Region">
  921. <xs:complexType>
  922. <xs:sequence>
  923. <xs:element name="IDRegion" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="IDRegion" msprop:Generator_ColumnPropNameInTable="IDRegionColumn" msprop:Generator_ColumnVarNameInTable="columnIDRegion" msprop:Generator_UserColumnName="IDRegion" type="xs:int" />
  924. <xs:element name="Region" msprop:Generator_ColumnPropNameInRow="Region" msprop:Generator_ColumnPropNameInTable="RegionColumn" msprop:Generator_ColumnVarNameInTable="columnRegion" msprop:Generator_UserColumnName="Region" minOccurs="0">
  925. <xs:simpleType>
  926. <xs:restriction base="xs:string">
  927. <xs:maxLength value="50" />
  928. </xs:restriction>
  929. </xs:simpleType>
  930. </xs:element>
  931. </xs:sequence>
  932. </xs:complexType>
  933. </xs:element>
  934. <xs:element name="Street" msprop:Generator_RowEvHandlerName="StreetRowChangeEventHandler" msprop:Generator_RowDeletedName="StreetRowDeleted" msprop:Generator_RowDeletingName="StreetRowDeleting" msprop:Generator_RowEvArgName="StreetRowChangeEvent" msprop:Generator_TablePropName="Street" msprop:Generator_RowChangedName="StreetRowChanged" msprop:Generator_RowChangingName="StreetRowChanging" msprop:Generator_TableClassName="StreetDataTable" msprop:Generator_RowClassName="StreetRow" msprop:Generator_TableVarName="tableStreet" msprop:Generator_UserTableName="Street">
  935. <xs:complexType>
  936. <xs:sequence>
  937. <xs:element name="IDStreet" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="IDStreet" msprop:Generator_ColumnPropNameInTable="IDStreetColumn" msprop:Generator_ColumnVarNameInTable="columnIDStreet" msprop:Generator_UserColumnName="IDStreet" type="xs:int" />
  938. <xs:element name="Street" msprop:Generator_ColumnPropNameInRow="Street" msprop:Generator_ColumnPropNameInTable="StreetColumn" msprop:Generator_ColumnVarNameInTable="columnStreet" msprop:Generator_UserColumnName="Street" minOccurs="0">
  939. <xs:simpleType>
  940. <xs:restriction base="xs:string">
  941. <xs:maxLength value="50" />
  942. </xs:restriction>
  943. </xs:simpleType>
  944. </xs:element>
  945. </xs:sequence>
  946. </xs:complexType>
  947. </xs:element>
  948. <xs:element name="TypeMaterial" msprop:Generator_RowEvHandlerName="TypeMaterialRowChangeEventHandler" msprop:Generator_RowDeletedName="TypeMaterialRowDeleted" msprop:Generator_RowDeletingName="TypeMaterialRowDeleting" msprop:Generator_RowEvArgName="TypeMaterialRowChangeEvent" msprop:Generator_TablePropName="TypeMaterial" msprop:Generator_RowChangedName="TypeMaterialRowChanged" msprop:Generator_RowChangingName="TypeMaterialRowChanging" msprop:Generator_TableClassName="TypeMaterialDataTable" msprop:Generator_RowClassName="TypeMaterialRow" msprop:Generator_TableVarName="tableTypeMaterial" msprop:Generator_UserTableName="TypeMaterial">
  949. <xs:complexType>
  950. <xs:sequence>
  951. <xs:element name="IDTypeMaterial" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="IDTypeMaterial" msprop:Generator_ColumnPropNameInTable="IDTypeMaterialColumn" msprop:Generator_ColumnVarNameInTable="columnIDTypeMaterial" msprop:Generator_UserColumnName="IDTypeMaterial" type="xs:int" />
  952. <xs:element name="TypeMaterial" msprop:Generator_ColumnPropNameInRow="TypeMaterial" msprop:Generator_ColumnPropNameInTable="TypeMaterialColumn" msprop:Generator_ColumnVarNameInTable="columnTypeMaterial" msprop:Generator_UserColumnName="TypeMaterial" minOccurs="0">
  953. <xs:simpleType>
  954. <xs:restriction base="xs:string">
  955. <xs:maxLength value="50" />
  956. </xs:restriction>
  957. </xs:simpleType>
  958. </xs:element>
  959. <xs:element name="DefectPercent" msprop:Generator_ColumnPropNameInRow="DefectPercent" msprop:Generator_ColumnPropNameInTable="DefectPercentColumn" msprop:Generator_ColumnVarNameInTable="columnDefectPercent" msprop:Generator_UserColumnName="DefectPercent" type="xs:double" minOccurs="0" />
  960. </xs:sequence>
  961. </xs:complexType>
  962. </xs:element>
  963. <xs:element name="TypePartner" msprop:Generator_RowEvHandlerName="TypePartnerRowChangeEventHandler" msprop:Generator_RowDeletedName="TypePartnerRowDeleted" msprop:Generator_RowDeletingName="TypePartnerRowDeleting" msprop:Generator_RowEvArgName="TypePartnerRowChangeEvent" msprop:Generator_TablePropName="TypePartner" msprop:Generator_RowChangedName="TypePartnerRowChanged" msprop:Generator_RowChangingName="TypePartnerRowChanging" msprop:Generator_TableClassName="TypePartnerDataTable" msprop:Generator_RowClassName="TypePartnerRow" msprop:Generator_TableVarName="tableTypePartner" msprop:Generator_UserTableName="TypePartner">
  964. <xs:complexType>
  965. <xs:sequence>
  966. <xs:element name="IDTypePartner" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="IDTypePartner" msprop:Generator_ColumnPropNameInTable="IDTypePartnerColumn" msprop:Generator_ColumnVarNameInTable="columnIDTypePartner" msprop:Generator_UserColumnName="IDTypePartner" type="xs:int" />
  967. <xs:element name="TypePartner" msprop:Generator_ColumnPropNameInRow="TypePartner" msprop:Generator_ColumnPropNameInTable="TypePartnerColumn" msprop:Generator_ColumnVarNameInTable="columnTypePartner" msprop:Generator_UserColumnName="TypePartner" minOccurs="0">
  968. <xs:simpleType>
  969. <xs:restriction base="xs:string">
  970. <xs:maxLength value="50" />
  971. </xs:restriction>
  972. </xs:simpleType>
  973. </xs:element>
  974. </xs:sequence>
  975. </xs:complexType>
  976. </xs:element>
  977. </xs:choice>
  978. </xs:complexType>
  979. <xs:unique name="Constraint1" msdata:PrimaryKey="true">
  980. <xs:selector xpath=".//mstns:City" />
  981. <xs:field xpath="mstns:IDCity" />
  982. </xs:unique>
  983. <xs:unique name="Manager_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  984. <xs:selector xpath=".//mstns:Manager" />
  985. <xs:field xpath="mstns:IDManager" />
  986. </xs:unique>
  987. <xs:unique name="Partner_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  988. <xs:selector xpath=".//mstns:Partner" />
  989. <xs:field xpath="mstns:IDPartner" />
  990. </xs:unique>
  991. <xs:unique name="PartnerProducts_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  992. <xs:selector xpath=".//mstns:PartnerProducts" />
  993. <xs:field xpath="mstns:IDPartnerProduct" />
  994. </xs:unique>
  995. <xs:unique name="PostCode_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  996. <xs:selector xpath=".//mstns:PostCode" />
  997. <xs:field xpath="mstns:IDPostCode" />
  998. </xs:unique>
  999. <xs:unique name="Product_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1000. <xs:selector xpath=".//mstns:Product" />
  1001. <xs:field xpath="mstns:IDProduct" />
  1002. </xs:unique>
  1003. <xs:unique name="ProductType_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1004. <xs:selector xpath=".//mstns:ProductType" />
  1005. <xs:field xpath="mstns:IDProductType" />
  1006. </xs:unique>
  1007. <xs:unique name="Region_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1008. <xs:selector xpath=".//mstns:Region" />
  1009. <xs:field xpath="mstns:IDRegion" />
  1010. </xs:unique>
  1011. <xs:unique name="Street_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1012. <xs:selector xpath=".//mstns:Street" />
  1013. <xs:field xpath="mstns:IDStreet" />
  1014. </xs:unique>
  1015. <xs:unique name="TypeMaterial_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1016. <xs:selector xpath=".//mstns:TypeMaterial" />
  1017. <xs:field xpath="mstns:IDTypeMaterial" />
  1018. </xs:unique>
  1019. <xs:unique name="TypePartner_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1020. <xs:selector xpath=".//mstns:TypePartner" />
  1021. <xs:field xpath="mstns:IDTypePartner" />
  1022. </xs:unique>
  1023. </xs:element>
  1024. <xs:annotation>
  1025. <xs:appinfo>
  1026. <msdata:Relationship name="FK_Partner_City" msdata:parent="City" msdata:child="Partner" msdata:parentkey="IDCity" msdata:childkey="IDCity" msprop:Generator_UserParentTable="City" msprop:Generator_UserChildTable="Partner" msprop:Generator_RelationVarName="relationFK_Partner_City" msprop:Generator_ChildPropName="GetPartnerRows" msprop:Generator_ParentPropName="CityRow" msprop:Generator_UserRelationName="FK_Partner_City" />
  1027. <msdata:Relationship name="FK_Partner_PostCode" msdata:parent="PostCode" msdata:child="Partner" msdata:parentkey="IDPostCode" msdata:childkey="IDPostCode" msprop:Generator_UserParentTable="PostCode" msprop:Generator_UserChildTable="Partner" msprop:Generator_RelationVarName="relationFK_Partner_PostCode" msprop:Generator_UserRelationName="FK_Partner_PostCode" msprop:Generator_ChildPropName="GetPartnerRows" msprop:Generator_ParentPropName="PostCodeRow" />
  1028. <msdata:Relationship name="FK_Partner_Region" msdata:parent="Region" msdata:child="Partner" msdata:parentkey="IDRegion" msdata:childkey="IDRegion" msprop:Generator_UserParentTable="Region" msprop:Generator_UserChildTable="Partner" msprop:Generator_RelationVarName="relationFK_Partner_Region" msprop:Generator_UserRelationName="FK_Partner_Region" msprop:Generator_ChildPropName="GetPartnerRows" msprop:Generator_ParentPropName="RegionRow" />
  1029. <msdata:Relationship name="FK_Partner_Street" msdata:parent="Street" msdata:child="Partner" msdata:parentkey="IDStreet" msdata:childkey="IDStreet" msprop:Generator_UserParentTable="Street" msprop:Generator_UserChildTable="Partner" msprop:Generator_RelationVarName="relationFK_Partner_Street" msprop:Generator_UserRelationName="FK_Partner_Street" msprop:Generator_ChildPropName="GetPartnerRows" msprop:Generator_ParentPropName="StreetRow" />
  1030. <msdata:Relationship name="FK_Partner_TypePartner" msdata:parent="TypePartner" msdata:child="Partner" msdata:parentkey="IDTypePartner" msdata:childkey="IDTypePartner" msprop:Generator_UserParentTable="TypePartner" msprop:Generator_UserChildTable="Partner" msprop:Generator_RelationVarName="relationFK_Partner_TypePartner" msprop:Generator_UserRelationName="FK_Partner_TypePartner" msprop:Generator_ChildPropName="GetPartnerRows" msprop:Generator_ParentPropName="TypePartnerRow" />
  1031. <msdata:Relationship name="FK_PartnerProducts_Partner" msdata:parent="Partner" msdata:child="PartnerProducts" msdata:parentkey="IDPartner" msdata:childkey="IDPartner" msprop:Generator_UserParentTable="Partner" msprop:Generator_UserChildTable="PartnerProducts" msprop:Generator_RelationVarName="relationFK_PartnerProducts_Partner" msprop:Generator_ChildPropName="GetPartnerProductsRows" msprop:Generator_ParentPropName="PartnerRow" msprop:Generator_UserRelationName="FK_PartnerProducts_Partner" />
  1032. <msdata:Relationship name="FK_PartnerProducts_Product" msdata:parent="Product" msdata:child="PartnerProducts" msdata:parentkey="IDProduct" msdata:childkey="IDProduct" msprop:Generator_UserParentTable="Product" msprop:Generator_UserChildTable="PartnerProducts" msprop:Generator_RelationVarName="relationFK_PartnerProducts_Product" msprop:Generator_UserRelationName="FK_PartnerProducts_Product" msprop:Generator_ChildPropName="GetPartnerProductsRows" msprop:Generator_ParentPropName="ProductRow" />
  1033. <msdata:Relationship name="FK_Product_ProductType" msdata:parent="ProductType" msdata:child="Product" msdata:parentkey="IDProductType" msdata:childkey="IDProductType" msprop:Generator_UserParentTable="ProductType" msprop:Generator_UserChildTable="Product" msprop:Generator_RelationVarName="relationFK_Product_ProductType" msprop:Generator_UserRelationName="FK_Product_ProductType" msprop:Generator_ChildPropName="GetProductRows" msprop:Generator_ParentPropName="ProductTypeRow" />
  1034. </xs:appinfo>
  1035. </xs:annotation>
  1036. </xs:schema>