|
@@ -7,7 +7,7 @@ uses
|
|
|
|
|
|
|
|
const
|
|
const
|
|
|
ArithmeticCharSet: set of Char = ['0'..'9', '.', '(','[','{', ')',']','}', '+','-','*','/','^', '%', '='];
|
|
ArithmeticCharSet: set of Char = ['0'..'9', '.', '(','[','{', ')',']','}', '+','-','*','/','^', '%', '='];
|
|
|
- ExprsBaseCharSet: set of Char = ['h', 't', 'j', 'b', 'q', 'w', 'c', 'k', 'g', 'y', 'f', 'l'];
|
|
|
|
|
|
|
+ ExprsBaseCharSet: set of Char = ['h', 't', 'j', 'b', 'q', 'w', 'c', 'k', 'g', 'y', 'f', 'l', 'p'];
|
|
|
ExprsExceptCharSet: set of Char = ['h', 't', 'j', 'k', 'g', 'y', 'f', 'c', 'l'];
|
|
ExprsExceptCharSet: set of Char = ['h', 't', 'j', 'k', 'g', 'y', 'f', 'c', 'l'];
|
|
|
|
|
|
|
|
type
|
|
type
|
|
@@ -276,17 +276,23 @@ end;
|
|
|
|
|
|
|
|
function TPayFormula.FirstPartPrice: Double;
|
|
function TPayFormula.FirstPartPrice: Double;
|
|
|
begin
|
|
begin
|
|
|
|
|
+ {
|
|
|
with TProjectData(FProjectData).PhaseData do
|
|
with TProjectData(FProjectData).PhaseData do
|
|
|
if Active then
|
|
if Active then
|
|
|
begin
|
|
begin
|
|
|
- // 初次达到起扣金额时,取累计完成计量-起扣金额
|
|
|
|
|
if FStartedPrice = 0 then
|
|
if FStartedPrice = 0 then
|
|
|
Result := StageData.FirstPart[1, 4]
|
|
Result := StageData.FirstPart[1, 4]
|
|
|
else
|
|
else
|
|
|
- Result := StageData.FirstPart[2, 4] - FStartedPrice;
|
|
|
|
|
|
|
+ Result := StageData.FirstPart[2, 4] - FStartPrice;
|
|
|
end
|
|
end
|
|
|
else
|
|
else
|
|
|
Result := 0;
|
|
Result := 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ with TProjectData(FProjectData).PhaseData do
|
|
|
|
|
+ if Active then
|
|
|
|
|
+ Result := StageData.FirstPart[1, 4]
|
|
|
|
|
+ else
|
|
|
|
|
+ Result := 0;
|
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
function TPayFormula.GetCalcText: string;
|
|
function TPayFormula.GetCalcText: string;
|
|
@@ -295,8 +301,8 @@ begin
|
|
|
Result := StringReplace(Result, 'kgyfk', FloatToStr(StartedSubsist), [rfReplaceAll, rfIgnoreCase]);
|
|
Result := StringReplace(Result, 'kgyfk', FloatToStr(StartedSubsist), [rfReplaceAll, rfIgnoreCase]);
|
|
|
Result := StringReplace(Result, 'clyfk', FloatToStr(MaterialSubsist), [rfReplaceAll, rfIgnoreCase]);
|
|
Result := StringReplace(Result, 'clyfk', FloatToStr(MaterialSubsist), [rfReplaceAll, rfIgnoreCase]);
|
|
|
Result := StringReplace(Result, 'ybbqwc', FloatToStr(ChapterStageGather(1)), [rfReplaceAll, rfIgnoreCase]);
|
|
Result := StringReplace(Result, 'ybbqwc', FloatToStr(ChapterStageGather(1)), [rfReplaceAll, rfIgnoreCase]);
|
|
|
- // Task #1291 四川交投,本期完成计量应引用第一部分本期完成计量
|
|
|
|
|
- Result := StringReplace(Result, 'bqwc', FloatToStr(FirstPartPrice), [rfReplaceAll, rfIgnoreCase]);
|
|
|
|
|
|
|
+ Result := StringReplace(Result, 'fpbqwc', FloatToStr(FirstPartPrice), [rfReplaceAll, rfIgnoreCase]);
|
|
|
|
|
+ Result := StringReplace(Result, 'bqwc', FloatToStr(StageSettlement), [rfReplaceAll, rfIgnoreCase]);
|
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
function TPayFormula.GetValue: Double;
|
|
function TPayFormula.GetValue: Double;
|