Changeset 483 for trunk/form_classes.php


Ignore:
Timestamp:
Feb 7, 2013, 11:01:56 PM (12 years ago)
Author:
chronos
Message:
  • Opraveno: OneToMany vazba ve formulářích nyní využívá rozšířenou definici tabulky pomocí pole 'View'.
  • Přidáno: Zobrazení síťových propojení ve správě dat.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/form_classes.php

    r482 r483  
    1616
    1717$FormClasses = array(   
     18  'NetworkLink' => array(
     19    'Title' => 'Síťové propojení',
     20    'Table' => 'NetworkLink',
     21    'Items' => array(
     22      'Type' => array('Type' => 'Integer', 'Caption' => 'Typ', 'Default' => '1'),
     23      'Interface1' => array('Type' => 'TNetworkInterface', 'Caption' => 'Rozhraní 1', 'Default' => ''),
     24      'Interface2' => array('Type' => 'TNetworkInterface', 'Caption' => 'Rozhraní 2', 'Default' => ''),
     25    ),
     26  ),
    1827  'PermissionUserAssignment' => array(
    1928    'Title' => 'Oprávnění uživatelů',
     
    421430      'Online' => array('Type' => 'Boolean', 'Caption' => 'Běží', 'Default' => '0', 'ReadOnly' => true),
    422431      'LastOnline' => array('Type' => 'DateTime', 'Caption' => 'Naposledy běželo', 'Default' => '', 'ReadOnly' => true),
     432      'Links1' => array('Type' => 'TNetworkLinkListInterface1', 'Caption' => 'Propojení 1', 'Default' => ''),
     433      'Links2' => array('Type' => 'TNetworkLinkListInterface2', 'Caption' => 'Propojení 2', 'Default' => ''),
    423434    ),
    424435  ),
     
    767778    'Type' => 'Reference',
    768779    'Table' => 'NetworkInterface',
    769     'Id' => 'Id',
    770     'Name' => 'Name',
     780    'View' => '(SELECT NetworkInterface.*, CONCAT(NetworkDevice.Name, "-", NetworkInterface.Name) AS DeviceName FROM NetworkInterface '.
     781      'LEFT JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device) AS T',     
     782    'Id' => 'Id',
     783    'Name' => 'DeviceName',
    771784    'Filter' => '1',
    772785  ),
     
    10211034    'Id' => 'Id',
    10221035    'Ref' => 'Category',
     1036    'Filter' => '1',
     1037  ),
     1038  'TNetworkLinkListInterface1' => array(
     1039    'Type' => 'ManyToOne',
     1040    'Table' => 'NetworkLink',
     1041    'Id' => 'Id',
     1042    'Ref' => 'Interface1',
     1043    'Filter' => '1',
     1044  ),
     1045  'TNetworkLinkListInterface2' => array(
     1046    'Type' => 'ManyToOne',
     1047    'Table' => 'NetworkLink',
     1048    'Id' => 'Id',
     1049    'Ref' => 'Interface2',
    10231050    'Filter' => '1',
    10241051  ),
Note: See TracChangeset for help on using the changeset viewer.