✏️ 正在编辑: EnviarFisico.php
路径:
/srv/systems_dir/yuppiecred-lidernegocios/application/forms/Filtro/EnviarFisico.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_Filtro_EnviarFisico extends Zend_Form { public function init() { $this->setMethod('post'); $this->setName('f_filtro_receber_fisico'); $this->setAttrib('autocomplete', 'off'); $select = new Zend_Form_Element_Select('empresa_id'); $select->setLabel('Empresa:') ->addMultiOptions(Core_Combos::getEmpresasOptions()); $this->addElement($select); $select = new Zend_Form_Element_Select('corretor_id'); $select->setLabel('Corretor:') ->addMultiOptions(Core_Combos::getCorretoresOptions(true)); $this->addElement($select); $select = new Zend_Form_Element_Select('banco_id'); $select->setLabel('Banco:') ->addMultiOptions(Core_Combos::getBancosOptions()); $this->addElement($select); $select = new Zend_Form_Element_Select('convenio_id'); $select->setLabel('Convênio:') ->addMultiOptions(Core_Combos::getConveniosOptions()); $this->addElement($select); $select = new Zend_Form_Element_Select('rota_id'); $select->setLabel('Rota:') ->addMultiOptions(Core_Combos::getRotasOptions()); $this->addElement($select); $this->addElement('text', 'numero_contrato', array( 'label' => 'Nº Contrato:', 'size' => 20 )); $this->addElement('text', 'cpf_cliente', array( 'label' => 'CPF Cliente:', 'maxlength' => 14, 'onkeypress' => 'mascara(this, fcpf)', 'size' => 14 )); $this->addElement('text', 'numero_ade', array( 'label' => 'Nº ADE:', 'size' => 10 )); $this->addElement('text', 'protocolo_recebimento_fisico', array( 'label' => 'Prot. Físico:', 'onkeypress' => 'mascara(this, soNumeros)' )); $select = new Zend_Form_Element_Multiselect('status_proposta'); $select->setLabel('Status:') ->addMultiOptions(Core_Combos::getStatusOptions()); $this->addElement($select); $select = new Zend_Form_Element_Multiselect('status_formalizacao'); $select->setLabel('Pendências:') ->addMultiOptions(array_filter(Core_Combos::getStatusFormalizacaoOptions())) ->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->addElement($select); $select = new Zend_Form_Element_Multiselect('tipo_contrato'); $select->setLabel('Tipo Contrato:') ->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )) ->addMultiOptions(array_filter(Core_Combos::getTiposProdutosOptions())); $this->addElement($select); $this->addElement(Form_DatePicker::getDatePicker('data_emissao_de', 'Data Emissão de:')); $this->addElement(Form_DatePicker::getDatePicker('data_emissao_a', 'a:')); $this->addElement(Form_DatePicker::getDatePicker('data_liberacao_de', 'Data Liberação de:')); $this->addElement(Form_DatePicker::getDatePicker('data_liberacao_a', 'a:')); $this->addElement(Form_DatePicker::getDatePicker('data_recebimento_fisico_de', 'Físicos Receb. de:')); $this->addElement(Form_DatePicker::getDatePicker('data_recebimento_fisico_a', 'a:')); $this->addElement(Form_DatePicker::getDatePicker('data_recebimento_previa_de', 'Prévia Físico de:')); $this->addElement(Form_DatePicker::getDatePicker('data_recebimento_previa_a', 'a:')); $this->addElement(Form_DatePicker::getDatePicker('data_agendamento_proposta_de', 'Agendamento de:')); $this->addElement(Form_DatePicker::getDatePicker('data_agendamento_proposta_a', 'a:')); $this->getElement('data_liberacao_de')->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->getElement('data_recebimento_fisico_de')->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->getElement('data_recebimento_previa_de')->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->getElement('data_agendamento_proposta_de')->addDecorator('Label', array( 'tag' => 'dt', 'tagClass' => 'clear' )); $this->addDisplayGroup(array( 'data_emissao_de', 'data_emissao_a', 'data_liberacao_de', 'data_liberacao_a', 'data_recebimento_fisico_de', 'data_recebimento_fisico_a', 'data_recebimento_previa_de', 'data_recebimento_previa_a', 'data_agendamento_proposta_de', 'data_agendamento_proposta_a', ), 'datas'); $this->addElement('submit', 'btn_filtrar', array( 'label' => 'Buscar', 'class' => 'bt_find' )); $this->addElement('button', 'btn_excluir', array( 'label' => 'Exclusão de Protocolos', 'class' => 'bt_delete', 'onclick' => "window.location='" . $this->getView()->baseUrl() . "/contrato/excluir-protocolo-envio'" )); $this->_iniPopulate(); $this->_dataContainers(); } protected function _iniPopulate() { $element = $this->getElement('status_proposta'); $element->setValue(43); } protected function _dataContainers(){ $elemet = $this->getDisplayGroup('datas'); $elemet->removeDecorator('DtDdWrapper'); $elemet->setAttrib('class', 'data_coluna_dupla'); } }
💾 保存文件
← 返回文件管理器