Changeset 14 for trunk/Forms/UItemView.pas
- Timestamp:
- Jun 10, 2011, 2:16:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UItemView.pas
r12 r14 42 42 43 43 uses 44 UMainForm, UItemEdit ;44 UMainForm, UItemEdit, UDataTypes, UCore; 45 45 46 46 {$R *.lfm} … … 57 57 begin 58 58 Report := TReport.Create; 59 Report.Base := MainForm.System;59 Report.Base := Core.System; 60 60 end; 61 61 … … 93 93 I: Integer; 94 94 Column: Integer; 95 DataType: TDataType; 95 96 const 96 97 ColumnCount = 2; … … 107 108 108 109 if Report.Count = 1 then 109 for I := 0 to Report.Columns.Count - 1 do 110 if TReportColumn(Report.Columns[I]).TypeDef.TypeIndex = Integer(vtPointer) then begin 110 for I := 0 to Report.Columns.Count - 1 do begin 111 DataType := TReportColumn(Report.Columns[I]).CustomType; 112 if DataType is TDataTypeRelationOne then begin 111 113 TabControl1.Tabs.Add(TReportColumn(Report.Columns[I]).Caption); 112 114 end else begin … … 126 128 if Column = 0 then LastTop := LastTop + 24; 127 129 end; 130 end; 128 131 Panel2.Visible := TabControl1.Tabs.Count > 0; 129 132 end;
Note:
See TracChangeset
for help on using the changeset viewer.