//------------------------------------------------------------------------------
// <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 JXC_MIS.UserTier.CommonForm {
    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 I_OperatorDataTable tableI_Operator;
        
        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["I_Operator"] != null)) {
                    this.Tables.Add(new I_OperatorDataTable(ds.Tables["I_Operator"]));
                }
                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 I_OperatorDataTable I_Operator {
            get {
                return this.tableI_Operator;
            }
        }
        
        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["I_Operator"] != null)) {
                this.Tables.Add(new I_OperatorDataTable(ds.Tables["I_Operator"]));
            }
            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.tableI_Operator = ((I_OperatorDataTable)(this.Tables["I_Operator"]));
            if ((this.tableI_Operator != null)) {
                this.tableI_Operator.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.tableI_Operator = new I_OperatorDataTable();
            this.Tables.Add(this.tableI_Operator);
        }
        
        private bool ShouldSerializeI_Operator() {
            return false;
        }
        
        private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
            if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
                this.InitVars();
            }
        }
        
        public delegate void I_OperatorRowChangeEventHandler(object sender, I_OperatorRowChangeEvent e);
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class I_OperatorDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnfcCode;
            
            private DataColumn columnfcHelpCode;
            
            private DataColumn columnfcName;
            
            private DataColumn columnfstrPassWord;
            
            private DataColumn columnfcRightlevel;
            
            internal I_OperatorDataTable() : 
                    base("I_Operator") {
                this.InitClass();
            }
            
            internal I_OperatorDataTable(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 fcCodeColumn {
                get {
                    return this.columnfcCode;
                }
            }
            
            internal DataColumn fcHelpCodeColumn {
                get {
                    return this.columnfcHelpCode;
                }
            }
            
            internal DataColumn fcNameColumn {
                get {
                    return this.columnfcName;
                }
            }
            
            internal DataColumn fstrPassWordColumn {
                get {
                    return this.columnfstrPassWord;
                }
            }
            
            internal DataColumn fcRightlevelColumn {
                get {
                    return this.columnfcRightlevel;
                }
            }
            
            public I_OperatorRow this[int index] {
                get {
                    return ((I_OperatorRow)(this.Rows[index]));
                }
            }
            
            public event I_OperatorRowChangeEventHandler I_OperatorRowChanged;
            
            public event I_OperatorRowChangeEventHandler I_OperatorRowChanging;
            
            public event I_OperatorRowChangeEventHandler I_OperatorRowDeleted;
            
            public event I_OperatorRowChangeEventHandler I_OperatorRowDeleting;
            
            public void AddI_OperatorRow(I_OperatorRow row) {
                this.Rows.Add(row);
            }
            
            public I_OperatorRow AddI_OperatorRow(string fcCode, string fcHelpCode, string fcName, string fstrPassWord, string fcRightlevel) {
                I_OperatorRow rowI_OperatorRow = ((I_OperatorRow)(this.NewRow()));
                rowI_OperatorRow.ItemArray = new object[] {
                        fcCode,
                        fcHelpCode,
                        fcName,
                        fstrPassWord,
                        fcRightlevel};
                this.Rows.Add(rowI_OperatorRow);
                return rowI_OperatorRow;
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                I_OperatorDataTable cln = ((I_OperatorDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new I_OperatorDataTable();
            }
            
            internal void InitVars() {
                this.columnfcCode = this.Columns["fcCode"];
                this.columnfcHelpCode = this.Columns["fcHelpCode"];
                this.columnfcName = this.Columns["fcName"];
                this.columnfstrPassWord = this.Columns["fstrPassWord"];
                this.columnfcRightlevel = this.Columns["fcRightlevel"];
            }
            
            private void InitClass() {
                this.columnfcCode = new DataColumn("fcCode", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnfcCode);
                this.columnfcHelpCode = new DataColumn("fcHelpCode", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnfcHelpCode);
                this.columnfcName = new DataColumn("fcName", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnfcName);
                this.columnfstrPassWord = new DataColumn("fstrPassWord", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnfstrPassWord);
                this.columnfcRightlevel = new DataColumn("fcRightlevel", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnfcRightlevel);
                this.columnfcCode.AllowDBNull = false;
            }
            
            public I_OperatorRow NewI_OperatorRow() {
                return ((I_OperatorRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new I_OperatorRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(I_OperatorRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.I_OperatorRowChanged != null)) {
                    this.I_OperatorRowChanged(this, new I_OperatorRowChangeEvent(((I_OperatorRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.I_OperatorRowChanging != null)) {
                    this.I_OperatorRowChanging(this, new I_OperatorRowChangeEvent(((I_OperatorRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.I_OperatorRowDeleted != null)) {
                    this.I_OperatorRowDeleted(this, new I_OperatorRowChangeEvent(((I_OperatorRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.I_OperatorRowDeleting != null)) {
                    this.I_OperatorRowDeleting(this, new I_OperatorRowChangeEvent(((I_OperatorRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveI_OperatorRow(I_OperatorRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class I_OperatorRow : DataRow {
            
            private I_OperatorDataTable tableI_Operator;
            
            internal I_OperatorRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableI_Operator = ((I_OperatorDataTable)(this.Table));
            }
            
            public string fcCode {
                get {
                    return ((string)(this[this.tableI_Operator.fcCodeColumn]));
                }
                set {
                    this[this.tableI_Operator.fcCodeColumn] = value;
                }
            }
            
            public string fcHelpCode {
                get {
                    try {
                        return ((string)(this[this.tableI_Operator.fcHelpCodeColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableI_Operator.fcHelpCodeColumn] = value;
                }
            }
            
            public string fcName {
                get {
                    try {
                        return ((string)(this[this.tableI_Operator.fcNameColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableI_Operator.fcNameColumn] = value;
                }
            }
            
            public string fstrPassWord {
                get {
                    try {
                        return ((string)(this[this.tableI_Operator.fstrPassWordColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableI_Operator.fstrPassWordColumn] = value;
                }
            }
            
            public string fcRightlevel {
                get {
                    try {
                        return ((string)(this[this.tableI_Operator.fcRightlevelColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableI_Operator.fcRightlevelColumn] = value;
                }
            }
            
            public bool IsfcHelpCodeNull() {
                return this.IsNull(this.tableI_Operator.fcHelpCodeColumn);
            }
            
            public void SetfcHelpCodeNull() {
                this[this.tableI_Operator.fcHelpCodeColumn] = System.Convert.DBNull;
            }
            
            public bool IsfcNameNull() {
                return this.IsNull(this.tableI_Operator.fcNameColumn);
            }
            
            public void SetfcNameNull() {
                this[this.tableI_Operator.fcNameColumn] = System.Convert.DBNull;
            }
            
            public bool IsfstrPassWordNull() {
                return this.IsNull(this.tableI_Operator.fstrPassWordColumn);
            }
            
            public void SetfstrPassWordNull() {
                this[this.tableI_Operator.fstrPassWordColumn] = System.Convert.DBNull;
            }
            
            public bool IsfcRightlevelNull() {
                return this.IsNull(this.tableI_Operator.fcRightlevelColumn);
            }
            
            public void SetfcRightlevelNull() {
                this[this.tableI_Operator.fcRightlevelColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class I_OperatorRowChangeEvent : EventArgs {
            
            private I_OperatorRow eventRow;
            
            private DataRowAction eventAction;
            
            public I_OperatorRowChangeEvent(I_OperatorRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public I_OperatorRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}
