Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
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 ?>