Initial xentral_oss_20.3.c9ffacf

This commit is contained in:
Alex
2021-05-21 08:49:41 +02:00
parent 5406e4a551
commit 34e5ac43d9
18884 changed files with 2109867 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
<?php
include ("_gen/widget.gen.vorlage.php");
class WidgetVorlage extends WidgetGenVorlage
{
private $app;
function __construct(&$app,$parsetarget)
{
$this->app = &$app;
$this->parsetarget = $parsetarget;
parent::__construct($app,$parsetarget);
$this->ExtendsForm();
}
function ExtendsForm()
{
$this->app->YUI->AutoComplete("adresse","mitarbeiter");
$this->app->YUI->DatePicker("datum");
$this->app->YUI->AutoComplete("projekt","projektname",1);
$this->app->YUI->CkEditor("bemerkung","internal");
$this->form->ReplaceFunction("datum",$this,"ReplaceDatum");
$this->form->ReplaceFunction("projekt",$this,"ReplaceProjekt");
$this->form->ReplaceFunction("adresse",$this,"ReplaceMitarbeiter");
}
function ReplaceProjekt($db,$value,$fromform)
{
return $this->app->erp->ReplaceProjekt($db,$value,$fromform);
}
function ReplaceMitarbeiter($db,$value,$fromform)
{
return $this->app->erp->ReplaceMitarbeiter($db,$value,$fromform);
}
function ReplaceDatum($db,$value,$fromform)
{
return $this->app->erp->ReplaceDatum($db,$value,$fromform);
}
}
?>