".$msg['transferts_circ_menu_titre']." > ".$msg['transferts_circ_menu_retour']."";
}
protected function get_form_title() {
global $msg;
global $transferts_retour_lot;
if ($transferts_retour_lot=="1") {
return "
".$msg["transferts_circ_retours_lot"]."
";
} else {
return "
".$msg["transferts_circ_retour_list"]."
";
}
}
protected function init_default_columns() {
global $action, $transferts_retour_lot;
$this->add_column('record', '233');
$this->add_column('cb', '232');
$this->add_column('empr', 'transferts_circ_empr');
$this->add_column('source', 'transferts_circ_destination');
$this->add_column('expl_owner', '651');
$this->add_column('formatted_date_reception', 'transferts_circ_date_reception');
$this->add_column('formatted_bt_date_retour', 'transferts_circ_date_retour');
$this->add_column('motif', 'transferts_circ_motif');
$this->add_column('transfert_ask_user_num', 'transferts_edition_ask_user');
$this->add_column('transfert_send_user_num', 'transferts_edition_send_user');
if(($action == '' || $action == 'list') && $transferts_retour_lot == '1') {
$this->add_column_sel_button();
}
}
protected function init_available_filters() {
$this->available_filters =
array('main_fields' =>
array(
'site_origine' => 'transferts_circ_retour_filtre_destination',
'f_etat_date' => 'transferts_circ_retour_filtre_etat',
'f_etat_dispo' => 'transferts_circ_retour_filtre_dispo_title'
)
);
$this->available_filters['custom_fields'] = array();
}
protected function init_default_selected_filters() {
$this->add_selected_filter('site_origine');
$this->add_selected_filter('f_etat_date');
$this->add_selected_filter('f_etat_dispo');
}
protected function get_search_filters() {
global $msg;
$search_filters = '';
$search_filters .= " ".$msg['transferts_circ_retour_filtre_destination'];
$search_filters .= $this->get_search_filter_site_origine();
$search_filters .= " ".$msg["transferts_circ_retour_filtre_etat"]." ";
$search_filters .= $this->get_search_filter_f_etat_date();
$search_filters .= " ".$msg["transferts_circ_retour_filtre_dispo_title"]." ";
$search_filters .= $this->get_search_filter_f_etat_dispo();
return $search_filters;
}
/**
* Filtre SQL
*/
protected function _get_query_filters() {
$filter_query = parent::_get_query_filters();
$filter_query .= " AND num_expl not in (select num_expl from transferts_demande,transferts WHERE id_transfert=num_transfert and etat_transfert=0 AND etat_demande=1 )";
return $filter_query;
}
protected function get_display_selection_actions() {
global $msg;
return "";
}
protected function get_display_no_results() {
global $msg;
global $list_transferts_ui_no_results;
$display = $list_transferts_ui_no_results;
$display = str_replace('!!message!!', $msg["transferts_retour_liste_vide"], $display);
return $display;
}
protected function get_valid_form_title() {
global $msg;
return "
".$msg["transferts_circ_retour_valide_liste"]."
";
}
public function get_display_list() {
global $list_transferts_ui_script_chg_date_retour;
$display = parent::get_display_list();
$display .= $list_transferts_ui_script_chg_date_retour;
return $display;
}
}