Ignore:
Timestamp:
Dec 29, 2023, 11:44:26 PM (11 months ago)
Author:
chronos
Message:
  • Modified: Unit names without U prefix.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Finance/ModuleFinance.pas

    r145 r146  
    1 unit UModuleFinance;
     1unit ModuleFinance;
    22
    33interface
    44
    55uses
    6   Classes, SysUtils, UModularSystem, UModuleBase, UWebPage;
     6  Classes, SysUtils, UModularSystem, ModuleBase, UWebPage;
    77
    88type
     
    2626
    2727uses
    28   UCore, UPageFinance, USqlDatabase;
     28  Core, PageFinance, USqlDatabase;
    2929
    3030{ TModuleFinance }
     
    6767    DbRows := TDbRows.Create;
    6868
    69     Core.CommonDatabase.Query(DbRows,
     69    Core.Core.CommonDatabase.Query(DbRows,
    7070    'CREATE TABLE IF NOT EXISTS `FinanceTariff` (' +
    7171    '  `Id` int(11) NOT NULL AUTO_INCREMENT,' +
     
    8484    ') ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;');
    8585
    86     Core.CommonDatabase.Query(DbRows,
     86    Core.Core.CommonDatabase.Query(DbRows,
    8787    'CREATE TABLE IF NOT EXISTS `FinanceYear` (' +
    8888    '  `Id` int(11) NOT NULL AUTO_INCREMENT,' +
     
    9393    ') ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;');
    9494
    95     Core.CommonDatabase.Query(DbRows,
     95    Core.Core.CommonDatabase.Query(DbRows,
    9696    'CREATE TABLE IF NOT EXISTS `DocumentLine` (' +
    9797    '  `Id` int(11) NOT NULL AUTO_INCREMENT,' +
     
    102102    ') ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1; ');
    103103
    104     Core.CommonDatabase.Query(DbRows,
     104    Core.Core.CommonDatabase.Query(DbRows,
    105105    'CREATE TABLE IF NOT EXISTS `DocumentLineSequence` (' +
    106106    '  `Id` int(11) NOT NULL AUTO_INCREMENT,' +
     
    114114    ') ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;');
    115115
    116     Core.CommonDatabase.Query(DbRows,
     116    Core.Core.CommonDatabase.Query(DbRows,
    117117    'CREATE TABLE IF NOT EXISTS `FinanceBankAccount` (' +
    118118    '  `Id` int(11) NOT NULL AUTO_INCREMENT,' +
     
    123123    ') ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1; ');
    124124
    125     Core.CommonDatabase.Query(DbRows,
     125    Core.Core.CommonDatabase.Query(DbRows,
    126126    'CREATE TABLE IF NOT EXISTS `FinanceBillingPeriod` (' +
    127127    '  `Id` int(11) NOT NULL AUTO_INCREMENT,' +
     
    144144  try
    145145    DbRows := TDbRows.Create;
    146     Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `FinanceBillingPeriod`');
    147     Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `FinanceBankAccount`');
    148     Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `DocumentLine`');
    149     Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `DocumentLineSequence`');
    150     Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `FinanceTariff`');
    151     Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `FinanceYear`');
     146    Core.Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `FinanceBillingPeriod`');
     147    Core.Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `FinanceBankAccount`');
     148    Core.Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `DocumentLine`');
     149    Core.Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `DocumentLineSequence`');
     150    Core.Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `FinanceTariff`');
     151    Core.Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `FinanceYear`');
    152152  finally
    153153    DbRows.Free;
Note: See TracChangeset for help on using the changeset viewer.