Documentation

ProcessoColheitaItemEntity extends Entity
in package

Table of Contents

Constants

auditlog  = ['exclude_fields' => ['dataHora']]
Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
const_values  = []
database  = \config\Config::DB_DEFAULT
db_table  = 'cad_produtos_perdas_sobras'
EMPRESTIMO  = "8"
pk_field  = 'idPerdaSobra'
sanitize  = []
Estrutura = ['key' => 'rule']
security  = ['delete' => 'src\models\ProcessoColheitaItemSecurity::securityDelete']
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
TIPO_COLHEITA  = "3"
TIPO_DEVOLUCAO  = "4"
TIPO_DEVOLUCAO_CLIENTE  = "7"
TIPO_DEVOLUCAO_EMPRESTIMO  = "9"
TIPO_INVENTARIO  = "5"
TIPO_PERDAS_SAIDAS  = "0"
TIPO_REENTRADA  = "6"
TIPO_SOBRAS_ENTRADA  = "1"
TIPO_USO  = "2"
tracking  = true
validations  = ['data' => ['required' => 'O campo Data é requerido.'], 'AnoAgricolaSafra' => ['required' => 'O campo Ano Safra é requerido.'], 'tipo' => ['required' => 'O campo Tipo é requerido.']]
Estrutura = ['key' => ['keyRule' => 'Rule message']]

Properties

$AnoAgricola  : mixed
$AnoAgricolaSafra  : mixed
$codigoRomaneio  : mixed
$custoUnitarioProduto  : mixed
$custoUnitUltimaCompra  : mixed
$data  : mixed
$dataHora  : mixed
$descontoAvariados  : mixed
$descontoEsverdeado  : mixed
$descontoImpureza  : mixed
$descontoUmidade  : mixed
$descricao  : mixed
$idAtivo  : mixed
$idContasPagar  : mixed
$idDepartamento  : mixed
$idDeposito  : mixed
$idEntidade  : mixed
$idEntidadeSolicitante  : mixed
$idEntradaEntrega  : mixed
$idExeServico  : mixed
$idFazenda  : mixed
$idManut  : mixed
$idNegocio  : mixed
$idPastagem  : mixed
$idPerdaSobra  : mixed
$idPesagem  : mixed
$idProduto  : mixed
$idProdutoLoteCompra  : mixed
$idRastreabilidadeLote  : mixed
$idReceita  : mixed
$idTabela  : mixed
$idUsoPerdaSobra  : mixed
$idUsuario  : mixed
$parametroConversao  : mixed
$qtidade  : mixed
$qtidadeBruta  : mixed
$teorAvariados  : mixed
$teorEsverdeado  : mixed
$teorImpureza  : mixed
$teorUmidade  : mixed
$tipo  : mixed
$tipoProduto  : mixed
$tipoProduto2  : mixed
$totalAnexo  : mixed
$valorColheita  : mixed

Methods

