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

📄 dataset1.cs

📁 采用C#和SQL Server 2000开发 功能比较全面的图书馆管理系统
💻 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 期刊罚款DataTable table期刊罚款;
        
        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["期刊罚款"] != 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["图书类型"]));
                }
                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 期刊罚款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图书类型;
            }
        }
        
        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["期刊罚款"] != 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["图书类型"]));
            }
            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.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();
            }
        }
        
        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.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图书类型);
        }
        
        private bool ShouldSerialize读者信息() {
            return false;
        }
        
        private bool ShouldSerialize图书征订() {
            return false;
        }
        
        private bool ShouldSerialize读者类型() {
            return false;
        }
        
        private bool ShouldSerialize期刊罚款() {
            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 期刊罚款RowChangeEventHandler(object sender, 期刊罚款RowChangeEvent 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证件号码;
            
            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) {

⌨️ 快捷键说明

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