Prueba para que las ventanas modales contengan otro objeto de negocio diferente al del grid, para poder abrir varias ventanas a la vez
git-svn-id: https://192.168.0.254/svn/Proyectos.Noviseda_FactuGES2/trunk@138 f33bb606-9f5c-448d-9c99-757f00063c96
This commit is contained in:
parent
0b5e8ef6af
commit
5df0770b1b
@ -49,10 +49,10 @@
|
||||
<DelphiCompile Include="AlbaranesCliente_controller.dpk">
|
||||
<MainSource>MainSource</MainSource>
|
||||
</DelphiCompile>
|
||||
<DCCReference Include="..\..\Facturas de cliente\AlbaranesCliente_data.dcp" />
|
||||
<DCCReference Include="..\..\Facturas de cliente\AlbaranesCliente_model.dcp" />
|
||||
<DCCReference Include="..\..\Facturas de cliente\Articulos_controller.dcp" />
|
||||
<DCCReference Include="..\..\Facturas de cliente\Contactos_controller.dcp" />
|
||||
<DCCReference Include="C:\Documents and Settings\Usuario\AlbaranesCliente_data.dcp" />
|
||||
<DCCReference Include="C:\Documents and Settings\Usuario\AlbaranesCliente_model.dcp" />
|
||||
<DCCReference Include="C:\Documents and Settings\Usuario\Articulos_controller.dcp" />
|
||||
<DCCReference Include="C:\Documents and Settings\Usuario\Contactos_controller.dcp" />
|
||||
<DCCReference Include="uAlbaranesClienteController.pas" />
|
||||
<DCCReference Include="uAlbaranesClienteReportController.pas" />
|
||||
<DCCReference Include="uArticulosAlbaranClienteController.pas" />
|
||||
|
||||
Binary file not shown.
@ -588,8 +588,21 @@ end;
|
||||
procedure TAlbaranesClienteController.Ver(AAlbaran: IBizAlbaranCliente);
|
||||
var
|
||||
AEditor : IEditorAlbaranCliente;
|
||||
// AAlbaran2: IBizAlbaranCliente;
|
||||
// Esnuevo: Boolean;
|
||||
begin
|
||||
AEditor := NIL;
|
||||
|
||||
// Esnuevo := AAlbaran.ID < 0;
|
||||
//Es modificación
|
||||
// if not Esnuevo then
|
||||
// begin
|
||||
// AAlbaran2 := Buscar(AAlbaran.ID);
|
||||
// AAlbaran2.DataTable.Active := True;
|
||||
// end
|
||||
// else
|
||||
// AAlbaran2 := Nuevo;
|
||||
|
||||
RecuperarObjetos(AAlbaran);
|
||||
|
||||
if (AAlbaran.TIPO = CTE_TIPO_ALBARAN) then
|
||||
@ -614,6 +627,10 @@ begin
|
||||
//MODO CONSULTAR (Se deja la tabla como estaba)
|
||||
if AEditor.ReadOnly then
|
||||
SetDataTableReadOnly(AAlbaran.DataTable, False);
|
||||
|
||||
// if Esnuevo then
|
||||
// DuplicarRegistro(AAlbaran.DataTable, AAlbaran.DataTable, True, True, True);
|
||||
|
||||
finally
|
||||
AEditor.Release;
|
||||
AEditor := NIL;
|
||||
|
||||
@ -199,10 +199,6 @@ inherited fEditorAlbaranesCliente: TfEditorAlbaranesCliente
|
||||
inherited actAnchoAuto: TAction
|
||||
ImageIndex = 22
|
||||
end
|
||||
inherited actExportarExcel: TAction
|
||||
Enabled = False
|
||||
Visible = False
|
||||
end
|
||||
object actGenerarFactura: TAction
|
||||
Category = 'Acciones'
|
||||
Caption = 'Generar factura'
|
||||
|
||||
@ -483,7 +483,7 @@ begin
|
||||
// end;
|
||||
// 100 : begin // Albaran nuevo vacio
|
||||
if FController.Anadir(Albaranes) then
|
||||
FController.Ver(Albaranes);
|
||||
FController.Ver(Albaranes);
|
||||
// end;
|
||||
// end;
|
||||
// end;
|
||||
|
||||
Reference in New Issue
Block a user