|
@@ -17,6 +17,7 @@ type
|
|
|
|
|
|
function GetDisplayFormat(ADigit: Integer): string;
|
|
|
procedure SetRelaDecimal(const Value: TDecimal);
|
|
|
+ function GetTrueDigit: Integer;
|
|
|
public
|
|
|
constructor Create;
|
|
|
destructor Destroy; override;
|
|
@@ -34,6 +35,8 @@ type
|
|
|
property Format: string read FFormat;
|
|
|
property CompareValue: Double read FCompareValue;
|
|
|
|
|
|
+ property TrueDigit: Integer read GetTrueDigit;
|
|
|
+
|
|
|
property RelaDecimal: TDecimal read FRelaDecimal write SetRelaDecimal;
|
|
|
end;
|
|
|
|
|
@@ -128,6 +131,14 @@ begin
|
|
|
end;
|
|
|
end;
|
|
|
|
|
|
+function TDecimal.GetTrueDigit: Integer;
|
|
|
+begin
|
|
|
+ if Assigned(FRelaDecimal) then
|
|
|
+ Result := FRelaDecimal.TrueDigit
|
|
|
+ else
|
|
|
+ Result := FDigit;
|
|
|
+end;
|
|
|
+
|
|
|
procedure TDecimal.RefreshLinkViewColsFormat;
|
|
|
var
|
|
|
i: Integer;
|