__construct()  : mixed
delete()  : mixed
delete_where()  : mixed
getAnoAgricola()  : mixed
Get the value of AnoAgricola
getAnoAgricolaSafra()  : mixed
Get the value of AnoAgricolaSafra
getAuditlog()  : mixed
getCodigoRomaneio()  : mixed
Get the value of codigoRomaneio
getConst()  : mixed
getConstObj()  : mixed
getCustoUnitarioProduto()  : mixed
Get the value of custoUnitarioProduto
getCustoUnitUltimaCompra()  : mixed
Get the value of custoUnitUltimaCompra
getData()  : mixed
Get the value of data
getDatabase()  : mixed
getDataHora()  : mixed
Get the value of dataHora
getDBDriver()  : mixed
getDBTable()  : mixed
getDescontoAvariados()  : mixed
Get the value of descontoAvariados
getDescontoEsverdeado()  : mixed
Get the value of descontoEsverdeado
getDescontoImpureza()  : mixed
Get the value of descontoImpureza
getDescontoUmidade()  : mixed
Get the value of descontoUmidade
getDescricao()  : mixed
Get the value of descricao
getIdAtivo()  : mixed
Get the value of idAtivo
getIdContasPagar()  : mixed
Get the value of idContasPagar
getIdDepartamento()  : mixed
Get the value of idDepartamento
getIdDeposito()  : mixed
Get the value of idDeposito
getIdEntidade()  : mixed
Get the value of idEntidade
getIdEntidadeSolicitante()  : mixed
Get the value of idEntidadeSolicitante
getIdEntradaEntrega()  : mixed
Get the value of idEntradaEntrega
getIdExeServico()  : mixed
Get the value of idExeServico
getIdFazenda()  : mixed
Get the value of idFazenda
getIdManut()  : mixed
Get the value of idManut
getIdNegocio()  : mixed
Get the value of idNegocio
getIdPastagem()  : mixed
Get the value of idPastagem
getIdPerdaSobra()  : mixed
Get the value of idPerdaSobra
getIdPesagem()  : mixed
Get the value of idPesagem
getIdProduto()  : mixed
Get the value of idProduto
getIdProdutoLoteCompra()  : mixed
Get the value of idProdutoLote
getIdRastreabilidadeLote()  : mixed
Get the value of idRastreabilidadeLote
getIdReceita()  : mixed
Get the value of idReceita
getIdTabela()  : mixed
Get the value of idTabela
getIdUsoPerdaSobra()  : mixed
Get the value of idUsoPerdaSobra
getIdUsuario()  : mixed
Get the value of idUsuario
getParametroConversao()  : mixed
Get the value of parametroConversao
getQtidade()  : mixed
Get the value of qtidade
getQtidadeBruta()  : mixed
Get the value of qtidadeBruta
getTable()  : mixed
getTeorAvariados()  : mixed
Get the value of teorAvariados
getTeorEsverdeado()  : mixed
Get the value of teorEsverdeado
getTeorImpureza()  : mixed
Get the value of teorImpureza
getTeorUmidade()  : mixed
Get the value of teorUmidade
getTipo()  : mixed
Get the value of tipo
getTipoProduto()  : mixed
Get the value of tipoProduto
getTipoProduto2()  : mixed
Get the value of tipoProduto2
getTotalAnexo()  : mixed
Get the value of totalAnexo
getValorColheita()  : mixed
Get the value of valorColheita
hasField()  : mixed
insert()  : null|Entity
insert_or_select()  : null|Entity
Funcao que insere ou seleciona se existe
insert_or_update()  : array<string|int, mixed>
Funcao que insere ou atualiza uma entidade no banco de dados
securityDelete()  : bool
securityInsert()  : bool
securitySelect()  : array<string|int, mixed>
securityUpdate()  : bool
setAnoAgricola()  : self
Set the value of AnoAgricola
setAnoAgricolaSafra()  : self
Set the value of AnoAgricolaSafra
setCodigoRomaneio()  : self
Set the value of codigoRomaneio
setCustoUnitarioProduto()  : self
Set the value of custoUnitarioProduto
setCustoUnitUltimaCompra()  : self
Set the value of custoUnitUltimaCompra
setData()  : self
Set the value of data
setDataHora()  : self
Set the value of dataHora
setDescontoAvariados()  : self
Set the value of descontoAvariados
setDescontoEsverdeado()  : self
Set the value of descontoEsverdeado
setDescontoImpureza()  : self
Set the value of descontoImpureza
setDescontoUmidade()  : self
Set the value of descontoUmidade
setDescricao()  : self
Set the value of descricao
setIdAtivo()  : self
Set the value of idAtivo
setIdContasPagar()  : self
Set the value of idContasPagar
setIdDepartamento()  : self
Set the value of idDepartamento
setIdDeposito()  : self
Set the value of idDeposito
setIdEntidade()  : self
Set the value of idEntidade
setIdEntidadeSolicitante()  : self
Set the value of idEntidadeSolicitante
setIdEntradaEntrega()  : self
Set the value of idEntradaEntrega
setIdExeServico()  : self
Set the value of idExeServico
setIdFazenda()  : self
Set the value of idFazenda
setIdManut()  : self
Set the value of descontoAvariados
setIdNegocio()  : self
Set the value of idNegocio
setIdPastagem()  : self
Set the value of idPastagem
setIdPerdaSobra()  : self
Set the value of idPerdaSobra
setIdPesagem()  : self
Set the value of idPesagem
setIdProduto()  : self
Set the value of idProduto
setIdProdutoLoteCompra()  : self
Set the value of idProdutoLoteCompra
setIdRastreabilidadeLote()  : self
Set the value of idRastreabilidadeLote
setIdReceita()  : self
Set the value of idReceita
setIdTabela()  : self
Set the value of idTabela
setIdUsoPerdaSobra()  : self
Set the value of idUsoPerdaSobra
setIdUsuario()  : self
Set the value of idUsuario
setParametroConversao()  : self
Set the value of parametroConversao
setQtidade()  : self
Set the value of qtidade
setQtidadeBruta()  : self
Set the value of qtidadeBruta
setTeorAvariados()  : self
Set the value of teorAvariados
setTeorEsverdeado()  : self
Set the value of teorEsverdeado
setTeorImpureza()  : self
Set the value of teorImpureza
setTeorUmidade()  : self
Set the value of teorUmidade
setTipo()  : self
Set the value of tipo
setTipoProduto()  : self
Set the value of tipoProduto
setTipoProduto2()  : self
Set the value of tipoProduto2
setTotalAnexo()  : self
Set the value of totalAnexo
setValorColheita()  : self
Set the value of valorColheita
update()  : mixed
A função update pode atualizar uma Entity já instanciada, desde que a chave primária esteja setada, ou pode atualizar uma Entity vazia informando o valor da chave primária no segundo parâmetro (pk_value)
validateFields()  : bool
where()  : Collection
Rudimentary ORM functions

