Se arreglan cabeceras de informes solicitado por Maribel, se arreglan varias trareas abiertas.
git-svn-id: https://192.168.0.254/svn/Proyectos.Tecsitel_FactuGES2/trunk@939 0c75b7a4-871f-7646-8a2f-f78d34cc349f
This commit is contained in:
parent
bcfed0d231
commit
1b5e4c6761
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -72,6 +72,8 @@ begin
|
||||
finally
|
||||
AController := NIL;
|
||||
end;
|
||||
|
||||
cbCuentaBancaria.ItemIndex := 0;
|
||||
end;
|
||||
|
||||
function TfEditorElegirDomiciliacion.GetCuentaBancaria: String;
|
||||
|
||||
@ -23,6 +23,10 @@ type
|
||||
function GetArticulo: IBizInventario;
|
||||
procedure SetArticulo(const Value: IBizInventario);
|
||||
property Articulo: IBizInventario read GetArticulo write SetArticulo;
|
||||
|
||||
function GetIdAlmacenObra: Integer;
|
||||
procedure SetIdAlmacenObra(const Value: Integer);
|
||||
property IdAlmacenObra: Integer read GetIdAlmacenObra write SetIdAlmacenObra;
|
||||
end;
|
||||
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@ type
|
||||
|
||||
function Ver(AArticulos: IBizInventario; AInventario : IBizInventario; APedido: IBizPedidoProveedor = Nil): Boolean;
|
||||
procedure VerTodos(AInventario: IBizInventario; const pTipoInventario: String);
|
||||
procedure VerReservas(AArticulo: IBizInventario; const ATipoReservas: String);
|
||||
procedure VerReservas(AArticulo: IBizInventario; const ATipoReservas: String; Const IdAlmacenObra: Integer);
|
||||
|
||||
function BuscarTodos: IBizInventario;
|
||||
function BuscarTodosAlmacenes: IBizInventario;
|
||||
@ -138,7 +138,7 @@ type
|
||||
procedure VerTodos(AInventario: IBizInventario; const pTipoInventario: String);
|
||||
function Ver(AArticulos: IBizInventario; AInventario : IBizInventario; APedido: IBizPedidoProveedor = Nil): Boolean;
|
||||
|
||||
procedure VerReservas(AArticulo: IBizInventario; const ATipoReservas: String);
|
||||
procedure VerReservas(AArticulo: IBizInventario; const ATipoReservas: String; Const IdAlmacenObra: Integer);
|
||||
|
||||
function Guardar(AArticulos : IBizInventario; const FechaMovimiento: TDateTime; const CausaMovimiento: String; AValidar:Boolean = True): Boolean;
|
||||
|
||||
@ -549,7 +549,7 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TInventarioController.VerReservas(AArticulo: IBizInventario; const ATipoReservas: String);
|
||||
procedure TInventarioController.VerReservas(AArticulo: IBizInventario; const ATipoReservas: String; Const IdAlmacenObra: Integer);
|
||||
var
|
||||
AEditor : IEditorDetalleReservas;
|
||||
begin
|
||||
@ -560,6 +560,7 @@ begin
|
||||
try
|
||||
AEditor.Controller := Self; //OJO ORDEN MUY IMPORTANTE
|
||||
AEditor.TipoReservas := ATipoReservas;
|
||||
AEditor.IdAlmacenObra := IdAlmacenObra;
|
||||
AEditor.DetalleReservas := FDataModule.GetDetalleReservas;
|
||||
AEditor.Articulo := AArticulo;
|
||||
AEditor.MultiSelect := True;
|
||||
@ -1159,16 +1160,12 @@ begin
|
||||
|
||||
if Assigned(AArticulos) then
|
||||
begin
|
||||
{ DesconectarTabla(AArticulos.DataTable);
|
||||
repeat
|
||||
if (AArticulos.ID_ARTICULO < 1) then
|
||||
AArticulos.Delete;
|
||||
AArticulos.First;
|
||||
until (AArticulos.DataTable.Locate('ID_ARTICULO', '0', []) = false);
|
||||
|
||||
ConectarTabla(AArticulos.DataTable);
|
||||
}
|
||||
|
||||
//Eliminamos todos los articulos que no esten en el catalogo ya que estos no se podrán reservar
|
||||
repeat
|
||||
if (AArticulos.ID_ARTICULO < 1) then
|
||||
AArticulos.Delete;
|
||||
AArticulos.First;
|
||||
until (AArticulos.DataTable.Locate('ID_ARTICULO', '0', []) = false);
|
||||
|
||||
//Deshabilitamos el calculo de ID (RECID) para poderlo usar para la inserción de movimientos
|
||||
AArticulos.DataTable.OnCalcFields := DeshabilitarOnCalcFields;
|
||||
|
||||
@ -42,7 +42,7 @@ inherited fEditorDetalleReservas: TfEditorDetalleReservas
|
||||
Width = 669
|
||||
ExplicitWidth = 669
|
||||
inherited tbxMain: TTBXToolbar
|
||||
ExplicitWidth = 606
|
||||
ExplicitWidth = 501
|
||||
object TBXSeparatorItem84: TTBXSeparatorItem [6]
|
||||
end
|
||||
object TBXItem54: TTBXItem [7]
|
||||
@ -174,8 +174,8 @@ inherited fEditorDetalleReservas: TfEditorDetalleReservas
|
||||
StyleDisabled.LookAndFeel.SkinName = ''
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitWidth = 273
|
||||
Width = 273
|
||||
ExplicitWidth = 510
|
||||
Width = 510
|
||||
end
|
||||
inherited edtFechaIniFiltro: TcxDateEdit
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
|
||||
@ -32,9 +32,12 @@ type
|
||||
function Seleccionar(Descripcion: String; TipoSeleccion: TEnumSeleccion): Variant;
|
||||
function DarIDAlmacenSeleccionado(Descripcion: String): Integer;
|
||||
function DarIDObraSeleccionada(Descripcion: String): Integer;
|
||||
function GetIdAlmacenObra: Integer;
|
||||
procedure SetIdAlmacenObra(const Value: Integer);
|
||||
|
||||
protected
|
||||
FTipoReservas: String;
|
||||
FIdAlmacenObra: Integer;
|
||||
FArticulo: IBizInventario;
|
||||
FDetalleReservas: IBizDetalleReservas;
|
||||
FController : IInventarioController;
|
||||
@ -60,6 +63,7 @@ type
|
||||
property DetalleReservas: IBizDetalleReservas read GetDetalleReservas write SetDetalleReservas;
|
||||
property Controller : IInventarioController read GetController write SetController;
|
||||
property TipoReservas: String read GetTipoReservas write SetTipoReservas;
|
||||
property IdAlmacenObra: Integer read GetIdAlmacenObra write SetIdAlmacenObra;
|
||||
// property ArticulosSeleccionados: IBizDetalleReservas read GetArticulosSeleccionados;
|
||||
// property MultiSelect : Boolean read GetMultiSelect write SetMultiSelect;
|
||||
|
||||
@ -210,6 +214,11 @@ function TfEditorDetalleReservas.GetDetalleReservas: IBizDetalleReservas;
|
||||
begin
|
||||
Result := FDetalleReservas;
|
||||
end;
|
||||
function TfEditorDetalleReservas.GetIdAlmacenObra: Integer;
|
||||
begin
|
||||
Result := FIdAlmacenObra;
|
||||
end;
|
||||
|
||||
function TfEditorDetalleReservas.GetTipoReservas: String;
|
||||
begin
|
||||
Result := FTipoReservas;
|
||||
@ -362,6 +371,13 @@ begin
|
||||
if Assigned(ViewGrid) then
|
||||
(ViewGrid as IViewDetalleReservas).DetalleReservas := FDetalleReservas;
|
||||
end;
|
||||
procedure TfEditorDetalleReservas.SetIdAlmacenObra(const Value: Integer);
|
||||
begin
|
||||
FIdAlmacenObra := Value;
|
||||
if assigned (ViewGrid) then
|
||||
(ViewGrid as IViewDetalleReservas).IdAlmacenObra := IdAlmacenObra;
|
||||
end;
|
||||
|
||||
procedure TfEditorDetalleReservas.SetTipoReservas(const Value: String);
|
||||
begin
|
||||
FTipoReservas := Value;
|
||||
@ -389,4 +405,3 @@ end;
|
||||
}
|
||||
end.
|
||||
|
||||
| ||||