|
|
@@ -1,6282 +0,0 @@
|
|
|
-//------------------------------------------------------------------------------
|
|
|
-// <auto-generated>
|
|
|
-// This code was generated by a tool.
|
|
|
-// Runtime Version:4.0.30319.42000
|
|
|
-//
|
|
|
-// Changes to this file may cause incorrect behavior and will be lost if
|
|
|
-// the code is regenerated.
|
|
|
-// </auto-generated>
|
|
|
-//------------------------------------------------------------------------------
|
|
|
-
|
|
|
-#pragma warning disable 1591
|
|
|
-
|
|
|
-namespace ImpulseVision {
|
|
|
-
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Represents a strongly typed in-memory cache of data.
|
|
|
- ///</summary>
|
|
|
- [global::System.Serializable()]
|
|
|
- [global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
|
- [global::System.ComponentModel.ToolboxItem(true)]
|
|
|
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
|
|
|
- [global::System.Xml.Serialization.XmlRootAttribute("ImpulseVisionAppDataSet1")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
|
|
|
- public partial class ImpulseVisionAppDataSet1 : global::System.Data.DataSet {
|
|
|
-
|
|
|
- private FaceImagesDataTable tableFaceImages;
|
|
|
-
|
|
|
- private HistoryLoginDataTable tableHistoryLogin;
|
|
|
-
|
|
|
- private StaffsDataTable tableStaffs;
|
|
|
-
|
|
|
- private UsersDataTable tableUsers;
|
|
|
-
|
|
|
- private UserTrafficDataTable tableUserTraffic;
|
|
|
-
|
|
|
- private UserTypeDataTable tableUserType;
|
|
|
-
|
|
|
- private global::System.Data.DataRelation relationFK_FaceImages_Users;
|
|
|
-
|
|
|
- private global::System.Data.DataRelation relationFK_HistoryLogin_Staffs;
|
|
|
-
|
|
|
- private global::System.Data.DataRelation relationFK_Staffs_UserType;
|
|
|
-
|
|
|
- private global::System.Data.DataRelation relationFK_Users_UserType;
|
|
|
-
|
|
|
- private global::System.Data.DataRelation relationFK_UserTraffic_Users;
|
|
|
-
|
|
|
- private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public ImpulseVisionAppDataSet1() {
|
|
|
- this.BeginInit();
|
|
|
- this.InitClass();
|
|
|
- global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
|
|
|
- base.Tables.CollectionChanged += schemaChangedHandler;
|
|
|
- base.Relations.CollectionChanged += schemaChangedHandler;
|
|
|
- this.EndInit();
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected ImpulseVisionAppDataSet1(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
|
- base(info, context, false) {
|
|
|
- if ((this.IsBinarySerialized(info, context) == true)) {
|
|
|
- this.InitVars(false);
|
|
|
- global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
|
|
|
- this.Tables.CollectionChanged += schemaChangedHandler1;
|
|
|
- this.Relations.CollectionChanged += schemaChangedHandler1;
|
|
|
- return;
|
|
|
- }
|
|
|
- string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
|
|
|
- if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
|
|
|
- global::System.Data.DataSet ds = new global::System.Data.DataSet();
|
|
|
- ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
|
|
|
- if ((ds.Tables["FaceImages"] != null)) {
|
|
|
- base.Tables.Add(new FaceImagesDataTable(ds.Tables["FaceImages"]));
|
|
|
- }
|
|
|
- if ((ds.Tables["HistoryLogin"] != null)) {
|
|
|
- base.Tables.Add(new HistoryLoginDataTable(ds.Tables["HistoryLogin"]));
|
|
|
- }
|
|
|
- if ((ds.Tables["Staffs"] != null)) {
|
|
|
- base.Tables.Add(new StaffsDataTable(ds.Tables["Staffs"]));
|
|
|
- }
|
|
|
- if ((ds.Tables["Users"] != null)) {
|
|
|
- base.Tables.Add(new UsersDataTable(ds.Tables["Users"]));
|
|
|
- }
|
|
|
- if ((ds.Tables["UserTraffic"] != null)) {
|
|
|
- base.Tables.Add(new UserTrafficDataTable(ds.Tables["UserTraffic"]));
|
|
|
- }
|
|
|
- if ((ds.Tables["UserType"] != null)) {
|
|
|
- base.Tables.Add(new UserTypeDataTable(ds.Tables["UserType"]));
|
|
|
- }
|
|
|
- this.DataSetName = ds.DataSetName;
|
|
|
- this.Prefix = ds.Prefix;
|
|
|
- this.Namespace = ds.Namespace;
|
|
|
- this.Locale = ds.Locale;
|
|
|
- this.CaseSensitive = ds.CaseSensitive;
|
|
|
- this.EnforceConstraints = ds.EnforceConstraints;
|
|
|
- this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
|
|
|
- this.InitVars();
|
|
|
- }
|
|
|
- else {
|
|
|
- this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
|
|
|
- }
|
|
|
- this.GetSerializationData(info, context);
|
|
|
- global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
|
|
|
- base.Tables.CollectionChanged += schemaChangedHandler;
|
|
|
- this.Relations.CollectionChanged += schemaChangedHandler;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Browsable(false)]
|
|
|
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
|
- public FaceImagesDataTable FaceImages {
|
|
|
- get {
|
|
|
- return this.tableFaceImages;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Browsable(false)]
|
|
|
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
|
- public HistoryLoginDataTable HistoryLogin {
|
|
|
- get {
|
|
|
- return this.tableHistoryLogin;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Browsable(false)]
|
|
|
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
|
- public StaffsDataTable Staffs {
|
|
|
- get {
|
|
|
- return this.tableStaffs;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Browsable(false)]
|
|
|
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
|
- public UsersDataTable Users {
|
|
|
- get {
|
|
|
- return this.tableUsers;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Browsable(false)]
|
|
|
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
|
- public UserTrafficDataTable UserTraffic {
|
|
|
- get {
|
|
|
- return this.tableUserTraffic;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Browsable(false)]
|
|
|
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
|
- public UserTypeDataTable UserType {
|
|
|
- get {
|
|
|
- return this.tableUserType;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.BrowsableAttribute(true)]
|
|
|
- [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
|
|
|
- public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
|
|
|
- get {
|
|
|
- return this._schemaSerializationMode;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._schemaSerializationMode = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
|
|
|
- public new global::System.Data.DataTableCollection Tables {
|
|
|
- get {
|
|
|
- return base.Tables;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
|
|
|
- public new global::System.Data.DataRelationCollection Relations {
|
|
|
- get {
|
|
|
- return base.Relations;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void InitializeDerivedDataSet() {
|
|
|
- this.BeginInit();
|
|
|
- this.InitClass();
|
|
|
- this.EndInit();
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public override global::System.Data.DataSet Clone() {
|
|
|
- ImpulseVisionAppDataSet1 cln = ((ImpulseVisionAppDataSet1)(base.Clone()));
|
|
|
- cln.InitVars();
|
|
|
- cln.SchemaSerializationMode = this.SchemaSerializationMode;
|
|
|
- return cln;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override bool ShouldSerializeTables() {
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override bool ShouldSerializeRelations() {
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
|
|
|
- if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
|
|
|
- this.Reset();
|
|
|
- global::System.Data.DataSet ds = new global::System.Data.DataSet();
|
|
|
- ds.ReadXml(reader);
|
|
|
- if ((ds.Tables["FaceImages"] != null)) {
|
|
|
- base.Tables.Add(new FaceImagesDataTable(ds.Tables["FaceImages"]));
|
|
|
- }
|
|
|
- if ((ds.Tables["HistoryLogin"] != null)) {
|
|
|
- base.Tables.Add(new HistoryLoginDataTable(ds.Tables["HistoryLogin"]));
|
|
|
- }
|
|
|
- if ((ds.Tables["Staffs"] != null)) {
|
|
|
- base.Tables.Add(new StaffsDataTable(ds.Tables["Staffs"]));
|
|
|
- }
|
|
|
- if ((ds.Tables["Users"] != null)) {
|
|
|
- base.Tables.Add(new UsersDataTable(ds.Tables["Users"]));
|
|
|
- }
|
|
|
- if ((ds.Tables["UserTraffic"] != null)) {
|
|
|
- base.Tables.Add(new UserTrafficDataTable(ds.Tables["UserTraffic"]));
|
|
|
- }
|
|
|
- if ((ds.Tables["UserType"] != null)) {
|
|
|
- base.Tables.Add(new UserTypeDataTable(ds.Tables["UserType"]));
|
|
|
- }
|
|
|
- this.DataSetName = ds.DataSetName;
|
|
|
- this.Prefix = ds.Prefix;
|
|
|
- this.Namespace = ds.Namespace;
|
|
|
- this.Locale = ds.Locale;
|
|
|
- this.CaseSensitive = ds.CaseSensitive;
|
|
|
- this.EnforceConstraints = ds.EnforceConstraints;
|
|
|
- this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
|
|
|
- this.InitVars();
|
|
|
- }
|
|
|
- else {
|
|
|
- this.ReadXml(reader);
|
|
|
- this.InitVars();
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
|
|
|
- global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
|
|
|
- this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
|
|
|
- stream.Position = 0;
|
|
|
- return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal void InitVars() {
|
|
|
- this.InitVars(true);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal void InitVars(bool initTable) {
|
|
|
- this.tableFaceImages = ((FaceImagesDataTable)(base.Tables["FaceImages"]));
|
|
|
- if ((initTable == true)) {
|
|
|
- if ((this.tableFaceImages != null)) {
|
|
|
- this.tableFaceImages.InitVars();
|
|
|
- }
|
|
|
- }
|
|
|
- this.tableHistoryLogin = ((HistoryLoginDataTable)(base.Tables["HistoryLogin"]));
|
|
|
- if ((initTable == true)) {
|
|
|
- if ((this.tableHistoryLogin != null)) {
|
|
|
- this.tableHistoryLogin.InitVars();
|
|
|
- }
|
|
|
- }
|
|
|
- this.tableStaffs = ((StaffsDataTable)(base.Tables["Staffs"]));
|
|
|
- if ((initTable == true)) {
|
|
|
- if ((this.tableStaffs != null)) {
|
|
|
- this.tableStaffs.InitVars();
|
|
|
- }
|
|
|
- }
|
|
|
- this.tableUsers = ((UsersDataTable)(base.Tables["Users"]));
|
|
|
- if ((initTable == true)) {
|
|
|
- if ((this.tableUsers != null)) {
|
|
|
- this.tableUsers.InitVars();
|
|
|
- }
|
|
|
- }
|
|
|
- this.tableUserTraffic = ((UserTrafficDataTable)(base.Tables["UserTraffic"]));
|
|
|
- if ((initTable == true)) {
|
|
|
- if ((this.tableUserTraffic != null)) {
|
|
|
- this.tableUserTraffic.InitVars();
|
|
|
- }
|
|
|
- }
|
|
|
- this.tableUserType = ((UserTypeDataTable)(base.Tables["UserType"]));
|
|
|
- if ((initTable == true)) {
|
|
|
- if ((this.tableUserType != null)) {
|
|
|
- this.tableUserType.InitVars();
|
|
|
- }
|
|
|
- }
|
|
|
- this.relationFK_FaceImages_Users = this.Relations["FK_FaceImages_Users"];
|
|
|
- this.relationFK_HistoryLogin_Staffs = this.Relations["FK_HistoryLogin_Staffs"];
|
|
|
- this.relationFK_Staffs_UserType = this.Relations["FK_Staffs_UserType"];
|
|
|
- this.relationFK_Users_UserType = this.Relations["FK_Users_UserType"];
|
|
|
- this.relationFK_UserTraffic_Users = this.Relations["FK_UserTraffic_Users"];
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitClass() {
|
|
|
- this.DataSetName = "ImpulseVisionAppDataSet1";
|
|
|
- this.Prefix = "";
|
|
|
- this.Namespace = "http://tempuri.org/ImpulseVisionAppDataSet1.xsd";
|
|
|
- this.EnforceConstraints = true;
|
|
|
- this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
|
|
|
- this.tableFaceImages = new FaceImagesDataTable();
|
|
|
- base.Tables.Add(this.tableFaceImages);
|
|
|
- this.tableHistoryLogin = new HistoryLoginDataTable();
|
|
|
- base.Tables.Add(this.tableHistoryLogin);
|
|
|
- this.tableStaffs = new StaffsDataTable();
|
|
|
- base.Tables.Add(this.tableStaffs);
|
|
|
- this.tableUsers = new UsersDataTable();
|
|
|
- base.Tables.Add(this.tableUsers);
|
|
|
- this.tableUserTraffic = new UserTrafficDataTable();
|
|
|
- base.Tables.Add(this.tableUserTraffic);
|
|
|
- this.tableUserType = new UserTypeDataTable();
|
|
|
- base.Tables.Add(this.tableUserType);
|
|
|
- this.relationFK_FaceImages_Users = new global::System.Data.DataRelation("FK_FaceImages_Users", new global::System.Data.DataColumn[] {
|
|
|
- this.tableUsers.IDColumn}, new global::System.Data.DataColumn[] {
|
|
|
- this.tableFaceImages.UserIDColumn}, false);
|
|
|
- this.Relations.Add(this.relationFK_FaceImages_Users);
|
|
|
- this.relationFK_HistoryLogin_Staffs = new global::System.Data.DataRelation("FK_HistoryLogin_Staffs", new global::System.Data.DataColumn[] {
|
|
|
- this.tableStaffs.IDColumn}, new global::System.Data.DataColumn[] {
|
|
|
- this.tableHistoryLogin.StaffsIDColumn}, false);
|
|
|
- this.Relations.Add(this.relationFK_HistoryLogin_Staffs);
|
|
|
- this.relationFK_Staffs_UserType = new global::System.Data.DataRelation("FK_Staffs_UserType", new global::System.Data.DataColumn[] {
|
|
|
- this.tableUserType.IDColumn}, new global::System.Data.DataColumn[] {
|
|
|
- this.tableStaffs.IDStaffsTypeColumn}, false);
|
|
|
- this.Relations.Add(this.relationFK_Staffs_UserType);
|
|
|
- this.relationFK_Users_UserType = new global::System.Data.DataRelation("FK_Users_UserType", new global::System.Data.DataColumn[] {
|
|
|
- this.tableUserType.IDColumn}, new global::System.Data.DataColumn[] {
|
|
|
- this.tableUsers.IDUserTypeColumn}, false);
|
|
|
- this.Relations.Add(this.relationFK_Users_UserType);
|
|
|
- this.relationFK_UserTraffic_Users = new global::System.Data.DataRelation("FK_UserTraffic_Users", new global::System.Data.DataColumn[] {
|
|
|
- this.tableUsers.IDColumn}, new global::System.Data.DataColumn[] {
|
|
|
- this.tableUserTraffic.UserIDColumn}, false);
|
|
|
- this.Relations.Add(this.relationFK_UserTraffic_Users);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private bool ShouldSerializeFaceImages() {
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private bool ShouldSerializeHistoryLogin() {
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private bool ShouldSerializeStaffs() {
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private bool ShouldSerializeUsers() {
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private bool ShouldSerializeUserTraffic() {
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private bool ShouldSerializeUserType() {
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
|
|
|
- if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
|
|
|
- this.InitVars();
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
|
- ImpulseVisionAppDataSet1 ds = new ImpulseVisionAppDataSet1();
|
|
|
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
|
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
|
- global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
|
|
|
- any.Namespace = ds.Namespace;
|
|
|
- sequence.Items.Add(any);
|
|
|
- type.Particle = sequence;
|
|
|
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
|
|
- if (xs.Contains(dsSchema.TargetNamespace)) {
|
|
|
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
|
|
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
|
|
- try {
|
|
|
- global::System.Xml.Schema.XmlSchema schema = null;
|
|
|
- dsSchema.Write(s1);
|
|
|
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
|
|
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
|
|
- s2.SetLength(0);
|
|
|
- schema.Write(s2);
|
|
|
- if ((s1.Length == s2.Length)) {
|
|
|
- s1.Position = 0;
|
|
|
- s2.Position = 0;
|
|
|
- for (; ((s1.Position != s1.Length)
|
|
|
- && (s1.ReadByte() == s2.ReadByte())); ) {
|
|
|
- ;
|
|
|
- }
|
|
|
- if ((s1.Position == s1.Length)) {
|
|
|
- return type;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((s1 != null)) {
|
|
|
- s1.Close();
|
|
|
- }
|
|
|
- if ((s2 != null)) {
|
|
|
- s2.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- xs.Add(dsSchema);
|
|
|
- return type;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public delegate void FaceImagesRowChangeEventHandler(object sender, FaceImagesRowChangeEvent e);
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public delegate void HistoryLoginRowChangeEventHandler(object sender, HistoryLoginRowChangeEvent e);
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public delegate void StaffsRowChangeEventHandler(object sender, StaffsRowChangeEvent e);
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public delegate void UsersRowChangeEventHandler(object sender, UsersRowChangeEvent e);
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public delegate void UserTrafficRowChangeEventHandler(object sender, UserTrafficRowChangeEvent e);
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public delegate void UserTypeRowChangeEventHandler(object sender, UserTypeRowChangeEvent e);
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Represents the strongly named DataTable class.
|
|
|
- ///</summary>
|
|
|
- [global::System.Serializable()]
|
|
|
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
|
- public partial class FaceImagesDataTable : global::System.Data.TypedTableBase<FaceImagesRow> {
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnID;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnUserID;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnPicture;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public FaceImagesDataTable() {
|
|
|
- this.TableName = "FaceImages";
|
|
|
- this.BeginInit();
|
|
|
- this.InitClass();
|
|
|
- this.EndInit();
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal FaceImagesDataTable(global::System.Data.DataTable table) {
|
|
|
- this.TableName = table.TableName;
|
|
|
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
|
- this.CaseSensitive = table.CaseSensitive;
|
|
|
- }
|
|
|
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
|
- this.Locale = table.Locale;
|
|
|
- }
|
|
|
- if ((table.Namespace != table.DataSet.Namespace)) {
|
|
|
- this.Namespace = table.Namespace;
|
|
|
- }
|
|
|
- this.Prefix = table.Prefix;
|
|
|
- this.MinimumCapacity = table.MinimumCapacity;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected FaceImagesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
|
- base(info, context) {
|
|
|
- this.InitVars();
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn IDColumn {
|
|
|
- get {
|
|
|
- return this.columnID;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn UserIDColumn {
|
|
|
- get {
|
|
|
- return this.columnUserID;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn PictureColumn {
|
|
|
- get {
|
|
|
- return this.columnPicture;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Browsable(false)]
|
|
|
- public int Count {
|
|
|
- get {
|
|
|
- return this.Rows.Count;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public FaceImagesRow this[int index] {
|
|
|
- get {
|
|
|
- return ((FaceImagesRow)(this.Rows[index]));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event FaceImagesRowChangeEventHandler FaceImagesRowChanging;
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event FaceImagesRowChangeEventHandler FaceImagesRowChanged;
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event FaceImagesRowChangeEventHandler FaceImagesRowDeleting;
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event FaceImagesRowChangeEventHandler FaceImagesRowDeleted;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public void AddFaceImagesRow(FaceImagesRow row) {
|
|
|
- this.Rows.Add(row);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public FaceImagesRow AddFaceImagesRow(int ID, UsersRow parentUsersRowByFK_FaceImages_Users, string Picture) {
|
|
|
- FaceImagesRow rowFaceImagesRow = ((FaceImagesRow)(this.NewRow()));
|
|
|
- object[] columnValuesArray = new object[] {
|
|
|
- ID,
|
|
|
- null,
|
|
|
- Picture};
|
|
|
- if ((parentUsersRowByFK_FaceImages_Users != null)) {
|
|
|
- columnValuesArray[1] = parentUsersRowByFK_FaceImages_Users[0];
|
|
|
- }
|
|
|
- rowFaceImagesRow.ItemArray = columnValuesArray;
|
|
|
- this.Rows.Add(rowFaceImagesRow);
|
|
|
- return rowFaceImagesRow;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public FaceImagesRow FindByID(int ID) {
|
|
|
- return ((FaceImagesRow)(this.Rows.Find(new object[] {
|
|
|
- ID})));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public override global::System.Data.DataTable Clone() {
|
|
|
- FaceImagesDataTable cln = ((FaceImagesDataTable)(base.Clone()));
|
|
|
- cln.InitVars();
|
|
|
- return cln;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override global::System.Data.DataTable CreateInstance() {
|
|
|
- return new FaceImagesDataTable();
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal void InitVars() {
|
|
|
- this.columnID = base.Columns["ID"];
|
|
|
- this.columnUserID = base.Columns["UserID"];
|
|
|
- this.columnPicture = base.Columns["Picture"];
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitClass() {
|
|
|
- this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnID);
|
|
|
- this.columnUserID = new global::System.Data.DataColumn("UserID", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnUserID);
|
|
|
- this.columnPicture = new global::System.Data.DataColumn("Picture", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnPicture);
|
|
|
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
|
- this.columnID}, true));
|
|
|
- this.columnID.AllowDBNull = false;
|
|
|
- this.columnID.Unique = true;
|
|
|
- this.columnUserID.AllowDBNull = false;
|
|
|
- this.columnPicture.AllowDBNull = false;
|
|
|
- this.columnPicture.MaxLength = 2147483647;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public FaceImagesRow NewFaceImagesRow() {
|
|
|
- return ((FaceImagesRow)(this.NewRow()));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
|
- return new FaceImagesRow(builder);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override global::System.Type GetRowType() {
|
|
|
- return typeof(FaceImagesRow);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowChanged(e);
|
|
|
- if ((this.FaceImagesRowChanged != null)) {
|
|
|
- this.FaceImagesRowChanged(this, new FaceImagesRowChangeEvent(((FaceImagesRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowChanging(e);
|
|
|
- if ((this.FaceImagesRowChanging != null)) {
|
|
|
- this.FaceImagesRowChanging(this, new FaceImagesRowChangeEvent(((FaceImagesRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowDeleted(e);
|
|
|
- if ((this.FaceImagesRowDeleted != null)) {
|
|
|
- this.FaceImagesRowDeleted(this, new FaceImagesRowChangeEvent(((FaceImagesRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowDeleting(e);
|
|
|
- if ((this.FaceImagesRowDeleting != null)) {
|
|
|
- this.FaceImagesRowDeleting(this, new FaceImagesRowChangeEvent(((FaceImagesRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public void RemoveFaceImagesRow(FaceImagesRow row) {
|
|
|
- this.Rows.Remove(row);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
|
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
|
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
|
- ImpulseVisionAppDataSet1 ds = new ImpulseVisionAppDataSet1();
|
|
|
- global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
|
- any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
|
|
- any1.MinOccurs = new decimal(0);
|
|
|
- any1.MaxOccurs = decimal.MaxValue;
|
|
|
- any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
|
- sequence.Items.Add(any1);
|
|
|
- global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
|
- any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
|
|
- any2.MinOccurs = new decimal(1);
|
|
|
- any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
|
- sequence.Items.Add(any2);
|
|
|
- global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
|
- attribute1.Name = "namespace";
|
|
|
- attribute1.FixedValue = ds.Namespace;
|
|
|
- type.Attributes.Add(attribute1);
|
|
|
- global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
|
- attribute2.Name = "tableTypeName";
|
|
|
- attribute2.FixedValue = "FaceImagesDataTable";
|
|
|
- type.Attributes.Add(attribute2);
|
|
|
- type.Particle = sequence;
|
|
|
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
|
|
- if (xs.Contains(dsSchema.TargetNamespace)) {
|
|
|
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
|
|
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
|
|
- try {
|
|
|
- global::System.Xml.Schema.XmlSchema schema = null;
|
|
|
- dsSchema.Write(s1);
|
|
|
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
|
|
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
|
|
- s2.SetLength(0);
|
|
|
- schema.Write(s2);
|
|
|
- if ((s1.Length == s2.Length)) {
|
|
|
- s1.Position = 0;
|
|
|
- s2.Position = 0;
|
|
|
- for (; ((s1.Position != s1.Length)
|
|
|
- && (s1.ReadByte() == s2.ReadByte())); ) {
|
|
|
- ;
|
|
|
- }
|
|
|
- if ((s1.Position == s1.Length)) {
|
|
|
- return type;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((s1 != null)) {
|
|
|
- s1.Close();
|
|
|
- }
|
|
|
- if ((s2 != null)) {
|
|
|
- s2.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- xs.Add(dsSchema);
|
|
|
- return type;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Represents the strongly named DataTable class.
|
|
|
- ///</summary>
|
|
|
- [global::System.Serializable()]
|
|
|
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
|
- public partial class HistoryLoginDataTable : global::System.Data.TypedTableBase<HistoryLoginRow> {
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnID;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnStaffsID;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnTimeLogin;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public HistoryLoginDataTable() {
|
|
|
- this.TableName = "HistoryLogin";
|
|
|
- this.BeginInit();
|
|
|
- this.InitClass();
|
|
|
- this.EndInit();
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal HistoryLoginDataTable(global::System.Data.DataTable table) {
|
|
|
- this.TableName = table.TableName;
|
|
|
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
|
- this.CaseSensitive = table.CaseSensitive;
|
|
|
- }
|
|
|
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
|
- this.Locale = table.Locale;
|
|
|
- }
|
|
|
- if ((table.Namespace != table.DataSet.Namespace)) {
|
|
|
- this.Namespace = table.Namespace;
|
|
|
- }
|
|
|
- this.Prefix = table.Prefix;
|
|
|
- this.MinimumCapacity = table.MinimumCapacity;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected HistoryLoginDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
|
- base(info, context) {
|
|
|
- this.InitVars();
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn IDColumn {
|
|
|
- get {
|
|
|
- return this.columnID;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn StaffsIDColumn {
|
|
|
- get {
|
|
|
- return this.columnStaffsID;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn TimeLoginColumn {
|
|
|
- get {
|
|
|
- return this.columnTimeLogin;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Browsable(false)]
|
|
|
- public int Count {
|
|
|
- get {
|
|
|
- return this.Rows.Count;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public HistoryLoginRow this[int index] {
|
|
|
- get {
|
|
|
- return ((HistoryLoginRow)(this.Rows[index]));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event HistoryLoginRowChangeEventHandler HistoryLoginRowChanging;
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event HistoryLoginRowChangeEventHandler HistoryLoginRowChanged;
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event HistoryLoginRowChangeEventHandler HistoryLoginRowDeleting;
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event HistoryLoginRowChangeEventHandler HistoryLoginRowDeleted;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public void AddHistoryLoginRow(HistoryLoginRow row) {
|
|
|
- this.Rows.Add(row);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public HistoryLoginRow AddHistoryLoginRow(StaffsRow parentStaffsRowByFK_HistoryLogin_Staffs, System.DateTime TimeLogin) {
|
|
|
- HistoryLoginRow rowHistoryLoginRow = ((HistoryLoginRow)(this.NewRow()));
|
|
|
- object[] columnValuesArray = new object[] {
|
|
|
- null,
|
|
|
- null,
|
|
|
- TimeLogin};
|
|
|
- if ((parentStaffsRowByFK_HistoryLogin_Staffs != null)) {
|
|
|
- columnValuesArray[1] = parentStaffsRowByFK_HistoryLogin_Staffs[0];
|
|
|
- }
|
|
|
- rowHistoryLoginRow.ItemArray = columnValuesArray;
|
|
|
- this.Rows.Add(rowHistoryLoginRow);
|
|
|
- return rowHistoryLoginRow;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public HistoryLoginRow FindByID(int ID) {
|
|
|
- return ((HistoryLoginRow)(this.Rows.Find(new object[] {
|
|
|
- ID})));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public override global::System.Data.DataTable Clone() {
|
|
|
- HistoryLoginDataTable cln = ((HistoryLoginDataTable)(base.Clone()));
|
|
|
- cln.InitVars();
|
|
|
- return cln;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override global::System.Data.DataTable CreateInstance() {
|
|
|
- return new HistoryLoginDataTable();
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal void InitVars() {
|
|
|
- this.columnID = base.Columns["ID"];
|
|
|
- this.columnStaffsID = base.Columns["StaffsID"];
|
|
|
- this.columnTimeLogin = base.Columns["TimeLogin"];
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitClass() {
|
|
|
- this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnID);
|
|
|
- this.columnStaffsID = new global::System.Data.DataColumn("StaffsID", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnStaffsID);
|
|
|
- this.columnTimeLogin = new global::System.Data.DataColumn("TimeLogin", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnTimeLogin);
|
|
|
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
|
- this.columnID}, true));
|
|
|
- this.columnID.AutoIncrement = true;
|
|
|
- this.columnID.AutoIncrementSeed = -1;
|
|
|
- this.columnID.AutoIncrementStep = -1;
|
|
|
- this.columnID.AllowDBNull = false;
|
|
|
- this.columnID.ReadOnly = true;
|
|
|
- this.columnID.Unique = true;
|
|
|
- this.columnStaffsID.AllowDBNull = false;
|
|
|
- this.columnTimeLogin.AllowDBNull = false;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public HistoryLoginRow NewHistoryLoginRow() {
|
|
|
- return ((HistoryLoginRow)(this.NewRow()));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
|
- return new HistoryLoginRow(builder);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override global::System.Type GetRowType() {
|
|
|
- return typeof(HistoryLoginRow);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowChanged(e);
|
|
|
- if ((this.HistoryLoginRowChanged != null)) {
|
|
|
- this.HistoryLoginRowChanged(this, new HistoryLoginRowChangeEvent(((HistoryLoginRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowChanging(e);
|
|
|
- if ((this.HistoryLoginRowChanging != null)) {
|
|
|
- this.HistoryLoginRowChanging(this, new HistoryLoginRowChangeEvent(((HistoryLoginRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowDeleted(e);
|
|
|
- if ((this.HistoryLoginRowDeleted != null)) {
|
|
|
- this.HistoryLoginRowDeleted(this, new HistoryLoginRowChangeEvent(((HistoryLoginRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowDeleting(e);
|
|
|
- if ((this.HistoryLoginRowDeleting != null)) {
|
|
|
- this.HistoryLoginRowDeleting(this, new HistoryLoginRowChangeEvent(((HistoryLoginRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public void RemoveHistoryLoginRow(HistoryLoginRow row) {
|
|
|
- this.Rows.Remove(row);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
|
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
|
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
|
- ImpulseVisionAppDataSet1 ds = new ImpulseVisionAppDataSet1();
|
|
|
- global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
|
- any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
|
|
- any1.MinOccurs = new decimal(0);
|
|
|
- any1.MaxOccurs = decimal.MaxValue;
|
|
|
- any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
|
- sequence.Items.Add(any1);
|
|
|
- global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
|
- any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
|
|
- any2.MinOccurs = new decimal(1);
|
|
|
- any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
|
- sequence.Items.Add(any2);
|
|
|
- global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
|
- attribute1.Name = "namespace";
|
|
|
- attribute1.FixedValue = ds.Namespace;
|
|
|
- type.Attributes.Add(attribute1);
|
|
|
- global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
|
- attribute2.Name = "tableTypeName";
|
|
|
- attribute2.FixedValue = "HistoryLoginDataTable";
|
|
|
- type.Attributes.Add(attribute2);
|
|
|
- type.Particle = sequence;
|
|
|
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
|
|
- if (xs.Contains(dsSchema.TargetNamespace)) {
|
|
|
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
|
|
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
|
|
- try {
|
|
|
- global::System.Xml.Schema.XmlSchema schema = null;
|
|
|
- dsSchema.Write(s1);
|
|
|
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
|
|
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
|
|
- s2.SetLength(0);
|
|
|
- schema.Write(s2);
|
|
|
- if ((s1.Length == s2.Length)) {
|
|
|
- s1.Position = 0;
|
|
|
- s2.Position = 0;
|
|
|
- for (; ((s1.Position != s1.Length)
|
|
|
- && (s1.ReadByte() == s2.ReadByte())); ) {
|
|
|
- ;
|
|
|
- }
|
|
|
- if ((s1.Position == s1.Length)) {
|
|
|
- return type;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((s1 != null)) {
|
|
|
- s1.Close();
|
|
|
- }
|
|
|
- if ((s2 != null)) {
|
|
|
- s2.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- xs.Add(dsSchema);
|
|
|
- return type;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Represents the strongly named DataTable class.
|
|
|
- ///</summary>
|
|
|
- [global::System.Serializable()]
|
|
|
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
|
- public partial class StaffsDataTable : global::System.Data.TypedTableBase<StaffsRow> {
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnID;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnLastname;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnFirstname;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnPatronymic;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnPassportSeria;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnPassportNum;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnLogin;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnPassword;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnIDStaffsType;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public StaffsDataTable() {
|
|
|
- this.TableName = "Staffs";
|
|
|
- this.BeginInit();
|
|
|
- this.InitClass();
|
|
|
- this.EndInit();
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal StaffsDataTable(global::System.Data.DataTable table) {
|
|
|
- this.TableName = table.TableName;
|
|
|
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
|
- this.CaseSensitive = table.CaseSensitive;
|
|
|
- }
|
|
|
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
|
- this.Locale = table.Locale;
|
|
|
- }
|
|
|
- if ((table.Namespace != table.DataSet.Namespace)) {
|
|
|
- this.Namespace = table.Namespace;
|
|
|
- }
|
|
|
- this.Prefix = table.Prefix;
|
|
|
- this.MinimumCapacity = table.MinimumCapacity;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected StaffsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
|
- base(info, context) {
|
|
|
- this.InitVars();
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn IDColumn {
|
|
|
- get {
|
|
|
- return this.columnID;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn LastnameColumn {
|
|
|
- get {
|
|
|
- return this.columnLastname;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn FirstnameColumn {
|
|
|
- get {
|
|
|
- return this.columnFirstname;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn PatronymicColumn {
|
|
|
- get {
|
|
|
- return this.columnPatronymic;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn PassportSeriaColumn {
|
|
|
- get {
|
|
|
- return this.columnPassportSeria;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn PassportNumColumn {
|
|
|
- get {
|
|
|
- return this.columnPassportNum;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn LoginColumn {
|
|
|
- get {
|
|
|
- return this.columnLogin;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn PasswordColumn {
|
|
|
- get {
|
|
|
- return this.columnPassword;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn IDStaffsTypeColumn {
|
|
|
- get {
|
|
|
- return this.columnIDStaffsType;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Browsable(false)]
|
|
|
- public int Count {
|
|
|
- get {
|
|
|
- return this.Rows.Count;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public StaffsRow this[int index] {
|
|
|
- get {
|
|
|
- return ((StaffsRow)(this.Rows[index]));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event StaffsRowChangeEventHandler StaffsRowChanging;
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event StaffsRowChangeEventHandler StaffsRowChanged;
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event StaffsRowChangeEventHandler StaffsRowDeleting;
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event StaffsRowChangeEventHandler StaffsRowDeleted;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public void AddStaffsRow(StaffsRow row) {
|
|
|
- this.Rows.Add(row);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public StaffsRow AddStaffsRow(string Lastname, string Firstname, string Patronymic, string PassportSeria, string PassportNum, string Login, string Password, UserTypeRow parentUserTypeRowByFK_Staffs_UserType) {
|
|
|
- StaffsRow rowStaffsRow = ((StaffsRow)(this.NewRow()));
|
|
|
- object[] columnValuesArray = new object[] {
|
|
|
- null,
|
|
|
- Lastname,
|
|
|
- Firstname,
|
|
|
- Patronymic,
|
|
|
- PassportSeria,
|
|
|
- PassportNum,
|
|
|
- Login,
|
|
|
- Password,
|
|
|
- null};
|
|
|
- if ((parentUserTypeRowByFK_Staffs_UserType != null)) {
|
|
|
- columnValuesArray[8] = parentUserTypeRowByFK_Staffs_UserType[0];
|
|
|
- }
|
|
|
- rowStaffsRow.ItemArray = columnValuesArray;
|
|
|
- this.Rows.Add(rowStaffsRow);
|
|
|
- return rowStaffsRow;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public StaffsRow FindByID(int ID) {
|
|
|
- return ((StaffsRow)(this.Rows.Find(new object[] {
|
|
|
- ID})));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public override global::System.Data.DataTable Clone() {
|
|
|
- StaffsDataTable cln = ((StaffsDataTable)(base.Clone()));
|
|
|
- cln.InitVars();
|
|
|
- return cln;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override global::System.Data.DataTable CreateInstance() {
|
|
|
- return new StaffsDataTable();
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal void InitVars() {
|
|
|
- this.columnID = base.Columns["ID"];
|
|
|
- this.columnLastname = base.Columns["Lastname"];
|
|
|
- this.columnFirstname = base.Columns["Firstname"];
|
|
|
- this.columnPatronymic = base.Columns["Patronymic"];
|
|
|
- this.columnPassportSeria = base.Columns["PassportSeria"];
|
|
|
- this.columnPassportNum = base.Columns["PassportNum"];
|
|
|
- this.columnLogin = base.Columns["Login"];
|
|
|
- this.columnPassword = base.Columns["Password"];
|
|
|
- this.columnIDStaffsType = base.Columns["IDStaffsType"];
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitClass() {
|
|
|
- this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnID);
|
|
|
- this.columnLastname = new global::System.Data.DataColumn("Lastname", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnLastname);
|
|
|
- this.columnFirstname = new global::System.Data.DataColumn("Firstname", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnFirstname);
|
|
|
- this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnPatronymic);
|
|
|
- this.columnPassportSeria = new global::System.Data.DataColumn("PassportSeria", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnPassportSeria);
|
|
|
- this.columnPassportNum = new global::System.Data.DataColumn("PassportNum", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnPassportNum);
|
|
|
- this.columnLogin = new global::System.Data.DataColumn("Login", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnLogin);
|
|
|
- this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnPassword);
|
|
|
- this.columnIDStaffsType = new global::System.Data.DataColumn("IDStaffsType", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnIDStaffsType);
|
|
|
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
|
- this.columnID}, true));
|
|
|
- this.columnID.AutoIncrement = true;
|
|
|
- this.columnID.AutoIncrementSeed = -1;
|
|
|
- this.columnID.AutoIncrementStep = -1;
|
|
|
- this.columnID.AllowDBNull = false;
|
|
|
- this.columnID.ReadOnly = true;
|
|
|
- this.columnID.Unique = true;
|
|
|
- this.columnLastname.AllowDBNull = false;
|
|
|
- this.columnLastname.MaxLength = 50;
|
|
|
- this.columnFirstname.AllowDBNull = false;
|
|
|
- this.columnFirstname.MaxLength = 50;
|
|
|
- this.columnPatronymic.MaxLength = 50;
|
|
|
- this.columnPassportSeria.AllowDBNull = false;
|
|
|
- this.columnPassportSeria.MaxLength = 4;
|
|
|
- this.columnPassportNum.AllowDBNull = false;
|
|
|
- this.columnPassportNum.MaxLength = 6;
|
|
|
- this.columnLogin.AllowDBNull = false;
|
|
|
- this.columnLogin.MaxLength = 50;
|
|
|
- this.columnPassword.AllowDBNull = false;
|
|
|
- this.columnPassword.MaxLength = 50;
|
|
|
- this.columnIDStaffsType.AllowDBNull = false;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public StaffsRow NewStaffsRow() {
|
|
|
- return ((StaffsRow)(this.NewRow()));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
|
- return new StaffsRow(builder);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override global::System.Type GetRowType() {
|
|
|
- return typeof(StaffsRow);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowChanged(e);
|
|
|
- if ((this.StaffsRowChanged != null)) {
|
|
|
- this.StaffsRowChanged(this, new StaffsRowChangeEvent(((StaffsRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowChanging(e);
|
|
|
- if ((this.StaffsRowChanging != null)) {
|
|
|
- this.StaffsRowChanging(this, new StaffsRowChangeEvent(((StaffsRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowDeleted(e);
|
|
|
- if ((this.StaffsRowDeleted != null)) {
|
|
|
- this.StaffsRowDeleted(this, new StaffsRowChangeEvent(((StaffsRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowDeleting(e);
|
|
|
- if ((this.StaffsRowDeleting != null)) {
|
|
|
- this.StaffsRowDeleting(this, new StaffsRowChangeEvent(((StaffsRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public void RemoveStaffsRow(StaffsRow row) {
|
|
|
- this.Rows.Remove(row);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
|
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
|
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
|
- ImpulseVisionAppDataSet1 ds = new ImpulseVisionAppDataSet1();
|
|
|
- global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
|
- any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
|
|
- any1.MinOccurs = new decimal(0);
|
|
|
- any1.MaxOccurs = decimal.MaxValue;
|
|
|
- any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
|
- sequence.Items.Add(any1);
|
|
|
- global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
|
- any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
|
|
- any2.MinOccurs = new decimal(1);
|
|
|
- any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
|
- sequence.Items.Add(any2);
|
|
|
- global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
|
- attribute1.Name = "namespace";
|
|
|
- attribute1.FixedValue = ds.Namespace;
|
|
|
- type.Attributes.Add(attribute1);
|
|
|
- global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
|
- attribute2.Name = "tableTypeName";
|
|
|
- attribute2.FixedValue = "StaffsDataTable";
|
|
|
- type.Attributes.Add(attribute2);
|
|
|
- type.Particle = sequence;
|
|
|
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
|
|
- if (xs.Contains(dsSchema.TargetNamespace)) {
|
|
|
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
|
|
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
|
|
- try {
|
|
|
- global::System.Xml.Schema.XmlSchema schema = null;
|
|
|
- dsSchema.Write(s1);
|
|
|
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
|
|
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
|
|
- s2.SetLength(0);
|
|
|
- schema.Write(s2);
|
|
|
- if ((s1.Length == s2.Length)) {
|
|
|
- s1.Position = 0;
|
|
|
- s2.Position = 0;
|
|
|
- for (; ((s1.Position != s1.Length)
|
|
|
- && (s1.ReadByte() == s2.ReadByte())); ) {
|
|
|
- ;
|
|
|
- }
|
|
|
- if ((s1.Position == s1.Length)) {
|
|
|
- return type;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((s1 != null)) {
|
|
|
- s1.Close();
|
|
|
- }
|
|
|
- if ((s2 != null)) {
|
|
|
- s2.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- xs.Add(dsSchema);
|
|
|
- return type;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Represents the strongly named DataTable class.
|
|
|
- ///</summary>
|
|
|
- [global::System.Serializable()]
|
|
|
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
|
- public partial class UsersDataTable : global::System.Data.TypedTableBase<UsersRow> {
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnID;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnLastname;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnFirstname;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnPatronymic;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnPassportSeria;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnPassportNum;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnIDUserType;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UsersDataTable() {
|
|
|
- this.TableName = "Users";
|
|
|
- this.BeginInit();
|
|
|
- this.InitClass();
|
|
|
- this.EndInit();
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal UsersDataTable(global::System.Data.DataTable table) {
|
|
|
- this.TableName = table.TableName;
|
|
|
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
|
- this.CaseSensitive = table.CaseSensitive;
|
|
|
- }
|
|
|
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
|
- this.Locale = table.Locale;
|
|
|
- }
|
|
|
- if ((table.Namespace != table.DataSet.Namespace)) {
|
|
|
- this.Namespace = table.Namespace;
|
|
|
- }
|
|
|
- this.Prefix = table.Prefix;
|
|
|
- this.MinimumCapacity = table.MinimumCapacity;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected UsersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
|
- base(info, context) {
|
|
|
- this.InitVars();
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn IDColumn {
|
|
|
- get {
|
|
|
- return this.columnID;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn LastnameColumn {
|
|
|
- get {
|
|
|
- return this.columnLastname;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn FirstnameColumn {
|
|
|
- get {
|
|
|
- return this.columnFirstname;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn PatronymicColumn {
|
|
|
- get {
|
|
|
- return this.columnPatronymic;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn PassportSeriaColumn {
|
|
|
- get {
|
|
|
- return this.columnPassportSeria;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn PassportNumColumn {
|
|
|
- get {
|
|
|
- return this.columnPassportNum;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn IDUserTypeColumn {
|
|
|
- get {
|
|
|
- return this.columnIDUserType;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Browsable(false)]
|
|
|
- public int Count {
|
|
|
- get {
|
|
|
- return this.Rows.Count;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UsersRow this[int index] {
|
|
|
- get {
|
|
|
- return ((UsersRow)(this.Rows[index]));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event UsersRowChangeEventHandler UsersRowChanging;
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event UsersRowChangeEventHandler UsersRowChanged;
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event UsersRowChangeEventHandler UsersRowDeleting;
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event UsersRowChangeEventHandler UsersRowDeleted;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public void AddUsersRow(UsersRow row) {
|
|
|
- this.Rows.Add(row);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UsersRow AddUsersRow(string Lastname, string Firstname, string Patronymic, string PassportSeria, string PassportNum, UserTypeRow parentUserTypeRowByFK_Users_UserType) {
|
|
|
- UsersRow rowUsersRow = ((UsersRow)(this.NewRow()));
|
|
|
- object[] columnValuesArray = new object[] {
|
|
|
- null,
|
|
|
- Lastname,
|
|
|
- Firstname,
|
|
|
- Patronymic,
|
|
|
- PassportSeria,
|
|
|
- PassportNum,
|
|
|
- null};
|
|
|
- if ((parentUserTypeRowByFK_Users_UserType != null)) {
|
|
|
- columnValuesArray[6] = parentUserTypeRowByFK_Users_UserType[0];
|
|
|
- }
|
|
|
- rowUsersRow.ItemArray = columnValuesArray;
|
|
|
- this.Rows.Add(rowUsersRow);
|
|
|
- return rowUsersRow;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UsersRow FindByID(int ID) {
|
|
|
- return ((UsersRow)(this.Rows.Find(new object[] {
|
|
|
- ID})));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public override global::System.Data.DataTable Clone() {
|
|
|
- UsersDataTable cln = ((UsersDataTable)(base.Clone()));
|
|
|
- cln.InitVars();
|
|
|
- return cln;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override global::System.Data.DataTable CreateInstance() {
|
|
|
- return new UsersDataTable();
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal void InitVars() {
|
|
|
- this.columnID = base.Columns["ID"];
|
|
|
- this.columnLastname = base.Columns["Lastname"];
|
|
|
- this.columnFirstname = base.Columns["Firstname"];
|
|
|
- this.columnPatronymic = base.Columns["Patronymic"];
|
|
|
- this.columnPassportSeria = base.Columns["PassportSeria"];
|
|
|
- this.columnPassportNum = base.Columns["PassportNum"];
|
|
|
- this.columnIDUserType = base.Columns["IDUserType"];
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitClass() {
|
|
|
- this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnID);
|
|
|
- this.columnLastname = new global::System.Data.DataColumn("Lastname", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnLastname);
|
|
|
- this.columnFirstname = new global::System.Data.DataColumn("Firstname", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnFirstname);
|
|
|
- this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnPatronymic);
|
|
|
- this.columnPassportSeria = new global::System.Data.DataColumn("PassportSeria", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnPassportSeria);
|
|
|
- this.columnPassportNum = new global::System.Data.DataColumn("PassportNum", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnPassportNum);
|
|
|
- this.columnIDUserType = new global::System.Data.DataColumn("IDUserType", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnIDUserType);
|
|
|
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
|
- this.columnID}, true));
|
|
|
- this.columnID.AutoIncrement = true;
|
|
|
- this.columnID.AutoIncrementSeed = -1;
|
|
|
- this.columnID.AutoIncrementStep = -1;
|
|
|
- this.columnID.AllowDBNull = false;
|
|
|
- this.columnID.ReadOnly = true;
|
|
|
- this.columnID.Unique = true;
|
|
|
- this.columnLastname.AllowDBNull = false;
|
|
|
- this.columnLastname.MaxLength = 50;
|
|
|
- this.columnFirstname.AllowDBNull = false;
|
|
|
- this.columnFirstname.MaxLength = 50;
|
|
|
- this.columnPatronymic.MaxLength = 50;
|
|
|
- this.columnPassportSeria.AllowDBNull = false;
|
|
|
- this.columnPassportSeria.MaxLength = 4;
|
|
|
- this.columnPassportNum.AllowDBNull = false;
|
|
|
- this.columnPassportNum.MaxLength = 6;
|
|
|
- this.columnIDUserType.AllowDBNull = false;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UsersRow NewUsersRow() {
|
|
|
- return ((UsersRow)(this.NewRow()));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
|
- return new UsersRow(builder);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override global::System.Type GetRowType() {
|
|
|
- return typeof(UsersRow);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowChanged(e);
|
|
|
- if ((this.UsersRowChanged != null)) {
|
|
|
- this.UsersRowChanged(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowChanging(e);
|
|
|
- if ((this.UsersRowChanging != null)) {
|
|
|
- this.UsersRowChanging(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowDeleted(e);
|
|
|
- if ((this.UsersRowDeleted != null)) {
|
|
|
- this.UsersRowDeleted(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowDeleting(e);
|
|
|
- if ((this.UsersRowDeleting != null)) {
|
|
|
- this.UsersRowDeleting(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public void RemoveUsersRow(UsersRow row) {
|
|
|
- this.Rows.Remove(row);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
|
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
|
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
|
- ImpulseVisionAppDataSet1 ds = new ImpulseVisionAppDataSet1();
|
|
|
- global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
|
- any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
|
|
- any1.MinOccurs = new decimal(0);
|
|
|
- any1.MaxOccurs = decimal.MaxValue;
|
|
|
- any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
|
- sequence.Items.Add(any1);
|
|
|
- global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
|
- any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
|
|
- any2.MinOccurs = new decimal(1);
|
|
|
- any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
|
- sequence.Items.Add(any2);
|
|
|
- global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
|
- attribute1.Name = "namespace";
|
|
|
- attribute1.FixedValue = ds.Namespace;
|
|
|
- type.Attributes.Add(attribute1);
|
|
|
- global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
|
- attribute2.Name = "tableTypeName";
|
|
|
- attribute2.FixedValue = "UsersDataTable";
|
|
|
- type.Attributes.Add(attribute2);
|
|
|
- type.Particle = sequence;
|
|
|
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
|
|
- if (xs.Contains(dsSchema.TargetNamespace)) {
|
|
|
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
|
|
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
|
|
- try {
|
|
|
- global::System.Xml.Schema.XmlSchema schema = null;
|
|
|
- dsSchema.Write(s1);
|
|
|
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
|
|
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
|
|
- s2.SetLength(0);
|
|
|
- schema.Write(s2);
|
|
|
- if ((s1.Length == s2.Length)) {
|
|
|
- s1.Position = 0;
|
|
|
- s2.Position = 0;
|
|
|
- for (; ((s1.Position != s1.Length)
|
|
|
- && (s1.ReadByte() == s2.ReadByte())); ) {
|
|
|
- ;
|
|
|
- }
|
|
|
- if ((s1.Position == s1.Length)) {
|
|
|
- return type;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((s1 != null)) {
|
|
|
- s1.Close();
|
|
|
- }
|
|
|
- if ((s2 != null)) {
|
|
|
- s2.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- xs.Add(dsSchema);
|
|
|
- return type;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Represents the strongly named DataTable class.
|
|
|
- ///</summary>
|
|
|
- [global::System.Serializable()]
|
|
|
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
|
- public partial class UserTrafficDataTable : global::System.Data.TypedTableBase<UserTrafficRow> {
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnID;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnUserID;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnTimeEntrance;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnTimeExit;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnIdentification;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UserTrafficDataTable() {
|
|
|
- this.TableName = "UserTraffic";
|
|
|
- this.BeginInit();
|
|
|
- this.InitClass();
|
|
|
- this.EndInit();
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal UserTrafficDataTable(global::System.Data.DataTable table) {
|
|
|
- this.TableName = table.TableName;
|
|
|
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
|
- this.CaseSensitive = table.CaseSensitive;
|
|
|
- }
|
|
|
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
|
- this.Locale = table.Locale;
|
|
|
- }
|
|
|
- if ((table.Namespace != table.DataSet.Namespace)) {
|
|
|
- this.Namespace = table.Namespace;
|
|
|
- }
|
|
|
- this.Prefix = table.Prefix;
|
|
|
- this.MinimumCapacity = table.MinimumCapacity;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected UserTrafficDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
|
- base(info, context) {
|
|
|
- this.InitVars();
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn IDColumn {
|
|
|
- get {
|
|
|
- return this.columnID;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn UserIDColumn {
|
|
|
- get {
|
|
|
- return this.columnUserID;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn TimeEntranceColumn {
|
|
|
- get {
|
|
|
- return this.columnTimeEntrance;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn TimeExitColumn {
|
|
|
- get {
|
|
|
- return this.columnTimeExit;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn IdentificationColumn {
|
|
|
- get {
|
|
|
- return this.columnIdentification;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Browsable(false)]
|
|
|
- public int Count {
|
|
|
- get {
|
|
|
- return this.Rows.Count;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UserTrafficRow this[int index] {
|
|
|
- get {
|
|
|
- return ((UserTrafficRow)(this.Rows[index]));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event UserTrafficRowChangeEventHandler UserTrafficRowChanging;
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event UserTrafficRowChangeEventHandler UserTrafficRowChanged;
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event UserTrafficRowChangeEventHandler UserTrafficRowDeleting;
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event UserTrafficRowChangeEventHandler UserTrafficRowDeleted;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public void AddUserTrafficRow(UserTrafficRow row) {
|
|
|
- this.Rows.Add(row);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UserTrafficRow AddUserTrafficRow(UsersRow parentUsersRowByFK_UserTraffic_Users, System.DateTime TimeEntrance, System.DateTime TimeExit, bool Identification) {
|
|
|
- UserTrafficRow rowUserTrafficRow = ((UserTrafficRow)(this.NewRow()));
|
|
|
- object[] columnValuesArray = new object[] {
|
|
|
- null,
|
|
|
- null,
|
|
|
- TimeEntrance,
|
|
|
- TimeExit,
|
|
|
- Identification};
|
|
|
- if ((parentUsersRowByFK_UserTraffic_Users != null)) {
|
|
|
- columnValuesArray[1] = parentUsersRowByFK_UserTraffic_Users[0];
|
|
|
- }
|
|
|
- rowUserTrafficRow.ItemArray = columnValuesArray;
|
|
|
- this.Rows.Add(rowUserTrafficRow);
|
|
|
- return rowUserTrafficRow;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UserTrafficRow FindByID(int ID) {
|
|
|
- return ((UserTrafficRow)(this.Rows.Find(new object[] {
|
|
|
- ID})));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public override global::System.Data.DataTable Clone() {
|
|
|
- UserTrafficDataTable cln = ((UserTrafficDataTable)(base.Clone()));
|
|
|
- cln.InitVars();
|
|
|
- return cln;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override global::System.Data.DataTable CreateInstance() {
|
|
|
- return new UserTrafficDataTable();
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal void InitVars() {
|
|
|
- this.columnID = base.Columns["ID"];
|
|
|
- this.columnUserID = base.Columns["UserID"];
|
|
|
- this.columnTimeEntrance = base.Columns["TimeEntrance"];
|
|
|
- this.columnTimeExit = base.Columns["TimeExit"];
|
|
|
- this.columnIdentification = base.Columns["Identification"];
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitClass() {
|
|
|
- this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnID);
|
|
|
- this.columnUserID = new global::System.Data.DataColumn("UserID", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnUserID);
|
|
|
- this.columnTimeEntrance = new global::System.Data.DataColumn("TimeEntrance", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnTimeEntrance);
|
|
|
- this.columnTimeExit = new global::System.Data.DataColumn("TimeExit", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnTimeExit);
|
|
|
- this.columnIdentification = new global::System.Data.DataColumn("Identification", typeof(bool), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnIdentification);
|
|
|
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
|
- this.columnID}, true));
|
|
|
- this.columnID.AutoIncrement = true;
|
|
|
- this.columnID.AutoIncrementSeed = -1;
|
|
|
- this.columnID.AutoIncrementStep = -1;
|
|
|
- this.columnID.AllowDBNull = false;
|
|
|
- this.columnID.ReadOnly = true;
|
|
|
- this.columnID.Unique = true;
|
|
|
- this.columnUserID.AllowDBNull = false;
|
|
|
- this.columnIdentification.AllowDBNull = false;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UserTrafficRow NewUserTrafficRow() {
|
|
|
- return ((UserTrafficRow)(this.NewRow()));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
|
- return new UserTrafficRow(builder);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override global::System.Type GetRowType() {
|
|
|
- return typeof(UserTrafficRow);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowChanged(e);
|
|
|
- if ((this.UserTrafficRowChanged != null)) {
|
|
|
- this.UserTrafficRowChanged(this, new UserTrafficRowChangeEvent(((UserTrafficRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowChanging(e);
|
|
|
- if ((this.UserTrafficRowChanging != null)) {
|
|
|
- this.UserTrafficRowChanging(this, new UserTrafficRowChangeEvent(((UserTrafficRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowDeleted(e);
|
|
|
- if ((this.UserTrafficRowDeleted != null)) {
|
|
|
- this.UserTrafficRowDeleted(this, new UserTrafficRowChangeEvent(((UserTrafficRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowDeleting(e);
|
|
|
- if ((this.UserTrafficRowDeleting != null)) {
|
|
|
- this.UserTrafficRowDeleting(this, new UserTrafficRowChangeEvent(((UserTrafficRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public void RemoveUserTrafficRow(UserTrafficRow row) {
|
|
|
- this.Rows.Remove(row);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
|
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
|
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
|
- ImpulseVisionAppDataSet1 ds = new ImpulseVisionAppDataSet1();
|
|
|
- global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
|
- any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
|
|
- any1.MinOccurs = new decimal(0);
|
|
|
- any1.MaxOccurs = decimal.MaxValue;
|
|
|
- any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
|
- sequence.Items.Add(any1);
|
|
|
- global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
|
- any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
|
|
- any2.MinOccurs = new decimal(1);
|
|
|
- any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
|
- sequence.Items.Add(any2);
|
|
|
- global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
|
- attribute1.Name = "namespace";
|
|
|
- attribute1.FixedValue = ds.Namespace;
|
|
|
- type.Attributes.Add(attribute1);
|
|
|
- global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
|
- attribute2.Name = "tableTypeName";
|
|
|
- attribute2.FixedValue = "UserTrafficDataTable";
|
|
|
- type.Attributes.Add(attribute2);
|
|
|
- type.Particle = sequence;
|
|
|
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
|
|
- if (xs.Contains(dsSchema.TargetNamespace)) {
|
|
|
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
|
|
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
|
|
- try {
|
|
|
- global::System.Xml.Schema.XmlSchema schema = null;
|
|
|
- dsSchema.Write(s1);
|
|
|
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
|
|
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
|
|
- s2.SetLength(0);
|
|
|
- schema.Write(s2);
|
|
|
- if ((s1.Length == s2.Length)) {
|
|
|
- s1.Position = 0;
|
|
|
- s2.Position = 0;
|
|
|
- for (; ((s1.Position != s1.Length)
|
|
|
- && (s1.ReadByte() == s2.ReadByte())); ) {
|
|
|
- ;
|
|
|
- }
|
|
|
- if ((s1.Position == s1.Length)) {
|
|
|
- return type;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((s1 != null)) {
|
|
|
- s1.Close();
|
|
|
- }
|
|
|
- if ((s2 != null)) {
|
|
|
- s2.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- xs.Add(dsSchema);
|
|
|
- return type;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Represents the strongly named DataTable class.
|
|
|
- ///</summary>
|
|
|
- [global::System.Serializable()]
|
|
|
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
|
- public partial class UserTypeDataTable : global::System.Data.TypedTableBase<UserTypeRow> {
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnID;
|
|
|
-
|
|
|
- private global::System.Data.DataColumn columnUserType;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UserTypeDataTable() {
|
|
|
- this.TableName = "UserType";
|
|
|
- this.BeginInit();
|
|
|
- this.InitClass();
|
|
|
- this.EndInit();
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal UserTypeDataTable(global::System.Data.DataTable table) {
|
|
|
- this.TableName = table.TableName;
|
|
|
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
|
- this.CaseSensitive = table.CaseSensitive;
|
|
|
- }
|
|
|
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
|
- this.Locale = table.Locale;
|
|
|
- }
|
|
|
- if ((table.Namespace != table.DataSet.Namespace)) {
|
|
|
- this.Namespace = table.Namespace;
|
|
|
- }
|
|
|
- this.Prefix = table.Prefix;
|
|
|
- this.MinimumCapacity = table.MinimumCapacity;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected UserTypeDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
|
- base(info, context) {
|
|
|
- this.InitVars();
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn IDColumn {
|
|
|
- get {
|
|
|
- return this.columnID;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataColumn UserTypeColumn {
|
|
|
- get {
|
|
|
- return this.columnUserType;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Browsable(false)]
|
|
|
- public int Count {
|
|
|
- get {
|
|
|
- return this.Rows.Count;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UserTypeRow this[int index] {
|
|
|
- get {
|
|
|
- return ((UserTypeRow)(this.Rows[index]));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event UserTypeRowChangeEventHandler UserTypeRowChanging;
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event UserTypeRowChangeEventHandler UserTypeRowChanged;
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event UserTypeRowChangeEventHandler UserTypeRowDeleting;
|
|
|
-
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public event UserTypeRowChangeEventHandler UserTypeRowDeleted;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public void AddUserTypeRow(UserTypeRow row) {
|
|
|
- this.Rows.Add(row);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UserTypeRow AddUserTypeRow(string UserType) {
|
|
|
- UserTypeRow rowUserTypeRow = ((UserTypeRow)(this.NewRow()));
|
|
|
- object[] columnValuesArray = new object[] {
|
|
|
- null,
|
|
|
- UserType};
|
|
|
- rowUserTypeRow.ItemArray = columnValuesArray;
|
|
|
- this.Rows.Add(rowUserTypeRow);
|
|
|
- return rowUserTypeRow;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UserTypeRow FindByID(int ID) {
|
|
|
- return ((UserTypeRow)(this.Rows.Find(new object[] {
|
|
|
- ID})));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public override global::System.Data.DataTable Clone() {
|
|
|
- UserTypeDataTable cln = ((UserTypeDataTable)(base.Clone()));
|
|
|
- cln.InitVars();
|
|
|
- return cln;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override global::System.Data.DataTable CreateInstance() {
|
|
|
- return new UserTypeDataTable();
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal void InitVars() {
|
|
|
- this.columnID = base.Columns["ID"];
|
|
|
- this.columnUserType = base.Columns["UserType"];
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitClass() {
|
|
|
- this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnID);
|
|
|
- this.columnUserType = new global::System.Data.DataColumn("UserType", typeof(string), null, global::System.Data.MappingType.Element);
|
|
|
- base.Columns.Add(this.columnUserType);
|
|
|
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
|
- this.columnID}, true));
|
|
|
- this.columnID.AutoIncrement = true;
|
|
|
- this.columnID.AutoIncrementSeed = -1;
|
|
|
- this.columnID.AutoIncrementStep = -1;
|
|
|
- this.columnID.AllowDBNull = false;
|
|
|
- this.columnID.ReadOnly = true;
|
|
|
- this.columnID.Unique = true;
|
|
|
- this.columnUserType.AllowDBNull = false;
|
|
|
- this.columnUserType.MaxLength = 50;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UserTypeRow NewUserTypeRow() {
|
|
|
- return ((UserTypeRow)(this.NewRow()));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
|
- return new UserTypeRow(builder);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override global::System.Type GetRowType() {
|
|
|
- return typeof(UserTypeRow);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowChanged(e);
|
|
|
- if ((this.UserTypeRowChanged != null)) {
|
|
|
- this.UserTypeRowChanged(this, new UserTypeRowChangeEvent(((UserTypeRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowChanging(e);
|
|
|
- if ((this.UserTypeRowChanging != null)) {
|
|
|
- this.UserTypeRowChanging(this, new UserTypeRowChangeEvent(((UserTypeRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowDeleted(e);
|
|
|
- if ((this.UserTypeRowDeleted != null)) {
|
|
|
- this.UserTypeRowDeleted(this, new UserTypeRowChangeEvent(((UserTypeRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
|
- base.OnRowDeleting(e);
|
|
|
- if ((this.UserTypeRowDeleting != null)) {
|
|
|
- this.UserTypeRowDeleting(this, new UserTypeRowChangeEvent(((UserTypeRow)(e.Row)), e.Action));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public void RemoveUserTypeRow(UserTypeRow row) {
|
|
|
- this.Rows.Remove(row);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
|
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
|
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
|
- ImpulseVisionAppDataSet1 ds = new ImpulseVisionAppDataSet1();
|
|
|
- global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
|
- any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
|
|
- any1.MinOccurs = new decimal(0);
|
|
|
- any1.MaxOccurs = decimal.MaxValue;
|
|
|
- any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
|
- sequence.Items.Add(any1);
|
|
|
- global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
|
- any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
|
|
- any2.MinOccurs = new decimal(1);
|
|
|
- any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
|
- sequence.Items.Add(any2);
|
|
|
- global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
|
- attribute1.Name = "namespace";
|
|
|
- attribute1.FixedValue = ds.Namespace;
|
|
|
- type.Attributes.Add(attribute1);
|
|
|
- global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
|
- attribute2.Name = "tableTypeName";
|
|
|
- attribute2.FixedValue = "UserTypeDataTable";
|
|
|
- type.Attributes.Add(attribute2);
|
|
|
- type.Particle = sequence;
|
|
|
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
|
|
- if (xs.Contains(dsSchema.TargetNamespace)) {
|
|
|
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
|
|
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
|
|
- try {
|
|
|
- global::System.Xml.Schema.XmlSchema schema = null;
|
|
|
- dsSchema.Write(s1);
|
|
|
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
|
|
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
|
|
- s2.SetLength(0);
|
|
|
- schema.Write(s2);
|
|
|
- if ((s1.Length == s2.Length)) {
|
|
|
- s1.Position = 0;
|
|
|
- s2.Position = 0;
|
|
|
- for (; ((s1.Position != s1.Length)
|
|
|
- && (s1.ReadByte() == s2.ReadByte())); ) {
|
|
|
- ;
|
|
|
- }
|
|
|
- if ((s1.Position == s1.Length)) {
|
|
|
- return type;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((s1 != null)) {
|
|
|
- s1.Close();
|
|
|
- }
|
|
|
- if ((s2 != null)) {
|
|
|
- s2.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- xs.Add(dsSchema);
|
|
|
- return type;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Represents strongly named DataRow class.
|
|
|
- ///</summary>
|
|
|
- public partial class FaceImagesRow : global::System.Data.DataRow {
|
|
|
-
|
|
|
- private FaceImagesDataTable tableFaceImages;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal FaceImagesRow(global::System.Data.DataRowBuilder rb) :
|
|
|
- base(rb) {
|
|
|
- this.tableFaceImages = ((FaceImagesDataTable)(this.Table));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public int ID {
|
|
|
- get {
|
|
|
- return ((int)(this[this.tableFaceImages.IDColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableFaceImages.IDColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public int UserID {
|
|
|
- get {
|
|
|
- return ((int)(this[this.tableFaceImages.UserIDColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableFaceImages.UserIDColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public string Picture {
|
|
|
- get {
|
|
|
- return ((string)(this[this.tableFaceImages.PictureColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableFaceImages.PictureColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UsersRow UsersRow {
|
|
|
- get {
|
|
|
- return ((UsersRow)(this.GetParentRow(this.Table.ParentRelations["FK_FaceImages_Users"])));
|
|
|
- }
|
|
|
- set {
|
|
|
- this.SetParentRow(value, this.Table.ParentRelations["FK_FaceImages_Users"]);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Represents strongly named DataRow class.
|
|
|
- ///</summary>
|
|
|
- public partial class HistoryLoginRow : global::System.Data.DataRow {
|
|
|
-
|
|
|
- private HistoryLoginDataTable tableHistoryLogin;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal HistoryLoginRow(global::System.Data.DataRowBuilder rb) :
|
|
|
- base(rb) {
|
|
|
- this.tableHistoryLogin = ((HistoryLoginDataTable)(this.Table));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public int ID {
|
|
|
- get {
|
|
|
- return ((int)(this[this.tableHistoryLogin.IDColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableHistoryLogin.IDColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public int StaffsID {
|
|
|
- get {
|
|
|
- return ((int)(this[this.tableHistoryLogin.StaffsIDColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableHistoryLogin.StaffsIDColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public System.DateTime TimeLogin {
|
|
|
- get {
|
|
|
- return ((global::System.DateTime)(this[this.tableHistoryLogin.TimeLoginColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableHistoryLogin.TimeLoginColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public StaffsRow StaffsRow {
|
|
|
- get {
|
|
|
- return ((StaffsRow)(this.GetParentRow(this.Table.ParentRelations["FK_HistoryLogin_Staffs"])));
|
|
|
- }
|
|
|
- set {
|
|
|
- this.SetParentRow(value, this.Table.ParentRelations["FK_HistoryLogin_Staffs"]);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Represents strongly named DataRow class.
|
|
|
- ///</summary>
|
|
|
- public partial class StaffsRow : global::System.Data.DataRow {
|
|
|
-
|
|
|
- private StaffsDataTable tableStaffs;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal StaffsRow(global::System.Data.DataRowBuilder rb) :
|
|
|
- base(rb) {
|
|
|
- this.tableStaffs = ((StaffsDataTable)(this.Table));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public int ID {
|
|
|
- get {
|
|
|
- return ((int)(this[this.tableStaffs.IDColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableStaffs.IDColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public string Lastname {
|
|
|
- get {
|
|
|
- return ((string)(this[this.tableStaffs.LastnameColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableStaffs.LastnameColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public string Firstname {
|
|
|
- get {
|
|
|
- return ((string)(this[this.tableStaffs.FirstnameColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableStaffs.FirstnameColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public string Patronymic {
|
|
|
- get {
|
|
|
- try {
|
|
|
- return ((string)(this[this.tableStaffs.PatronymicColumn]));
|
|
|
- }
|
|
|
- catch (global::System.InvalidCastException e) {
|
|
|
- throw new global::System.Data.StrongTypingException("The value for column \'Patronymic\' in table \'Staffs\' is DBNull.", e);
|
|
|
- }
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableStaffs.PatronymicColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public string PassportSeria {
|
|
|
- get {
|
|
|
- return ((string)(this[this.tableStaffs.PassportSeriaColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableStaffs.PassportSeriaColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public string PassportNum {
|
|
|
- get {
|
|
|
- return ((string)(this[this.tableStaffs.PassportNumColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableStaffs.PassportNumColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public string Login {
|
|
|
- get {
|
|
|
- return ((string)(this[this.tableStaffs.LoginColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableStaffs.LoginColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public string Password {
|
|
|
- get {
|
|
|
- return ((string)(this[this.tableStaffs.PasswordColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableStaffs.PasswordColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public int IDStaffsType {
|
|
|
- get {
|
|
|
- return ((int)(this[this.tableStaffs.IDStaffsTypeColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableStaffs.IDStaffsTypeColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UserTypeRow UserTypeRow {
|
|
|
- get {
|
|
|
- return ((UserTypeRow)(this.GetParentRow(this.Table.ParentRelations["FK_Staffs_UserType"])));
|
|
|
- }
|
|
|
- set {
|
|
|
- this.SetParentRow(value, this.Table.ParentRelations["FK_Staffs_UserType"]);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public bool IsPatronymicNull() {
|
|
|
- return this.IsNull(this.tableStaffs.PatronymicColumn);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public void SetPatronymicNull() {
|
|
|
- this[this.tableStaffs.PatronymicColumn] = global::System.Convert.DBNull;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public HistoryLoginRow[] GetHistoryLoginRows() {
|
|
|
- if ((this.Table.ChildRelations["FK_HistoryLogin_Staffs"] == null)) {
|
|
|
- return new HistoryLoginRow[0];
|
|
|
- }
|
|
|
- else {
|
|
|
- return ((HistoryLoginRow[])(base.GetChildRows(this.Table.ChildRelations["FK_HistoryLogin_Staffs"])));
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Represents strongly named DataRow class.
|
|
|
- ///</summary>
|
|
|
- public partial class UsersRow : global::System.Data.DataRow {
|
|
|
-
|
|
|
- private UsersDataTable tableUsers;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal UsersRow(global::System.Data.DataRowBuilder rb) :
|
|
|
- base(rb) {
|
|
|
- this.tableUsers = ((UsersDataTable)(this.Table));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public int ID {
|
|
|
- get {
|
|
|
- return ((int)(this[this.tableUsers.IDColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableUsers.IDColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public string Lastname {
|
|
|
- get {
|
|
|
- return ((string)(this[this.tableUsers.LastnameColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableUsers.LastnameColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public string Firstname {
|
|
|
- get {
|
|
|
- return ((string)(this[this.tableUsers.FirstnameColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableUsers.FirstnameColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public string Patronymic {
|
|
|
- get {
|
|
|
- try {
|
|
|
- return ((string)(this[this.tableUsers.PatronymicColumn]));
|
|
|
- }
|
|
|
- catch (global::System.InvalidCastException e) {
|
|
|
- throw new global::System.Data.StrongTypingException("The value for column \'Patronymic\' in table \'Users\' is DBNull.", e);
|
|
|
- }
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableUsers.PatronymicColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public string PassportSeria {
|
|
|
- get {
|
|
|
- return ((string)(this[this.tableUsers.PassportSeriaColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableUsers.PassportSeriaColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public string PassportNum {
|
|
|
- get {
|
|
|
- return ((string)(this[this.tableUsers.PassportNumColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableUsers.PassportNumColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public int IDUserType {
|
|
|
- get {
|
|
|
- return ((int)(this[this.tableUsers.IDUserTypeColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableUsers.IDUserTypeColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UserTypeRow UserTypeRow {
|
|
|
- get {
|
|
|
- return ((UserTypeRow)(this.GetParentRow(this.Table.ParentRelations["FK_Users_UserType"])));
|
|
|
- }
|
|
|
- set {
|
|
|
- this.SetParentRow(value, this.Table.ParentRelations["FK_Users_UserType"]);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public bool IsPatronymicNull() {
|
|
|
- return this.IsNull(this.tableUsers.PatronymicColumn);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public void SetPatronymicNull() {
|
|
|
- this[this.tableUsers.PatronymicColumn] = global::System.Convert.DBNull;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public FaceImagesRow[] GetFaceImagesRows() {
|
|
|
- if ((this.Table.ChildRelations["FK_FaceImages_Users"] == null)) {
|
|
|
- return new FaceImagesRow[0];
|
|
|
- }
|
|
|
- else {
|
|
|
- return ((FaceImagesRow[])(base.GetChildRows(this.Table.ChildRelations["FK_FaceImages_Users"])));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UserTrafficRow[] GetUserTrafficRows() {
|
|
|
- if ((this.Table.ChildRelations["FK_UserTraffic_Users"] == null)) {
|
|
|
- return new UserTrafficRow[0];
|
|
|
- }
|
|
|
- else {
|
|
|
- return ((UserTrafficRow[])(base.GetChildRows(this.Table.ChildRelations["FK_UserTraffic_Users"])));
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Represents strongly named DataRow class.
|
|
|
- ///</summary>
|
|
|
- public partial class UserTrafficRow : global::System.Data.DataRow {
|
|
|
-
|
|
|
- private UserTrafficDataTable tableUserTraffic;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal UserTrafficRow(global::System.Data.DataRowBuilder rb) :
|
|
|
- base(rb) {
|
|
|
- this.tableUserTraffic = ((UserTrafficDataTable)(this.Table));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public int ID {
|
|
|
- get {
|
|
|
- return ((int)(this[this.tableUserTraffic.IDColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableUserTraffic.IDColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public int UserID {
|
|
|
- get {
|
|
|
- return ((int)(this[this.tableUserTraffic.UserIDColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableUserTraffic.UserIDColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public System.DateTime TimeEntrance {
|
|
|
- get {
|
|
|
- try {
|
|
|
- return ((global::System.DateTime)(this[this.tableUserTraffic.TimeEntranceColumn]));
|
|
|
- }
|
|
|
- catch (global::System.InvalidCastException e) {
|
|
|
- throw new global::System.Data.StrongTypingException("The value for column \'TimeEntrance\' in table \'UserTraffic\' is DBNull.", e);
|
|
|
- }
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableUserTraffic.TimeEntranceColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public System.DateTime TimeExit {
|
|
|
- get {
|
|
|
- try {
|
|
|
- return ((global::System.DateTime)(this[this.tableUserTraffic.TimeExitColumn]));
|
|
|
- }
|
|
|
- catch (global::System.InvalidCastException e) {
|
|
|
- throw new global::System.Data.StrongTypingException("The value for column \'TimeExit\' in table \'UserTraffic\' is DBNull.", e);
|
|
|
- }
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableUserTraffic.TimeExitColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public bool Identification {
|
|
|
- get {
|
|
|
- return ((bool)(this[this.tableUserTraffic.IdentificationColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableUserTraffic.IdentificationColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UsersRow UsersRow {
|
|
|
- get {
|
|
|
- return ((UsersRow)(this.GetParentRow(this.Table.ParentRelations["FK_UserTraffic_Users"])));
|
|
|
- }
|
|
|
- set {
|
|
|
- this.SetParentRow(value, this.Table.ParentRelations["FK_UserTraffic_Users"]);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public bool IsTimeEntranceNull() {
|
|
|
- return this.IsNull(this.tableUserTraffic.TimeEntranceColumn);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public void SetTimeEntranceNull() {
|
|
|
- this[this.tableUserTraffic.TimeEntranceColumn] = global::System.Convert.DBNull;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public bool IsTimeExitNull() {
|
|
|
- return this.IsNull(this.tableUserTraffic.TimeExitColumn);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public void SetTimeExitNull() {
|
|
|
- this[this.tableUserTraffic.TimeExitColumn] = global::System.Convert.DBNull;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Represents strongly named DataRow class.
|
|
|
- ///</summary>
|
|
|
- public partial class UserTypeRow : global::System.Data.DataRow {
|
|
|
-
|
|
|
- private UserTypeDataTable tableUserType;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal UserTypeRow(global::System.Data.DataRowBuilder rb) :
|
|
|
- base(rb) {
|
|
|
- this.tableUserType = ((UserTypeDataTable)(this.Table));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public int ID {
|
|
|
- get {
|
|
|
- return ((int)(this[this.tableUserType.IDColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableUserType.IDColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public string UserType {
|
|
|
- get {
|
|
|
- return ((string)(this[this.tableUserType.UserTypeColumn]));
|
|
|
- }
|
|
|
- set {
|
|
|
- this[this.tableUserType.UserTypeColumn] = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public StaffsRow[] GetStaffsRows() {
|
|
|
- if ((this.Table.ChildRelations["FK_Staffs_UserType"] == null)) {
|
|
|
- return new StaffsRow[0];
|
|
|
- }
|
|
|
- else {
|
|
|
- return ((StaffsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Staffs_UserType"])));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UsersRow[] GetUsersRows() {
|
|
|
- if ((this.Table.ChildRelations["FK_Users_UserType"] == null)) {
|
|
|
- return new UsersRow[0];
|
|
|
- }
|
|
|
- else {
|
|
|
- return ((UsersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Users_UserType"])));
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Row event argument class
|
|
|
- ///</summary>
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public class FaceImagesRowChangeEvent : global::System.EventArgs {
|
|
|
-
|
|
|
- private FaceImagesRow eventRow;
|
|
|
-
|
|
|
- private global::System.Data.DataRowAction eventAction;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public FaceImagesRowChangeEvent(FaceImagesRow row, global::System.Data.DataRowAction action) {
|
|
|
- this.eventRow = row;
|
|
|
- this.eventAction = action;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public FaceImagesRow Row {
|
|
|
- get {
|
|
|
- return this.eventRow;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataRowAction Action {
|
|
|
- get {
|
|
|
- return this.eventAction;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Row event argument class
|
|
|
- ///</summary>
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public class HistoryLoginRowChangeEvent : global::System.EventArgs {
|
|
|
-
|
|
|
- private HistoryLoginRow eventRow;
|
|
|
-
|
|
|
- private global::System.Data.DataRowAction eventAction;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public HistoryLoginRowChangeEvent(HistoryLoginRow row, global::System.Data.DataRowAction action) {
|
|
|
- this.eventRow = row;
|
|
|
- this.eventAction = action;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public HistoryLoginRow Row {
|
|
|
- get {
|
|
|
- return this.eventRow;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataRowAction Action {
|
|
|
- get {
|
|
|
- return this.eventAction;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Row event argument class
|
|
|
- ///</summary>
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public class StaffsRowChangeEvent : global::System.EventArgs {
|
|
|
-
|
|
|
- private StaffsRow eventRow;
|
|
|
-
|
|
|
- private global::System.Data.DataRowAction eventAction;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public StaffsRowChangeEvent(StaffsRow row, global::System.Data.DataRowAction action) {
|
|
|
- this.eventRow = row;
|
|
|
- this.eventAction = action;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public StaffsRow Row {
|
|
|
- get {
|
|
|
- return this.eventRow;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataRowAction Action {
|
|
|
- get {
|
|
|
- return this.eventAction;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Row event argument class
|
|
|
- ///</summary>
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public class UsersRowChangeEvent : global::System.EventArgs {
|
|
|
-
|
|
|
- private UsersRow eventRow;
|
|
|
-
|
|
|
- private global::System.Data.DataRowAction eventAction;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UsersRowChangeEvent(UsersRow row, global::System.Data.DataRowAction action) {
|
|
|
- this.eventRow = row;
|
|
|
- this.eventAction = action;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UsersRow Row {
|
|
|
- get {
|
|
|
- return this.eventRow;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataRowAction Action {
|
|
|
- get {
|
|
|
- return this.eventAction;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Row event argument class
|
|
|
- ///</summary>
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public class UserTrafficRowChangeEvent : global::System.EventArgs {
|
|
|
-
|
|
|
- private UserTrafficRow eventRow;
|
|
|
-
|
|
|
- private global::System.Data.DataRowAction eventAction;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UserTrafficRowChangeEvent(UserTrafficRow row, global::System.Data.DataRowAction action) {
|
|
|
- this.eventRow = row;
|
|
|
- this.eventAction = action;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UserTrafficRow Row {
|
|
|
- get {
|
|
|
- return this.eventRow;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataRowAction Action {
|
|
|
- get {
|
|
|
- return this.eventAction;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Row event argument class
|
|
|
- ///</summary>
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public class UserTypeRowChangeEvent : global::System.EventArgs {
|
|
|
-
|
|
|
- private UserTypeRow eventRow;
|
|
|
-
|
|
|
- private global::System.Data.DataRowAction eventAction;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UserTypeRowChangeEvent(UserTypeRow row, global::System.Data.DataRowAction action) {
|
|
|
- this.eventRow = row;
|
|
|
- this.eventAction = action;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UserTypeRow Row {
|
|
|
- get {
|
|
|
- return this.eventRow;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public global::System.Data.DataRowAction Action {
|
|
|
- get {
|
|
|
- return this.eventAction;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-namespace ImpulseVision.ImpulseVisionAppDataSet1TableAdapters {
|
|
|
-
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Represents the connection and commands used to retrieve and save data.
|
|
|
- ///</summary>
|
|
|
- [global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
|
- [global::System.ComponentModel.ToolboxItem(true)]
|
|
|
- [global::System.ComponentModel.DataObjectAttribute(true)]
|
|
|
- [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
|
|
- ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public partial class FaceImagesTableAdapter : global::System.ComponentModel.Component {
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
-
|
|
|
- private bool _clearBeforeFill;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public FaceImagesTableAdapter() {
|
|
|
- this.ClearBeforeFill = true;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
|
- get {
|
|
|
- if ((this._adapter == null)) {
|
|
|
- this.InitAdapter();
|
|
|
- }
|
|
|
- return this._adapter;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
|
- get {
|
|
|
- if ((this._connection == null)) {
|
|
|
- this.InitConnection();
|
|
|
- }
|
|
|
- return this._connection;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._connection = value;
|
|
|
- if ((this.Adapter.InsertCommand != null)) {
|
|
|
- this.Adapter.InsertCommand.Connection = value;
|
|
|
- }
|
|
|
- if ((this.Adapter.DeleteCommand != null)) {
|
|
|
- this.Adapter.DeleteCommand.Connection = value;
|
|
|
- }
|
|
|
- if ((this.Adapter.UpdateCommand != null)) {
|
|
|
- this.Adapter.UpdateCommand.Connection = value;
|
|
|
- }
|
|
|
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
- if ((this.CommandCollection[i] != null)) {
|
|
|
- ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
|
- get {
|
|
|
- return this._transaction;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._transaction = value;
|
|
|
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
- this.CommandCollection[i].Transaction = this._transaction;
|
|
|
- }
|
|
|
- if (((this.Adapter != null)
|
|
|
- && (this.Adapter.DeleteCommand != null))) {
|
|
|
- this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
|
- }
|
|
|
- if (((this.Adapter != null)
|
|
|
- && (this.Adapter.InsertCommand != null))) {
|
|
|
- this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
|
- }
|
|
|
- if (((this.Adapter != null)
|
|
|
- && (this.Adapter.UpdateCommand != null))) {
|
|
|
- this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
|
- get {
|
|
|
- if ((this._commandCollection == null)) {
|
|
|
- this.InitCommandCollection();
|
|
|
- }
|
|
|
- return this._commandCollection;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public bool ClearBeforeFill {
|
|
|
- get {
|
|
|
- return this._clearBeforeFill;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._clearBeforeFill = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitAdapter() {
|
|
|
- this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
|
- global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
|
- tableMapping.SourceTable = "Table";
|
|
|
- tableMapping.DataSetTable = "FaceImages";
|
|
|
- tableMapping.ColumnMappings.Add("ID", "ID");
|
|
|
- tableMapping.ColumnMappings.Add("UserID", "UserID");
|
|
|
- tableMapping.ColumnMappings.Add("Picture", "Picture");
|
|
|
- this._adapter.TableMappings.Add(tableMapping);
|
|
|
- this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._adapter.DeleteCommand.Connection = this.Connection;
|
|
|
- this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[FaceImages] WHERE (([ID] = @Original_ID) AND ([UserID] = @Orig" +
|
|
|
- "inal_UserID))";
|
|
|
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._adapter.InsertCommand.Connection = this.Connection;
|
|
|
- this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[FaceImages] ([ID], [UserID], [Picture]) VALUES (@ID, @UserID, " +
|
|
|
- "@Picture);\r\nSELECT ID, UserID, Picture FROM FaceImages WHERE (ID = @ID)";
|
|
|
- this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Picture", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Picture", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._adapter.UpdateCommand.Connection = this.Connection;
|
|
|
- this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[FaceImages] SET [ID] = @ID, [UserID] = @UserID, [Picture] = @Pictur" +
|
|
|
- "e WHERE (([ID] = @Original_ID) AND ([UserID] = @Original_UserID));\r\nSELECT ID, U" +
|
|
|
- "serID, Picture FROM FaceImages WHERE (ID = @ID)";
|
|
|
- this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Picture", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Picture", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitConnection() {
|
|
|
- this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
|
- this._connection.ConnectionString = global::ImpulseVision.Properties.Settings.Default.ImpulseVisionAppConnectionString;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitCommandCollection() {
|
|
|
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
|
- this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._commandCollection[0].Connection = this.Connection;
|
|
|
- this._commandCollection[0].CommandText = "SELECT ID, UserID, Picture FROM dbo.FaceImages";
|
|
|
- this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
|
- public virtual int Fill(ImpulseVisionAppDataSet1.FaceImagesDataTable dataTable) {
|
|
|
- this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
- if ((this.ClearBeforeFill == true)) {
|
|
|
- dataTable.Clear();
|
|
|
- }
|
|
|
- int returnValue = this.Adapter.Fill(dataTable);
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
|
- public virtual ImpulseVisionAppDataSet1.FaceImagesDataTable GetData() {
|
|
|
- this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
- ImpulseVisionAppDataSet1.FaceImagesDataTable dataTable = new ImpulseVisionAppDataSet1.FaceImagesDataTable();
|
|
|
- this.Adapter.Fill(dataTable);
|
|
|
- return dataTable;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(ImpulseVisionAppDataSet1.FaceImagesDataTable dataTable) {
|
|
|
- return this.Adapter.Update(dataTable);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(ImpulseVisionAppDataSet1 dataSet) {
|
|
|
- return this.Adapter.Update(dataSet, "FaceImages");
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
|
- return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
|
- dataRow});
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
|
- return this.Adapter.Update(dataRows);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
|
- public virtual int Delete(int Original_ID, int Original_UserID) {
|
|
|
- this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
|
|
|
- this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_UserID));
|
|
|
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
|
- if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
- != global::System.Data.ConnectionState.Open)) {
|
|
|
- this.Adapter.DeleteCommand.Connection.Open();
|
|
|
- }
|
|
|
- try {
|
|
|
- int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
- this.Adapter.DeleteCommand.Connection.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
|
- public virtual int Insert(int ID, int UserID, string Picture) {
|
|
|
- this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID));
|
|
|
- this.Adapter.InsertCommand.Parameters[1].Value = ((int)(UserID));
|
|
|
- if ((Picture == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Picture");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Picture));
|
|
|
- }
|
|
|
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
|
- if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
- != global::System.Data.ConnectionState.Open)) {
|
|
|
- this.Adapter.InsertCommand.Connection.Open();
|
|
|
- }
|
|
|
- try {
|
|
|
- int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
- this.Adapter.InsertCommand.Connection.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
- public virtual int Update(int ID, int UserID, string Picture, int Original_ID, int Original_UserID) {
|
|
|
- this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID));
|
|
|
- this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(UserID));
|
|
|
- if ((Picture == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Picture");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Picture));
|
|
|
- }
|
|
|
- this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID));
|
|
|
- this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_UserID));
|
|
|
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
|
- if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
- != global::System.Data.ConnectionState.Open)) {
|
|
|
- this.Adapter.UpdateCommand.Connection.Open();
|
|
|
- }
|
|
|
- try {
|
|
|
- int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
- this.Adapter.UpdateCommand.Connection.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
- public virtual int Update(int UserID, string Picture, int Original_ID, int Original_UserID) {
|
|
|
- return this.Update(Original_ID, UserID, Picture, Original_ID, Original_UserID);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Represents the connection and commands used to retrieve and save data.
|
|
|
- ///</summary>
|
|
|
- [global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
|
- [global::System.ComponentModel.ToolboxItem(true)]
|
|
|
- [global::System.ComponentModel.DataObjectAttribute(true)]
|
|
|
- [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
|
|
- ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public partial class HistoryLoginTableAdapter : global::System.ComponentModel.Component {
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
-
|
|
|
- private bool _clearBeforeFill;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public HistoryLoginTableAdapter() {
|
|
|
- this.ClearBeforeFill = true;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
|
- get {
|
|
|
- if ((this._adapter == null)) {
|
|
|
- this.InitAdapter();
|
|
|
- }
|
|
|
- return this._adapter;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
|
- get {
|
|
|
- if ((this._connection == null)) {
|
|
|
- this.InitConnection();
|
|
|
- }
|
|
|
- return this._connection;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._connection = value;
|
|
|
- if ((this.Adapter.InsertCommand != null)) {
|
|
|
- this.Adapter.InsertCommand.Connection = value;
|
|
|
- }
|
|
|
- if ((this.Adapter.DeleteCommand != null)) {
|
|
|
- this.Adapter.DeleteCommand.Connection = value;
|
|
|
- }
|
|
|
- if ((this.Adapter.UpdateCommand != null)) {
|
|
|
- this.Adapter.UpdateCommand.Connection = value;
|
|
|
- }
|
|
|
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
- if ((this.CommandCollection[i] != null)) {
|
|
|
- ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
|
- get {
|
|
|
- return this._transaction;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._transaction = value;
|
|
|
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
- this.CommandCollection[i].Transaction = this._transaction;
|
|
|
- }
|
|
|
- if (((this.Adapter != null)
|
|
|
- && (this.Adapter.DeleteCommand != null))) {
|
|
|
- this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
|
- }
|
|
|
- if (((this.Adapter != null)
|
|
|
- && (this.Adapter.InsertCommand != null))) {
|
|
|
- this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
|
- }
|
|
|
- if (((this.Adapter != null)
|
|
|
- && (this.Adapter.UpdateCommand != null))) {
|
|
|
- this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
|
- get {
|
|
|
- if ((this._commandCollection == null)) {
|
|
|
- this.InitCommandCollection();
|
|
|
- }
|
|
|
- return this._commandCollection;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public bool ClearBeforeFill {
|
|
|
- get {
|
|
|
- return this._clearBeforeFill;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._clearBeforeFill = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitAdapter() {
|
|
|
- this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
|
- global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
|
- tableMapping.SourceTable = "Table";
|
|
|
- tableMapping.DataSetTable = "HistoryLogin";
|
|
|
- tableMapping.ColumnMappings.Add("ID", "ID");
|
|
|
- tableMapping.ColumnMappings.Add("StaffsID", "StaffsID");
|
|
|
- tableMapping.ColumnMappings.Add("TimeLogin", "TimeLogin");
|
|
|
- this._adapter.TableMappings.Add(tableMapping);
|
|
|
- this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._adapter.DeleteCommand.Connection = this.Connection;
|
|
|
- this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[HistoryLogin] WHERE (([ID] = @Original_ID) AND ([StaffsID] = @" +
|
|
|
- "Original_StaffsID) AND ([TimeLogin] = @Original_TimeLogin))";
|
|
|
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StaffsID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StaffsID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TimeLogin", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeLogin", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._adapter.InsertCommand.Connection = this.Connection;
|
|
|
- this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[HistoryLogin] ([StaffsID], [TimeLogin]) VALUES (@StaffsID, @Ti" +
|
|
|
- "meLogin);\r\nSELECT ID, StaffsID, TimeLogin FROM HistoryLogin WHERE (ID = SCOPE_ID" +
|
|
|
- "ENTITY())";
|
|
|
- this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StaffsID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StaffsID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TimeLogin", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeLogin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._adapter.UpdateCommand.Connection = this.Connection;
|
|
|
- this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[HistoryLogin] SET [StaffsID] = @StaffsID, [TimeLogin] = @TimeLogin WHERE (([ID] = @Original_ID) AND ([StaffsID] = @Original_StaffsID) AND ([TimeLogin] = @Original_TimeLogin));
|
|
|
-SELECT ID, StaffsID, TimeLogin FROM HistoryLogin WHERE (ID = @ID)";
|
|
|
- this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StaffsID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StaffsID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TimeLogin", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeLogin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StaffsID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StaffsID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TimeLogin", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeLogin", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitConnection() {
|
|
|
- this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
|
- this._connection.ConnectionString = global::ImpulseVision.Properties.Settings.Default.ImpulseVisionAppConnectionString;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitCommandCollection() {
|
|
|
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
|
- this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._commandCollection[0].Connection = this.Connection;
|
|
|
- this._commandCollection[0].CommandText = "SELECT ID, StaffsID, TimeLogin FROM dbo.HistoryLogin";
|
|
|
- this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
|
- public virtual int Fill(ImpulseVisionAppDataSet1.HistoryLoginDataTable dataTable) {
|
|
|
- this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
- if ((this.ClearBeforeFill == true)) {
|
|
|
- dataTable.Clear();
|
|
|
- }
|
|
|
- int returnValue = this.Adapter.Fill(dataTable);
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
|
- public virtual ImpulseVisionAppDataSet1.HistoryLoginDataTable GetData() {
|
|
|
- this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
- ImpulseVisionAppDataSet1.HistoryLoginDataTable dataTable = new ImpulseVisionAppDataSet1.HistoryLoginDataTable();
|
|
|
- this.Adapter.Fill(dataTable);
|
|
|
- return dataTable;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(ImpulseVisionAppDataSet1.HistoryLoginDataTable dataTable) {
|
|
|
- return this.Adapter.Update(dataTable);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(ImpulseVisionAppDataSet1 dataSet) {
|
|
|
- return this.Adapter.Update(dataSet, "HistoryLogin");
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
|
- return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
|
- dataRow});
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
|
- return this.Adapter.Update(dataRows);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
|
- public virtual int Delete(int Original_ID, int Original_StaffsID, System.DateTime Original_TimeLogin) {
|
|
|
- this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
|
|
|
- this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_StaffsID));
|
|
|
- this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_TimeLogin));
|
|
|
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
|
- if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
- != global::System.Data.ConnectionState.Open)) {
|
|
|
- this.Adapter.DeleteCommand.Connection.Open();
|
|
|
- }
|
|
|
- try {
|
|
|
- int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
- this.Adapter.DeleteCommand.Connection.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
|
- public virtual int Insert(int StaffsID, System.DateTime TimeLogin) {
|
|
|
- this.Adapter.InsertCommand.Parameters[0].Value = ((int)(StaffsID));
|
|
|
- this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(TimeLogin));
|
|
|
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
|
- if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
- != global::System.Data.ConnectionState.Open)) {
|
|
|
- this.Adapter.InsertCommand.Connection.Open();
|
|
|
- }
|
|
|
- try {
|
|
|
- int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
- this.Adapter.InsertCommand.Connection.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
- public virtual int Update(int StaffsID, System.DateTime TimeLogin, int Original_ID, int Original_StaffsID, System.DateTime Original_TimeLogin, int ID) {
|
|
|
- this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(StaffsID));
|
|
|
- this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(TimeLogin));
|
|
|
- this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
|
|
|
- this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_StaffsID));
|
|
|
- this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(Original_TimeLogin));
|
|
|
- this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
|
|
|
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
|
- if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
- != global::System.Data.ConnectionState.Open)) {
|
|
|
- this.Adapter.UpdateCommand.Connection.Open();
|
|
|
- }
|
|
|
- try {
|
|
|
- int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
- this.Adapter.UpdateCommand.Connection.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
- public virtual int Update(int StaffsID, System.DateTime TimeLogin, int Original_ID, int Original_StaffsID, System.DateTime Original_TimeLogin) {
|
|
|
- return this.Update(StaffsID, TimeLogin, Original_ID, Original_StaffsID, Original_TimeLogin, Original_ID);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Represents the connection and commands used to retrieve and save data.
|
|
|
- ///</summary>
|
|
|
- [global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
|
- [global::System.ComponentModel.ToolboxItem(true)]
|
|
|
- [global::System.ComponentModel.DataObjectAttribute(true)]
|
|
|
- [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
|
|
- ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public partial class StaffsTableAdapter : global::System.ComponentModel.Component {
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
-
|
|
|
- private bool _clearBeforeFill;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public StaffsTableAdapter() {
|
|
|
- this.ClearBeforeFill = true;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
|
- get {
|
|
|
- if ((this._adapter == null)) {
|
|
|
- this.InitAdapter();
|
|
|
- }
|
|
|
- return this._adapter;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
|
- get {
|
|
|
- if ((this._connection == null)) {
|
|
|
- this.InitConnection();
|
|
|
- }
|
|
|
- return this._connection;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._connection = value;
|
|
|
- if ((this.Adapter.InsertCommand != null)) {
|
|
|
- this.Adapter.InsertCommand.Connection = value;
|
|
|
- }
|
|
|
- if ((this.Adapter.DeleteCommand != null)) {
|
|
|
- this.Adapter.DeleteCommand.Connection = value;
|
|
|
- }
|
|
|
- if ((this.Adapter.UpdateCommand != null)) {
|
|
|
- this.Adapter.UpdateCommand.Connection = value;
|
|
|
- }
|
|
|
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
- if ((this.CommandCollection[i] != null)) {
|
|
|
- ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
|
- get {
|
|
|
- return this._transaction;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._transaction = value;
|
|
|
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
- this.CommandCollection[i].Transaction = this._transaction;
|
|
|
- }
|
|
|
- if (((this.Adapter != null)
|
|
|
- && (this.Adapter.DeleteCommand != null))) {
|
|
|
- this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
|
- }
|
|
|
- if (((this.Adapter != null)
|
|
|
- && (this.Adapter.InsertCommand != null))) {
|
|
|
- this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
|
- }
|
|
|
- if (((this.Adapter != null)
|
|
|
- && (this.Adapter.UpdateCommand != null))) {
|
|
|
- this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
|
- get {
|
|
|
- if ((this._commandCollection == null)) {
|
|
|
- this.InitCommandCollection();
|
|
|
- }
|
|
|
- return this._commandCollection;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public bool ClearBeforeFill {
|
|
|
- get {
|
|
|
- return this._clearBeforeFill;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._clearBeforeFill = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitAdapter() {
|
|
|
- this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
|
- global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
|
- tableMapping.SourceTable = "Table";
|
|
|
- tableMapping.DataSetTable = "Staffs";
|
|
|
- tableMapping.ColumnMappings.Add("ID", "ID");
|
|
|
- tableMapping.ColumnMappings.Add("Lastname", "Lastname");
|
|
|
- tableMapping.ColumnMappings.Add("Firstname", "Firstname");
|
|
|
- tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
|
|
|
- tableMapping.ColumnMappings.Add("PassportSeria", "PassportSeria");
|
|
|
- tableMapping.ColumnMappings.Add("PassportNum", "PassportNum");
|
|
|
- tableMapping.ColumnMappings.Add("Login", "Login");
|
|
|
- tableMapping.ColumnMappings.Add("Password", "Password");
|
|
|
- tableMapping.ColumnMappings.Add("IDStaffsType", "IDStaffsType");
|
|
|
- this._adapter.TableMappings.Add(tableMapping);
|
|
|
- this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._adapter.DeleteCommand.Connection = this.Connection;
|
|
|
- this._adapter.DeleteCommand.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))";
|
|
|
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PassportSeria", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportSeria", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PassportNum", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportNum", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDStaffsType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDStaffsType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._adapter.InsertCommand.Connection = this.Connection;
|
|
|
- this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Staffs] ([Lastname], [Firstname], [Patronymic], [PassportSeria], [PassportNum], [Login], [Password], [IDStaffsType]) VALUES (@Lastname, @Firstname, @Patronymic, @PassportSeria, @PassportNum, @Login, @Password, @IDStaffsType);
|
|
|
-SELECT ID, Lastname, Firstname, Patronymic, PassportSeria, PassportNum, Login, Password, IDStaffsType FROM Staffs WHERE (ID = SCOPE_IDENTITY())";
|
|
|
- this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PassportSeria", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportSeria", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PassportNum", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportNum", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDStaffsType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDStaffsType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._adapter.UpdateCommand.Connection = this.Connection;
|
|
|
- this._adapter.UpdateCommand.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));
|
|
|
-SELECT ID, Lastname, Firstname, Patronymic, PassportSeria, PassportNum, Login, Password, IDStaffsType FROM Staffs WHERE (ID = @ID)";
|
|
|
- this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PassportSeria", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportSeria", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PassportNum", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportNum", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDStaffsType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDStaffsType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PassportSeria", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportSeria", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PassportNum", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportNum", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDStaffsType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDStaffsType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitConnection() {
|
|
|
- this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
|
- this._connection.ConnectionString = global::ImpulseVision.Properties.Settings.Default.ImpulseVisionAppConnectionString;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitCommandCollection() {
|
|
|
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
|
- this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._commandCollection[0].Connection = this.Connection;
|
|
|
- this._commandCollection[0].CommandText = "SELECT ID, Lastname, Firstname, Patronymic, PassportSeria, PassportNum, Login, Pa" +
|
|
|
- "ssword, IDStaffsType FROM dbo.Staffs";
|
|
|
- this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
|
- public virtual int Fill(ImpulseVisionAppDataSet1.StaffsDataTable dataTable) {
|
|
|
- this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
- if ((this.ClearBeforeFill == true)) {
|
|
|
- dataTable.Clear();
|
|
|
- }
|
|
|
- int returnValue = this.Adapter.Fill(dataTable);
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
|
- public virtual ImpulseVisionAppDataSet1.StaffsDataTable GetData() {
|
|
|
- this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
- ImpulseVisionAppDataSet1.StaffsDataTable dataTable = new ImpulseVisionAppDataSet1.StaffsDataTable();
|
|
|
- this.Adapter.Fill(dataTable);
|
|
|
- return dataTable;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(ImpulseVisionAppDataSet1.StaffsDataTable dataTable) {
|
|
|
- return this.Adapter.Update(dataTable);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(ImpulseVisionAppDataSet1 dataSet) {
|
|
|
- return this.Adapter.Update(dataSet, "Staffs");
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
|
- return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
|
- dataRow});
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
|
- return this.Adapter.Update(dataRows);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
|
- public virtual int Delete(int Original_ID, string Original_Lastname, string Original_Firstname, string Original_Patronymic, string Original_PassportSeria, string Original_PassportNum, string Original_Login, string Original_Password, int Original_IDStaffsType) {
|
|
|
- this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
|
|
|
- if ((Original_Lastname == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Original_Lastname");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Lastname));
|
|
|
- }
|
|
|
- if ((Original_Firstname == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Original_Firstname");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Firstname));
|
|
|
- }
|
|
|
- if ((Original_Patronymic == null)) {
|
|
|
- this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
|
|
- this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
|
|
- this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Patronymic));
|
|
|
- }
|
|
|
- if ((Original_PassportSeria == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Original_PassportSeria");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_PassportSeria));
|
|
|
- }
|
|
|
- if ((Original_PassportNum == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Original_PassportNum");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_PassportNum));
|
|
|
- }
|
|
|
- if ((Original_Login == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Original_Login");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_Login));
|
|
|
- }
|
|
|
- if ((Original_Password == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Original_Password");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Password));
|
|
|
- }
|
|
|
- this.Adapter.DeleteCommand.Parameters[9].Value = ((int)(Original_IDStaffsType));
|
|
|
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
|
- if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
- != global::System.Data.ConnectionState.Open)) {
|
|
|
- this.Adapter.DeleteCommand.Connection.Open();
|
|
|
- }
|
|
|
- try {
|
|
|
- int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
- this.Adapter.DeleteCommand.Connection.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
|
- public virtual int Insert(string Lastname, string Firstname, string Patronymic, string PassportSeria, string PassportNum, string Login, string Password, int IDStaffsType) {
|
|
|
- if ((Lastname == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Lastname");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Lastname));
|
|
|
- }
|
|
|
- if ((Firstname == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Firstname");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Firstname));
|
|
|
- }
|
|
|
- if ((Patronymic == null)) {
|
|
|
- this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
|
|
|
- }
|
|
|
- if ((PassportSeria == null)) {
|
|
|
- throw new global::System.ArgumentNullException("PassportSeria");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.InsertCommand.Parameters[3].Value = ((string)(PassportSeria));
|
|
|
- }
|
|
|
- if ((PassportNum == null)) {
|
|
|
- throw new global::System.ArgumentNullException("PassportNum");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.InsertCommand.Parameters[4].Value = ((string)(PassportNum));
|
|
|
- }
|
|
|
- if ((Login == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Login");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Login));
|
|
|
- }
|
|
|
- if ((Password == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Password");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Password));
|
|
|
- }
|
|
|
- this.Adapter.InsertCommand.Parameters[7].Value = ((int)(IDStaffsType));
|
|
|
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
|
- if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
- != global::System.Data.ConnectionState.Open)) {
|
|
|
- this.Adapter.InsertCommand.Connection.Open();
|
|
|
- }
|
|
|
- try {
|
|
|
- int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
- this.Adapter.InsertCommand.Connection.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
- public virtual int Update(
|
|
|
- string Lastname,
|
|
|
- string Firstname,
|
|
|
- string Patronymic,
|
|
|
- string PassportSeria,
|
|
|
- string PassportNum,
|
|
|
- string Login,
|
|
|
- string Password,
|
|
|
- int IDStaffsType,
|
|
|
- int Original_ID,
|
|
|
- string Original_Lastname,
|
|
|
- string Original_Firstname,
|
|
|
- string Original_Patronymic,
|
|
|
- string Original_PassportSeria,
|
|
|
- string Original_PassportNum,
|
|
|
- string Original_Login,
|
|
|
- string Original_Password,
|
|
|
- int Original_IDStaffsType,
|
|
|
- int ID) {
|
|
|
- if ((Lastname == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Lastname");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Lastname));
|
|
|
- }
|
|
|
- if ((Firstname == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Firstname");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Firstname));
|
|
|
- }
|
|
|
- if ((Patronymic == null)) {
|
|
|
- this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
|
|
|
- }
|
|
|
- if ((PassportSeria == null)) {
|
|
|
- throw new global::System.ArgumentNullException("PassportSeria");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(PassportSeria));
|
|
|
- }
|
|
|
- if ((PassportNum == null)) {
|
|
|
- throw new global::System.ArgumentNullException("PassportNum");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(PassportNum));
|
|
|
- }
|
|
|
- if ((Login == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Login");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Login));
|
|
|
- }
|
|
|
- if ((Password == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Password");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Password));
|
|
|
- }
|
|
|
- this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(IDStaffsType));
|
|
|
- this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_ID));
|
|
|
- if ((Original_Lastname == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Original_Lastname");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Lastname));
|
|
|
- }
|
|
|
- if ((Original_Firstname == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Original_Firstname");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Firstname));
|
|
|
- }
|
|
|
- if ((Original_Patronymic == null)) {
|
|
|
- this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
|
|
|
- this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
|
|
|
- this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Patronymic));
|
|
|
- }
|
|
|
- if ((Original_PassportSeria == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Original_PassportSeria");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_PassportSeria));
|
|
|
- }
|
|
|
- if ((Original_PassportNum == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Original_PassportNum");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_PassportNum));
|
|
|
- }
|
|
|
- if ((Original_Login == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Original_Login");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Login));
|
|
|
- }
|
|
|
- if ((Original_Password == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Original_Password");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Password));
|
|
|
- }
|
|
|
- this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_IDStaffsType));
|
|
|
- this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(ID));
|
|
|
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
|
- if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
- != global::System.Data.ConnectionState.Open)) {
|
|
|
- this.Adapter.UpdateCommand.Connection.Open();
|
|
|
- }
|
|
|
- try {
|
|
|
- int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
- this.Adapter.UpdateCommand.Connection.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
- public virtual int Update(
|
|
|
- string Lastname,
|
|
|
- string Firstname,
|
|
|
- string Patronymic,
|
|
|
- string PassportSeria,
|
|
|
- string PassportNum,
|
|
|
- string Login,
|
|
|
- string Password,
|
|
|
- int IDStaffsType,
|
|
|
- int Original_ID,
|
|
|
- string Original_Lastname,
|
|
|
- string Original_Firstname,
|
|
|
- string Original_Patronymic,
|
|
|
- string Original_PassportSeria,
|
|
|
- string Original_PassportNum,
|
|
|
- string Original_Login,
|
|
|
- string Original_Password,
|
|
|
- int Original_IDStaffsType) {
|
|
|
- return this.Update(Lastname, Firstname, Patronymic, PassportSeria, PassportNum, Login, Password, IDStaffsType, Original_ID, Original_Lastname, Original_Firstname, Original_Patronymic, Original_PassportSeria, Original_PassportNum, Original_Login, Original_Password, Original_IDStaffsType, Original_ID);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Represents the connection and commands used to retrieve and save data.
|
|
|
- ///</summary>
|
|
|
- [global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
|
- [global::System.ComponentModel.ToolboxItem(true)]
|
|
|
- [global::System.ComponentModel.DataObjectAttribute(true)]
|
|
|
- [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
|
|
- ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public partial class UsersTableAdapter : global::System.ComponentModel.Component {
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
-
|
|
|
- private bool _clearBeforeFill;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UsersTableAdapter() {
|
|
|
- this.ClearBeforeFill = true;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
|
- get {
|
|
|
- if ((this._adapter == null)) {
|
|
|
- this.InitAdapter();
|
|
|
- }
|
|
|
- return this._adapter;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
|
- get {
|
|
|
- if ((this._connection == null)) {
|
|
|
- this.InitConnection();
|
|
|
- }
|
|
|
- return this._connection;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._connection = value;
|
|
|
- if ((this.Adapter.InsertCommand != null)) {
|
|
|
- this.Adapter.InsertCommand.Connection = value;
|
|
|
- }
|
|
|
- if ((this.Adapter.DeleteCommand != null)) {
|
|
|
- this.Adapter.DeleteCommand.Connection = value;
|
|
|
- }
|
|
|
- if ((this.Adapter.UpdateCommand != null)) {
|
|
|
- this.Adapter.UpdateCommand.Connection = value;
|
|
|
- }
|
|
|
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
- if ((this.CommandCollection[i] != null)) {
|
|
|
- ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
|
- get {
|
|
|
- return this._transaction;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._transaction = value;
|
|
|
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
- this.CommandCollection[i].Transaction = this._transaction;
|
|
|
- }
|
|
|
- if (((this.Adapter != null)
|
|
|
- && (this.Adapter.DeleteCommand != null))) {
|
|
|
- this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
|
- }
|
|
|
- if (((this.Adapter != null)
|
|
|
- && (this.Adapter.InsertCommand != null))) {
|
|
|
- this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
|
- }
|
|
|
- if (((this.Adapter != null)
|
|
|
- && (this.Adapter.UpdateCommand != null))) {
|
|
|
- this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
|
- get {
|
|
|
- if ((this._commandCollection == null)) {
|
|
|
- this.InitCommandCollection();
|
|
|
- }
|
|
|
- return this._commandCollection;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public bool ClearBeforeFill {
|
|
|
- get {
|
|
|
- return this._clearBeforeFill;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._clearBeforeFill = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitAdapter() {
|
|
|
- this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
|
- global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
|
- tableMapping.SourceTable = "Table";
|
|
|
- tableMapping.DataSetTable = "Users";
|
|
|
- tableMapping.ColumnMappings.Add("ID", "ID");
|
|
|
- tableMapping.ColumnMappings.Add("Lastname", "Lastname");
|
|
|
- tableMapping.ColumnMappings.Add("Firstname", "Firstname");
|
|
|
- tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
|
|
|
- tableMapping.ColumnMappings.Add("PassportSeria", "PassportSeria");
|
|
|
- tableMapping.ColumnMappings.Add("PassportNum", "PassportNum");
|
|
|
- tableMapping.ColumnMappings.Add("IDUserType", "IDUserType");
|
|
|
- this._adapter.TableMappings.Add(tableMapping);
|
|
|
- this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._adapter.DeleteCommand.Connection = this.Connection;
|
|
|
- this._adapter.DeleteCommand.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))";
|
|
|
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PassportSeria", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportSeria", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PassportNum", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportNum", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDUserType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDUserType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._adapter.InsertCommand.Connection = this.Connection;
|
|
|
- this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Users] ([Lastname], [Firstname], [Patronymic], [PassportSeria], [PassportNum], [IDUserType]) VALUES (@Lastname, @Firstname, @Patronymic, @PassportSeria, @PassportNum, @IDUserType);
|
|
|
-SELECT ID, Lastname, Firstname, Patronymic, PassportSeria, PassportNum, IDUserType FROM Users WHERE (ID = SCOPE_IDENTITY())";
|
|
|
- this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PassportSeria", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportSeria", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PassportNum", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportNum", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDUserType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDUserType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._adapter.UpdateCommand.Connection = this.Connection;
|
|
|
- this._adapter.UpdateCommand.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));
|
|
|
-SELECT ID, Lastname, Firstname, Patronymic, PassportSeria, PassportNum, IDUserType FROM Users WHERE (ID = @ID)";
|
|
|
- this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PassportSeria", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportSeria", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PassportNum", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportNum", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDUserType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDUserType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PassportSeria", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportSeria", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PassportNum", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportNum", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDUserType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDUserType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitConnection() {
|
|
|
- this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
|
- this._connection.ConnectionString = global::ImpulseVision.Properties.Settings.Default.ImpulseVisionAppConnectionString;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitCommandCollection() {
|
|
|
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
|
- this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._commandCollection[0].Connection = this.Connection;
|
|
|
- this._commandCollection[0].CommandText = "SELECT ID, Lastname, Firstname, Patronymic, PassportSeria, PassportNum, IDUserTyp" +
|
|
|
- "e FROM dbo.Users";
|
|
|
- this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
|
- public virtual int Fill(ImpulseVisionAppDataSet1.UsersDataTable dataTable) {
|
|
|
- this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
- if ((this.ClearBeforeFill == true)) {
|
|
|
- dataTable.Clear();
|
|
|
- }
|
|
|
- int returnValue = this.Adapter.Fill(dataTable);
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
|
- public virtual ImpulseVisionAppDataSet1.UsersDataTable GetData() {
|
|
|
- this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
- ImpulseVisionAppDataSet1.UsersDataTable dataTable = new ImpulseVisionAppDataSet1.UsersDataTable();
|
|
|
- this.Adapter.Fill(dataTable);
|
|
|
- return dataTable;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(ImpulseVisionAppDataSet1.UsersDataTable dataTable) {
|
|
|
- return this.Adapter.Update(dataTable);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(ImpulseVisionAppDataSet1 dataSet) {
|
|
|
- return this.Adapter.Update(dataSet, "Users");
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
|
- return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
|
- dataRow});
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
|
- return this.Adapter.Update(dataRows);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
|
- public virtual int Delete(int Original_ID, string Original_Lastname, string Original_Firstname, string Original_Patronymic, string Original_PassportSeria, string Original_PassportNum, int Original_IDUserType) {
|
|
|
- this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
|
|
|
- if ((Original_Lastname == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Original_Lastname");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Lastname));
|
|
|
- }
|
|
|
- if ((Original_Firstname == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Original_Firstname");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Firstname));
|
|
|
- }
|
|
|
- if ((Original_Patronymic == null)) {
|
|
|
- this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
|
|
- this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
|
|
- this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Patronymic));
|
|
|
- }
|
|
|
- if ((Original_PassportSeria == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Original_PassportSeria");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_PassportSeria));
|
|
|
- }
|
|
|
- if ((Original_PassportNum == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Original_PassportNum");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_PassportNum));
|
|
|
- }
|
|
|
- this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_IDUserType));
|
|
|
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
|
- if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
- != global::System.Data.ConnectionState.Open)) {
|
|
|
- this.Adapter.DeleteCommand.Connection.Open();
|
|
|
- }
|
|
|
- try {
|
|
|
- int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
- this.Adapter.DeleteCommand.Connection.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
|
- public virtual int Insert(string Lastname, string Firstname, string Patronymic, string PassportSeria, string PassportNum, int IDUserType) {
|
|
|
- if ((Lastname == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Lastname");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Lastname));
|
|
|
- }
|
|
|
- if ((Firstname == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Firstname");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Firstname));
|
|
|
- }
|
|
|
- if ((Patronymic == null)) {
|
|
|
- this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
|
|
|
- }
|
|
|
- if ((PassportSeria == null)) {
|
|
|
- throw new global::System.ArgumentNullException("PassportSeria");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.InsertCommand.Parameters[3].Value = ((string)(PassportSeria));
|
|
|
- }
|
|
|
- if ((PassportNum == null)) {
|
|
|
- throw new global::System.ArgumentNullException("PassportNum");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.InsertCommand.Parameters[4].Value = ((string)(PassportNum));
|
|
|
- }
|
|
|
- this.Adapter.InsertCommand.Parameters[5].Value = ((int)(IDUserType));
|
|
|
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
|
- if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
- != global::System.Data.ConnectionState.Open)) {
|
|
|
- this.Adapter.InsertCommand.Connection.Open();
|
|
|
- }
|
|
|
- try {
|
|
|
- int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
- this.Adapter.InsertCommand.Connection.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
- public virtual int Update(string Lastname, string Firstname, string Patronymic, string PassportSeria, string PassportNum, int IDUserType, int Original_ID, string Original_Lastname, string Original_Firstname, string Original_Patronymic, string Original_PassportSeria, string Original_PassportNum, int Original_IDUserType, int ID) {
|
|
|
- if ((Lastname == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Lastname");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Lastname));
|
|
|
- }
|
|
|
- if ((Firstname == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Firstname");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Firstname));
|
|
|
- }
|
|
|
- if ((Patronymic == null)) {
|
|
|
- this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
|
|
|
- }
|
|
|
- if ((PassportSeria == null)) {
|
|
|
- throw new global::System.ArgumentNullException("PassportSeria");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(PassportSeria));
|
|
|
- }
|
|
|
- if ((PassportNum == null)) {
|
|
|
- throw new global::System.ArgumentNullException("PassportNum");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(PassportNum));
|
|
|
- }
|
|
|
- this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(IDUserType));
|
|
|
- this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
|
|
|
- if ((Original_Lastname == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Original_Lastname");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Lastname));
|
|
|
- }
|
|
|
- if ((Original_Firstname == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Original_Firstname");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Firstname));
|
|
|
- }
|
|
|
- if ((Original_Patronymic == null)) {
|
|
|
- this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
|
|
|
- this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
|
|
|
- this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Patronymic));
|
|
|
- }
|
|
|
- if ((Original_PassportSeria == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Original_PassportSeria");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_PassportSeria));
|
|
|
- }
|
|
|
- if ((Original_PassportNum == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Original_PassportNum");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_PassportNum));
|
|
|
- }
|
|
|
- this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_IDUserType));
|
|
|
- this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
|
|
|
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
|
- if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
- != global::System.Data.ConnectionState.Open)) {
|
|
|
- this.Adapter.UpdateCommand.Connection.Open();
|
|
|
- }
|
|
|
- try {
|
|
|
- int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
- this.Adapter.UpdateCommand.Connection.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
- public virtual int Update(string Lastname, string Firstname, string Patronymic, string PassportSeria, string PassportNum, int IDUserType, int Original_ID, string Original_Lastname, string Original_Firstname, string Original_Patronymic, string Original_PassportSeria, string Original_PassportNum, int Original_IDUserType) {
|
|
|
- return this.Update(Lastname, Firstname, Patronymic, PassportSeria, PassportNum, IDUserType, Original_ID, Original_Lastname, Original_Firstname, Original_Patronymic, Original_PassportSeria, Original_PassportNum, Original_IDUserType, Original_ID);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Represents the connection and commands used to retrieve and save data.
|
|
|
- ///</summary>
|
|
|
- [global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
|
- [global::System.ComponentModel.ToolboxItem(true)]
|
|
|
- [global::System.ComponentModel.DataObjectAttribute(true)]
|
|
|
- [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
|
|
- ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public partial class UserTrafficTableAdapter : global::System.ComponentModel.Component {
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
-
|
|
|
- private bool _clearBeforeFill;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UserTrafficTableAdapter() {
|
|
|
- this.ClearBeforeFill = true;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
|
- get {
|
|
|
- if ((this._adapter == null)) {
|
|
|
- this.InitAdapter();
|
|
|
- }
|
|
|
- return this._adapter;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
|
- get {
|
|
|
- if ((this._connection == null)) {
|
|
|
- this.InitConnection();
|
|
|
- }
|
|
|
- return this._connection;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._connection = value;
|
|
|
- if ((this.Adapter.InsertCommand != null)) {
|
|
|
- this.Adapter.InsertCommand.Connection = value;
|
|
|
- }
|
|
|
- if ((this.Adapter.DeleteCommand != null)) {
|
|
|
- this.Adapter.DeleteCommand.Connection = value;
|
|
|
- }
|
|
|
- if ((this.Adapter.UpdateCommand != null)) {
|
|
|
- this.Adapter.UpdateCommand.Connection = value;
|
|
|
- }
|
|
|
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
- if ((this.CommandCollection[i] != null)) {
|
|
|
- ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
|
- get {
|
|
|
- return this._transaction;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._transaction = value;
|
|
|
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
- this.CommandCollection[i].Transaction = this._transaction;
|
|
|
- }
|
|
|
- if (((this.Adapter != null)
|
|
|
- && (this.Adapter.DeleteCommand != null))) {
|
|
|
- this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
|
- }
|
|
|
- if (((this.Adapter != null)
|
|
|
- && (this.Adapter.InsertCommand != null))) {
|
|
|
- this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
|
- }
|
|
|
- if (((this.Adapter != null)
|
|
|
- && (this.Adapter.UpdateCommand != null))) {
|
|
|
- this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
|
- get {
|
|
|
- if ((this._commandCollection == null)) {
|
|
|
- this.InitCommandCollection();
|
|
|
- }
|
|
|
- return this._commandCollection;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public bool ClearBeforeFill {
|
|
|
- get {
|
|
|
- return this._clearBeforeFill;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._clearBeforeFill = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitAdapter() {
|
|
|
- this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
|
- global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
|
- tableMapping.SourceTable = "Table";
|
|
|
- tableMapping.DataSetTable = "UserTraffic";
|
|
|
- tableMapping.ColumnMappings.Add("ID", "ID");
|
|
|
- tableMapping.ColumnMappings.Add("UserID", "UserID");
|
|
|
- tableMapping.ColumnMappings.Add("TimeEntrance", "TimeEntrance");
|
|
|
- tableMapping.ColumnMappings.Add("TimeExit", "TimeExit");
|
|
|
- tableMapping.ColumnMappings.Add("Identification", "Identification");
|
|
|
- this._adapter.TableMappings.Add(tableMapping);
|
|
|
- this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._adapter.DeleteCommand.Connection = this.Connection;
|
|
|
- this._adapter.DeleteCommand.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))";
|
|
|
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TimeEntrance", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeEntrance", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TimeEntrance", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeEntrance", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TimeExit", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeExit", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TimeExit", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeExit", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Identification", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Identification", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._adapter.InsertCommand.Connection = this.Connection;
|
|
|
- this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[UserTraffic] ([UserID], [TimeEntrance], [TimeExit], [Identific" +
|
|
|
- "ation]) VALUES (@UserID, @TimeEntrance, @TimeExit, @Identification);\r\nSELECT ID," +
|
|
|
- " UserID, TimeEntrance, TimeExit, Identification FROM UserTraffic WHERE (ID = SCO" +
|
|
|
- "PE_IDENTITY())";
|
|
|
- this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TimeEntrance", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeEntrance", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TimeExit", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeExit", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Identification", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Identification", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._adapter.UpdateCommand.Connection = this.Connection;
|
|
|
- this._adapter.UpdateCommand.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));
|
|
|
-SELECT ID, UserID, TimeEntrance, TimeExit, Identification FROM UserTraffic WHERE (ID = @ID)";
|
|
|
- this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TimeEntrance", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeEntrance", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TimeExit", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeExit", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Identification", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Identification", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TimeEntrance", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeEntrance", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TimeEntrance", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeEntrance", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TimeExit", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeExit", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TimeExit", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeExit", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Identification", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Identification", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitConnection() {
|
|
|
- this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
|
- this._connection.ConnectionString = global::ImpulseVision.Properties.Settings.Default.ImpulseVisionAppConnectionString;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitCommandCollection() {
|
|
|
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
|
- this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._commandCollection[0].Connection = this.Connection;
|
|
|
- this._commandCollection[0].CommandText = "SELECT ID, UserID, TimeEntrance, TimeExit, Identification FROM dbo.UserTraffic";
|
|
|
- this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
|
- public virtual int Fill(ImpulseVisionAppDataSet1.UserTrafficDataTable dataTable) {
|
|
|
- this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
- if ((this.ClearBeforeFill == true)) {
|
|
|
- dataTable.Clear();
|
|
|
- }
|
|
|
- int returnValue = this.Adapter.Fill(dataTable);
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
|
- public virtual ImpulseVisionAppDataSet1.UserTrafficDataTable GetData() {
|
|
|
- this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
- ImpulseVisionAppDataSet1.UserTrafficDataTable dataTable = new ImpulseVisionAppDataSet1.UserTrafficDataTable();
|
|
|
- this.Adapter.Fill(dataTable);
|
|
|
- return dataTable;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(ImpulseVisionAppDataSet1.UserTrafficDataTable dataTable) {
|
|
|
- return this.Adapter.Update(dataTable);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(ImpulseVisionAppDataSet1 dataSet) {
|
|
|
- return this.Adapter.Update(dataSet, "UserTraffic");
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
|
- return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
|
- dataRow});
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
|
- return this.Adapter.Update(dataRows);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
|
- public virtual int Delete(int Original_ID, int Original_UserID, global::System.Nullable<global::System.DateTime> Original_TimeEntrance, global::System.Nullable<global::System.DateTime> Original_TimeExit, bool Original_Identification) {
|
|
|
- this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
|
|
|
- this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_UserID));
|
|
|
- if ((Original_TimeEntrance.HasValue == true)) {
|
|
|
- this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
|
|
|
- this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_TimeEntrance.Value));
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
|
|
|
- this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
|
- }
|
|
|
- if ((Original_TimeExit.HasValue == true)) {
|
|
|
- this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
|
|
|
- this.Adapter.DeleteCommand.Parameters[5].Value = ((System.DateTime)(Original_TimeExit.Value));
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
|
|
|
- this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
|
- }
|
|
|
- this.Adapter.DeleteCommand.Parameters[6].Value = ((bool)(Original_Identification));
|
|
|
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
|
- if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
- != global::System.Data.ConnectionState.Open)) {
|
|
|
- this.Adapter.DeleteCommand.Connection.Open();
|
|
|
- }
|
|
|
- try {
|
|
|
- int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
- this.Adapter.DeleteCommand.Connection.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
|
- public virtual int Insert(int UserID, global::System.Nullable<global::System.DateTime> TimeEntrance, global::System.Nullable<global::System.DateTime> TimeExit, bool Identification) {
|
|
|
- this.Adapter.InsertCommand.Parameters[0].Value = ((int)(UserID));
|
|
|
- if ((TimeEntrance.HasValue == true)) {
|
|
|
- this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(TimeEntrance.Value));
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
|
- }
|
|
|
- if ((TimeExit.HasValue == true)) {
|
|
|
- this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(TimeExit.Value));
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
|
- }
|
|
|
- this.Adapter.InsertCommand.Parameters[3].Value = ((bool)(Identification));
|
|
|
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
|
- if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
- != global::System.Data.ConnectionState.Open)) {
|
|
|
- this.Adapter.InsertCommand.Connection.Open();
|
|
|
- }
|
|
|
- try {
|
|
|
- int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
- this.Adapter.InsertCommand.Connection.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
- public virtual int Update(int UserID, global::System.Nullable<global::System.DateTime> TimeEntrance, global::System.Nullable<global::System.DateTime> TimeExit, bool Identification, int Original_ID, int Original_UserID, global::System.Nullable<global::System.DateTime> Original_TimeEntrance, global::System.Nullable<global::System.DateTime> Original_TimeExit, bool Original_Identification, int ID) {
|
|
|
- this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(UserID));
|
|
|
- if ((TimeEntrance.HasValue == true)) {
|
|
|
- this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(TimeEntrance.Value));
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
|
- }
|
|
|
- if ((TimeExit.HasValue == true)) {
|
|
|
- this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(TimeExit.Value));
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
|
- }
|
|
|
- this.Adapter.UpdateCommand.Parameters[3].Value = ((bool)(Identification));
|
|
|
- this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
|
|
|
- this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_UserID));
|
|
|
- if ((Original_TimeEntrance.HasValue == true)) {
|
|
|
- this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
|
|
|
- this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_TimeEntrance.Value));
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
|
|
|
- this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
|
- }
|
|
|
- if ((Original_TimeExit.HasValue == true)) {
|
|
|
- this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
|
|
|
- this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(Original_TimeExit.Value));
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
|
|
|
- this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
|
|
|
- }
|
|
|
- this.Adapter.UpdateCommand.Parameters[10].Value = ((bool)(Original_Identification));
|
|
|
- this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(ID));
|
|
|
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
|
- if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
- != global::System.Data.ConnectionState.Open)) {
|
|
|
- this.Adapter.UpdateCommand.Connection.Open();
|
|
|
- }
|
|
|
- try {
|
|
|
- int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
- this.Adapter.UpdateCommand.Connection.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
- public virtual int Update(int UserID, global::System.Nullable<global::System.DateTime> TimeEntrance, global::System.Nullable<global::System.DateTime> TimeExit, bool Identification, int Original_ID, int Original_UserID, global::System.Nullable<global::System.DateTime> Original_TimeEntrance, global::System.Nullable<global::System.DateTime> Original_TimeExit, bool Original_Identification) {
|
|
|
- return this.Update(UserID, TimeEntrance, TimeExit, Identification, Original_ID, Original_UserID, Original_TimeEntrance, Original_TimeExit, Original_Identification, Original_ID);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Represents the connection and commands used to retrieve and save data.
|
|
|
- ///</summary>
|
|
|
- [global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
|
- [global::System.ComponentModel.ToolboxItem(true)]
|
|
|
- [global::System.ComponentModel.DataObjectAttribute(true)]
|
|
|
- [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
|
|
- ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public partial class UserTypeTableAdapter : global::System.ComponentModel.Component {
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
-
|
|
|
- private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
-
|
|
|
- private bool _clearBeforeFill;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UserTypeTableAdapter() {
|
|
|
- this.ClearBeforeFill = true;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
|
- get {
|
|
|
- if ((this._adapter == null)) {
|
|
|
- this.InitAdapter();
|
|
|
- }
|
|
|
- return this._adapter;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
|
- get {
|
|
|
- if ((this._connection == null)) {
|
|
|
- this.InitConnection();
|
|
|
- }
|
|
|
- return this._connection;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._connection = value;
|
|
|
- if ((this.Adapter.InsertCommand != null)) {
|
|
|
- this.Adapter.InsertCommand.Connection = value;
|
|
|
- }
|
|
|
- if ((this.Adapter.DeleteCommand != null)) {
|
|
|
- this.Adapter.DeleteCommand.Connection = value;
|
|
|
- }
|
|
|
- if ((this.Adapter.UpdateCommand != null)) {
|
|
|
- this.Adapter.UpdateCommand.Connection = value;
|
|
|
- }
|
|
|
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
- if ((this.CommandCollection[i] != null)) {
|
|
|
- ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
|
- get {
|
|
|
- return this._transaction;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._transaction = value;
|
|
|
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
|
- this.CommandCollection[i].Transaction = this._transaction;
|
|
|
- }
|
|
|
- if (((this.Adapter != null)
|
|
|
- && (this.Adapter.DeleteCommand != null))) {
|
|
|
- this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
|
- }
|
|
|
- if (((this.Adapter != null)
|
|
|
- && (this.Adapter.InsertCommand != null))) {
|
|
|
- this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
|
- }
|
|
|
- if (((this.Adapter != null)
|
|
|
- && (this.Adapter.UpdateCommand != null))) {
|
|
|
- this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
|
- get {
|
|
|
- if ((this._commandCollection == null)) {
|
|
|
- this.InitCommandCollection();
|
|
|
- }
|
|
|
- return this._commandCollection;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public bool ClearBeforeFill {
|
|
|
- get {
|
|
|
- return this._clearBeforeFill;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._clearBeforeFill = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitAdapter() {
|
|
|
- this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
|
- global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
|
- tableMapping.SourceTable = "Table";
|
|
|
- tableMapping.DataSetTable = "UserType";
|
|
|
- tableMapping.ColumnMappings.Add("ID", "ID");
|
|
|
- tableMapping.ColumnMappings.Add("UserType", "UserType");
|
|
|
- this._adapter.TableMappings.Add(tableMapping);
|
|
|
- this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._adapter.DeleteCommand.Connection = this.Connection;
|
|
|
- this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[UserType] WHERE (([ID] = @Original_ID) AND ([UserType] = @Orig" +
|
|
|
- "inal_UserType))";
|
|
|
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._adapter.InsertCommand.Connection = this.Connection;
|
|
|
- this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[UserType] ([UserType]) VALUES (@UserType);\r\nSELECT ID, UserTyp" +
|
|
|
- "e FROM UserType WHERE (ID = SCOPE_IDENTITY())";
|
|
|
- this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._adapter.UpdateCommand.Connection = this.Connection;
|
|
|
- this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[UserType] SET [UserType] = @UserType WHERE (([ID] = @Original_ID) A" +
|
|
|
- "ND ([UserType] = @Original_UserType));\r\nSELECT ID, UserType FROM UserType WHERE " +
|
|
|
- "(ID = @ID)";
|
|
|
- this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
|
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitConnection() {
|
|
|
- this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
|
- this._connection.ConnectionString = global::ImpulseVision.Properties.Settings.Default.ImpulseVisionAppConnectionString;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private void InitCommandCollection() {
|
|
|
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
|
- this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
|
- this._commandCollection[0].Connection = this.Connection;
|
|
|
- this._commandCollection[0].CommandText = "SELECT ID, UserType FROM dbo.UserType";
|
|
|
- this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
|
- public virtual int Fill(ImpulseVisionAppDataSet1.UserTypeDataTable dataTable) {
|
|
|
- this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
- if ((this.ClearBeforeFill == true)) {
|
|
|
- dataTable.Clear();
|
|
|
- }
|
|
|
- int returnValue = this.Adapter.Fill(dataTable);
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
|
- public virtual ImpulseVisionAppDataSet1.UserTypeDataTable GetData() {
|
|
|
- this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
|
- ImpulseVisionAppDataSet1.UserTypeDataTable dataTable = new ImpulseVisionAppDataSet1.UserTypeDataTable();
|
|
|
- this.Adapter.Fill(dataTable);
|
|
|
- return dataTable;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(ImpulseVisionAppDataSet1.UserTypeDataTable dataTable) {
|
|
|
- return this.Adapter.Update(dataTable);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(ImpulseVisionAppDataSet1 dataSet) {
|
|
|
- return this.Adapter.Update(dataSet, "UserType");
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
|
- return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
|
- dataRow});
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
|
- return this.Adapter.Update(dataRows);
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
|
- public virtual int Delete(int Original_ID, string Original_UserType) {
|
|
|
- this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
|
|
|
- if ((Original_UserType == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Original_UserType");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_UserType));
|
|
|
- }
|
|
|
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
|
- if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
- != global::System.Data.ConnectionState.Open)) {
|
|
|
- this.Adapter.DeleteCommand.Connection.Open();
|
|
|
- }
|
|
|
- try {
|
|
|
- int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
- this.Adapter.DeleteCommand.Connection.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
|
- public virtual int Insert(string UserType) {
|
|
|
- if ((UserType == null)) {
|
|
|
- throw new global::System.ArgumentNullException("UserType");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.InsertCommand.Parameters[0].Value = ((string)(UserType));
|
|
|
- }
|
|
|
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
|
- if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
- != global::System.Data.ConnectionState.Open)) {
|
|
|
- this.Adapter.InsertCommand.Connection.Open();
|
|
|
- }
|
|
|
- try {
|
|
|
- int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
- this.Adapter.InsertCommand.Connection.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
- public virtual int Update(string UserType, int Original_ID, string Original_UserType, int ID) {
|
|
|
- if ((UserType == null)) {
|
|
|
- throw new global::System.ArgumentNullException("UserType");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(UserType));
|
|
|
- }
|
|
|
- this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_ID));
|
|
|
- if ((Original_UserType == null)) {
|
|
|
- throw new global::System.ArgumentNullException("Original_UserType");
|
|
|
- }
|
|
|
- else {
|
|
|
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_UserType));
|
|
|
- }
|
|
|
- this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ID));
|
|
|
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
|
- if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
|
- != global::System.Data.ConnectionState.Open)) {
|
|
|
- this.Adapter.UpdateCommand.Connection.Open();
|
|
|
- }
|
|
|
- try {
|
|
|
- int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
|
- return returnValue;
|
|
|
- }
|
|
|
- finally {
|
|
|
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
|
- this.Adapter.UpdateCommand.Connection.Close();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
|
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
|
- public virtual int Update(string UserType, int Original_ID, string Original_UserType) {
|
|
|
- return this.Update(UserType, Original_ID, Original_UserType, Original_ID);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
|
|
|
- ///</summary>
|
|
|
- [global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
|
- [global::System.ComponentModel.ToolboxItem(true)]
|
|
|
- [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
|
|
|
- "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
|
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
|
|
|
- public partial class TableAdapterManager : global::System.ComponentModel.Component {
|
|
|
-
|
|
|
- private UpdateOrderOption _updateOrder;
|
|
|
-
|
|
|
- private FaceImagesTableAdapter _faceImagesTableAdapter;
|
|
|
-
|
|
|
- private HistoryLoginTableAdapter _historyLoginTableAdapter;
|
|
|
-
|
|
|
- private StaffsTableAdapter _staffsTableAdapter;
|
|
|
-
|
|
|
- private UsersTableAdapter _usersTableAdapter;
|
|
|
-
|
|
|
- private UserTrafficTableAdapter _userTrafficTableAdapter;
|
|
|
-
|
|
|
- private UserTypeTableAdapter _userTypeTableAdapter;
|
|
|
-
|
|
|
- private bool _backupDataSetBeforeUpdate;
|
|
|
-
|
|
|
- private global::System.Data.IDbConnection _connection;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public UpdateOrderOption UpdateOrder {
|
|
|
- get {
|
|
|
- return this._updateOrder;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._updateOrder = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
|
- "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
|
- "a", "System.Drawing.Design.UITypeEditor")]
|
|
|
- public FaceImagesTableAdapter FaceImagesTableAdapter {
|
|
|
- get {
|
|
|
- return this._faceImagesTableAdapter;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._faceImagesTableAdapter = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
|
- "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
|
- "a", "System.Drawing.Design.UITypeEditor")]
|
|
|
- public HistoryLoginTableAdapter HistoryLoginTableAdapter {
|
|
|
- get {
|
|
|
- return this._historyLoginTableAdapter;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._historyLoginTableAdapter = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
|
- "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
|
- "a", "System.Drawing.Design.UITypeEditor")]
|
|
|
- public StaffsTableAdapter StaffsTableAdapter {
|
|
|
- get {
|
|
|
- return this._staffsTableAdapter;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._staffsTableAdapter = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
|
- "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
|
- "a", "System.Drawing.Design.UITypeEditor")]
|
|
|
- public UsersTableAdapter UsersTableAdapter {
|
|
|
- get {
|
|
|
- return this._usersTableAdapter;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._usersTableAdapter = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
|
- "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
|
- "a", "System.Drawing.Design.UITypeEditor")]
|
|
|
- public UserTrafficTableAdapter UserTrafficTableAdapter {
|
|
|
- get {
|
|
|
- return this._userTrafficTableAdapter;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._userTrafficTableAdapter = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
|
- "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
|
- "a", "System.Drawing.Design.UITypeEditor")]
|
|
|
- public UserTypeTableAdapter UserTypeTableAdapter {
|
|
|
- get {
|
|
|
- return this._userTypeTableAdapter;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._userTypeTableAdapter = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public bool BackupDataSetBeforeUpdate {
|
|
|
- get {
|
|
|
- return this._backupDataSetBeforeUpdate;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._backupDataSetBeforeUpdate = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Browsable(false)]
|
|
|
- public global::System.Data.IDbConnection Connection {
|
|
|
- get {
|
|
|
- if ((this._connection != null)) {
|
|
|
- return this._connection;
|
|
|
- }
|
|
|
- if (((this._faceImagesTableAdapter != null)
|
|
|
- && (this._faceImagesTableAdapter.Connection != null))) {
|
|
|
- return this._faceImagesTableAdapter.Connection;
|
|
|
- }
|
|
|
- if (((this._historyLoginTableAdapter != null)
|
|
|
- && (this._historyLoginTableAdapter.Connection != null))) {
|
|
|
- return this._historyLoginTableAdapter.Connection;
|
|
|
- }
|
|
|
- if (((this._staffsTableAdapter != null)
|
|
|
- && (this._staffsTableAdapter.Connection != null))) {
|
|
|
- return this._staffsTableAdapter.Connection;
|
|
|
- }
|
|
|
- if (((this._usersTableAdapter != null)
|
|
|
- && (this._usersTableAdapter.Connection != null))) {
|
|
|
- return this._usersTableAdapter.Connection;
|
|
|
- }
|
|
|
- if (((this._userTrafficTableAdapter != null)
|
|
|
- && (this._userTrafficTableAdapter.Connection != null))) {
|
|
|
- return this._userTrafficTableAdapter.Connection;
|
|
|
- }
|
|
|
- if (((this._userTypeTableAdapter != null)
|
|
|
- && (this._userTypeTableAdapter.Connection != null))) {
|
|
|
- return this._userTypeTableAdapter.Connection;
|
|
|
- }
|
|
|
- return null;
|
|
|
- }
|
|
|
- set {
|
|
|
- this._connection = value;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- [global::System.ComponentModel.Browsable(false)]
|
|
|
- public int TableAdapterInstanceCount {
|
|
|
- get {
|
|
|
- int count = 0;
|
|
|
- if ((this._faceImagesTableAdapter != null)) {
|
|
|
- count = (count + 1);
|
|
|
- }
|
|
|
- if ((this._historyLoginTableAdapter != null)) {
|
|
|
- count = (count + 1);
|
|
|
- }
|
|
|
- if ((this._staffsTableAdapter != null)) {
|
|
|
- count = (count + 1);
|
|
|
- }
|
|
|
- if ((this._usersTableAdapter != null)) {
|
|
|
- count = (count + 1);
|
|
|
- }
|
|
|
- if ((this._userTrafficTableAdapter != null)) {
|
|
|
- count = (count + 1);
|
|
|
- }
|
|
|
- if ((this._userTypeTableAdapter != null)) {
|
|
|
- count = (count + 1);
|
|
|
- }
|
|
|
- return count;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Update rows in top-down order.
|
|
|
- ///</summary>
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private int UpdateUpdatedRows(ImpulseVisionAppDataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
|
|
|
- int result = 0;
|
|
|
- if ((this._userTypeTableAdapter != null)) {
|
|
|
- global::System.Data.DataRow[] updatedRows = dataSet.UserType.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
|
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
|
- if (((updatedRows != null)
|
|
|
- && (0 < updatedRows.Length))) {
|
|
|
- result = (result + this._userTypeTableAdapter.Update(updatedRows));
|
|
|
- allChangedRows.AddRange(updatedRows);
|
|
|
- }
|
|
|
- }
|
|
|
- if ((this._staffsTableAdapter != null)) {
|
|
|
- global::System.Data.DataRow[] updatedRows = dataSet.Staffs.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
|
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
|
- if (((updatedRows != null)
|
|
|
- && (0 < updatedRows.Length))) {
|
|
|
- result = (result + this._staffsTableAdapter.Update(updatedRows));
|
|
|
- allChangedRows.AddRange(updatedRows);
|
|
|
- }
|
|
|
- }
|
|
|
- if ((this._usersTableAdapter != null)) {
|
|
|
- global::System.Data.DataRow[] updatedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
|
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
|
- if (((updatedRows != null)
|
|
|
- && (0 < updatedRows.Length))) {
|
|
|
- result = (result + this._usersTableAdapter.Update(updatedRows));
|
|
|
- allChangedRows.AddRange(updatedRows);
|
|
|
- }
|
|
|
- }
|
|
|
- if ((this._faceImagesTableAdapter != null)) {
|
|
|
- global::System.Data.DataRow[] updatedRows = dataSet.FaceImages.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
|
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
|
- if (((updatedRows != null)
|
|
|
- && (0 < updatedRows.Length))) {
|
|
|
- result = (result + this._faceImagesTableAdapter.Update(updatedRows));
|
|
|
- allChangedRows.AddRange(updatedRows);
|
|
|
- }
|
|
|
- }
|
|
|
- if ((this._historyLoginTableAdapter != null)) {
|
|
|
- global::System.Data.DataRow[] updatedRows = dataSet.HistoryLogin.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
|
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
|
- if (((updatedRows != null)
|
|
|
- && (0 < updatedRows.Length))) {
|
|
|
- result = (result + this._historyLoginTableAdapter.Update(updatedRows));
|
|
|
- allChangedRows.AddRange(updatedRows);
|
|
|
- }
|
|
|
- }
|
|
|
- if ((this._userTrafficTableAdapter != null)) {
|
|
|
- global::System.Data.DataRow[] updatedRows = dataSet.UserTraffic.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
|
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
|
- if (((updatedRows != null)
|
|
|
- && (0 < updatedRows.Length))) {
|
|
|
- result = (result + this._userTrafficTableAdapter.Update(updatedRows));
|
|
|
- allChangedRows.AddRange(updatedRows);
|
|
|
- }
|
|
|
- }
|
|
|
- return result;
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Insert rows in top-down order.
|
|
|
- ///</summary>
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private int UpdateInsertedRows(ImpulseVisionAppDataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
|
|
|
- int result = 0;
|
|
|
- if ((this._userTypeTableAdapter != null)) {
|
|
|
- global::System.Data.DataRow[] addedRows = dataSet.UserType.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
|
- if (((addedRows != null)
|
|
|
- && (0 < addedRows.Length))) {
|
|
|
- result = (result + this._userTypeTableAdapter.Update(addedRows));
|
|
|
- allAddedRows.AddRange(addedRows);
|
|
|
- }
|
|
|
- }
|
|
|
- if ((this._staffsTableAdapter != null)) {
|
|
|
- global::System.Data.DataRow[] addedRows = dataSet.Staffs.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
|
- if (((addedRows != null)
|
|
|
- && (0 < addedRows.Length))) {
|
|
|
- result = (result + this._staffsTableAdapter.Update(addedRows));
|
|
|
- allAddedRows.AddRange(addedRows);
|
|
|
- }
|
|
|
- }
|
|
|
- if ((this._usersTableAdapter != null)) {
|
|
|
- global::System.Data.DataRow[] addedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
|
- if (((addedRows != null)
|
|
|
- && (0 < addedRows.Length))) {
|
|
|
- result = (result + this._usersTableAdapter.Update(addedRows));
|
|
|
- allAddedRows.AddRange(addedRows);
|
|
|
- }
|
|
|
- }
|
|
|
- if ((this._faceImagesTableAdapter != null)) {
|
|
|
- global::System.Data.DataRow[] addedRows = dataSet.FaceImages.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
|
- if (((addedRows != null)
|
|
|
- && (0 < addedRows.Length))) {
|
|
|
- result = (result + this._faceImagesTableAdapter.Update(addedRows));
|
|
|
- allAddedRows.AddRange(addedRows);
|
|
|
- }
|
|
|
- }
|
|
|
- if ((this._historyLoginTableAdapter != null)) {
|
|
|
- global::System.Data.DataRow[] addedRows = dataSet.HistoryLogin.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
|
- if (((addedRows != null)
|
|
|
- && (0 < addedRows.Length))) {
|
|
|
- result = (result + this._historyLoginTableAdapter.Update(addedRows));
|
|
|
- allAddedRows.AddRange(addedRows);
|
|
|
- }
|
|
|
- }
|
|
|
- if ((this._userTrafficTableAdapter != null)) {
|
|
|
- global::System.Data.DataRow[] addedRows = dataSet.UserTraffic.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
|
- if (((addedRows != null)
|
|
|
- && (0 < addedRows.Length))) {
|
|
|
- result = (result + this._userTrafficTableAdapter.Update(addedRows));
|
|
|
- allAddedRows.AddRange(addedRows);
|
|
|
- }
|
|
|
- }
|
|
|
- return result;
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Delete rows in bottom-up order.
|
|
|
- ///</summary>
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private int UpdateDeletedRows(ImpulseVisionAppDataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
|
|
|
- int result = 0;
|
|
|
- if ((this._userTrafficTableAdapter != null)) {
|
|
|
- global::System.Data.DataRow[] deletedRows = dataSet.UserTraffic.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
|
- if (((deletedRows != null)
|
|
|
- && (0 < deletedRows.Length))) {
|
|
|
- result = (result + this._userTrafficTableAdapter.Update(deletedRows));
|
|
|
- allChangedRows.AddRange(deletedRows);
|
|
|
- }
|
|
|
- }
|
|
|
- if ((this._historyLoginTableAdapter != null)) {
|
|
|
- global::System.Data.DataRow[] deletedRows = dataSet.HistoryLogin.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
|
- if (((deletedRows != null)
|
|
|
- && (0 < deletedRows.Length))) {
|
|
|
- result = (result + this._historyLoginTableAdapter.Update(deletedRows));
|
|
|
- allChangedRows.AddRange(deletedRows);
|
|
|
- }
|
|
|
- }
|
|
|
- if ((this._faceImagesTableAdapter != null)) {
|
|
|
- global::System.Data.DataRow[] deletedRows = dataSet.FaceImages.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
|
- if (((deletedRows != null)
|
|
|
- && (0 < deletedRows.Length))) {
|
|
|
- result = (result + this._faceImagesTableAdapter.Update(deletedRows));
|
|
|
- allChangedRows.AddRange(deletedRows);
|
|
|
- }
|
|
|
- }
|
|
|
- if ((this._usersTableAdapter != null)) {
|
|
|
- global::System.Data.DataRow[] deletedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
|
- if (((deletedRows != null)
|
|
|
- && (0 < deletedRows.Length))) {
|
|
|
- result = (result + this._usersTableAdapter.Update(deletedRows));
|
|
|
- allChangedRows.AddRange(deletedRows);
|
|
|
- }
|
|
|
- }
|
|
|
- if ((this._staffsTableAdapter != null)) {
|
|
|
- global::System.Data.DataRow[] deletedRows = dataSet.Staffs.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
|
- if (((deletedRows != null)
|
|
|
- && (0 < deletedRows.Length))) {
|
|
|
- result = (result + this._staffsTableAdapter.Update(deletedRows));
|
|
|
- allChangedRows.AddRange(deletedRows);
|
|
|
- }
|
|
|
- }
|
|
|
- if ((this._userTypeTableAdapter != null)) {
|
|
|
- global::System.Data.DataRow[] deletedRows = dataSet.UserType.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
|
- if (((deletedRows != null)
|
|
|
- && (0 < deletedRows.Length))) {
|
|
|
- result = (result + this._userTypeTableAdapter.Update(deletedRows));
|
|
|
- allChangedRows.AddRange(deletedRows);
|
|
|
- }
|
|
|
- }
|
|
|
- return result;
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
|
|
|
- ///</summary>
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
|
|
|
- if (((updatedRows == null)
|
|
|
- || (updatedRows.Length < 1))) {
|
|
|
- return updatedRows;
|
|
|
- }
|
|
|
- if (((allAddedRows == null)
|
|
|
- || (allAddedRows.Count < 1))) {
|
|
|
- return updatedRows;
|
|
|
- }
|
|
|
- global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
|
|
|
- for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
|
|
|
- global::System.Data.DataRow row = updatedRows[i];
|
|
|
- if ((allAddedRows.Contains(row) == false)) {
|
|
|
- realUpdatedRows.Add(row);
|
|
|
- }
|
|
|
- }
|
|
|
- return realUpdatedRows.ToArray();
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Update all changes to the dataset.
|
|
|
- ///</summary>
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public virtual int UpdateAll(ImpulseVisionAppDataSet1 dataSet) {
|
|
|
- if ((dataSet == null)) {
|
|
|
- throw new global::System.ArgumentNullException("dataSet");
|
|
|
- }
|
|
|
- if ((dataSet.HasChanges() == false)) {
|
|
|
- return 0;
|
|
|
- }
|
|
|
- if (((this._faceImagesTableAdapter != null)
|
|
|
- && (this.MatchTableAdapterConnection(this._faceImagesTableAdapter.Connection) == false))) {
|
|
|
- throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
|
|
- "tring.");
|
|
|
- }
|
|
|
- if (((this._historyLoginTableAdapter != null)
|
|
|
- && (this.MatchTableAdapterConnection(this._historyLoginTableAdapter.Connection) == false))) {
|
|
|
- throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
|
|
- "tring.");
|
|
|
- }
|
|
|
- if (((this._staffsTableAdapter != null)
|
|
|
- && (this.MatchTableAdapterConnection(this._staffsTableAdapter.Connection) == false))) {
|
|
|
- throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
|
|
- "tring.");
|
|
|
- }
|
|
|
- if (((this._usersTableAdapter != null)
|
|
|
- && (this.MatchTableAdapterConnection(this._usersTableAdapter.Connection) == false))) {
|
|
|
- throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
|
|
- "tring.");
|
|
|
- }
|
|
|
- if (((this._userTrafficTableAdapter != null)
|
|
|
- && (this.MatchTableAdapterConnection(this._userTrafficTableAdapter.Connection) == false))) {
|
|
|
- throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
|
|
- "tring.");
|
|
|
- }
|
|
|
- if (((this._userTypeTableAdapter != null)
|
|
|
- && (this.MatchTableAdapterConnection(this._userTypeTableAdapter.Connection) == false))) {
|
|
|
- throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
|
|
- "tring.");
|
|
|
- }
|
|
|
- global::System.Data.IDbConnection workConnection = this.Connection;
|
|
|
- if ((workConnection == null)) {
|
|
|
- throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
|
|
|
- "ger TableAdapter property to a valid TableAdapter instance.");
|
|
|
- }
|
|
|
- bool workConnOpened = false;
|
|
|
- if (((workConnection.State & global::System.Data.ConnectionState.Broken)
|
|
|
- == global::System.Data.ConnectionState.Broken)) {
|
|
|
- workConnection.Close();
|
|
|
- }
|
|
|
- if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
|
|
|
- workConnection.Open();
|
|
|
- workConnOpened = true;
|
|
|
- }
|
|
|
- global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
|
|
|
- if ((workTransaction == null)) {
|
|
|
- throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" +
|
|
|
- "ctions or the current state is not allowing the transaction to begin.");
|
|
|
- }
|
|
|
- global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
|
|
|
- global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
|
|
|
- global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
|
|
|
- global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
|
|
|
- int result = 0;
|
|
|
- global::System.Data.DataSet backupDataSet = null;
|
|
|
- if (this.BackupDataSetBeforeUpdate) {
|
|
|
- backupDataSet = new global::System.Data.DataSet();
|
|
|
- backupDataSet.Merge(dataSet);
|
|
|
- }
|
|
|
- try {
|
|
|
- // ---- Prepare for update -----------
|
|
|
- //
|
|
|
- if ((this._faceImagesTableAdapter != null)) {
|
|
|
- revertConnections.Add(this._faceImagesTableAdapter, this._faceImagesTableAdapter.Connection);
|
|
|
- this._faceImagesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
|
- this._faceImagesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
|
- if (this._faceImagesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
|
- this._faceImagesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
|
- adaptersWithAcceptChangesDuringUpdate.Add(this._faceImagesTableAdapter.Adapter);
|
|
|
- }
|
|
|
- }
|
|
|
- if ((this._historyLoginTableAdapter != null)) {
|
|
|
- revertConnections.Add(this._historyLoginTableAdapter, this._historyLoginTableAdapter.Connection);
|
|
|
- this._historyLoginTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
|
- this._historyLoginTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
|
- if (this._historyLoginTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
|
- this._historyLoginTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
|
- adaptersWithAcceptChangesDuringUpdate.Add(this._historyLoginTableAdapter.Adapter);
|
|
|
- }
|
|
|
- }
|
|
|
- if ((this._staffsTableAdapter != null)) {
|
|
|
- revertConnections.Add(this._staffsTableAdapter, this._staffsTableAdapter.Connection);
|
|
|
- this._staffsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
|
- this._staffsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
|
- if (this._staffsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
|
- this._staffsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
|
- adaptersWithAcceptChangesDuringUpdate.Add(this._staffsTableAdapter.Adapter);
|
|
|
- }
|
|
|
- }
|
|
|
- if ((this._usersTableAdapter != null)) {
|
|
|
- revertConnections.Add(this._usersTableAdapter, this._usersTableAdapter.Connection);
|
|
|
- this._usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
|
- this._usersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
|
- if (this._usersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
|
- this._usersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
|
- adaptersWithAcceptChangesDuringUpdate.Add(this._usersTableAdapter.Adapter);
|
|
|
- }
|
|
|
- }
|
|
|
- if ((this._userTrafficTableAdapter != null)) {
|
|
|
- revertConnections.Add(this._userTrafficTableAdapter, this._userTrafficTableAdapter.Connection);
|
|
|
- this._userTrafficTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
|
- this._userTrafficTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
|
- if (this._userTrafficTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
|
- this._userTrafficTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
|
- adaptersWithAcceptChangesDuringUpdate.Add(this._userTrafficTableAdapter.Adapter);
|
|
|
- }
|
|
|
- }
|
|
|
- if ((this._userTypeTableAdapter != null)) {
|
|
|
- revertConnections.Add(this._userTypeTableAdapter, this._userTypeTableAdapter.Connection);
|
|
|
- this._userTypeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
|
- this._userTypeTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
|
- if (this._userTypeTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
|
- this._userTypeTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
|
- adaptersWithAcceptChangesDuringUpdate.Add(this._userTypeTableAdapter.Adapter);
|
|
|
- }
|
|
|
- }
|
|
|
- //
|
|
|
- //---- Perform updates -----------
|
|
|
- //
|
|
|
- if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
|
|
|
- result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
|
|
|
- result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
|
|
|
- }
|
|
|
- else {
|
|
|
- result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
|
|
|
- result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
|
|
|
- }
|
|
|
- result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
|
|
|
- //
|
|
|
- //---- Commit updates -----------
|
|
|
- //
|
|
|
- workTransaction.Commit();
|
|
|
- if ((0 < allAddedRows.Count)) {
|
|
|
- global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
|
|
|
- allAddedRows.CopyTo(rows);
|
|
|
- for (int i = 0; (i < rows.Length); i = (i + 1)) {
|
|
|
- global::System.Data.DataRow row = rows[i];
|
|
|
- row.AcceptChanges();
|
|
|
- }
|
|
|
- }
|
|
|
- if ((0 < allChangedRows.Count)) {
|
|
|
- global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
|
|
|
- allChangedRows.CopyTo(rows);
|
|
|
- for (int i = 0; (i < rows.Length); i = (i + 1)) {
|
|
|
- global::System.Data.DataRow row = rows[i];
|
|
|
- row.AcceptChanges();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- catch (global::System.Exception ex) {
|
|
|
- workTransaction.Rollback();
|
|
|
- // ---- Restore the dataset -----------
|
|
|
- if (this.BackupDataSetBeforeUpdate) {
|
|
|
- global::System.Diagnostics.Debug.Assert((backupDataSet != null));
|
|
|
- dataSet.Clear();
|
|
|
- dataSet.Merge(backupDataSet);
|
|
|
- }
|
|
|
- else {
|
|
|
- if ((0 < allAddedRows.Count)) {
|
|
|
- global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
|
|
|
- allAddedRows.CopyTo(rows);
|
|
|
- for (int i = 0; (i < rows.Length); i = (i + 1)) {
|
|
|
- global::System.Data.DataRow row = rows[i];
|
|
|
- row.AcceptChanges();
|
|
|
- row.SetAdded();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- throw ex;
|
|
|
- }
|
|
|
- finally {
|
|
|
- if (workConnOpened) {
|
|
|
- workConnection.Close();
|
|
|
- }
|
|
|
- if ((this._faceImagesTableAdapter != null)) {
|
|
|
- this._faceImagesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._faceImagesTableAdapter]));
|
|
|
- this._faceImagesTableAdapter.Transaction = null;
|
|
|
- }
|
|
|
- if ((this._historyLoginTableAdapter != null)) {
|
|
|
- this._historyLoginTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._historyLoginTableAdapter]));
|
|
|
- this._historyLoginTableAdapter.Transaction = null;
|
|
|
- }
|
|
|
- if ((this._staffsTableAdapter != null)) {
|
|
|
- this._staffsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._staffsTableAdapter]));
|
|
|
- this._staffsTableAdapter.Transaction = null;
|
|
|
- }
|
|
|
- if ((this._usersTableAdapter != null)) {
|
|
|
- this._usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._usersTableAdapter]));
|
|
|
- this._usersTableAdapter.Transaction = null;
|
|
|
- }
|
|
|
- if ((this._userTrafficTableAdapter != null)) {
|
|
|
- this._userTrafficTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._userTrafficTableAdapter]));
|
|
|
- this._userTrafficTableAdapter.Transaction = null;
|
|
|
- }
|
|
|
- if ((this._userTypeTableAdapter != null)) {
|
|
|
- this._userTypeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._userTypeTableAdapter]));
|
|
|
- this._userTypeTableAdapter.Transaction = null;
|
|
|
- }
|
|
|
- if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
|
|
|
- global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
|
|
|
- adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
|
|
|
- for (int i = 0; (i < adapters.Length); i = (i + 1)) {
|
|
|
- global::System.Data.Common.DataAdapter adapter = adapters[i];
|
|
|
- adapter.AcceptChangesDuringUpdate = true;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- return result;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
|
|
|
- global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
|
|
|
- if ((this._connection != null)) {
|
|
|
- return true;
|
|
|
- }
|
|
|
- if (((this.Connection == null)
|
|
|
- || (inputConnection == null))) {
|
|
|
- return true;
|
|
|
- }
|
|
|
- if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
|
|
|
- return true;
|
|
|
- }
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Update Order Option
|
|
|
- ///</summary>
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public enum UpdateOrderOption {
|
|
|
-
|
|
|
- InsertUpdateDelete = 0,
|
|
|
-
|
|
|
- UpdateInsertDelete = 1,
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- ///Used to sort self-referenced table's rows
|
|
|
- ///</summary>
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
|
|
|
-
|
|
|
- private global::System.Data.DataRelation _relation;
|
|
|
-
|
|
|
- private int _childFirst;
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
|
|
|
- this._relation = relation;
|
|
|
- if (childFirst) {
|
|
|
- this._childFirst = -1;
|
|
|
- }
|
|
|
- else {
|
|
|
- this._childFirst = 1;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
|
|
|
- global::System.Diagnostics.Debug.Assert((row != null));
|
|
|
- global::System.Data.DataRow root = row;
|
|
|
- distance = 0;
|
|
|
-
|
|
|
- global::System.Collections.Generic.IDictionary<global::System.Data.DataRow, global::System.Data.DataRow> traversedRows = new global::System.Collections.Generic.Dictionary<global::System.Data.DataRow, global::System.Data.DataRow>();
|
|
|
- traversedRows[row] = row;
|
|
|
-
|
|
|
- global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
|
|
|
- for (
|
|
|
- ; ((parent != null)
|
|
|
- && (traversedRows.ContainsKey(parent) == false));
|
|
|
- ) {
|
|
|
- distance = (distance + 1);
|
|
|
- root = parent;
|
|
|
- traversedRows[parent] = parent;
|
|
|
- parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
|
|
|
- }
|
|
|
-
|
|
|
- if ((distance == 0)) {
|
|
|
- traversedRows.Clear();
|
|
|
- traversedRows[row] = row;
|
|
|
- parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
|
|
|
- for (
|
|
|
- ; ((parent != null)
|
|
|
- && (traversedRows.ContainsKey(parent) == false));
|
|
|
- ) {
|
|
|
- distance = (distance + 1);
|
|
|
- root = parent;
|
|
|
- traversedRows[parent] = parent;
|
|
|
- parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- return root;
|
|
|
- }
|
|
|
-
|
|
|
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
|
|
- public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
|
|
|
- if (object.ReferenceEquals(row1, row2)) {
|
|
|
- return 0;
|
|
|
- }
|
|
|
- if ((row1 == null)) {
|
|
|
- return -1;
|
|
|
- }
|
|
|
- if ((row2 == null)) {
|
|
|
- return 1;
|
|
|
- }
|
|
|
-
|
|
|
- int distance1 = 0;
|
|
|
- global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
|
|
|
-
|
|
|
- int distance2 = 0;
|
|
|
- global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
|
|
|
-
|
|
|
- if (object.ReferenceEquals(root1, root2)) {
|
|
|
- return (this._childFirst * distance1.CompareTo(distance2));
|
|
|
- }
|
|
|
- else {
|
|
|
- global::System.Diagnostics.Debug.Assert(((root1.Table != null)
|
|
|
- && (root2.Table != null)));
|
|
|
- if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
|
|
|
- return -1;
|
|
|
- }
|
|
|
- else {
|
|
|
- return 1;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-#pragma warning restore 1591
|