TechServiceBAUDataSet.xsd 101 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="TechServiceBAUDataSet" targetNamespace="http://tempuri.org/TechServiceBAUDataSet.xsd" xmlns:mstns="http://tempuri.org/TechServiceBAUDataSet.xsd" xmlns="http://tempuri.org/TechServiceBAUDataSet.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="TechServiceBAUConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="TechServiceBAUConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.СУБД_Техносервис.Properties.Settings.GlobalReference.Default.TechServiceBAUConnectionString" Provider="System.Data.SqlClient" />
  8. </Connections>
  9. <Tables>
  10. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ClientTableAdapter" GeneratorDataComponentClassName="ClientTableAdapter" Name="Client" UserDataComponentName="ClientTableAdapter">
  11. <MainSource>
  12. <DbSource ConnectionRef="TechServiceBAUConnectionString (Settings)" DbObjectName="TechServiceBAU.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">
  13. <DeleteCommand>
  14. <DbCommand CommandType="Text" ModifiedByUser="false">
  15. <CommandText>DELETE FROM [dbo].[Client] WHERE (([IdClient] = @Original_IdClient) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)))</CommandText>
  16. <Parameters>
  17. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdClient" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdClient" SourceColumnNullMapping="false" SourceVersion="Original" />
  18. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Surname" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Surname" SourceColumnNullMapping="true" SourceVersion="Original" />
  19. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Surname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Surname" SourceColumnNullMapping="false" SourceVersion="Original" />
  20. <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" />
  21. <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" />
  22. <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" />
  23. <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" />
  24. </Parameters>
  25. </DbCommand>
  26. </DeleteCommand>
  27. <InsertCommand>
  28. <DbCommand CommandType="Text" ModifiedByUser="false">
  29. <CommandText>INSERT INTO [dbo].[Client] ([Surname], [Name], [Patronymic]) VALUES (@Surname, @Name, @Patronymic);
  30. SELECT IdClient, Surname, Name, Patronymic FROM Client WHERE (IdClient = SCOPE_IDENTITY())</CommandText>
  31. <Parameters>
  32. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Surname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Surname" SourceColumnNullMapping="false" SourceVersion="Current" />
  33. <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" />
  34. <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" />
  35. </Parameters>
  36. </DbCommand>
  37. </InsertCommand>
  38. <SelectCommand>
  39. <DbCommand CommandType="Text" ModifiedByUser="false">
  40. <CommandText>SELECT IdClient, Surname, Name, Patronymic FROM dbo.Client</CommandText>
  41. <Parameters />
  42. </DbCommand>
  43. </SelectCommand>
  44. <UpdateCommand>
  45. <DbCommand CommandType="Text" ModifiedByUser="false">
  46. <CommandText>UPDATE [dbo].[Client] SET [Surname] = @Surname, [Name] = @Name, [Patronymic] = @Patronymic WHERE (([IdClient] = @Original_IdClient) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)));
  47. SELECT IdClient, Surname, Name, Patronymic FROM Client WHERE (IdClient = @IdClient)</CommandText>
  48. <Parameters>
  49. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Surname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Surname" SourceColumnNullMapping="false" SourceVersion="Current" />
  50. <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" />
  51. <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" />
  52. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdClient" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdClient" SourceColumnNullMapping="false" SourceVersion="Original" />
  53. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Surname" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Surname" SourceColumnNullMapping="true" SourceVersion="Original" />
  54. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Surname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Surname" SourceColumnNullMapping="false" SourceVersion="Original" />
  55. <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" />
  56. <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" />
  57. <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" />
  58. <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" />
  59. <Parameter AllowDbNull="false" AutogeneratedName="IdClient" ColumnName="IdClient" DataSourceName="TechServiceBAU.dbo.Client" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdClient" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IdClient" SourceColumnNullMapping="false" SourceVersion="Current" />
  60. </Parameters>
  61. </DbCommand>
  62. </UpdateCommand>
  63. </DbSource>
  64. </MainSource>
  65. <Mappings>
  66. <Mapping SourceColumn="IdClient" DataSetColumn="IdClient" />
  67. <Mapping SourceColumn="Surname" DataSetColumn="Surname" />
  68. <Mapping SourceColumn="Name" DataSetColumn="Name" />
  69. <Mapping SourceColumn="Patronymic" DataSetColumn="Patronymic" />
  70. </Mappings>
  71. <Sources />
  72. </TableAdapter>
  73. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="EmployeeTableAdapter" GeneratorDataComponentClassName="EmployeeTableAdapter" Name="Employee" UserDataComponentName="EmployeeTableAdapter">
  74. <MainSource>
  75. <DbSource ConnectionRef="TechServiceBAUConnectionString (Settings)" DbObjectName="TechServiceBAU.dbo.Employee" 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">
  76. <DeleteCommand>
  77. <DbCommand CommandType="Text" ModifiedByUser="false">
  78. <CommandText>DELETE FROM [dbo].[Employee] WHERE (([IdEmployee] = @Original_IdEmployee) AND ((@IsNull_IdRole = 1 AND [IdRole] IS NULL) OR ([IdRole] = @Original_IdRole)) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Login = 1 AND [Login] IS NULL) OR ([Login] = @Original_Login)) AND ((@IsNull_Password = 1 AND [Password] IS NULL) OR ([Password] = @Original_Password)) AND ((@IsNull_Photo = 1 AND [Photo] IS NULL) OR ([Photo] = @Original_Photo)))</CommandText>
  79. <Parameters>
  80. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdEmployee" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdEmployee" SourceColumnNullMapping="false" SourceVersion="Original" />
  81. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IdRole" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdRole" SourceColumnNullMapping="true" SourceVersion="Original" />
  82. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdRole" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdRole" SourceColumnNullMapping="false" SourceVersion="Original" />
  83. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Surname" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Surname" SourceColumnNullMapping="true" SourceVersion="Original" />
  84. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Surname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Surname" SourceColumnNullMapping="false" SourceVersion="Original" />
  85. <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" />
  86. <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" />
  87. <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" />
  88. <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" />
  89. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Login" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Login" SourceColumnNullMapping="true" SourceVersion="Original" />
  90. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Login" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Login" SourceColumnNullMapping="false" SourceVersion="Original" />
  91. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Password" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="true" SourceVersion="Original" />
  92. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Original" />
  93. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Photo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Photo" SourceColumnNullMapping="true" SourceVersion="Original" />
  94. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Photo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Photo" SourceColumnNullMapping="false" SourceVersion="Original" />
  95. </Parameters>
  96. </DbCommand>
  97. </DeleteCommand>
  98. <InsertCommand>
  99. <DbCommand CommandType="Text" ModifiedByUser="false">
  100. <CommandText>INSERT INTO [dbo].[Employee] ([IdRole], [Surname], [Name], [Patronymic], [Login], [Password], [Photo]) VALUES (@IdRole, @Surname, @Name, @Patronymic, @Login, @Password, @Photo);
  101. SELECT IdEmployee, IdRole, Surname, Name, Patronymic, Login, Password, Photo FROM Employee WHERE (IdEmployee = SCOPE_IDENTITY())</CommandText>
  102. <Parameters>
  103. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdRole" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdRole" SourceColumnNullMapping="false" SourceVersion="Current" />
  104. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Surname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Surname" SourceColumnNullMapping="false" SourceVersion="Current" />
  105. <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" />
  106. <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" />
  107. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Login" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Login" SourceColumnNullMapping="false" SourceVersion="Current" />
  108. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Current" />
  109. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Photo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Photo" SourceColumnNullMapping="false" SourceVersion="Current" />
  110. </Parameters>
  111. </DbCommand>
  112. </InsertCommand>
  113. <SelectCommand>
  114. <DbCommand CommandType="Text" ModifiedByUser="false">
  115. <CommandText>SELECT IdEmployee, IdRole, Surname, Name, Patronymic, Login, Password, Photo FROM dbo.Employee</CommandText>
  116. <Parameters />
  117. </DbCommand>
  118. </SelectCommand>
  119. <UpdateCommand>
  120. <DbCommand CommandType="Text" ModifiedByUser="false">
  121. <CommandText>UPDATE [dbo].[Employee] SET [IdRole] = @IdRole, [Surname] = @Surname, [Name] = @Name, [Patronymic] = @Patronymic, [Login] = @Login, [Password] = @Password, [Photo] = @Photo WHERE (([IdEmployee] = @Original_IdEmployee) AND ((@IsNull_IdRole = 1 AND [IdRole] IS NULL) OR ([IdRole] = @Original_IdRole)) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Login = 1 AND [Login] IS NULL) OR ([Login] = @Original_Login)) AND ((@IsNull_Password = 1 AND [Password] IS NULL) OR ([Password] = @Original_Password)) AND ((@IsNull_Photo = 1 AND [Photo] IS NULL) OR ([Photo] = @Original_Photo)));
  122. SELECT IdEmployee, IdRole, Surname, Name, Patronymic, Login, Password, Photo FROM Employee WHERE (IdEmployee = @IdEmployee)</CommandText>
  123. <Parameters>
  124. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdRole" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdRole" SourceColumnNullMapping="false" SourceVersion="Current" />
  125. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Surname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Surname" SourceColumnNullMapping="false" SourceVersion="Current" />
  126. <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" />
  127. <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" />
  128. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Login" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Login" SourceColumnNullMapping="false" SourceVersion="Current" />
  129. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Current" />
  130. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Photo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Photo" SourceColumnNullMapping="false" SourceVersion="Current" />
  131. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdEmployee" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdEmployee" SourceColumnNullMapping="false" SourceVersion="Original" />
  132. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IdRole" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdRole" SourceColumnNullMapping="true" SourceVersion="Original" />
  133. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdRole" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdRole" SourceColumnNullMapping="false" SourceVersion="Original" />
  134. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Surname" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Surname" SourceColumnNullMapping="true" SourceVersion="Original" />
  135. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Surname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Surname" SourceColumnNullMapping="false" SourceVersion="Original" />
  136. <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" />
  137. <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" />
  138. <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" />
  139. <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" />
  140. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Login" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Login" SourceColumnNullMapping="true" SourceVersion="Original" />
  141. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Login" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Login" SourceColumnNullMapping="false" SourceVersion="Original" />
  142. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Password" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="true" SourceVersion="Original" />
  143. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Original" />
  144. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Photo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Photo" SourceColumnNullMapping="true" SourceVersion="Original" />
  145. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Photo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Photo" SourceColumnNullMapping="false" SourceVersion="Original" />
  146. <Parameter AllowDbNull="false" AutogeneratedName="IdEmployee" ColumnName="IdEmployee" DataSourceName="TechServiceBAU.dbo.Employee" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdEmployee" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IdEmployee" SourceColumnNullMapping="false" SourceVersion="Current" />
  147. </Parameters>
  148. </DbCommand>
  149. </UpdateCommand>
  150. </DbSource>
  151. </MainSource>
  152. <Mappings>
  153. <Mapping SourceColumn="IdEmployee" DataSetColumn="IdEmployee" />
  154. <Mapping SourceColumn="IdRole" DataSetColumn="IdRole" />
  155. <Mapping SourceColumn="Surname" DataSetColumn="Surname" />
  156. <Mapping SourceColumn="Name" DataSetColumn="Name" />
  157. <Mapping SourceColumn="Patronymic" DataSetColumn="Patronymic" />
  158. <Mapping SourceColumn="Login" DataSetColumn="Login" />
  159. <Mapping SourceColumn="Password" DataSetColumn="Password" />
  160. <Mapping SourceColumn="Photo" DataSetColumn="Photo" />
  161. </Mappings>
  162. <Sources />
  163. </TableAdapter>
  164. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ExecutionRequestTableAdapter" GeneratorDataComponentClassName="ExecutionRequestTableAdapter" Name="ExecutionRequest" UserDataComponentName="ExecutionRequestTableAdapter">
  165. <MainSource>
  166. <DbSource ConnectionRef="TechServiceBAUConnectionString (Settings)" DbObjectName="TechServiceBAU.dbo.ExecutionRequest" 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">
  167. <DeleteCommand>
  168. <DbCommand CommandType="Text" ModifiedByUser="false">
  169. <CommandText>DELETE FROM [dbo].[ExecutionRequest] WHERE (([IdExecution] = @Original_IdExecution) AND ((@IsNull_IdRequest = 1 AND [IdRequest] IS NULL) OR ([IdRequest] = @Original_IdRequest)) AND ((@IsNull_IdMaster = 1 AND [IdMaster] IS NULL) OR ([IdMaster] = @Original_IdMaster)))</CommandText>
  170. <Parameters>
  171. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdExecution" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdExecution" SourceColumnNullMapping="false" SourceVersion="Original" />
  172. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IdRequest" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdRequest" SourceColumnNullMapping="true" SourceVersion="Original" />
  173. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdRequest" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdRequest" SourceColumnNullMapping="false" SourceVersion="Original" />
  174. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IdMaster" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdMaster" SourceColumnNullMapping="true" SourceVersion="Original" />
  175. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdMaster" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdMaster" SourceColumnNullMapping="false" SourceVersion="Original" />
  176. </Parameters>
  177. </DbCommand>
  178. </DeleteCommand>
  179. <InsertCommand>
  180. <DbCommand CommandType="Text" ModifiedByUser="false">
  181. <CommandText>INSERT INTO [dbo].[ExecutionRequest] ([IdRequest], [IdMaster]) VALUES (@IdRequest, @IdMaster);
  182. SELECT IdExecution, IdRequest, IdMaster FROM ExecutionRequest WHERE (IdExecution = SCOPE_IDENTITY())</CommandText>
  183. <Parameters>
  184. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdRequest" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdRequest" SourceColumnNullMapping="false" SourceVersion="Current" />
  185. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdMaster" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdMaster" SourceColumnNullMapping="false" SourceVersion="Current" />
  186. </Parameters>
  187. </DbCommand>
  188. </InsertCommand>
  189. <SelectCommand>
  190. <DbCommand CommandType="Text" ModifiedByUser="false">
  191. <CommandText>SELECT IdExecution, IdRequest, IdMaster FROM dbo.ExecutionRequest</CommandText>
  192. <Parameters />
  193. </DbCommand>
  194. </SelectCommand>
  195. <UpdateCommand>
  196. <DbCommand CommandType="Text" ModifiedByUser="false">
  197. <CommandText>UPDATE [dbo].[ExecutionRequest] SET [IdRequest] = @IdRequest, [IdMaster] = @IdMaster WHERE (([IdExecution] = @Original_IdExecution) AND ((@IsNull_IdRequest = 1 AND [IdRequest] IS NULL) OR ([IdRequest] = @Original_IdRequest)) AND ((@IsNull_IdMaster = 1 AND [IdMaster] IS NULL) OR ([IdMaster] = @Original_IdMaster)));
  198. SELECT IdExecution, IdRequest, IdMaster FROM ExecutionRequest WHERE (IdExecution = @IdExecution)</CommandText>
  199. <Parameters>
  200. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdRequest" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdRequest" SourceColumnNullMapping="false" SourceVersion="Current" />
  201. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdMaster" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdMaster" SourceColumnNullMapping="false" SourceVersion="Current" />
  202. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdExecution" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdExecution" SourceColumnNullMapping="false" SourceVersion="Original" />
  203. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IdRequest" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdRequest" SourceColumnNullMapping="true" SourceVersion="Original" />
  204. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdRequest" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdRequest" SourceColumnNullMapping="false" SourceVersion="Original" />
  205. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IdMaster" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdMaster" SourceColumnNullMapping="true" SourceVersion="Original" />
  206. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdMaster" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdMaster" SourceColumnNullMapping="false" SourceVersion="Original" />
  207. <Parameter AllowDbNull="false" AutogeneratedName="IdExecution" ColumnName="IdExecution" DataSourceName="TechServiceBAU.dbo.ExecutionRequest" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdExecution" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IdExecution" SourceColumnNullMapping="false" SourceVersion="Current" />
  208. </Parameters>
  209. </DbCommand>
  210. </UpdateCommand>
  211. </DbSource>
  212. </MainSource>
  213. <Mappings>
  214. <Mapping SourceColumn="IdExecution" DataSetColumn="IdExecution" />
  215. <Mapping SourceColumn="IdRequest" DataSetColumn="IdRequest" />
  216. <Mapping SourceColumn="IdMaster" DataSetColumn="IdMaster" />
  217. </Mappings>
  218. <Sources />
  219. </TableAdapter>
  220. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="RequestTableAdapter" GeneratorDataComponentClassName="RequestTableAdapter" Name="Request" UserDataComponentName="RequestTableAdapter">
  221. <MainSource>
  222. <DbSource ConnectionRef="TechServiceBAUConnectionString (Settings)" DbObjectName="TechServiceBAU.dbo.Request" 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">
  223. <DeleteCommand>
  224. <DbCommand CommandType="Text" ModifiedByUser="false">
  225. <CommandText>DELETE FROM [dbo].[Request] WHERE (([IdRequest] = @Original_IdRequest) AND ((@IsNull_IdStatus = 1 AND [IdStatus] IS NULL) OR ([IdStatus] = @Original_IdStatus)) AND ((@IsNull_IdTypeDefect = 1 AND [IdTypeDefect] IS NULL) OR ([IdTypeDefect] = @Original_IdTypeDefect)) AND ((@IsNull_IdClient = 1 AND [IdClient] IS NULL) OR ([IdClient] = @Original_IdClient)) AND ((@IsNull_IdManager = 1 AND [IdManager] IS NULL) OR ([IdManager] = @Original_IdManager)) AND ((@IsNull_DateAccepting = 1 AND [DateAccepting] IS NULL) OR ([DateAccepting] = @Original_DateAccepting)) AND ((@IsNull_DateCompletion = 1 AND [DateCompletion] IS NULL) OR ([DateCompletion] = @Original_DateCompletion)) AND ((@IsNull_EquipmentDefect = 1 AND [EquipmentDefect] IS NULL) OR ([EquipmentDefect] = @Original_EquipmentDefect)))</CommandText>
  226. <Parameters>
  227. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdRequest" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdRequest" SourceColumnNullMapping="false" SourceVersion="Original" />
  228. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IdStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdStatus" SourceColumnNullMapping="true" SourceVersion="Original" />
  229. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdStatus" SourceColumnNullMapping="false" SourceVersion="Original" />
  230. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IdTypeDefect" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdTypeDefect" SourceColumnNullMapping="true" SourceVersion="Original" />
  231. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdTypeDefect" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdTypeDefect" SourceColumnNullMapping="false" SourceVersion="Original" />
  232. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IdClient" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdClient" SourceColumnNullMapping="true" SourceVersion="Original" />
  233. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdClient" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdClient" SourceColumnNullMapping="false" SourceVersion="Original" />
  234. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IdManager" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdManager" SourceColumnNullMapping="true" SourceVersion="Original" />
  235. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdManager" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdManager" SourceColumnNullMapping="false" SourceVersion="Original" />
  236. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DateAccepting" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DateAccepting" SourceColumnNullMapping="true" SourceVersion="Original" />
  237. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DateAccepting" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateAccepting" SourceColumnNullMapping="false" SourceVersion="Original" />
  238. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DateCompletion" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DateCompletion" SourceColumnNullMapping="true" SourceVersion="Original" />
  239. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DateCompletion" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateCompletion" SourceColumnNullMapping="false" SourceVersion="Original" />
  240. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_EquipmentDefect" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EquipmentDefect" SourceColumnNullMapping="true" SourceVersion="Original" />
  241. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_EquipmentDefect" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="EquipmentDefect" SourceColumnNullMapping="false" SourceVersion="Original" />
  242. </Parameters>
  243. </DbCommand>
  244. </DeleteCommand>
  245. <InsertCommand>
  246. <DbCommand CommandType="Text" ModifiedByUser="false">
  247. <CommandText>INSERT INTO [dbo].[Request] ([IdStatus], [IdTypeDefect], [IdClient], [IdManager], [DateAccepting], [DateCompletion], [EquipmentDefect], [Description], [Comment]) VALUES (@IdStatus, @IdTypeDefect, @IdClient, @IdManager, @DateAccepting, @DateCompletion, @EquipmentDefect, @Description, @Comment);
  248. SELECT IdRequest, IdStatus, IdTypeDefect, IdClient, IdManager, DateAccepting, DateCompletion, EquipmentDefect, Description, Comment FROM Request WHERE (IdRequest = SCOPE_IDENTITY())</CommandText>
  249. <Parameters>
  250. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdStatus" SourceColumnNullMapping="false" SourceVersion="Current" />
  251. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdTypeDefect" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdTypeDefect" SourceColumnNullMapping="false" SourceVersion="Current" />
  252. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdClient" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdClient" SourceColumnNullMapping="false" SourceVersion="Current" />
  253. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdManager" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdManager" SourceColumnNullMapping="false" SourceVersion="Current" />
  254. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DateAccepting" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateAccepting" SourceColumnNullMapping="false" SourceVersion="Current" />
  255. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DateCompletion" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateCompletion" SourceColumnNullMapping="false" SourceVersion="Current" />
  256. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@EquipmentDefect" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="EquipmentDefect" SourceColumnNullMapping="false" SourceVersion="Current" />
  257. <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" />
  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 IdRequest, IdStatus, IdTypeDefect, IdClient, IdManager, DateAccepting, DateCompletion, EquipmentDefect, Description, Comment FROM dbo.Request</CommandText>
  265. <Parameters />
  266. </DbCommand>
  267. </SelectCommand>
  268. <UpdateCommand>
  269. <DbCommand CommandType="Text" ModifiedByUser="false">
  270. <CommandText>UPDATE [dbo].[Request] SET [IdStatus] = @IdStatus, [IdTypeDefect] = @IdTypeDefect, [IdClient] = @IdClient, [IdManager] = @IdManager, [DateAccepting] = @DateAccepting, [DateCompletion] = @DateCompletion, [EquipmentDefect] = @EquipmentDefect, [Description] = @Description, [Comment] = @Comment WHERE (([IdRequest] = @Original_IdRequest) AND ((@IsNull_IdStatus = 1 AND [IdStatus] IS NULL) OR ([IdStatus] = @Original_IdStatus)) AND ((@IsNull_IdTypeDefect = 1 AND [IdTypeDefect] IS NULL) OR ([IdTypeDefect] = @Original_IdTypeDefect)) AND ((@IsNull_IdClient = 1 AND [IdClient] IS NULL) OR ([IdClient] = @Original_IdClient)) AND ((@IsNull_IdManager = 1 AND [IdManager] IS NULL) OR ([IdManager] = @Original_IdManager)) AND ((@IsNull_DateAccepting = 1 AND [DateAccepting] IS NULL) OR ([DateAccepting] = @Original_DateAccepting)) AND ((@IsNull_DateCompletion = 1 AND [DateCompletion] IS NULL) OR ([DateCompletion] = @Original_DateCompletion)) AND ((@IsNull_EquipmentDefect = 1 AND [EquipmentDefect] IS NULL) OR ([EquipmentDefect] = @Original_EquipmentDefect)));
  271. SELECT IdRequest, IdStatus, IdTypeDefect, IdClient, IdManager, DateAccepting, DateCompletion, EquipmentDefect, Description, Comment FROM Request WHERE (IdRequest = @IdRequest)</CommandText>
  272. <Parameters>
  273. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdStatus" SourceColumnNullMapping="false" SourceVersion="Current" />
  274. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdTypeDefect" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdTypeDefect" SourceColumnNullMapping="false" SourceVersion="Current" />
  275. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdClient" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdClient" SourceColumnNullMapping="false" SourceVersion="Current" />
  276. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdManager" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdManager" SourceColumnNullMapping="false" SourceVersion="Current" />
  277. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DateAccepting" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateAccepting" SourceColumnNullMapping="false" SourceVersion="Current" />
  278. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DateCompletion" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateCompletion" SourceColumnNullMapping="false" SourceVersion="Current" />
  279. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@EquipmentDefect" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="EquipmentDefect" SourceColumnNullMapping="false" SourceVersion="Current" />
  280. <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" />
  281. <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" />
  282. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdRequest" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdRequest" SourceColumnNullMapping="false" SourceVersion="Original" />
  283. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IdStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdStatus" SourceColumnNullMapping="true" SourceVersion="Original" />
  284. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdStatus" SourceColumnNullMapping="false" SourceVersion="Original" />
  285. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IdTypeDefect" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdTypeDefect" SourceColumnNullMapping="true" SourceVersion="Original" />
  286. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdTypeDefect" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdTypeDefect" SourceColumnNullMapping="false" SourceVersion="Original" />
  287. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IdClient" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdClient" SourceColumnNullMapping="true" SourceVersion="Original" />
  288. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdClient" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdClient" SourceColumnNullMapping="false" SourceVersion="Original" />
  289. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IdManager" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdManager" SourceColumnNullMapping="true" SourceVersion="Original" />
  290. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdManager" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdManager" SourceColumnNullMapping="false" SourceVersion="Original" />
  291. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DateAccepting" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DateAccepting" SourceColumnNullMapping="true" SourceVersion="Original" />
  292. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DateAccepting" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateAccepting" SourceColumnNullMapping="false" SourceVersion="Original" />
  293. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DateCompletion" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DateCompletion" SourceColumnNullMapping="true" SourceVersion="Original" />
  294. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DateCompletion" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DateCompletion" SourceColumnNullMapping="false" SourceVersion="Original" />
  295. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_EquipmentDefect" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EquipmentDefect" SourceColumnNullMapping="true" SourceVersion="Original" />
  296. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_EquipmentDefect" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="EquipmentDefect" SourceColumnNullMapping="false" SourceVersion="Original" />
  297. <Parameter AllowDbNull="false" AutogeneratedName="IdRequest" ColumnName="IdRequest" DataSourceName="TechServiceBAU.dbo.Request" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdRequest" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IdRequest" SourceColumnNullMapping="false" SourceVersion="Current" />
  298. </Parameters>
  299. </DbCommand>
  300. </UpdateCommand>
  301. </DbSource>
  302. </MainSource>
  303. <Mappings>
  304. <Mapping SourceColumn="IdRequest" DataSetColumn="IdRequest" />
  305. <Mapping SourceColumn="IdStatus" DataSetColumn="IdStatus" />
  306. <Mapping SourceColumn="IdTypeDefect" DataSetColumn="IdTypeDefect" />
  307. <Mapping SourceColumn="IdClient" DataSetColumn="IdClient" />
  308. <Mapping SourceColumn="IdManager" DataSetColumn="IdManager" />
  309. <Mapping SourceColumn="DateAccepting" DataSetColumn="DateAccepting" />
  310. <Mapping SourceColumn="DateCompletion" DataSetColumn="DateCompletion" />
  311. <Mapping SourceColumn="EquipmentDefect" DataSetColumn="EquipmentDefect" />
  312. <Mapping SourceColumn="Description" DataSetColumn="Description" />
  313. <Mapping SourceColumn="Comment" DataSetColumn="Comment" />
  314. </Mappings>
  315. <Sources />
  316. </TableAdapter>
  317. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="RoleTableAdapter" GeneratorDataComponentClassName="RoleTableAdapter" Name="Role" UserDataComponentName="RoleTableAdapter">
  318. <MainSource>
  319. <DbSource ConnectionRef="TechServiceBAUConnectionString (Settings)" DbObjectName="TechServiceBAU.dbo.Role" 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">
  320. <DeleteCommand>
  321. <DbCommand CommandType="Text" ModifiedByUser="false">
  322. <CommandText>DELETE FROM [dbo].[Role] WHERE (([IdRole] = @Original_IdRole) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)))</CommandText>
  323. <Parameters>
  324. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdRole" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdRole" SourceColumnNullMapping="false" SourceVersion="Original" />
  325. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Title" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="true" SourceVersion="Original" />
  326. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  327. </Parameters>
  328. </DbCommand>
  329. </DeleteCommand>
  330. <InsertCommand>
  331. <DbCommand CommandType="Text" ModifiedByUser="false">
  332. <CommandText>INSERT INTO [dbo].[Role] ([Title]) VALUES (@Title);
  333. SELECT IdRole, Title FROM Role WHERE (IdRole = SCOPE_IDENTITY())</CommandText>
  334. <Parameters>
  335. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  336. </Parameters>
  337. </DbCommand>
  338. </InsertCommand>
  339. <SelectCommand>
  340. <DbCommand CommandType="Text" ModifiedByUser="false">
  341. <CommandText>SELECT IdRole, Title FROM dbo.Role</CommandText>
  342. <Parameters />
  343. </DbCommand>
  344. </SelectCommand>
  345. <UpdateCommand>
  346. <DbCommand CommandType="Text" ModifiedByUser="false">
  347. <CommandText>UPDATE [dbo].[Role] SET [Title] = @Title WHERE (([IdRole] = @Original_IdRole) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)));
  348. SELECT IdRole, Title FROM Role WHERE (IdRole = @IdRole)</CommandText>
  349. <Parameters>
  350. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  351. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdRole" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdRole" SourceColumnNullMapping="false" SourceVersion="Original" />
  352. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Title" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="true" SourceVersion="Original" />
  353. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  354. <Parameter AllowDbNull="false" AutogeneratedName="IdRole" ColumnName="IdRole" DataSourceName="TechServiceBAU.dbo.Role" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdRole" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IdRole" SourceColumnNullMapping="false" SourceVersion="Current" />
  355. </Parameters>
  356. </DbCommand>
  357. </UpdateCommand>
  358. </DbSource>
  359. </MainSource>
  360. <Mappings>
  361. <Mapping SourceColumn="IdRole" DataSetColumn="IdRole" />
  362. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  363. </Mappings>
  364. <Sources />
  365. </TableAdapter>
  366. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="StatusTableAdapter" GeneratorDataComponentClassName="StatusTableAdapter" Name="Status" UserDataComponentName="StatusTableAdapter">
  367. <MainSource>
  368. <DbSource ConnectionRef="TechServiceBAUConnectionString (Settings)" DbObjectName="TechServiceBAU.dbo.Status" 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">
  369. <DeleteCommand>
  370. <DbCommand CommandType="Text" ModifiedByUser="false">
  371. <CommandText>DELETE FROM [dbo].[Status] WHERE (([IdStatus] = @Original_IdStatus) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)))</CommandText>
  372. <Parameters>
  373. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdStatus" SourceColumnNullMapping="false" SourceVersion="Original" />
  374. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Title" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="true" SourceVersion="Original" />
  375. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  376. </Parameters>
  377. </DbCommand>
  378. </DeleteCommand>
  379. <InsertCommand>
  380. <DbCommand CommandType="Text" ModifiedByUser="false">
  381. <CommandText>INSERT INTO [dbo].[Status] ([Title]) VALUES (@Title);
  382. SELECT IdStatus, Title FROM Status WHERE (IdStatus = SCOPE_IDENTITY())</CommandText>
  383. <Parameters>
  384. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  385. </Parameters>
  386. </DbCommand>
  387. </InsertCommand>
  388. <SelectCommand>
  389. <DbCommand CommandType="Text" ModifiedByUser="false">
  390. <CommandText>SELECT IdStatus, Title FROM dbo.Status</CommandText>
  391. <Parameters />
  392. </DbCommand>
  393. </SelectCommand>
  394. <UpdateCommand>
  395. <DbCommand CommandType="Text" ModifiedByUser="false">
  396. <CommandText>UPDATE [dbo].[Status] SET [Title] = @Title WHERE (([IdStatus] = @Original_IdStatus) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)));
  397. SELECT IdStatus, Title FROM Status WHERE (IdStatus = @IdStatus)</CommandText>
  398. <Parameters>
  399. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  400. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdStatus" SourceColumnNullMapping="false" SourceVersion="Original" />
  401. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Title" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="true" SourceVersion="Original" />
  402. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  403. <Parameter AllowDbNull="false" AutogeneratedName="IdStatus" ColumnName="IdStatus" DataSourceName="TechServiceBAU.dbo.Status" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdStatus" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IdStatus" SourceColumnNullMapping="false" SourceVersion="Current" />
  404. </Parameters>
  405. </DbCommand>
  406. </UpdateCommand>
  407. </DbSource>
  408. </MainSource>
  409. <Mappings>
  410. <Mapping SourceColumn="IdStatus" DataSetColumn="IdStatus" />
  411. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  412. </Mappings>
  413. <Sources />
  414. </TableAdapter>
  415. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TypeDefectTableAdapter" GeneratorDataComponentClassName="TypeDefectTableAdapter" Name="TypeDefect" UserDataComponentName="TypeDefectTableAdapter">
  416. <MainSource>
  417. <DbSource ConnectionRef="TechServiceBAUConnectionString (Settings)" DbObjectName="TechServiceBAU.dbo.TypeDefect" 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">
  418. <DeleteCommand>
  419. <DbCommand CommandType="Text" ModifiedByUser="false">
  420. <CommandText>DELETE FROM [dbo].[TypeDefect] WHERE (([IdTypeDefect] = @Original_IdTypeDefect) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)))</CommandText>
  421. <Parameters>
  422. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdTypeDefect" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdTypeDefect" SourceColumnNullMapping="false" SourceVersion="Original" />
  423. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Title" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="true" SourceVersion="Original" />
  424. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  425. </Parameters>
  426. </DbCommand>
  427. </DeleteCommand>
  428. <InsertCommand>
  429. <DbCommand CommandType="Text" ModifiedByUser="false">
  430. <CommandText>INSERT INTO [dbo].[TypeDefect] ([Title]) VALUES (@Title);
  431. SELECT IdTypeDefect, Title FROM TypeDefect WHERE (IdTypeDefect = SCOPE_IDENTITY())</CommandText>
  432. <Parameters>
  433. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  434. </Parameters>
  435. </DbCommand>
  436. </InsertCommand>
  437. <SelectCommand>
  438. <DbCommand CommandType="Text" ModifiedByUser="false">
  439. <CommandText>SELECT IdTypeDefect, Title FROM dbo.TypeDefect</CommandText>
  440. <Parameters />
  441. </DbCommand>
  442. </SelectCommand>
  443. <UpdateCommand>
  444. <DbCommand CommandType="Text" ModifiedByUser="false">
  445. <CommandText>UPDATE [dbo].[TypeDefect] SET [Title] = @Title WHERE (([IdTypeDefect] = @Original_IdTypeDefect) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)));
  446. SELECT IdTypeDefect, Title FROM TypeDefect WHERE (IdTypeDefect = @IdTypeDefect)</CommandText>
  447. <Parameters>
  448. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  449. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdTypeDefect" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdTypeDefect" SourceColumnNullMapping="false" SourceVersion="Original" />
  450. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Title" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="true" SourceVersion="Original" />
  451. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  452. <Parameter AllowDbNull="false" AutogeneratedName="IdTypeDefect" ColumnName="IdTypeDefect" DataSourceName="TechServiceBAU.dbo.TypeDefect" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdTypeDefect" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IdTypeDefect" SourceColumnNullMapping="false" SourceVersion="Current" />
  453. </Parameters>
  454. </DbCommand>
  455. </UpdateCommand>
  456. </DbSource>
  457. </MainSource>
  458. <Mappings>
  459. <Mapping SourceColumn="IdTypeDefect" DataSetColumn="IdTypeDefect" />
  460. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  461. </Mappings>
  462. <Sources />
  463. </TableAdapter>
  464. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AllTypeDefectTableAdapter" GeneratorDataComponentClassName="AllTypeDefectTableAdapter" Name="AllTypeDefect" UserDataComponentName="AllTypeDefectTableAdapter">
  465. <MainSource>
  466. <DbSource ConnectionRef="TechServiceBAUConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
  467. <SelectCommand>
  468. <DbCommand CommandType="Text" ModifiedByUser="true">
  469. <CommandText>Select 'Все заявки'
  470. union all
  471. Select Title
  472. From TypeDefect</CommandText>
  473. <Parameters />
  474. </DbCommand>
  475. </SelectCommand>
  476. </DbSource>
  477. </MainSource>
  478. <Mappings>
  479. <Mapping SourceColumn="Column1" DataSetColumn="TypeDefect" />
  480. </Mappings>
  481. <Sources />
  482. </TableAdapter>
  483. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ClientFIOTableAdapter" GeneratorDataComponentClassName="ClientFIOTableAdapter" Name="ClientFIO" UserDataComponentName="ClientFIOTableAdapter">
  484. <MainSource>
  485. <DbSource ConnectionRef="TechServiceBAUConnectionString (Settings)" DbObjectName="TechServiceBAU.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">
  486. <DeleteCommand>
  487. <DbCommand CommandType="Text" ModifiedByUser="false">
  488. <CommandText>DELETE FROM [Client] WHERE (([IdClient] = @Original_IdClient))</CommandText>
  489. <Parameters>
  490. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdClient" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdClient" SourceColumnNullMapping="false" SourceVersion="Original" />
  491. </Parameters>
  492. </DbCommand>
  493. </DeleteCommand>
  494. <InsertCommand>
  495. <DbCommand CommandType="Text" ModifiedByUser="false">
  496. <CommandText>INSERT INTO [Client] DEFAULT VALUES;
  497. SELECT IdClient, Surname + ' ' + Name + ' ' + Patronymic AS FIO FROM Client WHERE (IdClient = SCOPE_IDENTITY())</CommandText>
  498. <Parameters />
  499. </DbCommand>
  500. </InsertCommand>
  501. <SelectCommand>
  502. <DbCommand CommandType="Text" ModifiedByUser="true">
  503. <CommandText>SELECT IdClient, (Surname + ' ' + Name + ' ' + Patronymic) as FIO
  504. FROM Client</CommandText>
  505. <Parameters />
  506. </DbCommand>
  507. </SelectCommand>
  508. </DbSource>
  509. </MainSource>
  510. <Mappings>
  511. <Mapping SourceColumn="IdClient" DataSetColumn="IdClient" />
  512. <Mapping SourceColumn="FIO" DataSetColumn="FIO" />
  513. </Mappings>
  514. <Sources />
  515. </TableAdapter>
  516. </Tables>
  517. <Sources />
  518. </DataSource>
  519. </xs:appinfo>
  520. </xs:annotation>
  521. <xs:element name="TechServiceBAUDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="TechServiceBAUDataSet" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="TechServiceBAUDataSet">
  522. <xs:complexType>
  523. <xs:choice minOccurs="0" maxOccurs="unbounded">
  524. <xs:element name="Client" msprop:Generator_RowEvHandlerName="ClientRowChangeEventHandler" msprop:Generator_RowDeletedName="ClientRowDeleted" msprop:Generator_RowDeletingName="ClientRowDeleting" msprop:Generator_RowEvArgName="ClientRowChangeEvent" msprop:Generator_TablePropName="Client" msprop:Generator_RowChangedName="ClientRowChanged" msprop:Generator_UserTableName="Client" msprop:Generator_RowChangingName="ClientRowChanging" msprop:Generator_RowClassName="ClientRow" msprop:Generator_TableClassName="ClientDataTable" msprop:Generator_TableVarName="tableClient">
  525. <xs:complexType>
  526. <xs:sequence>
  527. <xs:element name="IdClient" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="IdClientColumn" msprop:Generator_ColumnPropNameInRow="IdClient" msprop:Generator_UserColumnName="IdClient" msprop:Generator_ColumnVarNameInTable="columnIdClient" type="xs:int" />
  528. <xs:element name="Surname" msprop:Generator_ColumnPropNameInTable="SurnameColumn" msprop:Generator_ColumnPropNameInRow="Surname" msprop:Generator_UserColumnName="Surname" msprop:Generator_ColumnVarNameInTable="columnSurname" minOccurs="0">
  529. <xs:simpleType>
  530. <xs:restriction base="xs:string">
  531. <xs:maxLength value="50" />
  532. </xs:restriction>
  533. </xs:simpleType>
  534. </xs:element>
  535. <xs:element name="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_UserColumnName="Name" msprop:Generator_ColumnVarNameInTable="columnName" minOccurs="0">
  536. <xs:simpleType>
  537. <xs:restriction base="xs:string">
  538. <xs:maxLength value="50" />
  539. </xs:restriction>
  540. </xs:simpleType>
  541. </xs:element>
  542. <xs:element name="Patronymic" msprop:Generator_ColumnPropNameInTable="PatronymicColumn" msprop:Generator_ColumnPropNameInRow="Patronymic" msprop:Generator_UserColumnName="Patronymic" msprop:Generator_ColumnVarNameInTable="columnPatronymic" minOccurs="0">
  543. <xs:simpleType>
  544. <xs:restriction base="xs:string">
  545. <xs:maxLength value="50" />
  546. </xs:restriction>
  547. </xs:simpleType>
  548. </xs:element>
  549. </xs:sequence>
  550. </xs:complexType>
  551. </xs:element>
  552. <xs:element name="Employee" msprop:Generator_RowEvHandlerName="EmployeeRowChangeEventHandler" msprop:Generator_RowDeletedName="EmployeeRowDeleted" msprop:Generator_RowDeletingName="EmployeeRowDeleting" msprop:Generator_RowEvArgName="EmployeeRowChangeEvent" msprop:Generator_TablePropName="Employee" msprop:Generator_RowChangedName="EmployeeRowChanged" msprop:Generator_UserTableName="Employee" msprop:Generator_RowChangingName="EmployeeRowChanging" msprop:Generator_RowClassName="EmployeeRow" msprop:Generator_TableClassName="EmployeeDataTable" msprop:Generator_TableVarName="tableEmployee">
  553. <xs:complexType>
  554. <xs:sequence>
  555. <xs:element name="IdEmployee" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="IdEmployeeColumn" msprop:Generator_ColumnPropNameInRow="IdEmployee" msprop:Generator_UserColumnName="IdEmployee" msprop:Generator_ColumnVarNameInTable="columnIdEmployee" type="xs:int" />
  556. <xs:element name="IdRole" msprop:Generator_ColumnPropNameInTable="IdRoleColumn" msprop:Generator_ColumnPropNameInRow="IdRole" msprop:Generator_UserColumnName="IdRole" msprop:Generator_ColumnVarNameInTable="columnIdRole" type="xs:int" minOccurs="0" />
  557. <xs:element name="Surname" msprop:Generator_ColumnPropNameInTable="SurnameColumn" msprop:Generator_ColumnPropNameInRow="Surname" msprop:Generator_UserColumnName="Surname" msprop:Generator_ColumnVarNameInTable="columnSurname" minOccurs="0">
  558. <xs:simpleType>
  559. <xs:restriction base="xs:string">
  560. <xs:maxLength value="50" />
  561. </xs:restriction>
  562. </xs:simpleType>
  563. </xs:element>
  564. <xs:element name="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_UserColumnName="Name" msprop:Generator_ColumnVarNameInTable="columnName" minOccurs="0">
  565. <xs:simpleType>
  566. <xs:restriction base="xs:string">
  567. <xs:maxLength value="50" />
  568. </xs:restriction>
  569. </xs:simpleType>
  570. </xs:element>
  571. <xs:element name="Patronymic" msprop:Generator_ColumnPropNameInTable="PatronymicColumn" msprop:Generator_ColumnPropNameInRow="Patronymic" msprop:Generator_UserColumnName="Patronymic" msprop:Generator_ColumnVarNameInTable="columnPatronymic" minOccurs="0">
  572. <xs:simpleType>
  573. <xs:restriction base="xs:string">
  574. <xs:maxLength value="50" />
  575. </xs:restriction>
  576. </xs:simpleType>
  577. </xs:element>
  578. <xs:element name="Login" msprop:Generator_ColumnPropNameInTable="LoginColumn" msprop:Generator_ColumnPropNameInRow="Login" msprop:Generator_UserColumnName="Login" msprop:Generator_ColumnVarNameInTable="columnLogin" minOccurs="0">
  579. <xs:simpleType>
  580. <xs:restriction base="xs:string">
  581. <xs:maxLength value="50" />
  582. </xs:restriction>
  583. </xs:simpleType>
  584. </xs:element>
  585. <xs:element name="Password" msprop:Generator_ColumnPropNameInTable="PasswordColumn" msprop:Generator_ColumnPropNameInRow="Password" msprop:Generator_UserColumnName="Password" msprop:Generator_ColumnVarNameInTable="columnPassword" minOccurs="0">
  586. <xs:simpleType>
  587. <xs:restriction base="xs:string">
  588. <xs:maxLength value="50" />
  589. </xs:restriction>
  590. </xs:simpleType>
  591. </xs:element>
  592. <xs:element name="Photo" msprop:Generator_ColumnPropNameInTable="PhotoColumn" msprop:Generator_ColumnPropNameInRow="Photo" msprop:Generator_UserColumnName="Photo" msprop:Generator_ColumnVarNameInTable="columnPhoto" minOccurs="0">
  593. <xs:simpleType>
  594. <xs:restriction base="xs:string">
  595. <xs:maxLength value="50" />
  596. </xs:restriction>
  597. </xs:simpleType>
  598. </xs:element>
  599. </xs:sequence>
  600. </xs:complexType>
  601. </xs:element>
  602. <xs:element name="ExecutionRequest" msprop:Generator_RowEvHandlerName="ExecutionRequestRowChangeEventHandler" msprop:Generator_RowDeletedName="ExecutionRequestRowDeleted" msprop:Generator_RowDeletingName="ExecutionRequestRowDeleting" msprop:Generator_RowEvArgName="ExecutionRequestRowChangeEvent" msprop:Generator_TablePropName="ExecutionRequest" msprop:Generator_RowChangedName="ExecutionRequestRowChanged" msprop:Generator_UserTableName="ExecutionRequest" msprop:Generator_RowChangingName="ExecutionRequestRowChanging" msprop:Generator_RowClassName="ExecutionRequestRow" msprop:Generator_TableClassName="ExecutionRequestDataTable" msprop:Generator_TableVarName="tableExecutionRequest">
  603. <xs:complexType>
  604. <xs:sequence>
  605. <xs:element name="IdExecution" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="IdExecutionColumn" msprop:Generator_ColumnPropNameInRow="IdExecution" msprop:Generator_UserColumnName="IdExecution" msprop:Generator_ColumnVarNameInTable="columnIdExecution" type="xs:int" />
  606. <xs:element name="IdRequest" msprop:Generator_ColumnPropNameInTable="IdRequestColumn" msprop:Generator_ColumnPropNameInRow="IdRequest" msprop:Generator_UserColumnName="IdRequest" msprop:Generator_ColumnVarNameInTable="columnIdRequest" type="xs:int" minOccurs="0" />
  607. <xs:element name="IdMaster" msprop:Generator_ColumnPropNameInTable="IdMasterColumn" msprop:Generator_ColumnPropNameInRow="IdMaster" msprop:Generator_UserColumnName="IdMaster" msprop:Generator_ColumnVarNameInTable="columnIdMaster" type="xs:int" minOccurs="0" />
  608. </xs:sequence>
  609. </xs:complexType>
  610. </xs:element>
  611. <xs:element name="Request" msprop:Generator_RowEvHandlerName="RequestRowChangeEventHandler" msprop:Generator_RowDeletedName="RequestRowDeleted" msprop:Generator_RowDeletingName="RequestRowDeleting" msprop:Generator_RowEvArgName="RequestRowChangeEvent" msprop:Generator_TablePropName="Request" msprop:Generator_RowChangedName="RequestRowChanged" msprop:Generator_UserTableName="Request" msprop:Generator_RowChangingName="RequestRowChanging" msprop:Generator_RowClassName="RequestRow" msprop:Generator_TableClassName="RequestDataTable" msprop:Generator_TableVarName="tableRequest">
  612. <xs:complexType>
  613. <xs:sequence>
  614. <xs:element name="IdRequest" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="1" msprop:Generator_ColumnPropNameInTable="IdRequestColumn" msprop:Generator_ColumnPropNameInRow="IdRequest" msprop:Generator_UserColumnName="IdRequest" msprop:Generator_ColumnVarNameInTable="columnIdRequest" type="xs:int" />
  615. <xs:element name="IdStatus" msprop:Generator_ColumnPropNameInTable="IdStatusColumn" msprop:Generator_ColumnPropNameInRow="IdStatus" msprop:Generator_UserColumnName="IdStatus" msprop:Generator_ColumnVarNameInTable="columnIdStatus" type="xs:int" minOccurs="0" />
  616. <xs:element name="IdTypeDefect" msprop:Generator_ColumnPropNameInTable="IdTypeDefectColumn" msprop:Generator_ColumnPropNameInRow="IdTypeDefect" msprop:Generator_UserColumnName="IdTypeDefect" msprop:Generator_ColumnVarNameInTable="columnIdTypeDefect" type="xs:int" minOccurs="0" />
  617. <xs:element name="IdClient" msprop:Generator_ColumnPropNameInTable="IdClientColumn" msprop:Generator_ColumnPropNameInRow="IdClient" msprop:Generator_UserColumnName="IdClient" msprop:Generator_ColumnVarNameInTable="columnIdClient" type="xs:int" minOccurs="0" />
  618. <xs:element name="IdManager" msprop:Generator_ColumnPropNameInTable="IdManagerColumn" msprop:Generator_ColumnPropNameInRow="IdManager" msprop:Generator_UserColumnName="IdManager" msprop:Generator_ColumnVarNameInTable="columnIdManager" type="xs:int" minOccurs="0" />
  619. <xs:element name="DateAccepting" msprop:Generator_ColumnPropNameInTable="DateAcceptingColumn" msprop:Generator_ColumnPropNameInRow="DateAccepting" msprop:Generator_UserColumnName="DateAccepting" msprop:Generator_ColumnVarNameInTable="columnDateAccepting" type="xs:dateTime" minOccurs="0" />
  620. <xs:element name="DateCompletion" msprop:Generator_ColumnPropNameInTable="DateCompletionColumn" msprop:Generator_ColumnPropNameInRow="DateCompletion" msprop:Generator_UserColumnName="DateCompletion" msprop:Generator_ColumnVarNameInTable="columnDateCompletion" type="xs:dateTime" minOccurs="0" />
  621. <xs:element name="EquipmentDefect" msprop:Generator_ColumnPropNameInTable="EquipmentDefectColumn" msprop:Generator_ColumnPropNameInRow="EquipmentDefect" msprop:Generator_UserColumnName="EquipmentDefect" msprop:Generator_ColumnVarNameInTable="columnEquipmentDefect" minOccurs="0">
  622. <xs:simpleType>
  623. <xs:restriction base="xs:string">
  624. <xs:maxLength value="100" />
  625. </xs:restriction>
  626. </xs:simpleType>
  627. </xs:element>
  628. <xs:element name="Description" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_UserColumnName="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" minOccurs="0">
  629. <xs:simpleType>
  630. <xs:restriction base="xs:string">
  631. <xs:maxLength value="2147483647" />
  632. </xs:restriction>
  633. </xs:simpleType>
  634. </xs:element>
  635. <xs:element name="Comment" msprop:Generator_ColumnPropNameInTable="CommentColumn" msprop:Generator_ColumnPropNameInRow="Comment" msprop:Generator_UserColumnName="Comment" msprop:Generator_ColumnVarNameInTable="columnComment" minOccurs="0">
  636. <xs:simpleType>
  637. <xs:restriction base="xs:string">
  638. <xs:maxLength value="2147483647" />
  639. </xs:restriction>
  640. </xs:simpleType>
  641. </xs:element>
  642. </xs:sequence>
  643. </xs:complexType>
  644. </xs:element>
  645. <xs:element name="Role" msprop:Generator_RowEvHandlerName="RoleRowChangeEventHandler" msprop:Generator_RowDeletedName="RoleRowDeleted" msprop:Generator_RowDeletingName="RoleRowDeleting" msprop:Generator_RowEvArgName="RoleRowChangeEvent" msprop:Generator_TablePropName="Role" msprop:Generator_RowChangedName="RoleRowChanged" msprop:Generator_UserTableName="Role" msprop:Generator_RowChangingName="RoleRowChanging" msprop:Generator_RowClassName="RoleRow" msprop:Generator_TableClassName="RoleDataTable" msprop:Generator_TableVarName="tableRole">
  646. <xs:complexType>
  647. <xs:sequence>
  648. <xs:element name="IdRole" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="IdRoleColumn" msprop:Generator_ColumnPropNameInRow="IdRole" msprop:Generator_UserColumnName="IdRole" msprop:Generator_ColumnVarNameInTable="columnIdRole" type="xs:int" />
  649. <xs:element name="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_UserColumnName="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" minOccurs="0">
  650. <xs:simpleType>
  651. <xs:restriction base="xs:string">
  652. <xs:maxLength value="50" />
  653. </xs:restriction>
  654. </xs:simpleType>
  655. </xs:element>
  656. </xs:sequence>
  657. </xs:complexType>
  658. </xs:element>
  659. <xs:element name="Status" msprop:Generator_RowEvHandlerName="StatusRowChangeEventHandler" msprop:Generator_RowDeletedName="StatusRowDeleted" msprop:Generator_RowDeletingName="StatusRowDeleting" msprop:Generator_RowEvArgName="StatusRowChangeEvent" msprop:Generator_TablePropName="Status" msprop:Generator_RowChangedName="StatusRowChanged" msprop:Generator_UserTableName="Status" msprop:Generator_RowChangingName="StatusRowChanging" msprop:Generator_RowClassName="StatusRow" msprop:Generator_TableClassName="StatusDataTable" msprop:Generator_TableVarName="tableStatus">
  660. <xs:complexType>
  661. <xs:sequence>
  662. <xs:element name="IdStatus" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="IdStatusColumn" msprop:Generator_ColumnPropNameInRow="IdStatus" msprop:Generator_UserColumnName="IdStatus" msprop:Generator_ColumnVarNameInTable="columnIdStatus" type="xs:int" />
  663. <xs:element name="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_UserColumnName="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" minOccurs="0">
  664. <xs:simpleType>
  665. <xs:restriction base="xs:string">
  666. <xs:maxLength value="50" />
  667. </xs:restriction>
  668. </xs:simpleType>
  669. </xs:element>
  670. </xs:sequence>
  671. </xs:complexType>
  672. </xs:element>
  673. <xs:element name="TypeDefect" msprop:Generator_RowEvHandlerName="TypeDefectRowChangeEventHandler" msprop:Generator_RowDeletedName="TypeDefectRowDeleted" msprop:Generator_RowDeletingName="TypeDefectRowDeleting" msprop:Generator_RowEvArgName="TypeDefectRowChangeEvent" msprop:Generator_TablePropName="TypeDefect" msprop:Generator_RowChangedName="TypeDefectRowChanged" msprop:Generator_UserTableName="TypeDefect" msprop:Generator_RowChangingName="TypeDefectRowChanging" msprop:Generator_RowClassName="TypeDefectRow" msprop:Generator_TableClassName="TypeDefectDataTable" msprop:Generator_TableVarName="tableTypeDefect">
  674. <xs:complexType>
  675. <xs:sequence>
  676. <xs:element name="IdTypeDefect" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="IdTypeDefectColumn" msprop:Generator_ColumnPropNameInRow="IdTypeDefect" msprop:Generator_UserColumnName="IdTypeDefect" msprop:Generator_ColumnVarNameInTable="columnIdTypeDefect" type="xs:int" />
  677. <xs:element name="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_UserColumnName="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" minOccurs="0">
  678. <xs:simpleType>
  679. <xs:restriction base="xs:string">
  680. <xs:maxLength value="50" />
  681. </xs:restriction>
  682. </xs:simpleType>
  683. </xs:element>
  684. </xs:sequence>
  685. </xs:complexType>
  686. </xs:element>
  687. <xs:element name="AllTypeDefect" msprop:Generator_RowEvHandlerName="AllTypeDefectRowChangeEventHandler" msprop:Generator_RowDeletedName="AllTypeDefectRowDeleted" msprop:Generator_RowDeletingName="AllTypeDefectRowDeleting" msprop:Generator_RowEvArgName="AllTypeDefectRowChangeEvent" msprop:Generator_TablePropName="AllTypeDefect" msprop:Generator_RowChangedName="AllTypeDefectRowChanged" msprop:Generator_UserTableName="AllTypeDefect" msprop:Generator_RowChangingName="AllTypeDefectRowChanging" msprop:Generator_RowClassName="AllTypeDefectRow" msprop:Generator_TableClassName="AllTypeDefectDataTable" msprop:Generator_TableVarName="tableAllTypeDefect">
  688. <xs:complexType>
  689. <xs:sequence>
  690. <xs:element name="TypeDefect" msdata:ReadOnly="true" msdata:Caption="Column1" msprop:Generator_ColumnPropNameInTable="TypeDefectColumn" msprop:Generator_ColumnPropNameInRow="TypeDefect" msprop:Generator_UserColumnName="TypeDefect" msprop:Generator_ColumnVarNameInTable="columnTypeDefect" minOccurs="0">
  691. <xs:simpleType>
  692. <xs:restriction base="xs:string">
  693. <xs:maxLength value="50" />
  694. </xs:restriction>
  695. </xs:simpleType>
  696. </xs:element>
  697. </xs:sequence>
  698. </xs:complexType>
  699. </xs:element>
  700. <xs:element name="ClientFIO" msprop:Generator_RowEvHandlerName="ClientFIORowChangeEventHandler" msprop:Generator_RowDeletedName="ClientFIORowDeleted" msprop:Generator_RowDeletingName="ClientFIORowDeleting" msprop:Generator_RowEvArgName="ClientFIORowChangeEvent" msprop:Generator_TablePropName="ClientFIO" msprop:Generator_RowChangedName="ClientFIORowChanged" msprop:Generator_RowChangingName="ClientFIORowChanging" msprop:Generator_TableClassName="ClientFIODataTable" msprop:Generator_RowClassName="ClientFIORow" msprop:Generator_TableVarName="tableClientFIO" msprop:Generator_UserTableName="ClientFIO">
  701. <xs:complexType>
  702. <xs:sequence>
  703. <xs:element name="IdClient" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="IdClient" msprop:Generator_ColumnPropNameInTable="IdClientColumn" msprop:Generator_ColumnVarNameInTable="columnIdClient" msprop:Generator_UserColumnName="IdClient" type="xs:int" />
  704. <xs:element name="FIO" msdata:ReadOnly="true" msprop:Generator_ColumnPropNameInRow="FIO" msprop:Generator_ColumnPropNameInTable="FIOColumn" msprop:Generator_ColumnVarNameInTable="columnFIO" msprop:Generator_UserColumnName="FIO" minOccurs="0">
  705. <xs:simpleType>
  706. <xs:restriction base="xs:string">
  707. <xs:maxLength value="152" />
  708. </xs:restriction>
  709. </xs:simpleType>
  710. </xs:element>
  711. </xs:sequence>
  712. </xs:complexType>
  713. </xs:element>
  714. </xs:choice>
  715. </xs:complexType>
  716. <xs:unique name="Constraint1" msdata:PrimaryKey="true">
  717. <xs:selector xpath=".//mstns:Client" />
  718. <xs:field xpath="mstns:IdClient" />
  719. </xs:unique>
  720. <xs:unique name="Employee_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  721. <xs:selector xpath=".//mstns:Employee" />
  722. <xs:field xpath="mstns:IdEmployee" />
  723. </xs:unique>
  724. <xs:unique name="ExecutionRequest_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  725. <xs:selector xpath=".//mstns:ExecutionRequest" />
  726. <xs:field xpath="mstns:IdExecution" />
  727. </xs:unique>
  728. <xs:unique name="Request_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  729. <xs:selector xpath=".//mstns:Request" />
  730. <xs:field xpath="mstns:IdRequest" />
  731. </xs:unique>
  732. <xs:unique name="Role_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  733. <xs:selector xpath=".//mstns:Role" />
  734. <xs:field xpath="mstns:IdRole" />
  735. </xs:unique>
  736. <xs:unique name="Status_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  737. <xs:selector xpath=".//mstns:Status" />
  738. <xs:field xpath="mstns:IdStatus" />
  739. </xs:unique>
  740. <xs:unique name="TypeDefect_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  741. <xs:selector xpath=".//mstns:TypeDefect" />
  742. <xs:field xpath="mstns:IdTypeDefect" />
  743. </xs:unique>
  744. <xs:unique name="ClientFIO_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  745. <xs:selector xpath=".//mstns:ClientFIO" />
  746. <xs:field xpath="mstns:IdClient" />
  747. </xs:unique>
  748. </xs:element>
  749. <xs:annotation>
  750. <xs:appinfo>
  751. <msdata:Relationship name="FK_Employee_Role" msdata:parent="Role" msdata:child="Employee" msdata:parentkey="IdRole" msdata:childkey="IdRole" msprop:Generator_UserParentTable="Role" msprop:Generator_UserChildTable="Employee" msprop:Generator_RelationVarName="relationFK_Employee_Role" msprop:Generator_ChildPropName="GetEmployeeRows" msprop:Generator_ParentPropName="RoleRow" msprop:Generator_UserRelationName="FK_Employee_Role" />
  752. <msdata:Relationship name="FK_ExecutionRequest_Employee" msdata:parent="Employee" msdata:child="ExecutionRequest" msdata:parentkey="IdEmployee" msdata:childkey="IdMaster" msprop:Generator_UserParentTable="Employee" msprop:Generator_UserChildTable="ExecutionRequest" msprop:Generator_RelationVarName="relationFK_ExecutionRequest_Employee" msprop:Generator_ChildPropName="GetExecutionRequestRows" msprop:Generator_UserRelationName="FK_ExecutionRequest_Employee" msprop:Generator_ParentPropName="EmployeeRow" />
  753. <msdata:Relationship name="FK_ExecutionRequest_Request" msdata:parent="Request" msdata:child="ExecutionRequest" msdata:parentkey="IdRequest" msdata:childkey="IdRequest" msprop:Generator_UserParentTable="Request" msprop:Generator_UserChildTable="ExecutionRequest" msprop:Generator_RelationVarName="relationFK_ExecutionRequest_Request" msprop:Generator_ChildPropName="GetExecutionRequestRows" msprop:Generator_ParentPropName="RequestRow" msprop:Generator_UserRelationName="FK_ExecutionRequest_Request" />
  754. <msdata:Relationship name="FK_Request_Client" msdata:parent="Client" msdata:child="Request" msdata:parentkey="IdClient" msdata:childkey="IdClient" msprop:Generator_UserParentTable="Client" msprop:Generator_UserChildTable="Request" msprop:Generator_RelationVarName="relationFK_Request_Client" msprop:Generator_ChildPropName="GetRequestRows" msprop:Generator_UserRelationName="FK_Request_Client" msprop:Generator_ParentPropName="ClientRow" />
  755. <msdata:Relationship name="FK_Request_Employee" msdata:parent="Employee" msdata:child="Request" msdata:parentkey="IdEmployee" msdata:childkey="IdManager" msprop:Generator_UserParentTable="Employee" msprop:Generator_UserChildTable="Request" msprop:Generator_RelationVarName="relationFK_Request_Employee" msprop:Generator_ChildPropName="GetRequestRows" msprop:Generator_UserRelationName="FK_Request_Employee" msprop:Generator_ParentPropName="EmployeeRow" />
  756. <msdata:Relationship name="FK_Request_Status" msdata:parent="Status" msdata:child="Request" msdata:parentkey="IdStatus" msdata:childkey="IdStatus" msprop:Generator_UserParentTable="Status" msprop:Generator_UserChildTable="Request" msprop:Generator_RelationVarName="relationFK_Request_Status" msprop:Generator_ChildPropName="GetRequestRows" msprop:Generator_ParentPropName="StatusRow" msprop:Generator_UserRelationName="FK_Request_Status" />
  757. <msdata:Relationship name="FK_Request_TypeDefect" msdata:parent="TypeDefect" msdata:child="Request" msdata:parentkey="IdTypeDefect" msdata:childkey="IdTypeDefect" msprop:Generator_UserParentTable="TypeDefect" msprop:Generator_UserChildTable="Request" msprop:Generator_RelationVarName="relationFK_Request_TypeDefect" msprop:Generator_ChildPropName="GetRequestRows" msprop:Generator_ParentPropName="TypeDefectRow" msprop:Generator_UserRelationName="FK_Request_TypeDefect" />
  758. <msdata:Relationship name="FK_Request_Client1" msdata:parent="ClientFIO" msdata:child="Request" msdata:parentkey="IdClient" msdata:childkey="IdClient" msprop:Generator_UserParentTable="ClientFIO" msprop:Generator_UserChildTable="Request" msprop:Generator_RelationVarName="relationFK_Request_Client1" msprop:Generator_UserRelationName="FK_Request_Client1" msprop:Generator_ChildPropName="GetRequestRows" msprop:Generator_ParentPropName="ClientFIORow" />
  759. </xs:appinfo>
  760. </xs:annotation>
  761. </xs:schema>