Descripción del Modelo de Datos VentaInfoCotizacion

VentaInfoCotizacion

Licenciado bajo la Licencia Apache, Versión 2.0; Usted no puede usar este archivo excepto en conformidad con la Licencia. Usted puede obtener una copia de la Licencia en: http://www.php.net/license/3_01.txt. A menos que sea requerido por la ley aplicable o acordado por escrito, el software Distribuido bajo la licencia se distribuye en una "AS IS" o "COMO ESTA" BASE, SIN GARANTÍAS NI CONDICIONES DE NINGÚN TIPO, expresas o implícitas. Consulte la Licencia para los permisos y Limitaciones bajo la Licencia.

package Modelos\Datos\ventasinformacion
author Kevin Fonseca Isaza
author SICAM 20180612
copyright 2018 Cámara de Comercio de Santa Marta para el Magdalena
license PHP License 3.01
version 201809281032
link modelos/datos/ventasinformacion/VentaInfoCotizacion/
inherited_from \ModeloDatos

 Methods

Devuelve los registros de VentasInfoCotizaciones en estado ACTIVO.

activos() : Array
Static

Returns

Arrayde Objetos VentasInfoCotizaciones

Recibe los todos los datos del registro para ser actualizados, junto con el identificador del registro que se va ha actualizar.

actualizar($ventaInfoFiltroID, $ventaInfoCotizacionCANTIDADDATOS, $ventaInfoCotizacionOBSERVACIONES, $ventaInfoCotizacionCOSTO) : integer
Static

Parameters

$ventaInfoFiltroID

$ventaInfoCotizacionCANTIDADDATOS

$ventaInfoCotizacionOBSERVACIONES

$ventaInfoCotizacionCOSTO

Returns

integercantidad de registros actualziados en la operacion

Recibe un identificador y el Estado y actualiza el estado del registro

cambiarEstado(integer $ventaInfoCotizacionID, String $ventaInfoCotizacionESTADO) : integer
Static

Parameters

$ventaInfoCotizacionID

integer

Identificador del registro

$ventaInfoCotizacionESTADO

String

Nuevo estado del registro.

Returns

integerCantidad de registros desactivados

camposAlimentador()

camposAlimentador($ventaInfoSolicitudID) 
Static

Parameters

$ventaInfoSolicitudID

consultarAlimentador()

consultarAlimentador($ventaInfoSolicitudID) 
Static

Parameters

$ventaInfoSolicitudID

Recibe el Identificador del registro de VentaInfoCotizacion y devuelve un objeto con sus datos.

datos(integer $ventaInfoCotizacionID) : \Objeto
Static

Parameters

$ventaInfoCotizacionID

integer

Returns

\ObjetoVentaInfoCotizacion

Recibe el Identificador del registro de VentaInfoCotizacion y devuelve un objeto con sus datos completos con todas sus relacion.

datosCompletos(integer $ventaInfoCotizacionID) : \Objeto
Static

Parameters

$ventaInfoCotizacionID

integer

Returns

\ObjetoVentaInfoCotizacion

Recibe el Identificador del filtron y devuelve un objeto con sus datos.

datosPorFiltro($ventaInfoFiltroID) : \Objeto
Static

Parameters

$ventaInfoFiltroID

Returns

\ObjetoVentaInfoCotizacion

Recibe un identificador de VentasInfoCotizaciones y desactiva el registro.

desactivar(integer $ventaInfoCotizacionID) : integer
Static

Parameters

$ventaInfoCotizacionID

integer

Identificador del registro

Returns

integerCantidad de registros desactivados

descuentoCotizacion()

descuentoCotizacion($tipoPersona, $numDatos, $descmes, $afiliacion) 
Static

Parameters

$tipoPersona

$numDatos

$descmes

$afiliacion

Recibe un identificador de VentasInfoCotizaciones y elimina el registro.

eliminar(integer $ventaInfoCotizacionID) : integer
Static

Parameters

$ventaInfoCotizacionID

integer

Identificador del registro ha eliminar.

Returns

integerCantidad de registros eliminados

Recibe un identificador de VentasInfoCotizaciones crea el filtro para la consulta del alimentador.

filtrosAlimentador($ventaInfoSolicitudID) : 
Static

Parameters

$ventaInfoSolicitudID

Returns

Recibe Todos los datos de necesarios para la creación de un nuevo registro de VentasInfoCotizaciones.

guardar($ventaInfoFiltroID, $ventaInfoCotizacionCANTIDADDATOS, $ventaInfoCotizacionOBSERVACIONES, $ventaInfoCotizacionCOSTO) : integer
Static

Parameters

$ventaInfoFiltroID

$ventaInfoCotizacionCANTIDADDATOS

$ventaInfoCotizacionOBSERVACIONES

$ventaInfoCotizacionCOSTO

Returns

integercon el Identificador del Registro VentasInfoCotizaciones

esta funcion elemina tildes y caracteres especiales de una cadena de texto

limpiarCadena($string) 
Static

Parameters

$string

numeroRegistros()

numeroRegistros($ventaInfoSolicitudID) 
Static

Parameters

$ventaInfoSolicitudID

Recibe un identificador de VentasInfoCotizaciones y reactiva el registro.

reactivar(integer $ventaInfoCotizacionID) : integer
Static

Parameters

$ventaInfoCotizacionID

integer

Identificador del registro

Returns

integerCantidad de registros reactivados

Devuelve todos los registros de VentasInfoCotizaciones, según el estado.

todos(String $ventaInfoCotizacionESTADO = null) : Array
Static

Si no se envia el estado devuelve todos los registros sin importar su estado.

Parameters

$ventaInfoCotizacionESTADO

String

Returns

Arrayde Objetos VentasInfoCotizaciones

valorCotizacion()

valorCotizacion($filtro = array(), $ventaInfoCotizacionCANTIDADDATOS) 
Static

Parameters

$filtro

$ventaInfoCotizacionCANTIDADDATOS

 Constants

 

ACTIVO

ACTIVO = 'ACTIVO' 
 

DESACTIVO

DESACTIVO = 'DESACTIVO' 
 

SUSPENDIDO

SUSPENDIDO = 'SUSPENDIDO'