Changeset 498 for trunk/form_classes.php


Ignore:
Timestamp:
Mar 3, 2013, 6:02:17 PM (11 years ago)
Author:
chronos
Message:
  • Upraveno: Přepracováno generování PDF dokladů. Nyní pro každý typ dokladu se definuje samostatná třída odvozená ze třídy Bill. Údaje se načítají přímo ze zdrojových tabulek namísto vytváření duplicitních dat v tabulce FinanceBills. Doklady jsou identifikovány jako soubor dle tabulky File.
  • Upraveno: Fronta emailů a seznam síťových služeb lze nyní upravovat přímo ze sekce Správa dat.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/form_classes.php

    r497 r498  
    11<?php
     2
     3// TODO: Split all form class definitions to modules
    24
    35/*
     
    1517
    1618$FormClasses = array(   
     19  'EmailQueue' => array(
     20    'Title' => 'Fronta e-mailů',
     21    'Table' => 'EmailQueue',
     22    'Items' => array(
     23      'Time' => array('Type' => 'DateTime', 'Caption' => 'Vytvořeno'),
     24      'To' => array('Type' => 'String', 'Caption' => 'Příjemce', 'Default' => ''),
     25      'Subject' => array('Type' => 'String', 'Caption' => 'Předmět', 'Default' => ''),
     26      'Content' => array('Type' => 'Text', 'Caption' => 'Obsah', 'Default' => ''),
     27      'Headers' => array('Type' => 'String', 'Caption' => 'Hlavička', 'Default' => ''),
     28      'Archive' => array('Type' => 'Boolean', 'Caption' => 'Odesláno', 'Default' => '0'),
     29      'From' => array('Type' => 'String', 'Caption' => 'Odesílatel', 'Default' => ''),
     30      'AttachmentFile' => array('Type' => 'TFile', 'Caption' => 'Příloha', 'Default' => '', 'Null' => true),
     31    ),
     32    'Actions' => array(
     33      array('Caption' => 'Odeslat nové', 'URL' => ''),
     34    ),
     35  ),
     36  'NetworkConfiguration' => array(
     37    'Title' => 'Restart sítových služeb',
     38    'Table' => 'NetworkConfiguration',
     39    'Items' => array(
     40      'Caption' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),
     41      'Execute' => array('Type' => 'String', 'Caption' => 'Povely', 'Default' => ''),
     42      'Changed' => array('Type' => 'TNetworkConfigurationState', 'Caption' => 'Stav', 'Default' => 0),
     43      'LastTime' => array('Type' => 'DateTime', 'Caption' => 'Naposledy spuštěno', 'ReadOnly' => true),
     44      'ExecutionTime' => array('Type' => 'Integer', 'Caption' => 'Doba běhu', 'Default' => '0', 'Suffix' => 'sekund', 'ReadOnly' => true),
     45      'Enabled' => array('Type' => 'Boolean', 'Caption' => 'Povoleno', 'Default' => '0'),
     46      'Period' => array('Type' => 'Integer', 'Caption' => 'Min. perioda', 'Default' => '60', 'Suffix' => 'sekund'),
     47    ),
     48    'ItemActions' => array(
     49      array('Caption' => 'Záznam', 'URL' => '/is/?a=view&t=NetworkConfigurationLog'),
     50    ),
     51  ),
     52  'NetworkConfigurationLog' => array(
     53    'Title' => 'Záznam restartu sítových služeb',
     54    'Table' => 'NetworkConfiguration',
     55    'Items' => array(
     56      'Caption' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),
     57      'Log' => array('Type' => 'Text', 'Caption' => 'Záznam', 'Default' => '', 'ReadOnly' => true),
     58    ),
     59  ),
    1760  'MemberPayment' => array(
    1861    'Title' => 'Placení zákazníků',
     
    5598      'BaseTariffPrice' => array('Type' => 'Integer', 'Caption' => 'Základní cena tarifu', 'Default' => '0', 'Suffix' => 'Kč'),
    5699      'TopTariffPrice' => array('Type' => 'Integer', 'Caption' => 'Nejvyšší cena tarifu', 'Default' => '0', 'Suffix' => 'Kč'),
    57       'Action' => array('Type' => 'TActionEnum', 'Caption' => 'Změna období', 'Default' => ''),       
     100      'Action' => array('Type' => 'TActionEnum', 'Caption' => 'Změna období', 'Default' => '', 'Null' => true),       
    58101      'ReplaceId' => array('Type' => 'TFinanceCharge', 'Caption' => 'Cílová položka', 'Default' => '0', 'Null' => true),
    59102    ),
     
    66109      'Directory' => array('Type' => 'TDirectory', 'Caption' => 'Adresář', 'Default' => '', 'Null' => true),
    67110      'Size' => array('Type' => 'Integer', 'Caption' => 'Velikost', 'Default' => ''),
     111    ),
     112    'ItemActions' => array(
     113      array('Caption' => 'Stáhnout', 'URL' => '/FileDownload.php?download'),
    68114    ),
    69115  ),
     
    137183      'Service' => array('Type' => 'TService', 'Caption' => 'Služba', 'Default' => ''),       
    138184      'Customer' => array('Type' => 'TMember', 'Caption' => 'Zákazník', 'Default' => ''),       
    139       'Action' => array('Type' => 'TActionEnum', 'Caption' => 'Změna období', 'Default' => ''),       
     185      'Action' => array('Type' => 'TActionEnum', 'Caption' => 'Změna období', 'Default' => '', 'Null' => true),       
    140186      'ReplaceId' => array('Type' => 'TServiceCustomerRel', 'Caption' => 'Cílová položka', 'Default' => '', 'Null' => true),       
    141187    ),
     
    353399      'Storage' => array('Type' => 'Integer', 'Caption' => 'Úložiště', 'Default' => '0', 'Suffix' => 'GB'),
    354400      'CPUCount' => array('Type' => 'Integer', 'Caption' => 'Počet jader', 'Default' => '0', 'Suffix' => ''),
    355       'Action' => array('Type' => 'TActionEnum', 'Caption' => 'Změna období', 'Default' => ''),       
     401      'Action' => array('Type' => 'TActionEnum', 'Caption' => 'Změna období', 'Default' => '', 'Null' => true),       
    356402      'ReplaceId' => array('Type' => 'TService', 'Caption' => 'Cílová položka', 'Default' => '', 'Null' => true),
    357403    ),
     
    471517      'MapPosition' => array('Type' => 'TMapPosition', 'Caption' => 'Pozice na mapě', 'Default' => '0'),
    472518    ),
     519    'Actions' => array(
     520      array('Caption' => 'Dostupnost zařízení', 'URL' => '/network/dostupnost.php'),
     521    ),
    473522  ),
    474523  'NetworkDeviceType' => array(
     
    757806    'States' => array('Nízká', 'Střední', 'Vysoká'),
    758807  ),
     808  'TNetworkConfigurationState' => array(
     809    'Type' => 'Enumeration',
     810    'States' => array('Neplánováno', 'V plánu', 'Provádí se'),
     811  ),   
    759812  'TNetworkDeviceState' => array(
    760813    'Type' => 'Enumeration',
     
    767820  'TActionEnum' => array(
    768821    'Type' => 'Enumeration',
    769     'States' => array('' => '', 'add' => 'Přidat', 'modify' => 'Upravit', 'remove' => 'Odstranit'),
     822    'States' => array('add' => 'Přidat', 'modify' => 'Upravit', 'remove' => 'Odstranit'),
    770823  ),   
    771824  'TService' => array(
     
    915968    'Table' => 'File',
    916969    'Id' => 'Id',
    917     'Name' => 'Id',
     970    'Name' => 'Name',
    918971    'Filter' => '1',
    919972  ),
Note: See TracChangeset for help on using the changeset viewer.