Exemplo n.º 1
0
 public static void UbicacionChangeStatus(Ubicacion o, bool status)
 {
     try
     {
         UbicacionMng oMng = new UbicacionMng();
         oMng.O_Ubicacion = o;
         if (status)
         {
             oMng.dlt();
         }
         else
         {
             oMng.reactive();
         }
     }
     catch
     {
         throw;
     }
 }
Exemplo n.º 2
0
 protected void BindByDataRow(DataRow dr, Ubicacion o)
 {
     try
     {
         int.TryParse(dr["id"].ToString(), out entero);
         o.Id     = entero;
         entero   = 0;
         o.Nombre = dr["nombre"].ToString();
         if (dr["IsActive"] != DBNull.Value)
         {
             bool.TryParse(dr["IsActive"].ToString(), out logica);
             o.IsActive = logica;
             logica     = false;
         }
     }
     catch
     {
         throw;
     }
 }
Exemplo n.º 3
0
 public override void fillLst()
 {
     try
     {
         this.comm = GenericDataAccess.CreateCommandSP("sp_Ubicacion");
         addParameters(0);
         this.dt   = GenericDataAccess.ExecuteSelectCommand(comm);
         this._lst = new List <Ubicacion>();
         foreach (DataRow dr in dt.Rows)
         {
             Ubicacion o = new Ubicacion();
             BindByDataRow(dr, o);
             this._lst.Add(o);
         }
     }
     catch
     {
         throw;
     }
 }
Exemplo n.º 4
0
 public UbicacionMng()
 {
     this._oUbicacion = new Ubicacion();
     this._lst        = new List <Ubicacion>();
 }