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

📄 teacher.cs

📁 XStuMan学生管理系统是面向中小学信息化管理的一套学生管理系统
💻 CS
📖 第 1 页 / 共 3 页
字号:
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this._classRowChanging != null)) {
                    this._classRowChanging(this, new _classRowChangeEvent(((_classRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this._classRowDeleted != null)) {
                    this._classRowDeleted(this, new _classRowChangeEvent(((_classRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this._classRowDeleting != null)) {
                    this._classRowDeleting(this, new _classRowChangeEvent(((_classRow)(e.Row)), e.Action));
                }
            }
            
            public void Remove_classRow(_classRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class _classRow : DataRow {
            
            private _classDataTable table_class;
            
            internal _classRow(DataRowBuilder rb) : 
                    base(rb) {
                this.table_class = ((_classDataTable)(this.Table));
            }
            
            public int _class {
                get {
                    return ((int)(this[this.table_class._classColumn]));
                }
                set {
                    this[this.table_class._classColumn] = value;
                }
            }
            
            public System.DateTime schooldate {
                get {
                    return ((System.DateTime)(this[this.table_class.schooldateColumn]));
                }
                set {
                    this[this.table_class.schooldateColumn] = value;
                }
            }
            
            public TbteacherRow TbteacherRow {
                get {
                    return ((TbteacherRow)(this.GetParentRow(this.Table.ParentRelations["Tbteacher_class"])));
                }
                set {
                    this.SetParentRow(value, this.Table.ParentRelations["Tbteacher_class"]);
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class _classRowChangeEvent : EventArgs {
            
            private _classRow eventRow;
            
            private DataRowAction eventAction;
            
            public _classRowChangeEvent(_classRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public _classRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class manclassDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn column_class;
            
            private DataColumn columnschooldate;
            
            private DataColumn columnTbteacher_Id;
            
            internal manclassDataTable() : 
                    base("manclass") {
                this.InitClass();
            }
            
            internal manclassDataTable(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 _classColumn {
                get {
                    return this.column_class;
                }
            }
            
            internal DataColumn schooldateColumn {
                get {
                    return this.columnschooldate;
                }
            }
            
            internal DataColumn Tbteacher_IdColumn {
                get {
                    return this.columnTbteacher_Id;
                }
            }
            
            public manclassRow this[int index] {
                get {
                    return ((manclassRow)(this.Rows[index]));
                }
            }
            
            public event manclassRowChangeEventHandler manclassRowChanged;
            
            public event manclassRowChangeEventHandler manclassRowChanging;
            
            public event manclassRowChangeEventHandler manclassRowDeleted;
            
            public event manclassRowChangeEventHandler manclassRowDeleting;
            
            public void AddmanclassRow(manclassRow row) {
                this.Rows.Add(row);
            }
            
            public manclassRow AddmanclassRow(int _class, System.DateTime schooldate, TbteacherRow parentTbteacherRowByTbteacher_manclass) {
                manclassRow rowmanclassRow = ((manclassRow)(this.NewRow()));
                rowmanclassRow.ItemArray = new object[] {
                        _class,
                        schooldate,
                        parentTbteacherRowByTbteacher_manclass[3]};
                this.Rows.Add(rowmanclassRow);
                return rowmanclassRow;
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                manclassDataTable cln = ((manclassDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new manclassDataTable();
            }
            
            internal void InitVars() {
                this.column_class = this.Columns["class"];
                this.columnschooldate = this.Columns["schooldate"];
                this.columnTbteacher_Id = this.Columns["Tbteacher_Id"];
            }
            
            private void InitClass() {
                this.column_class = new DataColumn("class", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column_class);
                this.columnschooldate = new DataColumn("schooldate", typeof(System.DateTime), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnschooldate);
                this.columnTbteacher_Id = new DataColumn("Tbteacher_Id", typeof(int), null, System.Data.MappingType.Hidden);
                this.Columns.Add(this.columnTbteacher_Id);
                this.column_class.AllowDBNull = false;
                this.columnschooldate.AllowDBNull = false;
            }
            
            public manclassRow NewmanclassRow() {
                return ((manclassRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new manclassRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(manclassRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.manclassRowChanged != null)) {
                    this.manclassRowChanged(this, new manclassRowChangeEvent(((manclassRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.manclassRowChanging != null)) {
                    this.manclassRowChanging(this, new manclassRowChangeEvent(((manclassRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.manclassRowDeleted != null)) {
                    this.manclassRowDeleted(this, new manclassRowChangeEvent(((manclassRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.manclassRowDeleting != null)) {
                    this.manclassRowDeleting(this, new manclassRowChangeEvent(((manclassRow)(e.Row)), e.Action));
                }
            }
            
            public void RemovemanclassRow(manclassRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class manclassRow : DataRow {
            
            private manclassDataTable tablemanclass;
            
            internal manclassRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tablemanclass = ((manclassDataTable)(this.Table));
            }
            
            public int _class {
                get {
                    return ((int)(this[this.tablemanclass._classColumn]));
                }
                set {
                    this[this.tablemanclass._classColumn] = value;
                }
            }
            
            public System.DateTime schooldate {
                get {
                    return ((System.DateTime)(this[this.tablemanclass.schooldateColumn]));
                }
                set {
                    this[this.tablemanclass.schooldateColumn] = value;
                }
            }
            
            public TbteacherRow TbteacherRow {
                get {
                    return ((TbteacherRow)(this.GetParentRow(this.Table.ParentRelations["Tbteacher_manclass"])));
                }
                set {
                    this.SetParentRow(value, this.Table.ParentRelations["Tbteacher_manclass"]);
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class manclassRowChangeEvent : EventArgs {
            
            private manclassRow eventRow;
            
            private DataRowAction eventAction;
            
            public manclassRowChangeEvent(manclassRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public manclassRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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