comparison 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
comparison
equal deleted inserted replaced
9:904a9faadf8b 10:443821e55f06
1 /*
2 The MIT License
3
4 Copyright (c) 2009-2010. Carlos Guzmán Álvarez. http://chronoswpf.codeplex.com/
5
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated documentation files (the "Software"), to deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 copies of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
12
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
15
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 THE SOFTWARE.
23 */
24
25 using System;
26 using System.ComponentModel;
27
28 namespace Chronos.Modules.Sample.Models
29 {
30 public partial class EmpresaEntity
31 : INotifyPropertyChanged, IDataErrorInfo
32 {
33 #region · INotifyPropertyChanged Members ·
34
35 public event PropertyChangedEventHandler PropertyChanged;
36
37 #endregion
38
39 #region · Fields ·
40
41 private string _idEmpresa;
42 private string _cif;
43 private string _idEpigrafeIae;
44 private string _idCnae;
45 private string _nombre;
46 private string _nombreComercial;
47 private string _idTipoVia;
48 private string _direccion;
49 private string _numeroBloque;
50 private string _piso;
51 private string _puerta;
52 private string _codigoPostal;
53 private string _ciudad;
54 private string _provincia;
55 private string _pais;
56 private string _telefono1;
57 private string _telefono2;
58 private string _fax1;
59 private string _fax2;
60 private string _www;
61 private string _email;
62
63 #endregion
64
65 #region · Properties ·
66
67 public string IdEmpresa
68 {
69 get { return _idEmpresa; }
70 set
71 {
72 if (_idEmpresa != value)
73 {
74 _idEmpresa = value;
75 OnPropertyChanged("IdEmpresa");
76 }
77 }
78 }
79
80 public string Cif
81 {
82 get { return _cif; }
83 set
84 {
85 if (_cif != value)
86 {
87 _cif = value;
88 OnPropertyChanged("Cif");
89 }
90 }
91 }
92
93 public string IdEpigrafeIae
94 {
95 get { return _idEpigrafeIae; }
96 set
97 {
98 if (_idEpigrafeIae != value)
99 {
100 _idEpigrafeIae = value;
101 OnPropertyChanged("IdEpigrafeIae");
102 }
103 }
104 }
105
106 public string IdCnae
107 {
108 get { return _idCnae; }
109 set
110 {
111 if (_idCnae != value)
112 {
113 _idCnae = value;
114 OnPropertyChanged("IdCnae");
115 }
116 }
117 }
118
119 public string Nombre
120 {
121 get { return _nombre; }
122 set
123 {
124 if (_nombre != value)
125 {
126 _nombre = value;
127 OnPropertyChanged("Nombre");
128 }
129 }
130 }
131
132 public string NombreComercial
133 {
134 get { return _nombreComercial; }
135 set
136 {
137 if (_nombreComercial != value)
138 {
139 _nombreComercial = value;
140 OnPropertyChanged("NombreComercial");
141 }
142 }
143 }
144
145 public string IdTipoVia
146 {
147 get { return _idTipoVia; }
148 set
149 {
150 if (_idTipoVia != value)
151 {
152 _idTipoVia = value;
153 OnPropertyChanged("IdTipoVia");
154 }
155 }
156 }
157
158 public string Direccion
159 {
160 get { return _direccion; }
161 set
162 {
163 if (_direccion != value)
164 {
165 _direccion = value;
166 OnPropertyChanged("Direccion");
167 }
168 }
169 }
170
171 public string NumeroBloque
172 {
173 get { return _numeroBloque; }
174 set
175 {
176 if (_numeroBloque != value)
177 {
178 _numeroBloque = value;
179 OnPropertyChanged("NumeroBloque");
180 }
181 }
182 }
183
184 public string Piso
185 {
186 get { return _piso; }
187 set
188 {
189 if (_piso != value)
190 {
191 _piso = value;
192 OnPropertyChanged("Piso");
193 }
194 }
195 }
196
197 public string Puerta
198 {
199 get { return _puerta; }
200 set
201 {
202 if (_puerta != value)
203 {
204 _puerta = value;
205 OnPropertyChanged("Puerta");
206 }
207 }
208 }
209
210 public string CodigoPostal
211 {
212 get { return _codigoPostal; }
213 set
214 {
215 if (_codigoPostal != value)
216 {
217 _codigoPostal = value;
218 OnPropertyChanged("CodigoPostal");
219 }
220 }
221 }
222
223 public string Ciudad
224 {
225 get { return _ciudad; }
226 set
227 {
228 if (_ciudad != value)
229 {
230 _ciudad = value;
231 OnPropertyChanged("Ciudad");
232 }
233 }
234 }
235
236 public string Provincia
237 {
238 get { return _provincia; }
239 set
240 {
241 if (_provincia != value)
242 {
243 _provincia = value;
244 OnPropertyChanged("Provincia");
245 }
246 }
247 }
248
249 public string Pais
250 {
251 get { return _pais; }
252 set
253 {
254 if (_pais != value)
255 {
256 _pais = value;
257 OnPropertyChanged("Pais");
258 }
259 }
260 }
261
262 public string Telefono1
263 {
264 get { return _telefono1; }
265 set
266 {
267 if (_telefono1 != value)
268 {
269 _telefono1 = value;
270 OnPropertyChanged("Telefono1");
271 }
272 }
273 }
274
275 public string Telefono2
276 {
277 get { return _telefono2; }
278 set
279 {
280 if (_telefono2 != value)
281 {
282 _telefono2 = value;
283 OnPropertyChanged("Telefono2");
284 }
285 }
286 }
287
288 public string Fax1
289 {
290 get { return _fax1; }
291 set
292 {
293 if (_fax1 != value)
294 {
295 _fax1 = value;
296 OnPropertyChanged("Fax1");
297 }
298 }
299 }
300
301 public string Fax2
302 {
303 get { return _fax2; }
304 set
305 {
306 if (_fax2 != value)
307 {
308 _fax2 = value;
309 OnPropertyChanged("Fax2");
310 }
311 }
312 }
313
314 public string Www
315 {
316 get { return _www; }
317 set
318 {
319 if (_www != value)
320 {
321 _www = value;
322 OnPropertyChanged("Www");
323 }
324 }
325 }
326
327 public string Email
328 {
329 get { return _email; }
330 set
331 {
332 if (_email != value)
333 {
334 _email = value;
335 OnPropertyChanged("Email");
336 }
337 }
338 }
339
340 #endregion
341
342 #region · IDataErrorInfo Members ·
343
344 public string Error
345 {
346 get { return null; }
347 }
348
349 public string this[string columnName]
350 {
351 get { return null; }
352 }
353
354 #endregion
355
356 #region · ChangeTracking ·
357
358 protected virtual void OnPropertyChanged(String propertyName)
359 {
360 if (PropertyChanged != null)
361 {
362 PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
363 }
364 }
365
366 #endregion
367 }
368 }