✏️ 正在编辑: ConsultaFgtsSolicitar.php
路径:
/srv/systems_dir/yuppiecred-bkp/application/forms/ConsultaFgtsSolicitar.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_ConsultaFgtsSolicitar extends Core_Form { /** @var string[] */ public const ESTADO_CIVIL = [ 'SOLTEIRO' => 'SOLTEIRO(A)', 'CASADO' => 'CASADO(A)', 'DESQUITADO' => 'DESQUITADO(A)', 'DIVORCIADO' => 'DIVORCIADO(A)', 'VIUVO' => 'VIUVO(A)', 'OUTROS' => 'OUTROS' ]; /** @var string[] */ public const NACIONALIDADE = [ 'BRASILEIRA' => 'BRASILEIRA', 'ESTRANGEIRA' => 'ESTRANGEIRA' ]; /** @var string[] */ public const TIPO_FONE = [ 'FONE_FISICO' => 'FONE FÍSICO', 'FONE_COMERCIAL_1' => 'FONE COMERCIAL', 'CELULAR' => 'CELULAR', 'FONE_RECADO' => 'FONE RECADO', 'EMPREGO_ANTERIOR' => 'EMPREGO ANTERIOR', 'FAX' => 'FAX', ]; /** @var string[] */ public const TIPO_ENDERECO = [ 'FISICO' => 'FÍSICO', 'COBRANCA' => 'COBRANÇA', 'COMERCIAL' => 'COMERCIAL', 'REFERENCIA' => 'REFERENCIA' ]; /** @var string[] */ public const COD_OPERACAO = [ '001' => '001 – Conta Corrente de Pessoa Física', '002' => '002 – Conta Simples de Pessoa Física', '013' => '013 – Poupança de Pessoa Física', '023' => '023 – Conta Caixa Fácil', '032' => '032 – Conta Investimento Pessoa Física', '037' => '037 – Conta Salário' ]; /** @var string[] */ public const TIPOS_CONTA = [ 'CONTA_CORRENTE_INDIVIDUAL' => 'CONTA CORRENTE INDIVIDUAL', 'CONTA_POUPANCA_INDIVIDUAL' => 'CONTA POUPANÇA INDIVIDUAL', 'CONTA_SALARIO' => 'CONTA SALÁRIO', 'CONTA_CORRENTE_CONJUNTA' => 'CONTA CORRENTE CONJUNTA', 'CONTA_POUPANCA_CONJUNTA' => 'CONTA POUPANÇA CONJUNTA', 'CONTA_INVESTIMENTO' => 'CONTA INVESTIMENTO' ]; public function init() { $this->setName('form_consulta_fgts_solicitar'); $this->setAction($this->getView()->url(["action" => "inclusao-fgts-pan"])); $this ->addHidden('cpf') ->addElementWith('nome', $this->getOptions('Nome:', 30, 35)) ->addDateElement('data_nascimento', 'Data de Nasc.:') ->addElementWith('rg', $this->getOptions('RG:')) ->addDateElement('data_emissao_documento','Data de emissão:') ->addElementWith('uf_emissao_documento', $this->getOptions('UF de emissão:',3,2)) ->addSelect('estado_civil', 'Estado Civil:', self::ESTADO_CIVIL) ->addSelect('nacionalidade', 'Nacionalidade:', self::NACIONALIDADE) ->addSelect('tipo_fone', 'Tipo Fone:', self::TIPO_FONE) ->addElementWith('fone', $this->getOptions( 'Telefone:','15', '15', 'mascara(this, telefone)' )) ->addInt('cep', 'CEP:', 8) ->addElementWith('nome_mae', $this->getOptions('Nome da mãe:',30)) ->addElementWith('endereco', $this->getOptions('Endereço:',30)) ->addInt('numero', 'Número:', 8) ->addElementWith('bairro', $this->getOptions('Bairro:',30)) ->addElementWith('cidade', $this->getOptions('Cidade:',30)) ->addElementWith('uf', $this->getOptions('UF:', 3, 2)) ->addElementWith('complemento', $this->getOptions('Complemento:', 30)) ->addSelect('tipo_endereco', 'Tipo:', self::TIPO_ENDERECO) ->addValueElement('renda_valor', 'Renda mensal:') ->addSelect('numero_banco','Banco:', Core_Combos::getBancosFebrabanOptions()) ->addSelect('cod_oper_cef','Cód. Operação:', self::COD_OPERACAO) ->addElementWith('numero_agencia', $this->getOptions('Agencia:')) ->addElementWith('digito_agencia', $this->getOptions('Dígito:', 2,1)) ->addElementWith('numero_conta', $this->getOptions('Conta:')) ->addElementWith('digito_conta', $this->getOptions('Dígito:', 2,1)) ->addSelect('tipo_conta', 'Tipo:', self::TIPOS_CONTA) ; $this->getElement('cep')->setAttrib('onchange', 'initBuscaEndereco(this)'); $this->getElement('numero_banco')->setAttrib('onchange', 'hideShowCodOperCef(this)'); $this->getElement('fone')->addDecorator('Label', ['tag' => 'dt', 'tagClass' => 'clear']); $this->getElement('numero_agencia')->addDecorator('Label', ['tag' => 'dt', 'tagClass' => 'clear']); $this->setRequireds([ 'nome', 'rg', 'tipo_fone', 'fone', 'tipo_endereco', 'endereco', 'numero', 'bairro', 'cidade', 'uf', 'cep', 'numero_agencia', 'numero_banco', 'numero_conta', 'tipo_conta', 'data_nascimento', 'estado_civil', 'nacionalidade', 'nome_mae', 'renda_valor' ]); $this->addElement('submit', 'btn_enviar', [ 'label' => 'Enviar Proposta', 'class' => 'bt_save', ]); $this->addDisplayGroup([ 'nome', 'data_nascimento', 'rg', 'data_emissao_documento', 'uf_emissao_documento', 'estado_civil', 'nacionalidade', 'fone', 'tipo_fone', 'nome_mae', 'renda_valor', 'cpf' ], 'dados_pessopais', [ 'legend' => 'Dados Pessoais', 'decorators' => [ 'FormElements', 'Fieldset', ['HtmlTag', ['style' => 'width:100%']] ] ]); $this->addDisplayGroup([ 'cep', 'endereco', 'numero', 'bairro', 'cidade', 'uf', 'tipo_endereco', 'complemento' ], 'end', [ 'legend' => 'Endereço', 'decorators' => [ 'FormElements', 'Fieldset', ['HtmlTag', ['style' => 'width:100%']] ] ]); $this->addDisplayGroup([ 'numero_banco', 'numero_agencia', 'digito_agencia', 'numero_conta', 'digito_conta', 'tipo_conta', 'cod_oper_cef' ], 'dados_bancarios', [ 'legend' => 'Dados Bancários', 'decorators' => [ 'FormElements', 'Fieldset', ['HtmlTag', ['style' => 'width:100%']] ] ]); $this->addDisplayGroup(['btn_enviar'], 'buttons'); } }
💾 保存文件
← 返回文件管理器