|
@@ -269,6 +269,7 @@ type
|
|
|
cdsCustomProjP_EndGatherTotalPrice: TFloatField;
|
|
|
cdsCustomProjCurPercent: TFloatField;
|
|
|
cdsCustomProjEndPercent: TFloatField;
|
|
|
+ cdsCustomProjSerialNo: TIntegerField;
|
|
|
private
|
|
|
FhbGatherType: THaBaiGatherType;
|
|
|
FProjectData: TProjectData;
|
|
@@ -691,7 +692,7 @@ end;
|
|
|
|
|
|
procedure TrmHaBaiCustomizedData.WriteReport4_1;
|
|
|
var
|
|
|
- iProject, iChapter: Integer;
|
|
|
+ iProject, iChapter, iSerialNo: Integer;
|
|
|
sProjectName: string;
|
|
|
|
|
|
procedure WriteGclNodeData(AGclNode: TGclNode; AChapterID: Integer);
|
|
@@ -718,7 +719,9 @@ var
|
|
|
cdsCustomProjP_EndGatherTotalPrice.AsFloat := AGclNode.P_EndGatherTotalPrice[iProject];
|
|
|
cdsCustomProjCurPercent.AsFloat := AGclNode.CurPercent;
|
|
|
cdsCustomProjEndPercent.AsFloat := AGclNode.EndPercent;
|
|
|
+ cdsCustomProjSerialNo.AsInteger := iSerialNo;
|
|
|
cdsCustomProj.Post;
|
|
|
+ Inc(iSerialNo);
|
|
|
end;
|
|
|
|
|
|
procedure WriteGclChapterData(AGclChapter: TGclChapter);
|
|
@@ -749,12 +752,15 @@ var
|
|
|
cdsCustomProjP_EndGatherTotalPrice.AsFloat := AGclChapter.P_EndGatherTotalPrice[iProject];
|
|
|
cdsCustomProjCurPercent.AsFloat := AGclChapter.CurPercent;
|
|
|
cdsCustomProjEndPercent.AsFloat := AGclChapter.EndPercent;
|
|
|
+ cdsCustomProjSerialNo.AsInteger := iSerialNo;
|
|
|
cdsCustomProj.Post;
|
|
|
+ Inc(iSerialNo);
|
|
|
end;
|
|
|
|
|
|
begin
|
|
|
for iProject := 0 to FGclControl.ProjectCount - 1 do
|
|
|
begin
|
|
|
+ iSerialNo := 1;
|
|
|
sProjectName := FGclControl.ProjectName[iProject];
|
|
|
for iChapter := 0 to FGclControl.GclChapterCount - 1 do
|
|
|
WriteGclChapterData(FGclControl.GclChapter[iChapter]);
|