26require_once NOALYSS_INCLUDE.
"/database/op_predef_sql.class.php";
43 parent::__construct($p_table);
53 $aLedger=$p_table->cn->make_array(
"select jrn_def_id,jrn_def_name from jrn_def order by jrn_def_name asc");
57 $this->
set_order(array(
"jrn_def_id",
"od_name",
"od_description",
"od_jrn_type"));
63 $this->pre_operation=
null;
84 $aLedger=array(-2=>
'ACH',-3=>
'VEN',-4=>
'ODS');
96 $od_id=
$obj->get(
"od_id");
99 $this->pre_operation->set_od_id(
$obj->get(
"od_id"));
100 $this->pre_operation->display();
105 $this->pre_operation->set_od_id(-1);
107 $this->pre_operation->display();
151 $this->pre_operation->get_post();
152 $this->pre_operation->set_od_id(
$http->post(
"p_id",
"number"));
157 $this->pre_operation->save();
158 $this->
set_pk($this->pre_operation->get_od_id());
167 $select->set_position(
'in-absolute');
168 $select->add_javascript(_(
"Achat"),sprintf(
"%s.input('-2','%s')",
172 $select->add_javascript(_(
"Vente"),sprintf(
"%s.input('-3','%s')",
176 $select->add_javascript(_(
"Opérations Diverses"),sprintf(
"%s.input('-4','%s')",
Purpose is to propose a librairy to display a table content and allow to update and delete row ,...
set_dialog_box($dialog_box)
set_append_row($p_value)
Enable or disable the appending of rows.
set_col_sort($p_num)
When adding an element ,we place it thanks the DOM Attribute sort_value set it to -1 if you want one ...
set_property_updatable($p_key, $p_value)
set a column of the data row updatable or not
set_col_type($p_key, $p_value, $p_array=NULL)
set the type of a column , it will change in the input db box , the select must supply an array of po...
set_pk($p_id)
set the id value of a data row and load from the db
set_sort_column($p_col)
set the column to sort by default
set_callback($p_file)
set the callback function that is passed to javascript
set_property_visible($p_key, $p_value)
set a column of the data row visible or not
set_col_label($p_key, $p_display)
set the name to display for a column
ORM abstract of the table public.op_predef.
Display a table and allow to change the predefined operation, insert or delete. Used the class Manage...
set_force_ledger_type($force_ledger_type)
When adding the ledger_type must be set if p_id == -2 then type ACH , 3 for VEN and 4 for ODS.
from_request()
Get values from the request.
$force_ledger_type
When adding , the ledger must be set.
save()
save the Data_SQL Object The noalyss_SQL is not empty
display_button_add()
Display a button to choose a type of operation and call a dialog box for adding.
__construct(Op_Predef_SQL $p_table)
manage the predefined operation, link to the table op_def and op_def_detail
Display a kind of select.