KazarinKafeDataSet.xsd 155 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="KazarinKafeDataSet" targetNamespace="http://tempuri.org/KazarinKafeDataSet.xsd" xmlns:mstns="http://tempuri.org/KazarinKafeDataSet.xsd" xmlns="http://tempuri.org/KazarinKafeDataSet.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="KazarinKafeConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="KazarinKafeConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.KafeKazarin03.Properties.Settings.GlobalReference.Default.KazarinKafeConnectionString" Provider="System.Data.SqlClient" />
  8. </Connections>
  9. <Tables>
  10. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CooksTableAdapter" GeneratorDataComponentClassName="CooksTableAdapter" Name="Cooks" UserDataComponentName="CooksTableAdapter">
  11. <MainSource>
  12. <DbSource ConnectionRef="KazarinKafeConnectionString (Settings)" DbObjectName="KazarinKafe.dbo.Cooks" 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].[Cooks] 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_Отчество)))</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="String" Direction="Input" ParameterName="@Original_Имя" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="false" SourceVersion="Original" />
  22. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Отчество" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="true" SourceVersion="Original" />
  23. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Отчество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="false" SourceVersion="Original" />
  24. </Parameters>
  25. </DbCommand>
  26. </DeleteCommand>
  27. <InsertCommand>
  28. <DbCommand CommandType="Text" ModifiedByUser="false">
  29. <CommandText>INSERT INTO [dbo].[Cooks] ([IDПовара], [Фамилия], [Имя], [Отчество]) VALUES (@IDПовара, @Фамилия, @Имя, @Отчество);
  30. SELECT IDПовара, Фамилия, Имя, Отчество FROM Cooks WHERE (IDПовара = @IDПовара)</CommandText>
  31. <Parameters>
  32. <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" />
  33. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Фамилия" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="false" SourceVersion="Current" />
  34. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Имя" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="false" SourceVersion="Current" />
  35. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Отчество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="false" SourceVersion="Current" />
  36. </Parameters>
  37. </DbCommand>
  38. </InsertCommand>
  39. <SelectCommand>
  40. <DbCommand CommandType="Text" ModifiedByUser="false">
  41. <CommandText>SELECT IDПовара, Фамилия, Имя, Отчество FROM dbo.Cooks</CommandText>
  42. <Parameters />
  43. </DbCommand>
  44. </SelectCommand>
  45. <UpdateCommand>
  46. <DbCommand CommandType="Text" ModifiedByUser="false">
  47. <CommandText>UPDATE [dbo].[Cooks] SET [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_Отчество)));
  48. SELECT IDПовара, Фамилия, Имя, Отчество FROM Cooks WHERE (IDПовара = @IDПовара)</CommandText>
  49. <Parameters>
  50. <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" />
  51. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Фамилия" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="false" SourceVersion="Current" />
  52. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Имя" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="false" SourceVersion="Current" />
  53. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Отчество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="false" SourceVersion="Current" />
  54. <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" />
  55. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Фамилия" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="true" SourceVersion="Original" />
  56. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Фамилия" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="false" SourceVersion="Original" />
  57. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Имя" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="true" SourceVersion="Original" />
  58. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Имя" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="false" SourceVersion="Original" />
  59. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Отчество" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="true" SourceVersion="Original" />
  60. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Отчество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="false" SourceVersion="Original" />
  61. </Parameters>
  62. </DbCommand>
  63. </UpdateCommand>
  64. </DbSource>
  65. </MainSource>
  66. <Mappings>
  67. <Mapping SourceColumn="IDПовара" DataSetColumn="IDПовара" />
  68. <Mapping SourceColumn="Фамилия" DataSetColumn="Фамилия" />
  69. <Mapping SourceColumn="Имя" DataSetColumn="Имя" />
  70. <Mapping SourceColumn="Отчество" DataSetColumn="Отчество" />
  71. </Mappings>
  72. <Sources />
  73. </TableAdapter>
  74. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="EmployeesTableAdapter" GeneratorDataComponentClassName="EmployeesTableAdapter" Name="Employees" UserDataComponentName="EmployeesTableAdapter">
  75. <MainSource>
  76. <DbSource ConnectionRef="KazarinKafeConnectionString (Settings)" DbObjectName="KazarinKafe.dbo.Employees" 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">
  77. <DeleteCommand>
  78. <DbCommand CommandType="Text" ModifiedByUser="false">
  79. <CommandText>DELETE FROM [dbo].[Employees] 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_Адрес = 1 AND [Адрес] IS NULL) OR ([Адрес] = @Original_Адрес)) AND ((@IsNull_Username = 1 AND [Username] IS NULL) OR ([Username] = @Original_Username)) AND ((@IsNull_Password = 1 AND [Password] IS NULL) OR ([Password] = @Original_Password)) AND ((@IsNull_Статус = 1 AND [Статус] IS NULL) OR ([Статус] = @Original_Статус)))</CommandText>
  80. <Parameters>
  81. <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" />
  82. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Роль" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Роль" SourceColumnNullMapping="true" SourceVersion="Original" />
  83. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Роль" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Роль" SourceColumnNullMapping="false" SourceVersion="Original" />
  84. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ДатаРождения" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ДатаРождения" SourceColumnNullMapping="true" SourceVersion="Original" />
  85. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_ДатаРождения" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="ДатаРождения" SourceColumnNullMapping="false" SourceVersion="Original" />
  86. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Телефон" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="true" SourceVersion="Original" />
  87. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="false" SourceVersion="Original" />
  88. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Адрес" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="true" SourceVersion="Original" />
  89. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Адрес" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="false" SourceVersion="Original" />
  90. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Username" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Username" SourceColumnNullMapping="true" SourceVersion="Original" />
  91. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Username" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Username" SourceColumnNullMapping="false" SourceVersion="Original" />
  92. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Password" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="true" SourceVersion="Original" />
  93. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Original" />
  94. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Статус" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Статус" SourceColumnNullMapping="true" SourceVersion="Original" />
  95. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Статус" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Статус" SourceColumnNullMapping="false" SourceVersion="Original" />
  96. </Parameters>
  97. </DbCommand>
  98. </DeleteCommand>
  99. <InsertCommand>
  100. <DbCommand CommandType="Text" ModifiedByUser="false">
  101. <CommandText>INSERT INTO [dbo].[Employees] ([Роль], [ДатаРождения], [Телефон], [Адрес], [Username], [Password], [Статус]) VALUES (@Роль, @ДатаРождения, @Телефон, @Адрес, @Username, @Password, @Статус);
  102. SELECT ID, Роль, ДатаРождения, Телефон, Адрес, Username, Password, Статус FROM Employees WHERE (ID = SCOPE_IDENTITY())</CommandText>
  103. <Parameters>
  104. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Роль" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Роль" SourceColumnNullMapping="false" SourceVersion="Current" />
  105. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@ДатаРождения" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="ДатаРождения" SourceColumnNullMapping="false" SourceVersion="Current" />
  106. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="false" SourceVersion="Current" />
  107. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Адрес" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="false" SourceVersion="Current" />
  108. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Username" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Username" SourceColumnNullMapping="false" SourceVersion="Current" />
  109. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Current" />
  110. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Статус" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Статус" SourceColumnNullMapping="false" SourceVersion="Current" />
  111. </Parameters>
  112. </DbCommand>
  113. </InsertCommand>
  114. <SelectCommand>
  115. <DbCommand CommandType="Text" ModifiedByUser="false">
  116. <CommandText>SELECT ID, Роль, ДатаРождения, Телефон, Адрес, Username, Password, Статус FROM dbo.Employees</CommandText>
  117. <Parameters />
  118. </DbCommand>
  119. </SelectCommand>
  120. <UpdateCommand>
  121. <DbCommand CommandType="Text" ModifiedByUser="false">
  122. <CommandText>UPDATE [dbo].[Employees] SET [Роль] = @Роль, [ДатаРождения] = @ДатаРождения, [Телефон] = @Телефон, [Адрес] = @Адрес, [Username] = @Username, [Password] = @Password, [Статус] = @Статус 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_Адрес = 1 AND [Адрес] IS NULL) OR ([Адрес] = @Original_Адрес)) AND ((@IsNull_Username = 1 AND [Username] IS NULL) OR ([Username] = @Original_Username)) AND ((@IsNull_Password = 1 AND [Password] IS NULL) OR ([Password] = @Original_Password)) AND ((@IsNull_Статус = 1 AND [Статус] IS NULL) OR ([Статус] = @Original_Статус)));
  123. SELECT ID, Роль, ДатаРождения, Телефон, Адрес, Username, Password, Статус FROM Employees WHERE (ID = @ID)</CommandText>
  124. <Parameters>
  125. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Роль" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Роль" SourceColumnNullMapping="false" SourceVersion="Current" />
  126. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@ДатаРождения" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="ДатаРождения" SourceColumnNullMapping="false" SourceVersion="Current" />
  127. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="false" SourceVersion="Current" />
  128. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Адрес" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="false" SourceVersion="Current" />
  129. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Username" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Username" SourceColumnNullMapping="false" SourceVersion="Current" />
  130. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Current" />
  131. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Статус" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Статус" SourceColumnNullMapping="false" SourceVersion="Current" />
  132. <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" />
  133. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Роль" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Роль" SourceColumnNullMapping="true" SourceVersion="Original" />
  134. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Роль" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Роль" SourceColumnNullMapping="false" SourceVersion="Original" />
  135. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ДатаРождения" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ДатаРождения" SourceColumnNullMapping="true" SourceVersion="Original" />
  136. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_ДатаРождения" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="ДатаРождения" SourceColumnNullMapping="false" SourceVersion="Original" />
  137. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Телефон" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="true" SourceVersion="Original" />
  138. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="false" SourceVersion="Original" />
  139. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Адрес" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="true" SourceVersion="Original" />
  140. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Адрес" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Адрес" SourceColumnNullMapping="false" SourceVersion="Original" />
  141. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Username" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Username" SourceColumnNullMapping="true" SourceVersion="Original" />
  142. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Username" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Username" SourceColumnNullMapping="false" SourceVersion="Original" />
  143. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Password" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="true" SourceVersion="Original" />
  144. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Original" />
  145. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Статус" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Статус" SourceColumnNullMapping="true" SourceVersion="Original" />
  146. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Статус" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Статус" SourceColumnNullMapping="false" SourceVersion="Original" />
  147. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="KazarinKafe.dbo.Employees" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  148. </Parameters>
  149. </DbCommand>
  150. </UpdateCommand>
  151. </DbSource>
  152. </MainSource>
  153. <Mappings>
  154. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  155. <Mapping SourceColumn="Роль" DataSetColumn="Роль" />
  156. <Mapping SourceColumn="ДатаРождения" DataSetColumn="ДатаРождения" />
  157. <Mapping SourceColumn="Телефон" DataSetColumn="Телефон" />
  158. <Mapping SourceColumn="Адрес" DataSetColumn="Адрес" />
  159. <Mapping SourceColumn="Username" DataSetColumn="Username" />
  160. <Mapping SourceColumn="Password" DataSetColumn="Password" />
  161. <Mapping SourceColumn="Статус" DataSetColumn="Статус" />
  162. </Mappings>
  163. <Sources />
  164. </TableAdapter>
  165. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="OrderedDishesTableAdapter" GeneratorDataComponentClassName="OrderedDishesTableAdapter" Name="OrderedDishes" UserDataComponentName="OrderedDishesTableAdapter">
  166. <MainSource>
  167. <DbSource ConnectionRef="KazarinKafeConnectionString (Settings)" DbObjectName="KazarinKafe.dbo.OrderedDishes" 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">
  168. <DeleteCommand>
  169. <DbCommand CommandType="Text" ModifiedByUser="false">
  170. <CommandText>DELETE FROM [dbo].[OrderedDishes] WHERE (([ID] = @Original_ID) AND ((@IsNull_IDЗаказа = 1 AND [IDЗаказа] IS NULL) OR ([IDЗаказа] = @Original_IDЗаказа)) AND ((@IsNull_IDПродукт = 1 AND [IDПродукт] IS NULL) OR ([IDПродукт] = @Original_IDПродукт)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)))</CommandText>
  171. <Parameters>
  172. <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" />
  173. <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" />
  174. <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" />
  175. <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" />
  176. <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" />
  177. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Количество" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Количество" SourceColumnNullMapping="true" SourceVersion="Original" />
  178. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Количество" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Количество" SourceColumnNullMapping="false" SourceVersion="Original" />
  179. </Parameters>
  180. </DbCommand>
  181. </DeleteCommand>
  182. <InsertCommand>
  183. <DbCommand CommandType="Text" ModifiedByUser="false">
  184. <CommandText>INSERT INTO [dbo].[OrderedDishes] ([IDЗаказа], [IDПродукт], [Количество]) VALUES (@IDЗаказа, @IDПродукт, @Количество);
  185. SELECT ID, IDЗаказа, IDПродукт, Количество FROM OrderedDishes WHERE (ID = SCOPE_IDENTITY())</CommandText>
  186. <Parameters>
  187. <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" />
  188. <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" />
  189. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Количество" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Количество" SourceColumnNullMapping="false" SourceVersion="Current" />
  190. </Parameters>
  191. </DbCommand>
  192. </InsertCommand>
  193. <SelectCommand>
  194. <DbCommand CommandType="Text" ModifiedByUser="false">
  195. <CommandText>SELECT ID, IDЗаказа, IDПродукт, Количество FROM dbo.OrderedDishes</CommandText>
  196. <Parameters />
  197. </DbCommand>
  198. </SelectCommand>
  199. <UpdateCommand>
  200. <DbCommand CommandType="Text" ModifiedByUser="false">
  201. <CommandText>UPDATE [dbo].[OrderedDishes] SET [IDЗаказа] = @IDЗаказа, [IDПродукт] = @IDПродукт, [Количество] = @Количество WHERE (([ID] = @Original_ID) AND ((@IsNull_IDЗаказа = 1 AND [IDЗаказа] IS NULL) OR ([IDЗаказа] = @Original_IDЗаказа)) AND ((@IsNull_IDПродукт = 1 AND [IDПродукт] IS NULL) OR ([IDПродукт] = @Original_IDПродукт)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)));
  202. SELECT ID, IDЗаказа, IDПродукт, Количество FROM OrderedDishes WHERE (ID = @ID)</CommandText>
  203. <Parameters>
  204. <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" />
  205. <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" />
  206. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Количество" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Количество" SourceColumnNullMapping="false" SourceVersion="Current" />
  207. <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" />
  208. <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" />
  209. <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" />
  210. <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" />
  211. <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" />
  212. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Количество" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Количество" SourceColumnNullMapping="true" SourceVersion="Original" />
  213. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Количество" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Количество" SourceColumnNullMapping="false" SourceVersion="Original" />
  214. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="KazarinKafe.dbo.OrderedDishes" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  215. </Parameters>
  216. </DbCommand>
  217. </UpdateCommand>
  218. </DbSource>
  219. </MainSource>
  220. <Mappings>
  221. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  222. <Mapping SourceColumn="IDЗаказа" DataSetColumn="IDЗаказа" />
  223. <Mapping SourceColumn="IDПродукт" DataSetColumn="IDПродукт" />
  224. <Mapping SourceColumn="Количество" DataSetColumn="Количество" />
  225. </Mappings>
  226. <Sources />
  227. </TableAdapter>
  228. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="OrdersTableAdapter" GeneratorDataComponentClassName="OrdersTableAdapter" Name="Orders" UserDataComponentName="OrdersTableAdapter">
  229. <MainSource>
  230. <DbSource ConnectionRef="KazarinKafeConnectionString (Settings)" DbObjectName="KazarinKafe.dbo.Orders" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
  231. <DeleteCommand>
  232. <DbCommand CommandType="Text" ModifiedByUser="false">
  233. <CommandText>DELETE FROM [dbo].[Orders] 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_Стоимость = 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>
  234. <Parameters>
  235. <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" />
  236. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ДатаЗаказа" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ДатаЗаказа" SourceColumnNullMapping="true" SourceVersion="Original" />
  237. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_ДатаЗаказа" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ДатаЗаказа" SourceColumnNullMapping="false" SourceVersion="Original" />
  238. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_СтатусЗаказа" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="СтатусЗаказа" SourceColumnNullMapping="true" SourceVersion="Original" />
  239. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_СтатусЗаказа" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="СтатусЗаказа" SourceColumnNullMapping="false" SourceVersion="Original" />
  240. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_СпособОплаты" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="СпособОплаты" SourceColumnNullMapping="true" SourceVersion="Original" />
  241. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_СпособОплаты" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="СпособОплаты" 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="Decimal" Direction="Input" ParameterName="@Original_Стоимость" Precision="18" ProviderType="Decimal" Scale="2" 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="Int32" Direction="Input" ParameterName="@Original_Столик" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Столик" SourceColumnNullMapping="false" SourceVersion="Original" />
  246. <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" />
  247. <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" />
  248. </Parameters>
  249. </DbCommand>
  250. </DeleteCommand>
  251. <InsertCommand>
  252. <DbCommand CommandType="Text" ModifiedByUser="false">
  253. <CommandText>INSERT INTO [dbo].[Orders] ([ДатаЗаказа], [СтатусЗаказа], [СпособОплаты], [Стоимость], [Столик], [IDСмены]) VALUES (@ДатаЗаказа, @СтатусЗаказа, @СпособОплаты, @Стоимость, @Столик, @IDСмены);
  254. SELECT ID, ДатаЗаказа, СтатусЗаказа, СпособОплаты, Стоимость, Столик, IDСмены FROM Orders WHERE (ID = SCOPE_IDENTITY())</CommandText>
  255. <Parameters>
  256. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@ДатаЗаказа" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ДатаЗаказа" SourceColumnNullMapping="false" SourceVersion="Current" />
  257. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@СтатусЗаказа" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="СтатусЗаказа" SourceColumnNullMapping="false" SourceVersion="Current" />
  258. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@СпособОплаты" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="СпособОплаты" SourceColumnNullMapping="false" SourceVersion="Current" />
  259. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Стоимость" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="Стоимость" SourceColumnNullMapping="false" SourceVersion="Current" />
  260. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Столик" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Столик" SourceColumnNullMapping="false" SourceVersion="Current" />
  261. <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" />
  262. </Parameters>
  263. </DbCommand>
  264. </InsertCommand>
  265. <SelectCommand>
  266. <DbCommand CommandType="Text" ModifiedByUser="false">
  267. <CommandText>SELECT ID, ДатаЗаказа, СтатусЗаказа, СпособОплаты, Стоимость, Столик, IDСмены FROM dbo.Orders</CommandText>
  268. <Parameters />
  269. </DbCommand>
  270. </SelectCommand>
  271. <UpdateCommand>
  272. <DbCommand CommandType="Text" ModifiedByUser="false">
  273. <CommandText>UPDATE [dbo].[Orders] SET [ДатаЗаказа] = @ДатаЗаказа, [СтатусЗаказа] = @СтатусЗаказа, [СпособОплаты] = @СпособОплаты, [Стоимость] = @Стоимость, [Столик] = @Столик, [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_Стоимость = 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Смены)));
  274. SELECT ID, ДатаЗаказа, СтатусЗаказа, СпособОплаты, Стоимость, Столик, IDСмены FROM Orders WHERE (ID = @ID)</CommandText>
  275. <Parameters>
  276. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@ДатаЗаказа" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ДатаЗаказа" SourceColumnNullMapping="false" SourceVersion="Current" />
  277. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@СтатусЗаказа" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="СтатусЗаказа" SourceColumnNullMapping="false" SourceVersion="Current" />
  278. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@СпособОплаты" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="СпособОплаты" SourceColumnNullMapping="false" SourceVersion="Current" />
  279. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Стоимость" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="Стоимость" SourceColumnNullMapping="false" SourceVersion="Current" />
  280. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Столик" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Столик" SourceColumnNullMapping="false" SourceVersion="Current" />
  281. <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" />
  282. <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" />
  283. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ДатаЗаказа" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ДатаЗаказа" SourceColumnNullMapping="true" SourceVersion="Original" />
  284. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_ДатаЗаказа" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ДатаЗаказа" SourceColumnNullMapping="false" SourceVersion="Original" />
  285. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_СтатусЗаказа" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="СтатусЗаказа" SourceColumnNullMapping="true" SourceVersion="Original" />
  286. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_СтатусЗаказа" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="СтатусЗаказа" SourceColumnNullMapping="false" SourceVersion="Original" />
  287. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_СпособОплаты" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="СпособОплаты" SourceColumnNullMapping="true" SourceVersion="Original" />
  288. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_СпособОплаты" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="СпособОплаты" SourceColumnNullMapping="false" SourceVersion="Original" />
  289. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Стоимость" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Стоимость" SourceColumnNullMapping="true" SourceVersion="Original" />
  290. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_Стоимость" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="Стоимость" SourceColumnNullMapping="false" SourceVersion="Original" />
  291. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Столик" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Столик" SourceColumnNullMapping="true" SourceVersion="Original" />
  292. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Столик" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Столик" SourceColumnNullMapping="false" SourceVersion="Original" />
  293. <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" />
  294. <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" />
  295. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="KazarinKafe.dbo.Orders" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  296. </Parameters>
  297. </DbCommand>
  298. </UpdateCommand>
  299. </DbSource>
  300. </MainSource>
  301. <Mappings>
  302. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  303. <Mapping SourceColumn="ДатаЗаказа" DataSetColumn="ДатаЗаказа" />
  304. <Mapping SourceColumn="СтатусЗаказа" DataSetColumn="СтатусЗаказа" />
  305. <Mapping SourceColumn="СпособОплаты" DataSetColumn="СпособОплаты" />
  306. <Mapping SourceColumn="Стоимость" DataSetColumn="Стоимость" />
  307. <Mapping SourceColumn="Столик" DataSetColumn="Столик" />
  308. <Mapping SourceColumn="IDСмены" DataSetColumn="IDСмены" />
  309. </Mappings>
  310. <Sources />
  311. </TableAdapter>
  312. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="OrderStatusTableAdapter" GeneratorDataComponentClassName="OrderStatusTableAdapter" Name="OrderStatus" UserDataComponentName="OrderStatusTableAdapter">
  313. <MainSource>
  314. <DbSource ConnectionRef="KazarinKafeConnectionString (Settings)" DbObjectName="KazarinKafe.dbo.OrderStatus" 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">
  315. <DeleteCommand>
  316. <DbCommand CommandType="Text" ModifiedByUser="false">
  317. <CommandText>DELETE FROM [dbo].[OrderStatus] WHERE (([ID] = @Original_ID) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)))</CommandText>
  318. <Parameters>
  319. <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" />
  320. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Название" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="true" SourceVersion="Original" />
  321. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Original" />
  322. </Parameters>
  323. </DbCommand>
  324. </DeleteCommand>
  325. <InsertCommand>
  326. <DbCommand CommandType="Text" ModifiedByUser="false">
  327. <CommandText>INSERT INTO [dbo].[OrderStatus] ([Название]) VALUES (@Название);
  328. SELECT ID, Название FROM OrderStatus WHERE (ID = SCOPE_IDENTITY())</CommandText>
  329. <Parameters>
  330. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Current" />
  331. </Parameters>
  332. </DbCommand>
  333. </InsertCommand>
  334. <SelectCommand>
  335. <DbCommand CommandType="Text" ModifiedByUser="false">
  336. <CommandText>SELECT ID, Название FROM dbo.OrderStatus</CommandText>
  337. <Parameters />
  338. </DbCommand>
  339. </SelectCommand>
  340. <UpdateCommand>
  341. <DbCommand CommandType="Text" ModifiedByUser="false">
  342. <CommandText>UPDATE [dbo].[OrderStatus] SET [Название] = @Название WHERE (([ID] = @Original_ID) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)));
  343. SELECT ID, Название FROM OrderStatus WHERE (ID = @ID)</CommandText>
  344. <Parameters>
  345. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Current" />
  346. <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" />
  347. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Название" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="true" SourceVersion="Original" />
  348. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Original" />
  349. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="KazarinKafe.dbo.OrderStatus" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  350. </Parameters>
  351. </DbCommand>
  352. </UpdateCommand>
  353. </DbSource>
  354. </MainSource>
  355. <Mappings>
  356. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  357. <Mapping SourceColumn="Название" DataSetColumn="Название" />
  358. </Mappings>
  359. <Sources />
  360. </TableAdapter>
  361. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PaymentMethodTableAdapter" GeneratorDataComponentClassName="PaymentMethodTableAdapter" Name="PaymentMethod" UserDataComponentName="PaymentMethodTableAdapter">
  362. <MainSource>
  363. <DbSource ConnectionRef="KazarinKafeConnectionString (Settings)" DbObjectName="KazarinKafe.dbo.PaymentMethod" 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">
  364. <DeleteCommand>
  365. <DbCommand CommandType="Text" ModifiedByUser="false">
  366. <CommandText>DELETE FROM [dbo].[PaymentMethod] WHERE (([ID] = @Original_ID) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)))</CommandText>
  367. <Parameters>
  368. <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" />
  369. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Название" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="true" SourceVersion="Original" />
  370. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Original" />
  371. </Parameters>
  372. </DbCommand>
  373. </DeleteCommand>
  374. <InsertCommand>
  375. <DbCommand CommandType="Text" ModifiedByUser="false">
  376. <CommandText>INSERT INTO [dbo].[PaymentMethod] ([Название]) VALUES (@Название);
  377. SELECT ID, Название FROM PaymentMethod WHERE (ID = SCOPE_IDENTITY())</CommandText>
  378. <Parameters>
  379. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Current" />
  380. </Parameters>
  381. </DbCommand>
  382. </InsertCommand>
  383. <SelectCommand>
  384. <DbCommand CommandType="Text" ModifiedByUser="false">
  385. <CommandText>SELECT ID, Название FROM dbo.PaymentMethod</CommandText>
  386. <Parameters />
  387. </DbCommand>
  388. </SelectCommand>
  389. <UpdateCommand>
  390. <DbCommand CommandType="Text" ModifiedByUser="false">
  391. <CommandText>UPDATE [dbo].[PaymentMethod] SET [Название] = @Название WHERE (([ID] = @Original_ID) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)));
  392. SELECT ID, Название FROM PaymentMethod WHERE (ID = @ID)</CommandText>
  393. <Parameters>
  394. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Current" />
  395. <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" />
  396. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Название" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="true" SourceVersion="Original" />
  397. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Original" />
  398. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="KazarinKafe.dbo.PaymentMethod" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  399. </Parameters>
  400. </DbCommand>
  401. </UpdateCommand>
  402. </DbSource>
  403. </MainSource>
  404. <Mappings>
  405. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  406. <Mapping SourceColumn="Название" DataSetColumn="Название" />
  407. </Mappings>
  408. <Sources />
  409. </TableAdapter>
  410. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductTableAdapter" GeneratorDataComponentClassName="ProductTableAdapter" Name="Product" UserDataComponentName="ProductTableAdapter">
  411. <MainSource>
  412. <DbSource ConnectionRef="KazarinKafeConnectionString (Settings)" DbObjectName="KazarinKafe.dbo.Product" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
  413. <DeleteCommand>
  414. <DbCommand CommandType="Text" ModifiedByUser="false">
  415. <CommandText>DELETE FROM [dbo].[Product] 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_Цена)))</CommandText>
  416. <Parameters>
  417. <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" />
  418. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Название" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="true" SourceVersion="Original" />
  419. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Original" />
  420. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Категория" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Категория" SourceColumnNullMapping="true" SourceVersion="Original" />
  421. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Категория" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Категория" SourceColumnNullMapping="false" SourceVersion="Original" />
  422. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Цена" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Цена" SourceColumnNullMapping="true" SourceVersion="Original" />
  423. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Цена" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Цена" SourceColumnNullMapping="false" SourceVersion="Original" />
  424. </Parameters>
  425. </DbCommand>
  426. </DeleteCommand>
  427. <InsertCommand>
  428. <DbCommand CommandType="Text" ModifiedByUser="false">
  429. <CommandText>INSERT INTO [dbo].[Product] ([Название], [Категория], [Описание], [Цена]) VALUES (@Название, @Категория, @Описание, @Цена);
  430. SELECT ID, Название, Категория, Описание, Цена FROM Product WHERE (ID = SCOPE_IDENTITY())</CommandText>
  431. <Parameters>
  432. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Current" />
  433. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Категория" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Категория" SourceColumnNullMapping="false" SourceVersion="Current" />
  434. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Описание" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Описание" SourceColumnNullMapping="false" SourceVersion="Current" />
  435. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Цена" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Цена" SourceColumnNullMapping="false" SourceVersion="Current" />
  436. </Parameters>
  437. </DbCommand>
  438. </InsertCommand>
  439. <SelectCommand>
  440. <DbCommand CommandType="Text" ModifiedByUser="false">
  441. <CommandText>SELECT ID, Название, Категория, Описание, Цена FROM dbo.Product</CommandText>
  442. <Parameters />
  443. </DbCommand>
  444. </SelectCommand>
  445. <UpdateCommand>
  446. <DbCommand CommandType="Text" ModifiedByUser="false">
  447. <CommandText>UPDATE [dbo].[Product] SET [Название] = @Название, [Категория] = @Категория, [Описание] = @Описание, [Цена] = @Цена 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_Цена)));
  448. SELECT ID, Название, Категория, Описание, Цена FROM Product WHERE (ID = @ID)</CommandText>
  449. <Parameters>
  450. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Current" />
  451. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Категория" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Категория" SourceColumnNullMapping="false" SourceVersion="Current" />
  452. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Описание" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Описание" SourceColumnNullMapping="false" SourceVersion="Current" />
  453. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Цена" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Цена" SourceColumnNullMapping="false" SourceVersion="Current" />
  454. <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" />
  455. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Название" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="true" SourceVersion="Original" />
  456. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Original" />
  457. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Категория" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Категория" SourceColumnNullMapping="true" SourceVersion="Original" />
  458. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Категория" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Категория" SourceColumnNullMapping="false" SourceVersion="Original" />
  459. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Цена" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Цена" SourceColumnNullMapping="true" SourceVersion="Original" />
  460. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Цена" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Цена" SourceColumnNullMapping="false" SourceVersion="Original" />
  461. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="KazarinKafe.dbo.Product" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  462. </Parameters>
  463. </DbCommand>
  464. </UpdateCommand>
  465. </DbSource>
  466. </MainSource>
  467. <Mappings>
  468. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  469. <Mapping SourceColumn="Название" DataSetColumn="Название" />
  470. <Mapping SourceColumn="Категория" DataSetColumn="Категория" />
  471. <Mapping SourceColumn="Описание" DataSetColumn="Описание" />
  472. <Mapping SourceColumn="Цена" DataSetColumn="Цена" />
  473. </Mappings>
  474. <Sources />
  475. </TableAdapter>
  476. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="RolesTableAdapter" GeneratorDataComponentClassName="RolesTableAdapter" Name="Roles" UserDataComponentName="RolesTableAdapter">
  477. <MainSource>
  478. <DbSource ConnectionRef="KazarinKafeConnectionString (Settings)" DbObjectName="KazarinKafe.dbo.Roles" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
  479. <DeleteCommand>
  480. <DbCommand CommandType="Text" ModifiedByUser="false">
  481. <CommandText>DELETE FROM [dbo].[Roles] WHERE (([ID] = @Original_ID) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)))</CommandText>
  482. <Parameters>
  483. <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" />
  484. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Название" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="true" SourceVersion="Original" />
  485. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Original" />
  486. </Parameters>
  487. </DbCommand>
  488. </DeleteCommand>
  489. <InsertCommand>
  490. <DbCommand CommandType="Text" ModifiedByUser="false">
  491. <CommandText>INSERT INTO [dbo].[Roles] ([Название]) VALUES (@Название);
  492. SELECT ID, Название FROM Roles WHERE (ID = SCOPE_IDENTITY())</CommandText>
  493. <Parameters>
  494. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Current" />
  495. </Parameters>
  496. </DbCommand>
  497. </InsertCommand>
  498. <SelectCommand>
  499. <DbCommand CommandType="Text" ModifiedByUser="false">
  500. <CommandText>SELECT ID, Название FROM dbo.Roles</CommandText>
  501. <Parameters />
  502. </DbCommand>
  503. </SelectCommand>
  504. <UpdateCommand>
  505. <DbCommand CommandType="Text" ModifiedByUser="false">
  506. <CommandText>UPDATE [dbo].[Roles] SET [Название] = @Название WHERE (([ID] = @Original_ID) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)));
  507. SELECT ID, Название FROM Roles WHERE (ID = @ID)</CommandText>
  508. <Parameters>
  509. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Current" />
  510. <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" />
  511. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Название" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="true" SourceVersion="Original" />
  512. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Original" />
  513. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="KazarinKafe.dbo.Roles" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  514. </Parameters>
  515. </DbCommand>
  516. </UpdateCommand>
  517. </DbSource>
  518. </MainSource>
  519. <Mappings>
  520. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  521. <Mapping SourceColumn="Название" DataSetColumn="Название" />
  522. </Mappings>
  523. <Sources />
  524. </TableAdapter>
  525. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TablesTableAdapter" GeneratorDataComponentClassName="TablesTableAdapter" Name="Tables" UserDataComponentName="TablesTableAdapter">
  526. <MainSource>
  527. <DbSource ConnectionRef="KazarinKafeConnectionString (Settings)" DbObjectName="KazarinKafe.dbo.Tables" 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">
  528. <DeleteCommand>
  529. <DbCommand CommandType="Text" ModifiedByUser="false">
  530. <CommandText>DELETE FROM [dbo].[Tables] WHERE (([ID] = @Original_ID) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)))</CommandText>
  531. <Parameters>
  532. <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" />
  533. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Название" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="true" SourceVersion="Original" />
  534. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Original" />
  535. </Parameters>
  536. </DbCommand>
  537. </DeleteCommand>
  538. <InsertCommand>
  539. <DbCommand CommandType="Text" ModifiedByUser="false">
  540. <CommandText>INSERT INTO [dbo].[Tables] ([Название]) VALUES (@Название);
  541. SELECT ID, Название FROM Tables WHERE (ID = SCOPE_IDENTITY())</CommandText>
  542. <Parameters>
  543. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Current" />
  544. </Parameters>
  545. </DbCommand>
  546. </InsertCommand>
  547. <SelectCommand>
  548. <DbCommand CommandType="Text" ModifiedByUser="false">
  549. <CommandText>SELECT ID, Название FROM dbo.Tables</CommandText>
  550. <Parameters />
  551. </DbCommand>
  552. </SelectCommand>
  553. <UpdateCommand>
  554. <DbCommand CommandType="Text" ModifiedByUser="false">
  555. <CommandText>UPDATE [dbo].[Tables] SET [Название] = @Название WHERE (([ID] = @Original_ID) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)));
  556. SELECT ID, Название FROM Tables WHERE (ID = @ID)</CommandText>
  557. <Parameters>
  558. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Current" />
  559. <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" />
  560. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Название" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="true" SourceVersion="Original" />
  561. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Original" />
  562. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="KazarinKafe.dbo.Tables" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  563. </Parameters>
  564. </DbCommand>
  565. </UpdateCommand>
  566. </DbSource>
  567. </MainSource>
  568. <Mappings>
  569. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  570. <Mapping SourceColumn="Название" DataSetColumn="Название" />
  571. </Mappings>
  572. <Sources />
  573. </TableAdapter>
  574. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="WaitersTableAdapter" GeneratorDataComponentClassName="WaitersTableAdapter" Name="Waiters" UserDataComponentName="WaitersTableAdapter">
  575. <MainSource>
  576. <DbSource ConnectionRef="KazarinKafeConnectionString (Settings)" DbObjectName="KazarinKafe.dbo.Waiters" 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">
  577. <DeleteCommand>
  578. <DbCommand CommandType="Text" ModifiedByUser="false">
  579. <CommandText>DELETE FROM [dbo].[Waiters] 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_Отчество)))</CommandText>
  580. <Parameters>
  581. <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" />
  582. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Фамилия" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="true" SourceVersion="Original" />
  583. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Фамилия" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="false" SourceVersion="Original" />
  584. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Имя" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="true" SourceVersion="Original" />
  585. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Имя" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="false" SourceVersion="Original" />
  586. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Отчество" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="true" SourceVersion="Original" />
  587. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Отчество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="false" SourceVersion="Original" />
  588. </Parameters>
  589. </DbCommand>
  590. </DeleteCommand>
  591. <InsertCommand>
  592. <DbCommand CommandType="Text" ModifiedByUser="false">
  593. <CommandText>INSERT INTO [dbo].[Waiters] ([IDОфицианта], [Фамилия], [Имя], [Отчество]) VALUES (@IDОфицианта, @Фамилия, @Имя, @Отчество);
  594. SELECT IDОфицианта, Фамилия, Имя, Отчество FROM Waiters WHERE (IDОфицианта = @IDОфицианта)</CommandText>
  595. <Parameters>
  596. <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" />
  597. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Фамилия" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="false" SourceVersion="Current" />
  598. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Имя" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="false" SourceVersion="Current" />
  599. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Отчество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="false" SourceVersion="Current" />
  600. </Parameters>
  601. </DbCommand>
  602. </InsertCommand>
  603. <SelectCommand>
  604. <DbCommand CommandType="Text" ModifiedByUser="false">
  605. <CommandText>SELECT IDОфицианта, Фамилия, Имя, Отчество FROM dbo.Waiters</CommandText>
  606. <Parameters />
  607. </DbCommand>
  608. </SelectCommand>
  609. <UpdateCommand>
  610. <DbCommand CommandType="Text" ModifiedByUser="false">
  611. <CommandText>UPDATE [dbo].[Waiters] SET [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_Отчество)));
  612. SELECT IDОфицианта, Фамилия, Имя, Отчество FROM Waiters WHERE (IDОфицианта = @IDОфицианта)</CommandText>
  613. <Parameters>
  614. <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" />
  615. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Фамилия" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фамилия" 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="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Отчество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="false" SourceVersion="Current" />
  618. <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" />
  619. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Фамилия" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="true" SourceVersion="Original" />
  620. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Фамилия" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="false" SourceVersion="Original" />
  621. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Имя" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="true" SourceVersion="Original" />
  622. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Имя" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="false" SourceVersion="Original" />
  623. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Отчество" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="true" SourceVersion="Original" />
  624. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Отчество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="false" SourceVersion="Original" />
  625. </Parameters>
  626. </DbCommand>
  627. </UpdateCommand>
  628. </DbSource>
  629. </MainSource>
  630. <Mappings>
  631. <Mapping SourceColumn="IDОфицианта" DataSetColumn="IDОфицианта" />
  632. <Mapping SourceColumn="Фамилия" DataSetColumn="Фамилия" />
  633. <Mapping SourceColumn="Имя" DataSetColumn="Имя" />
  634. <Mapping SourceColumn="Отчество" DataSetColumn="Отчество" />
  635. </Mappings>
  636. <Sources />
  637. </TableAdapter>
  638. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="WorkShiftTableAdapter" GeneratorDataComponentClassName="WorkShiftTableAdapter" Name="WorkShift" UserDataComponentName="WorkShiftTableAdapter">
  639. <MainSource>
  640. <DbSource ConnectionRef="KazarinKafeConnectionString (Settings)" DbObjectName="KazarinKafe.dbo.WorkShift" 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">
  641. <DeleteCommand>
  642. <DbCommand CommandType="Text" ModifiedByUser="false">
  643. <CommandText>DELETE FROM [dbo].[WorkShift] WHERE (([ID] = @Original_ID) AND ((@IsNull_IDОфицианта = 1 AND [IDОфицианта] IS NULL) OR ([IDОфицианта] = @Original_IDОфицианта)) AND ((@IsNull_IDПовара = 1 AND [IDПовара] IS NULL) OR ([IDПовара] = @Original_IDПовара)) AND ((@IsNull_ДатаСмены = 1 AND [ДатаСмены] IS NULL) OR ([ДатаСмены] = @Original_ДатаСмены)))</CommandText>
  644. <Parameters>
  645. <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" />
  646. <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" />
  647. <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" />
  648. <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" />
  649. <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" />
  650. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ДатаСмены" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ДатаСмены" SourceColumnNullMapping="true" SourceVersion="Original" />
  651. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_ДатаСмены" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="ДатаСмены" SourceColumnNullMapping="false" SourceVersion="Original" />
  652. </Parameters>
  653. </DbCommand>
  654. </DeleteCommand>
  655. <InsertCommand>
  656. <DbCommand CommandType="Text" ModifiedByUser="false">
  657. <CommandText>INSERT INTO [dbo].[WorkShift] ([IDОфицианта], [IDПовара], [ДатаСмены]) VALUES (@IDОфицианта, @IDПовара, @ДатаСмены);
  658. SELECT ID, IDОфицианта, IDПовара, ДатаСмены FROM WorkShift WHERE (ID = SCOPE_IDENTITY())</CommandText>
  659. <Parameters>
  660. <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" />
  661. <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" />
  662. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@ДатаСмены" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="ДатаСмены" SourceColumnNullMapping="false" SourceVersion="Current" />
  663. </Parameters>
  664. </DbCommand>
  665. </InsertCommand>
  666. <SelectCommand>
  667. <DbCommand CommandType="Text" ModifiedByUser="false">
  668. <CommandText>SELECT ID, IDОфицианта, IDПовара, ДатаСмены FROM dbo.WorkShift</CommandText>
  669. <Parameters />
  670. </DbCommand>
  671. </SelectCommand>
  672. <UpdateCommand>
  673. <DbCommand CommandType="Text" ModifiedByUser="false">
  674. <CommandText>UPDATE [dbo].[WorkShift] SET [IDОфицианта] = @IDОфицианта, [IDПовара] = @IDПовара, [ДатаСмены] = @ДатаСмены WHERE (([ID] = @Original_ID) AND ((@IsNull_IDОфицианта = 1 AND [IDОфицианта] IS NULL) OR ([IDОфицианта] = @Original_IDОфицианта)) AND ((@IsNull_IDПовара = 1 AND [IDПовара] IS NULL) OR ([IDПовара] = @Original_IDПовара)) AND ((@IsNull_ДатаСмены = 1 AND [ДатаСмены] IS NULL) OR ([ДатаСмены] = @Original_ДатаСмены)));
  675. SELECT ID, IDОфицианта, IDПовара, ДатаСмены FROM WorkShift WHERE (ID = @ID)</CommandText>
  676. <Parameters>
  677. <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" />
  678. <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" />
  679. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@ДатаСмены" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="ДатаСмены" SourceColumnNullMapping="false" SourceVersion="Current" />
  680. <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" />
  681. <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" />
  682. <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" />
  683. <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" />
  684. <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" />
  685. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ДатаСмены" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ДатаСмены" SourceColumnNullMapping="true" SourceVersion="Original" />
  686. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_ДатаСмены" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="ДатаСмены" SourceColumnNullMapping="false" SourceVersion="Original" />
  687. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="KazarinKafe.dbo.WorkShift" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  688. </Parameters>
  689. </DbCommand>
  690. </UpdateCommand>
  691. </DbSource>
  692. </MainSource>
  693. <Mappings>
  694. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  695. <Mapping SourceColumn="IDОфицианта" DataSetColumn="IDОфицианта" />
  696. <Mapping SourceColumn="IDПовара" DataSetColumn="IDПовара" />
  697. <Mapping SourceColumn="ДатаСмены" DataSetColumn="ДатаСмены" />
  698. </Mappings>
  699. <Sources />
  700. </TableAdapter>
  701. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="СategoriesTableAdapter" GeneratorDataComponentClassName="СategoriesTableAdapter" Name="Сategories" UserDataComponentName="СategoriesTableAdapter">
  702. <MainSource>
  703. <DbSource ConnectionRef="KazarinKafeConnectionString (Settings)" DbObjectName="KazarinKafe.dbo.Сategories" 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">
  704. <DeleteCommand>
  705. <DbCommand CommandType="Text" ModifiedByUser="false">
  706. <CommandText>DELETE FROM [dbo].[Сategories] WHERE (([ID] = @Original_ID) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)))</CommandText>
  707. <Parameters>
  708. <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" />
  709. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Название" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="true" SourceVersion="Original" />
  710. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Original" />
  711. </Parameters>
  712. </DbCommand>
  713. </DeleteCommand>
  714. <InsertCommand>
  715. <DbCommand CommandType="Text" ModifiedByUser="false">
  716. <CommandText>INSERT INTO [dbo].[Сategories] ([Название]) VALUES (@Название);
  717. SELECT ID, Название FROM Сategories WHERE (ID = SCOPE_IDENTITY())</CommandText>
  718. <Parameters>
  719. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Current" />
  720. </Parameters>
  721. </DbCommand>
  722. </InsertCommand>
  723. <SelectCommand>
  724. <DbCommand CommandType="Text" ModifiedByUser="false">
  725. <CommandText>SELECT ID, Название FROM dbo.Сategories</CommandText>
  726. <Parameters />
  727. </DbCommand>
  728. </SelectCommand>
  729. <UpdateCommand>
  730. <DbCommand CommandType="Text" ModifiedByUser="false">
  731. <CommandText>UPDATE [dbo].[Сategories] SET [Название] = @Название WHERE (([ID] = @Original_ID) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)));
  732. SELECT ID, Название FROM Сategories WHERE (ID = @ID)</CommandText>
  733. <Parameters>
  734. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Current" />
  735. <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" />
  736. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Название" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="true" SourceVersion="Original" />
  737. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Название" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Название" SourceColumnNullMapping="false" SourceVersion="Original" />
  738. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="KazarinKafe.dbo.Сategories" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  739. </Parameters>
  740. </DbCommand>
  741. </UpdateCommand>
  742. </DbSource>
  743. </MainSource>
  744. <Mappings>
  745. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  746. <Mapping SourceColumn="Название" DataSetColumn="Название" />
  747. </Mappings>
  748. <Sources />
  749. </TableAdapter>
  750. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="СменыTableAdapter" GeneratorDataComponentClassName="СменыTableAdapter" Name="Смены" UserDataComponentName="СменыTableAdapter">
  751. <MainSource>
  752. <DbSource ConnectionRef="KazarinKafeConnectionString (Settings)" DbObjectName="KazarinKafe.dbo.Смены" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
  753. <SelectCommand>
  754. <DbCommand CommandType="Text" ModifiedByUser="false">
  755. <CommandText>SELECT ДатаСмены, Повар, Официант FROM dbo.Смены</CommandText>
  756. <Parameters />
  757. </DbCommand>
  758. </SelectCommand>
  759. </DbSource>
  760. </MainSource>
  761. <Mappings>
  762. <Mapping SourceColumn="ДатаСмены" DataSetColumn="ДатаСмены" />
  763. <Mapping SourceColumn="Повар" DataSetColumn="Повар" />
  764. <Mapping SourceColumn="Официант" DataSetColumn="Официант" />
  765. </Mappings>
  766. <Sources />
  767. </TableAdapter>
  768. </Tables>
  769. <Sources />
  770. </DataSource>
  771. </xs:appinfo>
  772. </xs:annotation>
  773. <xs:element name="KazarinKafeDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="KazarinKafeDataSet" msprop:Generator_UserDSName="KazarinKafeDataSet">
  774. <xs:complexType>
  775. <xs:choice minOccurs="0" maxOccurs="unbounded">
  776. <xs:element name="Cooks" msprop:Generator_TableClassName="CooksDataTable" msprop:Generator_TableVarName="tableCooks" msprop:Generator_RowChangedName="CooksRowChanged" msprop:Generator_TablePropName="Cooks" msprop:Generator_RowDeletingName="CooksRowDeleting" msprop:Generator_RowChangingName="CooksRowChanging" msprop:Generator_RowEvHandlerName="CooksRowChangeEventHandler" msprop:Generator_RowDeletedName="CooksRowDeleted" msprop:Generator_RowClassName="CooksRow" msprop:Generator_UserTableName="Cooks" msprop:Generator_RowEvArgName="CooksRowChangeEvent">
  777. <xs:complexType>
  778. <xs:sequence>
  779. <xs:element name="IDПовара" msprop:Generator_ColumnVarNameInTable="columnIDПовара" msprop:Generator_ColumnPropNameInRow="IDПовара" msprop:Generator_ColumnPropNameInTable="IDПовараColumn" msprop:Generator_UserColumnName="IDПовара" type="xs:int" />
  780. <xs:element name="Фамилия" msprop:Generator_ColumnVarNameInTable="columnФамилия" msprop:Generator_ColumnPropNameInRow="Фамилия" msprop:Generator_ColumnPropNameInTable="ФамилияColumn" msprop:Generator_UserColumnName="Фамилия" minOccurs="0">
  781. <xs:simpleType>
  782. <xs:restriction base="xs:string">
  783. <xs:maxLength value="50" />
  784. </xs:restriction>
  785. </xs:simpleType>
  786. </xs:element>
  787. <xs:element name="Имя" msprop:Generator_ColumnVarNameInTable="columnИмя" msprop:Generator_ColumnPropNameInRow="Имя" msprop:Generator_ColumnPropNameInTable="ИмяColumn" msprop:Generator_UserColumnName="Имя" minOccurs="0">
  788. <xs:simpleType>
  789. <xs:restriction base="xs:string">
  790. <xs:maxLength value="50" />
  791. </xs:restriction>
  792. </xs:simpleType>
  793. </xs:element>
  794. <xs:element name="Отчество" msprop:Generator_ColumnVarNameInTable="columnОтчество" msprop:Generator_ColumnPropNameInRow="Отчество" msprop:Generator_ColumnPropNameInTable="ОтчествоColumn" msprop:Generator_UserColumnName="Отчество" minOccurs="0">
  795. <xs:simpleType>
  796. <xs:restriction base="xs:string">
  797. <xs:maxLength value="50" />
  798. </xs:restriction>
  799. </xs:simpleType>
  800. </xs:element>
  801. </xs:sequence>
  802. </xs:complexType>
  803. </xs:element>
  804. <xs:element name="Employees" msprop:Generator_TableClassName="EmployeesDataTable" msprop:Generator_TableVarName="tableEmployees" msprop:Generator_RowChangedName="EmployeesRowChanged" msprop:Generator_TablePropName="Employees" msprop:Generator_RowDeletingName="EmployeesRowDeleting" msprop:Generator_RowChangingName="EmployeesRowChanging" msprop:Generator_RowEvHandlerName="EmployeesRowChangeEventHandler" msprop:Generator_RowDeletedName="EmployeesRowDeleted" msprop:Generator_RowClassName="EmployeesRow" msprop:Generator_UserTableName="Employees" msprop:Generator_RowEvArgName="EmployeesRowChangeEvent">
  805. <xs:complexType>
  806. <xs:sequence>
  807. <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="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  808. <xs:element name="Роль" msprop:Generator_ColumnVarNameInTable="columnРоль" msprop:Generator_ColumnPropNameInRow="Роль" msprop:Generator_ColumnPropNameInTable="РольColumn" msprop:Generator_UserColumnName="Роль" type="xs:int" minOccurs="0" />
  809. <xs:element name="ДатаРождения" msprop:Generator_ColumnVarNameInTable="columnДатаРождения" msprop:Generator_ColumnPropNameInRow="ДатаРождения" msprop:Generator_ColumnPropNameInTable="ДатаРожденияColumn" msprop:Generator_UserColumnName="ДатаРождения" type="xs:dateTime" minOccurs="0" />
  810. <xs:element name="Телефон" msprop:Generator_ColumnVarNameInTable="columnТелефон" msprop:Generator_ColumnPropNameInRow="Телефон" msprop:Generator_ColumnPropNameInTable="ТелефонColumn" msprop:Generator_UserColumnName="Телефон" minOccurs="0">
  811. <xs:simpleType>
  812. <xs:restriction base="xs:string">
  813. <xs:maxLength value="20" />
  814. </xs:restriction>
  815. </xs:simpleType>
  816. </xs:element>
  817. <xs:element name="Адрес" msprop:Generator_ColumnVarNameInTable="columnАдрес" msprop:Generator_ColumnPropNameInRow="Адрес" msprop:Generator_ColumnPropNameInTable="АдресColumn" msprop:Generator_UserColumnName="Адрес" minOccurs="0">
  818. <xs:simpleType>
  819. <xs:restriction base="xs:string">
  820. <xs:maxLength value="100" />
  821. </xs:restriction>
  822. </xs:simpleType>
  823. </xs:element>
  824. <xs:element name="Username" msprop:Generator_ColumnVarNameInTable="columnUsername" msprop:Generator_ColumnPropNameInRow="Username" msprop:Generator_ColumnPropNameInTable="UsernameColumn" msprop:Generator_UserColumnName="Username" minOccurs="0">
  825. <xs:simpleType>
  826. <xs:restriction base="xs:string">
  827. <xs:maxLength value="50" />
  828. </xs:restriction>
  829. </xs:simpleType>
  830. </xs:element>
  831. <xs:element name="Password" msprop:Generator_ColumnVarNameInTable="columnPassword" msprop:Generator_ColumnPropNameInRow="Password" msprop:Generator_ColumnPropNameInTable="PasswordColumn" msprop:Generator_UserColumnName="Password" minOccurs="0">
  832. <xs:simpleType>
  833. <xs:restriction base="xs:string">
  834. <xs:maxLength value="50" />
  835. </xs:restriction>
  836. </xs:simpleType>
  837. </xs:element>
  838. <xs:element name="Статус" msprop:Generator_ColumnVarNameInTable="columnСтатус" msprop:Generator_ColumnPropNameInRow="Статус" msprop:Generator_ColumnPropNameInTable="СтатусColumn" msprop:Generator_UserColumnName="Статус" type="xs:int" minOccurs="0" />
  839. </xs:sequence>
  840. </xs:complexType>
  841. </xs:element>
  842. <xs:element name="OrderedDishes" msprop:Generator_TableClassName="OrderedDishesDataTable" msprop:Generator_TableVarName="tableOrderedDishes" msprop:Generator_RowChangedName="OrderedDishesRowChanged" msprop:Generator_TablePropName="OrderedDishes" msprop:Generator_RowDeletingName="OrderedDishesRowDeleting" msprop:Generator_RowChangingName="OrderedDishesRowChanging" msprop:Generator_RowEvHandlerName="OrderedDishesRowChangeEventHandler" msprop:Generator_RowDeletedName="OrderedDishesRowDeleted" msprop:Generator_RowClassName="OrderedDishesRow" msprop:Generator_UserTableName="OrderedDishes" msprop:Generator_RowEvArgName="OrderedDishesRowChangeEvent">
  843. <xs:complexType>
  844. <xs:sequence>
  845. <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="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  846. <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" />
  847. <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" />
  848. <xs:element name="Количество" msprop:Generator_ColumnVarNameInTable="columnКоличество" msprop:Generator_ColumnPropNameInRow="Количество" msprop:Generator_ColumnPropNameInTable="КоличествоColumn" msprop:Generator_UserColumnName="Количество" type="xs:int" minOccurs="0" />
  849. </xs:sequence>
  850. </xs:complexType>
  851. </xs:element>
  852. <xs:element name="Orders" msprop:Generator_TableClassName="OrdersDataTable" msprop:Generator_TableVarName="tableOrders" msprop:Generator_RowChangedName="OrdersRowChanged" msprop:Generator_TablePropName="Orders" msprop:Generator_RowDeletingName="OrdersRowDeleting" msprop:Generator_RowChangingName="OrdersRowChanging" msprop:Generator_RowEvHandlerName="OrdersRowChangeEventHandler" msprop:Generator_RowDeletedName="OrdersRowDeleted" msprop:Generator_RowClassName="OrdersRow" msprop:Generator_UserTableName="Orders" msprop:Generator_RowEvArgName="OrdersRowChangeEvent">
  853. <xs:complexType>
  854. <xs:sequence>
  855. <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="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  856. <xs:element name="ДатаЗаказа" msprop:Generator_ColumnVarNameInTable="columnДатаЗаказа" msprop:Generator_ColumnPropNameInRow="ДатаЗаказа" msprop:Generator_ColumnPropNameInTable="ДатаЗаказаColumn" msprop:Generator_UserColumnName="ДатаЗаказа" type="xs:dateTime" minOccurs="0" />
  857. <xs:element name="СтатусЗаказа" msprop:Generator_ColumnVarNameInTable="columnСтатусЗаказа" msprop:Generator_ColumnPropNameInRow="СтатусЗаказа" msprop:Generator_ColumnPropNameInTable="СтатусЗаказаColumn" msprop:Generator_UserColumnName="СтатусЗаказа" type="xs:int" minOccurs="0" />
  858. <xs:element name="СпособОплаты" msprop:Generator_ColumnVarNameInTable="columnСпособОплаты" msprop:Generator_ColumnPropNameInRow="СпособОплаты" msprop:Generator_ColumnPropNameInTable="СпособОплатыColumn" msprop:Generator_UserColumnName="СпособОплаты" type="xs:int" minOccurs="0" />
  859. <xs:element name="Стоимость" msprop:Generator_ColumnVarNameInTable="columnСтоимость" msprop:Generator_ColumnPropNameInRow="Стоимость" msprop:Generator_ColumnPropNameInTable="СтоимостьColumn" msprop:Generator_UserColumnName="Стоимость" type="xs:decimal" minOccurs="0" />
  860. <xs:element name="Столик" msprop:Generator_ColumnVarNameInTable="columnСтолик" msprop:Generator_ColumnPropNameInRow="Столик" msprop:Generator_ColumnPropNameInTable="СтоликColumn" msprop:Generator_UserColumnName="Столик" type="xs:int" minOccurs="0" />
  861. <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" />
  862. </xs:sequence>
  863. </xs:complexType>
  864. </xs:element>
  865. <xs:element name="OrderStatus" msprop:Generator_TableClassName="OrderStatusDataTable" msprop:Generator_TableVarName="tableOrderStatus" msprop:Generator_RowChangedName="OrderStatusRowChanged" msprop:Generator_TablePropName="OrderStatus" msprop:Generator_RowDeletingName="OrderStatusRowDeleting" msprop:Generator_RowChangingName="OrderStatusRowChanging" msprop:Generator_RowEvHandlerName="OrderStatusRowChangeEventHandler" msprop:Generator_RowDeletedName="OrderStatusRowDeleted" msprop:Generator_RowClassName="OrderStatusRow" msprop:Generator_UserTableName="OrderStatus" msprop:Generator_RowEvArgName="OrderStatusRowChangeEvent">
  866. <xs:complexType>
  867. <xs:sequence>
  868. <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="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  869. <xs:element name="Название" msprop:Generator_ColumnVarNameInTable="columnНазвание" msprop:Generator_ColumnPropNameInRow="Название" msprop:Generator_ColumnPropNameInTable="НазваниеColumn" msprop:Generator_UserColumnName="Название" minOccurs="0">
  870. <xs:simpleType>
  871. <xs:restriction base="xs:string">
  872. <xs:maxLength value="50" />
  873. </xs:restriction>
  874. </xs:simpleType>
  875. </xs:element>
  876. </xs:sequence>
  877. </xs:complexType>
  878. </xs:element>
  879. <xs:element name="PaymentMethod" msprop:Generator_TableClassName="PaymentMethodDataTable" msprop:Generator_TableVarName="tablePaymentMethod" msprop:Generator_RowChangedName="PaymentMethodRowChanged" msprop:Generator_TablePropName="PaymentMethod" msprop:Generator_RowDeletingName="PaymentMethodRowDeleting" msprop:Generator_RowChangingName="PaymentMethodRowChanging" msprop:Generator_RowEvHandlerName="PaymentMethodRowChangeEventHandler" msprop:Generator_RowDeletedName="PaymentMethodRowDeleted" msprop:Generator_RowClassName="PaymentMethodRow" msprop:Generator_UserTableName="PaymentMethod" msprop:Generator_RowEvArgName="PaymentMethodRowChangeEvent">
  880. <xs:complexType>
  881. <xs:sequence>
  882. <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="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  883. <xs:element name="Название" msprop:Generator_ColumnVarNameInTable="columnНазвание" msprop:Generator_ColumnPropNameInRow="Название" msprop:Generator_ColumnPropNameInTable="НазваниеColumn" msprop:Generator_UserColumnName="Название" minOccurs="0">
  884. <xs:simpleType>
  885. <xs:restriction base="xs:string">
  886. <xs:maxLength value="50" />
  887. </xs:restriction>
  888. </xs:simpleType>
  889. </xs:element>
  890. </xs:sequence>
  891. </xs:complexType>
  892. </xs:element>
  893. <xs:element name="Product" msprop:Generator_TableClassName="ProductDataTable" msprop:Generator_TableVarName="tableProduct" msprop:Generator_RowChangedName="ProductRowChanged" msprop:Generator_TablePropName="Product" msprop:Generator_RowDeletingName="ProductRowDeleting" msprop:Generator_RowChangingName="ProductRowChanging" msprop:Generator_RowEvHandlerName="ProductRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductRowDeleted" msprop:Generator_RowClassName="ProductRow" msprop:Generator_UserTableName="Product" msprop:Generator_RowEvArgName="ProductRowChangeEvent">
  894. <xs:complexType>
  895. <xs:sequence>
  896. <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="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  897. <xs:element name="Название" msprop:Generator_ColumnVarNameInTable="columnНазвание" msprop:Generator_ColumnPropNameInRow="Название" msprop:Generator_ColumnPropNameInTable="НазваниеColumn" msprop:Generator_UserColumnName="Название" minOccurs="0">
  898. <xs:simpleType>
  899. <xs:restriction base="xs:string">
  900. <xs:maxLength value="50" />
  901. </xs:restriction>
  902. </xs:simpleType>
  903. </xs:element>
  904. <xs:element name="Категория" msprop:Generator_ColumnVarNameInTable="columnКатегория" msprop:Generator_ColumnPropNameInRow="Категория" msprop:Generator_ColumnPropNameInTable="КатегорияColumn" msprop:Generator_UserColumnName="Категория" type="xs:int" minOccurs="0" />
  905. <xs:element name="Описание" msprop:Generator_ColumnVarNameInTable="columnОписание" msprop:Generator_ColumnPropNameInRow="Описание" msprop:Generator_ColumnPropNameInTable="ОписаниеColumn" msprop:Generator_UserColumnName="Описание" minOccurs="0">
  906. <xs:simpleType>
  907. <xs:restriction base="xs:string">
  908. <xs:maxLength value="2147483647" />
  909. </xs:restriction>
  910. </xs:simpleType>
  911. </xs:element>
  912. <xs:element name="Цена" msprop:Generator_ColumnVarNameInTable="columnЦена" msprop:Generator_ColumnPropNameInRow="Цена" msprop:Generator_ColumnPropNameInTable="ЦенаColumn" msprop:Generator_UserColumnName="Цена" minOccurs="0">
  913. <xs:simpleType>
  914. <xs:restriction base="xs:string">
  915. <xs:maxLength value="100" />
  916. </xs:restriction>
  917. </xs:simpleType>
  918. </xs:element>
  919. </xs:sequence>
  920. </xs:complexType>
  921. </xs:element>
  922. <xs:element name="Roles" msprop:Generator_TableClassName="RolesDataTable" msprop:Generator_TableVarName="tableRoles" msprop:Generator_RowChangedName="RolesRowChanged" msprop:Generator_TablePropName="Roles" msprop:Generator_RowDeletingName="RolesRowDeleting" msprop:Generator_RowChangingName="RolesRowChanging" msprop:Generator_RowEvHandlerName="RolesRowChangeEventHandler" msprop:Generator_RowDeletedName="RolesRowDeleted" msprop:Generator_RowClassName="RolesRow" msprop:Generator_UserTableName="Roles" msprop:Generator_RowEvArgName="RolesRowChangeEvent">
  923. <xs:complexType>
  924. <xs:sequence>
  925. <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="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  926. <xs:element name="Название" msprop:Generator_ColumnVarNameInTable="columnНазвание" msprop:Generator_ColumnPropNameInRow="Название" msprop:Generator_ColumnPropNameInTable="НазваниеColumn" msprop:Generator_UserColumnName="Название" minOccurs="0">
  927. <xs:simpleType>
  928. <xs:restriction base="xs:string">
  929. <xs:maxLength value="50" />
  930. </xs:restriction>
  931. </xs:simpleType>
  932. </xs:element>
  933. </xs:sequence>
  934. </xs:complexType>
  935. </xs:element>
  936. <xs:element name="Tables" msprop:Generator_TableClassName="TablesDataTable" msprop:Generator_TableVarName="tableTables" msprop:Generator_RowChangedName="TablesRowChanged" msprop:Generator_TablePropName="_Tables" msprop:Generator_RowDeletingName="TablesRowDeleting" msprop:Generator_RowChangingName="TablesRowChanging" msprop:Generator_RowEvHandlerName="TablesRowChangeEventHandler" msprop:Generator_RowDeletedName="TablesRowDeleted" msprop:Generator_RowClassName="TablesRow" msprop:Generator_UserTableName="Tables" msprop:Generator_RowEvArgName="TablesRowChangeEvent">
  937. <xs:complexType>
  938. <xs:sequence>
  939. <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="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  940. <xs:element name="Название" msprop:Generator_ColumnVarNameInTable="columnНазвание" msprop:Generator_ColumnPropNameInRow="Название" msprop:Generator_ColumnPropNameInTable="НазваниеColumn" msprop:Generator_UserColumnName="Название" minOccurs="0">
  941. <xs:simpleType>
  942. <xs:restriction base="xs:string">
  943. <xs:maxLength value="50" />
  944. </xs:restriction>
  945. </xs:simpleType>
  946. </xs:element>
  947. </xs:sequence>
  948. </xs:complexType>
  949. </xs:element>
  950. <xs:element name="Waiters" msprop:Generator_TableClassName="WaitersDataTable" msprop:Generator_TableVarName="tableWaiters" msprop:Generator_RowChangedName="WaitersRowChanged" msprop:Generator_TablePropName="Waiters" msprop:Generator_RowDeletingName="WaitersRowDeleting" msprop:Generator_RowChangingName="WaitersRowChanging" msprop:Generator_RowEvHandlerName="WaitersRowChangeEventHandler" msprop:Generator_RowDeletedName="WaitersRowDeleted" msprop:Generator_RowClassName="WaitersRow" msprop:Generator_UserTableName="Waiters" msprop:Generator_RowEvArgName="WaitersRowChangeEvent">
  951. <xs:complexType>
  952. <xs:sequence>
  953. <xs:element name="IDОфицианта" msprop:Generator_ColumnVarNameInTable="columnIDОфицианта" msprop:Generator_ColumnPropNameInRow="IDОфицианта" msprop:Generator_ColumnPropNameInTable="IDОфициантаColumn" msprop:Generator_UserColumnName="IDОфицианта" type="xs:int" />
  954. <xs:element name="Фамилия" msprop:Generator_ColumnVarNameInTable="columnФамилия" msprop:Generator_ColumnPropNameInRow="Фамилия" msprop:Generator_ColumnPropNameInTable="ФамилияColumn" msprop:Generator_UserColumnName="Фамилия" minOccurs="0">
  955. <xs:simpleType>
  956. <xs:restriction base="xs:string">
  957. <xs:maxLength value="50" />
  958. </xs:restriction>
  959. </xs:simpleType>
  960. </xs:element>
  961. <xs:element name="Имя" msprop:Generator_ColumnVarNameInTable="columnИмя" msprop:Generator_ColumnPropNameInRow="Имя" msprop:Generator_ColumnPropNameInTable="ИмяColumn" msprop:Generator_UserColumnName="Имя" minOccurs="0">
  962. <xs:simpleType>
  963. <xs:restriction base="xs:string">
  964. <xs:maxLength value="50" />
  965. </xs:restriction>
  966. </xs:simpleType>
  967. </xs:element>
  968. <xs:element name="Отчество" msprop:Generator_ColumnVarNameInTable="columnОтчество" msprop:Generator_ColumnPropNameInRow="Отчество" msprop:Generator_ColumnPropNameInTable="ОтчествоColumn" msprop:Generator_UserColumnName="Отчество" minOccurs="0">
  969. <xs:simpleType>
  970. <xs:restriction base="xs:string">
  971. <xs:maxLength value="50" />
  972. </xs:restriction>
  973. </xs:simpleType>
  974. </xs:element>
  975. </xs:sequence>
  976. </xs:complexType>
  977. </xs:element>
  978. <xs:element name="WorkShift" msprop:Generator_TableClassName="WorkShiftDataTable" msprop:Generator_TableVarName="tableWorkShift" msprop:Generator_RowChangedName="WorkShiftRowChanged" msprop:Generator_TablePropName="WorkShift" msprop:Generator_RowDeletingName="WorkShiftRowDeleting" msprop:Generator_RowChangingName="WorkShiftRowChanging" msprop:Generator_RowEvHandlerName="WorkShiftRowChangeEventHandler" msprop:Generator_RowDeletedName="WorkShiftRowDeleted" msprop:Generator_RowClassName="WorkShiftRow" msprop:Generator_UserTableName="WorkShift" msprop:Generator_RowEvArgName="WorkShiftRowChangeEvent">
  979. <xs:complexType>
  980. <xs:sequence>
  981. <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="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  982. <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" />
  983. <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" />
  984. <xs:element name="ДатаСмены" msprop:Generator_ColumnVarNameInTable="columnДатаСмены" msprop:Generator_ColumnPropNameInRow="ДатаСмены" msprop:Generator_ColumnPropNameInTable="ДатаСменыColumn" msprop:Generator_UserColumnName="ДатаСмены" type="xs:dateTime" minOccurs="0" />
  985. </xs:sequence>
  986. </xs:complexType>
  987. </xs:element>
  988. <xs:element name="Сategories" msprop:Generator_TableClassName="СategoriesDataTable" msprop:Generator_TableVarName="tableСategories" msprop:Generator_RowChangedName="СategoriesRowChanged" msprop:Generator_TablePropName="Сategories" msprop:Generator_RowDeletingName="СategoriesRowDeleting" msprop:Generator_RowChangingName="СategoriesRowChanging" msprop:Generator_RowEvHandlerName="СategoriesRowChangeEventHandler" msprop:Generator_RowDeletedName="СategoriesRowDeleted" msprop:Generator_RowClassName="СategoriesRow" msprop:Generator_UserTableName="Сategories" msprop:Generator_RowEvArgName="СategoriesRowChangeEvent">
  989. <xs:complexType>
  990. <xs:sequence>
  991. <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="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  992. <xs:element name="Название" msprop:Generator_ColumnVarNameInTable="columnНазвание" msprop:Generator_ColumnPropNameInRow="Название" msprop:Generator_ColumnPropNameInTable="НазваниеColumn" msprop:Generator_UserColumnName="Название" minOccurs="0">
  993. <xs:simpleType>
  994. <xs:restriction base="xs:string">
  995. <xs:maxLength value="50" />
  996. </xs:restriction>
  997. </xs:simpleType>
  998. </xs:element>
  999. </xs:sequence>
  1000. </xs:complexType>
  1001. </xs:element>
  1002. <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">
  1003. <xs:complexType>
  1004. <xs:sequence>
  1005. <xs:element name="ДатаСмены" msprop:Generator_ColumnVarNameInTable="columnДатаСмены" msprop:Generator_ColumnPropNameInRow="ДатаСмены" msprop:Generator_ColumnPropNameInTable="ДатаСменыColumn" msprop:Generator_UserColumnName="ДатаСмены" type="xs:dateTime" minOccurs="0" />
  1006. <xs:element name="Повар" msprop:Generator_ColumnVarNameInTable="columnПовар" msprop:Generator_ColumnPropNameInRow="Повар" msprop:Generator_ColumnPropNameInTable="ПоварColumn" msprop:Generator_UserColumnName="Повар" minOccurs="0">
  1007. <xs:simpleType>
  1008. <xs:restriction base="xs:string">
  1009. <xs:maxLength value="50" />
  1010. </xs:restriction>
  1011. </xs:simpleType>
  1012. </xs:element>
  1013. <xs:element name="Официант" msprop:Generator_ColumnVarNameInTable="columnОфициант" msprop:Generator_ColumnPropNameInRow="Официант" msprop:Generator_ColumnPropNameInTable="ОфициантColumn" msprop:Generator_UserColumnName="Официант" minOccurs="0">
  1014. <xs:simpleType>
  1015. <xs:restriction base="xs:string">
  1016. <xs:maxLength value="50" />
  1017. </xs:restriction>
  1018. </xs:simpleType>
  1019. </xs:element>
  1020. </xs:sequence>
  1021. </xs:complexType>
  1022. </xs:element>
  1023. </xs:choice>
  1024. </xs:complexType>
  1025. <xs:unique name="Constraint1" msdata:PrimaryKey="true">
  1026. <xs:selector xpath=".//mstns:Cooks" />
  1027. <xs:field xpath="mstns:IDПовара" />
  1028. </xs:unique>
  1029. <xs:unique name="Employees_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1030. <xs:selector xpath=".//mstns:Employees" />
  1031. <xs:field xpath="mstns:ID" />
  1032. </xs:unique>
  1033. <xs:unique name="OrderedDishes_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1034. <xs:selector xpath=".//mstns:OrderedDishes" />
  1035. <xs:field xpath="mstns:ID" />
  1036. </xs:unique>
  1037. <xs:unique name="Orders_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1038. <xs:selector xpath=".//mstns:Orders" />
  1039. <xs:field xpath="mstns:ID" />
  1040. </xs:unique>
  1041. <xs:unique name="OrderStatus_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1042. <xs:selector xpath=".//mstns:OrderStatus" />
  1043. <xs:field xpath="mstns:ID" />
  1044. </xs:unique>
  1045. <xs:unique name="PaymentMethod_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1046. <xs:selector xpath=".//mstns:PaymentMethod" />
  1047. <xs:field xpath="mstns:ID" />
  1048. </xs:unique>
  1049. <xs:unique name="Product_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1050. <xs:selector xpath=".//mstns:Product" />
  1051. <xs:field xpath="mstns:ID" />
  1052. </xs:unique>
  1053. <xs:unique name="Roles_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1054. <xs:selector xpath=".//mstns:Roles" />
  1055. <xs:field xpath="mstns:ID" />
  1056. </xs:unique>
  1057. <xs:unique name="Tables_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1058. <xs:selector xpath=".//mstns:Tables" />
  1059. <xs:field xpath="mstns:ID" />
  1060. </xs:unique>
  1061. <xs:unique name="Waiters_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1062. <xs:selector xpath=".//mstns:Waiters" />
  1063. <xs:field xpath="mstns:IDОфицианта" />
  1064. </xs:unique>
  1065. <xs:unique name="WorkShift_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1066. <xs:selector xpath=".//mstns:WorkShift" />
  1067. <xs:field xpath="mstns:ID" />
  1068. </xs:unique>
  1069. <xs:unique name="Сategories_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1070. <xs:selector xpath=".//mstns:Сategories" />
  1071. <xs:field xpath="mstns:ID" />
  1072. </xs:unique>
  1073. </xs:element>
  1074. <xs:annotation>
  1075. <xs:appinfo>
  1076. <msdata:Relationship name="FK_Cooks_Employees1" msdata:parent="Employees" msdata:child="Cooks" msdata:parentkey="ID" msdata:childkey="IDПовара" msprop:Generator_UserChildTable="Cooks" msprop:Generator_ChildPropName="GetCooksRows" msprop:Generator_UserRelationName="FK_Cooks_Employees1" msprop:Generator_ParentPropName="EmployeesRow" msprop:Generator_RelationVarName="relationFK_Cooks_Employees1" msprop:Generator_UserParentTable="Employees" />
  1077. <msdata:Relationship name="FK_Employees_Roles" msdata:parent="Roles" msdata:child="Employees" msdata:parentkey="ID" msdata:childkey="Роль" msprop:Generator_UserChildTable="Employees" msprop:Generator_ChildPropName="GetEmployeesRows" msprop:Generator_UserRelationName="FK_Employees_Roles" msprop:Generator_ParentPropName="RolesRow" msprop:Generator_RelationVarName="relationFK_Employees_Roles" msprop:Generator_UserParentTable="Roles" />
  1078. <msdata:Relationship name="FK_OrderedDishes_Orders" msdata:parent="Orders" msdata:child="OrderedDishes" msdata:parentkey="ID" msdata:childkey="IDЗаказа" msprop:Generator_UserChildTable="OrderedDishes" msprop:Generator_ChildPropName="GetOrderedDishesRows" msprop:Generator_UserRelationName="FK_OrderedDishes_Orders" msprop:Generator_ParentPropName="OrdersRow" msprop:Generator_RelationVarName="relationFK_OrderedDishes_Orders" msprop:Generator_UserParentTable="Orders" />
  1079. <msdata:Relationship name="FK_OrderedDishes_Product" msdata:parent="Product" msdata:child="OrderedDishes" msdata:parentkey="ID" msdata:childkey="IDПродукт" msprop:Generator_UserChildTable="OrderedDishes" msprop:Generator_ChildPropName="GetOrderedDishesRows" msprop:Generator_UserRelationName="FK_OrderedDishes_Product" msprop:Generator_ParentPropName="ProductRow" msprop:Generator_RelationVarName="relationFK_OrderedDishes_Product" msprop:Generator_UserParentTable="Product" />
  1080. <msdata:Relationship name="FK_Orders_OrderStatus" msdata:parent="OrderStatus" msdata:child="Orders" msdata:parentkey="ID" msdata:childkey="СтатусЗаказа" msprop:Generator_UserChildTable="Orders" msprop:Generator_ChildPropName="GetOrdersRows" msprop:Generator_UserRelationName="FK_Orders_OrderStatus" msprop:Generator_ParentPropName="OrderStatusRow" msprop:Generator_RelationVarName="relationFK_Orders_OrderStatus" msprop:Generator_UserParentTable="OrderStatus" />
  1081. <msdata:Relationship name="FK_Orders_PaymentMethod" msdata:parent="PaymentMethod" msdata:child="Orders" msdata:parentkey="ID" msdata:childkey="СпособОплаты" msprop:Generator_UserChildTable="Orders" msprop:Generator_ChildPropName="GetOrdersRows" msprop:Generator_UserRelationName="FK_Orders_PaymentMethod" msprop:Generator_ParentPropName="PaymentMethodRow" msprop:Generator_RelationVarName="relationFK_Orders_PaymentMethod" msprop:Generator_UserParentTable="PaymentMethod" />
  1082. <msdata:Relationship name="FK_Orders_Tables" msdata:parent="Tables" msdata:child="Orders" msdata:parentkey="ID" msdata:childkey="Столик" msprop:Generator_UserChildTable="Orders" msprop:Generator_ChildPropName="GetOrdersRows" msprop:Generator_UserRelationName="FK_Orders_Tables" msprop:Generator_ParentPropName="TablesRow" msprop:Generator_RelationVarName="relationFK_Orders_Tables" msprop:Generator_UserParentTable="Tables" />
  1083. <msdata:Relationship name="FK_Orders_WorkShift" msdata:parent="WorkShift" msdata:child="Orders" msdata:parentkey="ID" msdata:childkey="IDСмены" msprop:Generator_UserChildTable="Orders" msprop:Generator_ChildPropName="GetOrdersRows" msprop:Generator_UserRelationName="FK_Orders_WorkShift" msprop:Generator_ParentPropName="WorkShiftRow" msprop:Generator_RelationVarName="relationFK_Orders_WorkShift" msprop:Generator_UserParentTable="WorkShift" />
  1084. <msdata:Relationship name="FK_Product_Сategories" msdata:parent="Сategories" msdata:child="Product" msdata:parentkey="ID" msdata:childkey="Категория" msprop:Generator_UserChildTable="Product" msprop:Generator_ChildPropName="GetProductRows" msprop:Generator_UserRelationName="FK_Product_Сategories" msprop:Generator_ParentPropName="СategoriesRow" msprop:Generator_RelationVarName="relationFK_Product_Сategories" msprop:Generator_UserParentTable="Сategories" />
  1085. <msdata:Relationship name="FK_Waiters_Employees1" msdata:parent="Employees" msdata:child="Waiters" msdata:parentkey="ID" msdata:childkey="IDОфицианта" msprop:Generator_UserChildTable="Waiters" msprop:Generator_ChildPropName="GetWaitersRows" msprop:Generator_UserRelationName="FK_Waiters_Employees1" msprop:Generator_RelationVarName="relationFK_Waiters_Employees1" msprop:Generator_UserParentTable="Employees" msprop:Generator_ParentPropName="EmployeesRow" />
  1086. <msdata:Relationship name="FK_WorkShift_Cooks" msdata:parent="Cooks" msdata:child="WorkShift" msdata:parentkey="IDПовара" msdata:childkey="IDПовара" msprop:Generator_UserChildTable="WorkShift" msprop:Generator_ChildPropName="GetWorkShiftRows" msprop:Generator_UserRelationName="FK_WorkShift_Cooks" msprop:Generator_RelationVarName="relationFK_WorkShift_Cooks" msprop:Generator_UserParentTable="Cooks" msprop:Generator_ParentPropName="CooksRow" />
  1087. <msdata:Relationship name="FK_WorkShift_Waiters" msdata:parent="Waiters" msdata:child="WorkShift" msdata:parentkey="IDОфицианта" msdata:childkey="IDОфицианта" msprop:Generator_UserChildTable="WorkShift" msprop:Generator_ChildPropName="GetWorkShiftRows" msprop:Generator_UserRelationName="FK_WorkShift_Waiters" msprop:Generator_RelationVarName="relationFK_WorkShift_Waiters" msprop:Generator_UserParentTable="Waiters" msprop:Generator_ParentPropName="WaitersRow" />
  1088. </xs:appinfo>
  1089. </xs:annotation>
  1090. </xs:schema>