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

📄 dataset1.cs

📁 用Visual C#.net开发企业材料采购管理系统数据库使用的是SqlServer2000
💻 CS
📖 第 1 页 / 共 2 页
字号:
//------------------------------------------------------------------------------
// <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 WebApplication5 {
    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 list_printDataTable tablelist_print;
        
        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["list_print"] != null)) {
                    this.Tables.Add(new list_printDataTable(ds.Tables["list_print"]));
                }
                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 list_printDataTable list_print {
            get {
                return this.tablelist_print;
            }
        }
        
        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["list_print"] != null)) {
                this.Tables.Add(new list_printDataTable(ds.Tables["list_print"]));
            }
            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.tablelist_print = ((list_printDataTable)(this.Tables["list_print"]));
            if ((this.tablelist_print != null)) {
                this.tablelist_print.InitVars();
            }
        }
        
        private void InitClass() {
            this.DataSetName = "Dataset1";
            this.Prefix = "";
            this.Namespace = "http://tempuri.org/Dataset1.xsd";
            this.Locale = new System.Globalization.CultureInfo("en-US");
            this.CaseSensitive = false;
            this.EnforceConstraints = true;
            this.tablelist_print = new list_printDataTable();
            this.Tables.Add(this.tablelist_print);
        }
        
        private bool ShouldSerializelist_print() {
            return false;
        }
        
        private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
            if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
                this.InitVars();
            }
        }
        
        public delegate void list_printRowChangeEventHandler(object sender, list_printRowChangeEvent e);
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class list_printDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnid;
            
            private DataColumn columnprovider;
            
            private DataColumn columngoods;
            
            private DataColumn columnaccount;
            
            private DataColumn columnpayment;
            
            private DataColumn columnpayment1;
            
            private DataColumn columnremark;
            
            private DataColumn columnrptDate;
            
            internal list_printDataTable() : 
                    base("list_print") {
                this.InitClass();
            }
            
            internal list_printDataTable(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 idColumn {
                get {
                    return this.columnid;
                }
            }
            
            internal DataColumn providerColumn {
                get {
                    return this.columnprovider;
                }
            }
            
            internal DataColumn goodsColumn {
                get {
                    return this.columngoods;
                }
            }
            
            internal DataColumn accountColumn {
                get {
                    return this.columnaccount;
                }
            }
            
            internal DataColumn paymentColumn {
                get {
                    return this.columnpayment;
                }
            }
            
            internal DataColumn payment1Column {
                get {
                    return this.columnpayment1;
                }
            }
            
            internal DataColumn remarkColumn {
                get {
                    return this.columnremark;
                }
            }
            
            internal DataColumn rptDateColumn {
                get {
                    return this.columnrptDate;
                }
            }
            
            public list_printRow this[int index] {
                get {
                    return ((list_printRow)(this.Rows[index]));
                }
            }
            
            public event list_printRowChangeEventHandler list_printRowChanged;
            
            public event list_printRowChangeEventHandler list_printRowChanging;
            
            public event list_printRowChangeEventHandler list_printRowDeleted;
            
            public event list_printRowChangeEventHandler list_printRowDeleting;
            
            public void Addlist_printRow(list_printRow row) {
                this.Rows.Add(row);
            }
            
            public list_printRow Addlist_printRow(int id, string provider, string goods, System.Single account, System.Single payment, System.Single payment1, string remark, string rptDate) {
                list_printRow rowlist_printRow = ((list_printRow)(this.NewRow()));
                rowlist_printRow.ItemArray = new object[] {
                        id,
                        provider,
                        goods,
                        account,
                        payment,
                        payment1,
                        remark,
                        rptDate};
                this.Rows.Add(rowlist_printRow);
                return rowlist_printRow;
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                list_printDataTable cln = ((list_printDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new list_printDataTable();
            }
            
            internal void InitVars() {
                this.columnid = this.Columns["id"];
                this.columnprovider = this.Columns["provider"];
                this.columngoods = this.Columns["goods"];
                this.columnaccount = this.Columns["account"];
                this.columnpayment = this.Columns["payment"];
                this.columnpayment1 = this.Columns["payment1"];

⌨️ 快捷键说明

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