Exemplo n.º 1
0
 public void fillLstByAsn(IDbTransaction trans = null)
 {
     try
     {
         this.comm = GenericDataAccess.CreateCommandSP("sp_Asn_transporte_sello");
         addParameters(5);
         if (trans == null)
         {
             this.dt = GenericDataAccess.ExecuteSelectCommand(comm);
         }
         else
         {
             this.dt = GenericDataAccess.ExecuteSelectCommand(comm, trans);
         }
         this._lst = new List <Asn_transporte_sello>();
         foreach (DataRow dr in dt.Rows)
         {
             Asn_transporte_sello o = new Asn_transporte_sello();
             BindByDataRow(dr, o);
             this._lst.Add(o);
         }
     }
     catch
     {
         throw;
     }
 }
Exemplo n.º 2
0
 protected void BindByDataRow(DataRow dr, Asn_transporte_sello o)
 {
     try {
         int.TryParse(dr["id"].ToString(), out entero);
         o.Id   = entero;
         entero = 0;
         if (dr["id_asn"] != DBNull.Value)
         {
             int.TryParse(dr["id_asn"].ToString(), out entero);
             o.Id_asn = entero;
             entero   = 0;
         }
         o.Contenedor = dr["contenedor"].ToString();
         o.Sello      = dr["sello"].ToString();
     } catch  {
         throw;
     }
 }
Exemplo n.º 3
0
 public Asn_transporte_selloMng()
 {
     this._oAsn_transporte_sellos = new Asn_transporte_sello();
     this._lst = new List <Asn_transporte_sello>();
 }