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

📄 dataset2.cs

📁 简单的图书管理系统1、系统功能的基本要求: (1)图书信息的输入
💻 CS
📖 第 1 页 / 共 5 页
字号:
            }
            
            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实收金额;
            
            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书名;
                }
            }
            
            internal DataColumn 读者编号Column {
                get {
                    return this.column读者编号;
                }
            }
            
            internal DataColumn 姓名Column {
                get {
                    return this.column姓名;
                }
            }
            
            internal DataColumn 罚款日期Column {
                get {
                    return this.column罚款日期;
                }
            }
            
            internal DataColumn 应罚金额Column {
                get {
                    return this.column应罚金额;
                }
            }
            
            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 书名, string 读者编号, string 姓名, System.DateTime 罚款日期, System.Decimal 应罚金额, System.Decimal 实收金额, bool 是否交款, string 备注) {
                图书罚款Row row图书罚款Row = ((图书罚款Row)(this.NewRow()));
                row图书罚款Row.ItemArray = new object[] {
                        null,
                        图书编号,
                        书名,
                        读者编号,
                        姓名,
                        罚款日期,
                        应罚金额,
                        实收金额,
                        是否交款,
                        备注};
                this.Rows.Add(row图书罚款Row);
                return row图书罚款Row;
            }
            
            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["罚款日期"];
                this.column应罚金额 = this.Columns["应罚金额"];
                this.column实收金额 = this.Columns["实收金额"];
                this.column是否交款 = this.Columns["是否交款"];
                this.column备注 = this.Columns["备注"];
            }
            
            private void InitClass() {
                this.column罚款编号 = new DataColumn("罚款编号", typeof(int), 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(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(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column姓名);
                this.column罚款日期 = new DataColumn("罚款日期", typeof(System.DateTime), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column罚款日期);
                this.column应罚金额 = new DataColumn("应罚金额", typeof(System.Decimal), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column应罚金额);
                this.column实收金额 = new DataColumn("实收金额", typeof(System.Decimal), 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(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column备注);
                this.column罚款编号.AutoIncrement = true;
                this.column罚款编号.AllowDBNull = false;
                this.column罚款编号.ReadOnly = 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) {
         

⌨️ 快捷键说明

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