Constants

auditlog

Allowed keys: 'exclude_fields': <...> 'object_rel': <...>

public mixed auditlog = ['exclude_fields' => ['dataHora']]

const_values

public mixed const_values = []

database

public mixed database = \config\Config::DB_DEFAULT

security

Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>

public mixed security = ['delete' => 'src\models\ProcessoColheitaItemSecurity::securityDelete']

tracking

public mixed tracking = true

validations

Estrutura = ['key' => ['keyRule' => 'Rule message']]

public mixed validations = ['data' => ['required' => 'O campo Data é requerido.'], 'AnoAgricolaSafra' => ['required' => 'O campo Ano Safra é requerido.'], 'tipo' => ['required' => 'O campo Tipo é requerido.']]

Properties

Methods

__construct()

public __construct([array<string|int, mixed> $values = [] ]) : mixed
Parameters
$values : array<string|int, mixed> = []

delete()

public delete(mixed $motivo) : mixed
Parameters
$motivo : mixed

delete_where()

public static delete_where(mixed $motivo[, mixed $where = [] ]) : mixed
Parameters
$motivo : mixed
$where : mixed = []

getAuditlog()

public getAuditlog([string|null $key = null ]) : mixed
Parameters
$key : string|null = null

getConst()

public static getConst(string $field[, mixed $const_value = null ]) : mixed
Parameters
$field : string
$const_value : mixed = null

getConstObj()

public static getConstObj(string $field[, mixed $const_value = null ]) : mixed
Parameters
$field : string
$const_value : mixed = null

getDatabase()

public getDatabase() : mixed

getDBDriver()

public static getDBDriver() : mixed

getDBTable()

public static getDBTable() : mixed

getTable()

public getTable() : mixed

hasField()

public static hasField(mixed $field) : mixed
Parameters
$field : mixed

insert_or_select()

Funcao que insere ou seleciona se existe

public insert_or_select([mixed $where = [] ]) : null|Entity
Parameters
$where : mixed = []
Return values
null|Entity

insert_or_update()

Funcao que insere ou atualiza uma entidade no banco de dados

public insert_or_update([mixed $where = [] ][, mixed $update_fields = ['*'] ]) : array<string|int, mixed>
Parameters
$where : mixed = []
$update_fields : mixed = ['*']
Return values
array<string|int, mixed>

securityDelete()

public securityDelete(mixed $table, mixed $where) : bool
Parameters
$table : mixed
$where : mixed
Return values
bool

securityInsert()

public securityInsert(mixed $fields) : bool
Parameters
$fields : mixed
Return values
bool

return 'true' if the security function didn't find any security issue and 'false' otherwise

securitySelect()

public securitySelect(mixed $table, mixed $fields, mixed $where) : array<string|int, mixed>
Parameters
$table : mixed
$fields : mixed
$where : mixed
Return values
array<string|int, mixed>

return an array with information to be appended in the SQL select

securityUpdate()

public securityUpdate(mixed $fields, mixed $where) : bool
Parameters
$fields : mixed
$where : mixed
Return values
bool

return 'true' if the security function didn't find any security issue and 'false' otherwise

setAnoAgricola()

Set the value of AnoAgricola

