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

📄 stusum.cs

📁 XStuMan学生管理系统是面向中小学信息化管理的一套学生管理系统
💻 CS
📖 第 1 页 / 共 4 页
字号:
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new summainRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(summainRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.summainRowChanged != null)) {
                    this.summainRowChanged(this, new summainRowChangeEvent(((summainRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.summainRowChanging != null)) {
                    this.summainRowChanging(this, new summainRowChangeEvent(((summainRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.summainRowDeleted != null)) {
                    this.summainRowDeleted(this, new summainRowChangeEvent(((summainRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.summainRowDeleting != null)) {
                    this.summainRowDeleting(this, new summainRowChangeEvent(((summainRow)(e.Row)), e.Action));
                }
            }
            
            public void RemovesummainRow(summainRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class summainRow : DataRow {
            
            private summainDataTable tablesummain;
            
            internal summainRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tablesummain = ((summainDataTable)(this.Table));
            }
            
            public int stuid {
                get {
                    try {
                        return ((int)(this[this.tablesummain.stuidColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablesummain.stuidColumn] = value;
                }
            }
            
            public System.DateTime birthday {
                get {
                    try {
                        return ((System.DateTime)(this[this.tablesummain.birthdayColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablesummain.birthdayColumn] = value;
                }
            }
            
            public string address {
                get {
                    try {
                        return ((string)(this[this.tablesummain.addressColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablesummain.addressColumn] = value;
                }
            }
            
            public TbstusumRow TbstusumRow {
                get {
                    return ((TbstusumRow)(this.GetParentRow(this.Table.ParentRelations["Tbstusum_summain"])));
                }
                set {
                    this.SetParentRow(value, this.Table.ParentRelations["Tbstusum_summain"]);
                }
            }
            
            public bool IsstuidNull() {
                return this.IsNull(this.tablesummain.stuidColumn);
            }
            
            public void SetstuidNull() {
                this[this.tablesummain.stuidColumn] = System.Convert.DBNull;
            }
            
            public bool IsbirthdayNull() {
                return this.IsNull(this.tablesummain.birthdayColumn);
            }
            
            public void SetbirthdayNull() {
                this[this.tablesummain.birthdayColumn] = System.Convert.DBNull;
            }
            
            public bool IsaddressNull() {
                return this.IsNull(this.tablesummain.addressColumn);
            }
            
            public void SetaddressNull() {
                this[this.tablesummain.addressColumn] = System.Convert.DBNull;
            }
            
            public praceRow[] GetpraceRows() {
                return ((praceRow[])(this.GetChildRows(this.Table.ChildRelations["summain_prace"])));
            }
            
            public mistakeRow[] GetmistakeRows() {
                return ((mistakeRow[])(this.GetChildRows(this.Table.ChildRelations["summain_mistake"])));
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class summainRowChangeEvent : EventArgs {
            
            private summainRow eventRow;
            
            private DataRowAction eventAction;
            
            public summainRowChangeEvent(summainRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public summainRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class praceDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columndate;
            
            private DataColumn column_event;
            
            private DataColumn columnsummain_Id;
            
            internal praceDataTable() : 
                    base("prace") {
                this.InitClass();
            }
            
            internal praceDataTable(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 dateColumn {
                get {
                    return this.columndate;
                }
            }
            
            internal DataColumn _eventColumn {
                get {
                    return this.column_event;
                }
            }
            
            internal DataColumn summain_IdColumn {
                get {
                    return this.columnsummain_Id;
                }
            }
            
            public praceRow this[int index] {
                get {
                    return ((praceRow)(this.Rows[index]));
                }
            }
            
            public event praceRowChangeEventHandler praceRowChanged;
            
            public event praceRowChangeEventHandler praceRowChanging;
            
            public event praceRowChangeEventHandler praceRowDeleted;
            
            public event praceRowChangeEventHandler praceRowDeleting;
            
            public void AddpraceRow(praceRow row) {
                this.Rows.Add(row);
            }
            
            public praceRow AddpraceRow(System.DateTime date, string _event, summainRow parentsummainRowBysummain_prace) {
                praceRow rowpraceRow = ((praceRow)(this.NewRow()));
                rowpraceRow.ItemArray = new object[] {
                        date,
                        _event,
                        parentsummainRowBysummain_prace[3]};
                this.Rows.Add(rowpraceRow);
                return rowpraceRow;
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                praceDataTable cln = ((praceDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new praceDataTable();
            }
            
            internal void InitVars() {
                this.columndate = this.Columns["date"];
                this.column_event = this.Columns["event"];
                this.columnsummain_Id = this.Columns["summain_Id"];
            }
            
            private void InitClass() {
                this.columndate = new DataColumn("date", typeof(System.DateTime), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columndate);
                this.column_event = new DataColumn("event", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column_event);
                this.columnsummain_Id = new DataColumn("summain_Id", typeof(int), null, System.Data.MappingType.Hidden);
                this.Columns.Add(this.columnsummain_Id);
            }
            
            public praceRow NewpraceRow() {
                return ((praceRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new praceRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(praceRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.praceRowChanged != null)) {
                    this.praceRowChanged(this, new praceRowChangeEvent(((praceRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.praceRowChanging != null)) {
                    this.praceRowChanging(this, new praceRowChangeEvent(((praceRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.praceRowDeleted != null)) {
                    this.praceRowDeleted(this, new praceRowChangeEvent(((praceRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.praceRowDeleting != null)) {
                    this.praceRowDeleting(this, new praceRowChangeEvent(((praceRow)(e.Row)), e.Action));
                }
            }
            
            public void RemovepraceRow(praceRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class praceRow : DataRow {
            
            private praceDataTable tableprace;
            
            internal praceRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableprace = ((praceDataTable)(this.Table));
            }
            

⌨️ 快捷键说明

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