|
@@ -13,6 +13,8 @@ type
|
|
|
procedure sddOnceAfterAddRecord(ARecord: TsdDataRecord);
|
|
|
procedure sdvOnceSetText(var Text: String; ARecord: TsdDataRecord;
|
|
|
AValue: TsdValue; AColumn: TsdViewColumn; var Allow: Boolean);
|
|
|
+ procedure sdvOnceGetText(var Text: String; ARecord: TsdDataRecord;
|
|
|
+ AValue: TsdValue; AColumn: TsdViewColumn; DisplayText: Boolean);
|
|
|
private
|
|
|
FProjectData: TObject;
|
|
|
|
|
@@ -30,7 +32,7 @@ type
|
|
|
implementation
|
|
|
|
|
|
uses
|
|
|
- ProjectData, UtilMethods, Variants;
|
|
|
+ ProjectData, UtilMethods, Variants, DB;
|
|
|
|
|
|
{$R *.dfm}
|
|
|
|
|
@@ -134,4 +136,20 @@ begin
|
|
|
end;
|
|
|
end;
|
|
|
|
|
|
+procedure TOtherMeasureOnceData.sdvOnceGetText(var Text: String;
|
|
|
+ ARecord: TsdDataRecord; AValue: TsdValue; AColumn: TsdViewColumn;
|
|
|
+ DisplayText: Boolean);
|
|
|
+
|
|
|
+ procedure GetDisplayText;
|
|
|
+ begin
|
|
|
+ if AValue.DataType = ftFloat then
|
|
|
+ if AValue.AsFloat = 0 then
|
|
|
+ Text := '';
|
|
|
+ end;
|
|
|
+
|
|
|
+begin
|
|
|
+ if DisplayText then
|
|
|
+ GetDisplayText;
|
|
|
+end;
|
|
|
+
|
|
|
end.
|