|
@@ -43,6 +43,9 @@ type
|
|
|
FP_EndGatherQuantity: TDoubleArray;
|
|
|
FP_EndGatherTotalPrice: TDoubleArray;
|
|
|
|
|
|
+ FCurDealQuantity: Double;
|
|
|
+ FP_CurDealQuantity: TDoubleArray;
|
|
|
+
|
|
|
procedure SetB_Code(const Value: string);
|
|
|
function GetCurPercent: Double;
|
|
|
function GetEndPercent: Double;
|
|
@@ -77,6 +80,9 @@ type
|
|
|
property P_EndGatherQuantity: TDoubleArray read FP_EndGatherQuantity write FP_EndGatherQuantity;
|
|
|
property P_EndGatherTotalPrice: TDoubleArray read FP_EndGatherTotalPrice write FP_EndGatherTotalPrice;
|
|
|
|
|
|
+ property P_CurDealQuantity: TDoubleArray read FP_CurDealQuantity write FP_CurDealQuantity;
|
|
|
+ property CurDealQuantity: Double read FCurDealQuantity write FCurDealQuantity;
|
|
|
+
|
|
|
property CurPercent: Double read GetCurPercent;
|
|
|
property EndPercent: Double read GetEndPercent;
|
|
|
end;
|
|
@@ -315,6 +321,8 @@ type
|
|
|
cdsCustomCS_2EndCompleteTotalPrice: TFloatField;
|
|
|
cdsCustomCS_2PreCompleteTotalPrice: TFloatField;
|
|
|
cdsCustomCS_2CurPayTotalPrice: TFloatField;
|
|
|
+ cdsCustomProjP_CurDealQuantity: TFloatField;
|
|
|
+ cdsCustomProjCurDealQuantity: TFloatField;
|
|
|
private
|
|
|
FhbGatherType: THaBaiGatherType;
|
|
|
FProjectData: TProjectData;
|
|
@@ -840,6 +848,8 @@ var
|
|
|
cdsCustomProjP_EndGatherTotalPrice.AsFloat := AGclNode.P_EndGatherTotalPrice[iProject];
|
|
|
cdsCustomProjCurPercent.AsFloat := AGclNode.CurPercent;
|
|
|
cdsCustomProjEndPercent.AsFloat := AGclNode.EndPercent;
|
|
|
+ cdsCustomProjP_CurDealQuantity.AsFloat := AGclNode.P_CurDealQuantity[iProject];
|
|
|
+ cdsCustomProjCurDealQuantity.AsFloat := AGclNode.CurDealQuantity;
|
|
|
cdsCustomProj.Post;
|
|
|
end;
|
|
|
|
|
@@ -1111,6 +1121,7 @@ begin
|
|
|
SetLength(FP_CurGatherTotalPrice, FProjectCount);
|
|
|
SetLength(FP_EndGatherQuantity, FProjectCount);
|
|
|
SetLength(FP_EndGatherTotalPrice, FProjectCount);
|
|
|
+ SetLength(FP_CurDealQuantity, FProjectCount);
|
|
|
end;
|
|
|
|
|
|
function TGclNode.GetCurPercent: Double;
|
|
@@ -1164,6 +1175,9 @@ begin
|
|
|
Result.P_EndGatherQuantity[AProjectIndex] := Result.P_EndGatherQuantity[AProjectIndex] + EndGatherQuantity.AsFloat;
|
|
|
Result.P_EndGatherTotalPrice[AProjectIndex] := Result.P_EndGatherTotalPrice[AProjectIndex] + EndGatherTotalPrice.AsFloat;
|
|
|
|
|
|
+ Result.CurDealQuantity := Result.CurDealQuantity + DealQuantity.AsFloat;
|
|
|
+ Result.P_CurDealQuantity[AProjectIndex] := Result.P_CurDealQuantity[AProjectIndex] + DealQuantity.AsFloat;
|
|
|
+
|
|
|
Result.PreGatherQuantity := Result.PreGatherQuantity + PreGatherQuantity.AsFloat;
|
|
|
Result.PreGatherTotalPrice := Result.PreGatherTotalPrice + PreGatherTotalPrice.AsFloat;
|
|
|
end;
|
|
@@ -1387,6 +1401,9 @@ begin
|
|
|
Result.P_EndGatherQuantity[AProjectIndex] := Result.P_EndGatherQuantity[AProjectIndex] + EndGatherQuantity.AsFloat;
|
|
|
Result.P_EndGatherTotalPrice[AProjectIndex] := Result.P_EndGatherTotalPrice[AProjectIndex] + EndGatherTotalPrice.AsFloat;
|
|
|
|
|
|
+ Result.CurDealQuantity := Result.CurDealQuantity + DealQuantity.AsFloat;
|
|
|
+ Result.P_CurDealQuantity[AProjectIndex] := Result.P_CurDealQuantity[AProjectIndex] + DealQuantity.AsFloat;
|
|
|
+
|
|
|
Result.PreGatherQuantity := Result.PreGatherQuantity + PreGatherQuantity.AsFloat;
|
|
|
Result.PreGatherTotalPrice := Result.PreGatherTotalPrice + PreGatherTotalPrice.AsFloat;
|
|
|
end;
|