|
@@ -61,7 +61,7 @@ type
|
|
|
var Allow: Boolean);
|
|
|
procedure zaBGBillsGridCellCanEdit(Sender: TObject;
|
|
|
const ACoord: TPoint; var Allow: Boolean);
|
|
|
- procedure zgBGLCurrentChanged(Sender: TObject; Col, Row: Integer);
|
|
|
+ procedure zgBGLCurrentChanged;
|
|
|
private
|
|
|
FBGLData: TBGLData;
|
|
|
|
|
@@ -103,7 +103,7 @@ begin
|
|
|
begin
|
|
|
zaBGL.Options := [aoAllowEdit, aoAllowDelete, aoAllowUpMove, aoAllowDownMove];
|
|
|
zaBGL.ExtendRowCount := 0;
|
|
|
- //zgBGL.OnCurrentChanged := zgBGLCurrentChanged;
|
|
|
+ FBGLData.AfterCurrentBGLChanged := zgBGLCurrentChanged;
|
|
|
end
|
|
|
else
|
|
|
zaBGL.Options := [aoAllowInsert, aoAllowEdit, aoAllowDelete, aoAutoInsert, aoAllowUpMove, aoAllowDownMove];
|
|
@@ -297,8 +297,7 @@ begin
|
|
|
Allow := not FBGLData.cdsBGLViewIsCloud.AsBoolean;
|
|
|
end;
|
|
|
|
|
|
-procedure TBGLFrame.zgBGLCurrentChanged(Sender: TObject; Col,
|
|
|
- Row: Integer);
|
|
|
+procedure TBGLFrame.zgBGLCurrentChanged;
|
|
|
begin
|
|
|
dbmPos_Reason.ReadOnly := _IsCloud and FBGLData.cdsBGLViewIsCloud.AsBoolean;
|
|
|
dbmDirection.ReadOnly := dbmPos_Reason.ReadOnly;
|