BarhotnieBrovkiDataSet.xsd 198 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="BarhotnieBrovkiDataSet" targetNamespace="http://tempuri.org/BarhotnieBrovkiDataSet.xsd" xmlns:mstns="http://tempuri.org/BarhotnieBrovkiDataSet.xsd" xmlns="http://tempuri.org/BarhotnieBrovkiDataSet.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="BarhotnieBrovkiConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="BarhotnieBrovkiConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Yslugi_Salona_Krasot.Properties.Settings.GlobalReference.Default.BarhotnieBrovkiConnectionString" Provider="System.Data.SqlClient" />
  8. </Connections>
  9. <Tables>
  10. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AttachedProductTableAdapter" GeneratorDataComponentClassName="AttachedProductTableAdapter" Name="AttachedProduct" UserDataComponentName="AttachedProductTableAdapter">
  11. <MainSource>
  12. <DbSource ConnectionRef="BarhotnieBrovkiConnectionString (Settings)" DbObjectName="BarhotnieBrovki.dbo.AttachedProduct" 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].[AttachedProduct] WHERE (([MainProductID] = @Original_MainProductID) AND ([AttachedProductID] = @Original_AttachedProductID))</CommandText>
  16. <Parameters>
  17. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MainProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MainProductID" SourceColumnNullMapping="false" SourceVersion="Original" />
  18. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AttachedProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AttachedProductID" SourceColumnNullMapping="false" SourceVersion="Original" />
  19. </Parameters>
  20. </DbCommand>
  21. </DeleteCommand>
  22. <InsertCommand>
  23. <DbCommand CommandType="Text" ModifiedByUser="false">
  24. <CommandText>INSERT INTO [dbo].[AttachedProduct] ([MainProductID], [AttachedProductID]) VALUES (@MainProductID, @AttachedProductID);
  25. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)</CommandText>
  26. <Parameters>
  27. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MainProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MainProductID" SourceColumnNullMapping="false" SourceVersion="Current" />
  28. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AttachedProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AttachedProductID" SourceColumnNullMapping="false" SourceVersion="Current" />
  29. </Parameters>
  30. </DbCommand>
  31. </InsertCommand>
  32. <SelectCommand>
  33. <DbCommand CommandType="Text" ModifiedByUser="false">
  34. <CommandText>SELECT MainProductID, AttachedProductID FROM dbo.AttachedProduct</CommandText>
  35. <Parameters />
  36. </DbCommand>
  37. </SelectCommand>
  38. <UpdateCommand>
  39. <DbCommand CommandType="Text" ModifiedByUser="false">
  40. <CommandText>UPDATE [dbo].[AttachedProduct] SET [MainProductID] = @MainProductID, [AttachedProductID] = @AttachedProductID WHERE (([MainProductID] = @Original_MainProductID) AND ([AttachedProductID] = @Original_AttachedProductID));
  41. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)</CommandText>
  42. <Parameters>
  43. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MainProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MainProductID" SourceColumnNullMapping="false" SourceVersion="Current" />
  44. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AttachedProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AttachedProductID" SourceColumnNullMapping="false" SourceVersion="Current" />
  45. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MainProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MainProductID" SourceColumnNullMapping="false" SourceVersion="Original" />
  46. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AttachedProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AttachedProductID" SourceColumnNullMapping="false" SourceVersion="Original" />
  47. </Parameters>
  48. </DbCommand>
  49. </UpdateCommand>
  50. </DbSource>
  51. </MainSource>
  52. <Mappings>
  53. <Mapping SourceColumn="MainProductID" DataSetColumn="MainProductID" />
  54. <Mapping SourceColumn="AttachedProductID" DataSetColumn="AttachedProductID" />
  55. </Mappings>
  56. <Sources />
  57. </TableAdapter>
  58. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ClientTableAdapter" GeneratorDataComponentClassName="ClientTableAdapter" Name="Client" UserDataComponentName="ClientTableAdapter">
  59. <MainSource>
  60. <DbSource ConnectionRef="BarhotnieBrovkiConnectionString (Settings)" DbObjectName="BarhotnieBrovki.dbo.Client" 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">
  61. <DeleteCommand>
  62. <DbCommand CommandType="Text" ModifiedByUser="false">
  63. <CommandText>DELETE FROM [dbo].[Client] WHERE (([ID] = @Original_ID) AND ([FirstName] = @Original_FirstName) AND ([LastName] = @Original_LastName) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Birthday = 1 AND [Birthday] IS NULL) OR ([Birthday] = @Original_Birthday)) AND ([RegistrationDate] = @Original_RegistrationDate) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ([Phone] = @Original_Phone) AND ([GenderCode] = @Original_GenderCode) AND ((@IsNull_PhotoPath = 1 AND [PhotoPath] IS NULL) OR ([PhotoPath] = @Original_PhotoPath)))</CommandText>
  64. <Parameters>
  65. <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" />
  66. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FirstName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FirstName" SourceColumnNullMapping="false" SourceVersion="Original" />
  67. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LastName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LastName" SourceColumnNullMapping="false" SourceVersion="Original" />
  68. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Patronymic" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="true" SourceVersion="Original" />
  69. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Patronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="false" SourceVersion="Original" />
  70. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Birthday" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Birthday" SourceColumnNullMapping="true" SourceVersion="Original" />
  71. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Birthday" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Birthday" SourceColumnNullMapping="false" SourceVersion="Original" />
  72. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_RegistrationDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="RegistrationDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  73. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Email" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="true" SourceVersion="Original" />
  74. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Original" />
  75. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Phone" SourceColumnNullMapping="false" SourceVersion="Original" />
  76. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_GenderCode" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="GenderCode" SourceColumnNullMapping="false" SourceVersion="Original" />
  77. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PhotoPath" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="true" SourceVersion="Original" />
  78. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Original" />
  79. </Parameters>
  80. </DbCommand>
  81. </DeleteCommand>
  82. <InsertCommand>
  83. <DbCommand CommandType="Text" ModifiedByUser="false">
  84. <CommandText>INSERT INTO [dbo].[Client] ([FirstName], [LastName], [Patronymic], [Birthday], [RegistrationDate], [Email], [Phone], [GenderCode], [PhotoPath]) VALUES (@FirstName, @LastName, @Patronymic, @Birthday, @RegistrationDate, @Email, @Phone, @GenderCode, @PhotoPath);
  85. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM Client WHERE (ID = SCOPE_IDENTITY())</CommandText>
  86. <Parameters>
  87. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FirstName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FirstName" SourceColumnNullMapping="false" SourceVersion="Current" />
  88. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LastName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LastName" SourceColumnNullMapping="false" SourceVersion="Current" />
  89. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Patronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="false" SourceVersion="Current" />
  90. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Birthday" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Birthday" SourceColumnNullMapping="false" SourceVersion="Current" />
  91. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@RegistrationDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="RegistrationDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  92. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Current" />
  93. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Phone" SourceColumnNullMapping="false" SourceVersion="Current" />
  94. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@GenderCode" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="GenderCode" SourceColumnNullMapping="false" SourceVersion="Current" />
  95. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Current" />
  96. </Parameters>
  97. </DbCommand>
  98. </InsertCommand>
  99. <SelectCommand>
  100. <DbCommand CommandType="Text" ModifiedByUser="false">
  101. <CommandText>SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM dbo.Client</CommandText>
  102. <Parameters />
  103. </DbCommand>
  104. </SelectCommand>
  105. <UpdateCommand>
  106. <DbCommand CommandType="Text" ModifiedByUser="false">
  107. <CommandText>UPDATE [dbo].[Client] SET [FirstName] = @FirstName, [LastName] = @LastName, [Patronymic] = @Patronymic, [Birthday] = @Birthday, [RegistrationDate] = @RegistrationDate, [Email] = @Email, [Phone] = @Phone, [GenderCode] = @GenderCode, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([FirstName] = @Original_FirstName) AND ([LastName] = @Original_LastName) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Birthday = 1 AND [Birthday] IS NULL) OR ([Birthday] = @Original_Birthday)) AND ([RegistrationDate] = @Original_RegistrationDate) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ([Phone] = @Original_Phone) AND ([GenderCode] = @Original_GenderCode) AND ((@IsNull_PhotoPath = 1 AND [PhotoPath] IS NULL) OR ([PhotoPath] = @Original_PhotoPath)));
  108. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM Client WHERE (ID = @ID)</CommandText>
  109. <Parameters>
  110. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FirstName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FirstName" SourceColumnNullMapping="false" SourceVersion="Current" />
  111. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LastName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LastName" SourceColumnNullMapping="false" SourceVersion="Current" />
  112. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Patronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="false" SourceVersion="Current" />
  113. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Birthday" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Birthday" SourceColumnNullMapping="false" SourceVersion="Current" />
  114. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@RegistrationDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="RegistrationDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  115. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Current" />
  116. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Phone" SourceColumnNullMapping="false" SourceVersion="Current" />
  117. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@GenderCode" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="GenderCode" SourceColumnNullMapping="false" SourceVersion="Current" />
  118. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Current" />
  119. <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" />
  120. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FirstName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FirstName" SourceColumnNullMapping="false" SourceVersion="Original" />
  121. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LastName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LastName" SourceColumnNullMapping="false" SourceVersion="Original" />
  122. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Patronymic" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="true" SourceVersion="Original" />
  123. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Patronymic" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Patronymic" SourceColumnNullMapping="false" SourceVersion="Original" />
  124. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Birthday" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Birthday" SourceColumnNullMapping="true" SourceVersion="Original" />
  125. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_Birthday" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="Birthday" SourceColumnNullMapping="false" SourceVersion="Original" />
  126. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_RegistrationDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="RegistrationDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  127. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Email" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="true" SourceVersion="Original" />
  128. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Original" />
  129. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Phone" SourceColumnNullMapping="false" SourceVersion="Original" />
  130. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_GenderCode" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="GenderCode" SourceColumnNullMapping="false" SourceVersion="Original" />
  131. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PhotoPath" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="true" SourceVersion="Original" />
  132. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Original" />
  133. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="BarhotnieBrovki.dbo.Client" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  134. </Parameters>
  135. </DbCommand>
  136. </UpdateCommand>
  137. </DbSource>
  138. </MainSource>
  139. <Mappings>
  140. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  141. <Mapping SourceColumn="FirstName" DataSetColumn="FirstName" />
  142. <Mapping SourceColumn="LastName" DataSetColumn="LastName" />
  143. <Mapping SourceColumn="Patronymic" DataSetColumn="Patronymic" />
  144. <Mapping SourceColumn="Birthday" DataSetColumn="Birthday" />
  145. <Mapping SourceColumn="RegistrationDate" DataSetColumn="RegistrationDate" />
  146. <Mapping SourceColumn="Email" DataSetColumn="Email" />
  147. <Mapping SourceColumn="Phone" DataSetColumn="Phone" />
  148. <Mapping SourceColumn="GenderCode" DataSetColumn="GenderCode" />
  149. <Mapping SourceColumn="PhotoPath" DataSetColumn="PhotoPath" />
  150. </Mappings>
  151. <Sources />
  152. </TableAdapter>
  153. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Client_b_importTableAdapter" GeneratorDataComponentClassName="Client_b_importTableAdapter" Name="Client_b_import" UserDataComponentName="Client_b_importTableAdapter">
  154. <MainSource>
  155. <DbSource ConnectionRef="BarhotnieBrovkiConnectionString (Settings)" DbObjectName="BarhotnieBrovki.dbo.Client_b_import" 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">
  156. <DeleteCommand>
  157. <DbCommand CommandType="Text" ModifiedByUser="false">
  158. <CommandText>DELETE FROM [dbo].[Client_b_import] WHERE (([Фамилия] = @Original_Фамилия) AND ([Имя] = @Original_Имя) AND ([Отчество] = @Original_Отчество) AND ([Пол] = @Original_Пол) AND ([Телефон] = @Original_Телефон) AND ([Дата_рождения] = @Original_Дата_рождения) AND ([Email] = @Original_Email) AND ([Дата_регистрации] = @Original_Дата_регистрации) AND ([ID] = @Original_ID))</CommandText>
  159. <Parameters>
  160. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Фамилия" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="false" SourceVersion="Original" />
  161. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Имя" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="false" SourceVersion="Original" />
  162. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Отчество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="false" SourceVersion="Original" />
  163. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Пол" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Пол" SourceColumnNullMapping="false" SourceVersion="Original" />
  164. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="false" SourceVersion="Original" />
  165. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_Дата_рождения" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="Дата_рождения" SourceColumnNullMapping="false" SourceVersion="Original" />
  166. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Original" />
  167. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_Дата_регистрации" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="Дата_регистрации" SourceColumnNullMapping="false" SourceVersion="Original" />
  168. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  169. </Parameters>
  170. </DbCommand>
  171. </DeleteCommand>
  172. <InsertCommand>
  173. <DbCommand CommandType="Text" ModifiedByUser="false">
  174. <CommandText>INSERT INTO [dbo].[Client_b_import] ([Фамилия], [Имя], [Отчество], [Пол], [Телефон], [Дата_рождения], [Email], [Дата_регистрации], [ID]) VALUES (@Фамилия, @Имя, @Отчество, @Пол, @Телефон, @Дата_рождения, @Email, @Дата_регистрации, @ID);
  175. SELECT Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрации, ID FROM Client_b_import WHERE (ID = @ID)</CommandText>
  176. <Parameters>
  177. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Фамилия" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="false" SourceVersion="Current" />
  178. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Имя" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="false" SourceVersion="Current" />
  179. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Отчество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="false" SourceVersion="Current" />
  180. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Пол" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Пол" SourceColumnNullMapping="false" SourceVersion="Current" />
  181. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="false" SourceVersion="Current" />
  182. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Дата_рождения" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="Дата_рождения" SourceColumnNullMapping="false" SourceVersion="Current" />
  183. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Current" />
  184. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Дата_регистрации" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="Дата_регистрации" SourceColumnNullMapping="false" SourceVersion="Current" />
  185. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  186. </Parameters>
  187. </DbCommand>
  188. </InsertCommand>
  189. <SelectCommand>
  190. <DbCommand CommandType="Text" ModifiedByUser="false">
  191. <CommandText>SELECT Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрации, ID FROM dbo.Client_b_import</CommandText>
  192. <Parameters />
  193. </DbCommand>
  194. </SelectCommand>
  195. <UpdateCommand>
  196. <DbCommand CommandType="Text" ModifiedByUser="false">
  197. <CommandText>UPDATE [dbo].[Client_b_import] SET [Фамилия] = @Фамилия, [Имя] = @Имя, [Отчество] = @Отчество, [Пол] = @Пол, [Телефон] = @Телефон, [Дата_рождения] = @Дата_рождения, [Email] = @Email, [Дата_регистрации] = @Дата_регистрации, [ID] = @ID WHERE (([Фамилия] = @Original_Фамилия) AND ([Имя] = @Original_Имя) AND ([Отчество] = @Original_Отчество) AND ([Пол] = @Original_Пол) AND ([Телефон] = @Original_Телефон) AND ([Дата_рождения] = @Original_Дата_рождения) AND ([Email] = @Original_Email) AND ([Дата_регистрации] = @Original_Дата_регистрации) AND ([ID] = @Original_ID));
  198. SELECT Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрации, ID FROM Client_b_import WHERE (ID = @ID)</CommandText>
  199. <Parameters>
  200. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Фамилия" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="false" SourceVersion="Current" />
  201. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Имя" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="false" SourceVersion="Current" />
  202. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Отчество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="false" SourceVersion="Current" />
  203. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Пол" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Пол" SourceColumnNullMapping="false" SourceVersion="Current" />
  204. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="false" SourceVersion="Current" />
  205. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Дата_рождения" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="Дата_рождения" SourceColumnNullMapping="false" SourceVersion="Current" />
  206. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Current" />
  207. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Дата_регистрации" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="Дата_регистрации" SourceColumnNullMapping="false" SourceVersion="Current" />
  208. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  209. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Фамилия" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Фамилия" SourceColumnNullMapping="false" SourceVersion="Original" />
  210. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Имя" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Имя" SourceColumnNullMapping="false" SourceVersion="Original" />
  211. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Отчество" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Отчество" SourceColumnNullMapping="false" SourceVersion="Original" />
  212. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Пол" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Пол" SourceColumnNullMapping="false" SourceVersion="Original" />
  213. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Телефон" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Телефон" SourceColumnNullMapping="false" SourceVersion="Original" />
  214. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_Дата_рождения" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="Дата_рождения" SourceColumnNullMapping="false" SourceVersion="Original" />
  215. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Original" />
  216. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_Дата_регистрации" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="Дата_регистрации" SourceColumnNullMapping="false" SourceVersion="Original" />
  217. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  218. </Parameters>
  219. </DbCommand>
  220. </UpdateCommand>
  221. </DbSource>
  222. </MainSource>
  223. <Mappings>
  224. <Mapping SourceColumn="Фамилия" DataSetColumn="Фамилия" />
  225. <Mapping SourceColumn="Имя" DataSetColumn="Имя" />
  226. <Mapping SourceColumn="Отчество" DataSetColumn="Отчество" />
  227. <Mapping SourceColumn="Пол" DataSetColumn="Пол" />
  228. <Mapping SourceColumn="Телефон" DataSetColumn="Телефон" />
  229. <Mapping SourceColumn="Дата_рождения" DataSetColumn="Дата_рождения" />
  230. <Mapping SourceColumn="Email" DataSetColumn="Email" />
  231. <Mapping SourceColumn="Дата_регистрации" DataSetColumn="Дата_регистрации" />
  232. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  233. </Mappings>
  234. <Sources />
  235. </TableAdapter>
  236. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ClientServiceTableAdapter" GeneratorDataComponentClassName="ClientServiceTableAdapter" Name="ClientService" UserDataComponentName="ClientServiceTableAdapter">
  237. <MainSource>
  238. <DbSource ConnectionRef="BarhotnieBrovkiConnectionString (Settings)" DbObjectName="BarhotnieBrovki.dbo.ClientService" 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">
  239. <DeleteCommand>
  240. <DbCommand CommandType="Text" ModifiedByUser="false">
  241. <CommandText>DELETE FROM [dbo].[ClientService] WHERE (([ID] = @Original_ID) AND ([ClientID] = @Original_ClientID) AND ([ServiceID] = @Original_ServiceID) AND ([StartTime] = @Original_StartTime))</CommandText>
  242. <Parameters>
  243. <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" />
  244. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientID" SourceColumnNullMapping="false" SourceVersion="Original" />
  245. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ServiceID" SourceColumnNullMapping="false" SourceVersion="Original" />
  246. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_StartTime" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="StartTime" SourceColumnNullMapping="false" SourceVersion="Original" />
  247. </Parameters>
  248. </DbCommand>
  249. </DeleteCommand>
  250. <InsertCommand>
  251. <DbCommand CommandType="Text" ModifiedByUser="false">
  252. <CommandText>INSERT INTO [dbo].[ClientService] ([ClientID], [ServiceID], [StartTime], [Comment]) VALUES (@ClientID, @ServiceID, @StartTime, @Comment);
  253. SELECT ID, ClientID, ServiceID, StartTime, Comment FROM ClientService WHERE (ID = SCOPE_IDENTITY())</CommandText>
  254. <Parameters>
  255. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ClientID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientID" SourceColumnNullMapping="false" SourceVersion="Current" />
  256. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ServiceID" SourceColumnNullMapping="false" SourceVersion="Current" />
  257. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@StartTime" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="StartTime" SourceColumnNullMapping="false" SourceVersion="Current" />
  258. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Comment" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Comment" SourceColumnNullMapping="false" SourceVersion="Current" />
  259. </Parameters>
  260. </DbCommand>
  261. </InsertCommand>
  262. <SelectCommand>
  263. <DbCommand CommandType="Text" ModifiedByUser="false">
  264. <CommandText>SELECT ID, ClientID, ServiceID, StartTime, Comment FROM dbo.ClientService</CommandText>
  265. <Parameters />
  266. </DbCommand>
  267. </SelectCommand>
  268. <UpdateCommand>
  269. <DbCommand CommandType="Text" ModifiedByUser="false">
  270. <CommandText>UPDATE [dbo].[ClientService] SET [ClientID] = @ClientID, [ServiceID] = @ServiceID, [StartTime] = @StartTime, [Comment] = @Comment WHERE (([ID] = @Original_ID) AND ([ClientID] = @Original_ClientID) AND ([ServiceID] = @Original_ServiceID) AND ([StartTime] = @Original_StartTime));
  271. SELECT ID, ClientID, ServiceID, StartTime, Comment FROM ClientService WHERE (ID = @ID)</CommandText>
  272. <Parameters>
  273. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ClientID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientID" SourceColumnNullMapping="false" SourceVersion="Current" />
  274. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ServiceID" SourceColumnNullMapping="false" SourceVersion="Current" />
  275. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@StartTime" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="StartTime" SourceColumnNullMapping="false" SourceVersion="Current" />
  276. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Comment" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Comment" SourceColumnNullMapping="false" SourceVersion="Current" />
  277. <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" />
  278. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientID" SourceColumnNullMapping="false" SourceVersion="Original" />
  279. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ServiceID" SourceColumnNullMapping="false" SourceVersion="Original" />
  280. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_StartTime" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="StartTime" SourceColumnNullMapping="false" SourceVersion="Original" />
  281. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="BarhotnieBrovki.dbo.ClientService" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  282. </Parameters>
  283. </DbCommand>
  284. </UpdateCommand>
  285. </DbSource>
  286. </MainSource>
  287. <Mappings>
  288. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  289. <Mapping SourceColumn="ClientID" DataSetColumn="ClientID" />
  290. <Mapping SourceColumn="ServiceID" DataSetColumn="ServiceID" />
  291. <Mapping SourceColumn="StartTime" DataSetColumn="StartTime" />
  292. <Mapping SourceColumn="Comment" DataSetColumn="Comment" />
  293. </Mappings>
  294. <Sources />
  295. </TableAdapter>
  296. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DocumentByServiceTableAdapter" GeneratorDataComponentClassName="DocumentByServiceTableAdapter" Name="DocumentByService" UserDataComponentName="DocumentByServiceTableAdapter">
  297. <MainSource>
  298. <DbSource ConnectionRef="BarhotnieBrovkiConnectionString (Settings)" DbObjectName="BarhotnieBrovki.dbo.DocumentByService" 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">
  299. <DeleteCommand>
  300. <DbCommand CommandType="Text" ModifiedByUser="false">
  301. <CommandText>DELETE FROM [dbo].[DocumentByService] WHERE (([ID] = @Original_ID) AND ([ClientServiceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPath))</CommandText>
  302. <Parameters>
  303. <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" />
  304. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientServiceID" SourceColumnNullMapping="false" SourceVersion="Original" />
  305. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DocumentPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DocumentPath" SourceColumnNullMapping="false" SourceVersion="Original" />
  306. </Parameters>
  307. </DbCommand>
  308. </DeleteCommand>
  309. <InsertCommand>
  310. <DbCommand CommandType="Text" ModifiedByUser="false">
  311. <CommandText>INSERT INTO [dbo].[DocumentByService] ([ClientServiceID], [DocumentPath]) VALUES (@ClientServiceID, @DocumentPath);
  312. SELECT ID, ClientServiceID, DocumentPath FROM DocumentByService WHERE (ID = SCOPE_IDENTITY())</CommandText>
  313. <Parameters>
  314. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ClientServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientServiceID" SourceColumnNullMapping="false" SourceVersion="Current" />
  315. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DocumentPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DocumentPath" SourceColumnNullMapping="false" SourceVersion="Current" />
  316. </Parameters>
  317. </DbCommand>
  318. </InsertCommand>
  319. <SelectCommand>
  320. <DbCommand CommandType="Text" ModifiedByUser="false">
  321. <CommandText>SELECT ID, ClientServiceID, DocumentPath FROM dbo.DocumentByService</CommandText>
  322. <Parameters />
  323. </DbCommand>
  324. </SelectCommand>
  325. <UpdateCommand>
  326. <DbCommand CommandType="Text" ModifiedByUser="false">
  327. <CommandText>UPDATE [dbo].[DocumentByService] SET [ClientServiceID] = @ClientServiceID, [DocumentPath] = @DocumentPath WHERE (([ID] = @Original_ID) AND ([ClientServiceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPath));
  328. SELECT ID, ClientServiceID, DocumentPath FROM DocumentByService WHERE (ID = @ID)</CommandText>
  329. <Parameters>
  330. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ClientServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientServiceID" SourceColumnNullMapping="false" SourceVersion="Current" />
  331. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DocumentPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DocumentPath" SourceColumnNullMapping="false" SourceVersion="Current" />
  332. <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" />
  333. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientServiceID" SourceColumnNullMapping="false" SourceVersion="Original" />
  334. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DocumentPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DocumentPath" SourceColumnNullMapping="false" SourceVersion="Original" />
  335. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="BarhotnieBrovki.dbo.DocumentByService" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  336. </Parameters>
  337. </DbCommand>
  338. </UpdateCommand>
  339. </DbSource>
  340. </MainSource>
  341. <Mappings>
  342. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  343. <Mapping SourceColumn="ClientServiceID" DataSetColumn="ClientServiceID" />
  344. <Mapping SourceColumn="DocumentPath" DataSetColumn="DocumentPath" />
  345. </Mappings>
  346. <Sources />
  347. </TableAdapter>
  348. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="GenderTableAdapter" GeneratorDataComponentClassName="GenderTableAdapter" Name="Gender" UserDataComponentName="GenderTableAdapter">
  349. <MainSource>
  350. <DbSource ConnectionRef="BarhotnieBrovkiConnectionString (Settings)" DbObjectName="BarhotnieBrovki.dbo.Gender" 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">
  351. <DeleteCommand>
  352. <DbCommand CommandType="Text" ModifiedByUser="false">
  353. <CommandText>DELETE FROM [dbo].[Gender] WHERE (([Code] = @Original_Code) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)))</CommandText>
  354. <Parameters>
  355. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Code" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Code" SourceColumnNullMapping="false" SourceVersion="Original" />
  356. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="true" SourceVersion="Original" />
  357. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
  358. </Parameters>
  359. </DbCommand>
  360. </DeleteCommand>
  361. <InsertCommand>
  362. <DbCommand CommandType="Text" ModifiedByUser="false">
  363. <CommandText>INSERT INTO [dbo].[Gender] ([Code], [Name]) VALUES (@Code, @Name);
  364. SELECT Code, Name FROM Gender WHERE (Code = @Code)</CommandText>
  365. <Parameters>
  366. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Code" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Code" SourceColumnNullMapping="false" SourceVersion="Current" />
  367. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
  368. </Parameters>
  369. </DbCommand>
  370. </InsertCommand>
  371. <SelectCommand>
  372. <DbCommand CommandType="Text" ModifiedByUser="false">
  373. <CommandText>SELECT Code, Name FROM dbo.Gender</CommandText>
  374. <Parameters />
  375. </DbCommand>
  376. </SelectCommand>
  377. <UpdateCommand>
  378. <DbCommand CommandType="Text" ModifiedByUser="false">
  379. <CommandText>UPDATE [dbo].[Gender] SET [Code] = @Code, [Name] = @Name WHERE (([Code] = @Original_Code) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)));
  380. SELECT Code, Name FROM Gender WHERE (Code = @Code)</CommandText>
  381. <Parameters>
  382. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Code" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Code" SourceColumnNullMapping="false" SourceVersion="Current" />
  383. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
  384. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Code" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Code" SourceColumnNullMapping="false" SourceVersion="Original" />
  385. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="true" SourceVersion="Original" />
  386. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
  387. </Parameters>
  388. </DbCommand>
  389. </UpdateCommand>
  390. </DbSource>
  391. </MainSource>
  392. <Mappings>
  393. <Mapping SourceColumn="Code" DataSetColumn="Code" />
  394. <Mapping SourceColumn="Name" DataSetColumn="Name" />
  395. </Mappings>
  396. <Sources />
  397. </TableAdapter>
  398. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ManufacturerTableAdapter" GeneratorDataComponentClassName="ManufacturerTableAdapter" Name="Manufacturer" UserDataComponentName="ManufacturerTableAdapter">
  399. <MainSource>
  400. <DbSource ConnectionRef="BarhotnieBrovkiConnectionString (Settings)" DbObjectName="BarhotnieBrovki.dbo.Manufacturer" 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">
  401. <DeleteCommand>
  402. <DbCommand CommandType="Text" ModifiedByUser="false">
  403. <CommandText>DELETE FROM [dbo].[Manufacturer] WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] = @Original_StartDate)))</CommandText>
  404. <Parameters>
  405. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  406. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
  407. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_StartDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="StartDate" SourceColumnNullMapping="true" SourceVersion="Original" />
  408. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_StartDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="StartDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  409. </Parameters>
  410. </DbCommand>
  411. </DeleteCommand>
  412. <InsertCommand>
  413. <DbCommand CommandType="Text" ModifiedByUser="false">
  414. <CommandText>INSERT INTO [dbo].[Manufacturer] ([Name], [StartDate]) VALUES (@Name, @StartDate);
  415. SELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = SCOPE_IDENTITY())</CommandText>
  416. <Parameters>
  417. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
  418. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@StartDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="StartDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  419. </Parameters>
  420. </DbCommand>
  421. </InsertCommand>
  422. <SelectCommand>
  423. <DbCommand CommandType="Text" ModifiedByUser="false">
  424. <CommandText>SELECT ID, Name, StartDate FROM dbo.Manufacturer</CommandText>
  425. <Parameters />
  426. </DbCommand>
  427. </SelectCommand>
  428. <UpdateCommand>
  429. <DbCommand CommandType="Text" ModifiedByUser="false">
  430. <CommandText>UPDATE [dbo].[Manufacturer] SET [Name] = @Name, [StartDate] = @StartDate WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] = @Original_StartDate)));
  431. SELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = @ID)</CommandText>
  432. <Parameters>
  433. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
  434. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@StartDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="StartDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  435. <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" />
  436. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
  437. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_StartDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="StartDate" SourceColumnNullMapping="true" SourceVersion="Original" />
  438. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_StartDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="StartDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  439. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="BarhotnieBrovki.dbo.Manufacturer" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  440. </Parameters>
  441. </DbCommand>
  442. </UpdateCommand>
  443. </DbSource>
  444. </MainSource>
  445. <Mappings>
  446. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  447. <Mapping SourceColumn="Name" DataSetColumn="Name" />
  448. <Mapping SourceColumn="StartDate" DataSetColumn="StartDate" />
  449. </Mappings>
  450. <Sources />
  451. </TableAdapter>
  452. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductTableAdapter" GeneratorDataComponentClassName="ProductTableAdapter" Name="Product" UserDataComponentName="ProductTableAdapter">
  453. <MainSource>
  454. <DbSource ConnectionRef="BarhotnieBrovkiConnectionString (Settings)" DbObjectName="BarhotnieBrovki.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">
  455. <DeleteCommand>
  456. <DbCommand CommandType="Text" ModifiedByUser="false">
  457. <CommandText>DELETE FROM [dbo].[Product] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)) AND ([IsActive] = @Original_IsActive) AND ((@IsNull_ManufacturerID = 1 AND [ManufacturerID] IS NULL) OR ([ManufacturerID] = @Original_ManufacturerID)))</CommandText>
  458. <Parameters>
  459. <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" />
  460. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  461. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Cost" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Original" />
  462. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MainImagePath" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="true" SourceVersion="Original" />
  463. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MainImagePath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="false" SourceVersion="Original" />
  464. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Original" />
  465. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ManufacturerID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ManufacturerID" SourceColumnNullMapping="true" SourceVersion="Original" />
  466. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ManufacturerID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ManufacturerID" SourceColumnNullMapping="false" SourceVersion="Original" />
  467. </Parameters>
  468. </DbCommand>
  469. </DeleteCommand>
  470. <InsertCommand>
  471. <DbCommand CommandType="Text" ModifiedByUser="false">
  472. <CommandText>INSERT INTO [dbo].[Product] ([Title], [Cost], [Description], [MainImagePath], [IsActive], [ManufacturerID]) VALUES (@Title, @Cost, @Description, @MainImagePath, @IsActive, @ManufacturerID);
  473. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = SCOPE_IDENTITY())</CommandText>
  474. <Parameters>
  475. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  476. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Cost" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Current" />
  477. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Description" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="false" SourceVersion="Current" />
  478. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MainImagePath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="false" SourceVersion="Current" />
  479. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Current" />
  480. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ManufacturerID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ManufacturerID" SourceColumnNullMapping="false" SourceVersion="Current" />
  481. </Parameters>
  482. </DbCommand>
  483. </InsertCommand>
  484. <SelectCommand>
  485. <DbCommand CommandType="Text" ModifiedByUser="false">
  486. <CommandText>SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM dbo.Product</CommandText>
  487. <Parameters />
  488. </DbCommand>
  489. </SelectCommand>
  490. <UpdateCommand>
  491. <DbCommand CommandType="Text" ModifiedByUser="false">
  492. <CommandText>UPDATE [dbo].[Product] SET [Title] = @Title, [Cost] = @Cost, [Description] = @Description, [MainImagePath] = @MainImagePath, [IsActive] = @IsActive, [ManufacturerID] = @ManufacturerID WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)) AND ([IsActive] = @Original_IsActive) AND ((@IsNull_ManufacturerID = 1 AND [ManufacturerID] IS NULL) OR ([ManufacturerID] = @Original_ManufacturerID)));
  493. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = @ID)</CommandText>
  494. <Parameters>
  495. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  496. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Cost" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Current" />
  497. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Description" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="false" SourceVersion="Current" />
  498. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MainImagePath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="false" SourceVersion="Current" />
  499. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Current" />
  500. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ManufacturerID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ManufacturerID" SourceColumnNullMapping="false" SourceVersion="Current" />
  501. <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" />
  502. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  503. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Cost" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Original" />
  504. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MainImagePath" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="true" SourceVersion="Original" />
  505. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MainImagePath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="false" SourceVersion="Original" />
  506. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Original" />
  507. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ManufacturerID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ManufacturerID" SourceColumnNullMapping="true" SourceVersion="Original" />
  508. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ManufacturerID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ManufacturerID" SourceColumnNullMapping="false" SourceVersion="Original" />
  509. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="BarhotnieBrovki.dbo.Product" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  510. </Parameters>
  511. </DbCommand>
  512. </UpdateCommand>
  513. </DbSource>
  514. </MainSource>
  515. <Mappings>
  516. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  517. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  518. <Mapping SourceColumn="Cost" DataSetColumn="Cost" />
  519. <Mapping SourceColumn="Description" DataSetColumn="Description" />
  520. <Mapping SourceColumn="MainImagePath" DataSetColumn="MainImagePath" />
  521. <Mapping SourceColumn="IsActive" DataSetColumn="IsActive" />
  522. <Mapping SourceColumn="ManufacturerID" DataSetColumn="ManufacturerID" />
  523. </Mappings>
  524. <Sources />
  525. </TableAdapter>
  526. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductPhotoTableAdapter" GeneratorDataComponentClassName="ProductPhotoTableAdapter" Name="ProductPhoto" UserDataComponentName="ProductPhotoTableAdapter">
  527. <MainSource>
  528. <DbSource ConnectionRef="BarhotnieBrovkiConnectionString (Settings)" DbObjectName="BarhotnieBrovki.dbo.ProductPhoto" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
  529. <DeleteCommand>
  530. <DbCommand CommandType="Text" ModifiedByUser="false">
  531. <CommandText>DELETE FROM [dbo].[ProductPhoto] WHERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath))</CommandText>
  532. <Parameters>
  533. <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" />
  534. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductID" SourceColumnNullMapping="false" SourceVersion="Original" />
  535. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Original" />
  536. </Parameters>
  537. </DbCommand>
  538. </DeleteCommand>
  539. <InsertCommand>
  540. <DbCommand CommandType="Text" ModifiedByUser="false">
  541. <CommandText>INSERT INTO [dbo].[ProductPhoto] ([ProductID], [PhotoPath]) VALUES (@ProductID, @PhotoPath);
  542. SELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = SCOPE_IDENTITY())</CommandText>
  543. <Parameters>
  544. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductID" SourceColumnNullMapping="false" SourceVersion="Current" />
  545. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Current" />
  546. </Parameters>
  547. </DbCommand>
  548. </InsertCommand>
  549. <SelectCommand>
  550. <DbCommand CommandType="Text" ModifiedByUser="false">
  551. <CommandText>SELECT ID, ProductID, PhotoPath FROM dbo.ProductPhoto</CommandText>
  552. <Parameters />
  553. </DbCommand>
  554. </SelectCommand>
  555. <UpdateCommand>
  556. <DbCommand CommandType="Text" ModifiedByUser="false">
  557. <CommandText>UPDATE [dbo].[ProductPhoto] SET [ProductID] = @ProductID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath));
  558. SELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = @ID)</CommandText>
  559. <Parameters>
  560. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductID" SourceColumnNullMapping="false" SourceVersion="Current" />
  561. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Current" />
  562. <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" />
  563. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductID" SourceColumnNullMapping="false" SourceVersion="Original" />
  564. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Original" />
  565. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="BarhotnieBrovki.dbo.ProductPhoto" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  566. </Parameters>
  567. </DbCommand>
  568. </UpdateCommand>
  569. </DbSource>
  570. </MainSource>
  571. <Mappings>
  572. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  573. <Mapping SourceColumn="ProductID" DataSetColumn="ProductID" />
  574. <Mapping SourceColumn="PhotoPath" DataSetColumn="PhotoPath" />
  575. </Mappings>
  576. <Sources />
  577. </TableAdapter>
  578. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductSaleTableAdapter" GeneratorDataComponentClassName="ProductSaleTableAdapter" Name="ProductSale" UserDataComponentName="ProductSaleTableAdapter">
  579. <MainSource>
  580. <DbSource ConnectionRef="BarhotnieBrovkiConnectionString (Settings)" DbObjectName="BarhotnieBrovki.dbo.ProductSale" 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">
  581. <DeleteCommand>
  582. <DbCommand CommandType="Text" ModifiedByUser="false">
  583. <CommandText>DELETE FROM [dbo].[ProductSale] WHERE (([ID] = @Original_ID) AND ([SaleDate] = @Original_SaleDate) AND ([ProductID] = @Original_ProductID) AND ([Quantity] = @Original_Quantity) AND ((@IsNull_ClientServiceID = 1 AND [ClientServiceID] IS NULL) OR ([ClientServiceID] = @Original_ClientServiceID)))</CommandText>
  584. <Parameters>
  585. <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" />
  586. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_SaleDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="SaleDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  587. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductID" SourceColumnNullMapping="false" SourceVersion="Original" />
  588. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Original" />
  589. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ClientServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientServiceID" SourceColumnNullMapping="true" SourceVersion="Original" />
  590. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientServiceID" SourceColumnNullMapping="false" SourceVersion="Original" />
  591. </Parameters>
  592. </DbCommand>
  593. </DeleteCommand>
  594. <InsertCommand>
  595. <DbCommand CommandType="Text" ModifiedByUser="false">
  596. <CommandText>INSERT INTO [dbo].[ProductSale] ([SaleDate], [ProductID], [Quantity], [ClientServiceID]) VALUES (@SaleDate, @ProductID, @Quantity, @ClientServiceID);
  597. SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = SCOPE_IDENTITY())</CommandText>
  598. <Parameters>
  599. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@SaleDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="SaleDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  600. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductID" SourceColumnNullMapping="false" SourceVersion="Current" />
  601. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Current" />
  602. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ClientServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientServiceID" SourceColumnNullMapping="false" SourceVersion="Current" />
  603. </Parameters>
  604. </DbCommand>
  605. </InsertCommand>
  606. <SelectCommand>
  607. <DbCommand CommandType="Text" ModifiedByUser="false">
  608. <CommandText>SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM dbo.ProductSale</CommandText>
  609. <Parameters />
  610. </DbCommand>
  611. </SelectCommand>
  612. <UpdateCommand>
  613. <DbCommand CommandType="Text" ModifiedByUser="false">
  614. <CommandText>UPDATE [dbo].[ProductSale] SET [SaleDate] = @SaleDate, [ProductID] = @ProductID, [Quantity] = @Quantity, [ClientServiceID] = @ClientServiceID WHERE (([ID] = @Original_ID) AND ([SaleDate] = @Original_SaleDate) AND ([ProductID] = @Original_ProductID) AND ([Quantity] = @Original_Quantity) AND ((@IsNull_ClientServiceID = 1 AND [ClientServiceID] IS NULL) OR ([ClientServiceID] = @Original_ClientServiceID)));
  615. SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = @ID)</CommandText>
  616. <Parameters>
  617. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@SaleDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="SaleDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  618. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductID" SourceColumnNullMapping="false" SourceVersion="Current" />
  619. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Current" />
  620. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ClientServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientServiceID" SourceColumnNullMapping="false" SourceVersion="Current" />
  621. <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" />
  622. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_SaleDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="SaleDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  623. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductID" SourceColumnNullMapping="false" SourceVersion="Original" />
  624. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Original" />
  625. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ClientServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientServiceID" SourceColumnNullMapping="true" SourceVersion="Original" />
  626. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientServiceID" SourceColumnNullMapping="false" SourceVersion="Original" />
  627. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="BarhotnieBrovki.dbo.ProductSale" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  628. </Parameters>
  629. </DbCommand>
  630. </UpdateCommand>
  631. </DbSource>
  632. </MainSource>
  633. <Mappings>
  634. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  635. <Mapping SourceColumn="SaleDate" DataSetColumn="SaleDate" />
  636. <Mapping SourceColumn="ProductID" DataSetColumn="ProductID" />
  637. <Mapping SourceColumn="Quantity" DataSetColumn="Quantity" />
  638. <Mapping SourceColumn="ClientServiceID" DataSetColumn="ClientServiceID" />
  639. </Mappings>
  640. <Sources />
  641. </TableAdapter>
  642. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ServiceTableAdapter" GeneratorDataComponentClassName="ServiceTableAdapter" Name="Service" UserDataComponentName="ServiceTableAdapter">
  643. <MainSource>
  644. <DbSource ConnectionRef="BarhotnieBrovkiConnectionString (Settings)" DbObjectName="BarhotnieBrovki.dbo.Service" 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">
  645. <DeleteCommand>
  646. <DbCommand CommandType="Text" ModifiedByUser="false">
  647. <CommandText>DELETE FROM [dbo].[Service] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ([DurationInSeconds] = @Original_DurationInSeconds) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)))</CommandText>
  648. <Parameters>
  649. <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" />
  650. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  651. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Cost" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Original" />
  652. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_DurationInSeconds" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DurationInSeconds" SourceColumnNullMapping="false" SourceVersion="Original" />
  653. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Discount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="true" SourceVersion="Original" />
  654. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Discount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Original" />
  655. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MainImagePath" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="true" SourceVersion="Original" />
  656. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MainImagePath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="false" SourceVersion="Original" />
  657. </Parameters>
  658. </DbCommand>
  659. </DeleteCommand>
  660. <InsertCommand>
  661. <DbCommand CommandType="Text" ModifiedByUser="false">
  662. <CommandText>INSERT INTO [dbo].[Service] ([Title], [Cost], [DurationInSeconds], [Description], [Discount], [MainImagePath]) VALUES (@Title, @Cost, @DurationInSeconds, @Description, @Discount, @MainImagePath);
  663. SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath FROM Service WHERE (ID = SCOPE_IDENTITY())</CommandText>
  664. <Parameters>
  665. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  666. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Cost" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Current" />
  667. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@DurationInSeconds" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DurationInSeconds" SourceColumnNullMapping="false" SourceVersion="Current" />
  668. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Description" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="false" SourceVersion="Current" />
  669. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Discount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Current" />
  670. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MainImagePath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="false" SourceVersion="Current" />
  671. </Parameters>
  672. </DbCommand>
  673. </InsertCommand>
  674. <SelectCommand>
  675. <DbCommand CommandType="Text" ModifiedByUser="false">
  676. <CommandText>SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath FROM dbo.Service</CommandText>
  677. <Parameters />
  678. </DbCommand>
  679. </SelectCommand>
  680. <UpdateCommand>
  681. <DbCommand CommandType="Text" ModifiedByUser="false">
  682. <CommandText>UPDATE [dbo].[Service] SET [Title] = @Title, [Cost] = @Cost, [DurationInSeconds] = @DurationInSeconds, [Description] = @Description, [Discount] = @Discount, [MainImagePath] = @MainImagePath WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ([DurationInSeconds] = @Original_DurationInSeconds) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)));
  683. SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath FROM Service WHERE (ID = @ID)</CommandText>
  684. <Parameters>
  685. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  686. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Cost" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Current" />
  687. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@DurationInSeconds" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DurationInSeconds" SourceColumnNullMapping="false" SourceVersion="Current" />
  688. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Description" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="false" SourceVersion="Current" />
  689. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Discount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Current" />
  690. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MainImagePath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="false" SourceVersion="Current" />
  691. <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" />
  692. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  693. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_Cost" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Original" />
  694. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_DurationInSeconds" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DurationInSeconds" SourceColumnNullMapping="false" SourceVersion="Original" />
  695. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Discount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="true" SourceVersion="Original" />
  696. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Discount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Original" />
  697. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MainImagePath" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="true" SourceVersion="Original" />
  698. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MainImagePath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MainImagePath" SourceColumnNullMapping="false" SourceVersion="Original" />
  699. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="BarhotnieBrovki.dbo.Service" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  700. </Parameters>
  701. </DbCommand>
  702. </UpdateCommand>
  703. </DbSource>
  704. </MainSource>
  705. <Mappings>
  706. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  707. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  708. <Mapping SourceColumn="Cost" DataSetColumn="Cost" />
  709. <Mapping SourceColumn="DurationInSeconds" DataSetColumn="DurationInSeconds" />
  710. <Mapping SourceColumn="Description" DataSetColumn="Description" />
  711. <Mapping SourceColumn="Discount" DataSetColumn="Discount" />
  712. <Mapping SourceColumn="MainImagePath" DataSetColumn="MainImagePath" />
  713. </Mappings>
  714. <Sources />
  715. </TableAdapter>
  716. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Service_b_importTableAdapter" GeneratorDataComponentClassName="Service_b_importTableAdapter" Name="Service_b_import" UserDataComponentName="Service_b_importTableAdapter">
  717. <MainSource>
  718. <DbSource ConnectionRef="BarhotnieBrovkiConnectionString (Settings)" DbObjectName="BarhotnieBrovki.dbo.Service_b_import" 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">
  719. <DeleteCommand>
  720. <DbCommand CommandType="Text" ModifiedByUser="false">
  721. <CommandText>DELETE FROM [dbo].[Service_b_import] WHERE (([Наименование_услуги] = @Original_Наименование_услуги) AND ([Главное_изображение] = @Original_Главное_изображение) AND ([Длительность] = @Original_Длительность) AND ([Стоимость] = @Original_Стоимость) AND ([Действующая_скидка] = @Original_Действующая_скидка) AND ([ID] = @Original_ID))</CommandText>
  722. <Parameters>
  723. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Наименование_услуги" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Наименование_услуги" SourceColumnNullMapping="false" SourceVersion="Original" />
  724. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Главное_изображение" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Главное_изображение" SourceColumnNullMapping="false" SourceVersion="Original" />
  725. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Длительность" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Длительность" SourceColumnNullMapping="false" SourceVersion="Original" />
  726. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Стоимость" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Стоимость" SourceColumnNullMapping="false" SourceVersion="Original" />
  727. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Действующая_скидка" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Действующая_скидка" SourceColumnNullMapping="false" SourceVersion="Original" />
  728. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  729. </Parameters>
  730. </DbCommand>
  731. </DeleteCommand>
  732. <InsertCommand>
  733. <DbCommand CommandType="Text" ModifiedByUser="false">
  734. <CommandText>INSERT INTO [dbo].[Service_b_import] ([Наименование_услуги], [Главное_изображение], [Длительность], [Стоимость], [Действующая_скидка], [ID]) VALUES (@Наименование_услуги, @Главное_изображение, @Длительность, @Стоимость, @Действующая_скидка, @ID);
  735. SELECT Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка, ID FROM Service_b_import WHERE (ID = @ID)</CommandText>
  736. <Parameters>
  737. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Наименование_услуги" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Наименование_услуги" SourceColumnNullMapping="false" SourceVersion="Current" />
  738. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Главное_изображение" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Главное_изображение" SourceColumnNullMapping="false" SourceVersion="Current" />
  739. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Длительность" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Длительность" SourceColumnNullMapping="false" SourceVersion="Current" />
  740. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Стоимость" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Стоимость" SourceColumnNullMapping="false" SourceVersion="Current" />
  741. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Действующая_скидка" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Действующая_скидка" SourceColumnNullMapping="false" SourceVersion="Current" />
  742. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  743. </Parameters>
  744. </DbCommand>
  745. </InsertCommand>
  746. <SelectCommand>
  747. <DbCommand CommandType="Text" ModifiedByUser="false">
  748. <CommandText>SELECT Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка, ID FROM dbo.Service_b_import</CommandText>
  749. <Parameters />
  750. </DbCommand>
  751. </SelectCommand>
  752. <UpdateCommand>
  753. <DbCommand CommandType="Text" ModifiedByUser="false">
  754. <CommandText>UPDATE [dbo].[Service_b_import] SET [Наименование_услуги] = @Наименование_услуги, [Главное_изображение] = @Главное_изображение, [Длительность] = @Длительность, [Стоимость] = @Стоимость, [Действующая_скидка] = @Действующая_скидка, [ID] = @ID WHERE (([Наименование_услуги] = @Original_Наименование_услуги) AND ([Главное_изображение] = @Original_Главное_изображение) AND ([Длительность] = @Original_Длительность) AND ([Стоимость] = @Original_Стоимость) AND ([Действующая_скидка] = @Original_Действующая_скидка) AND ([ID] = @Original_ID));
  755. SELECT Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка, ID FROM Service_b_import WHERE (ID = @ID)</CommandText>
  756. <Parameters>
  757. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Наименование_услуги" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Наименование_услуги" SourceColumnNullMapping="false" SourceVersion="Current" />
  758. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Главное_изображение" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Главное_изображение" SourceColumnNullMapping="false" SourceVersion="Current" />
  759. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Длительность" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Длительность" SourceColumnNullMapping="false" SourceVersion="Current" />
  760. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Стоимость" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Стоимость" SourceColumnNullMapping="false" SourceVersion="Current" />
  761. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Действующая_скидка" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Действующая_скидка" SourceColumnNullMapping="false" SourceVersion="Current" />
  762. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  763. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Наименование_услуги" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Наименование_услуги" SourceColumnNullMapping="false" SourceVersion="Original" />
  764. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Главное_изображение" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Главное_изображение" SourceColumnNullMapping="false" SourceVersion="Original" />
  765. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Длительность" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Длительность" SourceColumnNullMapping="false" SourceVersion="Original" />
  766. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Стоимость" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Стоимость" SourceColumnNullMapping="false" SourceVersion="Original" />
  767. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Действующая_скидка" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Действующая_скидка" SourceColumnNullMapping="false" SourceVersion="Original" />
  768. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  769. </Parameters>
  770. </DbCommand>
  771. </UpdateCommand>
  772. </DbSource>
  773. </MainSource>
  774. <Mappings>
  775. <Mapping SourceColumn="Наименование_услуги" DataSetColumn="Наименование_услуги" />
  776. <Mapping SourceColumn="Главное_изображение" DataSetColumn="Главное_изображение" />
  777. <Mapping SourceColumn="Длительность" DataSetColumn="Длительность" />
  778. <Mapping SourceColumn="Стоимость" DataSetColumn="Стоимость" />
  779. <Mapping SourceColumn="Действующая_скидка" DataSetColumn="Действующая_скидка" />
  780. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  781. </Mappings>
  782. <Sources />
  783. </TableAdapter>
  784. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Serviceclient_b_importTableAdapter" GeneratorDataComponentClassName="Serviceclient_b_importTableAdapter" Name="Serviceclient_b_import" UserDataComponentName="Serviceclient_b_importTableAdapter">
  785. <MainSource>
  786. <DbSource ConnectionRef="BarhotnieBrovkiConnectionString (Settings)" DbObjectName="BarhotnieBrovki.dbo.Serviceclient_b_import" 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">
  787. <DeleteCommand>
  788. <DbCommand CommandType="Text" ModifiedByUser="false">
  789. <CommandText>DELETE FROM [dbo].[Serviceclient_b_import] WHERE (([ID] = @Original_ID) AND ([Услуга] = @Original_Услуга) AND ([Начало_оказания_услуги] = @Original_Начало_оказания_услуги) AND ([Клиент] = @Original_Клиент))</CommandText>
  790. <Parameters>
  791. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  792. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Услуга" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Услуга" SourceColumnNullMapping="false" SourceVersion="Original" />
  793. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_Начало_оказания_услуги" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="Начало_оказания_услуги" SourceColumnNullMapping="false" SourceVersion="Original" />
  794. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Клиент" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Клиент" SourceColumnNullMapping="false" SourceVersion="Original" />
  795. </Parameters>
  796. </DbCommand>
  797. </DeleteCommand>
  798. <InsertCommand>
  799. <DbCommand CommandType="Text" ModifiedByUser="false">
  800. <CommandText>INSERT INTO [dbo].[Serviceclient_b_import] ([ID], [Услуга], [Начало_оказания_услуги], [Клиент]) VALUES (@ID, @Услуга, @Начало_оказания_услуги, @Клиент);
  801. SELECT ID, Услуга, Начало_оказания_услуги, Клиент FROM Serviceclient_b_import WHERE (ID = @ID)</CommandText>
  802. <Parameters>
  803. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  804. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Услуга" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Услуга" SourceColumnNullMapping="false" SourceVersion="Current" />
  805. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Начало_оказания_услуги" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="Начало_оказания_услуги" SourceColumnNullMapping="false" SourceVersion="Current" />
  806. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Клиент" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Клиент" SourceColumnNullMapping="false" SourceVersion="Current" />
  807. </Parameters>
  808. </DbCommand>
  809. </InsertCommand>
  810. <SelectCommand>
  811. <DbCommand CommandType="Text" ModifiedByUser="false">
  812. <CommandText>SELECT ID, Услуга, Начало_оказания_услуги, Клиент FROM dbo.Serviceclient_b_import</CommandText>
  813. <Parameters />
  814. </DbCommand>
  815. </SelectCommand>
  816. <UpdateCommand>
  817. <DbCommand CommandType="Text" ModifiedByUser="false">
  818. <CommandText>UPDATE [dbo].[Serviceclient_b_import] SET [ID] = @ID, [Услуга] = @Услуга, [Начало_оказания_услуги] = @Начало_оказания_услуги, [Клиент] = @Клиент WHERE (([ID] = @Original_ID) AND ([Услуга] = @Original_Услуга) AND ([Начало_оказания_услуги] = @Original_Начало_оказания_услуги) AND ([Клиент] = @Original_Клиент));
  819. SELECT ID, Услуга, Начало_оказания_услуги, Клиент FROM Serviceclient_b_import WHERE (ID = @ID)</CommandText>
  820. <Parameters>
  821. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  822. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Услуга" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Услуга" SourceColumnNullMapping="false" SourceVersion="Current" />
  823. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Начало_оказания_услуги" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="Начало_оказания_услуги" SourceColumnNullMapping="false" SourceVersion="Current" />
  824. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Клиент" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Клиент" SourceColumnNullMapping="false" SourceVersion="Current" />
  825. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  826. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Услуга" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Услуга" SourceColumnNullMapping="false" SourceVersion="Original" />
  827. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_Начало_оказания_услуги" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="Начало_оказания_услуги" SourceColumnNullMapping="false" SourceVersion="Original" />
  828. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Клиент" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Клиент" SourceColumnNullMapping="false" SourceVersion="Original" />
  829. </Parameters>
  830. </DbCommand>
  831. </UpdateCommand>
  832. </DbSource>
  833. </MainSource>
  834. <Mappings>
  835. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  836. <Mapping SourceColumn="Услуга" DataSetColumn="Услуга" />
  837. <Mapping SourceColumn="Начало_оказания_услуги" DataSetColumn="Начало_оказания_услуги" />
  838. <Mapping SourceColumn="Клиент" DataSetColumn="Клиент" />
  839. </Mappings>
  840. <Sources />
  841. </TableAdapter>
  842. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ServicePhotoTableAdapter" GeneratorDataComponentClassName="ServicePhotoTableAdapter" Name="ServicePhoto" UserDataComponentName="ServicePhotoTableAdapter">
  843. <MainSource>
  844. <DbSource ConnectionRef="BarhotnieBrovkiConnectionString (Settings)" DbObjectName="BarhotnieBrovki.dbo.ServicePhoto" 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">
  845. <DeleteCommand>
  846. <DbCommand CommandType="Text" ModifiedByUser="false">
  847. <CommandText>DELETE FROM [dbo].[ServicePhoto] WHERE (([ID] = @Original_ID) AND ([ServiceID] = @Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath))</CommandText>
  848. <Parameters>
  849. <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" />
  850. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ServiceID" SourceColumnNullMapping="false" SourceVersion="Original" />
  851. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Original" />
  852. </Parameters>
  853. </DbCommand>
  854. </DeleteCommand>
  855. <InsertCommand>
  856. <DbCommand CommandType="Text" ModifiedByUser="false">
  857. <CommandText>INSERT INTO [dbo].[ServicePhoto] ([ServiceID], [PhotoPath]) VALUES (@ServiceID, @PhotoPath);
  858. SELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = SCOPE_IDENTITY())</CommandText>
  859. <Parameters>
  860. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ServiceID" SourceColumnNullMapping="false" SourceVersion="Current" />
  861. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Current" />
  862. </Parameters>
  863. </DbCommand>
  864. </InsertCommand>
  865. <SelectCommand>
  866. <DbCommand CommandType="Text" ModifiedByUser="false">
  867. <CommandText>SELECT ID, ServiceID, PhotoPath FROM dbo.ServicePhoto</CommandText>
  868. <Parameters />
  869. </DbCommand>
  870. </SelectCommand>
  871. <UpdateCommand>
  872. <DbCommand CommandType="Text" ModifiedByUser="false">
  873. <CommandText>UPDATE [dbo].[ServicePhoto] SET [ServiceID] = @ServiceID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ServiceID] = @Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath));
  874. SELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = @ID)</CommandText>
  875. <Parameters>
  876. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ServiceID" SourceColumnNullMapping="false" SourceVersion="Current" />
  877. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Current" />
  878. <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" />
  879. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ServiceID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ServiceID" SourceColumnNullMapping="false" SourceVersion="Original" />
  880. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PhotoPath" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PhotoPath" SourceColumnNullMapping="false" SourceVersion="Original" />
  881. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="BarhotnieBrovki.dbo.ServicePhoto" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  882. </Parameters>
  883. </DbCommand>
  884. </UpdateCommand>
  885. </DbSource>
  886. </MainSource>
  887. <Mappings>
  888. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  889. <Mapping SourceColumn="ServiceID" DataSetColumn="ServiceID" />
  890. <Mapping SourceColumn="PhotoPath" DataSetColumn="PhotoPath" />
  891. </Mappings>
  892. <Sources />
  893. </TableAdapter>
  894. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TagTableAdapter" GeneratorDataComponentClassName="TagTableAdapter" Name="Tag" UserDataComponentName="TagTableAdapter">
  895. <MainSource>
  896. <DbSource ConnectionRef="BarhotnieBrovkiConnectionString (Settings)" DbObjectName="BarhotnieBrovki.dbo.Tag" 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">
  897. <DeleteCommand>
  898. <DbCommand CommandType="Text" ModifiedByUser="false">
  899. <CommandText>DELETE FROM [dbo].[Tag] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Color] = @Original_Color))</CommandText>
  900. <Parameters>
  901. <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" />
  902. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  903. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Color" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Color" SourceColumnNullMapping="false" SourceVersion="Original" />
  904. </Parameters>
  905. </DbCommand>
  906. </DeleteCommand>
  907. <InsertCommand>
  908. <DbCommand CommandType="Text" ModifiedByUser="false">
  909. <CommandText>INSERT INTO [dbo].[Tag] ([Title], [Color]) VALUES (@Title, @Color);
  910. SELECT ID, Title, Color FROM Tag WHERE (ID = SCOPE_IDENTITY())</CommandText>
  911. <Parameters>
  912. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  913. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Color" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Color" SourceColumnNullMapping="false" SourceVersion="Current" />
  914. </Parameters>
  915. </DbCommand>
  916. </InsertCommand>
  917. <SelectCommand>
  918. <DbCommand CommandType="Text" ModifiedByUser="false">
  919. <CommandText>SELECT ID, Title, Color FROM dbo.Tag</CommandText>
  920. <Parameters />
  921. </DbCommand>
  922. </SelectCommand>
  923. <UpdateCommand>
  924. <DbCommand CommandType="Text" ModifiedByUser="false">
  925. <CommandText>UPDATE [dbo].[Tag] SET [Title] = @Title, [Color] = @Color WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Color] = @Original_Color));
  926. SELECT ID, Title, Color FROM Tag WHERE (ID = @ID)</CommandText>
  927. <Parameters>
  928. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  929. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Color" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Color" SourceColumnNullMapping="false" SourceVersion="Current" />
  930. <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" />
  931. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  932. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Color" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Color" SourceColumnNullMapping="false" SourceVersion="Original" />
  933. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="BarhotnieBrovki.dbo.Tag" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  934. </Parameters>
  935. </DbCommand>
  936. </UpdateCommand>
  937. </DbSource>
  938. </MainSource>
  939. <Mappings>
  940. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  941. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  942. <Mapping SourceColumn="Color" DataSetColumn="Color" />
  943. </Mappings>
  944. <Sources />
  945. </TableAdapter>
  946. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TagOfClientTableAdapter" GeneratorDataComponentClassName="TagOfClientTableAdapter" Name="TagOfClient" UserDataComponentName="TagOfClientTableAdapter">
  947. <MainSource>
  948. <DbSource ConnectionRef="BarhotnieBrovkiConnectionString (Settings)" DbObjectName="BarhotnieBrovki.dbo.TagOfClient" 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">
  949. <DeleteCommand>
  950. <DbCommand CommandType="Text" ModifiedByUser="false">
  951. <CommandText>DELETE FROM [dbo].[TagOfClient] WHERE (([ClientID] = @Original_ClientID) AND ([TagID] = @Original_TagID))</CommandText>
  952. <Parameters>
  953. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientID" SourceColumnNullMapping="false" SourceVersion="Original" />
  954. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_TagID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TagID" SourceColumnNullMapping="false" SourceVersion="Original" />
  955. </Parameters>
  956. </DbCommand>
  957. </DeleteCommand>
  958. <InsertCommand>
  959. <DbCommand CommandType="Text" ModifiedByUser="false">
  960. <CommandText>INSERT INTO [dbo].[TagOfClient] ([ClientID], [TagID]) VALUES (@ClientID, @TagID);
  961. SELECT ClientID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagID = @TagID)</CommandText>
  962. <Parameters>
  963. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ClientID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientID" SourceColumnNullMapping="false" SourceVersion="Current" />
  964. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@TagID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TagID" SourceColumnNullMapping="false" SourceVersion="Current" />
  965. </Parameters>
  966. </DbCommand>
  967. </InsertCommand>
  968. <SelectCommand>
  969. <DbCommand CommandType="Text" ModifiedByUser="false">
  970. <CommandText>SELECT ClientID, TagID FROM dbo.TagOfClient</CommandText>
  971. <Parameters />
  972. </DbCommand>
  973. </SelectCommand>
  974. <UpdateCommand>
  975. <DbCommand CommandType="Text" ModifiedByUser="false">
  976. <CommandText>UPDATE [dbo].[TagOfClient] SET [ClientID] = @ClientID, [TagID] = @TagID WHERE (([ClientID] = @Original_ClientID) AND ([TagID] = @Original_TagID));
  977. SELECT ClientID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagID = @TagID)</CommandText>
  978. <Parameters>
  979. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ClientID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientID" SourceColumnNullMapping="false" SourceVersion="Current" />
  980. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@TagID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TagID" SourceColumnNullMapping="false" SourceVersion="Current" />
  981. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ClientID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ClientID" SourceColumnNullMapping="false" SourceVersion="Original" />
  982. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_TagID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TagID" SourceColumnNullMapping="false" SourceVersion="Original" />
  983. </Parameters>
  984. </DbCommand>
  985. </UpdateCommand>
  986. </DbSource>
  987. </MainSource>
  988. <Mappings>
  989. <Mapping SourceColumn="ClientID" DataSetColumn="ClientID" />
  990. <Mapping SourceColumn="TagID" DataSetColumn="TagID" />
  991. </Mappings>
  992. <Sources />
  993. </TableAdapter>
  994. </Tables>
  995. <Sources />
  996. </DataSource>
  997. </xs:appinfo>
  998. </xs:annotation>
  999. <xs:element name="BarhotnieBrovkiDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="BarhotnieBrovkiDataSet" msprop:Generator_UserDSName="BarhotnieBrovkiDataSet">
  1000. <xs:complexType>
  1001. <xs:choice minOccurs="0" maxOccurs="unbounded">
  1002. <xs:element name="AttachedProduct" msprop:Generator_TableClassName="AttachedProductDataTable" msprop:Generator_TableVarName="tableAttachedProduct" msprop:Generator_TablePropName="AttachedProduct" msprop:Generator_RowDeletingName="AttachedProductRowDeleting" msprop:Generator_RowChangingName="AttachedProductRowChanging" msprop:Generator_RowEvHandlerName="AttachedProductRowChangeEventHandler" msprop:Generator_RowDeletedName="AttachedProductRowDeleted" msprop:Generator_UserTableName="AttachedProduct" msprop:Generator_RowChangedName="AttachedProductRowChanged" msprop:Generator_RowEvArgName="AttachedProductRowChangeEvent" msprop:Generator_RowClassName="AttachedProductRow">
  1003. <xs:complexType>
  1004. <xs:sequence>
  1005. <xs:element name="MainProductID" msprop:Generator_ColumnVarNameInTable="columnMainProductID" msprop:Generator_ColumnPropNameInRow="MainProductID" msprop:Generator_ColumnPropNameInTable="MainProductIDColumn" msprop:Generator_UserColumnName="MainProductID" type="xs:int" />
  1006. <xs:element name="AttachedProductID" msprop:Generator_ColumnVarNameInTable="columnAttachedProductID" msprop:Generator_ColumnPropNameInRow="AttachedProductID" msprop:Generator_ColumnPropNameInTable="AttachedProductIDColumn" msprop:Generator_UserColumnName="AttachedProductID" type="xs:int" />
  1007. </xs:sequence>
  1008. </xs:complexType>
  1009. </xs:element>
  1010. <xs:element name="Client" msprop:Generator_TableClassName="ClientDataTable" msprop:Generator_TableVarName="tableClient" msprop:Generator_TablePropName="Client" msprop:Generator_RowDeletingName="ClientRowDeleting" msprop:Generator_RowChangingName="ClientRowChanging" msprop:Generator_RowEvHandlerName="ClientRowChangeEventHandler" msprop:Generator_RowDeletedName="ClientRowDeleted" msprop:Generator_UserTableName="Client" msprop:Generator_RowChangedName="ClientRowChanged" msprop:Generator_RowEvArgName="ClientRowChangeEvent" msprop:Generator_RowClassName="ClientRow">
  1011. <xs:complexType>
  1012. <xs:sequence>
  1013. <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" />
  1014. <xs:element name="FirstName" msprop:Generator_ColumnVarNameInTable="columnFirstName" msprop:Generator_ColumnPropNameInRow="FirstName" msprop:Generator_ColumnPropNameInTable="FirstNameColumn" msprop:Generator_UserColumnName="FirstName">
  1015. <xs:simpleType>
  1016. <xs:restriction base="xs:string">
  1017. <xs:maxLength value="50" />
  1018. </xs:restriction>
  1019. </xs:simpleType>
  1020. </xs:element>
  1021. <xs:element name="LastName" msprop:Generator_ColumnVarNameInTable="columnLastName" msprop:Generator_ColumnPropNameInRow="LastName" msprop:Generator_ColumnPropNameInTable="LastNameColumn" msprop:Generator_UserColumnName="LastName">
  1022. <xs:simpleType>
  1023. <xs:restriction base="xs:string">
  1024. <xs:maxLength value="50" />
  1025. </xs:restriction>
  1026. </xs:simpleType>
  1027. </xs:element>
  1028. <xs:element name="Patronymic" msprop:Generator_ColumnVarNameInTable="columnPatronymic" msprop:Generator_ColumnPropNameInRow="Patronymic" msprop:Generator_ColumnPropNameInTable="PatronymicColumn" msprop:Generator_UserColumnName="Patronymic" minOccurs="0">
  1029. <xs:simpleType>
  1030. <xs:restriction base="xs:string">
  1031. <xs:maxLength value="50" />
  1032. </xs:restriction>
  1033. </xs:simpleType>
  1034. </xs:element>
  1035. <xs:element name="Birthday" msprop:Generator_ColumnVarNameInTable="columnBirthday" msprop:Generator_ColumnPropNameInRow="Birthday" msprop:Generator_ColumnPropNameInTable="BirthdayColumn" msprop:Generator_UserColumnName="Birthday" type="xs:dateTime" minOccurs="0" />
  1036. <xs:element name="RegistrationDate" msprop:Generator_ColumnVarNameInTable="columnRegistrationDate" msprop:Generator_ColumnPropNameInRow="RegistrationDate" msprop:Generator_ColumnPropNameInTable="RegistrationDateColumn" msprop:Generator_UserColumnName="RegistrationDate" type="xs:dateTime" />
  1037. <xs:element name="Email" msprop:Generator_ColumnVarNameInTable="columnEmail" msprop:Generator_ColumnPropNameInRow="Email" msprop:Generator_ColumnPropNameInTable="EmailColumn" msprop:Generator_UserColumnName="Email" minOccurs="0">
  1038. <xs:simpleType>
  1039. <xs:restriction base="xs:string">
  1040. <xs:maxLength value="255" />
  1041. </xs:restriction>
  1042. </xs:simpleType>
  1043. </xs:element>
  1044. <xs:element name="Phone" msprop:Generator_ColumnVarNameInTable="columnPhone" msprop:Generator_ColumnPropNameInRow="Phone" msprop:Generator_ColumnPropNameInTable="PhoneColumn" msprop:Generator_UserColumnName="Phone">
  1045. <xs:simpleType>
  1046. <xs:restriction base="xs:string">
  1047. <xs:maxLength value="20" />
  1048. </xs:restriction>
  1049. </xs:simpleType>
  1050. </xs:element>
  1051. <xs:element name="GenderCode" msprop:Generator_ColumnVarNameInTable="columnGenderCode" msprop:Generator_ColumnPropNameInRow="GenderCode" msprop:Generator_ColumnPropNameInTable="GenderCodeColumn" msprop:Generator_UserColumnName="GenderCode">
  1052. <xs:simpleType>
  1053. <xs:restriction base="xs:string">
  1054. <xs:maxLength value="1" />
  1055. </xs:restriction>
  1056. </xs:simpleType>
  1057. </xs:element>
  1058. <xs:element name="PhotoPath" msprop:Generator_ColumnVarNameInTable="columnPhotoPath" msprop:Generator_ColumnPropNameInRow="PhotoPath" msprop:Generator_ColumnPropNameInTable="PhotoPathColumn" msprop:Generator_UserColumnName="PhotoPath" minOccurs="0">
  1059. <xs:simpleType>
  1060. <xs:restriction base="xs:string">
  1061. <xs:maxLength value="1000" />
  1062. </xs:restriction>
  1063. </xs:simpleType>
  1064. </xs:element>
  1065. </xs:sequence>
  1066. </xs:complexType>
  1067. </xs:element>
  1068. <xs:element name="Client_b_import" msprop:Generator_TableClassName="Client_b_importDataTable" msprop:Generator_TableVarName="tableClient_b_import" msprop:Generator_TablePropName="Client_b_import" msprop:Generator_RowDeletingName="Client_b_importRowDeleting" msprop:Generator_RowChangingName="Client_b_importRowChanging" msprop:Generator_RowEvHandlerName="Client_b_importRowChangeEventHandler" msprop:Generator_RowDeletedName="Client_b_importRowDeleted" msprop:Generator_UserTableName="Client_b_import" msprop:Generator_RowChangedName="Client_b_importRowChanged" msprop:Generator_RowEvArgName="Client_b_importRowChangeEvent" msprop:Generator_RowClassName="Client_b_importRow">
  1069. <xs:complexType>
  1070. <xs:sequence>
  1071. <xs:element name="Фамилия" msprop:Generator_ColumnVarNameInTable="columnФамилия" msprop:Generator_ColumnPropNameInRow="Фамилия" msprop:Generator_ColumnPropNameInTable="ФамилияColumn" msprop:Generator_UserColumnName="Фамилия">
  1072. <xs:simpleType>
  1073. <xs:restriction base="xs:string">
  1074. <xs:maxLength value="50" />
  1075. </xs:restriction>
  1076. </xs:simpleType>
  1077. </xs:element>
  1078. <xs:element name="Имя" msprop:Generator_ColumnVarNameInTable="columnИмя" msprop:Generator_ColumnPropNameInRow="Имя" msprop:Generator_ColumnPropNameInTable="ИмяColumn" msprop:Generator_UserColumnName="Имя">
  1079. <xs:simpleType>
  1080. <xs:restriction base="xs:string">
  1081. <xs:maxLength value="50" />
  1082. </xs:restriction>
  1083. </xs:simpleType>
  1084. </xs:element>
  1085. <xs:element name="Отчество" msprop:Generator_ColumnVarNameInTable="columnОтчество" msprop:Generator_ColumnPropNameInRow="Отчество" msprop:Generator_ColumnPropNameInTable="ОтчествоColumn" msprop:Generator_UserColumnName="Отчество">
  1086. <xs:simpleType>
  1087. <xs:restriction base="xs:string">
  1088. <xs:maxLength value="50" />
  1089. </xs:restriction>
  1090. </xs:simpleType>
  1091. </xs:element>
  1092. <xs:element name="Пол" msprop:Generator_ColumnVarNameInTable="columnПол" msprop:Generator_ColumnPropNameInRow="Пол" msprop:Generator_ColumnPropNameInTable="ПолColumn" msprop:Generator_UserColumnName="Пол">
  1093. <xs:simpleType>
  1094. <xs:restriction base="xs:string">
  1095. <xs:maxLength value="50" />
  1096. </xs:restriction>
  1097. </xs:simpleType>
  1098. </xs:element>
  1099. <xs:element name="Телефон" msprop:Generator_ColumnVarNameInTable="columnТелефон" msprop:Generator_ColumnPropNameInRow="Телефон" msprop:Generator_ColumnPropNameInTable="ТелефонColumn" msprop:Generator_UserColumnName="Телефон">
  1100. <xs:simpleType>
  1101. <xs:restriction base="xs:string">
  1102. <xs:maxLength value="50" />
  1103. </xs:restriction>
  1104. </xs:simpleType>
  1105. </xs:element>
  1106. <xs:element name="Дата_рождения" msprop:Generator_ColumnVarNameInTable="columnДата_рождения" msprop:Generator_ColumnPropNameInRow="Дата_рождения" msprop:Generator_ColumnPropNameInTable="Дата_рожденияColumn" msprop:Generator_UserColumnName="Дата_рождения" type="xs:dateTime" />
  1107. <xs:element name="Email" msprop:Generator_ColumnVarNameInTable="columnEmail" msprop:Generator_ColumnPropNameInRow="Email" msprop:Generator_ColumnPropNameInTable="EmailColumn" msprop:Generator_UserColumnName="Email">
  1108. <xs:simpleType>
  1109. <xs:restriction base="xs:string">
  1110. <xs:maxLength value="50" />
  1111. </xs:restriction>
  1112. </xs:simpleType>
  1113. </xs:element>
  1114. <xs:element name="Дата_регистрации" msprop:Generator_ColumnVarNameInTable="columnДата_регистрации" msprop:Generator_ColumnPropNameInRow="Дата_регистрации" msprop:Generator_ColumnPropNameInTable="Дата_регистрацииColumn" msprop:Generator_UserColumnName="Дата_регистрации" type="xs:dateTime" />
  1115. <xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:long" />
  1116. </xs:sequence>
  1117. </xs:complexType>
  1118. </xs:element>
  1119. <xs:element name="ClientService" msprop:Generator_TableClassName="ClientServiceDataTable" msprop:Generator_TableVarName="tableClientService" msprop:Generator_TablePropName="ClientService" msprop:Generator_RowDeletingName="ClientServiceRowDeleting" msprop:Generator_RowChangingName="ClientServiceRowChanging" msprop:Generator_RowEvHandlerName="ClientServiceRowChangeEventHandler" msprop:Generator_RowDeletedName="ClientServiceRowDeleted" msprop:Generator_UserTableName="ClientService" msprop:Generator_RowChangedName="ClientServiceRowChanged" msprop:Generator_RowEvArgName="ClientServiceRowChangeEvent" msprop:Generator_RowClassName="ClientServiceRow">
  1120. <xs:complexType>
  1121. <xs:sequence>
  1122. <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" />
  1123. <xs:element name="ClientID" msprop:Generator_ColumnVarNameInTable="columnClientID" msprop:Generator_ColumnPropNameInRow="ClientID" msprop:Generator_ColumnPropNameInTable="ClientIDColumn" msprop:Generator_UserColumnName="ClientID" type="xs:int" />
  1124. <xs:element name="ServiceID" msprop:Generator_ColumnVarNameInTable="columnServiceID" msprop:Generator_ColumnPropNameInRow="ServiceID" msprop:Generator_ColumnPropNameInTable="ServiceIDColumn" msprop:Generator_UserColumnName="ServiceID" type="xs:int" />
  1125. <xs:element name="StartTime" msprop:Generator_ColumnVarNameInTable="columnStartTime" msprop:Generator_ColumnPropNameInRow="StartTime" msprop:Generator_ColumnPropNameInTable="StartTimeColumn" msprop:Generator_UserColumnName="StartTime" type="xs:dateTime" />
  1126. <xs:element name="Comment" msprop:Generator_ColumnVarNameInTable="columnComment" msprop:Generator_ColumnPropNameInRow="Comment" msprop:Generator_ColumnPropNameInTable="CommentColumn" msprop:Generator_UserColumnName="Comment" minOccurs="0">
  1127. <xs:simpleType>
  1128. <xs:restriction base="xs:string">
  1129. <xs:maxLength value="2147483647" />
  1130. </xs:restriction>
  1131. </xs:simpleType>
  1132. </xs:element>
  1133. </xs:sequence>
  1134. </xs:complexType>
  1135. </xs:element>
  1136. <xs:element name="DocumentByService" msprop:Generator_TableClassName="DocumentByServiceDataTable" msprop:Generator_TableVarName="tableDocumentByService" msprop:Generator_TablePropName="DocumentByService" msprop:Generator_RowDeletingName="DocumentByServiceRowDeleting" msprop:Generator_RowChangingName="DocumentByServiceRowChanging" msprop:Generator_RowEvHandlerName="DocumentByServiceRowChangeEventHandler" msprop:Generator_RowDeletedName="DocumentByServiceRowDeleted" msprop:Generator_UserTableName="DocumentByService" msprop:Generator_RowChangedName="DocumentByServiceRowChanged" msprop:Generator_RowEvArgName="DocumentByServiceRowChangeEvent" msprop:Generator_RowClassName="DocumentByServiceRow">
  1137. <xs:complexType>
  1138. <xs:sequence>
  1139. <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" />
  1140. <xs:element name="ClientServiceID" msprop:Generator_ColumnVarNameInTable="columnClientServiceID" msprop:Generator_ColumnPropNameInRow="ClientServiceID" msprop:Generator_ColumnPropNameInTable="ClientServiceIDColumn" msprop:Generator_UserColumnName="ClientServiceID" type="xs:int" />
  1141. <xs:element name="DocumentPath" msprop:Generator_ColumnVarNameInTable="columnDocumentPath" msprop:Generator_ColumnPropNameInRow="DocumentPath" msprop:Generator_ColumnPropNameInTable="DocumentPathColumn" msprop:Generator_UserColumnName="DocumentPath">
  1142. <xs:simpleType>
  1143. <xs:restriction base="xs:string">
  1144. <xs:maxLength value="1000" />
  1145. </xs:restriction>
  1146. </xs:simpleType>
  1147. </xs:element>
  1148. </xs:sequence>
  1149. </xs:complexType>
  1150. </xs:element>
  1151. <xs:element name="Gender" msprop:Generator_TableClassName="GenderDataTable" msprop:Generator_TableVarName="tableGender" msprop:Generator_TablePropName="Gender" msprop:Generator_RowDeletingName="GenderRowDeleting" msprop:Generator_RowChangingName="GenderRowChanging" msprop:Generator_RowEvHandlerName="GenderRowChangeEventHandler" msprop:Generator_RowDeletedName="GenderRowDeleted" msprop:Generator_UserTableName="Gender" msprop:Generator_RowChangedName="GenderRowChanged" msprop:Generator_RowEvArgName="GenderRowChangeEvent" msprop:Generator_RowClassName="GenderRow">
  1152. <xs:complexType>
  1153. <xs:sequence>
  1154. <xs:element name="Code" msprop:Generator_ColumnVarNameInTable="columnCode" msprop:Generator_ColumnPropNameInRow="Code" msprop:Generator_ColumnPropNameInTable="CodeColumn" msprop:Generator_UserColumnName="Code">
  1155. <xs:simpleType>
  1156. <xs:restriction base="xs:string">
  1157. <xs:maxLength value="1" />
  1158. </xs:restriction>
  1159. </xs:simpleType>
  1160. </xs:element>
  1161. <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name" minOccurs="0">
  1162. <xs:simpleType>
  1163. <xs:restriction base="xs:string">
  1164. <xs:maxLength value="10" />
  1165. </xs:restriction>
  1166. </xs:simpleType>
  1167. </xs:element>
  1168. </xs:sequence>
  1169. </xs:complexType>
  1170. </xs:element>
  1171. <xs:element name="Manufacturer" msprop:Generator_TableClassName="ManufacturerDataTable" msprop:Generator_TableVarName="tableManufacturer" msprop:Generator_TablePropName="Manufacturer" msprop:Generator_RowDeletingName="ManufacturerRowDeleting" msprop:Generator_RowChangingName="ManufacturerRowChanging" msprop:Generator_RowEvHandlerName="ManufacturerRowChangeEventHandler" msprop:Generator_RowDeletedName="ManufacturerRowDeleted" msprop:Generator_UserTableName="Manufacturer" msprop:Generator_RowChangedName="ManufacturerRowChanged" msprop:Generator_RowEvArgName="ManufacturerRowChangeEvent" msprop:Generator_RowClassName="ManufacturerRow">
  1172. <xs:complexType>
  1173. <xs:sequence>
  1174. <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" />
  1175. <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name">
  1176. <xs:simpleType>
  1177. <xs:restriction base="xs:string">
  1178. <xs:maxLength value="100" />
  1179. </xs:restriction>
  1180. </xs:simpleType>
  1181. </xs:element>
  1182. <xs:element name="StartDate" msprop:Generator_ColumnVarNameInTable="columnStartDate" msprop:Generator_ColumnPropNameInRow="StartDate" msprop:Generator_ColumnPropNameInTable="StartDateColumn" msprop:Generator_UserColumnName="StartDate" type="xs:dateTime" minOccurs="0" />
  1183. </xs:sequence>
  1184. </xs:complexType>
  1185. </xs:element>
  1186. <xs:element name="Product" msprop:Generator_TableClassName="ProductDataTable" msprop:Generator_TableVarName="tableProduct" msprop:Generator_TablePropName="Product" msprop:Generator_RowDeletingName="ProductRowDeleting" msprop:Generator_RowChangingName="ProductRowChanging" msprop:Generator_RowEvHandlerName="ProductRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductRowDeleted" msprop:Generator_UserTableName="Product" msprop:Generator_RowChangedName="ProductRowChanged" msprop:Generator_RowEvArgName="ProductRowChangeEvent" msprop:Generator_RowClassName="ProductRow">
  1187. <xs:complexType>
  1188. <xs:sequence>
  1189. <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" />
  1190. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  1191. <xs:simpleType>
  1192. <xs:restriction base="xs:string">
  1193. <xs:maxLength value="100" />
  1194. </xs:restriction>
  1195. </xs:simpleType>
  1196. </xs:element>
  1197. <xs:element name="Cost" msprop:Generator_ColumnVarNameInTable="columnCost" msprop:Generator_ColumnPropNameInRow="Cost" msprop:Generator_ColumnPropNameInTable="CostColumn" msprop:Generator_UserColumnName="Cost" type="xs:decimal" />
  1198. <xs:element name="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" msprop:Generator_UserColumnName="Description" minOccurs="0">
  1199. <xs:simpleType>
  1200. <xs:restriction base="xs:string">
  1201. <xs:maxLength value="2147483647" />
  1202. </xs:restriction>
  1203. </xs:simpleType>
  1204. </xs:element>
  1205. <xs:element name="MainImagePath" msprop:Generator_ColumnVarNameInTable="columnMainImagePath" msprop:Generator_ColumnPropNameInRow="MainImagePath" msprop:Generator_ColumnPropNameInTable="MainImagePathColumn" msprop:Generator_UserColumnName="MainImagePath" minOccurs="0">
  1206. <xs:simpleType>
  1207. <xs:restriction base="xs:string">
  1208. <xs:maxLength value="1000" />
  1209. </xs:restriction>
  1210. </xs:simpleType>
  1211. </xs:element>
  1212. <xs:element name="IsActive" msprop:Generator_ColumnVarNameInTable="columnIsActive" msprop:Generator_ColumnPropNameInRow="IsActive" msprop:Generator_ColumnPropNameInTable="IsActiveColumn" msprop:Generator_UserColumnName="IsActive" type="xs:boolean" />
  1213. <xs:element name="ManufacturerID" msprop:Generator_ColumnVarNameInTable="columnManufacturerID" msprop:Generator_ColumnPropNameInRow="ManufacturerID" msprop:Generator_ColumnPropNameInTable="ManufacturerIDColumn" msprop:Generator_UserColumnName="ManufacturerID" type="xs:int" minOccurs="0" />
  1214. </xs:sequence>
  1215. </xs:complexType>
  1216. </xs:element>
  1217. <xs:element name="ProductPhoto" msprop:Generator_TableClassName="ProductPhotoDataTable" msprop:Generator_TableVarName="tableProductPhoto" msprop:Generator_TablePropName="ProductPhoto" msprop:Generator_RowDeletingName="ProductPhotoRowDeleting" msprop:Generator_RowChangingName="ProductPhotoRowChanging" msprop:Generator_RowEvHandlerName="ProductPhotoRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductPhotoRowDeleted" msprop:Generator_UserTableName="ProductPhoto" msprop:Generator_RowChangedName="ProductPhotoRowChanged" msprop:Generator_RowEvArgName="ProductPhotoRowChangeEvent" msprop:Generator_RowClassName="ProductPhotoRow">
  1218. <xs:complexType>
  1219. <xs:sequence>
  1220. <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" />
  1221. <xs:element name="ProductID" msprop:Generator_ColumnVarNameInTable="columnProductID" msprop:Generator_ColumnPropNameInRow="ProductID" msprop:Generator_ColumnPropNameInTable="ProductIDColumn" msprop:Generator_UserColumnName="ProductID" type="xs:int" />
  1222. <xs:element name="PhotoPath" msprop:Generator_ColumnVarNameInTable="columnPhotoPath" msprop:Generator_ColumnPropNameInRow="PhotoPath" msprop:Generator_ColumnPropNameInTable="PhotoPathColumn" msprop:Generator_UserColumnName="PhotoPath">
  1223. <xs:simpleType>
  1224. <xs:restriction base="xs:string">
  1225. <xs:maxLength value="1000" />
  1226. </xs:restriction>
  1227. </xs:simpleType>
  1228. </xs:element>
  1229. </xs:sequence>
  1230. </xs:complexType>
  1231. </xs:element>
  1232. <xs:element name="ProductSale" msprop:Generator_TableClassName="ProductSaleDataTable" msprop:Generator_TableVarName="tableProductSale" msprop:Generator_TablePropName="ProductSale" msprop:Generator_RowDeletingName="ProductSaleRowDeleting" msprop:Generator_RowChangingName="ProductSaleRowChanging" msprop:Generator_RowEvHandlerName="ProductSaleRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductSaleRowDeleted" msprop:Generator_UserTableName="ProductSale" msprop:Generator_RowChangedName="ProductSaleRowChanged" msprop:Generator_RowEvArgName="ProductSaleRowChangeEvent" msprop:Generator_RowClassName="ProductSaleRow">
  1233. <xs:complexType>
  1234. <xs:sequence>
  1235. <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" />
  1236. <xs:element name="SaleDate" msprop:Generator_ColumnVarNameInTable="columnSaleDate" msprop:Generator_ColumnPropNameInRow="SaleDate" msprop:Generator_ColumnPropNameInTable="SaleDateColumn" msprop:Generator_UserColumnName="SaleDate" type="xs:dateTime" />
  1237. <xs:element name="ProductID" msprop:Generator_ColumnVarNameInTable="columnProductID" msprop:Generator_ColumnPropNameInRow="ProductID" msprop:Generator_ColumnPropNameInTable="ProductIDColumn" msprop:Generator_UserColumnName="ProductID" type="xs:int" />
  1238. <xs:element name="Quantity" msprop:Generator_ColumnVarNameInTable="columnQuantity" msprop:Generator_ColumnPropNameInRow="Quantity" msprop:Generator_ColumnPropNameInTable="QuantityColumn" msprop:Generator_UserColumnName="Quantity" type="xs:int" />
  1239. <xs:element name="ClientServiceID" msprop:Generator_ColumnVarNameInTable="columnClientServiceID" msprop:Generator_ColumnPropNameInRow="ClientServiceID" msprop:Generator_ColumnPropNameInTable="ClientServiceIDColumn" msprop:Generator_UserColumnName="ClientServiceID" type="xs:int" minOccurs="0" />
  1240. </xs:sequence>
  1241. </xs:complexType>
  1242. </xs:element>
  1243. <xs:element name="Service" msprop:Generator_TableClassName="ServiceDataTable" msprop:Generator_TableVarName="tableService" msprop:Generator_TablePropName="Service" msprop:Generator_RowDeletingName="ServiceRowDeleting" msprop:Generator_RowChangingName="ServiceRowChanging" msprop:Generator_RowEvHandlerName="ServiceRowChangeEventHandler" msprop:Generator_RowDeletedName="ServiceRowDeleted" msprop:Generator_UserTableName="Service" msprop:Generator_RowChangedName="ServiceRowChanged" msprop:Generator_RowEvArgName="ServiceRowChangeEvent" msprop:Generator_RowClassName="ServiceRow">
  1244. <xs:complexType>
  1245. <xs:sequence>
  1246. <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" />
  1247. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  1248. <xs:simpleType>
  1249. <xs:restriction base="xs:string">
  1250. <xs:maxLength value="100" />
  1251. </xs:restriction>
  1252. </xs:simpleType>
  1253. </xs:element>
  1254. <xs:element name="Cost" msprop:Generator_ColumnVarNameInTable="columnCost" msprop:Generator_ColumnPropNameInRow="Cost" msprop:Generator_ColumnPropNameInTable="CostColumn" msprop:Generator_UserColumnName="Cost" type="xs:decimal" />
  1255. <xs:element name="DurationInSeconds" msprop:Generator_ColumnVarNameInTable="columnDurationInSeconds" msprop:Generator_ColumnPropNameInRow="DurationInSeconds" msprop:Generator_ColumnPropNameInTable="DurationInSecondsColumn" msprop:Generator_UserColumnName="DurationInSeconds" type="xs:int" />
  1256. <xs:element name="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" msprop:Generator_UserColumnName="Description" minOccurs="0">
  1257. <xs:simpleType>
  1258. <xs:restriction base="xs:string">
  1259. <xs:maxLength value="2147483647" />
  1260. </xs:restriction>
  1261. </xs:simpleType>
  1262. </xs:element>
  1263. <xs:element name="Discount" msprop:Generator_ColumnVarNameInTable="columnDiscount" msprop:Generator_ColumnPropNameInRow="Discount" msprop:Generator_ColumnPropNameInTable="DiscountColumn" msprop:Generator_UserColumnName="Discount" type="xs:double" minOccurs="0" />
  1264. <xs:element name="MainImagePath" msprop:Generator_ColumnVarNameInTable="columnMainImagePath" msprop:Generator_ColumnPropNameInRow="MainImagePath" msprop:Generator_ColumnPropNameInTable="MainImagePathColumn" msprop:Generator_UserColumnName="MainImagePath" minOccurs="0">
  1265. <xs:simpleType>
  1266. <xs:restriction base="xs:string">
  1267. <xs:maxLength value="1000" />
  1268. </xs:restriction>
  1269. </xs:simpleType>
  1270. </xs:element>
  1271. </xs:sequence>
  1272. </xs:complexType>
  1273. </xs:element>
  1274. <xs:element name="Service_b_import" msprop:Generator_TableClassName="Service_b_importDataTable" msprop:Generator_TableVarName="tableService_b_import" msprop:Generator_TablePropName="Service_b_import" msprop:Generator_RowDeletingName="Service_b_importRowDeleting" msprop:Generator_RowChangingName="Service_b_importRowChanging" msprop:Generator_RowEvHandlerName="Service_b_importRowChangeEventHandler" msprop:Generator_RowDeletedName="Service_b_importRowDeleted" msprop:Generator_UserTableName="Service_b_import" msprop:Generator_RowChangedName="Service_b_importRowChanged" msprop:Generator_RowEvArgName="Service_b_importRowChangeEvent" msprop:Generator_RowClassName="Service_b_importRow">
  1275. <xs:complexType>
  1276. <xs:sequence>
  1277. <xs:element name="Наименование_услуги" msprop:Generator_ColumnVarNameInTable="columnНаименование_услуги" msprop:Generator_ColumnPropNameInRow="Наименование_услуги" msprop:Generator_ColumnPropNameInTable="Наименование_услугиColumn" msprop:Generator_UserColumnName="Наименование_услуги">
  1278. <xs:simpleType>
  1279. <xs:restriction base="xs:string">
  1280. <xs:maxLength value="50" />
  1281. </xs:restriction>
  1282. </xs:simpleType>
  1283. </xs:element>
  1284. <xs:element name="Главное_изображение" msprop:Generator_ColumnVarNameInTable="columnГлавное_изображение" msprop:Generator_ColumnPropNameInRow="Главное_изображение" msprop:Generator_ColumnPropNameInTable="Главное_изображениеColumn" msprop:Generator_UserColumnName="Главное_изображение">
  1285. <xs:simpleType>
  1286. <xs:restriction base="xs:string">
  1287. <xs:maxLength value="100" />
  1288. </xs:restriction>
  1289. </xs:simpleType>
  1290. </xs:element>
  1291. <xs:element name="Длительность" msprop:Generator_ColumnVarNameInTable="columnДлительность" msprop:Generator_ColumnPropNameInRow="Длительность" msprop:Generator_ColumnPropNameInTable="ДлительностьColumn" msprop:Generator_UserColumnName="Длительность">
  1292. <xs:simpleType>
  1293. <xs:restriction base="xs:string">
  1294. <xs:maxLength value="50" />
  1295. </xs:restriction>
  1296. </xs:simpleType>
  1297. </xs:element>
  1298. <xs:element name="Стоимость" msprop:Generator_ColumnVarNameInTable="columnСтоимость" msprop:Generator_ColumnPropNameInRow="Стоимость" msprop:Generator_ColumnPropNameInTable="СтоимостьColumn" msprop:Generator_UserColumnName="Стоимость">
  1299. <xs:simpleType>
  1300. <xs:restriction base="xs:string">
  1301. <xs:maxLength value="50" />
  1302. </xs:restriction>
  1303. </xs:simpleType>
  1304. </xs:element>
  1305. <xs:element name="Действующая_скидка" msprop:Generator_ColumnVarNameInTable="columnДействующая_скидка" msprop:Generator_ColumnPropNameInRow="Действующая_скидка" msprop:Generator_ColumnPropNameInTable="Действующая_скидкаColumn" msprop:Generator_UserColumnName="Действующая_скидка">
  1306. <xs:simpleType>
  1307. <xs:restriction base="xs:string">
  1308. <xs:maxLength value="50" />
  1309. </xs:restriction>
  1310. </xs:simpleType>
  1311. </xs:element>
  1312. <xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:long" />
  1313. </xs:sequence>
  1314. </xs:complexType>
  1315. </xs:element>
  1316. <xs:element name="Serviceclient_b_import" msprop:Generator_TableClassName="Serviceclient_b_importDataTable" msprop:Generator_TableVarName="tableServiceclient_b_import" msprop:Generator_TablePropName="Serviceclient_b_import" msprop:Generator_RowDeletingName="Serviceclient_b_importRowDeleting" msprop:Generator_RowChangingName="Serviceclient_b_importRowChanging" msprop:Generator_RowEvHandlerName="Serviceclient_b_importRowChangeEventHandler" msprop:Generator_RowDeletedName="Serviceclient_b_importRowDeleted" msprop:Generator_UserTableName="Serviceclient_b_import" msprop:Generator_RowChangedName="Serviceclient_b_importRowChanged" msprop:Generator_RowEvArgName="Serviceclient_b_importRowChangeEvent" msprop:Generator_RowClassName="Serviceclient_b_importRow">
  1317. <xs:complexType>
  1318. <xs:sequence>
  1319. <xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:long" />
  1320. <xs:element name="Услуга" msprop:Generator_ColumnVarNameInTable="columnУслуга" msprop:Generator_ColumnPropNameInRow="Услуга" msprop:Generator_ColumnPropNameInTable="УслугаColumn" msprop:Generator_UserColumnName="Услуга">
  1321. <xs:simpleType>
  1322. <xs:restriction base="xs:string">
  1323. <xs:maxLength value="50" />
  1324. </xs:restriction>
  1325. </xs:simpleType>
  1326. </xs:element>
  1327. <xs:element name="Начало_оказания_услуги" msprop:Generator_ColumnVarNameInTable="columnНачало_оказания_услуги" msprop:Generator_ColumnPropNameInRow="Начало_оказания_услуги" msprop:Generator_ColumnPropNameInTable="Начало_оказания_услугиColumn" msprop:Generator_UserColumnName="Начало_оказания_услуги" type="xs:dateTime" />
  1328. <xs:element name="Клиент" msprop:Generator_ColumnVarNameInTable="columnКлиент" msprop:Generator_ColumnPropNameInRow="Клиент" msprop:Generator_ColumnPropNameInTable="КлиентColumn" msprop:Generator_UserColumnName="Клиент">
  1329. <xs:simpleType>
  1330. <xs:restriction base="xs:string">
  1331. <xs:maxLength value="50" />
  1332. </xs:restriction>
  1333. </xs:simpleType>
  1334. </xs:element>
  1335. </xs:sequence>
  1336. </xs:complexType>
  1337. </xs:element>
  1338. <xs:element name="ServicePhoto" msprop:Generator_TableClassName="ServicePhotoDataTable" msprop:Generator_TableVarName="tableServicePhoto" msprop:Generator_TablePropName="ServicePhoto" msprop:Generator_RowDeletingName="ServicePhotoRowDeleting" msprop:Generator_RowChangingName="ServicePhotoRowChanging" msprop:Generator_RowEvHandlerName="ServicePhotoRowChangeEventHandler" msprop:Generator_RowDeletedName="ServicePhotoRowDeleted" msprop:Generator_UserTableName="ServicePhoto" msprop:Generator_RowChangedName="ServicePhotoRowChanged" msprop:Generator_RowEvArgName="ServicePhotoRowChangeEvent" msprop:Generator_RowClassName="ServicePhotoRow">
  1339. <xs:complexType>
  1340. <xs:sequence>
  1341. <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" />
  1342. <xs:element name="ServiceID" msprop:Generator_ColumnVarNameInTable="columnServiceID" msprop:Generator_ColumnPropNameInRow="ServiceID" msprop:Generator_ColumnPropNameInTable="ServiceIDColumn" msprop:Generator_UserColumnName="ServiceID" type="xs:int" />
  1343. <xs:element name="PhotoPath" msprop:Generator_ColumnVarNameInTable="columnPhotoPath" msprop:Generator_ColumnPropNameInRow="PhotoPath" msprop:Generator_ColumnPropNameInTable="PhotoPathColumn" msprop:Generator_UserColumnName="PhotoPath">
  1344. <xs:simpleType>
  1345. <xs:restriction base="xs:string">
  1346. <xs:maxLength value="1000" />
  1347. </xs:restriction>
  1348. </xs:simpleType>
  1349. </xs:element>
  1350. </xs:sequence>
  1351. </xs:complexType>
  1352. </xs:element>
  1353. <xs:element name="Tag" msprop:Generator_TableClassName="TagDataTable" msprop:Generator_TableVarName="tableTag" msprop:Generator_TablePropName="Tag" msprop:Generator_RowDeletingName="TagRowDeleting" msprop:Generator_RowChangingName="TagRowChanging" msprop:Generator_RowEvHandlerName="TagRowChangeEventHandler" msprop:Generator_RowDeletedName="TagRowDeleted" msprop:Generator_UserTableName="Tag" msprop:Generator_RowChangedName="TagRowChanged" msprop:Generator_RowEvArgName="TagRowChangeEvent" msprop:Generator_RowClassName="TagRow">
  1354. <xs:complexType>
  1355. <xs:sequence>
  1356. <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" />
  1357. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  1358. <xs:simpleType>
  1359. <xs:restriction base="xs:string">
  1360. <xs:maxLength value="30" />
  1361. </xs:restriction>
  1362. </xs:simpleType>
  1363. </xs:element>
  1364. <xs:element name="Color" msprop:Generator_ColumnVarNameInTable="columnColor" msprop:Generator_ColumnPropNameInRow="Color" msprop:Generator_ColumnPropNameInTable="ColorColumn" msprop:Generator_UserColumnName="Color">
  1365. <xs:simpleType>
  1366. <xs:restriction base="xs:string">
  1367. <xs:maxLength value="6" />
  1368. </xs:restriction>
  1369. </xs:simpleType>
  1370. </xs:element>
  1371. </xs:sequence>
  1372. </xs:complexType>
  1373. </xs:element>
  1374. <xs:element name="TagOfClient" msprop:Generator_TableClassName="TagOfClientDataTable" msprop:Generator_TableVarName="tableTagOfClient" msprop:Generator_TablePropName="TagOfClient" msprop:Generator_RowDeletingName="TagOfClientRowDeleting" msprop:Generator_RowChangingName="TagOfClientRowChanging" msprop:Generator_RowEvHandlerName="TagOfClientRowChangeEventHandler" msprop:Generator_RowDeletedName="TagOfClientRowDeleted" msprop:Generator_UserTableName="TagOfClient" msprop:Generator_RowChangedName="TagOfClientRowChanged" msprop:Generator_RowEvArgName="TagOfClientRowChangeEvent" msprop:Generator_RowClassName="TagOfClientRow">
  1375. <xs:complexType>
  1376. <xs:sequence>
  1377. <xs:element name="ClientID" msprop:Generator_ColumnVarNameInTable="columnClientID" msprop:Generator_ColumnPropNameInRow="ClientID" msprop:Generator_ColumnPropNameInTable="ClientIDColumn" msprop:Generator_UserColumnName="ClientID" type="xs:int" />
  1378. <xs:element name="TagID" msprop:Generator_ColumnVarNameInTable="columnTagID" msprop:Generator_ColumnPropNameInRow="TagID" msprop:Generator_ColumnPropNameInTable="TagIDColumn" msprop:Generator_UserColumnName="TagID" type="xs:int" />
  1379. </xs:sequence>
  1380. </xs:complexType>
  1381. </xs:element>
  1382. </xs:choice>
  1383. </xs:complexType>
  1384. <xs:unique name="Constraint1" msdata:PrimaryKey="true">
  1385. <xs:selector xpath=".//mstns:AttachedProduct" />
  1386. <xs:field xpath="mstns:MainProductID" />
  1387. <xs:field xpath="mstns:AttachedProductID" />
  1388. </xs:unique>
  1389. <xs:unique name="Client_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1390. <xs:selector xpath=".//mstns:Client" />
  1391. <xs:field xpath="mstns:ID" />
  1392. </xs:unique>
  1393. <xs:unique name="Client_b_import_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1394. <xs:selector xpath=".//mstns:Client_b_import" />
  1395. <xs:field xpath="mstns:ID" />
  1396. </xs:unique>
  1397. <xs:unique name="ClientService_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1398. <xs:selector xpath=".//mstns:ClientService" />
  1399. <xs:field xpath="mstns:ID" />
  1400. </xs:unique>
  1401. <xs:unique name="DocumentByService_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1402. <xs:selector xpath=".//mstns:DocumentByService" />
  1403. <xs:field xpath="mstns:ID" />
  1404. </xs:unique>
  1405. <xs:unique name="Gender_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1406. <xs:selector xpath=".//mstns:Gender" />
  1407. <xs:field xpath="mstns:Code" />
  1408. </xs:unique>
  1409. <xs:unique name="Manufacturer_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1410. <xs:selector xpath=".//mstns:Manufacturer" />
  1411. <xs:field xpath="mstns:ID" />
  1412. </xs:unique>
  1413. <xs:unique name="Product_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1414. <xs:selector xpath=".//mstns:Product" />
  1415. <xs:field xpath="mstns:ID" />
  1416. </xs:unique>
  1417. <xs:unique name="ProductPhoto_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1418. <xs:selector xpath=".//mstns:ProductPhoto" />
  1419. <xs:field xpath="mstns:ID" />
  1420. </xs:unique>
  1421. <xs:unique name="ProductSale_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1422. <xs:selector xpath=".//mstns:ProductSale" />
  1423. <xs:field xpath="mstns:ID" />
  1424. </xs:unique>
  1425. <xs:unique name="Service_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1426. <xs:selector xpath=".//mstns:Service" />
  1427. <xs:field xpath="mstns:ID" />
  1428. </xs:unique>
  1429. <xs:unique name="Service_b_import_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1430. <xs:selector xpath=".//mstns:Service_b_import" />
  1431. <xs:field xpath="mstns:ID" />
  1432. </xs:unique>
  1433. <xs:unique name="Serviceclient_b_import_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1434. <xs:selector xpath=".//mstns:Serviceclient_b_import" />
  1435. <xs:field xpath="mstns:ID" />
  1436. </xs:unique>
  1437. <xs:unique name="ServicePhoto_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1438. <xs:selector xpath=".//mstns:ServicePhoto" />
  1439. <xs:field xpath="mstns:ID" />
  1440. </xs:unique>
  1441. <xs:unique name="Tag_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1442. <xs:selector xpath=".//mstns:Tag" />
  1443. <xs:field xpath="mstns:ID" />
  1444. </xs:unique>
  1445. <xs:unique name="TagOfClient_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1446. <xs:selector xpath=".//mstns:TagOfClient" />
  1447. <xs:field xpath="mstns:ClientID" />
  1448. <xs:field xpath="mstns:TagID" />
  1449. </xs:unique>
  1450. </xs:element>
  1451. <xs:annotation>
  1452. <xs:appinfo>
  1453. <msdata:Relationship name="FK_AttachedProduct_Product" msdata:parent="Product" msdata:child="AttachedProduct" msdata:parentkey="ID" msdata:childkey="MainProductID" msprop:Generator_UserChildTable="AttachedProduct" msprop:Generator_ChildPropName="GetAttachedProductRowsByFK_AttachedProduct_Product" msprop:Generator_UserRelationName="FK_AttachedProduct_Product" msprop:Generator_RelationVarName="relationFK_AttachedProduct_Product" msprop:Generator_UserParentTable="Product" msprop:Generator_ParentPropName="ProductRowByFK_AttachedProduct_Product" />
  1454. <msdata:Relationship name="FK_AttachedProduct_Product1" msdata:parent="Product" msdata:child="AttachedProduct" msdata:parentkey="ID" msdata:childkey="AttachedProductID" msprop:Generator_UserChildTable="AttachedProduct" msprop:Generator_ChildPropName="GetAttachedProductRowsByFK_AttachedProduct_Product1" msprop:Generator_UserRelationName="FK_AttachedProduct_Product1" msprop:Generator_RelationVarName="relationFK_AttachedProduct_Product1" msprop:Generator_UserParentTable="Product" msprop:Generator_ParentPropName="ProductRowByFK_AttachedProduct_Product1" />
  1455. <msdata:Relationship name="FK_Client_Gender" msdata:parent="Gender" msdata:child="Client" msdata:parentkey="Code" msdata:childkey="GenderCode" msprop:Generator_UserChildTable="Client" msprop:Generator_ChildPropName="GetClientRows" msprop:Generator_UserRelationName="FK_Client_Gender" msprop:Generator_RelationVarName="relationFK_Client_Gender" msprop:Generator_UserParentTable="Gender" msprop:Generator_ParentPropName="GenderRow" />
  1456. <msdata:Relationship name="FK_ClientService_Client" msdata:parent="Client" msdata:child="ClientService" msdata:parentkey="ID" msdata:childkey="ClientID" msprop:Generator_UserChildTable="ClientService" msprop:Generator_ChildPropName="GetClientServiceRows" msprop:Generator_UserRelationName="FK_ClientService_Client" msprop:Generator_ParentPropName="ClientRow" msprop:Generator_RelationVarName="relationFK_ClientService_Client" msprop:Generator_UserParentTable="Client" />
  1457. <msdata:Relationship name="FK_ClientService_Service" msdata:parent="Service" msdata:child="ClientService" msdata:parentkey="ID" msdata:childkey="ServiceID" msprop:Generator_UserChildTable="ClientService" msprop:Generator_ChildPropName="GetClientServiceRows" msprop:Generator_UserRelationName="FK_ClientService_Service" msprop:Generator_RelationVarName="relationFK_ClientService_Service" msprop:Generator_UserParentTable="Service" msprop:Generator_ParentPropName="ServiceRow" />
  1458. <msdata:Relationship name="FK_DocumentByService_ClientService" msdata:parent="ClientService" msdata:child="DocumentByService" msdata:parentkey="ID" msdata:childkey="ClientServiceID" msprop:Generator_UserChildTable="DocumentByService" msprop:Generator_ChildPropName="GetDocumentByServiceRows" msprop:Generator_UserRelationName="FK_DocumentByService_ClientService" msprop:Generator_ParentPropName="ClientServiceRow" msprop:Generator_RelationVarName="relationFK_DocumentByService_ClientService" msprop:Generator_UserParentTable="ClientService" />
  1459. <msdata:Relationship name="FK_Product_Manufacturer" msdata:parent="Manufacturer" msdata:child="Product" msdata:parentkey="ID" msdata:childkey="ManufacturerID" msprop:Generator_UserChildTable="Product" msprop:Generator_ChildPropName="GetProductRows" msprop:Generator_UserRelationName="FK_Product_Manufacturer" msprop:Generator_ParentPropName="ManufacturerRow" msprop:Generator_RelationVarName="relationFK_Product_Manufacturer" msprop:Generator_UserParentTable="Manufacturer" />
  1460. <msdata:Relationship name="FK_ProductPhoto_Product" msdata:parent="Product" msdata:child="ProductPhoto" msdata:parentkey="ID" msdata:childkey="ProductID" msprop:Generator_UserChildTable="ProductPhoto" msprop:Generator_ChildPropName="GetProductPhotoRows" msprop:Generator_UserRelationName="FK_ProductPhoto_Product" msprop:Generator_ParentPropName="ProductRow" msprop:Generator_RelationVarName="relationFK_ProductPhoto_Product" msprop:Generator_UserParentTable="Product" />
  1461. <msdata:Relationship name="FK_ProductSale_ClientService" msdata:parent="ClientService" msdata:child="ProductSale" msdata:parentkey="ID" msdata:childkey="ClientServiceID" msprop:Generator_UserChildTable="ProductSale" msprop:Generator_ChildPropName="GetProductSaleRows" msprop:Generator_UserRelationName="FK_ProductSale_ClientService" msprop:Generator_ParentPropName="ClientServiceRow" msprop:Generator_RelationVarName="relationFK_ProductSale_ClientService" msprop:Generator_UserParentTable="ClientService" />
  1462. <msdata:Relationship name="FK_ProductSale_Product" msdata:parent="Product" msdata:child="ProductSale" msdata:parentkey="ID" msdata:childkey="ProductID" msprop:Generator_UserChildTable="ProductSale" msprop:Generator_ChildPropName="GetProductSaleRows" msprop:Generator_UserRelationName="FK_ProductSale_Product" msprop:Generator_ParentPropName="ProductRow" msprop:Generator_RelationVarName="relationFK_ProductSale_Product" msprop:Generator_UserParentTable="Product" />
  1463. <msdata:Relationship name="FK_ServicePhoto_Service" msdata:parent="Service" msdata:child="ServicePhoto" msdata:parentkey="ID" msdata:childkey="ServiceID" msprop:Generator_UserChildTable="ServicePhoto" msprop:Generator_ChildPropName="GetServicePhotoRows" msprop:Generator_UserRelationName="FK_ServicePhoto_Service" msprop:Generator_ParentPropName="ServiceRow" msprop:Generator_RelationVarName="relationFK_ServicePhoto_Service" msprop:Generator_UserParentTable="Service" />
  1464. <msdata:Relationship name="FK_TagOfClient_Client" msdata:parent="Client" msdata:child="TagOfClient" msdata:parentkey="ID" msdata:childkey="ClientID" msprop:Generator_UserChildTable="TagOfClient" msprop:Generator_ChildPropName="GetTagOfClientRows" msprop:Generator_UserRelationName="FK_TagOfClient_Client" msprop:Generator_ParentPropName="ClientRow" msprop:Generator_RelationVarName="relationFK_TagOfClient_Client" msprop:Generator_UserParentTable="Client" />
  1465. <msdata:Relationship name="FK_TagOfClient_Tag" msdata:parent="Tag" msdata:child="TagOfClient" msdata:parentkey="ID" msdata:childkey="TagID" msprop:Generator_UserChildTable="TagOfClient" msprop:Generator_ChildPropName="GetTagOfClientRows" msprop:Generator_UserRelationName="FK_TagOfClient_Tag" msprop:Generator_ParentPropName="TagRow" msprop:Generator_RelationVarName="relationFK_TagOfClient_Tag" msprop:Generator_UserParentTable="Tag" />
  1466. </xs:appinfo>
  1467. </xs:annotation>
  1468. </xs:schema>