✏️ 正在编辑: ConsultaFgtsSolicitar.php
路径:
/srv/systems_dir/yuppiecred-lidernegocios/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 ALFABETIZADO = [ 'S' => 'SIM', 'N' => 'NÃO' ]; /** @var string[] */ public const NACIONALIDADE = [ 'BRASILEIRA' => 'BRASILEIRA', 'ESTRANGEIRA' => 'ESTRANGEIRA' ]; /** @var string[] */ public const SEXO = [ 'M' => 'MASCULINO', 'F' => 'FEMININO' ]; /** @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 TIPO_PIX = [ 'cpf' => 'CPF', 'telefone' => 'TELEFONE', 'email' => 'E-MAIL', 'aleatoria' => 'CHAVE ALEATÓRIA' ]; /** @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"])); $this->setAttrib('onsubmit', 'return validarForm(this);'); $this ->addHidden('cpf') ->addElementWith('nome', $this->getOptions('Nome:', 30, 35)) ->addDateElement('data_nascimento', 'Data de Nasc.:') ->addElementWith('rg', $this->getOptions('RG:')) ->addMultiOptionElement('orgao_emissor', 'Orgão emissor:', 'comboautocomplete', [""] + Core_Combos::getOrgaoEmissorOptions()) ->addDateElement('data_emissao_documento','Data de emissão:') ->addElementWith('uf_emissao_documento', $this->getOptions('UF de emissão:',3,2)) ->addSelect('alfabetizado', 'Alfabetizado:', self::ALFABETIZADO) ->addSelect('estado_civil', 'Estado Civil:', self::ESTADO_CIVIL) ->addSelect('sexo', 'Sexo:', self::SEXO) ->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('nome_pai', $this->getOptions('Nome do pai:',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:') ->addMultiOptionElement('numero_banco','Banco:', 'comboautocomplete', 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) ->addSelect('tipo_pix', 'Tipo Pix:', self::TIPO_PIX) ->addElementWith('chave_pix', $this->getOptions('Chave Pix:', 30, null,'mascara(this, fcpf)')) ; $this->getElement('cep')->setAttrib('onchange', 'initBuscaEndereco(this)'); $this->getElement('fone')->addDecorator('Label', ['tag' => 'dt', 'tagClass' => 'clear']); $this->getElement('numero_agencia')->addDecorator('Label', ['tag' => 'dt', 'tagClass' => 'clear']); $this->getElement('tipo_pix')->setAttrib('onchange', 'changeKeyPix()'); $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', 'nome_mae', 'renda_valor', 'orgao_emissor' ]); $this->addElement('submit', 'btn_enviar', [ 'label' => 'Enviar Proposta', 'class' => 'bt_save', ]); $this->addDisplayGroup([ 'nome', 'data_nascimento', 'rg', 'data_emissao_documento', 'orgao_emissor', 'uf_emissao_documento', 'alfabetizado', 'sexo', 'estado_civil', 'fone', 'tipo_fone', 'tipo_pix', 'chave_pix', 'nome_mae', 'renda_valor', 'nome_pai', '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'); } public function removeFieldsBanco() { $this->removeElement('dados_bancarios'); $this->removeElement('numero_banco'); $this->removeElement('cod_oper_cef'); $this->removeElement('numero_agencia'); $this->removeElement('digito_agencia'); $this->removeElement('numero_conta'); $this->removeElement('digito_conta'); $this->removeElement('tipo_conta'); $this->removeElement('tipo_pix'); $this->removeElement('chave_pix'); $this ->addSelect('tipo_pix', 'Tipo Pix:', self::TIPO_PIX) ->addElementWith('chave_pix', $this->getOptions('Chave Pix:', 30, null,'mascara(this, fcpf)')) ; $this->getElement('tipo_pix')->setAttrib('onchange', 'changeKeyPix()'); $this->addDisplayGroup([ 'tipo_pix', 'chave_pix' ], 'dados_bancarios', [ 'legend' => 'Dados Bancários', 'decorators' => [ 'FormElements', 'Fieldset', ['HtmlTag', ['style' => 'width:100%']] ] ]); } }
💾 保存文件
← 返回文件管理器