2 using System.Collections.Generic;
8 namespace sage.addons.rgpd
20 public string _CodigoEntidad
22 get {
return _cCodigoEntidad; }
23 set { _cCodigoEntidad = value; }
25 private string _cCodigoEntidad =
"";
30 public string _BaseDeDatos
32 get {
return _cBaseDeDatos; }
33 set { _cBaseDeDatos = value; }
35 private string _cBaseDeDatos =
"";
42 get {
return _cTabla; }
43 set { _cTabla = value; }
45 private string _cTabla =
"";
52 get {
return _cCampo; }
53 set { _cCampo = value; }
55 private string _cCampo =
"";
60 public string _CodigoCategoria
62 get {
return _cCodigoCategoria; }
63 set { _cCodigoCategoria = value; }
65 private string _cCodigoCategoria =
"";
70 public string _CodigoTratamiento
72 get {
return _cCodigoTratamiento; }
73 set { _cCodigoTratamiento = value; }
75 private string _cCodigoTratamiento =
"";
82 get {
return _cNombre; }
83 set { _cNombre = value; }
85 private string _cNombre =
"";
92 get {
return _lPortable; }
93 set { _lPortable = value; }
95 private bool _lPortable =
true;
100 public string _CampoInstancia
102 get {
return _cCampoInstancia; }
103 set { _cCampoInstancia = value; }
105 private string _cCampoInstancia =
"";
107 #endregion Propiedades 109 #region Constructores 114 public CampoSensible() { }
119 public CampoSensible(DataRow tdrRow)
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();
133 #endregion Constructores
InterfĂcie de un campo sensible