|
@@ -56,13 +56,15 @@ type
|
|
|
FShowBGLCode: Boolean;
|
|
|
FShowDesignQuantity: Boolean;
|
|
|
FShowAddField: Boolean; // For Inner Test
|
|
|
+ FShowPMField: Boolean; // For Inner Test
|
|
|
FOnAfterSetBookmark: TBookmarkRefreshEvent;
|
|
|
FShowAlias: Boolean;
|
|
|
|
|
|
function CheckExprsColumn(ACol: Integer): Boolean;
|
|
|
|
|
|
procedure SetColumnVisible(const AColumn: string; AVisible: Boolean);
|
|
|
- procedure SetAddFieldVisiblie(AValue: Boolean);
|
|
|
+ procedure SetAddFieldVisible(AValue: Boolean);
|
|
|
+ procedure SetPMFieldVisible(AValue: Boolean);
|
|
|
|
|
|
procedure LoadDealProperty(ARec: TsdDataRecord);
|
|
|
|
|
@@ -368,7 +370,7 @@ begin
|
|
|
stdBillsMeasure.Column('AddDgnPrice').Visible := FShowDesignQuantity;
|
|
|
end;
|
|
|
|
|
|
-procedure TBillsMeasureFrame.SetAddFieldVisiblie(AValue: Boolean);
|
|
|
+procedure TBillsMeasureFrame.SetAddFieldVisible(AValue: Boolean);
|
|
|
begin
|
|
|
FShowAddField := AValue;
|
|
|
stdBillsMeasure.Column('AddDealQuantity').Visible := AValue;
|
|
@@ -388,7 +390,7 @@ begin
|
|
|
if (ssCtrl in Shift) and (ssShift in Shift) and (ssAlt in Shift)
|
|
|
and (Key in [65, 97]) // 'a', 'A'
|
|
|
and (zgBillsMeasure.CurCol = 4) then
|
|
|
- SetAddFieldVisiblie(not FShowAddField);
|
|
|
+ SetAddFieldVisible(not FShowAddField);
|
|
|
|
|
|
if (ssCtrl in Shift) and (ssShift in Shift) and (ssAlt in Shift)
|
|
|
and (Key in [80, 112]) // 'p', 'P' - Parent
|
|
@@ -399,6 +401,13 @@ begin
|
|
|
end;
|
|
|
|
|
|
if (ssCtrl in Shift) and (ssShift in Shift) and (ssAlt in Shift)
|
|
|
+ and (Key in [77, 109]) // 'm', 'M' - PriceMargin
|
|
|
+ and (zgBillsMeasure.CurCol = 5) then
|
|
|
+ begin
|
|
|
+ SetPMFieldVisible(not FShowPMField);
|
|
|
+ end;
|
|
|
+
|
|
|
+ if (ssCtrl in Shift) and (ssShift in Shift) and (ssAlt in Shift)
|
|
|
and (Key in [67, 99]) then // 'c', 'C'
|
|
|
actnCalculateAll.Execute;
|
|
|
end;
|
|
@@ -621,4 +630,12 @@ begin
|
|
|
stdBillsMeasure.Options := stdBillsMeasure.Options - [aoAllowInsert];
|
|
|
end;
|
|
|
|
|
|
+procedure TBillsMeasureFrame.SetPMFieldVisible(AValue: Boolean);
|
|
|
+begin
|
|
|
+ FShowAddField := AValue;
|
|
|
+ stdBillsMeasure.Column('PM_PreTotalPrice').Visible := AValue;
|
|
|
+ stdBillsMeasure.Column('PM_TotalPrice').Visible := AValue;
|
|
|
+ stdBillsMeasure.Column('PM_AddTotalPrice').Visible := AValue;
|
|
|
+end;
|
|
|
+
|
|
|
end.
|