Exemple #1
0
 public function __construct()
 {
     parent::__construct();
     $this->_fieldKey = 'id';
     $this->_fieldNames = $this->_getCols();
     $this->_fieldLabels = array('id' => 'Id', 'nome' => 'Nome', 'operador' => 'Operador', 'fator' => 'Fator');
     $this->_lockedFields = array('id');
     $this->_orderField = 'nome';
     $this->_searchField = 'nome';
     $this->_selectOptions = array('operador' => array('-' => '-', '*' => '*', 'n' => 'n'));
     $this->_typeElement = array('nome' => Fgsl_Form_Constants::TEXT, 'operador' => Fgsl_Form_Constants::SELECT, 'fator' => Fgsl_Form_Constants::TEXT);
     $this->_typeValue = array('fator' => self::FLOAT_TYPE);
 }
Exemple #2
0
 public function __construct()
 {
     parent::__construct();
     $this->_fieldKey = 'cpf';
     $this->_fieldNames = $this->_getCols();
     $this->_fieldLabels = array('cpf' => 'CPF', 'nome' => 'Nome', 'senha' => 'Senha', 'email' => 'e-mail');
     $this->_lockedFields = array('cpf');
     $this->_orderField = 'nome';
     $this->_searchField = 'nome';
     $this->_selectOptions = array();
     $this->_typeElement = array('nome' => Fgsl_Form_Constants::TEXT, 'senha' => Fgsl_Form_Constants::PASSWORD, 'email' => Fgsl_Form_Constants::TEXT);
     $this->_typeValue = array();
 }
Exemple #3
0
 public function __construct()
 {
     parent::__construct();
     $this->_fieldKey = '';
     $this->_fieldNames = $this->_getCols();
     $this->_fieldLabels = array('id_pedido' => 'Pedido', 'id_produto' => 'Produto', 'preco' => 'Preço');
     $this->_lockedFields = array();
     $this->_orderField = 'id_pedido';
     $this->_searchField = '';
     $this->_selectOptions = array();
     $this->_typeElement = array('id_pedido' => Fgsl_Form_Constants::SELECT, 'id_produto' => Fgsl_Form_Constants::SELECT, 'preco' => Fgsl_Form_Constants::TEXT);
     $this->_typeValue = array('id_pedido' => self::INT_TYPE, 'id_produto' => self::INT_TYPE, 'preco' => self::FLOAT_TYPE);
 }
Exemple #4
0
 public function __construct()
 {
     parent::__construct();
     $this->_fieldKey = 'cpf';
     $this->_fieldNames = $this->_getCols();
     $this->_fieldLabels = array('id' => 'Id', 'data' => 'Data', 'status' => 'Status', 'cpf' => 'cpf');
     $this->_lockedFields = array('id');
     $this->_orderField = 'data';
     $this->_searchField = 'cpf';
     $this->_selectOptions = array();
     $this->_typeElement = array('data' => Fgsl_Form_Constants::TEXT, 'status' => Fgsl_Form_Constants::CHECKBOX, 'cpf' => Fgsl_Form_Constants::TEXT);
     $this->_typeValue = array('status' => self::BOOLEAN_TYPE);
 }
Exemple #5
0
 public function __construct()
 {
     parent::__construct();
     $this->_fieldKey = 'id';
     $this->_fieldNames = $this->_getCols();
     $this->_fieldLabels = array('id' => 'Id', 'recurso' => 'Recurso', 'privilegio' => 'Privilégio');
     $this->_lockedFields = array('id');
     $this->_orderField = 'recurso';
     $this->_searchField = 'recurso';
     $this->_selectOptions = array();
     $this->_typeElement = array('recurso' => Fgsl_Form_Constants::TEXT, 'privilegio' => Fgsl_Form_Constants::TEXT);
     $this->_typeValue = array('id' => self::INT_TYPE);
 }
 public function __construct()
 {
     parent::__construct();
     $this->_fieldKey = 'matricula';
     $this->_fieldNames = $this->_getCols();
     $this->_fieldLabels = array('id' => 'Id', 'nome' => 'Nome', 'apelido' => 'Apelido', 'senha' => 'Senha');
     $this->_lockedFields = array('id');
     $this->_orderField = 'nome';
     $this->_searchField = 'nome';
     $this->_selectOptions = array();
     $this->_typeElement = array('nome' => Fgsl_Form_Constants::TEXT, 'apelido' => Fgsl_Form_Constants::TEXT, 'senha' => Fgsl_Form_Constants::PASSWORD);
     $this->_typeValue = array('matricula' => self::INT_TYPE);
 }
 public function __construct()
 {
     parent::__construct();
     $this->_fieldKey = 'id_produto';
     $this->_fieldNames = $this->_getCols();
     $this->_fieldLabels = array('id' => 'Id', 'id_produto' => 'Produto', 'quantidade' => 'Quantidade', 'data' => 'Data', 'tipo' => 'Tipo');
     $this->_lockedFields = array('id');
     $this->_orderField = 'nome';
     $this->_searchField = 'nome';
     $this->_selectOptions = array();
     $this->_typeElement = array('quantidade' => Fgsl_Form_Constants::TEXT, 'data' => Fgsl_Form_Constants::TEXT, 'tipo' => Fgsl_Form_Constants::TEXT);
     $this->_typeValue = array('id' => self::INT_TYPE, 'id_produto' => self::INT_TYPE, 'quantidade' => self::INT_TYPE);
     $this->_join = array(array('p' => 'produtos'), 'estoque.id_produto = p.id');
     $this->_joinFieldNames = array('nome');
 }
Exemple #8
0
 public function __construct()
 {
     parent::__construct();
     $this->_fieldKey = 'id_produto';
     $this->_fieldNames = array();
     $this->_fieldNames[] = 'id_produto';
     $this->_fieldNames[] = 'nome';
     $cols = $this->_getCols();
     for ($i = 1; $i < count($cols); $i++) {
         $this->_fieldNames[] = $cols[$i];
     }
     $this->_fieldLabels = array('id_produto' => 'Id', 'nome' => 'Nome', 'quantidade' => 'Quantidade', 'maximo' => 'Maximo', 'minimo' => 'Mínimo', 'reservada' => 'Reservada');
     $this->_lockedFields = array('id_produto', 'reservada');
     $this->_orderField = 'nome';
     $this->_searchField = 'nome';
     $this->_selectOptions = array();
     $this->_typeElement = array('quantidade' => Fgsl_Form_Constants::TEXT, 'maximo' => Fgsl_Form_Constants::TEXT, 'minimo' => Fgsl_Form_Constants::TEXT);
     $this->_typeValue = array('id_produto' => self::INT_TYPE, 'quantidade' => self::INT_TYPE, 'maximo' => self::INT_TYPE, 'minimo' => self::INT_TYPE, 'reservada' => self::INT_TYPE);
 }