RgpdFileInfo.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using sage.ew.interficies;
6 
7 namespace sage.addons.rgpd.Negocio
8 {
12  internal abstract class RgpdFileInfo : IRgpdFileInfo
13  {
17  public int _IdCarpeta
18  {
19  get { return _nIdCarpeta; }
20  set { _nIdCarpeta = value; }
21  }
22  int _nIdCarpeta = 0;
23 
27  public int _IdFichero
28  {
29  get { return _nIdFichero; }
30  set { _nIdFichero = value; }
31  }
32  int _nIdFichero = 0;
33 
37  public string _Ruta
38  {
39  get { return _cRuta; }
40  set { _cRuta = value; }
41  }
42  string _cRuta = string.Empty;
43 
47  public string _NombreIndentificativo
48  {
49  get { return _cNombreIndentificativo; }
50  set { _cNombreIndentificativo = value; }
51  }
52  string _cNombreIndentificativo = string.Empty;
53 
54  #region Constructores
55 
59  private RgpdFileInfo() { } //Nada de constructor sin parámetros
60 
64  public RgpdFileInfo(int tnIdCarpeta = 0, int tnIdFichero = 0, string tcRuta = "", string tcNombreIndentificativo = "")
65  {
66  _nIdCarpeta = tnIdCarpeta;
67  _nIdFichero = tnIdFichero;
68  _cRuta = tcRuta;
69  _cNombreIndentificativo = tcNombreIndentificativo;
70  }
71 
72  #endregion Constructores
73  }
74 
78  internal class RgpdFileInfoConsentimiento : RgpdFileInfo
79  {
80 
81  internal RgpdFileInfoConsentimiento(int tnIdFichero = 0, string tcRuta = "", string tcNombreIdentificativo = "") :
82  base(RgpdConfig._IdCarpetaConsentimiento, tnIdFichero, tcRuta, tcNombreIdentificativo) //Utiliza constructor de la base prefijando parámetro de carpeta
83  {
84 
85  }
86  }
87 
91  internal class RgpdFileInfoSupresion : RgpdFileInfo
92  {
93 
94  internal RgpdFileInfoSupresion(int tnIdFichero = 0, string tcRuta = "", string tcNombreIdentificativo = "") :
95  base(RgpdConfig._IdCarpetaSupresion, tnIdFichero, tcRuta, tcNombreIdentificativo) //Utiliza constructor de la base prefijando parámetro de carpeta
96  {
97 
98  }
99  }
100 
104  internal class RgpdFileInfoAcceso : RgpdFileInfo
105  {
106 
107  internal RgpdFileInfoAcceso(int tnIdFichero = 0, string tcRuta = "", string tcNombreIdentificativo = "") :
108  base(RgpdConfig._IdCarpetaAcceso, tnIdFichero, tcRuta, tcNombreIdentificativo) //Utiliza constructor de la base prefijando parámetro de carpeta
109  {
110 
111  }
112  }
113 }
Interficie de parámetros para un fichero de la RGPD
Es como el tipo de entrada asientos pero por negocio, sin formulario, pq quiero que me haga las propu...