4 namespace sage.ew.serie.PoC
6 internal class ReguserDTO
8 public string Empresa {
get;
set; }
9 public string Albaran {
get;
set; }
11 public int Linea {
get;
set; }
12 public string Serie {
get;
set; }
13 public string Lote {
get;
set; }
14 public string Ubica {
get;
set; }
15 public bool Vista {
get;
set; }
16 public string Numero {
get;
set; }
17 public bool Modelo {
get;
set; }
18 public DateTime? Fechalog {
get;
set; }
19 public string Guid_id {
get;
set; }
20 public DateTime Created {
get;
set; }
21 public DateTime Modified {
get;
set; }
23 public ReguserDTO() { }
25 public ReguserDTO(DataRow row) : this()
27 Empresa = Convert.ToString(row[
"Empresa"]).TrimEnd();
28 Albaran = Convert.ToString(row[
"Albaran"]).TrimEnd();
29 Articulo = Convert.ToString(row[
"Articulo"]).TrimEnd();
30 Linea = Convert.ToInt32(row[
"Linea"]);
31 Serie = Convert.ToString(row[
"Serie"]).TrimEnd();
32 Lote = Convert.ToString(row[
"Lote"]).TrimEnd();
33 Ubica = Convert.ToString(row[
"Ubica"]).TrimEnd();
34 Vista = Convert.ToBoolean(row[
"Vista"]);
35 Numero = Convert.ToString(row[
"Numero"]).TrimEnd();
36 Modelo = Convert.ToBoolean(row[
"Modelo"]);
37 Fechalog = row[
"Fechalog"] is DBNull ? null : (DateTime?)Convert.ToDateTime(row[
"Fechalog"]);
38 Guid_id = Convert.ToString(row[
"guid_id"]).TrimEnd();
39 Created = Convert.ToDateTime(row[
"Created"]);
40 Modified = Convert.ToDateTime(row[
"Modified"]);
Columna código de artículo