TrazaLog.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Data;
6 
7 namespace sage.addons.rgpd.Negocio
8 {
12  internal class TrazaLog
13  {
14  #region PROPIEDADES INTERNAS
15 
16  private string _cEmpresa = string.Empty;
17  private string _cEntidad = string.Empty;
18  private int _nIdTrazaRgpd = 0;
19  private string _cEntidadVal = string.Empty;
20  private DateTime? _dFecha = null;
21  private string _cUsuario = string.Empty;
22  private string _cValorant = string.Empty;
23  private string _cValoract = string.Empty;
24  private int _nTipoMov = 0;
25  private string _cDescripcion = string.Empty;
26  private string _cGrupo = string.Empty;
27 
28  #endregion
29 
30  #region PROPIEDADES PUBLICAS
31 
35  public string _Empresa
36  {
37  get
38  {
39  return _cEmpresa.Trim();
40  }
41  set
42  {
43  _cEmpresa = value;
44  }
45  }
46 
50  public string _Entidad
51  {
52  get
53  {
54  return _cEntidad.Trim();
55  }
56  set
57  {
58  _cEntidad = value;
59  }
60  }
61 
65  public int _IdTrazaRgpd
66  {
67  get
68  {
69  return _nIdTrazaRgpd;
70  }
71  set
72  {
73  _nIdTrazaRgpd = value;
74  }
75  }
76 
80  public string _EntidadVal
81  {
82  get
83  {
84  return _cEntidadVal.Trim();
85  }
86  set
87  {
88  _cEntidadVal = value;
89  }
90  }
91 
95  public DateTime? _Fecha
96  {
97  get
98  {
99  return _dFecha;
100  }
101  set
102  {
103  _dFecha = value;
104  }
105  }
106 
110  public string _Usuario
111  {
112  get
113  {
114  return _cUsuario.Trim();
115  }
116  set
117  {
118  _cUsuario = value;
119  }
120  }
121 
125  public string _ValorAnt
126  {
127  get
128  {
129  return _cValorant.Trim();
130  }
131  set
132  {
133  _cValorant = value;
134  }
135  }
136 
137  public string _ValorAct
138  {
139  get
140  {
141  return _cValoract.Trim();
142  }
143  set
144  {
145  _cValoract = value;
146  }
147  }
148 
152  public int _TipoMov
153  {
154  get
155  {
156  return _nTipoMov;
157  }
158  set
159  {
160  _nTipoMov = value;
161  }
162  }
163 
167  public string _DescripcionTipoMov
168  {
169  get
170  {
171  string lcDescripcion = "";
172  switch (_TipoMov)
173  {
174  case 1:
175  lcDescripcion = "Alta";
176  break;
177 
178  case 2:
179  lcDescripcion = "Modificación";
180  break;
181  }
182 
183  return lcDescripcion;
184  }
185  }
186 
190  public string _Descripcion
191  {
192  get
193  {
194  return _cDescripcion.Trim();
195  }
196  set
197  {
198  _cDescripcion = value;
199  }
200  }
201 
205  public string _Grupo
206  {
207  get
208  {
209  return _cGrupo.Trim();
210  }
211  set
212  {
213  _cGrupo = value;
214  }
215  }
216 
217  #endregion
218 
223  public TrazaLog(DataRow tdrTrazalog = null)
224  {
225  if (tdrTrazalog != null)
226  {
227  _cEmpresa = tdrTrazalog["empresa"].ToString();
228  _cEntidad = tdrTrazalog["entidad"].ToString();
229  _nIdTrazaRgpd = Convert.ToInt32(tdrTrazalog["idtrazrgpd"]);
230  _cEntidadVal = tdrTrazalog["entidadval"].ToString();
231  _dFecha = Convert.ToDateTime(tdrTrazalog["fecha"]);
232  _cUsuario = tdrTrazalog["usuario"].ToString();
233  _cValorant = tdrTrazalog["valorant"].ToString();
234  _cValoract = tdrTrazalog["valoract"].ToString();
235  _nTipoMov = Convert.ToInt32(tdrTrazalog["tipomov"]);
236  _cDescripcion = tdrTrazalog["nombre"].ToString();
237  _cGrupo = tdrTrazalog["grupo"].ToString();
238  }
239  }
240  }
241 }
Es como el tipo de entrada asientos pero por negocio, sin formulario, pq quiero que me haga las propu...