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

📄 returnquery.cs

📁 图书馆管理系统为方便读者
💻 CS
📖 第 1 页 / 共 2 页
字号:
                TreturninfoRow rowTreturninfoRow = ((TreturninfoRow)(this.NewRow()));
                rowTreturninfoRow.ItemArray = new object[] {
                        typeno,
                        typename,
                        bookno,
                        bookdays,
                        memo};
                this.Rows.Add(rowTreturninfoRow);
                return rowTreturninfoRow;
            }
            
            public TreturninfoRow FindBytypeno(string typeno) {
                return ((TreturninfoRow)(this.Rows.Find(new object[] {
                            typeno})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                TreturninfoDataTable cln = ((TreturninfoDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new TreturninfoDataTable();
            }
            
            internal void InitVars() {
                this.columntypeno = this.Columns["typeno"];
                this.columntypename = this.Columns["typename"];
                this.columnbookno = this.Columns["bookno"];
                this.columnbookdays = this.Columns["bookdays"];
                this.columnmemo = this.Columns["memo"];
            }
            
            private void InitClass() {
                this.columntypeno = new DataColumn("typeno", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columntypeno);
                this.columntypename = new DataColumn("typename", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columntypename);
                this.columnbookno = new DataColumn("bookno", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnbookno);
                this.columnbookdays = new DataColumn("bookdays", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnbookdays);
                this.columnmemo = new DataColumn("memo", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnmemo);
                this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
                                this.columntypeno}, true));
                this.columntypeno.AllowDBNull = false;
                this.columntypeno.Unique = true;
                this.columntypename.AllowDBNull = false;
            }
            
            public TreturninfoRow NewTreturninfoRow() {
                return ((TreturninfoRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new TreturninfoRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(TreturninfoRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.TreturninfoRowChanged != null)) {
                    this.TreturninfoRowChanged(this, new TreturninfoRowChangeEvent(((TreturninfoRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.TreturninfoRowChanging != null)) {
                    this.TreturninfoRowChanging(this, new TreturninfoRowChangeEvent(((TreturninfoRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.TreturninfoRowDeleted != null)) {
                    this.TreturninfoRowDeleted(this, new TreturninfoRowChangeEvent(((TreturninfoRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.TreturninfoRowDeleting != null)) {
                    this.TreturninfoRowDeleting(this, new TreturninfoRowChangeEvent(((TreturninfoRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveTreturninfoRow(TreturninfoRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class TreturninfoRow : DataRow {
            
            private TreturninfoDataTable tableTreturninfo;
            
            internal TreturninfoRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableTreturninfo = ((TreturninfoDataTable)(this.Table));
            }
            
            public string typeno {
                get {
                    return ((string)(this[this.tableTreturninfo.typenoColumn]));
                }
                set {
                    this[this.tableTreturninfo.typenoColumn] = value;
                }
            }
            
            public string typename {
                get {
                    return ((string)(this[this.tableTreturninfo.typenameColumn]));
                }
                set {
                    this[this.tableTreturninfo.typenameColumn] = value;
                }
            }
            
            public string bookno {
                get {
                    try {
                        return ((string)(this[this.tableTreturninfo.booknoColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableTreturninfo.booknoColumn] = value;
                }
            }
            
            public string bookdays {
                get {
                    try {
                        return ((string)(this[this.tableTreturninfo.bookdaysColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableTreturninfo.bookdaysColumn] = value;
                }
            }
            
            public string memo {
                get {
                    try {
                        return ((string)(this[this.tableTreturninfo.memoColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableTreturninfo.memoColumn] = value;
                }
            }
            
            public bool IsbooknoNull() {
                return this.IsNull(this.tableTreturninfo.booknoColumn);
            }
            
            public void SetbooknoNull() {
                this[this.tableTreturninfo.booknoColumn] = System.Convert.DBNull;
            }
            
            public bool IsbookdaysNull() {
                return this.IsNull(this.tableTreturninfo.bookdaysColumn);
            }
            
            public void SetbookdaysNull() {
                this[this.tableTreturninfo.bookdaysColumn] = System.Convert.DBNull;
            }
            
            public bool IsmemoNull() {
                return this.IsNull(this.tableTreturninfo.memoColumn);
            }
            
            public void SetmemoNull() {
                this[this.tableTreturninfo.memoColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class TreturninfoRowChangeEvent : EventArgs {
            
            private TreturninfoRow eventRow;
            
            private DataRowAction eventAction;
            
            public TreturninfoRowChangeEvent(TreturninfoRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public TreturninfoRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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