Changeset 876 for trunk


Ignore:
Timestamp:
Apr 9, 2020, 1:28:09 AM (5 years ago)
Author:
chronos
Message:
  • Added: Show related tables for File items.
  • Modified: Show missing files in File Check as links to IS File items.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/Version.php

    r875 r876  
    11<?php
    22
    3 $Revision = 874; // Subversion revision
     3$Revision = 875; // Subversion revision
    44$DatabaseRevision = 870; // SQL structure revision
    5 $ReleaseTime = strtotime('2020-04-08');
     5$ReleaseTime = strtotime('2020-04-09');
  • trunk/Modules/File/File.php

    r875 r876  
    148148      $FileName = $this->GetAbsolutePath($this->System->Modules['File']->GetFullPath($Id));
    149149      if (!file_exists($FileName))
    150         $Output .= $FileName.'<br>';
     150        $Output .= '<a href="'.$this->System->Link('/is/?a=view&amp;t=File&amp;i='.$Id).'">'.$FileName.'</a><br>';
    151151    }
    152152    return $Output;
     
    191191        'Size' => array('Type' => 'Integer', 'Caption' => 'Velikost', 'Default' => ''),
    192192        'Time' => array('Type' => 'DateTime', 'Caption' => 'Čas vytvoření', 'Default' => ''),
     193        'Invoices' => array('Type' => 'TFinanceInvoiceListFile', 'Caption' => 'Faktury', 'Default' => ''),
     194        'Operations' => array('Type' => 'TFinanceOperationListFile', 'Caption' => 'Operace', 'Default' => ''),
     195        'Contracts' => array('Type' => 'TContractListFile', 'Caption' => 'Smlouvy', 'Default' => ''),
     196        'StockMoves' => array('Type' => 'TStockMoveListFile', 'Caption' => 'Skladové pohyby', 'Default' => ''),
    193197      ),
    194198      'ItemActions' => array(
     
    204208      'Items' => array(
    205209        'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),
    206        'Parent' => array('Type' => 'TDirectory', 'Caption' => 'Nadřazený adresář', 'Default' => '', 'Null' => true),
     210        'Parent' => array('Type' => 'TDirectory', 'Caption' => 'Nadřazený adresář', 'Default' => '', 'Null' => true),
     211        'Files' => array('Type' => 'TFileList', 'Caption' => 'Soubory', 'Default' => ''),
    207212        'Subdirectories' => array('Type' => 'TDirectoryList', 'Caption' => 'Podadresáře', 'Default' => ''),
    208         'Files' => array('Type' => 'TFileList', 'Caption' => 'Soubory', 'Default' => ''),
    209213      ),
    210214    ));
     
    237241      'Filter' => '1',
    238242    ));
     243    $this->System->FormManager->RegisterFormType('TFinanceInvoiceListFile', array(
     244      'Type' => 'ManyToOne',
     245      'Table' => 'FinanceInvoice',
     246      'Id' => 'Id',
     247      'Ref' => 'File',
     248      'Filter' => '1',
     249    ));
     250    $this->System->FormManager->RegisterFormType('TFinanceOperationListFile', array(
     251      'Type' => 'ManyToOne',
     252      'Table' => 'FinanceOperation',
     253      'Id' => 'Id',
     254      'Ref' => 'File',
     255      'Filter' => '1',
     256    ));
     257    $this->System->FormManager->RegisterFormType('TContractListFile', array(
     258      'Type' => 'ManyToOne',
     259      'Table' => 'Contract',
     260      'Id' => 'Id',
     261      'Ref' => 'File',
     262      'Filter' => '1',
     263    ));
     264    $this->System->FormManager->RegisterFormType('TStockMoveListFile', array(
     265      'Type' => 'ManyToOne',
     266      'Table' => 'StockMove',
     267      'Id' => 'Id',
     268      'Ref' => 'File',
     269      'Filter' => '1',
     270    ));
    239271  }
    240272
Note: See TracChangeset for help on using the changeset viewer.