ImpulseVisionAppDataSet.xsd 75 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="ImpulseVisionAppDataSet" targetNamespace="http://tempuri.org/ImpulseVisionAppDataSet.xsd" xmlns:mstns="http://tempuri.org/ImpulseVisionAppDataSet.xsd" xmlns="http://tempuri.org/ImpulseVisionAppDataSet.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="ImpulseVisionAppConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="ImpulseVisionAppConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.ImpulseVision.Properties.Settings.GlobalReference.Default.ImpulseVisionAppConnectionString" Provider="System.Data.SqlClient" />
  8. </Connections>
  9. <Tables>
  10. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="FaceImagesTableAdapter" GeneratorDataComponentClassName="FaceImagesTableAdapter" Name="FaceImages" UserDataComponentName="FaceImagesTableAdapter">
  11. <MainSource>
  12. <DbSource ConnectionRef="ImpulseVisionAppConnectionString (Settings)" DbObjectName="ImpulseVisionApp.dbo.FaceImages" 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].[FaceImages] WHERE (([ID] = @Original_ID) AND ([UserID] = @Original_UserID))</CommandText>
  16. <Parameters>
  17. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  18. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_UserID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Original" />
  19. </Parameters>
  20. </DbCommand>
  21. </DeleteCommand>
  22. <InsertCommand>
  23. <DbCommand CommandType="Text" ModifiedByUser="false">
  24. <CommandText>INSERT INTO [dbo].[FaceImages] ([ID], [UserID], [Picture]) VALUES (@ID, @UserID, @Picture);
  25. SELECT ID, UserID, Picture FROM FaceImages WHERE (ID = @ID)</CommandText>
  26. <Parameters>
  27. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  28. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@UserID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Current" />
  29. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Picture" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Picture" SourceColumnNullMapping="false" SourceVersion="Current" />
  30. </Parameters>
  31. </DbCommand>
  32. </InsertCommand>
  33. <SelectCommand>
  34. <DbCommand CommandType="Text" ModifiedByUser="false">
  35. <CommandText>SELECT ID, UserID, Picture FROM dbo.FaceImages</CommandText>
  36. <Parameters />
  37. </DbCommand>
  38. </SelectCommand>
  39. <UpdateCommand>
  40. <DbCommand CommandType="Text" ModifiedByUser="false">
  41. <CommandText>UPDATE [dbo].[FaceImages] SET [ID] = @ID, [UserID] = @UserID, [Picture] = @Picture WHERE (([ID] = @Original_ID) AND ([UserID] = @Original_UserID));
  42. SELECT ID, UserID, Picture FROM FaceImages WHERE (ID = @ID)</CommandText>
  43. <Parameters>
  44. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  45. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@UserID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Current" />
  46. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Picture" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Picture" SourceColumnNullMapping="false" SourceVersion="Current" />
  47. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  48. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_UserID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Original" />
  49. </Parameters>
  50. </DbCommand>
  51. </UpdateCommand>
  52. </DbSource>
  53. </MainSource>
  54. <Mappings>
  55. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  56. <Mapping SourceColumn="UserID" DataSetColumn="UserID" />
  57. <Mapping SourceColumn="Picture" DataSetColumn="Picture" />
  58. </Mappings>
  59. <Sources />
  60. </TableAdapter>
  61. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="HistoryLoginTableAdapter" GeneratorDataComponentClassName="HistoryLoginTableAdapter" Name="HistoryLogin" UserDataComponentName="HistoryLoginTableAdapter">
  62. <MainSource>
  63. <DbSource ConnectionRef="ImpulseVisionAppConnectionString (Settings)" DbObjectName="ImpulseVisionApp.dbo.HistoryLogin" 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">
  64. <DeleteCommand>
  65. <DbCommand CommandType="Text" ModifiedByUser="false">
  66. <CommandText>DELETE FROM [dbo].[HistoryLogin] WHERE (([ID] = @Original_ID) AND ([StaffsID] = @Original_StaffsID) AND ([TimeLogin] = @Original_TimeLogin))</CommandText>
  67. <Parameters>
  68. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  69. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_StaffsID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="StaffsID" SourceColumnNullMapping="false" SourceVersion="Original" />
  70. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_TimeLogin" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeLogin" SourceColumnNullMapping="false" SourceVersion="Original" />
  71. </Parameters>
  72. </DbCommand>
  73. </DeleteCommand>
  74. <InsertCommand>
  75. <DbCommand CommandType="Text" ModifiedByUser="false">
  76. <CommandText>INSERT INTO [dbo].[HistoryLogin] ([StaffsID], [TimeLogin]) VALUES (@StaffsID, @TimeLogin);
  77. SELECT ID, StaffsID, TimeLogin FROM HistoryLogin WHERE (ID = SCOPE_IDENTITY())</CommandText>
  78. <Parameters>
  79. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@StaffsID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="StaffsID" SourceColumnNullMapping="false" SourceVersion="Current" />
  80. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@TimeLogin" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeLogin" SourceColumnNullMapping="false" SourceVersion="Current" />
  81. </Parameters>
  82. </DbCommand>
  83. </InsertCommand>
  84. <SelectCommand>
  85. <DbCommand CommandType="Text" ModifiedByUser="false">
  86. <CommandText>SELECT ID, StaffsID, TimeLogin FROM dbo.HistoryLogin</CommandText>
  87. <Parameters />
  88. </DbCommand>
  89. </SelectCommand>
  90. <UpdateCommand>
  91. <DbCommand CommandType="Text" ModifiedByUser="false">
  92. <CommandText>UPDATE [dbo].[HistoryLogin] SET [StaffsID] = @StaffsID, [TimeLogin] = @TimeLogin WHERE (([ID] = @Original_ID) AND ([StaffsID] = @Original_StaffsID) AND ([TimeLogin] = @Original_TimeLogin));
  93. SELECT ID, StaffsID, TimeLogin FROM HistoryLogin WHERE (ID = @ID)</CommandText>
  94. <Parameters>
  95. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@StaffsID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="StaffsID" SourceColumnNullMapping="false" SourceVersion="Current" />
  96. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@TimeLogin" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeLogin" SourceColumnNullMapping="false" SourceVersion="Current" />
  97. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  98. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_StaffsID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="StaffsID" SourceColumnNullMapping="false" SourceVersion="Original" />
  99. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_TimeLogin" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeLogin" SourceColumnNullMapping="false" SourceVersion="Original" />
  100. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="ImpulseVisionApp.dbo.HistoryLogin" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  101. </Parameters>
  102. </DbCommand>
  103. </UpdateCommand>
  104. </DbSource>
  105. </MainSource>
  106. <Mappings>
  107. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  108. <Mapping SourceColumn="StaffsID" DataSetColumn="StaffsID" />
  109. <Mapping SourceColumn="TimeLogin" DataSetColumn="TimeLogin" />
  110. </Mappings>
  111. <Sources />
  112. </TableAdapter>
  113. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="StaffsTableAdapter" GeneratorDataComponentClassName="StaffsTableAdapter" Name="Staffs" UserDataComponentName="StaffsTableAdapter">
  114. <MainSource>
  115. <DbSource ConnectionRef="ImpulseVisionAppConnectionString (Settings)" DbObjectName="ImpulseVisionApp.dbo.Staffs" 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">
  116. <DeleteCommand>
  117. <DbCommand CommandType="Text" ModifiedByUser="false">
  118. <CommandText>DELETE FROM [dbo].[Staffs] WHERE (([ID] = @Original_ID) AND ([Lastname] = @Original_Lastname) AND ([Firstname] = @Original_Firstname) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ([PassportSeria] = @Original_PassportSeria) AND ([PassportNum] = @Original_PassportNum) AND ([Login] = @Original_Login) AND ([Password] = @Original_Password) AND ([IDStaffsType] = @Original_IDStaffsType))</CommandText>
  119. <Parameters>
  120. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  121. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Lastname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lastname" SourceColumnNullMapping="false" SourceVersion="Original" />
  122. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Firstname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Firstname" SourceColumnNullMapping="false" SourceVersion="Original" />
  123. <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" />
  124. <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" />
  125. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Original_PassportSeria" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="PassportSeria" SourceColumnNullMapping="false" SourceVersion="Original" />
  126. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Original_PassportNum" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="PassportNum" SourceColumnNullMapping="false" SourceVersion="Original" />
  127. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Login" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Login" SourceColumnNullMapping="false" SourceVersion="Original" />
  128. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Original" />
  129. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDStaffsType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDStaffsType" SourceColumnNullMapping="false" SourceVersion="Original" />
  130. </Parameters>
  131. </DbCommand>
  132. </DeleteCommand>
  133. <InsertCommand>
  134. <DbCommand CommandType="Text" ModifiedByUser="false">
  135. <CommandText>INSERT INTO [dbo].[Staffs] ([Lastname], [Firstname], [Patronymic], [PassportSeria], [PassportNum], [Login], [Password], [IDStaffsType]) VALUES (@Lastname, @Firstname, @Patronymic, @PassportSeria, @PassportNum, @Login, @Password, @IDStaffsType);
  136. SELECT ID, Lastname, Firstname, Patronymic, PassportSeria, PassportNum, Login, Password, IDStaffsType FROM Staffs WHERE (ID = SCOPE_IDENTITY())</CommandText>
  137. <Parameters>
  138. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Lastname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lastname" SourceColumnNullMapping="false" SourceVersion="Current" />
  139. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Firstname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Firstname" SourceColumnNullMapping="false" SourceVersion="Current" />
  140. <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" />
  141. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@PassportSeria" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="PassportSeria" SourceColumnNullMapping="false" SourceVersion="Current" />
  142. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@PassportNum" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="PassportNum" SourceColumnNullMapping="false" SourceVersion="Current" />
  143. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Login" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Login" SourceColumnNullMapping="false" SourceVersion="Current" />
  144. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Current" />
  145. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IDStaffsType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDStaffsType" SourceColumnNullMapping="false" SourceVersion="Current" />
  146. </Parameters>
  147. </DbCommand>
  148. </InsertCommand>
  149. <SelectCommand>
  150. <DbCommand CommandType="Text" ModifiedByUser="false">
  151. <CommandText>SELECT ID, Lastname, Firstname, Patronymic, PassportSeria, PassportNum, Login, Password, IDStaffsType FROM dbo.Staffs</CommandText>
  152. <Parameters />
  153. </DbCommand>
  154. </SelectCommand>
  155. <UpdateCommand>
  156. <DbCommand CommandType="Text" ModifiedByUser="false">
  157. <CommandText>UPDATE [dbo].[Staffs] SET [Lastname] = @Lastname, [Firstname] = @Firstname, [Patronymic] = @Patronymic, [PassportSeria] = @PassportSeria, [PassportNum] = @PassportNum, [Login] = @Login, [Password] = @Password, [IDStaffsType] = @IDStaffsType WHERE (([ID] = @Original_ID) AND ([Lastname] = @Original_Lastname) AND ([Firstname] = @Original_Firstname) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ([PassportSeria] = @Original_PassportSeria) AND ([PassportNum] = @Original_PassportNum) AND ([Login] = @Original_Login) AND ([Password] = @Original_Password) AND ([IDStaffsType] = @Original_IDStaffsType));
  158. SELECT ID, Lastname, Firstname, Patronymic, PassportSeria, PassportNum, Login, Password, IDStaffsType FROM Staffs WHERE (ID = @ID)</CommandText>
  159. <Parameters>
  160. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Lastname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lastname" SourceColumnNullMapping="false" SourceVersion="Current" />
  161. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Firstname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Firstname" SourceColumnNullMapping="false" SourceVersion="Current" />
  162. <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" />
  163. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@PassportSeria" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="PassportSeria" SourceColumnNullMapping="false" SourceVersion="Current" />
  164. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@PassportNum" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="PassportNum" SourceColumnNullMapping="false" SourceVersion="Current" />
  165. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Login" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Login" SourceColumnNullMapping="false" SourceVersion="Current" />
  166. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Current" />
  167. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IDStaffsType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDStaffsType" SourceColumnNullMapping="false" SourceVersion="Current" />
  168. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  169. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Lastname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lastname" SourceColumnNullMapping="false" SourceVersion="Original" />
  170. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Firstname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Firstname" SourceColumnNullMapping="false" SourceVersion="Original" />
  171. <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" />
  172. <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" />
  173. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Original_PassportSeria" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="PassportSeria" SourceColumnNullMapping="false" SourceVersion="Original" />
  174. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Original_PassportNum" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="PassportNum" SourceColumnNullMapping="false" SourceVersion="Original" />
  175. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Login" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Login" SourceColumnNullMapping="false" SourceVersion="Original" />
  176. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Original" />
  177. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDStaffsType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDStaffsType" SourceColumnNullMapping="false" SourceVersion="Original" />
  178. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="ImpulseVisionApp.dbo.Staffs" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  179. </Parameters>
  180. </DbCommand>
  181. </UpdateCommand>
  182. </DbSource>
  183. </MainSource>
  184. <Mappings>
  185. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  186. <Mapping SourceColumn="Lastname" DataSetColumn="Lastname" />
  187. <Mapping SourceColumn="Firstname" DataSetColumn="Firstname" />
  188. <Mapping SourceColumn="Patronymic" DataSetColumn="Patronymic" />
  189. <Mapping SourceColumn="PassportSeria" DataSetColumn="PassportSeria" />
  190. <Mapping SourceColumn="PassportNum" DataSetColumn="PassportNum" />
  191. <Mapping SourceColumn="Login" DataSetColumn="Login" />
  192. <Mapping SourceColumn="Password" DataSetColumn="Password" />
  193. <Mapping SourceColumn="IDStaffsType" DataSetColumn="IDStaffsType" />
  194. </Mappings>
  195. <Sources />
  196. </TableAdapter>
  197. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="UsersTableAdapter" GeneratorDataComponentClassName="UsersTableAdapter" Name="Users" UserDataComponentName="UsersTableAdapter">
  198. <MainSource>
  199. <DbSource ConnectionRef="ImpulseVisionAppConnectionString (Settings)" DbObjectName="ImpulseVisionApp.dbo.Users" 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">
  200. <DeleteCommand>
  201. <DbCommand CommandType="Text" ModifiedByUser="false">
  202. <CommandText>DELETE FROM [dbo].[Users] WHERE (([ID] = @Original_ID) AND ([Lastname] = @Original_Lastname) AND ([Firstname] = @Original_Firstname) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ([PassportSeria] = @Original_PassportSeria) AND ([PassportNum] = @Original_PassportNum) AND ([IDUserType] = @Original_IDUserType))</CommandText>
  203. <Parameters>
  204. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  205. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Lastname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lastname" SourceColumnNullMapping="false" SourceVersion="Original" />
  206. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Firstname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Firstname" SourceColumnNullMapping="false" SourceVersion="Original" />
  207. <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" />
  208. <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" />
  209. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Original_PassportSeria" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="PassportSeria" SourceColumnNullMapping="false" SourceVersion="Original" />
  210. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Original_PassportNum" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="PassportNum" SourceColumnNullMapping="false" SourceVersion="Original" />
  211. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDUserType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDUserType" SourceColumnNullMapping="false" SourceVersion="Original" />
  212. </Parameters>
  213. </DbCommand>
  214. </DeleteCommand>
  215. <InsertCommand>
  216. <DbCommand CommandType="Text" ModifiedByUser="false">
  217. <CommandText>INSERT INTO [dbo].[Users] ([Lastname], [Firstname], [Patronymic], [PassportSeria], [PassportNum], [IDUserType]) VALUES (@Lastname, @Firstname, @Patronymic, @PassportSeria, @PassportNum, @IDUserType);
  218. SELECT ID, Lastname, Firstname, Patronymic, PassportSeria, PassportNum, IDUserType FROM Users WHERE (ID = SCOPE_IDENTITY())</CommandText>
  219. <Parameters>
  220. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Lastname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lastname" SourceColumnNullMapping="false" SourceVersion="Current" />
  221. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Firstname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Firstname" SourceColumnNullMapping="false" SourceVersion="Current" />
  222. <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" />
  223. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@PassportSeria" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="PassportSeria" SourceColumnNullMapping="false" SourceVersion="Current" />
  224. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@PassportNum" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="PassportNum" SourceColumnNullMapping="false" SourceVersion="Current" />
  225. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IDUserType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDUserType" SourceColumnNullMapping="false" SourceVersion="Current" />
  226. </Parameters>
  227. </DbCommand>
  228. </InsertCommand>
  229. <SelectCommand>
  230. <DbCommand CommandType="Text" ModifiedByUser="false">
  231. <CommandText>SELECT ID, Lastname, Firstname, Patronymic, PassportSeria, PassportNum, IDUserType FROM dbo.Users</CommandText>
  232. <Parameters />
  233. </DbCommand>
  234. </SelectCommand>
  235. <UpdateCommand>
  236. <DbCommand CommandType="Text" ModifiedByUser="false">
  237. <CommandText>UPDATE [dbo].[Users] SET [Lastname] = @Lastname, [Firstname] = @Firstname, [Patronymic] = @Patronymic, [PassportSeria] = @PassportSeria, [PassportNum] = @PassportNum, [IDUserType] = @IDUserType WHERE (([ID] = @Original_ID) AND ([Lastname] = @Original_Lastname) AND ([Firstname] = @Original_Firstname) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ([PassportSeria] = @Original_PassportSeria) AND ([PassportNum] = @Original_PassportNum) AND ([IDUserType] = @Original_IDUserType));
  238. SELECT ID, Lastname, Firstname, Patronymic, PassportSeria, PassportNum, IDUserType FROM Users WHERE (ID = @ID)</CommandText>
  239. <Parameters>
  240. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Lastname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lastname" SourceColumnNullMapping="false" SourceVersion="Current" />
  241. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Firstname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Firstname" SourceColumnNullMapping="false" SourceVersion="Current" />
  242. <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" />
  243. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@PassportSeria" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="PassportSeria" SourceColumnNullMapping="false" SourceVersion="Current" />
  244. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@PassportNum" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="PassportNum" SourceColumnNullMapping="false" SourceVersion="Current" />
  245. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IDUserType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDUserType" SourceColumnNullMapping="false" SourceVersion="Current" />
  246. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  247. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Lastname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lastname" SourceColumnNullMapping="false" SourceVersion="Original" />
  248. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Firstname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Firstname" SourceColumnNullMapping="false" SourceVersion="Original" />
  249. <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" />
  250. <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" />
  251. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Original_PassportSeria" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="PassportSeria" SourceColumnNullMapping="false" SourceVersion="Original" />
  252. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Original_PassportNum" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="PassportNum" SourceColumnNullMapping="false" SourceVersion="Original" />
  253. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IDUserType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDUserType" SourceColumnNullMapping="false" SourceVersion="Original" />
  254. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="ImpulseVisionApp.dbo.Users" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  255. </Parameters>
  256. </DbCommand>
  257. </UpdateCommand>
  258. </DbSource>
  259. </MainSource>
  260. <Mappings>
  261. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  262. <Mapping SourceColumn="Lastname" DataSetColumn="Lastname" />
  263. <Mapping SourceColumn="Firstname" DataSetColumn="Firstname" />
  264. <Mapping SourceColumn="Patronymic" DataSetColumn="Patronymic" />
  265. <Mapping SourceColumn="PassportSeria" DataSetColumn="PassportSeria" />
  266. <Mapping SourceColumn="PassportNum" DataSetColumn="PassportNum" />
  267. <Mapping SourceColumn="IDUserType" DataSetColumn="IDUserType" />
  268. </Mappings>
  269. <Sources />
  270. </TableAdapter>
  271. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="UserTrafficTableAdapter" GeneratorDataComponentClassName="UserTrafficTableAdapter" Name="UserTraffic" UserDataComponentName="UserTrafficTableAdapter">
  272. <MainSource>
  273. <DbSource ConnectionRef="ImpulseVisionAppConnectionString (Settings)" DbObjectName="ImpulseVisionApp.dbo.UserTraffic" 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">
  274. <DeleteCommand>
  275. <DbCommand CommandType="Text" ModifiedByUser="false">
  276. <CommandText>DELETE FROM [dbo].[UserTraffic] WHERE (([ID] = @Original_ID) AND ([UserID] = @Original_UserID) AND ((@IsNull_TimeEntrance = 1 AND [TimeEntrance] IS NULL) OR ([TimeEntrance] = @Original_TimeEntrance)) AND ((@IsNull_TimeExit = 1 AND [TimeExit] IS NULL) OR ([TimeExit] = @Original_TimeExit)) AND ([Identification] = @Original_Identification))</CommandText>
  277. <Parameters>
  278. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  279. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_UserID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Original" />
  280. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TimeEntrance" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TimeEntrance" SourceColumnNullMapping="true" SourceVersion="Original" />
  281. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_TimeEntrance" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeEntrance" SourceColumnNullMapping="false" SourceVersion="Original" />
  282. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TimeExit" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TimeExit" SourceColumnNullMapping="true" SourceVersion="Original" />
  283. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_TimeExit" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeExit" SourceColumnNullMapping="false" SourceVersion="Original" />
  284. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Identification" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Identification" SourceColumnNullMapping="false" SourceVersion="Original" />
  285. </Parameters>
  286. </DbCommand>
  287. </DeleteCommand>
  288. <InsertCommand>
  289. <DbCommand CommandType="Text" ModifiedByUser="false">
  290. <CommandText>INSERT INTO [dbo].[UserTraffic] ([UserID], [TimeEntrance], [TimeExit], [Identification]) VALUES (@UserID, @TimeEntrance, @TimeExit, @Identification);
  291. SELECT ID, UserID, TimeEntrance, TimeExit, Identification FROM UserTraffic WHERE (ID = SCOPE_IDENTITY())</CommandText>
  292. <Parameters>
  293. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@UserID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Current" />
  294. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@TimeEntrance" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeEntrance" SourceColumnNullMapping="false" SourceVersion="Current" />
  295. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@TimeExit" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeExit" SourceColumnNullMapping="false" SourceVersion="Current" />
  296. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Identification" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Identification" SourceColumnNullMapping="false" SourceVersion="Current" />
  297. </Parameters>
  298. </DbCommand>
  299. </InsertCommand>
  300. <SelectCommand>
  301. <DbCommand CommandType="Text" ModifiedByUser="false">
  302. <CommandText>SELECT ID, UserID, TimeEntrance, TimeExit, Identification FROM dbo.UserTraffic</CommandText>
  303. <Parameters />
  304. </DbCommand>
  305. </SelectCommand>
  306. <UpdateCommand>
  307. <DbCommand CommandType="Text" ModifiedByUser="false">
  308. <CommandText>UPDATE [dbo].[UserTraffic] SET [UserID] = @UserID, [TimeEntrance] = @TimeEntrance, [TimeExit] = @TimeExit, [Identification] = @Identification WHERE (([ID] = @Original_ID) AND ([UserID] = @Original_UserID) AND ((@IsNull_TimeEntrance = 1 AND [TimeEntrance] IS NULL) OR ([TimeEntrance] = @Original_TimeEntrance)) AND ((@IsNull_TimeExit = 1 AND [TimeExit] IS NULL) OR ([TimeExit] = @Original_TimeExit)) AND ([Identification] = @Original_Identification));
  309. SELECT ID, UserID, TimeEntrance, TimeExit, Identification FROM UserTraffic WHERE (ID = @ID)</CommandText>
  310. <Parameters>
  311. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@UserID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Current" />
  312. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@TimeEntrance" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeEntrance" SourceColumnNullMapping="false" SourceVersion="Current" />
  313. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@TimeExit" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeExit" SourceColumnNullMapping="false" SourceVersion="Current" />
  314. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Identification" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Identification" SourceColumnNullMapping="false" SourceVersion="Current" />
  315. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  316. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_UserID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Original" />
  317. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TimeEntrance" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TimeEntrance" SourceColumnNullMapping="true" SourceVersion="Original" />
  318. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_TimeEntrance" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeEntrance" SourceColumnNullMapping="false" SourceVersion="Original" />
  319. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TimeExit" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TimeExit" SourceColumnNullMapping="true" SourceVersion="Original" />
  320. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_TimeExit" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeExit" SourceColumnNullMapping="false" SourceVersion="Original" />
  321. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Identification" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Identification" SourceColumnNullMapping="false" SourceVersion="Original" />
  322. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="ImpulseVisionApp.dbo.UserTraffic" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  323. </Parameters>
  324. </DbCommand>
  325. </UpdateCommand>
  326. </DbSource>
  327. </MainSource>
  328. <Mappings>
  329. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  330. <Mapping SourceColumn="UserID" DataSetColumn="UserID" />
  331. <Mapping SourceColumn="TimeEntrance" DataSetColumn="TimeEntrance" />
  332. <Mapping SourceColumn="TimeExit" DataSetColumn="TimeExit" />
  333. <Mapping SourceColumn="Identification" DataSetColumn="Identification" />
  334. </Mappings>
  335. <Sources />
  336. </TableAdapter>
  337. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="UserTypeTableAdapter" GeneratorDataComponentClassName="UserTypeTableAdapter" Name="UserType" UserDataComponentName="UserTypeTableAdapter">
  338. <MainSource>
  339. <DbSource ConnectionRef="ImpulseVisionAppConnectionString (Settings)" DbObjectName="ImpulseVisionApp.dbo.UserType" 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">
  340. <DeleteCommand>
  341. <DbCommand CommandType="Text" ModifiedByUser="false">
  342. <CommandText>DELETE FROM [dbo].[UserType] WHERE (([ID] = @Original_ID) AND ([UserType] = @Original_UserType))</CommandText>
  343. <Parameters>
  344. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  345. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_UserType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserType" SourceColumnNullMapping="false" SourceVersion="Original" />
  346. </Parameters>
  347. </DbCommand>
  348. </DeleteCommand>
  349. <InsertCommand>
  350. <DbCommand CommandType="Text" ModifiedByUser="false">
  351. <CommandText>INSERT INTO [dbo].[UserType] ([UserType]) VALUES (@UserType);
  352. SELECT ID, UserType FROM UserType WHERE (ID = SCOPE_IDENTITY())</CommandText>
  353. <Parameters>
  354. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserType" SourceColumnNullMapping="false" SourceVersion="Current" />
  355. </Parameters>
  356. </DbCommand>
  357. </InsertCommand>
  358. <SelectCommand>
  359. <DbCommand CommandType="Text" ModifiedByUser="false">
  360. <CommandText>SELECT ID, UserType FROM dbo.UserType</CommandText>
  361. <Parameters />
  362. </DbCommand>
  363. </SelectCommand>
  364. <UpdateCommand>
  365. <DbCommand CommandType="Text" ModifiedByUser="false">
  366. <CommandText>UPDATE [dbo].[UserType] SET [UserType] = @UserType WHERE (([ID] = @Original_ID) AND ([UserType] = @Original_UserType));
  367. SELECT ID, UserType FROM UserType WHERE (ID = @ID)</CommandText>
  368. <Parameters>
  369. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserType" SourceColumnNullMapping="false" SourceVersion="Current" />
  370. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  371. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_UserType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserType" SourceColumnNullMapping="false" SourceVersion="Original" />
  372. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="ImpulseVisionApp.dbo.UserType" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  373. </Parameters>
  374. </DbCommand>
  375. </UpdateCommand>
  376. </DbSource>
  377. </MainSource>
  378. <Mappings>
  379. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  380. <Mapping SourceColumn="UserType" DataSetColumn="UserType" />
  381. </Mappings>
  382. <Sources />
  383. </TableAdapter>
  384. </Tables>
  385. <Sources />
  386. </DataSource>
  387. </xs:appinfo>
  388. </xs:annotation>
  389. <xs:element name="ImpulseVisionAppDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_UserDSName="ImpulseVisionAppDataSet" msprop:Generator_DataSetName="ImpulseVisionAppDataSet">
  390. <xs:complexType>
  391. <xs:choice minOccurs="0" maxOccurs="unbounded">
  392. <xs:element name="FaceImages" msprop:Generator_RowEvHandlerName="FaceImagesRowChangeEventHandler" msprop:Generator_RowDeletedName="FaceImagesRowDeleted" msprop:Generator_RowDeletingName="FaceImagesRowDeleting" msprop:Generator_RowEvArgName="FaceImagesRowChangeEvent" msprop:Generator_TablePropName="FaceImages" msprop:Generator_RowChangedName="FaceImagesRowChanged" msprop:Generator_RowChangingName="FaceImagesRowChanging" msprop:Generator_TableClassName="FaceImagesDataTable" msprop:Generator_RowClassName="FaceImagesRow" msprop:Generator_TableVarName="tableFaceImages" msprop:Generator_UserTableName="FaceImages">
  393. <xs:complexType>
  394. <xs:sequence>
  395. <xs:element name="ID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_UserColumnName="ID" type="xs:int" />
  396. <xs:element name="UserID" msprop:Generator_ColumnPropNameInRow="UserID" msprop:Generator_ColumnPropNameInTable="UserIDColumn" msprop:Generator_ColumnVarNameInTable="columnUserID" msprop:Generator_UserColumnName="UserID" type="xs:int" />
  397. <xs:element name="Picture" msprop:Generator_ColumnPropNameInRow="Picture" msprop:Generator_ColumnPropNameInTable="PictureColumn" msprop:Generator_ColumnVarNameInTable="columnPicture" msprop:Generator_UserColumnName="Picture">
  398. <xs:simpleType>
  399. <xs:restriction base="xs:string">
  400. <xs:maxLength value="2147483647" />
  401. </xs:restriction>
  402. </xs:simpleType>
  403. </xs:element>
  404. </xs:sequence>
  405. </xs:complexType>
  406. </xs:element>
  407. <xs:element name="HistoryLogin" msprop:Generator_RowEvHandlerName="HistoryLoginRowChangeEventHandler" msprop:Generator_RowDeletedName="HistoryLoginRowDeleted" msprop:Generator_RowDeletingName="HistoryLoginRowDeleting" msprop:Generator_RowEvArgName="HistoryLoginRowChangeEvent" msprop:Generator_TablePropName="HistoryLogin" msprop:Generator_RowChangedName="HistoryLoginRowChanged" msprop:Generator_RowChangingName="HistoryLoginRowChanging" msprop:Generator_TableClassName="HistoryLoginDataTable" msprop:Generator_RowClassName="HistoryLoginRow" msprop:Generator_TableVarName="tableHistoryLogin" msprop:Generator_UserTableName="HistoryLogin">
  408. <xs:complexType>
  409. <xs:sequence>
  410. <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_UserColumnName="ID" type="xs:int" />
  411. <xs:element name="StaffsID" msprop:Generator_ColumnPropNameInRow="StaffsID" msprop:Generator_ColumnPropNameInTable="StaffsIDColumn" msprop:Generator_ColumnVarNameInTable="columnStaffsID" msprop:Generator_UserColumnName="StaffsID" type="xs:int" />
  412. <xs:element name="TimeLogin" msprop:Generator_ColumnPropNameInRow="TimeLogin" msprop:Generator_ColumnPropNameInTable="TimeLoginColumn" msprop:Generator_ColumnVarNameInTable="columnTimeLogin" msprop:Generator_UserColumnName="TimeLogin" type="xs:dateTime" />
  413. </xs:sequence>
  414. </xs:complexType>
  415. </xs:element>
  416. <xs:element name="Staffs" msprop:Generator_RowEvHandlerName="StaffsRowChangeEventHandler" msprop:Generator_RowDeletedName="StaffsRowDeleted" msprop:Generator_RowDeletingName="StaffsRowDeleting" msprop:Generator_RowEvArgName="StaffsRowChangeEvent" msprop:Generator_TablePropName="Staffs" msprop:Generator_RowChangedName="StaffsRowChanged" msprop:Generator_RowChangingName="StaffsRowChanging" msprop:Generator_TableClassName="StaffsDataTable" msprop:Generator_RowClassName="StaffsRow" msprop:Generator_TableVarName="tableStaffs" msprop:Generator_UserTableName="Staffs">
  417. <xs:complexType>
  418. <xs:sequence>
  419. <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_UserColumnName="ID" type="xs:int" />
  420. <xs:element name="Lastname" msprop:Generator_ColumnPropNameInRow="Lastname" msprop:Generator_ColumnPropNameInTable="LastnameColumn" msprop:Generator_ColumnVarNameInTable="columnLastname" msprop:Generator_UserColumnName="Lastname">
  421. <xs:simpleType>
  422. <xs:restriction base="xs:string">
  423. <xs:maxLength value="50" />
  424. </xs:restriction>
  425. </xs:simpleType>
  426. </xs:element>
  427. <xs:element name="Firstname" msprop:Generator_ColumnPropNameInRow="Firstname" msprop:Generator_ColumnPropNameInTable="FirstnameColumn" msprop:Generator_ColumnVarNameInTable="columnFirstname" msprop:Generator_UserColumnName="Firstname">
  428. <xs:simpleType>
  429. <xs:restriction base="xs:string">
  430. <xs:maxLength value="50" />
  431. </xs:restriction>
  432. </xs:simpleType>
  433. </xs:element>
  434. <xs:element name="Patronymic" msprop:Generator_ColumnPropNameInRow="Patronymic" msprop:Generator_ColumnPropNameInTable="PatronymicColumn" msprop:Generator_ColumnVarNameInTable="columnPatronymic" msprop:Generator_UserColumnName="Patronymic" minOccurs="0">
  435. <xs:simpleType>
  436. <xs:restriction base="xs:string">
  437. <xs:maxLength value="50" />
  438. </xs:restriction>
  439. </xs:simpleType>
  440. </xs:element>
  441. <xs:element name="PassportSeria" msprop:Generator_ColumnPropNameInRow="PassportSeria" msprop:Generator_ColumnPropNameInTable="PassportSeriaColumn" msprop:Generator_ColumnVarNameInTable="columnPassportSeria" msprop:Generator_UserColumnName="PassportSeria">
  442. <xs:simpleType>
  443. <xs:restriction base="xs:string">
  444. <xs:maxLength value="4" />
  445. </xs:restriction>
  446. </xs:simpleType>
  447. </xs:element>
  448. <xs:element name="PassportNum" msprop:Generator_ColumnPropNameInRow="PassportNum" msprop:Generator_ColumnPropNameInTable="PassportNumColumn" msprop:Generator_ColumnVarNameInTable="columnPassportNum" msprop:Generator_UserColumnName="PassportNum">
  449. <xs:simpleType>
  450. <xs:restriction base="xs:string">
  451. <xs:maxLength value="6" />
  452. </xs:restriction>
  453. </xs:simpleType>
  454. </xs:element>
  455. <xs:element name="Login" msprop:Generator_ColumnPropNameInRow="Login" msprop:Generator_ColumnPropNameInTable="LoginColumn" msprop:Generator_ColumnVarNameInTable="columnLogin" msprop:Generator_UserColumnName="Login">
  456. <xs:simpleType>
  457. <xs:restriction base="xs:string">
  458. <xs:maxLength value="50" />
  459. </xs:restriction>
  460. </xs:simpleType>
  461. </xs:element>
  462. <xs:element name="Password" msprop:Generator_ColumnPropNameInRow="Password" msprop:Generator_ColumnPropNameInTable="PasswordColumn" msprop:Generator_ColumnVarNameInTable="columnPassword" msprop:Generator_UserColumnName="Password">
  463. <xs:simpleType>
  464. <xs:restriction base="xs:string">
  465. <xs:maxLength value="50" />
  466. </xs:restriction>
  467. </xs:simpleType>
  468. </xs:element>
  469. <xs:element name="IDStaffsType" msprop:Generator_ColumnPropNameInRow="IDStaffsType" msprop:Generator_ColumnPropNameInTable="IDStaffsTypeColumn" msprop:Generator_ColumnVarNameInTable="columnIDStaffsType" msprop:Generator_UserColumnName="IDStaffsType" type="xs:int" />
  470. </xs:sequence>
  471. </xs:complexType>
  472. </xs:element>
  473. <xs:element name="Users" msprop:Generator_RowEvHandlerName="UsersRowChangeEventHandler" msprop:Generator_RowDeletedName="UsersRowDeleted" msprop:Generator_RowDeletingName="UsersRowDeleting" msprop:Generator_RowEvArgName="UsersRowChangeEvent" msprop:Generator_TablePropName="Users" msprop:Generator_RowChangedName="UsersRowChanged" msprop:Generator_RowChangingName="UsersRowChanging" msprop:Generator_TableClassName="UsersDataTable" msprop:Generator_RowClassName="UsersRow" msprop:Generator_TableVarName="tableUsers" msprop:Generator_UserTableName="Users">
  474. <xs:complexType>
  475. <xs:sequence>
  476. <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_UserColumnName="ID" type="xs:int" />
  477. <xs:element name="Lastname" msprop:Generator_ColumnPropNameInRow="Lastname" msprop:Generator_ColumnPropNameInTable="LastnameColumn" msprop:Generator_ColumnVarNameInTable="columnLastname" msprop:Generator_UserColumnName="Lastname">
  478. <xs:simpleType>
  479. <xs:restriction base="xs:string">
  480. <xs:maxLength value="50" />
  481. </xs:restriction>
  482. </xs:simpleType>
  483. </xs:element>
  484. <xs:element name="Firstname" msprop:Generator_ColumnPropNameInRow="Firstname" msprop:Generator_ColumnPropNameInTable="FirstnameColumn" msprop:Generator_ColumnVarNameInTable="columnFirstname" msprop:Generator_UserColumnName="Firstname">
  485. <xs:simpleType>
  486. <xs:restriction base="xs:string">
  487. <xs:maxLength value="50" />
  488. </xs:restriction>
  489. </xs:simpleType>
  490. </xs:element>
  491. <xs:element name="Patronymic" msprop:Generator_ColumnPropNameInRow="Patronymic" msprop:Generator_ColumnPropNameInTable="PatronymicColumn" msprop:Generator_ColumnVarNameInTable="columnPatronymic" msprop:Generator_UserColumnName="Patronymic" minOccurs="0">
  492. <xs:simpleType>
  493. <xs:restriction base="xs:string">
  494. <xs:maxLength value="50" />
  495. </xs:restriction>
  496. </xs:simpleType>
  497. </xs:element>
  498. <xs:element name="PassportSeria" msprop:Generator_ColumnPropNameInRow="PassportSeria" msprop:Generator_ColumnPropNameInTable="PassportSeriaColumn" msprop:Generator_ColumnVarNameInTable="columnPassportSeria" msprop:Generator_UserColumnName="PassportSeria">
  499. <xs:simpleType>
  500. <xs:restriction base="xs:string">
  501. <xs:maxLength value="4" />
  502. </xs:restriction>
  503. </xs:simpleType>
  504. </xs:element>
  505. <xs:element name="PassportNum" msprop:Generator_ColumnPropNameInRow="PassportNum" msprop:Generator_ColumnPropNameInTable="PassportNumColumn" msprop:Generator_ColumnVarNameInTable="columnPassportNum" msprop:Generator_UserColumnName="PassportNum">
  506. <xs:simpleType>
  507. <xs:restriction base="xs:string">
  508. <xs:maxLength value="6" />
  509. </xs:restriction>
  510. </xs:simpleType>
  511. </xs:element>
  512. <xs:element name="IDUserType" msprop:Generator_ColumnPropNameInRow="IDUserType" msprop:Generator_ColumnPropNameInTable="IDUserTypeColumn" msprop:Generator_ColumnVarNameInTable="columnIDUserType" msprop:Generator_UserColumnName="IDUserType" type="xs:int" />
  513. </xs:sequence>
  514. </xs:complexType>
  515. </xs:element>
  516. <xs:element name="UserTraffic" msprop:Generator_RowEvHandlerName="UserTrafficRowChangeEventHandler" msprop:Generator_RowDeletedName="UserTrafficRowDeleted" msprop:Generator_RowDeletingName="UserTrafficRowDeleting" msprop:Generator_RowEvArgName="UserTrafficRowChangeEvent" msprop:Generator_TablePropName="UserTraffic" msprop:Generator_RowChangedName="UserTrafficRowChanged" msprop:Generator_RowChangingName="UserTrafficRowChanging" msprop:Generator_TableClassName="UserTrafficDataTable" msprop:Generator_RowClassName="UserTrafficRow" msprop:Generator_TableVarName="tableUserTraffic" msprop:Generator_UserTableName="UserTraffic">
  517. <xs:complexType>
  518. <xs:sequence>
  519. <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_UserColumnName="ID" type="xs:int" />
  520. <xs:element name="UserID" msprop:Generator_ColumnPropNameInRow="UserID" msprop:Generator_ColumnPropNameInTable="UserIDColumn" msprop:Generator_ColumnVarNameInTable="columnUserID" msprop:Generator_UserColumnName="UserID" type="xs:int" />
  521. <xs:element name="TimeEntrance" msprop:Generator_ColumnPropNameInRow="TimeEntrance" msprop:Generator_ColumnPropNameInTable="TimeEntranceColumn" msprop:Generator_ColumnVarNameInTable="columnTimeEntrance" msprop:Generator_UserColumnName="TimeEntrance" type="xs:dateTime" minOccurs="0" />
  522. <xs:element name="TimeExit" msprop:Generator_ColumnPropNameInRow="TimeExit" msprop:Generator_ColumnPropNameInTable="TimeExitColumn" msprop:Generator_ColumnVarNameInTable="columnTimeExit" msprop:Generator_UserColumnName="TimeExit" type="xs:dateTime" minOccurs="0" />
  523. <xs:element name="Identification" msprop:Generator_ColumnPropNameInRow="Identification" msprop:Generator_ColumnPropNameInTable="IdentificationColumn" msprop:Generator_ColumnVarNameInTable="columnIdentification" msprop:Generator_UserColumnName="Identification" type="xs:boolean" />
  524. </xs:sequence>
  525. </xs:complexType>
  526. </xs:element>
  527. <xs:element name="UserType" msprop:Generator_RowEvHandlerName="UserTypeRowChangeEventHandler" msprop:Generator_RowDeletedName="UserTypeRowDeleted" msprop:Generator_RowDeletingName="UserTypeRowDeleting" msprop:Generator_RowEvArgName="UserTypeRowChangeEvent" msprop:Generator_TablePropName="UserType" msprop:Generator_RowChangedName="UserTypeRowChanged" msprop:Generator_RowChangingName="UserTypeRowChanging" msprop:Generator_TableClassName="UserTypeDataTable" msprop:Generator_RowClassName="UserTypeRow" msprop:Generator_TableVarName="tableUserType" msprop:Generator_UserTableName="UserType">
  528. <xs:complexType>
  529. <xs:sequence>
  530. <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_UserColumnName="ID" type="xs:int" />
  531. <xs:element name="UserType" msprop:Generator_ColumnPropNameInRow="UserType" msprop:Generator_ColumnPropNameInTable="UserTypeColumn" msprop:Generator_ColumnVarNameInTable="columnUserType" msprop:Generator_UserColumnName="UserType">
  532. <xs:simpleType>
  533. <xs:restriction base="xs:string">
  534. <xs:maxLength value="50" />
  535. </xs:restriction>
  536. </xs:simpleType>
  537. </xs:element>
  538. </xs:sequence>
  539. </xs:complexType>
  540. </xs:element>
  541. </xs:choice>
  542. </xs:complexType>
  543. <xs:unique name="Constraint1" msdata:PrimaryKey="true">
  544. <xs:selector xpath=".//mstns:FaceImages" />
  545. <xs:field xpath="mstns:ID" />
  546. </xs:unique>
  547. <xs:unique name="HistoryLogin_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  548. <xs:selector xpath=".//mstns:HistoryLogin" />
  549. <xs:field xpath="mstns:ID" />
  550. </xs:unique>
  551. <xs:unique name="Staffs_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  552. <xs:selector xpath=".//mstns:Staffs" />
  553. <xs:field xpath="mstns:ID" />
  554. </xs:unique>
  555. <xs:unique name="Users_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  556. <xs:selector xpath=".//mstns:Users" />
  557. <xs:field xpath="mstns:ID" />
  558. </xs:unique>
  559. <xs:unique name="UserTraffic_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  560. <xs:selector xpath=".//mstns:UserTraffic" />
  561. <xs:field xpath="mstns:ID" />
  562. </xs:unique>
  563. <xs:unique name="UserType_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  564. <xs:selector xpath=".//mstns:UserType" />
  565. <xs:field xpath="mstns:ID" />
  566. </xs:unique>
  567. </xs:element>
  568. <xs:annotation>
  569. <xs:appinfo>
  570. <msdata:Relationship name="FK_FaceImages_Users" msdata:parent="Users" msdata:child="FaceImages" msdata:parentkey="ID" msdata:childkey="UserID" msprop:Generator_UserParentTable="Users" msprop:Generator_UserChildTable="FaceImages" msprop:Generator_RelationVarName="relationFK_FaceImages_Users" msprop:Generator_UserRelationName="FK_FaceImages_Users" msprop:Generator_ChildPropName="GetFaceImagesRows" msprop:Generator_ParentPropName="UsersRow" />
  571. <msdata:Relationship name="FK_HistoryLogin_Staffs" msdata:parent="Staffs" msdata:child="HistoryLogin" msdata:parentkey="ID" msdata:childkey="StaffsID" msprop:Generator_UserParentTable="Staffs" msprop:Generator_UserChildTable="HistoryLogin" msprop:Generator_RelationVarName="relationFK_HistoryLogin_Staffs" msprop:Generator_UserRelationName="FK_HistoryLogin_Staffs" msprop:Generator_ChildPropName="GetHistoryLoginRows" msprop:Generator_ParentPropName="StaffsRow" />
  572. <msdata:Relationship name="FK_Staffs_UserType" msdata:parent="UserType" msdata:child="Staffs" msdata:parentkey="ID" msdata:childkey="IDStaffsType" msprop:Generator_UserParentTable="UserType" msprop:Generator_UserChildTable="Staffs" msprop:Generator_RelationVarName="relationFK_Staffs_UserType" msprop:Generator_UserRelationName="FK_Staffs_UserType" msprop:Generator_ChildPropName="GetStaffsRows" msprop:Generator_ParentPropName="UserTypeRow" />
  573. <msdata:Relationship name="FK_Users_UserType" msdata:parent="UserType" msdata:child="Users" msdata:parentkey="ID" msdata:childkey="IDUserType" msprop:Generator_UserParentTable="UserType" msprop:Generator_UserChildTable="Users" msprop:Generator_RelationVarName="relationFK_Users_UserType" msprop:Generator_UserRelationName="FK_Users_UserType" msprop:Generator_ChildPropName="GetUsersRows" msprop:Generator_ParentPropName="UserTypeRow" />
  574. <msdata:Relationship name="FK_UserTraffic_Users" msdata:parent="Users" msdata:child="UserTraffic" msdata:parentkey="ID" msdata:childkey="UserID" msprop:Generator_UserParentTable="Users" msprop:Generator_UserChildTable="UserTraffic" msprop:Generator_RelationVarName="relationFK_UserTraffic_Users" msprop:Generator_ChildPropName="GetUserTrafficRows" msprop:Generator_ParentPropName="UsersRow" msprop:Generator_UserRelationName="FK_UserTraffic_Users" />
  575. </xs:appinfo>
  576. </xs:annotation>
  577. </xs:schema>