noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
class_stock_goods_sql.php
Go to the documentation of this file.
00001 <?php
00002 
00003 /*
00004  *   This file is part of NOALYSS.
00005  *
00006  *   NOALYSS is free software; you can redistribute it and/or modify
00007  *   it under the terms of the GNU General Public License as published by
00008  *   the Free Software Foundation; either version 2 of the License, or
00009  *   (at your option) any later version.
00010  *
00011  *   NOALYSS is distributed in the hope that it will be useful,
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *   GNU General Public License for more details.
00015  *
00016  *   You should have received a copy of the GNU General Public License
00017  *   along with NOALYSS; if not, write to the Free Software
00018  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  */
00020 
00021 // Copyright Author Dany De Bontridder danydb@aevalys.eu
00022 
00023 /**
00024  * @file
00025  * @brief
00026  *
00027  */
00028 require_once 'class_phpcompta_sql.php';
00029 
00030 class Stock_Goods_Sql extends Phpcompta_SQL
00031 {
00032 
00033         function __construct($cn,$p_id = -1)
00034         {
00035                 $this->table = "public.stock_goods";
00036                 $this->primary_key = "sg_id";
00037                 $this->date_format="DD.MM.YYYY";
00038 
00039                 $this->name = array(
00040                         "sg_id" => "sg_id",
00041                         "j_id" => "j_id",
00042                         "f_id" => "f_id",
00043                         "sg_code" => "sg_code",
00044                         "sg_quantity" => "sg_quantity",
00045                         "sg_type" => "sg_type",
00046                         "sg_date" => "sg_date",
00047                         "sg_tech_date" => "sg_tech_date",
00048                         "sg_tech_user" => "sg_tech_user",
00049                         "sg_comment" => "sg_comment",
00050                         "sg_exercice" => "sg_exercice",
00051                         "r_id" => "r_id",
00052                         "c_id"=>"c_id"
00053                 );
00054 
00055                 $this->type = array(
00056                         "sg_id" => "numeric",
00057                         "j_id" => "numeric",
00058                         "f_id" => "numeric",
00059                         "sg_code" => "text",
00060                         "sg_quantity" => "text",
00061                         "sg_type" => "text",
00062                         "sg_date" => "date",
00063                         "sg_tech_date" => "date",
00064                         "sg_tech_user" => "text",
00065                         "sg_comment" => "text",
00066                         "sg_exercice" => "sg_exercice",
00067                         "r_id" => "numeric",
00068                         "c_id" => "numeric"
00069 
00070                 );
00071 
00072                 $this->default = array(
00073                         "sg_id" => "auto",
00074                         "sg_tech_date" => "auto",
00075                         "sg_user" => "auto"
00076                 );
00077                 global $cn;
00078 
00079                 parent::__construct($cn, $p_id);
00080         }
00081 
00082 }
00083 
00084 class Stock_Change_Sql extends Phpcompta_SQL
00085 {
00086 
00087         function __construct($cn,$p_id = -1)
00088         {
00089                 $this->date_format="DD.MM.YYYY";
00090                 $this->table = "public.stock_change";
00091                 $this->primary_key = "c_id";
00092 
00093                 $this->name = array(
00094                         "id" => "c_id",
00095                         "c_comment" => "c_comment",
00096                         "c_date" => "c_date",
00097                         "tech_date"=>"tech_date",
00098                         "tech_user"=>"tech_user",
00099                         "r_id"=>"r_id"
00100                 );
00101 
00102                 $this->type = array(
00103                         "c_id" => "numeric",
00104                         "c_comment" => "text",
00105                         "c_date" => "date",
00106                         "tech_date"=>"date",
00107                         "tech_user"=>"text",
00108                         "r_id"=>"numeric"
00109                 );
00110 
00111                 $this->default = array(
00112                         "c_id" => "auto",
00113                         "tech_date" => "auto"
00114                 );
00115                 global $cn;
00116 
00117                 parent::__construct($cn, $p_id);
00118         }
00119 }
00120 ?>
 All Data Structures Namespaces Files Functions Variables Enumerations