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