OpenXE/www/widgets/widget.wawisioneinrichtung.php
2021-05-21 08:49:41 +02:00

52 lines
1.3 KiB
PHP

<?php
include ("_gen/widget.gen.wawisioneinrichtung.php");
class WidgetWawisioneinrichtung extends WidgetGenWawisioneinrichtung
{
private $app;
function __construct(&$app,$parsetarget)
{
$this->app = &$app;
$this->parsetarget = $parsetarget;
parent::__construct($app,$parsetarget);
$this->ExtendsForm();
}
function ExtendsForm()
{
$this->app->YUI->AutoComplete("mitarbeiter","mitarbeiter");
$this->app->YUI->AutoComplete("adresse","kunde");
$this->app->YUI->DatePicker("startdatum");
$this->app->YUI->CkEditor("bemerkung","internal");
$this->form->ReplaceFunction("startdatum",$this,"ReplaceDatum");
$this->form->ReplaceFunction("mitarbeiter",$this,"ReplaceMitarbeiter");
$this->form->ReplaceFunction("adresse",$this,"ReplaceKunde");
}
function ReplaceProjekt($db,$value,$fromform)
{
return $this->app->erp->ReplaceProjekt($db,$value,$fromform);
}
function ReplaceKunde($db,$value,$fromform)
{
return $this->app->erp->ReplaceKunde($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);
}
}
?>