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

📄 stuaddedinfo.cs

📁 一个完整的学生信息管理系统
💻 CS
📖 第 1 页 / 共 5 页
字号:
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public changesRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class punishmentsDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnpunishment_ID;
            
            private DataColumn columnpunishment_studentID;
            
            private DataColumn columnpunishment_typeID;
            
            private DataColumn columnpunishment_reason;
            
            private DataColumn columnpunishment_date;
            
            private DataColumn columnpunishment_isMoved;
            
            private DataColumn columnpunishmentType_name;
            
            internal punishmentsDataTable() : 
                    base("punishments") {
                this.InitClass();
            }
            
            internal punishmentsDataTable(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 punishment_IDColumn {
                get {
                    return this.columnpunishment_ID;
                }
            }
            
            internal DataColumn punishment_studentIDColumn {
                get {
                    return this.columnpunishment_studentID;
                }
            }
            
            internal DataColumn punishment_typeIDColumn {
                get {
                    return this.columnpunishment_typeID;
                }
            }
            
            internal DataColumn punishment_reasonColumn {
                get {
                    return this.columnpunishment_reason;
                }
            }
            
            internal DataColumn punishment_dateColumn {
                get {
                    return this.columnpunishment_date;
                }
            }
            
            internal DataColumn punishment_isMovedColumn {
                get {
                    return this.columnpunishment_isMoved;
                }
            }
            
            internal DataColumn punishmentType_nameColumn {
                get {
                    return this.columnpunishmentType_name;
                }
            }
            
            public punishmentsRow this[int index] {
                get {
                    return ((punishmentsRow)(this.Rows[index]));
                }
            }
            
            public event punishmentsRowChangeEventHandler punishmentsRowChanged;
            
            public event punishmentsRowChangeEventHandler punishmentsRowChanging;
            
            public event punishmentsRowChangeEventHandler punishmentsRowDeleted;
            
            public event punishmentsRowChangeEventHandler punishmentsRowDeleting;
            
            public void AddpunishmentsRow(punishmentsRow row) {
                this.Rows.Add(row);
            }
            
            public punishmentsRow AddpunishmentsRow(string punishment_studentID, punishmentTypesRow parentpunishmentTypesRowBypunishmentTypespunishments, string punishment_reason, System.DateTime punishment_date, bool punishment_isMoved, string punishmentType_name) {
                punishmentsRow rowpunishmentsRow = ((punishmentsRow)(this.NewRow()));
                rowpunishmentsRow.ItemArray = new object[] {
                        null,
                        punishment_studentID,
                        parentpunishmentTypesRowBypunishmentTypespunishments[0],
                        punishment_reason,
                        punishment_date,
                        punishment_isMoved,
                        punishmentType_name};
                this.Rows.Add(rowpunishmentsRow);
                return rowpunishmentsRow;
            }
            
            public punishmentsRow FindBypunishment_ID(int punishment_ID) {
                return ((punishmentsRow)(this.Rows.Find(new object[] {
                            punishment_ID})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                punishmentsDataTable cln = ((punishmentsDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new punishmentsDataTable();
            }
            
            internal void InitVars() {
                this.columnpunishment_ID = this.Columns["punishment_ID"];
                this.columnpunishment_studentID = this.Columns["punishment_studentID"];
                this.columnpunishment_typeID = this.Columns["punishment_typeID"];
                this.columnpunishment_reason = this.Columns["punishment_reason"];
                this.columnpunishment_date = this.Columns["punishment_date"];
                this.columnpunishment_isMoved = this.Columns["punishment_isMoved"];
                this.columnpunishmentType_name = this.Columns["punishmentType_name"];
            }
            
            private void InitClass() {
                this.columnpunishment_ID = new DataColumn("punishment_ID", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnpunishment_ID);
                this.columnpunishment_studentID = new DataColumn("punishment_studentID", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnpunishment_studentID);
                this.columnpunishment_typeID = new DataColumn("punishment_typeID", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnpunishment_typeID);
                this.columnpunishment_reason = new DataColumn("punishment_reason", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnpunishment_reason);
                this.columnpunishment_date = new DataColumn("punishment_date", typeof(System.DateTime), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnpunishment_date);
                this.columnpunishment_isMoved = new DataColumn("punishment_isMoved", typeof(bool), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnpunishment_isMoved);
                this.columnpunishmentType_name = new DataColumn("punishmentType_name", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnpunishmentType_name);
                this.Constraints.Add(new UniqueConstraint("StuAddedInfoKey3", new DataColumn[] {
                                this.columnpunishment_ID}, true));
                this.columnpunishment_ID.AutoIncrement = true;
                this.columnpunishment_ID.AllowDBNull = false;
                this.columnpunishment_ID.Unique = true;
            }
            
            public punishmentsRow NewpunishmentsRow() {
                return ((punishmentsRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new punishmentsRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(punishmentsRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.punishmentsRowChanged != null)) {
                    this.punishmentsRowChanged(this, new punishmentsRowChangeEvent(((punishmentsRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.punishmentsRowChanging != null)) {
                    this.punishmentsRowChanging(this, new punishmentsRowChangeEvent(((punishmentsRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.punishmentsRowDeleted != null)) {
                    this.punishmentsRowDeleted(this, new punishmentsRowChangeEvent(((punishmentsRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.punishmentsRowDeleting != null)) {
                    this.punishmentsRowDeleting(this, new punishmentsRowChangeEvent(((punishmentsRow)(e.Row)), e.Action));
                }
            }
            
            public void RemovepunishmentsRow(punishmentsRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class punishmentsRow : DataRow {
            
            private punishmentsDataTable tablepunishments;
            
            internal punishmentsRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tablepunishments = ((punishmentsDataTable)(this.Table));
            }
            
            public int punishment_ID {
                get {
                    return ((int)(this[this.tablepunishments.punishment_IDColumn]));
                }
                set {
                    this[this.tablepunishments.punishment_IDColumn] = value;
                }
            }
            
            public string punishment_studentID {
                get {
                    try {
                        return ((string)(this[this.tablepunishments.punishment_studentIDColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablepunishments.punishment_studentIDColumn] = value;
                }
            }
            
            public int punishment_typeID {
                get {
                    try {
                        return ((int)(this[this.tablepunishments.punishment_typeIDColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablepunishments.punishment_typeIDColumn] = value;
                }
            }
            
            public string punishment_reason {
                get {
                    try {
                        return ((string)(this[this.tablepunishments.punishment_reasonColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablepunishments.punishment_reasonColumn] = value;
                }
            }
            
            public System.DateTime punishment_date {
                get {
                    try {
                        return ((System.DateTime)(this[this.tablepunishments.punishment_dateColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tablepunishments.punishment_dateColumn] = value;
                }
            }
            
            public bool punishment_isMoved {
                get {
                    try {
                        return ((bool)(this[this.tablepunishments.punishment_isMovedColumn]));

⌨️ 快捷键说明

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