|
@@ -24,6 +24,8 @@ type
|
|
|
AValue: TsdValue; AColumn: TsdViewColumn; var Allow: Boolean);
|
|
|
procedure sddProjectGLBeforeDeleteRecord(ARecord: TsdDataRecord;
|
|
|
var Allow: Boolean);
|
|
|
+ procedure sdvGatherGetText(var Text: String; ARecord: TsdDataRecord;
|
|
|
+ AValue: TsdValue; AColumn: TsdViewColumn; DisplayText: Boolean);
|
|
|
private
|
|
|
FProjectData: TObject;
|
|
|
FTempGLs: TList;
|
|
@@ -745,4 +747,20 @@ begin
|
|
|
end;
|
|
|
end;
|
|
|
|
|
|
+procedure TProjectGLData.sdvGatherGetText(var Text: String;
|
|
|
+ ARecord: TsdDataRecord; AValue: TsdValue; AColumn: TsdViewColumn;
|
|
|
+ DisplayText: Boolean);
|
|
|
+
|
|
|
+ procedure GetDisplayText;
|
|
|
+ begin
|
|
|
+ if Pos('TotalPrice', AColumn.FieldName) > 0 then
|
|
|
+ if (AValue.AsFloat = 0) then
|
|
|
+ Text := '';
|
|
|
+ end;
|
|
|
+
|
|
|
+begin
|
|
|
+ if DisplayText then
|
|
|
+ GetDisplayText;
|
|
|
+end;
|
|
|
+
|
|
|
end.
|