CHER_KAFEDataSet.xsd 132 KB

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