Changeset 13 for trunk/Forms


Ignore:
Timestamp:
Mar 17, 2015, 12:09:11 AM (9 years ago)
Author:
chronos
Message:
  • Modified: Now records are loaded from SQL database using SQL query. The query is parsed also by XML database client to load records from XML file.
  • Added: Packages Network and Synapse.
Location:
trunk/Forms
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormRecord.lfm

    r8 r13  
    11object FormRecord: TFormRecord
    22  Left = 639
    3   Height = 694
    4   Top = 174
    5   Width = 859
     3  Height = 649
     4  Top = 223
     5  Width = 858
    66  Caption = 'FormRecord'
    7   ClientHeight = 694
    8   ClientWidth = 859
     7  ClientHeight = 649
     8  ClientWidth = 858
    99  OnCreate = FormCreate
    1010  OnDestroy = FormDestroy
     
    1414  object Panel1: TPanel
    1515    Left = 4
    16     Height = 632
     16    Height = 583
    1717    Top = 4
    18     Width = 851
     18    Width = 850
    1919    Align = alTop
     20    Anchors = [akTop, akLeft, akRight, akBottom]
    2021    BorderSpacing.Around = 4
    2122    BevelOuter = bvNone
     
    2324  end
    2425  object ButtonOk: TButton
    25     Left = 760
     26    Left = 759
    2627    Height = 25
    27     Top = 648
     28    Top = 603
    2829    Width = 75
    2930    Anchors = [akRight, akBottom]
     
    3334  end
    3435  object ButtonCancel: TButton
    35     Left = 649
     36    Left = 648
    3637    Height = 27
    37     Top = 646
     38    Top = 601
    3839    Width = 72
    3940    Anchors = [akRight, akBottom]
  • trunk/Forms/UFormRecords.lfm

    r11 r13  
    11object FormRecords: TFormRecords
    22  Left = 621
    3   Height = 433
    4   Top = 424
    5   Width = 859
     3  Height = 549
     4  Top = 308
     5  Width = 897
    66  Caption = 'Records'
    7   ClientHeight = 433
    8   ClientWidth = 859
     7  ClientHeight = 549
     8  ClientWidth = 897
    99  OnShow = FormShow
    1010  Position = poMainFormCenter
     
    1212  object ListView1: TListView
    1313    Left = 4
    14     Height = 389
     14    Height = 505
    1515    Top = 4
    16     Width = 851
     16    Width = 889
    1717    Align = alClient
    1818    BorderSpacing.Around = 4
     
    3939    Left = 0
    4040    Height = 36
    41     Top = 397
    42     Width = 859
     41    Top = 513
     42    Width = 897
    4343    Align = alBottom
    4444    ButtonHeight = 32
  • trunk/Forms/UFormRecords.pas

    r11 r13  
    147147  NewColumn: TListColumn;
    148148begin
     149  Table.LoadRecords;
    149150  ListView1.Columns.Clear;
    150151  for I := 0 to Table.Fields.Count - 1 do begin
  • trunk/Forms/UFormTables.pas

    r11 r13  
    7777  with TTable(Database.Tables[Item.Index]) do begin
    7878    Item.Caption := Caption;
    79     Item.SubItems.Add(IntToStr(Records.Count));
     79    Item.SubItems.Add(IntToStr(RecordsCount));
    8080    Item.Data := Database.Tables[Item.Index];
    8181  end
     
    215215
    216216procedure TFormTables.ReloadList;
    217 begin
     217var
     218  I: Integer;
     219begin
     220  for I := 0 to Database.Tables.Count - 1 do
     221    TTable(Database.Tables[I]).LoadRecordsCount;
    218222  if Assigned(Database) then begin
    219223    ListView1.Items.Count := Database.Tables.Count;
Note: See TracChangeset for help on using the changeset viewer.