Ejemplo n.º 1
0
 /**
  * Construtor
  *
  * @return Object:clsMunicipio
  */
 function clsMunicipio($int_idmun = false, $str_nome = false, $str_sigla_uf = false, $int_area_km2 = false, $int_idmreg = false, $int_idasmun = false, $int_cod_ibge = false, $str_geom = false, $str_tipo = false, $int_idmun_pai = false, $int_idpes_cad = false, $int_idpes_rev = false, $str_origem_gravacao = false, $str_operacao = false, $int_idsis_cad = false, $int_idsis_rev = false)
 {
     if ($int_idmun) {
         $this->idmun = $int_idmun;
     }
     $this->nome = $str_nome;
     $objUf = new clsUf($str_sigla_uf);
     if ($objUf->detalhe()) {
         $this->sigla_uf = $str_sigla_uf;
     }
     $this->area_km2 = $int_area_km2;
     $this->idmreg = $int_idmreg;
     $objPais = new clsPais($int_idasmun);
     if ($objPais->detalhe()) {
         $this->idasmun = $int_idasmun;
     }
     $this->cod_ibge = $int_cod_ibge;
     $this->geom = $str_geom;
     $this->tipo = $str_tipo;
     $this->idpes_cad = $int_idpes_cad;
     $this->idpes_rev = $int_idpes_rev;
     $this->idsis_cad = $int_idsis_cad;
     $this->idsis_rev = $int_idsis_rev;
     $this->operacao = $str_operacao;
     $this->origem_gravacao = $str_origem_gravacao;
     $objPais = new clsPais($int_idmun_pai);
     if ($objPais->detalhe()) {
         $this->idmun_pai = $int_idmun_pai;
     }
     $this->tabela = "municipio";
 }
Ejemplo n.º 2
0
 /**
  * Construtor
  *
  * @return Object:clsUf
  */
 function clsUf($str_sigla_uf = false, $str_nome = false, $str_geom = false, $int_idpais = false)
 {
     global $coreExt;
     $this->config = $coreExt['Config'];
     $this->sigla_uf = $str_sigla_uf;
     $this->nome = $str_nome;
     $this->geom = $str_geom;
     $objPais = new clsPais($int_idpais);
     if ($objPais->detalhe()) {
         $this->idpais = $int_idpais;
     }
     $this->tabela = "uf";
 }
Ejemplo n.º 3
0
 function Gerar()
 {
     @session_start();
     $this->pessoa_logada = $_SESSION['id_pessoa'];
     session_write_close();
     $this->titulo = "Uf - Detalhe";
     $this->sigla_uf = $_GET["sigla_uf"];
     $tmp_obj = new clsPublicUf($this->sigla_uf);
     $registro = $tmp_obj->detalhe();
     if (!$registro) {
         header("location: public_uf_lst.php");
         die;
     }
     if (class_exists("clsPais")) {
         $obj_idpais = new clsPais($registro["idpais"]);
         $det_idpais = $obj_idpais->detalhe();
         $registro["idpais"] = $det_idpais["nome"];
     } else {
         $registro["idpais"] = "Erro na geracao";
         echo "<!--\nErro\nClasse nao existente: clsPais\n-->";
     }
     if ($registro["sigla_uf"]) {
         $this->addDetalhe(array("Sigla Uf", "{$registro["sigla_uf"]}"));
     }
     if ($registro["nome"]) {
         $this->addDetalhe(array("Nome", "{$registro["nome"]}"));
     }
     if ($registro["geom"]) {
         $this->addDetalhe(array("Geom", "{$registro["geom"]}"));
     }
     if ($registro["idpais"]) {
         $this->addDetalhe(array("Pais", "{$registro["idpais"]}"));
     }
     $this->url_novo = "public_uf_cad.php";
     $this->url_editar = "public_uf_cad.php?sigla_uf={$registro["sigla_uf"]}";
     $this->url_cancelar = "public_uf_lst.php";
     $this->largura = "100%";
     $localizacao = new LocalizacaoSistema();
     $localizacao->entradaCaminhos(array($_SERVER['SERVER_NAME'] . "/intranet" => "In&iacute;cio", "" => "Detalhe da UF"));
     $this->enviaLocalizacao($localizacao->montar());
 }
