|
@@ -3,6 +3,7 @@ unit OtherMeasurePhaseDm;
|
|
|
interface
|
|
|
|
|
|
uses
|
|
|
+ CalcDecimal,
|
|
|
SysUtils, Classes, sdDB, sdProvider, ADODB, OMPhaseRecord;
|
|
|
|
|
|
type
|
|
@@ -35,6 +36,7 @@ type
|
|
|
procedure BeforeBatchOperation;
|
|
|
procedure AfterBatchOperation;
|
|
|
procedure SetFilterDeletedRec(const Value: Boolean);
|
|
|
+ function GetDecimal: TCalcDecimal;
|
|
|
public
|
|
|
constructor Create(AProjectData: TObject);
|
|
|
destructor Destroy; override;
|
|
@@ -44,6 +46,7 @@ type
|
|
|
|
|
|
procedure LoadCurStageData;
|
|
|
|
|
|
+ property Decimal: TCalcDecimal read GetDecimal;
|
|
|
property FilterDeletedRec: Boolean read FFilterDeletedRec write SetFilterDeletedRec;
|
|
|
end;
|
|
|
|
|
@@ -265,7 +268,9 @@ begin
|
|
|
begin
|
|
|
DataSetErrorMessage(Allow, '编号、名称不可同时为空,请先填写编号或名称,再填写其他信息。');
|
|
|
sddPhase.Remove(AValue.Owner);
|
|
|
- end;
|
|
|
+ end
|
|
|
+ else if Pos('TotalPrice', AColumn.FieldName) > 0 then
|
|
|
+ Text := FloatToStr(Decimal.TotalPrice.RoundTo(StrToFloatDef(Text, 0)));
|
|
|
end;
|
|
|
end;
|
|
|
|
|
@@ -318,4 +323,9 @@ begin
|
|
|
GetDisplayText;
|
|
|
end;
|
|
|
|
|
|
+function TOtherMeasurePhaseData.GetDecimal: TCalcDecimal;
|
|
|
+begin
|
|
|
+ Result := TProjectData(FProjectData).ProjProperties.DecimalManager.Common;
|
|
|
+end;
|
|
|
+
|
|
|
end.
|