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

📄 dataset1.cs

📁 学生公寓管理系统使用说明: 1.服务器运行环境 SQL 2000 .NET FRAMEWORK 1.1 .NET FRAMEWORK 1.1 CHINESE (SIMPL
💻 CS
📖 第 1 页 / 共 4 页
字号:
                if ((this.Doc_UserRowChanged != null)) {
                    this.Doc_UserRowChanged(this, new Doc_UserRowChangeEvent(((Doc_UserRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.Doc_UserRowChanging != null)) {
                    this.Doc_UserRowChanging(this, new Doc_UserRowChangeEvent(((Doc_UserRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.Doc_UserRowDeleted != null)) {
                    this.Doc_UserRowDeleted(this, new Doc_UserRowChangeEvent(((Doc_UserRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.Doc_UserRowDeleting != null)) {
                    this.Doc_UserRowDeleting(this, new Doc_UserRowChangeEvent(((Doc_UserRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveDoc_UserRow(Doc_UserRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class Doc_UserRow : DataRow {
            
            private Doc_UserDataTable tableDoc_User;
            
            internal Doc_UserRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableDoc_User = ((Doc_UserDataTable)(this.Table));
            }
            
            public int USERID {
                get {
                    return ((int)(this[this.tableDoc_User.USERIDColumn]));
                }
                set {
                    this[this.tableDoc_User.USERIDColumn] = value;
                }
            }
            
            public string LOGINID {
                get {
                    return ((string)(this[this.tableDoc_User.LOGINIDColumn]));
                }
                set {
                    this[this.tableDoc_User.LOGINIDColumn] = value;
                }
            }
            
            public string USERNAME {
                get {
                    try {
                        return ((string)(this[this.tableDoc_User.USERNAMEColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableDoc_User.USERNAMEColumn] = value;
                }
            }
            
            public string UsrPASSWORD {
                get {
                    return ((string)(this[this.tableDoc_User.UsrPASSWORDColumn]));
                }
                set {
                    this[this.tableDoc_User.UsrPASSWORDColumn] = value;
                }
            }
            
            public int GROUPID {
                get {
                    return ((int)(this[this.tableDoc_User.GROUPIDColumn]));
                }
                set {
                    this[this.tableDoc_User.GROUPIDColumn] = value;
                }
            }
            
            public int ISSYSTEM {
                get {
                    try {
                        return ((int)(this[this.tableDoc_User.ISSYSTEMColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableDoc_User.ISSYSTEMColumn] = value;
                }
            }
            
            public bool IsUSERNAMENull() {
                return this.IsNull(this.tableDoc_User.USERNAMEColumn);
            }
            
            public void SetUSERNAMENull() {
                this[this.tableDoc_User.USERNAMEColumn] = System.Convert.DBNull;
            }
            
            public bool IsISSYSTEMNull() {
                return this.IsNull(this.tableDoc_User.ISSYSTEMColumn);
            }
            
            public void SetISSYSTEMNull() {
                this[this.tableDoc_User.ISSYSTEMColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class Doc_UserRowChangeEvent : EventArgs {
            
            private Doc_UserRow eventRow;
            
            private DataRowAction eventAction;
            
            public Doc_UserRowChangeEvent(Doc_UserRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public Doc_UserRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class StudentDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnStudent_ID;
            
            private DataColumn columnStudent_Name;
            
            private DataColumn columnStudent_Password;
            
            private DataColumn columnStudent_Birth;
            
            private DataColumn columnStudent_Sex;
            
            private DataColumn columnStudent_Photo;
            
            private DataColumn columnStudent_Depart;
            
            private DataColumn columnStudent_Course;
            
            private DataColumn columnStudent_Postion;
            
            private DataColumn columnRoom_ID;
            
            private DataColumn columnStudent_Email;
            
            private DataColumn columnStudent_LiveCost;
            
            private DataColumn columnStudent_StudyCost;
            
            private DataColumn columnStudent_Address;
            
            private DataColumn columnStudent_Phone;
            
            internal StudentDataTable() : 
                    base("Student") {
                this.InitClass();
            }
            
            internal StudentDataTable(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 Student_IDColumn {
                get {
                    return this.columnStudent_ID;
                }
            }
            
            internal DataColumn Student_NameColumn {
                get {
                    return this.columnStudent_Name;
                }
            }
            
            internal DataColumn Student_PasswordColumn {
                get {
                    return this.columnStudent_Password;
                }
            }
            
            internal DataColumn Student_BirthColumn {
                get {
                    return this.columnStudent_Birth;
                }
            }
            
            internal DataColumn Student_SexColumn {
                get {
                    return this.columnStudent_Sex;
                }
            }
            
            internal DataColumn Student_PhotoColumn {
                get {
                    return this.columnStudent_Photo;
                }
            }
            
            internal DataColumn Student_DepartColumn {
                get {
                    return this.columnStudent_Depart;
                }
            }
            
            internal DataColumn Student_CourseColumn {
                get {
                    return this.columnStudent_Course;
                }
            }
            
            internal DataColumn Student_PostionColumn {
                get {
                    return this.columnStudent_Postion;
                }
            }
            
            internal DataColumn Room_IDColumn {
                get {
                    return this.columnRoom_ID;
                }
            }
            
            internal DataColumn Student_EmailColumn {
                get {
                    return this.columnStudent_Email;
                }
            }
            
            internal DataColumn Student_LiveCostColumn {
                get {
                    return this.columnStudent_LiveCost;
                }
            }
            
            internal DataColumn Student_StudyCostColumn {
                get {
                    return this.columnStudent_StudyCost;
                }
            }
            
            internal DataColumn Student_AddressColumn {
                get {
                    return this.columnStudent_Address;
                }
            }
            
            internal DataColumn Student_PhoneColumn {
                get {
                    return this.columnStudent_Phone;
                }
            }
            
            public StudentRow this[int index] {
                get {
                    return ((StudentRow)(this.Rows[index]));
                }
            }
            
            public event StudentRowChangeEventHandler StudentRowChanged;
            
            public event StudentRowChangeEventHandler StudentRowChanging;
            
            public event StudentRowChangeEventHandler StudentRowDeleted;
            
            public event StudentRowChangeEventHandler StudentRowDeleting;
            
            public void AddStudentRow(StudentRow row) {
                this.Rows.Add(row);
            }
            
            public StudentRow AddStudentRow(long Student_ID, string Student_Name, string Student_Password, string Student_Birth, string Student_Sex, string Student_Photo, string Student_Depart, string Student_Course, string Student_Postion, long Room_ID, string Student_Email, System.Decimal Student_LiveCost, System.Decimal Student_StudyCost, string Student_Address, string Student_Phone) {
                StudentRow rowStudentRow = ((StudentRow)(this.NewRow()));
                rowStudentRow.ItemArray = new object[] {
                        Student_ID,
                        Student_Name,
                        Student_Password,
                        Student_Birth,
                        Student_Sex,
                        Student_Photo,
                        Student_Depart,
                        Student_Course,
                        Student_Postion,
                        Room_ID,
                        Student_Email,
                        Student_LiveCost,
                        Student_StudyCost,
                        Student_Address,
                        Student_Phone};
                this.Rows.Add(rowStudentRow);
                return rowStudentRow;
            }
            
            public StudentRow FindByStudent_ID(long Student_ID) {
                return ((StudentRow)(this.Rows.Find(new object[] {
                            Student_ID})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                StudentDataTable cln = ((StudentDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new StudentDataTable();
            }
            
            internal void InitVars() {
                this.columnStudent_ID = this.Columns["Student_ID"];
                this.columnStudent_Name = this.Columns["Student_Name"];
                this.columnStudent_Password = this.Columns["Student_Password"];
                this.columnStudent_Birth = this.Columns["Student_Birth"];
                this.columnStudent_Sex = this.Columns["Student_Sex"];
                this.columnStudent_Photo = this.Columns["Student_Photo"];
                this.columnStudent_Depart = this.Columns["Student_Depart"];
                this.columnStudent_Course = this.Columns["Student_Course"];

⌨️ 快捷键说明

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