public function rows($id, $id_filter, $type) { $config = \Credite\Grids::make($id)->toRowDatasetConfig($id); $filters = $config['source']->custom_filters(); $config['source']->custom_filters($filters + ['banca' => 'uploaded_docs.' . $this->types[$type]['column'] . ' = ' . $id_filter]); return $this->dataset($config); }
public function rows($id, $id_filter) { $config = \Credite\Grids::make($id)->toRowDatasetConfig($id); $filters = $config['source']->custom_filters(); $config['source']->custom_filters($filters + ['produs' => 'conditii_eligibilitate.id_produs = ' . $id_filter]); return $this->dataset($config); }
public function rows($id, $id_filter) { $config = \Credite\Grids::make($id)->toRowDatasetConfig($id); $filters = $config['source']->custom_filters(); $config['source']->custom_filters($filters + ['banca' => 'banca_produs.id_banca = ' . $id_filter]); return $this->dataset($config); }
public function rows($id, $id_client) { $config = \Credite\Grids::make('client-documents')->toRowDatasetConfig('client-documents'); $filters = $config['source']->custom_filters(); $config['source']->custom_filters($filters + ['persoana_fizica' => 'uploaded_docs.id_client = ' . $id_client]); return $this->dataset($config); }
public function rows($id) { $config = \Credite\Grids::make($id)->toRowDatasetConfig($id); $filters = $config['source']->custom_filters(); $config['source']->custom_filters($filters + ['is_oferta' => 'uploaded_docs.oferte_generate = 1']); return $this->dataset($config); }
public function rows($id) { $config = \Credite\Grids::make($id)->toRowDatasetConfig($id); $filters = $config['source']->custom_filters(); // $config['source']->custom_filters( $filters + [ 'proprietar_org' => 'proprietari_persoane_fizice.id_organizatie = '.$this->current_org->id ]); return $this->dataset($config); }
public function rows() { $config = \Credite\Grids::make('utilizatori')->toRowDatasetConfig('utilizatori'); // $filters = $config['source']->custom_filters(); // $config['source']->custom_filters( $filters + [ // 'oferta-valabila' => 'v_apartamente.id_organizatie = ' . $this->current_org->id, // ]); return $this->dataset($config); }
public function rows($id, $type = NULL) { $config = \Credite\Grids::make($id)->toRowDatasetConfig($id); $filters = $config['source']->custom_filters(); $type_client = $type ? ['tip_client' => 'persoane_fizice.tip_client = "' . $type . '"'] : []; if ($type == 'scadenta') { $type_client = ['has_scadenta' => 'persoane_fizice.has_data_scadentei = 1']; } $config['source']->custom_filters($filters + ['persoana_fizica' => 'persoane_fizice.id_organizatie = ' . $this->current_org->id] + $type_client); return $this->dataset($config); }
/** * @param $id * @return mixed */ public function rows($id) { return $this->dataset(\Credite\Grids::make($id)->toRowDatasetConfig($id)); }