function Gerar()
 {
     @session_start();
     $this->__pessoa_logada = $_SESSION['id_pessoa'];
     session_write_close();
     $this->__titulo = "Software - Listagem";
     foreach ($_GET as $var => $val) {
         // passa todos os valores obtidos no GET para atributos do objeto
         $this->{$var} = $val === "" ? null : $val;
     }
     $this->addBanner("http://ieducar.dccobra.com.br/intranet/imagens/nvp_top_intranet.jpg", "http://ieducar.dccobra.com.br/intranet/imagens/nvp_vert_intranet.jpg", "Intranet");
     $this->addCabecalhos(array("Nome Software"));
     // Filtros de Foreign Keys
     // outros Filtros
     $this->campoTexto("nm_software", "Nome Software", $this->nm_software, 30, 255, false);
     // Paginador
     $this->__limite = 20;
     $this->__offset = $_GET["pagina_{$this->nome}"] ? $_GET["pagina_{$this->nome}"] * $this->__limite - $this->__limite : 0;
     $obj_software = new clsPmicontrolesisSoftware();
     $obj_software->setOrderby("nm_software ASC");
     $obj_software->setLimite($this->__limite, $this->__offset);
     $lista = $obj_software->lista(null, null, $this->nm_software, null, null, 1);
     $total = $obj_software->_total;
     // monta a lista
     if (is_array($lista) && count($lista)) {
         foreach ($lista as $registro) {
             $this->addLinhas(array("<a href=\"controlesis_software_det.php?cod_software={$registro["cod_software"]}\">{$registro["nm_software"]}</a>"));
         }
     }
     $this->addPaginador2("controlesis_software_lst.php", $total, $_GET, $this->nome, $this->__limite);
     $this->acao = "go(\"controlesis_software_cad.php\")";
     $this->nome_acao = "Novo";
     $this->largura = "100%";
 }