Changeset 923 for trunk/Modules
- Timestamp:
- Mar 28, 2022, 12:17:44 AM (3 years ago)
- Location:
- trunk/Modules
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note:
See TracChangeset
for help on using the changeset viewer.