|
|
@@ -2760,6 +2760,7 @@ begin
|
|
|
Col.Width := 50;
|
|
|
Col.Alignment := taRightJustify;
|
|
|
Inc(iLastFuelCol);
|
|
|
+ Inc(iFuelColCount);
|
|
|
end;
|
|
|
end;
|
|
|
// 检查有没有多余DLRL列
|
|
|
@@ -2776,19 +2777,19 @@ begin
|
|
|
|
|
|
// 可变费用/机械工列
|
|
|
Col := sgdMachinePrice.Column(SRG);
|
|
|
- Col.Title.CaptionAcrossCols := Format('%d|1', [5 + iFuelColCount]);
|
|
|
+ Col.Title.CaptionAcrossCols := Format('%d|1', [4 + iFuelColCount]);
|
|
|
// 重油列
|
|
|
Col := sgdMachinePrice.Column(SZY);
|
|
|
- Col.Title.CaptionAcrossCols := Format('1|%d|1', [2 + iFuelColCount]);
|
|
|
+ Col.Title.CaptionAcrossCols := Format('1|%d|1', [1 + iFuelColCount]);
|
|
|
|
|
|
// 最后再处理合并单元格
|
|
|
// 折旧费、检修费、维护费、安拆辅助费、合计、机械工
|
|
|
for I := 4 to 9 do
|
|
|
zgMachinePrice.Merge(Rect(I, 1, I + 1, 3));
|
|
|
// 车船税
|
|
|
- zgMachinePrice.Merge(Rect(12 + iFuelColCount, 1, 13 + iFuelColCount, 3));
|
|
|
+ zgMachinePrice.Merge(Rect(11 + iFuelColCount, 1, 12 + iFuelColCount, 3));
|
|
|
// 合计
|
|
|
- zgMachinePrice.Merge(Rect(13 + iFuelColCount, 1, 14 + iFuelColCount, 3));
|
|
|
+ zgMachinePrice.Merge(Rect(12 + iFuelColCount, 1, 13 + iFuelColCount, 3));
|
|
|
|
|
|
finally
|
|
|
slstCol.Free;
|