public setAnoAgricola(mixed $AnoAgricola) : self
Parameters
$AnoAgricola : mixed
Return values
self

setAnoAgricolaSafra()

Set the value of AnoAgricolaSafra

public setAnoAgricolaSafra(mixed $AnoAgricolaSafra) : self
Parameters
$AnoAgricolaSafra : mixed
Return values
self

setCodigoRomaneio()

Set the value of codigoRomaneio

public setCodigoRomaneio(mixed $codigoRomaneio) : self
Parameters
$codigoRomaneio : mixed
Return values
self

setCustoUnitarioProduto()

Set the value of custoUnitarioProduto

public setCustoUnitarioProduto(mixed $custoUnitarioProduto) : self
Parameters
$custoUnitarioProduto : mixed
Return values
self

setCustoUnitUltimaCompra()

Set the value of custoUnitUltimaCompra

public setCustoUnitUltimaCompra(mixed $custoUnitUltimaCompra) : self
Parameters
$custoUnitUltimaCompra : mixed
Return values
self

setData()

Set the value of data

public setData(mixed $data) : self
Parameters
$data : mixed
Return values
self

setDataHora()

Set the value of dataHora

public setDataHora(mixed $dataHora) : self
Parameters
$dataHora : mixed
Return values
self

setDescontoAvariados()

Set the value of descontoAvariados

public setDescontoAvariados(mixed $descontoAvariados) : self
Parameters
$descontoAvariados : mixed
Return values
self

setDescontoEsverdeado()

Set the value of descontoEsverdeado

public setDescontoEsverdeado(mixed $descontoEsverdeado) : self
Parameters
$descontoEsverdeado : mixed
Return values
self

setDescontoImpureza()

Set the value of descontoImpureza

public setDescontoImpureza(mixed $descontoImpureza) : self
Parameters
$descontoImpureza : mixed
Return values
self

setDescontoUmidade()

Set the value of descontoUmidade

public setDescontoUmidade(mixed $descontoUmidade) : self
Parameters
$descontoUmidade : mixed
Return values
self

setDescricao()

Set the value of descricao

public setDescricao(mixed $descricao) : self
Parameters
$descricao : mixed
Return values
self

setIdAtivo()

Set the value of idAtivo

public setIdAtivo(mixed $idAtivo) : self
Parameters
$idAtivo : mixed
Return values
self

setIdContasPagar()

Set the value of idContasPagar

public setIdContasPagar(mixed $idContasPagar) : self
Parameters
$idContasPagar : mixed
Return values
self

setIdDepartamento()

Set the value of idDepartamento

public setIdDepartamento(mixed $idDepartamento) : self
Parameters
$idDepartamento : mixed
Return values
self

setIdDeposito()

Set the value of idDeposito

public setIdDeposito(mixed $idDeposito) : self
Parameters
$idDeposito : mixed
Return values
self

setIdEntidade()

Set the value of idEntidade

public setIdEntidade(mixed $idEntidade) : self
Parameters
$idEntidade : mixed
Return values
self

setIdEntidadeSolicitante()

Set the value of idEntidadeSolicitante

public setIdEntidadeSolicitante(mixed $idEntidadeSolicitante) : self
Parameters
$idEntidadeSolicitante : mixed
Return values
self

setIdEntradaEntrega()

Set the value of idEntradaEntrega

public setIdEntradaEntrega(mixed $idEntradaEntrega) : self
Parameters
$idEntradaEntrega : mixed
Return values
self

setIdExeServico()

Set the value of idExeServico

public setIdExeServico(mixed $idExeServico) : self
Parameters
$idExeServico : mixed
Return values
self

setIdFazenda()

Set the value of idFazenda

public setIdFazenda(mixed $idFazenda) : self
Parameters
$idFazenda : mixed
Return values
self

setIdManut()

Set the value of descontoAvariados

public setIdManut(mixed $idManut) : self
Parameters
$idManut : mixed
Return values
self

setIdNegocio()

Set the value of idNegocio

public setIdNegocio(mixed $idNegocio) : self
Parameters
$idNegocio : mixed
Return values
self

setIdPastagem()

Set the value of idPastagem

public setIdPastagem(mixed $idPastagem) : self
Parameters
$idPastagem : mixed
Return values
self

setIdPerdaSobra()

Set the value of idPerdaSobra

