From 475b2e716bebafe5d29ac2c41f1726b06da12781 Mon Sep 17 00:00:00 2001 From: Bjverde Date: Mon, 9 Mar 2020 23:19:51 -0300 Subject: [PATCH] :memo: APP #220 voltando com DAO --- appexemplo_v3.0/dao/Acesso_menuVO.class.php | 172 ++++++++++++++++ appexemplo_v3.0/dao/Acesso_perfilVO.class.php | 73 +++++++ .../dao/Acesso_perfil_menuVO.class.php | 84 ++++++++ .../dao/Acesso_perfil_userVO.class.php | 84 ++++++++ appexemplo_v3.0/dao/Acesso_tokensVO.class.php | 84 ++++++++ appexemplo_v3.0/dao/Acesso_userVO.class.php | 95 +++++++++ appexemplo_v3.0/dao/AutoridadeVO.class.php | 84 ++++++++ appexemplo_v3.0/dao/EnderecoVO.class.php | 128 ++++++++++++ appexemplo_v3.0/dao/Log_acessoVO.class.php | 73 +++++++ appexemplo_v3.0/dao/MarcaVO.class.php | 51 +++++ appexemplo_v3.0/dao/Meta_tipoVO.class.php | 51 +++++ appexemplo_v3.0/dao/MunicipioVO.class.php | 62 ++++++ .../dao/Natureza_juridicaVO.class.php | 51 +++++ appexemplo_v3.0/dao/PedidoVO.class.php | 62 ++++++ appexemplo_v3.0/dao/Pedido_itemVO.class.php | 73 +++++++ appexemplo_v3.0/dao/PessoaVO.class.php | 84 ++++++++ appexemplo_v3.0/dao/Pessoa_fisicaVO.class.php | 106 ++++++++++ .../dao/Pessoa_juridicaVO.class.php | 73 +++++++ appexemplo_v3.0/dao/ProdutoVO.class.php | 84 ++++++++ appexemplo_v3.0/dao/RegiaoVO.class.php | 40 ++++ appexemplo_v3.0/dao/SelfilhosmenuVO.class.php | 29 +++ .../dao/SelfilhosmenuqtdVO.class.php | 40 ++++ appexemplo_v3.0/dao/SelmenuqtdVO.class.php | 29 +++ appexemplo_v3.0/dao/TelefoneVO.class.php | 106 ++++++++++ appexemplo_v3.0/dao/TipoVO.class.php | 62 ++++++ appexemplo_v3.0/dao/UfVO.class.php | 62 ++++++ .../dao/Vw_acesso_user_menuVO.class.php | 84 ++++++++ appexemplo_v3.0/dao/Vw_pessoaVO.class.php | 186 +++++++++++++++++ .../dao/Vw_pessoa_fisicaVO.class.php | 194 ++++++++++++++++++ .../dao/Vw_pessoa_marca_produtoVO.class.php | 84 ++++++++ .../dao/Vw_regiao_municipioVO.class.php | 106 ++++++++++ appexemplo_v3.0/dao/autoload_appev2_dao.php | 24 +++ appexemplo_v3.0/dao/index.php | 2 + 33 files changed, 2622 insertions(+) create mode 100644 appexemplo_v3.0/dao/Acesso_menuVO.class.php create mode 100644 appexemplo_v3.0/dao/Acesso_perfilVO.class.php create mode 100644 appexemplo_v3.0/dao/Acesso_perfil_menuVO.class.php create mode 100644 appexemplo_v3.0/dao/Acesso_perfil_userVO.class.php create mode 100644 appexemplo_v3.0/dao/Acesso_tokensVO.class.php create mode 100644 appexemplo_v3.0/dao/Acesso_userVO.class.php create mode 100644 appexemplo_v3.0/dao/AutoridadeVO.class.php create mode 100644 appexemplo_v3.0/dao/EnderecoVO.class.php create mode 100644 appexemplo_v3.0/dao/Log_acessoVO.class.php create mode 100644 appexemplo_v3.0/dao/MarcaVO.class.php create mode 100644 appexemplo_v3.0/dao/Meta_tipoVO.class.php create mode 100644 appexemplo_v3.0/dao/MunicipioVO.class.php create mode 100644 appexemplo_v3.0/dao/Natureza_juridicaVO.class.php create mode 100644 appexemplo_v3.0/dao/PedidoVO.class.php create mode 100644 appexemplo_v3.0/dao/Pedido_itemVO.class.php create mode 100644 appexemplo_v3.0/dao/PessoaVO.class.php create mode 100644 appexemplo_v3.0/dao/Pessoa_fisicaVO.class.php create mode 100644 appexemplo_v3.0/dao/Pessoa_juridicaVO.class.php create mode 100644 appexemplo_v3.0/dao/ProdutoVO.class.php create mode 100644 appexemplo_v3.0/dao/RegiaoVO.class.php create mode 100644 appexemplo_v3.0/dao/SelfilhosmenuVO.class.php create mode 100644 appexemplo_v3.0/dao/SelfilhosmenuqtdVO.class.php create mode 100644 appexemplo_v3.0/dao/SelmenuqtdVO.class.php create mode 100644 appexemplo_v3.0/dao/TelefoneVO.class.php create mode 100644 appexemplo_v3.0/dao/TipoVO.class.php create mode 100644 appexemplo_v3.0/dao/UfVO.class.php create mode 100644 appexemplo_v3.0/dao/Vw_acesso_user_menuVO.class.php create mode 100644 appexemplo_v3.0/dao/Vw_pessoaVO.class.php create mode 100644 appexemplo_v3.0/dao/Vw_pessoa_fisicaVO.class.php create mode 100644 appexemplo_v3.0/dao/Vw_pessoa_marca_produtoVO.class.php create mode 100644 appexemplo_v3.0/dao/Vw_regiao_municipioVO.class.php create mode 100644 appexemplo_v3.0/dao/autoload_appev2_dao.php create mode 100644 appexemplo_v3.0/dao/index.php diff --git a/appexemplo_v3.0/dao/Acesso_menuVO.class.php b/appexemplo_v3.0/dao/Acesso_menuVO.class.php new file mode 100644 index 00000000..65b50e69 --- /dev/null +++ b/appexemplo_v3.0/dao/Acesso_menuVO.class.php @@ -0,0 +1,172 @@ +setIdmenu( $idmenu ); + $this->setNom_menu( $nom_menu ); + $this->setIdmenu_pai( $idmenu_pai ); + $this->setUrl( $url ); + $this->setTooltip( $tooltip ); + $this->setImg_menu( $img_menu ); + $this->setImgdisabled( $imgdisabled ); + $this->setDisabled( $disabled ); + $this->setHotkey( $hotkey ); + $this->setBoolseparator( $boolseparator ); + $this->setJsonparams( $jsonparams ); + $this->setSit_ativo( $sit_ativo ); + $this->setDat_inclusao( $dat_inclusao ); + $this->setDat_update( $dat_update ); + } + //-------------------------------------------------------------------------------- + public function setIdmenu( $strNewValue = null ) + { + $this->idmenu = $strNewValue; + } + public function getIdmenu() + { + return $this->idmenu; + } + //-------------------------------------------------------------------------------- + public function setNom_menu( $strNewValue = null ) + { + $this->nom_menu = $strNewValue; + } + public function getNom_menu() + { + return $this->nom_menu; + } + //-------------------------------------------------------------------------------- + public function setIdmenu_pai( $strNewValue = null ) + { + $this->idmenu_pai = $strNewValue; + } + public function getIdmenu_pai() + { + return $this->idmenu_pai; + } + //-------------------------------------------------------------------------------- + public function setUrl( $strNewValue = null ) + { + $this->url = $strNewValue; + } + public function getUrl() + { + return $this->url; + } + //-------------------------------------------------------------------------------- + public function setTooltip( $strNewValue = null ) + { + $this->tooltip = $strNewValue; + } + public function getTooltip() + { + return $this->tooltip; + } + //-------------------------------------------------------------------------------- + public function setImg_menu( $strNewValue = null ) + { + $this->img_menu = $strNewValue; + } + public function getImg_menu() + { + return $this->img_menu; + } + //-------------------------------------------------------------------------------- + public function setImgdisabled( $strNewValue = null ) + { + $this->imgdisabled = $strNewValue; + } + public function getImgdisabled() + { + return $this->imgdisabled; + } + //-------------------------------------------------------------------------------- + public function setDisabled( $strNewValue = null ) + { + $this->disabled = $strNewValue; + } + public function getDisabled() + { + return $this->disabled; + } + //-------------------------------------------------------------------------------- + public function setHotkey( $strNewValue = null ) + { + $this->hotkey = $strNewValue; + } + public function getHotkey() + { + return $this->hotkey; + } + //-------------------------------------------------------------------------------- + public function setBoolseparator( $strNewValue = null ) + { + $this->boolseparator = $strNewValue; + } + public function getBoolseparator() + { + return $this->boolseparator; + } + //-------------------------------------------------------------------------------- + public function setJsonparams( $strNewValue = null ) + { + $this->jsonparams = $strNewValue; + } + public function getJsonparams() + { + return $this->jsonparams; + } + //-------------------------------------------------------------------------------- + public function setSit_ativo( $strNewValue = null ) + { + $this->sit_ativo = $strNewValue; + } + public function getSit_ativo() + { + return $this->sit_ativo; + } + //-------------------------------------------------------------------------------- + public function setDat_inclusao( $strNewValue = null ) + { + $this->dat_inclusao = $strNewValue; + } + public function getDat_inclusao() + { + return is_null( $this->dat_inclusao ) ? date( 'Y-m-d h:i:s' ) : $this->dat_inclusao; + } + //-------------------------------------------------------------------------------- + public function setDat_update( $strNewValue = null ) + { + $this->dat_update = $strNewValue; + } + public function getDat_update() + { + return is_null( $this->dat_update ) ? date( 'Y-m-d h:i:s' ) : $this->dat_update; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/Acesso_perfilVO.class.php b/appexemplo_v3.0/dao/Acesso_perfilVO.class.php new file mode 100644 index 00000000..a8af62d7 --- /dev/null +++ b/appexemplo_v3.0/dao/Acesso_perfilVO.class.php @@ -0,0 +1,73 @@ +setIdperfil( $idperfil ); + $this->setNom_perfil( $nom_perfil ); + $this->setSit_ativo( $sit_ativo ); + $this->setDat_inclusao( $dat_inclusao ); + $this->setDat_update( $dat_update ); + } + //-------------------------------------------------------------------------------- + public function setIdperfil( $strNewValue = null ) + { + $this->idperfil = $strNewValue; + } + public function getIdperfil() + { + return $this->idperfil; + } + //-------------------------------------------------------------------------------- + public function setNom_perfil( $strNewValue = null ) + { + $this->nom_perfil = $strNewValue; + } + public function getNom_perfil() + { + return $this->nom_perfil; + } + //-------------------------------------------------------------------------------- + public function setSit_ativo( $strNewValue = null ) + { + $this->sit_ativo = $strNewValue; + } + public function getSit_ativo() + { + return $this->sit_ativo; + } + //-------------------------------------------------------------------------------- + public function setDat_inclusao( $strNewValue = null ) + { + $this->dat_inclusao = $strNewValue; + } + public function getDat_inclusao() + { + return is_null( $this->dat_inclusao ) ? date( 'Y-m-d h:i:s' ) : $this->dat_inclusao; + } + //-------------------------------------------------------------------------------- + public function setDat_update( $strNewValue = null ) + { + $this->dat_update = $strNewValue; + } + public function getDat_update() + { + return is_null( $this->dat_update ) ? date( 'Y-m-d h:i:s' ) : $this->dat_update; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/Acesso_perfil_menuVO.class.php b/appexemplo_v3.0/dao/Acesso_perfil_menuVO.class.php new file mode 100644 index 00000000..b6b96e4a --- /dev/null +++ b/appexemplo_v3.0/dao/Acesso_perfil_menuVO.class.php @@ -0,0 +1,84 @@ +setIdperfilmenu( $idperfilmenu ); + $this->setIdperfil( $idperfil ); + $this->setIdmenu( $idmenu ); + $this->setSit_ativo( $sit_ativo ); + $this->setDat_inclusao( $dat_inclusao ); + $this->setDat_update( $dat_update ); + } + //-------------------------------------------------------------------------------- + public function setIdperfilmenu( $strNewValue = null ) + { + $this->idperfilmenu = $strNewValue; + } + public function getIdperfilmenu() + { + return $this->idperfilmenu; + } + //-------------------------------------------------------------------------------- + public function setIdperfil( $strNewValue = null ) + { + $this->idperfil = $strNewValue; + } + public function getIdperfil() + { + return $this->idperfil; + } + //-------------------------------------------------------------------------------- + public function setIdmenu( $strNewValue = null ) + { + $this->idmenu = $strNewValue; + } + public function getIdmenu() + { + return $this->idmenu; + } + //-------------------------------------------------------------------------------- + public function setSit_ativo( $strNewValue = null ) + { + $this->sit_ativo = $strNewValue; + } + public function getSit_ativo() + { + return $this->sit_ativo; + } + //-------------------------------------------------------------------------------- + public function setDat_inclusao( $strNewValue = null ) + { + $this->dat_inclusao = $strNewValue; + } + public function getDat_inclusao() + { + return is_null( $this->dat_inclusao ) ? date( 'Y-m-d h:i:s' ) : $this->dat_inclusao; + } + //-------------------------------------------------------------------------------- + public function setDat_update( $strNewValue = null ) + { + $this->dat_update = $strNewValue; + } + public function getDat_update() + { + return is_null( $this->dat_update ) ? date( 'Y-m-d h:i:s' ) : $this->dat_update; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/Acesso_perfil_userVO.class.php b/appexemplo_v3.0/dao/Acesso_perfil_userVO.class.php new file mode 100644 index 00000000..b726374b --- /dev/null +++ b/appexemplo_v3.0/dao/Acesso_perfil_userVO.class.php @@ -0,0 +1,84 @@ +setIdperfiluser( $idperfiluser ); + $this->setIdperfil( $idperfil ); + $this->setIduser( $iduser ); + $this->setSit_ativo( $sit_ativo ); + $this->setDat_inclusao( $dat_inclusao ); + $this->setDat_update( $dat_update ); + } + //-------------------------------------------------------------------------------- + public function setIdperfiluser( $strNewValue = null ) + { + $this->idperfiluser = $strNewValue; + } + public function getIdperfiluser() + { + return $this->idperfiluser; + } + //-------------------------------------------------------------------------------- + public function setIdperfil( $strNewValue = null ) + { + $this->idperfil = $strNewValue; + } + public function getIdperfil() + { + return $this->idperfil; + } + //-------------------------------------------------------------------------------- + public function setIduser( $strNewValue = null ) + { + $this->iduser = $strNewValue; + } + public function getIduser() + { + return $this->iduser; + } + //-------------------------------------------------------------------------------- + public function setSit_ativo( $strNewValue = null ) + { + $this->sit_ativo = $strNewValue; + } + public function getSit_ativo() + { + return $this->sit_ativo; + } + //-------------------------------------------------------------------------------- + public function setDat_inclusao( $strNewValue = null ) + { + $this->dat_inclusao = $strNewValue; + } + public function getDat_inclusao() + { + return is_null( $this->dat_inclusao ) ? date( 'Y-m-d h:i:s' ) : $this->dat_inclusao; + } + //-------------------------------------------------------------------------------- + public function setDat_update( $strNewValue = null ) + { + $this->dat_update = $strNewValue; + } + public function getDat_update() + { + return is_null( $this->dat_update ) ? date( 'Y-m-d h:i:s' ) : $this->dat_update; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/Acesso_tokensVO.class.php b/appexemplo_v3.0/dao/Acesso_tokensVO.class.php new file mode 100644 index 00000000..88775254 --- /dev/null +++ b/appexemplo_v3.0/dao/Acesso_tokensVO.class.php @@ -0,0 +1,84 @@ +setIdacesso_tokens( $idacesso_tokens ); + $this->setIduser( $iduser ); + $this->setToken( $token ); + $this->setRefresh_token( $refresh_token ); + $this->setExpired_at( $expired_at ); + $this->setActive( $active ); + } + //-------------------------------------------------------------------------------- + public function setIdacesso_tokens( $strNewValue = null ) + { + $this->idacesso_tokens = $strNewValue; + } + public function getIdacesso_tokens() + { + return $this->idacesso_tokens; + } + //-------------------------------------------------------------------------------- + public function setIduser( $strNewValue = null ) + { + $this->iduser = $strNewValue; + } + public function getIduser() + { + return $this->iduser; + } + //-------------------------------------------------------------------------------- + public function setToken( $strNewValue = null ) + { + $this->token = $strNewValue; + } + public function getToken() + { + return $this->token; + } + //-------------------------------------------------------------------------------- + public function setRefresh_token( $strNewValue = null ) + { + $this->refresh_token = $strNewValue; + } + public function getRefresh_token() + { + return $this->refresh_token; + } + //-------------------------------------------------------------------------------- + public function setExpired_at( $strNewValue = null ) + { + $this->expired_at = $strNewValue; + } + public function getExpired_at() + { + return $this->expired_at; + } + //-------------------------------------------------------------------------------- + public function setActive( $strNewValue = null ) + { + $this->active = $strNewValue; + } + public function getActive() + { + return $this->active; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/Acesso_userVO.class.php b/appexemplo_v3.0/dao/Acesso_userVO.class.php new file mode 100644 index 00000000..7f113ede --- /dev/null +++ b/appexemplo_v3.0/dao/Acesso_userVO.class.php @@ -0,0 +1,95 @@ +setIduser( $iduser ); + $this->setLogin_user( $login_user ); + $this->setPwd_user( $pwd_user ); + $this->setSit_ativo( $sit_ativo ); + $this->setDat_inclusao( $dat_inclusao ); + $this->setDat_update( $dat_update ); + $this->setIdpessoa( $idpessoa ); + } + //-------------------------------------------------------------------------------- + public function setIduser( $strNewValue = null ) + { + $this->iduser = $strNewValue; + } + public function getIduser() + { + return $this->iduser; + } + //-------------------------------------------------------------------------------- + public function setLogin_user( $strNewValue = null ) + { + $this->login_user = $strNewValue; + } + public function getLogin_user() + { + return $this->login_user; + } + //-------------------------------------------------------------------------------- + public function setPwd_user( $strNewValue = null ) + { + $this->pwd_user = $strNewValue; + } + public function getPwd_user() + { + return $this->pwd_user; + } + //-------------------------------------------------------------------------------- + public function setSit_ativo( $strNewValue = null ) + { + $this->sit_ativo = $strNewValue; + } + public function getSit_ativo() + { + return $this->sit_ativo; + } + //-------------------------------------------------------------------------------- + public function setDat_inclusao( $strNewValue = null ) + { + $this->dat_inclusao = $strNewValue; + } + public function getDat_inclusao() + { + return is_null( $this->dat_inclusao ) ? date( 'Y-m-d h:i:s' ) : $this->dat_inclusao; + } + //-------------------------------------------------------------------------------- + public function setDat_update( $strNewValue = null ) + { + $this->dat_update = $strNewValue; + } + public function getDat_update() + { + return is_null( $this->dat_update ) ? date( 'Y-m-d h:i:s' ) : $this->dat_update; + } + //-------------------------------------------------------------------------------- + public function setIdpessoa( $strNewValue = null ) + { + $this->idpessoa = $strNewValue; + } + public function getIdpessoa() + { + return $this->idpessoa; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/AutoridadeVO.class.php b/appexemplo_v3.0/dao/AutoridadeVO.class.php new file mode 100644 index 00000000..34f8fd8d --- /dev/null +++ b/appexemplo_v3.0/dao/AutoridadeVO.class.php @@ -0,0 +1,84 @@ +setIdautoridade( $idautoridade ); + $this->setDat_inclusao( $dat_inclusao ); + $this->setDat_evento( $dat_evento ); + $this->setOrdem( $ordem ); + $this->setCargo( $cargo ); + $this->setNome_pessoa( $nome_pessoa ); + } + //-------------------------------------------------------------------------------- + public function setIdautoridade( $strNewValue = null ) + { + $this->idautoridade = $strNewValue; + } + public function getIdautoridade() + { + return $this->idautoridade; + } + //-------------------------------------------------------------------------------- + public function setDat_inclusao( $strNewValue = null ) + { + $this->dat_inclusao = $strNewValue; + } + public function getDat_inclusao() + { + return is_null( $this->dat_inclusao ) ? date( 'Y-m-d h:i:s' ) : $this->dat_inclusao; + } + //-------------------------------------------------------------------------------- + public function setDat_evento( $strNewValue = null ) + { + $this->dat_evento = $strNewValue; + } + public function getDat_evento() + { + return is_null( $this->dat_evento ) ? date( 'Y-m-d h:i:s' ) : $this->dat_evento; + } + //-------------------------------------------------------------------------------- + public function setOrdem( $strNewValue = null ) + { + $this->ordem = $strNewValue; + } + public function getOrdem() + { + return $this->ordem; + } + //-------------------------------------------------------------------------------- + public function setCargo( $strNewValue = null ) + { + $this->cargo = $strNewValue; + } + public function getCargo() + { + return $this->cargo; + } + //-------------------------------------------------------------------------------- + public function setNome_pessoa( $strNewValue = null ) + { + $this->nome_pessoa = $strNewValue; + } + public function getNome_pessoa() + { + return $this->nome_pessoa; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/EnderecoVO.class.php b/appexemplo_v3.0/dao/EnderecoVO.class.php new file mode 100644 index 00000000..06a26bd6 --- /dev/null +++ b/appexemplo_v3.0/dao/EnderecoVO.class.php @@ -0,0 +1,128 @@ +setIdendereco( $idendereco ); + $this->setEndereco( $endereco ); + $this->setIdpessoa( $idpessoa ); + $this->setIdtipo_endereco( $idtipo_endereco ); + $this->setCod_municipio( $cod_municipio ); + $this->setCep( $cep ); + $this->setNumero( $numero ); + $this->setComplemento( $complemento ); + $this->setBairro( $bairro ); + $this->setCidade( $cidade ); + } + //-------------------------------------------------------------------------------- + public function setIdendereco( $strNewValue = null ) + { + $this->idendereco = $strNewValue; + } + public function getIdendereco() + { + return $this->idendereco; + } + //-------------------------------------------------------------------------------- + public function setEndereco( $strNewValue = null ) + { + $this->endereco = $strNewValue; + } + public function getEndereco() + { + return $this->endereco; + } + //-------------------------------------------------------------------------------- + public function setIdpessoa( $strNewValue = null ) + { + $this->idpessoa = $strNewValue; + } + public function getIdpessoa() + { + return $this->idpessoa; + } + //-------------------------------------------------------------------------------- + public function setIdtipo_endereco( $strNewValue = null ) + { + $this->idtipo_endereco = $strNewValue; + } + public function getIdtipo_endereco() + { + return $this->idtipo_endereco; + } + //-------------------------------------------------------------------------------- + public function setCod_municipio( $strNewValue = null ) + { + $this->cod_municipio = $strNewValue; + } + public function getCod_municipio() + { + return $this->cod_municipio; + } + //-------------------------------------------------------------------------------- + public function setCep( $strNewValue = null ) + { + $this->cep = $strNewValue; + } + public function getCep() + { + return $this->cep; + } + //-------------------------------------------------------------------------------- + public function setNumero( $strNewValue = null ) + { + $this->numero = $strNewValue; + } + public function getNumero() + { + return $this->numero; + } + //-------------------------------------------------------------------------------- + public function setComplemento( $strNewValue = null ) + { + $this->complemento = $strNewValue; + } + public function getComplemento() + { + return $this->complemento; + } + //-------------------------------------------------------------------------------- + public function setBairro( $strNewValue = null ) + { + $this->bairro = $strNewValue; + } + public function getBairro() + { + return $this->bairro; + } + //-------------------------------------------------------------------------------- + public function setCidade( $strNewValue = null ) + { + $this->cidade = $strNewValue; + } + public function getCidade() + { + return $this->cidade; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/Log_acessoVO.class.php b/appexemplo_v3.0/dao/Log_acessoVO.class.php new file mode 100644 index 00000000..a9d7eed1 --- /dev/null +++ b/appexemplo_v3.0/dao/Log_acessoVO.class.php @@ -0,0 +1,73 @@ +setIdlog_acesso( $idlog_acesso ); + $this->setIduser( $iduser ); + $this->setDat_acesso( $dat_acesso ); + $this->setIdmenu( $idmenu ); + $this->setIp( $ip ); + } + //-------------------------------------------------------------------------------- + public function setIdlog_acesso( $strNewValue = null ) + { + $this->idlog_acesso = $strNewValue; + } + public function getIdlog_acesso() + { + return $this->idlog_acesso; + } + //-------------------------------------------------------------------------------- + public function setIduser( $strNewValue = null ) + { + $this->iduser = $strNewValue; + } + public function getIduser() + { + return $this->iduser; + } + //-------------------------------------------------------------------------------- + public function setDat_acesso( $strNewValue = null ) + { + $this->dat_acesso = $strNewValue; + } + public function getDat_acesso() + { + return is_null( $this->dat_acesso ) ? date( 'Y-m-d h:i:s' ) : $this->dat_acesso; + } + //-------------------------------------------------------------------------------- + public function setIdmenu( $strNewValue = null ) + { + $this->idmenu = $strNewValue; + } + public function getIdmenu() + { + return $this->idmenu; + } + //-------------------------------------------------------------------------------- + public function setIp( $strNewValue = null ) + { + $this->ip = $strNewValue; + } + public function getIp() + { + return $this->ip; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/MarcaVO.class.php b/appexemplo_v3.0/dao/MarcaVO.class.php new file mode 100644 index 00000000..1314367e --- /dev/null +++ b/appexemplo_v3.0/dao/MarcaVO.class.php @@ -0,0 +1,51 @@ +setIdmarca( $idmarca ); + $this->setNom_marca( $nom_marca ); + $this->setIdpessoa( $idpessoa ); + } + //-------------------------------------------------------------------------------- + public function setIdmarca( $strNewValue = null ) + { + $this->idmarca = $strNewValue; + } + public function getIdmarca() + { + return $this->idmarca; + } + //-------------------------------------------------------------------------------- + public function setNom_marca( $strNewValue = null ) + { + $this->nom_marca = $strNewValue; + } + public function getNom_marca() + { + return $this->nom_marca; + } + //-------------------------------------------------------------------------------- + public function setIdpessoa( $strNewValue = null ) + { + $this->idpessoa = $strNewValue; + } + public function getIdpessoa() + { + return $this->idpessoa; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/Meta_tipoVO.class.php b/appexemplo_v3.0/dao/Meta_tipoVO.class.php new file mode 100644 index 00000000..9498f9a1 --- /dev/null +++ b/appexemplo_v3.0/dao/Meta_tipoVO.class.php @@ -0,0 +1,51 @@ +setIdmetatipo( $idmetatipo ); + $this->setDescricao( $descricao ); + $this->setSit_ativo( $sit_ativo ); + } + //-------------------------------------------------------------------------------- + public function setIdmetatipo( $strNewValue = null ) + { + $this->idmetatipo = $strNewValue; + } + public function getIdmetatipo() + { + return $this->idmetatipo; + } + //-------------------------------------------------------------------------------- + public function setDescricao( $strNewValue = null ) + { + $this->descricao = $strNewValue; + } + public function getDescricao() + { + return $this->descricao; + } + //-------------------------------------------------------------------------------- + public function setSit_ativo( $strNewValue = null ) + { + $this->sit_ativo = $strNewValue; + } + public function getSit_ativo() + { + return $this->sit_ativo; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/MunicipioVO.class.php b/appexemplo_v3.0/dao/MunicipioVO.class.php new file mode 100644 index 00000000..e75ccd0c --- /dev/null +++ b/appexemplo_v3.0/dao/MunicipioVO.class.php @@ -0,0 +1,62 @@ +setCod_municipio( $cod_municipio ); + $this->setCod_uf( $cod_uf ); + $this->setNom_municipio( $nom_municipio ); + $this->setSit_ativo( $sit_ativo ); + } + //-------------------------------------------------------------------------------- + public function setCod_municipio( $strNewValue = null ) + { + $this->cod_municipio = $strNewValue; + } + public function getCod_municipio() + { + return $this->cod_municipio; + } + //-------------------------------------------------------------------------------- + public function setCod_uf( $strNewValue = null ) + { + $this->cod_uf = $strNewValue; + } + public function getCod_uf() + { + return $this->cod_uf; + } + //-------------------------------------------------------------------------------- + public function setNom_municipio( $strNewValue = null ) + { + $this->nom_municipio = $strNewValue; + } + public function getNom_municipio() + { + return $this->nom_municipio; + } + //-------------------------------------------------------------------------------- + public function setSit_ativo( $strNewValue = null ) + { + $this->sit_ativo = $strNewValue; + } + public function getSit_ativo() + { + return $this->sit_ativo; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/Natureza_juridicaVO.class.php b/appexemplo_v3.0/dao/Natureza_juridicaVO.class.php new file mode 100644 index 00000000..7ed9f1d7 --- /dev/null +++ b/appexemplo_v3.0/dao/Natureza_juridicaVO.class.php @@ -0,0 +1,51 @@ +setIdnatureza_juridica( $idnatureza_juridica ); + $this->setNom_natureza_juridicac( $nom_natureza_juridicac ); + $this->setAdministradores( $administradores ); + } + //-------------------------------------------------------------------------------- + public function setIdnatureza_juridica( $strNewValue = null ) + { + $this->idnatureza_juridica = $strNewValue; + } + public function getIdnatureza_juridica() + { + return $this->idnatureza_juridica; + } + //-------------------------------------------------------------------------------- + public function setNom_natureza_juridicac( $strNewValue = null ) + { + $this->nom_natureza_juridicac = $strNewValue; + } + public function getNom_natureza_juridicac() + { + return $this->nom_natureza_juridicac; + } + //-------------------------------------------------------------------------------- + public function setAdministradores( $strNewValue = null ) + { + $this->administradores = $strNewValue; + } + public function getAdministradores() + { + return $this->administradores; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/PedidoVO.class.php b/appexemplo_v3.0/dao/PedidoVO.class.php new file mode 100644 index 00000000..7c0151ed --- /dev/null +++ b/appexemplo_v3.0/dao/PedidoVO.class.php @@ -0,0 +1,62 @@ +setIdpedido( $idpedido ); + $this->setIdpessoa( $idpessoa ); + $this->setDat_pedido( $dat_pedido ); + $this->setIdtipo_pagamento( $idtipo_pagamento ); + } + //-------------------------------------------------------------------------------- + public function setIdpedido( $strNewValue = null ) + { + $this->idpedido = $strNewValue; + } + public function getIdpedido() + { + return $this->idpedido; + } + //-------------------------------------------------------------------------------- + public function setIdpessoa( $strNewValue = null ) + { + $this->idpessoa = $strNewValue; + } + public function getIdpessoa() + { + return $this->idpessoa; + } + //-------------------------------------------------------------------------------- + public function setDat_pedido( $strNewValue = null ) + { + $this->dat_pedido = $strNewValue; + } + public function getDat_pedido() + { + return is_null( $this->dat_pedido ) ? date( 'Y-m-d h:i:s' ) : $this->dat_pedido; + } + //-------------------------------------------------------------------------------- + public function setIdtipo_pagamento( $strNewValue = null ) + { + $this->idtipo_pagamento = $strNewValue; + } + public function getIdtipo_pagamento() + { + return $this->idtipo_pagamento; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/Pedido_itemVO.class.php b/appexemplo_v3.0/dao/Pedido_itemVO.class.php new file mode 100644 index 00000000..639028cc --- /dev/null +++ b/appexemplo_v3.0/dao/Pedido_itemVO.class.php @@ -0,0 +1,73 @@ +setIdpedido_item( $idpedido_item ); + $this->setIdpedido( $idpedido ); + $this->setIdproduto( $idproduto ); + $this->setQtd_unidade( $qtd_unidade ); + $this->setPreco( $preco ); + } + //-------------------------------------------------------------------------------- + public function setIdpedido_item( $strNewValue = null ) + { + $this->idpedido_item = $strNewValue; + } + public function getIdpedido_item() + { + return $this->idpedido_item; + } + //-------------------------------------------------------------------------------- + public function setIdpedido( $strNewValue = null ) + { + $this->idpedido = $strNewValue; + } + public function getIdpedido() + { + return $this->idpedido; + } + //-------------------------------------------------------------------------------- + public function setIdproduto( $strNewValue = null ) + { + $this->idproduto = $strNewValue; + } + public function getIdproduto() + { + return $this->idproduto; + } + //-------------------------------------------------------------------------------- + public function setQtd_unidade( $strNewValue = null ) + { + $this->qtd_unidade = $strNewValue; + } + public function getQtd_unidade() + { + return $this->qtd_unidade; + } + //-------------------------------------------------------------------------------- + public function setPreco( $strNewValue = null ) + { + $this->preco = $strNewValue; + } + public function getPreco() + { + return $this->preco; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/PessoaVO.class.php b/appexemplo_v3.0/dao/PessoaVO.class.php new file mode 100644 index 00000000..cfcc5047 --- /dev/null +++ b/appexemplo_v3.0/dao/PessoaVO.class.php @@ -0,0 +1,84 @@ +setIdpessoa( $idpessoa ); + $this->setNome( $nome ); + $this->setTipo( $tipo ); + $this->setSit_ativo( $sit_ativo ); + $this->setDat_inclusao( $dat_inclusao ); + $this->setDat_alteracao( $dat_alteracao ); + } + //-------------------------------------------------------------------------------- + public function setIdpessoa( $strNewValue = null ) + { + $this->idpessoa = $strNewValue; + } + public function getIdpessoa() + { + return $this->idpessoa; + } + //-------------------------------------------------------------------------------- + public function setNome( $strNewValue = null ) + { + $this->nome = $strNewValue; + } + public function getNome() + { + return $this->nome; + } + //-------------------------------------------------------------------------------- + public function setTipo( $strNewValue = null ) + { + $this->tipo = $strNewValue; + } + public function getTipo() + { + return $this->tipo; + } + //-------------------------------------------------------------------------------- + public function setSit_ativo( $strNewValue = null ) + { + $this->sit_ativo = $strNewValue; + } + public function getSit_ativo() + { + return $this->sit_ativo; + } + //-------------------------------------------------------------------------------- + public function setDat_inclusao( $strNewValue = null ) + { + $this->dat_inclusao = $strNewValue; + } + public function getDat_inclusao() + { + return is_null( $this->dat_inclusao ) ? date( 'Y-m-d h:i:s' ) : $this->dat_inclusao; + } + //-------------------------------------------------------------------------------- + public function setDat_alteracao( $strNewValue = null ) + { + $this->dat_alteracao = $strNewValue; + } + public function getDat_alteracao() + { + return is_null( $this->dat_alteracao ) ? date( 'Y-m-d h:i:s' ) : $this->dat_alteracao; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/Pessoa_fisicaVO.class.php b/appexemplo_v3.0/dao/Pessoa_fisicaVO.class.php new file mode 100644 index 00000000..c79e889c --- /dev/null +++ b/appexemplo_v3.0/dao/Pessoa_fisicaVO.class.php @@ -0,0 +1,106 @@ +setIdpessoa_fisica( $idpessoa_fisica ); + $this->setIdpessoa( $idpessoa ); + $this->setCpf( $cpf ); + $this->setRg( $rg ); + $this->setDat_nascimento( $dat_nascimento ); + $this->setCod_municipio_nascimento( $cod_municipio_nascimento ); + $this->setDat_inclusao( $dat_inclusao ); + $this->setDat_alteracao( $dat_alteracao ); + } + //-------------------------------------------------------------------------------- + public function setIdpessoa_fisica( $strNewValue = null ) + { + $this->idpessoa_fisica = $strNewValue; + } + public function getIdpessoa_fisica() + { + return $this->idpessoa_fisica; + } + //-------------------------------------------------------------------------------- + public function setIdpessoa( $strNewValue = null ) + { + $this->idpessoa = $strNewValue; + } + public function getIdpessoa() + { + return $this->idpessoa; + } + //-------------------------------------------------------------------------------- + public function setCpf( $strNewValue = null ) + { + $this->cpf = preg_replace('/[^0-9]/','',$strNewValue); + } + public function getCpf() + { + return $this->cpf; + } + //-------------------------------------------------------------------------------- + public function setRg( $strNewValue = null ) + { + $this->rg = $strNewValue; + } + public function getRg() + { + return $this->rg; + } + //-------------------------------------------------------------------------------- + public function setDat_nascimento( $strNewValue = null ) + { + $this->dat_nascimento = $strNewValue; + } + public function getDat_nascimento() + { + return is_null( $this->dat_nascimento ) ? date( 'Y-m-d h:i:s' ) : $this->dat_nascimento; + } + //-------------------------------------------------------------------------------- + public function setCod_municipio_nascimento( $strNewValue = null ) + { + $this->cod_municipio_nascimento = $strNewValue; + } + public function getCod_municipio_nascimento() + { + return $this->cod_municipio_nascimento; + } + //-------------------------------------------------------------------------------- + public function setDat_inclusao( $strNewValue = null ) + { + $this->dat_inclusao = $strNewValue; + } + public function getDat_inclusao() + { + return is_null( $this->dat_inclusao ) ? date( 'Y-m-d h:i:s' ) : $this->dat_inclusao; + } + //-------------------------------------------------------------------------------- + public function setDat_alteracao( $strNewValue = null ) + { + $this->dat_alteracao = $strNewValue; + } + public function getDat_alteracao() + { + return is_null( $this->dat_alteracao ) ? date( 'Y-m-d h:i:s' ) : $this->dat_alteracao; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/Pessoa_juridicaVO.class.php b/appexemplo_v3.0/dao/Pessoa_juridicaVO.class.php new file mode 100644 index 00000000..8992edd6 --- /dev/null +++ b/appexemplo_v3.0/dao/Pessoa_juridicaVO.class.php @@ -0,0 +1,73 @@ +setIdpessoa_juridica( $idpessoa_juridica ); + $this->setCnpj( $cnpj ); + $this->setIdpessoa( $idpessoa ); + $this->setCnae( $cnae ); + $this->setIdnatureza_juridica( $idnatureza_juridica ); + } + //-------------------------------------------------------------------------------- + public function setIdpessoa_juridica( $strNewValue = null ) + { + $this->idpessoa_juridica = $strNewValue; + } + public function getIdpessoa_juridica() + { + return $this->idpessoa_juridica; + } + //-------------------------------------------------------------------------------- + public function setCnpj( $strNewValue = null ) + { + $this->cnpj = preg_replace('/[^0-9]/','',$strNewValue); + } + public function getCnpj() + { + return $this->cnpj; + } + //-------------------------------------------------------------------------------- + public function setIdpessoa( $strNewValue = null ) + { + $this->idpessoa = $strNewValue; + } + public function getIdpessoa() + { + return $this->idpessoa; + } + //-------------------------------------------------------------------------------- + public function setCnae( $strNewValue = null ) + { + $this->cnae = $strNewValue; + } + public function getCnae() + { + return $this->cnae; + } + //-------------------------------------------------------------------------------- + public function setIdnatureza_juridica( $strNewValue = null ) + { + $this->idnatureza_juridica = $strNewValue; + } + public function getIdnatureza_juridica() + { + return $this->idnatureza_juridica; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/ProdutoVO.class.php b/appexemplo_v3.0/dao/ProdutoVO.class.php new file mode 100644 index 00000000..9c83d879 --- /dev/null +++ b/appexemplo_v3.0/dao/ProdutoVO.class.php @@ -0,0 +1,84 @@ +setIdproduto( $idproduto ); + $this->setNom_produto( $nom_produto ); + $this->setModelo( $modelo ); + $this->setVersao( $versao ); + $this->setIdmarca( $idmarca ); + $this->setIdtipo_produto( $idtipo_produto ); + } + //-------------------------------------------------------------------------------- + public function setIdproduto( $strNewValue = null ) + { + $this->idproduto = $strNewValue; + } + public function getIdproduto() + { + return $this->idproduto; + } + //-------------------------------------------------------------------------------- + public function setNom_produto( $strNewValue = null ) + { + $this->nom_produto = $strNewValue; + } + public function getNom_produto() + { + return $this->nom_produto; + } + //-------------------------------------------------------------------------------- + public function setModelo( $strNewValue = null ) + { + $this->modelo = $strNewValue; + } + public function getModelo() + { + return $this->modelo; + } + //-------------------------------------------------------------------------------- + public function setVersao( $strNewValue = null ) + { + $this->versao = $strNewValue; + } + public function getVersao() + { + return $this->versao; + } + //-------------------------------------------------------------------------------- + public function setIdmarca( $strNewValue = null ) + { + $this->idmarca = $strNewValue; + } + public function getIdmarca() + { + return $this->idmarca; + } + //-------------------------------------------------------------------------------- + public function setIdtipo_produto( $strNewValue = null ) + { + $this->idtipo_produto = $strNewValue; + } + public function getIdtipo_produto() + { + return $this->idtipo_produto; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/RegiaoVO.class.php b/appexemplo_v3.0/dao/RegiaoVO.class.php new file mode 100644 index 00000000..7bf9d778 --- /dev/null +++ b/appexemplo_v3.0/dao/RegiaoVO.class.php @@ -0,0 +1,40 @@ +setCod_regiao( $cod_regiao ); + $this->setNom_regiao( $nom_regiao ); + } + //-------------------------------------------------------------------------------- + public function setCod_regiao( $strNewValue = null ) + { + $this->cod_regiao = $strNewValue; + } + public function getCod_regiao() + { + return $this->cod_regiao; + } + //-------------------------------------------------------------------------------- + public function setNom_regiao( $strNewValue = null ) + { + $this->nom_regiao = $strNewValue; + } + public function getNom_regiao() + { + return $this->nom_regiao; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/SelfilhosmenuVO.class.php b/appexemplo_v3.0/dao/SelfilhosmenuVO.class.php new file mode 100644 index 00000000..f2ef3227 --- /dev/null +++ b/appexemplo_v3.0/dao/SelfilhosmenuVO.class.php @@ -0,0 +1,29 @@ +setIdmenu_pai( $idmenu_pai ); + } + //-------------------------------------------------------------------------------- + public function setIdmenu_pai( $strNewValue = null ) + { + $this->idmenu_pai = $strNewValue; + } + public function getIdmenu_pai() + { + return $this->idmenu_pai; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/SelfilhosmenuqtdVO.class.php b/appexemplo_v3.0/dao/SelfilhosmenuqtdVO.class.php new file mode 100644 index 00000000..31c771d8 --- /dev/null +++ b/appexemplo_v3.0/dao/SelfilhosmenuqtdVO.class.php @@ -0,0 +1,40 @@ +setQtd( $qtd ); + $this->setIdmenu_pai( $idmenu_pai ); + } + //-------------------------------------------------------------------------------- + public function setQtd( $strNewValue = null ) + { + $this->qtd = $strNewValue; + } + public function getQtd() + { + return $this->qtd; + } + //-------------------------------------------------------------------------------- + public function setIdmenu_pai( $strNewValue = null ) + { + $this->idmenu_pai = $strNewValue; + } + public function getIdmenu_pai() + { + return $this->idmenu_pai; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/SelmenuqtdVO.class.php b/appexemplo_v3.0/dao/SelmenuqtdVO.class.php new file mode 100644 index 00000000..64b8307e --- /dev/null +++ b/appexemplo_v3.0/dao/SelmenuqtdVO.class.php @@ -0,0 +1,29 @@ +setQtd( $qtd ); + } + //-------------------------------------------------------------------------------- + public function setQtd( $strNewValue = null ) + { + $this->qtd = $strNewValue; + } + public function getQtd() + { + return $this->qtd; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/TelefoneVO.class.php b/appexemplo_v3.0/dao/TelefoneVO.class.php new file mode 100644 index 00000000..c9f822ff --- /dev/null +++ b/appexemplo_v3.0/dao/TelefoneVO.class.php @@ -0,0 +1,106 @@ +setIdtelefone( $idtelefone ); + $this->setNumero( $numero ); + $this->setIdpessoa( $idpessoa ); + $this->setIdtipo_telefone( $idtipo_telefone ); + $this->setIdendereco( $idendereco ); + $this->setSit_fixo( $sit_fixo ); + $this->setWhastapp( $whastapp ); + $this->setTelegram( $telegram ); + } + //-------------------------------------------------------------------------------- + public function setIdtelefone( $strNewValue = null ) + { + $this->idtelefone = $strNewValue; + } + public function getIdtelefone() + { + return $this->idtelefone; + } + //-------------------------------------------------------------------------------- + public function setNumero( $strNewValue = null ) + { + $this->numero = $strNewValue; + } + public function getNumero() + { + return $this->numero; + } + //-------------------------------------------------------------------------------- + public function setIdpessoa( $strNewValue = null ) + { + $this->idpessoa = $strNewValue; + } + public function getIdpessoa() + { + return $this->idpessoa; + } + //-------------------------------------------------------------------------------- + public function setIdtipo_telefone( $strNewValue = null ) + { + $this->idtipo_telefone = $strNewValue; + } + public function getIdtipo_telefone() + { + return $this->idtipo_telefone; + } + //-------------------------------------------------------------------------------- + public function setIdendereco( $strNewValue = null ) + { + $this->idendereco = $strNewValue; + } + public function getIdendereco() + { + return $this->idendereco; + } + //-------------------------------------------------------------------------------- + public function setSit_fixo( $strNewValue = null ) + { + $this->sit_fixo = $strNewValue; + } + public function getSit_fixo() + { + return $this->sit_fixo; + } + //-------------------------------------------------------------------------------- + public function setWhastapp( $strNewValue = null ) + { + $this->whastapp = $strNewValue; + } + public function getWhastapp() + { + return $this->whastapp; + } + //-------------------------------------------------------------------------------- + public function setTelegram( $strNewValue = null ) + { + $this->telegram = $strNewValue; + } + public function getTelegram() + { + return $this->telegram; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/TipoVO.class.php b/appexemplo_v3.0/dao/TipoVO.class.php new file mode 100644 index 00000000..a12782e2 --- /dev/null +++ b/appexemplo_v3.0/dao/TipoVO.class.php @@ -0,0 +1,62 @@ +setIdtipo( $idtipo ); + $this->setDescricao( $descricao ); + $this->setIdmeta_tipo( $idmeta_tipo ); + $this->setSit_ativo( $sit_ativo ); + } + //-------------------------------------------------------------------------------- + public function setIdtipo( $strNewValue = null ) + { + $this->idtipo = $strNewValue; + } + public function getIdtipo() + { + return $this->idtipo; + } + //-------------------------------------------------------------------------------- + public function setDescricao( $strNewValue = null ) + { + $this->descricao = $strNewValue; + } + public function getDescricao() + { + return $this->descricao; + } + //-------------------------------------------------------------------------------- + public function setIdmeta_tipo( $strNewValue = null ) + { + $this->idmeta_tipo = $strNewValue; + } + public function getIdmeta_tipo() + { + return $this->idmeta_tipo; + } + //-------------------------------------------------------------------------------- + public function setSit_ativo( $strNewValue = null ) + { + $this->sit_ativo = $strNewValue; + } + public function getSit_ativo() + { + return $this->sit_ativo; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/UfVO.class.php b/appexemplo_v3.0/dao/UfVO.class.php new file mode 100644 index 00000000..97835643 --- /dev/null +++ b/appexemplo_v3.0/dao/UfVO.class.php @@ -0,0 +1,62 @@ +setCod_uf( $cod_uf ); + $this->setNom_uf( $nom_uf ); + $this->setSig_uf( $sig_uf ); + $this->setCod_regiao( $cod_regiao ); + } + //-------------------------------------------------------------------------------- + public function setCod_uf( $strNewValue = null ) + { + $this->cod_uf = $strNewValue; + } + public function getCod_uf() + { + return $this->cod_uf; + } + //-------------------------------------------------------------------------------- + public function setNom_uf( $strNewValue = null ) + { + $this->nom_uf = $strNewValue; + } + public function getNom_uf() + { + return $this->nom_uf; + } + //-------------------------------------------------------------------------------- + public function setSig_uf( $strNewValue = null ) + { + $this->sig_uf = $strNewValue; + } + public function getSig_uf() + { + return $this->sig_uf; + } + //-------------------------------------------------------------------------------- + public function setCod_regiao( $strNewValue = null ) + { + $this->cod_regiao = $strNewValue; + } + public function getCod_regiao() + { + return $this->cod_regiao; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/Vw_acesso_user_menuVO.class.php b/appexemplo_v3.0/dao/Vw_acesso_user_menuVO.class.php new file mode 100644 index 00000000..0bf511df --- /dev/null +++ b/appexemplo_v3.0/dao/Vw_acesso_user_menuVO.class.php @@ -0,0 +1,84 @@ +setIduser( $iduser ); + $this->setLogin_user( $login_user ); + $this->setIdperfil( $idperfil ); + $this->setNom_perfil( $nom_perfil ); + $this->setIdmenu( $idmenu ); + $this->setNom_menu( $nom_menu ); + } + //-------------------------------------------------------------------------------- + public function setIduser( $strNewValue = null ) + { + $this->iduser = $strNewValue; + } + public function getIduser() + { + return $this->iduser; + } + //-------------------------------------------------------------------------------- + public function setLogin_user( $strNewValue = null ) + { + $this->login_user = $strNewValue; + } + public function getLogin_user() + { + return $this->login_user; + } + //-------------------------------------------------------------------------------- + public function setIdperfil( $strNewValue = null ) + { + $this->idperfil = $strNewValue; + } + public function getIdperfil() + { + return $this->idperfil; + } + //-------------------------------------------------------------------------------- + public function setNom_perfil( $strNewValue = null ) + { + $this->nom_perfil = $strNewValue; + } + public function getNom_perfil() + { + return $this->nom_perfil; + } + //-------------------------------------------------------------------------------- + public function setIdmenu( $strNewValue = null ) + { + $this->idmenu = $strNewValue; + } + public function getIdmenu() + { + return $this->idmenu; + } + //-------------------------------------------------------------------------------- + public function setNom_menu( $strNewValue = null ) + { + $this->nom_menu = $strNewValue; + } + public function getNom_menu() + { + return $this->nom_menu; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/Vw_pessoaVO.class.php b/appexemplo_v3.0/dao/Vw_pessoaVO.class.php new file mode 100644 index 00000000..c95596c4 --- /dev/null +++ b/appexemplo_v3.0/dao/Vw_pessoaVO.class.php @@ -0,0 +1,186 @@ +setIdpessoa( $idpessoa ); + $this->setCpfcnpj( $cpfcnpj ); + $this->setNome( $nome ); + $this->setTipo( $tipo ); + $this->setSit_ativo( $sit_ativo ); + $this->setDat_inclusao( $dat_inclusao ); + $this->setDat_inclusao_format( $dat_inclusao_format ); + $this->setCpf( $cpf ); + $this->setIdpessoa_fisica( $idpessoa_fisica ); + $this->setCod_municipio_nascimento( $cod_municipio_nascimento ); + $this->setDat_nascimento( $dat_nascimento ); + $this->setDat_nascimento_format( $dat_nascimento_format ); + $this->setIdnatureza_juridica( $idnatureza_juridica ); + $this->setCnpj( $cnpj ); + } + //-------------------------------------------------------------------------------- + public function setIdpessoa( $strNewValue = null ) + { + $this->idpessoa = $strNewValue; + } + public function getIdpessoa() + { + return $this->idpessoa; + } + //-------------------------------------------------------------------------------- + public function setCpfcnpj( $strNewValue = null ) + { + $this->cpfcnpj = preg_replace('/[^0-9]/','',$strNewValue); + } + public function getCpfcnpj() + { + $cpfcnpj = $this->cpfcnpj; + if( empty($cpfcnpj) ){ + $cpfcnpj = $this->getCpf(); + if( empty($cpfcnpj) ){ + $cpfcnpj = $this->getCnpj(); + } + } + return $this->cpfcnpj; + } + //-------------------------------------------------------------------------------- + public function setNome( $strNewValue = null ) + { + $this->nome = $strNewValue; + } + public function getNome() + { + return $this->nome; + } + //-------------------------------------------------------------------------------- + public function setTipo( $strNewValue = null ) + { + $this->tipo = $strNewValue; + } + public function getTipo() + { + return $this->tipo; + } + //-------------------------------------------------------------------------------- + public function setSit_ativo( $strNewValue = null ) + { + $this->sit_ativo = $strNewValue; + } + public function getSit_ativo() + { + return $this->sit_ativo; + } + //-------------------------------------------------------------------------------- + public function setDat_inclusao( $strNewValue = null ) + { + $this->dat_inclusao = $strNewValue; + } + public function getDat_inclusao() + { + return is_null( $this->dat_inclusao ) ? date( 'Y-m-d h:i:s' ) : $this->dat_inclusao; + } + //-------------------------------------------------------------------------------- + public function setDat_inclusao_format( $strNewValue = null ) + { + $this->dat_inclusao_format = $strNewValue; + } + public function getDat_inclusao_format() + { + return is_null( $this->dat_inclusao_format ) ? date( 'Y-m-d h:i:s' ) : $this->dat_inclusao_format; + } + //-------------------------------------------------------------------------------- + public function setCpf( $strNewValue = null ) + { + $this->cpf = preg_replace('/[^0-9]/','',$strNewValue); + } + public function getCpf() + { + return $this->cpf; + } + //-------------------------------------------------------------------------------- + public function setIdpessoa_fisica( $strNewValue = null ) + { + $this->idpessoa_fisica = $strNewValue; + } + public function getIdpessoa_fisica() + { + return $this->idpessoa_fisica; + } + //-------------------------------------------------------------------------------- + public function setCod_municipio_nascimento( $strNewValue = null ) + { + $this->cod_municipio_nascimento = $strNewValue; + } + public function getCod_municipio_nascimento() + { + return $this->cod_municipio_nascimento; + } + //-------------------------------------------------------------------------------- + public function setDat_nascimento( $strNewValue = null ) + { + $this->dat_nascimento = $strNewValue; + } + public function getDat_nascimento() + { + return is_null( $this->dat_nascimento ) ? date( 'Y-m-d h:i:s' ) : $this->dat_nascimento; + } + //-------------------------------------------------------------------------------- + public function setDat_nascimento_format( $strNewValue = null ) + { + $this->dat_nascimento_format = $strNewValue; + } + public function getDat_nascimento_format() + { + return is_null( $this->dat_nascimento_format ) ? date( 'Y-m-d h:i:s' ) : $this->dat_nascimento_format; + } + //-------------------------------------------------------------------------------- + public function setIdnatureza_juridica( $strNewValue = null ) + { + $this->idnatureza_juridica = $strNewValue; + } + public function getIdnatureza_juridica() + { + return $this->idnatureza_juridica; + } + //-------------------------------------------------------------------------------- + public function setCnpj( $strNewValue = null ) + { + $this->cnpj = preg_replace('/[^0-9]/','',$strNewValue); + } + public function getCnpj() + { + return $this->cnpj; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/Vw_pessoa_fisicaVO.class.php b/appexemplo_v3.0/dao/Vw_pessoa_fisicaVO.class.php new file mode 100644 index 00000000..a75ed9a9 --- /dev/null +++ b/appexemplo_v3.0/dao/Vw_pessoa_fisicaVO.class.php @@ -0,0 +1,194 @@ +setIdpessoa( $idpessoa ); + $this->setNome( $nome ); + $this->setTipo( $tipo ); + $this->setSit_ativo( $sit_ativo ); + $this->setCpf( $cpf ); + $this->setRg( $rg ); + $this->setCod_uf( $cod_uf ); + $this->setNom_uf( $nom_uf ); + $this->setSig_uf( $sig_uf ); + $this->setCod_municipio_nascimento( $cod_municipio_nascimento ); + $this->setNom_municipio( $nom_municipio ); + $this->setDat_nascimento( $dat_nascimento ); + $this->setDat_nascimento_format( $dat_nascimento_format ); + $this->setIdpessoa_fisica( $idpessoa_fisica ); + $this->setDat_inclusao( $dat_inclusao ); + $this->setDat_alteracao( $dat_alteracao ); + } + //-------------------------------------------------------------------------------- + public function setIdpessoa( $strNewValue = null ) + { + $this->idpessoa = $strNewValue; + } + public function getIdpessoa() + { + return $this->idpessoa; + } + //-------------------------------------------------------------------------------- + public function setNome( $strNewValue = null ) + { + $this->nome = $strNewValue; + } + public function getNome() + { + return $this->nome; + } + //-------------------------------------------------------------------------------- + public function setTipo( $strNewValue = null ) + { + $this->tipo = $strNewValue; + } + public function getTipo() + { + return $this->tipo; + } + //-------------------------------------------------------------------------------- + public function setSit_ativo( $strNewValue = null ) + { + $this->sit_ativo = $strNewValue; + } + public function getSit_ativo() + { + return $this->sit_ativo; + } + //-------------------------------------------------------------------------------- + public function setCpf( $strNewValue = null ) + { + $this->cpf = preg_replace('/[^0-9]/','',$strNewValue); + } + public function getCpf() + { + return $this->cpf; + } + //-------------------------------------------------------------------------------- + public function setRg( $strNewValue = null ) + { + $this->rg = $strNewValue; + } + public function getRg() + { + return $this->rg; + } + //-------------------------------------------------------------------------------- + public function setCod_uf( $strNewValue = null ) + { + $this->cod_uf = $strNewValue; + } + public function getCod_uf() + { + return $this->cod_uf; + } + //-------------------------------------------------------------------------------- + public function setNom_uf( $strNewValue = null ) + { + $this->nom_uf = $strNewValue; + } + public function getNom_uf() + { + return $this->nom_uf; + } + //-------------------------------------------------------------------------------- + public function setSig_uf( $strNewValue = null ) + { + $this->sig_uf = $strNewValue; + } + public function getSig_uf() + { + return $this->sig_uf; + } + //-------------------------------------------------------------------------------- + public function setCod_municipio_nascimento( $strNewValue = null ) + { + $this->cod_municipio_nascimento = $strNewValue; + } + public function getCod_municipio_nascimento() + { + return $this->cod_municipio_nascimento; + } + //-------------------------------------------------------------------------------- + public function setNom_municipio( $strNewValue = null ) + { + $this->nom_municipio = $strNewValue; + } + public function getNom_municipio() + { + return $this->nom_municipio; + } + //-------------------------------------------------------------------------------- + public function setDat_nascimento( $strNewValue = null ) + { + $this->dat_nascimento = $strNewValue; + } + public function getDat_nascimento() + { + return is_null( $this->dat_nascimento ) ? date( 'Y-m-d h:i:s' ) : $this->dat_nascimento; + } + //-------------------------------------------------------------------------------- + public function setDat_nascimento_format( $strNewValue = null ) + { + $this->dat_nascimento_format = $strNewValue; + } + public function getDat_nascimento_format() + { + return is_null( $this->dat_nascimento_format ) ? date( 'Y-m-d h:i:s' ) : $this->dat_nascimento_format; + } + //-------------------------------------------------------------------------------- + public function setIdpessoa_fisica( $strNewValue = null ) + { + $this->idpessoa_fisica = $strNewValue; + } + public function getIdpessoa_fisica() + { + return $this->idpessoa_fisica; + } + //-------------------------------------------------------------------------------- + public function setDat_inclusao( $strNewValue = null ) + { + $this->dat_inclusao = $strNewValue; + } + public function getDat_inclusao() + { + return is_null( $this->dat_inclusao ) ? date( 'Y-m-d h:i:s' ) : $this->dat_inclusao; + } + //-------------------------------------------------------------------------------- + public function setDat_alteracao( $strNewValue = null ) + { + $this->dat_alteracao = $strNewValue; + } + public function getDat_alteracao() + { + return is_null( $this->dat_alteracao ) ? date( 'Y-m-d h:i:s' ) : $this->dat_alteracao; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/Vw_pessoa_marca_produtoVO.class.php b/appexemplo_v3.0/dao/Vw_pessoa_marca_produtoVO.class.php new file mode 100644 index 00000000..b9c657b7 --- /dev/null +++ b/appexemplo_v3.0/dao/Vw_pessoa_marca_produtoVO.class.php @@ -0,0 +1,84 @@ +setIdpessoa( $idpessoa ); + $this->setNome( $nome ); + $this->setIdmarca( $idmarca ); + $this->setNom_marca( $nom_marca ); + $this->setIdproduto( $idproduto ); + $this->setNom_produto( $nom_produto ); + } + //-------------------------------------------------------------------------------- + public function setIdpessoa( $strNewValue = null ) + { + $this->idpessoa = $strNewValue; + } + public function getIdpessoa() + { + return $this->idpessoa; + } + //-------------------------------------------------------------------------------- + public function setNome( $strNewValue = null ) + { + $this->nome = $strNewValue; + } + public function getNome() + { + return $this->nome; + } + //-------------------------------------------------------------------------------- + public function setIdmarca( $strNewValue = null ) + { + $this->idmarca = $strNewValue; + } + public function getIdmarca() + { + return $this->idmarca; + } + //-------------------------------------------------------------------------------- + public function setNom_marca( $strNewValue = null ) + { + $this->nom_marca = $strNewValue; + } + public function getNom_marca() + { + return $this->nom_marca; + } + //-------------------------------------------------------------------------------- + public function setIdproduto( $strNewValue = null ) + { + $this->idproduto = $strNewValue; + } + public function getIdproduto() + { + return $this->idproduto; + } + //-------------------------------------------------------------------------------- + public function setNom_produto( $strNewValue = null ) + { + $this->nom_produto = $strNewValue; + } + public function getNom_produto() + { + return $this->nom_produto; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/Vw_regiao_municipioVO.class.php b/appexemplo_v3.0/dao/Vw_regiao_municipioVO.class.php new file mode 100644 index 00000000..320ebb04 --- /dev/null +++ b/appexemplo_v3.0/dao/Vw_regiao_municipioVO.class.php @@ -0,0 +1,106 @@ +setCod_regiao( $cod_regiao ); + $this->setNom_regiao( $nom_regiao ); + $this->setCod_uf( $cod_uf ); + $this->setNom_uf( $nom_uf ); + $this->setSig_uf( $sig_uf ); + $this->setCod_municipio( $cod_municipio ); + $this->setNom_municipio( $nom_municipio ); + $this->setSit_ativo( $sit_ativo ); + } + //-------------------------------------------------------------------------------- + public function setCod_regiao( $strNewValue = null ) + { + $this->cod_regiao = $strNewValue; + } + public function getCod_regiao() + { + return $this->cod_regiao; + } + //-------------------------------------------------------------------------------- + public function setNom_regiao( $strNewValue = null ) + { + $this->nom_regiao = $strNewValue; + } + public function getNom_regiao() + { + return $this->nom_regiao; + } + //-------------------------------------------------------------------------------- + public function setCod_uf( $strNewValue = null ) + { + $this->cod_uf = $strNewValue; + } + public function getCod_uf() + { + return $this->cod_uf; + } + //-------------------------------------------------------------------------------- + public function setNom_uf( $strNewValue = null ) + { + $this->nom_uf = $strNewValue; + } + public function getNom_uf() + { + return $this->nom_uf; + } + //-------------------------------------------------------------------------------- + public function setSig_uf( $strNewValue = null ) + { + $this->sig_uf = $strNewValue; + } + public function getSig_uf() + { + return $this->sig_uf; + } + //-------------------------------------------------------------------------------- + public function setCod_municipio( $strNewValue = null ) + { + $this->cod_municipio = $strNewValue; + } + public function getCod_municipio() + { + return $this->cod_municipio; + } + //-------------------------------------------------------------------------------- + public function setNom_municipio( $strNewValue = null ) + { + $this->nom_municipio = $strNewValue; + } + public function getNom_municipio() + { + return $this->nom_municipio; + } + //-------------------------------------------------------------------------------- + public function setSit_ativo( $strNewValue = null ) + { + $this->sit_ativo = $strNewValue; + } + public function getSit_ativo() + { + return $this->sit_ativo; + } + //-------------------------------------------------------------------------------- +} +?> \ No newline at end of file diff --git a/appexemplo_v3.0/dao/autoload_appev2_dao.php b/appexemplo_v3.0/dao/autoload_appev2_dao.php new file mode 100644 index 00000000..b4ad40f3 --- /dev/null +++ b/appexemplo_v3.0/dao/autoload_appev2_dao.php @@ -0,0 +1,24 @@ +