//------------------------------------------------------------------------------
// <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 DSHorarios : DataSet {
        
        private HorariosDataTable tableHorarios;
        
        public DSHorarios() {
            this.InitClass();
            System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
            this.Tables.CollectionChanged += schemaChangedHandler;
            this.Relations.CollectionChanged += schemaChangedHandler;
        }
        
        protected DSHorarios(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["Horarios"] != null)) {
                    this.Tables.Add(new HorariosDataTable(ds.Tables["Horarios"]));
                }
                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 HorariosDataTable Horarios {
            get {
                return this.tableHorarios;
            }
        }
        
        public override DataSet Clone() {
            DSHorarios cln = ((DSHorarios)(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["Horarios"] != null)) {
                this.Tables.Add(new HorariosDataTable(ds.Tables["Horarios"]));
            }
            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.tableHorarios = ((HorariosDataTable)(this.Tables["Horarios"]));
            if ((this.tableHorarios != null)) {
                this.tableHorarios.InitVars();
            }
        }
        
        private void InitClass() {
            this.DataSetName = "DSHorarios";
            this.Prefix = "";
            this.Namespace = "http://tempuri.org/DSHorarios.xsd";
            this.Locale = new System.Globalization.CultureInfo("en-US");
            this.CaseSensitive = false;
            this.EnforceConstraints = true;
            this.tableHorarios = new HorariosDataTable();
            this.Tables.Add(this.tableHorarios);
        }
        
        private bool ShouldSerializeHorarios() {
            return false;
        }
        
        private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
            if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
                this.InitVars();
            }
        }
        
        public delegate void HorariosRowChangeEventHandler(object sender, HorariosRowChangeEvent e);
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class HorariosDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnIdNumero;
            
            private DataColumn columnMes;
            
            private DataColumn columnidHorario;
            
            private DataColumn columnNombre;
            
            private DataColumn columnHSemanal;
            
            private DataColumn columnTopeHoraExtra;
            
            private DataColumn columnLun;
            
            private DataColumn columnMar;
            
            private DataColumn columnMie;
            
            private DataColumn columnJue;
            
            private DataColumn columnVie;
            
            private DataColumn columnSab;
            
            private DataColumn columnDom;
            
            private DataColumn columnIduser;
            
            internal HorariosDataTable() : 
                    base("Horarios") {
                this.InitClass();
            }
            
            internal HorariosDataTable(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 IdNumeroColumn {
                get {
                    return this.columnIdNumero;
                }
            }
            
            internal DataColumn MesColumn {
                get {
                    return this.columnMes;
                }
            }
            
            internal DataColumn idHorarioColumn {
                get {
                    return this.columnidHorario;
                }
            }
            
            internal DataColumn NombreColumn {
                get {
                    return this.columnNombre;
                }
            }
            
            internal DataColumn HSemanalColumn {
                get {
                    return this.columnHSemanal;
                }
            }
            
            internal DataColumn TopeHoraExtraColumn {
                get {
                    return this.columnTopeHoraExtra;
                }
            }
            
            internal DataColumn LunColumn {
                get {
                    return this.columnLun;
                }
            }
            
            internal DataColumn MarColumn {
                get {
                    return this.columnMar;
                }
            }
            
            internal DataColumn MieColumn {
                get {
                    return this.columnMie;
                }
            }
            
            internal DataColumn JueColumn {
                get {
                    return this.columnJue;
                }
            }
            
            internal DataColumn VieColumn {
                get {
                    return this.columnVie;
                }
            }
            
            internal DataColumn SabColumn {
                get {
                    return this.columnSab;
                }
            }
            
            internal DataColumn DomColumn {
                get {
                    return this.columnDom;
                }
            }
            
            internal DataColumn IduserColumn {
                get {
                    return this.columnIduser;
                }
            }
            
            public HorariosRow this[int index] {
                get {
                    return ((HorariosRow)(this.Rows[index]));
                }
            }
            
            public event HorariosRowChangeEventHandler HorariosRowChanged;
            
            public event HorariosRowChangeEventHandler HorariosRowChanging;
            
            public event HorariosRowChangeEventHandler HorariosRowDeleted;
            
            public event HorariosRowChangeEventHandler HorariosRowDeleting;
            
            public void AddHorariosRow(HorariosRow row) {
                this.Rows.Add(row);
            }
            
            public HorariosRow AddHorariosRow(string IdNumero, short Mes, string idHorario, string Nombre, System.Double HSemanal, System.Double TopeHoraExtra, bool Lun, bool Mar, bool Mie, bool Jue, bool Vie, bool Sab, bool Dom, string Iduser) {
                HorariosRow rowHorariosRow = ((HorariosRow)(this.NewRow()));
                rowHorariosRow.ItemArray = new object[] {
                        IdNumero,
                        Mes,
                        idHorario,
                        Nombre,
                        HSemanal,
                        TopeHoraExtra,
                        Lun,
                        Mar,
                        Mie,
                        Jue,
                        Vie,
                        Sab,
                        Dom,
                        Iduser};
                this.Rows.Add(rowHorariosRow);
                return rowHorariosRow;
            }
            
            public HorariosRow FindByIdNumeroMesidHorario(string IdNumero, short Mes, string idHorario) {
                return ((HorariosRow)(this.Rows.Find(new object[] {
                            IdNumero,
                            Mes,
                            idHorario})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                HorariosDataTable cln = ((HorariosDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new HorariosDataTable();
            }
            
            internal void InitVars() {
                this.columnIdNumero = this.Columns["IdNumero"];
                this.columnMes = this.Columns["Mes"];
                this.columnidHorario = this.Columns["idHorario"];
                this.columnNombre = this.Columns["Nombre"];
                this.columnHSemanal = this.Columns["HSemanal"];
                this.columnTopeHoraExtra = this.Columns["TopeHoraExtra"];
                this.columnLun = this.Columns["Lun"];
                this.columnMar = this.Columns["Mar"];
                this.columnMie = this.Columns["Mie"];
                this.columnJue = this.Columns["Jue"];
                this.columnVie = this.Columns["Vie"];
                this.columnSab = this.Columns["Sab"];
                this.columnDom = this.Columns["Dom"];
                this.columnIduser = this.Columns["Iduser"];
            }
            
            private void InitClass() {
                this.columnIdNumero = new DataColumn("IdNumero", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnIdNumero);
                this.columnMes = new DataColumn("Mes", typeof(short), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnMes);
                this.columnidHorario = new DataColumn("idHorario", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnidHorario);
                this.columnNombre = new DataColumn("Nombre", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnNombre);
                this.columnHSemanal = new DataColumn("HSemanal", typeof(System.Double), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnHSemanal);
                this.columnTopeHoraExtra = new DataColumn("TopeHoraExtra", typeof(System.Double), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnTopeHoraExtra);
                this.columnLun = new DataColumn("Lun", typeof(bool), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnLun);
                this.columnMar = new DataColumn("Mar", typeof(bool), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnMar);
                this.columnMie = new DataColumn("Mie", typeof(bool), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnMie);
                this.columnJue = new DataColumn("Jue", typeof(bool), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnJue);
                this.columnVie = new DataColumn("Vie", typeof(bool), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnVie);
                this.columnSab = new DataColumn("Sab", typeof(bool), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnSab);
                this.columnDom = new DataColumn("Dom", typeof(bool), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnDom);
                this.columnIduser = new DataColumn("Iduser", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnIduser);
                this.Constraints.Add(new UniqueConstraint("DSHorariosKey1", new DataColumn[] {
                                this.columnIdNumero,
                                this.columnMes,
                                this.columnidHorario}, true));
                this.columnIdNumero.AllowDBNull = false;
                this.columnMes.AllowDBNull = false;
                this.columnidHorario.AllowDBNull = false;
                this.columnNombre.AllowDBNull = false;
                this.columnHSemanal.AllowDBNull = false;
                this.columnTopeHoraExtra.AllowDBNull = false;
            }
            
            public HorariosRow NewHorariosRow() {
                return ((HorariosRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new HorariosRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(HorariosRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.HorariosRowChanged != null)) {
                    this.HorariosRowChanged(this, new HorariosRowChangeEvent(((HorariosRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.HorariosRowChanging != null)) {
                    this.HorariosRowChanging(this, new HorariosRowChangeEvent(((HorariosRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.HorariosRowDeleted != null)) {
                    this.HorariosRowDeleted(this, new HorariosRowChangeEvent(((HorariosRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.HorariosRowDeleting != null)) {
                    this.HorariosRowDeleting(this, new HorariosRowChangeEvent(((HorariosRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveHorariosRow(HorariosRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class HorariosRow : DataRow {
            
            private HorariosDataTable tableHorarios;
            
            internal HorariosRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableHorarios = ((HorariosDataTable)(this.Table));
            }
            
            public string IdNumero {
                get {
                    return ((string)(this[this.tableHorarios.IdNumeroColumn]));
                }
                set {
                    this[this.tableHorarios.IdNumeroColumn] = value;
                }
            }
            
            public short Mes {
                get {
                    return ((short)(this[this.tableHorarios.MesColumn]));
                }
                set {
                    this[this.tableHorarios.MesColumn] = value;
                }
            }
            
            public string idHorario {
                get {
                    return ((string)(this[this.tableHorarios.idHorarioColumn]));
                }
                set {
                    this[this.tableHorarios.idHorarioColumn] = value;
                }
            }
            
            public string Nombre {
                get {
                    return ((string)(this[this.tableHorarios.NombreColumn]));
                }
                set {
                    this[this.tableHorarios.NombreColumn] = value;
                }
            }
            
            public System.Double HSemanal {
                get {
                    return ((System.Double)(this[this.tableHorarios.HSemanalColumn]));
                }
                set {
                    this[this.tableHorarios.HSemanalColumn] = value;
                }
            }
            
            public System.Double TopeHoraExtra {
                get {
                    return ((System.Double)(this[this.tableHorarios.TopeHoraExtraColumn]));
                }
                set {
                    this[this.tableHorarios.TopeHoraExtraColumn] = value;
                }
            }
            
            public bool Lun {
                get {
                    try {
                        return ((bool)(this[this.tableHorarios.LunColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableHorarios.LunColumn] = value;
                }
            }
            
            public bool Mar {
                get {
                    try {
                        return ((bool)(this[this.tableHorarios.MarColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableHorarios.MarColumn] = value;
                }
            }
            
            public bool Mie {
                get {
                    try {
                        return ((bool)(this[this.tableHorarios.MieColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableHorarios.MieColumn] = value;
                }
            }
            
            public bool Jue {
                get {
                    try {
                        return ((bool)(this[this.tableHorarios.JueColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableHorarios.JueColumn] = value;
                }
            }
            
            public bool Vie {
                get {
                    try {
                        return ((bool)(this[this.tableHorarios.VieColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableHorarios.VieColumn] = value;
                }
            }
            
            public bool Sab {
                get {
                    try {
                        return ((bool)(this[this.tableHorarios.SabColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableHorarios.SabColumn] = value;
                }
            }
            
            public bool Dom {
                get {
                    try {
                        return ((bool)(this[this.tableHorarios.DomColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableHorarios.DomColumn] = value;
                }
            }
            
            public string Iduser {
                get {
                    try {
                        return ((string)(this[this.tableHorarios.IduserColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableHorarios.IduserColumn] = value;
                }
            }
            
            public bool IsLunNull() {
                return this.IsNull(this.tableHorarios.LunColumn);
            }
            
            public void SetLunNull() {
                this[this.tableHorarios.LunColumn] = System.Convert.DBNull;
            }
            
            public bool IsMarNull() {
                return this.IsNull(this.tableHorarios.MarColumn);
            }
            
            public void SetMarNull() {
                this[this.tableHorarios.MarColumn] = System.Convert.DBNull;
            }
            
            public bool IsMieNull() {
                return this.IsNull(this.tableHorarios.MieColumn);
            }
            
            public void SetMieNull() {
                this[this.tableHorarios.MieColumn] = System.Convert.DBNull;
            }
            
            public bool IsJueNull() {
                return this.IsNull(this.tableHorarios.JueColumn);
            }
            
            public void SetJueNull() {
                this[this.tableHorarios.JueColumn] = System.Convert.DBNull;
            }
            
            public bool IsVieNull() {
                return this.IsNull(this.tableHorarios.VieColumn);
            }
            
            public void SetVieNull() {
                this[this.tableHorarios.VieColumn] = System.Convert.DBNull;
            }
            
            public bool IsSabNull() {
                return this.IsNull(this.tableHorarios.SabColumn);
            }
            
            public void SetSabNull() {
                this[this.tableHorarios.SabColumn] = System.Convert.DBNull;
            }
            
            public bool IsDomNull() {
                return this.IsNull(this.tableHorarios.DomColumn);
            }
            
            public void SetDomNull() {
                this[this.tableHorarios.DomColumn] = System.Convert.DBNull;
            }
            
            public bool IsIduserNull() {
                return this.IsNull(this.tableHorarios.IduserColumn);
            }
            
            public void SetIduserNull() {
                this[this.tableHorarios.IduserColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class HorariosRowChangeEvent : EventArgs {
            
            private HorariosRow eventRow;
            
            private DataRowAction eventAction;
            
            public HorariosRowChangeEvent(HorariosRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public HorariosRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}
