- Repaso a multiempresa y tiendas.
- Limpieza de warnings. git-svn-id: https://192.168.0.254/svn/Proyectos.Acana_FactuGES2/trunk@294 f4e31baf-9722-1c47-927c-6f952f962d4b
This commit is contained in:
parent
5d5d98d8d0
commit
b68b3e630a
@ -43,7 +43,7 @@ inherited frViewTienda: TfrViewTienda
|
|||||||
StyleHot.LookAndFeel.Kind = lfStandard
|
StyleHot.LookAndFeel.Kind = lfStandard
|
||||||
StyleHot.LookAndFeel.NativeStyle = True
|
StyleHot.LookAndFeel.NativeStyle = True
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
Width = 376
|
Width = 390
|
||||||
end
|
end
|
||||||
object dxLayoutControl1Group_Root: TdxLayoutGroup
|
object dxLayoutControl1Group_Root: TdxLayoutGroup
|
||||||
ShowCaption = False
|
ShowCaption = False
|
||||||
|
|||||||
@ -16,6 +16,12 @@ uses
|
|||||||
type
|
type
|
||||||
IViewTienda = interface(IViewBase)
|
IViewTienda = interface(IViewBase)
|
||||||
['{9FD357AB-2E87-4CAF-8AEB-04368AD075AF}']
|
['{9FD357AB-2E87-4CAF-8AEB-04368AD075AF}']
|
||||||
|
|
||||||
|
function GetDataItem: TDADataTable;
|
||||||
|
procedure SetDataItem(const Value: TDADataTable);
|
||||||
|
|
||||||
|
property DataItem : TDADataTable read GetDataItem write SetDataItem;
|
||||||
|
procedure ElegirTienda(const AIDTienda : Integer);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TfrViewTienda = class(TfrViewBase, IViewTienda)
|
TfrViewTienda = class(TfrViewBase, IViewTienda)
|
||||||
@ -35,9 +41,6 @@ type
|
|||||||
public
|
public
|
||||||
property DataItem : TDADataTable read GetDataItem write SetDataItem;
|
property DataItem : TDADataTable read GetDataItem write SetDataItem;
|
||||||
procedure ElegirTienda(const AIDTienda : Integer);
|
procedure ElegirTienda(const AIDTienda : Integer);
|
||||||
function getIDTienda: Integer;
|
|
||||||
procedure SetIDTienda(const ID: Integer);
|
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -115,14 +118,6 @@ begin
|
|||||||
Result := FDataItem;
|
Result := FDataItem;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TfrViewTienda.getIDTienda: Integer;
|
|
||||||
begin
|
|
||||||
{ if FListaTiendas.IndexOf(cbTienda.Text) < 0 then
|
|
||||||
Result := FListaTiendas.IndexOf(cbTienda.Text)
|
|
||||||
else
|
|
||||||
Result := FListaIDTiendas.Integers[FListaTiendas.IndexOf(cbTienda.Text)];}
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfrViewTienda.SetDataItem(const Value: TDADataTable);
|
procedure TfrViewTienda.SetDataItem(const Value: TDADataTable);
|
||||||
begin
|
begin
|
||||||
FDataItem := Value;
|
FDataItem := Value;
|
||||||
@ -130,12 +125,4 @@ begin
|
|||||||
ElegirTienda(FDataItem.FieldByName('ID_TIENDA').AsInteger);
|
ElegirTienda(FDataItem.FieldByName('ID_TIENDA').AsInteger);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfrViewTienda.SetIDTienda(const ID: Integer);
|
|
||||||
{var
|
|
||||||
AIndex: Integer;}
|
|
||||||
begin
|
|
||||||
{ if FListaIDTiendas.Find(ID, AIndex) then
|
|
||||||
cbTienda.Text := FListaTiendas.Strings[AIndex];}
|
|
||||||
end;
|
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|||||||
@ -59,8 +59,6 @@ type
|
|||||||
ANuevaSituacion: String; AFechaEnvio : TDateTime = 0;
|
ANuevaSituacion: String; AFechaEnvio : TDateTime = 0;
|
||||||
AFechaRecibido : TDateTime = 0;
|
AFechaRecibido : TDateTime = 0;
|
||||||
DoPost: Boolean = True) : Boolean;
|
DoPost: Boolean = True) : Boolean;
|
||||||
|
|
||||||
procedure SetID_Tienda (AAlbaran: IBizAlbaranCliente; const ID_Tienda: Integer);
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TAlbaranesClienteController = class(TControllerBase, IAlbaranesClienteController)
|
TAlbaranesClienteController = class(TControllerBase, IAlbaranesClienteController)
|
||||||
@ -138,8 +136,6 @@ type
|
|||||||
procedure Print(AAlbaran : IBizAlbaranCliente; AllItems: Boolean = false);
|
procedure Print(AAlbaran : IBizAlbaranCliente; AllItems: Boolean = false);
|
||||||
procedure EtiquetasPreview(AAlbaran : IBizAlbaranCliente; Const withRefCliente: Boolean);
|
procedure EtiquetasPreview(AAlbaran : IBizAlbaranCliente; Const withRefCliente: Boolean);
|
||||||
procedure EtiquetasPrint(AAlbaran : IBizAlbaranCliente; Const withRefCliente: Boolean);
|
procedure EtiquetasPrint(AAlbaran : IBizAlbaranCliente; Const withRefCliente: Boolean);
|
||||||
|
|
||||||
procedure SetID_Tienda (AAlbaran: IBizAlbaranCliente; const ID_Tienda: Integer);
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
@ -871,27 +867,6 @@ begin
|
|||||||
FDetallesController := Value;
|
FDetallesController := Value;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TAlbaranesClienteController.SetID_Tienda(AAlbaran: IBizAlbaranCliente; const ID_Tienda: Integer);
|
|
||||||
var
|
|
||||||
EnEdicion: Boolean;
|
|
||||||
begin
|
|
||||||
if Assigned(AAlbaran) then
|
|
||||||
begin
|
|
||||||
EnEdicion := AAlbaran.DataTable.Editing;
|
|
||||||
if not AAlbaran.DataTable.Editing then
|
|
||||||
AAlbaran.DataTable.Edit;
|
|
||||||
|
|
||||||
if ID_Tienda < 0 then
|
|
||||||
AAlbaran.DataTable.FieldByName(fld_AlbaranesClienteID_TIENDA).AsVariant := Null
|
|
||||||
else
|
|
||||||
AAlbaran.ID_TIENDA := ID_Tienda;
|
|
||||||
|
|
||||||
AAlbaran.DataTable.Post;
|
|
||||||
|
|
||||||
if EnEdicion then
|
|
||||||
AAlbaran.DataTable.Edit;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TAlbaranesClienteController.Guardar(AAlbaran: IBizAlbaranCliente): Boolean;
|
function TAlbaranesClienteController.Guardar(AAlbaran: IBizAlbaranCliente): Boolean;
|
||||||
var
|
var
|
||||||
@ -1081,4 +1056,4 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
| |||||||