Plugins  LAST
 All Data Structures Files Functions Variables Pages
class_rapport_avance_sql.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of NOALYSS.
5  *
6  * NOALYSS is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * NOALYSS is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with NOALYSS; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */
20 /* $Revision$ */
21 
22 // Copyright (c) 2002 Author Dany De Bontridder dany@alchimerys.be
23 
24 /**
25  * @file
26  * @brief handle the data: database level
27  *
28  */
29 require_once NOALYSS_INCLUDE.'/database/class_noalyss_sql.php';
30 
31 class formulaire_param_sql extends Noalyss_SQL
32 {
33 
34  function __construct($p_id = -1)
35  {
36 
37 
38  $this->table = "rapport_advanced.formulaire_param";
39  $this->primary_key = "p_id";
40 
41  $this->name = array(
42  "p_id" => "p_id",
43  "p_code" => "p_code",
44  "p_libelle" => "p_libelle",
45  "p_type" => "p_type",
46  "p_order" => "p_order",
47  "f_id" => "f_id",
48  "t_id" => "t_id"
49  );
50 
51  $this->type = array(
52  "p_id" => "numeric",
53  "p_code" => "text",
54  "p_libelle" => "text",
55  "p_type" => "numeric",
56  "p_order" => "numeric",
57  "f_id" => "numeric",
58  "t_id" => "numeric"
59  );
60 
61  $this->default = array(
62  "p_id" => "auto"
63  );
64  global $cn;
65 
66  parent::__construct($cn, $p_id);
67  }
68 
69 }
70 
71 class formulaire_sql extends Noalyss_SQL
72 {
73 
74  function __construct($p_id = -1)
75  {
76 
77 
78  $this->table = "rapport_advanced.formulaire";
79  $this->primary_key = "f_id";
80 
81  $this->name = array(
82  "f_id" => "f_id",
83  "f_title" => "f_title",
84  "f_description" => "f_description",
85  "f_lob" => "f_lob",
86  "f_mimetype" => "f_mimetype",
87  "f_filename" => "f_filename",
88  "f_size" => "f_size"
89  );
90 
91  $this->type = array(
92  "f_id" => "numeric",
93  "f_title" => "text",
94  "f_description" => "text",
95  "f_lob" => "oid",
96  "f_mimetype" => "text",
97  "f_filename" => "text",
98  "f_size" => "numeric"
99  );
100 
101  $this->default = array(
102  "f_id" => "auto"
103  );
104  global $cn;
105 
106  parent::__construct($cn, $p_id);
107  }
108 
109 }
110 
111 class Formulaire_Param_Detail_SQL extends Noalyss_SQL
112 {
113 
114  function __construct($p_id = -1)
115  {
116 
117 
118  $this->table = "rapport_advanced.formulaire_param_detail";
119  $this->primary_key = "fp_id";
120 
121  $this->name = array(
122  "fp_id" => "fp_id",
123  "p_id" => "p_id",
124  "tmp_val" => "tmp_val",
125  "tva_id" => "tva_id",
126  "fp_formula" => "fp_formula",
127  "fp_signed" => "fp_signed",
128  "jrn_def_type" => "jrn_def_type",
129  "tt_id" => "tt_id",
130  "type_detail" => "type_detail",
131  "with_tmp_val" => "with_tmp_val",
132  "type_sum_account" => "type_sum_account",
133  "operation_pcm_val" => "operation_pcm_val",
134  "jrn_def_id" => "jrn_def_id",
135  "date_paid" => "date_paid"
136  );
137 
138  $this->type = array(
139  "fp_id" => "numeric",
140  "p_id" => "numeric",
141  "tmp_val" => "text",
142  "tva_id" => "numeric",
143  "fp_formula" => "text",
144  "fp_signed" => "numeric",
145  "jrn_def_type" => "text",
146  "tt_id" => "numeric",
147  "type_detail" => "numeric",
148  "with_tmp_val" => "text",
149  "type_sum_account" => "numeric",
150  "operation_pcm_val" => "text",
151  "jrn_def_id" => "numeric",
152  "date_paid" => "numeric"
153  );
154 
155  $this->default = array(
156  "fp_id" => "auto"
157  );
158  global $cn;
159 
160  parent::__construct($cn, $p_id);
161  }
162 
163 }
164 
165 class RAPAV_Declaration_SQL extends Noalyss_SQL
166 {
167 
168  function __construct($p_id = -1)
169  {
170 
171 
172  $this->table = "rapport_advanced.declaration";
173  $this->primary_key = "d_id";
174 
175  $this->name = array(
176  "d_id" => "d_id",
177  "d_title" => "d_title",
178  "d_description" => 'd_description',
179  "d_start" => "d_start",
180  "d_end" => "d_end",
181  "to_keep" => "to_keep",
182  "d_generated" => "d_generated",
183  "d_lob" => "d_lob",
184  "d_filename" => "d_filename",
185  "d_mimetype" => "d_mimetype",
186  "d_size" => "d_size",
187  "f_id" => "f_id",
188  'd_step' => 'd_step'
189  );
190 
191  $this->type = array(
192  "d_id" => "numeric",
193  "d_title" => "text",
194  "d_description" => 'text',
195  "d_start" => "date",
196  "d_end" => "date",
197  "to_keep" => "text",
198  "d_generated" => "date",
199  "f_id" => "numeric",
200  "d_lob" => "oid",
201  "d_filename" => "text",
202  "d_mimetype" => "text",
203  "d_size" => "numeric",
204  'd_step' => 'numeric'
205  );
206 
207  $this->default = array(
208  "d_id" => "auto",
209  "d_generated" => "auto"
210  );
211  global $cn;
212 
213  $this->date_format = "DD.MM.YYYY";
214  parent::__construct($cn, $p_id);
215  }
216 
217 }
218 
219 class RAPAV_Declaration_Row_SQL extends Noalyss_SQL
220 {
221 
222  function __construct($p_id = -1)
223  {
224 
225 
226  $this->table = "rapport_advanced.declaration_row";
227  $this->primary_key = "dr_id";
228 
229  $this->name = array(
230  "dr_id" => "dr_id",
231  "d_id" => "d_id",
232  "dr_libelle" => "dr_libelle",
233  "dr_order" => "dr_order",
234  "dr_code" => "dr_code",
235  "dr_amount" => "dr_amount",
236  "dr_type" => "dr_type",
237  "dr_start" => "dr_start",
238  "dr_end" => "dr_end",
239  "dr_account"=>"dr_account"
240  );
241 
242  $this->type = array(
243  "dr_id" => "numeric",
244  "d_id" => "numeric",
245  "dr_libelle" => "text",
246  "dr_order" => "text",
247  "dr_code" => "numeric",
248  "dr_amount" => "numeric",
249  "dr_type" => "numeric",
250  "dr_start" => "date",
251  "dr_end" => "date",
252  "dr_account"=>"numeric"
253  );
254 
255  $this->default = array(
256  );
257  global $cn;
258  $this->date_format = 'DD.MM.YYYY';
259  parent::__construct($cn, $p_id);
260  }
261 
262 }
263 
264 class RAPAV_Declaration_Row_Detail_SQL extends Noalyss_SQL
265 {
266 
267  function __construct($p_id = -1)
268  {
269 
270 
271  $this->table = "rapport_advanced.declaration_row_detail";
272  $this->primary_key = "ddr_id";
273 
274  $this->name = array(
275  "ddr_id" => "ddr_id",
276  "ddr_amount" => "ddr_amount",
277  "dr_id" => "dr_id"
278  );
279 
280  $this->type = array(
281  "ddr_id" => "numeric",
282  "ddr_amount" => "numeric",
283  "dr_id" => "numeric"
284  );
285 
286  $this->default = array(
287  "ddr_id" => "auto"
288  );
289  global $cn;
290 
291  parent::__construct($cn, $p_id);
292  }
293 
294 }
295 
296 class RAPAV_Listing_SQL extends Noalyss_SQL
297 {
298  var $l_id;
300  var $l_name;
301  var $l_lob;
304  var $l_size;
305  var $fd_id;
306 
307  function __construct($p_id = -1)
308  {
309  $this->table = "rapport_advanced.listing";
310  $this->primary_key = "l_id";
311  $this->name = array(
312  "id" => "l_id",
313  "description" => "l_description",
314  "name" => 'l_name',
315  "lob" => "l_lob",
316  "filename" => "l_filename",
317  "mimetype" => "l_mimetype",
318  "size" => "l_size",
319  "fiche_def_id" => "fd_id"
320  );
321  $this->type = array(
322  "l_id" => "numeric",
323  "l_name" => 'text',
324  "l_description" => "text",
325  "l_lob" => "oid",
326  "l_filename" => "text",
327  "l_mimetype" => "text",
328  "l_size" => "numeric",
329  "fd_id" => "numeric"
330  );
331  $this->default = array(
332  "l_id" => "auto"
333  );
334  global $cn;
335 
336  parent::__construct($cn, $p_id);
337  }
338 
339 }
340 
341 class RAPAV_Listing_Param_SQL extends Noalyss_SQL
342 {
343  /*
344  * operation_pcm_val,with_tmp_val,tmp_val,date_paid,jrn_def_id,type_sum_account,type_detail,tt_id,jrn_def_type,fp_signed,fp_formula,tva_id,lp_with_card,lp_card_saldo,ad_id,l_order,l_card,lp_comment,lp_code,l_id,lp_id
345  */
346 
347  function __construct($p_id = -1)
348  {
349 
350 
351  $this->table = "rapport_advanced.listing_param";
352  $this->primary_key = "lp_id";
353 
354  $this->name = array(
355  "lp_id" => "lp_id",
356  "listing_id" => "l_id",
357  "code" => "lp_code",
358  "comment" => "lp_comment",
359  "order" => "l_order",
360  "tmp_val" => "tmp_val",
361  "tva_id" => "tva_id",
362  "formula" => "fp_formula",
363  "signed" => "fp_signed",
364  "jrn_def_type" => "jrn_def_type",
365  "acc_vat_sum" => "tt_id",
366  "formula_type" => "type_detail",
367  "with_tmp_val" => "with_tmp_val",
368  "sum_signed" => "type_sum_account",
369  "operation_pcm_val" => "operation_pcm_val",
370  "jrn_def_id" => "jrn_def_id",
371  "date_paid" => "date_paid",
372  "attribut_card" => "ad_id",
373  "card_saldo" => "lp_card_saldo",
374  "with_card" => "lp_with_card",
375  "lp_histo"=>"lp_histo"
376  );
377 
378  $this->type = array(
379  "lp_id" => "numeric",
380  "l_id" => "numeric",
381  "lp_code" => "text",
382  "lp_comment" => "text",
383  "l_order" => "numeric",
384  "tmp_val" => "text",
385  "tva_id" => "numeric",
386  "fp_formula" => "text",
387  "fp_signed" => "numeric",
388  "jrn_def_type" => "text",
389  "tt_id" => "numeric",
390  "type_detail" => "numeric",
391  "with_tmp_val" => "text",
392  "type_sum_account" => "numeric",
393  "operation_pcm_val" => "text",
394  "jrn_def_id" => "numeric",
395  "date_paid" => "numeric",
396  "ad_id" => "numeric",
397  "lp_card_saldo" => "text",
398  "lp_with_card" => "text",
399  "lp_histo" => "numeric",
400  );
401 
402  $this->default = array(
403  "lp_id" => "auto"
404  );
405  global $cn;
406 
407  parent::__construct($cn, $p_id);
408  }
409 
410 }
411 
412 /**
413  * @brief Manage the table rapport_advanced.listing_compute
414  */
415 class RAPAV_Listing_Compute_SQL extends Noalyss_SQL
416 {
417 
418  //------ Attributes-----
419  var $lc_id;
420  var $l_id;
422  var $l_start;
423  var $l_end;
424  var $l_keep;
426  var $l_name;
427 
428  /* example private $variable=array("easy_name"=>column_name,"email"=>"column_name_email","val3"=>0); */
429 
430  function __construct($p_id = -1)
431  {
432  $this->table = "rapport_advanced.listing_compute";
433  $this->primary_key = "lc_id";
434 
435  $this->name = array(
436  "lc_id" => "lc_id"
437  , "l_id" => "l_id"
438  , "description" => "l_description"
439  , "l_start" => "l_start"
440  , "l_end" => "l_end"
441  , "l_keep" => "l_keep"
442  , "l_timestamp" => "l_timestamp"
443  ,"l_name"=>"l_name"
444  );
445 
446  $this->type = array(
447  "lc_id" => "lc_id",
448  "l_id" => "numeric"
449  , "l_description" => "text"
450  , "l_start" => "date"
451  , "l_end" => "date"
452  , "l_keep" => "text"
453  , "l_timestamp" => "date"
454  , "l_name" => "text"
455  );
456 
457  $this->default = array(
458  "lc_id" => "auto"
459  , "l_timestamp" => "auto"
460  );
461  global $cn;
462  $this->date_format = "DD.MM.YYYY";
463  parent::__construct($cn, $p_id);
464  }
465 
466  /**
467  * @brief Add here your own code: verify is always call BEFORE insert or update
468  */
469  public function verify()
470  {
471  parent::verify();
472  }
473 
474 }
475 
476 /**
477  * @brief Manage the table rapport_advanced.listing_compute_fiche
478  */
479 class RAPAV_Listing_Compute_Fiche_SQL extends Noalyss_SQL
480 {
481 
482  //------ Attributes-----
483  var $lf_id;
484  var $f_id;
485  var $lf_lob;
488  var $lc_id;
489  var $lf_pdf;
494 
495 
496  /* example private $variable=array("easy_name"=>column_name,"email"=>"column_name_email","val3"=>0); */
497 
498  function __construct($p_id = -1)
499  {
500 
501 
502  $this->table = "rapport_advanced.listing_compute_fiche";
503  $this->primary_key = "lf_id";
504 
505  $this->name = array(
506  "lf_id" => "lf_id",
507  "f_id" => "f_id",
508  "lc_id" => "lc_id"
509  , "lf_lob" => "lf_lob"
510  , "lf_filename" => "lf_filename"
511  , "lf_mimetype" => "lf_mimetype"
512  , "lf_pdf" => "lf_pdf"
513  , "lf_pdf_filename" => "lf_pdf_filename"
514  ,'action_included'=>'lf_action_included'
515  , 'email_send_date'=>'lf_email_send_date'
516  , 'email_send_result'=>'lf_email_send_result'
517  );
518 
519  $this->type = array(
520  "lf_id" => "numeric",
521  "lc_id" => "numeric",
522  "f_id" => "numeric"
523  , "lf_lob" => "oid"
524  , "lf_filename" => "text"
525  , "lf_mimetype" => "text"
526  , "lf_pdf" => "oid"
527  , "lf_pdf_filename" => "text"
528  ,'lf_action_included'=>'text'
529  , 'lf_email_send_date'=>'text'
530  , 'lf_email_send_result'=>'text'
531  );
532 
533  $this->default = array(
534  "lf_id" => "auto"
535  );
536  global $cn;
537  $this->date_format = "DD.MM.YYYY";
538  parent::__construct($cn, $p_id);
539  }
540 
541  /**
542  * @brief Add here your own code: verify is always call BEFORE insert or update
543  */
544  public function verify()
545  {
546  parent::verify();
547  }
548 
549 }
550 
551 /**
552  * @file
553  * @brief Manage the table rapport_advanced.listing_compute_detail
554  *
555  *
556  Example
557  @code
558 
559  @endcode
560  */
561 require_once NOALYSS_INCLUDE.'/database/class_noalyss_sql.php';
562 
563 /**
564  * @brief Manage the table rapport_advanced.listing_compute_detail
565  */
566 class RAPAV_Listing_Compute_Detail_SQL extends Noalyss_SQL
567 {
568 
569  //------ Attributes-----
570  var $lc_id;
574  var $lp_id;
575  var $lf_id;
576  var $lc_code;
580 
581  /* example private $variable=array("easy_name"=>column_name,"email"=>"column_name_email","val3"=>0); */
582 
583  function __construct($p_id = -1)
584  {
585 
586 
587  $this->table = "rapport_advanced.listing_compute_detail";
588  $this->primary_key = "ld_id";
589 
590  $this->name = array(
591  "ld_id" => "ld_id", "lc_id" => "lc_id"
592  , "ld_value_date" => "ld_value_date"
593  , "ld_value_numeric" => "ld_value_numeric"
594  , "ld_value_text" => "ld_value_text"
595  , "lp_id" => "lp_id"
596  , "lf_id" => "lf_id"
597  ,'code'=>'lc_code'
598  ,'comment'=>'lc_comment'
599  ,'order'=>'lc_order'
600  ,'history'=>'lc_histo'
601  );
602 
603  $this->type = array(
604  "ld_id" => "numeric",
605  "lc_id" => "numeric"
606  , "ld_value_date" => "date"
607  , "ld_value_numeric" => "numeric"
608  , "ld_value_text" => "text"
609  , "lp_id" => "numeric"
610  , "lf_id" => "numeric"
611  , 'lc_code'=>"text"
612  , 'lc_comment'=>"text"
613  , 'lc_order'=>"numeric"
614  , 'lc_histo'=>"numeric"
615  );
616 
617  $this->default = array(
618  "ld_id" => "auto"
619  );
620  global $cn;
621  $this->date_format = "DD.MM.YYYY";
622  parent::__construct($cn, $p_id);
623  }
624 
625  /**
626  * @brief Add here your own code: verify is always call BEFORE insert or update
627  */
628  public function verify()
629  {
630  parent::verify();
631  }
632 
633 }
634 /**
635  * @brief Manage the table rapport_advanced.listing_compute_historique
636  */
637 class RAPAV_Listing_Compute_Historique_SQL extends Noalyss_SQL
638 {
639 
640  //------ Attributes-----
641  var $lh_id;
642  var $ld_id;
643  var $jr_id;
644 
645 
646  function __construct($p_id = -1)
647  {
648 
649 
650  $this->table = "rapport_advanced.listing_compute_historique";
651  $this->primary_key = "lh_id";
652 
653  $this->name = array(
654  "lh_id" => "lh_id", "lh_id" => "lh_id"
655  , "ld_id" => "ld_id"
656  , "jr_id" => "jr_id"
657  );
658 
659  $this->type = array(
660  "lh_id" => "numeric"
661  , "ld_id" => "numeric"
662  , "jr_id" => "numeric"
663  );
664 
665  $this->default = array(
666  "lh_id" => "auto"
667  );
668  global $cn;
669  $this->date_format = "DD.MM.YYYY";
670  parent::__construct($cn, $p_id);
671  }
672 
673  /**
674  * @brief Add here your own code: verify is always call BEFORE insert or update
675  */
676  public function verify()
677  {
678  parent::verify();
679  }
680 
681 }
682 class RAPAV_Condition_SQL extends Noalyss_SQL
683 {
684  var $id;
685  var $lp_id;
687  var $c_value;
688  function __construct( $p_id=-1)
689  {
690  $this->table = "rapport_advanced.listing_condition";
691  $this->primary_key = "id";
692 
693  $this->name = array(
694  "id" => "id"
695  ,"lp_id" => "lp_id"
696  , "c_operator" => "c_operator"
697  , "c_value" => "c_value"
698  );
699 
700  $this->type = array(
701  "id" => "numeric"
702  ,"lp_id" => "numeric"
703  , "c_operator" => "numeric"
704  , "c_value" => "text"
705  );
706 
707  $this->default = array(
708  "id" => "auto"
709  );
710  global $cn;
711  $this->date_format = "DD.MM.YYYY";
712  parent::__construct($cn, $p_id);
713  }
714 }
715 
716 ?>
verify()
Add here your own code: verify is always call BEFORE insert or update.
Manage the table rapport_advanced.listing_compute_fiche.
verify()
Add here your own code: verify is always call BEFORE insert or update.
Manage the table rapport_advanced.listing_compute_historique.
Manage the table rapport_advanced.listing_compute_detail.
verify()
Add here your own code: verify is always call BEFORE insert or update.
verify()
Add here your own code: verify is always call BEFORE insert or update.
$categorie_appel table
$categorie_appel name
Manage the table rapport_advanced.listing_compute.
global $cn