PostavkaTovarovDataSet.xsd 113 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="PostavkaTovarovDataSet" targetNamespace="http://tempuri.org/PostavkaTovarovDataSet.xsd" xmlns:mstns="http://tempuri.org/PostavkaTovarovDataSet.xsd" xmlns="http://tempuri.org/PostavkaTovarovDataSet.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="PostavkaTovarovConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="PostavkaTovarovConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.WindowsFormsApp1Индивидуально.Properties.Settings.GlobalReference.Default.PostavkaTovarovConnectionString" Provider="System.Data.SqlClient" />
  8. </Connections>
  9. <Tables>
  10. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ДоговорЗаказаTableAdapter" GeneratorDataComponentClassName="ДоговорЗаказаTableAdapter" Name="ДоговорЗаказа" UserDataComponentName="ДоговорЗаказаTableAdapter">
  11. <MainSource>
  12. <DbSource ConnectionRef="PostavkaTovarovConnectionString (Settings)" DbObjectName="PostavkaTovarov.dbo.ДоговорЗаказа" 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].[ДоговорЗаказа] WHERE (([КодДоговора] = @Original_КодДоговора) AND ((@IsNull_ДатаЗаключения = 1 AND [ДатаЗаключения] IS NULL) OR ([ДатаЗаключения] = @Original_ДатаЗаключения)))</CommandText>
  16. <Parameters>
  17. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодДоговора" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодДоговора" SourceColumnNullMapping="false" SourceVersion="Original" />
  18. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ДатаЗаключения" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ДатаЗаключения" SourceColumnNullMapping="true" SourceVersion="Original" />
  19. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_ДатаЗаключения" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="ДатаЗаключения" SourceColumnNullMapping="false" SourceVersion="Original" />
  20. </Parameters>
  21. </DbCommand>
  22. </DeleteCommand>
  23. <InsertCommand>
  24. <DbCommand CommandType="Text" ModifiedByUser="false">
  25. <CommandText>INSERT INTO [dbo].[ДоговорЗаказа] ([ДатаЗаключения]) VALUES (@ДатаЗаключения);
  26. SELECT КодДоговора, ДатаЗаключения FROM ДоговорЗаказа WHERE (КодДоговора = SCOPE_IDENTITY())</CommandText>
  27. <Parameters>
  28. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@ДатаЗаключения" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="ДатаЗаключения" SourceColumnNullMapping="false" SourceVersion="Current" />
  29. </Parameters>
  30. </DbCommand>
  31. </InsertCommand>
  32. <SelectCommand>
  33. <DbCommand CommandType="Text" ModifiedByUser="false">
  34. <CommandText>SELECT КодДоговора, ДатаЗаключения FROM dbo.ДоговорЗаказа</CommandText>
  35. <Parameters />
  36. </DbCommand>
  37. </SelectCommand>
  38. <UpdateCommand>
  39. <DbCommand CommandType="Text" ModifiedByUser="false">
  40. <CommandText>UPDATE [dbo].[ДоговорЗаказа] SET [ДатаЗаключения] = @ДатаЗаключения WHERE (([КодДоговора] = @Original_КодДоговора) AND ((@IsNull_ДатаЗаключения = 1 AND [ДатаЗаключения] IS NULL) OR ([ДатаЗаключения] = @Original_ДатаЗаключения)));
  41. SELECT КодДоговора, ДатаЗаключения FROM ДоговорЗаказа WHERE (КодДоговора = @КодДоговора)</CommandText>
  42. <Parameters>
  43. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@ДатаЗаключения" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="ДатаЗаключения" SourceColumnNullMapping="false" SourceVersion="Current" />
  44. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодДоговора" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодДоговора" SourceColumnNullMapping="false" SourceVersion="Original" />
  45. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ДатаЗаключения" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ДатаЗаключения" SourceColumnNullMapping="true" SourceVersion="Original" />
  46. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_ДатаЗаключения" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="ДатаЗаключения" SourceColumnNullMapping="false" SourceVersion="Original" />
  47. <Parameter AllowDbNull="false" AutogeneratedName="КодДоговора" ColumnName="КодДоговора" DataSourceName="PostavkaTovarov.dbo.ДоговорЗаказа" DataTypeServer="bigint" DbType="Int64" Direction="Input" ParameterName="@КодДоговора" Precision="0" ProviderType="BigInt" Scale="0" Size="8" SourceColumn="КодДоговора" SourceColumnNullMapping="false" SourceVersion="Current" />
  48. </Parameters>
  49. </DbCommand>
  50. </UpdateCommand>
  51. </DbSource>
  52. </MainSource>
  53. <Mappings>
  54. <Mapping SourceColumn="КодДоговора" DataSetColumn="КодДоговора" />
  55. <Mapping SourceColumn="ДатаЗаключения" DataSetColumn="ДатаЗаключения" />
  56. </Mappings>
  57. <Sources />
  58. </TableAdapter>
  59. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ЗаказчикTableAdapter" GeneratorDataComponentClassName="ЗаказчикTableAdapter" Name="Заказчик" UserDataComponentName="ЗаказчикTableAdapter">
  60. <MainSource>
  61. <DbSource ConnectionRef="PostavkaTovarovConnectionString (Settings)" DbObjectName="PostavkaTovarov.dbo.Заказчик" 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].[Заказчик] WHERE (([КодЗаказчика] = @Original_КодЗаказчика) AND ((@IsNull_ФИО = 1 AND [ФИО] IS NULL) OR ([ФИО] = @Original_ФИО)) AND ((@IsNull_Телефон = 1 AND [Телефон] IS NULL) OR ([Телефон] = @Original_Телефон)) AND ((@IsNull_Адрес = 1 AND [Адрес] IS NULL) OR ([Адрес] = @Original_Адрес)))</CommandText>
  65. <Parameters>
  66. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодЗаказчика" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодЗаказчика" SourceColumnNullMapping="false" SourceVersion="Original" />
  67. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ФИО" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ФИО" SourceColumnNullMapping="true" SourceVersion="Original" />
  68. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ФИО" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ФИО" SourceColumnNullMapping="false" SourceVersion="Original" />
  69. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Телефон" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="true" SourceVersion="Original" />
  70. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="false" SourceVersion="Original" />
  71. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Адрес" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="true" SourceVersion="Original" />
  72. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Адрес" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="false" SourceVersion="Original" />
  73. </Parameters>
  74. </DbCommand>
  75. </DeleteCommand>
  76. <InsertCommand>
  77. <DbCommand CommandType="Text" ModifiedByUser="false">
  78. <CommandText>INSERT INTO [dbo].[Заказчик] ([ФИО], [Телефон], [Адрес]) VALUES (@ФИО, @Телефон, @Адрес);
  79. SELECT КодЗаказчика, ФИО, Телефон, Адрес FROM Заказчик WHERE (КодЗаказчика = SCOPE_IDENTITY())</CommandText>
  80. <Parameters>
  81. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ФИО" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ФИО" SourceColumnNullMapping="false" SourceVersion="Current" />
  82. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="false" SourceVersion="Current" />
  83. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Адрес" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="false" SourceVersion="Current" />
  84. </Parameters>
  85. </DbCommand>
  86. </InsertCommand>
  87. <SelectCommand>
  88. <DbCommand CommandType="Text" ModifiedByUser="false">
  89. <CommandText>SELECT КодЗаказчика, ФИО, Телефон, Адрес FROM dbo.Заказчик</CommandText>
  90. <Parameters />
  91. </DbCommand>
  92. </SelectCommand>
  93. <UpdateCommand>
  94. <DbCommand CommandType="Text" ModifiedByUser="false">
  95. <CommandText>UPDATE [dbo].[Заказчик] SET [ФИО] = @ФИО, [Телефон] = @Телефон, [Адрес] = @Адрес WHERE (([КодЗаказчика] = @Original_КодЗаказчика) AND ((@IsNull_ФИО = 1 AND [ФИО] IS NULL) OR ([ФИО] = @Original_ФИО)) AND ((@IsNull_Телефон = 1 AND [Телефон] IS NULL) OR ([Телефон] = @Original_Телефон)) AND ((@IsNull_Адрес = 1 AND [Адрес] IS NULL) OR ([Адрес] = @Original_Адрес)));
  96. SELECT КодЗаказчика, ФИО, Телефон, Адрес FROM Заказчик WHERE (КодЗаказчика = @КодЗаказчика)</CommandText>
  97. <Parameters>
  98. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ФИО" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ФИО" SourceColumnNullMapping="false" SourceVersion="Current" />
  99. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="false" SourceVersion="Current" />
  100. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Адрес" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="false" SourceVersion="Current" />
  101. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодЗаказчика" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодЗаказчика" SourceColumnNullMapping="false" SourceVersion="Original" />
  102. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ФИО" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ФИО" SourceColumnNullMapping="true" SourceVersion="Original" />
  103. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ФИО" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ФИО" SourceColumnNullMapping="false" SourceVersion="Original" />
  104. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Телефон" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="true" SourceVersion="Original" />
  105. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="false" SourceVersion="Original" />
  106. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Адрес" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="true" SourceVersion="Original" />
  107. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Адрес" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="false" SourceVersion="Original" />
  108. <Parameter AllowDbNull="false" AutogeneratedName="КодЗаказчика" ColumnName="КодЗаказчика" DataSourceName="PostavkaTovarov.dbo.Заказчик" DataTypeServer="bigint" DbType="Int64" Direction="Input" ParameterName="@КодЗаказчика" Precision="0" ProviderType="BigInt" Scale="0" Size="8" SourceColumn="КодЗаказчика" SourceColumnNullMapping="false" SourceVersion="Current" />
  109. </Parameters>
  110. </DbCommand>
  111. </UpdateCommand>
  112. </DbSource>
  113. </MainSource>
  114. <Mappings>
  115. <Mapping SourceColumn="КодЗаказчика" DataSetColumn="КодЗаказчика" />
  116. <Mapping SourceColumn="ФИО" DataSetColumn="ФИО" />
  117. <Mapping SourceColumn="Телефон" DataSetColumn="Телефон" />
  118. <Mapping SourceColumn="Адрес" DataSetColumn="Адрес" />
  119. </Mappings>
  120. <Sources />
  121. </TableAdapter>
  122. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ЗаказыTableAdapter" GeneratorDataComponentClassName="ЗаказыTableAdapter" Name="Заказы" UserDataComponentName="ЗаказыTableAdapter">
  123. <MainSource>
  124. <DbSource ConnectionRef="PostavkaTovarovConnectionString (Settings)" DbObjectName="PostavkaTovarov.dbo.Заказы" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
  125. <DeleteCommand>
  126. <DbCommand CommandType="Text" ModifiedByUser="false">
  127. <CommandText>DELETE FROM [dbo].[Заказы] WHERE (([КодЗаказа] = @Original_КодЗаказа) AND ((@IsNull_ПлановаяПоставка = 1 AND [ПлановаяПоставка] IS NULL) OR ([ПлановаяПоставка] = @Original_ПлановаяПоставка)) AND ((@IsNull_КодТовара = 1 AND [КодТовара] IS NULL) OR ([КодТовара] = @Original_КодТовара)) AND ((@IsNull_КодЗаказчика = 1 AND [КодЗаказчика] IS NULL) OR ([КодЗаказчика] = @Original_КодЗаказчика)) AND ((@IsNull_КодДоговора = 1 AND [КодДоговора] IS NULL) OR ([КодДоговора] = @Original_КодДоговора)) AND ((@IsNull_КодОтгрузки = 1 AND [КодОтгрузки] IS NULL) OR ([КодОтгрузки] = @Original_КодОтгрузки)))</CommandText>
  128. <Parameters>
  129. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодЗаказа" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодЗаказа" SourceColumnNullMapping="false" SourceVersion="Original" />
  130. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ПлановаяПоставка" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ПлановаяПоставка" SourceColumnNullMapping="true" SourceVersion="Original" />
  131. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_ПлановаяПоставка" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="ПлановаяПоставка" SourceColumnNullMapping="false" SourceVersion="Original" />
  132. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_КодТовара" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="КодТовара" SourceColumnNullMapping="true" SourceVersion="Original" />
  133. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодТовара" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодТовара" SourceColumnNullMapping="false" SourceVersion="Original" />
  134. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_КодЗаказчика" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="КодЗаказчика" SourceColumnNullMapping="true" SourceVersion="Original" />
  135. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодЗаказчика" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодЗаказчика" SourceColumnNullMapping="false" SourceVersion="Original" />
  136. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_КодДоговора" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="КодДоговора" SourceColumnNullMapping="true" SourceVersion="Original" />
  137. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодДоговора" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодДоговора" SourceColumnNullMapping="false" SourceVersion="Original" />
  138. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_КодОтгрузки" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="КодОтгрузки" SourceColumnNullMapping="true" SourceVersion="Original" />
  139. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодОтгрузки" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодОтгрузки" SourceColumnNullMapping="false" SourceVersion="Original" />
  140. </Parameters>
  141. </DbCommand>
  142. </DeleteCommand>
  143. <InsertCommand>
  144. <DbCommand CommandType="Text" ModifiedByUser="false">
  145. <CommandText>INSERT INTO [dbo].[Заказы] ([НаименованиеЗаказа], [ПлановаяПоставка], [КодТовара], [КодЗаказчика], [КодДоговора], [КодОтгрузки]) VALUES (@НаименованиеЗаказа, @ПлановаяПоставка, @КодТовара, @КодЗаказчика, @КодДоговора, @КодОтгрузки);
  146. SELECT КодЗаказа, НаименованиеЗаказа, ПлановаяПоставка, КодТовара, КодЗаказчика, КодДоговора, КодОтгрузки FROM Заказы WHERE (КодЗаказа = SCOPE_IDENTITY())</CommandText>
  147. <Parameters>
  148. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@НаименованиеЗаказа" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="НаименованиеЗаказа" SourceColumnNullMapping="false" SourceVersion="Current" />
  149. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@ПлановаяПоставка" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="ПлановаяПоставка" SourceColumnNullMapping="false" SourceVersion="Current" />
  150. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@КодТовара" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодТовара" SourceColumnNullMapping="false" SourceVersion="Current" />
  151. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@КодЗаказчика" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодЗаказчика" SourceColumnNullMapping="false" SourceVersion="Current" />
  152. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@КодДоговора" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодДоговора" SourceColumnNullMapping="false" SourceVersion="Current" />
  153. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@КодОтгрузки" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодОтгрузки" SourceColumnNullMapping="false" SourceVersion="Current" />
  154. </Parameters>
  155. </DbCommand>
  156. </InsertCommand>
  157. <SelectCommand>
  158. <DbCommand CommandType="Text" ModifiedByUser="false">
  159. <CommandText>SELECT КодЗаказа, НаименованиеЗаказа, ПлановаяПоставка, КодТовара, КодЗаказчика, КодДоговора, КодОтгрузки FROM dbo.Заказы</CommandText>
  160. <Parameters />
  161. </DbCommand>
  162. </SelectCommand>
  163. <UpdateCommand>
  164. <DbCommand CommandType="Text" ModifiedByUser="false">
  165. <CommandText>UPDATE [dbo].[Заказы] SET [НаименованиеЗаказа] = @НаименованиеЗаказа, [ПлановаяПоставка] = @ПлановаяПоставка, [КодТовара] = @КодТовара, [КодЗаказчика] = @КодЗаказчика, [КодДоговора] = @КодДоговора, [КодОтгрузки] = @КодОтгрузки WHERE (([КодЗаказа] = @Original_КодЗаказа) AND ((@IsNull_ПлановаяПоставка = 1 AND [ПлановаяПоставка] IS NULL) OR ([ПлановаяПоставка] = @Original_ПлановаяПоставка)) AND ((@IsNull_КодТовара = 1 AND [КодТовара] IS NULL) OR ([КодТовара] = @Original_КодТовара)) AND ((@IsNull_КодЗаказчика = 1 AND [КодЗаказчика] IS NULL) OR ([КодЗаказчика] = @Original_КодЗаказчика)) AND ((@IsNull_КодДоговора = 1 AND [КодДоговора] IS NULL) OR ([КодДоговора] = @Original_КодДоговора)) AND ((@IsNull_КодОтгрузки = 1 AND [КодОтгрузки] IS NULL) OR ([КодОтгрузки] = @Original_КодОтгрузки)));
  166. SELECT КодЗаказа, НаименованиеЗаказа, ПлановаяПоставка, КодТовара, КодЗаказчика, КодДоговора, КодОтгрузки FROM Заказы WHERE (КодЗаказа = @КодЗаказа)</CommandText>
  167. <Parameters>
  168. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@НаименованиеЗаказа" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="НаименованиеЗаказа" SourceColumnNullMapping="false" SourceVersion="Current" />
  169. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@ПлановаяПоставка" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="ПлановаяПоставка" SourceColumnNullMapping="false" SourceVersion="Current" />
  170. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@КодТовара" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодТовара" SourceColumnNullMapping="false" SourceVersion="Current" />
  171. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@КодЗаказчика" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодЗаказчика" SourceColumnNullMapping="false" SourceVersion="Current" />
  172. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@КодДоговора" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодДоговора" SourceColumnNullMapping="false" SourceVersion="Current" />
  173. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@КодОтгрузки" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодОтгрузки" SourceColumnNullMapping="false" SourceVersion="Current" />
  174. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодЗаказа" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодЗаказа" SourceColumnNullMapping="false" SourceVersion="Original" />
  175. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ПлановаяПоставка" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ПлановаяПоставка" SourceColumnNullMapping="true" SourceVersion="Original" />
  176. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_ПлановаяПоставка" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="ПлановаяПоставка" SourceColumnNullMapping="false" SourceVersion="Original" />
  177. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_КодТовара" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="КодТовара" SourceColumnNullMapping="true" SourceVersion="Original" />
  178. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодТовара" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодТовара" SourceColumnNullMapping="false" SourceVersion="Original" />
  179. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_КодЗаказчика" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="КодЗаказчика" SourceColumnNullMapping="true" SourceVersion="Original" />
  180. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодЗаказчика" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодЗаказчика" SourceColumnNullMapping="false" SourceVersion="Original" />
  181. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_КодДоговора" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="КодДоговора" SourceColumnNullMapping="true" SourceVersion="Original" />
  182. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодДоговора" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодДоговора" SourceColumnNullMapping="false" SourceVersion="Original" />
  183. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_КодОтгрузки" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="КодОтгрузки" SourceColumnNullMapping="true" SourceVersion="Original" />
  184. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодОтгрузки" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодОтгрузки" SourceColumnNullMapping="false" SourceVersion="Original" />
  185. <Parameter AllowDbNull="false" AutogeneratedName="КодЗаказа" ColumnName="КодЗаказа" DataSourceName="PostavkaTovarov.dbo.Заказы" DataTypeServer="bigint" DbType="Int64" Direction="Input" ParameterName="@КодЗаказа" Precision="0" ProviderType="BigInt" Scale="0" Size="8" SourceColumn="КодЗаказа" SourceColumnNullMapping="false" SourceVersion="Current" />
  186. </Parameters>
  187. </DbCommand>
  188. </UpdateCommand>
  189. </DbSource>
  190. </MainSource>
  191. <Mappings>
  192. <Mapping SourceColumn="КодЗаказа" DataSetColumn="КодЗаказа" />
  193. <Mapping SourceColumn="НаименованиеЗаказа" DataSetColumn="НаименованиеЗаказа" />
  194. <Mapping SourceColumn="ПлановаяПоставка" DataSetColumn="ПлановаяПоставка" />
  195. <Mapping SourceColumn="КодТовара" DataSetColumn="КодТовара" />
  196. <Mapping SourceColumn="КодЗаказчика" DataSetColumn="КодЗаказчика" />
  197. <Mapping SourceColumn="КодДоговора" DataSetColumn="КодДоговора" />
  198. <Mapping SourceColumn="КодОтгрузки" DataSetColumn="КодОтгрузки" />
  199. </Mappings>
  200. <Sources />
  201. </TableAdapter>
  202. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ОтгрузкаTableAdapter" GeneratorDataComponentClassName="ОтгрузкаTableAdapter" Name="Отгрузка" UserDataComponentName="ОтгрузкаTableAdapter">
  203. <MainSource>
  204. <DbSource ConnectionRef="PostavkaTovarovConnectionString (Settings)" DbObjectName="PostavkaTovarov.dbo.Отгрузка" 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">
  205. <DeleteCommand>
  206. <DbCommand CommandType="Text" ModifiedByUser="false">
  207. <CommandText>DELETE FROM [dbo].[Отгрузка] WHERE (([КодОтгрузки] = @Original_КодОтгрузки) AND ((@IsNull_ДатаОтгрузки = 1 AND [ДатаОтгрузки] IS NULL) OR ([ДатаОтгрузки] = @Original_ДатаОтгрузки)) AND ((@IsNull_ОтгруженоТовара = 1 AND [ОтгруженоТовара] IS NULL) OR ([ОтгруженоТовара] = @Original_ОтгруженоТовара)))</CommandText>
  208. <Parameters>
  209. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодОтгрузки" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодОтгрузки" SourceColumnNullMapping="false" SourceVersion="Original" />
  210. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ДатаОтгрузки" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ДатаОтгрузки" SourceColumnNullMapping="true" SourceVersion="Original" />
  211. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_ДатаОтгрузки" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="ДатаОтгрузки" SourceColumnNullMapping="false" SourceVersion="Original" />
  212. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ОтгруженоТовара" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ОтгруженоТовара" SourceColumnNullMapping="true" SourceVersion="Original" />
  213. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ОтгруженоТовара" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ОтгруженоТовара" SourceColumnNullMapping="false" SourceVersion="Original" />
  214. </Parameters>
  215. </DbCommand>
  216. </DeleteCommand>
  217. <InsertCommand>
  218. <DbCommand CommandType="Text" ModifiedByUser="false">
  219. <CommandText>INSERT INTO [dbo].[Отгрузка] ([ДатаОтгрузки], [ОтгруженоТовара]) VALUES (@ДатаОтгрузки, @ОтгруженоТовара);
  220. SELECT КодОтгрузки, ДатаОтгрузки, ОтгруженоТовара FROM Отгрузка WHERE (КодОтгрузки = SCOPE_IDENTITY())</CommandText>
  221. <Parameters>
  222. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@ДатаОтгрузки" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="ДатаОтгрузки" SourceColumnNullMapping="false" SourceVersion="Current" />
  223. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ОтгруженоТовара" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ОтгруженоТовара" SourceColumnNullMapping="false" SourceVersion="Current" />
  224. </Parameters>
  225. </DbCommand>
  226. </InsertCommand>
  227. <SelectCommand>
  228. <DbCommand CommandType="Text" ModifiedByUser="false">
  229. <CommandText>SELECT КодОтгрузки, ДатаОтгрузки, ОтгруженоТовара FROM dbo.Отгрузка</CommandText>
  230. <Parameters />
  231. </DbCommand>
  232. </SelectCommand>
  233. <UpdateCommand>
  234. <DbCommand CommandType="Text" ModifiedByUser="false">
  235. <CommandText>UPDATE [dbo].[Отгрузка] SET [ДатаОтгрузки] = @ДатаОтгрузки, [ОтгруженоТовара] = @ОтгруженоТовара WHERE (([КодОтгрузки] = @Original_КодОтгрузки) AND ((@IsNull_ДатаОтгрузки = 1 AND [ДатаОтгрузки] IS NULL) OR ([ДатаОтгрузки] = @Original_ДатаОтгрузки)) AND ((@IsNull_ОтгруженоТовара = 1 AND [ОтгруженоТовара] IS NULL) OR ([ОтгруженоТовара] = @Original_ОтгруженоТовара)));
  236. SELECT КодОтгрузки, ДатаОтгрузки, ОтгруженоТовара FROM Отгрузка WHERE (КодОтгрузки = @КодОтгрузки)</CommandText>
  237. <Parameters>
  238. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@ДатаОтгрузки" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="ДатаОтгрузки" SourceColumnNullMapping="false" SourceVersion="Current" />
  239. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ОтгруженоТовара" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ОтгруженоТовара" SourceColumnNullMapping="false" SourceVersion="Current" />
  240. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодОтгрузки" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодОтгрузки" SourceColumnNullMapping="false" SourceVersion="Original" />
  241. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ДатаОтгрузки" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ДатаОтгрузки" SourceColumnNullMapping="true" SourceVersion="Original" />
  242. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_ДатаОтгрузки" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="ДатаОтгрузки" SourceColumnNullMapping="false" SourceVersion="Original" />
  243. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ОтгруженоТовара" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ОтгруженоТовара" SourceColumnNullMapping="true" SourceVersion="Original" />
  244. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ОтгруженоТовара" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ОтгруженоТовара" SourceColumnNullMapping="false" SourceVersion="Original" />
  245. <Parameter AllowDbNull="false" AutogeneratedName="КодОтгрузки" ColumnName="КодОтгрузки" DataSourceName="PostavkaTovarov.dbo.Отгрузка" DataTypeServer="bigint" DbType="Int64" Direction="Input" ParameterName="@КодОтгрузки" Precision="0" ProviderType="BigInt" Scale="0" Size="8" SourceColumn="КодОтгрузки" SourceColumnNullMapping="false" SourceVersion="Current" />
  246. </Parameters>
  247. </DbCommand>
  248. </UpdateCommand>
  249. </DbSource>
  250. </MainSource>
  251. <Mappings>
  252. <Mapping SourceColumn="КодОтгрузки" DataSetColumn="КодОтгрузки" />
  253. <Mapping SourceColumn="ДатаОтгрузки" DataSetColumn="ДатаОтгрузки" />
  254. <Mapping SourceColumn="ОтгруженоТовара" DataSetColumn="ОтгруженоТовара" />
  255. </Mappings>
  256. <Sources />
  257. </TableAdapter>
  258. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ОтгрузкаТовараTableAdapter" GeneratorDataComponentClassName="ОтгрузкаТовараTableAdapter" Name="ОтгрузкаТовара" UserDataComponentName="ОтгрузкаТовараTableAdapter">
  259. <MainSource>
  260. <DbSource ConnectionRef="PostavkaTovarovConnectionString (Settings)" DbObjectName="PostavkaTovarov.dbo.ОтгрузкаТовара" 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">
  261. <DeleteCommand>
  262. <DbCommand CommandType="Text" ModifiedByUser="false">
  263. <CommandText>DELETE FROM [dbo].[ОтгрузкаТовара] WHERE (([КодОтгрузкаТовара] = @Original_КодОтгрузкаТовара) AND ((@IsNull_КодТовара = 1 AND [КодТовара] IS NULL) OR ([КодТовара] = @Original_КодТовара)) AND ((@IsNull_КодОтгрузки = 1 AND [КодОтгрузки] IS NULL) OR ([КодОтгрузки] = @Original_КодОтгрузки)))</CommandText>
  264. <Parameters>
  265. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодОтгрузкаТовара" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодОтгрузкаТовара" SourceColumnNullMapping="false" SourceVersion="Original" />
  266. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_КодТовара" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="КодТовара" SourceColumnNullMapping="true" SourceVersion="Original" />
  267. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодТовара" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодТовара" SourceColumnNullMapping="false" SourceVersion="Original" />
  268. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_КодОтгрузки" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="КодОтгрузки" SourceColumnNullMapping="true" SourceVersion="Original" />
  269. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодОтгрузки" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодОтгрузки" SourceColumnNullMapping="false" SourceVersion="Original" />
  270. </Parameters>
  271. </DbCommand>
  272. </DeleteCommand>
  273. <InsertCommand>
  274. <DbCommand CommandType="Text" ModifiedByUser="false">
  275. <CommandText>INSERT INTO [dbo].[ОтгрузкаТовара] ([КодТовара], [КодОтгрузки]) VALUES (@КодТовара, @КодОтгрузки);
  276. SELECT КодОтгрузкаТовара, КодТовара, КодОтгрузки FROM ОтгрузкаТовара WHERE (КодОтгрузкаТовара = SCOPE_IDENTITY())</CommandText>
  277. <Parameters>
  278. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@КодТовара" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодТовара" SourceColumnNullMapping="false" SourceVersion="Current" />
  279. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@КодОтгрузки" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодОтгрузки" SourceColumnNullMapping="false" SourceVersion="Current" />
  280. </Parameters>
  281. </DbCommand>
  282. </InsertCommand>
  283. <SelectCommand>
  284. <DbCommand CommandType="Text" ModifiedByUser="false">
  285. <CommandText>SELECT КодОтгрузкаТовара, КодТовара, КодОтгрузки FROM dbo.ОтгрузкаТовара</CommandText>
  286. <Parameters />
  287. </DbCommand>
  288. </SelectCommand>
  289. <UpdateCommand>
  290. <DbCommand CommandType="Text" ModifiedByUser="false">
  291. <CommandText>UPDATE [dbo].[ОтгрузкаТовара] SET [КодТовара] = @КодТовара, [КодОтгрузки] = @КодОтгрузки WHERE (([КодОтгрузкаТовара] = @Original_КодОтгрузкаТовара) AND ((@IsNull_КодТовара = 1 AND [КодТовара] IS NULL) OR ([КодТовара] = @Original_КодТовара)) AND ((@IsNull_КодОтгрузки = 1 AND [КодОтгрузки] IS NULL) OR ([КодОтгрузки] = @Original_КодОтгрузки)));
  292. SELECT КодОтгрузкаТовара, КодТовара, КодОтгрузки FROM ОтгрузкаТовара WHERE (КодОтгрузкаТовара = @КодОтгрузкаТовара)</CommandText>
  293. <Parameters>
  294. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@КодТовара" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодТовара" SourceColumnNullMapping="false" SourceVersion="Current" />
  295. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@КодОтгрузки" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодОтгрузки" SourceColumnNullMapping="false" SourceVersion="Current" />
  296. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодОтгрузкаТовара" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодОтгрузкаТовара" SourceColumnNullMapping="false" SourceVersion="Original" />
  297. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_КодТовара" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="КодТовара" SourceColumnNullMapping="true" SourceVersion="Original" />
  298. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодТовара" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодТовара" SourceColumnNullMapping="false" SourceVersion="Original" />
  299. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_КодОтгрузки" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="КодОтгрузки" SourceColumnNullMapping="true" SourceVersion="Original" />
  300. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодОтгрузки" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодОтгрузки" SourceColumnNullMapping="false" SourceVersion="Original" />
  301. <Parameter AllowDbNull="false" AutogeneratedName="КодОтгрузкаТовара" ColumnName="КодОтгрузкаТовара" DataSourceName="PostavkaTovarov.dbo.ОтгрузкаТовара" DataTypeServer="bigint" DbType="Int64" Direction="Input" ParameterName="@КодОтгрузкаТовара" Precision="0" ProviderType="BigInt" Scale="0" Size="8" SourceColumn="КодОтгрузкаТовара" SourceColumnNullMapping="false" SourceVersion="Current" />
  302. </Parameters>
  303. </DbCommand>
  304. </UpdateCommand>
  305. </DbSource>
  306. </MainSource>
  307. <Mappings>
  308. <Mapping SourceColumn="КодОтгрузкаТовара" DataSetColumn="КодОтгрузкаТовара" />
  309. <Mapping SourceColumn="КодТовара" DataSetColumn="КодТовара" />
  310. <Mapping SourceColumn="КодОтгрузки" DataSetColumn="КодОтгрузки" />
  311. </Mappings>
  312. <Sources />
  313. </TableAdapter>
  314. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ТоварыTableAdapter" GeneratorDataComponentClassName="ТоварыTableAdapter" Name="Товары" UserDataComponentName="ТоварыTableAdapter">
  315. <MainSource>
  316. <DbSource ConnectionRef="PostavkaTovarovConnectionString (Settings)" DbObjectName="PostavkaTovarov.dbo.Товары" 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">
  317. <DeleteCommand>
  318. <DbCommand CommandType="Text" ModifiedByUser="false">
  319. <CommandText>DELETE FROM [dbo].[Товары] WHERE (([КодТовара] = @Original_КодТовара) AND ((@IsNull_НаименованиеТовара = 1 AND [НаименованиеТовара] IS NULL) OR ([НаименованиеТовара] = @Original_НаименованиеТовара)) AND ((@IsNull_ЦенаТовара = 1 AND [ЦенаТовара] IS NULL) OR ([ЦенаТовара] = @Original_ЦенаТовара)))</CommandText>
  320. <Parameters>
  321. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодТовара" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодТовара" SourceColumnNullMapping="false" SourceVersion="Original" />
  322. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_НаименованиеТовара" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="НаименованиеТовара" SourceColumnNullMapping="true" SourceVersion="Original" />
  323. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_НаименованиеТовара" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="НаименованиеТовара" SourceColumnNullMapping="false" SourceVersion="Original" />
  324. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ЦенаТовара" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ЦенаТовара" SourceColumnNullMapping="true" SourceVersion="Original" />
  325. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_ЦенаТовара" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="ЦенаТовара" SourceColumnNullMapping="false" SourceVersion="Original" />
  326. </Parameters>
  327. </DbCommand>
  328. </DeleteCommand>
  329. <InsertCommand>
  330. <DbCommand CommandType="Text" ModifiedByUser="false">
  331. <CommandText>INSERT INTO [dbo].[Товары] ([НаименованиеТовара], [ЦенаТовара]) VALUES (@НаименованиеТовара, @ЦенаТовара);
  332. SELECT КодТовара, НаименованиеТовара, ЦенаТовара FROM Товары WHERE (КодТовара = SCOPE_IDENTITY())</CommandText>
  333. <Parameters>
  334. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@НаименованиеТовара" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="НаименованиеТовара" SourceColumnNullMapping="false" SourceVersion="Current" />
  335. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@ЦенаТовара" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="ЦенаТовара" SourceColumnNullMapping="false" SourceVersion="Current" />
  336. </Parameters>
  337. </DbCommand>
  338. </InsertCommand>
  339. <SelectCommand>
  340. <DbCommand CommandType="Text" ModifiedByUser="false">
  341. <CommandText>SELECT КодТовара, НаименованиеТовара, ЦенаТовара FROM dbo.Товары</CommandText>
  342. <Parameters />
  343. </DbCommand>
  344. </SelectCommand>
  345. <UpdateCommand>
  346. <DbCommand CommandType="Text" ModifiedByUser="false">
  347. <CommandText>UPDATE [dbo].[Товары] SET [НаименованиеТовара] = @НаименованиеТовара, [ЦенаТовара] = @ЦенаТовара WHERE (([КодТовара] = @Original_КодТовара) AND ((@IsNull_НаименованиеТовара = 1 AND [НаименованиеТовара] IS NULL) OR ([НаименованиеТовара] = @Original_НаименованиеТовара)) AND ((@IsNull_ЦенаТовара = 1 AND [ЦенаТовара] IS NULL) OR ([ЦенаТовара] = @Original_ЦенаТовара)));
  348. SELECT КодТовара, НаименованиеТовара, ЦенаТовара FROM Товары WHERE (КодТовара = @КодТовара)</CommandText>
  349. <Parameters>
  350. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@НаименованиеТовара" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="НаименованиеТовара" SourceColumnNullMapping="false" SourceVersion="Current" />
  351. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@ЦенаТовара" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="ЦенаТовара" SourceColumnNullMapping="false" SourceVersion="Current" />
  352. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_КодТовара" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="КодТовара" SourceColumnNullMapping="false" SourceVersion="Original" />
  353. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_НаименованиеТовара" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="НаименованиеТовара" SourceColumnNullMapping="true" SourceVersion="Original" />
  354. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_НаименованиеТовара" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="НаименованиеТовара" SourceColumnNullMapping="false" SourceVersion="Original" />
  355. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ЦенаТовара" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ЦенаТовара" SourceColumnNullMapping="true" SourceVersion="Original" />
  356. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_ЦенаТовара" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="ЦенаТовара" SourceColumnNullMapping="false" SourceVersion="Original" />
  357. <Parameter AllowDbNull="false" AutogeneratedName="КодТовара" ColumnName="КодТовара" DataSourceName="PostavkaTovarov.dbo.Товары" DataTypeServer="bigint" DbType="Int64" Direction="Input" ParameterName="@КодТовара" Precision="0" ProviderType="BigInt" Scale="0" Size="8" SourceColumn="КодТовара" SourceColumnNullMapping="false" SourceVersion="Current" />
  358. </Parameters>
  359. </DbCommand>
  360. </UpdateCommand>
  361. </DbSource>
  362. </MainSource>
  363. <Mappings>
  364. <Mapping SourceColumn="КодТовара" DataSetColumn="КодТовара" />
  365. <Mapping SourceColumn="НаименованиеТовара" DataSetColumn="НаименованиеТовара" />
  366. <Mapping SourceColumn="ЦенаТовара" DataSetColumn="ЦенаТовара" />
  367. </Mappings>
  368. <Sources />
  369. </TableAdapter>
  370. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="View_1TableAdapter" GeneratorDataComponentClassName="View_1TableAdapter" Name="View_1" UserDataComponentName="View_1TableAdapter">
  371. <MainSource>
  372. <DbSource ConnectionRef="PostavkaTovarovConnectionString (Settings)" DbObjectName="PostavkaTovarov.dbo.View_1" DbObjectType="View" 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">
  373. <SelectCommand>
  374. <DbCommand CommandType="Text" ModifiedByUser="false">
  375. <CommandText>SELECT КодДоговора, КодЗаказчика FROM dbo.View_1</CommandText>
  376. <Parameters />
  377. </DbCommand>
  378. </SelectCommand>
  379. </DbSource>
  380. </MainSource>
  381. <Mappings>
  382. <Mapping SourceColumn="КодДоговора" DataSetColumn="КодДоговора" />
  383. <Mapping SourceColumn="КодЗаказчика" DataSetColumn="КодЗаказчика" />
  384. </Mappings>
  385. <Sources />
  386. </TableAdapter>
  387. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Запрос_ВнеплановаяПоставкаTableAdapter" GeneratorDataComponentClassName="Запрос_ВнеплановаяПоставкаTableAdapter" Name="Запрос_ВнеплановаяПоставка" UserDataComponentName="Запрос_ВнеплановаяПоставкаTableAdapter">
  388. <MainSource>
  389. <DbSource ConnectionRef="PostavkaTovarovConnectionString (Settings)" DbObjectName="PostavkaTovarov.dbo.Запрос_ВнеплановаяПоставка" DbObjectType="View" 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">
  390. <SelectCommand>
  391. <DbCommand CommandType="Text" ModifiedByUser="false">
  392. <CommandText>SELECT ФИО, НаименованиеЗаказа, ПлановаяПоставка, НаименованиеТовара, ЦенаТовара FROM dbo.Запрос_ВнеплановаяПоставка</CommandText>
  393. <Parameters />
  394. </DbCommand>
  395. </SelectCommand>
  396. </DbSource>
  397. </MainSource>
  398. <Mappings>
  399. <Mapping SourceColumn="ФИО" DataSetColumn="ФИО" />
  400. <Mapping SourceColumn="НаименованиеЗаказа" DataSetColumn="НаименованиеЗаказа" />
  401. <Mapping SourceColumn="ПлановаяПоставка" DataSetColumn="ПлановаяПоставка" />
  402. <Mapping SourceColumn="НаименованиеТовара" DataSetColumn="НаименованиеТовара" />
  403. <Mapping SourceColumn="ЦенаТовара" DataSetColumn="ЦенаТовара" />
  404. </Mappings>
  405. <Sources />
  406. </TableAdapter>
  407. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Запрос_Заказы+ДоговораЗаказовTableAdapter" GeneratorDataComponentClassName="Запрос_Заказы_ДоговораЗаказовTableAdapter" Name="Запрос_Заказы+ДоговораЗаказов" UserDataComponentName="Запрос_Заказы+ДоговораЗаказовTableAdapter">
  408. <MainSource>
  409. <DbSource ConnectionRef="PostavkaTovarovConnectionString (Settings)" DbObjectName="PostavkaTovarov.dbo.[Запрос_Заказы+ДоговораЗаказов]" DbObjectType="View" 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">
  410. <SelectCommand>
  411. <DbCommand CommandType="Text" ModifiedByUser="false">
  412. <CommandText>SELECT КодЗаказчика, КодЗаказа, НаименованиеЗаказа, КодТовара, КодДоговора, ДатаЗаключения, ПлановаяПоставка, КодОтгрузки FROM dbo.[Запрос_Заказы+ДоговораЗаказов]</CommandText>
  413. <Parameters />
  414. </DbCommand>
  415. </SelectCommand>
  416. </DbSource>
  417. </MainSource>
  418. <Mappings>
  419. <Mapping SourceColumn="КодЗаказчика" DataSetColumn="КодЗаказчика" />
  420. <Mapping SourceColumn="КодЗаказа" DataSetColumn="КодЗаказа" />
  421. <Mapping SourceColumn="НаименованиеЗаказа" DataSetColumn="НаименованиеЗаказа" />
  422. <Mapping SourceColumn="КодТовара" DataSetColumn="КодТовара" />
  423. <Mapping SourceColumn="КодДоговора" DataSetColumn="КодДоговора" />
  424. <Mapping SourceColumn="ДатаЗаключения" DataSetColumn="ДатаЗаключения" />
  425. <Mapping SourceColumn="ПлановаяПоставка" DataSetColumn="ПлановаяПоставка" />
  426. <Mapping SourceColumn="КодОтгрузки" DataSetColumn="КодОтгрузки" />
  427. </Mappings>
  428. <Sources />
  429. </TableAdapter>
  430. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Запрос_ПлановаяПоставкаTableAdapter" GeneratorDataComponentClassName="Запрос_ПлановаяПоставкаTableAdapter" Name="Запрос_ПлановаяПоставка" UserDataComponentName="Запрос_ПлановаяПоставкаTableAdapter">
  431. <MainSource>
  432. <DbSource ConnectionRef="PostavkaTovarovConnectionString (Settings)" DbObjectName="PostavkaTovarov.dbo.Запрос_ПлановаяПоставка" DbObjectType="View" 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">
  433. <SelectCommand>
  434. <DbCommand CommandType="Text" ModifiedByUser="false">
  435. <CommandText>SELECT ФИО, НаименованиеЗаказа, НаименованиеТовара, ЦенаТовара, ПлановаяПоставка FROM dbo.Запрос_ПлановаяПоставка</CommandText>
  436. <Parameters />
  437. </DbCommand>
  438. </SelectCommand>
  439. </DbSource>
  440. </MainSource>
  441. <Mappings>
  442. <Mapping SourceColumn="ФИО" DataSetColumn="ФИО" />
  443. <Mapping SourceColumn="НаименованиеЗаказа" DataSetColumn="НаименованиеЗаказа" />
  444. <Mapping SourceColumn="НаименованиеТовара" DataSetColumn="НаименованиеТовара" />
  445. <Mapping SourceColumn="ЦенаТовара" DataSetColumn="ЦенаТовара" />
  446. <Mapping SourceColumn="ПлановаяПоставка" DataSetColumn="ПлановаяПоставка" />
  447. </Mappings>
  448. <Sources />
  449. </TableAdapter>
  450. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Запрос_ФИОЗаказавшихКерамическиеИзделияTableAdapter" GeneratorDataComponentClassName="Запрос_ФИОЗаказавшихКерамическиеИзделияTableAdapter" Name="Запрос_ФИОЗаказавшихКерамическиеИзделия" UserDataComponentName="Запрос_ФИОЗаказавшихКерамическиеИзделияTableAdapter">
  451. <MainSource>
  452. <DbSource ConnectionRef="PostavkaTovarovConnectionString (Settings)" DbObjectName="PostavkaTovarov.dbo.Запрос_ФИОЗаказавшихКерамическиеИзделия" DbObjectType="View" 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">
  453. <SelectCommand>
  454. <DbCommand CommandType="Text" ModifiedByUser="false">
  455. <CommandText>SELECT НаименованиеТовара, НаименованиеЗаказа, ФИО FROM dbo.Запрос_ФИОЗаказавшихКерамическиеИзделия</CommandText>
  456. <Parameters />
  457. </DbCommand>
  458. </SelectCommand>
  459. </DbSource>
  460. </MainSource>
  461. <Mappings>
  462. <Mapping SourceColumn="НаименованиеТовара" DataSetColumn="НаименованиеТовара" />
  463. <Mapping SourceColumn="НаименованиеЗаказа" DataSetColumn="НаименованиеЗаказа" />
  464. <Mapping SourceColumn="ФИО" DataSetColumn="ФИО" />
  465. </Mappings>
  466. <Sources />
  467. </TableAdapter>
  468. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Запрос_ФИОЗаказавшихМебельTableAdapter" GeneratorDataComponentClassName="Запрос_ФИОЗаказавшихМебельTableAdapter" Name="Запрос_ФИОЗаказавшихМебель" UserDataComponentName="Запрос_ФИОЗаказавшихМебельTableAdapter">
  469. <MainSource>
  470. <DbSource ConnectionRef="PostavkaTovarovConnectionString (Settings)" DbObjectName="PostavkaTovarov.dbo.Запрос_ФИОЗаказавшихМебель" DbObjectType="View" 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">
  471. <SelectCommand>
  472. <DbCommand CommandType="Text" ModifiedByUser="false">
  473. <CommandText>SELECT НаименованиеТовара, НаименованиеЗаказа, ФИО FROM dbo.Запрос_ФИОЗаказавшихМебель</CommandText>
  474. <Parameters />
  475. </DbCommand>
  476. </SelectCommand>
  477. </DbSource>
  478. </MainSource>
  479. <Mappings>
  480. <Mapping SourceColumn="НаименованиеТовара" DataSetColumn="НаименованиеТовара" />
  481. <Mapping SourceColumn="НаименованиеЗаказа" DataSetColumn="НаименованиеЗаказа" />
  482. <Mapping SourceColumn="ФИО" DataSetColumn="ФИО" />
  483. </Mappings>
  484. <Sources />
  485. </TableAdapter>
  486. </Tables>
  487. <Sources />
  488. </DataSource>
  489. </xs:appinfo>
  490. </xs:annotation>
  491. <xs:element name="PostavkaTovarovDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="PostavkaTovarovDataSet" msprop:Generator_UserDSName="PostavkaTovarovDataSet">
  492. <xs:complexType>
  493. <xs:choice minOccurs="0" maxOccurs="unbounded">
  494. <xs:element name="ДоговорЗаказа" msprop:Generator_TableClassName="ДоговорЗаказаDataTable" msprop:Generator_TableVarName="tableДоговорЗаказа" msprop:Generator_TablePropName="ДоговорЗаказа" msprop:Generator_RowDeletingName="ДоговорЗаказаRowDeleting" msprop:Generator_RowChangingName="ДоговорЗаказаRowChanging" msprop:Generator_RowEvHandlerName="ДоговорЗаказаRowChangeEventHandler" msprop:Generator_RowDeletedName="ДоговорЗаказаRowDeleted" msprop:Generator_UserTableName="ДоговорЗаказа" msprop:Generator_RowChangedName="ДоговорЗаказаRowChanged" msprop:Generator_RowEvArgName="ДоговорЗаказаRowChangeEvent" msprop:Generator_RowClassName="ДоговорЗаказаRow">
  495. <xs:complexType>
  496. <xs:sequence>
  497. <xs:element name="КодДоговора" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnКодДоговора" msprop:Generator_ColumnPropNameInRow="КодДоговора" msprop:Generator_ColumnPropNameInTable="КодДоговораColumn" msprop:Generator_UserColumnName="КодДоговора" type="xs:long" />
  498. <xs:element name="ДатаЗаключения" msprop:Generator_ColumnVarNameInTable="columnДатаЗаключения" msprop:Generator_ColumnPropNameInRow="ДатаЗаключения" msprop:Generator_ColumnPropNameInTable="ДатаЗаключенияColumn" msprop:Generator_UserColumnName="ДатаЗаключения" type="xs:dateTime" minOccurs="0" />
  499. </xs:sequence>
  500. </xs:complexType>
  501. </xs:element>
  502. <xs:element name="Заказчик" msprop:Generator_TableClassName="ЗаказчикDataTable" msprop:Generator_TableVarName="tableЗаказчик" msprop:Generator_TablePropName="Заказчик" msprop:Generator_RowDeletingName="ЗаказчикRowDeleting" msprop:Generator_RowChangingName="ЗаказчикRowChanging" msprop:Generator_RowEvHandlerName="ЗаказчикRowChangeEventHandler" msprop:Generator_RowDeletedName="ЗаказчикRowDeleted" msprop:Generator_UserTableName="Заказчик" msprop:Generator_RowChangedName="ЗаказчикRowChanged" msprop:Generator_RowEvArgName="ЗаказчикRowChangeEvent" msprop:Generator_RowClassName="ЗаказчикRow">
  503. <xs:complexType>
  504. <xs:sequence>
  505. <xs:element name="КодЗаказчика" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnКодЗаказчика" msprop:Generator_ColumnPropNameInRow="КодЗаказчика" msprop:Generator_ColumnPropNameInTable="КодЗаказчикаColumn" msprop:Generator_UserColumnName="КодЗаказчика" type="xs:long" />
  506. <xs:element name="ФИО" msprop:Generator_ColumnVarNameInTable="columnФИО" msprop:Generator_ColumnPropNameInRow="ФИО" msprop:Generator_ColumnPropNameInTable="ФИОColumn" msprop:Generator_UserColumnName="ФИО" minOccurs="0">
  507. <xs:simpleType>
  508. <xs:restriction base="xs:string">
  509. <xs:maxLength value="100" />
  510. </xs:restriction>
  511. </xs:simpleType>
  512. </xs:element>
  513. <xs:element name="Телефон" msprop:Generator_ColumnVarNameInTable="columnТелефон" msprop:Generator_ColumnPropNameInRow="Телефон" msprop:Generator_ColumnPropNameInTable="ТелефонColumn" msprop:Generator_UserColumnName="Телефон" minOccurs="0">
  514. <xs:simpleType>
  515. <xs:restriction base="xs:string">
  516. <xs:maxLength value="11" />
  517. </xs:restriction>
  518. </xs:simpleType>
  519. </xs:element>
  520. <xs:element name="Адрес" msprop:Generator_ColumnVarNameInTable="columnАдрес" msprop:Generator_ColumnPropNameInRow="Адрес" msprop:Generator_ColumnPropNameInTable="АдресColumn" msprop:Generator_UserColumnName="Адрес" minOccurs="0">
  521. <xs:simpleType>
  522. <xs:restriction base="xs:string">
  523. <xs:maxLength value="100" />
  524. </xs:restriction>
  525. </xs:simpleType>
  526. </xs:element>
  527. </xs:sequence>
  528. </xs:complexType>
  529. </xs:element>
  530. <xs:element name="Заказы" msprop:Generator_TableClassName="ЗаказыDataTable" msprop:Generator_TableVarName="tableЗаказы" msprop:Generator_TablePropName="Заказы" msprop:Generator_RowDeletingName="ЗаказыRowDeleting" msprop:Generator_RowChangingName="ЗаказыRowChanging" msprop:Generator_RowEvHandlerName="ЗаказыRowChangeEventHandler" msprop:Generator_RowDeletedName="ЗаказыRowDeleted" msprop:Generator_UserTableName="Заказы" msprop:Generator_RowChangedName="ЗаказыRowChanged" msprop:Generator_RowEvArgName="ЗаказыRowChangeEvent" msprop:Generator_RowClassName="ЗаказыRow">
  531. <xs:complexType>
  532. <xs:sequence>
  533. <xs:element name="КодЗаказа" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnКодЗаказа" msprop:Generator_ColumnPropNameInRow="КодЗаказа" msprop:Generator_ColumnPropNameInTable="КодЗаказаColumn" msprop:Generator_UserColumnName="КодЗаказа" type="xs:long" />
  534. <xs:element name="НаименованиеЗаказа" msprop:Generator_ColumnVarNameInTable="columnНаименованиеЗаказа" msprop:Generator_ColumnPropNameInRow="НаименованиеЗаказа" msprop:Generator_ColumnPropNameInTable="НаименованиеЗаказаColumn" msprop:Generator_UserColumnName="НаименованиеЗаказа" minOccurs="0">
  535. <xs:simpleType>
  536. <xs:restriction base="xs:string">
  537. <xs:maxLength value="2147483647" />
  538. </xs:restriction>
  539. </xs:simpleType>
  540. </xs:element>
  541. <xs:element name="ПлановаяПоставка" msprop:Generator_ColumnVarNameInTable="columnПлановаяПоставка" msprop:Generator_ColumnPropNameInRow="ПлановаяПоставка" msprop:Generator_ColumnPropNameInTable="ПлановаяПоставкаColumn" msprop:Generator_UserColumnName="ПлановаяПоставка" type="xs:boolean" minOccurs="0" />
  542. <xs:element name="КодТовара" msprop:Generator_ColumnVarNameInTable="columnКодТовара" msprop:Generator_ColumnPropNameInRow="КодТовара" msprop:Generator_ColumnPropNameInTable="КодТовараColumn" msprop:Generator_UserColumnName="КодТовара" type="xs:long" minOccurs="0" />
  543. <xs:element name="КодЗаказчика" msprop:Generator_ColumnVarNameInTable="columnКодЗаказчика" msprop:Generator_ColumnPropNameInRow="КодЗаказчика" msprop:Generator_ColumnPropNameInTable="КодЗаказчикаColumn" msprop:Generator_UserColumnName="КодЗаказчика" type="xs:long" minOccurs="0" />
  544. <xs:element name="КодДоговора" msprop:Generator_ColumnVarNameInTable="columnКодДоговора" msprop:Generator_ColumnPropNameInRow="КодДоговора" msprop:Generator_ColumnPropNameInTable="КодДоговораColumn" msprop:Generator_UserColumnName="КодДоговора" type="xs:long" minOccurs="0" />
  545. <xs:element name="КодОтгрузки" msprop:Generator_ColumnVarNameInTable="columnКодОтгрузки" msprop:Generator_ColumnPropNameInRow="КодОтгрузки" msprop:Generator_ColumnPropNameInTable="КодОтгрузкиColumn" msprop:Generator_UserColumnName="КодОтгрузки" type="xs:long" minOccurs="0" />
  546. </xs:sequence>
  547. </xs:complexType>
  548. </xs:element>
  549. <xs:element name="Отгрузка" msprop:Generator_TableClassName="ОтгрузкаDataTable" msprop:Generator_TableVarName="tableОтгрузка" msprop:Generator_TablePropName="Отгрузка" msprop:Generator_RowDeletingName="ОтгрузкаRowDeleting" msprop:Generator_RowChangingName="ОтгрузкаRowChanging" msprop:Generator_RowEvHandlerName="ОтгрузкаRowChangeEventHandler" msprop:Generator_RowDeletedName="ОтгрузкаRowDeleted" msprop:Generator_UserTableName="Отгрузка" msprop:Generator_RowChangedName="ОтгрузкаRowChanged" msprop:Generator_RowEvArgName="ОтгрузкаRowChangeEvent" msprop:Generator_RowClassName="ОтгрузкаRow">
  550. <xs:complexType>
  551. <xs:sequence>
  552. <xs:element name="КодОтгрузки" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnКодОтгрузки" msprop:Generator_ColumnPropNameInRow="КодОтгрузки" msprop:Generator_ColumnPropNameInTable="КодОтгрузкиColumn" msprop:Generator_UserColumnName="КодОтгрузки" type="xs:long" />
  553. <xs:element name="ДатаОтгрузки" msprop:Generator_ColumnVarNameInTable="columnДатаОтгрузки" msprop:Generator_ColumnPropNameInRow="ДатаОтгрузки" msprop:Generator_ColumnPropNameInTable="ДатаОтгрузкиColumn" msprop:Generator_UserColumnName="ДатаОтгрузки" type="xs:dateTime" minOccurs="0" />
  554. <xs:element name="ОтгруженоТовара" msprop:Generator_ColumnVarNameInTable="columnОтгруженоТовара" msprop:Generator_ColumnPropNameInRow="ОтгруженоТовара" msprop:Generator_ColumnPropNameInTable="ОтгруженоТовараColumn" msprop:Generator_UserColumnName="ОтгруженоТовара" type="xs:int" minOccurs="0" />
  555. </xs:sequence>
  556. </xs:complexType>
  557. </xs:element>
  558. <xs:element name="ОтгрузкаТовара" msprop:Generator_TableClassName="ОтгрузкаТовараDataTable" msprop:Generator_TableVarName="tableОтгрузкаТовара" msprop:Generator_TablePropName="ОтгрузкаТовара" msprop:Generator_RowDeletingName="ОтгрузкаТовараRowDeleting" msprop:Generator_RowChangingName="ОтгрузкаТовараRowChanging" msprop:Generator_RowEvHandlerName="ОтгрузкаТовараRowChangeEventHandler" msprop:Generator_RowDeletedName="ОтгрузкаТовараRowDeleted" msprop:Generator_UserTableName="ОтгрузкаТовара" msprop:Generator_RowChangedName="ОтгрузкаТовараRowChanged" msprop:Generator_RowEvArgName="ОтгрузкаТовараRowChangeEvent" msprop:Generator_RowClassName="ОтгрузкаТовараRow">
  559. <xs:complexType>
  560. <xs:sequence>
  561. <xs:element name="КодОтгрузкаТовара" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnКодОтгрузкаТовара" msprop:Generator_ColumnPropNameInRow="КодОтгрузкаТовара" msprop:Generator_ColumnPropNameInTable="КодОтгрузкаТовараColumn" msprop:Generator_UserColumnName="КодОтгрузкаТовара" type="xs:long" />
  562. <xs:element name="КодТовара" msprop:Generator_ColumnVarNameInTable="columnКодТовара" msprop:Generator_ColumnPropNameInRow="КодТовара" msprop:Generator_ColumnPropNameInTable="КодТовараColumn" msprop:Generator_UserColumnName="КодТовара" type="xs:long" minOccurs="0" />
  563. <xs:element name="КодОтгрузки" msprop:Generator_ColumnVarNameInTable="columnКодОтгрузки" msprop:Generator_ColumnPropNameInRow="КодОтгрузки" msprop:Generator_ColumnPropNameInTable="КодОтгрузкиColumn" msprop:Generator_UserColumnName="КодОтгрузки" type="xs:long" minOccurs="0" />
  564. </xs:sequence>
  565. </xs:complexType>
  566. </xs:element>
  567. <xs:element name="Товары" msprop:Generator_TableClassName="ТоварыDataTable" msprop:Generator_TableVarName="tableТовары" msprop:Generator_TablePropName="Товары" msprop:Generator_RowDeletingName="ТоварыRowDeleting" msprop:Generator_RowChangingName="ТоварыRowChanging" msprop:Generator_RowEvHandlerName="ТоварыRowChangeEventHandler" msprop:Generator_RowDeletedName="ТоварыRowDeleted" msprop:Generator_UserTableName="Товары" msprop:Generator_RowChangedName="ТоварыRowChanged" msprop:Generator_RowEvArgName="ТоварыRowChangeEvent" msprop:Generator_RowClassName="ТоварыRow">
  568. <xs:complexType>
  569. <xs:sequence>
  570. <xs:element name="КодТовара" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnКодТовара" msprop:Generator_ColumnPropNameInRow="КодТовара" msprop:Generator_ColumnPropNameInTable="КодТовараColumn" msprop:Generator_UserColumnName="КодТовара" type="xs:long" />
  571. <xs:element name="НаименованиеТовара" msprop:Generator_ColumnVarNameInTable="columnНаименованиеТовара" msprop:Generator_ColumnPropNameInRow="НаименованиеТовара" msprop:Generator_ColumnPropNameInTable="НаименованиеТовараColumn" msprop:Generator_UserColumnName="НаименованиеТовара" minOccurs="0">
  572. <xs:simpleType>
  573. <xs:restriction base="xs:string">
  574. <xs:maxLength value="50" />
  575. </xs:restriction>
  576. </xs:simpleType>
  577. </xs:element>
  578. <xs:element name="ЦенаТовара" msprop:Generator_ColumnVarNameInTable="columnЦенаТовара" msprop:Generator_ColumnPropNameInRow="ЦенаТовара" msprop:Generator_ColumnPropNameInTable="ЦенаТовараColumn" msprop:Generator_UserColumnName="ЦенаТовара" type="xs:decimal" minOccurs="0" />
  579. </xs:sequence>
  580. </xs:complexType>
  581. </xs:element>
  582. <xs:element name="View_1" msprop:Generator_TableClassName="View_1DataTable" msprop:Generator_TableVarName="tableView_1" msprop:Generator_TablePropName="View_1" msprop:Generator_RowDeletingName="View_1RowDeleting" msprop:Generator_RowChangingName="View_1RowChanging" msprop:Generator_RowEvHandlerName="View_1RowChangeEventHandler" msprop:Generator_RowDeletedName="View_1RowDeleted" msprop:Generator_UserTableName="View_1" msprop:Generator_RowChangedName="View_1RowChanged" msprop:Generator_RowEvArgName="View_1RowChangeEvent" msprop:Generator_RowClassName="View_1Row">
  583. <xs:complexType>
  584. <xs:sequence>
  585. <xs:element name="КодДоговора" msprop:Generator_ColumnVarNameInTable="columnКодДоговора" msprop:Generator_ColumnPropNameInRow="КодДоговора" msprop:Generator_ColumnPropNameInTable="КодДоговораColumn" msprop:Generator_UserColumnName="КодДоговора" type="xs:long" />
  586. <xs:element name="КодЗаказчика" msprop:Generator_ColumnVarNameInTable="columnКодЗаказчика" msprop:Generator_ColumnPropNameInRow="КодЗаказчика" msprop:Generator_ColumnPropNameInTable="КодЗаказчикаColumn" msprop:Generator_UserColumnName="КодЗаказчика" type="xs:long" />
  587. </xs:sequence>
  588. </xs:complexType>
  589. </xs:element>
  590. <xs:element name="Запрос_ВнеплановаяПоставка" msprop:Generator_TableClassName="Запрос_ВнеплановаяПоставкаDataTable" msprop:Generator_TableVarName="tableЗапрос_ВнеплановаяПоставка" msprop:Generator_TablePropName="Запрос_ВнеплановаяПоставка" msprop:Generator_RowDeletingName="Запрос_ВнеплановаяПоставкаRowDeleting" msprop:Generator_RowChangingName="Запрос_ВнеплановаяПоставкаRowChanging" msprop:Generator_RowEvHandlerName="Запрос_ВнеплановаяПоставкаRowChangeEventHandler" msprop:Generator_RowDeletedName="Запрос_ВнеплановаяПоставкаRowDeleted" msprop:Generator_UserTableName="Запрос_ВнеплановаяПоставка" msprop:Generator_RowChangedName="Запрос_ВнеплановаяПоставкаRowChanged" msprop:Generator_RowEvArgName="Запрос_ВнеплановаяПоставкаRowChangeEvent" msprop:Generator_RowClassName="Запрос_ВнеплановаяПоставкаRow">
  591. <xs:complexType>
  592. <xs:sequence>
  593. <xs:element name="ФИО" msprop:Generator_ColumnVarNameInTable="columnФИО" msprop:Generator_ColumnPropNameInRow="ФИО" msprop:Generator_ColumnPropNameInTable="ФИОColumn" msprop:Generator_UserColumnName="ФИО" minOccurs="0">
  594. <xs:simpleType>
  595. <xs:restriction base="xs:string">
  596. <xs:maxLength value="100" />
  597. </xs:restriction>
  598. </xs:simpleType>
  599. </xs:element>
  600. <xs:element name="НаименованиеЗаказа" msprop:Generator_ColumnVarNameInTable="columnНаименованиеЗаказа" msprop:Generator_ColumnPropNameInRow="НаименованиеЗаказа" msprop:Generator_ColumnPropNameInTable="НаименованиеЗаказаColumn" msprop:Generator_UserColumnName="НаименованиеЗаказа" minOccurs="0">
  601. <xs:simpleType>
  602. <xs:restriction base="xs:string">
  603. <xs:maxLength value="2147483647" />
  604. </xs:restriction>
  605. </xs:simpleType>
  606. </xs:element>
  607. <xs:element name="ПлановаяПоставка" msprop:Generator_ColumnVarNameInTable="columnПлановаяПоставка" msprop:Generator_ColumnPropNameInRow="ПлановаяПоставка" msprop:Generator_ColumnPropNameInTable="ПлановаяПоставкаColumn" msprop:Generator_UserColumnName="ПлановаяПоставка" type="xs:boolean" minOccurs="0" />
  608. <xs:element name="НаименованиеТовара" msprop:Generator_ColumnVarNameInTable="columnНаименованиеТовара" msprop:Generator_ColumnPropNameInRow="НаименованиеТовара" msprop:Generator_ColumnPropNameInTable="НаименованиеТовараColumn" msprop:Generator_UserColumnName="НаименованиеТовара" minOccurs="0">
  609. <xs:simpleType>
  610. <xs:restriction base="xs:string">
  611. <xs:maxLength value="50" />
  612. </xs:restriction>
  613. </xs:simpleType>
  614. </xs:element>
  615. <xs:element name="ЦенаТовара" msprop:Generator_ColumnVarNameInTable="columnЦенаТовара" msprop:Generator_ColumnPropNameInRow="ЦенаТовара" msprop:Generator_ColumnPropNameInTable="ЦенаТовараColumn" msprop:Generator_UserColumnName="ЦенаТовара" type="xs:decimal" minOccurs="0" />
  616. </xs:sequence>
  617. </xs:complexType>
  618. </xs:element>
  619. <xs:element name="Запрос_Заказы_x002B_ДоговораЗаказов" msprop:Generator_TableClassName="_Запрос_Заказы_ДоговораЗаказовDataTable" msprop:Generator_TableVarName="_tableЗапрос_Заказы_ДоговораЗаказов" msprop:Generator_TablePropName="_Запрос_Заказы_ДоговораЗаказов" msprop:Generator_RowDeletingName="_Запрос_Заказы_ДоговораЗаказовRowDeleting" msprop:Generator_RowChangingName="_Запрос_Заказы_ДоговораЗаказовRowChanging" msprop:Generator_RowEvHandlerName="_Запрос_Заказы_ДоговораЗаказовRowChangeEventHandler" msprop:Generator_RowDeletedName="_Запрос_Заказы_ДоговораЗаказовRowDeleted" msprop:Generator_UserTableName="Запрос_Заказы+ДоговораЗаказов" msprop:Generator_RowChangedName="_Запрос_Заказы_ДоговораЗаказовRowChanged" msprop:Generator_RowEvArgName="_Запрос_Заказы_ДоговораЗаказовRowChangeEvent" msprop:Generator_RowClassName="_Запрос_Заказы_ДоговораЗаказовRow">
  620. <xs:complexType>
  621. <xs:sequence>
  622. <xs:element name="КодЗаказчика" msprop:Generator_ColumnVarNameInTable="columnКодЗаказчика" msprop:Generator_ColumnPropNameInRow="КодЗаказчика" msprop:Generator_ColumnPropNameInTable="КодЗаказчикаColumn" msprop:Generator_UserColumnName="КодЗаказчика" type="xs:long" minOccurs="0" />
  623. <xs:element name="КодЗаказа" msprop:Generator_ColumnVarNameInTable="columnКодЗаказа" msprop:Generator_ColumnPropNameInRow="КодЗаказа" msprop:Generator_ColumnPropNameInTable="КодЗаказаColumn" msprop:Generator_UserColumnName="КодЗаказа" type="xs:long" />
  624. <xs:element name="НаименованиеЗаказа" msprop:Generator_ColumnVarNameInTable="columnНаименованиеЗаказа" msprop:Generator_ColumnPropNameInRow="НаименованиеЗаказа" msprop:Generator_ColumnPropNameInTable="НаименованиеЗаказаColumn" msprop:Generator_UserColumnName="НаименованиеЗаказа" minOccurs="0">
  625. <xs:simpleType>
  626. <xs:restriction base="xs:string">
  627. <xs:maxLength value="2147483647" />
  628. </xs:restriction>
  629. </xs:simpleType>
  630. </xs:element>
  631. <xs:element name="КодТовара" msprop:Generator_ColumnVarNameInTable="columnКодТовара" msprop:Generator_ColumnPropNameInRow="КодТовара" msprop:Generator_ColumnPropNameInTable="КодТовараColumn" msprop:Generator_UserColumnName="КодТовара" type="xs:long" minOccurs="0" />
  632. <xs:element name="КодДоговора" msprop:Generator_ColumnVarNameInTable="columnКодДоговора" msprop:Generator_ColumnPropNameInRow="КодДоговора" msprop:Generator_ColumnPropNameInTable="КодДоговораColumn" msprop:Generator_UserColumnName="КодДоговора" type="xs:long" />
  633. <xs:element name="ДатаЗаключения" msprop:Generator_ColumnVarNameInTable="columnДатаЗаключения" msprop:Generator_ColumnPropNameInRow="ДатаЗаключения" msprop:Generator_ColumnPropNameInTable="ДатаЗаключенияColumn" msprop:Generator_UserColumnName="ДатаЗаключения" type="xs:dateTime" minOccurs="0" />
  634. <xs:element name="ПлановаяПоставка" msprop:Generator_ColumnVarNameInTable="columnПлановаяПоставка" msprop:Generator_ColumnPropNameInRow="ПлановаяПоставка" msprop:Generator_ColumnPropNameInTable="ПлановаяПоставкаColumn" msprop:Generator_UserColumnName="ПлановаяПоставка" type="xs:boolean" minOccurs="0" />
  635. <xs:element name="КодОтгрузки" msprop:Generator_ColumnVarNameInTable="columnКодОтгрузки" msprop:Generator_ColumnPropNameInRow="КодОтгрузки" msprop:Generator_ColumnPropNameInTable="КодОтгрузкиColumn" msprop:Generator_UserColumnName="КодОтгрузки" type="xs:long" minOccurs="0" />
  636. </xs:sequence>
  637. </xs:complexType>
  638. </xs:element>
  639. <xs:element name="Запрос_ПлановаяПоставка" msprop:Generator_TableClassName="Запрос_ПлановаяПоставкаDataTable" msprop:Generator_TableVarName="tableЗапрос_ПлановаяПоставка" msprop:Generator_TablePropName="Запрос_ПлановаяПоставка" msprop:Generator_RowDeletingName="Запрос_ПлановаяПоставкаRowDeleting" msprop:Generator_RowChangingName="Запрос_ПлановаяПоставкаRowChanging" msprop:Generator_RowEvHandlerName="Запрос_ПлановаяПоставкаRowChangeEventHandler" msprop:Generator_RowDeletedName="Запрос_ПлановаяПоставкаRowDeleted" msprop:Generator_UserTableName="Запрос_ПлановаяПоставка" msprop:Generator_RowChangedName="Запрос_ПлановаяПоставкаRowChanged" msprop:Generator_RowEvArgName="Запрос_ПлановаяПоставкаRowChangeEvent" msprop:Generator_RowClassName="Запрос_ПлановаяПоставкаRow">
  640. <xs:complexType>
  641. <xs:sequence>
  642. <xs:element name="ФИО" msprop:Generator_ColumnVarNameInTable="columnФИО" msprop:Generator_ColumnPropNameInRow="ФИО" msprop:Generator_ColumnPropNameInTable="ФИОColumn" msprop:Generator_UserColumnName="ФИО" minOccurs="0">
  643. <xs:simpleType>
  644. <xs:restriction base="xs:string">
  645. <xs:maxLength value="100" />
  646. </xs:restriction>
  647. </xs:simpleType>
  648. </xs:element>
  649. <xs:element name="НаименованиеЗаказа" msprop:Generator_ColumnVarNameInTable="columnНаименованиеЗаказа" msprop:Generator_ColumnPropNameInRow="НаименованиеЗаказа" msprop:Generator_ColumnPropNameInTable="НаименованиеЗаказаColumn" msprop:Generator_UserColumnName="НаименованиеЗаказа" minOccurs="0">
  650. <xs:simpleType>
  651. <xs:restriction base="xs:string">
  652. <xs:maxLength value="2147483647" />
  653. </xs:restriction>
  654. </xs:simpleType>
  655. </xs:element>
  656. <xs:element name="НаименованиеТовара" msprop:Generator_ColumnVarNameInTable="columnНаименованиеТовара" msprop:Generator_ColumnPropNameInRow="НаименованиеТовара" msprop:Generator_ColumnPropNameInTable="НаименованиеТовараColumn" msprop:Generator_UserColumnName="НаименованиеТовара" minOccurs="0">
  657. <xs:simpleType>
  658. <xs:restriction base="xs:string">
  659. <xs:maxLength value="50" />
  660. </xs:restriction>
  661. </xs:simpleType>
  662. </xs:element>
  663. <xs:element name="ЦенаТовара" msprop:Generator_ColumnVarNameInTable="columnЦенаТовара" msprop:Generator_ColumnPropNameInRow="ЦенаТовара" msprop:Generator_ColumnPropNameInTable="ЦенаТовараColumn" msprop:Generator_UserColumnName="ЦенаТовара" type="xs:decimal" minOccurs="0" />
  664. <xs:element name="ПлановаяПоставка" msprop:Generator_ColumnVarNameInTable="columnПлановаяПоставка" msprop:Generator_ColumnPropNameInRow="ПлановаяПоставка" msprop:Generator_ColumnPropNameInTable="ПлановаяПоставкаColumn" msprop:Generator_UserColumnName="ПлановаяПоставка" type="xs:boolean" minOccurs="0" />
  665. </xs:sequence>
  666. </xs:complexType>
  667. </xs:element>
  668. <xs:element name="Запрос_ФИОЗаказавшихКерамическиеИзделия" msprop:Generator_TableClassName="Запрос_ФИОЗаказавшихКерамическиеИзделияDataTable" msprop:Generator_TableVarName="tableЗапрос_ФИОЗаказавшихКерамическиеИзделия" msprop:Generator_TablePropName="Запрос_ФИОЗаказавшихКерамическиеИзделия" msprop:Generator_RowDeletingName="Запрос_ФИОЗаказавшихКерамическиеИзделияRowDeleting" msprop:Generator_RowChangingName="Запрос_ФИОЗаказавшихКерамическиеИзделияRowChanging" msprop:Generator_RowEvHandlerName="Запрос_ФИОЗаказавшихКерамическиеИзделияRowChangeEventHandler" msprop:Generator_RowDeletedName="Запрос_ФИОЗаказавшихКерамическиеИзделияRowDeleted" msprop:Generator_UserTableName="Запрос_ФИОЗаказавшихКерамическиеИзделия" msprop:Generator_RowChangedName="Запрос_ФИОЗаказавшихКерамическиеИзделияRowChanged" msprop:Generator_RowEvArgName="Запрос_ФИОЗаказавшихКерамическиеИзделияRowChangeEvent" msprop:Generator_RowClassName="Запрос_ФИОЗаказавшихКерамическиеИзделияRow">
  669. <xs:complexType>
  670. <xs:sequence>
  671. <xs:element name="НаименованиеТовара" msprop:Generator_ColumnVarNameInTable="columnНаименованиеТовара" msprop:Generator_ColumnPropNameInRow="НаименованиеТовара" msprop:Generator_ColumnPropNameInTable="НаименованиеТовараColumn" msprop:Generator_UserColumnName="НаименованиеТовара" minOccurs="0">
  672. <xs:simpleType>
  673. <xs:restriction base="xs:string">
  674. <xs:maxLength value="50" />
  675. </xs:restriction>
  676. </xs:simpleType>
  677. </xs:element>
  678. <xs:element name="НаименованиеЗаказа" msprop:Generator_ColumnVarNameInTable="columnНаименованиеЗаказа" msprop:Generator_ColumnPropNameInRow="НаименованиеЗаказа" msprop:Generator_ColumnPropNameInTable="НаименованиеЗаказаColumn" msprop:Generator_UserColumnName="НаименованиеЗаказа" minOccurs="0">
  679. <xs:simpleType>
  680. <xs:restriction base="xs:string">
  681. <xs:maxLength value="2147483647" />
  682. </xs:restriction>
  683. </xs:simpleType>
  684. </xs:element>
  685. <xs:element name="ФИО" msprop:Generator_ColumnVarNameInTable="columnФИО" msprop:Generator_ColumnPropNameInRow="ФИО" msprop:Generator_ColumnPropNameInTable="ФИОColumn" msprop:Generator_UserColumnName="ФИО" minOccurs="0">
  686. <xs:simpleType>
  687. <xs:restriction base="xs:string">
  688. <xs:maxLength value="100" />
  689. </xs:restriction>
  690. </xs:simpleType>
  691. </xs:element>
  692. </xs:sequence>
  693. </xs:complexType>
  694. </xs:element>
  695. <xs:element name="Запрос_ФИОЗаказавшихМебель" msprop:Generator_TableClassName="Запрос_ФИОЗаказавшихМебельDataTable" msprop:Generator_TableVarName="tableЗапрос_ФИОЗаказавшихМебель" msprop:Generator_TablePropName="Запрос_ФИОЗаказавшихМебель" msprop:Generator_RowDeletingName="Запрос_ФИОЗаказавшихМебельRowDeleting" msprop:Generator_RowChangingName="Запрос_ФИОЗаказавшихМебельRowChanging" msprop:Generator_RowEvHandlerName="Запрос_ФИОЗаказавшихМебельRowChangeEventHandler" msprop:Generator_RowDeletedName="Запрос_ФИОЗаказавшихМебельRowDeleted" msprop:Generator_UserTableName="Запрос_ФИОЗаказавшихМебель" msprop:Generator_RowChangedName="Запрос_ФИОЗаказавшихМебельRowChanged" msprop:Generator_RowEvArgName="Запрос_ФИОЗаказавшихМебельRowChangeEvent" msprop:Generator_RowClassName="Запрос_ФИОЗаказавшихМебельRow">
  696. <xs:complexType>
  697. <xs:sequence>
  698. <xs:element name="НаименованиеТовара" msprop:Generator_ColumnVarNameInTable="columnНаименованиеТовара" msprop:Generator_ColumnPropNameInRow="НаименованиеТовара" msprop:Generator_ColumnPropNameInTable="НаименованиеТовараColumn" msprop:Generator_UserColumnName="НаименованиеТовара" minOccurs="0">
  699. <xs:simpleType>
  700. <xs:restriction base="xs:string">
  701. <xs:maxLength value="50" />
  702. </xs:restriction>
  703. </xs:simpleType>
  704. </xs:element>
  705. <xs:element name="НаименованиеЗаказа" msprop:Generator_ColumnVarNameInTable="columnНаименованиеЗаказа" msprop:Generator_ColumnPropNameInRow="НаименованиеЗаказа" msprop:Generator_ColumnPropNameInTable="НаименованиеЗаказаColumn" msprop:Generator_UserColumnName="НаименованиеЗаказа" minOccurs="0">
  706. <xs:simpleType>
  707. <xs:restriction base="xs:string">
  708. <xs:maxLength value="2147483647" />
  709. </xs:restriction>
  710. </xs:simpleType>
  711. </xs:element>
  712. <xs:element name="ФИО" msprop:Generator_ColumnVarNameInTable="columnФИО" msprop:Generator_ColumnPropNameInRow="ФИО" msprop:Generator_ColumnPropNameInTable="ФИОColumn" msprop:Generator_UserColumnName="ФИО" minOccurs="0">
  713. <xs:simpleType>
  714. <xs:restriction base="xs:string">
  715. <xs:maxLength value="100" />
  716. </xs:restriction>
  717. </xs:simpleType>
  718. </xs:element>
  719. </xs:sequence>
  720. </xs:complexType>
  721. </xs:element>
  722. </xs:choice>
  723. </xs:complexType>
  724. <xs:unique name="Constraint1" msdata:PrimaryKey="true">
  725. <xs:selector xpath=".//mstns:ДоговорЗаказа" />
  726. <xs:field xpath="mstns:КодДоговора" />
  727. </xs:unique>
  728. <xs:unique name="Заказчик_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  729. <xs:selector xpath=".//mstns:Заказчик" />
  730. <xs:field xpath="mstns:КодЗаказчика" />
  731. </xs:unique>
  732. <xs:unique name="Заказы_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  733. <xs:selector xpath=".//mstns:Заказы" />
  734. <xs:field xpath="mstns:КодЗаказа" />
  735. </xs:unique>
  736. <xs:unique name="Отгрузка_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  737. <xs:selector xpath=".//mstns:Отгрузка" />
  738. <xs:field xpath="mstns:КодОтгрузки" />
  739. </xs:unique>
  740. <xs:unique name="ОтгрузкаТовара_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  741. <xs:selector xpath=".//mstns:ОтгрузкаТовара" />
  742. <xs:field xpath="mstns:КодОтгрузкаТовара" />
  743. </xs:unique>
  744. <xs:unique name="Товары_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  745. <xs:selector xpath=".//mstns:Товары" />
  746. <xs:field xpath="mstns:КодТовара" />
  747. </xs:unique>
  748. <xs:unique name="Запрос_Заказы_x002B_ДоговораЗаказов_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  749. <xs:selector xpath=".//mstns:Запрос_Заказы_x002B_ДоговораЗаказов" />
  750. <xs:field xpath="mstns:КодЗаказа" />
  751. <xs:field xpath="mstns:КодДоговора" />
  752. </xs:unique>
  753. </xs:element>
  754. <xs:annotation>
  755. <xs:appinfo>
  756. <msdata:Relationship name="FK_Заказы_ДоговорЗаказа" msdata:parent="ДоговорЗаказа" msdata:child="Заказы" msdata:parentkey="КодДоговора" msdata:childkey="КодДоговора" msprop:Generator_UserChildTable="Заказы" msprop:Generator_ChildPropName="GetЗаказыRows" msprop:Generator_UserRelationName="FK_Заказы_ДоговорЗаказа" msprop:Generator_ParentPropName="ДоговорЗаказаRow" msprop:Generator_RelationVarName="relationFK_Заказы_ДоговорЗаказа" msprop:Generator_UserParentTable="ДоговорЗаказа" />
  757. <msdata:Relationship name="FK_Заказы_Заказчик" msdata:parent="Заказчик" msdata:child="Заказы" msdata:parentkey="КодЗаказчика" msdata:childkey="КодЗаказчика" msprop:Generator_UserChildTable="Заказы" msprop:Generator_ChildPropName="GetЗаказыRows" msprop:Generator_UserRelationName="FK_Заказы_Заказчик" msprop:Generator_ParentPropName="ЗаказчикRow" msprop:Generator_RelationVarName="relationFK_Заказы_Заказчик" msprop:Generator_UserParentTable="Заказчик" />
  758. <msdata:Relationship name="FK_Заказы_Отгрузка" msdata:parent="Отгрузка" msdata:child="Заказы" msdata:parentkey="КодОтгрузки" msdata:childkey="КодОтгрузки" msprop:Generator_UserChildTable="Заказы" msprop:Generator_ChildPropName="GetЗаказыRows" msprop:Generator_UserRelationName="FK_Заказы_Отгрузка" msprop:Generator_RelationVarName="relationFK_Заказы_Отгрузка" msprop:Generator_UserParentTable="Отгрузка" msprop:Generator_ParentPropName="ОтгрузкаRow" />
  759. <msdata:Relationship name="FK_Заказы_Товары" msdata:parent="Товары" msdata:child="Заказы" msdata:parentkey="КодТовара" msdata:childkey="КодТовара" msprop:Generator_UserChildTable="Заказы" msprop:Generator_ChildPropName="GetЗаказыRows" msprop:Generator_UserRelationName="FK_Заказы_Товары" msprop:Generator_RelationVarName="relationFK_Заказы_Товары" msprop:Generator_UserParentTable="Товары" msprop:Generator_ParentPropName="ТоварыRow" />
  760. <msdata:Relationship name="FK_ОтгрузкаТовара_Отгрузка" msdata:parent="Отгрузка" msdata:child="ОтгрузкаТовара" msdata:parentkey="КодОтгрузки" msdata:childkey="КодОтгрузки" msprop:Generator_UserChildTable="ОтгрузкаТовара" msprop:Generator_ChildPropName="GetОтгрузкаТовараRows" msprop:Generator_UserRelationName="FK_ОтгрузкаТовара_Отгрузка" msprop:Generator_ParentPropName="ОтгрузкаRow" msprop:Generator_RelationVarName="relationFK_ОтгрузкаТовара_Отгрузка" msprop:Generator_UserParentTable="Отгрузка" />
  761. <msdata:Relationship name="FK_ОтгрузкаТовара_Товары" msdata:parent="Товары" msdata:child="ОтгрузкаТовара" msdata:parentkey="КодТовара" msdata:childkey="КодТовара" msprop:Generator_UserChildTable="ОтгрузкаТовара" msprop:Generator_ChildPropName="GetОтгрузкаТовараRows" msprop:Generator_UserRelationName="FK_ОтгрузкаТовара_Товары" msprop:Generator_RelationVarName="relationFK_ОтгрузкаТовара_Товары" msprop:Generator_UserParentTable="Товары" msprop:Generator_ParentPropName="ТоварыRow" />
  762. </xs:appinfo>
  763. </xs:annotation>
  764. </xs:schema>