コード例 #1
0
 public static void update(int t935_idcategoriaprofesional, int t941_idcolectivo)
 {
     try
     {
         IB.Progress.BLL.CategoriaColectivo rlb = new IB.Progress.BLL.CategoriaColectivo();
         rlb.Update(t935_idcategoriaprofesional, t941_idcolectivo);
         rlb.Dispose();
     }
     catch (Exception ex)
     {
         IB.Progress.Shared.Smtp.SendSMTP("Error al actualizar categoría/colectivo", ex.Message);
     }
 }
コード例 #2
0
    public static IB.Progress.Models.CategoriaColectivo catalogo()
    {
        IB.Progress.BLL.CategoriaColectivo dCategoriaColectivo = null;

        try
        {
            dCategoriaColectivo = new IB.Progress.BLL.CategoriaColectivo();

            IB.Progress.Models.CategoriaColectivo valores = dCategoriaColectivo.catalogo();

            dCategoriaColectivo.Dispose();

            return(valores);
        }
        catch (Exception ex)
        {
            if (dCategoriaColectivo != null)
            {
                dCategoriaColectivo.Dispose();
            }
            IB.Progress.Shared.Smtp.SendSMTP("Error al cargar el catálogo de categoría/colectivo.", ex.Message);
            throw ex;
        }
    }