Changeset 923
- Timestamp:
- Mar 28, 2022, 12:17:44 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Form/Form.php
r922 r923 19 19 SQL - SQL dotaz pro zjištění hodnoty, #Id bude nahrazeno Id aktuální položky 20 20 */ 21 class FormItem 22 { 23 public string $Type; 24 public string $Caption; 25 public string $Default; 26 public bool $Null; 27 public bool $NotInList; 28 public bool $Hidden; 29 public bool $Filter; 30 public string $Suffix; 31 public string $Description; 32 public bool $ReadOnly; 33 public bool $Required; 34 public string $SQL; 35 } 21 36 22 37 class Form -
trunk/Modules/Finance/FinanceModels.php
r901 r923 261 261 { 262 262 $Desc = new ModelDesc(self::GetClassName()); 263 $Desc->AddString('Name');264 263 $Desc->AddDate('TimeCreate'); 264 $Desc->AddString('Name'); 265 265 return $Desc; 266 266 } … … 330 330 { 331 331 $Desc = new ModelDesc(self::GetClassName()); 332 $Desc->AddString('Code'); 332 $Column = $Desc->AddString('Code'); 333 $Column->MaxLength = 3; 333 334 $Desc->AddString('Name'); 334 335 $Desc->AddString('Symbol'); -
trunk/Modules/Network/NetworkModels.php
r921 r923 348 348 { 349 349 $Desc = new ModelDesc(self::GetClassName()); 350 $Desc->AddString('MAC'); // size=17 350 $Column = $Desc->AddString('MAC'); 351 $Column->MaxLength = 17; 351 352 return $Desc; 352 353 } -
trunk/Modules/Stock/Stock.php
r916 r923 303 303 { 304 304 $Desc = new ModelDesc(self::GetClassName()); 305 $Desc->AddString('Name'); 305 306 $Desc->AddReference('Location', Member::GetClassName()); 306 307 return $Desc; … … 352 353 { 353 354 $Desc = new ModelDesc(self::GetClassName()); 355 $Desc->AddReference('StockSerialNumber', StockSerialNumber::GetClassName()); 354 356 $Desc->AddDateTime('Time'); 355 $Desc->AddReference('StockSerialNumber', StockSerialNumber::GetClassName());356 357 $Desc->AddText('Text'); 357 358 return $Desc; -
trunk/Modules/System/SystemModels.php
r899 r923 6 6 { 7 7 $Desc = new ModelDesc(self::GetClassName()); 8 $Desc->AddString('Unit'); 8 9 $Desc->AddString('Name'); 9 $Desc->AddString('Unit');10 10 return $Desc; 11 11 } … … 18 18 $Desc = new ModelDesc(self::GetClassName()); 19 19 $Desc->AddString('Title'); 20 $Desc->AddReference('Type', ActionType::GetClassName()); 20 21 $Desc->AddString('URL'); 22 $Desc->AddReference('Group', ActionGroup::GetClassName()); 21 23 $Desc->AddReference('Icon', ActionIcon::GetClassName()); 22 $Desc->AddReference('Type', ActionType::GetClassName());23 $Desc->AddReference('Group', ActionGroup::GetClassName());24 24 $Desc->AddReference('PermissionOperation', PermissionOperation::GetClassName()); 25 $Desc->AddBoolean('Enable'); 25 $Column = $Desc->AddBoolean('Enable'); 26 $Column->Default = true; 26 27 return $Desc; 27 28 } -
trunk/Packages/Common/ModelDesc.php
r899 r923 179 179 { 180 180 public ?string $Default; 181 public int $MaxLength; 181 182 182 183 function __construct(string $Name) … … 185 186 $this->HasDefault = false; 186 187 $this->Default = null; 188 $this->MaxLength = 255; 187 189 } 188 190
Note:
See TracChangeset
for help on using the changeset viewer.