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

📄 dataset11.cs

📁 C#自定义查询控件
💻 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 TestComponent {
    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 QAInspectFabricHeaderDataTable tableQAInspectFabricHeader;
        
        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["QAInspectFabricHeader"] != null)) {
                    this.Tables.Add(new QAInspectFabricHeaderDataTable(ds.Tables["QAInspectFabricHeader"]));
                }
                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 QAInspectFabricHeaderDataTable QAInspectFabricHeader {
            get {
                return this.tableQAInspectFabricHeader;
            }
        }
        
        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["QAInspectFabricHeader"] != null)) {
                this.Tables.Add(new QAInspectFabricHeaderDataTable(ds.Tables["QAInspectFabricHeader"]));
            }
            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.tableQAInspectFabricHeader = ((QAInspectFabricHeaderDataTable)(this.Tables["QAInspectFabricHeader"]));
            if ((this.tableQAInspectFabricHeader != null)) {
                this.tableQAInspectFabricHeader.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.tableQAInspectFabricHeader = new QAInspectFabricHeaderDataTable();
            this.Tables.Add(this.tableQAInspectFabricHeader);
        }
        
        private bool ShouldSerializeQAInspectFabricHeader() {
            return false;
        }
        
        private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
            if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
                this.InitVars();
            }
        }
        
        public delegate void QAInspectFabricHeaderRowChangeEventHandler(object sender, QAInspectFabricHeaderRowChangeEvent e);
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class QAInspectFabricHeaderDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnFabric_No;
            
            private DataColumn columnCheck_Times;
            
            private DataColumn columnPPo_No;
            
            private DataColumn columnLot_No;
            
            private DataColumn columnBatch_No;
            
            private DataColumn columnDefect_Type;
            
            private DataColumn columnDefect_Name;
            
            private DataColumn columnDefect_Bulk;
            
            private DataColumn columnDefect_Sort;
            
            private DataColumn columnDefect_Start;
            
            private DataColumn columnDefect_End;
            
            private DataColumn columnDefect_ToLeft;
            
            internal QAInspectFabricHeaderDataTable() : 
                    base("QAInspectFabricHeader") {
                this.InitClass();
            }
            
            internal QAInspectFabricHeaderDataTable(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 Fabric_NoColumn {
                get {
                    return this.columnFabric_No;
                }
            }
            
            internal DataColumn Check_TimesColumn {
                get {
                    return this.columnCheck_Times;
                }
            }
            
            internal DataColumn PPo_NoColumn {
                get {
                    return this.columnPPo_No;
                }
            }
            
            internal DataColumn Lot_NoColumn {
                get {
                    return this.columnLot_No;
                }
            }
            
            internal DataColumn Batch_NoColumn {
                get {
                    return this.columnBatch_No;
                }
            }
            
            internal DataColumn Defect_TypeColumn {
                get {
                    return this.columnDefect_Type;
                }
            }
            
            internal DataColumn Defect_NameColumn {
                get {
                    return this.columnDefect_Name;
                }
            }
            
            internal DataColumn Defect_BulkColumn {
                get {
                    return this.columnDefect_Bulk;
                }
            }
            
            internal DataColumn Defect_SortColumn {
                get {
                    return this.columnDefect_Sort;
                }
            }
            
            internal DataColumn Defect_StartColumn {
                get {
                    return this.columnDefect_Start;
                }
            }
            
            internal DataColumn Defect_EndColumn {
                get {
                    return this.columnDefect_End;
                }
            }
            
            internal DataColumn Defect_ToLeftColumn {
                get {
                    return this.columnDefect_ToLeft;
                }
            }
            
            public QAInspectFabricHeaderRow this[int index] {
                get {
                    return ((QAInspectFabricHeaderRow)(this.Rows[index]));
                }
            }
            
            public event QAInspectFabricHeaderRowChangeEventHandler QAInspectFabricHeaderRowChanged;
            
            public event QAInspectFabricHeaderRowChangeEventHandler QAInspectFabricHeaderRowChanging;
            
            public event QAInspectFabricHeaderRowChangeEventHandler QAInspectFabricHeaderRowDeleted;
            
            public event QAInspectFabricHeaderRowChangeEventHandler QAInspectFabricHeaderRowDeleting;
            
            public void AddQAInspectFabricHeaderRow(QAInspectFabricHeaderRow row) {
                this.Rows.Add(row);
            }
            
            public QAInspectFabricHeaderRow AddQAInspectFabricHeaderRow(string Fabric_No, int Check_Times, string PPo_No, int Lot_No, string Batch_No, string Defect_Type, string Defect_Name, System.Byte Defect_Bulk, string Defect_Sort, System.Decimal Defect_Start, System.Decimal Defect_End, System.Decimal Defect_ToLeft) {
                QAInspectFabricHeaderRow rowQAInspectFabricHeaderRow = ((QAInspectFabricHeaderRow)(this.NewRow()));
                rowQAInspectFabricHeaderRow.ItemArray = new object[] {
                        Fabric_No,
                        Check_Times,
                        PPo_No,
                        Lot_No,
                        Batch_No,
                        Defect_Type,
                        Defect_Name,
                        Defect_Bulk,
                        Defect_Sort,
                        Defect_Start,
                        Defect_End,
                        Defect_ToLeft};
                this.Rows.Add(rowQAInspectFabricHeaderRow);
                return rowQAInspectFabricHeaderRow;
            }
            
            public QAInspectFabricHeaderRow FindByFabric_NoCheck_Times(string Fabric_No, int Check_Times) {
                return ((QAInspectFabricHeaderRow)(this.Rows.Find(new object[] {
                            Fabric_No,

⌨️ 快捷键说明

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