41 $this->jrn_note_sql = $p_Jrn_Note_SQL;
42 $this->
id=$p_Jrn_Note_SQL->n_id;
43 $this->note=$p_Jrn_Note_SQL->n_text;
44 $this->operation_id=$p_Jrn_Note_SQL->jr_id;
70 $n_id=
$cn->get_value(
"select n_id from jrn_note where jr_id=$1",[$p_jr_id]);
71 if (
$cn->count() == 0) {
81 $this->jrn_note_sql->setp(
"jr_id",$this->operation_id);
82 $this->jrn_note_sql->setp(
"n_text",$this->note);
84 if ( empty($this->jrn_note_sql->n_text) && $this->id > -1 ) {
85 $this->jrn_note_sql->delete();
88 $this->jrn_note_sql->save();
89 $this->
id=$this->jrn_note_sql->n_id;
98 $this->operation_id=$p_jrid;
109 $this->jrn_note_sql->load();
110 $this->operation_id=$this->jrn_note_sql->jr_id;
111 $this->note=$this->jrn_note_sql->n_text;
112 $this->
id=$this->jrn_note_sql->n_id;
116 require NOALYSS_TEMPLATE.
'/acc_operation_note-input.php';
124 echo
'<pre id="print_note">'.h($this->note).
'</pre>';
setJrnNoteSql(Jrn_Note_SQL $jrn_note_sql)
static build_jrn_id($p_jr_id)
__construct(Jrn_Note_SQL $p_Jrn_Note_SQL)