CampoSensible.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using sage.ew.interficies;
6 using System.Data;
7 
8 namespace sage.addons.rgpd
9 {
13  internal class CampoSensible : IRgpdCampoSensible
14  {
15  #region Propiedades
16 
20  public string _CodigoEntidad
21  {
22  get { return _cCodigoEntidad; }
23  set { _cCodigoEntidad = value; }
24  }
25  private string _cCodigoEntidad = "";
26 
30  public string _BaseDeDatos
31  {
32  get { return _cBaseDeDatos; }
33  set { _cBaseDeDatos = value; }
34  }
35  private string _cBaseDeDatos = "";
36 
40  public string _Tabla
41  {
42  get { return _cTabla; }
43  set { _cTabla = value; }
44  }
45  private string _cTabla = "";
46 
50  public string _Campo
51  {
52  get { return _cCampo; }
53  set { _cCampo = value; }
54  }
55  private string _cCampo = "";
56 
60  public string _CodigoCategoria
61  {
62  get { return _cCodigoCategoria; }
63  set { _cCodigoCategoria = value; }
64  }
65  private string _cCodigoCategoria = "";
66 
70  public string _CodigoTratamiento
71  {
72  get { return _cCodigoTratamiento; }
73  set { _cCodigoTratamiento = value; }
74  }
75  private string _cCodigoTratamiento = "";
76 
80  public string _Nombre
81  {
82  get { return _cNombre; }
83  set { _cNombre = value; }
84  }
85  private string _cNombre = "";
86 
90  public bool _Portable
91  {
92  get { return _lPortable; }
93  set { _lPortable = value; }
94  }
95  private bool _lPortable = true;
96 
100  public string _CampoInstancia
101  {
102  get { return _cCampoInstancia; }
103  set { _cCampoInstancia = value; }
104  }
105  private string _cCampoInstancia = "";
106 
107  #endregion Propiedades
108 
109  #region Constructores
110 
114  public CampoSensible() { }
115 
119  public CampoSensible(DataRow tdrRow)
120  {
121  //CODENT, BBDD, TABLA, CAMPO, NOMBRE, CODTRATA, CODCATEG, PORTABLE, CAMPOINS
122  _cCodigoEntidad = Convert.ToString(tdrRow["CODENT"]).TrimEnd();
123  _cBaseDeDatos = Convert.ToString(tdrRow["BBDD"]).TrimEnd();
124  _cTabla = Convert.ToString(tdrRow["TABLA"]).TrimEnd();
125  _cCampo = Convert.ToString(tdrRow["CAMPO"]).TrimEnd();
126  _cNombre = Convert.ToString(tdrRow["NOMBRE"]).TrimEnd();
127  _cCodigoTratamiento = Convert.ToString(tdrRow["CODTRATA"]).TrimEnd();
128  _cCodigoCategoria = Convert.ToString(tdrRow["CODCATEG"]).TrimEnd();
129  _lPortable = Convert.ToBoolean(tdrRow["PORTABLE"]);
130  _cCampoInstancia = Convert.ToString(tdrRow["CAMPOINS"]).TrimEnd();
131  }
132 
133  #endregion Constructores
134  }
135 }
InterfĂ­cie de un campo sensible
Definition: IRgpd.cs:61