//------------------------------------------------------------------------------
// <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 DSResumenRemuneracion : DataSet {
        
        private ResumenRemuneracionDataTable tableResumenRemuneracion;
        
        public DSResumenRemuneracion() {
            this.InitClass();
            System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
            this.Tables.CollectionChanged += schemaChangedHandler;
            this.Relations.CollectionChanged += schemaChangedHandler;
        }
        
        protected DSResumenRemuneracion(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["ResumenRemuneracion"] != null)) {
                    this.Tables.Add(new ResumenRemuneracionDataTable(ds.Tables["ResumenRemuneracion"]));
                }
                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 ResumenRemuneracionDataTable ResumenRemuneracion {
            get {
                return this.tableResumenRemuneracion;
            }
        }
        
        public override DataSet Clone() {
            DSResumenRemuneracion cln = ((DSResumenRemuneracion)(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["ResumenRemuneracion"] != null)) {
                this.Tables.Add(new ResumenRemuneracionDataTable(ds.Tables["ResumenRemuneracion"]));
            }
            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.tableResumenRemuneracion = ((ResumenRemuneracionDataTable)(this.Tables["ResumenRemuneracion"]));
            if ((this.tableResumenRemuneracion != null)) {
                this.tableResumenRemuneracion.InitVars();
            }
        }
        
        private void InitClass() {
            this.DataSetName = "DSResumenRemuneracion";
            this.Prefix = "";
            this.Namespace = "http://tempuri.org/DSResumenRemuneracion.xsd";
            this.Locale = new System.Globalization.CultureInfo("en-US");
            this.CaseSensitive = false;
            this.EnforceConstraints = true;
            this.tableResumenRemuneracion = new ResumenRemuneracionDataTable();
            this.Tables.Add(this.tableResumenRemuneracion);
        }
        
        private bool ShouldSerializeResumenRemuneracion() {
            return false;
        }
        
        private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
            if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
                this.InitVars();
            }
        }
        
        public delegate void ResumenRemuneracionRowChangeEventHandler(object sender, ResumenRemuneracionRowChangeEvent e);
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class ResumenRemuneracionDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnLinea;
            
            private DataColumn columnCantidad;
            
            private DataColumn columnConcepto;
            
            private DataColumn columnTotal;
            
            private DataColumn columnTipo;
            
            internal ResumenRemuneracionDataTable() : 
                    base("ResumenRemuneracion") {
                this.InitClass();
            }
            
            internal ResumenRemuneracionDataTable(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 LineaColumn {
                get {
                    return this.columnLinea;
                }
            }
            
            internal DataColumn CantidadColumn {
                get {
                    return this.columnCantidad;
                }
            }
            
            internal DataColumn ConceptoColumn {
                get {
                    return this.columnConcepto;
                }
            }
            
            internal DataColumn TotalColumn {
                get {
                    return this.columnTotal;
                }
            }
            
            internal DataColumn TipoColumn {
                get {
                    return this.columnTipo;
                }
            }
            
            public ResumenRemuneracionRow this[int index] {
                get {
                    return ((ResumenRemuneracionRow)(this.Rows[index]));
                }
            }
            
            public event ResumenRemuneracionRowChangeEventHandler ResumenRemuneracionRowChanged;
            
            public event ResumenRemuneracionRowChangeEventHandler ResumenRemuneracionRowChanging;
            
            public event ResumenRemuneracionRowChangeEventHandler ResumenRemuneracionRowDeleted;
            
            public event ResumenRemuneracionRowChangeEventHandler ResumenRemuneracionRowDeleting;
            
            public void AddResumenRemuneracionRow(ResumenRemuneracionRow row) {
                this.Rows.Add(row);
            }
            
            public ResumenRemuneracionRow AddResumenRemuneracionRow(System.Byte Linea, System.Double Cantidad, string Concepto, int Total, int Tipo) {
                ResumenRemuneracionRow rowResumenRemuneracionRow = ((ResumenRemuneracionRow)(this.NewRow()));
                rowResumenRemuneracionRow.ItemArray = new object[] {
                        Linea,
                        Cantidad,
                        Concepto,
                        Total,
                        Tipo};
                this.Rows.Add(rowResumenRemuneracionRow);
                return rowResumenRemuneracionRow;
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                ResumenRemuneracionDataTable cln = ((ResumenRemuneracionDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new ResumenRemuneracionDataTable();
            }
            
            internal void InitVars() {
                this.columnLinea = this.Columns["Linea"];
                this.columnCantidad = this.Columns["Cantidad"];
                this.columnConcepto = this.Columns["Concepto"];
                this.columnTotal = this.Columns["Total"];
                this.columnTipo = this.Columns["Tipo"];
            }
            
            private void InitClass() {
                this.columnLinea = new DataColumn("Linea", typeof(System.Byte), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnLinea);
                this.columnCantidad = new DataColumn("Cantidad", typeof(System.Double), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnCantidad);
                this.columnConcepto = new DataColumn("Concepto", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnConcepto);
                this.columnTotal = new DataColumn("Total", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnTotal);
                this.columnTipo = new DataColumn("Tipo", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnTipo);
                this.columnLinea.ReadOnly = true;
            }
            
            public ResumenRemuneracionRow NewResumenRemuneracionRow() {
                return ((ResumenRemuneracionRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new ResumenRemuneracionRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(ResumenRemuneracionRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.ResumenRemuneracionRowChanged != null)) {
                    this.ResumenRemuneracionRowChanged(this, new ResumenRemuneracionRowChangeEvent(((ResumenRemuneracionRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.ResumenRemuneracionRowChanging != null)) {
                    this.ResumenRemuneracionRowChanging(this, new ResumenRemuneracionRowChangeEvent(((ResumenRemuneracionRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.ResumenRemuneracionRowDeleted != null)) {
                    this.ResumenRemuneracionRowDeleted(this, new ResumenRemuneracionRowChangeEvent(((ResumenRemuneracionRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.ResumenRemuneracionRowDeleting != null)) {
                    this.ResumenRemuneracionRowDeleting(this, new ResumenRemuneracionRowChangeEvent(((ResumenRemuneracionRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveResumenRemuneracionRow(ResumenRemuneracionRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class ResumenRemuneracionRow : DataRow {
            
            private ResumenRemuneracionDataTable tableResumenRemuneracion;
            
            internal ResumenRemuneracionRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableResumenRemuneracion = ((ResumenRemuneracionDataTable)(this.Table));
            }
            
            public System.Byte Linea {
                get {
                    try {
                        return ((System.Byte)(this[this.tableResumenRemuneracion.LineaColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableResumenRemuneracion.LineaColumn] = value;
                }
            }
            
            public System.Double Cantidad {
                get {
                    if (this.IsCantidadNull()) {
                        return 0;
                    }
                    else {
                        return ((System.Double)(this[this.tableResumenRemuneracion.CantidadColumn]));
                    }
                }
                set {
                    this[this.tableResumenRemuneracion.CantidadColumn] = value;
                }
            }
            
            public string Concepto {
                get {
                    if (this.IsConceptoNull()) {
                        return string.Empty;
                    }
                    else {
                        return ((string)(this[this.tableResumenRemuneracion.ConceptoColumn]));
                    }
                }
                set {
                    this[this.tableResumenRemuneracion.ConceptoColumn] = value;
                }
            }
            
            public int Total {
                get {
                    if (this.IsTotalNull()) {
                        return 0;
                    }
                    else {
                        return ((int)(this[this.tableResumenRemuneracion.TotalColumn]));
                    }
                }
                set {
                    this[this.tableResumenRemuneracion.TotalColumn] = value;
                }
            }
            
            public int Tipo {
                get {
                    if (this.IsTipoNull()) {
                        return 0;
                    }
                    else {
                        return ((int)(this[this.tableResumenRemuneracion.TipoColumn]));
                    }
                }
                set {
                    this[this.tableResumenRemuneracion.TipoColumn] = value;
                }
            }
            
            public bool IsLineaNull() {
                return this.IsNull(this.tableResumenRemuneracion.LineaColumn);
            }
            
            public void SetLineaNull() {
                this[this.tableResumenRemuneracion.LineaColumn] = System.Convert.DBNull;
            }
            
            public bool IsCantidadNull() {
                return this.IsNull(this.tableResumenRemuneracion.CantidadColumn);
            }
            
            public void SetCantidadNull() {
                this[this.tableResumenRemuneracion.CantidadColumn] = System.Convert.DBNull;
            }
            
            public bool IsConceptoNull() {
                return this.IsNull(this.tableResumenRemuneracion.ConceptoColumn);
            }
            
            public void SetConceptoNull() {
                this[this.tableResumenRemuneracion.ConceptoColumn] = System.Convert.DBNull;
            }
            
            public bool IsTotalNull() {
                return this.IsNull(this.tableResumenRemuneracion.TotalColumn);
            }
            
            public void SetTotalNull() {
                this[this.tableResumenRemuneracion.TotalColumn] = System.Convert.DBNull;
            }
            
            public bool IsTipoNull() {
                return this.IsNull(this.tableResumenRemuneracion.TipoColumn);
            }
            
            public void SetTipoNull() {
                this[this.tableResumenRemuneracion.TipoColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class ResumenRemuneracionRowChangeEvent : EventArgs {
            
            private ResumenRemuneracionRow eventRow;
            
            private DataRowAction eventAction;
            
            public ResumenRemuneracionRowChangeEvent(ResumenRemuneracionRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public ResumenRemuneracionRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}
