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

📄 dataset1.cs

📁 简单的教师录入成绩系统
💻 CS
📖 第 1 页 / 共 5 页
字号:
            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职务;
            
            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职务;
                }
            }
            
            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 性别, int 年龄, System.DateTime 出生年月, string 院系, string 职务) {
                教师基本信息Row row教师基本信息Row = ((教师基本信息Row)(this.NewRow()));
                row教师基本信息Row.ItemArray = new object[] {
                        姓名,
                        教师号,
                        性别,
                        年龄,
                        出生年月,
                        院系,
                        职务};
                this.Rows.Add(row教师基本信息Row);
                return row教师基本信息Row;
            }
            
            public 教师基本信息Row FindBy教师号(string 教师号) {
                return ((教师基本信息Row)(this.Rows.Find(new object[] {
                            教师号})));
            }
            
            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["职务"];
            }
            
            private void InitClass() {
                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(int), 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(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.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
                                this.column教师号}, true));
                this.column姓名.AllowDBNull = false;
                this.column教师号.AllowDBNull = false;
                this.column教师号.Unique = true;
                this.column性别.AllowDBNull = false;
                this.column年龄.AllowDBNull = false;
                this.column出生年月.AllowDBNull = false;
                this.column院系.AllowDBNull = false;
                this.column职务.AllowDBNull = false;
            }
            
            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) {
                this.table教师基本信息 = ((教师基本信息DataTable)(this.Table));
            }
            
            public string 姓名 {
                get {
                    return ((string)(this[this.table教师基本信息.姓名Column]));
                }
                set {
                    this[this.table教师基本信息.姓名Column] = value;
                }
            }
            
            public string 教师号 {
                get {
                    return ((string)(this[this.table教师基本信息.教师号Column]));
                }
                set {
                    this[this.table教师基本信息.教师号Column] = value;
                }
            }
            
            public string 性别 {
                get {
                    return ((string)(this[this.table教师基本信息.性别Column]));
                }
                set {
                    this[this.table教师基本信息.性别Column] = value;
                }
            }
            
            public int 年龄 {
                get {
                    return ((int)(this[this.table教师基本信息.年龄Column]));
                }
                set {
                    this[this.table教师基本信息.年龄Column] = value;
                }
            }
            
            public System.DateTime 出生年月 {
                get {
                    return ((System.DateTime)(this[this.table教师基本信息.出生年月Column]));
                }
                set {
                    this[this.table教师基本信息.出生年月Column] = value;
                }
            }
            
            public string 院系 {
                get {
                    return ((string)(this[this.table教师基本信息.院系Column]));
                }
                set {
                    this[this.table教师基本信息.院系Column] = value;
                }
            }
            
            public string 职务 {
                get {
                    return ((string)(this[this.table教师基本信息.职务Column]));
                }
                set {
                    this[this.table教师基本信息.职务Column] = value;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class 教师基本信息RowChangeEvent : EventArgs {
            
            private 教师基本信息Row eventRow;
            
            private DataRowAction eventAction;

⌨️ 快捷键说明

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