⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userdata.cs

📁 会员管理系统
💻 CS
📖 第 1 页 / 共 4 页
字号:
                            UserID})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                UserAddInfoDataTable cln = ((UserAddInfoDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new UserAddInfoDataTable();
            }
            
            internal void InitVars() {
                this.columnUserID = this.Columns["UserID"];
                this.columnUserName = this.Columns["UserName"];
                this.columnSex = this.Columns["Sex"];
                this.columnBirthday = this.Columns["Birthday"];
                this.columnRelation = this.Columns["Relation"];
                this.columnBookShelfID = this.Columns["BookShelfID"];
                this.columnReamrk = this.Columns["Reamrk"];
            }
            
            private void InitClass() {
                this.columnUserID = new DataColumn("UserID", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnUserID);
                this.columnUserName = new DataColumn("UserName", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnUserName);
                this.columnSex = new DataColumn("Sex", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnSex);
                this.columnBirthday = new DataColumn("Birthday", typeof(System.DateTime), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnBirthday);
                this.columnRelation = new DataColumn("Relation", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnRelation);
                this.columnBookShelfID = new DataColumn("BookShelfID", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnBookShelfID);
                this.columnReamrk = new DataColumn("Reamrk", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnReamrk);
                this.Constraints.Add(new UniqueConstraint("UserDataKey2", new DataColumn[] {
                                this.columnUserID}, true));
                this.columnUserID.AllowDBNull = false;
                this.columnUserID.Unique = true;
            }
            
            public UserAddInfoRow NewUserAddInfoRow() {
                return ((UserAddInfoRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new UserAddInfoRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(UserAddInfoRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.UserAddInfoRowChanged != null)) {
                    this.UserAddInfoRowChanged(this, new UserAddInfoRowChangeEvent(((UserAddInfoRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.UserAddInfoRowChanging != null)) {
                    this.UserAddInfoRowChanging(this, new UserAddInfoRowChangeEvent(((UserAddInfoRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.UserAddInfoRowDeleted != null)) {
                    this.UserAddInfoRowDeleted(this, new UserAddInfoRowChangeEvent(((UserAddInfoRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.UserAddInfoRowDeleting != null)) {
                    this.UserAddInfoRowDeleting(this, new UserAddInfoRowChangeEvent(((UserAddInfoRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveUserAddInfoRow(UserAddInfoRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class UserAddInfoRow : DataRow {
            
            private UserAddInfoDataTable tableUserAddInfo;
            
            internal UserAddInfoRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableUserAddInfo = ((UserAddInfoDataTable)(this.Table));
            }
            
            public string UserID {
                get {
                    return ((string)(this[this.tableUserAddInfo.UserIDColumn]));
                }
                set {
                    this[this.tableUserAddInfo.UserIDColumn] = value;
                }
            }
            
            public string UserName {
                get {
                    try {
                        return ((string)(this[this.tableUserAddInfo.UserNameColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("Cannot get value because it is DBNull.", e);
                    }
                }
                set {
                    this[this.tableUserAddInfo.UserNameColumn] = value;
                }
            }
            
            public string Sex {
                get {
                    try {
                        return ((string)(this[this.tableUserAddInfo.SexColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("Cannot get value because it is DBNull.", e);
                    }
                }
                set {
                    this[this.tableUserAddInfo.SexColumn] = value;
                }
            }
            
            public System.DateTime Birthday {
                get {
                    try {
                        return ((System.DateTime)(this[this.tableUserAddInfo.BirthdayColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("Cannot get value because it is DBNull.", e);
                    }
                }
                set {
                    this[this.tableUserAddInfo.BirthdayColumn] = value;
                }
            }
            
            public string Relation {
                get {
                    try {
                        return ((string)(this[this.tableUserAddInfo.RelationColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("Cannot get value because it is DBNull.", e);
                    }
                }
                set {
                    this[this.tableUserAddInfo.RelationColumn] = value;
                }
            }
            
            public string BookShelfID {
                get {
                    try {
                        return ((string)(this[this.tableUserAddInfo.BookShelfIDColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("Cannot get value because it is DBNull.", e);
                    }
                }
                set {
                    this[this.tableUserAddInfo.BookShelfIDColumn] = value;
                }
            }
            
            public string Reamrk {
                get {
                    try {
                        return ((string)(this[this.tableUserAddInfo.ReamrkColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("Cannot get value because it is DBNull.", e);
                    }
                }
                set {
                    this[this.tableUserAddInfo.ReamrkColumn] = value;
                }
            }
            
            public bool IsUserNameNull() {
                return this.IsNull(this.tableUserAddInfo.UserNameColumn);
            }
            
            public void SetUserNameNull() {
                this[this.tableUserAddInfo.UserNameColumn] = System.Convert.DBNull;
            }
            
            public bool IsSexNull() {
                return this.IsNull(this.tableUserAddInfo.SexColumn);
            }
            
            public void SetSexNull() {
                this[this.tableUserAddInfo.SexColumn] = System.Convert.DBNull;
            }
            
            public bool IsBirthdayNull() {
                return this.IsNull(this.tableUserAddInfo.BirthdayColumn);
            }
            
            public void SetBirthdayNull() {
                this[this.tableUserAddInfo.BirthdayColumn] = System.Convert.DBNull;
            }
            
            public bool IsRelationNull() {
                return this.IsNull(this.tableUserAddInfo.RelationColumn);
            }
            
            public void SetRelationNull() {
                this[this.tableUserAddInfo.RelationColumn] = System.Convert.DBNull;
            }
            
            public bool IsBookShelfIDNull() {
                return this.IsNull(this.tableUserAddInfo.BookShelfIDColumn);
            }
            
            public void SetBookShelfIDNull() {
                this[this.tableUserAddInfo.BookShelfIDColumn] = System.Convert.DBNull;
            }
            
            public bool IsReamrkNull() {
                return this.IsNull(this.tableUserAddInfo.ReamrkColumn);
            }
            
            public void SetReamrkNull() {
                this[this.tableUserAddInfo.ReamrkColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class UserAddInfoRowChangeEvent : EventArgs {
            
            private UserAddInfoRow eventRow;
            
            private DataRowAction eventAction;
            
            public UserAddInfoRowChangeEvent(UserAddInfoRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public UserAddInfoRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class CompanyInfoDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnCompanyID;
            
            private DataColumn columnCompanyName;
            
            private DataColumn columnAddress;
            
            private DataColumn columnTel;
            
            private DataColumn columnRelationPerson;
            
            private DataColumn columnAppUserNum;
            
            private DataColumn columnValidUserNum;
            
            private DataColumn columnRemark;
            
            internal CompanyInfoDataTable() : 
                    base("CompanyInfo") {
                this.InitClass();
            }
            
            internal CompanyInfoDataTable(DataTable table) : 
                    base(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;
                this.DisplayExpression = table.DisplayExpression;
            }
            
            [System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
            
            internal DataColumn CompanyIDColumn {
                get {
                    return this.columnCompanyID;
                }
            }
            
            internal DataColumn CompanyNameColumn {
                get {
                    return this.columnCompanyName;
                }
            }
            
            internal DataColumn AddressColumn {
                get {
                    return this.columnAddress;
                }
            }
            
            internal DataColumn TelColumn {
                get {
                    return this.columnTel;
                }
            }
            
            internal DataColumn RelationPersonColumn {
                get {
                    return this.columnRelationPerson;
                }
            }
            
            internal DataColumn AppUserNumColumn {
                get {

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -