예제 #1
0
 public void delete(TipoTiquete tipo)
 {
     try
     {
         _crudFactory.Delete(tipo);
         gestorAccion.delete(AccionPara);
     }
     catch (TRV_Exception ex)
     {
         throw ex;
     }
 }
예제 #2
0
 public void DeleteVagon(Vagon vagon)
 {
     if (!string.IsNullOrEmpty(vagon.IdVagon + ""))
     {
         _crudFactory.Delete(vagon);
         gestorAccion.delete(AccionPara);
     }
     else
     {
         //throw gestor.ControlarExcepcion(new ErpException(ErpException.ExceptionCode.NoHaSeleccionadoCliente));
     }
 }
예제 #3
0
 public void DeleteEstacion(Estacion estacion)
 {
     try
     {
         _crudFactory.Delete(estacion);
         gestorAccion.delete(AccionPara);
     }
     catch (TRV_Exception ex)
     {
         throw ex;
     }
 }
예제 #4
0
 public void DeleteLinea(Linea linea)
 {
     try
     {
         _crudFactory.Delete(linea);
         gestorAccion.delete(AccionPara);
     }
     catch (TRV_Exception ex)
     {
         throw ex;
     }
 }
예제 #5
0
 public void delete(Convenio convenio)
 {
     try
     {
         _crudFactory.Delete(convenio);
         gestorAccion.delete(AccionPara);
     }
     catch (TRV_Exception ex)
     {
         throw ex;
     }
 }
예제 #6
0
 public void Delete(Incidencia incidencia)
 {
     if (!string.IsNullOrEmpty(Convert.ToString(incidencia.Codigo)))
     {
         _crudFactory.Delete(incidencia);
         gestorAccion.delete(AccionPara);
     }
     else
     {
         throw new Exception();
     }
 }
예제 #7
0
 public void Delete(Cliente cliente)
 {
     if (!string.IsNullOrEmpty(Convert.ToString(cliente.Cedula)))
     {
         _crudFactory.Delete(cliente);
         gestorAccion.delete(AccionPara);
     }
     else
     {
         throw new Exception();
     }
 }
예제 #8
0
 public void delete(Usuario usuario)
 {
     try
     {
         _crudFactory.Delete(usuario);
         gestorAccion.delete(AccionPara);
     }
     catch (TRV_Exception ex)
     {
         throw ex;
     }
 }
예제 #9
0
 public void Delete(Permiso permiso)
 {
     try
     {
         _crudFactory.Delete(permiso);
         gestorAccion.delete(AccionPara);
     }
     catch (TRV_Exception ex)
     {
         throw ex;
     }
     catch (SqlException sqlEx)
     {
         if (sqlEx.Number == 547) //2627, es para llaves duplicadas.
         {
             throw gestorEx.controlarExcepcion(new TRV_Exception(TRV_Exception.ExceptionCode.PermisosConPuesto));
         }
     }
     catch (Exception e)
     {
         throw e;
     }
 }