Changeset 893 for trunk/Modules/Employee
- Timestamp:
- Jan 4, 2021, 9:55:40 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Employee/Employee.php
r887 r893 1 1 <?php 2 3 class Employee extends Model 4 { 5 static function GetDesc(): ModelDesc 6 { 7 $Desc = new ModelDesc('Employee'); 8 $Desc->AddDateTime('Time'); 9 $Desc->AddString('To'); 10 $Desc->AddString('Subject'); 11 $Desc->AddText('Content'); 12 $Desc->AddString('Headers'); 13 $Desc->AddBoolean('Archive'); 14 $Desc->AddString('From'); 15 $Desc->AddReference('AttachmentFile', 'File'); 16 return $Desc; 17 } 18 } 19 20 class EmployeeSalary extends Model 21 { 22 static function GetDesc(): ModelDesc 23 { 24 $Desc = new ModelDesc('EmployeeSalary'); 25 $Desc->AddDate('Date'); 26 $Desc->AddReference('Employee', 'Employee'); 27 $Desc->AddInteger('Amount'); 28 $Desc->AddReference('Contract', 'Contract'); 29 return $Desc; 30 } 31 } 2 32 3 33 class ModuleEmployee extends AppModule … … 11 41 $this->License = 'GNU/GPL'; 12 42 $this->Description = 'Employee wages management'; 13 $this->Dependencies = array('User'); 43 $this->Dependencies = array('User', 'Finance'); 44 } 45 46 function GetModels(): array 47 { 48 return array('Employee', 'EmployeeSalary'); 14 49 } 15 50
Note:
See TracChangeset
for help on using the changeset viewer.