|
@@ -75,6 +75,8 @@ type
|
|
|
|
|
|
FUpdateFlag: Integer;
|
|
|
FPriceMarginStartPhaseID: Integer;
|
|
|
+ FShowReportShading: Boolean;
|
|
|
+ FReportShading: string;
|
|
|
|
|
|
function GetBoolPropertyDef(const AName: string; ADef: Boolean): Boolean;
|
|
|
function GetIntPropertyDef(const AName: string; ADef: Integer): Integer;
|
|
@@ -115,6 +117,8 @@ type
|
|
|
procedure SetQuantityDigit(const Value: Integer);
|
|
|
procedure SetTotalPriceDigit(const Value: Integer);
|
|
|
procedure SetUpdateFlag(const Value: Integer);
|
|
|
+ procedure SetReportShading(const Value: string);
|
|
|
+ procedure SetShowReportShading(const Value: Boolean);
|
|
|
public
|
|
|
constructor Create(AProjectData: TObject);
|
|
|
destructor Destroy; override;
|
|
@@ -210,6 +214,9 @@ type
|
|
|
property ShowBGLCode: Boolean read FShowBGLCode write SetShowBGLCode;
|
|
|
property ShowDesignQuantity: Boolean read FShowDesignQuantity write SetShowDesignQuantity;
|
|
|
property ShowAlias: Boolean read FShowAlias write SetShowAlias;
|
|
|
+
|
|
|
+ property ShowReportShading: Boolean read FShowReportShading write SetShowReportShading;
|
|
|
+ property ReportShading: string read FReportShading write SetReportShading;
|
|
|
end;
|
|
|
|
|
|
implementation
|
|
@@ -469,6 +476,9 @@ begin
|
|
|
FShowBGLCode := GetBoolPropertyDef('ShowBGLCode', True);
|
|
|
FShowDesignQuantity := GetBoolPropertyDef('ShowDesignQuantity', False);
|
|
|
FShowAlias := GetBoolPropertyDef('ShowAlias', False);
|
|
|
+
|
|
|
+ FShowReportShading := GetBoolPropertyDef('ShowReportShading', False);
|
|
|
+ FReportShading := GetStrPropertyDef('ReportShading', '');
|
|
|
end;
|
|
|
|
|
|
procedure TProjProperties.Open(AConnection: TADOConnection);
|
|
@@ -593,6 +603,12 @@ begin
|
|
|
FQuantityFormat := GetDisplayFormat(FQuantityDigit);
|
|
|
end;
|
|
|
|
|
|
+procedure TProjProperties.SetReportShading(const Value: string);
|
|
|
+begin
|
|
|
+ FReportShading := Value;
|
|
|
+ FPropertyInqurity.Value['ReportShading'] := Value;
|
|
|
+end;
|
|
|
+
|
|
|
procedure TProjProperties.SetShowAlias(const Value: Boolean);
|
|
|
begin
|
|
|
FShowAlias := Value;
|
|
@@ -617,6 +633,12 @@ begin
|
|
|
FPropertyInqurity.Value['ShowPriceChange'] := Value;
|
|
|
end;
|
|
|
|
|
|
+procedure TProjProperties.SetShowReportShading(const Value: Boolean);
|
|
|
+begin
|
|
|
+ FShowReportShading := Value;
|
|
|
+ FPropertyInqurity.Value['ShowReportShading'] := Value;
|
|
|
+end;
|
|
|
+
|
|
|
procedure TProjProperties.SetStartedSubsist(const Value: Double);
|
|
|
begin
|
|
|
FStartedSubsist := Value;
|