Ejemplo n.º 4
0
 function Gerar()
 {
     @session_start();
     $this->pessoa_logada = $_SESSION['id_pessoa'];
     session_write_close();
     $this->titulo = "Uf - Detalhe";
     $this->addBanner("imagens/nvp_top_intranet.jpg", "imagens/nvp_vert_intranet.jpg", "Intranet");
     $this->sigla_uf = $_GET["sigla_uf"];
     $tmp_obj = new clsPublicUf($this->sigla_uf);
     $registro = $tmp_obj->detalhe();
     if (!$registro) {
         header("location: public_uf_lst.php");
         die;
     }
     if (class_exists("clsPais")) {
         $obj_idpais = new clsPais($registro["idpais"]);
         $det_idpais = $obj_idpais->detalhe();
         $registro["idpais"] = $det_idpais["nome"];
     } else {
         $registro["idpais"] = "Erro na geracao";
         echo "<!--\nErro\nClasse nao existente: clsPais\n-->";
     }
     if ($registro["sigla_uf"]) {
         $this->addDetalhe(array("Sigla Uf", "{$registro["sigla_uf"]}"));
     }
     if ($registro["nome"]) {
         $this->addDetalhe(array("Nome", "{$registro["nome"]}"));
     }
     if ($registro["geom"]) {
         $this->addDetalhe(array("Geom", "{$registro["geom"]}"));
     }
     if ($registro["idpais"]) {
         $this->addDetalhe(array("Pais", "{$registro["idpais"]}"));
     }
     $this->url_novo = "public_uf_cad.php";
     $this->url_editar = "public_uf_cad.php?sigla_uf={$registro["sigla_uf"]}";
     $this->url_cancelar = "public_uf_lst.php";
     $this->largura = "100%";
 }
Ejemplo n.º 5
0
 function Gerar()
 {
     @session_start();
     $this->pessoa_logada = $_SESSION['id_pessoa'];
     session_write_close();
     $this->titulo = "Munic&iacute;pio - Detalhe";
     $this->addBanner("imagens/nvp_top_intranet.jpg", "imagens/nvp_vert_intranet.jpg", "Intranet");
     $this->idmun = $_GET["idmun"];
     $tmp_obj = new clsPublicMunicipio($this->idmun);
     $registro = $tmp_obj->detalhe();
     if (!$registro) {
         header("location: public_municipio_lst.php");
         die;
     }
     if (class_exists("clsPais")) {
         $obj_uf = new clsUf($registro["sigla_uf"]);
         $det_uf = $obj_uf->detalhe();
         $obj_pais = new clsPais($det_uf['idpais']->idpais);
         $det_pais = $obj_pais->detalhe();
         $registro["idpais"] = $det_pais["nome"];
     } else {
         $registro["idpais"] = "Erro na geracao";
         echo "<!--\nErro\nClasse nao existente: clsPais\n-->";
     }
     if (class_exists("clsUf")) {
         $obj_sigla_uf = new clsUf($registro["sigla_uf"]);
         $det_sigla_uf = $obj_sigla_uf->detalhe();
         $registro["sigla_uf"] = $det_sigla_uf["nome"];
     } else {
         $registro["sigla_uf"] = "Erro na geracao";
         echo "<!--\nErro\nClasse nao existente: clsUf\n-->";
     }
     if (class_exists("clsMunicipio")) {
         $obj_idmun_pai = new clsMunicipio($registro["idmun_pai"]);
         $det_idmun_pai = $obj_idmun_pai->detalhe();
         $registro["idmun_pai"] = $det_idmun_pai["nome"];
     } else {
         $registro["idmun_pai"] = "Erro na geracao";
         echo "<!--\nErro\nClasse nao existente: clsMunicipio\n-->";
     }
     if ($registro["nome"]) {
         $this->addDetalhe(array("Nome", "{$registro["nome"]}"));
     }
     if ($registro["sigla_uf"]) {
         $this->addDetalhe(array("Estado", "{$registro["sigla_uf"]}"));
     }
     if ($registro["idpais"]) {
         $this->addDetalhe(array("Pais", "{$registro["idpais"]}"));
     }
     if ($registro["area_km2"]) {
         $this->addDetalhe(array("Area Km2", "{$registro["area_km2"]}"));
     }
     if ($registro["tipo"]) {
         $this->addDetalhe(array("Tipo", "{$registro["tipo"]}"));
     }
     if ($registro["idmun_pai"]) {
         $this->addDetalhe(array("Idmun Pai", "{$registro["idmun_pai"]}"));
     }
     if ($registro["origem_gravacao"]) {
         $this->addDetalhe(array("Origem Grava&ccedil;&atilde;o", "{$registro["origem_gravacao"]}"));
     }
     if ($registro["operacao"]) {
         $this->addDetalhe(array("Operac&atilde;o", "{$registro["operacao"]}"));
     }
     /*		if( $registro["idsis_cad"] )
     		{
     			$this->addDetalhe( array( "Idsis Cad", "{$registro["idsis_cad"]}") );
     		}*/
     $this->url_novo = "public_municipio_cad.php";
     $this->url_editar = "public_municipio_cad.php?idmun={$registro["idmun"]}";
     $this->url_cancelar = "public_municipio_lst.php";
     $this->largura = "100%";
 }
