view Chronosv2/source/Modules/Sample/Models/EmpresaEntity.cs @ 10:443821e55f06

Initial cleaned up add from Codeplex files
author stevenh7776 stevenhollidge@hotmail.com
date Tue, 21 Feb 2012 17:25:44 +0700
parents
children 09d18d6e5f40
line wrap: on
line source

/*
The MIT License

Copyright (c) 2009-2010. Carlos Guzmán Álvarez. http://chronoswpf.codeplex.com/

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

using System;
using System.ComponentModel;

namespace Chronos.Modules.Sample.Models
{
    public partial class EmpresaEntity 
        : INotifyPropertyChanged, IDataErrorInfo
    {
        #region · INotifyPropertyChanged Members ·

        public event PropertyChangedEventHandler PropertyChanged;
        
        #endregion
        
        #region · Fields ·

        private string _idEmpresa;
        private string _cif;
        private string _idEpigrafeIae;
        private string _idCnae;
        private string _nombre;
        private string _nombreComercial;
        private string _idTipoVia;
        private string _direccion;
        private string _numeroBloque;
        private string _piso;
        private string _puerta;
        private string _codigoPostal;
        private string _ciudad;
        private string _provincia;
        private string _pais;
        private string _telefono1;
        private string _telefono2;
        private string _fax1;
        private string _fax2;
        private string _www;
        private string _email;

        #endregion

        #region · Properties ·

        public string IdEmpresa
        {
            get { return _idEmpresa; }
            set
            {
                if (_idEmpresa != value)
                {
                    _idEmpresa = value;
                    OnPropertyChanged("IdEmpresa");
                }
            }
        }

        public string Cif
        {
            get { return _cif; }
            set
            {
                if (_cif != value)
                {
                    _cif = value;
                    OnPropertyChanged("Cif");
                }
            }
        }

        public string IdEpigrafeIae
        {
            get { return _idEpigrafeIae; }
            set
            {
                if (_idEpigrafeIae != value)
                {
                    _idEpigrafeIae = value;
                    OnPropertyChanged("IdEpigrafeIae");
                }
            }
        }

        public string IdCnae
        {
            get { return _idCnae; }
            set
            {
                if (_idCnae != value)
                {
                    _idCnae = value;
                    OnPropertyChanged("IdCnae");
                }
            }
        }

        public string Nombre
        {
            get { return _nombre; }
            set
            {
                if (_nombre != value)
                {
                    _nombre = value;
                    OnPropertyChanged("Nombre");
                }
            }
        }

        public string NombreComercial
        {
            get { return _nombreComercial; }
            set
            {
                if (_nombreComercial != value)
                {
                    _nombreComercial = value;
                    OnPropertyChanged("NombreComercial");
                }
            }
        }

        public string IdTipoVia
        {
            get { return _idTipoVia; }
            set
            {
                if (_idTipoVia != value)
                {
                    _idTipoVia = value;
                    OnPropertyChanged("IdTipoVia");
                }
            }
        }

        public string Direccion
        {
            get { return _direccion; }
            set
            {
                if (_direccion != value)
                {
                    _direccion = value;
                    OnPropertyChanged("Direccion");
                }
            }
        }

        public string NumeroBloque
        {
            get { return _numeroBloque; }
            set
            {
                if (_numeroBloque != value)
                {
                    _numeroBloque = value;
                    OnPropertyChanged("NumeroBloque");
                }
            }
        }

        public string Piso
        {
            get { return _piso; }
            set
            {
                if (_piso != value)
                {
                    _piso = value;
                    OnPropertyChanged("Piso");
                }
            }
        }

        public string Puerta
        {
            get { return _puerta; }
            set
            {
                if (_puerta != value)
                {
                    _puerta = value;
                    OnPropertyChanged("Puerta");
                }
            }
        }

        public string CodigoPostal
        {
            get { return _codigoPostal; }
            set
            {
                if (_codigoPostal != value)
                {
                    _codigoPostal = value;
                    OnPropertyChanged("CodigoPostal");
                }
            }
        }

        public string Ciudad
        {
            get { return _ciudad; }
            set
            {
                if (_ciudad != value)
                {
                    _ciudad = value;
                    OnPropertyChanged("Ciudad");
                }
            }
        }

        public string Provincia
        {
            get { return _provincia; }
            set
            {
                if (_provincia != value)
                {
                    _provincia = value;
                    OnPropertyChanged("Provincia");
                }
            }
        }

        public string Pais
        {
            get { return _pais; }
            set
            {
                if (_pais != value)
                {
                    _pais = value;
                    OnPropertyChanged("Pais");
                }
            }
        }

        public string Telefono1
        {
            get { return _telefono1; }
            set
            {
                if (_telefono1 != value)
                {
                    _telefono1 = value;
                    OnPropertyChanged("Telefono1");
                }
            }
        }

        public string Telefono2
        {
            get { return _telefono2; }
            set
            {
                if (_telefono2 != value)
                {
                    _telefono2 = value;
                    OnPropertyChanged("Telefono2");
                }
            }
        }

        public string Fax1
        {
            get { return _fax1; }
            set
            {
                if (_fax1 != value)
                {
                    _fax1 = value;
                    OnPropertyChanged("Fax1");
                }
            }
        }

        public string Fax2
        {
            get { return _fax2; }
            set
            {
                if (_fax2 != value)
                {
                    _fax2 = value;
                    OnPropertyChanged("Fax2");
                }
            }
        }

        public string Www
        {
            get { return _www; }
            set
            {
                if (_www != value)
                {
                    _www = value;
                    OnPropertyChanged("Www");
                }
            }
        }

        public string Email
        {
            get { return _email; }
            set
            {
                if (_email != value)
                {
                    _email = value;
                    OnPropertyChanged("Email");
                }
            }
        }

        #endregion

        #region · IDataErrorInfo Members ·

        public string Error
        {
            get { return null; }
        }

        public string this[string columnName]
        {
            get { return null; }
        }
 
        #endregion

        #region · ChangeTracking ·

        protected virtual void OnPropertyChanged(String propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        #endregion
    }
}