Ignore:
Timestamp:
Mar 12, 2013, 10:58:10 PM (11 years ago)
Author:
chronos
Message:
  • Přidáno: Akce pro import plateb přes API nebo ze souboru z tabulky "Bankovní účty" ze správy dat.
  • Přidáno: Prozatím zkoušení importu z Fio a Poštovní spořitelny.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/FinanceBankAPI/FinanceBankAPI.php

    r501 r502  
    22
    33include_once(dirname(__FILE__).'/FileImport.php');
     4include_once(dirname(__FILE__).'/ImportPS.php');
     5include_once(dirname(__FILE__).'/ImportFio.php');
    46
    57class ModuleFinanceBankAPI extends AppModule
     
    2729  {
    2830    parent::Start();
    29     $this->System->RegisterPage('finance', array('import' => 'PageFileImport'));
     31    $FormClass = array(
     32      'Title' => 'Import souborů s platbami',
     33      'Table' => 'FinanceBank',
     34      'SubmitText' => 'Načíst',
     35      'Items' => array(
     36        'BankAccount' => array('Type' => 'TBankAccount', 'Caption' => 'Bankovní účet', 'Default' => ''),
     37        'File' => array('Type' => 'File', 'Caption' => 'Soubor', 'Default' => ''),
     38      ),
     39    );
     40    $this->System->FormManager->RegisterClass('ImportBankFile', $FormClass);
     41    $this->System->RegisterPage('finance', array('import-api' => 'PageImportAPI',
     42      'import-soubor' => 'PageImportFile'));
    3043  } 
    3144 
Note: See TracChangeset for help on using the changeset viewer.