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

📄 dataset1.cs

📁 采用C#和SQL Server 2000开发 功能比较全面的图书馆管理系统
💻 CS
📖 第 1 页 / 共 5 页
字号:
                        期刊册书,
                        续借次数,
                        限制图书,
                        限制期刊};
                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["期刊册书"];
                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(short), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column图书册书);
                this.column期刊册书 = new DataColumn("期刊册书", typeof(short), 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.column限制图书 = new DataColumn("限制图书", typeof(bool), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column限制图书);
                this.column限制期刊 = new DataColumn("限制期刊", typeof(bool), 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 short 图书册书 {
                get {
                    try {
                        return ((short)(this[this.table读者类型.图书册书Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table读者类型.图书册书Column] = value;
                }
            }
            
            public short 期刊册书 {
                get {
                    try {
                        return ((short)(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 限制图书 {
                get {
                    try {
                        return ((bool)(this[this.table读者类型.限制图书Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table读者类型.限制图书Column] = value;
                }
            }
            
            public bool 限制期刊 {
                get {
                    try {
                        return ((bool)(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;
            }
            
            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;
            }
            
            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实收金额;
            
            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期刊编号;
                }
     

⌨️ 快捷键说明

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