public setIdPerdaSobra(mixed $idPerdaSobra) : self
Parameters
$idPerdaSobra : mixed
Return values
self

setIdPesagem()

Set the value of idPesagem

public setIdPesagem(mixed $idPesagem) : self
Parameters
$idPesagem : mixed
Return values
self

setIdProduto()

Set the value of idProduto

public setIdProduto(mixed $idProduto) : self
Parameters
$idProduto : mixed
Return values
self

setIdProdutoLoteCompra()

Set the value of idProdutoLoteCompra

public setIdProdutoLoteCompra(mixed $idProdutoLoteCompra) : self
Parameters
$idProdutoLoteCompra : mixed
Return values
self

setIdRastreabilidadeLote()

Set the value of idRastreabilidadeLote

public setIdRastreabilidadeLote(mixed $idRastreabilidadeLote) : self
Parameters
$idRastreabilidadeLote : mixed
Return values
self

setIdReceita()

Set the value of idReceita

public setIdReceita(mixed $idReceita) : self
Parameters
$idReceita : mixed
Return values
self

setIdTabela()

Set the value of idTabela

public setIdTabela(mixed $idTabela) : self
Parameters
$idTabela : mixed
Return values
self

setIdUsoPerdaSobra()

Set the value of idUsoPerdaSobra

public setIdUsoPerdaSobra(mixed $idUsoPerdaSobra) : self
Parameters
$idUsoPerdaSobra : mixed
Return values
self

setIdUsuario()

Set the value of idUsuario

public setIdUsuario(mixed $idUsuario) : self
Parameters
$idUsuario : mixed
Return values
self

setParametroConversao()

Set the value of parametroConversao

public setParametroConversao(mixed $parametroConversao) : self
Parameters
$parametroConversao : mixed
Return values
self

setQtidade()

Set the value of qtidade

public setQtidade(mixed $qtidade) : self
Parameters
$qtidade : mixed
Return values
self

setQtidadeBruta()

Set the value of qtidadeBruta

public setQtidadeBruta(mixed $qtidadeBruta) : self
Parameters
$qtidadeBruta : mixed
Return values
self

setTeorAvariados()

Set the value of teorAvariados

public setTeorAvariados(mixed $teorAvariados) : self
Parameters
$teorAvariados : mixed
Return values
self

setTeorEsverdeado()

Set the value of teorEsverdeado

public setTeorEsverdeado(mixed $teorEsverdeado) : self
Parameters
$teorEsverdeado : mixed
Return values
self

setTeorImpureza()

Set the value of teorImpureza

public setTeorImpureza(mixed $teorImpureza) : self
Parameters
$teorImpureza : mixed
Return values
self

setTeorUmidade()

Set the value of teorUmidade

public setTeorUmidade(mixed $teorUmidade) : self
Parameters
$teorUmidade : mixed
Return values
self

setTipo()

Set the value of tipo

public setTipo(mixed $tipo) : self
Parameters
$tipo : mixed
Return values
self

setTipoProduto()

Set the value of tipoProduto

public setTipoProduto(mixed $tipoProduto) : self
Parameters
$tipoProduto : mixed
Return values
self

setTipoProduto2()

Set the value of tipoProduto2

public setTipoProduto2(mixed $tipoProduto2) : self
Parameters
$tipoProduto2 : mixed
Return values
self

setTotalAnexo()

Set the value of totalAnexo

public setTotalAnexo(mixed $totalAnexo) : self
Parameters
$totalAnexo : mixed
Return values
self

setValorColheita()

Set the value of valorColheita

public setValorColheita(mixed $valorColheita) : self
Parameters
$valorColheita : mixed
Return values
self

update()

A função update pode atualizar uma Entity já instanciada, desde que a chave primária esteja setada, ou pode atualizar uma Entity vazia informando o valor da chave primária no segundo parâmetro (pk_value)

public update(array<string|int, mixed> $values[, mixed $pk_value = null ]) : mixed
Parameters
$values : array<string|int, mixed>
$pk_value : mixed = null

validateFields()

public validateFields([array<string|int, mixed> $fields = [] ]) : bool
Parameters
$fields : array<string|int, mixed> = []
Return values
bool

where()

Rudimentary ORM functions

public static where([mixed $where = [] ][, mixed $select = '*' ]) : Collection
Parameters
$where : mixed = []
$select : mixed = '*'
Return values
Collection

        
On this page

Search results