Ejemplo n.º 6
0
 /**
  * Construtor
  *
  * @return Object:clsFisica
  */
 function clsFisica($idpes = false, $data_nasc = false, $sexo = false, $idpes_mae = false, $idpes_pai = false, $idpes_responsavel = false, $idesco = false, $ideciv = false, $idpes_con = false, $data_uniao = false, $data_obito = false, $nacionalidade = false, $idpais_estrangeiro = false, $data_chagada_brasil = false, $idmun_nascimento = false, $ultima_empresa = false, $idocup = false, $nome_mae = false, $nome_pai = false, $nome_conjuge = false, $nome_responsavel = false, $justificativa_provisorio = false, $idpes_cad = false, $idpes_rev = false, $ref_cod_sistema = false, $cpf = false, $ref_cod_religiao = false)
 {
     $objPessoa = new clsPessoa_($idpes);
     if ($objPessoa->detalhe()) {
         $this->idpes = $idpes;
     }
     $objPessoaMae = new clsPessoa_($idpes_mae);
     if ($objPessoaMae->detalhe()) {
         $this->idpes_mae = $idpes_mae;
     } elseif ($idpes_mae == "NULL") {
         $this->idpes_mae = "NULL";
     }
     $objPessoaPai = new clsPessoa_($idpes_pai);
     if ($objPessoaPai->detalhe()) {
         $this->idpes_pai = $idpes_pai;
     } elseif ($idpes_pai == "NULL") {
         $this->idpes_pai = "NULL";
     }
     $objPessoaResponsavel = new clsPessoa_($idpes_responsavel);
     if ($objPessoaResponsavel->detalhe() || $idpes_responsavel == "NULL") {
         $this->idpes_responsavel = $idpes_responsavel;
     }
     $objEscolaridade = new clsEscolaridade($idesco);
     if ($objEscolaridade->detalhe()) {
         $this->idesco = $idesco;
     }
     $objEstadoCivil = new clsEstadoCivil($ideciv);
     if ($objEstadoCivil->detalhe()) {
         $this->ideciv = $ideciv;
     }
     $objPessoaCon = new clsPessoa_($idpes_con);
     if ($objPessoaCon->detalhe()) {
         $this->idpes_con = $idpes_con;
     }
     if (is_numeric($idpais_estrangeiro)) {
         $objPais = new clsPais($idpais_estrangeiro);
         if ($objPais->detalhe()) {
             $this->idpais_estrangeiro = $idpais_estrangeiro;
         }
     } elseif ($idpais_estrangeiro == "NULL") {
         $this->idpais_estrangeiro = $idpais_estrangeiro;
     }
     if (is_numeric($idmun_nascimento)) {
         $objMunicipio = new clsMunicipio($idmun_nascimento);
         if ($objMunicipio->detalhe()) {
             $this->idmun_nascimento = $idmun_nascimento;
         }
     } elseif ($idmun_nascimento == "NULL") {
         $this->idmun_nascimento = $idmun_nascimento;
     }
     $objOcupacao = new clsOcupacao($idocup);
     if ($objOcupacao->detalhe()) {
         $this->idocup = $idocup;
     }
     $this->data_nasc = $data_nasc;
     $this->sexo = $sexo;
     $this->data_uniao = $data_uniao;
     $this->data_obito = $data_obito;
     $this->nacionalidade = $nacionalidade;
     $this->data_chegada_brasil = $data_chegada_brasil;
     $this->ultima_empresa = $ultima_empresa;
     $this->nome_mae = $nome_mae;
     $this->nome_pai = $nome_pai;
     $this->nome_conjuge = $nome_conjuge;
     $this->nome_responsavel = $nome_responsavel;
     $this->ref_cod_sistema = $ref_cod_sistema;
     $this->ref_cod_religiao = $ref_cod_religiao;
     $cpf = idFederal2int($cpf);
     if (is_numeric($cpf)) {
         $this->cpf = $cpf;
     }
     $this->justificativa_provisorio = $justificativa_provisorio;
     $this->idpes_cad = $idpes_cad ? $idpes_cad : $_SESSION['id_pessoa'];
     $this->idpes_rev = $idpes_rev ? $idpes_rev : $_SESSION['id_pessoa'];
     $this->tabela = "fisica";
     $this->schema = "cadastro";
 }