Initial xentral_oss_20.3.c9ffacf
This commit is contained in:
@@ -0,0 +1,305 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenAbrechnungsartikel
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $sort;
|
||||
private $artikel;
|
||||
private $bezeichnung;
|
||||
private $nummer;
|
||||
private $menge;
|
||||
private $preis;
|
||||
private $steuerklasse;
|
||||
private $rabatt;
|
||||
private $abgerechnet;
|
||||
private $startdatum;
|
||||
private $lieferdatum;
|
||||
private $abgerechnetbis;
|
||||
private $wiederholend;
|
||||
private $zahlzyklus;
|
||||
private $abgrechnetam;
|
||||
private $rechnung;
|
||||
private $projekt;
|
||||
private $adresse;
|
||||
private $status;
|
||||
private $bemerkung;
|
||||
private $logdatei;
|
||||
private $beschreibung;
|
||||
private $dokument;
|
||||
private $preisart;
|
||||
private $enddatum;
|
||||
private $angelegtvon;
|
||||
private $angelegtam;
|
||||
private $experte;
|
||||
private $waehrung;
|
||||
private $beschreibungersetzten;
|
||||
private $gruppe;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM abrechnungsartikel WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->sort=$result['sort'];
|
||||
$this->artikel=$result['artikel'];
|
||||
$this->bezeichnung=$result['bezeichnung'];
|
||||
$this->nummer=$result['nummer'];
|
||||
$this->menge=$result['menge'];
|
||||
$this->preis=$result['preis'];
|
||||
$this->steuerklasse=$result['steuerklasse'];
|
||||
$this->rabatt=$result['rabatt'];
|
||||
$this->abgerechnet=$result['abgerechnet'];
|
||||
$this->startdatum=$result['startdatum'];
|
||||
$this->lieferdatum=$result['lieferdatum'];
|
||||
$this->abgerechnetbis=$result['abgerechnetbis'];
|
||||
$this->wiederholend=$result['wiederholend'];
|
||||
$this->zahlzyklus=$result['zahlzyklus'];
|
||||
$this->abgrechnetam=$result['abgrechnetam'];
|
||||
$this->rechnung=$result['rechnung'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->adresse=$result['adresse'];
|
||||
$this->status=$result['status'];
|
||||
$this->bemerkung=$result['bemerkung'];
|
||||
$this->logdatei=$result['logdatei'];
|
||||
$this->beschreibung=$result['beschreibung'];
|
||||
$this->dokument=$result['dokument'];
|
||||
$this->preisart=$result['preisart'];
|
||||
$this->enddatum=$result['enddatum'];
|
||||
$this->angelegtvon=$result['angelegtvon'];
|
||||
$this->angelegtam=$result['angelegtam'];
|
||||
$this->experte=$result['experte'];
|
||||
$this->waehrung=$result['waehrung'];
|
||||
$this->beschreibungersetzten=$result['beschreibungersetzten'];
|
||||
$this->gruppe=$result['gruppe'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO abrechnungsartikel (id,sort,artikel,bezeichnung,nummer,menge,preis,steuerklasse,rabatt,abgerechnet,startdatum,lieferdatum,abgerechnetbis,wiederholend,zahlzyklus,abgrechnetam,rechnung,projekt,adresse,status,bemerkung,logdatei,beschreibung,dokument,preisart,enddatum,angelegtvon,angelegtam,experte,waehrung,beschreibungersetzten,gruppe)
|
||||
VALUES('','{$this->sort}','{$this->artikel}','{$this->bezeichnung}','{$this->nummer}','{$this->menge}','{$this->preis}','{$this->steuerklasse}','{$this->rabatt}','{$this->abgerechnet}','{$this->startdatum}','{$this->lieferdatum}','{$this->abgerechnetbis}','{$this->wiederholend}','{$this->zahlzyklus}','{$this->abgrechnetam}','{$this->rechnung}','{$this->projekt}','{$this->adresse}','{$this->status}','{$this->bemerkung}','{$this->logdatei}','{$this->beschreibung}','{$this->dokument}','{$this->preisart}','{$this->enddatum}','{$this->angelegtvon}','{$this->angelegtam}','{$this->experte}','{$this->waehrung}','{$this->beschreibungersetzten}','{$this->gruppe}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE abrechnungsartikel SET
|
||||
sort='{$this->sort}',
|
||||
artikel='{$this->artikel}',
|
||||
bezeichnung='{$this->bezeichnung}',
|
||||
nummer='{$this->nummer}',
|
||||
menge='{$this->menge}',
|
||||
preis='{$this->preis}',
|
||||
steuerklasse='{$this->steuerklasse}',
|
||||
rabatt='{$this->rabatt}',
|
||||
abgerechnet='{$this->abgerechnet}',
|
||||
startdatum='{$this->startdatum}',
|
||||
lieferdatum='{$this->lieferdatum}',
|
||||
abgerechnetbis='{$this->abgerechnetbis}',
|
||||
wiederholend='{$this->wiederholend}',
|
||||
zahlzyklus='{$this->zahlzyklus}',
|
||||
abgrechnetam='{$this->abgrechnetam}',
|
||||
rechnung='{$this->rechnung}',
|
||||
projekt='{$this->projekt}',
|
||||
adresse='{$this->adresse}',
|
||||
status='{$this->status}',
|
||||
bemerkung='{$this->bemerkung}',
|
||||
logdatei='{$this->logdatei}',
|
||||
beschreibung='{$this->beschreibung}',
|
||||
dokument='{$this->dokument}',
|
||||
preisart='{$this->preisart}',
|
||||
enddatum='{$this->enddatum}',
|
||||
angelegtvon='{$this->angelegtvon}',
|
||||
angelegtam='{$this->angelegtam}',
|
||||
experte='{$this->experte}',
|
||||
waehrung='{$this->waehrung}',
|
||||
beschreibungersetzten='{$this->beschreibungersetzten}',
|
||||
gruppe='{$this->gruppe}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM abrechnungsartikel WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->sort="";
|
||||
$this->artikel="";
|
||||
$this->bezeichnung="";
|
||||
$this->nummer="";
|
||||
$this->menge="";
|
||||
$this->preis="";
|
||||
$this->steuerklasse="";
|
||||
$this->rabatt="";
|
||||
$this->abgerechnet="";
|
||||
$this->startdatum="";
|
||||
$this->lieferdatum="";
|
||||
$this->abgerechnetbis="";
|
||||
$this->wiederholend="";
|
||||
$this->zahlzyklus="";
|
||||
$this->abgrechnetam="";
|
||||
$this->rechnung="";
|
||||
$this->projekt="";
|
||||
$this->adresse="";
|
||||
$this->status="";
|
||||
$this->bemerkung="";
|
||||
$this->logdatei="";
|
||||
$this->beschreibung="";
|
||||
$this->dokument="";
|
||||
$this->preisart="";
|
||||
$this->enddatum="";
|
||||
$this->angelegtvon="";
|
||||
$this->angelegtam="";
|
||||
$this->experte="";
|
||||
$this->waehrung="";
|
||||
$this->beschreibungersetzten="";
|
||||
$this->gruppe="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetSort($value) { $this->sort=$value; }
|
||||
function GetSort() { return $this->sort; }
|
||||
function SetArtikel($value) { $this->artikel=$value; }
|
||||
function GetArtikel() { return $this->artikel; }
|
||||
function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
function GetBezeichnung() { return $this->bezeichnung; }
|
||||
function SetNummer($value) { $this->nummer=$value; }
|
||||
function GetNummer() { return $this->nummer; }
|
||||
function SetMenge($value) { $this->menge=$value; }
|
||||
function GetMenge() { return $this->menge; }
|
||||
function SetPreis($value) { $this->preis=$value; }
|
||||
function GetPreis() { return $this->preis; }
|
||||
function SetSteuerklasse($value) { $this->steuerklasse=$value; }
|
||||
function GetSteuerklasse() { return $this->steuerklasse; }
|
||||
function SetRabatt($value) { $this->rabatt=$value; }
|
||||
function GetRabatt() { return $this->rabatt; }
|
||||
function SetAbgerechnet($value) { $this->abgerechnet=$value; }
|
||||
function GetAbgerechnet() { return $this->abgerechnet; }
|
||||
function SetStartdatum($value) { $this->startdatum=$value; }
|
||||
function GetStartdatum() { return $this->startdatum; }
|
||||
function SetLieferdatum($value) { $this->lieferdatum=$value; }
|
||||
function GetLieferdatum() { return $this->lieferdatum; }
|
||||
function SetAbgerechnetbis($value) { $this->abgerechnetbis=$value; }
|
||||
function GetAbgerechnetbis() { return $this->abgerechnetbis; }
|
||||
function SetWiederholend($value) { $this->wiederholend=$value; }
|
||||
function GetWiederholend() { return $this->wiederholend; }
|
||||
function SetZahlzyklus($value) { $this->zahlzyklus=$value; }
|
||||
function GetZahlzyklus() { return $this->zahlzyklus; }
|
||||
function SetAbgrechnetam($value) { $this->abgrechnetam=$value; }
|
||||
function GetAbgrechnetam() { return $this->abgrechnetam; }
|
||||
function SetRechnung($value) { $this->rechnung=$value; }
|
||||
function GetRechnung() { return $this->rechnung; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetStatus($value) { $this->status=$value; }
|
||||
function GetStatus() { return $this->status; }
|
||||
function SetBemerkung($value) { $this->bemerkung=$value; }
|
||||
function GetBemerkung() { return $this->bemerkung; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
function SetBeschreibung($value) { $this->beschreibung=$value; }
|
||||
function GetBeschreibung() { return $this->beschreibung; }
|
||||
function SetDokument($value) { $this->dokument=$value; }
|
||||
function GetDokument() { return $this->dokument; }
|
||||
function SetPreisart($value) { $this->preisart=$value; }
|
||||
function GetPreisart() { return $this->preisart; }
|
||||
function SetEnddatum($value) { $this->enddatum=$value; }
|
||||
function GetEnddatum() { return $this->enddatum; }
|
||||
function SetAngelegtvon($value) { $this->angelegtvon=$value; }
|
||||
function GetAngelegtvon() { return $this->angelegtvon; }
|
||||
function SetAngelegtam($value) { $this->angelegtam=$value; }
|
||||
function GetAngelegtam() { return $this->angelegtam; }
|
||||
function SetExperte($value) { $this->experte=$value; }
|
||||
function GetExperte() { return $this->experte; }
|
||||
function SetWaehrung($value) { $this->waehrung=$value; }
|
||||
function GetWaehrung() { return $this->waehrung; }
|
||||
function SetBeschreibungersetzten($value) { $this->beschreibungersetzten=$value; }
|
||||
function GetBeschreibungersetzten() { return $this->beschreibungersetzten; }
|
||||
function SetGruppe($value) { $this->gruppe=$value; }
|
||||
function GetGruppe() { return $this->gruppe; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,137 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenAccordion
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $name;
|
||||
private $target;
|
||||
private $position;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM accordion WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->name=$result[name];
|
||||
$this->target=$result[target];
|
||||
$this->position=$result[position];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO accordion (id,name,target,position)
|
||||
VALUES('','{$this->name}','{$this->target}','{$this->position}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE accordion SET
|
||||
name='{$this->name}',
|
||||
target='{$this->target}',
|
||||
position='{$this->position}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM accordion WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->name="";
|
||||
$this->target="";
|
||||
$this->position="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetName($value) { $this->name=$value; }
|
||||
function GetName() { return $this->name; }
|
||||
function SetTarget($value) { $this->target=$value; }
|
||||
function GetTarget() { return $this->target; }
|
||||
function SetPosition($value) { $this->position=$value; }
|
||||
function GetPosition() { return $this->position; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,209 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenAdapterbox
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $bezeichnung;
|
||||
private $verwendenals;
|
||||
private $baudrate;
|
||||
private $model;
|
||||
private $seriennummer;
|
||||
private $ipadresse;
|
||||
private $netmask;
|
||||
private $gateway;
|
||||
private $dns;
|
||||
private $dhcp;
|
||||
private $wlan;
|
||||
private $ssid;
|
||||
private $passphrase;
|
||||
private $letzteverbindung;
|
||||
private $tmpip;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM adapterbox WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->bezeichnung=$result['bezeichnung'];
|
||||
$this->verwendenals=$result['verwendenals'];
|
||||
$this->baudrate=$result['baudrate'];
|
||||
$this->model=$result['model'];
|
||||
$this->seriennummer=$result['seriennummer'];
|
||||
$this->ipadresse=$result['ipadresse'];
|
||||
$this->netmask=$result['netmask'];
|
||||
$this->gateway=$result['gateway'];
|
||||
$this->dns=$result['dns'];
|
||||
$this->dhcp=$result['dhcp'];
|
||||
$this->wlan=$result['wlan'];
|
||||
$this->ssid=$result['ssid'];
|
||||
$this->passphrase=$result['passphrase'];
|
||||
$this->letzteverbindung=$result['letzteverbindung'];
|
||||
$this->tmpip=$result['tmpip'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO adapterbox (id,bezeichnung,verwendenals,baudrate,model,seriennummer,ipadresse,netmask,gateway,dns,dhcp,wlan,ssid,passphrase,letzteverbindung,tmpip)
|
||||
VALUES('','{$this->bezeichnung}','{$this->verwendenals}','{$this->baudrate}','{$this->model}','{$this->seriennummer}','{$this->ipadresse}','{$this->netmask}','{$this->gateway}','{$this->dns}','{$this->dhcp}','{$this->wlan}','{$this->ssid}','{$this->passphrase}','{$this->letzteverbindung}','{$this->tmpip}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE adapterbox SET
|
||||
bezeichnung='{$this->bezeichnung}',
|
||||
verwendenals='{$this->verwendenals}',
|
||||
baudrate='{$this->baudrate}',
|
||||
model='{$this->model}',
|
||||
seriennummer='{$this->seriennummer}',
|
||||
ipadresse='{$this->ipadresse}',
|
||||
netmask='{$this->netmask}',
|
||||
gateway='{$this->gateway}',
|
||||
dns='{$this->dns}',
|
||||
dhcp='{$this->dhcp}',
|
||||
wlan='{$this->wlan}',
|
||||
ssid='{$this->ssid}',
|
||||
passphrase='{$this->passphrase}',
|
||||
letzteverbindung='{$this->letzteverbindung}',
|
||||
tmpip='{$this->tmpip}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM adapterbox WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->bezeichnung="";
|
||||
$this->verwendenals="";
|
||||
$this->baudrate="";
|
||||
$this->model="";
|
||||
$this->seriennummer="";
|
||||
$this->ipadresse="";
|
||||
$this->netmask="";
|
||||
$this->gateway="";
|
||||
$this->dns="";
|
||||
$this->dhcp="";
|
||||
$this->wlan="";
|
||||
$this->ssid="";
|
||||
$this->passphrase="";
|
||||
$this->letzteverbindung="";
|
||||
$this->tmpip="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
function GetBezeichnung() { return $this->bezeichnung; }
|
||||
function SetVerwendenals($value) { $this->verwendenals=$value; }
|
||||
function GetVerwendenals() { return $this->verwendenals; }
|
||||
function SetBaudrate($value) { $this->baudrate=$value; }
|
||||
function GetBaudrate() { return $this->baudrate; }
|
||||
function SetModel($value) { $this->model=$value; }
|
||||
function GetModel() { return $this->model; }
|
||||
function SetSeriennummer($value) { $this->seriennummer=$value; }
|
||||
function GetSeriennummer() { return $this->seriennummer; }
|
||||
function SetIpadresse($value) { $this->ipadresse=$value; }
|
||||
function GetIpadresse() { return $this->ipadresse; }
|
||||
function SetNetmask($value) { $this->netmask=$value; }
|
||||
function GetNetmask() { return $this->netmask; }
|
||||
function SetGateway($value) { $this->gateway=$value; }
|
||||
function GetGateway() { return $this->gateway; }
|
||||
function SetDns($value) { $this->dns=$value; }
|
||||
function GetDns() { return $this->dns; }
|
||||
function SetDhcp($value) { $this->dhcp=$value; }
|
||||
function GetDhcp() { return $this->dhcp; }
|
||||
function SetWlan($value) { $this->wlan=$value; }
|
||||
function GetWlan() { return $this->wlan; }
|
||||
function SetSsid($value) { $this->ssid=$value; }
|
||||
function GetSsid() { return $this->ssid; }
|
||||
function SetPassphrase($value) { $this->passphrase=$value; }
|
||||
function GetPassphrase() { return $this->passphrase; }
|
||||
function SetLetzteverbindung($value) { $this->letzteverbindung=$value; }
|
||||
function GetLetzteverbindung() { return $this->letzteverbindung; }
|
||||
function SetTmpip($value) { $this->tmpip=$value; }
|
||||
function GetTmpip() { return $this->tmpip; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,179 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenAdresse_Accounts
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $aktiv;
|
||||
private $adresse;
|
||||
private $bezeichnung;
|
||||
private $art;
|
||||
private $url;
|
||||
private $benutzername;
|
||||
private $passwort;
|
||||
private $webid;
|
||||
private $gueltig_ab;
|
||||
private $gueltig_bis;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM adresse_accounts WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->aktiv=$result[aktiv];
|
||||
$this->adresse=$result[adresse];
|
||||
$this->bezeichnung=$result[bezeichnung];
|
||||
$this->art=$result[art];
|
||||
$this->url=$result[url];
|
||||
$this->benutzername=$result[benutzername];
|
||||
$this->passwort=$result[passwort];
|
||||
$this->webid=$result[webid];
|
||||
$this->gueltig_ab=$result[gueltig_ab];
|
||||
$this->gueltig_bis=$result[gueltig_bis];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO adresse_accounts (id,aktiv,adresse,bezeichnung,art,url,benutzername,passwort,webid,gueltig_ab,gueltig_bis)
|
||||
VALUES('','{$this->aktiv}','{$this->adresse}','{$this->bezeichnung}','{$this->art}','{$this->url}','{$this->benutzername}','{$this->passwort}','{$this->webid}','{$this->gueltig_ab}','{$this->gueltig_bis}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE adresse_accounts SET
|
||||
aktiv='{$this->aktiv}',
|
||||
adresse='{$this->adresse}',
|
||||
bezeichnung='{$this->bezeichnung}',
|
||||
art='{$this->art}',
|
||||
url='{$this->url}',
|
||||
benutzername='{$this->benutzername}',
|
||||
passwort='{$this->passwort}',
|
||||
webid='{$this->webid}',
|
||||
gueltig_ab='{$this->gueltig_ab}',
|
||||
gueltig_bis='{$this->gueltig_bis}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM adresse_accounts WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->aktiv="";
|
||||
$this->adresse="";
|
||||
$this->bezeichnung="";
|
||||
$this->art="";
|
||||
$this->url="";
|
||||
$this->benutzername="";
|
||||
$this->passwort="";
|
||||
$this->webid="";
|
||||
$this->gueltig_ab="";
|
||||
$this->gueltig_bis="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetAktiv($value) { $this->aktiv=$value; }
|
||||
function GetAktiv() { return $this->aktiv; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
function GetBezeichnung() { return $this->bezeichnung; }
|
||||
function SetArt($value) { $this->art=$value; }
|
||||
function GetArt() { return $this->art; }
|
||||
function SetUrl($value) { $this->url=$value; }
|
||||
function GetUrl() { return $this->url; }
|
||||
function SetBenutzername($value) { $this->benutzername=$value; }
|
||||
function GetBenutzername() { return $this->benutzername; }
|
||||
function SetPasswort($value) { $this->passwort=$value; }
|
||||
function GetPasswort() { return $this->passwort; }
|
||||
function SetWebid($value) { $this->webid=$value; }
|
||||
function GetWebid() { return $this->webid; }
|
||||
function SetGueltig_Ab($value) { $this->gueltig_ab=$value; }
|
||||
function GetGueltig_Ab() { return $this->gueltig_ab; }
|
||||
function SetGueltig_Bis($value) { $this->gueltig_bis=$value; }
|
||||
function GetGueltig_Bis() { return $this->gueltig_bis; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,155 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenAdresse_Kontakhistorie
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $adresse;
|
||||
private $grund;
|
||||
private $beschreibung;
|
||||
private $bearbeiter;
|
||||
private $datum;
|
||||
private $logdatei;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM adresse_kontakhistorie WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->adresse=$result[adresse];
|
||||
$this->grund=$result[grund];
|
||||
$this->beschreibung=$result[beschreibung];
|
||||
$this->bearbeiter=$result[bearbeiter];
|
||||
$this->datum=$result[datum];
|
||||
$this->logdatei=$result[logdatei];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO adresse_kontakhistorie (id,adresse,grund,beschreibung,bearbeiter,datum,logdatei)
|
||||
VALUES('','{$this->adresse}','{$this->grund}','{$this->beschreibung}','{$this->bearbeiter}','{$this->datum}','{$this->logdatei}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE adresse_kontakhistorie SET
|
||||
adresse='{$this->adresse}',
|
||||
grund='{$this->grund}',
|
||||
beschreibung='{$this->beschreibung}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
datum='{$this->datum}',
|
||||
logdatei='{$this->logdatei}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM adresse_kontakhistorie WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->adresse="";
|
||||
$this->grund="";
|
||||
$this->beschreibung="";
|
||||
$this->bearbeiter="";
|
||||
$this->datum="";
|
||||
$this->logdatei="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetGrund($value) { $this->grund=$value; }
|
||||
function GetGrund() { return $this->grund; }
|
||||
function SetBeschreibung($value) { $this->beschreibung=$value; }
|
||||
function GetBeschreibung() { return $this->beschreibung; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetDatum($value) { $this->datum=$value; }
|
||||
function GetDatum() { return $this->datum; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,137 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenAdresse_Kontakte
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $adresse;
|
||||
private $bezeichnung;
|
||||
private $kontakt;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM adresse_kontakte WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->adresse=$result[adresse];
|
||||
$this->bezeichnung=$result[bezeichnung];
|
||||
$this->kontakt=$result[kontakt];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO adresse_kontakte (id,adresse,bezeichnung,kontakt)
|
||||
VALUES('','{$this->adresse}','{$this->bezeichnung}','{$this->kontakt}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE adresse_kontakte SET
|
||||
adresse='{$this->adresse}',
|
||||
bezeichnung='{$this->bezeichnung}',
|
||||
kontakt='{$this->kontakt}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM adresse_kontakte WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->adresse="";
|
||||
$this->bezeichnung="";
|
||||
$this->kontakt="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
function GetBezeichnung() { return $this->bezeichnung; }
|
||||
function SetKontakt($value) { $this->kontakt=$value; }
|
||||
function GetKontakt() { return $this->kontakt; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenAdresse_Rolle
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $adresse;
|
||||
private $projekt;
|
||||
private $subjekt;
|
||||
private $praedikat;
|
||||
private $objekt;
|
||||
private $parameter;
|
||||
private $von;
|
||||
private $bis;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM adresse_rolle WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->adresse=$result[adresse];
|
||||
$this->projekt=$result[projekt];
|
||||
$this->subjekt=$result[subjekt];
|
||||
$this->praedikat=$result[praedikat];
|
||||
$this->objekt=$result[objekt];
|
||||
$this->parameter=$result[parameter];
|
||||
$this->von=$result[von];
|
||||
$this->bis=$result[bis];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO adresse_rolle (id,adresse,projekt,subjekt,praedikat,objekt,parameter,von,bis)
|
||||
VALUES('','{$this->adresse}','{$this->projekt}','{$this->subjekt}','{$this->praedikat}','{$this->objekt}','{$this->parameter}','{$this->von}','{$this->bis}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE adresse_rolle SET
|
||||
adresse='{$this->adresse}',
|
||||
projekt='{$this->projekt}',
|
||||
subjekt='{$this->subjekt}',
|
||||
praedikat='{$this->praedikat}',
|
||||
objekt='{$this->objekt}',
|
||||
parameter='{$this->parameter}',
|
||||
von='{$this->von}',
|
||||
bis='{$this->bis}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM adresse_rolle WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->adresse="";
|
||||
$this->projekt="";
|
||||
$this->subjekt="";
|
||||
$this->praedikat="";
|
||||
$this->objekt="";
|
||||
$this->parameter="";
|
||||
$this->von="";
|
||||
$this->bis="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetSubjekt($value) { $this->subjekt=$value; }
|
||||
function GetSubjekt() { return $this->subjekt; }
|
||||
function SetPraedikat($value) { $this->praedikat=$value; }
|
||||
function GetPraedikat() { return $this->praedikat; }
|
||||
function SetObjekt($value) { $this->objekt=$value; }
|
||||
function GetObjekt() { return $this->objekt; }
|
||||
function SetParameter($value) { $this->parameter=$value; }
|
||||
function GetParameter() { return $this->parameter; }
|
||||
function SetVon($value) { $this->von=$value; }
|
||||
function GetVon() { return $this->von; }
|
||||
function SetBis($value) { $this->bis=$value; }
|
||||
function GetBis() { return $this->bis; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,155 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenAdresse_Typ
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $type;
|
||||
private $bezeichnung;
|
||||
private $aktiv;
|
||||
private $geloescht;
|
||||
private $projekt;
|
||||
private $netto;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM adresse_typ WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->type=$result['type'];
|
||||
$this->bezeichnung=$result['bezeichnung'];
|
||||
$this->aktiv=$result['aktiv'];
|
||||
$this->geloescht=$result['geloescht'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->netto=$result['netto'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO adresse_typ (id,type,bezeichnung,aktiv,geloescht,projekt,netto)
|
||||
VALUES('','{$this->type}','{$this->bezeichnung}','{$this->aktiv}','{$this->geloescht}','{$this->projekt}','{$this->netto}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE adresse_typ SET
|
||||
type='{$this->type}',
|
||||
bezeichnung='{$this->bezeichnung}',
|
||||
aktiv='{$this->aktiv}',
|
||||
geloescht='{$this->geloescht}',
|
||||
projekt='{$this->projekt}',
|
||||
netto='{$this->netto}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM adresse_typ WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->type="";
|
||||
$this->bezeichnung="";
|
||||
$this->aktiv="";
|
||||
$this->geloescht="";
|
||||
$this->projekt="";
|
||||
$this->netto="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetType($value) { $this->type=$value; }
|
||||
function GetType() { return $this->type; }
|
||||
function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
function GetBezeichnung() { return $this->bezeichnung; }
|
||||
function SetAktiv($value) { $this->aktiv=$value; }
|
||||
function GetAktiv() { return $this->aktiv; }
|
||||
function SetGeloescht($value) { $this->geloescht=$value; }
|
||||
function GetGeloescht() { return $this->geloescht; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetNetto($value) { $this->netto=$value; }
|
||||
function GetNetto() { return $this->netto; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,143 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenAktionscode_Liste
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $code;
|
||||
private $beschriftung;
|
||||
private $ausblenden;
|
||||
private $bemerkung;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM aktionscode_liste WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->code=$result[code];
|
||||
$this->beschriftung=$result[beschriftung];
|
||||
$this->ausblenden=$result[ausblenden];
|
||||
$this->bemerkung=$result[bemerkung];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO aktionscode_liste (id,code,beschriftung,ausblenden,bemerkung)
|
||||
VALUES('','{$this->code}','{$this->beschriftung}','{$this->ausblenden}','{$this->bemerkung}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE aktionscode_liste SET
|
||||
code='{$this->code}',
|
||||
beschriftung='{$this->beschriftung}',
|
||||
ausblenden='{$this->ausblenden}',
|
||||
bemerkung='{$this->bemerkung}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM aktionscode_liste WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->code="";
|
||||
$this->beschriftung="";
|
||||
$this->ausblenden="";
|
||||
$this->bemerkung="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetCode($value) { $this->code=$value; }
|
||||
function GetCode() { return $this->code; }
|
||||
function SetBeschriftung($value) { $this->beschriftung=$value; }
|
||||
function GetBeschriftung() { return $this->beschriftung; }
|
||||
function SetAusblenden($value) { $this->ausblenden=$value; }
|
||||
function GetAusblenden() { return $this->ausblenden; }
|
||||
function SetBemerkung($value) { $this->bemerkung=$value; }
|
||||
function GetBemerkung() { return $this->bemerkung; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,515 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenAnfrage
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $datum;
|
||||
private $projekt;
|
||||
private $belegnr;
|
||||
private $bearbeiter;
|
||||
private $auftrag;
|
||||
private $auftragid;
|
||||
private $freitext;
|
||||
private $status;
|
||||
private $adresse;
|
||||
private $mitarbeiter;
|
||||
private $name;
|
||||
private $abteilung;
|
||||
private $unterabteilung;
|
||||
private $strasse;
|
||||
private $adresszusatz;
|
||||
private $ansprechpartner;
|
||||
private $plz;
|
||||
private $ort;
|
||||
private $land;
|
||||
private $ustid;
|
||||
private $email;
|
||||
private $telefon;
|
||||
private $telefax;
|
||||
private $betreff;
|
||||
private $kundennummer;
|
||||
private $versandart;
|
||||
private $versand;
|
||||
private $firma;
|
||||
private $versendet;
|
||||
private $versendet_am;
|
||||
private $versendet_per;
|
||||
private $versendet_durch;
|
||||
private $inbearbeitung_user;
|
||||
private $logdatei;
|
||||
private $ohne_briefpapier;
|
||||
private $zuarchivieren;
|
||||
private $internebezeichnung;
|
||||
private $vertriebid;
|
||||
private $bearbeiterid;
|
||||
private $aktion;
|
||||
private $vertrieb;
|
||||
private $anschreiben;
|
||||
private $projektfiliale;
|
||||
private $usereditid;
|
||||
private $useredittimestamp;
|
||||
private $realrabatt;
|
||||
private $rabatt;
|
||||
private $rabatt1;
|
||||
private $rabatt2;
|
||||
private $rabatt3;
|
||||
private $rabatt4;
|
||||
private $rabatt5;
|
||||
private $steuersatz_normal;
|
||||
private $steuersatz_zwischen;
|
||||
private $steuersatz_ermaessigt;
|
||||
private $steuersatz_starkermaessigt;
|
||||
private $steuersatz_dienstleistung;
|
||||
private $waehrung;
|
||||
private $typ;
|
||||
private $schreibschutz;
|
||||
private $internebemerkung;
|
||||
private $sprache;
|
||||
private $bodyzusatz;
|
||||
private $lieferbedingung;
|
||||
private $titel;
|
||||
private $bundesstaat;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM anfrage WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->datum=$result['datum'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->belegnr=$result['belegnr'];
|
||||
$this->bearbeiter=$result['bearbeiter'];
|
||||
$this->auftrag=$result['auftrag'];
|
||||
$this->auftragid=$result['auftragid'];
|
||||
$this->freitext=$result['freitext'];
|
||||
$this->status=$result['status'];
|
||||
$this->adresse=$result['adresse'];
|
||||
$this->mitarbeiter=$result['mitarbeiter'];
|
||||
$this->name=$result['name'];
|
||||
$this->abteilung=$result['abteilung'];
|
||||
$this->unterabteilung=$result['unterabteilung'];
|
||||
$this->strasse=$result['strasse'];
|
||||
$this->adresszusatz=$result['adresszusatz'];
|
||||
$this->ansprechpartner=$result['ansprechpartner'];
|
||||
$this->plz=$result['plz'];
|
||||
$this->ort=$result['ort'];
|
||||
$this->land=$result['land'];
|
||||
$this->ustid=$result['ustid'];
|
||||
$this->email=$result['email'];
|
||||
$this->telefon=$result['telefon'];
|
||||
$this->telefax=$result['telefax'];
|
||||
$this->betreff=$result['betreff'];
|
||||
$this->kundennummer=$result['kundennummer'];
|
||||
$this->versandart=$result['versandart'];
|
||||
$this->versand=$result['versand'];
|
||||
$this->firma=$result['firma'];
|
||||
$this->versendet=$result['versendet'];
|
||||
$this->versendet_am=$result['versendet_am'];
|
||||
$this->versendet_per=$result['versendet_per'];
|
||||
$this->versendet_durch=$result['versendet_durch'];
|
||||
$this->inbearbeitung_user=$result['inbearbeitung_user'];
|
||||
$this->logdatei=$result['logdatei'];
|
||||
$this->ohne_briefpapier=$result['ohne_briefpapier'];
|
||||
$this->zuarchivieren=$result['zuarchivieren'];
|
||||
$this->internebezeichnung=$result['internebezeichnung'];
|
||||
$this->vertriebid=$result['vertriebid'];
|
||||
$this->bearbeiterid=$result['bearbeiterid'];
|
||||
$this->aktion=$result['aktion'];
|
||||
$this->vertrieb=$result['vertrieb'];
|
||||
$this->anschreiben=$result['anschreiben'];
|
||||
$this->projektfiliale=$result['projektfiliale'];
|
||||
$this->usereditid=$result['usereditid'];
|
||||
$this->useredittimestamp=$result['useredittimestamp'];
|
||||
$this->realrabatt=$result['realrabatt'];
|
||||
$this->rabatt=$result['rabatt'];
|
||||
$this->rabatt1=$result['rabatt1'];
|
||||
$this->rabatt2=$result['rabatt2'];
|
||||
$this->rabatt3=$result['rabatt3'];
|
||||
$this->rabatt4=$result['rabatt4'];
|
||||
$this->rabatt5=$result['rabatt5'];
|
||||
$this->steuersatz_normal=$result['steuersatz_normal'];
|
||||
$this->steuersatz_zwischen=$result['steuersatz_zwischen'];
|
||||
$this->steuersatz_ermaessigt=$result['steuersatz_ermaessigt'];
|
||||
$this->steuersatz_starkermaessigt=$result['steuersatz_starkermaessigt'];
|
||||
$this->steuersatz_dienstleistung=$result['steuersatz_dienstleistung'];
|
||||
$this->waehrung=$result['waehrung'];
|
||||
$this->typ=$result['typ'];
|
||||
$this->schreibschutz=$result['schreibschutz'];
|
||||
$this->internebemerkung=$result['internebemerkung'];
|
||||
$this->sprache=$result['sprache'];
|
||||
$this->bodyzusatz=$result['bodyzusatz'];
|
||||
$this->lieferbedingung=$result['lieferbedingung'];
|
||||
$this->titel=$result['titel'];
|
||||
$this->bundesstaat=$result['bundesstaat'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO anfrage (id,datum,projekt,belegnr,bearbeiter,auftrag,auftragid,freitext,status,adresse,mitarbeiter,name,abteilung,unterabteilung,strasse,adresszusatz,ansprechpartner,plz,ort,land,ustid,email,telefon,telefax,betreff,kundennummer,versandart,versand,firma,versendet,versendet_am,versendet_per,versendet_durch,inbearbeitung_user,logdatei,ohne_briefpapier,zuarchivieren,internebezeichnung,vertriebid,bearbeiterid,aktion,vertrieb,anschreiben,projektfiliale,usereditid,useredittimestamp,realrabatt,rabatt,rabatt1,rabatt2,rabatt3,rabatt4,rabatt5,steuersatz_normal,steuersatz_zwischen,steuersatz_ermaessigt,steuersatz_starkermaessigt,steuersatz_dienstleistung,waehrung,typ,schreibschutz,internebemerkung,sprache,bodyzusatz,lieferbedingung,titel,bundesstaat)
|
||||
VALUES('','{$this->datum}','{$this->projekt}','{$this->belegnr}','{$this->bearbeiter}','{$this->auftrag}','{$this->auftragid}','{$this->freitext}','{$this->status}','{$this->adresse}','{$this->mitarbeiter}','{$this->name}','{$this->abteilung}','{$this->unterabteilung}','{$this->strasse}','{$this->adresszusatz}','{$this->ansprechpartner}','{$this->plz}','{$this->ort}','{$this->land}','{$this->ustid}','{$this->email}','{$this->telefon}','{$this->telefax}','{$this->betreff}','{$this->kundennummer}','{$this->versandart}','{$this->versand}','{$this->firma}','{$this->versendet}','{$this->versendet_am}','{$this->versendet_per}','{$this->versendet_durch}','{$this->inbearbeitung_user}','{$this->logdatei}','{$this->ohne_briefpapier}','{$this->zuarchivieren}','{$this->internebezeichnung}','{$this->vertriebid}','{$this->bearbeiterid}','{$this->aktion}','{$this->vertrieb}','{$this->anschreiben}','{$this->projektfiliale}','{$this->usereditid}','{$this->useredittimestamp}','{$this->realrabatt}','{$this->rabatt}','{$this->rabatt1}','{$this->rabatt2}','{$this->rabatt3}','{$this->rabatt4}','{$this->rabatt5}','{$this->steuersatz_normal}','{$this->steuersatz_zwischen}','{$this->steuersatz_ermaessigt}','{$this->steuersatz_starkermaessigt}','{$this->steuersatz_dienstleistung}','{$this->waehrung}','{$this->typ}','{$this->schreibschutz}','{$this->internebemerkung}','{$this->sprache}','{$this->bodyzusatz}','{$this->lieferbedingung}','{$this->titel}','{$this->bundesstaat}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE anfrage SET
|
||||
datum='{$this->datum}',
|
||||
projekt='{$this->projekt}',
|
||||
belegnr='{$this->belegnr}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
auftrag='{$this->auftrag}',
|
||||
auftragid='{$this->auftragid}',
|
||||
freitext='{$this->freitext}',
|
||||
status='{$this->status}',
|
||||
adresse='{$this->adresse}',
|
||||
mitarbeiter='{$this->mitarbeiter}',
|
||||
name='{$this->name}',
|
||||
abteilung='{$this->abteilung}',
|
||||
unterabteilung='{$this->unterabteilung}',
|
||||
strasse='{$this->strasse}',
|
||||
adresszusatz='{$this->adresszusatz}',
|
||||
ansprechpartner='{$this->ansprechpartner}',
|
||||
plz='{$this->plz}',
|
||||
ort='{$this->ort}',
|
||||
land='{$this->land}',
|
||||
ustid='{$this->ustid}',
|
||||
email='{$this->email}',
|
||||
telefon='{$this->telefon}',
|
||||
telefax='{$this->telefax}',
|
||||
betreff='{$this->betreff}',
|
||||
kundennummer='{$this->kundennummer}',
|
||||
versandart='{$this->versandart}',
|
||||
versand='{$this->versand}',
|
||||
firma='{$this->firma}',
|
||||
versendet='{$this->versendet}',
|
||||
versendet_am='{$this->versendet_am}',
|
||||
versendet_per='{$this->versendet_per}',
|
||||
versendet_durch='{$this->versendet_durch}',
|
||||
inbearbeitung_user='{$this->inbearbeitung_user}',
|
||||
logdatei='{$this->logdatei}',
|
||||
ohne_briefpapier='{$this->ohne_briefpapier}',
|
||||
zuarchivieren='{$this->zuarchivieren}',
|
||||
internebezeichnung='{$this->internebezeichnung}',
|
||||
vertriebid='{$this->vertriebid}',
|
||||
bearbeiterid='{$this->bearbeiterid}',
|
||||
aktion='{$this->aktion}',
|
||||
vertrieb='{$this->vertrieb}',
|
||||
anschreiben='{$this->anschreiben}',
|
||||
projektfiliale='{$this->projektfiliale}',
|
||||
usereditid='{$this->usereditid}',
|
||||
useredittimestamp='{$this->useredittimestamp}',
|
||||
realrabatt='{$this->realrabatt}',
|
||||
rabatt='{$this->rabatt}',
|
||||
rabatt1='{$this->rabatt1}',
|
||||
rabatt2='{$this->rabatt2}',
|
||||
rabatt3='{$this->rabatt3}',
|
||||
rabatt4='{$this->rabatt4}',
|
||||
rabatt5='{$this->rabatt5}',
|
||||
steuersatz_normal='{$this->steuersatz_normal}',
|
||||
steuersatz_zwischen='{$this->steuersatz_zwischen}',
|
||||
steuersatz_ermaessigt='{$this->steuersatz_ermaessigt}',
|
||||
steuersatz_starkermaessigt='{$this->steuersatz_starkermaessigt}',
|
||||
steuersatz_dienstleistung='{$this->steuersatz_dienstleistung}',
|
||||
waehrung='{$this->waehrung}',
|
||||
typ='{$this->typ}',
|
||||
schreibschutz='{$this->schreibschutz}',
|
||||
internebemerkung='{$this->internebemerkung}',
|
||||
sprache='{$this->sprache}',
|
||||
bodyzusatz='{$this->bodyzusatz}',
|
||||
lieferbedingung='{$this->lieferbedingung}',
|
||||
titel='{$this->titel}',
|
||||
bundesstaat='{$this->bundesstaat}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM anfrage WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->datum="";
|
||||
$this->projekt="";
|
||||
$this->belegnr="";
|
||||
$this->bearbeiter="";
|
||||
$this->auftrag="";
|
||||
$this->auftragid="";
|
||||
$this->freitext="";
|
||||
$this->status="";
|
||||
$this->adresse="";
|
||||
$this->mitarbeiter="";
|
||||
$this->name="";
|
||||
$this->abteilung="";
|
||||
$this->unterabteilung="";
|
||||
$this->strasse="";
|
||||
$this->adresszusatz="";
|
||||
$this->ansprechpartner="";
|
||||
$this->plz="";
|
||||
$this->ort="";
|
||||
$this->land="";
|
||||
$this->ustid="";
|
||||
$this->email="";
|
||||
$this->telefon="";
|
||||
$this->telefax="";
|
||||
$this->betreff="";
|
||||
$this->kundennummer="";
|
||||
$this->versandart="";
|
||||
$this->versand="";
|
||||
$this->firma="";
|
||||
$this->versendet="";
|
||||
$this->versendet_am="";
|
||||
$this->versendet_per="";
|
||||
$this->versendet_durch="";
|
||||
$this->inbearbeitung_user="";
|
||||
$this->logdatei="";
|
||||
$this->ohne_briefpapier="";
|
||||
$this->zuarchivieren="";
|
||||
$this->internebezeichnung="";
|
||||
$this->vertriebid="";
|
||||
$this->bearbeiterid="";
|
||||
$this->aktion="";
|
||||
$this->vertrieb="";
|
||||
$this->anschreiben="";
|
||||
$this->projektfiliale="";
|
||||
$this->usereditid="";
|
||||
$this->useredittimestamp="";
|
||||
$this->realrabatt="";
|
||||
$this->rabatt="";
|
||||
$this->rabatt1="";
|
||||
$this->rabatt2="";
|
||||
$this->rabatt3="";
|
||||
$this->rabatt4="";
|
||||
$this->rabatt5="";
|
||||
$this->steuersatz_normal="";
|
||||
$this->steuersatz_zwischen="";
|
||||
$this->steuersatz_ermaessigt="";
|
||||
$this->steuersatz_starkermaessigt="";
|
||||
$this->steuersatz_dienstleistung="";
|
||||
$this->waehrung="";
|
||||
$this->typ="";
|
||||
$this->schreibschutz="";
|
||||
$this->internebemerkung="";
|
||||
$this->sprache="";
|
||||
$this->bodyzusatz="";
|
||||
$this->lieferbedingung="";
|
||||
$this->titel="";
|
||||
$this->bundesstaat="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetDatum($value) { $this->datum=$value; }
|
||||
function GetDatum() { return $this->datum; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetBelegnr($value) { $this->belegnr=$value; }
|
||||
function GetBelegnr() { return $this->belegnr; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetAuftrag($value) { $this->auftrag=$value; }
|
||||
function GetAuftrag() { return $this->auftrag; }
|
||||
function SetAuftragid($value) { $this->auftragid=$value; }
|
||||
function GetAuftragid() { return $this->auftragid; }
|
||||
function SetFreitext($value) { $this->freitext=$value; }
|
||||
function GetFreitext() { return $this->freitext; }
|
||||
function SetStatus($value) { $this->status=$value; }
|
||||
function GetStatus() { return $this->status; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetMitarbeiter($value) { $this->mitarbeiter=$value; }
|
||||
function GetMitarbeiter() { return $this->mitarbeiter; }
|
||||
function SetName($value) { $this->name=$value; }
|
||||
function GetName() { return $this->name; }
|
||||
function SetAbteilung($value) { $this->abteilung=$value; }
|
||||
function GetAbteilung() { return $this->abteilung; }
|
||||
function SetUnterabteilung($value) { $this->unterabteilung=$value; }
|
||||
function GetUnterabteilung() { return $this->unterabteilung; }
|
||||
function SetStrasse($value) { $this->strasse=$value; }
|
||||
function GetStrasse() { return $this->strasse; }
|
||||
function SetAdresszusatz($value) { $this->adresszusatz=$value; }
|
||||
function GetAdresszusatz() { return $this->adresszusatz; }
|
||||
function SetAnsprechpartner($value) { $this->ansprechpartner=$value; }
|
||||
function GetAnsprechpartner() { return $this->ansprechpartner; }
|
||||
function SetPlz($value) { $this->plz=$value; }
|
||||
function GetPlz() { return $this->plz; }
|
||||
function SetOrt($value) { $this->ort=$value; }
|
||||
function GetOrt() { return $this->ort; }
|
||||
function SetLand($value) { $this->land=$value; }
|
||||
function GetLand() { return $this->land; }
|
||||
function SetUstid($value) { $this->ustid=$value; }
|
||||
function GetUstid() { return $this->ustid; }
|
||||
function SetEmail($value) { $this->email=$value; }
|
||||
function GetEmail() { return $this->email; }
|
||||
function SetTelefon($value) { $this->telefon=$value; }
|
||||
function GetTelefon() { return $this->telefon; }
|
||||
function SetTelefax($value) { $this->telefax=$value; }
|
||||
function GetTelefax() { return $this->telefax; }
|
||||
function SetBetreff($value) { $this->betreff=$value; }
|
||||
function GetBetreff() { return $this->betreff; }
|
||||
function SetKundennummer($value) { $this->kundennummer=$value; }
|
||||
function GetKundennummer() { return $this->kundennummer; }
|
||||
function SetVersandart($value) { $this->versandart=$value; }
|
||||
function GetVersandart() { return $this->versandart; }
|
||||
function SetVersand($value) { $this->versand=$value; }
|
||||
function GetVersand() { return $this->versand; }
|
||||
function SetFirma($value) { $this->firma=$value; }
|
||||
function GetFirma() { return $this->firma; }
|
||||
function SetVersendet($value) { $this->versendet=$value; }
|
||||
function GetVersendet() { return $this->versendet; }
|
||||
function SetVersendet_Am($value) { $this->versendet_am=$value; }
|
||||
function GetVersendet_Am() { return $this->versendet_am; }
|
||||
function SetVersendet_Per($value) { $this->versendet_per=$value; }
|
||||
function GetVersendet_Per() { return $this->versendet_per; }
|
||||
function SetVersendet_Durch($value) { $this->versendet_durch=$value; }
|
||||
function GetVersendet_Durch() { return $this->versendet_durch; }
|
||||
function SetInbearbeitung_User($value) { $this->inbearbeitung_user=$value; }
|
||||
function GetInbearbeitung_User() { return $this->inbearbeitung_user; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
function SetOhne_Briefpapier($value) { $this->ohne_briefpapier=$value; }
|
||||
function GetOhne_Briefpapier() { return $this->ohne_briefpapier; }
|
||||
function SetZuarchivieren($value) { $this->zuarchivieren=$value; }
|
||||
function GetZuarchivieren() { return $this->zuarchivieren; }
|
||||
function SetInternebezeichnung($value) { $this->internebezeichnung=$value; }
|
||||
function GetInternebezeichnung() { return $this->internebezeichnung; }
|
||||
function SetVertriebid($value) { $this->vertriebid=$value; }
|
||||
function GetVertriebid() { return $this->vertriebid; }
|
||||
function SetBearbeiterid($value) { $this->bearbeiterid=$value; }
|
||||
function GetBearbeiterid() { return $this->bearbeiterid; }
|
||||
function SetAktion($value) { $this->aktion=$value; }
|
||||
function GetAktion() { return $this->aktion; }
|
||||
function SetVertrieb($value) { $this->vertrieb=$value; }
|
||||
function GetVertrieb() { return $this->vertrieb; }
|
||||
function SetAnschreiben($value) { $this->anschreiben=$value; }
|
||||
function GetAnschreiben() { return $this->anschreiben; }
|
||||
function SetProjektfiliale($value) { $this->projektfiliale=$value; }
|
||||
function GetProjektfiliale() { return $this->projektfiliale; }
|
||||
function SetUsereditid($value) { $this->usereditid=$value; }
|
||||
function GetUsereditid() { return $this->usereditid; }
|
||||
function SetUseredittimestamp($value) { $this->useredittimestamp=$value; }
|
||||
function GetUseredittimestamp() { return $this->useredittimestamp; }
|
||||
function SetRealrabatt($value) { $this->realrabatt=$value; }
|
||||
function GetRealrabatt() { return $this->realrabatt; }
|
||||
function SetRabatt($value) { $this->rabatt=$value; }
|
||||
function GetRabatt() { return $this->rabatt; }
|
||||
function SetRabatt1($value) { $this->rabatt1=$value; }
|
||||
function GetRabatt1() { return $this->rabatt1; }
|
||||
function SetRabatt2($value) { $this->rabatt2=$value; }
|
||||
function GetRabatt2() { return $this->rabatt2; }
|
||||
function SetRabatt3($value) { $this->rabatt3=$value; }
|
||||
function GetRabatt3() { return $this->rabatt3; }
|
||||
function SetRabatt4($value) { $this->rabatt4=$value; }
|
||||
function GetRabatt4() { return $this->rabatt4; }
|
||||
function SetRabatt5($value) { $this->rabatt5=$value; }
|
||||
function GetRabatt5() { return $this->rabatt5; }
|
||||
function SetSteuersatz_Normal($value) { $this->steuersatz_normal=$value; }
|
||||
function GetSteuersatz_Normal() { return $this->steuersatz_normal; }
|
||||
function SetSteuersatz_Zwischen($value) { $this->steuersatz_zwischen=$value; }
|
||||
function GetSteuersatz_Zwischen() { return $this->steuersatz_zwischen; }
|
||||
function SetSteuersatz_Ermaessigt($value) { $this->steuersatz_ermaessigt=$value; }
|
||||
function GetSteuersatz_Ermaessigt() { return $this->steuersatz_ermaessigt; }
|
||||
function SetSteuersatz_Starkermaessigt($value) { $this->steuersatz_starkermaessigt=$value; }
|
||||
function GetSteuersatz_Starkermaessigt() { return $this->steuersatz_starkermaessigt; }
|
||||
function SetSteuersatz_Dienstleistung($value) { $this->steuersatz_dienstleistung=$value; }
|
||||
function GetSteuersatz_Dienstleistung() { return $this->steuersatz_dienstleistung; }
|
||||
function SetWaehrung($value) { $this->waehrung=$value; }
|
||||
function GetWaehrung() { return $this->waehrung; }
|
||||
function SetTyp($value) { $this->typ=$value; }
|
||||
function GetTyp() { return $this->typ; }
|
||||
function SetSchreibschutz($value) { $this->schreibschutz=$value; }
|
||||
function GetSchreibschutz() { return $this->schreibschutz; }
|
||||
function SetInternebemerkung($value) { $this->internebemerkung=$value; }
|
||||
function GetInternebemerkung() { return $this->internebemerkung; }
|
||||
function SetSprache($value) { $this->sprache=$value; }
|
||||
function GetSprache() { return $this->sprache; }
|
||||
function SetBodyzusatz($value) { $this->bodyzusatz=$value; }
|
||||
function GetBodyzusatz() { return $this->bodyzusatz; }
|
||||
function SetLieferbedingung($value) { $this->lieferbedingung=$value; }
|
||||
function GetLieferbedingung() { return $this->lieferbedingung; }
|
||||
function SetTitel($value) { $this->titel=$value; }
|
||||
function GetTitel() { return $this->titel; }
|
||||
function SetBundesstaat($value) { $this->bundesstaat=$value; }
|
||||
function GetBundesstaat() { return $this->bundesstaat; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,341 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenAnfrage_Position
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $anfrage;
|
||||
private $artikel;
|
||||
private $projekt;
|
||||
private $nummer;
|
||||
private $bezeichnung;
|
||||
private $beschreibung;
|
||||
private $internerkommentar;
|
||||
private $menge;
|
||||
private $sort;
|
||||
private $bemerkung;
|
||||
private $preis;
|
||||
private $logdatei;
|
||||
private $steuersatz;
|
||||
private $steuertext;
|
||||
private $grundrabatt;
|
||||
private $rabattsync;
|
||||
private $rabatt1;
|
||||
private $rabatt2;
|
||||
private $rabatt3;
|
||||
private $rabatt4;
|
||||
private $rabatt5;
|
||||
private $freifeld1;
|
||||
private $freifeld2;
|
||||
private $freifeld3;
|
||||
private $freifeld4;
|
||||
private $freifeld5;
|
||||
private $freifeld6;
|
||||
private $freifeld7;
|
||||
private $freifeld8;
|
||||
private $freifeld9;
|
||||
private $freifeld10;
|
||||
private $geliefert;
|
||||
private $vpe;
|
||||
private $einheit;
|
||||
private $lieferdatum;
|
||||
private $lieferdatumkw;
|
||||
private $erloese;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM anfrage_position WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->anfrage=$result['anfrage'];
|
||||
$this->artikel=$result['artikel'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->nummer=$result['nummer'];
|
||||
$this->bezeichnung=$result['bezeichnung'];
|
||||
$this->beschreibung=$result['beschreibung'];
|
||||
$this->internerkommentar=$result['internerkommentar'];
|
||||
$this->menge=$result['menge'];
|
||||
$this->sort=$result['sort'];
|
||||
$this->bemerkung=$result['bemerkung'];
|
||||
$this->preis=$result['preis'];
|
||||
$this->logdatei=$result['logdatei'];
|
||||
$this->steuersatz=$result['steuersatz'];
|
||||
$this->steuertext=$result['steuertext'];
|
||||
$this->grundrabatt=$result['grundrabatt'];
|
||||
$this->rabattsync=$result['rabattsync'];
|
||||
$this->rabatt1=$result['rabatt1'];
|
||||
$this->rabatt2=$result['rabatt2'];
|
||||
$this->rabatt3=$result['rabatt3'];
|
||||
$this->rabatt4=$result['rabatt4'];
|
||||
$this->rabatt5=$result['rabatt5'];
|
||||
$this->freifeld1=$result['freifeld1'];
|
||||
$this->freifeld2=$result['freifeld2'];
|
||||
$this->freifeld3=$result['freifeld3'];
|
||||
$this->freifeld4=$result['freifeld4'];
|
||||
$this->freifeld5=$result['freifeld5'];
|
||||
$this->freifeld6=$result['freifeld6'];
|
||||
$this->freifeld7=$result['freifeld7'];
|
||||
$this->freifeld8=$result['freifeld8'];
|
||||
$this->freifeld9=$result['freifeld9'];
|
||||
$this->freifeld10=$result['freifeld10'];
|
||||
$this->geliefert=$result['geliefert'];
|
||||
$this->vpe=$result['vpe'];
|
||||
$this->einheit=$result['einheit'];
|
||||
$this->lieferdatum=$result['lieferdatum'];
|
||||
$this->lieferdatumkw=$result['lieferdatumkw'];
|
||||
$this->erloese=$result['erloese'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO anfrage_position (id,anfrage,artikel,projekt,nummer,bezeichnung,beschreibung,internerkommentar,menge,sort,bemerkung,preis,logdatei,steuersatz,steuertext,grundrabatt,rabattsync,rabatt1,rabatt2,rabatt3,rabatt4,rabatt5,freifeld1,freifeld2,freifeld3,freifeld4,freifeld5,freifeld6,freifeld7,freifeld8,freifeld9,freifeld10,geliefert,vpe,einheit,lieferdatum,lieferdatumkw,erloese)
|
||||
VALUES('','{$this->anfrage}','{$this->artikel}','{$this->projekt}','{$this->nummer}','{$this->bezeichnung}','{$this->beschreibung}','{$this->internerkommentar}','{$this->menge}','{$this->sort}','{$this->bemerkung}','{$this->preis}','{$this->logdatei}','{$this->steuersatz}','{$this->steuertext}','{$this->grundrabatt}','{$this->rabattsync}','{$this->rabatt1}','{$this->rabatt2}','{$this->rabatt3}','{$this->rabatt4}','{$this->rabatt5}','{$this->freifeld1}','{$this->freifeld2}','{$this->freifeld3}','{$this->freifeld4}','{$this->freifeld5}','{$this->freifeld6}','{$this->freifeld7}','{$this->freifeld8}','{$this->freifeld9}','{$this->freifeld10}','{$this->geliefert}','{$this->vpe}','{$this->einheit}','{$this->lieferdatum}','{$this->lieferdatumkw}','{$this->erloese}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE anfrage_position SET
|
||||
anfrage='{$this->anfrage}',
|
||||
artikel='{$this->artikel}',
|
||||
projekt='{$this->projekt}',
|
||||
nummer='{$this->nummer}',
|
||||
bezeichnung='{$this->bezeichnung}',
|
||||
beschreibung='{$this->beschreibung}',
|
||||
internerkommentar='{$this->internerkommentar}',
|
||||
menge='{$this->menge}',
|
||||
sort='{$this->sort}',
|
||||
bemerkung='{$this->bemerkung}',
|
||||
preis='{$this->preis}',
|
||||
logdatei='{$this->logdatei}',
|
||||
steuersatz='{$this->steuersatz}',
|
||||
steuertext='{$this->steuertext}',
|
||||
grundrabatt='{$this->grundrabatt}',
|
||||
rabattsync='{$this->rabattsync}',
|
||||
rabatt1='{$this->rabatt1}',
|
||||
rabatt2='{$this->rabatt2}',
|
||||
rabatt3='{$this->rabatt3}',
|
||||
rabatt4='{$this->rabatt4}',
|
||||
rabatt5='{$this->rabatt5}',
|
||||
freifeld1='{$this->freifeld1}',
|
||||
freifeld2='{$this->freifeld2}',
|
||||
freifeld3='{$this->freifeld3}',
|
||||
freifeld4='{$this->freifeld4}',
|
||||
freifeld5='{$this->freifeld5}',
|
||||
freifeld6='{$this->freifeld6}',
|
||||
freifeld7='{$this->freifeld7}',
|
||||
freifeld8='{$this->freifeld8}',
|
||||
freifeld9='{$this->freifeld9}',
|
||||
freifeld10='{$this->freifeld10}',
|
||||
geliefert='{$this->geliefert}',
|
||||
vpe='{$this->vpe}',
|
||||
einheit='{$this->einheit}',
|
||||
lieferdatum='{$this->lieferdatum}',
|
||||
lieferdatumkw='{$this->lieferdatumkw}',
|
||||
erloese='{$this->erloese}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM anfrage_position WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->anfrage="";
|
||||
$this->artikel="";
|
||||
$this->projekt="";
|
||||
$this->nummer="";
|
||||
$this->bezeichnung="";
|
||||
$this->beschreibung="";
|
||||
$this->internerkommentar="";
|
||||
$this->menge="";
|
||||
$this->sort="";
|
||||
$this->bemerkung="";
|
||||
$this->preis="";
|
||||
$this->logdatei="";
|
||||
$this->steuersatz="";
|
||||
$this->steuertext="";
|
||||
$this->grundrabatt="";
|
||||
$this->rabattsync="";
|
||||
$this->rabatt1="";
|
||||
$this->rabatt2="";
|
||||
$this->rabatt3="";
|
||||
$this->rabatt4="";
|
||||
$this->rabatt5="";
|
||||
$this->freifeld1="";
|
||||
$this->freifeld2="";
|
||||
$this->freifeld3="";
|
||||
$this->freifeld4="";
|
||||
$this->freifeld5="";
|
||||
$this->freifeld6="";
|
||||
$this->freifeld7="";
|
||||
$this->freifeld8="";
|
||||
$this->freifeld9="";
|
||||
$this->freifeld10="";
|
||||
$this->geliefert="";
|
||||
$this->vpe="";
|
||||
$this->einheit="";
|
||||
$this->lieferdatum="";
|
||||
$this->lieferdatumkw="";
|
||||
$this->erloese="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetAnfrage($value) { $this->anfrage=$value; }
|
||||
function GetAnfrage() { return $this->anfrage; }
|
||||
function SetArtikel($value) { $this->artikel=$value; }
|
||||
function GetArtikel() { return $this->artikel; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetNummer($value) { $this->nummer=$value; }
|
||||
function GetNummer() { return $this->nummer; }
|
||||
function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
function GetBezeichnung() { return $this->bezeichnung; }
|
||||
function SetBeschreibung($value) { $this->beschreibung=$value; }
|
||||
function GetBeschreibung() { return $this->beschreibung; }
|
||||
function SetInternerkommentar($value) { $this->internerkommentar=$value; }
|
||||
function GetInternerkommentar() { return $this->internerkommentar; }
|
||||
function SetMenge($value) { $this->menge=$value; }
|
||||
function GetMenge() { return $this->menge; }
|
||||
function SetSort($value) { $this->sort=$value; }
|
||||
function GetSort() { return $this->sort; }
|
||||
function SetBemerkung($value) { $this->bemerkung=$value; }
|
||||
function GetBemerkung() { return $this->bemerkung; }
|
||||
function SetPreis($value) { $this->preis=$value; }
|
||||
function GetPreis() { return $this->preis; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
function SetSteuersatz($value) { $this->steuersatz=$value; }
|
||||
function GetSteuersatz() { return $this->steuersatz; }
|
||||
function SetSteuertext($value) { $this->steuertext=$value; }
|
||||
function GetSteuertext() { return $this->steuertext; }
|
||||
function SetGrundrabatt($value) { $this->grundrabatt=$value; }
|
||||
function GetGrundrabatt() { return $this->grundrabatt; }
|
||||
function SetRabattsync($value) { $this->rabattsync=$value; }
|
||||
function GetRabattsync() { return $this->rabattsync; }
|
||||
function SetRabatt1($value) { $this->rabatt1=$value; }
|
||||
function GetRabatt1() { return $this->rabatt1; }
|
||||
function SetRabatt2($value) { $this->rabatt2=$value; }
|
||||
function GetRabatt2() { return $this->rabatt2; }
|
||||
function SetRabatt3($value) { $this->rabatt3=$value; }
|
||||
function GetRabatt3() { return $this->rabatt3; }
|
||||
function SetRabatt4($value) { $this->rabatt4=$value; }
|
||||
function GetRabatt4() { return $this->rabatt4; }
|
||||
function SetRabatt5($value) { $this->rabatt5=$value; }
|
||||
function GetRabatt5() { return $this->rabatt5; }
|
||||
function SetFreifeld1($value) { $this->freifeld1=$value; }
|
||||
function GetFreifeld1() { return $this->freifeld1; }
|
||||
function SetFreifeld2($value) { $this->freifeld2=$value; }
|
||||
function GetFreifeld2() { return $this->freifeld2; }
|
||||
function SetFreifeld3($value) { $this->freifeld3=$value; }
|
||||
function GetFreifeld3() { return $this->freifeld3; }
|
||||
function SetFreifeld4($value) { $this->freifeld4=$value; }
|
||||
function GetFreifeld4() { return $this->freifeld4; }
|
||||
function SetFreifeld5($value) { $this->freifeld5=$value; }
|
||||
function GetFreifeld5() { return $this->freifeld5; }
|
||||
function SetFreifeld6($value) { $this->freifeld6=$value; }
|
||||
function GetFreifeld6() { return $this->freifeld6; }
|
||||
function SetFreifeld7($value) { $this->freifeld7=$value; }
|
||||
function GetFreifeld7() { return $this->freifeld7; }
|
||||
function SetFreifeld8($value) { $this->freifeld8=$value; }
|
||||
function GetFreifeld8() { return $this->freifeld8; }
|
||||
function SetFreifeld9($value) { $this->freifeld9=$value; }
|
||||
function GetFreifeld9() { return $this->freifeld9; }
|
||||
function SetFreifeld10($value) { $this->freifeld10=$value; }
|
||||
function GetFreifeld10() { return $this->freifeld10; }
|
||||
function SetGeliefert($value) { $this->geliefert=$value; }
|
||||
function GetGeliefert() { return $this->geliefert; }
|
||||
function SetVpe($value) { $this->vpe=$value; }
|
||||
function GetVpe() { return $this->vpe; }
|
||||
function SetEinheit($value) { $this->einheit=$value; }
|
||||
function GetEinheit() { return $this->einheit; }
|
||||
function SetLieferdatum($value) { $this->lieferdatum=$value; }
|
||||
function GetLieferdatum() { return $this->lieferdatum; }
|
||||
function SetLieferdatumkw($value) { $this->lieferdatumkw=$value; }
|
||||
function GetLieferdatumkw() { return $this->lieferdatumkw; }
|
||||
function SetErloese($value) { $this->erloese=$value; }
|
||||
function GetErloese() { return $this->erloese; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,730 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenAngebot_Position
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $angebot;
|
||||
private $artikel;
|
||||
private $projekt;
|
||||
private $bezeichnung;
|
||||
private $beschreibung;
|
||||
private $internerkommentar;
|
||||
private $nummer;
|
||||
private $menge;
|
||||
private $preis;
|
||||
private $waehrung;
|
||||
private $lieferdatum;
|
||||
private $vpe;
|
||||
private $sort;
|
||||
private $status;
|
||||
private $umsatzsteuer;
|
||||
private $bemerkung;
|
||||
private $geliefert;
|
||||
private $logdatei;
|
||||
private $punkte;
|
||||
private $bonuspunkte;
|
||||
private $mlmdirektpraemie;
|
||||
private $keinrabatterlaubt;
|
||||
private $grundrabatt;
|
||||
private $rabattsync;
|
||||
private $rabatt1;
|
||||
private $rabatt2;
|
||||
private $rabatt3;
|
||||
private $rabatt4;
|
||||
private $rabatt5;
|
||||
private $einheit;
|
||||
private $optional;
|
||||
private $rabatt;
|
||||
private $zolltarifnummer;
|
||||
private $herkunftsland;
|
||||
private $artikelnummerkunde;
|
||||
private $freifeld1;
|
||||
private $freifeld2;
|
||||
private $freifeld3;
|
||||
private $freifeld4;
|
||||
private $freifeld5;
|
||||
private $freifeld6;
|
||||
private $freifeld7;
|
||||
private $freifeld8;
|
||||
private $freifeld9;
|
||||
private $freifeld10;
|
||||
private $lieferdatumkw;
|
||||
private $teilprojekt;
|
||||
private $kostenstelle;
|
||||
private $steuersatz;
|
||||
private $steuertext;
|
||||
private $erloese;
|
||||
private $erloesefestschreiben;
|
||||
private $einkaufspreiswaehrung;
|
||||
private $einkaufspreis;
|
||||
private $einkaufspreisurspruenglich;
|
||||
private $einkaufspreisid;
|
||||
private $ekwaehrung;
|
||||
private $deckungsbeitrag;
|
||||
private $freifeld11;
|
||||
private $freifeld12;
|
||||
private $freifeld13;
|
||||
private $freifeld14;
|
||||
private $freifeld15;
|
||||
private $freifeld16;
|
||||
private $freifeld17;
|
||||
private $freifeld18;
|
||||
private $freifeld19;
|
||||
private $freifeld20;
|
||||
private $freifeld21;
|
||||
private $freifeld22;
|
||||
private $freifeld23;
|
||||
private $freifeld24;
|
||||
private $freifeld25;
|
||||
private $freifeld26;
|
||||
private $freifeld27;
|
||||
private $freifeld28;
|
||||
private $freifeld29;
|
||||
private $freifeld30;
|
||||
private $freifeld31;
|
||||
private $freifeld32;
|
||||
private $freifeld33;
|
||||
private $freifeld34;
|
||||
private $freifeld35;
|
||||
private $freifeld36;
|
||||
private $freifeld37;
|
||||
private $freifeld38;
|
||||
private $freifeld39;
|
||||
private $freifeld40;
|
||||
private $formelmenge;
|
||||
private $formelpreis;
|
||||
private $ohnepreis;
|
||||
private $textalternativpreis;
|
||||
private $skontobetrag;
|
||||
private $steuerbetrag;
|
||||
private $skontosperre;
|
||||
private $berechnen_aus_teile;
|
||||
private $ausblenden_im_pdf;
|
||||
private $explodiert_parent;
|
||||
private $umsatz_netto_einzeln;
|
||||
private $umsatz_netto_gesamt;
|
||||
private $umsatz_brutto_einzeln;
|
||||
private $umsatz_brutto_gesamt;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM `angebot_position` WHERE (`id` = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->angebot=$result['angebot'];
|
||||
$this->artikel=$result['artikel'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->bezeichnung=$result['bezeichnung'];
|
||||
$this->beschreibung=$result['beschreibung'];
|
||||
$this->internerkommentar=$result['internerkommentar'];
|
||||
$this->nummer=$result['nummer'];
|
||||
$this->menge=$result['menge'];
|
||||
$this->preis=$result['preis'];
|
||||
$this->waehrung=$result['waehrung'];
|
||||
$this->lieferdatum=$result['lieferdatum'];
|
||||
$this->vpe=$result['vpe'];
|
||||
$this->sort=$result['sort'];
|
||||
$this->status=$result['status'];
|
||||
$this->umsatzsteuer=$result['umsatzsteuer'];
|
||||
$this->bemerkung=$result['bemerkung'];
|
||||
$this->geliefert=$result['geliefert'];
|
||||
$this->logdatei=$result['logdatei'];
|
||||
$this->punkte=$result['punkte'];
|
||||
$this->bonuspunkte=$result['bonuspunkte'];
|
||||
$this->mlmdirektpraemie=$result['mlmdirektpraemie'];
|
||||
$this->keinrabatterlaubt=$result['keinrabatterlaubt'];
|
||||
$this->grundrabatt=$result['grundrabatt'];
|
||||
$this->rabattsync=$result['rabattsync'];
|
||||
$this->rabatt1=$result['rabatt1'];
|
||||
$this->rabatt2=$result['rabatt2'];
|
||||
$this->rabatt3=$result['rabatt3'];
|
||||
$this->rabatt4=$result['rabatt4'];
|
||||
$this->rabatt5=$result['rabatt5'];
|
||||
$this->einheit=$result['einheit'];
|
||||
$this->optional=$result['optional'];
|
||||
$this->rabatt=$result['rabatt'];
|
||||
$this->zolltarifnummer=$result['zolltarifnummer'];
|
||||
$this->herkunftsland=$result['herkunftsland'];
|
||||
$this->artikelnummerkunde=$result['artikelnummerkunde'];
|
||||
$this->freifeld1=$result['freifeld1'];
|
||||
$this->freifeld2=$result['freifeld2'];
|
||||
$this->freifeld3=$result['freifeld3'];
|
||||
$this->freifeld4=$result['freifeld4'];
|
||||
$this->freifeld5=$result['freifeld5'];
|
||||
$this->freifeld6=$result['freifeld6'];
|
||||
$this->freifeld7=$result['freifeld7'];
|
||||
$this->freifeld8=$result['freifeld8'];
|
||||
$this->freifeld9=$result['freifeld9'];
|
||||
$this->freifeld10=$result['freifeld10'];
|
||||
$this->lieferdatumkw=$result['lieferdatumkw'];
|
||||
$this->teilprojekt=$result['teilprojekt'];
|
||||
$this->kostenstelle=$result['kostenstelle'];
|
||||
$this->steuersatz=$result['steuersatz'];
|
||||
$this->steuertext=$result['steuertext'];
|
||||
$this->erloese=$result['erloese'];
|
||||
$this->erloesefestschreiben=$result['erloesefestschreiben'];
|
||||
$this->einkaufspreiswaehrung=$result['einkaufspreiswaehrung'];
|
||||
$this->einkaufspreis=$result['einkaufspreis'];
|
||||
$this->einkaufspreisurspruenglich=$result['einkaufspreisurspruenglich'];
|
||||
$this->einkaufspreisid=$result['einkaufspreisid'];
|
||||
$this->ekwaehrung=$result['ekwaehrung'];
|
||||
$this->deckungsbeitrag=$result['deckungsbeitrag'];
|
||||
$this->freifeld11=$result['freifeld11'];
|
||||
$this->freifeld12=$result['freifeld12'];
|
||||
$this->freifeld13=$result['freifeld13'];
|
||||
$this->freifeld14=$result['freifeld14'];
|
||||
$this->freifeld15=$result['freifeld15'];
|
||||
$this->freifeld16=$result['freifeld16'];
|
||||
$this->freifeld17=$result['freifeld17'];
|
||||
$this->freifeld18=$result['freifeld18'];
|
||||
$this->freifeld19=$result['freifeld19'];
|
||||
$this->freifeld20=$result['freifeld20'];
|
||||
$this->freifeld21=$result['freifeld21'];
|
||||
$this->freifeld22=$result['freifeld22'];
|
||||
$this->freifeld23=$result['freifeld23'];
|
||||
$this->freifeld24=$result['freifeld24'];
|
||||
$this->freifeld25=$result['freifeld25'];
|
||||
$this->freifeld26=$result['freifeld26'];
|
||||
$this->freifeld27=$result['freifeld27'];
|
||||
$this->freifeld28=$result['freifeld28'];
|
||||
$this->freifeld29=$result['freifeld29'];
|
||||
$this->freifeld30=$result['freifeld30'];
|
||||
$this->freifeld31=$result['freifeld31'];
|
||||
$this->freifeld32=$result['freifeld32'];
|
||||
$this->freifeld33=$result['freifeld33'];
|
||||
$this->freifeld34=$result['freifeld34'];
|
||||
$this->freifeld35=$result['freifeld35'];
|
||||
$this->freifeld36=$result['freifeld36'];
|
||||
$this->freifeld37=$result['freifeld37'];
|
||||
$this->freifeld38=$result['freifeld38'];
|
||||
$this->freifeld39=$result['freifeld39'];
|
||||
$this->freifeld40=$result['freifeld40'];
|
||||
$this->formelmenge=$result['formelmenge'];
|
||||
$this->formelpreis=$result['formelpreis'];
|
||||
$this->ohnepreis=$result['ohnepreis'];
|
||||
$this->textalternativpreis=$result['textalternativpreis'];
|
||||
$this->skontobetrag=$result['skontobetrag'];
|
||||
$this->steuerbetrag=$result['steuerbetrag'];
|
||||
$this->skontosperre=$result['skontosperre'];
|
||||
$this->berechnen_aus_teile=$result['berechnen_aus_teile'];
|
||||
$this->ausblenden_im_pdf=$result['ausblenden_im_pdf'];
|
||||
$this->explodiert_parent=$result['explodiert_parent'];
|
||||
$this->umsatz_netto_einzeln=$result['umsatz_netto_einzeln'];
|
||||
$this->umsatz_netto_gesamt=$result['umsatz_netto_gesamt'];
|
||||
$this->umsatz_brutto_einzeln=$result['umsatz_brutto_einzeln'];
|
||||
$this->umsatz_brutto_gesamt=$result['umsatz_brutto_gesamt'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO `angebot_position` (`id`,`angebot`,`artikel`,`projekt`,`bezeichnung`,`beschreibung`,`internerkommentar`,`nummer`,`menge`,`preis`,`waehrung`,`lieferdatum`,`vpe`,`sort`,`status`,`umsatzsteuer`,`bemerkung`,`geliefert`,`logdatei`,`punkte`,`bonuspunkte`,`mlmdirektpraemie`,`keinrabatterlaubt`,`grundrabatt`,`rabattsync`,`rabatt1`,`rabatt2`,`rabatt3`,`rabatt4`,`rabatt5`,`einheit`,`optional`,`rabatt`,`zolltarifnummer`,`herkunftsland`,`artikelnummerkunde`,`freifeld1`,`freifeld2`,`freifeld3`,`freifeld4`,`freifeld5`,`freifeld6`,`freifeld7`,`freifeld8`,`freifeld9`,`freifeld10`,`lieferdatumkw`,`teilprojekt`,`kostenstelle`,`steuersatz`,`steuertext`,`erloese`,`erloesefestschreiben`,`einkaufspreiswaehrung`,`einkaufspreis`,`einkaufspreisurspruenglich`,`einkaufspreisid`,`ekwaehrung`,`deckungsbeitrag`,`freifeld11`,`freifeld12`,`freifeld13`,`freifeld14`,`freifeld15`,`freifeld16`,`freifeld17`,`freifeld18`,`freifeld19`,`freifeld20`,`freifeld21`,`freifeld22`,`freifeld23`,`freifeld24`,`freifeld25`,`freifeld26`,`freifeld27`,`freifeld28`,`freifeld29`,`freifeld30`,`freifeld31`,`freifeld32`,`freifeld33`,`freifeld34`,`freifeld35`,`freifeld36`,`freifeld37`,`freifeld38`,`freifeld39`,`freifeld40`,`formelmenge`,`formelpreis`,`ohnepreis`,`textalternativpreis`,`skontobetrag`,`steuerbetrag`,`skontosperre`,`berechnen_aus_teile`,`ausblenden_im_pdf`,`explodiert_parent`,`umsatz_netto_einzeln`,`umsatz_netto_gesamt`,`umsatz_brutto_einzeln`,`umsatz_brutto_gesamt`)
|
||||
VALUES(NULL,'{$this->angebot}','{$this->artikel}','{$this->projekt}','{$this->bezeichnung}','{$this->beschreibung}','{$this->internerkommentar}','{$this->nummer}','{$this->menge}','{$this->preis}','{$this->waehrung}','{$this->lieferdatum}','{$this->vpe}','{$this->sort}','{$this->status}','{$this->umsatzsteuer}','{$this->bemerkung}','{$this->geliefert}','{$this->logdatei}','{$this->punkte}','{$this->bonuspunkte}','{$this->mlmdirektpraemie}','{$this->keinrabatterlaubt}','{$this->grundrabatt}','{$this->rabattsync}','{$this->rabatt1}','{$this->rabatt2}','{$this->rabatt3}','{$this->rabatt4}','{$this->rabatt5}','{$this->einheit}','{$this->optional}','{$this->rabatt}','{$this->zolltarifnummer}','{$this->herkunftsland}','{$this->artikelnummerkunde}','{$this->freifeld1}','{$this->freifeld2}','{$this->freifeld3}','{$this->freifeld4}','{$this->freifeld5}','{$this->freifeld6}','{$this->freifeld7}','{$this->freifeld8}','{$this->freifeld9}','{$this->freifeld10}','{$this->lieferdatumkw}','{$this->teilprojekt}','{$this->kostenstelle}','{$this->steuersatz}','{$this->steuertext}','{$this->erloese}','{$this->erloesefestschreiben}','{$this->einkaufspreiswaehrung}','{$this->einkaufspreis}','{$this->einkaufspreisurspruenglich}','{$this->einkaufspreisid}','{$this->ekwaehrung}','{$this->deckungsbeitrag}','{$this->freifeld11}','{$this->freifeld12}','{$this->freifeld13}','{$this->freifeld14}','{$this->freifeld15}','{$this->freifeld16}','{$this->freifeld17}','{$this->freifeld18}','{$this->freifeld19}','{$this->freifeld20}','{$this->freifeld21}','{$this->freifeld22}','{$this->freifeld23}','{$this->freifeld24}','{$this->freifeld25}','{$this->freifeld26}','{$this->freifeld27}','{$this->freifeld28}','{$this->freifeld29}','{$this->freifeld30}','{$this->freifeld31}','{$this->freifeld32}','{$this->freifeld33}','{$this->freifeld34}','{$this->freifeld35}','{$this->freifeld36}','{$this->freifeld37}','{$this->freifeld38}','{$this->freifeld39}','{$this->freifeld40}','{$this->formelmenge}','{$this->formelpreis}','{$this->ohnepreis}','{$this->textalternativpreis}','{$this->skontobetrag}','{$this->steuerbetrag}','{$this->skontosperre}','{$this->berechnen_aus_teile}','{$this->ausblenden_im_pdf}','{$this->explodiert_parent}','{$this->umsatz_netto_einzeln}','{$this->umsatz_netto_gesamt}','{$this->umsatz_brutto_einzeln}','{$this->umsatz_brutto_gesamt}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
$sql = "UPDATE `angebot_position` SET
|
||||
`angebot`='{$this->angebot}',
|
||||
`artikel`='{$this->artikel}',
|
||||
`projekt`='{$this->projekt}',
|
||||
`bezeichnung`='{$this->bezeichnung}',
|
||||
`beschreibung`='{$this->beschreibung}',
|
||||
`internerkommentar`='{$this->internerkommentar}',
|
||||
`nummer`='{$this->nummer}',
|
||||
`menge`='{$this->menge}',
|
||||
`preis`='{$this->preis}',
|
||||
`waehrung`='{$this->waehrung}',
|
||||
`lieferdatum`='{$this->lieferdatum}',
|
||||
`vpe`='{$this->vpe}',
|
||||
`sort`='{$this->sort}',
|
||||
`status`='{$this->status}',
|
||||
`umsatzsteuer`='{$this->umsatzsteuer}',
|
||||
`bemerkung`='{$this->bemerkung}',
|
||||
`geliefert`='{$this->geliefert}',
|
||||
`logdatei`='{$this->logdatei}',
|
||||
`punkte`='{$this->punkte}',
|
||||
`bonuspunkte`='{$this->bonuspunkte}',
|
||||
`mlmdirektpraemie`='{$this->mlmdirektpraemie}',
|
||||
`keinrabatterlaubt`='{$this->keinrabatterlaubt}',
|
||||
`grundrabatt`='{$this->grundrabatt}',
|
||||
`rabattsync`='{$this->rabattsync}',
|
||||
`rabatt1`='{$this->rabatt1}',
|
||||
`rabatt2`='{$this->rabatt2}',
|
||||
`rabatt3`='{$this->rabatt3}',
|
||||
`rabatt4`='{$this->rabatt4}',
|
||||
`rabatt5`='{$this->rabatt5}',
|
||||
`einheit`='{$this->einheit}',
|
||||
`optional`='{$this->optional}',
|
||||
`rabatt`='{$this->rabatt}',
|
||||
`zolltarifnummer`='{$this->zolltarifnummer}',
|
||||
`herkunftsland`='{$this->herkunftsland}',
|
||||
`artikelnummerkunde`='{$this->artikelnummerkunde}',
|
||||
`freifeld1`='{$this->freifeld1}',
|
||||
`freifeld2`='{$this->freifeld2}',
|
||||
`freifeld3`='{$this->freifeld3}',
|
||||
`freifeld4`='{$this->freifeld4}',
|
||||
`freifeld5`='{$this->freifeld5}',
|
||||
`freifeld6`='{$this->freifeld6}',
|
||||
`freifeld7`='{$this->freifeld7}',
|
||||
`freifeld8`='{$this->freifeld8}',
|
||||
`freifeld9`='{$this->freifeld9}',
|
||||
`freifeld10`='{$this->freifeld10}',
|
||||
`lieferdatumkw`='{$this->lieferdatumkw}',
|
||||
`teilprojekt`='{$this->teilprojekt}',
|
||||
`kostenstelle`='{$this->kostenstelle}',
|
||||
`steuersatz`='{$this->steuersatz}',
|
||||
`steuertext`='{$this->steuertext}',
|
||||
`erloese`='{$this->erloese}',
|
||||
`erloesefestschreiben`='{$this->erloesefestschreiben}',
|
||||
`einkaufspreiswaehrung`='{$this->einkaufspreiswaehrung}',
|
||||
`einkaufspreis`='{$this->einkaufspreis}',
|
||||
`einkaufspreisurspruenglich`='{$this->einkaufspreisurspruenglich}',
|
||||
`einkaufspreisid`='{$this->einkaufspreisid}',
|
||||
`ekwaehrung`='{$this->ekwaehrung}',
|
||||
`deckungsbeitrag`='{$this->deckungsbeitrag}',
|
||||
`freifeld11`='{$this->freifeld11}',
|
||||
`freifeld12`='{$this->freifeld12}',
|
||||
`freifeld13`='{$this->freifeld13}',
|
||||
`freifeld14`='{$this->freifeld14}',
|
||||
`freifeld15`='{$this->freifeld15}',
|
||||
`freifeld16`='{$this->freifeld16}',
|
||||
`freifeld17`='{$this->freifeld17}',
|
||||
`freifeld18`='{$this->freifeld18}',
|
||||
`freifeld19`='{$this->freifeld19}',
|
||||
`freifeld20`='{$this->freifeld20}',
|
||||
`freifeld21`='{$this->freifeld21}',
|
||||
`freifeld22`='{$this->freifeld22}',
|
||||
`freifeld23`='{$this->freifeld23}',
|
||||
`freifeld24`='{$this->freifeld24}',
|
||||
`freifeld25`='{$this->freifeld25}',
|
||||
`freifeld26`='{$this->freifeld26}',
|
||||
`freifeld27`='{$this->freifeld27}',
|
||||
`freifeld28`='{$this->freifeld28}',
|
||||
`freifeld29`='{$this->freifeld29}',
|
||||
`freifeld30`='{$this->freifeld30}',
|
||||
`freifeld31`='{$this->freifeld31}',
|
||||
`freifeld32`='{$this->freifeld32}',
|
||||
`freifeld33`='{$this->freifeld33}',
|
||||
`freifeld34`='{$this->freifeld34}',
|
||||
`freifeld35`='{$this->freifeld35}',
|
||||
`freifeld36`='{$this->freifeld36}',
|
||||
`freifeld37`='{$this->freifeld37}',
|
||||
`freifeld38`='{$this->freifeld38}',
|
||||
`freifeld39`='{$this->freifeld39}',
|
||||
`freifeld40`='{$this->freifeld40}',
|
||||
`formelmenge`='{$this->formelmenge}',
|
||||
`formelpreis`='{$this->formelpreis}',
|
||||
`ohnepreis`='{$this->ohnepreis}',
|
||||
`textalternativpreis`='{$this->textalternativpreis}',
|
||||
`skontobetrag`='{$this->skontobetrag}',
|
||||
`steuerbetrag`='{$this->steuerbetrag}',
|
||||
`skontosperre`='{$this->skontosperre}',
|
||||
`berechnen_aus_teile`='{$this->berechnen_aus_teile}',
|
||||
`ausblenden_im_pdf`='{$this->ausblenden_im_pdf}',
|
||||
`explodiert_parent`='{$this->explodiert_parent}',
|
||||
`umsatz_netto_einzeln`='{$this->umsatz_netto_einzeln}',
|
||||
`umsatz_netto_gesamt`='{$this->umsatz_netto_gesamt}',
|
||||
`umsatz_brutto_einzeln`='{$this->umsatz_brutto_einzeln}',
|
||||
`umsatz_brutto_gesamt`='{$this->umsatz_brutto_gesamt}'
|
||||
WHERE (`id`='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id='')
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM `angebot_position` WHERE (`id`='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id='';
|
||||
$this->angebot='';
|
||||
$this->artikel='';
|
||||
$this->projekt='';
|
||||
$this->bezeichnung='';
|
||||
$this->beschreibung='';
|
||||
$this->internerkommentar='';
|
||||
$this->nummer='';
|
||||
$this->menge='';
|
||||
$this->preis='';
|
||||
$this->waehrung='';
|
||||
$this->lieferdatum='';
|
||||
$this->vpe='';
|
||||
$this->sort='';
|
||||
$this->status='';
|
||||
$this->umsatzsteuer='';
|
||||
$this->bemerkung='';
|
||||
$this->geliefert='';
|
||||
$this->logdatei='';
|
||||
$this->punkte='';
|
||||
$this->bonuspunkte='';
|
||||
$this->mlmdirektpraemie='';
|
||||
$this->keinrabatterlaubt='';
|
||||
$this->grundrabatt='';
|
||||
$this->rabattsync='';
|
||||
$this->rabatt1='';
|
||||
$this->rabatt2='';
|
||||
$this->rabatt3='';
|
||||
$this->rabatt4='';
|
||||
$this->rabatt5='';
|
||||
$this->einheit='';
|
||||
$this->optional='';
|
||||
$this->rabatt='';
|
||||
$this->zolltarifnummer='';
|
||||
$this->herkunftsland='';
|
||||
$this->artikelnummerkunde='';
|
||||
$this->freifeld1='';
|
||||
$this->freifeld2='';
|
||||
$this->freifeld3='';
|
||||
$this->freifeld4='';
|
||||
$this->freifeld5='';
|
||||
$this->freifeld6='';
|
||||
$this->freifeld7='';
|
||||
$this->freifeld8='';
|
||||
$this->freifeld9='';
|
||||
$this->freifeld10='';
|
||||
$this->lieferdatumkw='';
|
||||
$this->teilprojekt='';
|
||||
$this->kostenstelle='';
|
||||
$this->steuersatz='';
|
||||
$this->steuertext='';
|
||||
$this->erloese='';
|
||||
$this->erloesefestschreiben='';
|
||||
$this->einkaufspreiswaehrung='';
|
||||
$this->einkaufspreis='';
|
||||
$this->einkaufspreisurspruenglich='';
|
||||
$this->einkaufspreisid='';
|
||||
$this->ekwaehrung='';
|
||||
$this->deckungsbeitrag='';
|
||||
$this->freifeld11='';
|
||||
$this->freifeld12='';
|
||||
$this->freifeld13='';
|
||||
$this->freifeld14='';
|
||||
$this->freifeld15='';
|
||||
$this->freifeld16='';
|
||||
$this->freifeld17='';
|
||||
$this->freifeld18='';
|
||||
$this->freifeld19='';
|
||||
$this->freifeld20='';
|
||||
$this->freifeld21='';
|
||||
$this->freifeld22='';
|
||||
$this->freifeld23='';
|
||||
$this->freifeld24='';
|
||||
$this->freifeld25='';
|
||||
$this->freifeld26='';
|
||||
$this->freifeld27='';
|
||||
$this->freifeld28='';
|
||||
$this->freifeld29='';
|
||||
$this->freifeld30='';
|
||||
$this->freifeld31='';
|
||||
$this->freifeld32='';
|
||||
$this->freifeld33='';
|
||||
$this->freifeld34='';
|
||||
$this->freifeld35='';
|
||||
$this->freifeld36='';
|
||||
$this->freifeld37='';
|
||||
$this->freifeld38='';
|
||||
$this->freifeld39='';
|
||||
$this->freifeld40='';
|
||||
$this->formelmenge='';
|
||||
$this->formelpreis='';
|
||||
$this->ohnepreis='';
|
||||
$this->textalternativpreis='';
|
||||
$this->skontobetrag='';
|
||||
$this->steuerbetrag='';
|
||||
$this->skontosperre='';
|
||||
$this->berechnen_aus_teile='';
|
||||
$this->ausblenden_im_pdf='';
|
||||
$this->explodiert_parent='';
|
||||
$this->umsatz_netto_einzeln='';
|
||||
$this->umsatz_netto_gesamt='';
|
||||
$this->umsatz_brutto_einzeln='';
|
||||
$this->umsatz_brutto_gesamt='';
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = '';
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
public function SetId($value) { $this->id=$value; }
|
||||
public function GetId() { return $this->id; }
|
||||
public function SetAngebot($value) { $this->angebot=$value; }
|
||||
public function GetAngebot() { return $this->angebot; }
|
||||
public function SetArtikel($value) { $this->artikel=$value; }
|
||||
public function GetArtikel() { return $this->artikel; }
|
||||
public function SetProjekt($value) { $this->projekt=$value; }
|
||||
public function GetProjekt() { return $this->projekt; }
|
||||
public function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
public function GetBezeichnung() { return $this->bezeichnung; }
|
||||
public function SetBeschreibung($value) { $this->beschreibung=$value; }
|
||||
public function GetBeschreibung() { return $this->beschreibung; }
|
||||
public function SetInternerkommentar($value) { $this->internerkommentar=$value; }
|
||||
public function GetInternerkommentar() { return $this->internerkommentar; }
|
||||
public function SetNummer($value) { $this->nummer=$value; }
|
||||
public function GetNummer() { return $this->nummer; }
|
||||
public function SetMenge($value) { $this->menge=$value; }
|
||||
public function GetMenge() { return $this->menge; }
|
||||
public function SetPreis($value) { $this->preis=$value; }
|
||||
public function GetPreis() { return $this->preis; }
|
||||
public function SetWaehrung($value) { $this->waehrung=$value; }
|
||||
public function GetWaehrung() { return $this->waehrung; }
|
||||
public function SetLieferdatum($value) { $this->lieferdatum=$value; }
|
||||
public function GetLieferdatum() { return $this->lieferdatum; }
|
||||
public function SetVpe($value) { $this->vpe=$value; }
|
||||
public function GetVpe() { return $this->vpe; }
|
||||
public function SetSort($value) { $this->sort=$value; }
|
||||
public function GetSort() { return $this->sort; }
|
||||
public function SetStatus($value) { $this->status=$value; }
|
||||
public function GetStatus() { return $this->status; }
|
||||
public function SetUmsatzsteuer($value) { $this->umsatzsteuer=$value; }
|
||||
public function GetUmsatzsteuer() { return $this->umsatzsteuer; }
|
||||
public function SetBemerkung($value) { $this->bemerkung=$value; }
|
||||
public function GetBemerkung() { return $this->bemerkung; }
|
||||
public function SetGeliefert($value) { $this->geliefert=$value; }
|
||||
public function GetGeliefert() { return $this->geliefert; }
|
||||
public function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
public function GetLogdatei() { return $this->logdatei; }
|
||||
public function SetPunkte($value) { $this->punkte=$value; }
|
||||
public function GetPunkte() { return $this->punkte; }
|
||||
public function SetBonuspunkte($value) { $this->bonuspunkte=$value; }
|
||||
public function GetBonuspunkte() { return $this->bonuspunkte; }
|
||||
public function SetMlmdirektpraemie($value) { $this->mlmdirektpraemie=$value; }
|
||||
public function GetMlmdirektpraemie() { return $this->mlmdirektpraemie; }
|
||||
public function SetKeinrabatterlaubt($value) { $this->keinrabatterlaubt=$value; }
|
||||
public function GetKeinrabatterlaubt() { return $this->keinrabatterlaubt; }
|
||||
public function SetGrundrabatt($value) { $this->grundrabatt=$value; }
|
||||
public function GetGrundrabatt() { return $this->grundrabatt; }
|
||||
public function SetRabattsync($value) { $this->rabattsync=$value; }
|
||||
public function GetRabattsync() { return $this->rabattsync; }
|
||||
public function SetRabatt1($value) { $this->rabatt1=$value; }
|
||||
public function GetRabatt1() { return $this->rabatt1; }
|
||||
public function SetRabatt2($value) { $this->rabatt2=$value; }
|
||||
public function GetRabatt2() { return $this->rabatt2; }
|
||||
public function SetRabatt3($value) { $this->rabatt3=$value; }
|
||||
public function GetRabatt3() { return $this->rabatt3; }
|
||||
public function SetRabatt4($value) { $this->rabatt4=$value; }
|
||||
public function GetRabatt4() { return $this->rabatt4; }
|
||||
public function SetRabatt5($value) { $this->rabatt5=$value; }
|
||||
public function GetRabatt5() { return $this->rabatt5; }
|
||||
public function SetEinheit($value) { $this->einheit=$value; }
|
||||
public function GetEinheit() { return $this->einheit; }
|
||||
public function SetOptional($value) { $this->optional=$value; }
|
||||
public function GetOptional() { return $this->optional; }
|
||||
public function SetRabatt($value) { $this->rabatt=$value; }
|
||||
public function GetRabatt() { return $this->rabatt; }
|
||||
public function SetZolltarifnummer($value) { $this->zolltarifnummer=$value; }
|
||||
public function GetZolltarifnummer() { return $this->zolltarifnummer; }
|
||||
public function SetHerkunftsland($value) { $this->herkunftsland=$value; }
|
||||
public function GetHerkunftsland() { return $this->herkunftsland; }
|
||||
public function SetArtikelnummerkunde($value) { $this->artikelnummerkunde=$value; }
|
||||
public function GetArtikelnummerkunde() { return $this->artikelnummerkunde; }
|
||||
public function SetFreifeld1($value) { $this->freifeld1=$value; }
|
||||
public function GetFreifeld1() { return $this->freifeld1; }
|
||||
public function SetFreifeld2($value) { $this->freifeld2=$value; }
|
||||
public function GetFreifeld2() { return $this->freifeld2; }
|
||||
public function SetFreifeld3($value) { $this->freifeld3=$value; }
|
||||
public function GetFreifeld3() { return $this->freifeld3; }
|
||||
public function SetFreifeld4($value) { $this->freifeld4=$value; }
|
||||
public function GetFreifeld4() { return $this->freifeld4; }
|
||||
public function SetFreifeld5($value) { $this->freifeld5=$value; }
|
||||
public function GetFreifeld5() { return $this->freifeld5; }
|
||||
public function SetFreifeld6($value) { $this->freifeld6=$value; }
|
||||
public function GetFreifeld6() { return $this->freifeld6; }
|
||||
public function SetFreifeld7($value) { $this->freifeld7=$value; }
|
||||
public function GetFreifeld7() { return $this->freifeld7; }
|
||||
public function SetFreifeld8($value) { $this->freifeld8=$value; }
|
||||
public function GetFreifeld8() { return $this->freifeld8; }
|
||||
public function SetFreifeld9($value) { $this->freifeld9=$value; }
|
||||
public function GetFreifeld9() { return $this->freifeld9; }
|
||||
public function SetFreifeld10($value) { $this->freifeld10=$value; }
|
||||
public function GetFreifeld10() { return $this->freifeld10; }
|
||||
public function SetLieferdatumkw($value) { $this->lieferdatumkw=$value; }
|
||||
public function GetLieferdatumkw() { return $this->lieferdatumkw; }
|
||||
public function SetTeilprojekt($value) { $this->teilprojekt=$value; }
|
||||
public function GetTeilprojekt() { return $this->teilprojekt; }
|
||||
public function SetKostenstelle($value) { $this->kostenstelle=$value; }
|
||||
public function GetKostenstelle() { return $this->kostenstelle; }
|
||||
public function SetSteuersatz($value) { $this->steuersatz=$value; }
|
||||
public function GetSteuersatz() { return $this->steuersatz; }
|
||||
public function SetSteuertext($value) { $this->steuertext=$value; }
|
||||
public function GetSteuertext() { return $this->steuertext; }
|
||||
public function SetErloese($value) { $this->erloese=$value; }
|
||||
public function GetErloese() { return $this->erloese; }
|
||||
public function SetErloesefestschreiben($value) { $this->erloesefestschreiben=$value; }
|
||||
public function GetErloesefestschreiben() { return $this->erloesefestschreiben; }
|
||||
public function SetEinkaufspreiswaehrung($value) { $this->einkaufspreiswaehrung=$value; }
|
||||
public function GetEinkaufspreiswaehrung() { return $this->einkaufspreiswaehrung; }
|
||||
public function SetEinkaufspreis($value) { $this->einkaufspreis=$value; }
|
||||
public function GetEinkaufspreis() { return $this->einkaufspreis; }
|
||||
public function SetEinkaufspreisurspruenglich($value) { $this->einkaufspreisurspruenglich=$value; }
|
||||
public function GetEinkaufspreisurspruenglich() { return $this->einkaufspreisurspruenglich; }
|
||||
public function SetEinkaufspreisid($value) { $this->einkaufspreisid=$value; }
|
||||
public function GetEinkaufspreisid() { return $this->einkaufspreisid; }
|
||||
public function SetEkwaehrung($value) { $this->ekwaehrung=$value; }
|
||||
public function GetEkwaehrung() { return $this->ekwaehrung; }
|
||||
public function SetDeckungsbeitrag($value) { $this->deckungsbeitrag=$value; }
|
||||
public function GetDeckungsbeitrag() { return $this->deckungsbeitrag; }
|
||||
public function SetFreifeld11($value) { $this->freifeld11=$value; }
|
||||
public function GetFreifeld11() { return $this->freifeld11; }
|
||||
public function SetFreifeld12($value) { $this->freifeld12=$value; }
|
||||
public function GetFreifeld12() { return $this->freifeld12; }
|
||||
public function SetFreifeld13($value) { $this->freifeld13=$value; }
|
||||
public function GetFreifeld13() { return $this->freifeld13; }
|
||||
public function SetFreifeld14($value) { $this->freifeld14=$value; }
|
||||
public function GetFreifeld14() { return $this->freifeld14; }
|
||||
public function SetFreifeld15($value) { $this->freifeld15=$value; }
|
||||
public function GetFreifeld15() { return $this->freifeld15; }
|
||||
public function SetFreifeld16($value) { $this->freifeld16=$value; }
|
||||
public function GetFreifeld16() { return $this->freifeld16; }
|
||||
public function SetFreifeld17($value) { $this->freifeld17=$value; }
|
||||
public function GetFreifeld17() { return $this->freifeld17; }
|
||||
public function SetFreifeld18($value) { $this->freifeld18=$value; }
|
||||
public function GetFreifeld18() { return $this->freifeld18; }
|
||||
public function SetFreifeld19($value) { $this->freifeld19=$value; }
|
||||
public function GetFreifeld19() { return $this->freifeld19; }
|
||||
public function SetFreifeld20($value) { $this->freifeld20=$value; }
|
||||
public function GetFreifeld20() { return $this->freifeld20; }
|
||||
public function SetFreifeld21($value) { $this->freifeld21=$value; }
|
||||
public function GetFreifeld21() { return $this->freifeld21; }
|
||||
public function SetFreifeld22($value) { $this->freifeld22=$value; }
|
||||
public function GetFreifeld22() { return $this->freifeld22; }
|
||||
public function SetFreifeld23($value) { $this->freifeld23=$value; }
|
||||
public function GetFreifeld23() { return $this->freifeld23; }
|
||||
public function SetFreifeld24($value) { $this->freifeld24=$value; }
|
||||
public function GetFreifeld24() { return $this->freifeld24; }
|
||||
public function SetFreifeld25($value) { $this->freifeld25=$value; }
|
||||
public function GetFreifeld25() { return $this->freifeld25; }
|
||||
public function SetFreifeld26($value) { $this->freifeld26=$value; }
|
||||
public function GetFreifeld26() { return $this->freifeld26; }
|
||||
public function SetFreifeld27($value) { $this->freifeld27=$value; }
|
||||
public function GetFreifeld27() { return $this->freifeld27; }
|
||||
public function SetFreifeld28($value) { $this->freifeld28=$value; }
|
||||
public function GetFreifeld28() { return $this->freifeld28; }
|
||||
public function SetFreifeld29($value) { $this->freifeld29=$value; }
|
||||
public function GetFreifeld29() { return $this->freifeld29; }
|
||||
public function SetFreifeld30($value) { $this->freifeld30=$value; }
|
||||
public function GetFreifeld30() { return $this->freifeld30; }
|
||||
public function SetFreifeld31($value) { $this->freifeld31=$value; }
|
||||
public function GetFreifeld31() { return $this->freifeld31; }
|
||||
public function SetFreifeld32($value) { $this->freifeld32=$value; }
|
||||
public function GetFreifeld32() { return $this->freifeld32; }
|
||||
public function SetFreifeld33($value) { $this->freifeld33=$value; }
|
||||
public function GetFreifeld33() { return $this->freifeld33; }
|
||||
public function SetFreifeld34($value) { $this->freifeld34=$value; }
|
||||
public function GetFreifeld34() { return $this->freifeld34; }
|
||||
public function SetFreifeld35($value) { $this->freifeld35=$value; }
|
||||
public function GetFreifeld35() { return $this->freifeld35; }
|
||||
public function SetFreifeld36($value) { $this->freifeld36=$value; }
|
||||
public function GetFreifeld36() { return $this->freifeld36; }
|
||||
public function SetFreifeld37($value) { $this->freifeld37=$value; }
|
||||
public function GetFreifeld37() { return $this->freifeld37; }
|
||||
public function SetFreifeld38($value) { $this->freifeld38=$value; }
|
||||
public function GetFreifeld38() { return $this->freifeld38; }
|
||||
public function SetFreifeld39($value) { $this->freifeld39=$value; }
|
||||
public function GetFreifeld39() { return $this->freifeld39; }
|
||||
public function SetFreifeld40($value) { $this->freifeld40=$value; }
|
||||
public function GetFreifeld40() { return $this->freifeld40; }
|
||||
public function SetFormelmenge($value) { $this->formelmenge=$value; }
|
||||
public function GetFormelmenge() { return $this->formelmenge; }
|
||||
public function SetFormelpreis($value) { $this->formelpreis=$value; }
|
||||
public function GetFormelpreis() { return $this->formelpreis; }
|
||||
public function SetOhnepreis($value) { $this->ohnepreis=$value; }
|
||||
public function GetOhnepreis() { return $this->ohnepreis; }
|
||||
public function SetTextalternativpreis($value) { $this->textalternativpreis=$value; }
|
||||
public function GetTextalternativpreis() { return $this->textalternativpreis; }
|
||||
public function SetSkontobetrag($value) { $this->skontobetrag=$value; }
|
||||
public function GetSkontobetrag() { return $this->skontobetrag; }
|
||||
public function SetSteuerbetrag($value) { $this->steuerbetrag=$value; }
|
||||
public function GetSteuerbetrag() { return $this->steuerbetrag; }
|
||||
public function SetSkontosperre($value) { $this->skontosperre=$value; }
|
||||
public function GetSkontosperre() { return $this->skontosperre; }
|
||||
public function SetBerechnen_Aus_Teile($value) { $this->berechnen_aus_teile=$value; }
|
||||
public function GetBerechnen_Aus_Teile() { return $this->berechnen_aus_teile; }
|
||||
public function SetAusblenden_Im_Pdf($value) { $this->ausblenden_im_pdf=$value; }
|
||||
public function GetAusblenden_Im_Pdf() { return $this->ausblenden_im_pdf; }
|
||||
public function SetExplodiert_Parent($value) { $this->explodiert_parent=$value; }
|
||||
public function GetExplodiert_Parent() { return $this->explodiert_parent; }
|
||||
public function SetUmsatz_Netto_Einzeln($value) { $this->umsatz_netto_einzeln=$value; }
|
||||
public function GetUmsatz_Netto_Einzeln() { return $this->umsatz_netto_einzeln; }
|
||||
public function SetUmsatz_Netto_Gesamt($value) { $this->umsatz_netto_gesamt=$value; }
|
||||
public function GetUmsatz_Netto_Gesamt() { return $this->umsatz_netto_gesamt; }
|
||||
public function SetUmsatz_Brutto_Einzeln($value) { $this->umsatz_brutto_einzeln=$value; }
|
||||
public function GetUmsatz_Brutto_Einzeln() { return $this->umsatz_brutto_einzeln; }
|
||||
public function SetUmsatz_Brutto_Gesamt($value) { $this->umsatz_brutto_gesamt=$value; }
|
||||
public function GetUmsatz_Brutto_Gesamt() { return $this->umsatz_brutto_gesamt; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenAngebot_Protokoll
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $angebot;
|
||||
private $zeit;
|
||||
private $bearbeiter;
|
||||
private $grund;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM angebot_protokoll WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->angebot=$result[angebot];
|
||||
$this->zeit=$result[zeit];
|
||||
$this->bearbeiter=$result[bearbeiter];
|
||||
$this->grund=$result[grund];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO angebot_protokoll (id,angebot,zeit,bearbeiter,grund)
|
||||
VALUES('','{$this->angebot}','{$this->zeit}','{$this->bearbeiter}','{$this->grund}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE angebot_protokoll SET
|
||||
angebot='{$this->angebot}',
|
||||
zeit='{$this->zeit}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
grund='{$this->grund}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM angebot_protokoll WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->angebot="";
|
||||
$this->zeit="";
|
||||
$this->bearbeiter="";
|
||||
$this->grund="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetAngebot($value) { $this->angebot=$value; }
|
||||
function GetAngebot() { return $this->angebot; }
|
||||
function SetZeit($value) { $this->zeit=$value; }
|
||||
function GetZeit() { return $this->zeit; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetGrund($value) { $this->grund=$value; }
|
||||
function GetGrund() { return $this->grund; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,287 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenAnsprechpartner
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $typ;
|
||||
private $sprache;
|
||||
private $name;
|
||||
private $bereich;
|
||||
private $abteilung;
|
||||
private $unterabteilung;
|
||||
private $land;
|
||||
private $strasse;
|
||||
private $ort;
|
||||
private $plz;
|
||||
private $telefon;
|
||||
private $telefax;
|
||||
private $email;
|
||||
private $sonstiges;
|
||||
private $adresszusatz;
|
||||
private $steuer;
|
||||
private $adresse;
|
||||
private $logdatei;
|
||||
private $mobil;
|
||||
private $titel;
|
||||
private $anschreiben;
|
||||
private $ansprechpartner_land;
|
||||
private $vorname;
|
||||
private $geburtstag;
|
||||
private $geburtstagkalender;
|
||||
private $geburtstagskarte;
|
||||
private $geloescht;
|
||||
private $marketingsperre;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM ansprechpartner WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->typ=$result['typ'];
|
||||
$this->sprache=$result['sprache'];
|
||||
$this->name=$result['name'];
|
||||
$this->bereich=$result['bereich'];
|
||||
$this->abteilung=$result['abteilung'];
|
||||
$this->unterabteilung=$result['unterabteilung'];
|
||||
$this->land=$result['land'];
|
||||
$this->strasse=$result['strasse'];
|
||||
$this->ort=$result['ort'];
|
||||
$this->plz=$result['plz'];
|
||||
$this->telefon=$result['telefon'];
|
||||
$this->telefax=$result['telefax'];
|
||||
$this->email=$result['email'];
|
||||
$this->sonstiges=$result['sonstiges'];
|
||||
$this->adresszusatz=$result['adresszusatz'];
|
||||
$this->steuer=$result['steuer'];
|
||||
$this->adresse=$result['adresse'];
|
||||
$this->logdatei=$result['logdatei'];
|
||||
$this->mobil=$result['mobil'];
|
||||
$this->titel=$result['titel'];
|
||||
$this->anschreiben=$result['anschreiben'];
|
||||
$this->ansprechpartner_land=$result['ansprechpartner_land'];
|
||||
$this->vorname=$result['vorname'];
|
||||
$this->geburtstag=$result['geburtstag'];
|
||||
$this->geburtstagkalender=$result['geburtstagkalender'];
|
||||
$this->geburtstagskarte=$result['geburtstagskarte'];
|
||||
$this->geloescht=$result['geloescht'];
|
||||
$this->marketingsperre=$result['marketingsperre'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO ansprechpartner (id,typ,sprache,name,bereich,abteilung,unterabteilung,land,strasse,ort,plz,telefon,telefax,email,sonstiges,adresszusatz,steuer,adresse,logdatei,mobil,titel,anschreiben,ansprechpartner_land,vorname,geburtstag,geburtstagkalender,geburtstagskarte,geloescht,marketingsperre)
|
||||
VALUES('','{$this->typ}','{$this->sprache}','{$this->name}','{$this->bereich}','{$this->abteilung}','{$this->unterabteilung}','{$this->land}','{$this->strasse}','{$this->ort}','{$this->plz}','{$this->telefon}','{$this->telefax}','{$this->email}','{$this->sonstiges}','{$this->adresszusatz}','{$this->steuer}','{$this->adresse}','{$this->logdatei}','{$this->mobil}','{$this->titel}','{$this->anschreiben}','{$this->ansprechpartner_land}','{$this->vorname}','{$this->geburtstag}','{$this->geburtstagkalender}','{$this->geburtstagskarte}','{$this->geloescht}','{$this->marketingsperre}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE ansprechpartner SET
|
||||
typ='{$this->typ}',
|
||||
sprache='{$this->sprache}',
|
||||
name='{$this->name}',
|
||||
bereich='{$this->bereich}',
|
||||
abteilung='{$this->abteilung}',
|
||||
unterabteilung='{$this->unterabteilung}',
|
||||
land='{$this->land}',
|
||||
strasse='{$this->strasse}',
|
||||
ort='{$this->ort}',
|
||||
plz='{$this->plz}',
|
||||
telefon='{$this->telefon}',
|
||||
telefax='{$this->telefax}',
|
||||
email='{$this->email}',
|
||||
sonstiges='{$this->sonstiges}',
|
||||
adresszusatz='{$this->adresszusatz}',
|
||||
steuer='{$this->steuer}',
|
||||
adresse='{$this->adresse}',
|
||||
logdatei='{$this->logdatei}',
|
||||
mobil='{$this->mobil}',
|
||||
titel='{$this->titel}',
|
||||
anschreiben='{$this->anschreiben}',
|
||||
ansprechpartner_land='{$this->ansprechpartner_land}',
|
||||
vorname='{$this->vorname}',
|
||||
geburtstag='{$this->geburtstag}',
|
||||
geburtstagkalender='{$this->geburtstagkalender}',
|
||||
geburtstagskarte='{$this->geburtstagskarte}',
|
||||
geloescht='{$this->geloescht}',
|
||||
marketingsperre='{$this->marketingsperre}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM ansprechpartner WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->typ="";
|
||||
$this->sprache="";
|
||||
$this->name="";
|
||||
$this->bereich="";
|
||||
$this->abteilung="";
|
||||
$this->unterabteilung="";
|
||||
$this->land="";
|
||||
$this->strasse="";
|
||||
$this->ort="";
|
||||
$this->plz="";
|
||||
$this->telefon="";
|
||||
$this->telefax="";
|
||||
$this->email="";
|
||||
$this->sonstiges="";
|
||||
$this->adresszusatz="";
|
||||
$this->steuer="";
|
||||
$this->adresse="";
|
||||
$this->logdatei="";
|
||||
$this->mobil="";
|
||||
$this->titel="";
|
||||
$this->anschreiben="";
|
||||
$this->ansprechpartner_land="";
|
||||
$this->vorname="";
|
||||
$this->geburtstag="";
|
||||
$this->geburtstagkalender="";
|
||||
$this->geburtstagskarte="";
|
||||
$this->geloescht="";
|
||||
$this->marketingsperre="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetTyp($value) { $this->typ=$value; }
|
||||
function GetTyp() { return $this->typ; }
|
||||
function SetSprache($value) { $this->sprache=$value; }
|
||||
function GetSprache() { return $this->sprache; }
|
||||
function SetName($value) { $this->name=$value; }
|
||||
function GetName() { return $this->name; }
|
||||
function SetBereich($value) { $this->bereich=$value; }
|
||||
function GetBereich() { return $this->bereich; }
|
||||
function SetAbteilung($value) { $this->abteilung=$value; }
|
||||
function GetAbteilung() { return $this->abteilung; }
|
||||
function SetUnterabteilung($value) { $this->unterabteilung=$value; }
|
||||
function GetUnterabteilung() { return $this->unterabteilung; }
|
||||
function SetLand($value) { $this->land=$value; }
|
||||
function GetLand() { return $this->land; }
|
||||
function SetStrasse($value) { $this->strasse=$value; }
|
||||
function GetStrasse() { return $this->strasse; }
|
||||
function SetOrt($value) { $this->ort=$value; }
|
||||
function GetOrt() { return $this->ort; }
|
||||
function SetPlz($value) { $this->plz=$value; }
|
||||
function GetPlz() { return $this->plz; }
|
||||
function SetTelefon($value) { $this->telefon=$value; }
|
||||
function GetTelefon() { return $this->telefon; }
|
||||
function SetTelefax($value) { $this->telefax=$value; }
|
||||
function GetTelefax() { return $this->telefax; }
|
||||
function SetEmail($value) { $this->email=$value; }
|
||||
function GetEmail() { return $this->email; }
|
||||
function SetSonstiges($value) { $this->sonstiges=$value; }
|
||||
function GetSonstiges() { return $this->sonstiges; }
|
||||
function SetAdresszusatz($value) { $this->adresszusatz=$value; }
|
||||
function GetAdresszusatz() { return $this->adresszusatz; }
|
||||
function SetSteuer($value) { $this->steuer=$value; }
|
||||
function GetSteuer() { return $this->steuer; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
function SetMobil($value) { $this->mobil=$value; }
|
||||
function GetMobil() { return $this->mobil; }
|
||||
function SetTitel($value) { $this->titel=$value; }
|
||||
function GetTitel() { return $this->titel; }
|
||||
function SetAnschreiben($value) { $this->anschreiben=$value; }
|
||||
function GetAnschreiben() { return $this->anschreiben; }
|
||||
function SetAnsprechpartner_Land($value) { $this->ansprechpartner_land=$value; }
|
||||
function GetAnsprechpartner_Land() { return $this->ansprechpartner_land; }
|
||||
function SetVorname($value) { $this->vorname=$value; }
|
||||
function GetVorname() { return $this->vorname; }
|
||||
function SetGeburtstag($value) { $this->geburtstag=$value; }
|
||||
function GetGeburtstag() { return $this->geburtstag; }
|
||||
function SetGeburtstagkalender($value) { $this->geburtstagkalender=$value; }
|
||||
function GetGeburtstagkalender() { return $this->geburtstagkalender; }
|
||||
function SetGeburtstagskarte($value) { $this->geburtstagskarte=$value; }
|
||||
function GetGeburtstagskarte() { return $this->geburtstagskarte; }
|
||||
function SetGeloescht($value) { $this->geloescht=$value; }
|
||||
function GetGeloescht() { return $this->geloescht; }
|
||||
function SetMarketingsperre($value) { $this->marketingsperre=$value; }
|
||||
function GetMarketingsperre() { return $this->marketingsperre; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,179 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenApi_Account
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $bezeichnung;
|
||||
private $initkey;
|
||||
private $importwarteschlange_name;
|
||||
private $event_url;
|
||||
private $remotedomain;
|
||||
private $aktiv;
|
||||
private $importwarteschlange;
|
||||
private $cleanutf8;
|
||||
private $uebertragung_account;
|
||||
private $projekt;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM api_account WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->bezeichnung=$result['bezeichnung'];
|
||||
$this->initkey=$result['initkey'];
|
||||
$this->importwarteschlange_name=$result['importwarteschlange_name'];
|
||||
$this->event_url=$result['event_url'];
|
||||
$this->remotedomain=$result['remotedomain'];
|
||||
$this->aktiv=$result['aktiv'];
|
||||
$this->importwarteschlange=$result['importwarteschlange'];
|
||||
$this->cleanutf8=$result['cleanutf8'];
|
||||
$this->uebertragung_account=$result['uebertragung_account'];
|
||||
$this->projekt=$result['projekt'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO api_account (id,bezeichnung,initkey,importwarteschlange_name,event_url,remotedomain,aktiv,importwarteschlange,cleanutf8,uebertragung_account,projekt)
|
||||
VALUES('','{$this->bezeichnung}','{$this->initkey}','{$this->importwarteschlange_name}','{$this->event_url}','{$this->remotedomain}','{$this->aktiv}','{$this->importwarteschlange}','{$this->cleanutf8}','{$this->uebertragung_account}','{$this->projekt}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE api_account SET
|
||||
bezeichnung='{$this->bezeichnung}',
|
||||
initkey='{$this->initkey}',
|
||||
importwarteschlange_name='{$this->importwarteschlange_name}',
|
||||
event_url='{$this->event_url}',
|
||||
remotedomain='{$this->remotedomain}',
|
||||
aktiv='{$this->aktiv}',
|
||||
importwarteschlange='{$this->importwarteschlange}',
|
||||
cleanutf8='{$this->cleanutf8}',
|
||||
uebertragung_account='{$this->uebertragung_account}',
|
||||
projekt='{$this->projekt}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM api_account WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->bezeichnung="";
|
||||
$this->initkey="";
|
||||
$this->importwarteschlange_name="";
|
||||
$this->event_url="";
|
||||
$this->remotedomain="";
|
||||
$this->aktiv="";
|
||||
$this->importwarteschlange="";
|
||||
$this->cleanutf8="";
|
||||
$this->uebertragung_account="";
|
||||
$this->projekt="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
function GetBezeichnung() { return $this->bezeichnung; }
|
||||
function SetInitkey($value) { $this->initkey=$value; }
|
||||
function GetInitkey() { return $this->initkey; }
|
||||
function SetImportwarteschlange_Name($value) { $this->importwarteschlange_name=$value; }
|
||||
function GetImportwarteschlange_Name() { return $this->importwarteschlange_name; }
|
||||
function SetEvent_Url($value) { $this->event_url=$value; }
|
||||
function GetEvent_Url() { return $this->event_url; }
|
||||
function SetRemotedomain($value) { $this->remotedomain=$value; }
|
||||
function GetRemotedomain() { return $this->remotedomain; }
|
||||
function SetAktiv($value) { $this->aktiv=$value; }
|
||||
function GetAktiv() { return $this->aktiv; }
|
||||
function SetImportwarteschlange($value) { $this->importwarteschlange=$value; }
|
||||
function GetImportwarteschlange() { return $this->importwarteschlange; }
|
||||
function SetCleanutf8($value) { $this->cleanutf8=$value; }
|
||||
function GetCleanutf8() { return $this->cleanutf8; }
|
||||
function SetUebertragung_Account($value) { $this->uebertragung_account=$value; }
|
||||
function GetUebertragung_Account() { return $this->uebertragung_account; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,143 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenArbeitsfreietage
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $bezeichnung;
|
||||
private $typ;
|
||||
private $datum;
|
||||
private $projekt;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM arbeitsfreietage WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->bezeichnung=$result['bezeichnung'];
|
||||
$this->typ=$result['typ'];
|
||||
$this->datum=$result['datum'];
|
||||
$this->projekt=$result['projekt'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO arbeitsfreietage (id,bezeichnung,typ,datum,projekt)
|
||||
VALUES('','{$this->bezeichnung}','{$this->typ}','{$this->datum}','{$this->projekt}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE arbeitsfreietage SET
|
||||
bezeichnung='{$this->bezeichnung}',
|
||||
typ='{$this->typ}',
|
||||
datum='{$this->datum}',
|
||||
projekt='{$this->projekt}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM arbeitsfreietage WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->bezeichnung="";
|
||||
$this->typ="";
|
||||
$this->datum="";
|
||||
$this->projekt="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
function GetBezeichnung() { return $this->bezeichnung; }
|
||||
function SetTyp($value) { $this->typ=$value; }
|
||||
function GetTyp() { return $this->typ; }
|
||||
function SetDatum($value) { $this->datum=$value; }
|
||||
function GetDatum() { return $this->datum; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,388 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenArbeitsnachweis
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $datum;
|
||||
private $projekt;
|
||||
private $prefix;
|
||||
private $arbeitsnachweisart;
|
||||
private $belegnr;
|
||||
private $bearbeiter;
|
||||
private $auftrag;
|
||||
private $auftragid;
|
||||
private $freitext;
|
||||
private $status;
|
||||
private $adresse;
|
||||
private $name;
|
||||
private $abteilung;
|
||||
private $unterabteilung;
|
||||
private $strasse;
|
||||
private $adresszusatz;
|
||||
private $ansprechpartner;
|
||||
private $plz;
|
||||
private $ort;
|
||||
private $land;
|
||||
private $ustid;
|
||||
private $email;
|
||||
private $telefon;
|
||||
private $telefax;
|
||||
private $betreff;
|
||||
private $kundennummer;
|
||||
private $versandart;
|
||||
private $versand;
|
||||
private $firma;
|
||||
private $versendet;
|
||||
private $versendet_am;
|
||||
private $versendet_per;
|
||||
private $versendet_durch;
|
||||
private $inbearbeitung_user;
|
||||
private $logdatei;
|
||||
private $ohne_briefpapier;
|
||||
private $anzeige_verrechnungsart;
|
||||
private $ust_befreit;
|
||||
private $anschreiben;
|
||||
private $usereditid;
|
||||
private $useredittimestamp;
|
||||
private $schreibschutz;
|
||||
private $pdfarchiviert;
|
||||
private $pdfarchiviertversion;
|
||||
private $typ;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM `arbeitsnachweis` WHERE (`id` = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->datum=$result['datum'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->prefix=$result['prefix'];
|
||||
$this->arbeitsnachweisart=$result['arbeitsnachweisart'];
|
||||
$this->belegnr=$result['belegnr'];
|
||||
$this->bearbeiter=$result['bearbeiter'];
|
||||
$this->auftrag=$result['auftrag'];
|
||||
$this->auftragid=$result['auftragid'];
|
||||
$this->freitext=$result['freitext'];
|
||||
$this->status=$result['status'];
|
||||
$this->adresse=$result['adresse'];
|
||||
$this->name=$result['name'];
|
||||
$this->abteilung=$result['abteilung'];
|
||||
$this->unterabteilung=$result['unterabteilung'];
|
||||
$this->strasse=$result['strasse'];
|
||||
$this->adresszusatz=$result['adresszusatz'];
|
||||
$this->ansprechpartner=$result['ansprechpartner'];
|
||||
$this->plz=$result['plz'];
|
||||
$this->ort=$result['ort'];
|
||||
$this->land=$result['land'];
|
||||
$this->ustid=$result['ustid'];
|
||||
$this->email=$result['email'];
|
||||
$this->telefon=$result['telefon'];
|
||||
$this->telefax=$result['telefax'];
|
||||
$this->betreff=$result['betreff'];
|
||||
$this->kundennummer=$result['kundennummer'];
|
||||
$this->versandart=$result['versandart'];
|
||||
$this->versand=$result['versand'];
|
||||
$this->firma=$result['firma'];
|
||||
$this->versendet=$result['versendet'];
|
||||
$this->versendet_am=$result['versendet_am'];
|
||||
$this->versendet_per=$result['versendet_per'];
|
||||
$this->versendet_durch=$result['versendet_durch'];
|
||||
$this->inbearbeitung_user=$result['inbearbeitung_user'];
|
||||
$this->logdatei=$result['logdatei'];
|
||||
$this->ohne_briefpapier=$result['ohne_briefpapier'];
|
||||
$this->anzeige_verrechnungsart=$result['anzeige_verrechnungsart'];
|
||||
$this->ust_befreit=$result['ust_befreit'];
|
||||
$this->anschreiben=$result['anschreiben'];
|
||||
$this->usereditid=$result['usereditid'];
|
||||
$this->useredittimestamp=$result['useredittimestamp'];
|
||||
$this->schreibschutz=$result['schreibschutz'];
|
||||
$this->pdfarchiviert=$result['pdfarchiviert'];
|
||||
$this->pdfarchiviertversion=$result['pdfarchiviertversion'];
|
||||
$this->typ=$result['typ'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO `arbeitsnachweis` (`id`,`datum`,`projekt`,`prefix`,`arbeitsnachweisart`,`belegnr`,`bearbeiter`,`auftrag`,`auftragid`,`freitext`,`status`,`adresse`,`name`,`abteilung`,`unterabteilung`,`strasse`,`adresszusatz`,`ansprechpartner`,`plz`,`ort`,`land`,`ustid`,`email`,`telefon`,`telefax`,`betreff`,`kundennummer`,`versandart`,`versand`,`firma`,`versendet`,`versendet_am`,`versendet_per`,`versendet_durch`,`inbearbeitung_user`,`logdatei`,`ohne_briefpapier`,`anzeige_verrechnungsart`,`ust_befreit`,`anschreiben`,`usereditid`,`useredittimestamp`,`schreibschutz`,`pdfarchiviert`,`pdfarchiviertversion`,`typ`)
|
||||
VALUES(NULL,'{$this->datum}','{$this->projekt}','{$this->prefix}','{$this->arbeitsnachweisart}','{$this->belegnr}','{$this->bearbeiter}','{$this->auftrag}','{$this->auftragid}','{$this->freitext}','{$this->status}','{$this->adresse}','{$this->name}','{$this->abteilung}','{$this->unterabteilung}','{$this->strasse}','{$this->adresszusatz}','{$this->ansprechpartner}','{$this->plz}','{$this->ort}','{$this->land}','{$this->ustid}','{$this->email}','{$this->telefon}','{$this->telefax}','{$this->betreff}','{$this->kundennummer}','{$this->versandart}','{$this->versand}','{$this->firma}','{$this->versendet}','{$this->versendet_am}','{$this->versendet_per}','{$this->versendet_durch}','{$this->inbearbeitung_user}','{$this->logdatei}','{$this->ohne_briefpapier}','{$this->anzeige_verrechnungsart}','{$this->ust_befreit}','{$this->anschreiben}','{$this->usereditid}','{$this->useredittimestamp}','{$this->schreibschutz}','{$this->pdfarchiviert}','{$this->pdfarchiviertversion}','{$this->typ}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
$sql = "UPDATE `arbeitsnachweis` SET
|
||||
`datum`='{$this->datum}',
|
||||
`projekt`='{$this->projekt}',
|
||||
`prefix`='{$this->prefix}',
|
||||
`arbeitsnachweisart`='{$this->arbeitsnachweisart}',
|
||||
`belegnr`='{$this->belegnr}',
|
||||
`bearbeiter`='{$this->bearbeiter}',
|
||||
`auftrag`='{$this->auftrag}',
|
||||
`auftragid`='{$this->auftragid}',
|
||||
`freitext`='{$this->freitext}',
|
||||
`status`='{$this->status}',
|
||||
`adresse`='{$this->adresse}',
|
||||
`name`='{$this->name}',
|
||||
`abteilung`='{$this->abteilung}',
|
||||
`unterabteilung`='{$this->unterabteilung}',
|
||||
`strasse`='{$this->strasse}',
|
||||
`adresszusatz`='{$this->adresszusatz}',
|
||||
`ansprechpartner`='{$this->ansprechpartner}',
|
||||
`plz`='{$this->plz}',
|
||||
`ort`='{$this->ort}',
|
||||
`land`='{$this->land}',
|
||||
`ustid`='{$this->ustid}',
|
||||
`email`='{$this->email}',
|
||||
`telefon`='{$this->telefon}',
|
||||
`telefax`='{$this->telefax}',
|
||||
`betreff`='{$this->betreff}',
|
||||
`kundennummer`='{$this->kundennummer}',
|
||||
`versandart`='{$this->versandart}',
|
||||
`versand`='{$this->versand}',
|
||||
`firma`='{$this->firma}',
|
||||
`versendet`='{$this->versendet}',
|
||||
`versendet_am`='{$this->versendet_am}',
|
||||
`versendet_per`='{$this->versendet_per}',
|
||||
`versendet_durch`='{$this->versendet_durch}',
|
||||
`inbearbeitung_user`='{$this->inbearbeitung_user}',
|
||||
`logdatei`='{$this->logdatei}',
|
||||
`ohne_briefpapier`='{$this->ohne_briefpapier}',
|
||||
`anzeige_verrechnungsart`='{$this->anzeige_verrechnungsart}',
|
||||
`ust_befreit`='{$this->ust_befreit}',
|
||||
`anschreiben`='{$this->anschreiben}',
|
||||
`usereditid`='{$this->usereditid}',
|
||||
`useredittimestamp`='{$this->useredittimestamp}',
|
||||
`schreibschutz`='{$this->schreibschutz}',
|
||||
`pdfarchiviert`='{$this->pdfarchiviert}',
|
||||
`pdfarchiviertversion`='{$this->pdfarchiviertversion}',
|
||||
`typ`='{$this->typ}'
|
||||
WHERE (`id`='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id='')
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM `arbeitsnachweis` WHERE (`id`='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id='';
|
||||
$this->datum='';
|
||||
$this->projekt='';
|
||||
$this->prefix='';
|
||||
$this->arbeitsnachweisart='';
|
||||
$this->belegnr='';
|
||||
$this->bearbeiter='';
|
||||
$this->auftrag='';
|
||||
$this->auftragid='';
|
||||
$this->freitext='';
|
||||
$this->status='';
|
||||
$this->adresse='';
|
||||
$this->name='';
|
||||
$this->abteilung='';
|
||||
$this->unterabteilung='';
|
||||
$this->strasse='';
|
||||
$this->adresszusatz='';
|
||||
$this->ansprechpartner='';
|
||||
$this->plz='';
|
||||
$this->ort='';
|
||||
$this->land='';
|
||||
$this->ustid='';
|
||||
$this->email='';
|
||||
$this->telefon='';
|
||||
$this->telefax='';
|
||||
$this->betreff='';
|
||||
$this->kundennummer='';
|
||||
$this->versandart='';
|
||||
$this->versand='';
|
||||
$this->firma='';
|
||||
$this->versendet='';
|
||||
$this->versendet_am='';
|
||||
$this->versendet_per='';
|
||||
$this->versendet_durch='';
|
||||
$this->inbearbeitung_user='';
|
||||
$this->logdatei='';
|
||||
$this->ohne_briefpapier='';
|
||||
$this->anzeige_verrechnungsart='';
|
||||
$this->ust_befreit='';
|
||||
$this->anschreiben='';
|
||||
$this->usereditid='';
|
||||
$this->useredittimestamp='';
|
||||
$this->schreibschutz='';
|
||||
$this->pdfarchiviert='';
|
||||
$this->pdfarchiviertversion='';
|
||||
$this->typ='';
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = '';
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
public function SetId($value) { $this->id=$value; }
|
||||
public function GetId() { return $this->id; }
|
||||
public function SetDatum($value) { $this->datum=$value; }
|
||||
public function GetDatum() { return $this->datum; }
|
||||
public function SetProjekt($value) { $this->projekt=$value; }
|
||||
public function GetProjekt() { return $this->projekt; }
|
||||
public function SetPrefix($value) { $this->prefix=$value; }
|
||||
public function GetPrefix() { return $this->prefix; }
|
||||
public function SetArbeitsnachweisart($value) { $this->arbeitsnachweisart=$value; }
|
||||
public function GetArbeitsnachweisart() { return $this->arbeitsnachweisart; }
|
||||
public function SetBelegnr($value) { $this->belegnr=$value; }
|
||||
public function GetBelegnr() { return $this->belegnr; }
|
||||
public function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
public function GetBearbeiter() { return $this->bearbeiter; }
|
||||
public function SetAuftrag($value) { $this->auftrag=$value; }
|
||||
public function GetAuftrag() { return $this->auftrag; }
|
||||
public function SetAuftragid($value) { $this->auftragid=$value; }
|
||||
public function GetAuftragid() { return $this->auftragid; }
|
||||
public function SetFreitext($value) { $this->freitext=$value; }
|
||||
public function GetFreitext() { return $this->freitext; }
|
||||
public function SetStatus($value) { $this->status=$value; }
|
||||
public function GetStatus() { return $this->status; }
|
||||
public function SetAdresse($value) { $this->adresse=$value; }
|
||||
public function GetAdresse() { return $this->adresse; }
|
||||
public function SetName($value) { $this->name=$value; }
|
||||
public function GetName() { return $this->name; }
|
||||
public function SetAbteilung($value) { $this->abteilung=$value; }
|
||||
public function GetAbteilung() { return $this->abteilung; }
|
||||
public function SetUnterabteilung($value) { $this->unterabteilung=$value; }
|
||||
public function GetUnterabteilung() { return $this->unterabteilung; }
|
||||
public function SetStrasse($value) { $this->strasse=$value; }
|
||||
public function GetStrasse() { return $this->strasse; }
|
||||
public function SetAdresszusatz($value) { $this->adresszusatz=$value; }
|
||||
public function GetAdresszusatz() { return $this->adresszusatz; }
|
||||
public function SetAnsprechpartner($value) { $this->ansprechpartner=$value; }
|
||||
public function GetAnsprechpartner() { return $this->ansprechpartner; }
|
||||
public function SetPlz($value) { $this->plz=$value; }
|
||||
public function GetPlz() { return $this->plz; }
|
||||
public function SetOrt($value) { $this->ort=$value; }
|
||||
public function GetOrt() { return $this->ort; }
|
||||
public function SetLand($value) { $this->land=$value; }
|
||||
public function GetLand() { return $this->land; }
|
||||
public function SetUstid($value) { $this->ustid=$value; }
|
||||
public function GetUstid() { return $this->ustid; }
|
||||
public function SetEmail($value) { $this->email=$value; }
|
||||
public function GetEmail() { return $this->email; }
|
||||
public function SetTelefon($value) { $this->telefon=$value; }
|
||||
public function GetTelefon() { return $this->telefon; }
|
||||
public function SetTelefax($value) { $this->telefax=$value; }
|
||||
public function GetTelefax() { return $this->telefax; }
|
||||
public function SetBetreff($value) { $this->betreff=$value; }
|
||||
public function GetBetreff() { return $this->betreff; }
|
||||
public function SetKundennummer($value) { $this->kundennummer=$value; }
|
||||
public function GetKundennummer() { return $this->kundennummer; }
|
||||
public function SetVersandart($value) { $this->versandart=$value; }
|
||||
public function GetVersandart() { return $this->versandart; }
|
||||
public function SetVersand($value) { $this->versand=$value; }
|
||||
public function GetVersand() { return $this->versand; }
|
||||
public function SetFirma($value) { $this->firma=$value; }
|
||||
public function GetFirma() { return $this->firma; }
|
||||
public function SetVersendet($value) { $this->versendet=$value; }
|
||||
public function GetVersendet() { return $this->versendet; }
|
||||
public function SetVersendet_Am($value) { $this->versendet_am=$value; }
|
||||
public function GetVersendet_Am() { return $this->versendet_am; }
|
||||
public function SetVersendet_Per($value) { $this->versendet_per=$value; }
|
||||
public function GetVersendet_Per() { return $this->versendet_per; }
|
||||
public function SetVersendet_Durch($value) { $this->versendet_durch=$value; }
|
||||
public function GetVersendet_Durch() { return $this->versendet_durch; }
|
||||
public function SetInbearbeitung_User($value) { $this->inbearbeitung_user=$value; }
|
||||
public function GetInbearbeitung_User() { return $this->inbearbeitung_user; }
|
||||
public function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
public function GetLogdatei() { return $this->logdatei; }
|
||||
public function SetOhne_Briefpapier($value) { $this->ohne_briefpapier=$value; }
|
||||
public function GetOhne_Briefpapier() { return $this->ohne_briefpapier; }
|
||||
public function SetAnzeige_Verrechnungsart($value) { $this->anzeige_verrechnungsart=$value; }
|
||||
public function GetAnzeige_Verrechnungsart() { return $this->anzeige_verrechnungsart; }
|
||||
public function SetUst_Befreit($value) { $this->ust_befreit=$value; }
|
||||
public function GetUst_Befreit() { return $this->ust_befreit; }
|
||||
public function SetAnschreiben($value) { $this->anschreiben=$value; }
|
||||
public function GetAnschreiben() { return $this->anschreiben; }
|
||||
public function SetUsereditid($value) { $this->usereditid=$value; }
|
||||
public function GetUsereditid() { return $this->usereditid; }
|
||||
public function SetUseredittimestamp($value) { $this->useredittimestamp=$value; }
|
||||
public function GetUseredittimestamp() { return $this->useredittimestamp; }
|
||||
public function SetSchreibschutz($value) { $this->schreibschutz=$value; }
|
||||
public function GetSchreibschutz() { return $this->schreibschutz; }
|
||||
public function SetPdfarchiviert($value) { $this->pdfarchiviert=$value; }
|
||||
public function GetPdfarchiviert() { return $this->pdfarchiviert; }
|
||||
public function SetPdfarchiviertversion($value) { $this->pdfarchiviertversion=$value; }
|
||||
public function GetPdfarchiviertversion() { return $this->pdfarchiviertversion; }
|
||||
public function SetTyp($value) { $this->typ=$value; }
|
||||
public function GetTyp() { return $this->typ; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,239 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenArbeitsnachweis_Position
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $arbeitsnachweis;
|
||||
private $artikel;
|
||||
private $projekt;
|
||||
private $bezeichnung;
|
||||
private $beschreibung;
|
||||
private $ort;
|
||||
private $internerkommentar;
|
||||
private $nummer;
|
||||
private $verrechnungsart;
|
||||
private $menge;
|
||||
private $arbeitspaket;
|
||||
private $datum;
|
||||
private $von;
|
||||
private $bis;
|
||||
private $sort;
|
||||
private $status;
|
||||
private $bemerkung;
|
||||
private $abgerechnet;
|
||||
private $logdatei;
|
||||
private $adresse;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM arbeitsnachweis_position WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->arbeitsnachweis=$result[arbeitsnachweis];
|
||||
$this->artikel=$result[artikel];
|
||||
$this->projekt=$result[projekt];
|
||||
$this->bezeichnung=$result[bezeichnung];
|
||||
$this->beschreibung=$result[beschreibung];
|
||||
$this->ort=$result[ort];
|
||||
$this->internerkommentar=$result[internerkommentar];
|
||||
$this->nummer=$result[nummer];
|
||||
$this->verrechnungsart=$result[verrechnungsart];
|
||||
$this->menge=$result[menge];
|
||||
$this->arbeitspaket=$result[arbeitspaket];
|
||||
$this->datum=$result[datum];
|
||||
$this->von=$result[von];
|
||||
$this->bis=$result[bis];
|
||||
$this->sort=$result[sort];
|
||||
$this->status=$result[status];
|
||||
$this->bemerkung=$result[bemerkung];
|
||||
$this->abgerechnet=$result[abgerechnet];
|
||||
$this->logdatei=$result[logdatei];
|
||||
$this->adresse=$result[adresse];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO arbeitsnachweis_position (id,arbeitsnachweis,artikel,projekt,bezeichnung,beschreibung,ort,internerkommentar,nummer,verrechnungsart,menge,arbeitspaket,datum,von,bis,sort,status,bemerkung,abgerechnet,logdatei,adresse)
|
||||
VALUES('','{$this->arbeitsnachweis}','{$this->artikel}','{$this->projekt}','{$this->bezeichnung}','{$this->beschreibung}','{$this->ort}','{$this->internerkommentar}','{$this->nummer}','{$this->verrechnungsart}','{$this->menge}','{$this->arbeitspaket}','{$this->datum}','{$this->von}','{$this->bis}','{$this->sort}','{$this->status}','{$this->bemerkung}','{$this->abgerechnet}','{$this->logdatei}','{$this->adresse}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE arbeitsnachweis_position SET
|
||||
arbeitsnachweis='{$this->arbeitsnachweis}',
|
||||
artikel='{$this->artikel}',
|
||||
projekt='{$this->projekt}',
|
||||
bezeichnung='{$this->bezeichnung}',
|
||||
beschreibung='{$this->beschreibung}',
|
||||
ort='{$this->ort}',
|
||||
internerkommentar='{$this->internerkommentar}',
|
||||
nummer='{$this->nummer}',
|
||||
verrechnungsart='{$this->verrechnungsart}',
|
||||
menge='{$this->menge}',
|
||||
arbeitspaket='{$this->arbeitspaket}',
|
||||
datum='{$this->datum}',
|
||||
von='{$this->von}',
|
||||
bis='{$this->bis}',
|
||||
sort='{$this->sort}',
|
||||
status='{$this->status}',
|
||||
bemerkung='{$this->bemerkung}',
|
||||
abgerechnet='{$this->abgerechnet}',
|
||||
logdatei='{$this->logdatei}',
|
||||
adresse='{$this->adresse}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM arbeitsnachweis_position WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->arbeitsnachweis="";
|
||||
$this->artikel="";
|
||||
$this->projekt="";
|
||||
$this->bezeichnung="";
|
||||
$this->beschreibung="";
|
||||
$this->ort="";
|
||||
$this->internerkommentar="";
|
||||
$this->nummer="";
|
||||
$this->verrechnungsart="";
|
||||
$this->menge="";
|
||||
$this->arbeitspaket="";
|
||||
$this->datum="";
|
||||
$this->von="";
|
||||
$this->bis="";
|
||||
$this->sort="";
|
||||
$this->status="";
|
||||
$this->bemerkung="";
|
||||
$this->abgerechnet="";
|
||||
$this->logdatei="";
|
||||
$this->adresse="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetArbeitsnachweis($value) { $this->arbeitsnachweis=$value; }
|
||||
function GetArbeitsnachweis() { return $this->arbeitsnachweis; }
|
||||
function SetArtikel($value) { $this->artikel=$value; }
|
||||
function GetArtikel() { return $this->artikel; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
function GetBezeichnung() { return $this->bezeichnung; }
|
||||
function SetBeschreibung($value) { $this->beschreibung=$value; }
|
||||
function GetBeschreibung() { return $this->beschreibung; }
|
||||
function SetOrt($value) { $this->ort=$value; }
|
||||
function GetOrt() { return $this->ort; }
|
||||
function SetInternerkommentar($value) { $this->internerkommentar=$value; }
|
||||
function GetInternerkommentar() { return $this->internerkommentar; }
|
||||
function SetNummer($value) { $this->nummer=$value; }
|
||||
function GetNummer() { return $this->nummer; }
|
||||
function SetVerrechnungsart($value) { $this->verrechnungsart=$value; }
|
||||
function GetVerrechnungsart() { return $this->verrechnungsart; }
|
||||
function SetMenge($value) { $this->menge=$value; }
|
||||
function GetMenge() { return $this->menge; }
|
||||
function SetArbeitspaket($value) { $this->arbeitspaket=$value; }
|
||||
function GetArbeitspaket() { return $this->arbeitspaket; }
|
||||
function SetDatum($value) { $this->datum=$value; }
|
||||
function GetDatum() { return $this->datum; }
|
||||
function SetVon($value) { $this->von=$value; }
|
||||
function GetVon() { return $this->von; }
|
||||
function SetBis($value) { $this->bis=$value; }
|
||||
function GetBis() { return $this->bis; }
|
||||
function SetSort($value) { $this->sort=$value; }
|
||||
function GetSort() { return $this->sort; }
|
||||
function SetStatus($value) { $this->status=$value; }
|
||||
function GetStatus() { return $this->status; }
|
||||
function SetBemerkung($value) { $this->bemerkung=$value; }
|
||||
function GetBemerkung() { return $this->bemerkung; }
|
||||
function SetAbgerechnet($value) { $this->abgerechnet=$value; }
|
||||
function GetAbgerechnet() { return $this->abgerechnet; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,143 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenArbeitsnachweis_Protokoll
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $arbeitsnachweis;
|
||||
private $zeit;
|
||||
private $bearbeiter;
|
||||
private $grund;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM arbeitsnachweis_protokoll WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->arbeitsnachweis=$result[arbeitsnachweis];
|
||||
$this->zeit=$result[zeit];
|
||||
$this->bearbeiter=$result[bearbeiter];
|
||||
$this->grund=$result[grund];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO arbeitsnachweis_protokoll (id,arbeitsnachweis,zeit,bearbeiter,grund)
|
||||
VALUES('','{$this->arbeitsnachweis}','{$this->zeit}','{$this->bearbeiter}','{$this->grund}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE arbeitsnachweis_protokoll SET
|
||||
arbeitsnachweis='{$this->arbeitsnachweis}',
|
||||
zeit='{$this->zeit}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
grund='{$this->grund}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM arbeitsnachweis_protokoll WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->arbeitsnachweis="";
|
||||
$this->zeit="";
|
||||
$this->bearbeiter="";
|
||||
$this->grund="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetArbeitsnachweis($value) { $this->arbeitsnachweis=$value; }
|
||||
function GetArbeitsnachweis() { return $this->arbeitsnachweis; }
|
||||
function SetZeit($value) { $this->zeit=$value; }
|
||||
function GetZeit() { return $this->zeit; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetGrund($value) { $this->grund=$value; }
|
||||
function GetGrund() { return $this->grund; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,245 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenArbeitspaket
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $adresse;
|
||||
private $aufgabe;
|
||||
private $beschreibung;
|
||||
private $projekt;
|
||||
private $zeit_geplant;
|
||||
private $kostenstelle;
|
||||
private $status;
|
||||
private $abgabe;
|
||||
private $abgenommen;
|
||||
private $abgenommen_von;
|
||||
private $abgenommen_bemerkung;
|
||||
private $initiator;
|
||||
private $art;
|
||||
private $abgabedatum;
|
||||
private $logdatei;
|
||||
private $geloescht;
|
||||
private $vorgaenger;
|
||||
private $kosten_geplant;
|
||||
private $artikel_geplant;
|
||||
private $auftragid;
|
||||
private $abgerechnet;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM arbeitspaket WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->adresse=$result['adresse'];
|
||||
$this->aufgabe=$result['aufgabe'];
|
||||
$this->beschreibung=$result['beschreibung'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->zeit_geplant=$result['zeit_geplant'];
|
||||
$this->kostenstelle=$result['kostenstelle'];
|
||||
$this->status=$result['status'];
|
||||
$this->abgabe=$result['abgabe'];
|
||||
$this->abgenommen=$result['abgenommen'];
|
||||
$this->abgenommen_von=$result['abgenommen_von'];
|
||||
$this->abgenommen_bemerkung=$result['abgenommen_bemerkung'];
|
||||
$this->initiator=$result['initiator'];
|
||||
$this->art=$result['art'];
|
||||
$this->abgabedatum=$result['abgabedatum'];
|
||||
$this->logdatei=$result['logdatei'];
|
||||
$this->geloescht=$result['geloescht'];
|
||||
$this->vorgaenger=$result['vorgaenger'];
|
||||
$this->kosten_geplant=$result['kosten_geplant'];
|
||||
$this->artikel_geplant=$result['artikel_geplant'];
|
||||
$this->auftragid=$result['auftragid'];
|
||||
$this->abgerechnet=$result['abgerechnet'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO arbeitspaket (id,adresse,aufgabe,beschreibung,projekt,zeit_geplant,kostenstelle,status,abgabe,abgenommen,abgenommen_von,abgenommen_bemerkung,initiator,art,abgabedatum,logdatei,geloescht,vorgaenger,kosten_geplant,artikel_geplant,auftragid,abgerechnet)
|
||||
VALUES('','{$this->adresse}','{$this->aufgabe}','{$this->beschreibung}','{$this->projekt}','{$this->zeit_geplant}','{$this->kostenstelle}','{$this->status}','{$this->abgabe}','{$this->abgenommen}','{$this->abgenommen_von}','{$this->abgenommen_bemerkung}','{$this->initiator}','{$this->art}','{$this->abgabedatum}','{$this->logdatei}','{$this->geloescht}','{$this->vorgaenger}','{$this->kosten_geplant}','{$this->artikel_geplant}','{$this->auftragid}','{$this->abgerechnet}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE arbeitspaket SET
|
||||
adresse='{$this->adresse}',
|
||||
aufgabe='{$this->aufgabe}',
|
||||
beschreibung='{$this->beschreibung}',
|
||||
projekt='{$this->projekt}',
|
||||
zeit_geplant='{$this->zeit_geplant}',
|
||||
kostenstelle='{$this->kostenstelle}',
|
||||
status='{$this->status}',
|
||||
abgabe='{$this->abgabe}',
|
||||
abgenommen='{$this->abgenommen}',
|
||||
abgenommen_von='{$this->abgenommen_von}',
|
||||
abgenommen_bemerkung='{$this->abgenommen_bemerkung}',
|
||||
initiator='{$this->initiator}',
|
||||
art='{$this->art}',
|
||||
abgabedatum='{$this->abgabedatum}',
|
||||
logdatei='{$this->logdatei}',
|
||||
geloescht='{$this->geloescht}',
|
||||
vorgaenger='{$this->vorgaenger}',
|
||||
kosten_geplant='{$this->kosten_geplant}',
|
||||
artikel_geplant='{$this->artikel_geplant}',
|
||||
auftragid='{$this->auftragid}',
|
||||
abgerechnet='{$this->abgerechnet}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM arbeitspaket WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->adresse="";
|
||||
$this->aufgabe="";
|
||||
$this->beschreibung="";
|
||||
$this->projekt="";
|
||||
$this->zeit_geplant="";
|
||||
$this->kostenstelle="";
|
||||
$this->status="";
|
||||
$this->abgabe="";
|
||||
$this->abgenommen="";
|
||||
$this->abgenommen_von="";
|
||||
$this->abgenommen_bemerkung="";
|
||||
$this->initiator="";
|
||||
$this->art="";
|
||||
$this->abgabedatum="";
|
||||
$this->logdatei="";
|
||||
$this->geloescht="";
|
||||
$this->vorgaenger="";
|
||||
$this->kosten_geplant="";
|
||||
$this->artikel_geplant="";
|
||||
$this->auftragid="";
|
||||
$this->abgerechnet="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetAufgabe($value) { $this->aufgabe=$value; }
|
||||
function GetAufgabe() { return $this->aufgabe; }
|
||||
function SetBeschreibung($value) { $this->beschreibung=$value; }
|
||||
function GetBeschreibung() { return $this->beschreibung; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetZeit_Geplant($value) { $this->zeit_geplant=$value; }
|
||||
function GetZeit_Geplant() { return $this->zeit_geplant; }
|
||||
function SetKostenstelle($value) { $this->kostenstelle=$value; }
|
||||
function GetKostenstelle() { return $this->kostenstelle; }
|
||||
function SetStatus($value) { $this->status=$value; }
|
||||
function GetStatus() { return $this->status; }
|
||||
function SetAbgabe($value) { $this->abgabe=$value; }
|
||||
function GetAbgabe() { return $this->abgabe; }
|
||||
function SetAbgenommen($value) { $this->abgenommen=$value; }
|
||||
function GetAbgenommen() { return $this->abgenommen; }
|
||||
function SetAbgenommen_Von($value) { $this->abgenommen_von=$value; }
|
||||
function GetAbgenommen_Von() { return $this->abgenommen_von; }
|
||||
function SetAbgenommen_Bemerkung($value) { $this->abgenommen_bemerkung=$value; }
|
||||
function GetAbgenommen_Bemerkung() { return $this->abgenommen_bemerkung; }
|
||||
function SetInitiator($value) { $this->initiator=$value; }
|
||||
function GetInitiator() { return $this->initiator; }
|
||||
function SetArt($value) { $this->art=$value; }
|
||||
function GetArt() { return $this->art; }
|
||||
function SetAbgabedatum($value) { $this->abgabedatum=$value; }
|
||||
function GetAbgabedatum() { return $this->abgabedatum; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
function SetGeloescht($value) { $this->geloescht=$value; }
|
||||
function GetGeloescht() { return $this->geloescht; }
|
||||
function SetVorgaenger($value) { $this->vorgaenger=$value; }
|
||||
function GetVorgaenger() { return $this->vorgaenger; }
|
||||
function SetKosten_Geplant($value) { $this->kosten_geplant=$value; }
|
||||
function GetKosten_Geplant() { return $this->kosten_geplant; }
|
||||
function SetArtikel_Geplant($value) { $this->artikel_geplant=$value; }
|
||||
function GetArtikel_Geplant() { return $this->artikel_geplant; }
|
||||
function SetAuftragid($value) { $this->auftragid=$value; }
|
||||
function GetAuftragid() { return $this->auftragid; }
|
||||
function SetAbgerechnet($value) { $this->abgerechnet=$value; }
|
||||
function GetAbgerechnet() { return $this->abgerechnet; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,143 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenArtikel_Artikelgruppe
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $artikel;
|
||||
private $artikelgruppe;
|
||||
private $position;
|
||||
private $geloescht;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM artikel_artikelgruppe WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->artikel=$result[artikel];
|
||||
$this->artikelgruppe=$result[artikelgruppe];
|
||||
$this->position=$result[position];
|
||||
$this->geloescht=$result[geloescht];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO artikel_artikelgruppe (id,artikel,artikelgruppe,position,geloescht)
|
||||
VALUES('','{$this->artikel}','{$this->artikelgruppe}','{$this->position}','{$this->geloescht}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE artikel_artikelgruppe SET
|
||||
artikel='{$this->artikel}',
|
||||
artikelgruppe='{$this->artikelgruppe}',
|
||||
position='{$this->position}',
|
||||
geloescht='{$this->geloescht}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM artikel_artikelgruppe WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->artikel="";
|
||||
$this->artikelgruppe="";
|
||||
$this->position="";
|
||||
$this->geloescht="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetArtikel($value) { $this->artikel=$value; }
|
||||
function GetArtikel() { return $this->artikel; }
|
||||
function SetArtikelgruppe($value) { $this->artikelgruppe=$value; }
|
||||
function GetArtikelgruppe() { return $this->artikelgruppe; }
|
||||
function SetPosition($value) { $this->position=$value; }
|
||||
function GetPosition() { return $this->position; }
|
||||
function SetGeloescht($value) { $this->geloescht=$value; }
|
||||
function GetGeloescht() { return $this->geloescht; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,137 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenArtikel_Shop
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $artikel;
|
||||
private $shop;
|
||||
private $checksum;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM artikel_shop WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->artikel=$result[artikel];
|
||||
$this->shop=$result[shop];
|
||||
$this->checksum=$result[checksum];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO artikel_shop (id,artikel,shop,checksum)
|
||||
VALUES('','{$this->artikel}','{$this->shop}','{$this->checksum}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE artikel_shop SET
|
||||
artikel='{$this->artikel}',
|
||||
shop='{$this->shop}',
|
||||
checksum='{$this->checksum}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM artikel_shop WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->artikel="";
|
||||
$this->shop="";
|
||||
$this->checksum="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetArtikel($value) { $this->artikel=$value; }
|
||||
function GetArtikel() { return $this->artikel; }
|
||||
function SetShop($value) { $this->shop=$value; }
|
||||
function GetShop() { return $this->shop; }
|
||||
function SetChecksum($value) { $this->checksum=$value; }
|
||||
function GetChecksum() { return $this->checksum; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,149 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenArtikeleigenschaften
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $artikel;
|
||||
private $name;
|
||||
private $projekt;
|
||||
private $geloescht;
|
||||
private $typ;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM artikeleigenschaften WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->artikel=$result['artikel'];
|
||||
$this->name=$result['name'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->geloescht=$result['geloescht'];
|
||||
$this->typ=$result['typ'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO artikeleigenschaften (id,artikel,name,projekt,geloescht,typ)
|
||||
VALUES('','{$this->artikel}','{$this->name}','{$this->projekt}','{$this->geloescht}','{$this->typ}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE artikeleigenschaften SET
|
||||
artikel='{$this->artikel}',
|
||||
name='{$this->name}',
|
||||
projekt='{$this->projekt}',
|
||||
geloescht='{$this->geloescht}',
|
||||
typ='{$this->typ}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM artikeleigenschaften WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->artikel="";
|
||||
$this->name="";
|
||||
$this->projekt="";
|
||||
$this->geloescht="";
|
||||
$this->typ="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetArtikel($value) { $this->artikel=$value; }
|
||||
function GetArtikel() { return $this->artikel; }
|
||||
function SetName($value) { $this->name=$value; }
|
||||
function GetName() { return $this->name; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetGeloescht($value) { $this->geloescht=$value; }
|
||||
function GetGeloescht() { return $this->geloescht; }
|
||||
function SetTyp($value) { $this->typ=$value; }
|
||||
function GetTyp() { return $this->typ; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,130 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenArtikeleinheit
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $einheit_de;
|
||||
private $internebemerkung;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM `artikeleinheit` WHERE (`id` = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->einheit_de=$result['einheit_de'];
|
||||
$this->internebemerkung=$result['internebemerkung'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO `artikeleinheit` (`id`,`einheit_de`,`internebemerkung`)
|
||||
VALUES(NULL,'{$this->einheit_de}','{$this->internebemerkung}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
$sql = "UPDATE `artikeleinheit` SET
|
||||
`einheit_de`='{$this->einheit_de}',
|
||||
`internebemerkung`='{$this->internebemerkung}'
|
||||
WHERE (`id`='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id='')
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM `artikeleinheit` WHERE (`id`='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id='';
|
||||
$this->einheit_de='';
|
||||
$this->internebemerkung='';
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = '';
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
public function SetId($value) { $this->id=$value; }
|
||||
public function GetId() { return $this->id; }
|
||||
public function SetEinheit_De($value) { $this->einheit_de=$value; }
|
||||
public function GetEinheit_De() { return $this->einheit_de; }
|
||||
public function SetInternebemerkung($value) { $this->internebemerkung=$value; }
|
||||
public function GetInternebemerkung() { return $this->internebemerkung; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,155 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenArtikelgruppen
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $bezeichnung;
|
||||
private $bezeichnung_en;
|
||||
private $shop;
|
||||
private $aktiv;
|
||||
private $beschreibung_de;
|
||||
private $beschreibung_en;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM artikelgruppen WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->bezeichnung=$result[bezeichnung];
|
||||
$this->bezeichnung_en=$result[bezeichnung_en];
|
||||
$this->shop=$result[shop];
|
||||
$this->aktiv=$result[aktiv];
|
||||
$this->beschreibung_de=$result[beschreibung_de];
|
||||
$this->beschreibung_en=$result[beschreibung_en];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO artikelgruppen (id,bezeichnung,bezeichnung_en,shop,aktiv,beschreibung_de,beschreibung_en)
|
||||
VALUES('','{$this->bezeichnung}','{$this->bezeichnung_en}','{$this->shop}','{$this->aktiv}','{$this->beschreibung_de}','{$this->beschreibung_en}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE artikelgruppen SET
|
||||
bezeichnung='{$this->bezeichnung}',
|
||||
bezeichnung_en='{$this->bezeichnung_en}',
|
||||
shop='{$this->shop}',
|
||||
aktiv='{$this->aktiv}',
|
||||
beschreibung_de='{$this->beschreibung_de}',
|
||||
beschreibung_en='{$this->beschreibung_en}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM artikelgruppen WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->bezeichnung="";
|
||||
$this->bezeichnung_en="";
|
||||
$this->shop="";
|
||||
$this->aktiv="";
|
||||
$this->beschreibung_de="";
|
||||
$this->beschreibung_en="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
function GetBezeichnung() { return $this->bezeichnung; }
|
||||
function SetBezeichnung_En($value) { $this->bezeichnung_en=$value; }
|
||||
function GetBezeichnung_En() { return $this->bezeichnung_en; }
|
||||
function SetShop($value) { $this->shop=$value; }
|
||||
function GetShop() { return $this->shop; }
|
||||
function SetAktiv($value) { $this->aktiv=$value; }
|
||||
function GetAktiv() { return $this->aktiv; }
|
||||
function SetBeschreibung_De($value) { $this->beschreibung_de=$value; }
|
||||
function GetBeschreibung_De() { return $this->beschreibung_de; }
|
||||
function SetBeschreibung_En($value) { $this->beschreibung_en=$value; }
|
||||
function GetBeschreibung_En() { return $this->beschreibung_en; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenArtikelkategorien
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $bezeichnung;
|
||||
private $next_nummer;
|
||||
private $projekt;
|
||||
private $geloescht;
|
||||
private $externenummer;
|
||||
private $parent;
|
||||
private $steuer_erloese_inland_normal;
|
||||
private $steuer_aufwendung_inland_normal;
|
||||
private $steuer_erloese_inland_ermaessigt;
|
||||
private $steuer_aufwendung_inland_ermaessigt;
|
||||
private $steuer_erloese_inland_steuerfrei;
|
||||
private $steuer_aufwendung_inland_steuerfrei;
|
||||
private $steuer_erloese_inland_innergemeinschaftlich;
|
||||
private $steuer_aufwendung_inland_innergemeinschaftlich;
|
||||
private $steuer_erloese_inland_eunormal;
|
||||
private $steuer_erloese_inland_nichtsteuerbar;
|
||||
private $steuer_erloese_inland_euermaessigt;
|
||||
private $steuer_aufwendung_inland_nichtsteuerbar;
|
||||
private $steuer_aufwendung_inland_eunormal;
|
||||
private $steuer_aufwendung_inland_euermaessigt;
|
||||
private $steuer_erloese_inland_export;
|
||||
private $steuer_aufwendung_inland_import;
|
||||
private $steuertext_innergemeinschaftlich;
|
||||
private $steuertext_export;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM artikelkategorien WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->bezeichnung=$result['bezeichnung'];
|
||||
$this->next_nummer=$result['next_nummer'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->geloescht=$result['geloescht'];
|
||||
$this->externenummer=$result['externenummer'];
|
||||
$this->parent=$result['parent'];
|
||||
$this->steuer_erloese_inland_normal=$result['steuer_erloese_inland_normal'];
|
||||
$this->steuer_aufwendung_inland_normal=$result['steuer_aufwendung_inland_normal'];
|
||||
$this->steuer_erloese_inland_ermaessigt=$result['steuer_erloese_inland_ermaessigt'];
|
||||
$this->steuer_aufwendung_inland_ermaessigt=$result['steuer_aufwendung_inland_ermaessigt'];
|
||||
$this->steuer_erloese_inland_steuerfrei=$result['steuer_erloese_inland_steuerfrei'];
|
||||
$this->steuer_aufwendung_inland_steuerfrei=$result['steuer_aufwendung_inland_steuerfrei'];
|
||||
$this->steuer_erloese_inland_innergemeinschaftlich=$result['steuer_erloese_inland_innergemeinschaftlich'];
|
||||
$this->steuer_aufwendung_inland_innergemeinschaftlich=$result['steuer_aufwendung_inland_innergemeinschaftlich'];
|
||||
$this->steuer_erloese_inland_eunormal=$result['steuer_erloese_inland_eunormal'];
|
||||
$this->steuer_erloese_inland_nichtsteuerbar=$result['steuer_erloese_inland_nichtsteuerbar'];
|
||||
$this->steuer_erloese_inland_euermaessigt=$result['steuer_erloese_inland_euermaessigt'];
|
||||
$this->steuer_aufwendung_inland_nichtsteuerbar=$result['steuer_aufwendung_inland_nichtsteuerbar'];
|
||||
$this->steuer_aufwendung_inland_eunormal=$result['steuer_aufwendung_inland_eunormal'];
|
||||
$this->steuer_aufwendung_inland_euermaessigt=$result['steuer_aufwendung_inland_euermaessigt'];
|
||||
$this->steuer_erloese_inland_export=$result['steuer_erloese_inland_export'];
|
||||
$this->steuer_aufwendung_inland_import=$result['steuer_aufwendung_inland_import'];
|
||||
$this->steuertext_innergemeinschaftlich=$result['steuertext_innergemeinschaftlich'];
|
||||
$this->steuertext_export=$result['steuertext_export'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO artikelkategorien (id,bezeichnung,next_nummer,projekt,geloescht,externenummer,parent,steuer_erloese_inland_normal,steuer_aufwendung_inland_normal,steuer_erloese_inland_ermaessigt,steuer_aufwendung_inland_ermaessigt,steuer_erloese_inland_steuerfrei,steuer_aufwendung_inland_steuerfrei,steuer_erloese_inland_innergemeinschaftlich,steuer_aufwendung_inland_innergemeinschaftlich,steuer_erloese_inland_eunormal,steuer_erloese_inland_nichtsteuerbar,steuer_erloese_inland_euermaessigt,steuer_aufwendung_inland_nichtsteuerbar,steuer_aufwendung_inland_eunormal,steuer_aufwendung_inland_euermaessigt,steuer_erloese_inland_export,steuer_aufwendung_inland_import,steuertext_innergemeinschaftlich,steuertext_export)
|
||||
VALUES('','{$this->bezeichnung}','{$this->next_nummer}','{$this->projekt}','{$this->geloescht}','{$this->externenummer}','{$this->parent}','{$this->steuer_erloese_inland_normal}','{$this->steuer_aufwendung_inland_normal}','{$this->steuer_erloese_inland_ermaessigt}','{$this->steuer_aufwendung_inland_ermaessigt}','{$this->steuer_erloese_inland_steuerfrei}','{$this->steuer_aufwendung_inland_steuerfrei}','{$this->steuer_erloese_inland_innergemeinschaftlich}','{$this->steuer_aufwendung_inland_innergemeinschaftlich}','{$this->steuer_erloese_inland_eunormal}','{$this->steuer_erloese_inland_nichtsteuerbar}','{$this->steuer_erloese_inland_euermaessigt}','{$this->steuer_aufwendung_inland_nichtsteuerbar}','{$this->steuer_aufwendung_inland_eunormal}','{$this->steuer_aufwendung_inland_euermaessigt}','{$this->steuer_erloese_inland_export}','{$this->steuer_aufwendung_inland_import}','{$this->steuertext_innergemeinschaftlich}','{$this->steuertext_export}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE artikelkategorien SET
|
||||
bezeichnung='{$this->bezeichnung}',
|
||||
next_nummer='{$this->next_nummer}',
|
||||
projekt='{$this->projekt}',
|
||||
geloescht='{$this->geloescht}',
|
||||
externenummer='{$this->externenummer}',
|
||||
parent='{$this->parent}',
|
||||
steuer_erloese_inland_normal='{$this->steuer_erloese_inland_normal}',
|
||||
steuer_aufwendung_inland_normal='{$this->steuer_aufwendung_inland_normal}',
|
||||
steuer_erloese_inland_ermaessigt='{$this->steuer_erloese_inland_ermaessigt}',
|
||||
steuer_aufwendung_inland_ermaessigt='{$this->steuer_aufwendung_inland_ermaessigt}',
|
||||
steuer_erloese_inland_steuerfrei='{$this->steuer_erloese_inland_steuerfrei}',
|
||||
steuer_aufwendung_inland_steuerfrei='{$this->steuer_aufwendung_inland_steuerfrei}',
|
||||
steuer_erloese_inland_innergemeinschaftlich='{$this->steuer_erloese_inland_innergemeinschaftlich}',
|
||||
steuer_aufwendung_inland_innergemeinschaftlich='{$this->steuer_aufwendung_inland_innergemeinschaftlich}',
|
||||
steuer_erloese_inland_eunormal='{$this->steuer_erloese_inland_eunormal}',
|
||||
steuer_erloese_inland_nichtsteuerbar='{$this->steuer_erloese_inland_nichtsteuerbar}',
|
||||
steuer_erloese_inland_euermaessigt='{$this->steuer_erloese_inland_euermaessigt}',
|
||||
steuer_aufwendung_inland_nichtsteuerbar='{$this->steuer_aufwendung_inland_nichtsteuerbar}',
|
||||
steuer_aufwendung_inland_eunormal='{$this->steuer_aufwendung_inland_eunormal}',
|
||||
steuer_aufwendung_inland_euermaessigt='{$this->steuer_aufwendung_inland_euermaessigt}',
|
||||
steuer_erloese_inland_export='{$this->steuer_erloese_inland_export}',
|
||||
steuer_aufwendung_inland_import='{$this->steuer_aufwendung_inland_import}',
|
||||
steuertext_innergemeinschaftlich='{$this->steuertext_innergemeinschaftlich}',
|
||||
steuertext_export='{$this->steuertext_export}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM artikelkategorien WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->bezeichnung="";
|
||||
$this->next_nummer="";
|
||||
$this->projekt="";
|
||||
$this->geloescht="";
|
||||
$this->externenummer="";
|
||||
$this->parent="";
|
||||
$this->steuer_erloese_inland_normal="";
|
||||
$this->steuer_aufwendung_inland_normal="";
|
||||
$this->steuer_erloese_inland_ermaessigt="";
|
||||
$this->steuer_aufwendung_inland_ermaessigt="";
|
||||
$this->steuer_erloese_inland_steuerfrei="";
|
||||
$this->steuer_aufwendung_inland_steuerfrei="";
|
||||
$this->steuer_erloese_inland_innergemeinschaftlich="";
|
||||
$this->steuer_aufwendung_inland_innergemeinschaftlich="";
|
||||
$this->steuer_erloese_inland_eunormal="";
|
||||
$this->steuer_erloese_inland_nichtsteuerbar="";
|
||||
$this->steuer_erloese_inland_euermaessigt="";
|
||||
$this->steuer_aufwendung_inland_nichtsteuerbar="";
|
||||
$this->steuer_aufwendung_inland_eunormal="";
|
||||
$this->steuer_aufwendung_inland_euermaessigt="";
|
||||
$this->steuer_erloese_inland_export="";
|
||||
$this->steuer_aufwendung_inland_import="";
|
||||
$this->steuertext_innergemeinschaftlich="";
|
||||
$this->steuertext_export="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
function GetBezeichnung() { return $this->bezeichnung; }
|
||||
function SetNext_Nummer($value) { $this->next_nummer=$value; }
|
||||
function GetNext_Nummer() { return $this->next_nummer; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetGeloescht($value) { $this->geloescht=$value; }
|
||||
function GetGeloescht() { return $this->geloescht; }
|
||||
function SetExternenummer($value) { $this->externenummer=$value; }
|
||||
function GetExternenummer() { return $this->externenummer; }
|
||||
function SetParent($value) { $this->parent=$value; }
|
||||
function GetParent() { return $this->parent; }
|
||||
function SetSteuer_Erloese_Inland_Normal($value) { $this->steuer_erloese_inland_normal=$value; }
|
||||
function GetSteuer_Erloese_Inland_Normal() { return $this->steuer_erloese_inland_normal; }
|
||||
function SetSteuer_Aufwendung_Inland_Normal($value) { $this->steuer_aufwendung_inland_normal=$value; }
|
||||
function GetSteuer_Aufwendung_Inland_Normal() { return $this->steuer_aufwendung_inland_normal; }
|
||||
function SetSteuer_Erloese_Inland_Ermaessigt($value) { $this->steuer_erloese_inland_ermaessigt=$value; }
|
||||
function GetSteuer_Erloese_Inland_Ermaessigt() { return $this->steuer_erloese_inland_ermaessigt; }
|
||||
function SetSteuer_Aufwendung_Inland_Ermaessigt($value) { $this->steuer_aufwendung_inland_ermaessigt=$value; }
|
||||
function GetSteuer_Aufwendung_Inland_Ermaessigt() { return $this->steuer_aufwendung_inland_ermaessigt; }
|
||||
function SetSteuer_Erloese_Inland_Steuerfrei($value) { $this->steuer_erloese_inland_steuerfrei=$value; }
|
||||
function GetSteuer_Erloese_Inland_Steuerfrei() { return $this->steuer_erloese_inland_steuerfrei; }
|
||||
function SetSteuer_Aufwendung_Inland_Steuerfrei($value) { $this->steuer_aufwendung_inland_steuerfrei=$value; }
|
||||
function GetSteuer_Aufwendung_Inland_Steuerfrei() { return $this->steuer_aufwendung_inland_steuerfrei; }
|
||||
function SetSteuer_Erloese_Inland_Innergemeinschaftlich($value) { $this->steuer_erloese_inland_innergemeinschaftlich=$value; }
|
||||
function GetSteuer_Erloese_Inland_Innergemeinschaftlich() { return $this->steuer_erloese_inland_innergemeinschaftlich; }
|
||||
function SetSteuer_Aufwendung_Inland_Innergemeinschaftlich($value) { $this->steuer_aufwendung_inland_innergemeinschaftlich=$value; }
|
||||
function GetSteuer_Aufwendung_Inland_Innergemeinschaftlich() { return $this->steuer_aufwendung_inland_innergemeinschaftlich; }
|
||||
function SetSteuer_Erloese_Inland_Eunormal($value) { $this->steuer_erloese_inland_eunormal=$value; }
|
||||
function GetSteuer_Erloese_Inland_Eunormal() { return $this->steuer_erloese_inland_eunormal; }
|
||||
function SetSteuer_Erloese_Inland_Nichtsteuerbar($value) { $this->steuer_erloese_inland_nichtsteuerbar=$value; }
|
||||
function GetSteuer_Erloese_Inland_Nichtsteuerbar() { return $this->steuer_erloese_inland_nichtsteuerbar; }
|
||||
function SetSteuer_Erloese_Inland_Euermaessigt($value) { $this->steuer_erloese_inland_euermaessigt=$value; }
|
||||
function GetSteuer_Erloese_Inland_Euermaessigt() { return $this->steuer_erloese_inland_euermaessigt; }
|
||||
function SetSteuer_Aufwendung_Inland_Nichtsteuerbar($value) { $this->steuer_aufwendung_inland_nichtsteuerbar=$value; }
|
||||
function GetSteuer_Aufwendung_Inland_Nichtsteuerbar() { return $this->steuer_aufwendung_inland_nichtsteuerbar; }
|
||||
function SetSteuer_Aufwendung_Inland_Eunormal($value) { $this->steuer_aufwendung_inland_eunormal=$value; }
|
||||
function GetSteuer_Aufwendung_Inland_Eunormal() { return $this->steuer_aufwendung_inland_eunormal; }
|
||||
function SetSteuer_Aufwendung_Inland_Euermaessigt($value) { $this->steuer_aufwendung_inland_euermaessigt=$value; }
|
||||
function GetSteuer_Aufwendung_Inland_Euermaessigt() { return $this->steuer_aufwendung_inland_euermaessigt; }
|
||||
function SetSteuer_Erloese_Inland_Export($value) { $this->steuer_erloese_inland_export=$value; }
|
||||
function GetSteuer_Erloese_Inland_Export() { return $this->steuer_erloese_inland_export; }
|
||||
function SetSteuer_Aufwendung_Inland_Import($value) { $this->steuer_aufwendung_inland_import=$value; }
|
||||
function GetSteuer_Aufwendung_Inland_Import() { return $this->steuer_aufwendung_inland_import; }
|
||||
function SetSteuertext_Innergemeinschaftlich($value) { $this->steuertext_innergemeinschaftlich=$value; }
|
||||
function GetSteuertext_Innergemeinschaftlich() { return $this->steuertext_innergemeinschaftlich; }
|
||||
function SetSteuertext_Export($value) { $this->steuertext_export=$value; }
|
||||
function GetSteuertext_Export() { return $this->steuertext_export; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenArtikeloptionengruppe
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $name;
|
||||
private $name_de;
|
||||
private $name_en;
|
||||
private $artikel;
|
||||
private $bearbeiter;
|
||||
private $geloescht;
|
||||
private $created;
|
||||
private $projekt;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM artikeloptionengruppe WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->name=$result['name'];
|
||||
$this->name_de=$result['name_de'];
|
||||
$this->name_en=$result['name_en'];
|
||||
$this->artikel=$result['artikel'];
|
||||
$this->bearbeiter=$result['bearbeiter'];
|
||||
$this->geloescht=$result['geloescht'];
|
||||
$this->created=$result['created'];
|
||||
$this->projekt=$result['projekt'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO artikeloptionengruppe (id,name,name_de,name_en,artikel,bearbeiter,geloescht,created,projekt)
|
||||
VALUES('','{$this->name}','{$this->name_de}','{$this->name_en}','{$this->artikel}','{$this->bearbeiter}','{$this->geloescht}','{$this->created}','{$this->projekt}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE artikeloptionengruppe SET
|
||||
name='{$this->name}',
|
||||
name_de='{$this->name_de}',
|
||||
name_en='{$this->name_en}',
|
||||
artikel='{$this->artikel}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
geloescht='{$this->geloescht}',
|
||||
created='{$this->created}',
|
||||
projekt='{$this->projekt}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM artikeloptionengruppe WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->name="";
|
||||
$this->name_de="";
|
||||
$this->name_en="";
|
||||
$this->artikel="";
|
||||
$this->bearbeiter="";
|
||||
$this->geloescht="";
|
||||
$this->created="";
|
||||
$this->projekt="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetName($value) { $this->name=$value; }
|
||||
function GetName() { return $this->name; }
|
||||
function SetName_De($value) { $this->name_de=$value; }
|
||||
function GetName_De() { return $this->name_de; }
|
||||
function SetName_En($value) { $this->name_en=$value; }
|
||||
function GetName_En() { return $this->name_en; }
|
||||
function SetArtikel($value) { $this->artikel=$value; }
|
||||
function GetArtikel() { return $this->artikel; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetGeloescht($value) { $this->geloescht=$value; }
|
||||
function GetGeloescht() { return $this->geloescht; }
|
||||
function SetCreated($value) { $this->created=$value; }
|
||||
function GetCreated() { return $this->created; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,353 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenAufgabe
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $adresse;
|
||||
private $aufgabe;
|
||||
private $beschreibung;
|
||||
private $prio;
|
||||
private $projekt;
|
||||
private $kostenstelle;
|
||||
private $initiator;
|
||||
private $angelegt_am;
|
||||
private $startdatum;
|
||||
private $startzeit;
|
||||
private $intervall_tage;
|
||||
private $stunden;
|
||||
private $abgabe_bis;
|
||||
private $abgeschlossen;
|
||||
private $abgeschlossen_am;
|
||||
private $sonstiges;
|
||||
private $bearbeiter;
|
||||
private $logdatei;
|
||||
private $startseite;
|
||||
private $oeffentlich;
|
||||
private $emailerinnerung;
|
||||
private $emailerinnerung_tage;
|
||||
private $note_x;
|
||||
private $note_y;
|
||||
private $note_z;
|
||||
private $note_color;
|
||||
private $pinwand;
|
||||
private $vorankuendigung;
|
||||
private $status;
|
||||
private $ganztags;
|
||||
private $zeiterfassung_pflicht;
|
||||
private $zeiterfassung_abrechnung;
|
||||
private $kunde;
|
||||
private $pinwand_id;
|
||||
private $sort;
|
||||
private $abgabe_bis_zeit;
|
||||
private $email_gesendet_vorankuendigung;
|
||||
private $email_gesendet;
|
||||
private $teilprojekt;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM aufgabe WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->adresse=$result['adresse'];
|
||||
$this->aufgabe=$result['aufgabe'];
|
||||
$this->beschreibung=$result['beschreibung'];
|
||||
$this->prio=$result['prio'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->kostenstelle=$result['kostenstelle'];
|
||||
$this->initiator=$result['initiator'];
|
||||
$this->angelegt_am=$result['angelegt_am'];
|
||||
$this->startdatum=$result['startdatum'];
|
||||
$this->startzeit=$result['startzeit'];
|
||||
$this->intervall_tage=$result['intervall_tage'];
|
||||
$this->stunden=$result['stunden'];
|
||||
$this->abgabe_bis=$result['abgabe_bis'];
|
||||
$this->abgeschlossen=$result['abgeschlossen'];
|
||||
$this->abgeschlossen_am=$result['abgeschlossen_am'];
|
||||
$this->sonstiges=$result['sonstiges'];
|
||||
$this->bearbeiter=$result['bearbeiter'];
|
||||
$this->logdatei=$result['logdatei'];
|
||||
$this->startseite=$result['startseite'];
|
||||
$this->oeffentlich=$result['oeffentlich'];
|
||||
$this->emailerinnerung=$result['emailerinnerung'];
|
||||
$this->emailerinnerung_tage=$result['emailerinnerung_tage'];
|
||||
$this->note_x=$result['note_x'];
|
||||
$this->note_y=$result['note_y'];
|
||||
$this->note_z=$result['note_z'];
|
||||
$this->note_color=$result['note_color'];
|
||||
$this->pinwand=$result['pinwand'];
|
||||
$this->vorankuendigung=$result['vorankuendigung'];
|
||||
$this->status=$result['status'];
|
||||
$this->ganztags=$result['ganztags'];
|
||||
$this->zeiterfassung_pflicht=$result['zeiterfassung_pflicht'];
|
||||
$this->zeiterfassung_abrechnung=$result['zeiterfassung_abrechnung'];
|
||||
$this->kunde=$result['kunde'];
|
||||
$this->pinwand_id=$result['pinwand_id'];
|
||||
$this->sort=$result['sort'];
|
||||
$this->abgabe_bis_zeit=$result['abgabe_bis_zeit'];
|
||||
$this->email_gesendet_vorankuendigung=$result['email_gesendet_vorankuendigung'];
|
||||
$this->email_gesendet=$result['email_gesendet'];
|
||||
$this->teilprojekt=$result['teilprojekt'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO aufgabe (id,adresse,aufgabe,beschreibung,prio,projekt,kostenstelle,initiator,angelegt_am,startdatum,startzeit,intervall_tage,stunden,abgabe_bis,abgeschlossen,abgeschlossen_am,sonstiges,bearbeiter,logdatei,startseite,oeffentlich,emailerinnerung,emailerinnerung_tage,note_x,note_y,note_z,note_color,pinwand,vorankuendigung,status,ganztags,zeiterfassung_pflicht,zeiterfassung_abrechnung,kunde,pinwand_id,sort,abgabe_bis_zeit,email_gesendet_vorankuendigung,email_gesendet,teilprojekt)
|
||||
VALUES('','{$this->adresse}','{$this->aufgabe}','{$this->beschreibung}','{$this->prio}','{$this->projekt}','{$this->kostenstelle}','{$this->initiator}','{$this->angelegt_am}','{$this->startdatum}','{$this->startzeit}','{$this->intervall_tage}','{$this->stunden}','{$this->abgabe_bis}','{$this->abgeschlossen}','{$this->abgeschlossen_am}','{$this->sonstiges}','{$this->bearbeiter}','{$this->logdatei}','{$this->startseite}','{$this->oeffentlich}','{$this->emailerinnerung}','{$this->emailerinnerung_tage}','{$this->note_x}','{$this->note_y}','{$this->note_z}','{$this->note_color}','{$this->pinwand}','{$this->vorankuendigung}','{$this->status}','{$this->ganztags}','{$this->zeiterfassung_pflicht}','{$this->zeiterfassung_abrechnung}','{$this->kunde}','{$this->pinwand_id}','{$this->sort}','{$this->abgabe_bis_zeit}','{$this->email_gesendet_vorankuendigung}','{$this->email_gesendet}','{$this->teilprojekt}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE aufgabe SET
|
||||
adresse='{$this->adresse}',
|
||||
aufgabe='{$this->aufgabe}',
|
||||
beschreibung='{$this->beschreibung}',
|
||||
prio='{$this->prio}',
|
||||
projekt='{$this->projekt}',
|
||||
kostenstelle='{$this->kostenstelle}',
|
||||
initiator='{$this->initiator}',
|
||||
angelegt_am='{$this->angelegt_am}',
|
||||
startdatum='{$this->startdatum}',
|
||||
startzeit='{$this->startzeit}',
|
||||
intervall_tage='{$this->intervall_tage}',
|
||||
stunden='{$this->stunden}',
|
||||
abgabe_bis='{$this->abgabe_bis}',
|
||||
abgeschlossen='{$this->abgeschlossen}',
|
||||
abgeschlossen_am='{$this->abgeschlossen_am}',
|
||||
sonstiges='{$this->sonstiges}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
logdatei='{$this->logdatei}',
|
||||
startseite='{$this->startseite}',
|
||||
oeffentlich='{$this->oeffentlich}',
|
||||
emailerinnerung='{$this->emailerinnerung}',
|
||||
emailerinnerung_tage='{$this->emailerinnerung_tage}',
|
||||
note_x='{$this->note_x}',
|
||||
note_y='{$this->note_y}',
|
||||
note_z='{$this->note_z}',
|
||||
note_color='{$this->note_color}',
|
||||
pinwand='{$this->pinwand}',
|
||||
vorankuendigung='{$this->vorankuendigung}',
|
||||
status='{$this->status}',
|
||||
ganztags='{$this->ganztags}',
|
||||
zeiterfassung_pflicht='{$this->zeiterfassung_pflicht}',
|
||||
zeiterfassung_abrechnung='{$this->zeiterfassung_abrechnung}',
|
||||
kunde='{$this->kunde}',
|
||||
pinwand_id='{$this->pinwand_id}',
|
||||
sort='{$this->sort}',
|
||||
abgabe_bis_zeit='{$this->abgabe_bis_zeit}',
|
||||
email_gesendet_vorankuendigung='{$this->email_gesendet_vorankuendigung}',
|
||||
email_gesendet='{$this->email_gesendet}',
|
||||
teilprojekt='{$this->teilprojekt}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM aufgabe WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->adresse="";
|
||||
$this->aufgabe="";
|
||||
$this->beschreibung="";
|
||||
$this->prio="";
|
||||
$this->projekt="";
|
||||
$this->kostenstelle="";
|
||||
$this->initiator="";
|
||||
$this->angelegt_am="";
|
||||
$this->startdatum="";
|
||||
$this->startzeit="";
|
||||
$this->intervall_tage="";
|
||||
$this->stunden="";
|
||||
$this->abgabe_bis="";
|
||||
$this->abgeschlossen="";
|
||||
$this->abgeschlossen_am="";
|
||||
$this->sonstiges="";
|
||||
$this->bearbeiter="";
|
||||
$this->logdatei="";
|
||||
$this->startseite="";
|
||||
$this->oeffentlich="";
|
||||
$this->emailerinnerung="";
|
||||
$this->emailerinnerung_tage="";
|
||||
$this->note_x="";
|
||||
$this->note_y="";
|
||||
$this->note_z="";
|
||||
$this->note_color="";
|
||||
$this->pinwand="";
|
||||
$this->vorankuendigung="";
|
||||
$this->status="";
|
||||
$this->ganztags="";
|
||||
$this->zeiterfassung_pflicht="";
|
||||
$this->zeiterfassung_abrechnung="";
|
||||
$this->kunde="";
|
||||
$this->pinwand_id="";
|
||||
$this->sort="";
|
||||
$this->abgabe_bis_zeit="";
|
||||
$this->email_gesendet_vorankuendigung="";
|
||||
$this->email_gesendet="";
|
||||
$this->teilprojekt="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetAufgabe($value) { $this->aufgabe=$value; }
|
||||
function GetAufgabe() { return $this->aufgabe; }
|
||||
function SetBeschreibung($value) { $this->beschreibung=$value; }
|
||||
function GetBeschreibung() { return $this->beschreibung; }
|
||||
function SetPrio($value) { $this->prio=$value; }
|
||||
function GetPrio() { return $this->prio; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetKostenstelle($value) { $this->kostenstelle=$value; }
|
||||
function GetKostenstelle() { return $this->kostenstelle; }
|
||||
function SetInitiator($value) { $this->initiator=$value; }
|
||||
function GetInitiator() { return $this->initiator; }
|
||||
function SetAngelegt_Am($value) { $this->angelegt_am=$value; }
|
||||
function GetAngelegt_Am() { return $this->angelegt_am; }
|
||||
function SetStartdatum($value) { $this->startdatum=$value; }
|
||||
function GetStartdatum() { return $this->startdatum; }
|
||||
function SetStartzeit($value) { $this->startzeit=$value; }
|
||||
function GetStartzeit() { return $this->startzeit; }
|
||||
function SetIntervall_Tage($value) { $this->intervall_tage=$value; }
|
||||
function GetIntervall_Tage() { return $this->intervall_tage; }
|
||||
function SetStunden($value) { $this->stunden=$value; }
|
||||
function GetStunden() { return $this->stunden; }
|
||||
function SetAbgabe_Bis($value) { $this->abgabe_bis=$value; }
|
||||
function GetAbgabe_Bis() { return $this->abgabe_bis; }
|
||||
function SetAbgeschlossen($value) { $this->abgeschlossen=$value; }
|
||||
function GetAbgeschlossen() { return $this->abgeschlossen; }
|
||||
function SetAbgeschlossen_Am($value) { $this->abgeschlossen_am=$value; }
|
||||
function GetAbgeschlossen_Am() { return $this->abgeschlossen_am; }
|
||||
function SetSonstiges($value) { $this->sonstiges=$value; }
|
||||
function GetSonstiges() { return $this->sonstiges; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
function SetStartseite($value) { $this->startseite=$value; }
|
||||
function GetStartseite() { return $this->startseite; }
|
||||
function SetOeffentlich($value) { $this->oeffentlich=$value; }
|
||||
function GetOeffentlich() { return $this->oeffentlich; }
|
||||
function SetEmailerinnerung($value) { $this->emailerinnerung=$value; }
|
||||
function GetEmailerinnerung() { return $this->emailerinnerung; }
|
||||
function SetEmailerinnerung_Tage($value) { $this->emailerinnerung_tage=$value; }
|
||||
function GetEmailerinnerung_Tage() { return $this->emailerinnerung_tage; }
|
||||
function SetNote_X($value) { $this->note_x=$value; }
|
||||
function GetNote_X() { return $this->note_x; }
|
||||
function SetNote_Y($value) { $this->note_y=$value; }
|
||||
function GetNote_Y() { return $this->note_y; }
|
||||
function SetNote_Z($value) { $this->note_z=$value; }
|
||||
function GetNote_Z() { return $this->note_z; }
|
||||
function SetNote_Color($value) { $this->note_color=$value; }
|
||||
function GetNote_Color() { return $this->note_color; }
|
||||
function SetPinwand($value) { $this->pinwand=$value; }
|
||||
function GetPinwand() { return $this->pinwand; }
|
||||
function SetVorankuendigung($value) { $this->vorankuendigung=$value; }
|
||||
function GetVorankuendigung() { return $this->vorankuendigung; }
|
||||
function SetStatus($value) { $this->status=$value; }
|
||||
function GetStatus() { return $this->status; }
|
||||
function SetGanztags($value) { $this->ganztags=$value; }
|
||||
function GetGanztags() { return $this->ganztags; }
|
||||
function SetZeiterfassung_Pflicht($value) { $this->zeiterfassung_pflicht=$value; }
|
||||
function GetZeiterfassung_Pflicht() { return $this->zeiterfassung_pflicht; }
|
||||
function SetZeiterfassung_Abrechnung($value) { $this->zeiterfassung_abrechnung=$value; }
|
||||
function GetZeiterfassung_Abrechnung() { return $this->zeiterfassung_abrechnung; }
|
||||
function SetKunde($value) { $this->kunde=$value; }
|
||||
function GetKunde() { return $this->kunde; }
|
||||
function SetPinwand_Id($value) { $this->pinwand_id=$value; }
|
||||
function GetPinwand_Id() { return $this->pinwand_id; }
|
||||
function SetSort($value) { $this->sort=$value; }
|
||||
function GetSort() { return $this->sort; }
|
||||
function SetAbgabe_Bis_Zeit($value) { $this->abgabe_bis_zeit=$value; }
|
||||
function GetAbgabe_Bis_Zeit() { return $this->abgabe_bis_zeit; }
|
||||
function SetEmail_Gesendet_Vorankuendigung($value) { $this->email_gesendet_vorankuendigung=$value; }
|
||||
function GetEmail_Gesendet_Vorankuendigung() { return $this->email_gesendet_vorankuendigung; }
|
||||
function SetEmail_Gesendet($value) { $this->email_gesendet=$value; }
|
||||
function GetEmail_Gesendet() { return $this->email_gesendet; }
|
||||
function SetTeilprojekt($value) { $this->teilprojekt=$value; }
|
||||
function GetTeilprojekt() { return $this->teilprojekt; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,143 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenAufgabe_Erledigt
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $adresse;
|
||||
private $aufgabe;
|
||||
private $abgeschlossen_am;
|
||||
private $logdatei;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM aufgabe_erledigt WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->adresse=$result[adresse];
|
||||
$this->aufgabe=$result[aufgabe];
|
||||
$this->abgeschlossen_am=$result[abgeschlossen_am];
|
||||
$this->logdatei=$result[logdatei];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO aufgabe_erledigt (id,adresse,aufgabe,abgeschlossen_am,logdatei)
|
||||
VALUES('','{$this->adresse}','{$this->aufgabe}','{$this->abgeschlossen_am}','{$this->logdatei}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE aufgabe_erledigt SET
|
||||
adresse='{$this->adresse}',
|
||||
aufgabe='{$this->aufgabe}',
|
||||
abgeschlossen_am='{$this->abgeschlossen_am}',
|
||||
logdatei='{$this->logdatei}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM aufgabe_erledigt WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->adresse="";
|
||||
$this->aufgabe="";
|
||||
$this->abgeschlossen_am="";
|
||||
$this->logdatei="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetAufgabe($value) { $this->aufgabe=$value; }
|
||||
function GetAufgabe() { return $this->aufgabe; }
|
||||
function SetAbgeschlossen_Am($value) { $this->abgeschlossen_am=$value; }
|
||||
function GetAbgeschlossen_Am() { return $this->abgeschlossen_am; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,719 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenAuftrag_Position
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $auftrag;
|
||||
private $artikel;
|
||||
private $projekt;
|
||||
private $bezeichnung;
|
||||
private $beschreibung;
|
||||
private $internerkommentar;
|
||||
private $nummer;
|
||||
private $menge;
|
||||
private $preis;
|
||||
private $waehrung;
|
||||
private $lieferdatum;
|
||||
private $vpe;
|
||||
private $sort;
|
||||
private $status;
|
||||
private $umsatzsteuer;
|
||||
private $bemerkung;
|
||||
private $geliefert;
|
||||
private $geliefert_menge;
|
||||
private $explodiert;
|
||||
private $explodiert_parent;
|
||||
private $logdatei;
|
||||
private $punkte;
|
||||
private $bonuspunkte;
|
||||
private $mlmdirektpraemie;
|
||||
private $keinrabatterlaubt;
|
||||
private $grundrabatt;
|
||||
private $rabattsync;
|
||||
private $rabatt1;
|
||||
private $rabatt2;
|
||||
private $rabatt3;
|
||||
private $rabatt4;
|
||||
private $rabatt5;
|
||||
private $einheit;
|
||||
private $webid;
|
||||
private $rabatt;
|
||||
private $nachbestelltexternereinkauf;
|
||||
private $zolltarifnummer;
|
||||
private $herkunftsland;
|
||||
private $artikelnummerkunde;
|
||||
private $freifeld1;
|
||||
private $freifeld2;
|
||||
private $freifeld3;
|
||||
private $freifeld4;
|
||||
private $freifeld5;
|
||||
private $freifeld6;
|
||||
private $freifeld7;
|
||||
private $freifeld8;
|
||||
private $freifeld9;
|
||||
private $freifeld10;
|
||||
private $lieferdatumkw;
|
||||
private $teilprojekt;
|
||||
private $kostenstelle;
|
||||
private $steuersatz;
|
||||
private $steuertext;
|
||||
private $erloese;
|
||||
private $erloesefestschreiben;
|
||||
private $einkaufspreiswaehrung;
|
||||
private $einkaufspreis;
|
||||
private $einkaufspreisurspruenglich;
|
||||
private $einkaufspreisid;
|
||||
private $ekwaehrung;
|
||||
private $deckungsbeitrag;
|
||||
private $freifeld11;
|
||||
private $freifeld12;
|
||||
private $freifeld13;
|
||||
private $freifeld14;
|
||||
private $freifeld15;
|
||||
private $freifeld16;
|
||||
private $freifeld17;
|
||||
private $freifeld18;
|
||||
private $freifeld19;
|
||||
private $freifeld20;
|
||||
private $freifeld21;
|
||||
private $freifeld22;
|
||||
private $freifeld23;
|
||||
private $freifeld24;
|
||||
private $freifeld25;
|
||||
private $freifeld26;
|
||||
private $freifeld27;
|
||||
private $freifeld28;
|
||||
private $freifeld29;
|
||||
private $freifeld30;
|
||||
private $freifeld31;
|
||||
private $freifeld32;
|
||||
private $freifeld33;
|
||||
private $freifeld34;
|
||||
private $freifeld35;
|
||||
private $freifeld36;
|
||||
private $freifeld37;
|
||||
private $freifeld38;
|
||||
private $freifeld39;
|
||||
private $freifeld40;
|
||||
private $formelmenge;
|
||||
private $formelpreis;
|
||||
private $ohnepreis;
|
||||
private $potentiellerliefertermin;
|
||||
private $skontobetrag;
|
||||
private $steuerbetrag;
|
||||
private $skontosperre;
|
||||
private $ausblenden_im_pdf;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM auftrag_position WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->auftrag=$result['auftrag'];
|
||||
$this->artikel=$result['artikel'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->bezeichnung=$result['bezeichnung'];
|
||||
$this->beschreibung=$result['beschreibung'];
|
||||
$this->internerkommentar=$result['internerkommentar'];
|
||||
$this->nummer=$result['nummer'];
|
||||
$this->menge=$result['menge'];
|
||||
$this->preis=$result['preis'];
|
||||
$this->waehrung=$result['waehrung'];
|
||||
$this->lieferdatum=$result['lieferdatum'];
|
||||
$this->vpe=$result['vpe'];
|
||||
$this->sort=$result['sort'];
|
||||
$this->status=$result['status'];
|
||||
$this->umsatzsteuer=$result['umsatzsteuer'];
|
||||
$this->bemerkung=$result['bemerkung'];
|
||||
$this->geliefert=$result['geliefert'];
|
||||
$this->geliefert_menge=$result['geliefert_menge'];
|
||||
$this->explodiert=$result['explodiert'];
|
||||
$this->explodiert_parent=$result['explodiert_parent'];
|
||||
$this->logdatei=$result['logdatei'];
|
||||
$this->punkte=$result['punkte'];
|
||||
$this->bonuspunkte=$result['bonuspunkte'];
|
||||
$this->mlmdirektpraemie=$result['mlmdirektpraemie'];
|
||||
$this->keinrabatterlaubt=$result['keinrabatterlaubt'];
|
||||
$this->grundrabatt=$result['grundrabatt'];
|
||||
$this->rabattsync=$result['rabattsync'];
|
||||
$this->rabatt1=$result['rabatt1'];
|
||||
$this->rabatt2=$result['rabatt2'];
|
||||
$this->rabatt3=$result['rabatt3'];
|
||||
$this->rabatt4=$result['rabatt4'];
|
||||
$this->rabatt5=$result['rabatt5'];
|
||||
$this->einheit=$result['einheit'];
|
||||
$this->webid=$result['webid'];
|
||||
$this->rabatt=$result['rabatt'];
|
||||
$this->nachbestelltexternereinkauf=$result['nachbestelltexternereinkauf'];
|
||||
$this->zolltarifnummer=$result['zolltarifnummer'];
|
||||
$this->herkunftsland=$result['herkunftsland'];
|
||||
$this->artikelnummerkunde=$result['artikelnummerkunde'];
|
||||
$this->freifeld1=$result['freifeld1'];
|
||||
$this->freifeld2=$result['freifeld2'];
|
||||
$this->freifeld3=$result['freifeld3'];
|
||||
$this->freifeld4=$result['freifeld4'];
|
||||
$this->freifeld5=$result['freifeld5'];
|
||||
$this->freifeld6=$result['freifeld6'];
|
||||
$this->freifeld7=$result['freifeld7'];
|
||||
$this->freifeld8=$result['freifeld8'];
|
||||
$this->freifeld9=$result['freifeld9'];
|
||||
$this->freifeld10=$result['freifeld10'];
|
||||
$this->lieferdatumkw=$result['lieferdatumkw'];
|
||||
$this->teilprojekt=$result['teilprojekt'];
|
||||
$this->kostenstelle=$result['kostenstelle'];
|
||||
$this->steuersatz=$result['steuersatz'];
|
||||
$this->steuertext=$result['steuertext'];
|
||||
$this->erloese=$result['erloese'];
|
||||
$this->erloesefestschreiben=$result['erloesefestschreiben'];
|
||||
$this->einkaufspreiswaehrung=$result['einkaufspreiswaehrung'];
|
||||
$this->einkaufspreis=$result['einkaufspreis'];
|
||||
$this->einkaufspreisurspruenglich=$result['einkaufspreisurspruenglich'];
|
||||
$this->einkaufspreisid=$result['einkaufspreisid'];
|
||||
$this->ekwaehrung=$result['ekwaehrung'];
|
||||
$this->deckungsbeitrag=$result['deckungsbeitrag'];
|
||||
$this->freifeld11=$result['freifeld11'];
|
||||
$this->freifeld12=$result['freifeld12'];
|
||||
$this->freifeld13=$result['freifeld13'];
|
||||
$this->freifeld14=$result['freifeld14'];
|
||||
$this->freifeld15=$result['freifeld15'];
|
||||
$this->freifeld16=$result['freifeld16'];
|
||||
$this->freifeld17=$result['freifeld17'];
|
||||
$this->freifeld18=$result['freifeld18'];
|
||||
$this->freifeld19=$result['freifeld19'];
|
||||
$this->freifeld20=$result['freifeld20'];
|
||||
$this->freifeld21=$result['freifeld21'];
|
||||
$this->freifeld22=$result['freifeld22'];
|
||||
$this->freifeld23=$result['freifeld23'];
|
||||
$this->freifeld24=$result['freifeld24'];
|
||||
$this->freifeld25=$result['freifeld25'];
|
||||
$this->freifeld26=$result['freifeld26'];
|
||||
$this->freifeld27=$result['freifeld27'];
|
||||
$this->freifeld28=$result['freifeld28'];
|
||||
$this->freifeld29=$result['freifeld29'];
|
||||
$this->freifeld30=$result['freifeld30'];
|
||||
$this->freifeld31=$result['freifeld31'];
|
||||
$this->freifeld32=$result['freifeld32'];
|
||||
$this->freifeld33=$result['freifeld33'];
|
||||
$this->freifeld34=$result['freifeld34'];
|
||||
$this->freifeld35=$result['freifeld35'];
|
||||
$this->freifeld36=$result['freifeld36'];
|
||||
$this->freifeld37=$result['freifeld37'];
|
||||
$this->freifeld38=$result['freifeld38'];
|
||||
$this->freifeld39=$result['freifeld39'];
|
||||
$this->freifeld40=$result['freifeld40'];
|
||||
$this->formelmenge=$result['formelmenge'];
|
||||
$this->formelpreis=$result['formelpreis'];
|
||||
$this->ohnepreis=$result['ohnepreis'];
|
||||
$this->potentiellerliefertermin=$result['potentiellerliefertermin'];
|
||||
$this->skontobetrag=$result['skontobetrag'];
|
||||
$this->steuerbetrag=$result['steuerbetrag'];
|
||||
$this->skontosperre=$result['skontosperre'];
|
||||
$this->ausblenden_im_pdf=$result['ausblenden_im_pdf'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO auftrag_position (id,auftrag,artikel,projekt,bezeichnung,beschreibung,internerkommentar,nummer,menge,preis,waehrung,lieferdatum,vpe,sort,status,umsatzsteuer,bemerkung,geliefert,geliefert_menge,explodiert,explodiert_parent,logdatei,punkte,bonuspunkte,mlmdirektpraemie,keinrabatterlaubt,grundrabatt,rabattsync,rabatt1,rabatt2,rabatt3,rabatt4,rabatt5,einheit,webid,rabatt,nachbestelltexternereinkauf,zolltarifnummer,herkunftsland,artikelnummerkunde,freifeld1,freifeld2,freifeld3,freifeld4,freifeld5,freifeld6,freifeld7,freifeld8,freifeld9,freifeld10,lieferdatumkw,teilprojekt,kostenstelle,steuersatz,steuertext,erloese,erloesefestschreiben,einkaufspreiswaehrung,einkaufspreis,einkaufspreisurspruenglich,einkaufspreisid,ekwaehrung,deckungsbeitrag,freifeld11,freifeld12,freifeld13,freifeld14,freifeld15,freifeld16,freifeld17,freifeld18,freifeld19,freifeld20,freifeld21,freifeld22,freifeld23,freifeld24,freifeld25,freifeld26,freifeld27,freifeld28,freifeld29,freifeld30,freifeld31,freifeld32,freifeld33,freifeld34,freifeld35,freifeld36,freifeld37,freifeld38,freifeld39,freifeld40,formelmenge,formelpreis,ohnepreis,potentiellerliefertermin,skontobetrag,steuerbetrag,skontosperre,ausblenden_im_pdf)
|
||||
VALUES('','{$this->auftrag}','{$this->artikel}','{$this->projekt}','{$this->bezeichnung}','{$this->beschreibung}','{$this->internerkommentar}','{$this->nummer}','{$this->menge}','{$this->preis}','{$this->waehrung}','{$this->lieferdatum}','{$this->vpe}','{$this->sort}','{$this->status}','{$this->umsatzsteuer}','{$this->bemerkung}','{$this->geliefert}','{$this->geliefert_menge}','{$this->explodiert}','{$this->explodiert_parent}','{$this->logdatei}','{$this->punkte}','{$this->bonuspunkte}','{$this->mlmdirektpraemie}','{$this->keinrabatterlaubt}','{$this->grundrabatt}','{$this->rabattsync}','{$this->rabatt1}','{$this->rabatt2}','{$this->rabatt3}','{$this->rabatt4}','{$this->rabatt5}','{$this->einheit}','{$this->webid}','{$this->rabatt}','{$this->nachbestelltexternereinkauf}','{$this->zolltarifnummer}','{$this->herkunftsland}','{$this->artikelnummerkunde}','{$this->freifeld1}','{$this->freifeld2}','{$this->freifeld3}','{$this->freifeld4}','{$this->freifeld5}','{$this->freifeld6}','{$this->freifeld7}','{$this->freifeld8}','{$this->freifeld9}','{$this->freifeld10}','{$this->lieferdatumkw}','{$this->teilprojekt}','{$this->kostenstelle}','{$this->steuersatz}','{$this->steuertext}','{$this->erloese}','{$this->erloesefestschreiben}','{$this->einkaufspreiswaehrung}','{$this->einkaufspreis}','{$this->einkaufspreisurspruenglich}','{$this->einkaufspreisid}','{$this->ekwaehrung}','{$this->deckungsbeitrag}','{$this->freifeld11}','{$this->freifeld12}','{$this->freifeld13}','{$this->freifeld14}','{$this->freifeld15}','{$this->freifeld16}','{$this->freifeld17}','{$this->freifeld18}','{$this->freifeld19}','{$this->freifeld20}','{$this->freifeld21}','{$this->freifeld22}','{$this->freifeld23}','{$this->freifeld24}','{$this->freifeld25}','{$this->freifeld26}','{$this->freifeld27}','{$this->freifeld28}','{$this->freifeld29}','{$this->freifeld30}','{$this->freifeld31}','{$this->freifeld32}','{$this->freifeld33}','{$this->freifeld34}','{$this->freifeld35}','{$this->freifeld36}','{$this->freifeld37}','{$this->freifeld38}','{$this->freifeld39}','{$this->freifeld40}','{$this->formelmenge}','{$this->formelpreis}','{$this->ohnepreis}','{$this->potentiellerliefertermin}','{$this->skontobetrag}','{$this->steuerbetrag}','{$this->skontosperre}','{$this->ausblenden_im_pdf}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE auftrag_position SET
|
||||
auftrag='{$this->auftrag}',
|
||||
artikel='{$this->artikel}',
|
||||
projekt='{$this->projekt}',
|
||||
bezeichnung='{$this->bezeichnung}',
|
||||
beschreibung='{$this->beschreibung}',
|
||||
internerkommentar='{$this->internerkommentar}',
|
||||
nummer='{$this->nummer}',
|
||||
menge='{$this->menge}',
|
||||
preis='{$this->preis}',
|
||||
waehrung='{$this->waehrung}',
|
||||
lieferdatum='{$this->lieferdatum}',
|
||||
vpe='{$this->vpe}',
|
||||
sort='{$this->sort}',
|
||||
status='{$this->status}',
|
||||
umsatzsteuer='{$this->umsatzsteuer}',
|
||||
bemerkung='{$this->bemerkung}',
|
||||
geliefert='{$this->geliefert}',
|
||||
geliefert_menge='{$this->geliefert_menge}',
|
||||
explodiert='{$this->explodiert}',
|
||||
explodiert_parent='{$this->explodiert_parent}',
|
||||
logdatei='{$this->logdatei}',
|
||||
punkte='{$this->punkte}',
|
||||
bonuspunkte='{$this->bonuspunkte}',
|
||||
mlmdirektpraemie='{$this->mlmdirektpraemie}',
|
||||
keinrabatterlaubt='{$this->keinrabatterlaubt}',
|
||||
grundrabatt='{$this->grundrabatt}',
|
||||
rabattsync='{$this->rabattsync}',
|
||||
rabatt1='{$this->rabatt1}',
|
||||
rabatt2='{$this->rabatt2}',
|
||||
rabatt3='{$this->rabatt3}',
|
||||
rabatt4='{$this->rabatt4}',
|
||||
rabatt5='{$this->rabatt5}',
|
||||
einheit='{$this->einheit}',
|
||||
webid='{$this->webid}',
|
||||
rabatt='{$this->rabatt}',
|
||||
nachbestelltexternereinkauf='{$this->nachbestelltexternereinkauf}',
|
||||
zolltarifnummer='{$this->zolltarifnummer}',
|
||||
herkunftsland='{$this->herkunftsland}',
|
||||
artikelnummerkunde='{$this->artikelnummerkunde}',
|
||||
freifeld1='{$this->freifeld1}',
|
||||
freifeld2='{$this->freifeld2}',
|
||||
freifeld3='{$this->freifeld3}',
|
||||
freifeld4='{$this->freifeld4}',
|
||||
freifeld5='{$this->freifeld5}',
|
||||
freifeld6='{$this->freifeld6}',
|
||||
freifeld7='{$this->freifeld7}',
|
||||
freifeld8='{$this->freifeld8}',
|
||||
freifeld9='{$this->freifeld9}',
|
||||
freifeld10='{$this->freifeld10}',
|
||||
lieferdatumkw='{$this->lieferdatumkw}',
|
||||
teilprojekt='{$this->teilprojekt}',
|
||||
kostenstelle='{$this->kostenstelle}',
|
||||
steuersatz='{$this->steuersatz}',
|
||||
steuertext='{$this->steuertext}',
|
||||
erloese='{$this->erloese}',
|
||||
erloesefestschreiben='{$this->erloesefestschreiben}',
|
||||
einkaufspreiswaehrung='{$this->einkaufspreiswaehrung}',
|
||||
einkaufspreis='{$this->einkaufspreis}',
|
||||
einkaufspreisurspruenglich='{$this->einkaufspreisurspruenglich}',
|
||||
einkaufspreisid='{$this->einkaufspreisid}',
|
||||
ekwaehrung='{$this->ekwaehrung}',
|
||||
deckungsbeitrag='{$this->deckungsbeitrag}',
|
||||
freifeld11='{$this->freifeld11}',
|
||||
freifeld12='{$this->freifeld12}',
|
||||
freifeld13='{$this->freifeld13}',
|
||||
freifeld14='{$this->freifeld14}',
|
||||
freifeld15='{$this->freifeld15}',
|
||||
freifeld16='{$this->freifeld16}',
|
||||
freifeld17='{$this->freifeld17}',
|
||||
freifeld18='{$this->freifeld18}',
|
||||
freifeld19='{$this->freifeld19}',
|
||||
freifeld20='{$this->freifeld20}',
|
||||
freifeld21='{$this->freifeld21}',
|
||||
freifeld22='{$this->freifeld22}',
|
||||
freifeld23='{$this->freifeld23}',
|
||||
freifeld24='{$this->freifeld24}',
|
||||
freifeld25='{$this->freifeld25}',
|
||||
freifeld26='{$this->freifeld26}',
|
||||
freifeld27='{$this->freifeld27}',
|
||||
freifeld28='{$this->freifeld28}',
|
||||
freifeld29='{$this->freifeld29}',
|
||||
freifeld30='{$this->freifeld30}',
|
||||
freifeld31='{$this->freifeld31}',
|
||||
freifeld32='{$this->freifeld32}',
|
||||
freifeld33='{$this->freifeld33}',
|
||||
freifeld34='{$this->freifeld34}',
|
||||
freifeld35='{$this->freifeld35}',
|
||||
freifeld36='{$this->freifeld36}',
|
||||
freifeld37='{$this->freifeld37}',
|
||||
freifeld38='{$this->freifeld38}',
|
||||
freifeld39='{$this->freifeld39}',
|
||||
freifeld40='{$this->freifeld40}',
|
||||
formelmenge='{$this->formelmenge}',
|
||||
formelpreis='{$this->formelpreis}',
|
||||
ohnepreis='{$this->ohnepreis}',
|
||||
potentiellerliefertermin='{$this->potentiellerliefertermin}',
|
||||
skontobetrag='{$this->skontobetrag}',
|
||||
steuerbetrag='{$this->steuerbetrag}',
|
||||
skontosperre='{$this->skontosperre}',
|
||||
ausblenden_im_pdf='{$this->ausblenden_im_pdf}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM auftrag_position WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->auftrag="";
|
||||
$this->artikel="";
|
||||
$this->projekt="";
|
||||
$this->bezeichnung="";
|
||||
$this->beschreibung="";
|
||||
$this->internerkommentar="";
|
||||
$this->nummer="";
|
||||
$this->menge="";
|
||||
$this->preis="";
|
||||
$this->waehrung="";
|
||||
$this->lieferdatum="";
|
||||
$this->vpe="";
|
||||
$this->sort="";
|
||||
$this->status="";
|
||||
$this->umsatzsteuer="";
|
||||
$this->bemerkung="";
|
||||
$this->geliefert="";
|
||||
$this->geliefert_menge="";
|
||||
$this->explodiert="";
|
||||
$this->explodiert_parent="";
|
||||
$this->logdatei="";
|
||||
$this->punkte="";
|
||||
$this->bonuspunkte="";
|
||||
$this->mlmdirektpraemie="";
|
||||
$this->keinrabatterlaubt="";
|
||||
$this->grundrabatt="";
|
||||
$this->rabattsync="";
|
||||
$this->rabatt1="";
|
||||
$this->rabatt2="";
|
||||
$this->rabatt3="";
|
||||
$this->rabatt4="";
|
||||
$this->rabatt5="";
|
||||
$this->einheit="";
|
||||
$this->webid="";
|
||||
$this->rabatt="";
|
||||
$this->nachbestelltexternereinkauf="";
|
||||
$this->zolltarifnummer="";
|
||||
$this->herkunftsland="";
|
||||
$this->artikelnummerkunde="";
|
||||
$this->freifeld1="";
|
||||
$this->freifeld2="";
|
||||
$this->freifeld3="";
|
||||
$this->freifeld4="";
|
||||
$this->freifeld5="";
|
||||
$this->freifeld6="";
|
||||
$this->freifeld7="";
|
||||
$this->freifeld8="";
|
||||
$this->freifeld9="";
|
||||
$this->freifeld10="";
|
||||
$this->lieferdatumkw="";
|
||||
$this->teilprojekt="";
|
||||
$this->kostenstelle="";
|
||||
$this->steuersatz="";
|
||||
$this->steuertext="";
|
||||
$this->erloese="";
|
||||
$this->erloesefestschreiben="";
|
||||
$this->einkaufspreiswaehrung="";
|
||||
$this->einkaufspreis="";
|
||||
$this->einkaufspreisurspruenglich="";
|
||||
$this->einkaufspreisid="";
|
||||
$this->ekwaehrung="";
|
||||
$this->deckungsbeitrag="";
|
||||
$this->freifeld11="";
|
||||
$this->freifeld12="";
|
||||
$this->freifeld13="";
|
||||
$this->freifeld14="";
|
||||
$this->freifeld15="";
|
||||
$this->freifeld16="";
|
||||
$this->freifeld17="";
|
||||
$this->freifeld18="";
|
||||
$this->freifeld19="";
|
||||
$this->freifeld20="";
|
||||
$this->freifeld21="";
|
||||
$this->freifeld22="";
|
||||
$this->freifeld23="";
|
||||
$this->freifeld24="";
|
||||
$this->freifeld25="";
|
||||
$this->freifeld26="";
|
||||
$this->freifeld27="";
|
||||
$this->freifeld28="";
|
||||
$this->freifeld29="";
|
||||
$this->freifeld30="";
|
||||
$this->freifeld31="";
|
||||
$this->freifeld32="";
|
||||
$this->freifeld33="";
|
||||
$this->freifeld34="";
|
||||
$this->freifeld35="";
|
||||
$this->freifeld36="";
|
||||
$this->freifeld37="";
|
||||
$this->freifeld38="";
|
||||
$this->freifeld39="";
|
||||
$this->freifeld40="";
|
||||
$this->formelmenge="";
|
||||
$this->formelpreis="";
|
||||
$this->ohnepreis="";
|
||||
$this->potentiellerliefertermin="";
|
||||
$this->skontobetrag="";
|
||||
$this->steuerbetrag="";
|
||||
$this->skontosperre="";
|
||||
$this->ausblenden_im_pdf="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetAuftrag($value) { $this->auftrag=$value; }
|
||||
function GetAuftrag() { return $this->auftrag; }
|
||||
function SetArtikel($value) { $this->artikel=$value; }
|
||||
function GetArtikel() { return $this->artikel; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
function GetBezeichnung() { return $this->bezeichnung; }
|
||||
function SetBeschreibung($value) { $this->beschreibung=$value; }
|
||||
function GetBeschreibung() { return $this->beschreibung; }
|
||||
function SetInternerkommentar($value) { $this->internerkommentar=$value; }
|
||||
function GetInternerkommentar() { return $this->internerkommentar; }
|
||||
function SetNummer($value) { $this->nummer=$value; }
|
||||
function GetNummer() { return $this->nummer; }
|
||||
function SetMenge($value) { $this->menge=$value; }
|
||||
function GetMenge() { return $this->menge; }
|
||||
function SetPreis($value) { $this->preis=$value; }
|
||||
function GetPreis() { return $this->preis; }
|
||||
function SetWaehrung($value) { $this->waehrung=$value; }
|
||||
function GetWaehrung() { return $this->waehrung; }
|
||||
function SetLieferdatum($value) { $this->lieferdatum=$value; }
|
||||
function GetLieferdatum() { return $this->lieferdatum; }
|
||||
function SetVpe($value) { $this->vpe=$value; }
|
||||
function GetVpe() { return $this->vpe; }
|
||||
function SetSort($value) { $this->sort=$value; }
|
||||
function GetSort() { return $this->sort; }
|
||||
function SetStatus($value) { $this->status=$value; }
|
||||
function GetStatus() { return $this->status; }
|
||||
function SetUmsatzsteuer($value) { $this->umsatzsteuer=$value; }
|
||||
function GetUmsatzsteuer() { return $this->umsatzsteuer; }
|
||||
function SetBemerkung($value) { $this->bemerkung=$value; }
|
||||
function GetBemerkung() { return $this->bemerkung; }
|
||||
function SetGeliefert($value) { $this->geliefert=$value; }
|
||||
function GetGeliefert() { return $this->geliefert; }
|
||||
function SetGeliefert_Menge($value) { $this->geliefert_menge=$value; }
|
||||
function GetGeliefert_Menge() { return $this->geliefert_menge; }
|
||||
function SetExplodiert($value) { $this->explodiert=$value; }
|
||||
function GetExplodiert() { return $this->explodiert; }
|
||||
function SetExplodiert_Parent($value) { $this->explodiert_parent=$value; }
|
||||
function GetExplodiert_Parent() { return $this->explodiert_parent; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
function SetPunkte($value) { $this->punkte=$value; }
|
||||
function GetPunkte() { return $this->punkte; }
|
||||
function SetBonuspunkte($value) { $this->bonuspunkte=$value; }
|
||||
function GetBonuspunkte() { return $this->bonuspunkte; }
|
||||
function SetMlmdirektpraemie($value) { $this->mlmdirektpraemie=$value; }
|
||||
function GetMlmdirektpraemie() { return $this->mlmdirektpraemie; }
|
||||
function SetKeinrabatterlaubt($value) { $this->keinrabatterlaubt=$value; }
|
||||
function GetKeinrabatterlaubt() { return $this->keinrabatterlaubt; }
|
||||
function SetGrundrabatt($value) { $this->grundrabatt=$value; }
|
||||
function GetGrundrabatt() { return $this->grundrabatt; }
|
||||
function SetRabattsync($value) { $this->rabattsync=$value; }
|
||||
function GetRabattsync() { return $this->rabattsync; }
|
||||
function SetRabatt1($value) { $this->rabatt1=$value; }
|
||||
function GetRabatt1() { return $this->rabatt1; }
|
||||
function SetRabatt2($value) { $this->rabatt2=$value; }
|
||||
function GetRabatt2() { return $this->rabatt2; }
|
||||
function SetRabatt3($value) { $this->rabatt3=$value; }
|
||||
function GetRabatt3() { return $this->rabatt3; }
|
||||
function SetRabatt4($value) { $this->rabatt4=$value; }
|
||||
function GetRabatt4() { return $this->rabatt4; }
|
||||
function SetRabatt5($value) { $this->rabatt5=$value; }
|
||||
function GetRabatt5() { return $this->rabatt5; }
|
||||
function SetEinheit($value) { $this->einheit=$value; }
|
||||
function GetEinheit() { return $this->einheit; }
|
||||
function SetWebid($value) { $this->webid=$value; }
|
||||
function GetWebid() { return $this->webid; }
|
||||
function SetRabatt($value) { $this->rabatt=$value; }
|
||||
function GetRabatt() { return $this->rabatt; }
|
||||
function SetNachbestelltexternereinkauf($value) { $this->nachbestelltexternereinkauf=$value; }
|
||||
function GetNachbestelltexternereinkauf() { return $this->nachbestelltexternereinkauf; }
|
||||
function SetZolltarifnummer($value) { $this->zolltarifnummer=$value; }
|
||||
function GetZolltarifnummer() { return $this->zolltarifnummer; }
|
||||
function SetHerkunftsland($value) { $this->herkunftsland=$value; }
|
||||
function GetHerkunftsland() { return $this->herkunftsland; }
|
||||
function SetArtikelnummerkunde($value) { $this->artikelnummerkunde=$value; }
|
||||
function GetArtikelnummerkunde() { return $this->artikelnummerkunde; }
|
||||
function SetFreifeld1($value) { $this->freifeld1=$value; }
|
||||
function GetFreifeld1() { return $this->freifeld1; }
|
||||
function SetFreifeld2($value) { $this->freifeld2=$value; }
|
||||
function GetFreifeld2() { return $this->freifeld2; }
|
||||
function SetFreifeld3($value) { $this->freifeld3=$value; }
|
||||
function GetFreifeld3() { return $this->freifeld3; }
|
||||
function SetFreifeld4($value) { $this->freifeld4=$value; }
|
||||
function GetFreifeld4() { return $this->freifeld4; }
|
||||
function SetFreifeld5($value) { $this->freifeld5=$value; }
|
||||
function GetFreifeld5() { return $this->freifeld5; }
|
||||
function SetFreifeld6($value) { $this->freifeld6=$value; }
|
||||
function GetFreifeld6() { return $this->freifeld6; }
|
||||
function SetFreifeld7($value) { $this->freifeld7=$value; }
|
||||
function GetFreifeld7() { return $this->freifeld7; }
|
||||
function SetFreifeld8($value) { $this->freifeld8=$value; }
|
||||
function GetFreifeld8() { return $this->freifeld8; }
|
||||
function SetFreifeld9($value) { $this->freifeld9=$value; }
|
||||
function GetFreifeld9() { return $this->freifeld9; }
|
||||
function SetFreifeld10($value) { $this->freifeld10=$value; }
|
||||
function GetFreifeld10() { return $this->freifeld10; }
|
||||
function SetLieferdatumkw($value) { $this->lieferdatumkw=$value; }
|
||||
function GetLieferdatumkw() { return $this->lieferdatumkw; }
|
||||
function SetTeilprojekt($value) { $this->teilprojekt=$value; }
|
||||
function GetTeilprojekt() { return $this->teilprojekt; }
|
||||
function SetKostenstelle($value) { $this->kostenstelle=$value; }
|
||||
function GetKostenstelle() { return $this->kostenstelle; }
|
||||
function SetSteuersatz($value) { $this->steuersatz=$value; }
|
||||
function GetSteuersatz() { return $this->steuersatz; }
|
||||
function SetSteuertext($value) { $this->steuertext=$value; }
|
||||
function GetSteuertext() { return $this->steuertext; }
|
||||
function SetErloese($value) { $this->erloese=$value; }
|
||||
function GetErloese() { return $this->erloese; }
|
||||
function SetErloesefestschreiben($value) { $this->erloesefestschreiben=$value; }
|
||||
function GetErloesefestschreiben() { return $this->erloesefestschreiben; }
|
||||
function SetEinkaufspreiswaehrung($value) { $this->einkaufspreiswaehrung=$value; }
|
||||
function GetEinkaufspreiswaehrung() { return $this->einkaufspreiswaehrung; }
|
||||
function SetEinkaufspreis($value) { $this->einkaufspreis=$value; }
|
||||
function GetEinkaufspreis() { return $this->einkaufspreis; }
|
||||
function SetEinkaufspreisurspruenglich($value) { $this->einkaufspreisurspruenglich=$value; }
|
||||
function GetEinkaufspreisurspruenglich() { return $this->einkaufspreisurspruenglich; }
|
||||
function SetEinkaufspreisid($value) { $this->einkaufspreisid=$value; }
|
||||
function GetEinkaufspreisid() { return $this->einkaufspreisid; }
|
||||
function SetEkwaehrung($value) { $this->ekwaehrung=$value; }
|
||||
function GetEkwaehrung() { return $this->ekwaehrung; }
|
||||
function SetDeckungsbeitrag($value) { $this->deckungsbeitrag=$value; }
|
||||
function GetDeckungsbeitrag() { return $this->deckungsbeitrag; }
|
||||
function SetFreifeld11($value) { $this->freifeld11=$value; }
|
||||
function GetFreifeld11() { return $this->freifeld11; }
|
||||
function SetFreifeld12($value) { $this->freifeld12=$value; }
|
||||
function GetFreifeld12() { return $this->freifeld12; }
|
||||
function SetFreifeld13($value) { $this->freifeld13=$value; }
|
||||
function GetFreifeld13() { return $this->freifeld13; }
|
||||
function SetFreifeld14($value) { $this->freifeld14=$value; }
|
||||
function GetFreifeld14() { return $this->freifeld14; }
|
||||
function SetFreifeld15($value) { $this->freifeld15=$value; }
|
||||
function GetFreifeld15() { return $this->freifeld15; }
|
||||
function SetFreifeld16($value) { $this->freifeld16=$value; }
|
||||
function GetFreifeld16() { return $this->freifeld16; }
|
||||
function SetFreifeld17($value) { $this->freifeld17=$value; }
|
||||
function GetFreifeld17() { return $this->freifeld17; }
|
||||
function SetFreifeld18($value) { $this->freifeld18=$value; }
|
||||
function GetFreifeld18() { return $this->freifeld18; }
|
||||
function SetFreifeld19($value) { $this->freifeld19=$value; }
|
||||
function GetFreifeld19() { return $this->freifeld19; }
|
||||
function SetFreifeld20($value) { $this->freifeld20=$value; }
|
||||
function GetFreifeld20() { return $this->freifeld20; }
|
||||
function SetFreifeld21($value) { $this->freifeld21=$value; }
|
||||
function GetFreifeld21() { return $this->freifeld21; }
|
||||
function SetFreifeld22($value) { $this->freifeld22=$value; }
|
||||
function GetFreifeld22() { return $this->freifeld22; }
|
||||
function SetFreifeld23($value) { $this->freifeld23=$value; }
|
||||
function GetFreifeld23() { return $this->freifeld23; }
|
||||
function SetFreifeld24($value) { $this->freifeld24=$value; }
|
||||
function GetFreifeld24() { return $this->freifeld24; }
|
||||
function SetFreifeld25($value) { $this->freifeld25=$value; }
|
||||
function GetFreifeld25() { return $this->freifeld25; }
|
||||
function SetFreifeld26($value) { $this->freifeld26=$value; }
|
||||
function GetFreifeld26() { return $this->freifeld26; }
|
||||
function SetFreifeld27($value) { $this->freifeld27=$value; }
|
||||
function GetFreifeld27() { return $this->freifeld27; }
|
||||
function SetFreifeld28($value) { $this->freifeld28=$value; }
|
||||
function GetFreifeld28() { return $this->freifeld28; }
|
||||
function SetFreifeld29($value) { $this->freifeld29=$value; }
|
||||
function GetFreifeld29() { return $this->freifeld29; }
|
||||
function SetFreifeld30($value) { $this->freifeld30=$value; }
|
||||
function GetFreifeld30() { return $this->freifeld30; }
|
||||
function SetFreifeld31($value) { $this->freifeld31=$value; }
|
||||
function GetFreifeld31() { return $this->freifeld31; }
|
||||
function SetFreifeld32($value) { $this->freifeld32=$value; }
|
||||
function GetFreifeld32() { return $this->freifeld32; }
|
||||
function SetFreifeld33($value) { $this->freifeld33=$value; }
|
||||
function GetFreifeld33() { return $this->freifeld33; }
|
||||
function SetFreifeld34($value) { $this->freifeld34=$value; }
|
||||
function GetFreifeld34() { return $this->freifeld34; }
|
||||
function SetFreifeld35($value) { $this->freifeld35=$value; }
|
||||
function GetFreifeld35() { return $this->freifeld35; }
|
||||
function SetFreifeld36($value) { $this->freifeld36=$value; }
|
||||
function GetFreifeld36() { return $this->freifeld36; }
|
||||
function SetFreifeld37($value) { $this->freifeld37=$value; }
|
||||
function GetFreifeld37() { return $this->freifeld37; }
|
||||
function SetFreifeld38($value) { $this->freifeld38=$value; }
|
||||
function GetFreifeld38() { return $this->freifeld38; }
|
||||
function SetFreifeld39($value) { $this->freifeld39=$value; }
|
||||
function GetFreifeld39() { return $this->freifeld39; }
|
||||
function SetFreifeld40($value) { $this->freifeld40=$value; }
|
||||
function GetFreifeld40() { return $this->freifeld40; }
|
||||
function SetFormelmenge($value) { $this->formelmenge=$value; }
|
||||
function GetFormelmenge() { return $this->formelmenge; }
|
||||
function SetFormelpreis($value) { $this->formelpreis=$value; }
|
||||
function GetFormelpreis() { return $this->formelpreis; }
|
||||
function SetOhnepreis($value) { $this->ohnepreis=$value; }
|
||||
function GetOhnepreis() { return $this->ohnepreis; }
|
||||
function SetPotentiellerliefertermin($value) { $this->potentiellerliefertermin=$value; }
|
||||
function GetPotentiellerliefertermin() { return $this->potentiellerliefertermin; }
|
||||
function SetSkontobetrag($value) { $this->skontobetrag=$value; }
|
||||
function GetSkontobetrag() { return $this->skontobetrag; }
|
||||
function SetSteuerbetrag($value) { $this->steuerbetrag=$value; }
|
||||
function GetSteuerbetrag() { return $this->steuerbetrag; }
|
||||
function SetSkontosperre($value) { $this->skontosperre=$value; }
|
||||
function GetSkontosperre() { return $this->skontosperre; }
|
||||
function SetAusblenden_Im_Pdf($value) { $this->ausblenden_im_pdf=$value; }
|
||||
function GetAusblenden_Im_Pdf() { return $this->ausblenden_im_pdf; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,143 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenAuftrag_Protokoll
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $auftrag;
|
||||
private $zeit;
|
||||
private $bearbeiter;
|
||||
private $grund;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM auftrag_protokoll WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->auftrag=$result[auftrag];
|
||||
$this->zeit=$result[zeit];
|
||||
$this->bearbeiter=$result[bearbeiter];
|
||||
$this->grund=$result[grund];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO auftrag_protokoll (id,auftrag,zeit,bearbeiter,grund)
|
||||
VALUES('','{$this->auftrag}','{$this->zeit}','{$this->bearbeiter}','{$this->grund}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE auftrag_protokoll SET
|
||||
auftrag='{$this->auftrag}',
|
||||
zeit='{$this->zeit}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
grund='{$this->grund}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM auftrag_protokoll WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->auftrag="";
|
||||
$this->zeit="";
|
||||
$this->bearbeiter="";
|
||||
$this->grund="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetAuftrag($value) { $this->auftrag=$value; }
|
||||
function GetAuftrag() { return $this->auftrag; }
|
||||
function SetZeit($value) { $this->zeit=$value; }
|
||||
function GetZeit() { return $this->zeit; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetGrund($value) { $this->grund=$value; }
|
||||
function GetGrund() { return $this->grund; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,131 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenAutoresponder_Blacklist
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $cachetime;
|
||||
private $mailaddress;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM autoresponder_blacklist WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->cachetime=$result[cachetime];
|
||||
$this->mailaddress=$result[mailaddress];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO autoresponder_blacklist (id,cachetime,mailaddress)
|
||||
VALUES('','{$this->cachetime}','{$this->mailaddress}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE autoresponder_blacklist SET
|
||||
cachetime='{$this->cachetime}',
|
||||
mailaddress='{$this->mailaddress}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM autoresponder_blacklist WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->cachetime="";
|
||||
$this->mailaddress="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetCachetime($value) { $this->cachetime=$value; }
|
||||
function GetCachetime() { return $this->cachetime; }
|
||||
function SetMailaddress($value) { $this->mailaddress=$value; }
|
||||
function GetMailaddress() { return $this->mailaddress; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,143 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenBackup
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $adresse;
|
||||
private $name;
|
||||
private $dateiname;
|
||||
private $datum;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM backup WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->adresse=$result[adresse];
|
||||
$this->name=$result[name];
|
||||
$this->dateiname=$result[dateiname];
|
||||
$this->datum=$result[datum];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO backup (id,adresse,name,dateiname,datum)
|
||||
VALUES('','{$this->adresse}','{$this->name}','{$this->dateiname}','{$this->datum}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE backup SET
|
||||
adresse='{$this->adresse}',
|
||||
name='{$this->name}',
|
||||
dateiname='{$this->dateiname}',
|
||||
datum='{$this->datum}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM backup WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->adresse="";
|
||||
$this->name="";
|
||||
$this->dateiname="";
|
||||
$this->datum="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetName($value) { $this->name=$value; }
|
||||
function GetName() { return $this->name; }
|
||||
function SetDateiname($value) { $this->dateiname=$value; }
|
||||
function GetDateiname() { return $this->dateiname; }
|
||||
function SetDatum($value) { $this->datum=$value; }
|
||||
function GetDatum() { return $this->datum; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
@@ -0,0 +1,120 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenBene
|
||||
{
|
||||
|
||||
private $id;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM bene WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO bene (id)
|
||||
VALUES('')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE bene SET
|
||||
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM bene WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,298 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenBerichte
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $name;
|
||||
private $beschreibung;
|
||||
private $internebemerkung;
|
||||
private $struktur;
|
||||
private $spaltennamen;
|
||||
private $spaltenbreite;
|
||||
private $spaltenausrichtung;
|
||||
private $variablen;
|
||||
private $sumcols;
|
||||
private $doctype;
|
||||
private $doctype_actionmenu;
|
||||
private $doctype_actionmenuname;
|
||||
private $doctype_actionmenufiletype;
|
||||
private $project;
|
||||
private $ftpuebertragung;
|
||||
private $ftphost;
|
||||
private $ftpport;
|
||||
private $ftpuser;
|
||||
private $ftppassword;
|
||||
private $ftpuhrzeit;
|
||||
private $ftpletzteuebertragung;
|
||||
private $ftpnamealternativ;
|
||||
private $emailuebertragung;
|
||||
private $emailempfaenger;
|
||||
private $emailbetreff;
|
||||
private $emailuhrzeit;
|
||||
private $emailletzteuebertragung;
|
||||
private $emailnamealternativ;
|
||||
private $typ;
|
||||
private $ftppassivemode;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM `berichte` WHERE (`id` = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->name=$result['name'];
|
||||
$this->beschreibung=$result['beschreibung'];
|
||||
$this->internebemerkung=$result['internebemerkung'];
|
||||
$this->struktur=$result['struktur'];
|
||||
$this->spaltennamen=$result['spaltennamen'];
|
||||
$this->spaltenbreite=$result['spaltenbreite'];
|
||||
$this->spaltenausrichtung=$result['spaltenausrichtung'];
|
||||
$this->variablen=$result['variablen'];
|
||||
$this->sumcols=$result['sumcols'];
|
||||
$this->doctype=$result['doctype'];
|
||||
$this->doctype_actionmenu=$result['doctype_actionmenu'];
|
||||
$this->doctype_actionmenuname=$result['doctype_actionmenuname'];
|
||||
$this->doctype_actionmenufiletype=$result['doctype_actionmenufiletype'];
|
||||
$this->project=$result['project'];
|
||||
$this->ftpuebertragung=$result['ftpuebertragung'];
|
||||
$this->ftphost=$result['ftphost'];
|
||||
$this->ftpport=$result['ftpport'];
|
||||
$this->ftpuser=$result['ftpuser'];
|
||||
$this->ftppassword=$result['ftppassword'];
|
||||
$this->ftpuhrzeit=$result['ftpuhrzeit'];
|
||||
$this->ftpletzteuebertragung=$result['ftpletzteuebertragung'];
|
||||
$this->ftpnamealternativ=$result['ftpnamealternativ'];
|
||||
$this->emailuebertragung=$result['emailuebertragung'];
|
||||
$this->emailempfaenger=$result['emailempfaenger'];
|
||||
$this->emailbetreff=$result['emailbetreff'];
|
||||
$this->emailuhrzeit=$result['emailuhrzeit'];
|
||||
$this->emailletzteuebertragung=$result['emailletzteuebertragung'];
|
||||
$this->emailnamealternativ=$result['emailnamealternativ'];
|
||||
$this->typ=$result['typ'];
|
||||
$this->ftppassivemode=$result['ftppassivemode'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO `berichte` (`id`,`name`,`beschreibung`,`internebemerkung`,`struktur`,`spaltennamen`,`spaltenbreite`,`spaltenausrichtung`,`variablen`,`sumcols`,`doctype`,`doctype_actionmenu`,`doctype_actionmenuname`,`doctype_actionmenufiletype`,`project`,`ftpuebertragung`,`ftphost`,`ftpport`,`ftpuser`,`ftppassword`,`ftpuhrzeit`,`ftpletzteuebertragung`,`ftpnamealternativ`,`emailuebertragung`,`emailempfaenger`,`emailbetreff`,`emailuhrzeit`,`emailletzteuebertragung`,`emailnamealternativ`,`typ`,`ftppassivemode`)
|
||||
VALUES(NULL,'{$this->name}','{$this->beschreibung}','{$this->internebemerkung}','{$this->struktur}','{$this->spaltennamen}','{$this->spaltenbreite}','{$this->spaltenausrichtung}','{$this->variablen}','{$this->sumcols}','{$this->doctype}','{$this->doctype_actionmenu}','{$this->doctype_actionmenuname}','{$this->doctype_actionmenufiletype}','{$this->project}','{$this->ftpuebertragung}','{$this->ftphost}','{$this->ftpport}','{$this->ftpuser}','{$this->ftppassword}','{$this->ftpuhrzeit}','{$this->ftpletzteuebertragung}','{$this->ftpnamealternativ}','{$this->emailuebertragung}','{$this->emailempfaenger}','{$this->emailbetreff}','{$this->emailuhrzeit}','{$this->emailletzteuebertragung}','{$this->emailnamealternativ}','{$this->typ}','{$this->ftppassivemode}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
$sql = "UPDATE `berichte` SET
|
||||
`name`='{$this->name}',
|
||||
`beschreibung`='{$this->beschreibung}',
|
||||
`internebemerkung`='{$this->internebemerkung}',
|
||||
`struktur`='{$this->struktur}',
|
||||
`spaltennamen`='{$this->spaltennamen}',
|
||||
`spaltenbreite`='{$this->spaltenbreite}',
|
||||
`spaltenausrichtung`='{$this->spaltenausrichtung}',
|
||||
`variablen`='{$this->variablen}',
|
||||
`sumcols`='{$this->sumcols}',
|
||||
`doctype`='{$this->doctype}',
|
||||
`doctype_actionmenu`='{$this->doctype_actionmenu}',
|
||||
`doctype_actionmenuname`='{$this->doctype_actionmenuname}',
|
||||
`doctype_actionmenufiletype`='{$this->doctype_actionmenufiletype}',
|
||||
`project`='{$this->project}',
|
||||
`ftpuebertragung`='{$this->ftpuebertragung}',
|
||||
`ftphost`='{$this->ftphost}',
|
||||
`ftpport`='{$this->ftpport}',
|
||||
`ftpuser`='{$this->ftpuser}',
|
||||
`ftppassword`='{$this->ftppassword}',
|
||||
`ftpuhrzeit`='{$this->ftpuhrzeit}',
|
||||
`ftpletzteuebertragung`='{$this->ftpletzteuebertragung}',
|
||||
`ftpnamealternativ`='{$this->ftpnamealternativ}',
|
||||
`emailuebertragung`='{$this->emailuebertragung}',
|
||||
`emailempfaenger`='{$this->emailempfaenger}',
|
||||
`emailbetreff`='{$this->emailbetreff}',
|
||||
`emailuhrzeit`='{$this->emailuhrzeit}',
|
||||
`emailletzteuebertragung`='{$this->emailletzteuebertragung}',
|
||||
`emailnamealternativ`='{$this->emailnamealternativ}',
|
||||
`typ`='{$this->typ}',
|
||||
`ftppassivemode`='{$this->ftppassivemode}'
|
||||
WHERE (`id`='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id='')
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM `berichte` WHERE (`id`='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id='';
|
||||
$this->name='';
|
||||
$this->beschreibung='';
|
||||
$this->internebemerkung='';
|
||||
$this->struktur='';
|
||||
$this->spaltennamen='';
|
||||
$this->spaltenbreite='';
|
||||
$this->spaltenausrichtung='';
|
||||
$this->variablen='';
|
||||
$this->sumcols='';
|
||||
$this->doctype='';
|
||||
$this->doctype_actionmenu='';
|
||||
$this->doctype_actionmenuname='';
|
||||
$this->doctype_actionmenufiletype='';
|
||||
$this->project='';
|
||||
$this->ftpuebertragung='';
|
||||
$this->ftphost='';
|
||||
$this->ftpport='';
|
||||
$this->ftpuser='';
|
||||
$this->ftppassword='';
|
||||
$this->ftpuhrzeit='';
|
||||
$this->ftpletzteuebertragung='';
|
||||
$this->ftpnamealternativ='';
|
||||
$this->emailuebertragung='';
|
||||
$this->emailempfaenger='';
|
||||
$this->emailbetreff='';
|
||||
$this->emailuhrzeit='';
|
||||
$this->emailletzteuebertragung='';
|
||||
$this->emailnamealternativ='';
|
||||
$this->typ='';
|
||||
$this->ftppassivemode='';
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = '';
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
public function SetId($value) { $this->id=$value; }
|
||||
public function GetId() { return $this->id; }
|
||||
public function SetName($value) { $this->name=$value; }
|
||||
public function GetName() { return $this->name; }
|
||||
public function SetBeschreibung($value) { $this->beschreibung=$value; }
|
||||
public function GetBeschreibung() { return $this->beschreibung; }
|
||||
public function SetInternebemerkung($value) { $this->internebemerkung=$value; }
|
||||
public function GetInternebemerkung() { return $this->internebemerkung; }
|
||||
public function SetStruktur($value) { $this->struktur=$value; }
|
||||
public function GetStruktur() { return $this->struktur; }
|
||||
public function SetSpaltennamen($value) { $this->spaltennamen=$value; }
|
||||
public function GetSpaltennamen() { return $this->spaltennamen; }
|
||||
public function SetSpaltenbreite($value) { $this->spaltenbreite=$value; }
|
||||
public function GetSpaltenbreite() { return $this->spaltenbreite; }
|
||||
public function SetSpaltenausrichtung($value) { $this->spaltenausrichtung=$value; }
|
||||
public function GetSpaltenausrichtung() { return $this->spaltenausrichtung; }
|
||||
public function SetVariablen($value) { $this->variablen=$value; }
|
||||
public function GetVariablen() { return $this->variablen; }
|
||||
public function SetSumcols($value) { $this->sumcols=$value; }
|
||||
public function GetSumcols() { return $this->sumcols; }
|
||||
public function SetDoctype($value) { $this->doctype=$value; }
|
||||
public function GetDoctype() { return $this->doctype; }
|
||||
public function SetDoctype_Actionmenu($value) { $this->doctype_actionmenu=$value; }
|
||||
public function GetDoctype_Actionmenu() { return $this->doctype_actionmenu; }
|
||||
public function SetDoctype_Actionmenuname($value) { $this->doctype_actionmenuname=$value; }
|
||||
public function GetDoctype_Actionmenuname() { return $this->doctype_actionmenuname; }
|
||||
public function SetDoctype_Actionmenufiletype($value) { $this->doctype_actionmenufiletype=$value; }
|
||||
public function GetDoctype_Actionmenufiletype() { return $this->doctype_actionmenufiletype; }
|
||||
public function SetProject($value) { $this->project=$value; }
|
||||
public function GetProject() { return $this->project; }
|
||||
public function SetFtpuebertragung($value) { $this->ftpuebertragung=$value; }
|
||||
public function GetFtpuebertragung() { return $this->ftpuebertragung; }
|
||||
public function SetFtphost($value) { $this->ftphost=$value; }
|
||||
public function GetFtphost() { return $this->ftphost; }
|
||||
public function SetFtpport($value) { $this->ftpport=$value; }
|
||||
public function GetFtpport() { return $this->ftpport; }
|
||||
public function SetFtpuser($value) { $this->ftpuser=$value; }
|
||||
public function GetFtpuser() { return $this->ftpuser; }
|
||||
public function SetFtppassword($value) { $this->ftppassword=$value; }
|
||||
public function GetFtppassword() { return $this->ftppassword; }
|
||||
public function SetFtpuhrzeit($value) { $this->ftpuhrzeit=$value; }
|
||||
public function GetFtpuhrzeit() { return $this->ftpuhrzeit; }
|
||||
public function SetFtpletzteuebertragung($value) { $this->ftpletzteuebertragung=$value; }
|
||||
public function GetFtpletzteuebertragung() { return $this->ftpletzteuebertragung; }
|
||||
public function SetFtpnamealternativ($value) { $this->ftpnamealternativ=$value; }
|
||||
public function GetFtpnamealternativ() { return $this->ftpnamealternativ; }
|
||||
public function SetEmailuebertragung($value) { $this->emailuebertragung=$value; }
|
||||
public function GetEmailuebertragung() { return $this->emailuebertragung; }
|
||||
public function SetEmailempfaenger($value) { $this->emailempfaenger=$value; }
|
||||
public function GetEmailempfaenger() { return $this->emailempfaenger; }
|
||||
public function SetEmailbetreff($value) { $this->emailbetreff=$value; }
|
||||
public function GetEmailbetreff() { return $this->emailbetreff; }
|
||||
public function SetEmailuhrzeit($value) { $this->emailuhrzeit=$value; }
|
||||
public function GetEmailuhrzeit() { return $this->emailuhrzeit; }
|
||||
public function SetEmailletzteuebertragung($value) { $this->emailletzteuebertragung=$value; }
|
||||
public function GetEmailletzteuebertragung() { return $this->emailletzteuebertragung; }
|
||||
public function SetEmailnamealternativ($value) { $this->emailnamealternativ=$value; }
|
||||
public function GetEmailnamealternativ() { return $this->emailnamealternativ; }
|
||||
public function SetTyp($value) { $this->typ=$value; }
|
||||
public function GetTyp() { return $this->typ; }
|
||||
public function SetFtppassivemode($value) { $this->ftppassivemode=$value; }
|
||||
public function GetFtppassivemode() { return $this->ftppassivemode; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,730 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenBestellung
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $datum;
|
||||
private $projekt;
|
||||
private $bestellungsart;
|
||||
private $belegnr;
|
||||
private $bearbeiter;
|
||||
private $angebot;
|
||||
private $freitext;
|
||||
private $internebemerkung;
|
||||
private $status;
|
||||
private $adresse;
|
||||
private $name;
|
||||
private $vorname;
|
||||
private $abteilung;
|
||||
private $unterabteilung;
|
||||
private $strasse;
|
||||
private $adresszusatz;
|
||||
private $plz;
|
||||
private $ort;
|
||||
private $land;
|
||||
private $abweichendelieferadresse;
|
||||
private $liefername;
|
||||
private $lieferabteilung;
|
||||
private $lieferunterabteilung;
|
||||
private $lieferland;
|
||||
private $lieferstrasse;
|
||||
private $lieferort;
|
||||
private $lieferplz;
|
||||
private $lieferadresszusatz;
|
||||
private $lieferansprechpartner;
|
||||
private $ustid;
|
||||
private $ust_befreit;
|
||||
private $email;
|
||||
private $telefon;
|
||||
private $telefax;
|
||||
private $betreff;
|
||||
private $kundennummer;
|
||||
private $lieferantennummer;
|
||||
private $versandart;
|
||||
private $lieferdatum;
|
||||
private $einkaeufer;
|
||||
private $keineartikelnummern;
|
||||
private $zahlungsweise;
|
||||
private $zahlungsstatus;
|
||||
private $zahlungszieltage;
|
||||
private $zahlungszieltageskonto;
|
||||
private $zahlungszielskonto;
|
||||
private $gesamtsumme;
|
||||
private $bank_inhaber;
|
||||
private $bank_institut;
|
||||
private $bank_blz;
|
||||
private $bank_konto;
|
||||
private $paypalaccount;
|
||||
private $bestellbestaetigung;
|
||||
private $firma;
|
||||
private $versendet;
|
||||
private $versendet_am;
|
||||
private $versendet_per;
|
||||
private $versendet_durch;
|
||||
private $logdatei;
|
||||
private $artikelnummerninfotext;
|
||||
private $ansprechpartner;
|
||||
private $anschreiben;
|
||||
private $usereditid;
|
||||
private $useredittimestamp;
|
||||
private $steuersatz_normal;
|
||||
private $steuersatz_zwischen;
|
||||
private $steuersatz_ermaessigt;
|
||||
private $steuersatz_starkermaessigt;
|
||||
private $steuersatz_dienstleistung;
|
||||
private $waehrung;
|
||||
private $bestellungohnepreis;
|
||||
private $schreibschutz;
|
||||
private $pdfarchiviert;
|
||||
private $pdfarchiviertversion;
|
||||
private $typ;
|
||||
private $verbindlichkeiteninfo;
|
||||
private $ohne_briefpapier;
|
||||
private $projektfiliale;
|
||||
private $bestellung_bestaetigt;
|
||||
private $bestaetigteslieferdatum;
|
||||
private $bestellungbestaetigtper;
|
||||
private $bestellungbestaetigtabnummer;
|
||||
private $gewuenschteslieferdatum;
|
||||
private $zuarchivieren;
|
||||
private $internebezeichnung;
|
||||
private $angelegtam;
|
||||
private $preisanfrageid;
|
||||
private $sprache;
|
||||
private $kundennummerlieferant;
|
||||
private $ohne_artikeltext;
|
||||
private $langeartikelnummern;
|
||||
private $abweichendebezeichnung;
|
||||
private $anzeigesteuer;
|
||||
private $kostenstelle;
|
||||
private $bodyzusatz;
|
||||
private $lieferbedingung;
|
||||
private $titel;
|
||||
private $liefertitel;
|
||||
private $skontobetrag;
|
||||
private $skontoberechnet;
|
||||
private $bundesstaat;
|
||||
private $lieferbundesstaat;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM `bestellung` WHERE (`id` = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->datum=$result['datum'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->bestellungsart=$result['bestellungsart'];
|
||||
$this->belegnr=$result['belegnr'];
|
||||
$this->bearbeiter=$result['bearbeiter'];
|
||||
$this->angebot=$result['angebot'];
|
||||
$this->freitext=$result['freitext'];
|
||||
$this->internebemerkung=$result['internebemerkung'];
|
||||
$this->status=$result['status'];
|
||||
$this->adresse=$result['adresse'];
|
||||
$this->name=$result['name'];
|
||||
$this->vorname=$result['vorname'];
|
||||
$this->abteilung=$result['abteilung'];
|
||||
$this->unterabteilung=$result['unterabteilung'];
|
||||
$this->strasse=$result['strasse'];
|
||||
$this->adresszusatz=$result['adresszusatz'];
|
||||
$this->plz=$result['plz'];
|
||||
$this->ort=$result['ort'];
|
||||
$this->land=$result['land'];
|
||||
$this->abweichendelieferadresse=$result['abweichendelieferadresse'];
|
||||
$this->liefername=$result['liefername'];
|
||||
$this->lieferabteilung=$result['lieferabteilung'];
|
||||
$this->lieferunterabteilung=$result['lieferunterabteilung'];
|
||||
$this->lieferland=$result['lieferland'];
|
||||
$this->lieferstrasse=$result['lieferstrasse'];
|
||||
$this->lieferort=$result['lieferort'];
|
||||
$this->lieferplz=$result['lieferplz'];
|
||||
$this->lieferadresszusatz=$result['lieferadresszusatz'];
|
||||
$this->lieferansprechpartner=$result['lieferansprechpartner'];
|
||||
$this->ustid=$result['ustid'];
|
||||
$this->ust_befreit=$result['ust_befreit'];
|
||||
$this->email=$result['email'];
|
||||
$this->telefon=$result['telefon'];
|
||||
$this->telefax=$result['telefax'];
|
||||
$this->betreff=$result['betreff'];
|
||||
$this->kundennummer=$result['kundennummer'];
|
||||
$this->lieferantennummer=$result['lieferantennummer'];
|
||||
$this->versandart=$result['versandart'];
|
||||
$this->lieferdatum=$result['lieferdatum'];
|
||||
$this->einkaeufer=$result['einkaeufer'];
|
||||
$this->keineartikelnummern=$result['keineartikelnummern'];
|
||||
$this->zahlungsweise=$result['zahlungsweise'];
|
||||
$this->zahlungsstatus=$result['zahlungsstatus'];
|
||||
$this->zahlungszieltage=$result['zahlungszieltage'];
|
||||
$this->zahlungszieltageskonto=$result['zahlungszieltageskonto'];
|
||||
$this->zahlungszielskonto=$result['zahlungszielskonto'];
|
||||
$this->gesamtsumme=$result['gesamtsumme'];
|
||||
$this->bank_inhaber=$result['bank_inhaber'];
|
||||
$this->bank_institut=$result['bank_institut'];
|
||||
$this->bank_blz=$result['bank_blz'];
|
||||
$this->bank_konto=$result['bank_konto'];
|
||||
$this->paypalaccount=$result['paypalaccount'];
|
||||
$this->bestellbestaetigung=$result['bestellbestaetigung'];
|
||||
$this->firma=$result['firma'];
|
||||
$this->versendet=$result['versendet'];
|
||||
$this->versendet_am=$result['versendet_am'];
|
||||
$this->versendet_per=$result['versendet_per'];
|
||||
$this->versendet_durch=$result['versendet_durch'];
|
||||
$this->logdatei=$result['logdatei'];
|
||||
$this->artikelnummerninfotext=$result['artikelnummerninfotext'];
|
||||
$this->ansprechpartner=$result['ansprechpartner'];
|
||||
$this->anschreiben=$result['anschreiben'];
|
||||
$this->usereditid=$result['usereditid'];
|
||||
$this->useredittimestamp=$result['useredittimestamp'];
|
||||
$this->steuersatz_normal=$result['steuersatz_normal'];
|
||||
$this->steuersatz_zwischen=$result['steuersatz_zwischen'];
|
||||
$this->steuersatz_ermaessigt=$result['steuersatz_ermaessigt'];
|
||||
$this->steuersatz_starkermaessigt=$result['steuersatz_starkermaessigt'];
|
||||
$this->steuersatz_dienstleistung=$result['steuersatz_dienstleistung'];
|
||||
$this->waehrung=$result['waehrung'];
|
||||
$this->bestellungohnepreis=$result['bestellungohnepreis'];
|
||||
$this->schreibschutz=$result['schreibschutz'];
|
||||
$this->pdfarchiviert=$result['pdfarchiviert'];
|
||||
$this->pdfarchiviertversion=$result['pdfarchiviertversion'];
|
||||
$this->typ=$result['typ'];
|
||||
$this->verbindlichkeiteninfo=$result['verbindlichkeiteninfo'];
|
||||
$this->ohne_briefpapier=$result['ohne_briefpapier'];
|
||||
$this->projektfiliale=$result['projektfiliale'];
|
||||
$this->bestellung_bestaetigt=$result['bestellung_bestaetigt'];
|
||||
$this->bestaetigteslieferdatum=$result['bestaetigteslieferdatum'];
|
||||
$this->bestellungbestaetigtper=$result['bestellungbestaetigtper'];
|
||||
$this->bestellungbestaetigtabnummer=$result['bestellungbestaetigtabnummer'];
|
||||
$this->gewuenschteslieferdatum=$result['gewuenschteslieferdatum'];
|
||||
$this->zuarchivieren=$result['zuarchivieren'];
|
||||
$this->internebezeichnung=$result['internebezeichnung'];
|
||||
$this->angelegtam=$result['angelegtam'];
|
||||
$this->preisanfrageid=$result['preisanfrageid'];
|
||||
$this->sprache=$result['sprache'];
|
||||
$this->kundennummerlieferant=$result['kundennummerlieferant'];
|
||||
$this->ohne_artikeltext=$result['ohne_artikeltext'];
|
||||
$this->langeartikelnummern=$result['langeartikelnummern'];
|
||||
$this->abweichendebezeichnung=$result['abweichendebezeichnung'];
|
||||
$this->anzeigesteuer=$result['anzeigesteuer'];
|
||||
$this->kostenstelle=$result['kostenstelle'];
|
||||
$this->bodyzusatz=$result['bodyzusatz'];
|
||||
$this->lieferbedingung=$result['lieferbedingung'];
|
||||
$this->titel=$result['titel'];
|
||||
$this->liefertitel=$result['liefertitel'];
|
||||
$this->skontobetrag=$result['skontobetrag'];
|
||||
$this->skontoberechnet=$result['skontoberechnet'];
|
||||
$this->bundesstaat=$result['bundesstaat'];
|
||||
$this->lieferbundesstaat=$result['lieferbundesstaat'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO `bestellung` (`id`,`datum`,`projekt`,`bestellungsart`,`belegnr`,`bearbeiter`,`angebot`,`freitext`,`internebemerkung`,`status`,`adresse`,`name`,`vorname`,`abteilung`,`unterabteilung`,`strasse`,`adresszusatz`,`plz`,`ort`,`land`,`abweichendelieferadresse`,`liefername`,`lieferabteilung`,`lieferunterabteilung`,`lieferland`,`lieferstrasse`,`lieferort`,`lieferplz`,`lieferadresszusatz`,`lieferansprechpartner`,`ustid`,`ust_befreit`,`email`,`telefon`,`telefax`,`betreff`,`kundennummer`,`lieferantennummer`,`versandart`,`lieferdatum`,`einkaeufer`,`keineartikelnummern`,`zahlungsweise`,`zahlungsstatus`,`zahlungszieltage`,`zahlungszieltageskonto`,`zahlungszielskonto`,`gesamtsumme`,`bank_inhaber`,`bank_institut`,`bank_blz`,`bank_konto`,`paypalaccount`,`bestellbestaetigung`,`firma`,`versendet`,`versendet_am`,`versendet_per`,`versendet_durch`,`logdatei`,`artikelnummerninfotext`,`ansprechpartner`,`anschreiben`,`usereditid`,`useredittimestamp`,`steuersatz_normal`,`steuersatz_zwischen`,`steuersatz_ermaessigt`,`steuersatz_starkermaessigt`,`steuersatz_dienstleistung`,`waehrung`,`bestellungohnepreis`,`schreibschutz`,`pdfarchiviert`,`pdfarchiviertversion`,`typ`,`verbindlichkeiteninfo`,`ohne_briefpapier`,`projektfiliale`,`bestellung_bestaetigt`,`bestaetigteslieferdatum`,`bestellungbestaetigtper`,`bestellungbestaetigtabnummer`,`gewuenschteslieferdatum`,`zuarchivieren`,`internebezeichnung`,`angelegtam`,`preisanfrageid`,`sprache`,`kundennummerlieferant`,`ohne_artikeltext`,`langeartikelnummern`,`abweichendebezeichnung`,`anzeigesteuer`,`kostenstelle`,`bodyzusatz`,`lieferbedingung`,`titel`,`liefertitel`,`skontobetrag`,`skontoberechnet`,`bundesstaat`,`lieferbundesstaat`)
|
||||
VALUES(NULL,'{$this->datum}','{$this->projekt}','{$this->bestellungsart}','{$this->belegnr}','{$this->bearbeiter}','{$this->angebot}','{$this->freitext}','{$this->internebemerkung}','{$this->status}','{$this->adresse}','{$this->name}','{$this->vorname}','{$this->abteilung}','{$this->unterabteilung}','{$this->strasse}','{$this->adresszusatz}','{$this->plz}','{$this->ort}','{$this->land}','{$this->abweichendelieferadresse}','{$this->liefername}','{$this->lieferabteilung}','{$this->lieferunterabteilung}','{$this->lieferland}','{$this->lieferstrasse}','{$this->lieferort}','{$this->lieferplz}','{$this->lieferadresszusatz}','{$this->lieferansprechpartner}','{$this->ustid}','{$this->ust_befreit}','{$this->email}','{$this->telefon}','{$this->telefax}','{$this->betreff}','{$this->kundennummer}','{$this->lieferantennummer}','{$this->versandart}','{$this->lieferdatum}','{$this->einkaeufer}','{$this->keineartikelnummern}','{$this->zahlungsweise}','{$this->zahlungsstatus}','{$this->zahlungszieltage}','{$this->zahlungszieltageskonto}','{$this->zahlungszielskonto}','{$this->gesamtsumme}','{$this->bank_inhaber}','{$this->bank_institut}','{$this->bank_blz}','{$this->bank_konto}','{$this->paypalaccount}','{$this->bestellbestaetigung}','{$this->firma}','{$this->versendet}','{$this->versendet_am}','{$this->versendet_per}','{$this->versendet_durch}','{$this->logdatei}','{$this->artikelnummerninfotext}','{$this->ansprechpartner}','{$this->anschreiben}','{$this->usereditid}','{$this->useredittimestamp}','{$this->steuersatz_normal}','{$this->steuersatz_zwischen}','{$this->steuersatz_ermaessigt}','{$this->steuersatz_starkermaessigt}','{$this->steuersatz_dienstleistung}','{$this->waehrung}','{$this->bestellungohnepreis}','{$this->schreibschutz}','{$this->pdfarchiviert}','{$this->pdfarchiviertversion}','{$this->typ}','{$this->verbindlichkeiteninfo}','{$this->ohne_briefpapier}','{$this->projektfiliale}','{$this->bestellung_bestaetigt}','{$this->bestaetigteslieferdatum}','{$this->bestellungbestaetigtper}','{$this->bestellungbestaetigtabnummer}','{$this->gewuenschteslieferdatum}','{$this->zuarchivieren}','{$this->internebezeichnung}','{$this->angelegtam}','{$this->preisanfrageid}','{$this->sprache}','{$this->kundennummerlieferant}','{$this->ohne_artikeltext}','{$this->langeartikelnummern}','{$this->abweichendebezeichnung}','{$this->anzeigesteuer}','{$this->kostenstelle}','{$this->bodyzusatz}','{$this->lieferbedingung}','{$this->titel}','{$this->liefertitel}','{$this->skontobetrag}','{$this->skontoberechnet}','{$this->bundesstaat}','{$this->lieferbundesstaat}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
$sql = "UPDATE `bestellung` SET
|
||||
`datum`='{$this->datum}',
|
||||
`projekt`='{$this->projekt}',
|
||||
`bestellungsart`='{$this->bestellungsart}',
|
||||
`belegnr`='{$this->belegnr}',
|
||||
`bearbeiter`='{$this->bearbeiter}',
|
||||
`angebot`='{$this->angebot}',
|
||||
`freitext`='{$this->freitext}',
|
||||
`internebemerkung`='{$this->internebemerkung}',
|
||||
`status`='{$this->status}',
|
||||
`adresse`='{$this->adresse}',
|
||||
`name`='{$this->name}',
|
||||
`vorname`='{$this->vorname}',
|
||||
`abteilung`='{$this->abteilung}',
|
||||
`unterabteilung`='{$this->unterabteilung}',
|
||||
`strasse`='{$this->strasse}',
|
||||
`adresszusatz`='{$this->adresszusatz}',
|
||||
`plz`='{$this->plz}',
|
||||
`ort`='{$this->ort}',
|
||||
`land`='{$this->land}',
|
||||
`abweichendelieferadresse`='{$this->abweichendelieferadresse}',
|
||||
`liefername`='{$this->liefername}',
|
||||
`lieferabteilung`='{$this->lieferabteilung}',
|
||||
`lieferunterabteilung`='{$this->lieferunterabteilung}',
|
||||
`lieferland`='{$this->lieferland}',
|
||||
`lieferstrasse`='{$this->lieferstrasse}',
|
||||
`lieferort`='{$this->lieferort}',
|
||||
`lieferplz`='{$this->lieferplz}',
|
||||
`lieferadresszusatz`='{$this->lieferadresszusatz}',
|
||||
`lieferansprechpartner`='{$this->lieferansprechpartner}',
|
||||
`ustid`='{$this->ustid}',
|
||||
`ust_befreit`='{$this->ust_befreit}',
|
||||
`email`='{$this->email}',
|
||||
`telefon`='{$this->telefon}',
|
||||
`telefax`='{$this->telefax}',
|
||||
`betreff`='{$this->betreff}',
|
||||
`kundennummer`='{$this->kundennummer}',
|
||||
`lieferantennummer`='{$this->lieferantennummer}',
|
||||
`versandart`='{$this->versandart}',
|
||||
`lieferdatum`='{$this->lieferdatum}',
|
||||
`einkaeufer`='{$this->einkaeufer}',
|
||||
`keineartikelnummern`='{$this->keineartikelnummern}',
|
||||
`zahlungsweise`='{$this->zahlungsweise}',
|
||||
`zahlungsstatus`='{$this->zahlungsstatus}',
|
||||
`zahlungszieltage`='{$this->zahlungszieltage}',
|
||||
`zahlungszieltageskonto`='{$this->zahlungszieltageskonto}',
|
||||
`zahlungszielskonto`='{$this->zahlungszielskonto}',
|
||||
`gesamtsumme`='{$this->gesamtsumme}',
|
||||
`bank_inhaber`='{$this->bank_inhaber}',
|
||||
`bank_institut`='{$this->bank_institut}',
|
||||
`bank_blz`='{$this->bank_blz}',
|
||||
`bank_konto`='{$this->bank_konto}',
|
||||
`paypalaccount`='{$this->paypalaccount}',
|
||||
`bestellbestaetigung`='{$this->bestellbestaetigung}',
|
||||
`firma`='{$this->firma}',
|
||||
`versendet`='{$this->versendet}',
|
||||
`versendet_am`='{$this->versendet_am}',
|
||||
`versendet_per`='{$this->versendet_per}',
|
||||
`versendet_durch`='{$this->versendet_durch}',
|
||||
`logdatei`='{$this->logdatei}',
|
||||
`artikelnummerninfotext`='{$this->artikelnummerninfotext}',
|
||||
`ansprechpartner`='{$this->ansprechpartner}',
|
||||
`anschreiben`='{$this->anschreiben}',
|
||||
`usereditid`='{$this->usereditid}',
|
||||
`useredittimestamp`='{$this->useredittimestamp}',
|
||||
`steuersatz_normal`='{$this->steuersatz_normal}',
|
||||
`steuersatz_zwischen`='{$this->steuersatz_zwischen}',
|
||||
`steuersatz_ermaessigt`='{$this->steuersatz_ermaessigt}',
|
||||
`steuersatz_starkermaessigt`='{$this->steuersatz_starkermaessigt}',
|
||||
`steuersatz_dienstleistung`='{$this->steuersatz_dienstleistung}',
|
||||
`waehrung`='{$this->waehrung}',
|
||||
`bestellungohnepreis`='{$this->bestellungohnepreis}',
|
||||
`schreibschutz`='{$this->schreibschutz}',
|
||||
`pdfarchiviert`='{$this->pdfarchiviert}',
|
||||
`pdfarchiviertversion`='{$this->pdfarchiviertversion}',
|
||||
`typ`='{$this->typ}',
|
||||
`verbindlichkeiteninfo`='{$this->verbindlichkeiteninfo}',
|
||||
`ohne_briefpapier`='{$this->ohne_briefpapier}',
|
||||
`projektfiliale`='{$this->projektfiliale}',
|
||||
`bestellung_bestaetigt`='{$this->bestellung_bestaetigt}',
|
||||
`bestaetigteslieferdatum`='{$this->bestaetigteslieferdatum}',
|
||||
`bestellungbestaetigtper`='{$this->bestellungbestaetigtper}',
|
||||
`bestellungbestaetigtabnummer`='{$this->bestellungbestaetigtabnummer}',
|
||||
`gewuenschteslieferdatum`='{$this->gewuenschteslieferdatum}',
|
||||
`zuarchivieren`='{$this->zuarchivieren}',
|
||||
`internebezeichnung`='{$this->internebezeichnung}',
|
||||
`angelegtam`='{$this->angelegtam}',
|
||||
`preisanfrageid`='{$this->preisanfrageid}',
|
||||
`sprache`='{$this->sprache}',
|
||||
`kundennummerlieferant`='{$this->kundennummerlieferant}',
|
||||
`ohne_artikeltext`='{$this->ohne_artikeltext}',
|
||||
`langeartikelnummern`='{$this->langeartikelnummern}',
|
||||
`abweichendebezeichnung`='{$this->abweichendebezeichnung}',
|
||||
`anzeigesteuer`='{$this->anzeigesteuer}',
|
||||
`kostenstelle`='{$this->kostenstelle}',
|
||||
`bodyzusatz`='{$this->bodyzusatz}',
|
||||
`lieferbedingung`='{$this->lieferbedingung}',
|
||||
`titel`='{$this->titel}',
|
||||
`liefertitel`='{$this->liefertitel}',
|
||||
`skontobetrag`='{$this->skontobetrag}',
|
||||
`skontoberechnet`='{$this->skontoberechnet}',
|
||||
`bundesstaat`='{$this->bundesstaat}',
|
||||
`lieferbundesstaat`='{$this->lieferbundesstaat}'
|
||||
WHERE (`id`='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id='')
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM `bestellung` WHERE (`id`='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id='';
|
||||
$this->datum='';
|
||||
$this->projekt='';
|
||||
$this->bestellungsart='';
|
||||
$this->belegnr='';
|
||||
$this->bearbeiter='';
|
||||
$this->angebot='';
|
||||
$this->freitext='';
|
||||
$this->internebemerkung='';
|
||||
$this->status='';
|
||||
$this->adresse='';
|
||||
$this->name='';
|
||||
$this->vorname='';
|
||||
$this->abteilung='';
|
||||
$this->unterabteilung='';
|
||||
$this->strasse='';
|
||||
$this->adresszusatz='';
|
||||
$this->plz='';
|
||||
$this->ort='';
|
||||
$this->land='';
|
||||
$this->abweichendelieferadresse='';
|
||||
$this->liefername='';
|
||||
$this->lieferabteilung='';
|
||||
$this->lieferunterabteilung='';
|
||||
$this->lieferland='';
|
||||
$this->lieferstrasse='';
|
||||
$this->lieferort='';
|
||||
$this->lieferplz='';
|
||||
$this->lieferadresszusatz='';
|
||||
$this->lieferansprechpartner='';
|
||||
$this->ustid='';
|
||||
$this->ust_befreit='';
|
||||
$this->email='';
|
||||
$this->telefon='';
|
||||
$this->telefax='';
|
||||
$this->betreff='';
|
||||
$this->kundennummer='';
|
||||
$this->lieferantennummer='';
|
||||
$this->versandart='';
|
||||
$this->lieferdatum='';
|
||||
$this->einkaeufer='';
|
||||
$this->keineartikelnummern='';
|
||||
$this->zahlungsweise='';
|
||||
$this->zahlungsstatus='';
|
||||
$this->zahlungszieltage='';
|
||||
$this->zahlungszieltageskonto='';
|
||||
$this->zahlungszielskonto='';
|
||||
$this->gesamtsumme='';
|
||||
$this->bank_inhaber='';
|
||||
$this->bank_institut='';
|
||||
$this->bank_blz='';
|
||||
$this->bank_konto='';
|
||||
$this->paypalaccount='';
|
||||
$this->bestellbestaetigung='';
|
||||
$this->firma='';
|
||||
$this->versendet='';
|
||||
$this->versendet_am='';
|
||||
$this->versendet_per='';
|
||||
$this->versendet_durch='';
|
||||
$this->logdatei='';
|
||||
$this->artikelnummerninfotext='';
|
||||
$this->ansprechpartner='';
|
||||
$this->anschreiben='';
|
||||
$this->usereditid='';
|
||||
$this->useredittimestamp='';
|
||||
$this->steuersatz_normal='';
|
||||
$this->steuersatz_zwischen='';
|
||||
$this->steuersatz_ermaessigt='';
|
||||
$this->steuersatz_starkermaessigt='';
|
||||
$this->steuersatz_dienstleistung='';
|
||||
$this->waehrung='';
|
||||
$this->bestellungohnepreis='';
|
||||
$this->schreibschutz='';
|
||||
$this->pdfarchiviert='';
|
||||
$this->pdfarchiviertversion='';
|
||||
$this->typ='';
|
||||
$this->verbindlichkeiteninfo='';
|
||||
$this->ohne_briefpapier='';
|
||||
$this->projektfiliale='';
|
||||
$this->bestellung_bestaetigt='';
|
||||
$this->bestaetigteslieferdatum='';
|
||||
$this->bestellungbestaetigtper='';
|
||||
$this->bestellungbestaetigtabnummer='';
|
||||
$this->gewuenschteslieferdatum='';
|
||||
$this->zuarchivieren='';
|
||||
$this->internebezeichnung='';
|
||||
$this->angelegtam='';
|
||||
$this->preisanfrageid='';
|
||||
$this->sprache='';
|
||||
$this->kundennummerlieferant='';
|
||||
$this->ohne_artikeltext='';
|
||||
$this->langeartikelnummern='';
|
||||
$this->abweichendebezeichnung='';
|
||||
$this->anzeigesteuer='';
|
||||
$this->kostenstelle='';
|
||||
$this->bodyzusatz='';
|
||||
$this->lieferbedingung='';
|
||||
$this->titel='';
|
||||
$this->liefertitel='';
|
||||
$this->skontobetrag='';
|
||||
$this->skontoberechnet='';
|
||||
$this->bundesstaat='';
|
||||
$this->lieferbundesstaat='';
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = '';
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
public function SetId($value) { $this->id=$value; }
|
||||
public function GetId() { return $this->id; }
|
||||
public function SetDatum($value) { $this->datum=$value; }
|
||||
public function GetDatum() { return $this->datum; }
|
||||
public function SetProjekt($value) { $this->projekt=$value; }
|
||||
public function GetProjekt() { return $this->projekt; }
|
||||
public function SetBestellungsart($value) { $this->bestellungsart=$value; }
|
||||
public function GetBestellungsart() { return $this->bestellungsart; }
|
||||
public function SetBelegnr($value) { $this->belegnr=$value; }
|
||||
public function GetBelegnr() { return $this->belegnr; }
|
||||
public function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
public function GetBearbeiter() { return $this->bearbeiter; }
|
||||
public function SetAngebot($value) { $this->angebot=$value; }
|
||||
public function GetAngebot() { return $this->angebot; }
|
||||
public function SetFreitext($value) { $this->freitext=$value; }
|
||||
public function GetFreitext() { return $this->freitext; }
|
||||
public function SetInternebemerkung($value) { $this->internebemerkung=$value; }
|
||||
public function GetInternebemerkung() { return $this->internebemerkung; }
|
||||
public function SetStatus($value) { $this->status=$value; }
|
||||
public function GetStatus() { return $this->status; }
|
||||
public function SetAdresse($value) { $this->adresse=$value; }
|
||||
public function GetAdresse() { return $this->adresse; }
|
||||
public function SetName($value) { $this->name=$value; }
|
||||
public function GetName() { return $this->name; }
|
||||
public function SetVorname($value) { $this->vorname=$value; }
|
||||
public function GetVorname() { return $this->vorname; }
|
||||
public function SetAbteilung($value) { $this->abteilung=$value; }
|
||||
public function GetAbteilung() { return $this->abteilung; }
|
||||
public function SetUnterabteilung($value) { $this->unterabteilung=$value; }
|
||||
public function GetUnterabteilung() { return $this->unterabteilung; }
|
||||
public function SetStrasse($value) { $this->strasse=$value; }
|
||||
public function GetStrasse() { return $this->strasse; }
|
||||
public function SetAdresszusatz($value) { $this->adresszusatz=$value; }
|
||||
public function GetAdresszusatz() { return $this->adresszusatz; }
|
||||
public function SetPlz($value) { $this->plz=$value; }
|
||||
public function GetPlz() { return $this->plz; }
|
||||
public function SetOrt($value) { $this->ort=$value; }
|
||||
public function GetOrt() { return $this->ort; }
|
||||
public function SetLand($value) { $this->land=$value; }
|
||||
public function GetLand() { return $this->land; }
|
||||
public function SetAbweichendelieferadresse($value) { $this->abweichendelieferadresse=$value; }
|
||||
public function GetAbweichendelieferadresse() { return $this->abweichendelieferadresse; }
|
||||
public function SetLiefername($value) { $this->liefername=$value; }
|
||||
public function GetLiefername() { return $this->liefername; }
|
||||
public function SetLieferabteilung($value) { $this->lieferabteilung=$value; }
|
||||
public function GetLieferabteilung() { return $this->lieferabteilung; }
|
||||
public function SetLieferunterabteilung($value) { $this->lieferunterabteilung=$value; }
|
||||
public function GetLieferunterabteilung() { return $this->lieferunterabteilung; }
|
||||
public function SetLieferland($value) { $this->lieferland=$value; }
|
||||
public function GetLieferland() { return $this->lieferland; }
|
||||
public function SetLieferstrasse($value) { $this->lieferstrasse=$value; }
|
||||
public function GetLieferstrasse() { return $this->lieferstrasse; }
|
||||
public function SetLieferort($value) { $this->lieferort=$value; }
|
||||
public function GetLieferort() { return $this->lieferort; }
|
||||
public function SetLieferplz($value) { $this->lieferplz=$value; }
|
||||
public function GetLieferplz() { return $this->lieferplz; }
|
||||
public function SetLieferadresszusatz($value) { $this->lieferadresszusatz=$value; }
|
||||
public function GetLieferadresszusatz() { return $this->lieferadresszusatz; }
|
||||
public function SetLieferansprechpartner($value) { $this->lieferansprechpartner=$value; }
|
||||
public function GetLieferansprechpartner() { return $this->lieferansprechpartner; }
|
||||
public function SetUstid($value) { $this->ustid=$value; }
|
||||
public function GetUstid() { return $this->ustid; }
|
||||
public function SetUst_Befreit($value) { $this->ust_befreit=$value; }
|
||||
public function GetUst_Befreit() { return $this->ust_befreit; }
|
||||
public function SetEmail($value) { $this->email=$value; }
|
||||
public function GetEmail() { return $this->email; }
|
||||
public function SetTelefon($value) { $this->telefon=$value; }
|
||||
public function GetTelefon() { return $this->telefon; }
|
||||
public function SetTelefax($value) { $this->telefax=$value; }
|
||||
public function GetTelefax() { return $this->telefax; }
|
||||
public function SetBetreff($value) { $this->betreff=$value; }
|
||||
public function GetBetreff() { return $this->betreff; }
|
||||
public function SetKundennummer($value) { $this->kundennummer=$value; }
|
||||
public function GetKundennummer() { return $this->kundennummer; }
|
||||
public function SetLieferantennummer($value) { $this->lieferantennummer=$value; }
|
||||
public function GetLieferantennummer() { return $this->lieferantennummer; }
|
||||
public function SetVersandart($value) { $this->versandart=$value; }
|
||||
public function GetVersandart() { return $this->versandart; }
|
||||
public function SetLieferdatum($value) { $this->lieferdatum=$value; }
|
||||
public function GetLieferdatum() { return $this->lieferdatum; }
|
||||
public function SetEinkaeufer($value) { $this->einkaeufer=$value; }
|
||||
public function GetEinkaeufer() { return $this->einkaeufer; }
|
||||
public function SetKeineartikelnummern($value) { $this->keineartikelnummern=$value; }
|
||||
public function GetKeineartikelnummern() { return $this->keineartikelnummern; }
|
||||
public function SetZahlungsweise($value) { $this->zahlungsweise=$value; }
|
||||
public function GetZahlungsweise() { return $this->zahlungsweise; }
|
||||
public function SetZahlungsstatus($value) { $this->zahlungsstatus=$value; }
|
||||
public function GetZahlungsstatus() { return $this->zahlungsstatus; }
|
||||
public function SetZahlungszieltage($value) { $this->zahlungszieltage=$value; }
|
||||
public function GetZahlungszieltage() { return $this->zahlungszieltage; }
|
||||
public function SetZahlungszieltageskonto($value) { $this->zahlungszieltageskonto=$value; }
|
||||
public function GetZahlungszieltageskonto() { return $this->zahlungszieltageskonto; }
|
||||
public function SetZahlungszielskonto($value) { $this->zahlungszielskonto=$value; }
|
||||
public function GetZahlungszielskonto() { return $this->zahlungszielskonto; }
|
||||
public function SetGesamtsumme($value) { $this->gesamtsumme=$value; }
|
||||
public function GetGesamtsumme() { return $this->gesamtsumme; }
|
||||
public function SetBank_Inhaber($value) { $this->bank_inhaber=$value; }
|
||||
public function GetBank_Inhaber() { return $this->bank_inhaber; }
|
||||
public function SetBank_Institut($value) { $this->bank_institut=$value; }
|
||||
public function GetBank_Institut() { return $this->bank_institut; }
|
||||
public function SetBank_Blz($value) { $this->bank_blz=$value; }
|
||||
public function GetBank_Blz() { return $this->bank_blz; }
|
||||
public function SetBank_Konto($value) { $this->bank_konto=$value; }
|
||||
public function GetBank_Konto() { return $this->bank_konto; }
|
||||
public function SetPaypalaccount($value) { $this->paypalaccount=$value; }
|
||||
public function GetPaypalaccount() { return $this->paypalaccount; }
|
||||
public function SetBestellbestaetigung($value) { $this->bestellbestaetigung=$value; }
|
||||
public function GetBestellbestaetigung() { return $this->bestellbestaetigung; }
|
||||
public function SetFirma($value) { $this->firma=$value; }
|
||||
public function GetFirma() { return $this->firma; }
|
||||
public function SetVersendet($value) { $this->versendet=$value; }
|
||||
public function GetVersendet() { return $this->versendet; }
|
||||
public function SetVersendet_Am($value) { $this->versendet_am=$value; }
|
||||
public function GetVersendet_Am() { return $this->versendet_am; }
|
||||
public function SetVersendet_Per($value) { $this->versendet_per=$value; }
|
||||
public function GetVersendet_Per() { return $this->versendet_per; }
|
||||
public function SetVersendet_Durch($value) { $this->versendet_durch=$value; }
|
||||
public function GetVersendet_Durch() { return $this->versendet_durch; }
|
||||
public function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
public function GetLogdatei() { return $this->logdatei; }
|
||||
public function SetArtikelnummerninfotext($value) { $this->artikelnummerninfotext=$value; }
|
||||
public function GetArtikelnummerninfotext() { return $this->artikelnummerninfotext; }
|
||||
public function SetAnsprechpartner($value) { $this->ansprechpartner=$value; }
|
||||
public function GetAnsprechpartner() { return $this->ansprechpartner; }
|
||||
public function SetAnschreiben($value) { $this->anschreiben=$value; }
|
||||
public function GetAnschreiben() { return $this->anschreiben; }
|
||||
public function SetUsereditid($value) { $this->usereditid=$value; }
|
||||
public function GetUsereditid() { return $this->usereditid; }
|
||||
public function SetUseredittimestamp($value) { $this->useredittimestamp=$value; }
|
||||
public function GetUseredittimestamp() { return $this->useredittimestamp; }
|
||||
public function SetSteuersatz_Normal($value) { $this->steuersatz_normal=$value; }
|
||||
public function GetSteuersatz_Normal() { return $this->steuersatz_normal; }
|
||||
public function SetSteuersatz_Zwischen($value) { $this->steuersatz_zwischen=$value; }
|
||||
public function GetSteuersatz_Zwischen() { return $this->steuersatz_zwischen; }
|
||||
public function SetSteuersatz_Ermaessigt($value) { $this->steuersatz_ermaessigt=$value; }
|
||||
public function GetSteuersatz_Ermaessigt() { return $this->steuersatz_ermaessigt; }
|
||||
public function SetSteuersatz_Starkermaessigt($value) { $this->steuersatz_starkermaessigt=$value; }
|
||||
public function GetSteuersatz_Starkermaessigt() { return $this->steuersatz_starkermaessigt; }
|
||||
public function SetSteuersatz_Dienstleistung($value) { $this->steuersatz_dienstleistung=$value; }
|
||||
public function GetSteuersatz_Dienstleistung() { return $this->steuersatz_dienstleistung; }
|
||||
public function SetWaehrung($value) { $this->waehrung=$value; }
|
||||
public function GetWaehrung() { return $this->waehrung; }
|
||||
public function SetBestellungohnepreis($value) { $this->bestellungohnepreis=$value; }
|
||||
public function GetBestellungohnepreis() { return $this->bestellungohnepreis; }
|
||||
public function SetSchreibschutz($value) { $this->schreibschutz=$value; }
|
||||
public function GetSchreibschutz() { return $this->schreibschutz; }
|
||||
public function SetPdfarchiviert($value) { $this->pdfarchiviert=$value; }
|
||||
public function GetPdfarchiviert() { return $this->pdfarchiviert; }
|
||||
public function SetPdfarchiviertversion($value) { $this->pdfarchiviertversion=$value; }
|
||||
public function GetPdfarchiviertversion() { return $this->pdfarchiviertversion; }
|
||||
public function SetTyp($value) { $this->typ=$value; }
|
||||
public function GetTyp() { return $this->typ; }
|
||||
public function SetVerbindlichkeiteninfo($value) { $this->verbindlichkeiteninfo=$value; }
|
||||
public function GetVerbindlichkeiteninfo() { return $this->verbindlichkeiteninfo; }
|
||||
public function SetOhne_Briefpapier($value) { $this->ohne_briefpapier=$value; }
|
||||
public function GetOhne_Briefpapier() { return $this->ohne_briefpapier; }
|
||||
public function SetProjektfiliale($value) { $this->projektfiliale=$value; }
|
||||
public function GetProjektfiliale() { return $this->projektfiliale; }
|
||||
public function SetBestellung_Bestaetigt($value) { $this->bestellung_bestaetigt=$value; }
|
||||
public function GetBestellung_Bestaetigt() { return $this->bestellung_bestaetigt; }
|
||||
public function SetBestaetigteslieferdatum($value) { $this->bestaetigteslieferdatum=$value; }
|
||||
public function GetBestaetigteslieferdatum() { return $this->bestaetigteslieferdatum; }
|
||||
public function SetBestellungbestaetigtper($value) { $this->bestellungbestaetigtper=$value; }
|
||||
public function GetBestellungbestaetigtper() { return $this->bestellungbestaetigtper; }
|
||||
public function SetBestellungbestaetigtabnummer($value) { $this->bestellungbestaetigtabnummer=$value; }
|
||||
public function GetBestellungbestaetigtabnummer() { return $this->bestellungbestaetigtabnummer; }
|
||||
public function SetGewuenschteslieferdatum($value) { $this->gewuenschteslieferdatum=$value; }
|
||||
public function GetGewuenschteslieferdatum() { return $this->gewuenschteslieferdatum; }
|
||||
public function SetZuarchivieren($value) { $this->zuarchivieren=$value; }
|
||||
public function GetZuarchivieren() { return $this->zuarchivieren; }
|
||||
public function SetInternebezeichnung($value) { $this->internebezeichnung=$value; }
|
||||
public function GetInternebezeichnung() { return $this->internebezeichnung; }
|
||||
public function SetAngelegtam($value) { $this->angelegtam=$value; }
|
||||
public function GetAngelegtam() { return $this->angelegtam; }
|
||||
public function SetPreisanfrageid($value) { $this->preisanfrageid=$value; }
|
||||
public function GetPreisanfrageid() { return $this->preisanfrageid; }
|
||||
public function SetSprache($value) { $this->sprache=$value; }
|
||||
public function GetSprache() { return $this->sprache; }
|
||||
public function SetKundennummerlieferant($value) { $this->kundennummerlieferant=$value; }
|
||||
public function GetKundennummerlieferant() { return $this->kundennummerlieferant; }
|
||||
public function SetOhne_Artikeltext($value) { $this->ohne_artikeltext=$value; }
|
||||
public function GetOhne_Artikeltext() { return $this->ohne_artikeltext; }
|
||||
public function SetLangeartikelnummern($value) { $this->langeartikelnummern=$value; }
|
||||
public function GetLangeartikelnummern() { return $this->langeartikelnummern; }
|
||||
public function SetAbweichendebezeichnung($value) { $this->abweichendebezeichnung=$value; }
|
||||
public function GetAbweichendebezeichnung() { return $this->abweichendebezeichnung; }
|
||||
public function SetAnzeigesteuer($value) { $this->anzeigesteuer=$value; }
|
||||
public function GetAnzeigesteuer() { return $this->anzeigesteuer; }
|
||||
public function SetKostenstelle($value) { $this->kostenstelle=$value; }
|
||||
public function GetKostenstelle() { return $this->kostenstelle; }
|
||||
public function SetBodyzusatz($value) { $this->bodyzusatz=$value; }
|
||||
public function GetBodyzusatz() { return $this->bodyzusatz; }
|
||||
public function SetLieferbedingung($value) { $this->lieferbedingung=$value; }
|
||||
public function GetLieferbedingung() { return $this->lieferbedingung; }
|
||||
public function SetTitel($value) { $this->titel=$value; }
|
||||
public function GetTitel() { return $this->titel; }
|
||||
public function SetLiefertitel($value) { $this->liefertitel=$value; }
|
||||
public function GetLiefertitel() { return $this->liefertitel; }
|
||||
public function SetSkontobetrag($value) { $this->skontobetrag=$value; }
|
||||
public function GetSkontobetrag() { return $this->skontobetrag; }
|
||||
public function SetSkontoberechnet($value) { $this->skontoberechnet=$value; }
|
||||
public function GetSkontoberechnet() { return $this->skontoberechnet; }
|
||||
public function SetBundesstaat($value) { $this->bundesstaat=$value; }
|
||||
public function GetBundesstaat() { return $this->bundesstaat; }
|
||||
public function SetLieferbundesstaat($value) { $this->lieferbundesstaat=$value; }
|
||||
public function GetLieferbundesstaat() { return $this->lieferbundesstaat; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,581 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenBestellung_Position
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $bestellung;
|
||||
private $artikel;
|
||||
private $projekt;
|
||||
private $bezeichnunglieferant;
|
||||
private $bestellnummer;
|
||||
private $beschreibung;
|
||||
private $menge;
|
||||
private $preis;
|
||||
private $waehrung;
|
||||
private $lieferdatum;
|
||||
private $vpe;
|
||||
private $sort;
|
||||
private $status;
|
||||
private $umsatzsteuer;
|
||||
private $bemerkung;
|
||||
private $geliefert;
|
||||
private $mengemanuellgeliefertaktiviert;
|
||||
private $manuellgeliefertbearbeiter;
|
||||
private $abgerechnet;
|
||||
private $logdatei;
|
||||
private $abgeschlossen;
|
||||
private $einheit;
|
||||
private $zolltarifnummer;
|
||||
private $herkunftsland;
|
||||
private $artikelnummerkunde;
|
||||
private $auftrag_position_id;
|
||||
private $preisanfrage_position_id;
|
||||
private $freifeld1;
|
||||
private $freifeld2;
|
||||
private $freifeld3;
|
||||
private $freifeld4;
|
||||
private $freifeld5;
|
||||
private $freifeld6;
|
||||
private $freifeld7;
|
||||
private $freifeld8;
|
||||
private $freifeld9;
|
||||
private $freifeld10;
|
||||
private $auswahlmenge;
|
||||
private $auswahletiketten;
|
||||
private $auswahllagerplatz;
|
||||
private $teilprojekt;
|
||||
private $steuersatz;
|
||||
private $steuertext;
|
||||
private $erloese;
|
||||
private $erloesefestschreiben;
|
||||
private $freifeld11;
|
||||
private $freifeld12;
|
||||
private $freifeld13;
|
||||
private $freifeld14;
|
||||
private $freifeld15;
|
||||
private $freifeld16;
|
||||
private $freifeld17;
|
||||
private $freifeld18;
|
||||
private $freifeld19;
|
||||
private $freifeld20;
|
||||
private $skontobetrag;
|
||||
private $freifeld21;
|
||||
private $freifeld22;
|
||||
private $freifeld23;
|
||||
private $freifeld24;
|
||||
private $freifeld25;
|
||||
private $freifeld26;
|
||||
private $freifeld27;
|
||||
private $freifeld28;
|
||||
private $freifeld29;
|
||||
private $freifeld30;
|
||||
private $freifeld31;
|
||||
private $freifeld32;
|
||||
private $freifeld33;
|
||||
private $freifeld34;
|
||||
private $freifeld35;
|
||||
private $freifeld36;
|
||||
private $freifeld37;
|
||||
private $freifeld38;
|
||||
private $freifeld39;
|
||||
private $freifeld40;
|
||||
private $kostenstelle;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM bestellung_position WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->bestellung=$result['bestellung'];
|
||||
$this->artikel=$result['artikel'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->bezeichnunglieferant=$result['bezeichnunglieferant'];
|
||||
$this->bestellnummer=$result['bestellnummer'];
|
||||
$this->beschreibung=$result['beschreibung'];
|
||||
$this->menge=$result['menge'];
|
||||
$this->preis=$result['preis'];
|
||||
$this->waehrung=$result['waehrung'];
|
||||
$this->lieferdatum=$result['lieferdatum'];
|
||||
$this->vpe=$result['vpe'];
|
||||
$this->sort=$result['sort'];
|
||||
$this->status=$result['status'];
|
||||
$this->umsatzsteuer=$result['umsatzsteuer'];
|
||||
$this->bemerkung=$result['bemerkung'];
|
||||
$this->geliefert=$result['geliefert'];
|
||||
$this->mengemanuellgeliefertaktiviert=$result['mengemanuellgeliefertaktiviert'];
|
||||
$this->manuellgeliefertbearbeiter=$result['manuellgeliefertbearbeiter'];
|
||||
$this->abgerechnet=$result['abgerechnet'];
|
||||
$this->logdatei=$result['logdatei'];
|
||||
$this->abgeschlossen=$result['abgeschlossen'];
|
||||
$this->einheit=$result['einheit'];
|
||||
$this->zolltarifnummer=$result['zolltarifnummer'];
|
||||
$this->herkunftsland=$result['herkunftsland'];
|
||||
$this->artikelnummerkunde=$result['artikelnummerkunde'];
|
||||
$this->auftrag_position_id=$result['auftrag_position_id'];
|
||||
$this->preisanfrage_position_id=$result['preisanfrage_position_id'];
|
||||
$this->freifeld1=$result['freifeld1'];
|
||||
$this->freifeld2=$result['freifeld2'];
|
||||
$this->freifeld3=$result['freifeld3'];
|
||||
$this->freifeld4=$result['freifeld4'];
|
||||
$this->freifeld5=$result['freifeld5'];
|
||||
$this->freifeld6=$result['freifeld6'];
|
||||
$this->freifeld7=$result['freifeld7'];
|
||||
$this->freifeld8=$result['freifeld8'];
|
||||
$this->freifeld9=$result['freifeld9'];
|
||||
$this->freifeld10=$result['freifeld10'];
|
||||
$this->auswahlmenge=$result['auswahlmenge'];
|
||||
$this->auswahletiketten=$result['auswahletiketten'];
|
||||
$this->auswahllagerplatz=$result['auswahllagerplatz'];
|
||||
$this->teilprojekt=$result['teilprojekt'];
|
||||
$this->steuersatz=$result['steuersatz'];
|
||||
$this->steuertext=$result['steuertext'];
|
||||
$this->erloese=$result['erloese'];
|
||||
$this->erloesefestschreiben=$result['erloesefestschreiben'];
|
||||
$this->freifeld11=$result['freifeld11'];
|
||||
$this->freifeld12=$result['freifeld12'];
|
||||
$this->freifeld13=$result['freifeld13'];
|
||||
$this->freifeld14=$result['freifeld14'];
|
||||
$this->freifeld15=$result['freifeld15'];
|
||||
$this->freifeld16=$result['freifeld16'];
|
||||
$this->freifeld17=$result['freifeld17'];
|
||||
$this->freifeld18=$result['freifeld18'];
|
||||
$this->freifeld19=$result['freifeld19'];
|
||||
$this->freifeld20=$result['freifeld20'];
|
||||
$this->skontobetrag=$result['skontobetrag'];
|
||||
$this->freifeld21=$result['freifeld21'];
|
||||
$this->freifeld22=$result['freifeld22'];
|
||||
$this->freifeld23=$result['freifeld23'];
|
||||
$this->freifeld24=$result['freifeld24'];
|
||||
$this->freifeld25=$result['freifeld25'];
|
||||
$this->freifeld26=$result['freifeld26'];
|
||||
$this->freifeld27=$result['freifeld27'];
|
||||
$this->freifeld28=$result['freifeld28'];
|
||||
$this->freifeld29=$result['freifeld29'];
|
||||
$this->freifeld30=$result['freifeld30'];
|
||||
$this->freifeld31=$result['freifeld31'];
|
||||
$this->freifeld32=$result['freifeld32'];
|
||||
$this->freifeld33=$result['freifeld33'];
|
||||
$this->freifeld34=$result['freifeld34'];
|
||||
$this->freifeld35=$result['freifeld35'];
|
||||
$this->freifeld36=$result['freifeld36'];
|
||||
$this->freifeld37=$result['freifeld37'];
|
||||
$this->freifeld38=$result['freifeld38'];
|
||||
$this->freifeld39=$result['freifeld39'];
|
||||
$this->freifeld40=$result['freifeld40'];
|
||||
$this->kostenstelle=$result['kostenstelle'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO bestellung_position (id,bestellung,artikel,projekt,bezeichnunglieferant,bestellnummer,beschreibung,menge,preis,waehrung,lieferdatum,vpe,sort,status,umsatzsteuer,bemerkung,geliefert,mengemanuellgeliefertaktiviert,manuellgeliefertbearbeiter,abgerechnet,logdatei,abgeschlossen,einheit,zolltarifnummer,herkunftsland,artikelnummerkunde,auftrag_position_id,preisanfrage_position_id,freifeld1,freifeld2,freifeld3,freifeld4,freifeld5,freifeld6,freifeld7,freifeld8,freifeld9,freifeld10,auswahlmenge,auswahletiketten,auswahllagerplatz,teilprojekt,steuersatz,steuertext,erloese,erloesefestschreiben,freifeld11,freifeld12,freifeld13,freifeld14,freifeld15,freifeld16,freifeld17,freifeld18,freifeld19,freifeld20,skontobetrag,freifeld21,freifeld22,freifeld23,freifeld24,freifeld25,freifeld26,freifeld27,freifeld28,freifeld29,freifeld30,freifeld31,freifeld32,freifeld33,freifeld34,freifeld35,freifeld36,freifeld37,freifeld38,freifeld39,freifeld40,kostenstelle)
|
||||
VALUES('','{$this->bestellung}','{$this->artikel}','{$this->projekt}','{$this->bezeichnunglieferant}','{$this->bestellnummer}','{$this->beschreibung}','{$this->menge}','{$this->preis}','{$this->waehrung}','{$this->lieferdatum}','{$this->vpe}','{$this->sort}','{$this->status}','{$this->umsatzsteuer}','{$this->bemerkung}','{$this->geliefert}','{$this->mengemanuellgeliefertaktiviert}','{$this->manuellgeliefertbearbeiter}','{$this->abgerechnet}','{$this->logdatei}','{$this->abgeschlossen}','{$this->einheit}','{$this->zolltarifnummer}','{$this->herkunftsland}','{$this->artikelnummerkunde}','{$this->auftrag_position_id}','{$this->preisanfrage_position_id}','{$this->freifeld1}','{$this->freifeld2}','{$this->freifeld3}','{$this->freifeld4}','{$this->freifeld5}','{$this->freifeld6}','{$this->freifeld7}','{$this->freifeld8}','{$this->freifeld9}','{$this->freifeld10}','{$this->auswahlmenge}','{$this->auswahletiketten}','{$this->auswahllagerplatz}','{$this->teilprojekt}','{$this->steuersatz}','{$this->steuertext}','{$this->erloese}','{$this->erloesefestschreiben}','{$this->freifeld11}','{$this->freifeld12}','{$this->freifeld13}','{$this->freifeld14}','{$this->freifeld15}','{$this->freifeld16}','{$this->freifeld17}','{$this->freifeld18}','{$this->freifeld19}','{$this->freifeld20}','{$this->skontobetrag}','{$this->freifeld21}','{$this->freifeld22}','{$this->freifeld23}','{$this->freifeld24}','{$this->freifeld25}','{$this->freifeld26}','{$this->freifeld27}','{$this->freifeld28}','{$this->freifeld29}','{$this->freifeld30}','{$this->freifeld31}','{$this->freifeld32}','{$this->freifeld33}','{$this->freifeld34}','{$this->freifeld35}','{$this->freifeld36}','{$this->freifeld37}','{$this->freifeld38}','{$this->freifeld39}','{$this->freifeld40}','{$this->kostenstelle}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE bestellung_position SET
|
||||
bestellung='{$this->bestellung}',
|
||||
artikel='{$this->artikel}',
|
||||
projekt='{$this->projekt}',
|
||||
bezeichnunglieferant='{$this->bezeichnunglieferant}',
|
||||
bestellnummer='{$this->bestellnummer}',
|
||||
beschreibung='{$this->beschreibung}',
|
||||
menge='{$this->menge}',
|
||||
preis='{$this->preis}',
|
||||
waehrung='{$this->waehrung}',
|
||||
lieferdatum='{$this->lieferdatum}',
|
||||
vpe='{$this->vpe}',
|
||||
sort='{$this->sort}',
|
||||
status='{$this->status}',
|
||||
umsatzsteuer='{$this->umsatzsteuer}',
|
||||
bemerkung='{$this->bemerkung}',
|
||||
geliefert='{$this->geliefert}',
|
||||
mengemanuellgeliefertaktiviert='{$this->mengemanuellgeliefertaktiviert}',
|
||||
manuellgeliefertbearbeiter='{$this->manuellgeliefertbearbeiter}',
|
||||
abgerechnet='{$this->abgerechnet}',
|
||||
logdatei='{$this->logdatei}',
|
||||
abgeschlossen='{$this->abgeschlossen}',
|
||||
einheit='{$this->einheit}',
|
||||
zolltarifnummer='{$this->zolltarifnummer}',
|
||||
herkunftsland='{$this->herkunftsland}',
|
||||
artikelnummerkunde='{$this->artikelnummerkunde}',
|
||||
auftrag_position_id='{$this->auftrag_position_id}',
|
||||
preisanfrage_position_id='{$this->preisanfrage_position_id}',
|
||||
freifeld1='{$this->freifeld1}',
|
||||
freifeld2='{$this->freifeld2}',
|
||||
freifeld3='{$this->freifeld3}',
|
||||
freifeld4='{$this->freifeld4}',
|
||||
freifeld5='{$this->freifeld5}',
|
||||
freifeld6='{$this->freifeld6}',
|
||||
freifeld7='{$this->freifeld7}',
|
||||
freifeld8='{$this->freifeld8}',
|
||||
freifeld9='{$this->freifeld9}',
|
||||
freifeld10='{$this->freifeld10}',
|
||||
auswahlmenge='{$this->auswahlmenge}',
|
||||
auswahletiketten='{$this->auswahletiketten}',
|
||||
auswahllagerplatz='{$this->auswahllagerplatz}',
|
||||
teilprojekt='{$this->teilprojekt}',
|
||||
steuersatz='{$this->steuersatz}',
|
||||
steuertext='{$this->steuertext}',
|
||||
erloese='{$this->erloese}',
|
||||
erloesefestschreiben='{$this->erloesefestschreiben}',
|
||||
freifeld11='{$this->freifeld11}',
|
||||
freifeld12='{$this->freifeld12}',
|
||||
freifeld13='{$this->freifeld13}',
|
||||
freifeld14='{$this->freifeld14}',
|
||||
freifeld15='{$this->freifeld15}',
|
||||
freifeld16='{$this->freifeld16}',
|
||||
freifeld17='{$this->freifeld17}',
|
||||
freifeld18='{$this->freifeld18}',
|
||||
freifeld19='{$this->freifeld19}',
|
||||
freifeld20='{$this->freifeld20}',
|
||||
skontobetrag='{$this->skontobetrag}',
|
||||
freifeld21='{$this->freifeld21}',
|
||||
freifeld22='{$this->freifeld22}',
|
||||
freifeld23='{$this->freifeld23}',
|
||||
freifeld24='{$this->freifeld24}',
|
||||
freifeld25='{$this->freifeld25}',
|
||||
freifeld26='{$this->freifeld26}',
|
||||
freifeld27='{$this->freifeld27}',
|
||||
freifeld28='{$this->freifeld28}',
|
||||
freifeld29='{$this->freifeld29}',
|
||||
freifeld30='{$this->freifeld30}',
|
||||
freifeld31='{$this->freifeld31}',
|
||||
freifeld32='{$this->freifeld32}',
|
||||
freifeld33='{$this->freifeld33}',
|
||||
freifeld34='{$this->freifeld34}',
|
||||
freifeld35='{$this->freifeld35}',
|
||||
freifeld36='{$this->freifeld36}',
|
||||
freifeld37='{$this->freifeld37}',
|
||||
freifeld38='{$this->freifeld38}',
|
||||
freifeld39='{$this->freifeld39}',
|
||||
freifeld40='{$this->freifeld40}',
|
||||
kostenstelle='{$this->kostenstelle}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM bestellung_position WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->bestellung="";
|
||||
$this->artikel="";
|
||||
$this->projekt="";
|
||||
$this->bezeichnunglieferant="";
|
||||
$this->bestellnummer="";
|
||||
$this->beschreibung="";
|
||||
$this->menge="";
|
||||
$this->preis="";
|
||||
$this->waehrung="";
|
||||
$this->lieferdatum="";
|
||||
$this->vpe="";
|
||||
$this->sort="";
|
||||
$this->status="";
|
||||
$this->umsatzsteuer="";
|
||||
$this->bemerkung="";
|
||||
$this->geliefert="";
|
||||
$this->mengemanuellgeliefertaktiviert="";
|
||||
$this->manuellgeliefertbearbeiter="";
|
||||
$this->abgerechnet="";
|
||||
$this->logdatei="";
|
||||
$this->abgeschlossen="";
|
||||
$this->einheit="";
|
||||
$this->zolltarifnummer="";
|
||||
$this->herkunftsland="";
|
||||
$this->artikelnummerkunde="";
|
||||
$this->auftrag_position_id="";
|
||||
$this->preisanfrage_position_id="";
|
||||
$this->freifeld1="";
|
||||
$this->freifeld2="";
|
||||
$this->freifeld3="";
|
||||
$this->freifeld4="";
|
||||
$this->freifeld5="";
|
||||
$this->freifeld6="";
|
||||
$this->freifeld7="";
|
||||
$this->freifeld8="";
|
||||
$this->freifeld9="";
|
||||
$this->freifeld10="";
|
||||
$this->auswahlmenge="";
|
||||
$this->auswahletiketten="";
|
||||
$this->auswahllagerplatz="";
|
||||
$this->teilprojekt="";
|
||||
$this->steuersatz="";
|
||||
$this->steuertext="";
|
||||
$this->erloese="";
|
||||
$this->erloesefestschreiben="";
|
||||
$this->freifeld11="";
|
||||
$this->freifeld12="";
|
||||
$this->freifeld13="";
|
||||
$this->freifeld14="";
|
||||
$this->freifeld15="";
|
||||
$this->freifeld16="";
|
||||
$this->freifeld17="";
|
||||
$this->freifeld18="";
|
||||
$this->freifeld19="";
|
||||
$this->freifeld20="";
|
||||
$this->skontobetrag="";
|
||||
$this->freifeld21="";
|
||||
$this->freifeld22="";
|
||||
$this->freifeld23="";
|
||||
$this->freifeld24="";
|
||||
$this->freifeld25="";
|
||||
$this->freifeld26="";
|
||||
$this->freifeld27="";
|
||||
$this->freifeld28="";
|
||||
$this->freifeld29="";
|
||||
$this->freifeld30="";
|
||||
$this->freifeld31="";
|
||||
$this->freifeld32="";
|
||||
$this->freifeld33="";
|
||||
$this->freifeld34="";
|
||||
$this->freifeld35="";
|
||||
$this->freifeld36="";
|
||||
$this->freifeld37="";
|
||||
$this->freifeld38="";
|
||||
$this->freifeld39="";
|
||||
$this->freifeld40="";
|
||||
$this->kostenstelle="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetBestellung($value) { $this->bestellung=$value; }
|
||||
function GetBestellung() { return $this->bestellung; }
|
||||
function SetArtikel($value) { $this->artikel=$value; }
|
||||
function GetArtikel() { return $this->artikel; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetBezeichnunglieferant($value) { $this->bezeichnunglieferant=$value; }
|
||||
function GetBezeichnunglieferant() { return $this->bezeichnunglieferant; }
|
||||
function SetBestellnummer($value) { $this->bestellnummer=$value; }
|
||||
function GetBestellnummer() { return $this->bestellnummer; }
|
||||
function SetBeschreibung($value) { $this->beschreibung=$value; }
|
||||
function GetBeschreibung() { return $this->beschreibung; }
|
||||
function SetMenge($value) { $this->menge=$value; }
|
||||
function GetMenge() { return $this->menge; }
|
||||
function SetPreis($value) { $this->preis=$value; }
|
||||
function GetPreis() { return $this->preis; }
|
||||
function SetWaehrung($value) { $this->waehrung=$value; }
|
||||
function GetWaehrung() { return $this->waehrung; }
|
||||
function SetLieferdatum($value) { $this->lieferdatum=$value; }
|
||||
function GetLieferdatum() { return $this->lieferdatum; }
|
||||
function SetVpe($value) { $this->vpe=$value; }
|
||||
function GetVpe() { return $this->vpe; }
|
||||
function SetSort($value) { $this->sort=$value; }
|
||||
function GetSort() { return $this->sort; }
|
||||
function SetStatus($value) { $this->status=$value; }
|
||||
function GetStatus() { return $this->status; }
|
||||
function SetUmsatzsteuer($value) { $this->umsatzsteuer=$value; }
|
||||
function GetUmsatzsteuer() { return $this->umsatzsteuer; }
|
||||
function SetBemerkung($value) { $this->bemerkung=$value; }
|
||||
function GetBemerkung() { return $this->bemerkung; }
|
||||
function SetGeliefert($value) { $this->geliefert=$value; }
|
||||
function GetGeliefert() { return $this->geliefert; }
|
||||
function SetMengemanuellgeliefertaktiviert($value) { $this->mengemanuellgeliefertaktiviert=$value; }
|
||||
function GetMengemanuellgeliefertaktiviert() { return $this->mengemanuellgeliefertaktiviert; }
|
||||
function SetManuellgeliefertbearbeiter($value) { $this->manuellgeliefertbearbeiter=$value; }
|
||||
function GetManuellgeliefertbearbeiter() { return $this->manuellgeliefertbearbeiter; }
|
||||
function SetAbgerechnet($value) { $this->abgerechnet=$value; }
|
||||
function GetAbgerechnet() { return $this->abgerechnet; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
function SetAbgeschlossen($value) { $this->abgeschlossen=$value; }
|
||||
function GetAbgeschlossen() { return $this->abgeschlossen; }
|
||||
function SetEinheit($value) { $this->einheit=$value; }
|
||||
function GetEinheit() { return $this->einheit; }
|
||||
function SetZolltarifnummer($value) { $this->zolltarifnummer=$value; }
|
||||
function GetZolltarifnummer() { return $this->zolltarifnummer; }
|
||||
function SetHerkunftsland($value) { $this->herkunftsland=$value; }
|
||||
function GetHerkunftsland() { return $this->herkunftsland; }
|
||||
function SetArtikelnummerkunde($value) { $this->artikelnummerkunde=$value; }
|
||||
function GetArtikelnummerkunde() { return $this->artikelnummerkunde; }
|
||||
function SetAuftrag_Position_Id($value) { $this->auftrag_position_id=$value; }
|
||||
function GetAuftrag_Position_Id() { return $this->auftrag_position_id; }
|
||||
function SetPreisanfrage_Position_Id($value) { $this->preisanfrage_position_id=$value; }
|
||||
function GetPreisanfrage_Position_Id() { return $this->preisanfrage_position_id; }
|
||||
function SetFreifeld1($value) { $this->freifeld1=$value; }
|
||||
function GetFreifeld1() { return $this->freifeld1; }
|
||||
function SetFreifeld2($value) { $this->freifeld2=$value; }
|
||||
function GetFreifeld2() { return $this->freifeld2; }
|
||||
function SetFreifeld3($value) { $this->freifeld3=$value; }
|
||||
function GetFreifeld3() { return $this->freifeld3; }
|
||||
function SetFreifeld4($value) { $this->freifeld4=$value; }
|
||||
function GetFreifeld4() { return $this->freifeld4; }
|
||||
function SetFreifeld5($value) { $this->freifeld5=$value; }
|
||||
function GetFreifeld5() { return $this->freifeld5; }
|
||||
function SetFreifeld6($value) { $this->freifeld6=$value; }
|
||||
function GetFreifeld6() { return $this->freifeld6; }
|
||||
function SetFreifeld7($value) { $this->freifeld7=$value; }
|
||||
function GetFreifeld7() { return $this->freifeld7; }
|
||||
function SetFreifeld8($value) { $this->freifeld8=$value; }
|
||||
function GetFreifeld8() { return $this->freifeld8; }
|
||||
function SetFreifeld9($value) { $this->freifeld9=$value; }
|
||||
function GetFreifeld9() { return $this->freifeld9; }
|
||||
function SetFreifeld10($value) { $this->freifeld10=$value; }
|
||||
function GetFreifeld10() { return $this->freifeld10; }
|
||||
function SetAuswahlmenge($value) { $this->auswahlmenge=$value; }
|
||||
function GetAuswahlmenge() { return $this->auswahlmenge; }
|
||||
function SetAuswahletiketten($value) { $this->auswahletiketten=$value; }
|
||||
function GetAuswahletiketten() { return $this->auswahletiketten; }
|
||||
function SetAuswahllagerplatz($value) { $this->auswahllagerplatz=$value; }
|
||||
function GetAuswahllagerplatz() { return $this->auswahllagerplatz; }
|
||||
function SetTeilprojekt($value) { $this->teilprojekt=$value; }
|
||||
function GetTeilprojekt() { return $this->teilprojekt; }
|
||||
function SetSteuersatz($value) { $this->steuersatz=$value; }
|
||||
function GetSteuersatz() { return $this->steuersatz; }
|
||||
function SetSteuertext($value) { $this->steuertext=$value; }
|
||||
function GetSteuertext() { return $this->steuertext; }
|
||||
function SetErloese($value) { $this->erloese=$value; }
|
||||
function GetErloese() { return $this->erloese; }
|
||||
function SetErloesefestschreiben($value) { $this->erloesefestschreiben=$value; }
|
||||
function GetErloesefestschreiben() { return $this->erloesefestschreiben; }
|
||||
function SetFreifeld11($value) { $this->freifeld11=$value; }
|
||||
function GetFreifeld11() { return $this->freifeld11; }
|
||||
function SetFreifeld12($value) { $this->freifeld12=$value; }
|
||||
function GetFreifeld12() { return $this->freifeld12; }
|
||||
function SetFreifeld13($value) { $this->freifeld13=$value; }
|
||||
function GetFreifeld13() { return $this->freifeld13; }
|
||||
function SetFreifeld14($value) { $this->freifeld14=$value; }
|
||||
function GetFreifeld14() { return $this->freifeld14; }
|
||||
function SetFreifeld15($value) { $this->freifeld15=$value; }
|
||||
function GetFreifeld15() { return $this->freifeld15; }
|
||||
function SetFreifeld16($value) { $this->freifeld16=$value; }
|
||||
function GetFreifeld16() { return $this->freifeld16; }
|
||||
function SetFreifeld17($value) { $this->freifeld17=$value; }
|
||||
function GetFreifeld17() { return $this->freifeld17; }
|
||||
function SetFreifeld18($value) { $this->freifeld18=$value; }
|
||||
function GetFreifeld18() { return $this->freifeld18; }
|
||||
function SetFreifeld19($value) { $this->freifeld19=$value; }
|
||||
function GetFreifeld19() { return $this->freifeld19; }
|
||||
function SetFreifeld20($value) { $this->freifeld20=$value; }
|
||||
function GetFreifeld20() { return $this->freifeld20; }
|
||||
function SetSkontobetrag($value) { $this->skontobetrag=$value; }
|
||||
function GetSkontobetrag() { return $this->skontobetrag; }
|
||||
function SetFreifeld21($value) { $this->freifeld21=$value; }
|
||||
function GetFreifeld21() { return $this->freifeld21; }
|
||||
function SetFreifeld22($value) { $this->freifeld22=$value; }
|
||||
function GetFreifeld22() { return $this->freifeld22; }
|
||||
function SetFreifeld23($value) { $this->freifeld23=$value; }
|
||||
function GetFreifeld23() { return $this->freifeld23; }
|
||||
function SetFreifeld24($value) { $this->freifeld24=$value; }
|
||||
function GetFreifeld24() { return $this->freifeld24; }
|
||||
function SetFreifeld25($value) { $this->freifeld25=$value; }
|
||||
function GetFreifeld25() { return $this->freifeld25; }
|
||||
function SetFreifeld26($value) { $this->freifeld26=$value; }
|
||||
function GetFreifeld26() { return $this->freifeld26; }
|
||||
function SetFreifeld27($value) { $this->freifeld27=$value; }
|
||||
function GetFreifeld27() { return $this->freifeld27; }
|
||||
function SetFreifeld28($value) { $this->freifeld28=$value; }
|
||||
function GetFreifeld28() { return $this->freifeld28; }
|
||||
function SetFreifeld29($value) { $this->freifeld29=$value; }
|
||||
function GetFreifeld29() { return $this->freifeld29; }
|
||||
function SetFreifeld30($value) { $this->freifeld30=$value; }
|
||||
function GetFreifeld30() { return $this->freifeld30; }
|
||||
function SetFreifeld31($value) { $this->freifeld31=$value; }
|
||||
function GetFreifeld31() { return $this->freifeld31; }
|
||||
function SetFreifeld32($value) { $this->freifeld32=$value; }
|
||||
function GetFreifeld32() { return $this->freifeld32; }
|
||||
function SetFreifeld33($value) { $this->freifeld33=$value; }
|
||||
function GetFreifeld33() { return $this->freifeld33; }
|
||||
function SetFreifeld34($value) { $this->freifeld34=$value; }
|
||||
function GetFreifeld34() { return $this->freifeld34; }
|
||||
function SetFreifeld35($value) { $this->freifeld35=$value; }
|
||||
function GetFreifeld35() { return $this->freifeld35; }
|
||||
function SetFreifeld36($value) { $this->freifeld36=$value; }
|
||||
function GetFreifeld36() { return $this->freifeld36; }
|
||||
function SetFreifeld37($value) { $this->freifeld37=$value; }
|
||||
function GetFreifeld37() { return $this->freifeld37; }
|
||||
function SetFreifeld38($value) { $this->freifeld38=$value; }
|
||||
function GetFreifeld38() { return $this->freifeld38; }
|
||||
function SetFreifeld39($value) { $this->freifeld39=$value; }
|
||||
function GetFreifeld39() { return $this->freifeld39; }
|
||||
function SetFreifeld40($value) { $this->freifeld40=$value; }
|
||||
function GetFreifeld40() { return $this->freifeld40; }
|
||||
function SetKostenstelle($value) { $this->kostenstelle=$value; }
|
||||
function GetKostenstelle() { return $this->kostenstelle; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,143 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenBestellung_Protokoll
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $bestellung;
|
||||
private $zeit;
|
||||
private $bearbeiter;
|
||||
private $grund;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM bestellung_protokoll WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->bestellung=$result[bestellung];
|
||||
$this->zeit=$result[zeit];
|
||||
$this->bearbeiter=$result[bearbeiter];
|
||||
$this->grund=$result[grund];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO bestellung_protokoll (id,bestellung,zeit,bearbeiter,grund)
|
||||
VALUES('','{$this->bestellung}','{$this->zeit}','{$this->bearbeiter}','{$this->grund}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE bestellung_protokoll SET
|
||||
bestellung='{$this->bestellung}',
|
||||
zeit='{$this->zeit}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
grund='{$this->grund}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM bestellung_protokoll WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->bestellung="";
|
||||
$this->zeit="";
|
||||
$this->bearbeiter="";
|
||||
$this->grund="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetBestellung($value) { $this->bestellung=$value; }
|
||||
function GetBestellung() { return $this->bestellung; }
|
||||
function SetZeit($value) { $this->zeit=$value; }
|
||||
function GetZeit() { return $this->zeit; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetGrund($value) { $this->grund=$value; }
|
||||
function GetGrund() { return $this->grund; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,125 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenCalendar
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $date;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM calendar WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->date=$result[date];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO calendar (id,date)
|
||||
VALUES('','{$this->date}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE calendar SET
|
||||
date='{$this->date}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM calendar WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->date="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetDate($value) { $this->date=$value; }
|
||||
function GetDate() { return $this->date; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenChargen
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $charge;
|
||||
private $adresse;
|
||||
private $artikel;
|
||||
private $beschreibung;
|
||||
private $lieferung;
|
||||
private $lieferschein;
|
||||
private $bearbeiter;
|
||||
private $logdatei;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM chargen WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->charge=$result['charge'];
|
||||
$this->adresse=$result['adresse'];
|
||||
$this->artikel=$result['artikel'];
|
||||
$this->beschreibung=$result['beschreibung'];
|
||||
$this->lieferung=$result['lieferung'];
|
||||
$this->lieferschein=$result['lieferschein'];
|
||||
$this->bearbeiter=$result['bearbeiter'];
|
||||
$this->logdatei=$result['logdatei'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO chargen (id,charge,adresse,artikel,beschreibung,lieferung,lieferschein,bearbeiter,logdatei)
|
||||
VALUES('','{$this->charge}','{$this->adresse}','{$this->artikel}','{$this->beschreibung}','{$this->lieferung}','{$this->lieferschein}','{$this->bearbeiter}','{$this->logdatei}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE chargen SET
|
||||
charge='{$this->charge}',
|
||||
adresse='{$this->adresse}',
|
||||
artikel='{$this->artikel}',
|
||||
beschreibung='{$this->beschreibung}',
|
||||
lieferung='{$this->lieferung}',
|
||||
lieferschein='{$this->lieferschein}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
logdatei='{$this->logdatei}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM chargen WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->charge="";
|
||||
$this->adresse="";
|
||||
$this->artikel="";
|
||||
$this->beschreibung="";
|
||||
$this->lieferung="";
|
||||
$this->lieferschein="";
|
||||
$this->bearbeiter="";
|
||||
$this->logdatei="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetCharge($value) { $this->charge=$value; }
|
||||
function GetCharge() { return $this->charge; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetArtikel($value) { $this->artikel=$value; }
|
||||
function GetArtikel() { return $this->artikel; }
|
||||
function SetBeschreibung($value) { $this->beschreibung=$value; }
|
||||
function GetBeschreibung() { return $this->beschreibung; }
|
||||
function SetLieferung($value) { $this->lieferung=$value; }
|
||||
function GetLieferung() { return $this->lieferung; }
|
||||
function SetLieferschein($value) { $this->lieferschein=$value; }
|
||||
function GetLieferschein() { return $this->lieferschein; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,161 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenChargenverwaltung
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $artikel;
|
||||
private $bestellung;
|
||||
private $menge;
|
||||
private $vpe;
|
||||
private $zeit;
|
||||
private $bearbeiter;
|
||||
private $logdatei;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM chargenverwaltung WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->artikel=$result[artikel];
|
||||
$this->bestellung=$result[bestellung];
|
||||
$this->menge=$result[menge];
|
||||
$this->vpe=$result[vpe];
|
||||
$this->zeit=$result[zeit];
|
||||
$this->bearbeiter=$result[bearbeiter];
|
||||
$this->logdatei=$result[logdatei];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO chargenverwaltung (id,artikel,bestellung,menge,vpe,zeit,bearbeiter,logdatei)
|
||||
VALUES('','{$this->artikel}','{$this->bestellung}','{$this->menge}','{$this->vpe}','{$this->zeit}','{$this->bearbeiter}','{$this->logdatei}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE chargenverwaltung SET
|
||||
artikel='{$this->artikel}',
|
||||
bestellung='{$this->bestellung}',
|
||||
menge='{$this->menge}',
|
||||
vpe='{$this->vpe}',
|
||||
zeit='{$this->zeit}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
logdatei='{$this->logdatei}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM chargenverwaltung WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->artikel="";
|
||||
$this->bestellung="";
|
||||
$this->menge="";
|
||||
$this->vpe="";
|
||||
$this->zeit="";
|
||||
$this->bearbeiter="";
|
||||
$this->logdatei="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetArtikel($value) { $this->artikel=$value; }
|
||||
function GetArtikel() { return $this->artikel; }
|
||||
function SetBestellung($value) { $this->bestellung=$value; }
|
||||
function GetBestellung() { return $this->bestellung; }
|
||||
function SetMenge($value) { $this->menge=$value; }
|
||||
function GetMenge() { return $this->menge; }
|
||||
function SetVpe($value) { $this->vpe=$value; }
|
||||
function GetVpe() { return $this->vpe; }
|
||||
function SetZeit($value) { $this->zeit=$value; }
|
||||
function GetZeit() { return $this->zeit; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,155 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenDatei
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $titel;
|
||||
private $beschreibung;
|
||||
private $nummer;
|
||||
private $geloescht;
|
||||
private $logdatei;
|
||||
private $firma;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM datei WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->titel=$result[titel];
|
||||
$this->beschreibung=$result[beschreibung];
|
||||
$this->nummer=$result[nummer];
|
||||
$this->geloescht=$result[geloescht];
|
||||
$this->logdatei=$result[logdatei];
|
||||
$this->firma=$result[firma];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO datei (id,titel,beschreibung,nummer,geloescht,logdatei,firma)
|
||||
VALUES('','{$this->titel}','{$this->beschreibung}','{$this->nummer}','{$this->geloescht}','{$this->logdatei}','{$this->firma}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE datei SET
|
||||
titel='{$this->titel}',
|
||||
beschreibung='{$this->beschreibung}',
|
||||
nummer='{$this->nummer}',
|
||||
geloescht='{$this->geloescht}',
|
||||
logdatei='{$this->logdatei}',
|
||||
firma='{$this->firma}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM datei WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->titel="";
|
||||
$this->beschreibung="";
|
||||
$this->nummer="";
|
||||
$this->geloescht="";
|
||||
$this->logdatei="";
|
||||
$this->firma="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetTitel($value) { $this->titel=$value; }
|
||||
function GetTitel() { return $this->titel; }
|
||||
function SetBeschreibung($value) { $this->beschreibung=$value; }
|
||||
function GetBeschreibung() { return $this->beschreibung; }
|
||||
function SetNummer($value) { $this->nummer=$value; }
|
||||
function GetNummer() { return $this->nummer; }
|
||||
function SetGeloescht($value) { $this->geloescht=$value; }
|
||||
function GetGeloescht() { return $this->geloescht; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
function SetFirma($value) { $this->firma=$value; }
|
||||
function GetFirma() { return $this->firma; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,149 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenDatei_Stichwoerter
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $datei;
|
||||
private $subjekt;
|
||||
private $objekt;
|
||||
private $parameter;
|
||||
private $logdatei;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM datei_stichwoerter WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->datei=$result[datei];
|
||||
$this->subjekt=$result[subjekt];
|
||||
$this->objekt=$result[objekt];
|
||||
$this->parameter=$result[parameter];
|
||||
$this->logdatei=$result[logdatei];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO datei_stichwoerter (id,datei,subjekt,objekt,parameter,logdatei)
|
||||
VALUES('','{$this->datei}','{$this->subjekt}','{$this->objekt}','{$this->parameter}','{$this->logdatei}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE datei_stichwoerter SET
|
||||
datei='{$this->datei}',
|
||||
subjekt='{$this->subjekt}',
|
||||
objekt='{$this->objekt}',
|
||||
parameter='{$this->parameter}',
|
||||
logdatei='{$this->logdatei}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM datei_stichwoerter WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->datei="";
|
||||
$this->subjekt="";
|
||||
$this->objekt="";
|
||||
$this->parameter="";
|
||||
$this->logdatei="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetDatei($value) { $this->datei=$value; }
|
||||
function GetDatei() { return $this->datei; }
|
||||
function SetSubjekt($value) { $this->subjekt=$value; }
|
||||
function GetSubjekt() { return $this->subjekt; }
|
||||
function SetObjekt($value) { $this->objekt=$value; }
|
||||
function GetObjekt() { return $this->objekt; }
|
||||
function SetParameter($value) { $this->parameter=$value; }
|
||||
function GetParameter() { return $this->parameter; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,137 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenDatei_Stichwortvorlagen
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $beschriftung;
|
||||
private $ausblenden;
|
||||
private $modul;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM datei_stichwortvorlagen WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->beschriftung=$result['beschriftung'];
|
||||
$this->ausblenden=$result['ausblenden'];
|
||||
$this->modul=$result['modul'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO datei_stichwortvorlagen (id,beschriftung,ausblenden,modul)
|
||||
VALUES('','{$this->beschriftung}','{$this->ausblenden}','{$this->modul}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE datei_stichwortvorlagen SET
|
||||
beschriftung='{$this->beschriftung}',
|
||||
ausblenden='{$this->ausblenden}',
|
||||
modul='{$this->modul}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM datei_stichwortvorlagen WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->beschriftung="";
|
||||
$this->ausblenden="";
|
||||
$this->modul="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetBeschriftung($value) { $this->beschriftung=$value; }
|
||||
function GetBeschriftung() { return $this->beschriftung; }
|
||||
function SetAusblenden($value) { $this->ausblenden=$value; }
|
||||
function GetAusblenden() { return $this->ausblenden; }
|
||||
function SetModul($value) { $this->modul=$value; }
|
||||
function GetModul() { return $this->modul; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,161 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenDatei_Version
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $datei;
|
||||
private $ersteller;
|
||||
private $datum;
|
||||
private $version;
|
||||
private $dateiname;
|
||||
private $bemerkung;
|
||||
private $logdatei;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM datei_version WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->datei=$result[datei];
|
||||
$this->ersteller=$result[ersteller];
|
||||
$this->datum=$result[datum];
|
||||
$this->version=$result[version];
|
||||
$this->dateiname=$result[dateiname];
|
||||
$this->bemerkung=$result[bemerkung];
|
||||
$this->logdatei=$result[logdatei];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO datei_version (id,datei,ersteller,datum,version,dateiname,bemerkung,logdatei)
|
||||
VALUES('','{$this->datei}','{$this->ersteller}','{$this->datum}','{$this->version}','{$this->dateiname}','{$this->bemerkung}','{$this->logdatei}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE datei_version SET
|
||||
datei='{$this->datei}',
|
||||
ersteller='{$this->ersteller}',
|
||||
datum='{$this->datum}',
|
||||
version='{$this->version}',
|
||||
dateiname='{$this->dateiname}',
|
||||
bemerkung='{$this->bemerkung}',
|
||||
logdatei='{$this->logdatei}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM datei_version WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->datei="";
|
||||
$this->ersteller="";
|
||||
$this->datum="";
|
||||
$this->version="";
|
||||
$this->dateiname="";
|
||||
$this->bemerkung="";
|
||||
$this->logdatei="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetDatei($value) { $this->datei=$value; }
|
||||
function GetDatei() { return $this->datei; }
|
||||
function SetErsteller($value) { $this->ersteller=$value; }
|
||||
function GetErsteller() { return $this->ersteller; }
|
||||
function SetDatum($value) { $this->datum=$value; }
|
||||
function GetDatum() { return $this->datum; }
|
||||
function SetVersion($value) { $this->version=$value; }
|
||||
function GetVersion() { return $this->version; }
|
||||
function SetDateiname($value) { $this->dateiname=$value; }
|
||||
function GetDateiname() { return $this->dateiname; }
|
||||
function SetBemerkung($value) { $this->bemerkung=$value; }
|
||||
function GetBemerkung() { return $this->bemerkung; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,227 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenDatev_Buchungen
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $wkz;
|
||||
private $umsatz;
|
||||
private $gegenkonto;
|
||||
private $belegfeld1;
|
||||
private $belegfeld2;
|
||||
private $datum;
|
||||
private $konto;
|
||||
private $haben;
|
||||
private $kost1;
|
||||
private $kost2;
|
||||
private $kostmenge;
|
||||
private $skonto;
|
||||
private $buchungstext;
|
||||
private $bearbeiter;
|
||||
private $exportiert;
|
||||
private $firma;
|
||||
private $parent;
|
||||
private $kontoauszug;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM datev_buchungen WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->wkz=$result[wkz];
|
||||
$this->umsatz=$result[umsatz];
|
||||
$this->gegenkonto=$result[gegenkonto];
|
||||
$this->belegfeld1=$result[belegfeld1];
|
||||
$this->belegfeld2=$result[belegfeld2];
|
||||
$this->datum=$result[datum];
|
||||
$this->konto=$result[konto];
|
||||
$this->haben=$result[haben];
|
||||
$this->kost1=$result[kost1];
|
||||
$this->kost2=$result[kost2];
|
||||
$this->kostmenge=$result[kostmenge];
|
||||
$this->skonto=$result[skonto];
|
||||
$this->buchungstext=$result[buchungstext];
|
||||
$this->bearbeiter=$result[bearbeiter];
|
||||
$this->exportiert=$result[exportiert];
|
||||
$this->firma=$result[firma];
|
||||
$this->parent=$result[parent];
|
||||
$this->kontoauszug=$result[kontoauszug];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO datev_buchungen (id,wkz,umsatz,gegenkonto,belegfeld1,belegfeld2,datum,konto,haben,kost1,kost2,kostmenge,skonto,buchungstext,bearbeiter,exportiert,firma,parent,kontoauszug)
|
||||
VALUES('','{$this->wkz}','{$this->umsatz}','{$this->gegenkonto}','{$this->belegfeld1}','{$this->belegfeld2}','{$this->datum}','{$this->konto}','{$this->haben}','{$this->kost1}','{$this->kost2}','{$this->kostmenge}','{$this->skonto}','{$this->buchungstext}','{$this->bearbeiter}','{$this->exportiert}','{$this->firma}','{$this->parent}','{$this->kontoauszug}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE datev_buchungen SET
|
||||
wkz='{$this->wkz}',
|
||||
umsatz='{$this->umsatz}',
|
||||
gegenkonto='{$this->gegenkonto}',
|
||||
belegfeld1='{$this->belegfeld1}',
|
||||
belegfeld2='{$this->belegfeld2}',
|
||||
datum='{$this->datum}',
|
||||
konto='{$this->konto}',
|
||||
haben='{$this->haben}',
|
||||
kost1='{$this->kost1}',
|
||||
kost2='{$this->kost2}',
|
||||
kostmenge='{$this->kostmenge}',
|
||||
skonto='{$this->skonto}',
|
||||
buchungstext='{$this->buchungstext}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
exportiert='{$this->exportiert}',
|
||||
firma='{$this->firma}',
|
||||
parent='{$this->parent}',
|
||||
kontoauszug='{$this->kontoauszug}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM datev_buchungen WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->wkz="";
|
||||
$this->umsatz="";
|
||||
$this->gegenkonto="";
|
||||
$this->belegfeld1="";
|
||||
$this->belegfeld2="";
|
||||
$this->datum="";
|
||||
$this->konto="";
|
||||
$this->haben="";
|
||||
$this->kost1="";
|
||||
$this->kost2="";
|
||||
$this->kostmenge="";
|
||||
$this->skonto="";
|
||||
$this->buchungstext="";
|
||||
$this->bearbeiter="";
|
||||
$this->exportiert="";
|
||||
$this->firma="";
|
||||
$this->parent="";
|
||||
$this->kontoauszug="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetWkz($value) { $this->wkz=$value; }
|
||||
function GetWkz() { return $this->wkz; }
|
||||
function SetUmsatz($value) { $this->umsatz=$value; }
|
||||
function GetUmsatz() { return $this->umsatz; }
|
||||
function SetGegenkonto($value) { $this->gegenkonto=$value; }
|
||||
function GetGegenkonto() { return $this->gegenkonto; }
|
||||
function SetBelegfeld1($value) { $this->belegfeld1=$value; }
|
||||
function GetBelegfeld1() { return $this->belegfeld1; }
|
||||
function SetBelegfeld2($value) { $this->belegfeld2=$value; }
|
||||
function GetBelegfeld2() { return $this->belegfeld2; }
|
||||
function SetDatum($value) { $this->datum=$value; }
|
||||
function GetDatum() { return $this->datum; }
|
||||
function SetKonto($value) { $this->konto=$value; }
|
||||
function GetKonto() { return $this->konto; }
|
||||
function SetHaben($value) { $this->haben=$value; }
|
||||
function GetHaben() { return $this->haben; }
|
||||
function SetKost1($value) { $this->kost1=$value; }
|
||||
function GetKost1() { return $this->kost1; }
|
||||
function SetKost2($value) { $this->kost2=$value; }
|
||||
function GetKost2() { return $this->kost2; }
|
||||
function SetKostmenge($value) { $this->kostmenge=$value; }
|
||||
function GetKostmenge() { return $this->kostmenge; }
|
||||
function SetSkonto($value) { $this->skonto=$value; }
|
||||
function GetSkonto() { return $this->skonto; }
|
||||
function SetBuchungstext($value) { $this->buchungstext=$value; }
|
||||
function GetBuchungstext() { return $this->buchungstext; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetExportiert($value) { $this->exportiert=$value; }
|
||||
function GetExportiert() { return $this->exportiert; }
|
||||
function SetFirma($value) { $this->firma=$value; }
|
||||
function GetFirma() { return $this->firma; }
|
||||
function SetParent($value) { $this->parent=$value; }
|
||||
function GetParent() { return $this->parent; }
|
||||
function SetKontoauszug($value) { $this->kontoauszug=$value; }
|
||||
function GetKontoauszug() { return $this->kontoauszug; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenDokumente
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $adresse_from;
|
||||
private $adresse_to;
|
||||
private $typ;
|
||||
private $von;
|
||||
private $firma;
|
||||
private $ansprechpartner;
|
||||
private $an;
|
||||
private $email_an;
|
||||
private $firma_an;
|
||||
private $adresse;
|
||||
private $plz;
|
||||
private $ort;
|
||||
private $land;
|
||||
private $datum;
|
||||
private $betreff;
|
||||
private $content;
|
||||
private $signatur;
|
||||
private $send_as;
|
||||
private $email;
|
||||
private $printer;
|
||||
private $fax;
|
||||
private $sent;
|
||||
private $deleted;
|
||||
private $created;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM dokumente WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->adresse_from=$result[adresse_from];
|
||||
$this->adresse_to=$result[adresse_to];
|
||||
$this->typ=$result[typ];
|
||||
$this->von=$result[von];
|
||||
$this->firma=$result[firma];
|
||||
$this->ansprechpartner=$result[ansprechpartner];
|
||||
$this->an=$result[an];
|
||||
$this->email_an=$result[email_an];
|
||||
$this->firma_an=$result[firma_an];
|
||||
$this->adresse=$result[adresse];
|
||||
$this->plz=$result[plz];
|
||||
$this->ort=$result[ort];
|
||||
$this->land=$result[land];
|
||||
$this->datum=$result[datum];
|
||||
$this->betreff=$result[betreff];
|
||||
$this->content=$result[content];
|
||||
$this->signatur=$result[signatur];
|
||||
$this->send_as=$result[send_as];
|
||||
$this->email=$result[email];
|
||||
$this->printer=$result[printer];
|
||||
$this->fax=$result[fax];
|
||||
$this->sent=$result[sent];
|
||||
$this->deleted=$result[deleted];
|
||||
$this->created=$result[created];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO dokumente (id,adresse_from,adresse_to,typ,von,firma,ansprechpartner,an,email_an,firma_an,adresse,plz,ort,land,datum,betreff,content,signatur,send_as,email,printer,fax,sent,deleted,created)
|
||||
VALUES('','{$this->adresse_from}','{$this->adresse_to}','{$this->typ}','{$this->von}','{$this->firma}','{$this->ansprechpartner}','{$this->an}','{$this->email_an}','{$this->firma_an}','{$this->adresse}','{$this->plz}','{$this->ort}','{$this->land}','{$this->datum}','{$this->betreff}','{$this->content}','{$this->signatur}','{$this->send_as}','{$this->email}','{$this->printer}','{$this->fax}','{$this->sent}','{$this->deleted}','{$this->created}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE dokumente SET
|
||||
adresse_from='{$this->adresse_from}',
|
||||
adresse_to='{$this->adresse_to}',
|
||||
typ='{$this->typ}',
|
||||
von='{$this->von}',
|
||||
firma='{$this->firma}',
|
||||
ansprechpartner='{$this->ansprechpartner}',
|
||||
an='{$this->an}',
|
||||
email_an='{$this->email_an}',
|
||||
firma_an='{$this->firma_an}',
|
||||
adresse='{$this->adresse}',
|
||||
plz='{$this->plz}',
|
||||
ort='{$this->ort}',
|
||||
land='{$this->land}',
|
||||
datum='{$this->datum}',
|
||||
betreff='{$this->betreff}',
|
||||
content='{$this->content}',
|
||||
signatur='{$this->signatur}',
|
||||
send_as='{$this->send_as}',
|
||||
email='{$this->email}',
|
||||
printer='{$this->printer}',
|
||||
fax='{$this->fax}',
|
||||
sent='{$this->sent}',
|
||||
deleted='{$this->deleted}',
|
||||
created='{$this->created}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM dokumente WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->adresse_from="";
|
||||
$this->adresse_to="";
|
||||
$this->typ="";
|
||||
$this->von="";
|
||||
$this->firma="";
|
||||
$this->ansprechpartner="";
|
||||
$this->an="";
|
||||
$this->email_an="";
|
||||
$this->firma_an="";
|
||||
$this->adresse="";
|
||||
$this->plz="";
|
||||
$this->ort="";
|
||||
$this->land="";
|
||||
$this->datum="";
|
||||
$this->betreff="";
|
||||
$this->content="";
|
||||
$this->signatur="";
|
||||
$this->send_as="";
|
||||
$this->email="";
|
||||
$this->printer="";
|
||||
$this->fax="";
|
||||
$this->sent="";
|
||||
$this->deleted="";
|
||||
$this->created="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetAdresse_From($value) { $this->adresse_from=$value; }
|
||||
function GetAdresse_From() { return $this->adresse_from; }
|
||||
function SetAdresse_To($value) { $this->adresse_to=$value; }
|
||||
function GetAdresse_To() { return $this->adresse_to; }
|
||||
function SetTyp($value) { $this->typ=$value; }
|
||||
function GetTyp() { return $this->typ; }
|
||||
function SetVon($value) { $this->von=$value; }
|
||||
function GetVon() { return $this->von; }
|
||||
function SetFirma($value) { $this->firma=$value; }
|
||||
function GetFirma() { return $this->firma; }
|
||||
function SetAnsprechpartner($value) { $this->ansprechpartner=$value; }
|
||||
function GetAnsprechpartner() { return $this->ansprechpartner; }
|
||||
function SetAn($value) { $this->an=$value; }
|
||||
function GetAn() { return $this->an; }
|
||||
function SetEmail_An($value) { $this->email_an=$value; }
|
||||
function GetEmail_An() { return $this->email_an; }
|
||||
function SetFirma_An($value) { $this->firma_an=$value; }
|
||||
function GetFirma_An() { return $this->firma_an; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetPlz($value) { $this->plz=$value; }
|
||||
function GetPlz() { return $this->plz; }
|
||||
function SetOrt($value) { $this->ort=$value; }
|
||||
function GetOrt() { return $this->ort; }
|
||||
function SetLand($value) { $this->land=$value; }
|
||||
function GetLand() { return $this->land; }
|
||||
function SetDatum($value) { $this->datum=$value; }
|
||||
function GetDatum() { return $this->datum; }
|
||||
function SetBetreff($value) { $this->betreff=$value; }
|
||||
function GetBetreff() { return $this->betreff; }
|
||||
function SetContent($value) { $this->content=$value; }
|
||||
function GetContent() { return $this->content; }
|
||||
function SetSignatur($value) { $this->signatur=$value; }
|
||||
function GetSignatur() { return $this->signatur; }
|
||||
function SetSend_As($value) { $this->send_as=$value; }
|
||||
function GetSend_As() { return $this->send_as; }
|
||||
function SetEmail($value) { $this->email=$value; }
|
||||
function GetEmail() { return $this->email; }
|
||||
function SetPrinter($value) { $this->printer=$value; }
|
||||
function GetPrinter() { return $this->printer; }
|
||||
function SetFax($value) { $this->fax=$value; }
|
||||
function GetFax() { return $this->fax; }
|
||||
function SetSent($value) { $this->sent=$value; }
|
||||
function GetSent() { return $this->sent; }
|
||||
function SetDeleted($value) { $this->deleted=$value; }
|
||||
function GetDeleted() { return $this->deleted; }
|
||||
function SetCreated($value) { $this->created=$value; }
|
||||
function GetCreated() { return $this->created; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,203 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenDokumente_Send
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $dokument;
|
||||
private $zeit;
|
||||
private $bearbeiter;
|
||||
private $adresse;
|
||||
private $ansprechpartner;
|
||||
private $projekt;
|
||||
private $parameter;
|
||||
private $art;
|
||||
private $betreff;
|
||||
private $text;
|
||||
private $geloescht;
|
||||
private $versendet;
|
||||
private $logdatei;
|
||||
private $dateiid;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM dokumente_send WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->dokument=$result[dokument];
|
||||
$this->zeit=$result[zeit];
|
||||
$this->bearbeiter=$result[bearbeiter];
|
||||
$this->adresse=$result[adresse];
|
||||
$this->ansprechpartner=$result[ansprechpartner];
|
||||
$this->projekt=$result[projekt];
|
||||
$this->parameter=$result[parameter];
|
||||
$this->art=$result[art];
|
||||
$this->betreff=$result[betreff];
|
||||
$this->text=$result[text];
|
||||
$this->geloescht=$result[geloescht];
|
||||
$this->versendet=$result[versendet];
|
||||
$this->logdatei=$result[logdatei];
|
||||
$this->dateiid=$result[dateiid];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO dokumente_send (id,dokument,zeit,bearbeiter,adresse,ansprechpartner,projekt,parameter,art,betreff,text,geloescht,versendet,logdatei,dateiid)
|
||||
VALUES('','{$this->dokument}','{$this->zeit}','{$this->bearbeiter}','{$this->adresse}','{$this->ansprechpartner}','{$this->projekt}','{$this->parameter}','{$this->art}','{$this->betreff}','{$this->text}','{$this->geloescht}','{$this->versendet}','{$this->logdatei}','{$this->dateiid}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE dokumente_send SET
|
||||
dokument='{$this->dokument}',
|
||||
zeit='{$this->zeit}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
adresse='{$this->adresse}',
|
||||
ansprechpartner='{$this->ansprechpartner}',
|
||||
projekt='{$this->projekt}',
|
||||
parameter='{$this->parameter}',
|
||||
art='{$this->art}',
|
||||
betreff='{$this->betreff}',
|
||||
text='{$this->text}',
|
||||
geloescht='{$this->geloescht}',
|
||||
versendet='{$this->versendet}',
|
||||
logdatei='{$this->logdatei}',
|
||||
dateiid='{$this->dateiid}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM dokumente_send WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->dokument="";
|
||||
$this->zeit="";
|
||||
$this->bearbeiter="";
|
||||
$this->adresse="";
|
||||
$this->ansprechpartner="";
|
||||
$this->projekt="";
|
||||
$this->parameter="";
|
||||
$this->art="";
|
||||
$this->betreff="";
|
||||
$this->text="";
|
||||
$this->geloescht="";
|
||||
$this->versendet="";
|
||||
$this->logdatei="";
|
||||
$this->dateiid="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetDokument($value) { $this->dokument=$value; }
|
||||
function GetDokument() { return $this->dokument; }
|
||||
function SetZeit($value) { $this->zeit=$value; }
|
||||
function GetZeit() { return $this->zeit; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetAnsprechpartner($value) { $this->ansprechpartner=$value; }
|
||||
function GetAnsprechpartner() { return $this->ansprechpartner; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetParameter($value) { $this->parameter=$value; }
|
||||
function GetParameter() { return $this->parameter; }
|
||||
function SetArt($value) { $this->art=$value; }
|
||||
function GetArt() { return $this->art; }
|
||||
function SetBetreff($value) { $this->betreff=$value; }
|
||||
function GetBetreff() { return $this->betreff; }
|
||||
function SetText($value) { $this->text=$value; }
|
||||
function GetText() { return $this->text; }
|
||||
function SetGeloescht($value) { $this->geloescht=$value; }
|
||||
function GetGeloescht() { return $this->geloescht; }
|
||||
function SetVersendet($value) { $this->versendet=$value; }
|
||||
function GetVersendet() { return $this->versendet; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
function SetDateiid($value) { $this->dateiid=$value; }
|
||||
function GetDateiid() { return $this->dateiid; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,220 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenDrucker
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $name;
|
||||
private $bezeichnung;
|
||||
private $befehl;
|
||||
private $aktiv;
|
||||
private $firma;
|
||||
private $tomail;
|
||||
private $tomailtext;
|
||||
private $tomailsubject;
|
||||
private $adapterboxip;
|
||||
private $adapterboxseriennummer;
|
||||
private $adapterboxpasswort;
|
||||
private $anbindung;
|
||||
private $art;
|
||||
private $faxserver;
|
||||
private $format;
|
||||
private $keinhintergrund;
|
||||
private $json;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM `drucker` WHERE (`id` = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->name=$result['name'];
|
||||
$this->bezeichnung=$result['bezeichnung'];
|
||||
$this->befehl=$result['befehl'];
|
||||
$this->aktiv=$result['aktiv'];
|
||||
$this->firma=$result['firma'];
|
||||
$this->tomail=$result['tomail'];
|
||||
$this->tomailtext=$result['tomailtext'];
|
||||
$this->tomailsubject=$result['tomailsubject'];
|
||||
$this->adapterboxip=$result['adapterboxip'];
|
||||
$this->adapterboxseriennummer=$result['adapterboxseriennummer'];
|
||||
$this->adapterboxpasswort=$result['adapterboxpasswort'];
|
||||
$this->anbindung=$result['anbindung'];
|
||||
$this->art=$result['art'];
|
||||
$this->faxserver=$result['faxserver'];
|
||||
$this->format=$result['format'];
|
||||
$this->keinhintergrund=$result['keinhintergrund'];
|
||||
$this->json=$result['json'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO `drucker` (`id`,`name`,`bezeichnung`,`befehl`,`aktiv`,`firma`,`tomail`,`tomailtext`,`tomailsubject`,`adapterboxip`,`adapterboxseriennummer`,`adapterboxpasswort`,`anbindung`,`art`,`faxserver`,`format`,`keinhintergrund`,`json`)
|
||||
VALUES(NULL,'{$this->name}','{$this->bezeichnung}','{$this->befehl}','{$this->aktiv}','{$this->firma}','{$this->tomail}','{$this->tomailtext}','{$this->tomailsubject}','{$this->adapterboxip}','{$this->adapterboxseriennummer}','{$this->adapterboxpasswort}','{$this->anbindung}','{$this->art}','{$this->faxserver}','{$this->format}','{$this->keinhintergrund}','{$this->json}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
$sql = "UPDATE `drucker` SET
|
||||
`name`='{$this->name}',
|
||||
`bezeichnung`='{$this->bezeichnung}',
|
||||
`befehl`='{$this->befehl}',
|
||||
`aktiv`='{$this->aktiv}',
|
||||
`firma`='{$this->firma}',
|
||||
`tomail`='{$this->tomail}',
|
||||
`tomailtext`='{$this->tomailtext}',
|
||||
`tomailsubject`='{$this->tomailsubject}',
|
||||
`adapterboxip`='{$this->adapterboxip}',
|
||||
`adapterboxseriennummer`='{$this->adapterboxseriennummer}',
|
||||
`adapterboxpasswort`='{$this->adapterboxpasswort}',
|
||||
`anbindung`='{$this->anbindung}',
|
||||
`art`='{$this->art}',
|
||||
`faxserver`='{$this->faxserver}',
|
||||
`format`='{$this->format}',
|
||||
`keinhintergrund`='{$this->keinhintergrund}',
|
||||
`json`='{$this->json}'
|
||||
WHERE (`id`='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id='')
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM `drucker` WHERE (`id`='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id='';
|
||||
$this->name='';
|
||||
$this->bezeichnung='';
|
||||
$this->befehl='';
|
||||
$this->aktiv='';
|
||||
$this->firma='';
|
||||
$this->tomail='';
|
||||
$this->tomailtext='';
|
||||
$this->tomailsubject='';
|
||||
$this->adapterboxip='';
|
||||
$this->adapterboxseriennummer='';
|
||||
$this->adapterboxpasswort='';
|
||||
$this->anbindung='';
|
||||
$this->art='';
|
||||
$this->faxserver='';
|
||||
$this->format='';
|
||||
$this->keinhintergrund='';
|
||||
$this->json='';
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = '';
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
public function SetId($value) { $this->id=$value; }
|
||||
public function GetId() { return $this->id; }
|
||||
public function SetName($value) { $this->name=$value; }
|
||||
public function GetName() { return $this->name; }
|
||||
public function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
public function GetBezeichnung() { return $this->bezeichnung; }
|
||||
public function SetBefehl($value) { $this->befehl=$value; }
|
||||
public function GetBefehl() { return $this->befehl; }
|
||||
public function SetAktiv($value) { $this->aktiv=$value; }
|
||||
public function GetAktiv() { return $this->aktiv; }
|
||||
public function SetFirma($value) { $this->firma=$value; }
|
||||
public function GetFirma() { return $this->firma; }
|
||||
public function SetTomail($value) { $this->tomail=$value; }
|
||||
public function GetTomail() { return $this->tomail; }
|
||||
public function SetTomailtext($value) { $this->tomailtext=$value; }
|
||||
public function GetTomailtext() { return $this->tomailtext; }
|
||||
public function SetTomailsubject($value) { $this->tomailsubject=$value; }
|
||||
public function GetTomailsubject() { return $this->tomailsubject; }
|
||||
public function SetAdapterboxip($value) { $this->adapterboxip=$value; }
|
||||
public function GetAdapterboxip() { return $this->adapterboxip; }
|
||||
public function SetAdapterboxseriennummer($value) { $this->adapterboxseriennummer=$value; }
|
||||
public function GetAdapterboxseriennummer() { return $this->adapterboxseriennummer; }
|
||||
public function SetAdapterboxpasswort($value) { $this->adapterboxpasswort=$value; }
|
||||
public function GetAdapterboxpasswort() { return $this->adapterboxpasswort; }
|
||||
public function SetAnbindung($value) { $this->anbindung=$value; }
|
||||
public function GetAnbindung() { return $this->anbindung; }
|
||||
public function SetArt($value) { $this->art=$value; }
|
||||
public function GetArt() { return $this->art; }
|
||||
public function SetFaxserver($value) { $this->faxserver=$value; }
|
||||
public function GetFaxserver() { return $this->faxserver; }
|
||||
public function SetFormat($value) { $this->format=$value; }
|
||||
public function GetFormat() { return $this->format; }
|
||||
public function SetKeinhintergrund($value) { $this->keinhintergrund=$value; }
|
||||
public function GetKeinhintergrund() { return $this->keinhintergrund; }
|
||||
public function SetJson($value) { $this->json=$value; }
|
||||
public function GetJson() { return $this->json; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,209 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenDta
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $adresse;
|
||||
private $datum;
|
||||
private $name;
|
||||
private $konto;
|
||||
private $blz;
|
||||
private $betrag;
|
||||
private $vz1;
|
||||
private $vz2;
|
||||
private $vz3;
|
||||
private $lastschrift;
|
||||
private $gutschrift;
|
||||
private $kontointern;
|
||||
private $datei;
|
||||
private $status;
|
||||
private $firma;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM dta WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->adresse=$result[adresse];
|
||||
$this->datum=$result[datum];
|
||||
$this->name=$result[name];
|
||||
$this->konto=$result[konto];
|
||||
$this->blz=$result[blz];
|
||||
$this->betrag=$result[betrag];
|
||||
$this->vz1=$result[vz1];
|
||||
$this->vz2=$result[vz2];
|
||||
$this->vz3=$result[vz3];
|
||||
$this->lastschrift=$result[lastschrift];
|
||||
$this->gutschrift=$result[gutschrift];
|
||||
$this->kontointern=$result[kontointern];
|
||||
$this->datei=$result[datei];
|
||||
$this->status=$result[status];
|
||||
$this->firma=$result[firma];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO dta (id,adresse,datum,name,konto,blz,betrag,vz1,vz2,vz3,lastschrift,gutschrift,kontointern,datei,status,firma)
|
||||
VALUES('','{$this->adresse}','{$this->datum}','{$this->name}','{$this->konto}','{$this->blz}','{$this->betrag}','{$this->vz1}','{$this->vz2}','{$this->vz3}','{$this->lastschrift}','{$this->gutschrift}','{$this->kontointern}','{$this->datei}','{$this->status}','{$this->firma}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE dta SET
|
||||
adresse='{$this->adresse}',
|
||||
datum='{$this->datum}',
|
||||
name='{$this->name}',
|
||||
konto='{$this->konto}',
|
||||
blz='{$this->blz}',
|
||||
betrag='{$this->betrag}',
|
||||
vz1='{$this->vz1}',
|
||||
vz2='{$this->vz2}',
|
||||
vz3='{$this->vz3}',
|
||||
lastschrift='{$this->lastschrift}',
|
||||
gutschrift='{$this->gutschrift}',
|
||||
kontointern='{$this->kontointern}',
|
||||
datei='{$this->datei}',
|
||||
status='{$this->status}',
|
||||
firma='{$this->firma}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM dta WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->adresse="";
|
||||
$this->datum="";
|
||||
$this->name="";
|
||||
$this->konto="";
|
||||
$this->blz="";
|
||||
$this->betrag="";
|
||||
$this->vz1="";
|
||||
$this->vz2="";
|
||||
$this->vz3="";
|
||||
$this->lastschrift="";
|
||||
$this->gutschrift="";
|
||||
$this->kontointern="";
|
||||
$this->datei="";
|
||||
$this->status="";
|
||||
$this->firma="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetDatum($value) { $this->datum=$value; }
|
||||
function GetDatum() { return $this->datum; }
|
||||
function SetName($value) { $this->name=$value; }
|
||||
function GetName() { return $this->name; }
|
||||
function SetKonto($value) { $this->konto=$value; }
|
||||
function GetKonto() { return $this->konto; }
|
||||
function SetBlz($value) { $this->blz=$value; }
|
||||
function GetBlz() { return $this->blz; }
|
||||
function SetBetrag($value) { $this->betrag=$value; }
|
||||
function GetBetrag() { return $this->betrag; }
|
||||
function SetVz1($value) { $this->vz1=$value; }
|
||||
function GetVz1() { return $this->vz1; }
|
||||
function SetVz2($value) { $this->vz2=$value; }
|
||||
function GetVz2() { return $this->vz2; }
|
||||
function SetVz3($value) { $this->vz3=$value; }
|
||||
function GetVz3() { return $this->vz3; }
|
||||
function SetLastschrift($value) { $this->lastschrift=$value; }
|
||||
function GetLastschrift() { return $this->lastschrift; }
|
||||
function SetGutschrift($value) { $this->gutschrift=$value; }
|
||||
function GetGutschrift() { return $this->gutschrift; }
|
||||
function SetKontointern($value) { $this->kontointern=$value; }
|
||||
function GetKontointern() { return $this->kontointern; }
|
||||
function SetDatei($value) { $this->datei=$value; }
|
||||
function GetDatei() { return $this->datei; }
|
||||
function SetStatus($value) { $this->status=$value; }
|
||||
function GetStatus() { return $this->status; }
|
||||
function SetFirma($value) { $this->firma=$value; }
|
||||
function GetFirma() { return $this->firma; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,161 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenDta_Datei
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $bezeichnung;
|
||||
private $bearbeiter;
|
||||
private $inhalt;
|
||||
private $datum;
|
||||
private $status;
|
||||
private $art;
|
||||
private $firma;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM dta_datei WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->bezeichnung=$result[bezeichnung];
|
||||
$this->bearbeiter=$result[bearbeiter];
|
||||
$this->inhalt=$result[inhalt];
|
||||
$this->datum=$result[datum];
|
||||
$this->status=$result[status];
|
||||
$this->art=$result[art];
|
||||
$this->firma=$result[firma];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO dta_datei (id,bezeichnung,bearbeiter,inhalt,datum,status,art,firma)
|
||||
VALUES('','{$this->bezeichnung}','{$this->bearbeiter}','{$this->inhalt}','{$this->datum}','{$this->status}','{$this->art}','{$this->firma}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE dta_datei SET
|
||||
bezeichnung='{$this->bezeichnung}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
inhalt='{$this->inhalt}',
|
||||
datum='{$this->datum}',
|
||||
status='{$this->status}',
|
||||
art='{$this->art}',
|
||||
firma='{$this->firma}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM dta_datei WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->bezeichnung="";
|
||||
$this->bearbeiter="";
|
||||
$this->inhalt="";
|
||||
$this->datum="";
|
||||
$this->status="";
|
||||
$this->art="";
|
||||
$this->firma="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
function GetBezeichnung() { return $this->bezeichnung; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetInhalt($value) { $this->inhalt=$value; }
|
||||
function GetInhalt() { return $this->inhalt; }
|
||||
function SetDatum($value) { $this->datum=$value; }
|
||||
function GetDatum() { return $this->datum; }
|
||||
function SetStatus($value) { $this->status=$value; }
|
||||
function GetStatus() { return $this->status; }
|
||||
function SetArt($value) { $this->art=$value; }
|
||||
function GetArt() { return $this->art; }
|
||||
function SetFirma($value) { $this->firma=$value; }
|
||||
function GetFirma() { return $this->firma; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,209 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenEigenschaften
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $artikel;
|
||||
private $art;
|
||||
private $bezeichnung;
|
||||
private $beschreibung;
|
||||
private $menge;
|
||||
private $einheit;
|
||||
private $menge2;
|
||||
private $einheit2;
|
||||
private $menge3;
|
||||
private $einheit3;
|
||||
private $wert;
|
||||
private $wert2;
|
||||
private $wert3;
|
||||
private $hauptkategorie;
|
||||
private $unterkategorie;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM eigenschaften WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->artikel=$result[artikel];
|
||||
$this->art=$result[art];
|
||||
$this->bezeichnung=$result[bezeichnung];
|
||||
$this->beschreibung=$result[beschreibung];
|
||||
$this->menge=$result[menge];
|
||||
$this->einheit=$result[einheit];
|
||||
$this->menge2=$result[menge2];
|
||||
$this->einheit2=$result[einheit2];
|
||||
$this->menge3=$result[menge3];
|
||||
$this->einheit3=$result[einheit3];
|
||||
$this->wert=$result[wert];
|
||||
$this->wert2=$result[wert2];
|
||||
$this->wert3=$result[wert3];
|
||||
$this->hauptkategorie=$result[hauptkategorie];
|
||||
$this->unterkategorie=$result[unterkategorie];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO eigenschaften (id,artikel,art,bezeichnung,beschreibung,menge,einheit,menge2,einheit2,menge3,einheit3,wert,wert2,wert3,hauptkategorie,unterkategorie)
|
||||
VALUES('','{$this->artikel}','{$this->art}','{$this->bezeichnung}','{$this->beschreibung}','{$this->menge}','{$this->einheit}','{$this->menge2}','{$this->einheit2}','{$this->menge3}','{$this->einheit3}','{$this->wert}','{$this->wert2}','{$this->wert3}','{$this->hauptkategorie}','{$this->unterkategorie}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE eigenschaften SET
|
||||
artikel='{$this->artikel}',
|
||||
art='{$this->art}',
|
||||
bezeichnung='{$this->bezeichnung}',
|
||||
beschreibung='{$this->beschreibung}',
|
||||
menge='{$this->menge}',
|
||||
einheit='{$this->einheit}',
|
||||
menge2='{$this->menge2}',
|
||||
einheit2='{$this->einheit2}',
|
||||
menge3='{$this->menge3}',
|
||||
einheit3='{$this->einheit3}',
|
||||
wert='{$this->wert}',
|
||||
wert2='{$this->wert2}',
|
||||
wert3='{$this->wert3}',
|
||||
hauptkategorie='{$this->hauptkategorie}',
|
||||
unterkategorie='{$this->unterkategorie}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM eigenschaften WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->artikel="";
|
||||
$this->art="";
|
||||
$this->bezeichnung="";
|
||||
$this->beschreibung="";
|
||||
$this->menge="";
|
||||
$this->einheit="";
|
||||
$this->menge2="";
|
||||
$this->einheit2="";
|
||||
$this->menge3="";
|
||||
$this->einheit3="";
|
||||
$this->wert="";
|
||||
$this->wert2="";
|
||||
$this->wert3="";
|
||||
$this->hauptkategorie="";
|
||||
$this->unterkategorie="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetArtikel($value) { $this->artikel=$value; }
|
||||
function GetArtikel() { return $this->artikel; }
|
||||
function SetArt($value) { $this->art=$value; }
|
||||
function GetArt() { return $this->art; }
|
||||
function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
function GetBezeichnung() { return $this->bezeichnung; }
|
||||
function SetBeschreibung($value) { $this->beschreibung=$value; }
|
||||
function GetBeschreibung() { return $this->beschreibung; }
|
||||
function SetMenge($value) { $this->menge=$value; }
|
||||
function GetMenge() { return $this->menge; }
|
||||
function SetEinheit($value) { $this->einheit=$value; }
|
||||
function GetEinheit() { return $this->einheit; }
|
||||
function SetMenge2($value) { $this->menge2=$value; }
|
||||
function GetMenge2() { return $this->menge2; }
|
||||
function SetEinheit2($value) { $this->einheit2=$value; }
|
||||
function GetEinheit2() { return $this->einheit2; }
|
||||
function SetMenge3($value) { $this->menge3=$value; }
|
||||
function GetMenge3() { return $this->menge3; }
|
||||
function SetEinheit3($value) { $this->einheit3=$value; }
|
||||
function GetEinheit3() { return $this->einheit3; }
|
||||
function SetWert($value) { $this->wert=$value; }
|
||||
function GetWert() { return $this->wert; }
|
||||
function SetWert2($value) { $this->wert2=$value; }
|
||||
function GetWert2() { return $this->wert2; }
|
||||
function SetWert3($value) { $this->wert3=$value; }
|
||||
function GetWert3() { return $this->wert3; }
|
||||
function SetHauptkategorie($value) { $this->hauptkategorie=$value; }
|
||||
function GetHauptkategorie() { return $this->hauptkategorie; }
|
||||
function SetUnterkategorie($value) { $this->unterkategorie=$value; }
|
||||
function GetUnterkategorie() { return $this->unterkategorie; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,299 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenEinkaufspreise
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $artikel;
|
||||
private $adresse;
|
||||
private $objekt;
|
||||
private $projekt;
|
||||
private $preis;
|
||||
private $waehrung;
|
||||
private $ab_menge;
|
||||
private $vpe;
|
||||
private $preis_anfrage_vom;
|
||||
private $gueltig_bis;
|
||||
private $lieferzeit_standard;
|
||||
private $lieferzeit_aktuell;
|
||||
private $lager_lieferant;
|
||||
private $datum_lagerlieferant;
|
||||
private $bestellnummer;
|
||||
private $bezeichnunglieferant;
|
||||
private $sicherheitslager;
|
||||
private $bemerkung;
|
||||
private $bearbeiter;
|
||||
private $logdatei;
|
||||
private $standard;
|
||||
private $geloescht;
|
||||
private $firma;
|
||||
private $apichange;
|
||||
private $rahmenvertrag;
|
||||
private $rahmenvertrag_von;
|
||||
private $rahmenvertrag_bis;
|
||||
private $rahmenvertrag_menge;
|
||||
private $beschreibung;
|
||||
private $nichtberechnet;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM einkaufspreise WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->artikel=$result['artikel'];
|
||||
$this->adresse=$result['adresse'];
|
||||
$this->objekt=$result['objekt'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->preis=$result['preis'];
|
||||
$this->waehrung=$result['waehrung'];
|
||||
$this->ab_menge=$result['ab_menge'];
|
||||
$this->vpe=$result['vpe'];
|
||||
$this->preis_anfrage_vom=$result['preis_anfrage_vom'];
|
||||
$this->gueltig_bis=$result['gueltig_bis'];
|
||||
$this->lieferzeit_standard=$result['lieferzeit_standard'];
|
||||
$this->lieferzeit_aktuell=$result['lieferzeit_aktuell'];
|
||||
$this->lager_lieferant=$result['lager_lieferant'];
|
||||
$this->datum_lagerlieferant=$result['datum_lagerlieferant'];
|
||||
$this->bestellnummer=$result['bestellnummer'];
|
||||
$this->bezeichnunglieferant=$result['bezeichnunglieferant'];
|
||||
$this->sicherheitslager=$result['sicherheitslager'];
|
||||
$this->bemerkung=$result['bemerkung'];
|
||||
$this->bearbeiter=$result['bearbeiter'];
|
||||
$this->logdatei=$result['logdatei'];
|
||||
$this->standard=$result['standard'];
|
||||
$this->geloescht=$result['geloescht'];
|
||||
$this->firma=$result['firma'];
|
||||
$this->apichange=$result['apichange'];
|
||||
$this->rahmenvertrag=$result['rahmenvertrag'];
|
||||
$this->rahmenvertrag_von=$result['rahmenvertrag_von'];
|
||||
$this->rahmenvertrag_bis=$result['rahmenvertrag_bis'];
|
||||
$this->rahmenvertrag_menge=$result['rahmenvertrag_menge'];
|
||||
$this->beschreibung=$result['beschreibung'];
|
||||
$this->nichtberechnet=$result['nichtberechnet'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO einkaufspreise (id,artikel,adresse,objekt,projekt,preis,waehrung,ab_menge,vpe,preis_anfrage_vom,gueltig_bis,lieferzeit_standard,lieferzeit_aktuell,lager_lieferant,datum_lagerlieferant,bestellnummer,bezeichnunglieferant,sicherheitslager,bemerkung,bearbeiter,logdatei,standard,geloescht,firma,apichange,rahmenvertrag,rahmenvertrag_von,rahmenvertrag_bis,rahmenvertrag_menge,beschreibung,nichtberechnet)
|
||||
VALUES('','{$this->artikel}','{$this->adresse}','{$this->objekt}','{$this->projekt}','{$this->preis}','{$this->waehrung}','{$this->ab_menge}','{$this->vpe}','{$this->preis_anfrage_vom}','{$this->gueltig_bis}','{$this->lieferzeit_standard}','{$this->lieferzeit_aktuell}','{$this->lager_lieferant}','{$this->datum_lagerlieferant}','{$this->bestellnummer}','{$this->bezeichnunglieferant}','{$this->sicherheitslager}','{$this->bemerkung}','{$this->bearbeiter}','{$this->logdatei}','{$this->standard}','{$this->geloescht}','{$this->firma}','{$this->apichange}','{$this->rahmenvertrag}','{$this->rahmenvertrag_von}','{$this->rahmenvertrag_bis}','{$this->rahmenvertrag_menge}','{$this->beschreibung}','{$this->nichtberechnet}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE einkaufspreise SET
|
||||
artikel='{$this->artikel}',
|
||||
adresse='{$this->adresse}',
|
||||
objekt='{$this->objekt}',
|
||||
projekt='{$this->projekt}',
|
||||
preis='{$this->preis}',
|
||||
waehrung='{$this->waehrung}',
|
||||
ab_menge='{$this->ab_menge}',
|
||||
vpe='{$this->vpe}',
|
||||
preis_anfrage_vom='{$this->preis_anfrage_vom}',
|
||||
gueltig_bis='{$this->gueltig_bis}',
|
||||
lieferzeit_standard='{$this->lieferzeit_standard}',
|
||||
lieferzeit_aktuell='{$this->lieferzeit_aktuell}',
|
||||
lager_lieferant='{$this->lager_lieferant}',
|
||||
datum_lagerlieferant='{$this->datum_lagerlieferant}',
|
||||
bestellnummer='{$this->bestellnummer}',
|
||||
bezeichnunglieferant='{$this->bezeichnunglieferant}',
|
||||
sicherheitslager='{$this->sicherheitslager}',
|
||||
bemerkung='{$this->bemerkung}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
logdatei='{$this->logdatei}',
|
||||
standard='{$this->standard}',
|
||||
geloescht='{$this->geloescht}',
|
||||
firma='{$this->firma}',
|
||||
apichange='{$this->apichange}',
|
||||
rahmenvertrag='{$this->rahmenvertrag}',
|
||||
rahmenvertrag_von='{$this->rahmenvertrag_von}',
|
||||
rahmenvertrag_bis='{$this->rahmenvertrag_bis}',
|
||||
rahmenvertrag_menge='{$this->rahmenvertrag_menge}',
|
||||
beschreibung='{$this->beschreibung}',
|
||||
nichtberechnet='{$this->nichtberechnet}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM einkaufspreise WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->artikel="";
|
||||
$this->adresse="";
|
||||
$this->objekt="";
|
||||
$this->projekt="";
|
||||
$this->preis="";
|
||||
$this->waehrung="";
|
||||
$this->ab_menge="";
|
||||
$this->vpe="";
|
||||
$this->preis_anfrage_vom="";
|
||||
$this->gueltig_bis="";
|
||||
$this->lieferzeit_standard="";
|
||||
$this->lieferzeit_aktuell="";
|
||||
$this->lager_lieferant="";
|
||||
$this->datum_lagerlieferant="";
|
||||
$this->bestellnummer="";
|
||||
$this->bezeichnunglieferant="";
|
||||
$this->sicherheitslager="";
|
||||
$this->bemerkung="";
|
||||
$this->bearbeiter="";
|
||||
$this->logdatei="";
|
||||
$this->standard="";
|
||||
$this->geloescht="";
|
||||
$this->firma="";
|
||||
$this->apichange="";
|
||||
$this->rahmenvertrag="";
|
||||
$this->rahmenvertrag_von="";
|
||||
$this->rahmenvertrag_bis="";
|
||||
$this->rahmenvertrag_menge="";
|
||||
$this->beschreibung="";
|
||||
$this->nichtberechnet="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetArtikel($value) { $this->artikel=$value; }
|
||||
function GetArtikel() { return $this->artikel; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetObjekt($value) { $this->objekt=$value; }
|
||||
function GetObjekt() { return $this->objekt; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetPreis($value) { $this->preis=$value; }
|
||||
function GetPreis() { return $this->preis; }
|
||||
function SetWaehrung($value) { $this->waehrung=$value; }
|
||||
function GetWaehrung() { return $this->waehrung; }
|
||||
function SetAb_Menge($value) { $this->ab_menge=$value; }
|
||||
function GetAb_Menge() { return $this->ab_menge; }
|
||||
function SetVpe($value) { $this->vpe=$value; }
|
||||
function GetVpe() { return $this->vpe; }
|
||||
function SetPreis_Anfrage_Vom($value) { $this->preis_anfrage_vom=$value; }
|
||||
function GetPreis_Anfrage_Vom() { return $this->preis_anfrage_vom; }
|
||||
function SetGueltig_Bis($value) { $this->gueltig_bis=$value; }
|
||||
function GetGueltig_Bis() { return $this->gueltig_bis; }
|
||||
function SetLieferzeit_Standard($value) { $this->lieferzeit_standard=$value; }
|
||||
function GetLieferzeit_Standard() { return $this->lieferzeit_standard; }
|
||||
function SetLieferzeit_Aktuell($value) { $this->lieferzeit_aktuell=$value; }
|
||||
function GetLieferzeit_Aktuell() { return $this->lieferzeit_aktuell; }
|
||||
function SetLager_Lieferant($value) { $this->lager_lieferant=$value; }
|
||||
function GetLager_Lieferant() { return $this->lager_lieferant; }
|
||||
function SetDatum_Lagerlieferant($value) { $this->datum_lagerlieferant=$value; }
|
||||
function GetDatum_Lagerlieferant() { return $this->datum_lagerlieferant; }
|
||||
function SetBestellnummer($value) { $this->bestellnummer=$value; }
|
||||
function GetBestellnummer() { return $this->bestellnummer; }
|
||||
function SetBezeichnunglieferant($value) { $this->bezeichnunglieferant=$value; }
|
||||
function GetBezeichnunglieferant() { return $this->bezeichnunglieferant; }
|
||||
function SetSicherheitslager($value) { $this->sicherheitslager=$value; }
|
||||
function GetSicherheitslager() { return $this->sicherheitslager; }
|
||||
function SetBemerkung($value) { $this->bemerkung=$value; }
|
||||
function GetBemerkung() { return $this->bemerkung; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
function SetStandard($value) { $this->standard=$value; }
|
||||
function GetStandard() { return $this->standard; }
|
||||
function SetGeloescht($value) { $this->geloescht=$value; }
|
||||
function GetGeloescht() { return $this->geloescht; }
|
||||
function SetFirma($value) { $this->firma=$value; }
|
||||
function GetFirma() { return $this->firma; }
|
||||
function SetApichange($value) { $this->apichange=$value; }
|
||||
function GetApichange() { return $this->apichange; }
|
||||
function SetRahmenvertrag($value) { $this->rahmenvertrag=$value; }
|
||||
function GetRahmenvertrag() { return $this->rahmenvertrag; }
|
||||
function SetRahmenvertrag_Von($value) { $this->rahmenvertrag_von=$value; }
|
||||
function GetRahmenvertrag_Von() { return $this->rahmenvertrag_von; }
|
||||
function SetRahmenvertrag_Bis($value) { $this->rahmenvertrag_bis=$value; }
|
||||
function GetRahmenvertrag_Bis() { return $this->rahmenvertrag_bis; }
|
||||
function SetRahmenvertrag_Menge($value) { $this->rahmenvertrag_menge=$value; }
|
||||
function GetRahmenvertrag_Menge() { return $this->rahmenvertrag_menge; }
|
||||
function SetBeschreibung($value) { $this->beschreibung=$value; }
|
||||
function GetBeschreibung() { return $this->beschreibung; }
|
||||
function SetNichtberechnet($value) { $this->nichtberechnet=$value; }
|
||||
function GetNichtberechnet() { return $this->nichtberechnet; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,364 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenEmailbackup
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $angezeigtername;
|
||||
private $internebeschreibung;
|
||||
private $benutzername;
|
||||
private $passwort;
|
||||
private $server;
|
||||
private $smtp;
|
||||
private $ticket;
|
||||
private $imap_sentfolder_aktiv;
|
||||
private $imap_sentfolder;
|
||||
private $imap_port;
|
||||
private $imap_type;
|
||||
private $autoresponder;
|
||||
private $geschaeftsbriefvorlage;
|
||||
private $autoresponderbetreff;
|
||||
private $autorespondertext;
|
||||
private $projekt;
|
||||
private $emailbackup;
|
||||
private $adresse;
|
||||
private $firma;
|
||||
private $loeschtage;
|
||||
private $geloescht;
|
||||
private $ticketloeschen;
|
||||
private $ticketabgeschlossen;
|
||||
private $ticketqueue;
|
||||
private $ticketprojekt;
|
||||
private $ticketemaileingehend;
|
||||
private $smtp_extra;
|
||||
private $smtp_ssl;
|
||||
private $smtp_port;
|
||||
private $smtp_frommail;
|
||||
private $smtp_fromname;
|
||||
private $autosresponder_blacklist;
|
||||
private $eigenesignatur;
|
||||
private $signatur;
|
||||
private $mutex;
|
||||
private $abdatum;
|
||||
private $email;
|
||||
private $client_alias;
|
||||
private $smtp_authtype;
|
||||
private $smtp_authparam;
|
||||
private $smtp_loglevel;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM `emailbackup` WHERE (`id` = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->angezeigtername=$result['angezeigtername'];
|
||||
$this->internebeschreibung=$result['internebeschreibung'];
|
||||
$this->benutzername=$result['benutzername'];
|
||||
$this->passwort=$result['passwort'];
|
||||
$this->server=$result['server'];
|
||||
$this->smtp=$result['smtp'];
|
||||
$this->ticket=$result['ticket'];
|
||||
$this->imap_sentfolder_aktiv=$result['imap_sentfolder_aktiv'];
|
||||
$this->imap_sentfolder=$result['imap_sentfolder'];
|
||||
$this->imap_port=$result['imap_port'];
|
||||
$this->imap_type=$result['imap_type'];
|
||||
$this->autoresponder=$result['autoresponder'];
|
||||
$this->geschaeftsbriefvorlage=$result['geschaeftsbriefvorlage'];
|
||||
$this->autoresponderbetreff=$result['autoresponderbetreff'];
|
||||
$this->autorespondertext=$result['autorespondertext'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->emailbackup=$result['emailbackup'];
|
||||
$this->adresse=$result['adresse'];
|
||||
$this->firma=$result['firma'];
|
||||
$this->loeschtage=$result['loeschtage'];
|
||||
$this->geloescht=$result['geloescht'];
|
||||
$this->ticketloeschen=$result['ticketloeschen'];
|
||||
$this->ticketabgeschlossen=$result['ticketabgeschlossen'];
|
||||
$this->ticketqueue=$result['ticketqueue'];
|
||||
$this->ticketprojekt=$result['ticketprojekt'];
|
||||
$this->ticketemaileingehend=$result['ticketemaileingehend'];
|
||||
$this->smtp_extra=$result['smtp_extra'];
|
||||
$this->smtp_ssl=$result['smtp_ssl'];
|
||||
$this->smtp_port=$result['smtp_port'];
|
||||
$this->smtp_frommail=$result['smtp_frommail'];
|
||||
$this->smtp_fromname=$result['smtp_fromname'];
|
||||
$this->autosresponder_blacklist=$result['autosresponder_blacklist'];
|
||||
$this->eigenesignatur=$result['eigenesignatur'];
|
||||
$this->signatur=$result['signatur'];
|
||||
$this->mutex=$result['mutex'];
|
||||
$this->abdatum=$result['abdatum'];
|
||||
$this->email=$result['email'];
|
||||
$this->client_alias=$result['client_alias'];
|
||||
$this->smtp_authtype=$result['smtp_authtype'];
|
||||
$this->smtp_authparam=$result['smtp_authparam'];
|
||||
$this->smtp_loglevel=$result['smtp_loglevel'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO `emailbackup` (`id`,`angezeigtername`,`internebeschreibung`,`benutzername`,`passwort`,`server`,`smtp`,`ticket`,`imap_sentfolder_aktiv`,`imap_sentfolder`,`imap_port`,`imap_type`,`autoresponder`,`geschaeftsbriefvorlage`,`autoresponderbetreff`,`autorespondertext`,`projekt`,`emailbackup`,`adresse`,`firma`,`loeschtage`,`geloescht`,`ticketloeschen`,`ticketabgeschlossen`,`ticketqueue`,`ticketprojekt`,`ticketemaileingehend`,`smtp_extra`,`smtp_ssl`,`smtp_port`,`smtp_frommail`,`smtp_fromname`,`autosresponder_blacklist`,`eigenesignatur`,`signatur`,`mutex`,`abdatum`,`email`,`client_alias`,`smtp_authtype`,`smtp_authparam`,`smtp_loglevel`)
|
||||
VALUES(NULL,'{$this->angezeigtername}','{$this->internebeschreibung}','{$this->benutzername}','{$this->passwort}','{$this->server}','{$this->smtp}','{$this->ticket}','{$this->imap_sentfolder_aktiv}','{$this->imap_sentfolder}','{$this->imap_port}','{$this->imap_type}','{$this->autoresponder}','{$this->geschaeftsbriefvorlage}','{$this->autoresponderbetreff}','{$this->autorespondertext}','{$this->projekt}','{$this->emailbackup}','{$this->adresse}','{$this->firma}','{$this->loeschtage}','{$this->geloescht}','{$this->ticketloeschen}','{$this->ticketabgeschlossen}','{$this->ticketqueue}','{$this->ticketprojekt}','{$this->ticketemaileingehend}','{$this->smtp_extra}','{$this->smtp_ssl}','{$this->smtp_port}','{$this->smtp_frommail}','{$this->smtp_fromname}','{$this->autosresponder_blacklist}','{$this->eigenesignatur}','{$this->signatur}','{$this->mutex}','{$this->abdatum}','{$this->email}','{$this->client_alias}','{$this->smtp_authtype}','{$this->smtp_authparam}','{$this->smtp_loglevel}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
$sql = "UPDATE `emailbackup` SET
|
||||
`angezeigtername`='{$this->angezeigtername}',
|
||||
`internebeschreibung`='{$this->internebeschreibung}',
|
||||
`benutzername`='{$this->benutzername}',
|
||||
`passwort`='{$this->passwort}',
|
||||
`server`='{$this->server}',
|
||||
`smtp`='{$this->smtp}',
|
||||
`ticket`='{$this->ticket}',
|
||||
`imap_sentfolder_aktiv`='{$this->imap_sentfolder_aktiv}',
|
||||
`imap_sentfolder`='{$this->imap_sentfolder}',
|
||||
`imap_port`='{$this->imap_port}',
|
||||
`imap_type`='{$this->imap_type}',
|
||||
`autoresponder`='{$this->autoresponder}',
|
||||
`geschaeftsbriefvorlage`='{$this->geschaeftsbriefvorlage}',
|
||||
`autoresponderbetreff`='{$this->autoresponderbetreff}',
|
||||
`autorespondertext`='{$this->autorespondertext}',
|
||||
`projekt`='{$this->projekt}',
|
||||
`emailbackup`='{$this->emailbackup}',
|
||||
`adresse`='{$this->adresse}',
|
||||
`firma`='{$this->firma}',
|
||||
`loeschtage`='{$this->loeschtage}',
|
||||
`geloescht`='{$this->geloescht}',
|
||||
`ticketloeschen`='{$this->ticketloeschen}',
|
||||
`ticketabgeschlossen`='{$this->ticketabgeschlossen}',
|
||||
`ticketqueue`='{$this->ticketqueue}',
|
||||
`ticketprojekt`='{$this->ticketprojekt}',
|
||||
`ticketemaileingehend`='{$this->ticketemaileingehend}',
|
||||
`smtp_extra`='{$this->smtp_extra}',
|
||||
`smtp_ssl`='{$this->smtp_ssl}',
|
||||
`smtp_port`='{$this->smtp_port}',
|
||||
`smtp_frommail`='{$this->smtp_frommail}',
|
||||
`smtp_fromname`='{$this->smtp_fromname}',
|
||||
`autosresponder_blacklist`='{$this->autosresponder_blacklist}',
|
||||
`eigenesignatur`='{$this->eigenesignatur}',
|
||||
`signatur`='{$this->signatur}',
|
||||
`mutex`='{$this->mutex}',
|
||||
`abdatum`='{$this->abdatum}',
|
||||
`email`='{$this->email}',
|
||||
`client_alias`='{$this->client_alias}',
|
||||
`smtp_authtype`='{$this->smtp_authtype}',
|
||||
`smtp_authparam`='{$this->smtp_authparam}',
|
||||
`smtp_loglevel`='{$this->smtp_loglevel}'
|
||||
WHERE (`id`='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id='')
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM `emailbackup` WHERE (`id`='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id='';
|
||||
$this->angezeigtername='';
|
||||
$this->internebeschreibung='';
|
||||
$this->benutzername='';
|
||||
$this->passwort='';
|
||||
$this->server='';
|
||||
$this->smtp='';
|
||||
$this->ticket='';
|
||||
$this->imap_sentfolder_aktiv='';
|
||||
$this->imap_sentfolder='';
|
||||
$this->imap_port='';
|
||||
$this->imap_type='';
|
||||
$this->autoresponder='';
|
||||
$this->geschaeftsbriefvorlage='';
|
||||
$this->autoresponderbetreff='';
|
||||
$this->autorespondertext='';
|
||||
$this->projekt='';
|
||||
$this->emailbackup='';
|
||||
$this->adresse='';
|
||||
$this->firma='';
|
||||
$this->loeschtage='';
|
||||
$this->geloescht='';
|
||||
$this->ticketloeschen='';
|
||||
$this->ticketabgeschlossen='';
|
||||
$this->ticketqueue='';
|
||||
$this->ticketprojekt='';
|
||||
$this->ticketemaileingehend='';
|
||||
$this->smtp_extra='';
|
||||
$this->smtp_ssl='';
|
||||
$this->smtp_port='';
|
||||
$this->smtp_frommail='';
|
||||
$this->smtp_fromname='';
|
||||
$this->autosresponder_blacklist='';
|
||||
$this->eigenesignatur='';
|
||||
$this->signatur='';
|
||||
$this->mutex='';
|
||||
$this->abdatum='';
|
||||
$this->email='';
|
||||
$this->client_alias='';
|
||||
$this->smtp_authtype='';
|
||||
$this->smtp_authparam='';
|
||||
$this->smtp_loglevel='';
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = '';
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
public function SetId($value) { $this->id=$value; }
|
||||
public function GetId() { return $this->id; }
|
||||
public function SetAngezeigtername($value) { $this->angezeigtername=$value; }
|
||||
public function GetAngezeigtername() { return $this->angezeigtername; }
|
||||
public function SetInternebeschreibung($value) { $this->internebeschreibung=$value; }
|
||||
public function GetInternebeschreibung() { return $this->internebeschreibung; }
|
||||
public function SetBenutzername($value) { $this->benutzername=$value; }
|
||||
public function GetBenutzername() { return $this->benutzername; }
|
||||
public function SetPasswort($value) { $this->passwort=$value; }
|
||||
public function GetPasswort() { return $this->passwort; }
|
||||
public function SetServer($value) { $this->server=$value; }
|
||||
public function GetServer() { return $this->server; }
|
||||
public function SetSmtp($value) { $this->smtp=$value; }
|
||||
public function GetSmtp() { return $this->smtp; }
|
||||
public function SetTicket($value) { $this->ticket=$value; }
|
||||
public function GetTicket() { return $this->ticket; }
|
||||
public function SetImap_Sentfolder_Aktiv($value) { $this->imap_sentfolder_aktiv=$value; }
|
||||
public function GetImap_Sentfolder_Aktiv() { return $this->imap_sentfolder_aktiv; }
|
||||
public function SetImap_Sentfolder($value) { $this->imap_sentfolder=$value; }
|
||||
public function GetImap_Sentfolder() { return $this->imap_sentfolder; }
|
||||
public function SetImap_Port($value) { $this->imap_port=$value; }
|
||||
public function GetImap_Port() { return $this->imap_port; }
|
||||
public function SetImap_Type($value) { $this->imap_type=$value; }
|
||||
public function GetImap_Type() { return $this->imap_type; }
|
||||
public function SetAutoresponder($value) { $this->autoresponder=$value; }
|
||||
public function GetAutoresponder() { return $this->autoresponder; }
|
||||
public function SetGeschaeftsbriefvorlage($value) { $this->geschaeftsbriefvorlage=$value; }
|
||||
public function GetGeschaeftsbriefvorlage() { return $this->geschaeftsbriefvorlage; }
|
||||
public function SetAutoresponderbetreff($value) { $this->autoresponderbetreff=$value; }
|
||||
public function GetAutoresponderbetreff() { return $this->autoresponderbetreff; }
|
||||
public function SetAutorespondertext($value) { $this->autorespondertext=$value; }
|
||||
public function GetAutorespondertext() { return $this->autorespondertext; }
|
||||
public function SetProjekt($value) { $this->projekt=$value; }
|
||||
public function GetProjekt() { return $this->projekt; }
|
||||
public function SetEmailbackup($value) { $this->emailbackup=$value; }
|
||||
public function GetEmailbackup() { return $this->emailbackup; }
|
||||
public function SetAdresse($value) { $this->adresse=$value; }
|
||||
public function GetAdresse() { return $this->adresse; }
|
||||
public function SetFirma($value) { $this->firma=$value; }
|
||||
public function GetFirma() { return $this->firma; }
|
||||
public function SetLoeschtage($value) { $this->loeschtage=$value; }
|
||||
public function GetLoeschtage() { return $this->loeschtage; }
|
||||
public function SetGeloescht($value) { $this->geloescht=$value; }
|
||||
public function GetGeloescht() { return $this->geloescht; }
|
||||
public function SetTicketloeschen($value) { $this->ticketloeschen=$value; }
|
||||
public function GetTicketloeschen() { return $this->ticketloeschen; }
|
||||
public function SetTicketabgeschlossen($value) { $this->ticketabgeschlossen=$value; }
|
||||
public function GetTicketabgeschlossen() { return $this->ticketabgeschlossen; }
|
||||
public function SetTicketqueue($value) { $this->ticketqueue=$value; }
|
||||
public function GetTicketqueue() { return $this->ticketqueue; }
|
||||
public function SetTicketprojekt($value) { $this->ticketprojekt=$value; }
|
||||
public function GetTicketprojekt() { return $this->ticketprojekt; }
|
||||
public function SetTicketemaileingehend($value) { $this->ticketemaileingehend=$value; }
|
||||
public function GetTicketemaileingehend() { return $this->ticketemaileingehend; }
|
||||
public function SetSmtp_Extra($value) { $this->smtp_extra=$value; }
|
||||
public function GetSmtp_Extra() { return $this->smtp_extra; }
|
||||
public function SetSmtp_Ssl($value) { $this->smtp_ssl=$value; }
|
||||
public function GetSmtp_Ssl() { return $this->smtp_ssl; }
|
||||
public function SetSmtp_Port($value) { $this->smtp_port=$value; }
|
||||
public function GetSmtp_Port() { return $this->smtp_port; }
|
||||
public function SetSmtp_Frommail($value) { $this->smtp_frommail=$value; }
|
||||
public function GetSmtp_Frommail() { return $this->smtp_frommail; }
|
||||
public function SetSmtp_Fromname($value) { $this->smtp_fromname=$value; }
|
||||
public function GetSmtp_Fromname() { return $this->smtp_fromname; }
|
||||
public function SetAutosresponder_Blacklist($value) { $this->autosresponder_blacklist=$value; }
|
||||
public function GetAutosresponder_Blacklist() { return $this->autosresponder_blacklist; }
|
||||
public function SetEigenesignatur($value) { $this->eigenesignatur=$value; }
|
||||
public function GetEigenesignatur() { return $this->eigenesignatur; }
|
||||
public function SetSignatur($value) { $this->signatur=$value; }
|
||||
public function GetSignatur() { return $this->signatur; }
|
||||
public function SetMutex($value) { $this->mutex=$value; }
|
||||
public function GetMutex() { return $this->mutex; }
|
||||
public function SetAbdatum($value) { $this->abdatum=$value; }
|
||||
public function GetAbdatum() { return $this->abdatum; }
|
||||
public function SetEmail($value) { $this->email=$value; }
|
||||
public function GetEmail() { return $this->email; }
|
||||
public function SetClient_Alias($value) { $this->client_alias=$value; }
|
||||
public function GetClient_Alias() { return $this->client_alias; }
|
||||
public function SetSmtp_Authtype($value) { $this->smtp_authtype=$value; }
|
||||
public function GetSmtp_Authtype() { return $this->smtp_authtype; }
|
||||
public function SetSmtp_Authparam($value) { $this->smtp_authparam=$value; }
|
||||
public function GetSmtp_Authparam() { return $this->smtp_authparam; }
|
||||
public function SetSmtp_Loglevel($value) { $this->smtp_loglevel=$value; }
|
||||
public function GetSmtp_Loglevel() { return $this->smtp_loglevel; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,209 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenEmailbackup_Mails
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $webmail;
|
||||
private $subject;
|
||||
private $sender;
|
||||
private $action;
|
||||
private $action_html;
|
||||
private $empfang;
|
||||
private $anhang;
|
||||
private $gelesen;
|
||||
private $checksum;
|
||||
private $adresse;
|
||||
private $spam;
|
||||
private $antworten;
|
||||
private $phpobj;
|
||||
private $flattenedparts;
|
||||
private $attachment;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM emailbackup_mails WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->webmail=$result[webmail];
|
||||
$this->subject=$result[subject];
|
||||
$this->sender=$result[sender];
|
||||
$this->action=$result[action];
|
||||
$this->action_html=$result[action_html];
|
||||
$this->empfang=$result[empfang];
|
||||
$this->anhang=$result[anhang];
|
||||
$this->gelesen=$result[gelesen];
|
||||
$this->checksum=$result[checksum];
|
||||
$this->adresse=$result[adresse];
|
||||
$this->spam=$result[spam];
|
||||
$this->antworten=$result[antworten];
|
||||
$this->phpobj=$result[phpobj];
|
||||
$this->flattenedparts=$result[flattenedparts];
|
||||
$this->attachment=$result[attachment];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO emailbackup_mails (id,webmail,subject,sender,action,action_html,empfang,anhang,gelesen,checksum,adresse,spam,antworten,phpobj,flattenedparts,attachment)
|
||||
VALUES('','{$this->webmail}','{$this->subject}','{$this->sender}','{$this->action}','{$this->action_html}','{$this->empfang}','{$this->anhang}','{$this->gelesen}','{$this->checksum}','{$this->adresse}','{$this->spam}','{$this->antworten}','{$this->phpobj}','{$this->flattenedparts}','{$this->attachment}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE emailbackup_mails SET
|
||||
webmail='{$this->webmail}',
|
||||
subject='{$this->subject}',
|
||||
sender='{$this->sender}',
|
||||
action='{$this->action}',
|
||||
action_html='{$this->action_html}',
|
||||
empfang='{$this->empfang}',
|
||||
anhang='{$this->anhang}',
|
||||
gelesen='{$this->gelesen}',
|
||||
checksum='{$this->checksum}',
|
||||
adresse='{$this->adresse}',
|
||||
spam='{$this->spam}',
|
||||
antworten='{$this->antworten}',
|
||||
phpobj='{$this->phpobj}',
|
||||
flattenedparts='{$this->flattenedparts}',
|
||||
attachment='{$this->attachment}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM emailbackup_mails WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->webmail="";
|
||||
$this->subject="";
|
||||
$this->sender="";
|
||||
$this->action="";
|
||||
$this->action_html="";
|
||||
$this->empfang="";
|
||||
$this->anhang="";
|
||||
$this->gelesen="";
|
||||
$this->checksum="";
|
||||
$this->adresse="";
|
||||
$this->spam="";
|
||||
$this->antworten="";
|
||||
$this->phpobj="";
|
||||
$this->flattenedparts="";
|
||||
$this->attachment="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetWebmail($value) { $this->webmail=$value; }
|
||||
function GetWebmail() { return $this->webmail; }
|
||||
function SetSubject($value) { $this->subject=$value; }
|
||||
function GetSubject() { return $this->subject; }
|
||||
function SetSender($value) { $this->sender=$value; }
|
||||
function GetSender() { return $this->sender; }
|
||||
function SetAction($value) { $this->action=$value; }
|
||||
function GetAction() { return $this->action; }
|
||||
function SetAction_Html($value) { $this->action_html=$value; }
|
||||
function GetAction_Html() { return $this->action_html; }
|
||||
function SetEmpfang($value) { $this->empfang=$value; }
|
||||
function GetEmpfang() { return $this->empfang; }
|
||||
function SetAnhang($value) { $this->anhang=$value; }
|
||||
function GetAnhang() { return $this->anhang; }
|
||||
function SetGelesen($value) { $this->gelesen=$value; }
|
||||
function GetGelesen() { return $this->gelesen; }
|
||||
function SetChecksum($value) { $this->checksum=$value; }
|
||||
function GetChecksum() { return $this->checksum; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetSpam($value) { $this->spam=$value; }
|
||||
function GetSpam() { return $this->spam; }
|
||||
function SetAntworten($value) { $this->antworten=$value; }
|
||||
function GetAntworten() { return $this->antworten; }
|
||||
function SetPhpobj($value) { $this->phpobj=$value; }
|
||||
function GetPhpobj() { return $this->phpobj; }
|
||||
function SetFlattenedparts($value) { $this->flattenedparts=$value; }
|
||||
function GetFlattenedparts() { return $this->flattenedparts; }
|
||||
function SetAttachment($value) { $this->attachment=$value; }
|
||||
function GetAttachment() { return $this->attachment; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,197 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenEtiketten
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $name;
|
||||
private $xml;
|
||||
private $bemerkung;
|
||||
private $ausblenden;
|
||||
private $verwendenals;
|
||||
private $labelbreite;
|
||||
private $labelhoehe;
|
||||
private $labelabstand;
|
||||
private $labeloffsetx;
|
||||
private $labeloffsety;
|
||||
private $format;
|
||||
private $manuell;
|
||||
private $anzahlprozeile;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM etiketten WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->name=$result['name'];
|
||||
$this->xml=$result['xml'];
|
||||
$this->bemerkung=$result['bemerkung'];
|
||||
$this->ausblenden=$result['ausblenden'];
|
||||
$this->verwendenals=$result['verwendenals'];
|
||||
$this->labelbreite=$result['labelbreite'];
|
||||
$this->labelhoehe=$result['labelhoehe'];
|
||||
$this->labelabstand=$result['labelabstand'];
|
||||
$this->labeloffsetx=$result['labeloffsetx'];
|
||||
$this->labeloffsety=$result['labeloffsety'];
|
||||
$this->format=$result['format'];
|
||||
$this->manuell=$result['manuell'];
|
||||
$this->anzahlprozeile=$result['anzahlprozeile'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO etiketten (id,name,xml,bemerkung,ausblenden,verwendenals,labelbreite,labelhoehe,labelabstand,labeloffsetx,labeloffsety,format,manuell,anzahlprozeile)
|
||||
VALUES('','{$this->name}','{$this->xml}','{$this->bemerkung}','{$this->ausblenden}','{$this->verwendenals}','{$this->labelbreite}','{$this->labelhoehe}','{$this->labelabstand}','{$this->labeloffsetx}','{$this->labeloffsety}','{$this->format}','{$this->manuell}','{$this->anzahlprozeile}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE etiketten SET
|
||||
name='{$this->name}',
|
||||
xml='{$this->xml}',
|
||||
bemerkung='{$this->bemerkung}',
|
||||
ausblenden='{$this->ausblenden}',
|
||||
verwendenals='{$this->verwendenals}',
|
||||
labelbreite='{$this->labelbreite}',
|
||||
labelhoehe='{$this->labelhoehe}',
|
||||
labelabstand='{$this->labelabstand}',
|
||||
labeloffsetx='{$this->labeloffsetx}',
|
||||
labeloffsety='{$this->labeloffsety}',
|
||||
format='{$this->format}',
|
||||
manuell='{$this->manuell}',
|
||||
anzahlprozeile='{$this->anzahlprozeile}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM etiketten WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->name="";
|
||||
$this->xml="";
|
||||
$this->bemerkung="";
|
||||
$this->ausblenden="";
|
||||
$this->verwendenals="";
|
||||
$this->labelbreite="";
|
||||
$this->labelhoehe="";
|
||||
$this->labelabstand="";
|
||||
$this->labeloffsetx="";
|
||||
$this->labeloffsety="";
|
||||
$this->format="";
|
||||
$this->manuell="";
|
||||
$this->anzahlprozeile="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetName($value) { $this->name=$value; }
|
||||
function GetName() { return $this->name; }
|
||||
function SetXml($value) { $this->xml=$value; }
|
||||
function GetXml() { return $this->xml; }
|
||||
function SetBemerkung($value) { $this->bemerkung=$value; }
|
||||
function GetBemerkung() { return $this->bemerkung; }
|
||||
function SetAusblenden($value) { $this->ausblenden=$value; }
|
||||
function GetAusblenden() { return $this->ausblenden; }
|
||||
function SetVerwendenals($value) { $this->verwendenals=$value; }
|
||||
function GetVerwendenals() { return $this->verwendenals; }
|
||||
function SetLabelbreite($value) { $this->labelbreite=$value; }
|
||||
function GetLabelbreite() { return $this->labelbreite; }
|
||||
function SetLabelhoehe($value) { $this->labelhoehe=$value; }
|
||||
function GetLabelhoehe() { return $this->labelhoehe; }
|
||||
function SetLabelabstand($value) { $this->labelabstand=$value; }
|
||||
function GetLabelabstand() { return $this->labelabstand; }
|
||||
function SetLabeloffsetx($value) { $this->labeloffsetx=$value; }
|
||||
function GetLabeloffsetx() { return $this->labeloffsetx; }
|
||||
function SetLabeloffsety($value) { $this->labeloffsety=$value; }
|
||||
function GetLabeloffsety() { return $this->labeloffsety; }
|
||||
function SetFormat($value) { $this->format=$value; }
|
||||
function GetFormat() { return $this->format; }
|
||||
function SetManuell($value) { $this->manuell=$value; }
|
||||
function GetManuell() { return $this->manuell; }
|
||||
function SetAnzahlprozeile($value) { $this->anzahlprozeile=$value; }
|
||||
function GetAnzahlprozeile() { return $this->anzahlprozeile; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,155 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenEvent
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $beschreibung;
|
||||
private $kategorie;
|
||||
private $zeit;
|
||||
private $objekt;
|
||||
private $parameter;
|
||||
private $bearbeiter;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM event WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->beschreibung=$result[beschreibung];
|
||||
$this->kategorie=$result[kategorie];
|
||||
$this->zeit=$result[zeit];
|
||||
$this->objekt=$result[objekt];
|
||||
$this->parameter=$result[parameter];
|
||||
$this->bearbeiter=$result[bearbeiter];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO event (id,beschreibung,kategorie,zeit,objekt,parameter,bearbeiter)
|
||||
VALUES('','{$this->beschreibung}','{$this->kategorie}','{$this->zeit}','{$this->objekt}','{$this->parameter}','{$this->bearbeiter}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE event SET
|
||||
beschreibung='{$this->beschreibung}',
|
||||
kategorie='{$this->kategorie}',
|
||||
zeit='{$this->zeit}',
|
||||
objekt='{$this->objekt}',
|
||||
parameter='{$this->parameter}',
|
||||
bearbeiter='{$this->bearbeiter}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM event WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->beschreibung="";
|
||||
$this->kategorie="";
|
||||
$this->zeit="";
|
||||
$this->objekt="";
|
||||
$this->parameter="";
|
||||
$this->bearbeiter="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetBeschreibung($value) { $this->beschreibung=$value; }
|
||||
function GetBeschreibung() { return $this->beschreibung; }
|
||||
function SetKategorie($value) { $this->kategorie=$value; }
|
||||
function GetKategorie() { return $this->kategorie; }
|
||||
function SetZeit($value) { $this->zeit=$value; }
|
||||
function GetZeit() { return $this->zeit; }
|
||||
function SetObjekt($value) { $this->objekt=$value; }
|
||||
function GetObjekt() { return $this->objekt; }
|
||||
function SetParameter($value) { $this->parameter=$value; }
|
||||
function GetParameter() { return $this->parameter; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
@@ -0,0 +1,202 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenExportvorlage
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $bezeichnung;
|
||||
private $ziel;
|
||||
private $internebemerkung;
|
||||
private $fields;
|
||||
private $fields_where;
|
||||
private $letzterexport;
|
||||
private $mitarbeiterletzterexport;
|
||||
private $exporttrennzeichen;
|
||||
private $exporterstezeilenummer;
|
||||
private $exportdatenmaskierung;
|
||||
private $exportzeichensatz;
|
||||
private $filterdatum;
|
||||
private $filterprojekt;
|
||||
private $apifreigabe;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM `exportvorlage` WHERE (`id` = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->bezeichnung=$result['bezeichnung'];
|
||||
$this->ziel=$result['ziel'];
|
||||
$this->internebemerkung=$result['internebemerkung'];
|
||||
$this->fields=$result['fields'];
|
||||
$this->fields_where=$result['fields_where'];
|
||||
$this->letzterexport=$result['letzterexport'];
|
||||
$this->mitarbeiterletzterexport=$result['mitarbeiterletzterexport'];
|
||||
$this->exporttrennzeichen=$result['exporttrennzeichen'];
|
||||
$this->exporterstezeilenummer=$result['exporterstezeilenummer'];
|
||||
$this->exportdatenmaskierung=$result['exportdatenmaskierung'];
|
||||
$this->exportzeichensatz=$result['exportzeichensatz'];
|
||||
$this->filterdatum=$result['filterdatum'];
|
||||
$this->filterprojekt=$result['filterprojekt'];
|
||||
$this->apifreigabe=$result['apifreigabe'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO `exportvorlage` (`id`,`bezeichnung`,`ziel`,`internebemerkung`,`fields`,`fields_where`,`letzterexport`,`mitarbeiterletzterexport`,`exporttrennzeichen`,`exporterstezeilenummer`,`exportdatenmaskierung`,`exportzeichensatz`,`filterdatum`,`filterprojekt`,`apifreigabe`)
|
||||
VALUES(NULL,'{$this->bezeichnung}','{$this->ziel}','{$this->internebemerkung}','{$this->fields}','{$this->fields_where}','{$this->letzterexport}','{$this->mitarbeiterletzterexport}','{$this->exporttrennzeichen}','{$this->exporterstezeilenummer}','{$this->exportdatenmaskierung}','{$this->exportzeichensatz}','{$this->filterdatum}','{$this->filterprojekt}','{$this->apifreigabe}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
$sql = "UPDATE `exportvorlage` SET
|
||||
`bezeichnung`='{$this->bezeichnung}',
|
||||
`ziel`='{$this->ziel}',
|
||||
`internebemerkung`='{$this->internebemerkung}',
|
||||
`fields`='{$this->fields}',
|
||||
`fields_where`='{$this->fields_where}',
|
||||
`letzterexport`='{$this->letzterexport}',
|
||||
`mitarbeiterletzterexport`='{$this->mitarbeiterletzterexport}',
|
||||
`exporttrennzeichen`='{$this->exporttrennzeichen}',
|
||||
`exporterstezeilenummer`='{$this->exporterstezeilenummer}',
|
||||
`exportdatenmaskierung`='{$this->exportdatenmaskierung}',
|
||||
`exportzeichensatz`='{$this->exportzeichensatz}',
|
||||
`filterdatum`='{$this->filterdatum}',
|
||||
`filterprojekt`='{$this->filterprojekt}',
|
||||
`apifreigabe`='{$this->apifreigabe}'
|
||||
WHERE (`id`='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id='')
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM `exportvorlage` WHERE (`id`='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id='';
|
||||
$this->bezeichnung='';
|
||||
$this->ziel='';
|
||||
$this->internebemerkung='';
|
||||
$this->fields='';
|
||||
$this->fields_where='';
|
||||
$this->letzterexport='';
|
||||
$this->mitarbeiterletzterexport='';
|
||||
$this->exporttrennzeichen='';
|
||||
$this->exporterstezeilenummer='';
|
||||
$this->exportdatenmaskierung='';
|
||||
$this->exportzeichensatz='';
|
||||
$this->filterdatum='';
|
||||
$this->filterprojekt='';
|
||||
$this->apifreigabe='';
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = '';
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
public function SetId($value) { $this->id=$value; }
|
||||
public function GetId() { return $this->id; }
|
||||
public function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
public function GetBezeichnung() { return $this->bezeichnung; }
|
||||
public function SetZiel($value) { $this->ziel=$value; }
|
||||
public function GetZiel() { return $this->ziel; }
|
||||
public function SetInternebemerkung($value) { $this->internebemerkung=$value; }
|
||||
public function GetInternebemerkung() { return $this->internebemerkung; }
|
||||
public function SetFields($value) { $this->fields=$value; }
|
||||
public function GetFields() { return $this->fields; }
|
||||
public function SetFields_Where($value) { $this->fields_where=$value; }
|
||||
public function GetFields_Where() { return $this->fields_where; }
|
||||
public function SetLetzterexport($value) { $this->letzterexport=$value; }
|
||||
public function GetLetzterexport() { return $this->letzterexport; }
|
||||
public function SetMitarbeiterletzterexport($value) { $this->mitarbeiterletzterexport=$value; }
|
||||
public function GetMitarbeiterletzterexport() { return $this->mitarbeiterletzterexport; }
|
||||
public function SetExporttrennzeichen($value) { $this->exporttrennzeichen=$value; }
|
||||
public function GetExporttrennzeichen() { return $this->exporttrennzeichen; }
|
||||
public function SetExporterstezeilenummer($value) { $this->exporterstezeilenummer=$value; }
|
||||
public function GetExporterstezeilenummer() { return $this->exporterstezeilenummer; }
|
||||
public function SetExportdatenmaskierung($value) { $this->exportdatenmaskierung=$value; }
|
||||
public function GetExportdatenmaskierung() { return $this->exportdatenmaskierung; }
|
||||
public function SetExportzeichensatz($value) { $this->exportzeichensatz=$value; }
|
||||
public function GetExportzeichensatz() { return $this->exportzeichensatz; }
|
||||
public function SetFilterdatum($value) { $this->filterdatum=$value; }
|
||||
public function GetFilterdatum() { return $this->filterdatum; }
|
||||
public function SetFilterprojekt($value) { $this->filterprojekt=$value; }
|
||||
public function GetFilterprojekt() { return $this->filterprojekt; }
|
||||
public function SetApifreigabe($value) { $this->apifreigabe=$value; }
|
||||
public function GetApifreigabe() { return $this->apifreigabe; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenFirma
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $name;
|
||||
private $standardprojekt;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM firma WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->name=$result[name];
|
||||
$this->standardprojekt=$result[standardprojekt];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO firma (id,name,standardprojekt)
|
||||
VALUES('','{$this->name}','{$this->standardprojekt}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE firma SET
|
||||
name='{$this->name}',
|
||||
standardprojekt='{$this->standardprojekt}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM firma WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->name="";
|
||||
$this->standardprojekt="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetName($value) { $this->name=$value; }
|
||||
function GetName() { return $this->name; }
|
||||
function SetStandardprojekt($value) { $this->standardprojekt=$value; }
|
||||
function GetStandardprojekt() { return $this->standardprojekt; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,947 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenFirmendaten
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $firma;
|
||||
private $absender;
|
||||
private $sichtbar;
|
||||
private $barcode;
|
||||
private $schriftgroesse;
|
||||
private $betreffszeile;
|
||||
private $dokumententext;
|
||||
private $tabellenbeschriftung;
|
||||
private $tabelleninhalt;
|
||||
private $zeilenuntertext;
|
||||
private $freitext;
|
||||
private $infobox;
|
||||
private $spaltenbreite;
|
||||
private $footer_0_0;
|
||||
private $footer_0_1;
|
||||
private $footer_0_2;
|
||||
private $footer_0_3;
|
||||
private $footer_0_4;
|
||||
private $footer_0_5;
|
||||
private $footer_1_0;
|
||||
private $footer_1_1;
|
||||
private $footer_1_2;
|
||||
private $footer_1_3;
|
||||
private $footer_1_4;
|
||||
private $footer_1_5;
|
||||
private $footer_2_0;
|
||||
private $footer_2_1;
|
||||
private $footer_2_2;
|
||||
private $footer_2_3;
|
||||
private $footer_2_4;
|
||||
private $footer_2_5;
|
||||
private $footer_3_0;
|
||||
private $footer_3_1;
|
||||
private $footer_3_2;
|
||||
private $footer_3_3;
|
||||
private $footer_3_4;
|
||||
private $footer_3_5;
|
||||
private $footersichtbar;
|
||||
private $hintergrund;
|
||||
private $logo;
|
||||
private $logo_type;
|
||||
private $briefpapier;
|
||||
private $briefpapier_type;
|
||||
private $benutzername;
|
||||
private $passwort;
|
||||
private $host;
|
||||
private $port;
|
||||
private $mailssl;
|
||||
private $signatur;
|
||||
private $email;
|
||||
private $absendername;
|
||||
private $bcc1;
|
||||
private $bcc2;
|
||||
private $firmenfarbe;
|
||||
private $name;
|
||||
private $strasse;
|
||||
private $plz;
|
||||
private $ort;
|
||||
private $steuernummer;
|
||||
private $startseite_wiki;
|
||||
private $datum;
|
||||
private $projekt;
|
||||
private $brieftext;
|
||||
private $next_angebot;
|
||||
private $next_auftrag;
|
||||
private $next_gutschrift;
|
||||
private $next_lieferschein;
|
||||
private $next_bestellung;
|
||||
private $next_rechnung;
|
||||
private $next_kundennummer;
|
||||
private $next_lieferantennummer;
|
||||
private $next_mitarbeiternummer;
|
||||
private $next_waren;
|
||||
private $next_sonstiges;
|
||||
private $next_produktion;
|
||||
private $next_kundennumer;
|
||||
private $next_produktionen;
|
||||
private $wareneingang_kamera_waage;
|
||||
private $layout_iconbar;
|
||||
private $seite_von_ausrichtung;
|
||||
private $seite_von_sichtbar;
|
||||
private $rechnung_header;
|
||||
private $lieferschein_header;
|
||||
private $angebot_header;
|
||||
private $auftrag_header;
|
||||
private $gutschrift_header;
|
||||
private $bestellung_header;
|
||||
private $rechnung_footer;
|
||||
private $lieferschein_footer;
|
||||
private $angebot_footer;
|
||||
private $auftrag_footer;
|
||||
private $gutschrift_footer;
|
||||
private $bestellung_footer;
|
||||
private $eu_lieferung_vermerk;
|
||||
private $rechnung_ohnebriefpapier;
|
||||
private $lieferschein_ohnebriefpapier;
|
||||
private $angebot_ohnebriefpapier;
|
||||
private $auftrag_ohnebriefpapier;
|
||||
private $gutschrift_ohnebriefpapier;
|
||||
private $bestellung_ohnebriefpapier;
|
||||
private $abstand_adresszeileoben;
|
||||
private $abstand_boxrechtsoben;
|
||||
private $abstand_betreffzeileoben;
|
||||
private $abstand_artikeltabelleoben;
|
||||
private $arbeitsnachweis_header;
|
||||
private $arbeitsnachweis_footer;
|
||||
private $arbeitsnachweis_ohnebriefpapier;
|
||||
private $next_arbeitsnachweis;
|
||||
private $parameterundfreifelder;
|
||||
private $freifeld1;
|
||||
private $freifeld2;
|
||||
private $freifeld3;
|
||||
private $freifeld4;
|
||||
private $freifeld5;
|
||||
private $freifeld6;
|
||||
private $artikel_suche_kurztext;
|
||||
private $externeinkauf;
|
||||
private $schriftart;
|
||||
private $externereinkauf;
|
||||
private $next_reisekosten;
|
||||
private $projektnummerimdokument;
|
||||
private $mailanstellesmtp;
|
||||
private $herstellernummerimdokument;
|
||||
private $standardmarge;
|
||||
private $zahlungsweise;
|
||||
private $zahlungszieltage;
|
||||
private $zahlungszielskonto;
|
||||
private $zahlungszieltageskonto;
|
||||
private $zahlung_rechnung;
|
||||
private $zahlung_vorkasse;
|
||||
private $zahlung_nachnahme;
|
||||
private $zahlung_kreditkarte;
|
||||
private $zahlung_paypal;
|
||||
private $zahlung_bar;
|
||||
private $zahlung_lastschrift;
|
||||
private $zahlung_rechnung_sofort_de;
|
||||
private $zahlung_rechnung_de;
|
||||
private $knickfalz;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM firmendaten WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->firma=$result[firma];
|
||||
$this->absender=$result[absender];
|
||||
$this->sichtbar=$result[sichtbar];
|
||||
$this->barcode=$result[barcode];
|
||||
$this->schriftgroesse=$result[schriftgroesse];
|
||||
$this->betreffszeile=$result[betreffszeile];
|
||||
$this->dokumententext=$result[dokumententext];
|
||||
$this->tabellenbeschriftung=$result[tabellenbeschriftung];
|
||||
$this->tabelleninhalt=$result[tabelleninhalt];
|
||||
$this->zeilenuntertext=$result[zeilenuntertext];
|
||||
$this->freitext=$result[freitext];
|
||||
$this->infobox=$result[infobox];
|
||||
$this->spaltenbreite=$result[spaltenbreite];
|
||||
$this->footer_0_0=$result[footer_0_0];
|
||||
$this->footer_0_1=$result[footer_0_1];
|
||||
$this->footer_0_2=$result[footer_0_2];
|
||||
$this->footer_0_3=$result[footer_0_3];
|
||||
$this->footer_0_4=$result[footer_0_4];
|
||||
$this->footer_0_5=$result[footer_0_5];
|
||||
$this->footer_1_0=$result[footer_1_0];
|
||||
$this->footer_1_1=$result[footer_1_1];
|
||||
$this->footer_1_2=$result[footer_1_2];
|
||||
$this->footer_1_3=$result[footer_1_3];
|
||||
$this->footer_1_4=$result[footer_1_4];
|
||||
$this->footer_1_5=$result[footer_1_5];
|
||||
$this->footer_2_0=$result[footer_2_0];
|
||||
$this->footer_2_1=$result[footer_2_1];
|
||||
$this->footer_2_2=$result[footer_2_2];
|
||||
$this->footer_2_3=$result[footer_2_3];
|
||||
$this->footer_2_4=$result[footer_2_4];
|
||||
$this->footer_2_5=$result[footer_2_5];
|
||||
$this->footer_3_0=$result[footer_3_0];
|
||||
$this->footer_3_1=$result[footer_3_1];
|
||||
$this->footer_3_2=$result[footer_3_2];
|
||||
$this->footer_3_3=$result[footer_3_3];
|
||||
$this->footer_3_4=$result[footer_3_4];
|
||||
$this->footer_3_5=$result[footer_3_5];
|
||||
$this->footersichtbar=$result[footersichtbar];
|
||||
$this->hintergrund=$result[hintergrund];
|
||||
$this->logo=$result[logo];
|
||||
$this->logo_type=$result[logo_type];
|
||||
$this->briefpapier=$result[briefpapier];
|
||||
$this->briefpapier_type=$result[briefpapier_type];
|
||||
$this->benutzername=$result[benutzername];
|
||||
$this->passwort=$result[passwort];
|
||||
$this->host=$result[host];
|
||||
$this->port=$result[port];
|
||||
$this->mailssl=$result[mailssl];
|
||||
$this->signatur=$result[signatur];
|
||||
$this->email=$result[email];
|
||||
$this->absendername=$result[absendername];
|
||||
$this->bcc1=$result[bcc1];
|
||||
$this->bcc2=$result[bcc2];
|
||||
$this->firmenfarbe=$result[firmenfarbe];
|
||||
$this->name=$result[name];
|
||||
$this->strasse=$result[strasse];
|
||||
$this->plz=$result[plz];
|
||||
$this->ort=$result[ort];
|
||||
$this->steuernummer=$result[steuernummer];
|
||||
$this->startseite_wiki=$result[startseite_wiki];
|
||||
$this->datum=$result[datum];
|
||||
$this->projekt=$result[projekt];
|
||||
$this->brieftext=$result[brieftext];
|
||||
$this->next_angebot=$result[next_angebot];
|
||||
$this->next_auftrag=$result[next_auftrag];
|
||||
$this->next_gutschrift=$result[next_gutschrift];
|
||||
$this->next_lieferschein=$result[next_lieferschein];
|
||||
$this->next_bestellung=$result[next_bestellung];
|
||||
$this->next_rechnung=$result[next_rechnung];
|
||||
$this->next_kundennummer=$result[next_kundennummer];
|
||||
$this->next_lieferantennummer=$result[next_lieferantennummer];
|
||||
$this->next_mitarbeiternummer=$result[next_mitarbeiternummer];
|
||||
$this->next_waren=$result[next_waren];
|
||||
$this->next_sonstiges=$result[next_sonstiges];
|
||||
$this->next_produktion=$result[next_produktion];
|
||||
$this->next_kundennumer=$result[next_kundennumer];
|
||||
$this->next_produktionen=$result[next_produktionen];
|
||||
$this->wareneingang_kamera_waage=$result[wareneingang_kamera_waage];
|
||||
$this->layout_iconbar=$result[layout_iconbar];
|
||||
$this->seite_von_ausrichtung=$result[seite_von_ausrichtung];
|
||||
$this->seite_von_sichtbar=$result[seite_von_sichtbar];
|
||||
$this->rechnung_header=$result[rechnung_header];
|
||||
$this->lieferschein_header=$result[lieferschein_header];
|
||||
$this->angebot_header=$result[angebot_header];
|
||||
$this->auftrag_header=$result[auftrag_header];
|
||||
$this->gutschrift_header=$result[gutschrift_header];
|
||||
$this->bestellung_header=$result[bestellung_header];
|
||||
$this->rechnung_footer=$result[rechnung_footer];
|
||||
$this->lieferschein_footer=$result[lieferschein_footer];
|
||||
$this->angebot_footer=$result[angebot_footer];
|
||||
$this->auftrag_footer=$result[auftrag_footer];
|
||||
$this->gutschrift_footer=$result[gutschrift_footer];
|
||||
$this->bestellung_footer=$result[bestellung_footer];
|
||||
$this->eu_lieferung_vermerk=$result[eu_lieferung_vermerk];
|
||||
$this->rechnung_ohnebriefpapier=$result[rechnung_ohnebriefpapier];
|
||||
$this->lieferschein_ohnebriefpapier=$result[lieferschein_ohnebriefpapier];
|
||||
$this->angebot_ohnebriefpapier=$result[angebot_ohnebriefpapier];
|
||||
$this->auftrag_ohnebriefpapier=$result[auftrag_ohnebriefpapier];
|
||||
$this->gutschrift_ohnebriefpapier=$result[gutschrift_ohnebriefpapier];
|
||||
$this->bestellung_ohnebriefpapier=$result[bestellung_ohnebriefpapier];
|
||||
$this->abstand_adresszeileoben=$result[abstand_adresszeileoben];
|
||||
$this->abstand_boxrechtsoben=$result[abstand_boxrechtsoben];
|
||||
$this->abstand_betreffzeileoben=$result[abstand_betreffzeileoben];
|
||||
$this->abstand_artikeltabelleoben=$result[abstand_artikeltabelleoben];
|
||||
$this->arbeitsnachweis_header=$result[arbeitsnachweis_header];
|
||||
$this->arbeitsnachweis_footer=$result[arbeitsnachweis_footer];
|
||||
$this->arbeitsnachweis_ohnebriefpapier=$result[arbeitsnachweis_ohnebriefpapier];
|
||||
$this->next_arbeitsnachweis=$result[next_arbeitsnachweis];
|
||||
$this->parameterundfreifelder=$result[parameterundfreifelder];
|
||||
$this->freifeld1=$result[freifeld1];
|
||||
$this->freifeld2=$result[freifeld2];
|
||||
$this->freifeld3=$result[freifeld3];
|
||||
$this->freifeld4=$result[freifeld4];
|
||||
$this->freifeld5=$result[freifeld5];
|
||||
$this->freifeld6=$result[freifeld6];
|
||||
$this->artikel_suche_kurztext=$result[artikel_suche_kurztext];
|
||||
$this->externeinkauf=$result[externeinkauf];
|
||||
$this->schriftart=$result[schriftart];
|
||||
$this->externereinkauf=$result[externereinkauf];
|
||||
$this->next_reisekosten=$result[next_reisekosten];
|
||||
$this->projektnummerimdokument=$result[projektnummerimdokument];
|
||||
$this->mailanstellesmtp=$result[mailanstellesmtp];
|
||||
$this->herstellernummerimdokument=$result[herstellernummerimdokument];
|
||||
$this->standardmarge=$result[standardmarge];
|
||||
$this->zahlungsweise=$result[zahlungsweise];
|
||||
$this->zahlungszieltage=$result[zahlungszieltage];
|
||||
$this->zahlungszielskonto=$result[zahlungszielskonto];
|
||||
$this->zahlungszieltageskonto=$result[zahlungszieltageskonto];
|
||||
$this->zahlung_rechnung=$result[zahlung_rechnung];
|
||||
$this->zahlung_vorkasse=$result[zahlung_vorkasse];
|
||||
$this->zahlung_nachnahme=$result[zahlung_nachnahme];
|
||||
$this->zahlung_kreditkarte=$result[zahlung_kreditkarte];
|
||||
$this->zahlung_paypal=$result[zahlung_paypal];
|
||||
$this->zahlung_bar=$result[zahlung_bar];
|
||||
$this->zahlung_lastschrift=$result[zahlung_lastschrift];
|
||||
$this->zahlung_rechnung_sofort_de=$result[zahlung_rechnung_sofort_de];
|
||||
$this->zahlung_rechnung_de=$result[zahlung_rechnung_de];
|
||||
$this->knickfalz=$result[knickfalz];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO firmendaten (id,firma,absender,sichtbar,barcode,schriftgroesse,betreffszeile,dokumententext,tabellenbeschriftung,tabelleninhalt,zeilenuntertext,freitext,infobox,spaltenbreite,footer_0_0,footer_0_1,footer_0_2,footer_0_3,footer_0_4,footer_0_5,footer_1_0,footer_1_1,footer_1_2,footer_1_3,footer_1_4,footer_1_5,footer_2_0,footer_2_1,footer_2_2,footer_2_3,footer_2_4,footer_2_5,footer_3_0,footer_3_1,footer_3_2,footer_3_3,footer_3_4,footer_3_5,footersichtbar,hintergrund,logo,logo_type,briefpapier,briefpapier_type,benutzername,passwort,host,port,mailssl,signatur,email,absendername,bcc1,bcc2,firmenfarbe,name,strasse,plz,ort,steuernummer,startseite_wiki,datum,projekt,brieftext,next_angebot,next_auftrag,next_gutschrift,next_lieferschein,next_bestellung,next_rechnung,next_kundennummer,next_lieferantennummer,next_mitarbeiternummer,next_waren,next_sonstiges,next_produktion,next_kundennumer,next_produktionen,wareneingang_kamera_waage,layout_iconbar,seite_von_ausrichtung,seite_von_sichtbar,rechnung_header,lieferschein_header,angebot_header,auftrag_header,gutschrift_header,bestellung_header,rechnung_footer,lieferschein_footer,angebot_footer,auftrag_footer,gutschrift_footer,bestellung_footer,eu_lieferung_vermerk,rechnung_ohnebriefpapier,lieferschein_ohnebriefpapier,angebot_ohnebriefpapier,auftrag_ohnebriefpapier,gutschrift_ohnebriefpapier,bestellung_ohnebriefpapier,abstand_adresszeileoben,abstand_boxrechtsoben,abstand_betreffzeileoben,abstand_artikeltabelleoben,arbeitsnachweis_header,arbeitsnachweis_footer,arbeitsnachweis_ohnebriefpapier,next_arbeitsnachweis,parameterundfreifelder,freifeld1,freifeld2,freifeld3,freifeld4,freifeld5,freifeld6,artikel_suche_kurztext,externeinkauf,schriftart,externereinkauf,next_reisekosten,projektnummerimdokument,mailanstellesmtp,herstellernummerimdokument,standardmarge,zahlungsweise,zahlungszieltage,zahlungszielskonto,zahlungszieltageskonto,zahlung_rechnung,zahlung_vorkasse,zahlung_nachnahme,zahlung_kreditkarte,zahlung_paypal,zahlung_bar,zahlung_lastschrift,zahlung_rechnung_sofort_de,zahlung_rechnung_de,knickfalz)
|
||||
VALUES('','{$this->firma}','{$this->absender}','{$this->sichtbar}','{$this->barcode}','{$this->schriftgroesse}','{$this->betreffszeile}','{$this->dokumententext}','{$this->tabellenbeschriftung}','{$this->tabelleninhalt}','{$this->zeilenuntertext}','{$this->freitext}','{$this->infobox}','{$this->spaltenbreite}','{$this->footer_0_0}','{$this->footer_0_1}','{$this->footer_0_2}','{$this->footer_0_3}','{$this->footer_0_4}','{$this->footer_0_5}','{$this->footer_1_0}','{$this->footer_1_1}','{$this->footer_1_2}','{$this->footer_1_3}','{$this->footer_1_4}','{$this->footer_1_5}','{$this->footer_2_0}','{$this->footer_2_1}','{$this->footer_2_2}','{$this->footer_2_3}','{$this->footer_2_4}','{$this->footer_2_5}','{$this->footer_3_0}','{$this->footer_3_1}','{$this->footer_3_2}','{$this->footer_3_3}','{$this->footer_3_4}','{$this->footer_3_5}','{$this->footersichtbar}','{$this->hintergrund}','{$this->logo}','{$this->logo_type}','{$this->briefpapier}','{$this->briefpapier_type}','{$this->benutzername}','{$this->passwort}','{$this->host}','{$this->port}','{$this->mailssl}','{$this->signatur}','{$this->email}','{$this->absendername}','{$this->bcc1}','{$this->bcc2}','{$this->firmenfarbe}','{$this->name}','{$this->strasse}','{$this->plz}','{$this->ort}','{$this->steuernummer}','{$this->startseite_wiki}','{$this->datum}','{$this->projekt}','{$this->brieftext}','{$this->next_angebot}','{$this->next_auftrag}','{$this->next_gutschrift}','{$this->next_lieferschein}','{$this->next_bestellung}','{$this->next_rechnung}','{$this->next_kundennummer}','{$this->next_lieferantennummer}','{$this->next_mitarbeiternummer}','{$this->next_waren}','{$this->next_sonstiges}','{$this->next_produktion}','{$this->next_kundennumer}','{$this->next_produktionen}','{$this->wareneingang_kamera_waage}','{$this->layout_iconbar}','{$this->seite_von_ausrichtung}','{$this->seite_von_sichtbar}','{$this->rechnung_header}','{$this->lieferschein_header}','{$this->angebot_header}','{$this->auftrag_header}','{$this->gutschrift_header}','{$this->bestellung_header}','{$this->rechnung_footer}','{$this->lieferschein_footer}','{$this->angebot_footer}','{$this->auftrag_footer}','{$this->gutschrift_footer}','{$this->bestellung_footer}','{$this->eu_lieferung_vermerk}','{$this->rechnung_ohnebriefpapier}','{$this->lieferschein_ohnebriefpapier}','{$this->angebot_ohnebriefpapier}','{$this->auftrag_ohnebriefpapier}','{$this->gutschrift_ohnebriefpapier}','{$this->bestellung_ohnebriefpapier}','{$this->abstand_adresszeileoben}','{$this->abstand_boxrechtsoben}','{$this->abstand_betreffzeileoben}','{$this->abstand_artikeltabelleoben}','{$this->arbeitsnachweis_header}','{$this->arbeitsnachweis_footer}','{$this->arbeitsnachweis_ohnebriefpapier}','{$this->next_arbeitsnachweis}','{$this->parameterundfreifelder}','{$this->freifeld1}','{$this->freifeld2}','{$this->freifeld3}','{$this->freifeld4}','{$this->freifeld5}','{$this->freifeld6}','{$this->artikel_suche_kurztext}','{$this->externeinkauf}','{$this->schriftart}','{$this->externereinkauf}','{$this->next_reisekosten}','{$this->projektnummerimdokument}','{$this->mailanstellesmtp}','{$this->herstellernummerimdokument}','{$this->standardmarge}','{$this->zahlungsweise}','{$this->zahlungszieltage}','{$this->zahlungszielskonto}','{$this->zahlungszieltageskonto}','{$this->zahlung_rechnung}','{$this->zahlung_vorkasse}','{$this->zahlung_nachnahme}','{$this->zahlung_kreditkarte}','{$this->zahlung_paypal}','{$this->zahlung_bar}','{$this->zahlung_lastschrift}','{$this->zahlung_rechnung_sofort_de}','{$this->zahlung_rechnung_de}','{$this->knickfalz}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE firmendaten SET
|
||||
firma='{$this->firma}',
|
||||
absender='{$this->absender}',
|
||||
sichtbar='{$this->sichtbar}',
|
||||
barcode='{$this->barcode}',
|
||||
schriftgroesse='{$this->schriftgroesse}',
|
||||
betreffszeile='{$this->betreffszeile}',
|
||||
dokumententext='{$this->dokumententext}',
|
||||
tabellenbeschriftung='{$this->tabellenbeschriftung}',
|
||||
tabelleninhalt='{$this->tabelleninhalt}',
|
||||
zeilenuntertext='{$this->zeilenuntertext}',
|
||||
freitext='{$this->freitext}',
|
||||
infobox='{$this->infobox}',
|
||||
spaltenbreite='{$this->spaltenbreite}',
|
||||
footer_0_0='{$this->footer_0_0}',
|
||||
footer_0_1='{$this->footer_0_1}',
|
||||
footer_0_2='{$this->footer_0_2}',
|
||||
footer_0_3='{$this->footer_0_3}',
|
||||
footer_0_4='{$this->footer_0_4}',
|
||||
footer_0_5='{$this->footer_0_5}',
|
||||
footer_1_0='{$this->footer_1_0}',
|
||||
footer_1_1='{$this->footer_1_1}',
|
||||
footer_1_2='{$this->footer_1_2}',
|
||||
footer_1_3='{$this->footer_1_3}',
|
||||
footer_1_4='{$this->footer_1_4}',
|
||||
footer_1_5='{$this->footer_1_5}',
|
||||
footer_2_0='{$this->footer_2_0}',
|
||||
footer_2_1='{$this->footer_2_1}',
|
||||
footer_2_2='{$this->footer_2_2}',
|
||||
footer_2_3='{$this->footer_2_3}',
|
||||
footer_2_4='{$this->footer_2_4}',
|
||||
footer_2_5='{$this->footer_2_5}',
|
||||
footer_3_0='{$this->footer_3_0}',
|
||||
footer_3_1='{$this->footer_3_1}',
|
||||
footer_3_2='{$this->footer_3_2}',
|
||||
footer_3_3='{$this->footer_3_3}',
|
||||
footer_3_4='{$this->footer_3_4}',
|
||||
footer_3_5='{$this->footer_3_5}',
|
||||
footersichtbar='{$this->footersichtbar}',
|
||||
hintergrund='{$this->hintergrund}',
|
||||
logo='{$this->logo}',
|
||||
logo_type='{$this->logo_type}',
|
||||
briefpapier='{$this->briefpapier}',
|
||||
briefpapier_type='{$this->briefpapier_type}',
|
||||
benutzername='{$this->benutzername}',
|
||||
passwort='{$this->passwort}',
|
||||
host='{$this->host}',
|
||||
port='{$this->port}',
|
||||
mailssl='{$this->mailssl}',
|
||||
signatur='{$this->signatur}',
|
||||
email='{$this->email}',
|
||||
absendername='{$this->absendername}',
|
||||
bcc1='{$this->bcc1}',
|
||||
bcc2='{$this->bcc2}',
|
||||
firmenfarbe='{$this->firmenfarbe}',
|
||||
name='{$this->name}',
|
||||
strasse='{$this->strasse}',
|
||||
plz='{$this->plz}',
|
||||
ort='{$this->ort}',
|
||||
steuernummer='{$this->steuernummer}',
|
||||
startseite_wiki='{$this->startseite_wiki}',
|
||||
datum='{$this->datum}',
|
||||
projekt='{$this->projekt}',
|
||||
brieftext='{$this->brieftext}',
|
||||
next_angebot='{$this->next_angebot}',
|
||||
next_auftrag='{$this->next_auftrag}',
|
||||
next_gutschrift='{$this->next_gutschrift}',
|
||||
next_lieferschein='{$this->next_lieferschein}',
|
||||
next_bestellung='{$this->next_bestellung}',
|
||||
next_rechnung='{$this->next_rechnung}',
|
||||
next_kundennummer='{$this->next_kundennummer}',
|
||||
next_lieferantennummer='{$this->next_lieferantennummer}',
|
||||
next_mitarbeiternummer='{$this->next_mitarbeiternummer}',
|
||||
next_waren='{$this->next_waren}',
|
||||
next_sonstiges='{$this->next_sonstiges}',
|
||||
next_produktion='{$this->next_produktion}',
|
||||
next_kundennumer='{$this->next_kundennumer}',
|
||||
next_produktionen='{$this->next_produktionen}',
|
||||
wareneingang_kamera_waage='{$this->wareneingang_kamera_waage}',
|
||||
layout_iconbar='{$this->layout_iconbar}',
|
||||
seite_von_ausrichtung='{$this->seite_von_ausrichtung}',
|
||||
seite_von_sichtbar='{$this->seite_von_sichtbar}',
|
||||
rechnung_header='{$this->rechnung_header}',
|
||||
lieferschein_header='{$this->lieferschein_header}',
|
||||
angebot_header='{$this->angebot_header}',
|
||||
auftrag_header='{$this->auftrag_header}',
|
||||
gutschrift_header='{$this->gutschrift_header}',
|
||||
bestellung_header='{$this->bestellung_header}',
|
||||
rechnung_footer='{$this->rechnung_footer}',
|
||||
lieferschein_footer='{$this->lieferschein_footer}',
|
||||
angebot_footer='{$this->angebot_footer}',
|
||||
auftrag_footer='{$this->auftrag_footer}',
|
||||
gutschrift_footer='{$this->gutschrift_footer}',
|
||||
bestellung_footer='{$this->bestellung_footer}',
|
||||
eu_lieferung_vermerk='{$this->eu_lieferung_vermerk}',
|
||||
rechnung_ohnebriefpapier='{$this->rechnung_ohnebriefpapier}',
|
||||
lieferschein_ohnebriefpapier='{$this->lieferschein_ohnebriefpapier}',
|
||||
angebot_ohnebriefpapier='{$this->angebot_ohnebriefpapier}',
|
||||
auftrag_ohnebriefpapier='{$this->auftrag_ohnebriefpapier}',
|
||||
gutschrift_ohnebriefpapier='{$this->gutschrift_ohnebriefpapier}',
|
||||
bestellung_ohnebriefpapier='{$this->bestellung_ohnebriefpapier}',
|
||||
abstand_adresszeileoben='{$this->abstand_adresszeileoben}',
|
||||
abstand_boxrechtsoben='{$this->abstand_boxrechtsoben}',
|
||||
abstand_betreffzeileoben='{$this->abstand_betreffzeileoben}',
|
||||
abstand_artikeltabelleoben='{$this->abstand_artikeltabelleoben}',
|
||||
arbeitsnachweis_header='{$this->arbeitsnachweis_header}',
|
||||
arbeitsnachweis_footer='{$this->arbeitsnachweis_footer}',
|
||||
arbeitsnachweis_ohnebriefpapier='{$this->arbeitsnachweis_ohnebriefpapier}',
|
||||
next_arbeitsnachweis='{$this->next_arbeitsnachweis}',
|
||||
parameterundfreifelder='{$this->parameterundfreifelder}',
|
||||
freifeld1='{$this->freifeld1}',
|
||||
freifeld2='{$this->freifeld2}',
|
||||
freifeld3='{$this->freifeld3}',
|
||||
freifeld4='{$this->freifeld4}',
|
||||
freifeld5='{$this->freifeld5}',
|
||||
freifeld6='{$this->freifeld6}',
|
||||
artikel_suche_kurztext='{$this->artikel_suche_kurztext}',
|
||||
externeinkauf='{$this->externeinkauf}',
|
||||
schriftart='{$this->schriftart}',
|
||||
externereinkauf='{$this->externereinkauf}',
|
||||
next_reisekosten='{$this->next_reisekosten}',
|
||||
projektnummerimdokument='{$this->projektnummerimdokument}',
|
||||
mailanstellesmtp='{$this->mailanstellesmtp}',
|
||||
herstellernummerimdokument='{$this->herstellernummerimdokument}',
|
||||
standardmarge='{$this->standardmarge}',
|
||||
zahlungsweise='{$this->zahlungsweise}',
|
||||
zahlungszieltage='{$this->zahlungszieltage}',
|
||||
zahlungszielskonto='{$this->zahlungszielskonto}',
|
||||
zahlungszieltageskonto='{$this->zahlungszieltageskonto}',
|
||||
zahlung_rechnung='{$this->zahlung_rechnung}',
|
||||
zahlung_vorkasse='{$this->zahlung_vorkasse}',
|
||||
zahlung_nachnahme='{$this->zahlung_nachnahme}',
|
||||
zahlung_kreditkarte='{$this->zahlung_kreditkarte}',
|
||||
zahlung_paypal='{$this->zahlung_paypal}',
|
||||
zahlung_bar='{$this->zahlung_bar}',
|
||||
zahlung_lastschrift='{$this->zahlung_lastschrift}',
|
||||
zahlung_rechnung_sofort_de='{$this->zahlung_rechnung_sofort_de}',
|
||||
zahlung_rechnung_de='{$this->zahlung_rechnung_de}',
|
||||
knickfalz='{$this->knickfalz}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM firmendaten WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->firma="";
|
||||
$this->absender="";
|
||||
$this->sichtbar="";
|
||||
$this->barcode="";
|
||||
$this->schriftgroesse="";
|
||||
$this->betreffszeile="";
|
||||
$this->dokumententext="";
|
||||
$this->tabellenbeschriftung="";
|
||||
$this->tabelleninhalt="";
|
||||
$this->zeilenuntertext="";
|
||||
$this->freitext="";
|
||||
$this->infobox="";
|
||||
$this->spaltenbreite="";
|
||||
$this->footer_0_0="";
|
||||
$this->footer_0_1="";
|
||||
$this->footer_0_2="";
|
||||
$this->footer_0_3="";
|
||||
$this->footer_0_4="";
|
||||
$this->footer_0_5="";
|
||||
$this->footer_1_0="";
|
||||
$this->footer_1_1="";
|
||||
$this->footer_1_2="";
|
||||
$this->footer_1_3="";
|
||||
$this->footer_1_4="";
|
||||
$this->footer_1_5="";
|
||||
$this->footer_2_0="";
|
||||
$this->footer_2_1="";
|
||||
$this->footer_2_2="";
|
||||
$this->footer_2_3="";
|
||||
$this->footer_2_4="";
|
||||
$this->footer_2_5="";
|
||||
$this->footer_3_0="";
|
||||
$this->footer_3_1="";
|
||||
$this->footer_3_2="";
|
||||
$this->footer_3_3="";
|
||||
$this->footer_3_4="";
|
||||
$this->footer_3_5="";
|
||||
$this->footersichtbar="";
|
||||
$this->hintergrund="";
|
||||
$this->logo="";
|
||||
$this->logo_type="";
|
||||
$this->briefpapier="";
|
||||
$this->briefpapier_type="";
|
||||
$this->benutzername="";
|
||||
$this->passwort="";
|
||||
$this->host="";
|
||||
$this->port="";
|
||||
$this->mailssl="";
|
||||
$this->signatur="";
|
||||
$this->email="";
|
||||
$this->absendername="";
|
||||
$this->bcc1="";
|
||||
$this->bcc2="";
|
||||
$this->firmenfarbe="";
|
||||
$this->name="";
|
||||
$this->strasse="";
|
||||
$this->plz="";
|
||||
$this->ort="";
|
||||
$this->steuernummer="";
|
||||
$this->startseite_wiki="";
|
||||
$this->datum="";
|
||||
$this->projekt="";
|
||||
$this->brieftext="";
|
||||
$this->next_angebot="";
|
||||
$this->next_auftrag="";
|
||||
$this->next_gutschrift="";
|
||||
$this->next_lieferschein="";
|
||||
$this->next_bestellung="";
|
||||
$this->next_rechnung="";
|
||||
$this->next_kundennummer="";
|
||||
$this->next_lieferantennummer="";
|
||||
$this->next_mitarbeiternummer="";
|
||||
$this->next_waren="";
|
||||
$this->next_sonstiges="";
|
||||
$this->next_produktion="";
|
||||
$this->next_kundennumer="";
|
||||
$this->next_produktionen="";
|
||||
$this->wareneingang_kamera_waage="";
|
||||
$this->layout_iconbar="";
|
||||
$this->seite_von_ausrichtung="";
|
||||
$this->seite_von_sichtbar="";
|
||||
$this->rechnung_header="";
|
||||
$this->lieferschein_header="";
|
||||
$this->angebot_header="";
|
||||
$this->auftrag_header="";
|
||||
$this->gutschrift_header="";
|
||||
$this->bestellung_header="";
|
||||
$this->rechnung_footer="";
|
||||
$this->lieferschein_footer="";
|
||||
$this->angebot_footer="";
|
||||
$this->auftrag_footer="";
|
||||
$this->gutschrift_footer="";
|
||||
$this->bestellung_footer="";
|
||||
$this->eu_lieferung_vermerk="";
|
||||
$this->rechnung_ohnebriefpapier="";
|
||||
$this->lieferschein_ohnebriefpapier="";
|
||||
$this->angebot_ohnebriefpapier="";
|
||||
$this->auftrag_ohnebriefpapier="";
|
||||
$this->gutschrift_ohnebriefpapier="";
|
||||
$this->bestellung_ohnebriefpapier="";
|
||||
$this->abstand_adresszeileoben="";
|
||||
$this->abstand_boxrechtsoben="";
|
||||
$this->abstand_betreffzeileoben="";
|
||||
$this->abstand_artikeltabelleoben="";
|
||||
$this->arbeitsnachweis_header="";
|
||||
$this->arbeitsnachweis_footer="";
|
||||
$this->arbeitsnachweis_ohnebriefpapier="";
|
||||
$this->next_arbeitsnachweis="";
|
||||
$this->parameterundfreifelder="";
|
||||
$this->freifeld1="";
|
||||
$this->freifeld2="";
|
||||
$this->freifeld3="";
|
||||
$this->freifeld4="";
|
||||
$this->freifeld5="";
|
||||
$this->freifeld6="";
|
||||
$this->artikel_suche_kurztext="";
|
||||
$this->externeinkauf="";
|
||||
$this->schriftart="";
|
||||
$this->externereinkauf="";
|
||||
$this->next_reisekosten="";
|
||||
$this->projektnummerimdokument="";
|
||||
$this->mailanstellesmtp="";
|
||||
$this->herstellernummerimdokument="";
|
||||
$this->standardmarge="";
|
||||
$this->zahlungsweise="";
|
||||
$this->zahlungszieltage="";
|
||||
$this->zahlungszielskonto="";
|
||||
$this->zahlungszieltageskonto="";
|
||||
$this->zahlung_rechnung="";
|
||||
$this->zahlung_vorkasse="";
|
||||
$this->zahlung_nachnahme="";
|
||||
$this->zahlung_kreditkarte="";
|
||||
$this->zahlung_paypal="";
|
||||
$this->zahlung_bar="";
|
||||
$this->zahlung_lastschrift="";
|
||||
$this->zahlung_rechnung_sofort_de="";
|
||||
$this->zahlung_rechnung_de="";
|
||||
$this->knickfalz="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetFirma($value) { $this->firma=$value; }
|
||||
function GetFirma() { return $this->firma; }
|
||||
function SetAbsender($value) { $this->absender=$value; }
|
||||
function GetAbsender() { return $this->absender; }
|
||||
function SetSichtbar($value) { $this->sichtbar=$value; }
|
||||
function GetSichtbar() { return $this->sichtbar; }
|
||||
function SetBarcode($value) { $this->barcode=$value; }
|
||||
function GetBarcode() { return $this->barcode; }
|
||||
function SetSchriftgroesse($value) { $this->schriftgroesse=$value; }
|
||||
function GetSchriftgroesse() { return $this->schriftgroesse; }
|
||||
function SetBetreffszeile($value) { $this->betreffszeile=$value; }
|
||||
function GetBetreffszeile() { return $this->betreffszeile; }
|
||||
function SetDokumententext($value) { $this->dokumententext=$value; }
|
||||
function GetDokumententext() { return $this->dokumententext; }
|
||||
function SetTabellenbeschriftung($value) { $this->tabellenbeschriftung=$value; }
|
||||
function GetTabellenbeschriftung() { return $this->tabellenbeschriftung; }
|
||||
function SetTabelleninhalt($value) { $this->tabelleninhalt=$value; }
|
||||
function GetTabelleninhalt() { return $this->tabelleninhalt; }
|
||||
function SetZeilenuntertext($value) { $this->zeilenuntertext=$value; }
|
||||
function GetZeilenuntertext() { return $this->zeilenuntertext; }
|
||||
function SetFreitext($value) { $this->freitext=$value; }
|
||||
function GetFreitext() { return $this->freitext; }
|
||||
function SetInfobox($value) { $this->infobox=$value; }
|
||||
function GetInfobox() { return $this->infobox; }
|
||||
function SetSpaltenbreite($value) { $this->spaltenbreite=$value; }
|
||||
function GetSpaltenbreite() { return $this->spaltenbreite; }
|
||||
function SetFooter_0_0($value) { $this->footer_0_0=$value; }
|
||||
function GetFooter_0_0() { return $this->footer_0_0; }
|
||||
function SetFooter_0_1($value) { $this->footer_0_1=$value; }
|
||||
function GetFooter_0_1() { return $this->footer_0_1; }
|
||||
function SetFooter_0_2($value) { $this->footer_0_2=$value; }
|
||||
function GetFooter_0_2() { return $this->footer_0_2; }
|
||||
function SetFooter_0_3($value) { $this->footer_0_3=$value; }
|
||||
function GetFooter_0_3() { return $this->footer_0_3; }
|
||||
function SetFooter_0_4($value) { $this->footer_0_4=$value; }
|
||||
function GetFooter_0_4() { return $this->footer_0_4; }
|
||||
function SetFooter_0_5($value) { $this->footer_0_5=$value; }
|
||||
function GetFooter_0_5() { return $this->footer_0_5; }
|
||||
function SetFooter_1_0($value) { $this->footer_1_0=$value; }
|
||||
function GetFooter_1_0() { return $this->footer_1_0; }
|
||||
function SetFooter_1_1($value) { $this->footer_1_1=$value; }
|
||||
function GetFooter_1_1() { return $this->footer_1_1; }
|
||||
function SetFooter_1_2($value) { $this->footer_1_2=$value; }
|
||||
function GetFooter_1_2() { return $this->footer_1_2; }
|
||||
function SetFooter_1_3($value) { $this->footer_1_3=$value; }
|
||||
function GetFooter_1_3() { return $this->footer_1_3; }
|
||||
function SetFooter_1_4($value) { $this->footer_1_4=$value; }
|
||||
function GetFooter_1_4() { return $this->footer_1_4; }
|
||||
function SetFooter_1_5($value) { $this->footer_1_5=$value; }
|
||||
function GetFooter_1_5() { return $this->footer_1_5; }
|
||||
function SetFooter_2_0($value) { $this->footer_2_0=$value; }
|
||||
function GetFooter_2_0() { return $this->footer_2_0; }
|
||||
function SetFooter_2_1($value) { $this->footer_2_1=$value; }
|
||||
function GetFooter_2_1() { return $this->footer_2_1; }
|
||||
function SetFooter_2_2($value) { $this->footer_2_2=$value; }
|
||||
function GetFooter_2_2() { return $this->footer_2_2; }
|
||||
function SetFooter_2_3($value) { $this->footer_2_3=$value; }
|
||||
function GetFooter_2_3() { return $this->footer_2_3; }
|
||||
function SetFooter_2_4($value) { $this->footer_2_4=$value; }
|
||||
function GetFooter_2_4() { return $this->footer_2_4; }
|
||||
function SetFooter_2_5($value) { $this->footer_2_5=$value; }
|
||||
function GetFooter_2_5() { return $this->footer_2_5; }
|
||||
function SetFooter_3_0($value) { $this->footer_3_0=$value; }
|
||||
function GetFooter_3_0() { return $this->footer_3_0; }
|
||||
function SetFooter_3_1($value) { $this->footer_3_1=$value; }
|
||||
function GetFooter_3_1() { return $this->footer_3_1; }
|
||||
function SetFooter_3_2($value) { $this->footer_3_2=$value; }
|
||||
function GetFooter_3_2() { return $this->footer_3_2; }
|
||||
function SetFooter_3_3($value) { $this->footer_3_3=$value; }
|
||||
function GetFooter_3_3() { return $this->footer_3_3; }
|
||||
function SetFooter_3_4($value) { $this->footer_3_4=$value; }
|
||||
function GetFooter_3_4() { return $this->footer_3_4; }
|
||||
function SetFooter_3_5($value) { $this->footer_3_5=$value; }
|
||||
function GetFooter_3_5() { return $this->footer_3_5; }
|
||||
function SetFootersichtbar($value) { $this->footersichtbar=$value; }
|
||||
function GetFootersichtbar() { return $this->footersichtbar; }
|
||||
function SetHintergrund($value) { $this->hintergrund=$value; }
|
||||
function GetHintergrund() { return $this->hintergrund; }
|
||||
function SetLogo($value) { $this->logo=$value; }
|
||||
function GetLogo() { return $this->logo; }
|
||||
function SetLogo_Type($value) { $this->logo_type=$value; }
|
||||
function GetLogo_Type() { return $this->logo_type; }
|
||||
function SetBriefpapier($value) { $this->briefpapier=$value; }
|
||||
function GetBriefpapier() { return $this->briefpapier; }
|
||||
function SetBriefpapier_Type($value) { $this->briefpapier_type=$value; }
|
||||
function GetBriefpapier_Type() { return $this->briefpapier_type; }
|
||||
function SetBenutzername($value) { $this->benutzername=$value; }
|
||||
function GetBenutzername() { return $this->benutzername; }
|
||||
function SetPasswort($value) { $this->passwort=$value; }
|
||||
function GetPasswort() { return $this->passwort; }
|
||||
function SetHost($value) { $this->host=$value; }
|
||||
function GetHost() { return $this->host; }
|
||||
function SetPort($value) { $this->port=$value; }
|
||||
function GetPort() { return $this->port; }
|
||||
function SetMailssl($value) { $this->mailssl=$value; }
|
||||
function GetMailssl() { return $this->mailssl; }
|
||||
function SetSignatur($value) { $this->signatur=$value; }
|
||||
function GetSignatur() { return $this->signatur; }
|
||||
function SetEmail($value) { $this->email=$value; }
|
||||
function GetEmail() { return $this->email; }
|
||||
function SetAbsendername($value) { $this->absendername=$value; }
|
||||
function GetAbsendername() { return $this->absendername; }
|
||||
function SetBcc1($value) { $this->bcc1=$value; }
|
||||
function GetBcc1() { return $this->bcc1; }
|
||||
function SetBcc2($value) { $this->bcc2=$value; }
|
||||
function GetBcc2() { return $this->bcc2; }
|
||||
function SetFirmenfarbe($value) { $this->firmenfarbe=$value; }
|
||||
function GetFirmenfarbe() { return $this->firmenfarbe; }
|
||||
function SetName($value) { $this->name=$value; }
|
||||
function GetName() { return $this->name; }
|
||||
function SetStrasse($value) { $this->strasse=$value; }
|
||||
function GetStrasse() { return $this->strasse; }
|
||||
function SetPlz($value) { $this->plz=$value; }
|
||||
function GetPlz() { return $this->plz; }
|
||||
function SetOrt($value) { $this->ort=$value; }
|
||||
function GetOrt() { return $this->ort; }
|
||||
function SetSteuernummer($value) { $this->steuernummer=$value; }
|
||||
function GetSteuernummer() { return $this->steuernummer; }
|
||||
function SetStartseite_Wiki($value) { $this->startseite_wiki=$value; }
|
||||
function GetStartseite_Wiki() { return $this->startseite_wiki; }
|
||||
function SetDatum($value) { $this->datum=$value; }
|
||||
function GetDatum() { return $this->datum; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetBrieftext($value) { $this->brieftext=$value; }
|
||||
function GetBrieftext() { return $this->brieftext; }
|
||||
function SetNext_Angebot($value) { $this->next_angebot=$value; }
|
||||
function GetNext_Angebot() { return $this->next_angebot; }
|
||||
function SetNext_Auftrag($value) { $this->next_auftrag=$value; }
|
||||
function GetNext_Auftrag() { return $this->next_auftrag; }
|
||||
function SetNext_Gutschrift($value) { $this->next_gutschrift=$value; }
|
||||
function GetNext_Gutschrift() { return $this->next_gutschrift; }
|
||||
function SetNext_Lieferschein($value) { $this->next_lieferschein=$value; }
|
||||
function GetNext_Lieferschein() { return $this->next_lieferschein; }
|
||||
function SetNext_Bestellung($value) { $this->next_bestellung=$value; }
|
||||
function GetNext_Bestellung() { return $this->next_bestellung; }
|
||||
function SetNext_Rechnung($value) { $this->next_rechnung=$value; }
|
||||
function GetNext_Rechnung() { return $this->next_rechnung; }
|
||||
function SetNext_Kundennummer($value) { $this->next_kundennummer=$value; }
|
||||
function GetNext_Kundennummer() { return $this->next_kundennummer; }
|
||||
function SetNext_Lieferantennummer($value) { $this->next_lieferantennummer=$value; }
|
||||
function GetNext_Lieferantennummer() { return $this->next_lieferantennummer; }
|
||||
function SetNext_Mitarbeiternummer($value) { $this->next_mitarbeiternummer=$value; }
|
||||
function GetNext_Mitarbeiternummer() { return $this->next_mitarbeiternummer; }
|
||||
function SetNext_Waren($value) { $this->next_waren=$value; }
|
||||
function GetNext_Waren() { return $this->next_waren; }
|
||||
function SetNext_Sonstiges($value) { $this->next_sonstiges=$value; }
|
||||
function GetNext_Sonstiges() { return $this->next_sonstiges; }
|
||||
function SetNext_Produktion($value) { $this->next_produktion=$value; }
|
||||
function GetNext_Produktion() { return $this->next_produktion; }
|
||||
function SetNext_Kundennumer($value) { $this->next_kundennumer=$value; }
|
||||
function GetNext_Kundennumer() { return $this->next_kundennumer; }
|
||||
function SetNext_Produktionen($value) { $this->next_produktionen=$value; }
|
||||
function GetNext_Produktionen() { return $this->next_produktionen; }
|
||||
function SetWareneingang_Kamera_Waage($value) { $this->wareneingang_kamera_waage=$value; }
|
||||
function GetWareneingang_Kamera_Waage() { return $this->wareneingang_kamera_waage; }
|
||||
function SetLayout_Iconbar($value) { $this->layout_iconbar=$value; }
|
||||
function GetLayout_Iconbar() { return $this->layout_iconbar; }
|
||||
function SetSeite_Von_Ausrichtung($value) { $this->seite_von_ausrichtung=$value; }
|
||||
function GetSeite_Von_Ausrichtung() { return $this->seite_von_ausrichtung; }
|
||||
function SetSeite_Von_Sichtbar($value) { $this->seite_von_sichtbar=$value; }
|
||||
function GetSeite_Von_Sichtbar() { return $this->seite_von_sichtbar; }
|
||||
function SetRechnung_Header($value) { $this->rechnung_header=$value; }
|
||||
function GetRechnung_Header() { return $this->rechnung_header; }
|
||||
function SetLieferschein_Header($value) { $this->lieferschein_header=$value; }
|
||||
function GetLieferschein_Header() { return $this->lieferschein_header; }
|
||||
function SetAngebot_Header($value) { $this->angebot_header=$value; }
|
||||
function GetAngebot_Header() { return $this->angebot_header; }
|
||||
function SetAuftrag_Header($value) { $this->auftrag_header=$value; }
|
||||
function GetAuftrag_Header() { return $this->auftrag_header; }
|
||||
function SetGutschrift_Header($value) { $this->gutschrift_header=$value; }
|
||||
function GetGutschrift_Header() { return $this->gutschrift_header; }
|
||||
function SetBestellung_Header($value) { $this->bestellung_header=$value; }
|
||||
function GetBestellung_Header() { return $this->bestellung_header; }
|
||||
function SetRechnung_Footer($value) { $this->rechnung_footer=$value; }
|
||||
function GetRechnung_Footer() { return $this->rechnung_footer; }
|
||||
function SetLieferschein_Footer($value) { $this->lieferschein_footer=$value; }
|
||||
function GetLieferschein_Footer() { return $this->lieferschein_footer; }
|
||||
function SetAngebot_Footer($value) { $this->angebot_footer=$value; }
|
||||
function GetAngebot_Footer() { return $this->angebot_footer; }
|
||||
function SetAuftrag_Footer($value) { $this->auftrag_footer=$value; }
|
||||
function GetAuftrag_Footer() { return $this->auftrag_footer; }
|
||||
function SetGutschrift_Footer($value) { $this->gutschrift_footer=$value; }
|
||||
function GetGutschrift_Footer() { return $this->gutschrift_footer; }
|
||||
function SetBestellung_Footer($value) { $this->bestellung_footer=$value; }
|
||||
function GetBestellung_Footer() { return $this->bestellung_footer; }
|
||||
function SetEu_Lieferung_Vermerk($value) { $this->eu_lieferung_vermerk=$value; }
|
||||
function GetEu_Lieferung_Vermerk() { return $this->eu_lieferung_vermerk; }
|
||||
function SetRechnung_Ohnebriefpapier($value) { $this->rechnung_ohnebriefpapier=$value; }
|
||||
function GetRechnung_Ohnebriefpapier() { return $this->rechnung_ohnebriefpapier; }
|
||||
function SetLieferschein_Ohnebriefpapier($value) { $this->lieferschein_ohnebriefpapier=$value; }
|
||||
function GetLieferschein_Ohnebriefpapier() { return $this->lieferschein_ohnebriefpapier; }
|
||||
function SetAngebot_Ohnebriefpapier($value) { $this->angebot_ohnebriefpapier=$value; }
|
||||
function GetAngebot_Ohnebriefpapier() { return $this->angebot_ohnebriefpapier; }
|
||||
function SetAuftrag_Ohnebriefpapier($value) { $this->auftrag_ohnebriefpapier=$value; }
|
||||
function GetAuftrag_Ohnebriefpapier() { return $this->auftrag_ohnebriefpapier; }
|
||||
function SetGutschrift_Ohnebriefpapier($value) { $this->gutschrift_ohnebriefpapier=$value; }
|
||||
function GetGutschrift_Ohnebriefpapier() { return $this->gutschrift_ohnebriefpapier; }
|
||||
function SetBestellung_Ohnebriefpapier($value) { $this->bestellung_ohnebriefpapier=$value; }
|
||||
function GetBestellung_Ohnebriefpapier() { return $this->bestellung_ohnebriefpapier; }
|
||||
function SetAbstand_Adresszeileoben($value) { $this->abstand_adresszeileoben=$value; }
|
||||
function GetAbstand_Adresszeileoben() { return $this->abstand_adresszeileoben; }
|
||||
function SetAbstand_Boxrechtsoben($value) { $this->abstand_boxrechtsoben=$value; }
|
||||
function GetAbstand_Boxrechtsoben() { return $this->abstand_boxrechtsoben; }
|
||||
function SetAbstand_Betreffzeileoben($value) { $this->abstand_betreffzeileoben=$value; }
|
||||
function GetAbstand_Betreffzeileoben() { return $this->abstand_betreffzeileoben; }
|
||||
function SetAbstand_Artikeltabelleoben($value) { $this->abstand_artikeltabelleoben=$value; }
|
||||
function GetAbstand_Artikeltabelleoben() { return $this->abstand_artikeltabelleoben; }
|
||||
function SetArbeitsnachweis_Header($value) { $this->arbeitsnachweis_header=$value; }
|
||||
function GetArbeitsnachweis_Header() { return $this->arbeitsnachweis_header; }
|
||||
function SetArbeitsnachweis_Footer($value) { $this->arbeitsnachweis_footer=$value; }
|
||||
function GetArbeitsnachweis_Footer() { return $this->arbeitsnachweis_footer; }
|
||||
function SetArbeitsnachweis_Ohnebriefpapier($value) { $this->arbeitsnachweis_ohnebriefpapier=$value; }
|
||||
function GetArbeitsnachweis_Ohnebriefpapier() { return $this->arbeitsnachweis_ohnebriefpapier; }
|
||||
function SetNext_Arbeitsnachweis($value) { $this->next_arbeitsnachweis=$value; }
|
||||
function GetNext_Arbeitsnachweis() { return $this->next_arbeitsnachweis; }
|
||||
function SetParameterundfreifelder($value) { $this->parameterundfreifelder=$value; }
|
||||
function GetParameterundfreifelder() { return $this->parameterundfreifelder; }
|
||||
function SetFreifeld1($value) { $this->freifeld1=$value; }
|
||||
function GetFreifeld1() { return $this->freifeld1; }
|
||||
function SetFreifeld2($value) { $this->freifeld2=$value; }
|
||||
function GetFreifeld2() { return $this->freifeld2; }
|
||||
function SetFreifeld3($value) { $this->freifeld3=$value; }
|
||||
function GetFreifeld3() { return $this->freifeld3; }
|
||||
function SetFreifeld4($value) { $this->freifeld4=$value; }
|
||||
function GetFreifeld4() { return $this->freifeld4; }
|
||||
function SetFreifeld5($value) { $this->freifeld5=$value; }
|
||||
function GetFreifeld5() { return $this->freifeld5; }
|
||||
function SetFreifeld6($value) { $this->freifeld6=$value; }
|
||||
function GetFreifeld6() { return $this->freifeld6; }
|
||||
function SetArtikel_Suche_Kurztext($value) { $this->artikel_suche_kurztext=$value; }
|
||||
function GetArtikel_Suche_Kurztext() { return $this->artikel_suche_kurztext; }
|
||||
function SetExterneinkauf($value) { $this->externeinkauf=$value; }
|
||||
function GetExterneinkauf() { return $this->externeinkauf; }
|
||||
function SetSchriftart($value) { $this->schriftart=$value; }
|
||||
function GetSchriftart() { return $this->schriftart; }
|
||||
function SetExternereinkauf($value) { $this->externereinkauf=$value; }
|
||||
function GetExternereinkauf() { return $this->externereinkauf; }
|
||||
function SetNext_Reisekosten($value) { $this->next_reisekosten=$value; }
|
||||
function GetNext_Reisekosten() { return $this->next_reisekosten; }
|
||||
function SetProjektnummerimdokument($value) { $this->projektnummerimdokument=$value; }
|
||||
function GetProjektnummerimdokument() { return $this->projektnummerimdokument; }
|
||||
function SetMailanstellesmtp($value) { $this->mailanstellesmtp=$value; }
|
||||
function GetMailanstellesmtp() { return $this->mailanstellesmtp; }
|
||||
function SetHerstellernummerimdokument($value) { $this->herstellernummerimdokument=$value; }
|
||||
function GetHerstellernummerimdokument() { return $this->herstellernummerimdokument; }
|
||||
function SetStandardmarge($value) { $this->standardmarge=$value; }
|
||||
function GetStandardmarge() { return $this->standardmarge; }
|
||||
function SetZahlungsweise($value) { $this->zahlungsweise=$value; }
|
||||
function GetZahlungsweise() { return $this->zahlungsweise; }
|
||||
function SetZahlungszieltage($value) { $this->zahlungszieltage=$value; }
|
||||
function GetZahlungszieltage() { return $this->zahlungszieltage; }
|
||||
function SetZahlungszielskonto($value) { $this->zahlungszielskonto=$value; }
|
||||
function GetZahlungszielskonto() { return $this->zahlungszielskonto; }
|
||||
function SetZahlungszieltageskonto($value) { $this->zahlungszieltageskonto=$value; }
|
||||
function GetZahlungszieltageskonto() { return $this->zahlungszieltageskonto; }
|
||||
function SetZahlung_Rechnung($value) { $this->zahlung_rechnung=$value; }
|
||||
function GetZahlung_Rechnung() { return $this->zahlung_rechnung; }
|
||||
function SetZahlung_Vorkasse($value) { $this->zahlung_vorkasse=$value; }
|
||||
function GetZahlung_Vorkasse() { return $this->zahlung_vorkasse; }
|
||||
function SetZahlung_Nachnahme($value) { $this->zahlung_nachnahme=$value; }
|
||||
function GetZahlung_Nachnahme() { return $this->zahlung_nachnahme; }
|
||||
function SetZahlung_Kreditkarte($value) { $this->zahlung_kreditkarte=$value; }
|
||||
function GetZahlung_Kreditkarte() { return $this->zahlung_kreditkarte; }
|
||||
function SetZahlung_Paypal($value) { $this->zahlung_paypal=$value; }
|
||||
function GetZahlung_Paypal() { return $this->zahlung_paypal; }
|
||||
function SetZahlung_Bar($value) { $this->zahlung_bar=$value; }
|
||||
function GetZahlung_Bar() { return $this->zahlung_bar; }
|
||||
function SetZahlung_Lastschrift($value) { $this->zahlung_lastschrift=$value; }
|
||||
function GetZahlung_Lastschrift() { return $this->zahlung_lastschrift; }
|
||||
function SetZahlung_Rechnung_Sofort_De($value) { $this->zahlung_rechnung_sofort_de=$value; }
|
||||
function GetZahlung_Rechnung_Sofort_De() { return $this->zahlung_rechnung_sofort_de; }
|
||||
function SetZahlung_Rechnung_De($value) { $this->zahlung_rechnung_de=$value; }
|
||||
function GetZahlung_Rechnung_De() { return $this->zahlung_rechnung_de; }
|
||||
function SetKnickfalz($value) { $this->knickfalz=$value; }
|
||||
function GetKnickfalz() { return $this->knickfalz; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,155 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenGeschaeftsbrief_Vorlagen
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $sprache;
|
||||
private $betreff;
|
||||
private $text;
|
||||
private $subjekt;
|
||||
private $projekt;
|
||||
private $firma;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM geschaeftsbrief_vorlagen WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->sprache=$result['sprache'];
|
||||
$this->betreff=$result['betreff'];
|
||||
$this->text=$result['text'];
|
||||
$this->subjekt=$result['subjekt'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->firma=$result['firma'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO geschaeftsbrief_vorlagen (id,sprache,betreff,text,subjekt,projekt,firma)
|
||||
VALUES('','{$this->sprache}','{$this->betreff}','{$this->text}','{$this->subjekt}','{$this->projekt}','{$this->firma}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE geschaeftsbrief_vorlagen SET
|
||||
sprache='{$this->sprache}',
|
||||
betreff='{$this->betreff}',
|
||||
text='{$this->text}',
|
||||
subjekt='{$this->subjekt}',
|
||||
projekt='{$this->projekt}',
|
||||
firma='{$this->firma}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM geschaeftsbrief_vorlagen WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->sprache="";
|
||||
$this->betreff="";
|
||||
$this->text="";
|
||||
$this->subjekt="";
|
||||
$this->projekt="";
|
||||
$this->firma="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetSprache($value) { $this->sprache=$value; }
|
||||
function GetSprache() { return $this->sprache; }
|
||||
function SetBetreff($value) { $this->betreff=$value; }
|
||||
function GetBetreff() { return $this->betreff; }
|
||||
function SetText($value) { $this->text=$value; }
|
||||
function GetText() { return $this->text; }
|
||||
function SetSubjekt($value) { $this->subjekt=$value; }
|
||||
function GetSubjekt() { return $this->subjekt; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetFirma($value) { $this->firma=$value; }
|
||||
function GetFirma() { return $this->firma; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,581 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenGruppen
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $name;
|
||||
private $art;
|
||||
private $kennziffer;
|
||||
private $internebemerkung;
|
||||
private $grundrabatt;
|
||||
private $rabatt1;
|
||||
private $rabatt2;
|
||||
private $rabatt3;
|
||||
private $rabatt4;
|
||||
private $rabatt5;
|
||||
private $sonderrabatt_skonto;
|
||||
private $provision;
|
||||
private $kundennummer;
|
||||
private $partnerid;
|
||||
private $dta_aktiv;
|
||||
private $dta_periode;
|
||||
private $dta_dateiname;
|
||||
private $dta_mail;
|
||||
private $dta_mail_betreff;
|
||||
private $dta_mail_text;
|
||||
private $dtavariablen;
|
||||
private $dta_variante;
|
||||
private $bonus1;
|
||||
private $bonus1_ab;
|
||||
private $bonus2;
|
||||
private $bonus2_ab;
|
||||
private $bonus3;
|
||||
private $bonus3_ab;
|
||||
private $bonus4;
|
||||
private $bonus4_ab;
|
||||
private $bonus5;
|
||||
private $bonus5_ab;
|
||||
private $bonus6;
|
||||
private $bonus6_ab;
|
||||
private $bonus7;
|
||||
private $bonus7_ab;
|
||||
private $bonus8;
|
||||
private $bonus8_ab;
|
||||
private $bonus9;
|
||||
private $bonus9_ab;
|
||||
private $bonus10;
|
||||
private $bonus10_ab;
|
||||
private $zahlungszieltage;
|
||||
private $zahlungszielskonto;
|
||||
private $zahlungszieltageskonto;
|
||||
private $portoartikel;
|
||||
private $portofreiab;
|
||||
private $erweiterteoptionen;
|
||||
private $zentralerechnung;
|
||||
private $zentralregulierung;
|
||||
private $gruppe;
|
||||
private $preisgruppe;
|
||||
private $verbandsgruppe;
|
||||
private $rechnung_name;
|
||||
private $rechnung_strasse;
|
||||
private $rechnung_ort;
|
||||
private $rechnung_plz;
|
||||
private $rechnung_abteilung;
|
||||
private $rechnung_land;
|
||||
private $rechnung_email;
|
||||
private $rechnung_periode;
|
||||
private $rechnung_anzahlpapier;
|
||||
private $rechnung_permail;
|
||||
private $webid;
|
||||
private $portofrei_aktiv;
|
||||
private $projekt;
|
||||
private $objektname;
|
||||
private $objekttyp;
|
||||
private $parameter;
|
||||
private $objektname2;
|
||||
private $objekttyp2;
|
||||
private $parameter2;
|
||||
private $objektname3;
|
||||
private $objekttyp3;
|
||||
private $parameter3;
|
||||
private $kategorie;
|
||||
private $aktiv;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM gruppen WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->name=$result['name'];
|
||||
$this->art=$result['art'];
|
||||
$this->kennziffer=$result['kennziffer'];
|
||||
$this->internebemerkung=$result['internebemerkung'];
|
||||
$this->grundrabatt=$result['grundrabatt'];
|
||||
$this->rabatt1=$result['rabatt1'];
|
||||
$this->rabatt2=$result['rabatt2'];
|
||||
$this->rabatt3=$result['rabatt3'];
|
||||
$this->rabatt4=$result['rabatt4'];
|
||||
$this->rabatt5=$result['rabatt5'];
|
||||
$this->sonderrabatt_skonto=$result['sonderrabatt_skonto'];
|
||||
$this->provision=$result['provision'];
|
||||
$this->kundennummer=$result['kundennummer'];
|
||||
$this->partnerid=$result['partnerid'];
|
||||
$this->dta_aktiv=$result['dta_aktiv'];
|
||||
$this->dta_periode=$result['dta_periode'];
|
||||
$this->dta_dateiname=$result['dta_dateiname'];
|
||||
$this->dta_mail=$result['dta_mail'];
|
||||
$this->dta_mail_betreff=$result['dta_mail_betreff'];
|
||||
$this->dta_mail_text=$result['dta_mail_text'];
|
||||
$this->dtavariablen=$result['dtavariablen'];
|
||||
$this->dta_variante=$result['dta_variante'];
|
||||
$this->bonus1=$result['bonus1'];
|
||||
$this->bonus1_ab=$result['bonus1_ab'];
|
||||
$this->bonus2=$result['bonus2'];
|
||||
$this->bonus2_ab=$result['bonus2_ab'];
|
||||
$this->bonus3=$result['bonus3'];
|
||||
$this->bonus3_ab=$result['bonus3_ab'];
|
||||
$this->bonus4=$result['bonus4'];
|
||||
$this->bonus4_ab=$result['bonus4_ab'];
|
||||
$this->bonus5=$result['bonus5'];
|
||||
$this->bonus5_ab=$result['bonus5_ab'];
|
||||
$this->bonus6=$result['bonus6'];
|
||||
$this->bonus6_ab=$result['bonus6_ab'];
|
||||
$this->bonus7=$result['bonus7'];
|
||||
$this->bonus7_ab=$result['bonus7_ab'];
|
||||
$this->bonus8=$result['bonus8'];
|
||||
$this->bonus8_ab=$result['bonus8_ab'];
|
||||
$this->bonus9=$result['bonus9'];
|
||||
$this->bonus9_ab=$result['bonus9_ab'];
|
||||
$this->bonus10=$result['bonus10'];
|
||||
$this->bonus10_ab=$result['bonus10_ab'];
|
||||
$this->zahlungszieltage=$result['zahlungszieltage'];
|
||||
$this->zahlungszielskonto=$result['zahlungszielskonto'];
|
||||
$this->zahlungszieltageskonto=$result['zahlungszieltageskonto'];
|
||||
$this->portoartikel=$result['portoartikel'];
|
||||
$this->portofreiab=$result['portofreiab'];
|
||||
$this->erweiterteoptionen=$result['erweiterteoptionen'];
|
||||
$this->zentralerechnung=$result['zentralerechnung'];
|
||||
$this->zentralregulierung=$result['zentralregulierung'];
|
||||
$this->gruppe=$result['gruppe'];
|
||||
$this->preisgruppe=$result['preisgruppe'];
|
||||
$this->verbandsgruppe=$result['verbandsgruppe'];
|
||||
$this->rechnung_name=$result['rechnung_name'];
|
||||
$this->rechnung_strasse=$result['rechnung_strasse'];
|
||||
$this->rechnung_ort=$result['rechnung_ort'];
|
||||
$this->rechnung_plz=$result['rechnung_plz'];
|
||||
$this->rechnung_abteilung=$result['rechnung_abteilung'];
|
||||
$this->rechnung_land=$result['rechnung_land'];
|
||||
$this->rechnung_email=$result['rechnung_email'];
|
||||
$this->rechnung_periode=$result['rechnung_periode'];
|
||||
$this->rechnung_anzahlpapier=$result['rechnung_anzahlpapier'];
|
||||
$this->rechnung_permail=$result['rechnung_permail'];
|
||||
$this->webid=$result['webid'];
|
||||
$this->portofrei_aktiv=$result['portofrei_aktiv'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->objektname=$result['objektname'];
|
||||
$this->objekttyp=$result['objekttyp'];
|
||||
$this->parameter=$result['parameter'];
|
||||
$this->objektname2=$result['objektname2'];
|
||||
$this->objekttyp2=$result['objekttyp2'];
|
||||
$this->parameter2=$result['parameter2'];
|
||||
$this->objektname3=$result['objektname3'];
|
||||
$this->objekttyp3=$result['objekttyp3'];
|
||||
$this->parameter3=$result['parameter3'];
|
||||
$this->kategorie=$result['kategorie'];
|
||||
$this->aktiv=$result['aktiv'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO gruppen (id,name,art,kennziffer,internebemerkung,grundrabatt,rabatt1,rabatt2,rabatt3,rabatt4,rabatt5,sonderrabatt_skonto,provision,kundennummer,partnerid,dta_aktiv,dta_periode,dta_dateiname,dta_mail,dta_mail_betreff,dta_mail_text,dtavariablen,dta_variante,bonus1,bonus1_ab,bonus2,bonus2_ab,bonus3,bonus3_ab,bonus4,bonus4_ab,bonus5,bonus5_ab,bonus6,bonus6_ab,bonus7,bonus7_ab,bonus8,bonus8_ab,bonus9,bonus9_ab,bonus10,bonus10_ab,zahlungszieltage,zahlungszielskonto,zahlungszieltageskonto,portoartikel,portofreiab,erweiterteoptionen,zentralerechnung,zentralregulierung,gruppe,preisgruppe,verbandsgruppe,rechnung_name,rechnung_strasse,rechnung_ort,rechnung_plz,rechnung_abteilung,rechnung_land,rechnung_email,rechnung_periode,rechnung_anzahlpapier,rechnung_permail,webid,portofrei_aktiv,projekt,objektname,objekttyp,parameter,objektname2,objekttyp2,parameter2,objektname3,objekttyp3,parameter3,kategorie,aktiv)
|
||||
VALUES('','{$this->name}','{$this->art}','{$this->kennziffer}','{$this->internebemerkung}','{$this->grundrabatt}','{$this->rabatt1}','{$this->rabatt2}','{$this->rabatt3}','{$this->rabatt4}','{$this->rabatt5}','{$this->sonderrabatt_skonto}','{$this->provision}','{$this->kundennummer}','{$this->partnerid}','{$this->dta_aktiv}','{$this->dta_periode}','{$this->dta_dateiname}','{$this->dta_mail}','{$this->dta_mail_betreff}','{$this->dta_mail_text}','{$this->dtavariablen}','{$this->dta_variante}','{$this->bonus1}','{$this->bonus1_ab}','{$this->bonus2}','{$this->bonus2_ab}','{$this->bonus3}','{$this->bonus3_ab}','{$this->bonus4}','{$this->bonus4_ab}','{$this->bonus5}','{$this->bonus5_ab}','{$this->bonus6}','{$this->bonus6_ab}','{$this->bonus7}','{$this->bonus7_ab}','{$this->bonus8}','{$this->bonus8_ab}','{$this->bonus9}','{$this->bonus9_ab}','{$this->bonus10}','{$this->bonus10_ab}','{$this->zahlungszieltage}','{$this->zahlungszielskonto}','{$this->zahlungszieltageskonto}','{$this->portoartikel}','{$this->portofreiab}','{$this->erweiterteoptionen}','{$this->zentralerechnung}','{$this->zentralregulierung}','{$this->gruppe}','{$this->preisgruppe}','{$this->verbandsgruppe}','{$this->rechnung_name}','{$this->rechnung_strasse}','{$this->rechnung_ort}','{$this->rechnung_plz}','{$this->rechnung_abteilung}','{$this->rechnung_land}','{$this->rechnung_email}','{$this->rechnung_periode}','{$this->rechnung_anzahlpapier}','{$this->rechnung_permail}','{$this->webid}','{$this->portofrei_aktiv}','{$this->projekt}','{$this->objektname}','{$this->objekttyp}','{$this->parameter}','{$this->objektname2}','{$this->objekttyp2}','{$this->parameter2}','{$this->objektname3}','{$this->objekttyp3}','{$this->parameter3}','{$this->kategorie}','{$this->aktiv}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE gruppen SET
|
||||
name='{$this->name}',
|
||||
art='{$this->art}',
|
||||
kennziffer='{$this->kennziffer}',
|
||||
internebemerkung='{$this->internebemerkung}',
|
||||
grundrabatt='{$this->grundrabatt}',
|
||||
rabatt1='{$this->rabatt1}',
|
||||
rabatt2='{$this->rabatt2}',
|
||||
rabatt3='{$this->rabatt3}',
|
||||
rabatt4='{$this->rabatt4}',
|
||||
rabatt5='{$this->rabatt5}',
|
||||
sonderrabatt_skonto='{$this->sonderrabatt_skonto}',
|
||||
provision='{$this->provision}',
|
||||
kundennummer='{$this->kundennummer}',
|
||||
partnerid='{$this->partnerid}',
|
||||
dta_aktiv='{$this->dta_aktiv}',
|
||||
dta_periode='{$this->dta_periode}',
|
||||
dta_dateiname='{$this->dta_dateiname}',
|
||||
dta_mail='{$this->dta_mail}',
|
||||
dta_mail_betreff='{$this->dta_mail_betreff}',
|
||||
dta_mail_text='{$this->dta_mail_text}',
|
||||
dtavariablen='{$this->dtavariablen}',
|
||||
dta_variante='{$this->dta_variante}',
|
||||
bonus1='{$this->bonus1}',
|
||||
bonus1_ab='{$this->bonus1_ab}',
|
||||
bonus2='{$this->bonus2}',
|
||||
bonus2_ab='{$this->bonus2_ab}',
|
||||
bonus3='{$this->bonus3}',
|
||||
bonus3_ab='{$this->bonus3_ab}',
|
||||
bonus4='{$this->bonus4}',
|
||||
bonus4_ab='{$this->bonus4_ab}',
|
||||
bonus5='{$this->bonus5}',
|
||||
bonus5_ab='{$this->bonus5_ab}',
|
||||
bonus6='{$this->bonus6}',
|
||||
bonus6_ab='{$this->bonus6_ab}',
|
||||
bonus7='{$this->bonus7}',
|
||||
bonus7_ab='{$this->bonus7_ab}',
|
||||
bonus8='{$this->bonus8}',
|
||||
bonus8_ab='{$this->bonus8_ab}',
|
||||
bonus9='{$this->bonus9}',
|
||||
bonus9_ab='{$this->bonus9_ab}',
|
||||
bonus10='{$this->bonus10}',
|
||||
bonus10_ab='{$this->bonus10_ab}',
|
||||
zahlungszieltage='{$this->zahlungszieltage}',
|
||||
zahlungszielskonto='{$this->zahlungszielskonto}',
|
||||
zahlungszieltageskonto='{$this->zahlungszieltageskonto}',
|
||||
portoartikel='{$this->portoartikel}',
|
||||
portofreiab='{$this->portofreiab}',
|
||||
erweiterteoptionen='{$this->erweiterteoptionen}',
|
||||
zentralerechnung='{$this->zentralerechnung}',
|
||||
zentralregulierung='{$this->zentralregulierung}',
|
||||
gruppe='{$this->gruppe}',
|
||||
preisgruppe='{$this->preisgruppe}',
|
||||
verbandsgruppe='{$this->verbandsgruppe}',
|
||||
rechnung_name='{$this->rechnung_name}',
|
||||
rechnung_strasse='{$this->rechnung_strasse}',
|
||||
rechnung_ort='{$this->rechnung_ort}',
|
||||
rechnung_plz='{$this->rechnung_plz}',
|
||||
rechnung_abteilung='{$this->rechnung_abteilung}',
|
||||
rechnung_land='{$this->rechnung_land}',
|
||||
rechnung_email='{$this->rechnung_email}',
|
||||
rechnung_periode='{$this->rechnung_periode}',
|
||||
rechnung_anzahlpapier='{$this->rechnung_anzahlpapier}',
|
||||
rechnung_permail='{$this->rechnung_permail}',
|
||||
webid='{$this->webid}',
|
||||
portofrei_aktiv='{$this->portofrei_aktiv}',
|
||||
projekt='{$this->projekt}',
|
||||
objektname='{$this->objektname}',
|
||||
objekttyp='{$this->objekttyp}',
|
||||
parameter='{$this->parameter}',
|
||||
objektname2='{$this->objektname2}',
|
||||
objekttyp2='{$this->objekttyp2}',
|
||||
parameter2='{$this->parameter2}',
|
||||
objektname3='{$this->objektname3}',
|
||||
objekttyp3='{$this->objekttyp3}',
|
||||
parameter3='{$this->parameter3}',
|
||||
kategorie='{$this->kategorie}',
|
||||
aktiv='{$this->aktiv}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM gruppen WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->name="";
|
||||
$this->art="";
|
||||
$this->kennziffer="";
|
||||
$this->internebemerkung="";
|
||||
$this->grundrabatt="";
|
||||
$this->rabatt1="";
|
||||
$this->rabatt2="";
|
||||
$this->rabatt3="";
|
||||
$this->rabatt4="";
|
||||
$this->rabatt5="";
|
||||
$this->sonderrabatt_skonto="";
|
||||
$this->provision="";
|
||||
$this->kundennummer="";
|
||||
$this->partnerid="";
|
||||
$this->dta_aktiv="";
|
||||
$this->dta_periode="";
|
||||
$this->dta_dateiname="";
|
||||
$this->dta_mail="";
|
||||
$this->dta_mail_betreff="";
|
||||
$this->dta_mail_text="";
|
||||
$this->dtavariablen="";
|
||||
$this->dta_variante="";
|
||||
$this->bonus1="";
|
||||
$this->bonus1_ab="";
|
||||
$this->bonus2="";
|
||||
$this->bonus2_ab="";
|
||||
$this->bonus3="";
|
||||
$this->bonus3_ab="";
|
||||
$this->bonus4="";
|
||||
$this->bonus4_ab="";
|
||||
$this->bonus5="";
|
||||
$this->bonus5_ab="";
|
||||
$this->bonus6="";
|
||||
$this->bonus6_ab="";
|
||||
$this->bonus7="";
|
||||
$this->bonus7_ab="";
|
||||
$this->bonus8="";
|
||||
$this->bonus8_ab="";
|
||||
$this->bonus9="";
|
||||
$this->bonus9_ab="";
|
||||
$this->bonus10="";
|
||||
$this->bonus10_ab="";
|
||||
$this->zahlungszieltage="";
|
||||
$this->zahlungszielskonto="";
|
||||
$this->zahlungszieltageskonto="";
|
||||
$this->portoartikel="";
|
||||
$this->portofreiab="";
|
||||
$this->erweiterteoptionen="";
|
||||
$this->zentralerechnung="";
|
||||
$this->zentralregulierung="";
|
||||
$this->gruppe="";
|
||||
$this->preisgruppe="";
|
||||
$this->verbandsgruppe="";
|
||||
$this->rechnung_name="";
|
||||
$this->rechnung_strasse="";
|
||||
$this->rechnung_ort="";
|
||||
$this->rechnung_plz="";
|
||||
$this->rechnung_abteilung="";
|
||||
$this->rechnung_land="";
|
||||
$this->rechnung_email="";
|
||||
$this->rechnung_periode="";
|
||||
$this->rechnung_anzahlpapier="";
|
||||
$this->rechnung_permail="";
|
||||
$this->webid="";
|
||||
$this->portofrei_aktiv="";
|
||||
$this->projekt="";
|
||||
$this->objektname="";
|
||||
$this->objekttyp="";
|
||||
$this->parameter="";
|
||||
$this->objektname2="";
|
||||
$this->objekttyp2="";
|
||||
$this->parameter2="";
|
||||
$this->objektname3="";
|
||||
$this->objekttyp3="";
|
||||
$this->parameter3="";
|
||||
$this->kategorie="";
|
||||
$this->aktiv="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetName($value) { $this->name=$value; }
|
||||
function GetName() { return $this->name; }
|
||||
function SetArt($value) { $this->art=$value; }
|
||||
function GetArt() { return $this->art; }
|
||||
function SetKennziffer($value) { $this->kennziffer=$value; }
|
||||
function GetKennziffer() { return $this->kennziffer; }
|
||||
function SetInternebemerkung($value) { $this->internebemerkung=$value; }
|
||||
function GetInternebemerkung() { return $this->internebemerkung; }
|
||||
function SetGrundrabatt($value) { $this->grundrabatt=$value; }
|
||||
function GetGrundrabatt() { return $this->grundrabatt; }
|
||||
function SetRabatt1($value) { $this->rabatt1=$value; }
|
||||
function GetRabatt1() { return $this->rabatt1; }
|
||||
function SetRabatt2($value) { $this->rabatt2=$value; }
|
||||
function GetRabatt2() { return $this->rabatt2; }
|
||||
function SetRabatt3($value) { $this->rabatt3=$value; }
|
||||
function GetRabatt3() { return $this->rabatt3; }
|
||||
function SetRabatt4($value) { $this->rabatt4=$value; }
|
||||
function GetRabatt4() { return $this->rabatt4; }
|
||||
function SetRabatt5($value) { $this->rabatt5=$value; }
|
||||
function GetRabatt5() { return $this->rabatt5; }
|
||||
function SetSonderrabatt_Skonto($value) { $this->sonderrabatt_skonto=$value; }
|
||||
function GetSonderrabatt_Skonto() { return $this->sonderrabatt_skonto; }
|
||||
function SetProvision($value) { $this->provision=$value; }
|
||||
function GetProvision() { return $this->provision; }
|
||||
function SetKundennummer($value) { $this->kundennummer=$value; }
|
||||
function GetKundennummer() { return $this->kundennummer; }
|
||||
function SetPartnerid($value) { $this->partnerid=$value; }
|
||||
function GetPartnerid() { return $this->partnerid; }
|
||||
function SetDta_Aktiv($value) { $this->dta_aktiv=$value; }
|
||||
function GetDta_Aktiv() { return $this->dta_aktiv; }
|
||||
function SetDta_Periode($value) { $this->dta_periode=$value; }
|
||||
function GetDta_Periode() { return $this->dta_periode; }
|
||||
function SetDta_Dateiname($value) { $this->dta_dateiname=$value; }
|
||||
function GetDta_Dateiname() { return $this->dta_dateiname; }
|
||||
function SetDta_Mail($value) { $this->dta_mail=$value; }
|
||||
function GetDta_Mail() { return $this->dta_mail; }
|
||||
function SetDta_Mail_Betreff($value) { $this->dta_mail_betreff=$value; }
|
||||
function GetDta_Mail_Betreff() { return $this->dta_mail_betreff; }
|
||||
function SetDta_Mail_Text($value) { $this->dta_mail_text=$value; }
|
||||
function GetDta_Mail_Text() { return $this->dta_mail_text; }
|
||||
function SetDtavariablen($value) { $this->dtavariablen=$value; }
|
||||
function GetDtavariablen() { return $this->dtavariablen; }
|
||||
function SetDta_Variante($value) { $this->dta_variante=$value; }
|
||||
function GetDta_Variante() { return $this->dta_variante; }
|
||||
function SetBonus1($value) { $this->bonus1=$value; }
|
||||
function GetBonus1() { return $this->bonus1; }
|
||||
function SetBonus1_Ab($value) { $this->bonus1_ab=$value; }
|
||||
function GetBonus1_Ab() { return $this->bonus1_ab; }
|
||||
function SetBonus2($value) { $this->bonus2=$value; }
|
||||
function GetBonus2() { return $this->bonus2; }
|
||||
function SetBonus2_Ab($value) { $this->bonus2_ab=$value; }
|
||||
function GetBonus2_Ab() { return $this->bonus2_ab; }
|
||||
function SetBonus3($value) { $this->bonus3=$value; }
|
||||
function GetBonus3() { return $this->bonus3; }
|
||||
function SetBonus3_Ab($value) { $this->bonus3_ab=$value; }
|
||||
function GetBonus3_Ab() { return $this->bonus3_ab; }
|
||||
function SetBonus4($value) { $this->bonus4=$value; }
|
||||
function GetBonus4() { return $this->bonus4; }
|
||||
function SetBonus4_Ab($value) { $this->bonus4_ab=$value; }
|
||||
function GetBonus4_Ab() { return $this->bonus4_ab; }
|
||||
function SetBonus5($value) { $this->bonus5=$value; }
|
||||
function GetBonus5() { return $this->bonus5; }
|
||||
function SetBonus5_Ab($value) { $this->bonus5_ab=$value; }
|
||||
function GetBonus5_Ab() { return $this->bonus5_ab; }
|
||||
function SetBonus6($value) { $this->bonus6=$value; }
|
||||
function GetBonus6() { return $this->bonus6; }
|
||||
function SetBonus6_Ab($value) { $this->bonus6_ab=$value; }
|
||||
function GetBonus6_Ab() { return $this->bonus6_ab; }
|
||||
function SetBonus7($value) { $this->bonus7=$value; }
|
||||
function GetBonus7() { return $this->bonus7; }
|
||||
function SetBonus7_Ab($value) { $this->bonus7_ab=$value; }
|
||||
function GetBonus7_Ab() { return $this->bonus7_ab; }
|
||||
function SetBonus8($value) { $this->bonus8=$value; }
|
||||
function GetBonus8() { return $this->bonus8; }
|
||||
function SetBonus8_Ab($value) { $this->bonus8_ab=$value; }
|
||||
function GetBonus8_Ab() { return $this->bonus8_ab; }
|
||||
function SetBonus9($value) { $this->bonus9=$value; }
|
||||
function GetBonus9() { return $this->bonus9; }
|
||||
function SetBonus9_Ab($value) { $this->bonus9_ab=$value; }
|
||||
function GetBonus9_Ab() { return $this->bonus9_ab; }
|
||||
function SetBonus10($value) { $this->bonus10=$value; }
|
||||
function GetBonus10() { return $this->bonus10; }
|
||||
function SetBonus10_Ab($value) { $this->bonus10_ab=$value; }
|
||||
function GetBonus10_Ab() { return $this->bonus10_ab; }
|
||||
function SetZahlungszieltage($value) { $this->zahlungszieltage=$value; }
|
||||
function GetZahlungszieltage() { return $this->zahlungszieltage; }
|
||||
function SetZahlungszielskonto($value) { $this->zahlungszielskonto=$value; }
|
||||
function GetZahlungszielskonto() { return $this->zahlungszielskonto; }
|
||||
function SetZahlungszieltageskonto($value) { $this->zahlungszieltageskonto=$value; }
|
||||
function GetZahlungszieltageskonto() { return $this->zahlungszieltageskonto; }
|
||||
function SetPortoartikel($value) { $this->portoartikel=$value; }
|
||||
function GetPortoartikel() { return $this->portoartikel; }
|
||||
function SetPortofreiab($value) { $this->portofreiab=$value; }
|
||||
function GetPortofreiab() { return $this->portofreiab; }
|
||||
function SetErweiterteoptionen($value) { $this->erweiterteoptionen=$value; }
|
||||
function GetErweiterteoptionen() { return $this->erweiterteoptionen; }
|
||||
function SetZentralerechnung($value) { $this->zentralerechnung=$value; }
|
||||
function GetZentralerechnung() { return $this->zentralerechnung; }
|
||||
function SetZentralregulierung($value) { $this->zentralregulierung=$value; }
|
||||
function GetZentralregulierung() { return $this->zentralregulierung; }
|
||||
function SetGruppe($value) { $this->gruppe=$value; }
|
||||
function GetGruppe() { return $this->gruppe; }
|
||||
function SetPreisgruppe($value) { $this->preisgruppe=$value; }
|
||||
function GetPreisgruppe() { return $this->preisgruppe; }
|
||||
function SetVerbandsgruppe($value) { $this->verbandsgruppe=$value; }
|
||||
function GetVerbandsgruppe() { return $this->verbandsgruppe; }
|
||||
function SetRechnung_Name($value) { $this->rechnung_name=$value; }
|
||||
function GetRechnung_Name() { return $this->rechnung_name; }
|
||||
function SetRechnung_Strasse($value) { $this->rechnung_strasse=$value; }
|
||||
function GetRechnung_Strasse() { return $this->rechnung_strasse; }
|
||||
function SetRechnung_Ort($value) { $this->rechnung_ort=$value; }
|
||||
function GetRechnung_Ort() { return $this->rechnung_ort; }
|
||||
function SetRechnung_Plz($value) { $this->rechnung_plz=$value; }
|
||||
function GetRechnung_Plz() { return $this->rechnung_plz; }
|
||||
function SetRechnung_Abteilung($value) { $this->rechnung_abteilung=$value; }
|
||||
function GetRechnung_Abteilung() { return $this->rechnung_abteilung; }
|
||||
function SetRechnung_Land($value) { $this->rechnung_land=$value; }
|
||||
function GetRechnung_Land() { return $this->rechnung_land; }
|
||||
function SetRechnung_Email($value) { $this->rechnung_email=$value; }
|
||||
function GetRechnung_Email() { return $this->rechnung_email; }
|
||||
function SetRechnung_Periode($value) { $this->rechnung_periode=$value; }
|
||||
function GetRechnung_Periode() { return $this->rechnung_periode; }
|
||||
function SetRechnung_Anzahlpapier($value) { $this->rechnung_anzahlpapier=$value; }
|
||||
function GetRechnung_Anzahlpapier() { return $this->rechnung_anzahlpapier; }
|
||||
function SetRechnung_Permail($value) { $this->rechnung_permail=$value; }
|
||||
function GetRechnung_Permail() { return $this->rechnung_permail; }
|
||||
function SetWebid($value) { $this->webid=$value; }
|
||||
function GetWebid() { return $this->webid; }
|
||||
function SetPortofrei_Aktiv($value) { $this->portofrei_aktiv=$value; }
|
||||
function GetPortofrei_Aktiv() { return $this->portofrei_aktiv; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetObjektname($value) { $this->objektname=$value; }
|
||||
function GetObjektname() { return $this->objektname; }
|
||||
function SetObjekttyp($value) { $this->objekttyp=$value; }
|
||||
function GetObjekttyp() { return $this->objekttyp; }
|
||||
function SetParameter($value) { $this->parameter=$value; }
|
||||
function GetParameter() { return $this->parameter; }
|
||||
function SetObjektname2($value) { $this->objektname2=$value; }
|
||||
function GetObjektname2() { return $this->objektname2; }
|
||||
function SetObjekttyp2($value) { $this->objekttyp2=$value; }
|
||||
function GetObjekttyp2() { return $this->objekttyp2; }
|
||||
function SetParameter2($value) { $this->parameter2=$value; }
|
||||
function GetParameter2() { return $this->parameter2; }
|
||||
function SetObjektname3($value) { $this->objektname3=$value; }
|
||||
function GetObjektname3() { return $this->objektname3; }
|
||||
function SetObjekttyp3($value) { $this->objekttyp3=$value; }
|
||||
function GetObjekttyp3() { return $this->objekttyp3; }
|
||||
function SetParameter3($value) { $this->parameter3=$value; }
|
||||
function GetParameter3() { return $this->parameter3; }
|
||||
function SetKategorie($value) { $this->kategorie=$value; }
|
||||
function GetKategorie() { return $this->kategorie; }
|
||||
function SetAktiv($value) { $this->aktiv=$value; }
|
||||
function GetAktiv() { return $this->aktiv; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,131 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenGruppen_Kategorien
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $bezeichnung;
|
||||
private $projekt;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM gruppen_kategorien WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->bezeichnung=$result['bezeichnung'];
|
||||
$this->projekt=$result['projekt'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO gruppen_kategorien (id,bezeichnung,projekt)
|
||||
VALUES('','{$this->bezeichnung}','{$this->projekt}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE gruppen_kategorien SET
|
||||
bezeichnung='{$this->bezeichnung}',
|
||||
projekt='{$this->projekt}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM gruppen_kategorien WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->bezeichnung="";
|
||||
$this->projekt="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
function GetBezeichnung() { return $this->bezeichnung; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,850 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenGutschrift
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $datum;
|
||||
private $projekt;
|
||||
private $anlegeart;
|
||||
private $belegnr;
|
||||
private $rechnung;
|
||||
private $rechnungid;
|
||||
private $bearbeiter;
|
||||
private $freitext;
|
||||
private $internebemerkung;
|
||||
private $status;
|
||||
private $adresse;
|
||||
private $name;
|
||||
private $abteilung;
|
||||
private $unterabteilung;
|
||||
private $strasse;
|
||||
private $adresszusatz;
|
||||
private $plz;
|
||||
private $ort;
|
||||
private $land;
|
||||
private $ustid;
|
||||
private $ustbrief;
|
||||
private $ustbrief_eingang;
|
||||
private $ustbrief_eingang_am;
|
||||
private $ust_befreit;
|
||||
private $email;
|
||||
private $telefon;
|
||||
private $telefax;
|
||||
private $betreff;
|
||||
private $kundennummer;
|
||||
private $lieferschein;
|
||||
private $versandart;
|
||||
private $lieferdatum;
|
||||
private $buchhaltung;
|
||||
private $zahlungsweise;
|
||||
private $zahlungsstatus;
|
||||
private $ist;
|
||||
private $soll;
|
||||
private $zahlungszieltage;
|
||||
private $zahlungszieltageskonto;
|
||||
private $zahlungszielskonto;
|
||||
private $gesamtsumme;
|
||||
private $bank_inhaber;
|
||||
private $bank_institut;
|
||||
private $bank_blz;
|
||||
private $bank_konto;
|
||||
private $kreditkarte_typ;
|
||||
private $kreditkarte_inhaber;
|
||||
private $kreditkarte_nummer;
|
||||
private $kreditkarte_pruefnummer;
|
||||
private $kreditkarte_monat;
|
||||
private $kreditkarte_jahr;
|
||||
private $paypalaccount;
|
||||
private $firma;
|
||||
private $versendet;
|
||||
private $versendet_am;
|
||||
private $versendet_per;
|
||||
private $versendet_durch;
|
||||
private $inbearbeitung;
|
||||
private $logdatei;
|
||||
private $dta_datei_verband;
|
||||
private $manuell_vorabbezahlt;
|
||||
private $manuell_vorabbezahlt_hinweis;
|
||||
private $nicht_umsatzmindernd;
|
||||
private $dta_datei;
|
||||
private $deckungsbeitragcalc;
|
||||
private $deckungsbeitrag;
|
||||
private $erloes_netto;
|
||||
private $umsatz_netto;
|
||||
private $vertriebid;
|
||||
private $aktion;
|
||||
private $vertrieb;
|
||||
private $provision;
|
||||
private $provision_summe;
|
||||
private $gruppe;
|
||||
private $ihrebestellnummer;
|
||||
private $anschreiben;
|
||||
private $usereditid;
|
||||
private $useredittimestamp;
|
||||
private $realrabatt;
|
||||
private $rabatt;
|
||||
private $rabatt1;
|
||||
private $rabatt2;
|
||||
private $rabatt3;
|
||||
private $rabatt4;
|
||||
private $rabatt5;
|
||||
private $steuersatz_normal;
|
||||
private $steuersatz_zwischen;
|
||||
private $steuersatz_ermaessigt;
|
||||
private $steuersatz_starkermaessigt;
|
||||
private $steuersatz_dienstleistung;
|
||||
private $waehrung;
|
||||
private $keinsteuersatz;
|
||||
private $stornorechnung;
|
||||
private $schreibschutz;
|
||||
private $pdfarchiviert;
|
||||
private $pdfarchiviertversion;
|
||||
private $typ;
|
||||
private $ohne_briefpapier;
|
||||
private $lieferid;
|
||||
private $ansprechpartnerid;
|
||||
private $projektfiliale;
|
||||
private $zuarchivieren;
|
||||
private $internebezeichnung;
|
||||
private $angelegtam;
|
||||
private $ansprechpartner;
|
||||
private $sprache;
|
||||
private $gln;
|
||||
private $deliverythresholdvatid;
|
||||
private $bearbeiterid;
|
||||
private $kurs;
|
||||
private $ohne_artikeltext;
|
||||
private $anzeigesteuer;
|
||||
private $kostenstelle;
|
||||
private $bodyzusatz;
|
||||
private $lieferbedingung;
|
||||
private $titel;
|
||||
private $skontobetrag;
|
||||
private $skontoberechnet;
|
||||
private $extsoll;
|
||||
private $bundesstaat;
|
||||
private $kundennummer_buchhaltung;
|
||||
private $storage_country;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM `gutschrift` WHERE (`id` = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->datum=$result['datum'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->anlegeart=$result['anlegeart'];
|
||||
$this->belegnr=$result['belegnr'];
|
||||
$this->rechnung=$result['rechnung'];
|
||||
$this->rechnungid=$result['rechnungid'];
|
||||
$this->bearbeiter=$result['bearbeiter'];
|
||||
$this->freitext=$result['freitext'];
|
||||
$this->internebemerkung=$result['internebemerkung'];
|
||||
$this->status=$result['status'];
|
||||
$this->adresse=$result['adresse'];
|
||||
$this->name=$result['name'];
|
||||
$this->abteilung=$result['abteilung'];
|
||||
$this->unterabteilung=$result['unterabteilung'];
|
||||
$this->strasse=$result['strasse'];
|
||||
$this->adresszusatz=$result['adresszusatz'];
|
||||
$this->plz=$result['plz'];
|
||||
$this->ort=$result['ort'];
|
||||
$this->land=$result['land'];
|
||||
$this->ustid=$result['ustid'];
|
||||
$this->ustbrief=$result['ustbrief'];
|
||||
$this->ustbrief_eingang=$result['ustbrief_eingang'];
|
||||
$this->ustbrief_eingang_am=$result['ustbrief_eingang_am'];
|
||||
$this->ust_befreit=$result['ust_befreit'];
|
||||
$this->email=$result['email'];
|
||||
$this->telefon=$result['telefon'];
|
||||
$this->telefax=$result['telefax'];
|
||||
$this->betreff=$result['betreff'];
|
||||
$this->kundennummer=$result['kundennummer'];
|
||||
$this->lieferschein=$result['lieferschein'];
|
||||
$this->versandart=$result['versandart'];
|
||||
$this->lieferdatum=$result['lieferdatum'];
|
||||
$this->buchhaltung=$result['buchhaltung'];
|
||||
$this->zahlungsweise=$result['zahlungsweise'];
|
||||
$this->zahlungsstatus=$result['zahlungsstatus'];
|
||||
$this->ist=$result['ist'];
|
||||
$this->soll=$result['soll'];
|
||||
$this->zahlungszieltage=$result['zahlungszieltage'];
|
||||
$this->zahlungszieltageskonto=$result['zahlungszieltageskonto'];
|
||||
$this->zahlungszielskonto=$result['zahlungszielskonto'];
|
||||
$this->gesamtsumme=$result['gesamtsumme'];
|
||||
$this->bank_inhaber=$result['bank_inhaber'];
|
||||
$this->bank_institut=$result['bank_institut'];
|
||||
$this->bank_blz=$result['bank_blz'];
|
||||
$this->bank_konto=$result['bank_konto'];
|
||||
$this->kreditkarte_typ=$result['kreditkarte_typ'];
|
||||
$this->kreditkarte_inhaber=$result['kreditkarte_inhaber'];
|
||||
$this->kreditkarte_nummer=$result['kreditkarte_nummer'];
|
||||
$this->kreditkarte_pruefnummer=$result['kreditkarte_pruefnummer'];
|
||||
$this->kreditkarte_monat=$result['kreditkarte_monat'];
|
||||
$this->kreditkarte_jahr=$result['kreditkarte_jahr'];
|
||||
$this->paypalaccount=$result['paypalaccount'];
|
||||
$this->firma=$result['firma'];
|
||||
$this->versendet=$result['versendet'];
|
||||
$this->versendet_am=$result['versendet_am'];
|
||||
$this->versendet_per=$result['versendet_per'];
|
||||
$this->versendet_durch=$result['versendet_durch'];
|
||||
$this->inbearbeitung=$result['inbearbeitung'];
|
||||
$this->logdatei=$result['logdatei'];
|
||||
$this->dta_datei_verband=$result['dta_datei_verband'];
|
||||
$this->manuell_vorabbezahlt=$result['manuell_vorabbezahlt'];
|
||||
$this->manuell_vorabbezahlt_hinweis=$result['manuell_vorabbezahlt_hinweis'];
|
||||
$this->nicht_umsatzmindernd=$result['nicht_umsatzmindernd'];
|
||||
$this->dta_datei=$result['dta_datei'];
|
||||
$this->deckungsbeitragcalc=$result['deckungsbeitragcalc'];
|
||||
$this->deckungsbeitrag=$result['deckungsbeitrag'];
|
||||
$this->erloes_netto=$result['erloes_netto'];
|
||||
$this->umsatz_netto=$result['umsatz_netto'];
|
||||
$this->vertriebid=$result['vertriebid'];
|
||||
$this->aktion=$result['aktion'];
|
||||
$this->vertrieb=$result['vertrieb'];
|
||||
$this->provision=$result['provision'];
|
||||
$this->provision_summe=$result['provision_summe'];
|
||||
$this->gruppe=$result['gruppe'];
|
||||
$this->ihrebestellnummer=$result['ihrebestellnummer'];
|
||||
$this->anschreiben=$result['anschreiben'];
|
||||
$this->usereditid=$result['usereditid'];
|
||||
$this->useredittimestamp=$result['useredittimestamp'];
|
||||
$this->realrabatt=$result['realrabatt'];
|
||||
$this->rabatt=$result['rabatt'];
|
||||
$this->rabatt1=$result['rabatt1'];
|
||||
$this->rabatt2=$result['rabatt2'];
|
||||
$this->rabatt3=$result['rabatt3'];
|
||||
$this->rabatt4=$result['rabatt4'];
|
||||
$this->rabatt5=$result['rabatt5'];
|
||||
$this->steuersatz_normal=$result['steuersatz_normal'];
|
||||
$this->steuersatz_zwischen=$result['steuersatz_zwischen'];
|
||||
$this->steuersatz_ermaessigt=$result['steuersatz_ermaessigt'];
|
||||
$this->steuersatz_starkermaessigt=$result['steuersatz_starkermaessigt'];
|
||||
$this->steuersatz_dienstleistung=$result['steuersatz_dienstleistung'];
|
||||
$this->waehrung=$result['waehrung'];
|
||||
$this->keinsteuersatz=$result['keinsteuersatz'];
|
||||
$this->stornorechnung=$result['stornorechnung'];
|
||||
$this->schreibschutz=$result['schreibschutz'];
|
||||
$this->pdfarchiviert=$result['pdfarchiviert'];
|
||||
$this->pdfarchiviertversion=$result['pdfarchiviertversion'];
|
||||
$this->typ=$result['typ'];
|
||||
$this->ohne_briefpapier=$result['ohne_briefpapier'];
|
||||
$this->lieferid=$result['lieferid'];
|
||||
$this->ansprechpartnerid=$result['ansprechpartnerid'];
|
||||
$this->projektfiliale=$result['projektfiliale'];
|
||||
$this->zuarchivieren=$result['zuarchivieren'];
|
||||
$this->internebezeichnung=$result['internebezeichnung'];
|
||||
$this->angelegtam=$result['angelegtam'];
|
||||
$this->ansprechpartner=$result['ansprechpartner'];
|
||||
$this->sprache=$result['sprache'];
|
||||
$this->gln=$result['gln'];
|
||||
$this->deliverythresholdvatid=$result['deliverythresholdvatid'];
|
||||
$this->bearbeiterid=$result['bearbeiterid'];
|
||||
$this->kurs=$result['kurs'];
|
||||
$this->ohne_artikeltext=$result['ohne_artikeltext'];
|
||||
$this->anzeigesteuer=$result['anzeigesteuer'];
|
||||
$this->kostenstelle=$result['kostenstelle'];
|
||||
$this->bodyzusatz=$result['bodyzusatz'];
|
||||
$this->lieferbedingung=$result['lieferbedingung'];
|
||||
$this->titel=$result['titel'];
|
||||
$this->skontobetrag=$result['skontobetrag'];
|
||||
$this->skontoberechnet=$result['skontoberechnet'];
|
||||
$this->extsoll=$result['extsoll'];
|
||||
$this->bundesstaat=$result['bundesstaat'];
|
||||
$this->kundennummer_buchhaltung=$result['kundennummer_buchhaltung'];
|
||||
$this->storage_country=$result['storage_country'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO `gutschrift` (`id`,`datum`,`projekt`,`anlegeart`,`belegnr`,`rechnung`,`rechnungid`,`bearbeiter`,`freitext`,`internebemerkung`,`status`,`adresse`,`name`,`abteilung`,`unterabteilung`,`strasse`,`adresszusatz`,`plz`,`ort`,`land`,`ustid`,`ustbrief`,`ustbrief_eingang`,`ustbrief_eingang_am`,`ust_befreit`,`email`,`telefon`,`telefax`,`betreff`,`kundennummer`,`lieferschein`,`versandart`,`lieferdatum`,`buchhaltung`,`zahlungsweise`,`zahlungsstatus`,`ist`,`soll`,`zahlungszieltage`,`zahlungszieltageskonto`,`zahlungszielskonto`,`gesamtsumme`,`bank_inhaber`,`bank_institut`,`bank_blz`,`bank_konto`,`kreditkarte_typ`,`kreditkarte_inhaber`,`kreditkarte_nummer`,`kreditkarte_pruefnummer`,`kreditkarte_monat`,`kreditkarte_jahr`,`paypalaccount`,`firma`,`versendet`,`versendet_am`,`versendet_per`,`versendet_durch`,`inbearbeitung`,`logdatei`,`dta_datei_verband`,`manuell_vorabbezahlt`,`manuell_vorabbezahlt_hinweis`,`nicht_umsatzmindernd`,`dta_datei`,`deckungsbeitragcalc`,`deckungsbeitrag`,`erloes_netto`,`umsatz_netto`,`vertriebid`,`aktion`,`vertrieb`,`provision`,`provision_summe`,`gruppe`,`ihrebestellnummer`,`anschreiben`,`usereditid`,`useredittimestamp`,`realrabatt`,`rabatt`,`rabatt1`,`rabatt2`,`rabatt3`,`rabatt4`,`rabatt5`,`steuersatz_normal`,`steuersatz_zwischen`,`steuersatz_ermaessigt`,`steuersatz_starkermaessigt`,`steuersatz_dienstleistung`,`waehrung`,`keinsteuersatz`,`stornorechnung`,`schreibschutz`,`pdfarchiviert`,`pdfarchiviertversion`,`typ`,`ohne_briefpapier`,`lieferid`,`ansprechpartnerid`,`projektfiliale`,`zuarchivieren`,`internebezeichnung`,`angelegtam`,`ansprechpartner`,`sprache`,`gln`,`deliverythresholdvatid`,`bearbeiterid`,`kurs`,`ohne_artikeltext`,`anzeigesteuer`,`kostenstelle`,`bodyzusatz`,`lieferbedingung`,`titel`,`skontobetrag`,`skontoberechnet`,`extsoll`,`bundesstaat`,`kundennummer_buchhaltung`,`storage_country`)
|
||||
VALUES(NULL,'{$this->datum}','{$this->projekt}','{$this->anlegeart}','{$this->belegnr}','{$this->rechnung}','{$this->rechnungid}','{$this->bearbeiter}','{$this->freitext}','{$this->internebemerkung}','{$this->status}','{$this->adresse}','{$this->name}','{$this->abteilung}','{$this->unterabteilung}','{$this->strasse}','{$this->adresszusatz}','{$this->plz}','{$this->ort}','{$this->land}','{$this->ustid}','{$this->ustbrief}','{$this->ustbrief_eingang}','{$this->ustbrief_eingang_am}','{$this->ust_befreit}','{$this->email}','{$this->telefon}','{$this->telefax}','{$this->betreff}','{$this->kundennummer}','{$this->lieferschein}','{$this->versandart}','{$this->lieferdatum}','{$this->buchhaltung}','{$this->zahlungsweise}','{$this->zahlungsstatus}','{$this->ist}','{$this->soll}','{$this->zahlungszieltage}','{$this->zahlungszieltageskonto}','{$this->zahlungszielskonto}','{$this->gesamtsumme}','{$this->bank_inhaber}','{$this->bank_institut}','{$this->bank_blz}','{$this->bank_konto}','{$this->kreditkarte_typ}','{$this->kreditkarte_inhaber}','{$this->kreditkarte_nummer}','{$this->kreditkarte_pruefnummer}','{$this->kreditkarte_monat}','{$this->kreditkarte_jahr}','{$this->paypalaccount}','{$this->firma}','{$this->versendet}','{$this->versendet_am}','{$this->versendet_per}','{$this->versendet_durch}','{$this->inbearbeitung}','{$this->logdatei}','{$this->dta_datei_verband}','{$this->manuell_vorabbezahlt}','{$this->manuell_vorabbezahlt_hinweis}','{$this->nicht_umsatzmindernd}','{$this->dta_datei}','{$this->deckungsbeitragcalc}','{$this->deckungsbeitrag}','{$this->erloes_netto}','{$this->umsatz_netto}','{$this->vertriebid}','{$this->aktion}','{$this->vertrieb}','{$this->provision}','{$this->provision_summe}','{$this->gruppe}','{$this->ihrebestellnummer}','{$this->anschreiben}','{$this->usereditid}','{$this->useredittimestamp}','{$this->realrabatt}','{$this->rabatt}','{$this->rabatt1}','{$this->rabatt2}','{$this->rabatt3}','{$this->rabatt4}','{$this->rabatt5}','{$this->steuersatz_normal}','{$this->steuersatz_zwischen}','{$this->steuersatz_ermaessigt}','{$this->steuersatz_starkermaessigt}','{$this->steuersatz_dienstleistung}','{$this->waehrung}','{$this->keinsteuersatz}','{$this->stornorechnung}','{$this->schreibschutz}','{$this->pdfarchiviert}','{$this->pdfarchiviertversion}','{$this->typ}','{$this->ohne_briefpapier}','{$this->lieferid}','{$this->ansprechpartnerid}','{$this->projektfiliale}','{$this->zuarchivieren}','{$this->internebezeichnung}','{$this->angelegtam}','{$this->ansprechpartner}','{$this->sprache}','{$this->gln}','{$this->deliverythresholdvatid}','{$this->bearbeiterid}','{$this->kurs}','{$this->ohne_artikeltext}','{$this->anzeigesteuer}','{$this->kostenstelle}','{$this->bodyzusatz}','{$this->lieferbedingung}','{$this->titel}','{$this->skontobetrag}','{$this->skontoberechnet}','{$this->extsoll}','{$this->bundesstaat}','{$this->kundennummer_buchhaltung}','{$this->storage_country}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
$sql = "UPDATE `gutschrift` SET
|
||||
`datum`='{$this->datum}',
|
||||
`projekt`='{$this->projekt}',
|
||||
`anlegeart`='{$this->anlegeart}',
|
||||
`belegnr`='{$this->belegnr}',
|
||||
`rechnung`='{$this->rechnung}',
|
||||
`rechnungid`='{$this->rechnungid}',
|
||||
`bearbeiter`='{$this->bearbeiter}',
|
||||
`freitext`='{$this->freitext}',
|
||||
`internebemerkung`='{$this->internebemerkung}',
|
||||
`status`='{$this->status}',
|
||||
`adresse`='{$this->adresse}',
|
||||
`name`='{$this->name}',
|
||||
`abteilung`='{$this->abteilung}',
|
||||
`unterabteilung`='{$this->unterabteilung}',
|
||||
`strasse`='{$this->strasse}',
|
||||
`adresszusatz`='{$this->adresszusatz}',
|
||||
`plz`='{$this->plz}',
|
||||
`ort`='{$this->ort}',
|
||||
`land`='{$this->land}',
|
||||
`ustid`='{$this->ustid}',
|
||||
`ustbrief`='{$this->ustbrief}',
|
||||
`ustbrief_eingang`='{$this->ustbrief_eingang}',
|
||||
`ustbrief_eingang_am`='{$this->ustbrief_eingang_am}',
|
||||
`ust_befreit`='{$this->ust_befreit}',
|
||||
`email`='{$this->email}',
|
||||
`telefon`='{$this->telefon}',
|
||||
`telefax`='{$this->telefax}',
|
||||
`betreff`='{$this->betreff}',
|
||||
`kundennummer`='{$this->kundennummer}',
|
||||
`lieferschein`='{$this->lieferschein}',
|
||||
`versandart`='{$this->versandart}',
|
||||
`lieferdatum`='{$this->lieferdatum}',
|
||||
`buchhaltung`='{$this->buchhaltung}',
|
||||
`zahlungsweise`='{$this->zahlungsweise}',
|
||||
`zahlungsstatus`='{$this->zahlungsstatus}',
|
||||
`ist`='{$this->ist}',
|
||||
`soll`='{$this->soll}',
|
||||
`zahlungszieltage`='{$this->zahlungszieltage}',
|
||||
`zahlungszieltageskonto`='{$this->zahlungszieltageskonto}',
|
||||
`zahlungszielskonto`='{$this->zahlungszielskonto}',
|
||||
`gesamtsumme`='{$this->gesamtsumme}',
|
||||
`bank_inhaber`='{$this->bank_inhaber}',
|
||||
`bank_institut`='{$this->bank_institut}',
|
||||
`bank_blz`='{$this->bank_blz}',
|
||||
`bank_konto`='{$this->bank_konto}',
|
||||
`kreditkarte_typ`='{$this->kreditkarte_typ}',
|
||||
`kreditkarte_inhaber`='{$this->kreditkarte_inhaber}',
|
||||
`kreditkarte_nummer`='{$this->kreditkarte_nummer}',
|
||||
`kreditkarte_pruefnummer`='{$this->kreditkarte_pruefnummer}',
|
||||
`kreditkarte_monat`='{$this->kreditkarte_monat}',
|
||||
`kreditkarte_jahr`='{$this->kreditkarte_jahr}',
|
||||
`paypalaccount`='{$this->paypalaccount}',
|
||||
`firma`='{$this->firma}',
|
||||
`versendet`='{$this->versendet}',
|
||||
`versendet_am`='{$this->versendet_am}',
|
||||
`versendet_per`='{$this->versendet_per}',
|
||||
`versendet_durch`='{$this->versendet_durch}',
|
||||
`inbearbeitung`='{$this->inbearbeitung}',
|
||||
`logdatei`='{$this->logdatei}',
|
||||
`dta_datei_verband`='{$this->dta_datei_verband}',
|
||||
`manuell_vorabbezahlt`='{$this->manuell_vorabbezahlt}',
|
||||
`manuell_vorabbezahlt_hinweis`='{$this->manuell_vorabbezahlt_hinweis}',
|
||||
`nicht_umsatzmindernd`='{$this->nicht_umsatzmindernd}',
|
||||
`dta_datei`='{$this->dta_datei}',
|
||||
`deckungsbeitragcalc`='{$this->deckungsbeitragcalc}',
|
||||
`deckungsbeitrag`='{$this->deckungsbeitrag}',
|
||||
`erloes_netto`='{$this->erloes_netto}',
|
||||
`umsatz_netto`='{$this->umsatz_netto}',
|
||||
`vertriebid`='{$this->vertriebid}',
|
||||
`aktion`='{$this->aktion}',
|
||||
`vertrieb`='{$this->vertrieb}',
|
||||
`provision`='{$this->provision}',
|
||||
`provision_summe`='{$this->provision_summe}',
|
||||
`gruppe`='{$this->gruppe}',
|
||||
`ihrebestellnummer`='{$this->ihrebestellnummer}',
|
||||
`anschreiben`='{$this->anschreiben}',
|
||||
`usereditid`='{$this->usereditid}',
|
||||
`useredittimestamp`='{$this->useredittimestamp}',
|
||||
`realrabatt`='{$this->realrabatt}',
|
||||
`rabatt`='{$this->rabatt}',
|
||||
`rabatt1`='{$this->rabatt1}',
|
||||
`rabatt2`='{$this->rabatt2}',
|
||||
`rabatt3`='{$this->rabatt3}',
|
||||
`rabatt4`='{$this->rabatt4}',
|
||||
`rabatt5`='{$this->rabatt5}',
|
||||
`steuersatz_normal`='{$this->steuersatz_normal}',
|
||||
`steuersatz_zwischen`='{$this->steuersatz_zwischen}',
|
||||
`steuersatz_ermaessigt`='{$this->steuersatz_ermaessigt}',
|
||||
`steuersatz_starkermaessigt`='{$this->steuersatz_starkermaessigt}',
|
||||
`steuersatz_dienstleistung`='{$this->steuersatz_dienstleistung}',
|
||||
`waehrung`='{$this->waehrung}',
|
||||
`keinsteuersatz`='{$this->keinsteuersatz}',
|
||||
`stornorechnung`='{$this->stornorechnung}',
|
||||
`schreibschutz`='{$this->schreibschutz}',
|
||||
`pdfarchiviert`='{$this->pdfarchiviert}',
|
||||
`pdfarchiviertversion`='{$this->pdfarchiviertversion}',
|
||||
`typ`='{$this->typ}',
|
||||
`ohne_briefpapier`='{$this->ohne_briefpapier}',
|
||||
`lieferid`='{$this->lieferid}',
|
||||
`ansprechpartnerid`='{$this->ansprechpartnerid}',
|
||||
`projektfiliale`='{$this->projektfiliale}',
|
||||
`zuarchivieren`='{$this->zuarchivieren}',
|
||||
`internebezeichnung`='{$this->internebezeichnung}',
|
||||
`angelegtam`='{$this->angelegtam}',
|
||||
`ansprechpartner`='{$this->ansprechpartner}',
|
||||
`sprache`='{$this->sprache}',
|
||||
`gln`='{$this->gln}',
|
||||
`deliverythresholdvatid`='{$this->deliverythresholdvatid}',
|
||||
`bearbeiterid`='{$this->bearbeiterid}',
|
||||
`kurs`='{$this->kurs}',
|
||||
`ohne_artikeltext`='{$this->ohne_artikeltext}',
|
||||
`anzeigesteuer`='{$this->anzeigesteuer}',
|
||||
`kostenstelle`='{$this->kostenstelle}',
|
||||
`bodyzusatz`='{$this->bodyzusatz}',
|
||||
`lieferbedingung`='{$this->lieferbedingung}',
|
||||
`titel`='{$this->titel}',
|
||||
`skontobetrag`='{$this->skontobetrag}',
|
||||
`skontoberechnet`='{$this->skontoberechnet}',
|
||||
`extsoll`='{$this->extsoll}',
|
||||
`bundesstaat`='{$this->bundesstaat}',
|
||||
`kundennummer_buchhaltung`='{$this->kundennummer_buchhaltung}',
|
||||
`storage_country`='{$this->storage_country}'
|
||||
WHERE (`id`='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id='')
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM `gutschrift` WHERE (`id`='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id='';
|
||||
$this->datum='';
|
||||
$this->projekt='';
|
||||
$this->anlegeart='';
|
||||
$this->belegnr='';
|
||||
$this->rechnung='';
|
||||
$this->rechnungid='';
|
||||
$this->bearbeiter='';
|
||||
$this->freitext='';
|
||||
$this->internebemerkung='';
|
||||
$this->status='';
|
||||
$this->adresse='';
|
||||
$this->name='';
|
||||
$this->abteilung='';
|
||||
$this->unterabteilung='';
|
||||
$this->strasse='';
|
||||
$this->adresszusatz='';
|
||||
$this->plz='';
|
||||
$this->ort='';
|
||||
$this->land='';
|
||||
$this->ustid='';
|
||||
$this->ustbrief='';
|
||||
$this->ustbrief_eingang='';
|
||||
$this->ustbrief_eingang_am='';
|
||||
$this->ust_befreit='';
|
||||
$this->email='';
|
||||
$this->telefon='';
|
||||
$this->telefax='';
|
||||
$this->betreff='';
|
||||
$this->kundennummer='';
|
||||
$this->lieferschein='';
|
||||
$this->versandart='';
|
||||
$this->lieferdatum='';
|
||||
$this->buchhaltung='';
|
||||
$this->zahlungsweise='';
|
||||
$this->zahlungsstatus='';
|
||||
$this->ist='';
|
||||
$this->soll='';
|
||||
$this->zahlungszieltage='';
|
||||
$this->zahlungszieltageskonto='';
|
||||
$this->zahlungszielskonto='';
|
||||
$this->gesamtsumme='';
|
||||
$this->bank_inhaber='';
|
||||
$this->bank_institut='';
|
||||
$this->bank_blz='';
|
||||
$this->bank_konto='';
|
||||
$this->kreditkarte_typ='';
|
||||
$this->kreditkarte_inhaber='';
|
||||
$this->kreditkarte_nummer='';
|
||||
$this->kreditkarte_pruefnummer='';
|
||||
$this->kreditkarte_monat='';
|
||||
$this->kreditkarte_jahr='';
|
||||
$this->paypalaccount='';
|
||||
$this->firma='';
|
||||
$this->versendet='';
|
||||
$this->versendet_am='';
|
||||
$this->versendet_per='';
|
||||
$this->versendet_durch='';
|
||||
$this->inbearbeitung='';
|
||||
$this->logdatei='';
|
||||
$this->dta_datei_verband='';
|
||||
$this->manuell_vorabbezahlt='';
|
||||
$this->manuell_vorabbezahlt_hinweis='';
|
||||
$this->nicht_umsatzmindernd='';
|
||||
$this->dta_datei='';
|
||||
$this->deckungsbeitragcalc='';
|
||||
$this->deckungsbeitrag='';
|
||||
$this->erloes_netto='';
|
||||
$this->umsatz_netto='';
|
||||
$this->vertriebid='';
|
||||
$this->aktion='';
|
||||
$this->vertrieb='';
|
||||
$this->provision='';
|
||||
$this->provision_summe='';
|
||||
$this->gruppe='';
|
||||
$this->ihrebestellnummer='';
|
||||
$this->anschreiben='';
|
||||
$this->usereditid='';
|
||||
$this->useredittimestamp='';
|
||||
$this->realrabatt='';
|
||||
$this->rabatt='';
|
||||
$this->rabatt1='';
|
||||
$this->rabatt2='';
|
||||
$this->rabatt3='';
|
||||
$this->rabatt4='';
|
||||
$this->rabatt5='';
|
||||
$this->steuersatz_normal='';
|
||||
$this->steuersatz_zwischen='';
|
||||
$this->steuersatz_ermaessigt='';
|
||||
$this->steuersatz_starkermaessigt='';
|
||||
$this->steuersatz_dienstleistung='';
|
||||
$this->waehrung='';
|
||||
$this->keinsteuersatz='';
|
||||
$this->stornorechnung='';
|
||||
$this->schreibschutz='';
|
||||
$this->pdfarchiviert='';
|
||||
$this->pdfarchiviertversion='';
|
||||
$this->typ='';
|
||||
$this->ohne_briefpapier='';
|
||||
$this->lieferid='';
|
||||
$this->ansprechpartnerid='';
|
||||
$this->projektfiliale='';
|
||||
$this->zuarchivieren='';
|
||||
$this->internebezeichnung='';
|
||||
$this->angelegtam='';
|
||||
$this->ansprechpartner='';
|
||||
$this->sprache='';
|
||||
$this->gln='';
|
||||
$this->deliverythresholdvatid='';
|
||||
$this->bearbeiterid='';
|
||||
$this->kurs='';
|
||||
$this->ohne_artikeltext='';
|
||||
$this->anzeigesteuer='';
|
||||
$this->kostenstelle='';
|
||||
$this->bodyzusatz='';
|
||||
$this->lieferbedingung='';
|
||||
$this->titel='';
|
||||
$this->skontobetrag='';
|
||||
$this->skontoberechnet='';
|
||||
$this->extsoll='';
|
||||
$this->bundesstaat='';
|
||||
$this->kundennummer_buchhaltung='';
|
||||
$this->storage_country='';
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = '';
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
public function SetId($value) { $this->id=$value; }
|
||||
public function GetId() { return $this->id; }
|
||||
public function SetDatum($value) { $this->datum=$value; }
|
||||
public function GetDatum() { return $this->datum; }
|
||||
public function SetProjekt($value) { $this->projekt=$value; }
|
||||
public function GetProjekt() { return $this->projekt; }
|
||||
public function SetAnlegeart($value) { $this->anlegeart=$value; }
|
||||
public function GetAnlegeart() { return $this->anlegeart; }
|
||||
public function SetBelegnr($value) { $this->belegnr=$value; }
|
||||
public function GetBelegnr() { return $this->belegnr; }
|
||||
public function SetRechnung($value) { $this->rechnung=$value; }
|
||||
public function GetRechnung() { return $this->rechnung; }
|
||||
public function SetRechnungid($value) { $this->rechnungid=$value; }
|
||||
public function GetRechnungid() { return $this->rechnungid; }
|
||||
public function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
public function GetBearbeiter() { return $this->bearbeiter; }
|
||||
public function SetFreitext($value) { $this->freitext=$value; }
|
||||
public function GetFreitext() { return $this->freitext; }
|
||||
public function SetInternebemerkung($value) { $this->internebemerkung=$value; }
|
||||
public function GetInternebemerkung() { return $this->internebemerkung; }
|
||||
public function SetStatus($value) { $this->status=$value; }
|
||||
public function GetStatus() { return $this->status; }
|
||||
public function SetAdresse($value) { $this->adresse=$value; }
|
||||
public function GetAdresse() { return $this->adresse; }
|
||||
public function SetName($value) { $this->name=$value; }
|
||||
public function GetName() { return $this->name; }
|
||||
public function SetAbteilung($value) { $this->abteilung=$value; }
|
||||
public function GetAbteilung() { return $this->abteilung; }
|
||||
public function SetUnterabteilung($value) { $this->unterabteilung=$value; }
|
||||
public function GetUnterabteilung() { return $this->unterabteilung; }
|
||||
public function SetStrasse($value) { $this->strasse=$value; }
|
||||
public function GetStrasse() { return $this->strasse; }
|
||||
public function SetAdresszusatz($value) { $this->adresszusatz=$value; }
|
||||
public function GetAdresszusatz() { return $this->adresszusatz; }
|
||||
public function SetPlz($value) { $this->plz=$value; }
|
||||
public function GetPlz() { return $this->plz; }
|
||||
public function SetOrt($value) { $this->ort=$value; }
|
||||
public function GetOrt() { return $this->ort; }
|
||||
public function SetLand($value) { $this->land=$value; }
|
||||
public function GetLand() { return $this->land; }
|
||||
public function SetUstid($value) { $this->ustid=$value; }
|
||||
public function GetUstid() { return $this->ustid; }
|
||||
public function SetUstbrief($value) { $this->ustbrief=$value; }
|
||||
public function GetUstbrief() { return $this->ustbrief; }
|
||||
public function SetUstbrief_Eingang($value) { $this->ustbrief_eingang=$value; }
|
||||
public function GetUstbrief_Eingang() { return $this->ustbrief_eingang; }
|
||||
public function SetUstbrief_Eingang_Am($value) { $this->ustbrief_eingang_am=$value; }
|
||||
public function GetUstbrief_Eingang_Am() { return $this->ustbrief_eingang_am; }
|
||||
public function SetUst_Befreit($value) { $this->ust_befreit=$value; }
|
||||
public function GetUst_Befreit() { return $this->ust_befreit; }
|
||||
public function SetEmail($value) { $this->email=$value; }
|
||||
public function GetEmail() { return $this->email; }
|
||||
public function SetTelefon($value) { $this->telefon=$value; }
|
||||
public function GetTelefon() { return $this->telefon; }
|
||||
public function SetTelefax($value) { $this->telefax=$value; }
|
||||
public function GetTelefax() { return $this->telefax; }
|
||||
public function SetBetreff($value) { $this->betreff=$value; }
|
||||
public function GetBetreff() { return $this->betreff; }
|
||||
public function SetKundennummer($value) { $this->kundennummer=$value; }
|
||||
public function GetKundennummer() { return $this->kundennummer; }
|
||||
public function SetLieferschein($value) { $this->lieferschein=$value; }
|
||||
public function GetLieferschein() { return $this->lieferschein; }
|
||||
public function SetVersandart($value) { $this->versandart=$value; }
|
||||
public function GetVersandart() { return $this->versandart; }
|
||||
public function SetLieferdatum($value) { $this->lieferdatum=$value; }
|
||||
public function GetLieferdatum() { return $this->lieferdatum; }
|
||||
public function SetBuchhaltung($value) { $this->buchhaltung=$value; }
|
||||
public function GetBuchhaltung() { return $this->buchhaltung; }
|
||||
public function SetZahlungsweise($value) { $this->zahlungsweise=$value; }
|
||||
public function GetZahlungsweise() { return $this->zahlungsweise; }
|
||||
public function SetZahlungsstatus($value) { $this->zahlungsstatus=$value; }
|
||||
public function GetZahlungsstatus() { return $this->zahlungsstatus; }
|
||||
public function SetIst($value) { $this->ist=$value; }
|
||||
public function GetIst() { return $this->ist; }
|
||||
public function SetSoll($value) { $this->soll=$value; }
|
||||
public function GetSoll() { return $this->soll; }
|
||||
public function SetZahlungszieltage($value) { $this->zahlungszieltage=$value; }
|
||||
public function GetZahlungszieltage() { return $this->zahlungszieltage; }
|
||||
public function SetZahlungszieltageskonto($value) { $this->zahlungszieltageskonto=$value; }
|
||||
public function GetZahlungszieltageskonto() { return $this->zahlungszieltageskonto; }
|
||||
public function SetZahlungszielskonto($value) { $this->zahlungszielskonto=$value; }
|
||||
public function GetZahlungszielskonto() { return $this->zahlungszielskonto; }
|
||||
public function SetGesamtsumme($value) { $this->gesamtsumme=$value; }
|
||||
public function GetGesamtsumme() { return $this->gesamtsumme; }
|
||||
public function SetBank_Inhaber($value) { $this->bank_inhaber=$value; }
|
||||
public function GetBank_Inhaber() { return $this->bank_inhaber; }
|
||||
public function SetBank_Institut($value) { $this->bank_institut=$value; }
|
||||
public function GetBank_Institut() { return $this->bank_institut; }
|
||||
public function SetBank_Blz($value) { $this->bank_blz=$value; }
|
||||
public function GetBank_Blz() { return $this->bank_blz; }
|
||||
public function SetBank_Konto($value) { $this->bank_konto=$value; }
|
||||
public function GetBank_Konto() { return $this->bank_konto; }
|
||||
public function SetKreditkarte_Typ($value) { $this->kreditkarte_typ=$value; }
|
||||
public function GetKreditkarte_Typ() { return $this->kreditkarte_typ; }
|
||||
public function SetKreditkarte_Inhaber($value) { $this->kreditkarte_inhaber=$value; }
|
||||
public function GetKreditkarte_Inhaber() { return $this->kreditkarte_inhaber; }
|
||||
public function SetKreditkarte_Nummer($value) { $this->kreditkarte_nummer=$value; }
|
||||
public function GetKreditkarte_Nummer() { return $this->kreditkarte_nummer; }
|
||||
public function SetKreditkarte_Pruefnummer($value) { $this->kreditkarte_pruefnummer=$value; }
|
||||
public function GetKreditkarte_Pruefnummer() { return $this->kreditkarte_pruefnummer; }
|
||||
public function SetKreditkarte_Monat($value) { $this->kreditkarte_monat=$value; }
|
||||
public function GetKreditkarte_Monat() { return $this->kreditkarte_monat; }
|
||||
public function SetKreditkarte_Jahr($value) { $this->kreditkarte_jahr=$value; }
|
||||
public function GetKreditkarte_Jahr() { return $this->kreditkarte_jahr; }
|
||||
public function SetPaypalaccount($value) { $this->paypalaccount=$value; }
|
||||
public function GetPaypalaccount() { return $this->paypalaccount; }
|
||||
public function SetFirma($value) { $this->firma=$value; }
|
||||
public function GetFirma() { return $this->firma; }
|
||||
public function SetVersendet($value) { $this->versendet=$value; }
|
||||
public function GetVersendet() { return $this->versendet; }
|
||||
public function SetVersendet_Am($value) { $this->versendet_am=$value; }
|
||||
public function GetVersendet_Am() { return $this->versendet_am; }
|
||||
public function SetVersendet_Per($value) { $this->versendet_per=$value; }
|
||||
public function GetVersendet_Per() { return $this->versendet_per; }
|
||||
public function SetVersendet_Durch($value) { $this->versendet_durch=$value; }
|
||||
public function GetVersendet_Durch() { return $this->versendet_durch; }
|
||||
public function SetInbearbeitung($value) { $this->inbearbeitung=$value; }
|
||||
public function GetInbearbeitung() { return $this->inbearbeitung; }
|
||||
public function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
public function GetLogdatei() { return $this->logdatei; }
|
||||
public function SetDta_Datei_Verband($value) { $this->dta_datei_verband=$value; }
|
||||
public function GetDta_Datei_Verband() { return $this->dta_datei_verband; }
|
||||
public function SetManuell_Vorabbezahlt($value) { $this->manuell_vorabbezahlt=$value; }
|
||||
public function GetManuell_Vorabbezahlt() { return $this->manuell_vorabbezahlt; }
|
||||
public function SetManuell_Vorabbezahlt_Hinweis($value) { $this->manuell_vorabbezahlt_hinweis=$value; }
|
||||
public function GetManuell_Vorabbezahlt_Hinweis() { return $this->manuell_vorabbezahlt_hinweis; }
|
||||
public function SetNicht_Umsatzmindernd($value) { $this->nicht_umsatzmindernd=$value; }
|
||||
public function GetNicht_Umsatzmindernd() { return $this->nicht_umsatzmindernd; }
|
||||
public function SetDta_Datei($value) { $this->dta_datei=$value; }
|
||||
public function GetDta_Datei() { return $this->dta_datei; }
|
||||
public function SetDeckungsbeitragcalc($value) { $this->deckungsbeitragcalc=$value; }
|
||||
public function GetDeckungsbeitragcalc() { return $this->deckungsbeitragcalc; }
|
||||
public function SetDeckungsbeitrag($value) { $this->deckungsbeitrag=$value; }
|
||||
public function GetDeckungsbeitrag() { return $this->deckungsbeitrag; }
|
||||
public function SetErloes_Netto($value) { $this->erloes_netto=$value; }
|
||||
public function GetErloes_Netto() { return $this->erloes_netto; }
|
||||
public function SetUmsatz_Netto($value) { $this->umsatz_netto=$value; }
|
||||
public function GetUmsatz_Netto() { return $this->umsatz_netto; }
|
||||
public function SetVertriebid($value) { $this->vertriebid=$value; }
|
||||
public function GetVertriebid() { return $this->vertriebid; }
|
||||
public function SetAktion($value) { $this->aktion=$value; }
|
||||
public function GetAktion() { return $this->aktion; }
|
||||
public function SetVertrieb($value) { $this->vertrieb=$value; }
|
||||
public function GetVertrieb() { return $this->vertrieb; }
|
||||
public function SetProvision($value) { $this->provision=$value; }
|
||||
public function GetProvision() { return $this->provision; }
|
||||
public function SetProvision_Summe($value) { $this->provision_summe=$value; }
|
||||
public function GetProvision_Summe() { return $this->provision_summe; }
|
||||
public function SetGruppe($value) { $this->gruppe=$value; }
|
||||
public function GetGruppe() { return $this->gruppe; }
|
||||
public function SetIhrebestellnummer($value) { $this->ihrebestellnummer=$value; }
|
||||
public function GetIhrebestellnummer() { return $this->ihrebestellnummer; }
|
||||
public function SetAnschreiben($value) { $this->anschreiben=$value; }
|
||||
public function GetAnschreiben() { return $this->anschreiben; }
|
||||
public function SetUsereditid($value) { $this->usereditid=$value; }
|
||||
public function GetUsereditid() { return $this->usereditid; }
|
||||
public function SetUseredittimestamp($value) { $this->useredittimestamp=$value; }
|
||||
public function GetUseredittimestamp() { return $this->useredittimestamp; }
|
||||
public function SetRealrabatt($value) { $this->realrabatt=$value; }
|
||||
public function GetRealrabatt() { return $this->realrabatt; }
|
||||
public function SetRabatt($value) { $this->rabatt=$value; }
|
||||
public function GetRabatt() { return $this->rabatt; }
|
||||
public function SetRabatt1($value) { $this->rabatt1=$value; }
|
||||
public function GetRabatt1() { return $this->rabatt1; }
|
||||
public function SetRabatt2($value) { $this->rabatt2=$value; }
|
||||
public function GetRabatt2() { return $this->rabatt2; }
|
||||
public function SetRabatt3($value) { $this->rabatt3=$value; }
|
||||
public function GetRabatt3() { return $this->rabatt3; }
|
||||
public function SetRabatt4($value) { $this->rabatt4=$value; }
|
||||
public function GetRabatt4() { return $this->rabatt4; }
|
||||
public function SetRabatt5($value) { $this->rabatt5=$value; }
|
||||
public function GetRabatt5() { return $this->rabatt5; }
|
||||
public function SetSteuersatz_Normal($value) { $this->steuersatz_normal=$value; }
|
||||
public function GetSteuersatz_Normal() { return $this->steuersatz_normal; }
|
||||
public function SetSteuersatz_Zwischen($value) { $this->steuersatz_zwischen=$value; }
|
||||
public function GetSteuersatz_Zwischen() { return $this->steuersatz_zwischen; }
|
||||
public function SetSteuersatz_Ermaessigt($value) { $this->steuersatz_ermaessigt=$value; }
|
||||
public function GetSteuersatz_Ermaessigt() { return $this->steuersatz_ermaessigt; }
|
||||
public function SetSteuersatz_Starkermaessigt($value) { $this->steuersatz_starkermaessigt=$value; }
|
||||
public function GetSteuersatz_Starkermaessigt() { return $this->steuersatz_starkermaessigt; }
|
||||
public function SetSteuersatz_Dienstleistung($value) { $this->steuersatz_dienstleistung=$value; }
|
||||
public function GetSteuersatz_Dienstleistung() { return $this->steuersatz_dienstleistung; }
|
||||
public function SetWaehrung($value) { $this->waehrung=$value; }
|
||||
public function GetWaehrung() { return $this->waehrung; }
|
||||
public function SetKeinsteuersatz($value) { $this->keinsteuersatz=$value; }
|
||||
public function GetKeinsteuersatz() { return $this->keinsteuersatz; }
|
||||
public function SetStornorechnung($value) { $this->stornorechnung=$value; }
|
||||
public function GetStornorechnung() { return $this->stornorechnung; }
|
||||
public function SetSchreibschutz($value) { $this->schreibschutz=$value; }
|
||||
public function GetSchreibschutz() { return $this->schreibschutz; }
|
||||
public function SetPdfarchiviert($value) { $this->pdfarchiviert=$value; }
|
||||
public function GetPdfarchiviert() { return $this->pdfarchiviert; }
|
||||
public function SetPdfarchiviertversion($value) { $this->pdfarchiviertversion=$value; }
|
||||
public function GetPdfarchiviertversion() { return $this->pdfarchiviertversion; }
|
||||
public function SetTyp($value) { $this->typ=$value; }
|
||||
public function GetTyp() { return $this->typ; }
|
||||
public function SetOhne_Briefpapier($value) { $this->ohne_briefpapier=$value; }
|
||||
public function GetOhne_Briefpapier() { return $this->ohne_briefpapier; }
|
||||
public function SetLieferid($value) { $this->lieferid=$value; }
|
||||
public function GetLieferid() { return $this->lieferid; }
|
||||
public function SetAnsprechpartnerid($value) { $this->ansprechpartnerid=$value; }
|
||||
public function GetAnsprechpartnerid() { return $this->ansprechpartnerid; }
|
||||
public function SetProjektfiliale($value) { $this->projektfiliale=$value; }
|
||||
public function GetProjektfiliale() { return $this->projektfiliale; }
|
||||
public function SetZuarchivieren($value) { $this->zuarchivieren=$value; }
|
||||
public function GetZuarchivieren() { return $this->zuarchivieren; }
|
||||
public function SetInternebezeichnung($value) { $this->internebezeichnung=$value; }
|
||||
public function GetInternebezeichnung() { return $this->internebezeichnung; }
|
||||
public function SetAngelegtam($value) { $this->angelegtam=$value; }
|
||||
public function GetAngelegtam() { return $this->angelegtam; }
|
||||
public function SetAnsprechpartner($value) { $this->ansprechpartner=$value; }
|
||||
public function GetAnsprechpartner() { return $this->ansprechpartner; }
|
||||
public function SetSprache($value) { $this->sprache=$value; }
|
||||
public function GetSprache() { return $this->sprache; }
|
||||
public function SetGln($value) { $this->gln=$value; }
|
||||
public function GetGln() { return $this->gln; }
|
||||
public function SetDeliverythresholdvatid($value) { $this->deliverythresholdvatid=$value; }
|
||||
public function GetDeliverythresholdvatid() { return $this->deliverythresholdvatid; }
|
||||
public function SetBearbeiterid($value) { $this->bearbeiterid=$value; }
|
||||
public function GetBearbeiterid() { return $this->bearbeiterid; }
|
||||
public function SetKurs($value) { $this->kurs=$value; }
|
||||
public function GetKurs() { return $this->kurs; }
|
||||
public function SetOhne_Artikeltext($value) { $this->ohne_artikeltext=$value; }
|
||||
public function GetOhne_Artikeltext() { return $this->ohne_artikeltext; }
|
||||
public function SetAnzeigesteuer($value) { $this->anzeigesteuer=$value; }
|
||||
public function GetAnzeigesteuer() { return $this->anzeigesteuer; }
|
||||
public function SetKostenstelle($value) { $this->kostenstelle=$value; }
|
||||
public function GetKostenstelle() { return $this->kostenstelle; }
|
||||
public function SetBodyzusatz($value) { $this->bodyzusatz=$value; }
|
||||
public function GetBodyzusatz() { return $this->bodyzusatz; }
|
||||
public function SetLieferbedingung($value) { $this->lieferbedingung=$value; }
|
||||
public function GetLieferbedingung() { return $this->lieferbedingung; }
|
||||
public function SetTitel($value) { $this->titel=$value; }
|
||||
public function GetTitel() { return $this->titel; }
|
||||
public function SetSkontobetrag($value) { $this->skontobetrag=$value; }
|
||||
public function GetSkontobetrag() { return $this->skontobetrag; }
|
||||
public function SetSkontoberechnet($value) { $this->skontoberechnet=$value; }
|
||||
public function GetSkontoberechnet() { return $this->skontoberechnet; }
|
||||
public function SetExtsoll($value) { $this->extsoll=$value; }
|
||||
public function GetExtsoll() { return $this->extsoll; }
|
||||
public function SetBundesstaat($value) { $this->bundesstaat=$value; }
|
||||
public function GetBundesstaat() { return $this->bundesstaat; }
|
||||
public function SetKundennummer_Buchhaltung($value) { $this->kundennummer_buchhaltung=$value; }
|
||||
public function GetKundennummer_Buchhaltung() { return $this->kundennummer_buchhaltung; }
|
||||
public function SetStorage_Country($value) { $this->storage_country=$value; }
|
||||
public function GetStorage_Country() { return $this->storage_country; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,671 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenGutschrift_Position
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $gutschrift;
|
||||
private $artikel;
|
||||
private $projekt;
|
||||
private $bezeichnung;
|
||||
private $beschreibung;
|
||||
private $internerkommentar;
|
||||
private $nummer;
|
||||
private $menge;
|
||||
private $preis;
|
||||
private $waehrung;
|
||||
private $lieferdatum;
|
||||
private $vpe;
|
||||
private $sort;
|
||||
private $status;
|
||||
private $umsatzsteuer;
|
||||
private $bemerkung;
|
||||
private $logdatei;
|
||||
private $explodiert_parent_artikel;
|
||||
private $keinrabatterlaubt;
|
||||
private $grundrabatt;
|
||||
private $rabattsync;
|
||||
private $rabatt1;
|
||||
private $rabatt2;
|
||||
private $rabatt3;
|
||||
private $rabatt4;
|
||||
private $rabatt5;
|
||||
private $einheit;
|
||||
private $rabatt;
|
||||
private $zolltarifnummer;
|
||||
private $herkunftsland;
|
||||
private $artikelnummerkunde;
|
||||
private $freifeld1;
|
||||
private $freifeld2;
|
||||
private $freifeld3;
|
||||
private $freifeld4;
|
||||
private $freifeld5;
|
||||
private $freifeld6;
|
||||
private $freifeld7;
|
||||
private $freifeld8;
|
||||
private $freifeld9;
|
||||
private $freifeld10;
|
||||
private $lieferdatumkw;
|
||||
private $auftrag_position_id;
|
||||
private $teilprojekt;
|
||||
private $kostenstelle;
|
||||
private $steuersatz;
|
||||
private $steuertext;
|
||||
private $erloese;
|
||||
private $erloesefestschreiben;
|
||||
private $einkaufspreiswaehrung;
|
||||
private $einkaufspreis;
|
||||
private $einkaufspreisurspruenglich;
|
||||
private $einkaufspreisid;
|
||||
private $ekwaehrung;
|
||||
private $deckungsbeitrag;
|
||||
private $freifeld11;
|
||||
private $freifeld12;
|
||||
private $freifeld13;
|
||||
private $freifeld14;
|
||||
private $freifeld15;
|
||||
private $freifeld16;
|
||||
private $freifeld17;
|
||||
private $freifeld18;
|
||||
private $freifeld19;
|
||||
private $freifeld20;
|
||||
private $freifeld21;
|
||||
private $freifeld22;
|
||||
private $freifeld23;
|
||||
private $freifeld24;
|
||||
private $freifeld25;
|
||||
private $freifeld26;
|
||||
private $freifeld27;
|
||||
private $freifeld28;
|
||||
private $freifeld29;
|
||||
private $freifeld30;
|
||||
private $freifeld31;
|
||||
private $freifeld32;
|
||||
private $freifeld33;
|
||||
private $freifeld34;
|
||||
private $freifeld35;
|
||||
private $freifeld36;
|
||||
private $freifeld37;
|
||||
private $freifeld38;
|
||||
private $freifeld39;
|
||||
private $freifeld40;
|
||||
private $formelmenge;
|
||||
private $formelpreis;
|
||||
private $ohnepreis;
|
||||
private $skontobetrag;
|
||||
private $steuerbetrag;
|
||||
private $skontosperre;
|
||||
private $ausblenden_im_pdf;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM gutschrift_position WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->gutschrift=$result['gutschrift'];
|
||||
$this->artikel=$result['artikel'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->bezeichnung=$result['bezeichnung'];
|
||||
$this->beschreibung=$result['beschreibung'];
|
||||
$this->internerkommentar=$result['internerkommentar'];
|
||||
$this->nummer=$result['nummer'];
|
||||
$this->menge=$result['menge'];
|
||||
$this->preis=$result['preis'];
|
||||
$this->waehrung=$result['waehrung'];
|
||||
$this->lieferdatum=$result['lieferdatum'];
|
||||
$this->vpe=$result['vpe'];
|
||||
$this->sort=$result['sort'];
|
||||
$this->status=$result['status'];
|
||||
$this->umsatzsteuer=$result['umsatzsteuer'];
|
||||
$this->bemerkung=$result['bemerkung'];
|
||||
$this->logdatei=$result['logdatei'];
|
||||
$this->explodiert_parent_artikel=$result['explodiert_parent_artikel'];
|
||||
$this->keinrabatterlaubt=$result['keinrabatterlaubt'];
|
||||
$this->grundrabatt=$result['grundrabatt'];
|
||||
$this->rabattsync=$result['rabattsync'];
|
||||
$this->rabatt1=$result['rabatt1'];
|
||||
$this->rabatt2=$result['rabatt2'];
|
||||
$this->rabatt3=$result['rabatt3'];
|
||||
$this->rabatt4=$result['rabatt4'];
|
||||
$this->rabatt5=$result['rabatt5'];
|
||||
$this->einheit=$result['einheit'];
|
||||
$this->rabatt=$result['rabatt'];
|
||||
$this->zolltarifnummer=$result['zolltarifnummer'];
|
||||
$this->herkunftsland=$result['herkunftsland'];
|
||||
$this->artikelnummerkunde=$result['artikelnummerkunde'];
|
||||
$this->freifeld1=$result['freifeld1'];
|
||||
$this->freifeld2=$result['freifeld2'];
|
||||
$this->freifeld3=$result['freifeld3'];
|
||||
$this->freifeld4=$result['freifeld4'];
|
||||
$this->freifeld5=$result['freifeld5'];
|
||||
$this->freifeld6=$result['freifeld6'];
|
||||
$this->freifeld7=$result['freifeld7'];
|
||||
$this->freifeld8=$result['freifeld8'];
|
||||
$this->freifeld9=$result['freifeld9'];
|
||||
$this->freifeld10=$result['freifeld10'];
|
||||
$this->lieferdatumkw=$result['lieferdatumkw'];
|
||||
$this->auftrag_position_id=$result['auftrag_position_id'];
|
||||
$this->teilprojekt=$result['teilprojekt'];
|
||||
$this->kostenstelle=$result['kostenstelle'];
|
||||
$this->steuersatz=$result['steuersatz'];
|
||||
$this->steuertext=$result['steuertext'];
|
||||
$this->erloese=$result['erloese'];
|
||||
$this->erloesefestschreiben=$result['erloesefestschreiben'];
|
||||
$this->einkaufspreiswaehrung=$result['einkaufspreiswaehrung'];
|
||||
$this->einkaufspreis=$result['einkaufspreis'];
|
||||
$this->einkaufspreisurspruenglich=$result['einkaufspreisurspruenglich'];
|
||||
$this->einkaufspreisid=$result['einkaufspreisid'];
|
||||
$this->ekwaehrung=$result['ekwaehrung'];
|
||||
$this->deckungsbeitrag=$result['deckungsbeitrag'];
|
||||
$this->freifeld11=$result['freifeld11'];
|
||||
$this->freifeld12=$result['freifeld12'];
|
||||
$this->freifeld13=$result['freifeld13'];
|
||||
$this->freifeld14=$result['freifeld14'];
|
||||
$this->freifeld15=$result['freifeld15'];
|
||||
$this->freifeld16=$result['freifeld16'];
|
||||
$this->freifeld17=$result['freifeld17'];
|
||||
$this->freifeld18=$result['freifeld18'];
|
||||
$this->freifeld19=$result['freifeld19'];
|
||||
$this->freifeld20=$result['freifeld20'];
|
||||
$this->freifeld21=$result['freifeld21'];
|
||||
$this->freifeld22=$result['freifeld22'];
|
||||
$this->freifeld23=$result['freifeld23'];
|
||||
$this->freifeld24=$result['freifeld24'];
|
||||
$this->freifeld25=$result['freifeld25'];
|
||||
$this->freifeld26=$result['freifeld26'];
|
||||
$this->freifeld27=$result['freifeld27'];
|
||||
$this->freifeld28=$result['freifeld28'];
|
||||
$this->freifeld29=$result['freifeld29'];
|
||||
$this->freifeld30=$result['freifeld30'];
|
||||
$this->freifeld31=$result['freifeld31'];
|
||||
$this->freifeld32=$result['freifeld32'];
|
||||
$this->freifeld33=$result['freifeld33'];
|
||||
$this->freifeld34=$result['freifeld34'];
|
||||
$this->freifeld35=$result['freifeld35'];
|
||||
$this->freifeld36=$result['freifeld36'];
|
||||
$this->freifeld37=$result['freifeld37'];
|
||||
$this->freifeld38=$result['freifeld38'];
|
||||
$this->freifeld39=$result['freifeld39'];
|
||||
$this->freifeld40=$result['freifeld40'];
|
||||
$this->formelmenge=$result['formelmenge'];
|
||||
$this->formelpreis=$result['formelpreis'];
|
||||
$this->ohnepreis=$result['ohnepreis'];
|
||||
$this->skontobetrag=$result['skontobetrag'];
|
||||
$this->steuerbetrag=$result['steuerbetrag'];
|
||||
$this->skontosperre=$result['skontosperre'];
|
||||
$this->ausblenden_im_pdf=$result['ausblenden_im_pdf'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO gutschrift_position (id,gutschrift,artikel,projekt,bezeichnung,beschreibung,internerkommentar,nummer,menge,preis,waehrung,lieferdatum,vpe,sort,status,umsatzsteuer,bemerkung,logdatei,explodiert_parent_artikel,keinrabatterlaubt,grundrabatt,rabattsync,rabatt1,rabatt2,rabatt3,rabatt4,rabatt5,einheit,rabatt,zolltarifnummer,herkunftsland,artikelnummerkunde,freifeld1,freifeld2,freifeld3,freifeld4,freifeld5,freifeld6,freifeld7,freifeld8,freifeld9,freifeld10,lieferdatumkw,auftrag_position_id,teilprojekt,kostenstelle,steuersatz,steuertext,erloese,erloesefestschreiben,einkaufspreiswaehrung,einkaufspreis,einkaufspreisurspruenglich,einkaufspreisid,ekwaehrung,deckungsbeitrag,freifeld11,freifeld12,freifeld13,freifeld14,freifeld15,freifeld16,freifeld17,freifeld18,freifeld19,freifeld20,freifeld21,freifeld22,freifeld23,freifeld24,freifeld25,freifeld26,freifeld27,freifeld28,freifeld29,freifeld30,freifeld31,freifeld32,freifeld33,freifeld34,freifeld35,freifeld36,freifeld37,freifeld38,freifeld39,freifeld40,formelmenge,formelpreis,ohnepreis,skontobetrag,steuerbetrag,skontosperre,ausblenden_im_pdf)
|
||||
VALUES('','{$this->gutschrift}','{$this->artikel}','{$this->projekt}','{$this->bezeichnung}','{$this->beschreibung}','{$this->internerkommentar}','{$this->nummer}','{$this->menge}','{$this->preis}','{$this->waehrung}','{$this->lieferdatum}','{$this->vpe}','{$this->sort}','{$this->status}','{$this->umsatzsteuer}','{$this->bemerkung}','{$this->logdatei}','{$this->explodiert_parent_artikel}','{$this->keinrabatterlaubt}','{$this->grundrabatt}','{$this->rabattsync}','{$this->rabatt1}','{$this->rabatt2}','{$this->rabatt3}','{$this->rabatt4}','{$this->rabatt5}','{$this->einheit}','{$this->rabatt}','{$this->zolltarifnummer}','{$this->herkunftsland}','{$this->artikelnummerkunde}','{$this->freifeld1}','{$this->freifeld2}','{$this->freifeld3}','{$this->freifeld4}','{$this->freifeld5}','{$this->freifeld6}','{$this->freifeld7}','{$this->freifeld8}','{$this->freifeld9}','{$this->freifeld10}','{$this->lieferdatumkw}','{$this->auftrag_position_id}','{$this->teilprojekt}','{$this->kostenstelle}','{$this->steuersatz}','{$this->steuertext}','{$this->erloese}','{$this->erloesefestschreiben}','{$this->einkaufspreiswaehrung}','{$this->einkaufspreis}','{$this->einkaufspreisurspruenglich}','{$this->einkaufspreisid}','{$this->ekwaehrung}','{$this->deckungsbeitrag}','{$this->freifeld11}','{$this->freifeld12}','{$this->freifeld13}','{$this->freifeld14}','{$this->freifeld15}','{$this->freifeld16}','{$this->freifeld17}','{$this->freifeld18}','{$this->freifeld19}','{$this->freifeld20}','{$this->freifeld21}','{$this->freifeld22}','{$this->freifeld23}','{$this->freifeld24}','{$this->freifeld25}','{$this->freifeld26}','{$this->freifeld27}','{$this->freifeld28}','{$this->freifeld29}','{$this->freifeld30}','{$this->freifeld31}','{$this->freifeld32}','{$this->freifeld33}','{$this->freifeld34}','{$this->freifeld35}','{$this->freifeld36}','{$this->freifeld37}','{$this->freifeld38}','{$this->freifeld39}','{$this->freifeld40}','{$this->formelmenge}','{$this->formelpreis}','{$this->ohnepreis}','{$this->skontobetrag}','{$this->steuerbetrag}','{$this->skontosperre}','{$this->ausblenden_im_pdf}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE gutschrift_position SET
|
||||
gutschrift='{$this->gutschrift}',
|
||||
artikel='{$this->artikel}',
|
||||
projekt='{$this->projekt}',
|
||||
bezeichnung='{$this->bezeichnung}',
|
||||
beschreibung='{$this->beschreibung}',
|
||||
internerkommentar='{$this->internerkommentar}',
|
||||
nummer='{$this->nummer}',
|
||||
menge='{$this->menge}',
|
||||
preis='{$this->preis}',
|
||||
waehrung='{$this->waehrung}',
|
||||
lieferdatum='{$this->lieferdatum}',
|
||||
vpe='{$this->vpe}',
|
||||
sort='{$this->sort}',
|
||||
status='{$this->status}',
|
||||
umsatzsteuer='{$this->umsatzsteuer}',
|
||||
bemerkung='{$this->bemerkung}',
|
||||
logdatei='{$this->logdatei}',
|
||||
explodiert_parent_artikel='{$this->explodiert_parent_artikel}',
|
||||
keinrabatterlaubt='{$this->keinrabatterlaubt}',
|
||||
grundrabatt='{$this->grundrabatt}',
|
||||
rabattsync='{$this->rabattsync}',
|
||||
rabatt1='{$this->rabatt1}',
|
||||
rabatt2='{$this->rabatt2}',
|
||||
rabatt3='{$this->rabatt3}',
|
||||
rabatt4='{$this->rabatt4}',
|
||||
rabatt5='{$this->rabatt5}',
|
||||
einheit='{$this->einheit}',
|
||||
rabatt='{$this->rabatt}',
|
||||
zolltarifnummer='{$this->zolltarifnummer}',
|
||||
herkunftsland='{$this->herkunftsland}',
|
||||
artikelnummerkunde='{$this->artikelnummerkunde}',
|
||||
freifeld1='{$this->freifeld1}',
|
||||
freifeld2='{$this->freifeld2}',
|
||||
freifeld3='{$this->freifeld3}',
|
||||
freifeld4='{$this->freifeld4}',
|
||||
freifeld5='{$this->freifeld5}',
|
||||
freifeld6='{$this->freifeld6}',
|
||||
freifeld7='{$this->freifeld7}',
|
||||
freifeld8='{$this->freifeld8}',
|
||||
freifeld9='{$this->freifeld9}',
|
||||
freifeld10='{$this->freifeld10}',
|
||||
lieferdatumkw='{$this->lieferdatumkw}',
|
||||
auftrag_position_id='{$this->auftrag_position_id}',
|
||||
teilprojekt='{$this->teilprojekt}',
|
||||
kostenstelle='{$this->kostenstelle}',
|
||||
steuersatz='{$this->steuersatz}',
|
||||
steuertext='{$this->steuertext}',
|
||||
erloese='{$this->erloese}',
|
||||
erloesefestschreiben='{$this->erloesefestschreiben}',
|
||||
einkaufspreiswaehrung='{$this->einkaufspreiswaehrung}',
|
||||
einkaufspreis='{$this->einkaufspreis}',
|
||||
einkaufspreisurspruenglich='{$this->einkaufspreisurspruenglich}',
|
||||
einkaufspreisid='{$this->einkaufspreisid}',
|
||||
ekwaehrung='{$this->ekwaehrung}',
|
||||
deckungsbeitrag='{$this->deckungsbeitrag}',
|
||||
freifeld11='{$this->freifeld11}',
|
||||
freifeld12='{$this->freifeld12}',
|
||||
freifeld13='{$this->freifeld13}',
|
||||
freifeld14='{$this->freifeld14}',
|
||||
freifeld15='{$this->freifeld15}',
|
||||
freifeld16='{$this->freifeld16}',
|
||||
freifeld17='{$this->freifeld17}',
|
||||
freifeld18='{$this->freifeld18}',
|
||||
freifeld19='{$this->freifeld19}',
|
||||
freifeld20='{$this->freifeld20}',
|
||||
freifeld21='{$this->freifeld21}',
|
||||
freifeld22='{$this->freifeld22}',
|
||||
freifeld23='{$this->freifeld23}',
|
||||
freifeld24='{$this->freifeld24}',
|
||||
freifeld25='{$this->freifeld25}',
|
||||
freifeld26='{$this->freifeld26}',
|
||||
freifeld27='{$this->freifeld27}',
|
||||
freifeld28='{$this->freifeld28}',
|
||||
freifeld29='{$this->freifeld29}',
|
||||
freifeld30='{$this->freifeld30}',
|
||||
freifeld31='{$this->freifeld31}',
|
||||
freifeld32='{$this->freifeld32}',
|
||||
freifeld33='{$this->freifeld33}',
|
||||
freifeld34='{$this->freifeld34}',
|
||||
freifeld35='{$this->freifeld35}',
|
||||
freifeld36='{$this->freifeld36}',
|
||||
freifeld37='{$this->freifeld37}',
|
||||
freifeld38='{$this->freifeld38}',
|
||||
freifeld39='{$this->freifeld39}',
|
||||
freifeld40='{$this->freifeld40}',
|
||||
formelmenge='{$this->formelmenge}',
|
||||
formelpreis='{$this->formelpreis}',
|
||||
ohnepreis='{$this->ohnepreis}',
|
||||
skontobetrag='{$this->skontobetrag}',
|
||||
steuerbetrag='{$this->steuerbetrag}',
|
||||
skontosperre='{$this->skontosperre}',
|
||||
ausblenden_im_pdf='{$this->ausblenden_im_pdf}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM gutschrift_position WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->gutschrift="";
|
||||
$this->artikel="";
|
||||
$this->projekt="";
|
||||
$this->bezeichnung="";
|
||||
$this->beschreibung="";
|
||||
$this->internerkommentar="";
|
||||
$this->nummer="";
|
||||
$this->menge="";
|
||||
$this->preis="";
|
||||
$this->waehrung="";
|
||||
$this->lieferdatum="";
|
||||
$this->vpe="";
|
||||
$this->sort="";
|
||||
$this->status="";
|
||||
$this->umsatzsteuer="";
|
||||
$this->bemerkung="";
|
||||
$this->logdatei="";
|
||||
$this->explodiert_parent_artikel="";
|
||||
$this->keinrabatterlaubt="";
|
||||
$this->grundrabatt="";
|
||||
$this->rabattsync="";
|
||||
$this->rabatt1="";
|
||||
$this->rabatt2="";
|
||||
$this->rabatt3="";
|
||||
$this->rabatt4="";
|
||||
$this->rabatt5="";
|
||||
$this->einheit="";
|
||||
$this->rabatt="";
|
||||
$this->zolltarifnummer="";
|
||||
$this->herkunftsland="";
|
||||
$this->artikelnummerkunde="";
|
||||
$this->freifeld1="";
|
||||
$this->freifeld2="";
|
||||
$this->freifeld3="";
|
||||
$this->freifeld4="";
|
||||
$this->freifeld5="";
|
||||
$this->freifeld6="";
|
||||
$this->freifeld7="";
|
||||
$this->freifeld8="";
|
||||
$this->freifeld9="";
|
||||
$this->freifeld10="";
|
||||
$this->lieferdatumkw="";
|
||||
$this->auftrag_position_id="";
|
||||
$this->teilprojekt="";
|
||||
$this->kostenstelle="";
|
||||
$this->steuersatz="";
|
||||
$this->steuertext="";
|
||||
$this->erloese="";
|
||||
$this->erloesefestschreiben="";
|
||||
$this->einkaufspreiswaehrung="";
|
||||
$this->einkaufspreis="";
|
||||
$this->einkaufspreisurspruenglich="";
|
||||
$this->einkaufspreisid="";
|
||||
$this->ekwaehrung="";
|
||||
$this->deckungsbeitrag="";
|
||||
$this->freifeld11="";
|
||||
$this->freifeld12="";
|
||||
$this->freifeld13="";
|
||||
$this->freifeld14="";
|
||||
$this->freifeld15="";
|
||||
$this->freifeld16="";
|
||||
$this->freifeld17="";
|
||||
$this->freifeld18="";
|
||||
$this->freifeld19="";
|
||||
$this->freifeld20="";
|
||||
$this->freifeld21="";
|
||||
$this->freifeld22="";
|
||||
$this->freifeld23="";
|
||||
$this->freifeld24="";
|
||||
$this->freifeld25="";
|
||||
$this->freifeld26="";
|
||||
$this->freifeld27="";
|
||||
$this->freifeld28="";
|
||||
$this->freifeld29="";
|
||||
$this->freifeld30="";
|
||||
$this->freifeld31="";
|
||||
$this->freifeld32="";
|
||||
$this->freifeld33="";
|
||||
$this->freifeld34="";
|
||||
$this->freifeld35="";
|
||||
$this->freifeld36="";
|
||||
$this->freifeld37="";
|
||||
$this->freifeld38="";
|
||||
$this->freifeld39="";
|
||||
$this->freifeld40="";
|
||||
$this->formelmenge="";
|
||||
$this->formelpreis="";
|
||||
$this->ohnepreis="";
|
||||
$this->skontobetrag="";
|
||||
$this->steuerbetrag="";
|
||||
$this->skontosperre="";
|
||||
$this->ausblenden_im_pdf="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetGutschrift($value) { $this->gutschrift=$value; }
|
||||
function GetGutschrift() { return $this->gutschrift; }
|
||||
function SetArtikel($value) { $this->artikel=$value; }
|
||||
function GetArtikel() { return $this->artikel; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
function GetBezeichnung() { return $this->bezeichnung; }
|
||||
function SetBeschreibung($value) { $this->beschreibung=$value; }
|
||||
function GetBeschreibung() { return $this->beschreibung; }
|
||||
function SetInternerkommentar($value) { $this->internerkommentar=$value; }
|
||||
function GetInternerkommentar() { return $this->internerkommentar; }
|
||||
function SetNummer($value) { $this->nummer=$value; }
|
||||
function GetNummer() { return $this->nummer; }
|
||||
function SetMenge($value) { $this->menge=$value; }
|
||||
function GetMenge() { return $this->menge; }
|
||||
function SetPreis($value) { $this->preis=$value; }
|
||||
function GetPreis() { return $this->preis; }
|
||||
function SetWaehrung($value) { $this->waehrung=$value; }
|
||||
function GetWaehrung() { return $this->waehrung; }
|
||||
function SetLieferdatum($value) { $this->lieferdatum=$value; }
|
||||
function GetLieferdatum() { return $this->lieferdatum; }
|
||||
function SetVpe($value) { $this->vpe=$value; }
|
||||
function GetVpe() { return $this->vpe; }
|
||||
function SetSort($value) { $this->sort=$value; }
|
||||
function GetSort() { return $this->sort; }
|
||||
function SetStatus($value) { $this->status=$value; }
|
||||
function GetStatus() { return $this->status; }
|
||||
function SetUmsatzsteuer($value) { $this->umsatzsteuer=$value; }
|
||||
function GetUmsatzsteuer() { return $this->umsatzsteuer; }
|
||||
function SetBemerkung($value) { $this->bemerkung=$value; }
|
||||
function GetBemerkung() { return $this->bemerkung; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
function SetExplodiert_Parent_Artikel($value) { $this->explodiert_parent_artikel=$value; }
|
||||
function GetExplodiert_Parent_Artikel() { return $this->explodiert_parent_artikel; }
|
||||
function SetKeinrabatterlaubt($value) { $this->keinrabatterlaubt=$value; }
|
||||
function GetKeinrabatterlaubt() { return $this->keinrabatterlaubt; }
|
||||
function SetGrundrabatt($value) { $this->grundrabatt=$value; }
|
||||
function GetGrundrabatt() { return $this->grundrabatt; }
|
||||
function SetRabattsync($value) { $this->rabattsync=$value; }
|
||||
function GetRabattsync() { return $this->rabattsync; }
|
||||
function SetRabatt1($value) { $this->rabatt1=$value; }
|
||||
function GetRabatt1() { return $this->rabatt1; }
|
||||
function SetRabatt2($value) { $this->rabatt2=$value; }
|
||||
function GetRabatt2() { return $this->rabatt2; }
|
||||
function SetRabatt3($value) { $this->rabatt3=$value; }
|
||||
function GetRabatt3() { return $this->rabatt3; }
|
||||
function SetRabatt4($value) { $this->rabatt4=$value; }
|
||||
function GetRabatt4() { return $this->rabatt4; }
|
||||
function SetRabatt5($value) { $this->rabatt5=$value; }
|
||||
function GetRabatt5() { return $this->rabatt5; }
|
||||
function SetEinheit($value) { $this->einheit=$value; }
|
||||
function GetEinheit() { return $this->einheit; }
|
||||
function SetRabatt($value) { $this->rabatt=$value; }
|
||||
function GetRabatt() { return $this->rabatt; }
|
||||
function SetZolltarifnummer($value) { $this->zolltarifnummer=$value; }
|
||||
function GetZolltarifnummer() { return $this->zolltarifnummer; }
|
||||
function SetHerkunftsland($value) { $this->herkunftsland=$value; }
|
||||
function GetHerkunftsland() { return $this->herkunftsland; }
|
||||
function SetArtikelnummerkunde($value) { $this->artikelnummerkunde=$value; }
|
||||
function GetArtikelnummerkunde() { return $this->artikelnummerkunde; }
|
||||
function SetFreifeld1($value) { $this->freifeld1=$value; }
|
||||
function GetFreifeld1() { return $this->freifeld1; }
|
||||
function SetFreifeld2($value) { $this->freifeld2=$value; }
|
||||
function GetFreifeld2() { return $this->freifeld2; }
|
||||
function SetFreifeld3($value) { $this->freifeld3=$value; }
|
||||
function GetFreifeld3() { return $this->freifeld3; }
|
||||
function SetFreifeld4($value) { $this->freifeld4=$value; }
|
||||
function GetFreifeld4() { return $this->freifeld4; }
|
||||
function SetFreifeld5($value) { $this->freifeld5=$value; }
|
||||
function GetFreifeld5() { return $this->freifeld5; }
|
||||
function SetFreifeld6($value) { $this->freifeld6=$value; }
|
||||
function GetFreifeld6() { return $this->freifeld6; }
|
||||
function SetFreifeld7($value) { $this->freifeld7=$value; }
|
||||
function GetFreifeld7() { return $this->freifeld7; }
|
||||
function SetFreifeld8($value) { $this->freifeld8=$value; }
|
||||
function GetFreifeld8() { return $this->freifeld8; }
|
||||
function SetFreifeld9($value) { $this->freifeld9=$value; }
|
||||
function GetFreifeld9() { return $this->freifeld9; }
|
||||
function SetFreifeld10($value) { $this->freifeld10=$value; }
|
||||
function GetFreifeld10() { return $this->freifeld10; }
|
||||
function SetLieferdatumkw($value) { $this->lieferdatumkw=$value; }
|
||||
function GetLieferdatumkw() { return $this->lieferdatumkw; }
|
||||
function SetAuftrag_Position_Id($value) { $this->auftrag_position_id=$value; }
|
||||
function GetAuftrag_Position_Id() { return $this->auftrag_position_id; }
|
||||
function SetTeilprojekt($value) { $this->teilprojekt=$value; }
|
||||
function GetTeilprojekt() { return $this->teilprojekt; }
|
||||
function SetKostenstelle($value) { $this->kostenstelle=$value; }
|
||||
function GetKostenstelle() { return $this->kostenstelle; }
|
||||
function SetSteuersatz($value) { $this->steuersatz=$value; }
|
||||
function GetSteuersatz() { return $this->steuersatz; }
|
||||
function SetSteuertext($value) { $this->steuertext=$value; }
|
||||
function GetSteuertext() { return $this->steuertext; }
|
||||
function SetErloese($value) { $this->erloese=$value; }
|
||||
function GetErloese() { return $this->erloese; }
|
||||
function SetErloesefestschreiben($value) { $this->erloesefestschreiben=$value; }
|
||||
function GetErloesefestschreiben() { return $this->erloesefestschreiben; }
|
||||
function SetEinkaufspreiswaehrung($value) { $this->einkaufspreiswaehrung=$value; }
|
||||
function GetEinkaufspreiswaehrung() { return $this->einkaufspreiswaehrung; }
|
||||
function SetEinkaufspreis($value) { $this->einkaufspreis=$value; }
|
||||
function GetEinkaufspreis() { return $this->einkaufspreis; }
|
||||
function SetEinkaufspreisurspruenglich($value) { $this->einkaufspreisurspruenglich=$value; }
|
||||
function GetEinkaufspreisurspruenglich() { return $this->einkaufspreisurspruenglich; }
|
||||
function SetEinkaufspreisid($value) { $this->einkaufspreisid=$value; }
|
||||
function GetEinkaufspreisid() { return $this->einkaufspreisid; }
|
||||
function SetEkwaehrung($value) { $this->ekwaehrung=$value; }
|
||||
function GetEkwaehrung() { return $this->ekwaehrung; }
|
||||
function SetDeckungsbeitrag($value) { $this->deckungsbeitrag=$value; }
|
||||
function GetDeckungsbeitrag() { return $this->deckungsbeitrag; }
|
||||
function SetFreifeld11($value) { $this->freifeld11=$value; }
|
||||
function GetFreifeld11() { return $this->freifeld11; }
|
||||
function SetFreifeld12($value) { $this->freifeld12=$value; }
|
||||
function GetFreifeld12() { return $this->freifeld12; }
|
||||
function SetFreifeld13($value) { $this->freifeld13=$value; }
|
||||
function GetFreifeld13() { return $this->freifeld13; }
|
||||
function SetFreifeld14($value) { $this->freifeld14=$value; }
|
||||
function GetFreifeld14() { return $this->freifeld14; }
|
||||
function SetFreifeld15($value) { $this->freifeld15=$value; }
|
||||
function GetFreifeld15() { return $this->freifeld15; }
|
||||
function SetFreifeld16($value) { $this->freifeld16=$value; }
|
||||
function GetFreifeld16() { return $this->freifeld16; }
|
||||
function SetFreifeld17($value) { $this->freifeld17=$value; }
|
||||
function GetFreifeld17() { return $this->freifeld17; }
|
||||
function SetFreifeld18($value) { $this->freifeld18=$value; }
|
||||
function GetFreifeld18() { return $this->freifeld18; }
|
||||
function SetFreifeld19($value) { $this->freifeld19=$value; }
|
||||
function GetFreifeld19() { return $this->freifeld19; }
|
||||
function SetFreifeld20($value) { $this->freifeld20=$value; }
|
||||
function GetFreifeld20() { return $this->freifeld20; }
|
||||
function SetFreifeld21($value) { $this->freifeld21=$value; }
|
||||
function GetFreifeld21() { return $this->freifeld21; }
|
||||
function SetFreifeld22($value) { $this->freifeld22=$value; }
|
||||
function GetFreifeld22() { return $this->freifeld22; }
|
||||
function SetFreifeld23($value) { $this->freifeld23=$value; }
|
||||
function GetFreifeld23() { return $this->freifeld23; }
|
||||
function SetFreifeld24($value) { $this->freifeld24=$value; }
|
||||
function GetFreifeld24() { return $this->freifeld24; }
|
||||
function SetFreifeld25($value) { $this->freifeld25=$value; }
|
||||
function GetFreifeld25() { return $this->freifeld25; }
|
||||
function SetFreifeld26($value) { $this->freifeld26=$value; }
|
||||
function GetFreifeld26() { return $this->freifeld26; }
|
||||
function SetFreifeld27($value) { $this->freifeld27=$value; }
|
||||
function GetFreifeld27() { return $this->freifeld27; }
|
||||
function SetFreifeld28($value) { $this->freifeld28=$value; }
|
||||
function GetFreifeld28() { return $this->freifeld28; }
|
||||
function SetFreifeld29($value) { $this->freifeld29=$value; }
|
||||
function GetFreifeld29() { return $this->freifeld29; }
|
||||
function SetFreifeld30($value) { $this->freifeld30=$value; }
|
||||
function GetFreifeld30() { return $this->freifeld30; }
|
||||
function SetFreifeld31($value) { $this->freifeld31=$value; }
|
||||
function GetFreifeld31() { return $this->freifeld31; }
|
||||
function SetFreifeld32($value) { $this->freifeld32=$value; }
|
||||
function GetFreifeld32() { return $this->freifeld32; }
|
||||
function SetFreifeld33($value) { $this->freifeld33=$value; }
|
||||
function GetFreifeld33() { return $this->freifeld33; }
|
||||
function SetFreifeld34($value) { $this->freifeld34=$value; }
|
||||
function GetFreifeld34() { return $this->freifeld34; }
|
||||
function SetFreifeld35($value) { $this->freifeld35=$value; }
|
||||
function GetFreifeld35() { return $this->freifeld35; }
|
||||
function SetFreifeld36($value) { $this->freifeld36=$value; }
|
||||
function GetFreifeld36() { return $this->freifeld36; }
|
||||
function SetFreifeld37($value) { $this->freifeld37=$value; }
|
||||
function GetFreifeld37() { return $this->freifeld37; }
|
||||
function SetFreifeld38($value) { $this->freifeld38=$value; }
|
||||
function GetFreifeld38() { return $this->freifeld38; }
|
||||
function SetFreifeld39($value) { $this->freifeld39=$value; }
|
||||
function GetFreifeld39() { return $this->freifeld39; }
|
||||
function SetFreifeld40($value) { $this->freifeld40=$value; }
|
||||
function GetFreifeld40() { return $this->freifeld40; }
|
||||
function SetFormelmenge($value) { $this->formelmenge=$value; }
|
||||
function GetFormelmenge() { return $this->formelmenge; }
|
||||
function SetFormelpreis($value) { $this->formelpreis=$value; }
|
||||
function GetFormelpreis() { return $this->formelpreis; }
|
||||
function SetOhnepreis($value) { $this->ohnepreis=$value; }
|
||||
function GetOhnepreis() { return $this->ohnepreis; }
|
||||
function SetSkontobetrag($value) { $this->skontobetrag=$value; }
|
||||
function GetSkontobetrag() { return $this->skontobetrag; }
|
||||
function SetSteuerbetrag($value) { $this->steuerbetrag=$value; }
|
||||
function GetSteuerbetrag() { return $this->steuerbetrag; }
|
||||
function SetSkontosperre($value) { $this->skontosperre=$value; }
|
||||
function GetSkontosperre() { return $this->skontosperre; }
|
||||
function SetAusblenden_Im_Pdf($value) { $this->ausblenden_im_pdf=$value; }
|
||||
function GetAusblenden_Im_Pdf() { return $this->ausblenden_im_pdf; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,143 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenGutschrift_Protokoll
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $gutschrift;
|
||||
private $zeit;
|
||||
private $bearbeiter;
|
||||
private $grund;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM gutschrift_protokoll WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->gutschrift=$result[gutschrift];
|
||||
$this->zeit=$result[zeit];
|
||||
$this->bearbeiter=$result[bearbeiter];
|
||||
$this->grund=$result[grund];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO gutschrift_protokoll (id,gutschrift,zeit,bearbeiter,grund)
|
||||
VALUES('','{$this->gutschrift}','{$this->zeit}','{$this->bearbeiter}','{$this->grund}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE gutschrift_protokoll SET
|
||||
gutschrift='{$this->gutschrift}',
|
||||
zeit='{$this->zeit}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
grund='{$this->grund}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM gutschrift_protokoll WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->gutschrift="";
|
||||
$this->zeit="";
|
||||
$this->bearbeiter="";
|
||||
$this->grund="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetGutschrift($value) { $this->gutschrift=$value; }
|
||||
function GetGutschrift() { return $this->gutschrift; }
|
||||
function SetZeit($value) { $this->zeit=$value; }
|
||||
function GetZeit() { return $this->zeit; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetGrund($value) { $this->grund=$value; }
|
||||
function GetGrund() { return $this->grund; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,190 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenImportvorlage
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $bezeichnung;
|
||||
private $ziel;
|
||||
private $internebemerkung;
|
||||
private $fields;
|
||||
private $letzterimport;
|
||||
private $mitarbeiterletzterimport;
|
||||
private $importtrennzeichen;
|
||||
private $importerstezeilenummer;
|
||||
private $importdatenmaskierung;
|
||||
private $importzeichensatz;
|
||||
private $utf8decode;
|
||||
private $charset;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM `importvorlage` WHERE (`id` = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->bezeichnung=$result['bezeichnung'];
|
||||
$this->ziel=$result['ziel'];
|
||||
$this->internebemerkung=$result['internebemerkung'];
|
||||
$this->fields=$result['fields'];
|
||||
$this->letzterimport=$result['letzterimport'];
|
||||
$this->mitarbeiterletzterimport=$result['mitarbeiterletzterimport'];
|
||||
$this->importtrennzeichen=$result['importtrennzeichen'];
|
||||
$this->importerstezeilenummer=$result['importerstezeilenummer'];
|
||||
$this->importdatenmaskierung=$result['importdatenmaskierung'];
|
||||
$this->importzeichensatz=$result['importzeichensatz'];
|
||||
$this->utf8decode=$result['utf8decode'];
|
||||
$this->charset=$result['charset'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO `importvorlage` (`id`,`bezeichnung`,`ziel`,`internebemerkung`,`fields`,`letzterimport`,`mitarbeiterletzterimport`,`importtrennzeichen`,`importerstezeilenummer`,`importdatenmaskierung`,`importzeichensatz`,`utf8decode`,`charset`)
|
||||
VALUES(NULL,'{$this->bezeichnung}','{$this->ziel}','{$this->internebemerkung}','{$this->fields}','{$this->letzterimport}','{$this->mitarbeiterletzterimport}','{$this->importtrennzeichen}','{$this->importerstezeilenummer}','{$this->importdatenmaskierung}','{$this->importzeichensatz}','{$this->utf8decode}','{$this->charset}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
$sql = "UPDATE `importvorlage` SET
|
||||
`bezeichnung`='{$this->bezeichnung}',
|
||||
`ziel`='{$this->ziel}',
|
||||
`internebemerkung`='{$this->internebemerkung}',
|
||||
`fields`='{$this->fields}',
|
||||
`letzterimport`='{$this->letzterimport}',
|
||||
`mitarbeiterletzterimport`='{$this->mitarbeiterletzterimport}',
|
||||
`importtrennzeichen`='{$this->importtrennzeichen}',
|
||||
`importerstezeilenummer`='{$this->importerstezeilenummer}',
|
||||
`importdatenmaskierung`='{$this->importdatenmaskierung}',
|
||||
`importzeichensatz`='{$this->importzeichensatz}',
|
||||
`utf8decode`='{$this->utf8decode}',
|
||||
`charset`='{$this->charset}'
|
||||
WHERE (`id`='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id='')
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM `importvorlage` WHERE (`id`='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id='';
|
||||
$this->bezeichnung='';
|
||||
$this->ziel='';
|
||||
$this->internebemerkung='';
|
||||
$this->fields='';
|
||||
$this->letzterimport='';
|
||||
$this->mitarbeiterletzterimport='';
|
||||
$this->importtrennzeichen='';
|
||||
$this->importerstezeilenummer='';
|
||||
$this->importdatenmaskierung='';
|
||||
$this->importzeichensatz='';
|
||||
$this->utf8decode='';
|
||||
$this->charset='';
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = '';
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
public function SetId($value) { $this->id=$value; }
|
||||
public function GetId() { return $this->id; }
|
||||
public function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
public function GetBezeichnung() { return $this->bezeichnung; }
|
||||
public function SetZiel($value) { $this->ziel=$value; }
|
||||
public function GetZiel() { return $this->ziel; }
|
||||
public function SetInternebemerkung($value) { $this->internebemerkung=$value; }
|
||||
public function GetInternebemerkung() { return $this->internebemerkung; }
|
||||
public function SetFields($value) { $this->fields=$value; }
|
||||
public function GetFields() { return $this->fields; }
|
||||
public function SetLetzterimport($value) { $this->letzterimport=$value; }
|
||||
public function GetLetzterimport() { return $this->letzterimport; }
|
||||
public function SetMitarbeiterletzterimport($value) { $this->mitarbeiterletzterimport=$value; }
|
||||
public function GetMitarbeiterletzterimport() { return $this->mitarbeiterletzterimport; }
|
||||
public function SetImporttrennzeichen($value) { $this->importtrennzeichen=$value; }
|
||||
public function GetImporttrennzeichen() { return $this->importtrennzeichen; }
|
||||
public function SetImporterstezeilenummer($value) { $this->importerstezeilenummer=$value; }
|
||||
public function GetImporterstezeilenummer() { return $this->importerstezeilenummer; }
|
||||
public function SetImportdatenmaskierung($value) { $this->importdatenmaskierung=$value; }
|
||||
public function GetImportdatenmaskierung() { return $this->importdatenmaskierung; }
|
||||
public function SetImportzeichensatz($value) { $this->importzeichensatz=$value; }
|
||||
public function GetImportzeichensatz() { return $this->importzeichensatz; }
|
||||
public function SetUtf8Decode($value) { $this->utf8decode=$value; }
|
||||
public function GetUtf8Decode() { return $this->utf8decode; }
|
||||
public function SetCharset($value) { $this->charset=$value; }
|
||||
public function GetCharset() { return $this->charset; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,209 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenInhalt
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $sprache;
|
||||
private $inhalt;
|
||||
private $kurztext;
|
||||
private $html;
|
||||
private $title;
|
||||
private $description;
|
||||
private $keywords;
|
||||
private $inhaltstyp;
|
||||
private $sichtbarbis;
|
||||
private $datum;
|
||||
private $aktiv;
|
||||
private $shop;
|
||||
private $template;
|
||||
private $finalparse;
|
||||
private $navigation;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM inhalt WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->sprache=$result[sprache];
|
||||
$this->inhalt=$result[inhalt];
|
||||
$this->kurztext=$result[kurztext];
|
||||
$this->html=$result[html];
|
||||
$this->title=$result[title];
|
||||
$this->description=$result[description];
|
||||
$this->keywords=$result[keywords];
|
||||
$this->inhaltstyp=$result[inhaltstyp];
|
||||
$this->sichtbarbis=$result[sichtbarbis];
|
||||
$this->datum=$result[datum];
|
||||
$this->aktiv=$result[aktiv];
|
||||
$this->shop=$result[shop];
|
||||
$this->template=$result[template];
|
||||
$this->finalparse=$result[finalparse];
|
||||
$this->navigation=$result[navigation];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO inhalt (id,sprache,inhalt,kurztext,html,title,description,keywords,inhaltstyp,sichtbarbis,datum,aktiv,shop,template,finalparse,navigation)
|
||||
VALUES('','{$this->sprache}','{$this->inhalt}','{$this->kurztext}','{$this->html}','{$this->title}','{$this->description}','{$this->keywords}','{$this->inhaltstyp}','{$this->sichtbarbis}','{$this->datum}','{$this->aktiv}','{$this->shop}','{$this->template}','{$this->finalparse}','{$this->navigation}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE inhalt SET
|
||||
sprache='{$this->sprache}',
|
||||
inhalt='{$this->inhalt}',
|
||||
kurztext='{$this->kurztext}',
|
||||
html='{$this->html}',
|
||||
title='{$this->title}',
|
||||
description='{$this->description}',
|
||||
keywords='{$this->keywords}',
|
||||
inhaltstyp='{$this->inhaltstyp}',
|
||||
sichtbarbis='{$this->sichtbarbis}',
|
||||
datum='{$this->datum}',
|
||||
aktiv='{$this->aktiv}',
|
||||
shop='{$this->shop}',
|
||||
template='{$this->template}',
|
||||
finalparse='{$this->finalparse}',
|
||||
navigation='{$this->navigation}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM inhalt WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->sprache="";
|
||||
$this->inhalt="";
|
||||
$this->kurztext="";
|
||||
$this->html="";
|
||||
$this->title="";
|
||||
$this->description="";
|
||||
$this->keywords="";
|
||||
$this->inhaltstyp="";
|
||||
$this->sichtbarbis="";
|
||||
$this->datum="";
|
||||
$this->aktiv="";
|
||||
$this->shop="";
|
||||
$this->template="";
|
||||
$this->finalparse="";
|
||||
$this->navigation="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetSprache($value) { $this->sprache=$value; }
|
||||
function GetSprache() { return $this->sprache; }
|
||||
function SetInhalt($value) { $this->inhalt=$value; }
|
||||
function GetInhalt() { return $this->inhalt; }
|
||||
function SetKurztext($value) { $this->kurztext=$value; }
|
||||
function GetKurztext() { return $this->kurztext; }
|
||||
function SetHtml($value) { $this->html=$value; }
|
||||
function GetHtml() { return $this->html; }
|
||||
function SetTitle($value) { $this->title=$value; }
|
||||
function GetTitle() { return $this->title; }
|
||||
function SetDescription($value) { $this->description=$value; }
|
||||
function GetDescription() { return $this->description; }
|
||||
function SetKeywords($value) { $this->keywords=$value; }
|
||||
function GetKeywords() { return $this->keywords; }
|
||||
function SetInhaltstyp($value) { $this->inhaltstyp=$value; }
|
||||
function GetInhaltstyp() { return $this->inhaltstyp; }
|
||||
function SetSichtbarbis($value) { $this->sichtbarbis=$value; }
|
||||
function GetSichtbarbis() { return $this->sichtbarbis; }
|
||||
function SetDatum($value) { $this->datum=$value; }
|
||||
function GetDatum() { return $this->datum; }
|
||||
function SetAktiv($value) { $this->aktiv=$value; }
|
||||
function GetAktiv() { return $this->aktiv; }
|
||||
function SetShop($value) { $this->shop=$value; }
|
||||
function GetShop() { return $this->shop; }
|
||||
function SetTemplate($value) { $this->template=$value; }
|
||||
function GetTemplate() { return $this->template; }
|
||||
function SetFinalparse($value) { $this->finalparse=$value; }
|
||||
function GetFinalparse() { return $this->finalparse; }
|
||||
function SetNavigation($value) { $this->navigation=$value; }
|
||||
function GetNavigation() { return $this->navigation; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,359 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenInventur
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $datum;
|
||||
private $projekt;
|
||||
private $belegnr;
|
||||
private $bearbeiter;
|
||||
private $auftrag;
|
||||
private $auftragid;
|
||||
private $freitext;
|
||||
private $status;
|
||||
private $adresse;
|
||||
private $mitarbeiter;
|
||||
private $name;
|
||||
private $abteilung;
|
||||
private $unterabteilung;
|
||||
private $strasse;
|
||||
private $adresszusatz;
|
||||
private $ansprechpartner;
|
||||
private $plz;
|
||||
private $ort;
|
||||
private $land;
|
||||
private $ustid;
|
||||
private $email;
|
||||
private $telefon;
|
||||
private $telefax;
|
||||
private $betreff;
|
||||
private $kundennummer;
|
||||
private $versandart;
|
||||
private $versand;
|
||||
private $firma;
|
||||
private $versendet;
|
||||
private $versendet_am;
|
||||
private $versendet_per;
|
||||
private $versendet_durch;
|
||||
private $inbearbeitung_user;
|
||||
private $logdatei;
|
||||
private $ohne_briefpapier;
|
||||
private $usereditid;
|
||||
private $useredittimestamp;
|
||||
private $steuersatz_normal;
|
||||
private $schreibschutz;
|
||||
private $noprice;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM inventur WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->datum=$result['datum'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->belegnr=$result['belegnr'];
|
||||
$this->bearbeiter=$result['bearbeiter'];
|
||||
$this->auftrag=$result['auftrag'];
|
||||
$this->auftragid=$result['auftragid'];
|
||||
$this->freitext=$result['freitext'];
|
||||
$this->status=$result['status'];
|
||||
$this->adresse=$result['adresse'];
|
||||
$this->mitarbeiter=$result['mitarbeiter'];
|
||||
$this->name=$result['name'];
|
||||
$this->abteilung=$result['abteilung'];
|
||||
$this->unterabteilung=$result['unterabteilung'];
|
||||
$this->strasse=$result['strasse'];
|
||||
$this->adresszusatz=$result['adresszusatz'];
|
||||
$this->ansprechpartner=$result['ansprechpartner'];
|
||||
$this->plz=$result['plz'];
|
||||
$this->ort=$result['ort'];
|
||||
$this->land=$result['land'];
|
||||
$this->ustid=$result['ustid'];
|
||||
$this->email=$result['email'];
|
||||
$this->telefon=$result['telefon'];
|
||||
$this->telefax=$result['telefax'];
|
||||
$this->betreff=$result['betreff'];
|
||||
$this->kundennummer=$result['kundennummer'];
|
||||
$this->versandart=$result['versandart'];
|
||||
$this->versand=$result['versand'];
|
||||
$this->firma=$result['firma'];
|
||||
$this->versendet=$result['versendet'];
|
||||
$this->versendet_am=$result['versendet_am'];
|
||||
$this->versendet_per=$result['versendet_per'];
|
||||
$this->versendet_durch=$result['versendet_durch'];
|
||||
$this->inbearbeitung_user=$result['inbearbeitung_user'];
|
||||
$this->logdatei=$result['logdatei'];
|
||||
$this->ohne_briefpapier=$result['ohne_briefpapier'];
|
||||
$this->usereditid=$result['usereditid'];
|
||||
$this->useredittimestamp=$result['useredittimestamp'];
|
||||
$this->steuersatz_normal=$result['steuersatz_normal'];
|
||||
$this->schreibschutz=$result['schreibschutz'];
|
||||
$this->noprice=$result['noprice'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO inventur (id,datum,projekt,belegnr,bearbeiter,auftrag,auftragid,freitext,status,adresse,mitarbeiter,name,abteilung,unterabteilung,strasse,adresszusatz,ansprechpartner,plz,ort,land,ustid,email,telefon,telefax,betreff,kundennummer,versandart,versand,firma,versendet,versendet_am,versendet_per,versendet_durch,inbearbeitung_user,logdatei,ohne_briefpapier,usereditid,useredittimestamp,steuersatz_normal,schreibschutz,noprice)
|
||||
VALUES('','{$this->datum}','{$this->projekt}','{$this->belegnr}','{$this->bearbeiter}','{$this->auftrag}','{$this->auftragid}','{$this->freitext}','{$this->status}','{$this->adresse}','{$this->mitarbeiter}','{$this->name}','{$this->abteilung}','{$this->unterabteilung}','{$this->strasse}','{$this->adresszusatz}','{$this->ansprechpartner}','{$this->plz}','{$this->ort}','{$this->land}','{$this->ustid}','{$this->email}','{$this->telefon}','{$this->telefax}','{$this->betreff}','{$this->kundennummer}','{$this->versandart}','{$this->versand}','{$this->firma}','{$this->versendet}','{$this->versendet_am}','{$this->versendet_per}','{$this->versendet_durch}','{$this->inbearbeitung_user}','{$this->logdatei}','{$this->ohne_briefpapier}','{$this->usereditid}','{$this->useredittimestamp}','{$this->steuersatz_normal}','{$this->schreibschutz}','{$this->noprice}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE inventur SET
|
||||
datum='{$this->datum}',
|
||||
projekt='{$this->projekt}',
|
||||
belegnr='{$this->belegnr}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
auftrag='{$this->auftrag}',
|
||||
auftragid='{$this->auftragid}',
|
||||
freitext='{$this->freitext}',
|
||||
status='{$this->status}',
|
||||
adresse='{$this->adresse}',
|
||||
mitarbeiter='{$this->mitarbeiter}',
|
||||
name='{$this->name}',
|
||||
abteilung='{$this->abteilung}',
|
||||
unterabteilung='{$this->unterabteilung}',
|
||||
strasse='{$this->strasse}',
|
||||
adresszusatz='{$this->adresszusatz}',
|
||||
ansprechpartner='{$this->ansprechpartner}',
|
||||
plz='{$this->plz}',
|
||||
ort='{$this->ort}',
|
||||
land='{$this->land}',
|
||||
ustid='{$this->ustid}',
|
||||
email='{$this->email}',
|
||||
telefon='{$this->telefon}',
|
||||
telefax='{$this->telefax}',
|
||||
betreff='{$this->betreff}',
|
||||
kundennummer='{$this->kundennummer}',
|
||||
versandart='{$this->versandart}',
|
||||
versand='{$this->versand}',
|
||||
firma='{$this->firma}',
|
||||
versendet='{$this->versendet}',
|
||||
versendet_am='{$this->versendet_am}',
|
||||
versendet_per='{$this->versendet_per}',
|
||||
versendet_durch='{$this->versendet_durch}',
|
||||
inbearbeitung_user='{$this->inbearbeitung_user}',
|
||||
logdatei='{$this->logdatei}',
|
||||
ohne_briefpapier='{$this->ohne_briefpapier}',
|
||||
usereditid='{$this->usereditid}',
|
||||
useredittimestamp='{$this->useredittimestamp}',
|
||||
steuersatz_normal='{$this->steuersatz_normal}',
|
||||
schreibschutz='{$this->schreibschutz}',
|
||||
noprice='{$this->noprice}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM inventur WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->datum="";
|
||||
$this->projekt="";
|
||||
$this->belegnr="";
|
||||
$this->bearbeiter="";
|
||||
$this->auftrag="";
|
||||
$this->auftragid="";
|
||||
$this->freitext="";
|
||||
$this->status="";
|
||||
$this->adresse="";
|
||||
$this->mitarbeiter="";
|
||||
$this->name="";
|
||||
$this->abteilung="";
|
||||
$this->unterabteilung="";
|
||||
$this->strasse="";
|
||||
$this->adresszusatz="";
|
||||
$this->ansprechpartner="";
|
||||
$this->plz="";
|
||||
$this->ort="";
|
||||
$this->land="";
|
||||
$this->ustid="";
|
||||
$this->email="";
|
||||
$this->telefon="";
|
||||
$this->telefax="";
|
||||
$this->betreff="";
|
||||
$this->kundennummer="";
|
||||
$this->versandart="";
|
||||
$this->versand="";
|
||||
$this->firma="";
|
||||
$this->versendet="";
|
||||
$this->versendet_am="";
|
||||
$this->versendet_per="";
|
||||
$this->versendet_durch="";
|
||||
$this->inbearbeitung_user="";
|
||||
$this->logdatei="";
|
||||
$this->ohne_briefpapier="";
|
||||
$this->usereditid="";
|
||||
$this->useredittimestamp="";
|
||||
$this->steuersatz_normal="";
|
||||
$this->schreibschutz="";
|
||||
$this->noprice="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetDatum($value) { $this->datum=$value; }
|
||||
function GetDatum() { return $this->datum; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetBelegnr($value) { $this->belegnr=$value; }
|
||||
function GetBelegnr() { return $this->belegnr; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetAuftrag($value) { $this->auftrag=$value; }
|
||||
function GetAuftrag() { return $this->auftrag; }
|
||||
function SetAuftragid($value) { $this->auftragid=$value; }
|
||||
function GetAuftragid() { return $this->auftragid; }
|
||||
function SetFreitext($value) { $this->freitext=$value; }
|
||||
function GetFreitext() { return $this->freitext; }
|
||||
function SetStatus($value) { $this->status=$value; }
|
||||
function GetStatus() { return $this->status; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetMitarbeiter($value) { $this->mitarbeiter=$value; }
|
||||
function GetMitarbeiter() { return $this->mitarbeiter; }
|
||||
function SetName($value) { $this->name=$value; }
|
||||
function GetName() { return $this->name; }
|
||||
function SetAbteilung($value) { $this->abteilung=$value; }
|
||||
function GetAbteilung() { return $this->abteilung; }
|
||||
function SetUnterabteilung($value) { $this->unterabteilung=$value; }
|
||||
function GetUnterabteilung() { return $this->unterabteilung; }
|
||||
function SetStrasse($value) { $this->strasse=$value; }
|
||||
function GetStrasse() { return $this->strasse; }
|
||||
function SetAdresszusatz($value) { $this->adresszusatz=$value; }
|
||||
function GetAdresszusatz() { return $this->adresszusatz; }
|
||||
function SetAnsprechpartner($value) { $this->ansprechpartner=$value; }
|
||||
function GetAnsprechpartner() { return $this->ansprechpartner; }
|
||||
function SetPlz($value) { $this->plz=$value; }
|
||||
function GetPlz() { return $this->plz; }
|
||||
function SetOrt($value) { $this->ort=$value; }
|
||||
function GetOrt() { return $this->ort; }
|
||||
function SetLand($value) { $this->land=$value; }
|
||||
function GetLand() { return $this->land; }
|
||||
function SetUstid($value) { $this->ustid=$value; }
|
||||
function GetUstid() { return $this->ustid; }
|
||||
function SetEmail($value) { $this->email=$value; }
|
||||
function GetEmail() { return $this->email; }
|
||||
function SetTelefon($value) { $this->telefon=$value; }
|
||||
function GetTelefon() { return $this->telefon; }
|
||||
function SetTelefax($value) { $this->telefax=$value; }
|
||||
function GetTelefax() { return $this->telefax; }
|
||||
function SetBetreff($value) { $this->betreff=$value; }
|
||||
function GetBetreff() { return $this->betreff; }
|
||||
function SetKundennummer($value) { $this->kundennummer=$value; }
|
||||
function GetKundennummer() { return $this->kundennummer; }
|
||||
function SetVersandart($value) { $this->versandart=$value; }
|
||||
function GetVersandart() { return $this->versandart; }
|
||||
function SetVersand($value) { $this->versand=$value; }
|
||||
function GetVersand() { return $this->versand; }
|
||||
function SetFirma($value) { $this->firma=$value; }
|
||||
function GetFirma() { return $this->firma; }
|
||||
function SetVersendet($value) { $this->versendet=$value; }
|
||||
function GetVersendet() { return $this->versendet; }
|
||||
function SetVersendet_Am($value) { $this->versendet_am=$value; }
|
||||
function GetVersendet_Am() { return $this->versendet_am; }
|
||||
function SetVersendet_Per($value) { $this->versendet_per=$value; }
|
||||
function GetVersendet_Per() { return $this->versendet_per; }
|
||||
function SetVersendet_Durch($value) { $this->versendet_durch=$value; }
|
||||
function GetVersendet_Durch() { return $this->versendet_durch; }
|
||||
function SetInbearbeitung_User($value) { $this->inbearbeitung_user=$value; }
|
||||
function GetInbearbeitung_User() { return $this->inbearbeitung_user; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
function SetOhne_Briefpapier($value) { $this->ohne_briefpapier=$value; }
|
||||
function GetOhne_Briefpapier() { return $this->ohne_briefpapier; }
|
||||
function SetUsereditid($value) { $this->usereditid=$value; }
|
||||
function GetUsereditid() { return $this->usereditid; }
|
||||
function SetUseredittimestamp($value) { $this->useredittimestamp=$value; }
|
||||
function GetUseredittimestamp() { return $this->useredittimestamp; }
|
||||
function SetSteuersatz_Normal($value) { $this->steuersatz_normal=$value; }
|
||||
function GetSteuersatz_Normal() { return $this->steuersatz_normal; }
|
||||
function SetSchreibschutz($value) { $this->schreibschutz=$value; }
|
||||
function GetSchreibschutz() { return $this->schreibschutz; }
|
||||
function SetNoprice($value) { $this->noprice=$value; }
|
||||
function GetNoprice() { return $this->noprice; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,191 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenInventur_Position
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $inventur;
|
||||
private $artikel;
|
||||
private $projekt;
|
||||
private $nummer;
|
||||
private $bezeichnung;
|
||||
private $beschreibung;
|
||||
private $internerkommentar;
|
||||
private $menge;
|
||||
private $sort;
|
||||
private $bemerkung;
|
||||
private $preis;
|
||||
private $logdatei;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM inventur_position WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->inventur=$result['inventur'];
|
||||
$this->artikel=$result['artikel'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->nummer=$result['nummer'];
|
||||
$this->bezeichnung=$result['bezeichnung'];
|
||||
$this->beschreibung=$result['beschreibung'];
|
||||
$this->internerkommentar=$result['internerkommentar'];
|
||||
$this->menge=$result['menge'];
|
||||
$this->sort=$result['sort'];
|
||||
$this->bemerkung=$result['bemerkung'];
|
||||
$this->preis=$result['preis'];
|
||||
$this->logdatei=$result['logdatei'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO inventur_position (id,inventur,artikel,projekt,nummer,bezeichnung,beschreibung,internerkommentar,menge,sort,bemerkung,preis,logdatei)
|
||||
VALUES('','{$this->inventur}','{$this->artikel}','{$this->projekt}','{$this->nummer}','{$this->bezeichnung}','{$this->beschreibung}','{$this->internerkommentar}','{$this->menge}','{$this->sort}','{$this->bemerkung}','{$this->preis}','{$this->logdatei}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE inventur_position SET
|
||||
inventur='{$this->inventur}',
|
||||
artikel='{$this->artikel}',
|
||||
projekt='{$this->projekt}',
|
||||
nummer='{$this->nummer}',
|
||||
bezeichnung='{$this->bezeichnung}',
|
||||
beschreibung='{$this->beschreibung}',
|
||||
internerkommentar='{$this->internerkommentar}',
|
||||
menge='{$this->menge}',
|
||||
sort='{$this->sort}',
|
||||
bemerkung='{$this->bemerkung}',
|
||||
preis='{$this->preis}',
|
||||
logdatei='{$this->logdatei}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM inventur_position WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->inventur="";
|
||||
$this->artikel="";
|
||||
$this->projekt="";
|
||||
$this->nummer="";
|
||||
$this->bezeichnung="";
|
||||
$this->beschreibung="";
|
||||
$this->internerkommentar="";
|
||||
$this->menge="";
|
||||
$this->sort="";
|
||||
$this->bemerkung="";
|
||||
$this->preis="";
|
||||
$this->logdatei="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetInventur($value) { $this->inventur=$value; }
|
||||
function GetInventur() { return $this->inventur; }
|
||||
function SetArtikel($value) { $this->artikel=$value; }
|
||||
function GetArtikel() { return $this->artikel; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetNummer($value) { $this->nummer=$value; }
|
||||
function GetNummer() { return $this->nummer; }
|
||||
function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
function GetBezeichnung() { return $this->bezeichnung; }
|
||||
function SetBeschreibung($value) { $this->beschreibung=$value; }
|
||||
function GetBeschreibung() { return $this->beschreibung; }
|
||||
function SetInternerkommentar($value) { $this->internerkommentar=$value; }
|
||||
function GetInternerkommentar() { return $this->internerkommentar; }
|
||||
function SetMenge($value) { $this->menge=$value; }
|
||||
function GetMenge() { return $this->menge; }
|
||||
function SetSort($value) { $this->sort=$value; }
|
||||
function GetSort() { return $this->sort; }
|
||||
function SetBemerkung($value) { $this->bemerkung=$value; }
|
||||
function GetBemerkung() { return $this->bemerkung; }
|
||||
function SetPreis($value) { $this->preis=$value; }
|
||||
function GetPreis() { return $this->preis; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,143 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenInventur_Protokoll
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $inventur;
|
||||
private $zeit;
|
||||
private $bearbeiter;
|
||||
private $grund;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM inventur_protokoll WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->inventur=$result[inventur];
|
||||
$this->zeit=$result[zeit];
|
||||
$this->bearbeiter=$result[bearbeiter];
|
||||
$this->grund=$result[grund];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO inventur_protokoll (id,inventur,zeit,bearbeiter,grund)
|
||||
VALUES('','{$this->inventur}','{$this->zeit}','{$this->bearbeiter}','{$this->grund}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE inventur_protokoll SET
|
||||
inventur='{$this->inventur}',
|
||||
zeit='{$this->zeit}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
grund='{$this->grund}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM inventur_protokoll WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->inventur="";
|
||||
$this->zeit="";
|
||||
$this->bearbeiter="";
|
||||
$this->grund="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetInventur($value) { $this->inventur=$value; }
|
||||
function GetInventur() { return $this->inventur; }
|
||||
function SetZeit($value) { $this->zeit=$value; }
|
||||
function GetZeit() { return $this->zeit; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetGrund($value) { $this->grund=$value; }
|
||||
function GetGrund() { return $this->grund; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,161 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenJqcalendar
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $adresse;
|
||||
private $titel;
|
||||
private $beschreibung;
|
||||
private $ort;
|
||||
private $von;
|
||||
private $bis;
|
||||
private $public;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM jqcalendar WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->adresse=$result[adresse];
|
||||
$this->titel=$result[titel];
|
||||
$this->beschreibung=$result[beschreibung];
|
||||
$this->ort=$result[ort];
|
||||
$this->von=$result[von];
|
||||
$this->bis=$result[bis];
|
||||
$this->public=$result['public'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO jqcalendar (id,adresse,titel,beschreibung,ort,von,bis,public)
|
||||
VALUES('','{$this->adresse}','{$this->titel}','{$this->beschreibung}','{$this->ort}','{$this->von}','{$this->bis}','{$this->public}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE jqcalendar SET
|
||||
adresse='{$this->adresse}',
|
||||
titel='{$this->titel}',
|
||||
beschreibung='{$this->beschreibung}',
|
||||
ort='{$this->ort}',
|
||||
von='{$this->von}',
|
||||
bis='{$this->bis}',
|
||||
public='{$this->public}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM jqcalendar WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->adresse="";
|
||||
$this->titel="";
|
||||
$this->beschreibung="";
|
||||
$this->ort="";
|
||||
$this->von="";
|
||||
$this->bis="";
|
||||
$this->public="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetTitel($value) { $this->titel=$value; }
|
||||
function GetTitel() { return $this->titel; }
|
||||
function SetBeschreibung($value) { $this->beschreibung=$value; }
|
||||
function GetBeschreibung() { return $this->beschreibung; }
|
||||
function SetOrt($value) { $this->ort=$value; }
|
||||
function GetOrt() { return $this->ort; }
|
||||
function SetVon($value) { $this->von=$value; }
|
||||
function GetVon() { return $this->von; }
|
||||
function SetBis($value) { $this->bis=$value; }
|
||||
function GetBis() { return $this->bis; }
|
||||
function SetPublic($value) { $this->public=$value; }
|
||||
function GetPublic() { return $this->public; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,131 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenKalender
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $name;
|
||||
private $farbe;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM kalender WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->name=$result[name];
|
||||
$this->farbe=$result[farbe];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO kalender (id,name,farbe)
|
||||
VALUES('','{$this->name}','{$this->farbe}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE kalender SET
|
||||
name='{$this->name}',
|
||||
farbe='{$this->farbe}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM kalender WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->name="";
|
||||
$this->farbe="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetName($value) { $this->name=$value; }
|
||||
function GetName() { return $this->name; }
|
||||
function SetFarbe($value) { $this->farbe=$value; }
|
||||
function GetFarbe() { return $this->farbe; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenKalender_Event
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $kalender;
|
||||
private $bezeichnung;
|
||||
private $beschreibung;
|
||||
private $von;
|
||||
private $bis;
|
||||
private $allDay;
|
||||
private $color;
|
||||
private $public;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM kalender_event WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->kalender=$result[kalender];
|
||||
$this->bezeichnung=$result[bezeichnung];
|
||||
$this->beschreibung=$result[beschreibung];
|
||||
$this->von=$result[von];
|
||||
$this->bis=$result[bis];
|
||||
$this->allDay=$result[allDay];
|
||||
$this->color=$result[color];
|
||||
$this->public=$result['public'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO kalender_event (id,kalender,bezeichnung,beschreibung,von,bis,allDay,color,public)
|
||||
VALUES('','{$this->kalender}','{$this->bezeichnung}','{$this->beschreibung}','{$this->von}','{$this->bis}','{$this->allDay}','{$this->color}','{$this->public}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE kalender_event SET
|
||||
kalender='{$this->kalender}',
|
||||
bezeichnung='{$this->bezeichnung}',
|
||||
beschreibung='{$this->beschreibung}',
|
||||
von='{$this->von}',
|
||||
bis='{$this->bis}',
|
||||
allDay='{$this->allDay}',
|
||||
color='{$this->color}',
|
||||
public='{$this->public}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM kalender_event WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->kalender="";
|
||||
$this->bezeichnung="";
|
||||
$this->beschreibung="";
|
||||
$this->von="";
|
||||
$this->bis="";
|
||||
$this->allDay="";
|
||||
$this->color="";
|
||||
$this->public="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetKalender($value) { $this->kalender=$value; }
|
||||
function GetKalender() { return $this->kalender; }
|
||||
function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
function GetBezeichnung() { return $this->bezeichnung; }
|
||||
function SetBeschreibung($value) { $this->beschreibung=$value; }
|
||||
function GetBeschreibung() { return $this->beschreibung; }
|
||||
function SetVon($value) { $this->von=$value; }
|
||||
function GetVon() { return $this->von; }
|
||||
function SetBis($value) { $this->bis=$value; }
|
||||
function GetBis() { return $this->bis; }
|
||||
function SetAllday($value) { $this->allDay=$value; }
|
||||
function GetAllday() { return $this->allDay; }
|
||||
function SetColor($value) { $this->color=$value; }
|
||||
function GetColor() { return $this->color; }
|
||||
function SetPublic($value) { $this->public=$value; }
|
||||
function GetPublic() { return $this->public; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
@@ -0,0 +1,131 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenKalender_User
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $event;
|
||||
private $userid;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM kalender_user WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->event=$result[event];
|
||||
$this->userid=$result[userid];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO kalender_user (id,event,userid)
|
||||
VALUES('','{$this->event}','{$this->userid}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE kalender_user SET
|
||||
event='{$this->event}',
|
||||
userid='{$this->userid}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM kalender_user WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->event="";
|
||||
$this->userid="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetEvent($value) { $this->event=$value; }
|
||||
function GetEvent() { return $this->event; }
|
||||
function SetUserid($value) { $this->userid=$value; }
|
||||
function GetUserid() { return $this->userid; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
@@ -0,0 +1,251 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenKalkulation_Position
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $kalkulation;
|
||||
private $kalkulationart;
|
||||
private $artikel;
|
||||
private $projekt;
|
||||
private $bezeichnung;
|
||||
private $beschreibung;
|
||||
private $internerkommentar;
|
||||
private $nummer;
|
||||
private $verrechnungsart;
|
||||
private $menge;
|
||||
private $datum;
|
||||
private $von;
|
||||
private $bis;
|
||||
private $sort;
|
||||
private $status;
|
||||
private $bemerkung;
|
||||
private $betrag;
|
||||
private $abrechnen;
|
||||
private $abgerechnet;
|
||||
private $abgerechnet_objekt;
|
||||
private $abgerechnet_parameter;
|
||||
private $logdatei;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM kalkulation_position WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->kalkulation=$result['kalkulation'];
|
||||
$this->kalkulationart=$result['kalkulationart'];
|
||||
$this->artikel=$result['artikel'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->bezeichnung=$result['bezeichnung'];
|
||||
$this->beschreibung=$result['beschreibung'];
|
||||
$this->internerkommentar=$result['internerkommentar'];
|
||||
$this->nummer=$result['nummer'];
|
||||
$this->verrechnungsart=$result['verrechnungsart'];
|
||||
$this->menge=$result['menge'];
|
||||
$this->datum=$result['datum'];
|
||||
$this->von=$result['von'];
|
||||
$this->bis=$result['bis'];
|
||||
$this->sort=$result['sort'];
|
||||
$this->status=$result['status'];
|
||||
$this->bemerkung=$result['bemerkung'];
|
||||
$this->betrag=$result['betrag'];
|
||||
$this->abrechnen=$result['abrechnen'];
|
||||
$this->abgerechnet=$result['abgerechnet'];
|
||||
$this->abgerechnet_objekt=$result['abgerechnet_objekt'];
|
||||
$this->abgerechnet_parameter=$result['abgerechnet_parameter'];
|
||||
$this->logdatei=$result['logdatei'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO kalkulation_position (id,kalkulation,kalkulationart,artikel,projekt,bezeichnung,beschreibung,internerkommentar,nummer,verrechnungsart,menge,datum,von,bis,sort,status,bemerkung,betrag,abrechnen,abgerechnet,abgerechnet_objekt,abgerechnet_parameter,logdatei)
|
||||
VALUES('','{$this->kalkulation}','{$this->kalkulationart}','{$this->artikel}','{$this->projekt}','{$this->bezeichnung}','{$this->beschreibung}','{$this->internerkommentar}','{$this->nummer}','{$this->verrechnungsart}','{$this->menge}','{$this->datum}','{$this->von}','{$this->bis}','{$this->sort}','{$this->status}','{$this->bemerkung}','{$this->betrag}','{$this->abrechnen}','{$this->abgerechnet}','{$this->abgerechnet_objekt}','{$this->abgerechnet_parameter}','{$this->logdatei}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE kalkulation_position SET
|
||||
kalkulation='{$this->kalkulation}',
|
||||
kalkulationart='{$this->kalkulationart}',
|
||||
artikel='{$this->artikel}',
|
||||
projekt='{$this->projekt}',
|
||||
bezeichnung='{$this->bezeichnung}',
|
||||
beschreibung='{$this->beschreibung}',
|
||||
internerkommentar='{$this->internerkommentar}',
|
||||
nummer='{$this->nummer}',
|
||||
verrechnungsart='{$this->verrechnungsart}',
|
||||
menge='{$this->menge}',
|
||||
datum='{$this->datum}',
|
||||
von='{$this->von}',
|
||||
bis='{$this->bis}',
|
||||
sort='{$this->sort}',
|
||||
status='{$this->status}',
|
||||
bemerkung='{$this->bemerkung}',
|
||||
betrag='{$this->betrag}',
|
||||
abrechnen='{$this->abrechnen}',
|
||||
abgerechnet='{$this->abgerechnet}',
|
||||
abgerechnet_objekt='{$this->abgerechnet_objekt}',
|
||||
abgerechnet_parameter='{$this->abgerechnet_parameter}',
|
||||
logdatei='{$this->logdatei}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM kalkulation_position WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->kalkulation="";
|
||||
$this->kalkulationart="";
|
||||
$this->artikel="";
|
||||
$this->projekt="";
|
||||
$this->bezeichnung="";
|
||||
$this->beschreibung="";
|
||||
$this->internerkommentar="";
|
||||
$this->nummer="";
|
||||
$this->verrechnungsart="";
|
||||
$this->menge="";
|
||||
$this->datum="";
|
||||
$this->von="";
|
||||
$this->bis="";
|
||||
$this->sort="";
|
||||
$this->status="";
|
||||
$this->bemerkung="";
|
||||
$this->betrag="";
|
||||
$this->abrechnen="";
|
||||
$this->abgerechnet="";
|
||||
$this->abgerechnet_objekt="";
|
||||
$this->abgerechnet_parameter="";
|
||||
$this->logdatei="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetKalkulation($value) { $this->kalkulation=$value; }
|
||||
function GetKalkulation() { return $this->kalkulation; }
|
||||
function SetKalkulationart($value) { $this->kalkulationart=$value; }
|
||||
function GetKalkulationart() { return $this->kalkulationart; }
|
||||
function SetArtikel($value) { $this->artikel=$value; }
|
||||
function GetArtikel() { return $this->artikel; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
function GetBezeichnung() { return $this->bezeichnung; }
|
||||
function SetBeschreibung($value) { $this->beschreibung=$value; }
|
||||
function GetBeschreibung() { return $this->beschreibung; }
|
||||
function SetInternerkommentar($value) { $this->internerkommentar=$value; }
|
||||
function GetInternerkommentar() { return $this->internerkommentar; }
|
||||
function SetNummer($value) { $this->nummer=$value; }
|
||||
function GetNummer() { return $this->nummer; }
|
||||
function SetVerrechnungsart($value) { $this->verrechnungsart=$value; }
|
||||
function GetVerrechnungsart() { return $this->verrechnungsart; }
|
||||
function SetMenge($value) { $this->menge=$value; }
|
||||
function GetMenge() { return $this->menge; }
|
||||
function SetDatum($value) { $this->datum=$value; }
|
||||
function GetDatum() { return $this->datum; }
|
||||
function SetVon($value) { $this->von=$value; }
|
||||
function GetVon() { return $this->von; }
|
||||
function SetBis($value) { $this->bis=$value; }
|
||||
function GetBis() { return $this->bis; }
|
||||
function SetSort($value) { $this->sort=$value; }
|
||||
function GetSort() { return $this->sort; }
|
||||
function SetStatus($value) { $this->status=$value; }
|
||||
function GetStatus() { return $this->status; }
|
||||
function SetBemerkung($value) { $this->bemerkung=$value; }
|
||||
function GetBemerkung() { return $this->bemerkung; }
|
||||
function SetBetrag($value) { $this->betrag=$value; }
|
||||
function GetBetrag() { return $this->betrag; }
|
||||
function SetAbrechnen($value) { $this->abrechnen=$value; }
|
||||
function GetAbrechnen() { return $this->abrechnen; }
|
||||
function SetAbgerechnet($value) { $this->abgerechnet=$value; }
|
||||
function GetAbgerechnet() { return $this->abgerechnet; }
|
||||
function SetAbgerechnet_Objekt($value) { $this->abgerechnet_objekt=$value; }
|
||||
function GetAbgerechnet_Objekt() { return $this->abgerechnet_objekt; }
|
||||
function SetAbgerechnet_Parameter($value) { $this->abgerechnet_parameter=$value; }
|
||||
function GetAbgerechnet_Parameter() { return $this->abgerechnet_parameter; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,293 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenKasse
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $datum;
|
||||
private $auswahl;
|
||||
private $betrag;
|
||||
private $adresse;
|
||||
private $grund;
|
||||
private $projekt;
|
||||
private $bearbeiter;
|
||||
private $steuergruppe;
|
||||
private $exportiert;
|
||||
private $exportiert_datum;
|
||||
private $firma;
|
||||
private $logdatei;
|
||||
private $konto;
|
||||
private $nummer;
|
||||
private $wert;
|
||||
private $steuersatz;
|
||||
private $betrag_brutto_normal;
|
||||
private $betrag_steuer_normal;
|
||||
private $betrag_brutto_ermaessigt;
|
||||
private $betrag_steuer_ermaessigt;
|
||||
private $betrag_brutto_befreit;
|
||||
private $betrag_steuer_befreit;
|
||||
private $tagesabschluss;
|
||||
private $storniert;
|
||||
private $storniert_grund;
|
||||
private $storniert_bearbeiter;
|
||||
private $sachkonto;
|
||||
private $bemerkung;
|
||||
private $belegdatum;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM kasse WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->datum=$result['datum'];
|
||||
$this->auswahl=$result['auswahl'];
|
||||
$this->betrag=$result['betrag'];
|
||||
$this->adresse=$result['adresse'];
|
||||
$this->grund=$result['grund'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->bearbeiter=$result['bearbeiter'];
|
||||
$this->steuergruppe=$result['steuergruppe'];
|
||||
$this->exportiert=$result['exportiert'];
|
||||
$this->exportiert_datum=$result['exportiert_datum'];
|
||||
$this->firma=$result['firma'];
|
||||
$this->logdatei=$result['logdatei'];
|
||||
$this->konto=$result['konto'];
|
||||
$this->nummer=$result['nummer'];
|
||||
$this->wert=$result['wert'];
|
||||
$this->steuersatz=$result['steuersatz'];
|
||||
$this->betrag_brutto_normal=$result['betrag_brutto_normal'];
|
||||
$this->betrag_steuer_normal=$result['betrag_steuer_normal'];
|
||||
$this->betrag_brutto_ermaessigt=$result['betrag_brutto_ermaessigt'];
|
||||
$this->betrag_steuer_ermaessigt=$result['betrag_steuer_ermaessigt'];
|
||||
$this->betrag_brutto_befreit=$result['betrag_brutto_befreit'];
|
||||
$this->betrag_steuer_befreit=$result['betrag_steuer_befreit'];
|
||||
$this->tagesabschluss=$result['tagesabschluss'];
|
||||
$this->storniert=$result['storniert'];
|
||||
$this->storniert_grund=$result['storniert_grund'];
|
||||
$this->storniert_bearbeiter=$result['storniert_bearbeiter'];
|
||||
$this->sachkonto=$result['sachkonto'];
|
||||
$this->bemerkung=$result['bemerkung'];
|
||||
$this->belegdatum=$result['belegdatum'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO kasse (id,datum,auswahl,betrag,adresse,grund,projekt,bearbeiter,steuergruppe,exportiert,exportiert_datum,firma,logdatei,konto,nummer,wert,steuersatz,betrag_brutto_normal,betrag_steuer_normal,betrag_brutto_ermaessigt,betrag_steuer_ermaessigt,betrag_brutto_befreit,betrag_steuer_befreit,tagesabschluss,storniert,storniert_grund,storniert_bearbeiter,sachkonto,bemerkung,belegdatum)
|
||||
VALUES('','{$this->datum}','{$this->auswahl}','{$this->betrag}','{$this->adresse}','{$this->grund}','{$this->projekt}','{$this->bearbeiter}','{$this->steuergruppe}','{$this->exportiert}','{$this->exportiert_datum}','{$this->firma}','{$this->logdatei}','{$this->konto}','{$this->nummer}','{$this->wert}','{$this->steuersatz}','{$this->betrag_brutto_normal}','{$this->betrag_steuer_normal}','{$this->betrag_brutto_ermaessigt}','{$this->betrag_steuer_ermaessigt}','{$this->betrag_brutto_befreit}','{$this->betrag_steuer_befreit}','{$this->tagesabschluss}','{$this->storniert}','{$this->storniert_grund}','{$this->storniert_bearbeiter}','{$this->sachkonto}','{$this->bemerkung}','{$this->belegdatum}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE kasse SET
|
||||
datum='{$this->datum}',
|
||||
auswahl='{$this->auswahl}',
|
||||
betrag='{$this->betrag}',
|
||||
adresse='{$this->adresse}',
|
||||
grund='{$this->grund}',
|
||||
projekt='{$this->projekt}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
steuergruppe='{$this->steuergruppe}',
|
||||
exportiert='{$this->exportiert}',
|
||||
exportiert_datum='{$this->exportiert_datum}',
|
||||
firma='{$this->firma}',
|
||||
logdatei='{$this->logdatei}',
|
||||
konto='{$this->konto}',
|
||||
nummer='{$this->nummer}',
|
||||
wert='{$this->wert}',
|
||||
steuersatz='{$this->steuersatz}',
|
||||
betrag_brutto_normal='{$this->betrag_brutto_normal}',
|
||||
betrag_steuer_normal='{$this->betrag_steuer_normal}',
|
||||
betrag_brutto_ermaessigt='{$this->betrag_brutto_ermaessigt}',
|
||||
betrag_steuer_ermaessigt='{$this->betrag_steuer_ermaessigt}',
|
||||
betrag_brutto_befreit='{$this->betrag_brutto_befreit}',
|
||||
betrag_steuer_befreit='{$this->betrag_steuer_befreit}',
|
||||
tagesabschluss='{$this->tagesabschluss}',
|
||||
storniert='{$this->storniert}',
|
||||
storniert_grund='{$this->storniert_grund}',
|
||||
storniert_bearbeiter='{$this->storniert_bearbeiter}',
|
||||
sachkonto='{$this->sachkonto}',
|
||||
bemerkung='{$this->bemerkung}',
|
||||
belegdatum='{$this->belegdatum}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM kasse WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->datum="";
|
||||
$this->auswahl="";
|
||||
$this->betrag="";
|
||||
$this->adresse="";
|
||||
$this->grund="";
|
||||
$this->projekt="";
|
||||
$this->bearbeiter="";
|
||||
$this->steuergruppe="";
|
||||
$this->exportiert="";
|
||||
$this->exportiert_datum="";
|
||||
$this->firma="";
|
||||
$this->logdatei="";
|
||||
$this->konto="";
|
||||
$this->nummer="";
|
||||
$this->wert="";
|
||||
$this->steuersatz="";
|
||||
$this->betrag_brutto_normal="";
|
||||
$this->betrag_steuer_normal="";
|
||||
$this->betrag_brutto_ermaessigt="";
|
||||
$this->betrag_steuer_ermaessigt="";
|
||||
$this->betrag_brutto_befreit="";
|
||||
$this->betrag_steuer_befreit="";
|
||||
$this->tagesabschluss="";
|
||||
$this->storniert="";
|
||||
$this->storniert_grund="";
|
||||
$this->storniert_bearbeiter="";
|
||||
$this->sachkonto="";
|
||||
$this->bemerkung="";
|
||||
$this->belegdatum="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetDatum($value) { $this->datum=$value; }
|
||||
function GetDatum() { return $this->datum; }
|
||||
function SetAuswahl($value) { $this->auswahl=$value; }
|
||||
function GetAuswahl() { return $this->auswahl; }
|
||||
function SetBetrag($value) { $this->betrag=$value; }
|
||||
function GetBetrag() { return $this->betrag; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetGrund($value) { $this->grund=$value; }
|
||||
function GetGrund() { return $this->grund; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetSteuergruppe($value) { $this->steuergruppe=$value; }
|
||||
function GetSteuergruppe() { return $this->steuergruppe; }
|
||||
function SetExportiert($value) { $this->exportiert=$value; }
|
||||
function GetExportiert() { return $this->exportiert; }
|
||||
function SetExportiert_Datum($value) { $this->exportiert_datum=$value; }
|
||||
function GetExportiert_Datum() { return $this->exportiert_datum; }
|
||||
function SetFirma($value) { $this->firma=$value; }
|
||||
function GetFirma() { return $this->firma; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
function SetKonto($value) { $this->konto=$value; }
|
||||
function GetKonto() { return $this->konto; }
|
||||
function SetNummer($value) { $this->nummer=$value; }
|
||||
function GetNummer() { return $this->nummer; }
|
||||
function SetWert($value) { $this->wert=$value; }
|
||||
function GetWert() { return $this->wert; }
|
||||
function SetSteuersatz($value) { $this->steuersatz=$value; }
|
||||
function GetSteuersatz() { return $this->steuersatz; }
|
||||
function SetBetrag_Brutto_Normal($value) { $this->betrag_brutto_normal=$value; }
|
||||
function GetBetrag_Brutto_Normal() { return $this->betrag_brutto_normal; }
|
||||
function SetBetrag_Steuer_Normal($value) { $this->betrag_steuer_normal=$value; }
|
||||
function GetBetrag_Steuer_Normal() { return $this->betrag_steuer_normal; }
|
||||
function SetBetrag_Brutto_Ermaessigt($value) { $this->betrag_brutto_ermaessigt=$value; }
|
||||
function GetBetrag_Brutto_Ermaessigt() { return $this->betrag_brutto_ermaessigt; }
|
||||
function SetBetrag_Steuer_Ermaessigt($value) { $this->betrag_steuer_ermaessigt=$value; }
|
||||
function GetBetrag_Steuer_Ermaessigt() { return $this->betrag_steuer_ermaessigt; }
|
||||
function SetBetrag_Brutto_Befreit($value) { $this->betrag_brutto_befreit=$value; }
|
||||
function GetBetrag_Brutto_Befreit() { return $this->betrag_brutto_befreit; }
|
||||
function SetBetrag_Steuer_Befreit($value) { $this->betrag_steuer_befreit=$value; }
|
||||
function GetBetrag_Steuer_Befreit() { return $this->betrag_steuer_befreit; }
|
||||
function SetTagesabschluss($value) { $this->tagesabschluss=$value; }
|
||||
function GetTagesabschluss() { return $this->tagesabschluss; }
|
||||
function SetStorniert($value) { $this->storniert=$value; }
|
||||
function GetStorniert() { return $this->storniert; }
|
||||
function SetStorniert_Grund($value) { $this->storniert_grund=$value; }
|
||||
function GetStorniert_Grund() { return $this->storniert_grund; }
|
||||
function SetStorniert_Bearbeiter($value) { $this->storniert_bearbeiter=$value; }
|
||||
function GetStorniert_Bearbeiter() { return $this->storniert_bearbeiter; }
|
||||
function SetSachkonto($value) { $this->sachkonto=$value; }
|
||||
function GetSachkonto() { return $this->sachkonto; }
|
||||
function SetBemerkung($value) { $this->bemerkung=$value; }
|
||||
function GetBemerkung() { return $this->bemerkung; }
|
||||
function SetBelegdatum($value) { $this->belegdatum=$value; }
|
||||
function GetBelegdatum() { return $this->belegdatum; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,124 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenKonfiguration
|
||||
{
|
||||
|
||||
private $name;
|
||||
private $wert;
|
||||
private $adresse;
|
||||
private $firma;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($name)
|
||||
{
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM konfiguration WHERE (name = '$name')");
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->name=$result[name];
|
||||
$this->wert=$result[wert];
|
||||
$this->adresse=$result[adresse];
|
||||
$this->firma=$result[firma];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO konfiguration (name,wert,adresse,firma)
|
||||
VALUES('{$this->name}','{$this->wert}','{$this->adresse}','{$this->firma}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
$sql = "UPDATE konfiguration SET
|
||||
wert='{$this->wert}',
|
||||
adresse='{$this->adresse}',
|
||||
firma='{$this->firma}'
|
||||
WHERE (name='{$this->name}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($name="")
|
||||
{
|
||||
$sql = "DELETE FROM konfiguration WHERE (name='{$this->name}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->name="";
|
||||
$this->wert="";
|
||||
$this->adresse="";
|
||||
$this->firma="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->name = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetName($value) { $this->name=$value; }
|
||||
function GetName() { return $this->name; }
|
||||
function SetWert($value) { $this->wert=$value; }
|
||||
function GetWert() { return $this->wert; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetFirma($value) { $this->firma=$value; }
|
||||
function GetFirma() { return $this->firma; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,227 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenKontoauszuege
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $konto;
|
||||
private $buchung;
|
||||
private $vorgang;
|
||||
private $soll;
|
||||
private $haben;
|
||||
private $gebuehr;
|
||||
private $waehrung;
|
||||
private $fertig;
|
||||
private $datev_abgeschlossen;
|
||||
private $buchungstext;
|
||||
private $gegenkonto;
|
||||
private $belegfeld1;
|
||||
private $bearbeiter;
|
||||
private $mailbenachrichtigung;
|
||||
private $pruefsumme;
|
||||
private $internebemerkung;
|
||||
private $importfehler;
|
||||
private $importgroup;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM kontoauszuege WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->konto=$result[konto];
|
||||
$this->buchung=$result[buchung];
|
||||
$this->vorgang=$result[vorgang];
|
||||
$this->soll=$result[soll];
|
||||
$this->haben=$result[haben];
|
||||
$this->gebuehr=$result[gebuehr];
|
||||
$this->waehrung=$result[waehrung];
|
||||
$this->fertig=$result[fertig];
|
||||
$this->datev_abgeschlossen=$result[datev_abgeschlossen];
|
||||
$this->buchungstext=$result[buchungstext];
|
||||
$this->gegenkonto=$result[gegenkonto];
|
||||
$this->belegfeld1=$result[belegfeld1];
|
||||
$this->bearbeiter=$result[bearbeiter];
|
||||
$this->mailbenachrichtigung=$result[mailbenachrichtigung];
|
||||
$this->pruefsumme=$result[pruefsumme];
|
||||
$this->internebemerkung=$result[internebemerkung];
|
||||
$this->importfehler=$result[importfehler];
|
||||
$this->importgroup=$result[importgroup];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO kontoauszuege (id,konto,buchung,vorgang,soll,haben,gebuehr,waehrung,fertig,datev_abgeschlossen,buchungstext,gegenkonto,belegfeld1,bearbeiter,mailbenachrichtigung,pruefsumme,internebemerkung,importfehler,importgroup)
|
||||
VALUES('','{$this->konto}','{$this->buchung}','{$this->vorgang}','{$this->soll}','{$this->haben}','{$this->gebuehr}','{$this->waehrung}','{$this->fertig}','{$this->datev_abgeschlossen}','{$this->buchungstext}','{$this->gegenkonto}','{$this->belegfeld1}','{$this->bearbeiter}','{$this->mailbenachrichtigung}','{$this->pruefsumme}','{$this->internebemerkung}','{$this->importfehler}','{$this->importgroup}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE kontoauszuege SET
|
||||
konto='{$this->konto}',
|
||||
buchung='{$this->buchung}',
|
||||
vorgang='{$this->vorgang}',
|
||||
soll='{$this->soll}',
|
||||
haben='{$this->haben}',
|
||||
gebuehr='{$this->gebuehr}',
|
||||
waehrung='{$this->waehrung}',
|
||||
fertig='{$this->fertig}',
|
||||
datev_abgeschlossen='{$this->datev_abgeschlossen}',
|
||||
buchungstext='{$this->buchungstext}',
|
||||
gegenkonto='{$this->gegenkonto}',
|
||||
belegfeld1='{$this->belegfeld1}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
mailbenachrichtigung='{$this->mailbenachrichtigung}',
|
||||
pruefsumme='{$this->pruefsumme}',
|
||||
internebemerkung='{$this->internebemerkung}',
|
||||
importfehler='{$this->importfehler}',
|
||||
importgroup='{$this->importgroup}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM kontoauszuege WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->konto="";
|
||||
$this->buchung="";
|
||||
$this->vorgang="";
|
||||
$this->soll="";
|
||||
$this->haben="";
|
||||
$this->gebuehr="";
|
||||
$this->waehrung="";
|
||||
$this->fertig="";
|
||||
$this->datev_abgeschlossen="";
|
||||
$this->buchungstext="";
|
||||
$this->gegenkonto="";
|
||||
$this->belegfeld1="";
|
||||
$this->bearbeiter="";
|
||||
$this->mailbenachrichtigung="";
|
||||
$this->pruefsumme="";
|
||||
$this->internebemerkung="";
|
||||
$this->importfehler="";
|
||||
$this->importgroup="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetKonto($value) { $this->konto=$value; }
|
||||
function GetKonto() { return $this->konto; }
|
||||
function SetBuchung($value) { $this->buchung=$value; }
|
||||
function GetBuchung() { return $this->buchung; }
|
||||
function SetVorgang($value) { $this->vorgang=$value; }
|
||||
function GetVorgang() { return $this->vorgang; }
|
||||
function SetSoll($value) { $this->soll=$value; }
|
||||
function GetSoll() { return $this->soll; }
|
||||
function SetHaben($value) { $this->haben=$value; }
|
||||
function GetHaben() { return $this->haben; }
|
||||
function SetGebuehr($value) { $this->gebuehr=$value; }
|
||||
function GetGebuehr() { return $this->gebuehr; }
|
||||
function SetWaehrung($value) { $this->waehrung=$value; }
|
||||
function GetWaehrung() { return $this->waehrung; }
|
||||
function SetFertig($value) { $this->fertig=$value; }
|
||||
function GetFertig() { return $this->fertig; }
|
||||
function SetDatev_Abgeschlossen($value) { $this->datev_abgeschlossen=$value; }
|
||||
function GetDatev_Abgeschlossen() { return $this->datev_abgeschlossen; }
|
||||
function SetBuchungstext($value) { $this->buchungstext=$value; }
|
||||
function GetBuchungstext() { return $this->buchungstext; }
|
||||
function SetGegenkonto($value) { $this->gegenkonto=$value; }
|
||||
function GetGegenkonto() { return $this->gegenkonto; }
|
||||
function SetBelegfeld1($value) { $this->belegfeld1=$value; }
|
||||
function GetBelegfeld1() { return $this->belegfeld1; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetMailbenachrichtigung($value) { $this->mailbenachrichtigung=$value; }
|
||||
function GetMailbenachrichtigung() { return $this->mailbenachrichtigung; }
|
||||
function SetPruefsumme($value) { $this->pruefsumme=$value; }
|
||||
function GetPruefsumme() { return $this->pruefsumme; }
|
||||
function SetInternebemerkung($value) { $this->internebemerkung=$value; }
|
||||
function GetInternebemerkung() { return $this->internebemerkung; }
|
||||
function SetImportfehler($value) { $this->importfehler=$value; }
|
||||
function GetImportfehler() { return $this->importfehler; }
|
||||
function SetImportgroup($value) { $this->importgroup=$value; }
|
||||
function GetImportgroup() { return $this->importgroup; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,173 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenKontoauszuege_Zahlungsausgang
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $adresse;
|
||||
private $bearbeiter;
|
||||
private $betrag;
|
||||
private $datum;
|
||||
private $objekt;
|
||||
private $parameter;
|
||||
private $kontoauszuege;
|
||||
private $firma;
|
||||
private $abgeschlossen;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM kontoauszuege_zahlungsausgang WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->adresse=$result[adresse];
|
||||
$this->bearbeiter=$result[bearbeiter];
|
||||
$this->betrag=$result[betrag];
|
||||
$this->datum=$result[datum];
|
||||
$this->objekt=$result[objekt];
|
||||
$this->parameter=$result[parameter];
|
||||
$this->kontoauszuege=$result[kontoauszuege];
|
||||
$this->firma=$result[firma];
|
||||
$this->abgeschlossen=$result[abgeschlossen];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO kontoauszuege_zahlungsausgang (id,adresse,bearbeiter,betrag,datum,objekt,parameter,kontoauszuege,firma,abgeschlossen)
|
||||
VALUES('','{$this->adresse}','{$this->bearbeiter}','{$this->betrag}','{$this->datum}','{$this->objekt}','{$this->parameter}','{$this->kontoauszuege}','{$this->firma}','{$this->abgeschlossen}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE kontoauszuege_zahlungsausgang SET
|
||||
adresse='{$this->adresse}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
betrag='{$this->betrag}',
|
||||
datum='{$this->datum}',
|
||||
objekt='{$this->objekt}',
|
||||
parameter='{$this->parameter}',
|
||||
kontoauszuege='{$this->kontoauszuege}',
|
||||
firma='{$this->firma}',
|
||||
abgeschlossen='{$this->abgeschlossen}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM kontoauszuege_zahlungsausgang WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->adresse="";
|
||||
$this->bearbeiter="";
|
||||
$this->betrag="";
|
||||
$this->datum="";
|
||||
$this->objekt="";
|
||||
$this->parameter="";
|
||||
$this->kontoauszuege="";
|
||||
$this->firma="";
|
||||
$this->abgeschlossen="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetBetrag($value) { $this->betrag=$value; }
|
||||
function GetBetrag() { return $this->betrag; }
|
||||
function SetDatum($value) { $this->datum=$value; }
|
||||
function GetDatum() { return $this->datum; }
|
||||
function SetObjekt($value) { $this->objekt=$value; }
|
||||
function GetObjekt() { return $this->objekt; }
|
||||
function SetParameter($value) { $this->parameter=$value; }
|
||||
function GetParameter() { return $this->parameter; }
|
||||
function SetKontoauszuege($value) { $this->kontoauszuege=$value; }
|
||||
function GetKontoauszuege() { return $this->kontoauszuege; }
|
||||
function SetFirma($value) { $this->firma=$value; }
|
||||
function GetFirma() { return $this->firma; }
|
||||
function SetAbgeschlossen($value) { $this->abgeschlossen=$value; }
|
||||
function GetAbgeschlossen() { return $this->abgeschlossen; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,173 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenKontoauszuege_Zahlungseingang
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $adresse;
|
||||
private $bearbeiter;
|
||||
private $betrag;
|
||||
private $datum;
|
||||
private $objekt;
|
||||
private $parameter;
|
||||
private $kontoauszuege;
|
||||
private $firma;
|
||||
private $abgeschlossen;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM kontoauszuege_zahlungseingang WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->adresse=$result[adresse];
|
||||
$this->bearbeiter=$result[bearbeiter];
|
||||
$this->betrag=$result[betrag];
|
||||
$this->datum=$result[datum];
|
||||
$this->objekt=$result[objekt];
|
||||
$this->parameter=$result[parameter];
|
||||
$this->kontoauszuege=$result[kontoauszuege];
|
||||
$this->firma=$result[firma];
|
||||
$this->abgeschlossen=$result[abgeschlossen];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO kontoauszuege_zahlungseingang (id,adresse,bearbeiter,betrag,datum,objekt,parameter,kontoauszuege,firma,abgeschlossen)
|
||||
VALUES('','{$this->adresse}','{$this->bearbeiter}','{$this->betrag}','{$this->datum}','{$this->objekt}','{$this->parameter}','{$this->kontoauszuege}','{$this->firma}','{$this->abgeschlossen}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE kontoauszuege_zahlungseingang SET
|
||||
adresse='{$this->adresse}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
betrag='{$this->betrag}',
|
||||
datum='{$this->datum}',
|
||||
objekt='{$this->objekt}',
|
||||
parameter='{$this->parameter}',
|
||||
kontoauszuege='{$this->kontoauszuege}',
|
||||
firma='{$this->firma}',
|
||||
abgeschlossen='{$this->abgeschlossen}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM kontoauszuege_zahlungseingang WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->adresse="";
|
||||
$this->bearbeiter="";
|
||||
$this->betrag="";
|
||||
$this->datum="";
|
||||
$this->objekt="";
|
||||
$this->parameter="";
|
||||
$this->kontoauszuege="";
|
||||
$this->firma="";
|
||||
$this->abgeschlossen="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetBetrag($value) { $this->betrag=$value; }
|
||||
function GetBetrag() { return $this->betrag; }
|
||||
function SetDatum($value) { $this->datum=$value; }
|
||||
function GetDatum() { return $this->datum; }
|
||||
function SetObjekt($value) { $this->objekt=$value; }
|
||||
function GetObjekt() { return $this->objekt; }
|
||||
function SetParameter($value) { $this->parameter=$value; }
|
||||
function GetParameter() { return $this->parameter; }
|
||||
function SetKontoauszuege($value) { $this->kontoauszuege=$value; }
|
||||
function GetKontoauszuege() { return $this->kontoauszuege; }
|
||||
function SetFirma($value) { $this->firma=$value; }
|
||||
function GetFirma() { return $this->firma; }
|
||||
function SetAbgeschlossen($value) { $this->abgeschlossen=$value; }
|
||||
function GetAbgeschlossen() { return $this->abgeschlossen; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,149 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenKontorahmen
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $sachkonto;
|
||||
private $beschriftung;
|
||||
private $bemerkung;
|
||||
private $ausblenden;
|
||||
private $art;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM kontorahmen WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->sachkonto=$result['sachkonto'];
|
||||
$this->beschriftung=$result['beschriftung'];
|
||||
$this->bemerkung=$result['bemerkung'];
|
||||
$this->ausblenden=$result['ausblenden'];
|
||||
$this->art=$result['art'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO kontorahmen (id,sachkonto,beschriftung,bemerkung,ausblenden,art)
|
||||
VALUES('','{$this->sachkonto}','{$this->beschriftung}','{$this->bemerkung}','{$this->ausblenden}','{$this->art}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE kontorahmen SET
|
||||
sachkonto='{$this->sachkonto}',
|
||||
beschriftung='{$this->beschriftung}',
|
||||
bemerkung='{$this->bemerkung}',
|
||||
ausblenden='{$this->ausblenden}',
|
||||
art='{$this->art}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM kontorahmen WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->sachkonto="";
|
||||
$this->beschriftung="";
|
||||
$this->bemerkung="";
|
||||
$this->ausblenden="";
|
||||
$this->art="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetSachkonto($value) { $this->sachkonto=$value; }
|
||||
function GetSachkonto() { return $this->sachkonto; }
|
||||
function SetBeschriftung($value) { $this->beschriftung=$value; }
|
||||
function GetBeschriftung() { return $this->beschriftung; }
|
||||
function SetBemerkung($value) { $this->bemerkung=$value; }
|
||||
function GetBemerkung() { return $this->bemerkung; }
|
||||
function SetAusblenden($value) { $this->ausblenden=$value; }
|
||||
function GetAusblenden() { return $this->ausblenden; }
|
||||
function SetArt($value) { $this->art=$value; }
|
||||
function GetArt() { return $this->art; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,143 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenKostenstelle
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $bezeichnung;
|
||||
private $projekt;
|
||||
private $verantwortlicher;
|
||||
private $logdatei;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM kostenstelle WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->bezeichnung=$result[bezeichnung];
|
||||
$this->projekt=$result[projekt];
|
||||
$this->verantwortlicher=$result[verantwortlicher];
|
||||
$this->logdatei=$result[logdatei];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO kostenstelle (id,bezeichnung,projekt,verantwortlicher,logdatei)
|
||||
VALUES('','{$this->bezeichnung}','{$this->projekt}','{$this->verantwortlicher}','{$this->logdatei}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE kostenstelle SET
|
||||
bezeichnung='{$this->bezeichnung}',
|
||||
projekt='{$this->projekt}',
|
||||
verantwortlicher='{$this->verantwortlicher}',
|
||||
logdatei='{$this->logdatei}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM kostenstelle WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->bezeichnung="";
|
||||
$this->projekt="";
|
||||
$this->verantwortlicher="";
|
||||
$this->logdatei="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
function GetBezeichnung() { return $this->bezeichnung; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetVerantwortlicher($value) { $this->verantwortlicher=$value; }
|
||||
function GetVerantwortlicher() { return $this->verantwortlicher; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,149 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenKostenstelle_Buchung
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $kostenstelle;
|
||||
private $bearbeiter;
|
||||
private $datum;
|
||||
private $buchungstext;
|
||||
private $sonstiges;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM kostenstelle_buchung WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->kostenstelle=$result[kostenstelle];
|
||||
$this->bearbeiter=$result[bearbeiter];
|
||||
$this->datum=$result[datum];
|
||||
$this->buchungstext=$result[buchungstext];
|
||||
$this->sonstiges=$result[sonstiges];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO kostenstelle_buchung (id,kostenstelle,bearbeiter,datum,buchungstext,sonstiges)
|
||||
VALUES('','{$this->kostenstelle}','{$this->bearbeiter}','{$this->datum}','{$this->buchungstext}','{$this->sonstiges}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE kostenstelle_buchung SET
|
||||
kostenstelle='{$this->kostenstelle}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
datum='{$this->datum}',
|
||||
buchungstext='{$this->buchungstext}',
|
||||
sonstiges='{$this->sonstiges}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM kostenstelle_buchung WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->kostenstelle="";
|
||||
$this->bearbeiter="";
|
||||
$this->datum="";
|
||||
$this->buchungstext="";
|
||||
$this->sonstiges="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetKostenstelle($value) { $this->kostenstelle=$value; }
|
||||
function GetKostenstelle() { return $this->kostenstelle; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetDatum($value) { $this->datum=$value; }
|
||||
function GetDatum() { return $this->datum; }
|
||||
function SetBuchungstext($value) { $this->buchungstext=$value; }
|
||||
function GetBuchungstext() { return $this->buchungstext; }
|
||||
function SetSonstiges($value) { $this->sonstiges=$value; }
|
||||
function GetSonstiges() { return $this->sonstiges; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,137 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenKostenstellen
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $nummer;
|
||||
private $beschreibung;
|
||||
private $internebemerkung;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM kostenstellen WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->nummer=$result[nummer];
|
||||
$this->beschreibung=$result[beschreibung];
|
||||
$this->internebemerkung=$result[internebemerkung];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO kostenstellen (id,nummer,beschreibung,internebemerkung)
|
||||
VALUES('','{$this->nummer}','{$this->beschreibung}','{$this->internebemerkung}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE kostenstellen SET
|
||||
nummer='{$this->nummer}',
|
||||
beschreibung='{$this->beschreibung}',
|
||||
internebemerkung='{$this->internebemerkung}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM kostenstellen WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->nummer="";
|
||||
$this->beschreibung="";
|
||||
$this->internebemerkung="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetNummer($value) { $this->nummer=$value; }
|
||||
function GetNummer() { return $this->nummer; }
|
||||
function SetBeschreibung($value) { $this->beschreibung=$value; }
|
||||
function GetBeschreibung() { return $this->beschreibung; }
|
||||
function SetInternebemerkung($value) { $this->internebemerkung=$value; }
|
||||
function GetInternebemerkung() { return $this->internebemerkung; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,161 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenKundevorlage
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $adresse;
|
||||
private $zahlungsweise;
|
||||
private $zahlungszieltage;
|
||||
private $zahlungszieltageskonto;
|
||||
private $zahlungszielskonto;
|
||||
private $versandart;
|
||||
private $logdatei;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM kundevorlage WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->adresse=$result[adresse];
|
||||
$this->zahlungsweise=$result[zahlungsweise];
|
||||
$this->zahlungszieltage=$result[zahlungszieltage];
|
||||
$this->zahlungszieltageskonto=$result[zahlungszieltageskonto];
|
||||
$this->zahlungszielskonto=$result[zahlungszielskonto];
|
||||
$this->versandart=$result[versandart];
|
||||
$this->logdatei=$result[logdatei];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO kundevorlage (id,adresse,zahlungsweise,zahlungszieltage,zahlungszieltageskonto,zahlungszielskonto,versandart,logdatei)
|
||||
VALUES('','{$this->adresse}','{$this->zahlungsweise}','{$this->zahlungszieltage}','{$this->zahlungszieltageskonto}','{$this->zahlungszielskonto}','{$this->versandart}','{$this->logdatei}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE kundevorlage SET
|
||||
adresse='{$this->adresse}',
|
||||
zahlungsweise='{$this->zahlungsweise}',
|
||||
zahlungszieltage='{$this->zahlungszieltage}',
|
||||
zahlungszieltageskonto='{$this->zahlungszieltageskonto}',
|
||||
zahlungszielskonto='{$this->zahlungszielskonto}',
|
||||
versandart='{$this->versandart}',
|
||||
logdatei='{$this->logdatei}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM kundevorlage WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->adresse="";
|
||||
$this->zahlungsweise="";
|
||||
$this->zahlungszieltage="";
|
||||
$this->zahlungszieltageskonto="";
|
||||
$this->zahlungszielskonto="";
|
||||
$this->versandart="";
|
||||
$this->logdatei="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetZahlungsweise($value) { $this->zahlungsweise=$value; }
|
||||
function GetZahlungsweise() { return $this->zahlungsweise; }
|
||||
function SetZahlungszieltage($value) { $this->zahlungszieltage=$value; }
|
||||
function GetZahlungszieltage() { return $this->zahlungszieltage; }
|
||||
function SetZahlungszieltageskonto($value) { $this->zahlungszieltageskonto=$value; }
|
||||
function GetZahlungszieltageskonto() { return $this->zahlungszieltageskonto; }
|
||||
function SetZahlungszielskonto($value) { $this->zahlungszielskonto=$value; }
|
||||
function GetZahlungszielskonto() { return $this->zahlungszielskonto; }
|
||||
function SetVersandart($value) { $this->versandart=$value; }
|
||||
function GetVersandart() { return $this->versandart; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenLager
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $bezeichnung;
|
||||
private $beschreibung;
|
||||
private $manuell;
|
||||
private $firma;
|
||||
private $geloescht;
|
||||
private $logdatei;
|
||||
private $projekt;
|
||||
private $adresse;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM lager WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->bezeichnung=$result['bezeichnung'];
|
||||
$this->beschreibung=$result['beschreibung'];
|
||||
$this->manuell=$result['manuell'];
|
||||
$this->firma=$result['firma'];
|
||||
$this->geloescht=$result['geloescht'];
|
||||
$this->logdatei=$result['logdatei'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->adresse=$result['adresse'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO lager (id,bezeichnung,beschreibung,manuell,firma,geloescht,logdatei,projekt,adresse)
|
||||
VALUES('','{$this->bezeichnung}','{$this->beschreibung}','{$this->manuell}','{$this->firma}','{$this->geloescht}','{$this->logdatei}','{$this->projekt}','{$this->adresse}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE lager SET
|
||||
bezeichnung='{$this->bezeichnung}',
|
||||
beschreibung='{$this->beschreibung}',
|
||||
manuell='{$this->manuell}',
|
||||
firma='{$this->firma}',
|
||||
geloescht='{$this->geloescht}',
|
||||
logdatei='{$this->logdatei}',
|
||||
projekt='{$this->projekt}',
|
||||
adresse='{$this->adresse}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM lager WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->bezeichnung="";
|
||||
$this->beschreibung="";
|
||||
$this->manuell="";
|
||||
$this->firma="";
|
||||
$this->geloescht="";
|
||||
$this->logdatei="";
|
||||
$this->projekt="";
|
||||
$this->adresse="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetBezeichnung($value) { $this->bezeichnung=$value; }
|
||||
function GetBezeichnung() { return $this->bezeichnung; }
|
||||
function SetBeschreibung($value) { $this->beschreibung=$value; }
|
||||
function GetBeschreibung() { return $this->beschreibung; }
|
||||
function SetManuell($value) { $this->manuell=$value; }
|
||||
function GetManuell() { return $this->manuell; }
|
||||
function SetFirma($value) { $this->firma=$value; }
|
||||
function GetFirma() { return $this->firma; }
|
||||
function SetGeloescht($value) { $this->geloescht=$value; }
|
||||
function GetGeloescht() { return $this->geloescht; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,191 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenLager_Bewegung
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $lager_platz;
|
||||
private $artikel;
|
||||
private $menge;
|
||||
private $vpe;
|
||||
private $eingang;
|
||||
private $zeit;
|
||||
private $referenz;
|
||||
private $bearbeiter;
|
||||
private $projekt;
|
||||
private $firma;
|
||||
private $logdatei;
|
||||
private $adresse;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM lager_bewegung WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->lager_platz=$result[lager_platz];
|
||||
$this->artikel=$result[artikel];
|
||||
$this->menge=$result[menge];
|
||||
$this->vpe=$result[vpe];
|
||||
$this->eingang=$result[eingang];
|
||||
$this->zeit=$result[zeit];
|
||||
$this->referenz=$result[referenz];
|
||||
$this->bearbeiter=$result[bearbeiter];
|
||||
$this->projekt=$result[projekt];
|
||||
$this->firma=$result[firma];
|
||||
$this->logdatei=$result[logdatei];
|
||||
$this->adresse=$result[adresse];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO lager_bewegung (id,lager_platz,artikel,menge,vpe,eingang,zeit,referenz,bearbeiter,projekt,firma,logdatei,adresse)
|
||||
VALUES('','{$this->lager_platz}','{$this->artikel}','{$this->menge}','{$this->vpe}','{$this->eingang}','{$this->zeit}','{$this->referenz}','{$this->bearbeiter}','{$this->projekt}','{$this->firma}','{$this->logdatei}','{$this->adresse}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE lager_bewegung SET
|
||||
lager_platz='{$this->lager_platz}',
|
||||
artikel='{$this->artikel}',
|
||||
menge='{$this->menge}',
|
||||
vpe='{$this->vpe}',
|
||||
eingang='{$this->eingang}',
|
||||
zeit='{$this->zeit}',
|
||||
referenz='{$this->referenz}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
projekt='{$this->projekt}',
|
||||
firma='{$this->firma}',
|
||||
logdatei='{$this->logdatei}',
|
||||
adresse='{$this->adresse}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM lager_bewegung WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->lager_platz="";
|
||||
$this->artikel="";
|
||||
$this->menge="";
|
||||
$this->vpe="";
|
||||
$this->eingang="";
|
||||
$this->zeit="";
|
||||
$this->referenz="";
|
||||
$this->bearbeiter="";
|
||||
$this->projekt="";
|
||||
$this->firma="";
|
||||
$this->logdatei="";
|
||||
$this->adresse="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetLager_Platz($value) { $this->lager_platz=$value; }
|
||||
function GetLager_Platz() { return $this->lager_platz; }
|
||||
function SetArtikel($value) { $this->artikel=$value; }
|
||||
function GetArtikel() { return $this->artikel; }
|
||||
function SetMenge($value) { $this->menge=$value; }
|
||||
function GetMenge() { return $this->menge; }
|
||||
function SetVpe($value) { $this->vpe=$value; }
|
||||
function GetVpe() { return $this->vpe; }
|
||||
function SetEingang($value) { $this->eingang=$value; }
|
||||
function GetEingang() { return $this->eingang; }
|
||||
function SetZeit($value) { $this->zeit=$value; }
|
||||
function GetZeit() { return $this->zeit; }
|
||||
function SetReferenz($value) { $this->referenz=$value; }
|
||||
function GetReferenz() { return $this->referenz; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetFirma($value) { $this->firma=$value; }
|
||||
function GetFirma() { return $this->firma; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,209 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenLager_Platz
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $lager;
|
||||
private $kurzbezeichnung;
|
||||
private $bemerkung;
|
||||
private $projekt;
|
||||
private $firma;
|
||||
private $geloescht;
|
||||
private $logdatei;
|
||||
private $autolagersperre;
|
||||
private $verbrauchslager;
|
||||
private $sperrlager;
|
||||
private $laenge;
|
||||
private $breite;
|
||||
private $hoehe;
|
||||
private $poslager;
|
||||
private $adresse;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM lager_platz WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->lager=$result['lager'];
|
||||
$this->kurzbezeichnung=$result['kurzbezeichnung'];
|
||||
$this->bemerkung=$result['bemerkung'];
|
||||
$this->projekt=$result['projekt'];
|
||||
$this->firma=$result['firma'];
|
||||
$this->geloescht=$result['geloescht'];
|
||||
$this->logdatei=$result['logdatei'];
|
||||
$this->autolagersperre=$result['autolagersperre'];
|
||||
$this->verbrauchslager=$result['verbrauchslager'];
|
||||
$this->sperrlager=$result['sperrlager'];
|
||||
$this->laenge=$result['laenge'];
|
||||
$this->breite=$result['breite'];
|
||||
$this->hoehe=$result['hoehe'];
|
||||
$this->poslager=$result['poslager'];
|
||||
$this->adresse=$result['adresse'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO lager_platz (id,lager,kurzbezeichnung,bemerkung,projekt,firma,geloescht,logdatei,autolagersperre,verbrauchslager,sperrlager,laenge,breite,hoehe,poslager,adresse)
|
||||
VALUES('','{$this->lager}','{$this->kurzbezeichnung}','{$this->bemerkung}','{$this->projekt}','{$this->firma}','{$this->geloescht}','{$this->logdatei}','{$this->autolagersperre}','{$this->verbrauchslager}','{$this->sperrlager}','{$this->laenge}','{$this->breite}','{$this->hoehe}','{$this->poslager}','{$this->adresse}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE lager_platz SET
|
||||
lager='{$this->lager}',
|
||||
kurzbezeichnung='{$this->kurzbezeichnung}',
|
||||
bemerkung='{$this->bemerkung}',
|
||||
projekt='{$this->projekt}',
|
||||
firma='{$this->firma}',
|
||||
geloescht='{$this->geloescht}',
|
||||
logdatei='{$this->logdatei}',
|
||||
autolagersperre='{$this->autolagersperre}',
|
||||
verbrauchslager='{$this->verbrauchslager}',
|
||||
sperrlager='{$this->sperrlager}',
|
||||
laenge='{$this->laenge}',
|
||||
breite='{$this->breite}',
|
||||
hoehe='{$this->hoehe}',
|
||||
poslager='{$this->poslager}',
|
||||
adresse='{$this->adresse}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM lager_platz WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->lager="";
|
||||
$this->kurzbezeichnung="";
|
||||
$this->bemerkung="";
|
||||
$this->projekt="";
|
||||
$this->firma="";
|
||||
$this->geloescht="";
|
||||
$this->logdatei="";
|
||||
$this->autolagersperre="";
|
||||
$this->verbrauchslager="";
|
||||
$this->sperrlager="";
|
||||
$this->laenge="";
|
||||
$this->breite="";
|
||||
$this->hoehe="";
|
||||
$this->poslager="";
|
||||
$this->adresse="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetLager($value) { $this->lager=$value; }
|
||||
function GetLager() { return $this->lager; }
|
||||
function SetKurzbezeichnung($value) { $this->kurzbezeichnung=$value; }
|
||||
function GetKurzbezeichnung() { return $this->kurzbezeichnung; }
|
||||
function SetBemerkung($value) { $this->bemerkung=$value; }
|
||||
function GetBemerkung() { return $this->bemerkung; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetFirma($value) { $this->firma=$value; }
|
||||
function GetFirma() { return $this->firma; }
|
||||
function SetGeloescht($value) { $this->geloescht=$value; }
|
||||
function GetGeloescht() { return $this->geloescht; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
function SetAutolagersperre($value) { $this->autolagersperre=$value; }
|
||||
function GetAutolagersperre() { return $this->autolagersperre; }
|
||||
function SetVerbrauchslager($value) { $this->verbrauchslager=$value; }
|
||||
function GetVerbrauchslager() { return $this->verbrauchslager; }
|
||||
function SetSperrlager($value) { $this->sperrlager=$value; }
|
||||
function GetSperrlager() { return $this->sperrlager; }
|
||||
function SetLaenge($value) { $this->laenge=$value; }
|
||||
function GetLaenge() { return $this->laenge; }
|
||||
function SetBreite($value) { $this->breite=$value; }
|
||||
function GetBreite() { return $this->breite; }
|
||||
function SetHoehe($value) { $this->hoehe=$value; }
|
||||
function GetHoehe() { return $this->hoehe; }
|
||||
function SetPoslager($value) { $this->poslager=$value; }
|
||||
function GetPoslager() { return $this->poslager; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,179 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenLager_Platz_Inhalt
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $lager_platz;
|
||||
private $artikel;
|
||||
private $menge;
|
||||
private $vpe;
|
||||
private $bearbeiter;
|
||||
private $bestellung;
|
||||
private $projekt;
|
||||
private $firma;
|
||||
private $logdatei;
|
||||
private $inventur;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM lager_platz_inhalt WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->lager_platz=$result[lager_platz];
|
||||
$this->artikel=$result[artikel];
|
||||
$this->menge=$result[menge];
|
||||
$this->vpe=$result[vpe];
|
||||
$this->bearbeiter=$result[bearbeiter];
|
||||
$this->bestellung=$result[bestellung];
|
||||
$this->projekt=$result[projekt];
|
||||
$this->firma=$result[firma];
|
||||
$this->logdatei=$result[logdatei];
|
||||
$this->inventur=$result[inventur];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO lager_platz_inhalt (id,lager_platz,artikel,menge,vpe,bearbeiter,bestellung,projekt,firma,logdatei,inventur)
|
||||
VALUES('','{$this->lager_platz}','{$this->artikel}','{$this->menge}','{$this->vpe}','{$this->bearbeiter}','{$this->bestellung}','{$this->projekt}','{$this->firma}','{$this->logdatei}','{$this->inventur}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE lager_platz_inhalt SET
|
||||
lager_platz='{$this->lager_platz}',
|
||||
artikel='{$this->artikel}',
|
||||
menge='{$this->menge}',
|
||||
vpe='{$this->vpe}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
bestellung='{$this->bestellung}',
|
||||
projekt='{$this->projekt}',
|
||||
firma='{$this->firma}',
|
||||
logdatei='{$this->logdatei}',
|
||||
inventur='{$this->inventur}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM lager_platz_inhalt WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->lager_platz="";
|
||||
$this->artikel="";
|
||||
$this->menge="";
|
||||
$this->vpe="";
|
||||
$this->bearbeiter="";
|
||||
$this->bestellung="";
|
||||
$this->projekt="";
|
||||
$this->firma="";
|
||||
$this->logdatei="";
|
||||
$this->inventur="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetLager_Platz($value) { $this->lager_platz=$value; }
|
||||
function GetLager_Platz() { return $this->lager_platz; }
|
||||
function SetArtikel($value) { $this->artikel=$value; }
|
||||
function GetArtikel() { return $this->artikel; }
|
||||
function SetMenge($value) { $this->menge=$value; }
|
||||
function GetMenge() { return $this->menge; }
|
||||
function SetVpe($value) { $this->vpe=$value; }
|
||||
function GetVpe() { return $this->vpe; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetBestellung($value) { $this->bestellung=$value; }
|
||||
function GetBestellung() { return $this->bestellung; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetFirma($value) { $this->firma=$value; }
|
||||
function GetFirma() { return $this->firma; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
function SetInventur($value) { $this->inventur=$value; }
|
||||
function GetInventur() { return $this->inventur; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,179 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenLager_Reserviert
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $adresse;
|
||||
private $artikel;
|
||||
private $menge;
|
||||
private $grund;
|
||||
private $objekt;
|
||||
private $parameter;
|
||||
private $projekt;
|
||||
private $firma;
|
||||
private $bearbeiter;
|
||||
private $datum;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM lager_reserviert WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result[id];
|
||||
$this->adresse=$result[adresse];
|
||||
$this->artikel=$result[artikel];
|
||||
$this->menge=$result[menge];
|
||||
$this->grund=$result[grund];
|
||||
$this->objekt=$result[objekt];
|
||||
$this->parameter=$result[parameter];
|
||||
$this->projekt=$result[projekt];
|
||||
$this->firma=$result[firma];
|
||||
$this->bearbeiter=$result[bearbeiter];
|
||||
$this->datum=$result[datum];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO lager_reserviert (id,adresse,artikel,menge,grund,objekt,parameter,projekt,firma,bearbeiter,datum)
|
||||
VALUES('','{$this->adresse}','{$this->artikel}','{$this->menge}','{$this->grund}','{$this->objekt}','{$this->parameter}','{$this->projekt}','{$this->firma}','{$this->bearbeiter}','{$this->datum}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE lager_reserviert SET
|
||||
adresse='{$this->adresse}',
|
||||
artikel='{$this->artikel}',
|
||||
menge='{$this->menge}',
|
||||
grund='{$this->grund}',
|
||||
objekt='{$this->objekt}',
|
||||
parameter='{$this->parameter}',
|
||||
projekt='{$this->projekt}',
|
||||
firma='{$this->firma}',
|
||||
bearbeiter='{$this->bearbeiter}',
|
||||
datum='{$this->datum}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM lager_reserviert WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->adresse="";
|
||||
$this->artikel="";
|
||||
$this->menge="";
|
||||
$this->grund="";
|
||||
$this->objekt="";
|
||||
$this->parameter="";
|
||||
$this->projekt="";
|
||||
$this->firma="";
|
||||
$this->bearbeiter="";
|
||||
$this->datum="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetArtikel($value) { $this->artikel=$value; }
|
||||
function GetArtikel() { return $this->artikel; }
|
||||
function SetMenge($value) { $this->menge=$value; }
|
||||
function GetMenge() { return $this->menge; }
|
||||
function SetGrund($value) { $this->grund=$value; }
|
||||
function GetGrund() { return $this->grund; }
|
||||
function SetObjekt($value) { $this->objekt=$value; }
|
||||
function GetObjekt() { return $this->objekt; }
|
||||
function SetParameter($value) { $this->parameter=$value; }
|
||||
function GetParameter() { return $this->parameter; }
|
||||
function SetProjekt($value) { $this->projekt=$value; }
|
||||
function GetProjekt() { return $this->projekt; }
|
||||
function SetFirma($value) { $this->firma=$value; }
|
||||
function GetFirma() { return $this->firma; }
|
||||
function SetBearbeiter($value) { $this->bearbeiter=$value; }
|
||||
function GetBearbeiter() { return $this->bearbeiter; }
|
||||
function SetDatum($value) { $this->datum=$value; }
|
||||
function GetDatum() { return $this->datum; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,257 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
class ObjGenLieferadressen
|
||||
{
|
||||
|
||||
private $id;
|
||||
private $typ;
|
||||
private $sprache;
|
||||
private $name;
|
||||
private $abteilung;
|
||||
private $unterabteilung;
|
||||
private $land;
|
||||
private $strasse;
|
||||
private $ort;
|
||||
private $plz;
|
||||
private $telefon;
|
||||
private $telefax;
|
||||
private $email;
|
||||
private $sonstiges;
|
||||
private $adresszusatz;
|
||||
private $steuer;
|
||||
private $adresse;
|
||||
private $logdatei;
|
||||
private $ansprechpartner;
|
||||
private $standardlieferadresse;
|
||||
private $gln;
|
||||
private $ustid;
|
||||
private $ust_befreit;
|
||||
private $lieferbedingung;
|
||||
|
||||
public $app; //application object
|
||||
|
||||
public function __construct($app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function Select($id)
|
||||
{
|
||||
if(is_numeric($id))
|
||||
$result = $this->app->DB->SelectArr("SELECT * FROM lieferadressen WHERE (id = '$id')");
|
||||
else
|
||||
return -1;
|
||||
|
||||
$result = $result[0];
|
||||
|
||||
$this->id=$result['id'];
|
||||
$this->typ=$result['typ'];
|
||||
$this->sprache=$result['sprache'];
|
||||
$this->name=$result['name'];
|
||||
$this->abteilung=$result['abteilung'];
|
||||
$this->unterabteilung=$result['unterabteilung'];
|
||||
$this->land=$result['land'];
|
||||
$this->strasse=$result['strasse'];
|
||||
$this->ort=$result['ort'];
|
||||
$this->plz=$result['plz'];
|
||||
$this->telefon=$result['telefon'];
|
||||
$this->telefax=$result['telefax'];
|
||||
$this->email=$result['email'];
|
||||
$this->sonstiges=$result['sonstiges'];
|
||||
$this->adresszusatz=$result['adresszusatz'];
|
||||
$this->steuer=$result['steuer'];
|
||||
$this->adresse=$result['adresse'];
|
||||
$this->logdatei=$result['logdatei'];
|
||||
$this->ansprechpartner=$result['ansprechpartner'];
|
||||
$this->standardlieferadresse=$result['standardlieferadresse'];
|
||||
$this->gln=$result['gln'];
|
||||
$this->ustid=$result['ustid'];
|
||||
$this->ust_befreit=$result['ust_befreit'];
|
||||
$this->lieferbedingung=$result['lieferbedingung'];
|
||||
}
|
||||
|
||||
public function Create()
|
||||
{
|
||||
$sql = "INSERT INTO lieferadressen (id,typ,sprache,name,abteilung,unterabteilung,land,strasse,ort,plz,telefon,telefax,email,sonstiges,adresszusatz,steuer,adresse,logdatei,ansprechpartner,standardlieferadresse,gln,ustid,ust_befreit,lieferbedingung)
|
||||
VALUES('','{$this->typ}','{$this->sprache}','{$this->name}','{$this->abteilung}','{$this->unterabteilung}','{$this->land}','{$this->strasse}','{$this->ort}','{$this->plz}','{$this->telefon}','{$this->telefax}','{$this->email}','{$this->sonstiges}','{$this->adresszusatz}','{$this->steuer}','{$this->adresse}','{$this->logdatei}','{$this->ansprechpartner}','{$this->standardlieferadresse}','{$this->gln}','{$this->ustid}','{$this->ust_befreit}','{$this->lieferbedingung}')";
|
||||
|
||||
$this->app->DB->Insert($sql);
|
||||
$this->id = $this->app->DB->GetInsertID();
|
||||
}
|
||||
|
||||
public function Update()
|
||||
{
|
||||
if(!is_numeric($this->id))
|
||||
return -1;
|
||||
|
||||
$sql = "UPDATE lieferadressen SET
|
||||
typ='{$this->typ}',
|
||||
sprache='{$this->sprache}',
|
||||
name='{$this->name}',
|
||||
abteilung='{$this->abteilung}',
|
||||
unterabteilung='{$this->unterabteilung}',
|
||||
land='{$this->land}',
|
||||
strasse='{$this->strasse}',
|
||||
ort='{$this->ort}',
|
||||
plz='{$this->plz}',
|
||||
telefon='{$this->telefon}',
|
||||
telefax='{$this->telefax}',
|
||||
email='{$this->email}',
|
||||
sonstiges='{$this->sonstiges}',
|
||||
adresszusatz='{$this->adresszusatz}',
|
||||
steuer='{$this->steuer}',
|
||||
adresse='{$this->adresse}',
|
||||
logdatei='{$this->logdatei}',
|
||||
ansprechpartner='{$this->ansprechpartner}',
|
||||
standardlieferadresse='{$this->standardlieferadresse}',
|
||||
gln='{$this->gln}',
|
||||
ustid='{$this->ustid}',
|
||||
ust_befreit='{$this->ust_befreit}',
|
||||
lieferbedingung='{$this->lieferbedingung}'
|
||||
WHERE (id='{$this->id}')";
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
}
|
||||
|
||||
public function Delete($id="")
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$this->id=$id;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
$sql = "DELETE FROM lieferadressen WHERE (id='{$this->id}')";
|
||||
$this->app->DB->Delete($sql);
|
||||
|
||||
$this->id="";
|
||||
$this->typ="";
|
||||
$this->sprache="";
|
||||
$this->name="";
|
||||
$this->abteilung="";
|
||||
$this->unterabteilung="";
|
||||
$this->land="";
|
||||
$this->strasse="";
|
||||
$this->ort="";
|
||||
$this->plz="";
|
||||
$this->telefon="";
|
||||
$this->telefax="";
|
||||
$this->email="";
|
||||
$this->sonstiges="";
|
||||
$this->adresszusatz="";
|
||||
$this->steuer="";
|
||||
$this->adresse="";
|
||||
$this->logdatei="";
|
||||
$this->ansprechpartner="";
|
||||
$this->standardlieferadresse="";
|
||||
$this->gln="";
|
||||
$this->ustid="";
|
||||
$this->ust_befreit="";
|
||||
$this->lieferbedingung="";
|
||||
}
|
||||
|
||||
public function Copy()
|
||||
{
|
||||
$this->id = "";
|
||||
$this->Create();
|
||||
}
|
||||
|
||||
/**
|
||||
Mit dieser Funktion kann man einen Datensatz suchen
|
||||
dafuer muss man die Attribute setzen nach denen gesucht werden soll
|
||||
dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
|
||||
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
|
||||
**/
|
||||
|
||||
public function Find()
|
||||
{
|
||||
//TODO Suche mit den werten machen
|
||||
}
|
||||
|
||||
public function FindNext()
|
||||
{
|
||||
//TODO Suche mit den alten werten fortsetzen machen
|
||||
}
|
||||
|
||||
/** Funktionen um durch die Tabelle iterieren zu koennen */
|
||||
|
||||
public function Next()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
public function First()
|
||||
{
|
||||
//TODO: SQL Statement passt nach meiner Meinung nach noch nicht immer
|
||||
}
|
||||
|
||||
/** dank dieser funktionen kann man die tatsaechlichen werte einfach
|
||||
ueberladen (in einem Objekt das mit seiner klasse ueber dieser steht)**/
|
||||
|
||||
function SetId($value) { $this->id=$value; }
|
||||
function GetId() { return $this->id; }
|
||||
function SetTyp($value) { $this->typ=$value; }
|
||||
function GetTyp() { return $this->typ; }
|
||||
function SetSprache($value) { $this->sprache=$value; }
|
||||
function GetSprache() { return $this->sprache; }
|
||||
function SetName($value) { $this->name=$value; }
|
||||
function GetName() { return $this->name; }
|
||||
function SetAbteilung($value) { $this->abteilung=$value; }
|
||||
function GetAbteilung() { return $this->abteilung; }
|
||||
function SetUnterabteilung($value) { $this->unterabteilung=$value; }
|
||||
function GetUnterabteilung() { return $this->unterabteilung; }
|
||||
function SetLand($value) { $this->land=$value; }
|
||||
function GetLand() { return $this->land; }
|
||||
function SetStrasse($value) { $this->strasse=$value; }
|
||||
function GetStrasse() { return $this->strasse; }
|
||||
function SetOrt($value) { $this->ort=$value; }
|
||||
function GetOrt() { return $this->ort; }
|
||||
function SetPlz($value) { $this->plz=$value; }
|
||||
function GetPlz() { return $this->plz; }
|
||||
function SetTelefon($value) { $this->telefon=$value; }
|
||||
function GetTelefon() { return $this->telefon; }
|
||||
function SetTelefax($value) { $this->telefax=$value; }
|
||||
function GetTelefax() { return $this->telefax; }
|
||||
function SetEmail($value) { $this->email=$value; }
|
||||
function GetEmail() { return $this->email; }
|
||||
function SetSonstiges($value) { $this->sonstiges=$value; }
|
||||
function GetSonstiges() { return $this->sonstiges; }
|
||||
function SetAdresszusatz($value) { $this->adresszusatz=$value; }
|
||||
function GetAdresszusatz() { return $this->adresszusatz; }
|
||||
function SetSteuer($value) { $this->steuer=$value; }
|
||||
function GetSteuer() { return $this->steuer; }
|
||||
function SetAdresse($value) { $this->adresse=$value; }
|
||||
function GetAdresse() { return $this->adresse; }
|
||||
function SetLogdatei($value) { $this->logdatei=$value; }
|
||||
function GetLogdatei() { return $this->logdatei; }
|
||||
function SetAnsprechpartner($value) { $this->ansprechpartner=$value; }
|
||||
function GetAnsprechpartner() { return $this->ansprechpartner; }
|
||||
function SetStandardlieferadresse($value) { $this->standardlieferadresse=$value; }
|
||||
function GetStandardlieferadresse() { return $this->standardlieferadresse; }
|
||||
function SetGln($value) { $this->gln=$value; }
|
||||
function GetGln() { return $this->gln; }
|
||||
function SetUstid($value) { $this->ustid=$value; }
|
||||
function GetUstid() { return $this->ustid; }
|
||||
function SetUst_Befreit($value) { $this->ust_befreit=$value; }
|
||||
function GetUst_Befreit() { return $this->ust_befreit; }
|
||||
function SetLieferbedingung($value) { $this->lieferbedingung=$value; }
|
||||
function GetLieferbedingung() { return $this->lieferbedingung; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user