//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.1.4322.2032
//
//     Changes to this file may cause incorrect behavior and will be lost if 
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

namespace Remuneraciones.DataSetFT {
    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 DSTrabajadorBrowse : DataSet {
        
        private TrabajadorBrowseDataTable tableTrabajadorBrowse;
        
        private Table4DataTable tableTable4;
        
        private Table5DataTable tableTable5;
        
        public DSTrabajadorBrowse() {
            this.InitClass();
            System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
            this.Tables.CollectionChanged += schemaChangedHandler;
            this.Relations.CollectionChanged += schemaChangedHandler;
        }
        
        protected DSTrabajadorBrowse(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["TrabajadorBrowse"] != null)) {
                    this.Tables.Add(new TrabajadorBrowseDataTable(ds.Tables["TrabajadorBrowse"]));
                }
                if ((ds.Tables["Table4"] != null)) {
                    this.Tables.Add(new Table4DataTable(ds.Tables["Table4"]));
                }
                if ((ds.Tables["Table5"] != null)) {
                    this.Tables.Add(new Table5DataTable(ds.Tables["Table5"]));
                }
                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 TrabajadorBrowseDataTable TrabajadorBrowse {
            get {
                return this.tableTrabajadorBrowse;
            }
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public Table4DataTable Table4 {
            get {
                return this.tableTable4;
            }
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public Table5DataTable Table5 {
            get {
                return this.tableTable5;
            }
        }
        
        public override DataSet Clone() {
            DSTrabajadorBrowse cln = ((DSTrabajadorBrowse)(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["TrabajadorBrowse"] != null)) {
                this.Tables.Add(new TrabajadorBrowseDataTable(ds.Tables["TrabajadorBrowse"]));
            }
            if ((ds.Tables["Table4"] != null)) {
                this.Tables.Add(new Table4DataTable(ds.Tables["Table4"]));
            }
            if ((ds.Tables["Table5"] != null)) {
                this.Tables.Add(new Table5DataTable(ds.Tables["Table5"]));
            }
            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.tableTrabajadorBrowse = ((TrabajadorBrowseDataTable)(this.Tables["TrabajadorBrowse"]));
            if ((this.tableTrabajadorBrowse != null)) {
                this.tableTrabajadorBrowse.InitVars();
            }
            this.tableTable4 = ((Table4DataTable)(this.Tables["Table4"]));
            if ((this.tableTable4 != null)) {
                this.tableTable4.InitVars();
            }
            this.tableTable5 = ((Table5DataTable)(this.Tables["Table5"]));
            if ((this.tableTable5 != null)) {
                this.tableTable5.InitVars();
            }
        }
        
        private void InitClass() {
            this.DataSetName = "DSTrabajadorBrowse";
            this.Prefix = "";
            this.Namespace = "http://tempuri.org/DSTrabajadorBrowse.xsd";
            this.Locale = new System.Globalization.CultureInfo("en-US");
            this.CaseSensitive = false;
            this.EnforceConstraints = true;
            this.tableTrabajadorBrowse = new TrabajadorBrowseDataTable();
            this.Tables.Add(this.tableTrabajadorBrowse);
            this.tableTable4 = new Table4DataTable();
            this.Tables.Add(this.tableTable4);
            this.tableTable5 = new Table5DataTable();
            this.Tables.Add(this.tableTable5);
        }
        
        private bool ShouldSerializeTrabajadorBrowse() {
            return false;
        }
        
        private bool ShouldSerializeTable4() {
            return false;
        }
        
        private bool ShouldSerializeTable5() {
            return false;
        }
        
        private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
            if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
                this.InitVars();
            }
        }
        
        public delegate void TrabajadorBrowseRowChangeEventHandler(object sender, TrabajadorBrowseRowChangeEvent e);
        
        public delegate void Table4RowChangeEventHandler(object sender, Table4RowChangeEvent e);
        
        public delegate void Table5RowChangeEventHandler(object sender, Table5RowChangeEvent e);
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class TrabajadorBrowseDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnidTrabajador;
            
            private DataColumn columnRutt;
            
            private DataColumn columnPaterno;
            
