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

📄 dataset11.cs

📁 用编写的图书管理系统
💻 CS
📖 第 1 页 / 共 5 页
字号:
        [System.Diagnostics.DebuggerStepThrough()]
        public class 读者信息RowChangeEvent : EventArgs {
            
            private 读者信息Row eventRow;
            
            private DataRowAction eventAction;
            
            public 读者信息RowChangeEvent(读者信息Row row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public 读者信息Row Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class 图书类型DataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn column类型编号;
            
            private DataColumn column类型名称;
            
            private DataColumn column可借天数;
            
            internal 图书类型DataTable() : 
                    base("图书类型") {
                this.InitClass();
            }
            
            internal 图书类型DataTable(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 类型编号Column {
                get {
                    return this.column类型编号;
                }
            }
            
            internal DataColumn 类型名称Column {
                get {
                    return this.column类型名称;
                }
            }
            
            internal DataColumn 可借天数Column {
                get {
                    return this.column可借天数;
                }
            }
            
            public 图书类型Row this[int index] {
                get {
                    return ((图书类型Row)(this.Rows[index]));
                }
            }
            
            public event 图书类型RowChangeEventHandler 图书类型RowChanged;
            
            public event 图书类型RowChangeEventHandler 图书类型RowChanging;
            
            public event 图书类型RowChangeEventHandler 图书类型RowDeleted;
            
            public event 图书类型RowChangeEventHandler 图书类型RowDeleting;
            
            public void Add图书类型Row(图书类型Row row) {
                this.Rows.Add(row);
            }
            
            public 图书类型Row Add图书类型Row(string 类型编号, string 类型名称, int 可借天数) {
                图书类型Row row图书类型Row = ((图书类型Row)(this.NewRow()));
                row图书类型Row.ItemArray = new object[] {
                        类型编号,
                        类型名称,
                        可借天数};
                this.Rows.Add(row图书类型Row);
                return row图书类型Row;
            }
            
            public 图书类型Row FindBy类型编号(string 类型编号) {
                return ((图书类型Row)(this.Rows.Find(new object[] {
                            类型编号})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                图书类型DataTable cln = ((图书类型DataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new 图书类型DataTable();
            }
            
            internal void InitVars() {
                this.column类型编号 = this.Columns["类型编号"];
                this.column类型名称 = this.Columns["类型名称"];
                this.column可借天数 = this.Columns["可借天数"];
            }
            
            private void InitClass() {
                this.column类型编号 = new DataColumn("类型编号", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column类型编号);
                this.column类型名称 = new DataColumn("类型名称", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column类型名称);
                this.column可借天数 = new DataColumn("可借天数", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column可借天数);
                this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
                                this.column类型编号}, true));
                this.column类型编号.AllowDBNull = false;
                this.column类型编号.Unique = true;
            }
            
            public 图书类型Row New图书类型Row() {
                return ((图书类型Row)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new 图书类型Row(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(图书类型Row);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.图书类型RowChanged != null)) {
                    this.图书类型RowChanged(this, new 图书类型RowChangeEvent(((图书类型Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.图书类型RowChanging != null)) {
                    this.图书类型RowChanging(this, new 图书类型RowChangeEvent(((图书类型Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.图书类型RowDeleted != null)) {
                    this.图书类型RowDeleted(this, new 图书类型RowChangeEvent(((图书类型Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.图书类型RowDeleting != null)) {
                    this.图书类型RowDeleting(this, new 图书类型RowChangeEvent(((图书类型Row)(e.Row)), e.Action));
                }
            }
            
            public void Remove图书类型Row(图书类型Row row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class 图书类型Row : DataRow {
            
            private 图书类型DataTable table图书类型;
            
            internal 图书类型Row(DataRowBuilder rb) : 
                    base(rb) {
                this.table图书类型 = ((图书类型DataTable)(this.Table));
            }
            
            public string 类型编号 {
                get {
                    return ((string)(this[this.table图书类型.类型编号Column]));
                }
                set {
                    this[this.table图书类型.类型编号Column] = value;
                }
            }
            
            public string 类型名称 {
                get {
                    try {
                        return ((string)(this[this.table图书类型.类型名称Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table图书类型.类型名称Column] = value;
                }
            }
            
            public int 可借天数 {
                get {
                    try {
                        return ((int)(this[this.table图书类型.可借天数Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table图书类型.可借天数Column] = value;
                }
            }
            
            public bool Is类型名称Null() {
                return this.IsNull(this.table图书类型.类型名称Column);
            }
            
            public void Set类型名称Null() {
                this[this.table图书类型.类型名称Column] = System.Convert.DBNull;
            }
            
            public bool Is可借天数Null() {
                return this.IsNull(this.table图书类型.可借天数Column);
            }
            
            public void Set可借天数Null() {
                this[this.table图书类型.可借天数Column] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class 图书类型RowChangeEvent : EventArgs {
            
            private 图书类型Row eventRow;
            
            private DataRowAction eventAction;
            
            public 图书类型RowChangeEvent(图书类型Row row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public 图书类型Row Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class 读者类型DataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn column类型;
            
            private DataColumn column图书册书;
            
            private DataColumn column期刊册书;
            
            private DataColumn column续借次数;
            
            private DataColumn column限制图书;
            
            private DataColumn column限制期刊;
            
            internal 读者类型DataTable() : 
                    base("读者类型") {
                this.InitClass();
            }
            
            internal 读者类型DataTable(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;

⌨️ 快捷键说明

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