dbAlphapolAGDataSet.xsd 153 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="dbAlphapolAGDataSet" targetNamespace="http://tempuri.org/dbAlphapolAGDataSet.xsd" xmlns:mstns="http://tempuri.org/dbAlphapolAGDataSet.xsd" xmlns="http://tempuri.org/dbAlphapolAGDataSet.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="dbAlphapolAGConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="dbAlphapolAGConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.СУБД_Альфапол.Properties.Settings.GlobalReference.Default.dbAlphapolAGConnectionString" 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="dbAlphapolAGConnectionString (Settings)" DbObjectName="dbAlphapolAG.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="dbAlphapolAG.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="IndexPartnerTableAdapter" GeneratorDataComponentClassName="IndexPartnerTableAdapter" Name="IndexPartner" UserDataComponentName="IndexPartnerTableAdapter">
  60. <MainSource>
  61. <DbSource ConnectionRef="dbAlphapolAGConnectionString (Settings)" DbObjectName="dbAlphapolAG.dbo.IndexPartner" 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].[IndexPartner] WHERE (([idIndex] = @Original_idIndex) AND ((@IsNull_CodePartner = 1 AND [CodePartner] IS NULL) OR ([CodePartner] = @Original_CodePartner)))</CommandText>
  65. <Parameters>
  66. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idIndex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idIndex" SourceColumnNullMapping="false" SourceVersion="Original" />
  67. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CodePartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CodePartner" SourceColumnNullMapping="true" SourceVersion="Original" />
  68. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodePartner" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodePartner" SourceColumnNullMapping="false" SourceVersion="Original" />
  69. </Parameters>
  70. </DbCommand>
  71. </DeleteCommand>
  72. <InsertCommand>
  73. <DbCommand CommandType="Text" ModifiedByUser="false">
  74. <CommandText>INSERT INTO [dbo].[IndexPartner] ([CodePartner]) VALUES (@CodePartner);
  75. SELECT idIndex, CodePartner FROM IndexPartner WHERE (idIndex = SCOPE_IDENTITY())</CommandText>
  76. <Parameters>
  77. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodePartner" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodePartner" SourceColumnNullMapping="false" SourceVersion="Current" />
  78. </Parameters>
  79. </DbCommand>
  80. </InsertCommand>
  81. <SelectCommand>
  82. <DbCommand CommandType="Text" ModifiedByUser="false">
  83. <CommandText>SELECT idIndex, CodePartner FROM dbo.IndexPartner</CommandText>
  84. <Parameters />
  85. </DbCommand>
  86. </SelectCommand>
  87. <UpdateCommand>
  88. <DbCommand CommandType="Text" ModifiedByUser="false">
  89. <CommandText>UPDATE [dbo].[IndexPartner] SET [CodePartner] = @CodePartner WHERE (([idIndex] = @Original_idIndex) AND ((@IsNull_CodePartner = 1 AND [CodePartner] IS NULL) OR ([CodePartner] = @Original_CodePartner)));
  90. SELECT idIndex, CodePartner FROM IndexPartner WHERE (idIndex = @idIndex)</CommandText>
  91. <Parameters>
  92. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodePartner" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodePartner" SourceColumnNullMapping="false" SourceVersion="Current" />
  93. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idIndex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idIndex" SourceColumnNullMapping="false" SourceVersion="Original" />
  94. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CodePartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CodePartner" SourceColumnNullMapping="true" SourceVersion="Original" />
  95. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodePartner" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodePartner" SourceColumnNullMapping="false" SourceVersion="Original" />
  96. <Parameter AllowDbNull="false" AutogeneratedName="idIndex" ColumnName="idIndex" DataSourceName="dbAlphapolAG.dbo.IndexPartner" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idIndex" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idIndex" SourceColumnNullMapping="false" SourceVersion="Current" />
  97. </Parameters>
  98. </DbCommand>
  99. </UpdateCommand>
  100. </DbSource>
  101. </MainSource>
  102. <Mappings>
  103. <Mapping SourceColumn="idIndex" DataSetColumn="idIndex" />
  104. <Mapping SourceColumn="CodePartner" DataSetColumn="CodePartner" />
  105. </Mappings>
  106. <Sources />
  107. </TableAdapter>
  108. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ManagerTableAdapter" GeneratorDataComponentClassName="ManagerTableAdapter" Name="Manager" UserDataComponentName="ManagerTableAdapter">
  109. <MainSource>
  110. <DbSource ConnectionRef="dbAlphapolAGConnectionString (Settings)" DbObjectName="dbAlphapolAG.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">
  111. <DeleteCommand>
  112. <DbCommand CommandType="Text" ModifiedByUser="false">
  113. <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_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) 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>
  114. <Parameters>
  115. <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" />
  116. <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" />
  117. <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" />
  118. <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" />
  119. <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" />
  120. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Patronymic" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="true" SourceVersion="Original" />
  121. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Patronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="false" SourceVersion="Original" />
  122. <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" />
  123. <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" />
  124. <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" />
  125. <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" />
  126. <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" />
  127. <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" />
  128. </Parameters>
  129. </DbCommand>
  130. </DeleteCommand>
  131. <InsertCommand>
  132. <DbCommand CommandType="Text" ModifiedByUser="false">
  133. <CommandText>INSERT INTO [dbo].[Manager] ([Surname], [Name], [Patronymic], [Login], [Password], [Photo]) VALUES (@Surname, @Name, @Patronymic, @Login, @Password, @Photo);
  134. SELECT idManager, Surname, Name, Patronymic, Login, Password, Photo FROM Manager WHERE (idManager = SCOPE_IDENTITY())</CommandText>
  135. <Parameters>
  136. <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" />
  137. <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" />
  138. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Patronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="false" SourceVersion="Current" />
  139. <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" />
  140. <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" />
  141. <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" />
  142. </Parameters>
  143. </DbCommand>
  144. </InsertCommand>
  145. <SelectCommand>
  146. <DbCommand CommandType="Text" ModifiedByUser="false">
  147. <CommandText>SELECT idManager, Surname, Name, Patronymic, Login, Password, Photo FROM dbo.Manager</CommandText>
  148. <Parameters />
  149. </DbCommand>
  150. </SelectCommand>
  151. <UpdateCommand>
  152. <DbCommand CommandType="Text" ModifiedByUser="false">
  153. <CommandText>UPDATE [dbo].[Manager] SET [Surname] = @Surname, [Name] = @Name, [Patronymic] = @Patronymic, [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_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) 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)));
  154. SELECT idManager, Surname, Name, Patronymic, Login, Password, Photo FROM Manager WHERE (idManager = @idManager)</CommandText>
  155. <Parameters>
  156. <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" />
  157. <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" />
  158. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Patronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="false" SourceVersion="Current" />
  159. <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" />
  160. <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" />
  161. <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" />
  162. <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" />
  163. <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" />
  164. <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" />
  165. <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" />
  166. <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" />
  167. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Patronymic" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="true" SourceVersion="Original" />
  168. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Patronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="false" SourceVersion="Original" />
  169. <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" />
  170. <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" />
  171. <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" />
  172. <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" />
  173. <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" />
  174. <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" />
  175. <Parameter AllowDbNull="false" AutogeneratedName="idManager" ColumnName="idManager" DataSourceName="dbAlphapolAG.dbo.Manager" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idManager" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idManager" SourceColumnNullMapping="false" SourceVersion="Current" />
  176. </Parameters>
  177. </DbCommand>
  178. </UpdateCommand>
  179. </DbSource>
  180. </MainSource>
  181. <Mappings>
  182. <Mapping SourceColumn="idManager" DataSetColumn="idManager" />
  183. <Mapping SourceColumn="Surname" DataSetColumn="Surname" />
  184. <Mapping SourceColumn="Name" DataSetColumn="Name" />
  185. <Mapping SourceColumn="Patronymic" DataSetColumn="Patronymic" />
  186. <Mapping SourceColumn="Login" DataSetColumn="Login" />
  187. <Mapping SourceColumn="Password" DataSetColumn="Password" />
  188. <Mapping SourceColumn="Photo" DataSetColumn="Photo" />
  189. </Mappings>
  190. <Sources />
  191. </TableAdapter>
  192. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PartnerTableAdapter" GeneratorDataComponentClassName="PartnerTableAdapter" Name="Partner" UserDataComponentName="PartnerTableAdapter">
  193. <MainSource>
  194. <DbSource ConnectionRef="dbAlphapolAGConnectionString (Settings)" DbObjectName="dbAlphapolAG.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">
  195. <DeleteCommand>
  196. <DbCommand CommandType="Text" ModifiedByUser="false">
  197. <CommandText>DELETE FROM [dbo].[Partner] WHERE (([idPartner] = @Original_idPartner) 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_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) 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_idIndex = 1 AND [idIndex] IS NULL) OR ([idIndex] = @Original_idIndex)) 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)) AND ((@IsNull_idRegion = 1 AND [idRegion] IS NULL) OR ([idRegion] = @Original_idRegion)) AND ((@IsNull_idTypePartner = 1 AND [idTypePartner] IS NULL) OR ([idTypePartner] = @Original_idTypePartner)) AND ((@IsNull_NamePartner = 1 AND [NamePartner] IS NULL) OR ([NamePartner] = @Original_NamePartner)))</CommandText>
  198. <Parameters>
  199. <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" />
  200. <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" />
  201. <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" />
  202. <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" />
  203. <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" />
  204. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Patronymic" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="true" SourceVersion="Original" />
  205. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Patronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="false" SourceVersion="Original" />
  206. <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" />
  207. <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" />
  208. <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" />
  209. <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" />
  210. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_idIndex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idIndex" SourceColumnNullMapping="true" SourceVersion="Original" />
  211. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idIndex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idIndex" SourceColumnNullMapping="false" SourceVersion="Original" />
  212. <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" />
  213. <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" />
  214. <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" />
  215. <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" />
  216. <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" />
  217. <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" />
  218. <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" />
  219. <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" />
  220. <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" />
  221. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Rating" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Rating" SourceColumnNullMapping="false" SourceVersion="Original" />
  222. <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" />
  223. <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" />
  224. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_idTypePartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idTypePartner" SourceColumnNullMapping="true" SourceVersion="Original" />
  225. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idTypePartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idTypePartner" SourceColumnNullMapping="false" SourceVersion="Original" />
  226. <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" />
  227. <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" />
  228. </Parameters>
  229. </DbCommand>
  230. </DeleteCommand>
  231. <InsertCommand>
  232. <DbCommand CommandType="Text" ModifiedByUser="false">
  233. <CommandText>INSERT INTO [dbo].[Partner] ([Surname], [Name], [Patronymic], [Email], [Phone], [idIndex], [idCity], [idStreet], [House], [INN], [Rating], [idRegion], [idTypePartner], [NamePartner]) VALUES (@Surname, @Name, @Patronymic, @Email, @Phone, @idIndex, @idCity, @idStreet, @House, @INN, @Rating, @idRegion, @idTypePartner, @NamePartner);
  234. SELECT idPartner, Surname, Name, Patronymic, Email, Phone, idIndex, idCity, idStreet, House, INN, Rating, idRegion, idTypePartner, NamePartner FROM Partner WHERE (idPartner = SCOPE_IDENTITY())</CommandText>
  235. <Parameters>
  236. <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" />
  237. <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" />
  238. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Patronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="false" SourceVersion="Current" />
  239. <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" />
  240. <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" />
  241. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idIndex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idIndex" SourceColumnNullMapping="false" SourceVersion="Current" />
  242. <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" />
  243. <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" />
  244. <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" />
  245. <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" />
  246. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Rating" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Rating" SourceColumnNullMapping="false" SourceVersion="Current" />
  247. <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" />
  248. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idTypePartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idTypePartner" SourceColumnNullMapping="false" SourceVersion="Current" />
  249. <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" />
  250. </Parameters>
  251. </DbCommand>
  252. </InsertCommand>
  253. <SelectCommand>
  254. <DbCommand CommandType="Text" ModifiedByUser="false">
  255. <CommandText>SELECT idPartner, Surname, Name, Patronymic, Email, Phone, idIndex, idCity, idStreet, House, INN, Rating, idRegion, idTypePartner, NamePartner FROM dbo.Partner</CommandText>
  256. <Parameters />
  257. </DbCommand>
  258. </SelectCommand>
  259. <UpdateCommand>
  260. <DbCommand CommandType="Text" ModifiedByUser="false">
  261. <CommandText>UPDATE [dbo].[Partner] SET [Surname] = @Surname, [Name] = @Name, [Patronymic] = @Patronymic, [Email] = @Email, [Phone] = @Phone, [idIndex] = @idIndex, [idCity] = @idCity, [idStreet] = @idStreet, [House] = @House, [INN] = @INN, [Rating] = @Rating, [idRegion] = @idRegion, [idTypePartner] = @idTypePartner, [NamePartner] = @NamePartner WHERE (([idPartner] = @Original_idPartner) 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_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) 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_idIndex = 1 AND [idIndex] IS NULL) OR ([idIndex] = @Original_idIndex)) 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)) AND ((@IsNull_idRegion = 1 AND [idRegion] IS NULL) OR ([idRegion] = @Original_idRegion)) AND ((@IsNull_idTypePartner = 1 AND [idTypePartner] IS NULL) OR ([idTypePartner] = @Original_idTypePartner)) AND ((@IsNull_NamePartner = 1 AND [NamePartner] IS NULL) OR ([NamePartner] = @Original_NamePartner)));
  262. SELECT idPartner, Surname, Name, Patronymic, Email, Phone, idIndex, idCity, idStreet, House, INN, Rating, idRegion, idTypePartner, NamePartner FROM Partner WHERE (idPartner = @idPartner)</CommandText>
  263. <Parameters>
  264. <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" />
  265. <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" />
  266. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Patronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="false" SourceVersion="Current" />
  267. <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" />
  268. <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" />
  269. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idIndex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idIndex" SourceColumnNullMapping="false" SourceVersion="Current" />
  270. <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" />
  271. <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" />
  272. <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" />
  273. <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" />
  274. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Rating" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Rating" SourceColumnNullMapping="false" SourceVersion="Current" />
  275. <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" />
  276. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idTypePartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idTypePartner" SourceColumnNullMapping="false" SourceVersion="Current" />
  277. <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" />
  278. <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" />
  279. <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" />
  280. <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" />
  281. <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" />
  282. <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" />
  283. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Patronymic" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="true" SourceVersion="Original" />
  284. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Patronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="false" SourceVersion="Original" />
  285. <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" />
  286. <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" />
  287. <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" />
  288. <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" />
  289. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_idIndex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idIndex" SourceColumnNullMapping="true" SourceVersion="Original" />
  290. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idIndex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idIndex" SourceColumnNullMapping="false" SourceVersion="Original" />
  291. <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" />
  292. <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" />
  293. <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" />
  294. <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" />
  295. <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" />
  296. <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" />
  297. <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" />
  298. <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" />
  299. <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" />
  300. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Rating" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Rating" SourceColumnNullMapping="false" SourceVersion="Original" />
  301. <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" />
  302. <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" />
  303. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_idTypePartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idTypePartner" SourceColumnNullMapping="true" SourceVersion="Original" />
  304. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idTypePartner" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idTypePartner" SourceColumnNullMapping="false" SourceVersion="Original" />
  305. <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" />
  306. <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" />
  307. <Parameter AllowDbNull="false" AutogeneratedName="idPartner" ColumnName="idPartner" DataSourceName="dbAlphapolAG.dbo.Partner" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idPartner" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idPartner" SourceColumnNullMapping="false" SourceVersion="Current" />
  308. </Parameters>
  309. </DbCommand>
  310. </UpdateCommand>
  311. </DbSource>
  312. </MainSource>
  313. <Mappings>
  314. <Mapping SourceColumn="idPartner" DataSetColumn="idPartner" />
  315. <Mapping SourceColumn="Surname" DataSetColumn="Surname" />
  316. <Mapping SourceColumn="Name" DataSetColumn="Name" />
  317. <Mapping SourceColumn="Patronymic" DataSetColumn="Patronymic" />
  318. <Mapping SourceColumn="Email" DataSetColumn="Email" />
  319. <Mapping SourceColumn="Phone" DataSetColumn="Phone" />
  320. <Mapping SourceColumn="idIndex" DataSetColumn="idIndex" />
  321. <Mapping SourceColumn="idCity" DataSetColumn="idCity" />
  322. <Mapping SourceColumn="idStreet" DataSetColumn="idStreet" />
  323. <Mapping SourceColumn="House" DataSetColumn="House" />
  324. <Mapping SourceColumn="INN" DataSetColumn="INN" />
  325. <Mapping SourceColumn="Rating" DataSetColumn="Rating" />
  326. <Mapping SourceColumn="idRegion" DataSetColumn="idRegion" />
  327. <Mapping SourceColumn="idTypePartner" DataSetColumn="idTypePartner" />
  328. <Mapping SourceColumn="NamePartner" DataSetColumn="NamePartner" />
  329. </Mappings>
  330. <Sources />
  331. </TableAdapter>
  332. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductPartnerTableAdapter" GeneratorDataComponentClassName="ProductPartnerTableAdapter" Name="ProductPartner" UserDataComponentName="ProductPartnerTableAdapter">
  333. <MainSource>
  334. <DbSource ConnectionRef="dbAlphapolAGConnectionString (Settings)" DbObjectName="dbAlphapolAG.dbo.ProductPartner" 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">
  335. <DeleteCommand>
  336. <DbCommand CommandType="Text" ModifiedByUser="false">
  337. <CommandText>DELETE FROM [dbo].[ProductPartner] 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>
  338. <Parameters>
  339. <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" />
  340. <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" />
  341. <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" />
  342. <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" />
  343. <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" />
  344. <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" />
  345. <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" />
  346. <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" />
  347. <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" />
  348. </Parameters>
  349. </DbCommand>
  350. </DeleteCommand>
  351. <InsertCommand>
  352. <DbCommand CommandType="Text" ModifiedByUser="false">
  353. <CommandText>INSERT INTO [dbo].[ProductPartner] ([idProduct], [idPartner], [CountProduct], [DateSale]) VALUES (@idProduct, @idPartner, @CountProduct, @DateSale);
  354. SELECT idPartnerProduct, idProduct, idPartner, CountProduct, DateSale FROM ProductPartner WHERE (idPartnerProduct = SCOPE_IDENTITY())</CommandText>
  355. <Parameters>
  356. <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" />
  357. <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" />
  358. <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" />
  359. <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" />
  360. </Parameters>
  361. </DbCommand>
  362. </InsertCommand>
  363. <SelectCommand>
  364. <DbCommand CommandType="Text" ModifiedByUser="false">
  365. <CommandText>SELECT idPartnerProduct, idProduct, idPartner, CountProduct, DateSale FROM dbo.ProductPartner</CommandText>
  366. <Parameters />
  367. </DbCommand>
  368. </SelectCommand>
  369. <UpdateCommand>
  370. <DbCommand CommandType="Text" ModifiedByUser="false">
  371. <CommandText>UPDATE [dbo].[ProductPartner] 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)));
  372. SELECT idPartnerProduct, idProduct, idPartner, CountProduct, DateSale FROM ProductPartner WHERE (idPartnerProduct = @idPartnerProduct)</CommandText>
  373. <Parameters>
  374. <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" />
  375. <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" />
  376. <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" />
  377. <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" />
  378. <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" />
  379. <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" />
  380. <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" />
  381. <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" />
  382. <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" />
  383. <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" />
  384. <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" />
  385. <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" />
  386. <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" />
  387. <Parameter AllowDbNull="false" AutogeneratedName="idPartnerProduct" ColumnName="idPartnerProduct" DataSourceName="dbAlphapolAG.dbo.ProductPartner" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idPartnerProduct" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idPartnerProduct" SourceColumnNullMapping="false" SourceVersion="Current" />
  388. </Parameters>
  389. </DbCommand>
  390. </UpdateCommand>
  391. </DbSource>
  392. </MainSource>
  393. <Mappings>
  394. <Mapping SourceColumn="idPartnerProduct" DataSetColumn="idPartnerProduct" />
  395. <Mapping SourceColumn="idProduct" DataSetColumn="idProduct" />
  396. <Mapping SourceColumn="idPartner" DataSetColumn="idPartner" />
  397. <Mapping SourceColumn="CountProduct" DataSetColumn="CountProduct" />
  398. <Mapping SourceColumn="DateSale" DataSetColumn="DateSale" />
  399. </Mappings>
  400. <Sources />
  401. </TableAdapter>
  402. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductsTableAdapter" GeneratorDataComponentClassName="ProductsTableAdapter" Name="Products" UserDataComponentName="ProductsTableAdapter">
  403. <MainSource>
  404. <DbSource ConnectionRef="dbAlphapolAGConnectionString (Settings)" DbObjectName="dbAlphapolAG.dbo.Products" 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">
  405. <DeleteCommand>
  406. <DbCommand CommandType="Text" ModifiedByUser="false">
  407. <CommandText>DELETE FROM [dbo].[Products] WHERE (([idProduct] = @Original_idProduct) AND ((@IsNull_idTypeProduct = 1 AND [idTypeProduct] IS NULL) OR ([idTypeProduct] = @Original_idTypeProduct)) AND ((@IsNull_Article = 1 AND [Article] IS NULL) OR ([Article] = @Original_Article)) AND ((@IsNull_MinCost = 1 AND [MinCost] IS NULL) OR ([MinCost] = @Original_MinCost)))</CommandText>
  408. <Parameters>
  409. <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" />
  410. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_idTypeProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idTypeProduct" SourceColumnNullMapping="true" SourceVersion="Original" />
  411. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idTypeProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idTypeProduct" 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="Int32" Direction="Input" ParameterName="@Original_Article" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Article" SourceColumnNullMapping="false" SourceVersion="Original" />
  414. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MinCost" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MinCost" SourceColumnNullMapping="true" SourceVersion="Original" />
  415. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_MinCost" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="MinCost" SourceColumnNullMapping="false" SourceVersion="Original" />
  416. </Parameters>
  417. </DbCommand>
  418. </DeleteCommand>
  419. <InsertCommand>
  420. <DbCommand CommandType="Text" ModifiedByUser="false">
  421. <CommandText>INSERT INTO [dbo].[Products] ([idTypeProduct], [NameProduct], [Article], [MinCost]) VALUES (@idTypeProduct, @NameProduct, @Article, @MinCost);
  422. SELECT idProduct, idTypeProduct, NameProduct, Article, MinCost FROM Products WHERE (idProduct = SCOPE_IDENTITY())</CommandText>
  423. <Parameters>
  424. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idTypeProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idTypeProduct" SourceColumnNullMapping="false" SourceVersion="Current" />
  425. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NameProduct" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NameProduct" SourceColumnNullMapping="false" SourceVersion="Current" />
  426. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Article" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Article" SourceColumnNullMapping="false" SourceVersion="Current" />
  427. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@MinCost" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="MinCost" SourceColumnNullMapping="false" SourceVersion="Current" />
  428. </Parameters>
  429. </DbCommand>
  430. </InsertCommand>
  431. <SelectCommand>
  432. <DbCommand CommandType="Text" ModifiedByUser="false">
  433. <CommandText>SELECT idProduct, idTypeProduct, NameProduct, Article, MinCost FROM dbo.Products</CommandText>
  434. <Parameters />
  435. </DbCommand>
  436. </SelectCommand>
  437. <UpdateCommand>
  438. <DbCommand CommandType="Text" ModifiedByUser="false">
  439. <CommandText>UPDATE [dbo].[Products] SET [idTypeProduct] = @idTypeProduct, [NameProduct] = @NameProduct, [Article] = @Article, [MinCost] = @MinCost WHERE (([idProduct] = @Original_idProduct) AND ((@IsNull_idTypeProduct = 1 AND [idTypeProduct] IS NULL) OR ([idTypeProduct] = @Original_idTypeProduct)) AND ((@IsNull_Article = 1 AND [Article] IS NULL) OR ([Article] = @Original_Article)) AND ((@IsNull_MinCost = 1 AND [MinCost] IS NULL) OR ([MinCost] = @Original_MinCost)));
  440. SELECT idProduct, idTypeProduct, NameProduct, Article, MinCost FROM Products WHERE (idProduct = @idProduct)</CommandText>
  441. <Parameters>
  442. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idTypeProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idTypeProduct" SourceColumnNullMapping="false" SourceVersion="Current" />
  443. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NameProduct" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NameProduct" SourceColumnNullMapping="false" SourceVersion="Current" />
  444. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Article" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Article" SourceColumnNullMapping="false" SourceVersion="Current" />
  445. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@MinCost" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="MinCost" 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_idTypeProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idTypeProduct" SourceColumnNullMapping="true" SourceVersion="Original" />
  448. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idTypeProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idTypeProduct" SourceColumnNullMapping="false" SourceVersion="Original" />
  449. <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" />
  450. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Article" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Article" SourceColumnNullMapping="false" SourceVersion="Original" />
  451. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MinCost" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MinCost" SourceColumnNullMapping="true" SourceVersion="Original" />
  452. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_MinCost" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="MinCost" SourceColumnNullMapping="false" SourceVersion="Original" />
  453. <Parameter AllowDbNull="false" AutogeneratedName="idProduct" ColumnName="idProduct" DataSourceName="dbAlphapolAG.dbo.Products" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idProduct" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idProduct" SourceColumnNullMapping="false" SourceVersion="Current" />
  454. </Parameters>
  455. </DbCommand>
  456. </UpdateCommand>
  457. </DbSource>
  458. </MainSource>
  459. <Mappings>
  460. <Mapping SourceColumn="idProduct" DataSetColumn="idProduct" />
  461. <Mapping SourceColumn="idTypeProduct" DataSetColumn="idTypeProduct" />
  462. <Mapping SourceColumn="NameProduct" DataSetColumn="NameProduct" />
  463. <Mapping SourceColumn="Article" DataSetColumn="Article" />
  464. <Mapping SourceColumn="MinCost" DataSetColumn="MinCost" />
  465. </Mappings>
  466. <Sources />
  467. </TableAdapter>
  468. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="RegionTableAdapter" GeneratorDataComponentClassName="RegionTableAdapter" Name="Region" UserDataComponentName="RegionTableAdapter">
  469. <MainSource>
  470. <DbSource ConnectionRef="dbAlphapolAGConnectionString (Settings)" DbObjectName="dbAlphapolAG.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">
  471. <DeleteCommand>
  472. <DbCommand CommandType="Text" ModifiedByUser="false">
  473. <CommandText>DELETE FROM [dbo].[Region] WHERE (([idRegion] = @Original_idRegion) AND ((@IsNull_Region = 1 AND [Region] IS NULL) OR ([Region] = @Original_Region)))</CommandText>
  474. <Parameters>
  475. <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" />
  476. <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" />
  477. <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" />
  478. </Parameters>
  479. </DbCommand>
  480. </DeleteCommand>
  481. <InsertCommand>
  482. <DbCommand CommandType="Text" ModifiedByUser="false">
  483. <CommandText>INSERT INTO [dbo].[Region] ([Region]) VALUES (@Region);
  484. SELECT idRegion, Region FROM Region WHERE (idRegion = SCOPE_IDENTITY())</CommandText>
  485. <Parameters>
  486. <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" />
  487. </Parameters>
  488. </DbCommand>
  489. </InsertCommand>
  490. <SelectCommand>
  491. <DbCommand CommandType="Text" ModifiedByUser="false">
  492. <CommandText>SELECT idRegion, Region FROM dbo.Region</CommandText>
  493. <Parameters />
  494. </DbCommand>
  495. </SelectCommand>
  496. <UpdateCommand>
  497. <DbCommand CommandType="Text" ModifiedByUser="false">
  498. <CommandText>UPDATE [dbo].[Region] SET [Region] = @Region WHERE (([idRegion] = @Original_idRegion) AND ((@IsNull_Region = 1 AND [Region] IS NULL) OR ([Region] = @Original_Region)));
  499. SELECT idRegion, Region FROM Region WHERE (idRegion = @idRegion)</CommandText>
  500. <Parameters>
  501. <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" />
  502. <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" />
  503. <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" />
  504. <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" />
  505. <Parameter AllowDbNull="false" AutogeneratedName="idRegion" ColumnName="idRegion" DataSourceName="dbAlphapolAG.dbo.Region" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idRegion" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idRegion" SourceColumnNullMapping="false" SourceVersion="Current" />
  506. </Parameters>
  507. </DbCommand>
  508. </UpdateCommand>
  509. </DbSource>
  510. </MainSource>
  511. <Mappings>
  512. <Mapping SourceColumn="idRegion" DataSetColumn="idRegion" />
  513. <Mapping SourceColumn="Region" DataSetColumn="Region" />
  514. </Mappings>
  515. <Sources />
  516. </TableAdapter>
  517. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="StreetTableAdapter" GeneratorDataComponentClassName="StreetTableAdapter" Name="Street" UserDataComponentName="StreetTableAdapter">
  518. <MainSource>
  519. <DbSource ConnectionRef="dbAlphapolAGConnectionString (Settings)" DbObjectName="dbAlphapolAG.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">
  520. <DeleteCommand>
  521. <DbCommand CommandType="Text" ModifiedByUser="false">
  522. <CommandText>DELETE FROM [dbo].[Street] WHERE (([idStreet] = @Original_idStreet) AND ((@IsNull_Street = 1 AND [Street] IS NULL) OR ([Street] = @Original_Street)))</CommandText>
  523. <Parameters>
  524. <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" />
  525. <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" />
  526. <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" />
  527. </Parameters>
  528. </DbCommand>
  529. </DeleteCommand>
  530. <InsertCommand>
  531. <DbCommand CommandType="Text" ModifiedByUser="false">
  532. <CommandText>INSERT INTO [dbo].[Street] ([Street]) VALUES (@Street);
  533. SELECT idStreet, Street FROM Street WHERE (idStreet = SCOPE_IDENTITY())</CommandText>
  534. <Parameters>
  535. <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" />
  536. </Parameters>
  537. </DbCommand>
  538. </InsertCommand>
  539. <SelectCommand>
  540. <DbCommand CommandType="Text" ModifiedByUser="false">
  541. <CommandText>SELECT idStreet, Street FROM dbo.Street</CommandText>
  542. <Parameters />
  543. </DbCommand>
  544. </SelectCommand>
  545. <UpdateCommand>
  546. <DbCommand CommandType="Text" ModifiedByUser="false">
  547. <CommandText>UPDATE [dbo].[Street] SET [Street] = @Street WHERE (([idStreet] = @Original_idStreet) AND ((@IsNull_Street = 1 AND [Street] IS NULL) OR ([Street] = @Original_Street)));
  548. SELECT idStreet, Street FROM Street WHERE (idStreet = @idStreet)</CommandText>
  549. <Parameters>
  550. <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" />
  551. <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" />
  552. <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" />
  553. <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" />
  554. <Parameter AllowDbNull="false" AutogeneratedName="idStreet" ColumnName="idStreet" DataSourceName="dbAlphapolAG.dbo.Street" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idStreet" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idStreet" SourceColumnNullMapping="false" SourceVersion="Current" />
  555. </Parameters>
  556. </DbCommand>
  557. </UpdateCommand>
  558. </DbSource>
  559. </MainSource>
  560. <Mappings>
  561. <Mapping SourceColumn="idStreet" DataSetColumn="idStreet" />
  562. <Mapping SourceColumn="Street" DataSetColumn="Street" />
  563. </Mappings>
  564. <Sources />
  565. </TableAdapter>
  566. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TypeMaterialTableAdapter" GeneratorDataComponentClassName="TypeMaterialTableAdapter" Name="TypeMaterial" UserDataComponentName="TypeMaterialTableAdapter">
  567. <MainSource>
  568. <DbSource ConnectionRef="dbAlphapolAGConnectionString (Settings)" DbObjectName="dbAlphapolAG.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">
  569. <DeleteCommand>
  570. <DbCommand CommandType="Text" ModifiedByUser="false">
  571. <CommandText>DELETE FROM [dbo].[TypeMaterial] WHERE (([idTypeMaterial] = @Original_idTypeMaterial) AND ((@IsNull_TypeMaterial = 1 AND [TypeMaterial] IS NULL) OR ([TypeMaterial] = @Original_TypeMaterial)) AND ((@IsNull_PercentDefect = 1 AND [PercentDefect] IS NULL) OR ([PercentDefect] = @Original_PercentDefect)))</CommandText>
  572. <Parameters>
  573. <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" />
  574. <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" />
  575. <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" />
  576. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PercentDefect" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PercentDefect" SourceColumnNullMapping="true" SourceVersion="Original" />
  577. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_PercentDefect" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="PercentDefect" SourceColumnNullMapping="false" SourceVersion="Original" />
  578. </Parameters>
  579. </DbCommand>
  580. </DeleteCommand>
  581. <InsertCommand>
  582. <DbCommand CommandType="Text" ModifiedByUser="false">
  583. <CommandText>INSERT INTO [dbo].[TypeMaterial] ([TypeMaterial], [PercentDefect]) VALUES (@TypeMaterial, @PercentDefect);
  584. SELECT idTypeMaterial, TypeMaterial, PercentDefect FROM TypeMaterial WHERE (idTypeMaterial = SCOPE_IDENTITY())</CommandText>
  585. <Parameters>
  586. <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" />
  587. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@PercentDefect" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="PercentDefect" SourceColumnNullMapping="false" SourceVersion="Current" />
  588. </Parameters>
  589. </DbCommand>
  590. </InsertCommand>
  591. <SelectCommand>
  592. <DbCommand CommandType="Text" ModifiedByUser="false">
  593. <CommandText>SELECT idTypeMaterial, TypeMaterial, PercentDefect FROM dbo.TypeMaterial</CommandText>
  594. <Parameters />
  595. </DbCommand>
  596. </SelectCommand>
  597. <UpdateCommand>
  598. <DbCommand CommandType="Text" ModifiedByUser="false">
  599. <CommandText>UPDATE [dbo].[TypeMaterial] SET [TypeMaterial] = @TypeMaterial, [PercentDefect] = @PercentDefect WHERE (([idTypeMaterial] = @Original_idTypeMaterial) AND ((@IsNull_TypeMaterial = 1 AND [TypeMaterial] IS NULL) OR ([TypeMaterial] = @Original_TypeMaterial)) AND ((@IsNull_PercentDefect = 1 AND [PercentDefect] IS NULL) OR ([PercentDefect] = @Original_PercentDefect)));
  600. SELECT idTypeMaterial, TypeMaterial, PercentDefect FROM TypeMaterial WHERE (idTypeMaterial = @idTypeMaterial)</CommandText>
  601. <Parameters>
  602. <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" />
  603. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@PercentDefect" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="PercentDefect" SourceColumnNullMapping="false" SourceVersion="Current" />
  604. <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" />
  605. <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" />
  606. <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" />
  607. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PercentDefect" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PercentDefect" SourceColumnNullMapping="true" SourceVersion="Original" />
  608. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_PercentDefect" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="PercentDefect" SourceColumnNullMapping="false" SourceVersion="Original" />
  609. <Parameter AllowDbNull="false" AutogeneratedName="idTypeMaterial" ColumnName="idTypeMaterial" DataSourceName="dbAlphapolAG.dbo.TypeMaterial" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idTypeMaterial" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idTypeMaterial" SourceColumnNullMapping="false" SourceVersion="Current" />
  610. </Parameters>
  611. </DbCommand>
  612. </UpdateCommand>
  613. </DbSource>
  614. </MainSource>
  615. <Mappings>
  616. <Mapping SourceColumn="idTypeMaterial" DataSetColumn="idTypeMaterial" />
  617. <Mapping SourceColumn="TypeMaterial" DataSetColumn="TypeMaterial" />
  618. <Mapping SourceColumn="PercentDefect" DataSetColumn="PercentDefect" />
  619. </Mappings>
  620. <Sources />
  621. </TableAdapter>
  622. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TypePartnerTableAdapter" GeneratorDataComponentClassName="TypePartnerTableAdapter" Name="TypePartner" UserDataComponentName="TypePartnerTableAdapter">
  623. <MainSource>
  624. <DbSource ConnectionRef="dbAlphapolAGConnectionString (Settings)" DbObjectName="dbAlphapolAG.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">
  625. <DeleteCommand>
  626. <DbCommand CommandType="Text" ModifiedByUser="false">
  627. <CommandText>DELETE FROM [dbo].[TypePartner] WHERE (([idTypePartner] = @Original_idTypePartner) AND ((@IsNull_Type = 1 AND [Type] IS NULL) OR ([Type] = @Original_Type)))</CommandText>
  628. <Parameters>
  629. <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" />
  630. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Type" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Type" SourceColumnNullMapping="true" SourceVersion="Original" />
  631. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Type" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Type" SourceColumnNullMapping="false" SourceVersion="Original" />
  632. </Parameters>
  633. </DbCommand>
  634. </DeleteCommand>
  635. <InsertCommand>
  636. <DbCommand CommandType="Text" ModifiedByUser="false">
  637. <CommandText>INSERT INTO [dbo].[TypePartner] ([Type]) VALUES (@Type);
  638. SELECT idTypePartner, Type FROM TypePartner WHERE (idTypePartner = SCOPE_IDENTITY())</CommandText>
  639. <Parameters>
  640. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Type" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Type" SourceColumnNullMapping="false" SourceVersion="Current" />
  641. </Parameters>
  642. </DbCommand>
  643. </InsertCommand>
  644. <SelectCommand>
  645. <DbCommand CommandType="Text" ModifiedByUser="false">
  646. <CommandText>SELECT idTypePartner, Type FROM dbo.TypePartner</CommandText>
  647. <Parameters />
  648. </DbCommand>
  649. </SelectCommand>
  650. <UpdateCommand>
  651. <DbCommand CommandType="Text" ModifiedByUser="false">
  652. <CommandText>UPDATE [dbo].[TypePartner] SET [Type] = @Type WHERE (([idTypePartner] = @Original_idTypePartner) AND ((@IsNull_Type = 1 AND [Type] IS NULL) OR ([Type] = @Original_Type)));
  653. SELECT idTypePartner, Type FROM TypePartner WHERE (idTypePartner = @idTypePartner)</CommandText>
  654. <Parameters>
  655. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Type" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Type" SourceColumnNullMapping="false" SourceVersion="Current" />
  656. <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" />
  657. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Type" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Type" SourceColumnNullMapping="true" SourceVersion="Original" />
  658. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Type" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Type" SourceColumnNullMapping="false" SourceVersion="Original" />
  659. <Parameter AllowDbNull="false" AutogeneratedName="idTypePartner" ColumnName="idTypePartner" DataSourceName="dbAlphapolAG.dbo.TypePartner" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idTypePartner" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idTypePartner" SourceColumnNullMapping="false" SourceVersion="Current" />
  660. </Parameters>
  661. </DbCommand>
  662. </UpdateCommand>
  663. </DbSource>
  664. </MainSource>
  665. <Mappings>
  666. <Mapping SourceColumn="idTypePartner" DataSetColumn="idTypePartner" />
  667. <Mapping SourceColumn="Type" DataSetColumn="Type" />
  668. </Mappings>
  669. <Sources />
  670. </TableAdapter>
  671. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TypeProductTableAdapter" GeneratorDataComponentClassName="TypeProductTableAdapter" Name="TypeProduct" UserDataComponentName="TypeProductTableAdapter">
  672. <MainSource>
  673. <DbSource ConnectionRef="dbAlphapolAGConnectionString (Settings)" DbObjectName="dbAlphapolAG.dbo.TypeProduct" 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">
  674. <DeleteCommand>
  675. <DbCommand CommandType="Text" ModifiedByUser="false">
  676. <CommandText>DELETE FROM [dbo].[TypeProduct] WHERE (([idTypeProduct] = @Original_idTypeProduct) AND ((@IsNull_TypeProduct = 1 AND [TypeProduct] IS NULL) OR ([TypeProduct] = @Original_TypeProduct)) AND ((@IsNull_Coefficient = 1 AND [Coefficient] IS NULL) OR ([Coefficient] = @Original_Coefficient)))</CommandText>
  677. <Parameters>
  678. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idTypeProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idTypeProduct" SourceColumnNullMapping="false" SourceVersion="Original" />
  679. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TypeProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TypeProduct" SourceColumnNullMapping="true" SourceVersion="Original" />
  680. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TypeProduct" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TypeProduct" SourceColumnNullMapping="false" SourceVersion="Original" />
  681. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Coefficient" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Coefficient" SourceColumnNullMapping="true" SourceVersion="Original" />
  682. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Coefficient" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Coefficient" SourceColumnNullMapping="false" SourceVersion="Original" />
  683. </Parameters>
  684. </DbCommand>
  685. </DeleteCommand>
  686. <InsertCommand>
  687. <DbCommand CommandType="Text" ModifiedByUser="false">
  688. <CommandText>INSERT INTO [dbo].[TypeProduct] ([TypeProduct], [Coefficient]) VALUES (@TypeProduct, @Coefficient);
  689. SELECT idTypeProduct, TypeProduct, Coefficient FROM TypeProduct WHERE (idTypeProduct = SCOPE_IDENTITY())</CommandText>
  690. <Parameters>
  691. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TypeProduct" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TypeProduct" SourceColumnNullMapping="false" SourceVersion="Current" />
  692. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Coefficient" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Coefficient" SourceColumnNullMapping="false" SourceVersion="Current" />
  693. </Parameters>
  694. </DbCommand>
  695. </InsertCommand>
  696. <SelectCommand>
  697. <DbCommand CommandType="Text" ModifiedByUser="false">
  698. <CommandText>SELECT idTypeProduct, TypeProduct, Coefficient FROM dbo.TypeProduct</CommandText>
  699. <Parameters />
  700. </DbCommand>
  701. </SelectCommand>
  702. <UpdateCommand>
  703. <DbCommand CommandType="Text" ModifiedByUser="false">
  704. <CommandText>UPDATE [dbo].[TypeProduct] SET [TypeProduct] = @TypeProduct, [Coefficient] = @Coefficient WHERE (([idTypeProduct] = @Original_idTypeProduct) AND ((@IsNull_TypeProduct = 1 AND [TypeProduct] IS NULL) OR ([TypeProduct] = @Original_TypeProduct)) AND ((@IsNull_Coefficient = 1 AND [Coefficient] IS NULL) OR ([Coefficient] = @Original_Coefficient)));
  705. SELECT idTypeProduct, TypeProduct, Coefficient FROM TypeProduct WHERE (idTypeProduct = @idTypeProduct)</CommandText>
  706. <Parameters>
  707. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TypeProduct" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TypeProduct" SourceColumnNullMapping="false" SourceVersion="Current" />
  708. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Coefficient" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Coefficient" SourceColumnNullMapping="false" SourceVersion="Current" />
  709. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idTypeProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idTypeProduct" SourceColumnNullMapping="false" SourceVersion="Original" />
  710. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TypeProduct" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TypeProduct" SourceColumnNullMapping="true" SourceVersion="Original" />
  711. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TypeProduct" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TypeProduct" SourceColumnNullMapping="false" SourceVersion="Original" />
  712. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Coefficient" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Coefficient" SourceColumnNullMapping="true" SourceVersion="Original" />
  713. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Coefficient" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Coefficient" SourceColumnNullMapping="false" SourceVersion="Original" />
  714. <Parameter AllowDbNull="false" AutogeneratedName="idTypeProduct" ColumnName="idTypeProduct" DataSourceName="dbAlphapolAG.dbo.TypeProduct" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idTypeProduct" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idTypeProduct" SourceColumnNullMapping="false" SourceVersion="Current" />
  715. </Parameters>
  716. </DbCommand>
  717. </UpdateCommand>
  718. </DbSource>
  719. </MainSource>
  720. <Mappings>
  721. <Mapping SourceColumn="idTypeProduct" DataSetColumn="idTypeProduct" />
  722. <Mapping SourceColumn="TypeProduct" DataSetColumn="TypeProduct" />
  723. <Mapping SourceColumn="Coefficient" DataSetColumn="Coefficient" />
  724. </Mappings>
  725. <Sources />
  726. </TableAdapter>
  727. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TypeForFilterTableAdapter" GeneratorDataComponentClassName="TypeForFilterTableAdapter" Name="TypeForFilter" UserDataComponentName="TypeForFilterTableAdapter">
  728. <MainSource>
  729. <DbSource ConnectionRef="dbAlphapolAGConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
  730. <SelectCommand>
  731. <DbCommand CommandType="Text" ModifiedByUser="true">
  732. <CommandText>select 'Все типы'
  733. union all
  734. select type
  735. from TypePartner</CommandText>
  736. <Parameters />
  737. </DbCommand>
  738. </SelectCommand>
  739. </DbSource>
  740. </MainSource>
  741. <Mappings>
  742. <Mapping SourceColumn="Column1" DataSetColumn="Type" />
  743. </Mappings>
  744. <Sources />
  745. </TableAdapter>
  746. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="HistorySaleTableAdapter" GeneratorDataComponentClassName="HistorySaleTableAdapter" Name="HistorySale" UserDataComponentName="HistorySaleTableAdapter">
  747. <MainSource>
  748. <DbSource ConnectionRef="dbAlphapolAGConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
  749. <SelectCommand>
  750. <DbCommand CommandType="Text" ModifiedByUser="true">
  751. <CommandText>SELECT ProductPartner.idPartner, Products.NameProduct, ProductPartner.CountProduct, ProductPartner.DateSale
  752. FROM ProductPartner INNER JOIN
  753. Products ON ProductPartner.idProduct = Products.idProduct</CommandText>
  754. <Parameters />
  755. </DbCommand>
  756. </SelectCommand>
  757. </DbSource>
  758. </MainSource>
  759. <Mappings>
  760. <Mapping SourceColumn="idPartner" DataSetColumn="idPartner" />
  761. <Mapping SourceColumn="NameProduct" DataSetColumn="NameProduct" />
  762. <Mapping SourceColumn="CountProduct" DataSetColumn="CountProduct" />
  763. <Mapping SourceColumn="DateSale" DataSetColumn="DateSale" />
  764. </Mappings>
  765. <Sources />
  766. </TableAdapter>
  767. </Tables>
  768. <Sources />
  769. </DataSource>
  770. </xs:appinfo>
  771. </xs:annotation>
  772. <xs:element name="dbAlphapolAGDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="dbAlphapolAGDataSet" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="dbAlphapolAGDataSet">
  773. <xs:complexType>
  774. <xs:choice minOccurs="0" maxOccurs="unbounded">
  775. <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_UserTableName="City" msprop:Generator_RowChangingName="CityRowChanging" msprop:Generator_RowClassName="CityRow" msprop:Generator_TableClassName="CityDataTable" msprop:Generator_TableVarName="tableCity">
  776. <xs:complexType>
  777. <xs:sequence>
  778. <xs:element name="idCity" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="1" msprop:Generator_ColumnPropNameInTable="idCityColumn" msprop:Generator_ColumnPropNameInRow="idCity" msprop:Generator_UserColumnName="idCity" msprop:Generator_ColumnVarNameInTable="columnidCity" type="xs:int" />
  779. <xs:element name="City" msprop:Generator_ColumnPropNameInTable="CityColumn" msprop:Generator_ColumnPropNameInRow="City" msprop:Generator_UserColumnName="City" msprop:Generator_ColumnVarNameInTable="columnCity" minOccurs="0">
  780. <xs:simpleType>
  781. <xs:restriction base="xs:string">
  782. <xs:maxLength value="50" />
  783. </xs:restriction>
  784. </xs:simpleType>
  785. </xs:element>
  786. </xs:sequence>
  787. </xs:complexType>
  788. </xs:element>
  789. <xs:element name="IndexPartner" msprop:Generator_RowEvHandlerName="IndexPartnerRowChangeEventHandler" msprop:Generator_RowDeletedName="IndexPartnerRowDeleted" msprop:Generator_RowDeletingName="IndexPartnerRowDeleting" msprop:Generator_RowEvArgName="IndexPartnerRowChangeEvent" msprop:Generator_TablePropName="IndexPartner" msprop:Generator_RowChangedName="IndexPartnerRowChanged" msprop:Generator_UserTableName="IndexPartner" msprop:Generator_RowChangingName="IndexPartnerRowChanging" msprop:Generator_RowClassName="IndexPartnerRow" msprop:Generator_TableClassName="IndexPartnerDataTable" msprop:Generator_TableVarName="tableIndexPartner">
  790. <xs:complexType>
  791. <xs:sequence>
  792. <xs:element name="idIndex" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="1" msprop:Generator_ColumnPropNameInTable="idIndexColumn" msprop:Generator_ColumnPropNameInRow="idIndex" msprop:Generator_UserColumnName="idIndex" msprop:Generator_ColumnVarNameInTable="columnidIndex" type="xs:int" />
  793. <xs:element name="CodePartner" msprop:Generator_ColumnPropNameInTable="CodePartnerColumn" msprop:Generator_ColumnPropNameInRow="CodePartner" msprop:Generator_UserColumnName="CodePartner" msprop:Generator_ColumnVarNameInTable="columnCodePartner" minOccurs="0">
  794. <xs:simpleType>
  795. <xs:restriction base="xs:string">
  796. <xs:maxLength value="50" />
  797. </xs:restriction>
  798. </xs:simpleType>
  799. </xs:element>
  800. </xs:sequence>
  801. </xs:complexType>
  802. </xs:element>
  803. <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_UserTableName="Manager" msprop:Generator_RowChangingName="ManagerRowChanging" msprop:Generator_RowClassName="ManagerRow" msprop:Generator_TableClassName="ManagerDataTable" msprop:Generator_TableVarName="tableManager">
  804. <xs:complexType>
  805. <xs:sequence>
  806. <xs:element name="idManager" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="1" msprop:Generator_ColumnPropNameInTable="idManagerColumn" msprop:Generator_ColumnPropNameInRow="idManager" msprop:Generator_UserColumnName="idManager" msprop:Generator_ColumnVarNameInTable="columnidManager" type="xs:int" />
  807. <xs:element name="Surname" msprop:Generator_ColumnPropNameInTable="SurnameColumn" msprop:Generator_ColumnPropNameInRow="Surname" msprop:Generator_UserColumnName="Surname" msprop:Generator_ColumnVarNameInTable="columnSurname" minOccurs="0">
  808. <xs:simpleType>
  809. <xs:restriction base="xs:string">
  810. <xs:maxLength value="50" />
  811. </xs:restriction>
  812. </xs:simpleType>
  813. </xs:element>
  814. <xs:element name="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_UserColumnName="Name" msprop:Generator_ColumnVarNameInTable="columnName" minOccurs="0">
  815. <xs:simpleType>
  816. <xs:restriction base="xs:string">
  817. <xs:maxLength value="50" />
  818. </xs:restriction>
  819. </xs:simpleType>
  820. </xs:element>
  821. <xs:element name="Patronymic" msprop:Generator_ColumnPropNameInTable="PatronymicColumn" msprop:Generator_ColumnPropNameInRow="Patronymic" msprop:Generator_UserColumnName="Patronymic" msprop:Generator_ColumnVarNameInTable="columnPatronymic" minOccurs="0">
  822. <xs:simpleType>
  823. <xs:restriction base="xs:string">
  824. <xs:maxLength value="50" />
  825. </xs:restriction>
  826. </xs:simpleType>
  827. </xs:element>
  828. <xs:element name="Login" msprop:Generator_ColumnPropNameInTable="LoginColumn" msprop:Generator_ColumnPropNameInRow="Login" msprop:Generator_UserColumnName="Login" msprop:Generator_ColumnVarNameInTable="columnLogin" minOccurs="0">
  829. <xs:simpleType>
  830. <xs:restriction base="xs:string">
  831. <xs:maxLength value="50" />
  832. </xs:restriction>
  833. </xs:simpleType>
  834. </xs:element>
  835. <xs:element name="Password" msprop:Generator_ColumnPropNameInTable="PasswordColumn" msprop:Generator_ColumnPropNameInRow="Password" msprop:Generator_UserColumnName="Password" msprop:Generator_ColumnVarNameInTable="columnPassword" minOccurs="0">
  836. <xs:simpleType>
  837. <xs:restriction base="xs:string">
  838. <xs:maxLength value="50" />
  839. </xs:restriction>
  840. </xs:simpleType>
  841. </xs:element>
  842. <xs:element name="Photo" msprop:Generator_ColumnPropNameInTable="PhotoColumn" msprop:Generator_ColumnPropNameInRow="Photo" msprop:Generator_UserColumnName="Photo" msprop:Generator_ColumnVarNameInTable="columnPhoto" minOccurs="0">
  843. <xs:simpleType>
  844. <xs:restriction base="xs:string">
  845. <xs:maxLength value="50" />
  846. </xs:restriction>
  847. </xs:simpleType>
  848. </xs:element>
  849. </xs:sequence>
  850. </xs:complexType>
  851. </xs:element>
  852. <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_UserTableName="Partner" msprop:Generator_RowChangingName="PartnerRowChanging" msprop:Generator_RowClassName="PartnerRow" msprop:Generator_TableClassName="PartnerDataTable" msprop:Generator_TableVarName="tablePartner">
  853. <xs:complexType>
  854. <xs:sequence>
  855. <xs:element name="idPartner" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="1" msprop:Generator_ColumnPropNameInTable="idPartnerColumn" msprop:Generator_ColumnPropNameInRow="idPartner" msprop:Generator_UserColumnName="idPartner" msprop:Generator_ColumnVarNameInTable="columnidPartner" type="xs:int" />
  856. <xs:element name="Surname" msprop:Generator_ColumnPropNameInTable="SurnameColumn" msprop:Generator_ColumnPropNameInRow="Surname" msprop:Generator_UserColumnName="Surname" msprop:Generator_ColumnVarNameInTable="columnSurname" minOccurs="0">
  857. <xs:simpleType>
  858. <xs:restriction base="xs:string">
  859. <xs:maxLength value="50" />
  860. </xs:restriction>
  861. </xs:simpleType>
  862. </xs:element>
  863. <xs:element name="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_UserColumnName="Name" msprop:Generator_ColumnVarNameInTable="columnName" minOccurs="0">
  864. <xs:simpleType>
  865. <xs:restriction base="xs:string">
  866. <xs:maxLength value="50" />
  867. </xs:restriction>
  868. </xs:simpleType>
  869. </xs:element>
  870. <xs:element name="Patronymic" msprop:Generator_ColumnPropNameInTable="PatronymicColumn" msprop:Generator_ColumnPropNameInRow="Patronymic" msprop:Generator_UserColumnName="Patronymic" msprop:Generator_ColumnVarNameInTable="columnPatronymic" minOccurs="0">
  871. <xs:simpleType>
  872. <xs:restriction base="xs:string">
  873. <xs:maxLength value="50" />
  874. </xs:restriction>
  875. </xs:simpleType>
  876. </xs:element>
  877. <xs:element name="Email" msprop:Generator_ColumnPropNameInTable="EmailColumn" msprop:Generator_ColumnPropNameInRow="Email" msprop:Generator_UserColumnName="Email" msprop:Generator_ColumnVarNameInTable="columnEmail" minOccurs="0">
  878. <xs:simpleType>
  879. <xs:restriction base="xs:string">
  880. <xs:maxLength value="50" />
  881. </xs:restriction>
  882. </xs:simpleType>
  883. </xs:element>
  884. <xs:element name="Phone" msprop:Generator_ColumnPropNameInTable="PhoneColumn" msprop:Generator_ColumnPropNameInRow="Phone" msprop:Generator_UserColumnName="Phone" msprop:Generator_ColumnVarNameInTable="columnPhone" minOccurs="0">
  885. <xs:simpleType>
  886. <xs:restriction base="xs:string">
  887. <xs:maxLength value="50" />
  888. </xs:restriction>
  889. </xs:simpleType>
  890. </xs:element>
  891. <xs:element name="idIndex" msprop:Generator_ColumnPropNameInTable="idIndexColumn" msprop:Generator_ColumnPropNameInRow="idIndex" msprop:Generator_UserColumnName="idIndex" msprop:Generator_ColumnVarNameInTable="columnidIndex" type="xs:int" minOccurs="0" />
  892. <xs:element name="idCity" msprop:Generator_ColumnPropNameInTable="idCityColumn" msprop:Generator_ColumnPropNameInRow="idCity" msprop:Generator_UserColumnName="idCity" msprop:Generator_ColumnVarNameInTable="columnidCity" type="xs:int" minOccurs="0" />
  893. <xs:element name="idStreet" msprop:Generator_ColumnPropNameInTable="idStreetColumn" msprop:Generator_ColumnPropNameInRow="idStreet" msprop:Generator_UserColumnName="idStreet" msprop:Generator_ColumnVarNameInTable="columnidStreet" type="xs:int" minOccurs="0" />
  894. <xs:element name="House" msprop:Generator_ColumnPropNameInTable="HouseColumn" msprop:Generator_ColumnPropNameInRow="House" msprop:Generator_UserColumnName="House" msprop:Generator_ColumnVarNameInTable="columnHouse" type="xs:int" minOccurs="0" />
  895. <xs:element name="INN" msprop:Generator_ColumnPropNameInTable="INNColumn" msprop:Generator_ColumnPropNameInRow="INN" msprop:Generator_UserColumnName="INN" msprop:Generator_ColumnVarNameInTable="columnINN" minOccurs="0">
  896. <xs:simpleType>
  897. <xs:restriction base="xs:string">
  898. <xs:maxLength value="50" />
  899. </xs:restriction>
  900. </xs:simpleType>
  901. </xs:element>
  902. <xs:element name="Rating" msprop:Generator_ColumnPropNameInTable="RatingColumn" msprop:Generator_ColumnPropNameInRow="Rating" msprop:Generator_UserColumnName="Rating" msprop:Generator_ColumnVarNameInTable="columnRating" minOccurs="0">
  903. <xs:simpleType>
  904. <xs:restriction base="xs:string">
  905. <xs:maxLength value="50" />
  906. </xs:restriction>
  907. </xs:simpleType>
  908. </xs:element>
  909. <xs:element name="idRegion" msprop:Generator_ColumnPropNameInTable="idRegionColumn" msprop:Generator_ColumnPropNameInRow="idRegion" msprop:Generator_UserColumnName="idRegion" msprop:Generator_ColumnVarNameInTable="columnidRegion" type="xs:int" minOccurs="0" />
  910. <xs:element name="idTypePartner" msprop:Generator_ColumnPropNameInTable="idTypePartnerColumn" msprop:Generator_ColumnPropNameInRow="idTypePartner" msprop:Generator_UserColumnName="idTypePartner" msprop:Generator_ColumnVarNameInTable="columnidTypePartner" type="xs:int" minOccurs="0" />
  911. <xs:element name="NamePartner" msprop:Generator_ColumnPropNameInTable="NamePartnerColumn" msprop:Generator_ColumnPropNameInRow="NamePartner" msprop:Generator_UserColumnName="NamePartner" msprop:Generator_ColumnVarNameInTable="columnNamePartner" minOccurs="0">
  912. <xs:simpleType>
  913. <xs:restriction base="xs:string">
  914. <xs:maxLength value="50" />
  915. </xs:restriction>
  916. </xs:simpleType>
  917. </xs:element>
  918. </xs:sequence>
  919. </xs:complexType>
  920. </xs:element>
  921. <xs:element name="ProductPartner" msprop:Generator_RowEvHandlerName="ProductPartnerRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductPartnerRowDeleted" msprop:Generator_RowDeletingName="ProductPartnerRowDeleting" msprop:Generator_RowEvArgName="ProductPartnerRowChangeEvent" msprop:Generator_TablePropName="ProductPartner" msprop:Generator_RowChangedName="ProductPartnerRowChanged" msprop:Generator_UserTableName="ProductPartner" msprop:Generator_RowChangingName="ProductPartnerRowChanging" msprop:Generator_RowClassName="ProductPartnerRow" msprop:Generator_TableClassName="ProductPartnerDataTable" msprop:Generator_TableVarName="tableProductPartner">
  922. <xs:complexType>
  923. <xs:sequence>
  924. <xs:element name="idPartnerProduct" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="1" msprop:Generator_ColumnPropNameInTable="idPartnerProductColumn" msprop:Generator_ColumnPropNameInRow="idPartnerProduct" msprop:Generator_UserColumnName="idPartnerProduct" msprop:Generator_ColumnVarNameInTable="columnidPartnerProduct" type="xs:int" />
  925. <xs:element name="idProduct" msprop:Generator_ColumnPropNameInTable="idProductColumn" msprop:Generator_ColumnPropNameInRow="idProduct" msprop:Generator_UserColumnName="idProduct" msprop:Generator_ColumnVarNameInTable="columnidProduct" type="xs:int" minOccurs="0" />
  926. <xs:element name="idPartner" msprop:Generator_ColumnPropNameInTable="idPartnerColumn" msprop:Generator_ColumnPropNameInRow="idPartner" msprop:Generator_UserColumnName="idPartner" msprop:Generator_ColumnVarNameInTable="columnidPartner" type="xs:int" minOccurs="0" />
  927. <xs:element name="CountProduct" msprop:Generator_ColumnPropNameInTable="CountProductColumn" msprop:Generator_ColumnPropNameInRow="CountProduct" msprop:Generator_UserColumnName="CountProduct" msprop:Generator_ColumnVarNameInTable="columnCountProduct" type="xs:int" minOccurs="0" />
  928. <xs:element name="DateSale" msprop:Generator_ColumnPropNameInTable="DateSaleColumn" msprop:Generator_ColumnPropNameInRow="DateSale" msprop:Generator_UserColumnName="DateSale" msprop:Generator_ColumnVarNameInTable="columnDateSale" type="xs:dateTime" minOccurs="0" />
  929. </xs:sequence>
  930. </xs:complexType>
  931. </xs:element>
  932. <xs:element name="Products" msprop:Generator_RowEvHandlerName="ProductsRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductsRowDeleted" msprop:Generator_RowDeletingName="ProductsRowDeleting" msprop:Generator_RowEvArgName="ProductsRowChangeEvent" msprop:Generator_TablePropName="Products" msprop:Generator_RowChangedName="ProductsRowChanged" msprop:Generator_UserTableName="Products" msprop:Generator_RowChangingName="ProductsRowChanging" msprop:Generator_RowClassName="ProductsRow" msprop:Generator_TableClassName="ProductsDataTable" msprop:Generator_TableVarName="tableProducts">
  933. <xs:complexType>
  934. <xs:sequence>
  935. <xs:element name="idProduct" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="1" msprop:Generator_ColumnPropNameInTable="idProductColumn" msprop:Generator_ColumnPropNameInRow="idProduct" msprop:Generator_UserColumnName="idProduct" msprop:Generator_ColumnVarNameInTable="columnidProduct" type="xs:int" />
  936. <xs:element name="idTypeProduct" msprop:Generator_ColumnPropNameInTable="idTypeProductColumn" msprop:Generator_ColumnPropNameInRow="idTypeProduct" msprop:Generator_UserColumnName="idTypeProduct" msprop:Generator_ColumnVarNameInTable="columnidTypeProduct" type="xs:int" minOccurs="0" />
  937. <xs:element name="NameProduct" msprop:Generator_ColumnPropNameInTable="NameProductColumn" msprop:Generator_ColumnPropNameInRow="NameProduct" msprop:Generator_UserColumnName="NameProduct" msprop:Generator_ColumnVarNameInTable="columnNameProduct" minOccurs="0">
  938. <xs:simpleType>
  939. <xs:restriction base="xs:string">
  940. <xs:maxLength value="2147483647" />
  941. </xs:restriction>
  942. </xs:simpleType>
  943. </xs:element>
  944. <xs:element name="Article" msprop:Generator_ColumnPropNameInTable="ArticleColumn" msprop:Generator_ColumnPropNameInRow="Article" msprop:Generator_UserColumnName="Article" msprop:Generator_ColumnVarNameInTable="columnArticle" type="xs:int" minOccurs="0" />
  945. <xs:element name="MinCost" msprop:Generator_ColumnPropNameInTable="MinCostColumn" msprop:Generator_ColumnPropNameInRow="MinCost" msprop:Generator_UserColumnName="MinCost" msprop:Generator_ColumnVarNameInTable="columnMinCost" type="xs:decimal" minOccurs="0" />
  946. </xs:sequence>
  947. </xs:complexType>
  948. </xs:element>
  949. <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_UserTableName="Region" msprop:Generator_RowChangingName="RegionRowChanging" msprop:Generator_RowClassName="RegionRow" msprop:Generator_TableClassName="RegionDataTable" msprop:Generator_TableVarName="tableRegion">
  950. <xs:complexType>
  951. <xs:sequence>
  952. <xs:element name="idRegion" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="1" msprop:Generator_ColumnPropNameInTable="idRegionColumn" msprop:Generator_ColumnPropNameInRow="idRegion" msprop:Generator_UserColumnName="idRegion" msprop:Generator_ColumnVarNameInTable="columnidRegion" type="xs:int" />
  953. <xs:element name="Region" msprop:Generator_ColumnPropNameInTable="RegionColumn" msprop:Generator_ColumnPropNameInRow="Region" msprop:Generator_UserColumnName="Region" msprop:Generator_ColumnVarNameInTable="columnRegion" minOccurs="0">
  954. <xs:simpleType>
  955. <xs:restriction base="xs:string">
  956. <xs:maxLength value="50" />
  957. </xs:restriction>
  958. </xs:simpleType>
  959. </xs:element>
  960. </xs:sequence>
  961. </xs:complexType>
  962. </xs:element>
  963. <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_UserTableName="Street" msprop:Generator_RowChangingName="StreetRowChanging" msprop:Generator_RowClassName="StreetRow" msprop:Generator_TableClassName="StreetDataTable" msprop:Generator_TableVarName="tableStreet">
  964. <xs:complexType>
  965. <xs:sequence>
  966. <xs:element name="idStreet" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="1" msprop:Generator_ColumnPropNameInTable="idStreetColumn" msprop:Generator_ColumnPropNameInRow="idStreet" msprop:Generator_UserColumnName="idStreet" msprop:Generator_ColumnVarNameInTable="columnidStreet" type="xs:int" />
  967. <xs:element name="Street" msprop:Generator_ColumnPropNameInTable="StreetColumn" msprop:Generator_ColumnPropNameInRow="Street" msprop:Generator_UserColumnName="Street" msprop:Generator_ColumnVarNameInTable="columnStreet" 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: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_UserTableName="TypeMaterial" msprop:Generator_RowChangingName="TypeMaterialRowChanging" msprop:Generator_RowClassName="TypeMaterialRow" msprop:Generator_TableClassName="TypeMaterialDataTable" msprop:Generator_TableVarName="tableTypeMaterial">
  978. <xs:complexType>
  979. <xs:sequence>
  980. <xs:element name="idTypeMaterial" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="1" msprop:Generator_ColumnPropNameInTable="idTypeMaterialColumn" msprop:Generator_ColumnPropNameInRow="idTypeMaterial" msprop:Generator_UserColumnName="idTypeMaterial" msprop:Generator_ColumnVarNameInTable="columnidTypeMaterial" type="xs:int" />
  981. <xs:element name="TypeMaterial" msprop:Generator_ColumnPropNameInTable="TypeMaterialColumn" msprop:Generator_ColumnPropNameInRow="TypeMaterial" msprop:Generator_UserColumnName="TypeMaterial" msprop:Generator_ColumnVarNameInTable="columnTypeMaterial" minOccurs="0">
  982. <xs:simpleType>
  983. <xs:restriction base="xs:string">
  984. <xs:maxLength value="50" />
  985. </xs:restriction>
  986. </xs:simpleType>
  987. </xs:element>
  988. <xs:element name="PercentDefect" msprop:Generator_ColumnPropNameInTable="PercentDefectColumn" msprop:Generator_ColumnPropNameInRow="PercentDefect" msprop:Generator_UserColumnName="PercentDefect" msprop:Generator_ColumnVarNameInTable="columnPercentDefect" type="xs:decimal" minOccurs="0" />
  989. </xs:sequence>
  990. </xs:complexType>
  991. </xs:element>
  992. <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_UserTableName="TypePartner" msprop:Generator_RowChangingName="TypePartnerRowChanging" msprop:Generator_RowClassName="TypePartnerRow" msprop:Generator_TableClassName="TypePartnerDataTable" msprop:Generator_TableVarName="tableTypePartner">
  993. <xs:complexType>
  994. <xs:sequence>
  995. <xs:element name="idTypePartner" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="1" msprop:Generator_ColumnPropNameInTable="idTypePartnerColumn" msprop:Generator_ColumnPropNameInRow="idTypePartner" msprop:Generator_UserColumnName="idTypePartner" msprop:Generator_ColumnVarNameInTable="columnidTypePartner" type="xs:int" />
  996. <xs:element name="Type" msprop:Generator_ColumnPropNameInTable="TypeColumn" msprop:Generator_ColumnPropNameInRow="Type" msprop:Generator_UserColumnName="Type" msprop:Generator_ColumnVarNameInTable="columnType" minOccurs="0">
  997. <xs:simpleType>
  998. <xs:restriction base="xs:string">
  999. <xs:maxLength value="50" />
  1000. </xs:restriction>
  1001. </xs:simpleType>
  1002. </xs:element>
  1003. </xs:sequence>
  1004. </xs:complexType>
  1005. </xs:element>
  1006. <xs:element name="TypeProduct" msprop:Generator_RowEvHandlerName="TypeProductRowChangeEventHandler" msprop:Generator_RowDeletedName="TypeProductRowDeleted" msprop:Generator_RowDeletingName="TypeProductRowDeleting" msprop:Generator_RowEvArgName="TypeProductRowChangeEvent" msprop:Generator_TablePropName="TypeProduct" msprop:Generator_RowChangedName="TypeProductRowChanged" msprop:Generator_UserTableName="TypeProduct" msprop:Generator_RowChangingName="TypeProductRowChanging" msprop:Generator_RowClassName="TypeProductRow" msprop:Generator_TableClassName="TypeProductDataTable" msprop:Generator_TableVarName="tableTypeProduct">
  1007. <xs:complexType>
  1008. <xs:sequence>
  1009. <xs:element name="idTypeProduct" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="1" msprop:Generator_ColumnPropNameInTable="idTypeProductColumn" msprop:Generator_ColumnPropNameInRow="idTypeProduct" msprop:Generator_UserColumnName="idTypeProduct" msprop:Generator_ColumnVarNameInTable="columnidTypeProduct" type="xs:int" />
  1010. <xs:element name="TypeProduct" msprop:Generator_ColumnPropNameInTable="TypeProductColumn" msprop:Generator_ColumnPropNameInRow="TypeProduct" msprop:Generator_UserColumnName="TypeProduct" msprop:Generator_ColumnVarNameInTable="columnTypeProduct" minOccurs="0">
  1011. <xs:simpleType>
  1012. <xs:restriction base="xs:string">
  1013. <xs:maxLength value="50" />
  1014. </xs:restriction>
  1015. </xs:simpleType>
  1016. </xs:element>
  1017. <xs:element name="Coefficient" msprop:Generator_ColumnPropNameInTable="CoefficientColumn" msprop:Generator_ColumnPropNameInRow="Coefficient" msprop:Generator_UserColumnName="Coefficient" msprop:Generator_ColumnVarNameInTable="columnCoefficient" type="xs:double" minOccurs="0" />
  1018. </xs:sequence>
  1019. </xs:complexType>
  1020. </xs:element>
  1021. <xs:element name="TypeForFilter" msprop:Generator_RowClassName="TypeForFilterRow" msprop:Generator_RowEvHandlerName="TypeForFilterRowChangeEventHandler" msprop:Generator_RowDeletedName="TypeForFilterRowDeleted" msprop:Generator_RowDeletingName="TypeForFilterRowDeleting" msprop:Generator_RowEvArgName="TypeForFilterRowChangeEvent" msprop:Generator_TablePropName="TypeForFilter" msprop:Generator_RowChangedName="TypeForFilterRowChanged" msprop:Generator_UserTableName="TypeForFilter" msprop:Generator_RowChangingName="TypeForFilterRowChanging" msprop:Generator_TableClassName="TypeForFilterDataTable" msprop:Generator_TableVarName="tableTypeForFilter">
  1022. <xs:complexType>
  1023. <xs:sequence>
  1024. <xs:element name="Type" msdata:ReadOnly="true" msdata:Caption="Column1" msprop:Generator_UserColumnName="Type" msprop:Generator_ColumnPropNameInTable="TypeColumn" msprop:Generator_ColumnPropNameInRow="Type" msprop:Generator_ColumnVarNameInTable="columnType" minOccurs="0">
  1025. <xs:simpleType>
  1026. <xs:restriction base="xs:string">
  1027. <xs:maxLength value="50" />
  1028. </xs:restriction>
  1029. </xs:simpleType>
  1030. </xs:element>
  1031. </xs:sequence>
  1032. </xs:complexType>
  1033. </xs:element>
  1034. <xs:element name="HistorySale" msprop:Generator_RowEvHandlerName="HistorySaleRowChangeEventHandler" msprop:Generator_RowDeletedName="HistorySaleRowDeleted" msprop:Generator_RowDeletingName="HistorySaleRowDeleting" msprop:Generator_RowEvArgName="HistorySaleRowChangeEvent" msprop:Generator_TablePropName="HistorySale" msprop:Generator_RowChangedName="HistorySaleRowChanged" msprop:Generator_RowChangingName="HistorySaleRowChanging" msprop:Generator_TableClassName="HistorySaleDataTable" msprop:Generator_RowClassName="HistorySaleRow" msprop:Generator_TableVarName="tableHistorySale" msprop:Generator_UserTableName="HistorySale">
  1035. <xs:complexType>
  1036. <xs:sequence>
  1037. <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" />
  1038. <xs:element name="NameProduct" msprop:Generator_ColumnPropNameInRow="NameProduct" msprop:Generator_ColumnPropNameInTable="NameProductColumn" msprop:Generator_ColumnVarNameInTable="columnNameProduct" msprop:Generator_UserColumnName="NameProduct" minOccurs="0">
  1039. <xs:simpleType>
  1040. <xs:restriction base="xs:string">
  1041. <xs:maxLength value="2147483647" />
  1042. </xs:restriction>
  1043. </xs:simpleType>
  1044. </xs:element>
  1045. <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" />
  1046. <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" />
  1047. </xs:sequence>
  1048. </xs:complexType>
  1049. </xs:element>
  1050. </xs:choice>
  1051. </xs:complexType>
  1052. <xs:unique name="Constraint1" msdata:PrimaryKey="true">
  1053. <xs:selector xpath=".//mstns:City" />
  1054. <xs:field xpath="mstns:idCity" />
  1055. </xs:unique>
  1056. <xs:unique name="IndexPartner_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1057. <xs:selector xpath=".//mstns:IndexPartner" />
  1058. <xs:field xpath="mstns:idIndex" />
  1059. </xs:unique>
  1060. <xs:unique name="Manager_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1061. <xs:selector xpath=".//mstns:Manager" />
  1062. <xs:field xpath="mstns:idManager" />
  1063. </xs:unique>
  1064. <xs:unique name="Partner_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1065. <xs:selector xpath=".//mstns:Partner" />
  1066. <xs:field xpath="mstns:idPartner" />
  1067. </xs:unique>
  1068. <xs:unique name="ProductPartner_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1069. <xs:selector xpath=".//mstns:ProductPartner" />
  1070. <xs:field xpath="mstns:idPartnerProduct" />
  1071. </xs:unique>
  1072. <xs:unique name="Products_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1073. <xs:selector xpath=".//mstns:Products" />
  1074. <xs:field xpath="mstns:idProduct" />
  1075. </xs:unique>
  1076. <xs:unique name="Region_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1077. <xs:selector xpath=".//mstns:Region" />
  1078. <xs:field xpath="mstns:idRegion" />
  1079. </xs:unique>
  1080. <xs:unique name="Street_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1081. <xs:selector xpath=".//mstns:Street" />
  1082. <xs:field xpath="mstns:idStreet" />
  1083. </xs:unique>
  1084. <xs:unique name="TypeMaterial_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1085. <xs:selector xpath=".//mstns:TypeMaterial" />
  1086. <xs:field xpath="mstns:idTypeMaterial" />
  1087. </xs:unique>
  1088. <xs:unique name="TypePartner_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1089. <xs:selector xpath=".//mstns:TypePartner" />
  1090. <xs:field xpath="mstns:idTypePartner" />
  1091. </xs:unique>
  1092. <xs:unique name="TypeProduct_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1093. <xs:selector xpath=".//mstns:TypeProduct" />
  1094. <xs:field xpath="mstns:idTypeProduct" />
  1095. </xs:unique>
  1096. </xs:element>
  1097. <xs:annotation>
  1098. <xs:appinfo>
  1099. <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" />
  1100. <msdata:Relationship name="FK_Partner_IndexPartner" msdata:parent="IndexPartner" msdata:child="Partner" msdata:parentkey="idIndex" msdata:childkey="idIndex" msprop:Generator_UserParentTable="IndexPartner" msprop:Generator_UserChildTable="Partner" msprop:Generator_RelationVarName="relationFK_Partner_IndexPartner" msprop:Generator_ChildPropName="GetPartnerRows" msprop:Generator_ParentPropName="IndexPartnerRow" msprop:Generator_UserRelationName="FK_Partner_IndexPartner" />
  1101. <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_ChildPropName="GetPartnerRows" msprop:Generator_UserRelationName="FK_Partner_Region" msprop:Generator_ParentPropName="RegionRow" />
  1102. <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_ChildPropName="GetPartnerRows" msprop:Generator_UserRelationName="FK_Partner_Street" msprop:Generator_ParentPropName="StreetRow" />
  1103. <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_ChildPropName="GetPartnerRows" msprop:Generator_UserRelationName="FK_Partner_TypePartner" msprop:Generator_ParentPropName="TypePartnerRow" />
  1104. <msdata:Relationship name="FK_ProductPartner_Partner" msdata:parent="Partner" msdata:child="ProductPartner" msdata:parentkey="idPartner" msdata:childkey="idPartner" msprop:Generator_UserParentTable="Partner" msprop:Generator_UserChildTable="ProductPartner" msprop:Generator_RelationVarName="relationFK_ProductPartner_Partner" msprop:Generator_ChildPropName="GetProductPartnerRows" msprop:Generator_ParentPropName="PartnerRow" msprop:Generator_UserRelationName="FK_ProductPartner_Partner" />
  1105. <msdata:Relationship name="FK_ProductPartner_Products" msdata:parent="Products" msdata:child="ProductPartner" msdata:parentkey="idProduct" msdata:childkey="idProduct" msprop:Generator_UserParentTable="Products" msprop:Generator_UserChildTable="ProductPartner" msprop:Generator_RelationVarName="relationFK_ProductPartner_Products" msprop:Generator_ChildPropName="GetProductPartnerRows" msprop:Generator_UserRelationName="FK_ProductPartner_Products" msprop:Generator_ParentPropName="ProductsRow" />
  1106. <msdata:Relationship name="FK_Products_TypeProduct" msdata:parent="TypeProduct" msdata:child="Products" msdata:parentkey="idTypeProduct" msdata:childkey="idTypeProduct" msprop:Generator_UserParentTable="TypeProduct" msprop:Generator_UserChildTable="Products" msprop:Generator_RelationVarName="relationFK_Products_TypeProduct" msprop:Generator_ChildPropName="GetProductsRows" msprop:Generator_UserRelationName="FK_Products_TypeProduct" msprop:Generator_ParentPropName="TypeProductRow" />
  1107. <msdata:Relationship name="FK_ProductPartner_Partner1" msdata:parent="Partner" msdata:child="HistorySale" msdata:parentkey="idPartner" msdata:childkey="idPartner" msprop:Generator_UserParentTable="Partner" msprop:Generator_UserChildTable="HistorySale" msprop:Generator_RelationVarName="relationFK_ProductPartner_Partner1" msprop:Generator_ChildPropName="GetHistorySaleRows" msprop:Generator_ParentPropName="PartnerRow" msprop:Generator_UserRelationName="FK_ProductPartner_Partner1" />
  1108. </xs:appinfo>
  1109. </xs:annotation>
  1110. </xs:schema>