Arreglado problema con acciones que no permitía añadir un capítulo.
git-svn-id: https://192.168.0.254/svn/Proyectos.Tecsitel_FactuGES2/trunk@678 0c75b7a4-871f-7646-8a2f-f78d34cc349f
This commit is contained in:
parent
605da19565
commit
1497478870
@ -218,6 +218,7 @@ inherited frViewDetallesBase: TfrViewDetallesBase
|
||||
end
|
||||
object cxGridViewPOSICION: TcxGridDBColumn
|
||||
DataBinding.FieldName = 'POSICION'
|
||||
Visible = False
|
||||
BestFitMaxWidth = 25
|
||||
MinWidth = 50
|
||||
SortIndex = 0
|
||||
|
||||
@ -331,7 +331,7 @@ end;
|
||||
procedure TfrViewDetallesBase.actAnadirCapituloUpdate(Sender: TObject);
|
||||
begin
|
||||
inherited;
|
||||
(Sender as TAction).Enabled := not ReadOnly and (cxGrid.Focused);
|
||||
(Sender as TAction).Enabled := not ReadOnly;
|
||||
end;
|
||||
|
||||
procedure TfrViewDetallesBase.actAnadirDescuentoExecute(Sender: TObject);
|
||||
@ -365,7 +365,7 @@ end;
|
||||
procedure TfrViewDetallesBase.actAnadirDescuentoUpdate(Sender: TObject);
|
||||
begin
|
||||
inherited;
|
||||
(Sender as TAction).Enabled := not ReadOnly and (cxGrid.Focused);
|
||||
(Sender as TAction).Enabled := not ReadOnly;
|
||||
end;
|
||||
|
||||
procedure TfrViewDetallesBase.actAnadirExecute(Sender: TObject);
|
||||
@ -427,7 +427,7 @@ end;
|
||||
procedure TfrViewDetallesBase.actAnadirSubtotalUpdate(Sender: TObject);
|
||||
begin
|
||||
inherited;
|
||||
(Sender as TAction).Enabled := not ReadOnly and (cxGrid.Focused);
|
||||
(Sender as TAction).Enabled := not ReadOnly;
|
||||
end;
|
||||
|
||||
procedure TfrViewDetallesBase.actAnadirTituloExecute(Sender: TObject);
|
||||
@ -1100,7 +1100,7 @@ end;
|
||||
procedure TfrViewDetallesBase.actAnchoAutomaticoUpdate(Sender: TObject);
|
||||
begin
|
||||
inherited;
|
||||
(Sender as TAction).Enabled := not IsEmpty and (cxGrid.Focused);
|
||||
(Sender as TAction).Enabled := not IsEmpty;
|
||||
end;
|
||||
|
||||
procedure TfrViewDetallesBase.actBajarExecute(Sender: TObject);
|
||||
@ -1187,7 +1187,7 @@ end;
|
||||
procedure TfrViewDetallesBase.actSeleccionarTodoUpdate(Sender: TObject);
|
||||
begin
|
||||
inherited;
|
||||
(Sender as TAction).Enabled := Assigned(DADataSource.DataTable) and (cxGrid.Focused);
|
||||
(Sender as TAction).Enabled := Assigned(DADataSource.DataTable);
|
||||
end;
|
||||
|
||||
procedure TfrViewDetallesBase.actSubirExecute(Sender: TObject);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user