            private DataColumn columnMaterno;
            
            private DataColumn columnNombre;
            
            private DataColumn columnRut;
            
            private DataColumn columnActivo;
            
            private DataColumn columnError;
            
            internal TrabajadorBrowseDataTable() : 
                    base("TrabajadorBrowse") {
                this.InitClass();
            }
            
            internal TrabajadorBrowseDataTable(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 idTrabajadorColumn {
                get {
                    return this.columnidTrabajador;
                }
            }
            
            internal DataColumn RuttColumn {
                get {
                    return this.columnRutt;
                }
            }
            
            internal DataColumn PaternoColumn {
                get {
                    return this.columnPaterno;
                }
            }
            
            internal DataColumn MaternoColumn {
                get {
                    return this.columnMaterno;
                }
            }
            
            internal DataColumn NombreColumn {
                get {
                    return this.columnNombre;
                }
            }
            
            internal DataColumn RutColumn {
                get {
                    return this.columnRut;
                }
            }
            
            internal DataColumn ActivoColumn {
                get {
                    return this.columnActivo;
                }
            }
            
            internal DataColumn ErrorColumn {
                get {
                    return this.columnError;
                }
            }
            
            public TrabajadorBrowseRow this[int index] {
                get {
                    return ((TrabajadorBrowseRow)(this.Rows[index]));
                }
            }
            
            public event TrabajadorBrowseRowChangeEventHandler TrabajadorBrowseRowChanged;
            
            public event TrabajadorBrowseRowChangeEventHandler TrabajadorBrowseRowChanging;
            
            public event TrabajadorBrowseRowChangeEventHandler TrabajadorBrowseRowDeleted;
            
            public event TrabajadorBrowseRowChangeEventHandler TrabajadorBrowseRowDeleting;
            
            public void AddTrabajadorBrowseRow(TrabajadorBrowseRow row) {
                this.Rows.Add(row);
            }
            
            public TrabajadorBrowseRow AddTrabajadorBrowseRow(string idTrabajador, int Rutt, string Paterno, string Materno, string Nombre, string Rut, string Activo, int Error) {
                TrabajadorBrowseRow rowTrabajadorBrowseRow = ((TrabajadorBrowseRow)(this.NewRow()));
                rowTrabajadorBrowseRow.ItemArray = new object[] {
                        idTrabajador,
                        Rutt,
                        Paterno,
                        Materno,
                        Nombre,
                        Rut,
                        Activo,
                        Error};
                this.Rows.Add(rowTrabajadorBrowseRow);
                return rowTrabajadorBrowseRow;
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                TrabajadorBrowseDataTable cln = ((TrabajadorBrowseDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new TrabajadorBrowseDataTable();
            }
            
            internal void InitVars() {
                this.columnidTrabajador = this.Columns["idTrabajador"];
                this.columnRutt = this.Columns["Rutt"];
                this.columnPaterno = this.Columns["Paterno"];
                this.columnMaterno = this.Columns["Materno"];
                this.columnNombre = this.Columns["Nombre"];
                this.columnRut = this.Columns["Rut"];
                this.columnActivo = this.Columns["Activo"];
                this.columnError = this.Columns["Error"];
            }
            
            private void InitClass() {
                this.columnidTrabajador = new DataColumn("idTrabajador", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnidTrabajador);
                this.columnRutt = new DataColumn("Rutt", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnRutt);
                this.columnPaterno = new DataColumn("Paterno", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnPaterno);
                this.columnMaterno = new DataColumn("Materno", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnMaterno);
                this.columnNombre = new DataColumn("Nombre", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnNombre);
                this.columnRut = new DataColumn("Rut", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnRut);
                this.columnActivo = new DataColumn("Activo", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnActivo);
                this.columnError = new DataColumn("Error", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnError);
                this.columnidTrabajador.AllowDBNull = false;
                this.columnRut.ReadOnly = true;
                this.columnActivo.ReadOnly = true;
            }
            
            public TrabajadorBrowseRow NewTrabajadorBrowseRow() {
                return ((TrabajadorBrowseRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new TrabajadorBrowseRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(TrabajadorBrowseRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.TrabajadorBrowseRowChanged != null)) {
                    this.TrabajadorBrowseRowChanged(this, new TrabajadorBrowseRowChangeEvent(((TrabajadorBrowseRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.TrabajadorBrowseRowChanging != null)) {
                    this.TrabajadorBrowseRowChanging(this, new TrabajadorBrowseRowChangeEvent(((TrabajadorBrowseRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.TrabajadorBrowseRowDeleted != null)) {
                    this.TrabajadorBrowseRowDeleted(this, new TrabajadorBrowseRowChangeEvent(((TrabajadorBrowseRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.TrabajadorBrowseRowDeleting != null)) {
                    this.TrabajadorBrowseRowDeleting(this, new TrabajadorBrowseRowChangeEvent(((TrabajadorBrowseRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveTrabajadorBrowseRow(TrabajadorBrowseRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class TrabajadorBrowseRow : DataRow {
            
            private TrabajadorBrowseDataTable tableTrabajadorBrowse;
            
            internal TrabajadorBrowseRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableTrabajadorBrowse = ((TrabajadorBrowseDataTable)(this.Table));
            }
            
            public string idTrabajador {
                get {
                    return ((string)(this[this.tableTrabajadorBrowse.idTrabajadorColumn]));
                }
                set {
                    this[this.tableTrabajadorBrowse.idTrabajadorColumn] = value;
                }
            }
            
            public int Rutt {
                get {
                    try {
                        return ((int)(this[this.tableTrabajadorBrowse.RuttColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableTrabajadorBrowse.RuttColumn] = value;
                }
            }
            
            public string Paterno {
                get {
                    try {
                        return ((string)(this[this.tableTrabajadorBrowse.PaternoColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableTrabajadorBrowse.PaternoColumn] = value;
                }
            }
            
            public string Materno {
                get {
                    try {
                        return ((string)(this[this.tableTrabajadorBrowse.MaternoColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableTrabajadorBrowse.MaternoColumn] = value;
                }
            }
            
            public string Nombre {
                get {
                    try {
                        return ((string)(this[this.tableTrabajadorBrowse.NombreColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableTrabajadorBrowse.NombreColumn] = value;
                }
            }
            
            public string Rut {
                get {
                    try {
                        return ((string)(this[this.tableTrabajadorBrowse.RutColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableTrabajadorBrowse.RutColumn] = value;
                }
            }
            
            public string Activo {
                get {
                    try {
                        return ((string)(this[this.tableTrabajadorBrowse.ActivoColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableTrabajadorBrowse.ActivoColumn] = value;
                }
            }
            
            public int Error {
                get {
                    try {
                        return ((int)(this[this.tableTrabajadorBrowse.ErrorColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableTrabajadorBrowse.ErrorColumn] = value;
                }
            }
            
            public bool IsRuttNull() {
                return this.IsNull(this.tableTrabajadorBrowse.RuttColumn);
            }
            
            public void SetRuttNull() {
                this[this.tableTrabajadorBrowse.RuttColumn] = System.Convert.DBNull;
            }
            
            public bool IsPaternoNull() {
                return this.IsNull(this.tableTrabajadorBrowse.PaternoColumn);
            }
            
            public void SetPaternoNull() {
                this[this.tableTrabajadorBrowse.PaternoColumn] = System.Convert.DBNull;
            }
            
            public bool IsMaternoNull() {
                return this.IsNull(this.tableTrabajadorBrowse.MaternoColumn);
            }
            
            public void SetMaternoNull() {
                this[this.tableTrabajadorBrowse.MaternoColumn] = System.Convert.DBNull;
            }
            
            public bool IsNombreNull() {
                return this.IsNull(this.tableTrabajadorBrowse.NombreColumn);
            }
            
            public void SetNombreNull() {
                this[this.tableTrabajadorBrowse.NombreColumn] = System.Convert.DBNull;
            }
            
            public bool IsRutNull() {
                return this.IsNull(this.tableTrabajadorBrowse.RutColumn);
            }
            
            public void SetRutNull() {
                this[this.tableTrabajadorBrowse.RutColumn] = System.Convert.DBNull;
            }
            
            public bool IsActivoNull() {
                return this.IsNull(this.tableTrabajadorBrowse.ActivoColumn);
            }
            
            public void SetActivoNull() {
                this[this.tableTrabajadorBrowse.ActivoColumn] = System.Convert.DBNull;
            }
            
            public bool IsErrorNull() {
                return this.IsNull(this.tableTrabajadorBrowse.ErrorColumn);
            }
            
            public void SetErrorNull() {
                this[this.tableTrabajadorBrowse.ErrorColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class TrabajadorBrowseRowChangeEvent : EventArgs {
            
            private TrabajadorBrowseRow eventRow;
            
            private DataRowAction eventAction;
            
            public TrabajadorBrowseRowChangeEvent(TrabajadorBrowseRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public TrabajadorBrowseRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class Table4DataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnidTrabajador;
            
            private DataColumn columnRutt;
            
            private DataColumn columnPaterno;
            
            private DataColumn columnMaterno;
            
            private DataColumn columnNombre;
            
            private DataColumn columnRut;
            
            private DataColumn columnActivo;
            
            private DataColumn columnError;
            
            internal Table4DataTable() : 
                    base("Table4") {
                this.InitClass();
            }
            
            internal Table4DataTable(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 idTrabajadorColumn {
                get {
                    return this.columnidTrabajador;
                }
            }
            
            internal DataColumn RuttColumn {
                get {
                    return this.columnRutt;
                }
            }
            
            internal DataColumn PaternoColumn {
                get {
                    return this.columnPaterno;
                }
            }
            
            internal DataColumn MaternoColumn {
                get {
                    return this.columnMaterno;
                }
            }
            
            internal DataColumn NombreColumn {
                get {
                    return this.columnNombre;
                }
            }
            
            internal DataColumn RutColumn {
                get {
                    return this.columnRut;
                }
            }
            
            internal DataColumn ActivoColumn {
                get {
                    return this.columnActivo;
                }
            }
            
            internal DataColumn ErrorColumn {
                get {
                    return this.columnError;
                }
            }
            
            public Table4Row this[int index] {
                get {
                    return ((Table4Row)(this.Rows[index]));
                }
            }
            
            public event Table4RowChangeEventHandler Table4RowChanged;
            
            public event Table4RowChangeEventHandler Table4RowChanging;
            
            public event Table4RowChangeEventHandler Table4RowDeleted;
            
            public event Table4RowChangeEventHandler Table4RowDeleting;
            
            public void AddTable4Row(Table4Row row) {
                this.Rows.Add(row);
            }
            
            public Table4Row AddTable4Row(string idTrabajador, int Rutt, string Paterno, string Materno, string Nombre, string Rut, string Activo, System.Byte Error) {
                Table4Row rowTable4Row = ((Table4Row)(this.NewRow()));
                rowTable4Row.ItemArray = new object[] {
                        idTrabajador,
                        Rutt,
                        Paterno,
                        Materno,
                        Nombre,
                        Rut,
                        Activo,
                        Error};
                this.Rows.Add(rowTable4Row);
                return rowTable4Row;
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                Table4DataTable cln = ((Table4DataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new Table4DataTable();
            }
            
            internal void InitVars() {
                this.columnidTrabajador = this.Columns["idTrabajador"];
                this.columnRutt = this.Columns["Rutt"];
                this.columnPaterno = this.Columns["Paterno"];
                this.columnMaterno = this.Columns["Materno"];
                this.columnNombre = this.Columns["Nombre"];
                this.columnRut = this.Columns["Rut"];
                this.columnActivo = this.Columns["Activo"];
                this.columnError = this.Columns["Error"];
            }
            
            private void InitClass() {
                this.columnidTrabajador = new DataColumn("idTrabajador", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnidTrabajador);
                this.columnRutt = new DataColumn("Rutt", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnRutt);
                this.columnPaterno = new DataColumn("Paterno", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnPaterno);
                this.columnMaterno = new DataColumn("Materno", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnMaterno);
                this.columnNombre = new DataColumn("Nombre", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnNombre);
                this.columnRut = new DataColumn("Rut", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnRut);
                this.columnActivo = new DataColumn("Activo", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnActivo);
                this.columnError = new DataColumn("Error", typeof(System.Byte), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnError);
                this.columnidTrabajador.AllowDBNull = false;
                this.columnRut.ReadOnly = true;
                this.columnActivo.ReadOnly = true;
            }
            
            public Table4Row NewTable4Row() {
                return ((Table4Row)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new Table4Row(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(Table4Row);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.Table4RowChanged != null)) {
                    this.Table4RowChanged(this, new Table4RowChangeEvent(((Table4Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.Table4RowChanging != null)) {
                    this.Table4RowChanging(this, new Table4RowChangeEvent(((Table4Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.Table4RowDeleted != null)) {
                    this.Table4RowDeleted(this, new Table4RowChangeEvent(((Table4Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.Table4RowDeleting != null)) {
                    this.Table4RowDeleting(this, new Table4RowChangeEvent(((Table4Row)(e.Row)), e.Action));
                }
            }
            
            public void RemoveTable4Row(Table4Row row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class Table4Row : DataRow {
            
            private Table4DataTable tableTable4;
            
            internal Table4Row(DataRowBuilder rb) : 
                    base(rb) {
                this.tableTable4 = ((Table4DataTable)(this.Table));
            }
            
            public string idTrabajador {
                get {
                    return ((string)(this[this.tableTable4.idTrabajadorColumn]));
                }
                set {
                    this[this.tableTable4.idTrabajadorColumn] = value;
                }
            }
            
            public int Rutt {
                get {
                    try {
                        return ((int)(this[this.tableTable4.RuttColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableTable4.RuttColumn] = value;
                }
            }
            
            public string Paterno {
                get {
                    try {
                        return ((string)(this[this.tableTable4.PaternoColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableTable4.PaternoColumn] = value;
                }
            }
            
            public string Materno {
                get {
                    try {
                        return ((string)(this[this.tableTable4.MaternoColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableTable4.MaternoColumn] = value;
                }
            }
            
            public string Nombre {
                get {
                    try {
                        return ((string)(this[this.tableTable4.NombreColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableTable4.NombreColumn] = value;
                }
            }
            
            public string Rut {
                get {
                    try {
                        return ((string)(this[this.tableTable4.RutColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableTable4.RutColumn] = value;
                }
            }
            
            public string Activo {
                get {
                    try {
                        return ((string)(this[this.tableTable4.ActivoColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableTable4.ActivoColumn] = value;
                }
            }
            
            public System.Byte Error {
                get {
                    try {
                        return ((System.Byte)(this[this.tableTable4.ErrorColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableTable4.ErrorColumn] = value;
                }
            }
            
            public bool IsRuttNull() {
                return this.IsNull(this.tableTable4.RuttColumn);
            }
            
            public void SetRuttNull() {
                this[this.tableTable4.RuttColumn] = System.Convert.DBNull;
            }
            
            public bool IsPaternoNull() {
                return this.IsNull(this.tableTable4.PaternoColumn);
            }
            
            public void SetPaternoNull() {
                this[this.tableTable4.PaternoColumn] = System.Convert.DBNull;
            }
            
            public bool IsMaternoNull() {
                return this.IsNull(this.tableTable4.MaternoColumn);
            }
            
            public void SetMaternoNull() {
                this[this.tableTable4.MaternoColumn] = System.Convert.DBNull;
            }
            
            public bool IsNombreNull() {
                return this.IsNull(this.tableTable4.NombreColumn);
            }
            
            public void SetNombreNull() {
                this[this.tableTable4.NombreColumn] = System.Convert.DBNull;
            }
            
            public bool IsRutNull() {
                return this.IsNull(this.tableTable4.RutColumn);
            }
            
            public void SetRutNull() {
                this[this.tableTable4.RutColumn] = System.Convert.DBNull;
            }
            
            public bool IsActivoNull() {
                return this.IsNull(this.tableTable4.ActivoColumn);
            }
            
            public void SetActivoNull() {
                this[this.tableTable4.ActivoColumn] = System.Convert.DBNull;
            }
            
            public bool IsErrorNull() {
                return this.IsNull(this.tableTable4.ErrorColumn);
            }
            
            public void SetErrorNull() {
                this[this.tableTable4.ErrorColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class Table4RowChangeEvent : EventArgs {
            
            private Table4Row eventRow;
            
            private DataRowAction eventAction;
            
            public Table4RowChangeEvent(Table4Row row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public Table4Row Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class Table5DataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnidTrabajador;
            
            private DataColumn columnRutt;
            
            private DataColumn columnPaterno;
            
            private DataColumn columnMaterno;
            
            private DataColumn columnNombre;
            
            private DataColumn columnRut;
            
            private DataColumn columnActivo;
            
            private DataColumn columnError;
            
            internal Table5DataTable() : 
                    base("Table5") {
                this.InitClass();
            }
            
            internal Table5DataTable(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 idTrabajadorColumn {
                get {
                    return this.columnidTrabajador;
                }
            }
            
            internal DataColumn RuttColumn {
                get {
                    return this.columnRutt;
                }
            }
            
            internal DataColumn PaternoColumn {
                get {
                    return this.columnPaterno;
                }
            }
            
            internal DataColumn MaternoColumn {
                get {
                    return this.columnMaterno;
                }
            }
            
            internal DataColumn NombreColumn {
                get {
                    return this.columnNombre;
                }
            }
            
            internal DataColumn RutColumn {
                get {
                    return this.columnRut;
                }
            }
            
            internal DataColumn ActivoColumn {
                get {
                    return this.columnActivo;
                }
            }
            
            internal DataColumn ErrorColumn {
                get {
                    return this.columnError;
                }
            }
            
            public Table5Row this[int index] {
                get {
                    return ((Table5Row)(this.Rows[index]));
                }
            }
            
            public event Table5RowChangeEventHandler Table5RowChanged;
            
            public event Table5RowChangeEventHandler Table5RowChanging;
            
            public event Table5RowChangeEventHandler Table5RowDeleted;
            
            public event Table5RowChangeEventHandler Table5RowDeleting;
            
            public void AddTable5Row(Table5Row row) {
                this.Rows.Add(row);
            }
            
            public Table5Row AddTable5Row(string idTrabajador, int Rutt, string Paterno, string Materno, string Nombre, string Rut, string Activo, System.Byte Error) {
                Table5Row rowTable5Row = ((Table5Row)(this.NewRow()));
                rowTable5Row.ItemArray = new object[] {
                        idTrabajador,
                        Rutt,
                        Paterno,
                        Materno,
                        Nombre,
                        Rut,
                        Activo,
                        Error};
                this.Rows.Add(rowTable5Row);
                return rowTable5Row;
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                Table5DataTable cln = ((Table5DataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new Table5DataTable();
            }
            
            internal void InitVars() {
                this.columnidTrabajador = this.Columns["idTrabajador"];
                this.columnRutt = this.Columns["Rutt"];
                this.columnPaterno = this.Columns["Paterno"];
                this.columnMaterno = this.Columns["Materno"];
                this.columnNombre = this.Columns["Nombre"];
                this.columnRut = this.Columns["Rut"];
                this.columnActivo = this.Columns["Activo"];
                this.columnError = this.Columns["Error"];
            }
            
            private void InitClass() {
                this.columnidTrabajador = new DataColumn("idTrabajador", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnidTrabajador);
                this.columnRutt = new DataColumn("Rutt", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnRutt);
                this.columnPaterno = new DataColumn("Paterno", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnPaterno);
                this.columnMaterno = new DataColumn("Materno", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnMaterno);
                this.columnNombre = new DataColumn("Nombre", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnNombre);
                this.columnRut = new DataColumn("Rut", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnRut);
                this.columnActivo = new DataColumn("Activo", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnActivo);
                this.columnError = new DataColumn("Error", typeof(System.Byte), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnError);
                this.columnidTrabajador.AllowDBNull = false;
                this.columnRut.ReadOnly = true;
                this.columnActivo.ReadOnly = true;
            }
            
            public Table5Row NewTable5Row() {
                return ((Table5Row)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new Table5Row(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(Table5Row);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.Table5RowChanged != null)) {
                    this.Table5RowChanged(this, new Table5RowChangeEvent(((Table5Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.Table5RowChanging != null)) {
                    this.Table5RowChanging(this, new Table5RowChangeEvent(((Table5Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.Table5RowDeleted != null)) {
                    this.Table5RowDeleted(this, new Table5RowChangeEvent(((Table5Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.Table5RowDeleting != null)) {
                    this.Table5RowDeleting(this, new Table5RowChangeEvent(((Table5Row)(e.Row)), e.Action));
                }
            }
            
            public void RemoveTable5Row(Table5Row row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class Table5Row : DataRow {
            
            private Table5DataTable tableTable5;
            
            internal Table5Row(DataRowBuilder rb) : 
                    base(rb) {
                this.tableTable5 = ((Table5DataTable)(this.Table));
            }
            
            public string idTrabajador {
                get {
                    return ((string)(this[this.tableTable5.idTrabajadorColumn]));
                }
                set {
                    this[this.tableTable5.idTrabajadorColumn] = value;
                }
            }
            
            public int Rutt {
                get {
                    try {
                        return ((int)(this[this.tableTable5.RuttColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableTable5.RuttColumn] = value;
                }
            }
            
            public string Paterno {
                get {
                    try {
                        return ((string)(this[this.tableTable5.PaternoColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableTable5.PaternoColumn] = value;
                }
            }
            
            public string Materno {
                get {
                    try {
                        return ((string)(this[this.tableTable5.MaternoColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableTable5.MaternoColumn] = value;
                }
            }
            
            public string Nombre {
                get {
                    try {
                        return ((string)(this[this.tableTable5.NombreColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableTable5.NombreColumn] = value;
                }
            }
            
            public string Rut {
                get {
                    try {
                        return ((string)(this[this.tableTable5.RutColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableTable5.RutColumn] = value;
                }
            }
            
            public string Activo {
                get {
                    try {
                        return ((string)(this[this.tableTable5.ActivoColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableTable5.ActivoColumn] = value;
                }
            }
            
            public System.Byte Error {
                get {
                    try {
                        return ((System.Byte)(this[this.tableTable5.ErrorColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableTable5.ErrorColumn] = value;
                }
            }
            
            public bool IsRuttNull() {
                return this.IsNull(this.tableTable5.RuttColumn);
            }
            
            public void SetRuttNull() {
                this[this.tableTable5.RuttColumn] = System.Convert.DBNull;
            }
            
            public bool IsPaternoNull() {
                return this.IsNull(this.tableTable5.PaternoColumn);
            }
            
            public void SetPaternoNull() {
                this[this.tableTable5.PaternoColumn] = System.Convert.DBNull;
            }
            
            public bool IsMaternoNull() {
                return this.IsNull(this.tableTable5.MaternoColumn);
            }
            
            public void SetMaternoNull() {
                this[this.tableTable5.MaternoColumn] = System.Convert.DBNull;
            }
            
            public bool IsNombreNull() {
                return this.IsNull(this.tableTable5.NombreColumn);
            }
            
            public void SetNombreNull() {
                this[this.tableTable5.NombreColumn] = System.Convert.DBNull;
            }
            
            public bool IsRutNull() {
                return this.IsNull(this.tableTable5.RutColumn);
            }
            
            public void SetRutNull() {
                this[this.tableTable5.RutColumn] = System.Convert.DBNull;
            }
            
            public bool IsActivoNull() {
                return this.IsNull(this.tableTable5.ActivoColumn);
            }
            
            public void SetActivoNull() {
                this[this.tableTable5.ActivoColumn] = System.Convert.DBNull;
            }
            
            public bool IsErrorNull() {
                return this.IsNull(this.tableTable5.ErrorColumn);
            }
            
            public void SetErrorNull() {
                this[this.tableTable5.ErrorColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class Table5RowChangeEvent : EventArgs {
            
            private Table5Row eventRow;
            
            private DataRowAction eventAction;
            
            public Table5RowChangeEvent(Table5Row row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public Table5Row Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}
