✏️ 正在编辑: RelatorioProducaoAnalitico.php
路径:
/srv/systems_dir/yuppiecred-lidernegocios/application/forms/RelatorioProducaoAnalitico.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_RelatorioProducaoAnalitico extends Core_Form { /** @var bool */ private $relatorioAjaxNew; /** * @param bool $relatorioAjaxNew */ public function __construct(bool $relatorioAjaxNew = false) { $this->relatorioAjaxNew = $relatorioAjaxNew; parent::__construct(); } public function init() { $this->setName('f_filtro_rel_producao_analitico'); $this->setAttrib('class', $this->relatorioAjaxNew ? 'relatorio-ajax-new' : 'relatorio-ajax'); $corretores = Core_Combos::getCorretoresOptions(true); $select = new Zend_Form_Element_Select('corretor_id'); $select->setLabel('Corretor:') ->addMultiOptions($corretores); $this->addElement($select); $select = new Zend_Form_Element_Select('empresa_id'); $select->setLabel('Empresa:') ->addMultiOptions(Core_Combos::getEmpresasOptions()); $this->addElement($select); $select = new Zend_Form_Element_Multiselect('banco_id'); $select->setLabel('Banco:') ->addMultiOptions(array_filter(Core_Combos::getBancosOptions())) ->setAttrib('class', 'multiple_banco') ->addDecorator('Label', ['tag' => 'dt', 'tagClass' => 'clear']); $this->addElement($select); $select = new Zend_Form_Element_Multiselect('tipo_contrato'); $select->setLabel('Tipo:') ->addMultiOptions(array_filter(Core_Combos::getTiposProdutosOptions())); $this->addElement($select); $select = new Zend_Form_Element_Select('convenio_id'); $select->setLabel('Convênio:') ->addMultiOptions(Core_Combos::getConveniosOptions()) ->setAttrib('onchange', "populateComboTabelas(this.id, 'tabela_id', 'banco_id')") ->addDecorator('Label', ['tag' => 'dt', 'tagClass' => 'clear']); $this->addElement($select); $select = new Zend_Form_Element_Select('tabela_id'); $select->setLabel('Tabela:') ->setRegisterInArrayValidator(false); $this->addElement($select); $this->addElement('text', 'numero_contrato', array( 'label' => 'Nº Contrato:', 'size' => 17 )); $this->addElement('text', 'numero_ade', array( 'label' => 'Nº ADE:', 'size' => 10, 'onkeypress' => 'mascara(this, soNumeros)' )); $select = new Zend_Form_Element_MultiSelect('produto_multi'); $select->setLabel('Produto:') ->addMultiOptions(array_filter(Core_Combos::getProdutosOptions())); $this->addElement($select); $this->addElement('text', 'cpf', array( 'label' => 'CPF Cliente:', 'maxlength' => 14, 'onkeypress' => 'mascara(this, fcpf)', 'size' => 14 )); $this->addElement('text', 'cidade', array( 'label' => 'Cidade:', 'size' => 20 )); $this->addElement('multiselect', 'status_proposta', array( 'label' => 'Status:', 'multiOptions' => Core_Combos::getStatusOptions(), 'value' => Model_Contrato::findByNameStatus("Operação Finalizada") )); $this->addElement('select', 'digitador', array( 'label' => 'Digitador:', 'multiOptions' => Core_Combos::getDigitadoresOptions() )); $select = new Zend_Form_Element_Select('subestabelecido_id'); $select->setLabel('Subestabelecido:') ->addMultiOptions(Core_Combos::getSubestabelecidosOptions()); $this->addElement($select); $select = new Zend_Form_Element_Multiselect('corretor_digitador'); $select->setLabel('Corretor Digitador:') ->addMultiOptions(array_filter($corretores)); $this->addElement($select); $select = new Zend_Form_Element_Select('gerente_rota_id'); $select->setLabel('Supervisor:') ->addMultiOptions(Core_Combos::getSupervisoresOptions()); $this->addElement($select); $select = new Zend_Form_Element_Multiselect('rota_id'); $select->setLabel('Rotas:') ->setAttrib('class', "multiselect") ->addMultiOptions(array_filter(Core_Combos::getRotasOptions())); $this->addElement($select); $select = new Zend_Form_Element_Multiselect('status_formalizacao[]'); $select->setLabel('Pendências:') ->addMultiOptions(Core_Combos::getStatusFormalizacaoOptions()); $this->addElement($select); $this->getElement('numero_contrato')->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $select = new Zend_Form_Element_Select('gerente_comercial_id'); $select->setLabel('Gerente:') ->addMultiOptions(Core_Combos::getGerentesOptions()); $this->addElement($select); $this->addElement('text', 'prazo_de', array( 'label' => 'Prazo de:', 'onkeypress' => 'mascara(this, soNumeros)', 'size' => 10 )); $this->addElement('text', 'prazo_a', array( 'label' => 'a:', 'onkeypress' => 'mascara(this, soNumeros)', 'size' => 10 )); $select = new Zend_Form_Element_Select('grupo_comissao_id'); $select->setLabel('Grupo Comissão:') ->addMultiOptions(Core_Combos::getGruposComissaoOptions()) ->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->addElement($select); $this->addElement(Form_DatePicker::getDatePicker('data_emissao_de', 'Data Emissão de:')); $this->addElement(Form_DatePicker::getDatePicker('data_emissao_a', 'a:')); $select = new Zend_Form_Element_Select('usuario_grupo_previa'); $select->setLabel('Grupo Usuário Prév.:') ->addMultiOptions(Core_Combos::getGruposUsuariosOptions()) ->setAttrib('onchange', "populateComboPrevia('usuario_grupo_previa', 'usuario_previa');"); $this->addElement($select); $this->addElement(Form_DatePicker::getDatePicker('data_liberacao_de', 'Data Liberação de:')); $this->addElement(Form_DatePicker::getDatePicker('data_liberacao_a', 'a:')); $select = new Zend_Form_Element_Select('usuario_recebimento'); $select->setLabel('Usuário Receb.:') ->addMultiOptions(Core_Combos::getUsuariosFormalizacaoOptions()); $this->addElement($select); $this->addElement(Form_DatePicker::getDatePicker('data_recebimento_comissao_de', 'Data Comissão de:')); $this->addElement(Form_DatePicker::getDatePicker('data_recebimento_comissao_a', 'a:')); $select = new Zend_Form_Element_Select('comissao_paga'); $select->setLabel('Comissão Paga:') ->addMultiOptions(Core_Combos::getContratoPagoOptions()) ->setAttrib("style", "cursor: help") ->setAttrib('title', "Apenas comissão paga, ou seja, contrato estornado não entra."); $this->addElement($select); $this->addElement(Form_DatePicker::getDatePicker('data_pagamento_de', 'Data Pagamento de:')); $this->addElement(Form_DatePicker::getDatePicker('data_pagamento_a', 'a:')); $select = new Zend_Form_Element_Select('fisico_enviado'); $select->setLabel('Físico Enviado:') ->addMultiOptions(Core_Combos::getSimNaoOptions()); $this->addElement($select); $this->addElement(Form_DatePicker::getDatePicker('data_recebimento_fisico_de', 'Data Rec. Físico de:')); $this->addElement(Form_DatePicker::getDatePicker('data_recebimento_fisico_a', 'a:')); $select = new Zend_Form_Element_Select('usuario_previa'); $select->setLabel('Usuário Prévia:') ->addMultiOptions(array('' => '')); $this->addElement($select); $this->addElement(Form_DatePicker::getDatePicker('data_recebimento_previa_de', 'Prévia Físico de:')); $this->addElement(Form_DatePicker::getDatePicker('data_recebimento_previa_a', 'a:')); $select = new Zend_Form_Element_Select('usuario_formalizacao'); $select->setLabel('Usuário Envio:') ->addMultiOptions(Core_Combos::getUsuariosFormalizacaoOptions()); $this->addElement($select); $this->addElement(Form_DatePicker::getDatePicker('data_envio_fisico_de', 'Data Env. Físico de:')); $this->addElement(Form_DatePicker::getDatePicker('data_envio_fisico_a', 'a:')); $this->addElement('select', 'srcc', [ 'label' => 'SRCC:', 'multiOptions' => [ '' => '', 2 => 'Não', 1 => 'Sim' ] ]); $select = new Zend_Form_Element_Select('protocolo_pagamento_gerado'); $select->setLabel('Protocolo Pagto.:') ->addMultiOptions(array( '' => '', 1 => 'GERADO', -1 => 'NÃO GERADO', 2 => 'A LIBERAR' ) ) ->setAttrib("style", "cursor: help") ->setAttrib('title', "O que tem protocolo gerado, ou seja, pagamento, estorno ou devolução!");; $this->addElement($select); $select = new Zend_Form_Element_Select('comissao_recebida'); $select->setLabel('Comissão Recebida:') ->addMultiOptions(Core_Combos::getComissaoRecebidaOptions()); $this->addElement($select); $select = new Zend_Form_Element_Select('tipo_formalizacao'); $select->setLabel('Tipo Formalização:') ->addMultiOptions([ '' => '', -1 => 'Fisico', 1 => 'Digital' ] ) ->setAttrib('class', 'not_multiselect'); $this->addElement($select); $select = new Zend_Form_Element_Select('midia_origem_id'); $select->setLabel('Mídia de Origem:') ->addMultiOptions(Core_Combos::getMidiasOrigemOptions()); $this->addElement($select); $this->addElement('select', 'anterior_banco', array( 'label' => 'Banco Origem:', 'multiOptions' => Core_Combos::getBancosFebrabanOptions() )); $this->addSelect('captador_id', 'Captador:', $corretores); $this->getElement('captador_id') ->setAttrib("class", "comboautocomplete"); $this->addElement('select', 'estornado', [ 'label' => 'Estornado Empresa:', 'multiOptions' => [ '' => '', 2 => 'Não', 1 => 'Sim' ] ]); $this->addElement('submit', 'btn_filtrar', array( 'label' => 'Buscar', 'class' => 'bt_find' )); $front = Zend_Controller_Front::getInstance(); $action = $front->getRequest()->getActionName(); if ($action == 'producao-analitico') { $this->_addButtonExportar(); $this->setAction($this->getView()->baseUrl('/relatorio/processar-producao-analitico')); $this->addElement('hidden', 'action', ['value' => '/relatorio/processar-producao-analitico']); $this->setAttrib('class', 'relatorio-ajax-new'); } elseif ($action == 'producao-analitico-tipo') { $this->_addButtonExportar(); $this->setAction($this->getView()->baseUrl('/relatorio/processar-producao-analitico-tipo')); $this->addElement('hidden', 'action', ['value' => '/relatorio/processar-producao-analitico-tipo']); $this->setAttrib('class', 'relatorio-ajax-new'); } elseif ($action == 'producao-formalizacao') { $this->_addButtonExportar(); $this->setAction($this->getView()->baseUrl('/relatorio/processar-producao-formalizacao')); $this->addElement('hidden', 'action', ['value' => '/relatorio/processar-producao-formalizacao']); } $this->_dataContainers(); $this->addDisplayGroup(['btn_filtrar', 'btn_exportar'], "buttons", []); } protected function _addButtonExportar() { $excel = new Zend_Form_Element_Button('btn_exportar'); $excel->setAttrib('class', 'bt_excel') ->setLabel('Exportar') ->removeDecorator('DtDdWrapper'); $this->addElement($excel); } protected function _dataContainers() { $element = $this->getElement('btn_filtrar'); $element->removeDecorator('DtDdWrapper'); } }
💾 保存文件
← 返回文件管理器