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

📄 dataset1.cs

📁 简单的教师录入成绩系统
💻 CS
📖 第 1 页 / 共 5 页
字号:
//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.1.4322.573
//
//     Changes to this file may cause incorrect behavior and will be lost if 
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

namespace 教师网上录入成绩 {
    using System;
    using System.Data;
    using System.Xml;
    using System.Runtime.Serialization;
    
    
    [Serializable()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Diagnostics.DebuggerStepThrough()]
    [System.ComponentModel.ToolboxItem(true)]
    public class DataSet1 : DataSet {
        
        private 学生基本信息DataTable table学生基本信息;
        
        private 教师基本信息DataTable table教师基本信息;
        
        private 课程基本信息DataTable table课程基本信息;
        
        private GradeDataTable tableGrade;
        
        private 成绩表DataTable table成绩表;
        
        private 选课信息表DataTable table选课信息表;
        
        public DataSet1() {
            this.InitClass();
            System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
            this.Tables.CollectionChanged += schemaChangedHandler;
            this.Relations.CollectionChanged += schemaChangedHandler;
        }
        
        protected DataSet1(SerializationInfo info, StreamingContext context) {
            string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
            if ((strSchema != null)) {
                DataSet ds = new DataSet();
                ds.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(strSchema)));
                if ((ds.Tables["学生基本信息"] != null)) {
                    this.Tables.Add(new 学生基本信息DataTable(ds.Tables["学生基本信息"]));
                }
                if ((ds.Tables["教师基本信息"] != null)) {
                    this.Tables.Add(new 教师基本信息DataTable(ds.Tables["教师基本信息"]));
                }
                if ((ds.Tables["课程基本信息"] != null)) {
                    this.Tables.Add(new 课程基本信息DataTable(ds.Tables["课程基本信息"]));
                }
                if ((ds.Tables["Grade"] != null)) {
                    this.Tables.Add(new GradeDataTable(ds.Tables["Grade"]));
                }
                if ((ds.Tables["成绩表"] != null)) {
                    this.Tables.Add(new 成绩表DataTable(ds.Tables["成绩表"]));
                }
                if ((ds.Tables["选课信息表"] != null)) {
                    this.Tables.Add(new 选课信息表DataTable(ds.Tables["选课信息表"]));
                }
                this.DataSetName = ds.DataSetName;
                this.Prefix = ds.Prefix;
                this.Namespace = ds.Namespace;
                this.Locale = ds.Locale;
                this.CaseSensitive = ds.CaseSensitive;
                this.EnforceConstraints = ds.EnforceConstraints;
                this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
                this.InitVars();
            }
            else {
                this.InitClass();
            }
            this.GetSerializationData(info, context);
            System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
            this.Tables.CollectionChanged += schemaChangedHandler;
            this.Relations.CollectionChanged += schemaChangedHandler;
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public 学生基本信息DataTable 学生基本信息 {
            get {
                return this.table学生基本信息;
            }
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public 教师基本信息DataTable 教师基本信息 {
            get {
                return this.table教师基本信息;
            }
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public 课程基本信息DataTable 课程基本信息 {
            get {
                return this.table课程基本信息;
            }
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public GradeDataTable Grade {
            get {
                return this.tableGrade;
            }
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public 成绩表DataTable 成绩表 {
            get {
                return this.table成绩表;
            }
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public 选课信息表DataTable 选课信息表 {
            get {
                return this.table选课信息表;
            }
        }
        
        public override DataSet Clone() {
            DataSet1 cln = ((DataSet1)(base.Clone()));
            cln.InitVars();
            return cln;
        }
        
        protected override bool ShouldSerializeTables() {
            return false;
        }
        
        protected override bool ShouldSerializeRelations() {
            return false;
        }
        
        protected override void ReadXmlSerializable(XmlReader reader) {
            this.Reset();
            DataSet ds = new DataSet();
            ds.ReadXml(reader);
            if ((ds.Tables["学生基本信息"] != null)) {
                this.Tables.Add(new 学生基本信息DataTable(ds.Tables["学生基本信息"]));
            }
            if ((ds.Tables["教师基本信息"] != null)) {
                this.Tables.Add(new 教师基本信息DataTable(ds.Tables["教师基本信息"]));
            }
            if ((ds.Tables["课程基本信息"] != null)) {
                this.Tables.Add(new 课程基本信息DataTable(ds.Tables["课程基本信息"]));
            }
            if ((ds.Tables["Grade"] != null)) {
                this.Tables.Add(new GradeDataTable(ds.Tables["Grade"]));
            }
            if ((ds.Tables["成绩表"] != null)) {
                this.Tables.Add(new 成绩表DataTable(ds.Tables["成绩表"]));
            }
            if ((ds.Tables["选课信息表"] != null)) {
                this.Tables.Add(new 选课信息表DataTable(ds.Tables["选课信息表"]));
            }
            this.DataSetName = ds.DataSetName;
            this.Prefix = ds.Prefix;
            this.Namespace = ds.Namespace;
            this.Locale = ds.Locale;
            this.CaseSensitive = ds.CaseSensitive;
            this.EnforceConstraints = ds.EnforceConstraints;
            this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
            this.InitVars();
        }
        
        protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
            System.IO.MemoryStream stream = new System.IO.MemoryStream();
            this.WriteXmlSchema(new XmlTextWriter(stream, null));
            stream.Position = 0;
            return System.Xml.Schema.XmlSchema.Read(new XmlTextReader(stream), null);
        }
        
        internal void InitVars() {
            this.table学生基本信息 = ((学生基本信息DataTable)(this.Tables["学生基本信息"]));
            if ((this.table学生基本信息 != null)) {
                this.table学生基本信息.InitVars();
            }
            this.table教师基本信息 = ((教师基本信息DataTable)(this.Tables["教师基本信息"]));
            if ((this.table教师基本信息 != null)) {
                this.table教师基本信息.InitVars();
            }
            this.table课程基本信息 = ((课程基本信息DataTable)(this.Tables["课程基本信息"]));
            if ((this.table课程基本信息 != null)) {
                this.table课程基本信息.InitVars();
            }
            this.tableGrade = ((GradeDataTable)(this.Tables["Grade"]));
            if ((this.tableGrade != null)) {
                this.tableGrade.InitVars();
            }
            this.table成绩表 = ((成绩表DataTable)(this.Tables["成绩表"]));
            if ((this.table成绩表 != null)) {
                this.table成绩表.InitVars();
            }
            this.table选课信息表 = ((选课信息表DataTable)(this.Tables["选课信息表"]));
            if ((this.table选课信息表 != null)) {
                this.table选课信息表.InitVars();
            }
        }
        
        private void InitClass() {
            this.DataSetName = "DataSet1";
            this.Prefix = "";
            this.Namespace = "http://www.tempuri.org/DataSet1.xsd";
            this.Locale = new System.Globalization.CultureInfo("zh-CN");
            this.CaseSensitive = false;
            this.EnforceConstraints = true;
            this.table学生基本信息 = new 学生基本信息DataTable();
            this.Tables.Add(this.table学生基本信息);
            this.table教师基本信息 = new 教师基本信息DataTable();
            this.Tables.Add(this.table教师基本信息);
            this.table课程基本信息 = new 课程基本信息DataTable();
            this.Tables.Add(this.table课程基本信息);
            this.tableGrade = new GradeDataTable();
            this.Tables.Add(this.tableGrade);
            this.table成绩表 = new 成绩表DataTable();
            this.Tables.Add(this.table成绩表);
            this.table选课信息表 = new 选课信息表DataTable();
            this.Tables.Add(this.table选课信息表);
        }
        
        private bool ShouldSerialize学生基本信息() {
            return false;
        }
        
        private bool ShouldSerialize教师基本信息() {
            return false;
        }
        
        private bool ShouldSerialize课程基本信息() {
            return false;
        }
        
        private bool ShouldSerializeGrade() {
            return false;
        }
        
        private bool ShouldSerialize成绩表() {
            return false;
        }
        
        private bool ShouldSerialize选课信息表() {
            return false;
        }
        
        private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
            if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
                this.InitVars();
            }
        }
        
        public delegate void 学生基本信息RowChangeEventHandler(object sender, 学生基本信息RowChangeEvent e);
        
        public delegate void 教师基本信息RowChangeEventHandler(object sender, 教师基本信息RowChangeEvent e);
        
        public delegate void 课程基本信息RowChangeEventHandler(object sender, 课程基本信息RowChangeEvent e);
        
        public delegate void GradeRowChangeEventHandler(object sender, GradeRowChangeEvent e);
        
        public delegate void 成绩表RowChangeEventHandler(object sender, 成绩表RowChangeEvent e);
        
        public delegate void 选课信息表RowChangeEventHandler(object sender, 选课信息表RowChangeEvent e);
        
        [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专业;
            
            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;
            }

⌨️ 快捷键说明

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