- 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.NativeStyle = True
|
||||
TabOrder = 0
|
||||
Width = 376
|
||||
Width = 390
|
||||
end
|
||||
object dxLayoutControl1Group_Root: TdxLayoutGroup
|
||||
ShowCaption = False
|
||||
|
||||
@ -16,6 +16,12 @@ uses
|
||||
type
|
||||
IViewTienda = interface(IViewBase)
|
||||
['{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;
|
||||
|
||||
TfrViewTienda = class(TfrViewBase, IViewTienda)
|
||||
@ -35,9 +41,6 @@ type
|
||||
public
|
||||
property DataItem : TDADataTable read GetDataItem write SetDataItem;
|
||||
procedure ElegirTienda(const AIDTienda : Integer);
|
||||
function getIDTienda: Integer;
|
||||
procedure SetIDTienda(const ID: Integer);
|
||||
|
||||
end;
|
||||
|
||||
|
||||
@ -115,14 +118,6 @@ begin
|
||||
Result := FDataItem;
|
||||
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);
|
||||
begin
|
||||
FDataItem := Value;
|
||||
@ -130,12 +125,4 @@ begin
|
||||
ElegirTienda(FDataItem.FieldByName('ID_TIENDA').AsInteger);
|
||||
end;
|
||||
|
||||
procedure TfrViewTienda.SetIDTienda(const ID: Integer);
|
||||
{var
|
||||
AIndex: Integer;}
|
||||
begin
|
||||
{ if FListaIDTiendas.Find(ID, AIndex) then
|
||||
cbTienda.Text := FListaTiendas.Strings[AIndex];}
|
||||
end;
|
||||
|
||||
end.
|
||||
|
||||
@ -59,8 +59,6 @@ type
|
||||
ANuevaSituacion: String; AFechaEnvio : TDateTime = 0;
|
||||
AFechaRecibido : TDateTime = 0;
|
||||
DoPost: Boolean = True) : Boolean;
|
||||
|
||||
procedure SetID_Tienda (AAlbaran: IBizAlbaranCliente; const ID_Tienda: Integer);
|
||||
end;
|
||||
|
||||
TAlbaranesClienteController = class(TControllerBase, IAlbaranesClienteController)
|
||||
@ -138,8 +136,6 @@ type
|
||||
procedure Print(AAlbaran : IBizAlbaranCliente; AllItems: Boolean = false);
|
||||
procedure EtiquetasPreview(AAlbaran : IBizAlbaranCliente; Const withRefCliente: Boolean);
|
||||
procedure EtiquetasPrint(AAlbaran : IBizAlbaranCliente; Const withRefCliente: Boolean);
|
||||
|
||||
procedure SetID_Tienda (AAlbaran: IBizAlbaranCliente; const ID_Tienda: Integer);
|
||||
end;
|
||||
|
||||
implementation
|
||||
@ -871,27 +867,6 @@ begin
|
||||
FDetallesController := Value;
|
||||
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;
|
||||
var
|
||||
@ -1081,4 +1056,4 @@ begin
|
||||
end;
|
||||
|
||||
end.
|
||||
| ||||