Version 4.3.8
git-svn-id: https://192.168.0.254/svn/Proyectos.LuisLeon_FactuGES2/trunk@216 b2cfbe5a-eba1-4a0c-8b32-7feea0a119f2
This commit is contained in:
parent
a242a5f445
commit
aba1c3e0e3
@ -1353,13 +1353,14 @@ CREATE VIEW V_EMPRESAS(
|
|||||||
ID_TIPO_IVA,
|
ID_TIPO_IVA,
|
||||||
ID_FORMA_PAGO,
|
ID_FORMA_PAGO,
|
||||||
ID_ALMACEN,
|
ID_ALMACEN,
|
||||||
ID_PERFIL)
|
ID_PERFIL,
|
||||||
|
VALIDEZ_PRESUPUESTOS)
|
||||||
AS
|
AS
|
||||||
select E.ID, E.NIF_CIF, E.NOMBRE, E.RAZON_SOCIAL, E.CALLE, E.POBLACION,
|
select E.ID, E.NIF_CIF, E.NOMBRE, E.RAZON_SOCIAL, E.CALLE, E.POBLACION,
|
||||||
E.PROVINCIA, E.CODIGO_POSTAL, E.TELEFONO_1, E.TELEFONO_2, E.MOVIL_1, E.MOVIL_2,
|
E.PROVINCIA, E.CODIGO_POSTAL, E.TELEFONO_1, E.TELEFONO_2, E.MOVIL_1, E.MOVIL_2,
|
||||||
E.FAX, E.EMAIL_1, E.EMAIL_2, E.PAGINA_WEB, E.NOTAS, E.FECHA_ALTA, E.FECHA_MODIFICACION,
|
E.FAX, E.EMAIL_1, E.EMAIL_2, E.PAGINA_WEB, E.NOTAS, E.FECHA_ALTA, E.FECHA_MODIFICACION,
|
||||||
E.USUARIO, E.LOGOTIPO, E.REGISTRO_MERCANTIL, E.PARAM_TIEMPO, E.PARAM_MARGEN, E.ID_TIPO_IVA,
|
E.USUARIO, E.LOGOTIPO, E.REGISTRO_MERCANTIL, E.PARAM_TIEMPO, E.PARAM_MARGEN, E.ID_TIPO_IVA,
|
||||||
E.ID_FORMA_PAGO, E.ID_ALMACEN, EP.id_perfil
|
E.ID_FORMA_PAGO, E.ID_ALMACEN, EP.id_perfil, E.VALIDEZ_PRESUPUESTOS
|
||||||
from empresas E
|
from empresas E
|
||||||
left join empresas_PERFILES EP on (EP.ID_EMPRESA = E.ID)
|
left join empresas_PERFILES EP on (EP.ID_EMPRESA = E.ID)
|
||||||
;
|
;
|
||||||
@ -5193,7 +5194,6 @@ ALTER TABLE PEDIDOS_PROVEEDOR ADD CONSTRAINT FK_PEDIDOS_PROVEEDOR2 FOREIGN KEY (
|
|||||||
ALTER TABLE PEDIDOS_PROVEEDOR ADD CONSTRAINT FK_PEDIDOS_PROVEEDOR_1 FOREIGN KEY (ID_FACTURA) REFERENCES FACTURAS_PROVEEDOR (ID) ON DELETE SET NULL ON UPDATE CASCADE;
|
ALTER TABLE PEDIDOS_PROVEEDOR ADD CONSTRAINT FK_PEDIDOS_PROVEEDOR_1 FOREIGN KEY (ID_FACTURA) REFERENCES FACTURAS_PROVEEDOR (ID) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
ALTER TABLE PRESUPUESTOS_CLIENTE ADD CONSTRAINT FK_PRESUPUESTOS_CLIENTE_1 FOREIGN KEY (ID_EMPRESA) REFERENCES EMPRESAS (ID);
|
ALTER TABLE PRESUPUESTOS_CLIENTE ADD CONSTRAINT FK_PRESUPUESTOS_CLIENTE_1 FOREIGN KEY (ID_EMPRESA) REFERENCES EMPRESAS (ID);
|
||||||
ALTER TABLE PRESUPUESTOS_CLIENTE ADD CONSTRAINT FK_PRESUPUESTOS_CLIENTE_2 FOREIGN KEY (ID_CLIENTE) REFERENCES CONTACTOS (ID);
|
ALTER TABLE PRESUPUESTOS_CLIENTE ADD CONSTRAINT FK_PRESUPUESTOS_CLIENTE_2 FOREIGN KEY (ID_CLIENTE) REFERENCES CONTACTOS (ID);
|
||||||
alter table PRESUPUESTOS_CLIENTE add constraint FK_PRESUPUESTOS_CLIENTE_3 foreign key (ID_FACTURA_PROFORMA) references FACTURAS_PROFORMA(ID);
|
|
||||||
ALTER TABLE RECIBOS_CLIENTE ADD CONSTRAINT FK_RECIBOS_CLIENTE FOREIGN KEY (ID_FACTURA) REFERENCES FACTURAS_CLIENTE (ID) ON DELETE CASCADE ON UPDATE CASCADE;
|
ALTER TABLE RECIBOS_CLIENTE ADD CONSTRAINT FK_RECIBOS_CLIENTE FOREIGN KEY (ID_FACTURA) REFERENCES FACTURAS_CLIENTE (ID) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
ALTER TABLE RECIBOS_CLIENTE ADD CONSTRAINT FK_RECIBOS_CLIENTE2 FOREIGN KEY (ID_REMESA) REFERENCES REMESAS_CLIENTE (ID) ON DELETE SET NULL ON UPDATE SET NULL;
|
ALTER TABLE RECIBOS_CLIENTE ADD CONSTRAINT FK_RECIBOS_CLIENTE2 FOREIGN KEY (ID_REMESA) REFERENCES REMESAS_CLIENTE (ID) ON DELETE SET NULL ON UPDATE SET NULL;
|
||||||
ALTER TABLE RECIBOS_PROVEEDOR ADD CONSTRAINT FK_RECIBOS_PROVEEDOR FOREIGN KEY (ID_FACTURA) REFERENCES FACTURAS_PROVEEDOR (ID) ON DELETE CASCADE ON UPDATE CASCADE;
|
ALTER TABLE RECIBOS_PROVEEDOR ADD CONSTRAINT FK_RECIBOS_PROVEEDOR FOREIGN KEY (ID_FACTURA) REFERENCES FACTURAS_PROVEEDOR (ID) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|||||||
@ -211,6 +211,10 @@ inherited DataModuleEmpresas: TDataModuleEmpresas
|
|||||||
item
|
item
|
||||||
Name = 'ID_PERFIL'
|
Name = 'ID_PERFIL'
|
||||||
DataType = datInteger
|
DataType = datInteger
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'VALIDEZ_PRESUPUESTOS'
|
||||||
|
DataType = datSmallInt
|
||||||
end>
|
end>
|
||||||
Params = <>
|
Params = <>
|
||||||
StreamingOptions = [soDisableEventsWhileStreaming]
|
StreamingOptions = [soDisableEventsWhileStreaming]
|
||||||
|
|||||||
@ -9,8 +9,8 @@ const
|
|||||||
{ Data table rules ids
|
{ Data table rules ids
|
||||||
Feel free to change them to something more human readable
|
Feel free to change them to something more human readable
|
||||||
but make sure they are unique in the context of your application }
|
but make sure they are unique in the context of your application }
|
||||||
RID_Empresas = '{62467EEF-21A5-4B49-89AB-35AE73A15515}';
|
RID_Empresas = '{DB389F2C-AF2C-4C7E-BD9F-A3A39017C639}';
|
||||||
RID_EmpresasDatosBanco = '{EA93C21F-6570-4108-B25C-512F72920134}';
|
RID_EmpresasDatosBanco = '{EE4E0FEC-81F6-4D3D-9310-3C96C5E35E0B}';
|
||||||
|
|
||||||
{ Data table names }
|
{ Data table names }
|
||||||
nme_Empresas = 'Empresas';
|
nme_Empresas = 'Empresas';
|
||||||
@ -45,6 +45,7 @@ const
|
|||||||
fld_EmpresasID_FORMA_PAGO = 'ID_FORMA_PAGO';
|
fld_EmpresasID_FORMA_PAGO = 'ID_FORMA_PAGO';
|
||||||
fld_EmpresasID_ALMACEN = 'ID_ALMACEN';
|
fld_EmpresasID_ALMACEN = 'ID_ALMACEN';
|
||||||
fld_EmpresasID_PERFIL = 'ID_PERFIL';
|
fld_EmpresasID_PERFIL = 'ID_PERFIL';
|
||||||
|
fld_EmpresasVALIDEZ_PRESUPUESTOS = 'VALIDEZ_PRESUPUESTOS';
|
||||||
|
|
||||||
{ Empresas field indexes }
|
{ Empresas field indexes }
|
||||||
idx_EmpresasID = 0;
|
idx_EmpresasID = 0;
|
||||||
@ -75,6 +76,7 @@ const
|
|||||||
idx_EmpresasID_FORMA_PAGO = 25;
|
idx_EmpresasID_FORMA_PAGO = 25;
|
||||||
idx_EmpresasID_ALMACEN = 26;
|
idx_EmpresasID_ALMACEN = 26;
|
||||||
idx_EmpresasID_PERFIL = 27;
|
idx_EmpresasID_PERFIL = 27;
|
||||||
|
idx_EmpresasVALIDEZ_PRESUPUESTOS = 28;
|
||||||
|
|
||||||
{ EmpresasDatosBanco fields }
|
{ EmpresasDatosBanco fields }
|
||||||
fld_EmpresasDatosBancoID = 'ID';
|
fld_EmpresasDatosBancoID = 'ID';
|
||||||
@ -117,7 +119,7 @@ const
|
|||||||
type
|
type
|
||||||
{ IEmpresas }
|
{ IEmpresas }
|
||||||
IEmpresas = interface(IDAStronglyTypedDataTable)
|
IEmpresas = interface(IDAStronglyTypedDataTable)
|
||||||
['{81B08C9A-BF70-4385-BDA7-302F3F2075B3}']
|
['{3258A439-7ECA-4924-ADC8-F32ED996CBEA}']
|
||||||
{ Property getters and setters }
|
{ Property getters and setters }
|
||||||
function GetIDValue: Integer;
|
function GetIDValue: Integer;
|
||||||
procedure SetIDValue(const aValue: Integer);
|
procedure SetIDValue(const aValue: Integer);
|
||||||
@ -229,6 +231,10 @@ type
|
|||||||
procedure SetID_PERFILValue(const aValue: Integer);
|
procedure SetID_PERFILValue(const aValue: Integer);
|
||||||
function GetID_PERFILIsNull: Boolean;
|
function GetID_PERFILIsNull: Boolean;
|
||||||
procedure SetID_PERFILIsNull(const aValue: Boolean);
|
procedure SetID_PERFILIsNull(const aValue: Boolean);
|
||||||
|
function GetVALIDEZ_PRESUPUESTOSValue: SmallInt;
|
||||||
|
procedure SetVALIDEZ_PRESUPUESTOSValue(const aValue: SmallInt);
|
||||||
|
function GetVALIDEZ_PRESUPUESTOSIsNull: Boolean;
|
||||||
|
procedure SetVALIDEZ_PRESUPUESTOSIsNull(const aValue: Boolean);
|
||||||
|
|
||||||
|
|
||||||
{ Properties }
|
{ Properties }
|
||||||
@ -288,6 +294,8 @@ type
|
|||||||
property ID_ALMACENIsNull: Boolean read GetID_ALMACENIsNull write SetID_ALMACENIsNull;
|
property ID_ALMACENIsNull: Boolean read GetID_ALMACENIsNull write SetID_ALMACENIsNull;
|
||||||
property ID_PERFIL: Integer read GetID_PERFILValue write SetID_PERFILValue;
|
property ID_PERFIL: Integer read GetID_PERFILValue write SetID_PERFILValue;
|
||||||
property ID_PERFILIsNull: Boolean read GetID_PERFILIsNull write SetID_PERFILIsNull;
|
property ID_PERFILIsNull: Boolean read GetID_PERFILIsNull write SetID_PERFILIsNull;
|
||||||
|
property VALIDEZ_PRESUPUESTOS: SmallInt read GetVALIDEZ_PRESUPUESTOSValue write SetVALIDEZ_PRESUPUESTOSValue;
|
||||||
|
property VALIDEZ_PRESUPUESTOSIsNull: Boolean read GetVALIDEZ_PRESUPUESTOSIsNull write SetVALIDEZ_PRESUPUESTOSIsNull;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ TEmpresasDataTableRules }
|
{ TEmpresasDataTableRules }
|
||||||
@ -409,6 +417,10 @@ type
|
|||||||
procedure SetID_PERFILValue(const aValue: Integer); virtual;
|
procedure SetID_PERFILValue(const aValue: Integer); virtual;
|
||||||
function GetID_PERFILIsNull: Boolean; virtual;
|
function GetID_PERFILIsNull: Boolean; virtual;
|
||||||
procedure SetID_PERFILIsNull(const aValue: Boolean); virtual;
|
procedure SetID_PERFILIsNull(const aValue: Boolean); virtual;
|
||||||
|
function GetVALIDEZ_PRESUPUESTOSValue: SmallInt; virtual;
|
||||||
|
procedure SetVALIDEZ_PRESUPUESTOSValue(const aValue: SmallInt); virtual;
|
||||||
|
function GetVALIDEZ_PRESUPUESTOSIsNull: Boolean; virtual;
|
||||||
|
procedure SetVALIDEZ_PRESUPUESTOSIsNull(const aValue: Boolean); virtual;
|
||||||
|
|
||||||
{ Properties }
|
{ Properties }
|
||||||
property ID: Integer read GetIDValue write SetIDValue;
|
property ID: Integer read GetIDValue write SetIDValue;
|
||||||
@ -467,6 +479,8 @@ type
|
|||||||
property ID_ALMACENIsNull: Boolean read GetID_ALMACENIsNull write SetID_ALMACENIsNull;
|
property ID_ALMACENIsNull: Boolean read GetID_ALMACENIsNull write SetID_ALMACENIsNull;
|
||||||
property ID_PERFIL: Integer read GetID_PERFILValue write SetID_PERFILValue;
|
property ID_PERFIL: Integer read GetID_PERFILValue write SetID_PERFILValue;
|
||||||
property ID_PERFILIsNull: Boolean read GetID_PERFILIsNull write SetID_PERFILIsNull;
|
property ID_PERFILIsNull: Boolean read GetID_PERFILIsNull write SetID_PERFILIsNull;
|
||||||
|
property VALIDEZ_PRESUPUESTOS: SmallInt read GetVALIDEZ_PRESUPUESTOSValue write SetVALIDEZ_PRESUPUESTOSValue;
|
||||||
|
property VALIDEZ_PRESUPUESTOSIsNull: Boolean read GetVALIDEZ_PRESUPUESTOSIsNull write SetVALIDEZ_PRESUPUESTOSIsNull;
|
||||||
|
|
||||||
public
|
public
|
||||||
constructor Create(aDataTable: TDADataTable); override;
|
constructor Create(aDataTable: TDADataTable); override;
|
||||||
@ -476,7 +490,7 @@ type
|
|||||||
|
|
||||||
{ IEmpresasDatosBanco }
|
{ IEmpresasDatosBanco }
|
||||||
IEmpresasDatosBanco = interface(IDAStronglyTypedDataTable)
|
IEmpresasDatosBanco = interface(IDAStronglyTypedDataTable)
|
||||||
['{75E6F351-83DD-4C64-A708-CBED48F69C95}']
|
['{392595DA-98CB-4179-BE5A-32F9667DCF5F}']
|
||||||
{ Property getters and setters }
|
{ Property getters and setters }
|
||||||
function GetIDValue: Integer;
|
function GetIDValue: Integer;
|
||||||
procedure SetIDValue(const aValue: Integer);
|
procedure SetIDValue(const aValue: Integer);
|
||||||
@ -1321,6 +1335,27 @@ begin
|
|||||||
DataTable.Fields[idx_EmpresasID_PERFIL].AsVariant := Null;
|
DataTable.Fields[idx_EmpresasID_PERFIL].AsVariant := Null;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TEmpresasDataTableRules.GetVALIDEZ_PRESUPUESTOSValue: SmallInt;
|
||||||
|
begin
|
||||||
|
result := DataTable.Fields[idx_EmpresasVALIDEZ_PRESUPUESTOS].AsSmallInt;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TEmpresasDataTableRules.SetVALIDEZ_PRESUPUESTOSValue(const aValue: SmallInt);
|
||||||
|
begin
|
||||||
|
DataTable.Fields[idx_EmpresasVALIDEZ_PRESUPUESTOS].AsSmallInt := aValue;
|
||||||
|
end;
|
||||||
|
|
||||||
|
function TEmpresasDataTableRules.GetVALIDEZ_PRESUPUESTOSIsNull: boolean;
|
||||||
|
begin
|
||||||
|
result := DataTable.Fields[idx_EmpresasVALIDEZ_PRESUPUESTOS].IsNull;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TEmpresasDataTableRules.SetVALIDEZ_PRESUPUESTOSIsNull(const aValue: Boolean);
|
||||||
|
begin
|
||||||
|
if aValue then
|
||||||
|
DataTable.Fields[idx_EmpresasVALIDEZ_PRESUPUESTOS].AsVariant := Null;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
{ TEmpresasDatosBancoDataTableRules }
|
{ TEmpresasDatosBancoDataTableRules }
|
||||||
constructor TEmpresasDatosBancoDataTableRules.Create(aDataTable: TDADataTable);
|
constructor TEmpresasDatosBancoDataTableRules.Create(aDataTable: TDADataTable);
|
||||||
|
|||||||
@ -9,13 +9,13 @@ const
|
|||||||
{ Delta rules ids
|
{ Delta rules ids
|
||||||
Feel free to change them to something more human readable
|
Feel free to change them to something more human readable
|
||||||
but make sure they are unique in the context of your application }
|
but make sure they are unique in the context of your application }
|
||||||
RID_EmpresasDelta = '{415F9B21-75FF-4944-BC51-36EE7893F213}';
|
RID_EmpresasDelta = '{D78C3F16-F8BB-4C07-BB77-B5B801803B96}';
|
||||||
RID_EmpresasDatosBancoDelta = '{89191BEE-980B-4F20-BC43-492662CF8779}';
|
RID_EmpresasDatosBancoDelta = '{C793A29B-3930-49F4-ABCD-2C5598D0D160}';
|
||||||
|
|
||||||
type
|
type
|
||||||
{ IEmpresasDelta }
|
{ IEmpresasDelta }
|
||||||
IEmpresasDelta = interface(IEmpresas)
|
IEmpresasDelta = interface(IEmpresas)
|
||||||
['{415F9B21-75FF-4944-BC51-36EE7893F213}']
|
['{D78C3F16-F8BB-4C07-BB77-B5B801803B96}']
|
||||||
{ Property getters and setters }
|
{ Property getters and setters }
|
||||||
function GetOldIDValue : Integer;
|
function GetOldIDValue : Integer;
|
||||||
function GetOldNIF_CIFValue : String;
|
function GetOldNIF_CIFValue : String;
|
||||||
@ -45,6 +45,7 @@ type
|
|||||||
function GetOldID_FORMA_PAGOValue : SmallInt;
|
function GetOldID_FORMA_PAGOValue : SmallInt;
|
||||||
function GetOldID_ALMACENValue : SmallInt;
|
function GetOldID_ALMACENValue : SmallInt;
|
||||||
function GetOldID_PERFILValue : Integer;
|
function GetOldID_PERFILValue : Integer;
|
||||||
|
function GetOldVALIDEZ_PRESUPUESTOSValue : SmallInt;
|
||||||
|
|
||||||
{ Properties }
|
{ Properties }
|
||||||
property OldID : Integer read GetOldIDValue;
|
property OldID : Integer read GetOldIDValue;
|
||||||
@ -75,6 +76,7 @@ type
|
|||||||
property OldID_FORMA_PAGO : SmallInt read GetOldID_FORMA_PAGOValue;
|
property OldID_FORMA_PAGO : SmallInt read GetOldID_FORMA_PAGOValue;
|
||||||
property OldID_ALMACEN : SmallInt read GetOldID_ALMACENValue;
|
property OldID_ALMACEN : SmallInt read GetOldID_ALMACENValue;
|
||||||
property OldID_PERFIL : Integer read GetOldID_PERFILValue;
|
property OldID_PERFIL : Integer read GetOldID_PERFILValue;
|
||||||
|
property OldVALIDEZ_PRESUPUESTOS : SmallInt read GetOldVALIDEZ_PRESUPUESTOSValue;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ TEmpresasBusinessProcessorRules }
|
{ TEmpresasBusinessProcessorRules }
|
||||||
@ -252,6 +254,12 @@ type
|
|||||||
function GetOldID_PERFILIsNull: Boolean; virtual;
|
function GetOldID_PERFILIsNull: Boolean; virtual;
|
||||||
procedure SetID_PERFILValue(const aValue: Integer); virtual;
|
procedure SetID_PERFILValue(const aValue: Integer); virtual;
|
||||||
procedure SetID_PERFILIsNull(const aValue: Boolean); virtual;
|
procedure SetID_PERFILIsNull(const aValue: Boolean); virtual;
|
||||||
|
function GetVALIDEZ_PRESUPUESTOSValue: SmallInt; virtual;
|
||||||
|
function GetVALIDEZ_PRESUPUESTOSIsNull: Boolean; virtual;
|
||||||
|
function GetOldVALIDEZ_PRESUPUESTOSValue: SmallInt; virtual;
|
||||||
|
function GetOldVALIDEZ_PRESUPUESTOSIsNull: Boolean; virtual;
|
||||||
|
procedure SetVALIDEZ_PRESUPUESTOSValue(const aValue: SmallInt); virtual;
|
||||||
|
procedure SetVALIDEZ_PRESUPUESTOSIsNull(const aValue: Boolean); virtual;
|
||||||
|
|
||||||
{ Properties }
|
{ Properties }
|
||||||
property ID : Integer read GetIDValue write SetIDValue;
|
property ID : Integer read GetIDValue write SetIDValue;
|
||||||
@ -366,6 +374,10 @@ type
|
|||||||
property ID_PERFILIsNull : Boolean read GetID_PERFILIsNull write SetID_PERFILIsNull;
|
property ID_PERFILIsNull : Boolean read GetID_PERFILIsNull write SetID_PERFILIsNull;
|
||||||
property OldID_PERFIL : Integer read GetOldID_PERFILValue;
|
property OldID_PERFIL : Integer read GetOldID_PERFILValue;
|
||||||
property OldID_PERFILIsNull : Boolean read GetOldID_PERFILIsNull;
|
property OldID_PERFILIsNull : Boolean read GetOldID_PERFILIsNull;
|
||||||
|
property VALIDEZ_PRESUPUESTOS : SmallInt read GetVALIDEZ_PRESUPUESTOSValue write SetVALIDEZ_PRESUPUESTOSValue;
|
||||||
|
property VALIDEZ_PRESUPUESTOSIsNull : Boolean read GetVALIDEZ_PRESUPUESTOSIsNull write SetVALIDEZ_PRESUPUESTOSIsNull;
|
||||||
|
property OldVALIDEZ_PRESUPUESTOS : SmallInt read GetOldVALIDEZ_PRESUPUESTOSValue;
|
||||||
|
property OldVALIDEZ_PRESUPUESTOSIsNull : Boolean read GetOldVALIDEZ_PRESUPUESTOSIsNull;
|
||||||
|
|
||||||
public
|
public
|
||||||
constructor Create(aBusinessProcessor: TDABusinessProcessor); override;
|
constructor Create(aBusinessProcessor: TDABusinessProcessor); override;
|
||||||
@ -375,7 +387,7 @@ type
|
|||||||
|
|
||||||
{ IEmpresasDatosBancoDelta }
|
{ IEmpresasDatosBancoDelta }
|
||||||
IEmpresasDatosBancoDelta = interface(IEmpresasDatosBanco)
|
IEmpresasDatosBancoDelta = interface(IEmpresasDatosBanco)
|
||||||
['{89191BEE-980B-4F20-BC43-492662CF8779}']
|
['{C793A29B-3930-49F4-ABCD-2C5598D0D160}']
|
||||||
{ Property getters and setters }
|
{ Property getters and setters }
|
||||||
function GetOldIDValue : Integer;
|
function GetOldIDValue : Integer;
|
||||||
function GetOldID_EMPRESAValue : Integer;
|
function GetOldID_EMPRESAValue : Integer;
|
||||||
@ -1502,6 +1514,37 @@ begin
|
|||||||
BusinessProcessor.CurrentChange.NewValueByName[fld_EmpresasID_PERFIL] := Null;
|
BusinessProcessor.CurrentChange.NewValueByName[fld_EmpresasID_PERFIL] := Null;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TEmpresasBusinessProcessorRules.GetVALIDEZ_PRESUPUESTOSValue: SmallInt;
|
||||||
|
begin
|
||||||
|
result := BusinessProcessor.CurrentChange.NewValueByName[fld_EmpresasVALIDEZ_PRESUPUESTOS];
|
||||||
|
end;
|
||||||
|
|
||||||
|
function TEmpresasBusinessProcessorRules.GetVALIDEZ_PRESUPUESTOSIsNull: Boolean;
|
||||||
|
begin
|
||||||
|
result := VarIsNull(BusinessProcessor.CurrentChange.NewValueByName[fld_EmpresasVALIDEZ_PRESUPUESTOS]);
|
||||||
|
end;
|
||||||
|
|
||||||
|
function TEmpresasBusinessProcessorRules.GetOldVALIDEZ_PRESUPUESTOSValue: SmallInt;
|
||||||
|
begin
|
||||||
|
result := BusinessProcessor.CurrentChange.OldValueByName[fld_EmpresasVALIDEZ_PRESUPUESTOS];
|
||||||
|
end;
|
||||||
|
|
||||||
|
function TEmpresasBusinessProcessorRules.GetOldVALIDEZ_PRESUPUESTOSIsNull: Boolean;
|
||||||
|
begin
|
||||||
|
result := VarIsNull(BusinessProcessor.CurrentChange.OldValueByName[fld_EmpresasVALIDEZ_PRESUPUESTOS]);
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TEmpresasBusinessProcessorRules.SetVALIDEZ_PRESUPUESTOSValue(const aValue: SmallInt);
|
||||||
|
begin
|
||||||
|
BusinessProcessor.CurrentChange.NewValueByName[fld_EmpresasVALIDEZ_PRESUPUESTOS] := aValue;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TEmpresasBusinessProcessorRules.SetVALIDEZ_PRESUPUESTOSIsNull(const aValue: Boolean);
|
||||||
|
begin
|
||||||
|
if aValue then
|
||||||
|
BusinessProcessor.CurrentChange.NewValueByName[fld_EmpresasVALIDEZ_PRESUPUESTOS] := Null;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
{ TEmpresasDatosBancoBusinessProcessorRules }
|
{ TEmpresasDatosBancoBusinessProcessorRules }
|
||||||
constructor TEmpresasDatosBancoBusinessProcessorRules.Create(aBusinessProcessor: TDABusinessProcessor);
|
constructor TEmpresasDatosBancoBusinessProcessorRules.Create(aBusinessProcessor: TDABusinessProcessor);
|
||||||
|
|||||||
@ -136,6 +136,10 @@ object srvEmpresas: TsrvEmpresas
|
|||||||
item
|
item
|
||||||
DatasetField = 'ID_PERFIL'
|
DatasetField = 'ID_PERFIL'
|
||||||
TableField = 'ID_PERFIL'
|
TableField = 'ID_PERFIL'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
DatasetField = 'VALIDEZ_PRESUPUESTOS'
|
||||||
|
TableField = 'VALIDEZ_PRESUPUESTOS'
|
||||||
end>
|
end>
|
||||||
end>
|
end>
|
||||||
Name = 'Empresas'
|
Name = 'Empresas'
|
||||||
@ -299,6 +303,10 @@ object srvEmpresas: TsrvEmpresas
|
|||||||
item
|
item
|
||||||
Name = 'ID_PERFIL'
|
Name = 'ID_PERFIL'
|
||||||
DataType = datInteger
|
DataType = datInteger
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'VALIDEZ_PRESUPUESTOS'
|
||||||
|
DataType = datSmallInt
|
||||||
end>
|
end>
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
@ -688,6 +696,11 @@ object srvEmpresas: TsrvEmpresas
|
|||||||
Name = 'ID_ALMACEN'
|
Name = 'ID_ALMACEN'
|
||||||
DataType = datSmallInt
|
DataType = datSmallInt
|
||||||
Value = ''
|
Value = ''
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'VALIDEZ_PRESUPUESTOS'
|
||||||
|
DataType = datSmallInt
|
||||||
|
Value = ''
|
||||||
end>
|
end>
|
||||||
Statements = <
|
Statements = <
|
||||||
item
|
item
|
||||||
@ -700,13 +713,14 @@ object srvEmpresas: TsrvEmpresas
|
|||||||
'FONO_2, MOVIL_1, MOVIL_2, '#10' FAX, EMAIL_1, EMAIL_2, PAGINA_WE' +
|
'FONO_2, MOVIL_1, MOVIL_2, '#10' FAX, EMAIL_1, EMAIL_2, PAGINA_WE' +
|
||||||
'B, NOTAS, FECHA_ALTA, '#10' FECHA_MODIFICACION, USUARIO, LOGOTIP' +
|
'B, NOTAS, FECHA_ALTA, '#10' FECHA_MODIFICACION, USUARIO, LOGOTIP' +
|
||||||
'O, REGISTRO_MERCANTIL, '#10' PARAM_TIEMPO, PARAM_MARGEN, ID_TIPO' +
|
'O, REGISTRO_MERCANTIL, '#10' PARAM_TIEMPO, PARAM_MARGEN, ID_TIPO' +
|
||||||
'_IVA, ID_FORMA_PAGO, '#10' ID_ALMACEN)'#10' VALUES'#10' (:ID, :NIF_C' +
|
'_IVA, ID_FORMA_PAGO, '#10' ID_ALMACEN, VALIDEZ_PRESUPUESTOS)'#10' V' +
|
||||||
'IF, :NOMBRE, :RAZON_SOCIAL, :CALLE, :POBLACION,'#10' :PROVINCIA,' +
|
'ALUES'#10' (:ID, :NIF_CIF, :NOMBRE, :RAZON_SOCIAL, :CALLE, :POBLA' +
|
||||||
' :CODIGO_POSTAL, :TELEFONO_1, :TELEFONO_2, '#10' :MOVIL_1, :MOVI' +
|
'CION,'#10' :PROVINCIA, :CODIGO_POSTAL, :TELEFONO_1, :TELEFONO_2,' +
|
||||||
'L_2, :FAX, :EMAIL_1, :EMAIL_2, :PAGINA_WEB, '#10' :NOTAS, :FECHA' +
|
' '#10' :MOVIL_1, :MOVIL_2, :FAX, :EMAIL_1, :EMAIL_2, :PAGINA_WEB' +
|
||||||
'_ALTA, :FECHA_MODIFICACION, :USUARIO, '#10' :LOGOTIPO, :REGISTRO' +
|
', '#10' :NOTAS, :FECHA_ALTA, :FECHA_MODIFICACION, :USUARIO, '#10' ' +
|
||||||
'_MERCANTIL, :PARAM_TIEMPO, :PARAM_MARGEN, '#10' :ID_TIPO_IVA, :I' +
|
' :LOGOTIPO, :REGISTRO_MERCANTIL, :PARAM_TIEMPO, :PARAM_MARGEN, ' +
|
||||||
'D_FORMA_PAGO, :ID_ALMACEN)'#10
|
#10' :ID_TIPO_IVA, :ID_FORMA_PAGO, :ID_ALMACEN, :VALIDEZ_PRESUP' +
|
||||||
|
'UESTOS)'#10
|
||||||
StatementType = stSQL
|
StatementType = stSQL
|
||||||
ColumnMappings = <>
|
ColumnMappings = <>
|
||||||
end>
|
end>
|
||||||
@ -879,9 +893,13 @@ object srvEmpresas: TsrvEmpresas
|
|||||||
DataType = datSmallInt
|
DataType = datSmallInt
|
||||||
Value = ''
|
Value = ''
|
||||||
end
|
end
|
||||||
|
item
|
||||||
|
Name = 'VALIDEZ_PRESUPUESTOS'
|
||||||
|
DataType = datSmallInt
|
||||||
|
Value = ''
|
||||||
|
end
|
||||||
item
|
item
|
||||||
Name = 'OLD_ID'
|
Name = 'OLD_ID'
|
||||||
DataType = datAutoInc
|
|
||||||
Value = ''
|
Value = ''
|
||||||
end>
|
end>
|
||||||
Statements = <
|
Statements = <
|
||||||
@ -902,7 +920,8 @@ object srvEmpresas: TsrvEmpresas
|
|||||||
'TIPO, '#10' REGISTRO_MERCANTIL = :REGISTRO_MERCANTIL, '#10' PARAM_' +
|
'TIPO, '#10' REGISTRO_MERCANTIL = :REGISTRO_MERCANTIL, '#10' PARAM_' +
|
||||||
'TIEMPO = :PARAM_TIEMPO, '#10' PARAM_MARGEN = :PARAM_MARGEN, '#10' ' +
|
'TIEMPO = :PARAM_TIEMPO, '#10' PARAM_MARGEN = :PARAM_MARGEN, '#10' ' +
|
||||||
'ID_TIPO_IVA = :ID_TIPO_IVA, '#10' ID_FORMA_PAGO = :ID_FORMA_PAGO,' +
|
'ID_TIPO_IVA = :ID_TIPO_IVA, '#10' ID_FORMA_PAGO = :ID_FORMA_PAGO,' +
|
||||||
' '#10' ID_ALMACEN = :ID_ALMACEN'#10' WHERE'#10' (ID = :OLD_ID)'
|
' '#10' ID_ALMACEN = :ID_ALMACEN,'#10' VALIDEZ_PRESUPUESTOS = :VALI' +
|
||||||
|
'DEZ_PRESUPUESTOS'#10' WHERE'#10' (ID = :OLD_ID)'#10
|
||||||
StatementType = stSQL
|
StatementType = stSQL
|
||||||
ColumnMappings = <>
|
ColumnMappings = <>
|
||||||
end>
|
end>
|
||||||
@ -1232,9 +1251,9 @@ object srvEmpresas: TsrvEmpresas
|
|||||||
Top = 90
|
Top = 90
|
||||||
DiagramData =
|
DiagramData =
|
||||||
'<Diagrams>'#13#10' <Diagram Name="New Diagram" Left="200" Top="200" W' +
|
'<Diagrams>'#13#10' <Diagram Name="New Diagram" Left="200" Top="200" W' +
|
||||||
'idth="400" Height="300">'#13#10' <Entity Name="EmpresasDatosBanco" ' +
|
'idth="400" Height="300">'#13#10' <Entity Name="Empresas" Left="0,00' +
|
||||||
'Left="308,00" Top="0,00" />'#13#10' <Entity Name="Empresas" Left="0' +
|
'" Top="1,00" />'#13#10' <Entity Name="EmpresasDatosBanco" Left="308' +
|
||||||
',00" Top="1,00" />'#13#10' </Diagram>'#13#10'</Diagrams>'#13#10
|
',00" Top="0,00" />'#13#10' </Diagram>'#13#10'</Diagrams>'#13#10
|
||||||
end
|
end
|
||||||
object DABin2DataStreamer: TDABin2DataStreamer
|
object DABin2DataStreamer: TDABin2DataStreamer
|
||||||
Left = 48
|
Left = 48
|
||||||
|
|||||||
@ -34,8 +34,8 @@ inherited frViewEmpresa: TfrViewEmpresa
|
|||||||
PngOptions = [pngBlendOnDisabled, pngGrayscaleOnDisabled]
|
PngOptions = [pngBlendOnDisabled, pngGrayscaleOnDisabled]
|
||||||
end
|
end
|
||||||
object eCalle: TcxDBTextEdit
|
object eCalle: TcxDBTextEdit
|
||||||
Left = 162
|
Left = 169
|
||||||
Top = 304
|
Top = 331
|
||||||
DataBinding.DataField = 'CALLE'
|
DataBinding.DataField = 'CALLE'
|
||||||
DataBinding.DataSource = DADataSource
|
DataBinding.DataSource = DADataSource
|
||||||
Style.BorderColor = clWindowFrame
|
Style.BorderColor = clWindowFrame
|
||||||
@ -52,12 +52,12 @@ inherited frViewEmpresa: TfrViewEmpresa
|
|||||||
StyleHot.LookAndFeel.Kind = lfStandard
|
StyleHot.LookAndFeel.Kind = lfStandard
|
||||||
StyleHot.LookAndFeel.NativeStyle = True
|
StyleHot.LookAndFeel.NativeStyle = True
|
||||||
StyleHot.LookAndFeel.SkinName = ''
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
TabOrder = 8
|
TabOrder = 9
|
||||||
Width = 223
|
Width = 223
|
||||||
end
|
end
|
||||||
object eCodigoPostal: TcxDBTextEdit
|
object eCodigoPostal: TcxDBTextEdit
|
||||||
Left = 312
|
Left = 319
|
||||||
Top = 331
|
Top = 358
|
||||||
DataBinding.DataField = 'CODIGO_POSTAL'
|
DataBinding.DataField = 'CODIGO_POSTAL'
|
||||||
DataBinding.DataSource = DADataSource
|
DataBinding.DataSource = DADataSource
|
||||||
Style.BorderColor = clWindowFrame
|
Style.BorderColor = clWindowFrame
|
||||||
@ -74,11 +74,11 @@ inherited frViewEmpresa: TfrViewEmpresa
|
|||||||
StyleHot.LookAndFeel.Kind = lfStandard
|
StyleHot.LookAndFeel.Kind = lfStandard
|
||||||
StyleHot.LookAndFeel.NativeStyle = True
|
StyleHot.LookAndFeel.NativeStyle = True
|
||||||
StyleHot.LookAndFeel.SkinName = ''
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
TabOrder = 10
|
TabOrder = 11
|
||||||
Width = 73
|
Width = 73
|
||||||
end
|
end
|
||||||
object ePaginaWeb: TcxDBTextEdit
|
object ePaginaWeb: TcxDBTextEdit
|
||||||
Left = 510
|
Left = 517
|
||||||
Top = 220
|
Top = 220
|
||||||
DataBinding.DataField = 'PAGINA_WEB'
|
DataBinding.DataField = 'PAGINA_WEB'
|
||||||
DataBinding.DataSource = DADataSource
|
DataBinding.DataSource = DADataSource
|
||||||
@ -96,13 +96,35 @@ inherited frViewEmpresa: TfrViewEmpresa
|
|||||||
StyleHot.LookAndFeel.Kind = lfStandard
|
StyleHot.LookAndFeel.Kind = lfStandard
|
||||||
StyleHot.LookAndFeel.NativeStyle = True
|
StyleHot.LookAndFeel.NativeStyle = True
|
||||||
StyleHot.LookAndFeel.SkinName = ''
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
|
TabOrder = 20
|
||||||
|
Width = 247
|
||||||
|
end
|
||||||
|
object eMailParticular: TcxDBTextEdit
|
||||||
|
Left = 517
|
||||||
|
Top = 193
|
||||||
|
DataBinding.DataField = 'EMAIL_2'
|
||||||
|
DataBinding.DataSource = DADataSource
|
||||||
|
Style.BorderColor = clWindowFrame
|
||||||
|
Style.BorderStyle = ebs3D
|
||||||
|
Style.LookAndFeel.Kind = lfStandard
|
||||||
|
Style.LookAndFeel.NativeStyle = True
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.Kind = lfStandard
|
||||||
|
StyleDisabled.LookAndFeel.NativeStyle = True
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.Kind = lfStandard
|
||||||
|
StyleFocused.LookAndFeel.NativeStyle = True
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.Kind = lfStandard
|
||||||
|
StyleHot.LookAndFeel.NativeStyle = True
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
TabOrder = 19
|
TabOrder = 19
|
||||||
Width = 247
|
Width = 247
|
||||||
end
|
end
|
||||||
object eMailParticular: TcxDBTextEdit
|
object eMailTrabajo: TcxDBTextEdit
|
||||||
Left = 510
|
Left = 517
|
||||||
Top = 193
|
Top = 166
|
||||||
DataBinding.DataField = 'EMAIL_2'
|
DataBinding.DataField = 'EMAIL_1'
|
||||||
DataBinding.DataSource = DADataSource
|
DataBinding.DataSource = DADataSource
|
||||||
Style.BorderColor = clWindowFrame
|
Style.BorderColor = clWindowFrame
|
||||||
Style.BorderStyle = ebs3D
|
Style.BorderStyle = ebs3D
|
||||||
@ -121,31 +143,9 @@ inherited frViewEmpresa: TfrViewEmpresa
|
|||||||
TabOrder = 18
|
TabOrder = 18
|
||||||
Width = 247
|
Width = 247
|
||||||
end
|
end
|
||||||
object eMailTrabajo: TcxDBTextEdit
|
|
||||||
Left = 510
|
|
||||||
Top = 166
|
|
||||||
DataBinding.DataField = 'EMAIL_1'
|
|
||||||
DataBinding.DataSource = DADataSource
|
|
||||||
Style.BorderColor = clWindowFrame
|
|
||||||
Style.BorderStyle = ebs3D
|
|
||||||
Style.LookAndFeel.Kind = lfStandard
|
|
||||||
Style.LookAndFeel.NativeStyle = True
|
|
||||||
Style.LookAndFeel.SkinName = ''
|
|
||||||
StyleDisabled.LookAndFeel.Kind = lfStandard
|
|
||||||
StyleDisabled.LookAndFeel.NativeStyle = True
|
|
||||||
StyleDisabled.LookAndFeel.SkinName = ''
|
|
||||||
StyleFocused.LookAndFeel.Kind = lfStandard
|
|
||||||
StyleFocused.LookAndFeel.NativeStyle = True
|
|
||||||
StyleFocused.LookAndFeel.SkinName = ''
|
|
||||||
StyleHot.LookAndFeel.Kind = lfStandard
|
|
||||||
StyleHot.LookAndFeel.NativeStyle = True
|
|
||||||
StyleHot.LookAndFeel.SkinName = ''
|
|
||||||
TabOrder = 17
|
|
||||||
Width = 247
|
|
||||||
end
|
|
||||||
object cxDBMemo1: TcxDBMemo
|
object cxDBMemo1: TcxDBMemo
|
||||||
Left = 22
|
Left = 22
|
||||||
Top = 415
|
Top = 442
|
||||||
DataBinding.DataField = 'NOTAS'
|
DataBinding.DataField = 'NOTAS'
|
||||||
DataBinding.DataSource = DADataSource
|
DataBinding.DataSource = DADataSource
|
||||||
Style.BorderColor = clWindowFrame
|
Style.BorderColor = clWindowFrame
|
||||||
@ -162,12 +162,12 @@ inherited frViewEmpresa: TfrViewEmpresa
|
|||||||
StyleHot.LookAndFeel.Kind = lfStandard
|
StyleHot.LookAndFeel.Kind = lfStandard
|
||||||
StyleHot.LookAndFeel.NativeStyle = True
|
StyleHot.LookAndFeel.NativeStyle = True
|
||||||
StyleHot.LookAndFeel.SkinName = ''
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
TabOrder = 12
|
TabOrder = 13
|
||||||
Height = 75
|
Height = 75
|
||||||
Width = 318
|
Width = 318
|
||||||
end
|
end
|
||||||
object eTlfParticular: TcxDBTextEdit
|
object eTlfParticular: TcxDBTextEdit
|
||||||
Left = 510
|
Left = 517
|
||||||
Top = 55
|
Top = 55
|
||||||
DataBinding.DataField = 'TELEFONO_2'
|
DataBinding.DataField = 'TELEFONO_2'
|
||||||
DataBinding.DataSource = DADataSource
|
DataBinding.DataSource = DADataSource
|
||||||
@ -185,57 +185,35 @@ inherited frViewEmpresa: TfrViewEmpresa
|
|||||||
StyleHot.LookAndFeel.Kind = lfStandard
|
StyleHot.LookAndFeel.Kind = lfStandard
|
||||||
StyleHot.LookAndFeel.NativeStyle = True
|
StyleHot.LookAndFeel.NativeStyle = True
|
||||||
StyleHot.LookAndFeel.SkinName = ''
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
TabOrder = 14
|
|
||||||
Width = 247
|
|
||||||
end
|
|
||||||
object eTlfTrabajo: TcxDBTextEdit
|
|
||||||
Left = 510
|
|
||||||
Top = 28
|
|
||||||
DataBinding.DataField = 'TELEFONO_1'
|
|
||||||
DataBinding.DataSource = DADataSource
|
|
||||||
Style.BorderColor = clWindowFrame
|
|
||||||
Style.BorderStyle = ebs3D
|
|
||||||
Style.LookAndFeel.Kind = lfStandard
|
|
||||||
Style.LookAndFeel.NativeStyle = True
|
|
||||||
Style.LookAndFeel.SkinName = ''
|
|
||||||
StyleDisabled.LookAndFeel.Kind = lfStandard
|
|
||||||
StyleDisabled.LookAndFeel.NativeStyle = True
|
|
||||||
StyleDisabled.LookAndFeel.SkinName = ''
|
|
||||||
StyleFocused.LookAndFeel.Kind = lfStandard
|
|
||||||
StyleFocused.LookAndFeel.NativeStyle = True
|
|
||||||
StyleFocused.LookAndFeel.SkinName = ''
|
|
||||||
StyleHot.LookAndFeel.Kind = lfStandard
|
|
||||||
StyleHot.LookAndFeel.NativeStyle = True
|
|
||||||
StyleHot.LookAndFeel.SkinName = ''
|
|
||||||
TabOrder = 13
|
|
||||||
Width = 247
|
|
||||||
end
|
|
||||||
object eTlfMovil: TcxDBTextEdit
|
|
||||||
Left = 510
|
|
||||||
Top = 82
|
|
||||||
DataBinding.DataField = 'MOVIL_1'
|
|
||||||
DataBinding.DataSource = DADataSource
|
|
||||||
Style.BorderColor = clWindowFrame
|
|
||||||
Style.BorderStyle = ebs3D
|
|
||||||
Style.LookAndFeel.Kind = lfStandard
|
|
||||||
Style.LookAndFeel.NativeStyle = True
|
|
||||||
Style.LookAndFeel.SkinName = ''
|
|
||||||
StyleDisabled.LookAndFeel.Kind = lfStandard
|
|
||||||
StyleDisabled.LookAndFeel.NativeStyle = True
|
|
||||||
StyleDisabled.LookAndFeel.SkinName = ''
|
|
||||||
StyleFocused.LookAndFeel.Kind = lfStandard
|
|
||||||
StyleFocused.LookAndFeel.NativeStyle = True
|
|
||||||
StyleFocused.LookAndFeel.SkinName = ''
|
|
||||||
StyleHot.LookAndFeel.Kind = lfStandard
|
|
||||||
StyleHot.LookAndFeel.NativeStyle = True
|
|
||||||
StyleHot.LookAndFeel.SkinName = ''
|
|
||||||
TabOrder = 15
|
TabOrder = 15
|
||||||
Width = 247
|
Width = 247
|
||||||
end
|
end
|
||||||
object eFax: TcxDBTextEdit
|
object eTlfTrabajo: TcxDBTextEdit
|
||||||
Left = 510
|
Left = 517
|
||||||
Top = 109
|
Top = 28
|
||||||
DataBinding.DataField = 'FAX'
|
DataBinding.DataField = 'TELEFONO_1'
|
||||||
|
DataBinding.DataSource = DADataSource
|
||||||
|
Style.BorderColor = clWindowFrame
|
||||||
|
Style.BorderStyle = ebs3D
|
||||||
|
Style.LookAndFeel.Kind = lfStandard
|
||||||
|
Style.LookAndFeel.NativeStyle = True
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.Kind = lfStandard
|
||||||
|
StyleDisabled.LookAndFeel.NativeStyle = True
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.Kind = lfStandard
|
||||||
|
StyleFocused.LookAndFeel.NativeStyle = True
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.Kind = lfStandard
|
||||||
|
StyleHot.LookAndFeel.NativeStyle = True
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
|
TabOrder = 14
|
||||||
|
Width = 247
|
||||||
|
end
|
||||||
|
object eTlfMovil: TcxDBTextEdit
|
||||||
|
Left = 517
|
||||||
|
Top = 82
|
||||||
|
DataBinding.DataField = 'MOVIL_1'
|
||||||
DataBinding.DataSource = DADataSource
|
DataBinding.DataSource = DADataSource
|
||||||
Style.BorderColor = clWindowFrame
|
Style.BorderColor = clWindowFrame
|
||||||
Style.BorderStyle = ebs3D
|
Style.BorderStyle = ebs3D
|
||||||
@ -254,8 +232,30 @@ inherited frViewEmpresa: TfrViewEmpresa
|
|||||||
TabOrder = 16
|
TabOrder = 16
|
||||||
Width = 247
|
Width = 247
|
||||||
end
|
end
|
||||||
|
object eFax: TcxDBTextEdit
|
||||||
|
Left = 517
|
||||||
|
Top = 109
|
||||||
|
DataBinding.DataField = 'FAX'
|
||||||
|
DataBinding.DataSource = DADataSource
|
||||||
|
Style.BorderColor = clWindowFrame
|
||||||
|
Style.BorderStyle = ebs3D
|
||||||
|
Style.LookAndFeel.Kind = lfStandard
|
||||||
|
Style.LookAndFeel.NativeStyle = True
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.Kind = lfStandard
|
||||||
|
StyleDisabled.LookAndFeel.NativeStyle = True
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.Kind = lfStandard
|
||||||
|
StyleFocused.LookAndFeel.NativeStyle = True
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.Kind = lfStandard
|
||||||
|
StyleHot.LookAndFeel.NativeStyle = True
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
|
TabOrder = 17
|
||||||
|
Width = 247
|
||||||
|
end
|
||||||
object eNombre: TcxDBTextEdit
|
object eNombre: TcxDBTextEdit
|
||||||
Left = 162
|
Left = 169
|
||||||
Top = 28
|
Top = 28
|
||||||
DataBinding.DataField = 'NOMBRE'
|
DataBinding.DataField = 'NOMBRE'
|
||||||
DataBinding.DataSource = DADataSource
|
DataBinding.DataSource = DADataSource
|
||||||
@ -278,7 +278,7 @@ inherited frViewEmpresa: TfrViewEmpresa
|
|||||||
Width = 223
|
Width = 223
|
||||||
end
|
end
|
||||||
object eNIFCIF: TcxDBTextEdit
|
object eNIFCIF: TcxDBTextEdit
|
||||||
Left = 162
|
Left = 169
|
||||||
Top = 55
|
Top = 55
|
||||||
DataBinding.DataField = 'NIF_CIF'
|
DataBinding.DataField = 'NIF_CIF'
|
||||||
DataBinding.DataSource = DADataSource
|
DataBinding.DataSource = DADataSource
|
||||||
@ -301,7 +301,7 @@ inherited frViewEmpresa: TfrViewEmpresa
|
|||||||
Width = 223
|
Width = 223
|
||||||
end
|
end
|
||||||
object memRegistroMercantil: TcxDBMemo
|
object memRegistroMercantil: TcxDBMemo
|
||||||
Left = 162
|
Left = 169
|
||||||
Top = 82
|
Top = 82
|
||||||
DataBinding.DataField = 'REGISTRO_MERCANTIL'
|
DataBinding.DataField = 'REGISTRO_MERCANTIL'
|
||||||
DataBinding.DataSource = DADataSource
|
DataBinding.DataSource = DADataSource
|
||||||
@ -325,7 +325,7 @@ inherited frViewEmpresa: TfrViewEmpresa
|
|||||||
Width = 223
|
Width = 223
|
||||||
end
|
end
|
||||||
object cxDBImage1: TcxDBImage
|
object cxDBImage1: TcxDBImage
|
||||||
Left = 415
|
Left = 422
|
||||||
Top = 277
|
Top = 277
|
||||||
DataBinding.DataField = 'LOGOTIPO'
|
DataBinding.DataField = 'LOGOTIPO'
|
||||||
DataBinding.DataSource = DADataSource
|
DataBinding.DataSource = DADataSource
|
||||||
@ -341,13 +341,13 @@ inherited frViewEmpresa: TfrViewEmpresa
|
|||||||
StyleFocused.LookAndFeel.SkinName = ''
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
StyleHot.LookAndFeel.NativeStyle = True
|
StyleHot.LookAndFeel.NativeStyle = True
|
||||||
StyleHot.LookAndFeel.SkinName = ''
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
TabOrder = 20
|
TabOrder = 21
|
||||||
Height = 249
|
Height = 249
|
||||||
Width = 313
|
Width = 313
|
||||||
end
|
end
|
||||||
object eParamMargen: TcxDBSpinEdit
|
object eParamMargen: TcxDBSpinEdit
|
||||||
Left = 162
|
Left = 169
|
||||||
Top = 247
|
Top = 274
|
||||||
DataBinding.DataField = 'PARAM_MARGEN'
|
DataBinding.DataField = 'PARAM_MARGEN'
|
||||||
DataBinding.DataSource = DADataSource
|
DataBinding.DataSource = DADataSource
|
||||||
Properties.OnValidate = eParamMargenPropertiesValidate
|
Properties.OnValidate = eParamMargenPropertiesValidate
|
||||||
@ -367,12 +367,12 @@ inherited frViewEmpresa: TfrViewEmpresa
|
|||||||
StyleHot.LookAndFeel.Kind = lfStandard
|
StyleHot.LookAndFeel.Kind = lfStandard
|
||||||
StyleHot.LookAndFeel.NativeStyle = True
|
StyleHot.LookAndFeel.NativeStyle = True
|
||||||
StyleHot.LookAndFeel.SkinName = ''
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
TabOrder = 6
|
TabOrder = 7
|
||||||
Width = 60
|
Width = 60
|
||||||
end
|
end
|
||||||
object eParamTiempo: TcxDBCurrencyEdit
|
object eParamTiempo: TcxDBCurrencyEdit
|
||||||
Left = 285
|
Left = 292
|
||||||
Top = 247
|
Top = 274
|
||||||
DataBinding.DataField = 'PARAM_TIEMPO'
|
DataBinding.DataField = 'PARAM_TIEMPO'
|
||||||
DataBinding.DataSource = DADataSource
|
DataBinding.DataSource = DADataSource
|
||||||
Properties.Alignment.Horz = taRightJustify
|
Properties.Alignment.Horz = taRightJustify
|
||||||
@ -392,12 +392,12 @@ inherited frViewEmpresa: TfrViewEmpresa
|
|||||||
StyleHot.LookAndFeel.Kind = lfStandard
|
StyleHot.LookAndFeel.Kind = lfStandard
|
||||||
StyleHot.LookAndFeel.NativeStyle = True
|
StyleHot.LookAndFeel.NativeStyle = True
|
||||||
StyleHot.LookAndFeel.SkinName = ''
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
TabOrder = 7
|
TabOrder = 8
|
||||||
Width = 100
|
Width = 100
|
||||||
end
|
end
|
||||||
object cbProvincia: TcxDBComboBox
|
object cbProvincia: TcxDBComboBox
|
||||||
Left = 162
|
Left = 169
|
||||||
Top = 331
|
Top = 358
|
||||||
DataBinding.DataField = 'PROVINCIA'
|
DataBinding.DataField = 'PROVINCIA'
|
||||||
DataBinding.DataSource = DADataSource
|
DataBinding.DataSource = DADataSource
|
||||||
Properties.ImmediatePost = True
|
Properties.ImmediatePost = True
|
||||||
@ -421,12 +421,12 @@ inherited frViewEmpresa: TfrViewEmpresa
|
|||||||
StyleHot.LookAndFeel.Kind = lfStandard
|
StyleHot.LookAndFeel.Kind = lfStandard
|
||||||
StyleHot.LookAndFeel.NativeStyle = True
|
StyleHot.LookAndFeel.NativeStyle = True
|
||||||
StyleHot.LookAndFeel.SkinName = ''
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
TabOrder = 9
|
TabOrder = 10
|
||||||
Width = 80
|
Width = 80
|
||||||
end
|
end
|
||||||
object cbPoblacion: TcxDBComboBox
|
object cbPoblacion: TcxDBComboBox
|
||||||
Left = 162
|
Left = 169
|
||||||
Top = 358
|
Top = 385
|
||||||
DataBinding.DataField = 'POBLACION'
|
DataBinding.DataField = 'POBLACION'
|
||||||
DataBinding.DataSource = DADataSource
|
DataBinding.DataSource = DADataSource
|
||||||
Properties.ImmediatePost = True
|
Properties.ImmediatePost = True
|
||||||
@ -450,11 +450,38 @@ inherited frViewEmpresa: TfrViewEmpresa
|
|||||||
StyleHot.LookAndFeel.Kind = lfStandard
|
StyleHot.LookAndFeel.Kind = lfStandard
|
||||||
StyleHot.LookAndFeel.NativeStyle = True
|
StyleHot.LookAndFeel.NativeStyle = True
|
||||||
StyleHot.LookAndFeel.SkinName = ''
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
TabOrder = 11
|
TabOrder = 12
|
||||||
Width = 223
|
Width = 223
|
||||||
end
|
end
|
||||||
object cbFormaPago: TcxComboBox
|
object cbFormaPago: TcxComboBox
|
||||||
Left = 162
|
Left = 169
|
||||||
|
Top = 190
|
||||||
|
Anchors = [akLeft, akTop, akRight]
|
||||||
|
Properties.DropDownListStyle = lsEditFixedList
|
||||||
|
Properties.DropDownRows = 25
|
||||||
|
Properties.ImmediatePost = True
|
||||||
|
Style.BorderColor = clWindowFrame
|
||||||
|
Style.BorderStyle = ebs3D
|
||||||
|
Style.HotTrack = False
|
||||||
|
Style.LookAndFeel.Kind = lfStandard
|
||||||
|
Style.LookAndFeel.NativeStyle = True
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
Style.ButtonStyle = bts3D
|
||||||
|
Style.PopupBorderStyle = epbsFrame3D
|
||||||
|
StyleDisabled.LookAndFeel.Kind = lfStandard
|
||||||
|
StyleDisabled.LookAndFeel.NativeStyle = True
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.Kind = lfStandard
|
||||||
|
StyleFocused.LookAndFeel.NativeStyle = True
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.Kind = lfStandard
|
||||||
|
StyleHot.LookAndFeel.NativeStyle = True
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
|
TabOrder = 5
|
||||||
|
Width = 202
|
||||||
|
end
|
||||||
|
object cbTipoIVA: TcxComboBox
|
||||||
|
Left = 169
|
||||||
Top = 163
|
Top = 163
|
||||||
Anchors = [akLeft, akTop, akRight]
|
Anchors = [akLeft, akTop, akRight]
|
||||||
Properties.DropDownListStyle = lsEditFixedList
|
Properties.DropDownListStyle = lsEditFixedList
|
||||||
@ -480,9 +507,9 @@ inherited frViewEmpresa: TfrViewEmpresa
|
|||||||
TabOrder = 4
|
TabOrder = 4
|
||||||
Width = 202
|
Width = 202
|
||||||
end
|
end
|
||||||
object cbTipoIVA: TcxComboBox
|
object cbAlmacen: TcxComboBox
|
||||||
Left = 162
|
Left = 169
|
||||||
Top = 136
|
Top = 217
|
||||||
Anchors = [akLeft, akTop, akRight]
|
Anchors = [akLeft, akTop, akRight]
|
||||||
Properties.DropDownListStyle = lsEditFixedList
|
Properties.DropDownListStyle = lsEditFixedList
|
||||||
Properties.DropDownRows = 25
|
Properties.DropDownRows = 25
|
||||||
@ -504,35 +531,32 @@ inherited frViewEmpresa: TfrViewEmpresa
|
|||||||
StyleHot.LookAndFeel.Kind = lfStandard
|
StyleHot.LookAndFeel.Kind = lfStandard
|
||||||
StyleHot.LookAndFeel.NativeStyle = True
|
StyleHot.LookAndFeel.NativeStyle = True
|
||||||
StyleHot.LookAndFeel.SkinName = ''
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
|
TabOrder = 6
|
||||||
|
Width = 223
|
||||||
|
end
|
||||||
|
object eValidez: TcxDBSpinEdit
|
||||||
|
Left = 169
|
||||||
|
Top = 136
|
||||||
|
DataBinding.DataField = 'VALIDEZ_PRESUPUESTOS'
|
||||||
|
DataBinding.DataSource = DADataSource
|
||||||
|
Style.BorderColor = clWindowFrame
|
||||||
|
Style.BorderStyle = ebs3D
|
||||||
|
Style.HotTrack = False
|
||||||
|
Style.LookAndFeel.Kind = lfStandard
|
||||||
|
Style.LookAndFeel.NativeStyle = True
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
Style.ButtonStyle = bts3D
|
||||||
|
StyleDisabled.LookAndFeel.Kind = lfStandard
|
||||||
|
StyleDisabled.LookAndFeel.NativeStyle = True
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.Kind = lfStandard
|
||||||
|
StyleFocused.LookAndFeel.NativeStyle = True
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.Kind = lfStandard
|
||||||
|
StyleHot.LookAndFeel.NativeStyle = True
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
TabOrder = 3
|
TabOrder = 3
|
||||||
Width = 202
|
Width = 60
|
||||||
end
|
|
||||||
object cbAlmacen: TcxComboBox
|
|
||||||
Left = 162
|
|
||||||
Top = 190
|
|
||||||
Anchors = [akLeft, akTop, akRight]
|
|
||||||
Properties.DropDownListStyle = lsEditFixedList
|
|
||||||
Properties.DropDownRows = 25
|
|
||||||
Properties.ImmediatePost = True
|
|
||||||
Style.BorderColor = clWindowFrame
|
|
||||||
Style.BorderStyle = ebs3D
|
|
||||||
Style.HotTrack = False
|
|
||||||
Style.LookAndFeel.Kind = lfStandard
|
|
||||||
Style.LookAndFeel.NativeStyle = True
|
|
||||||
Style.LookAndFeel.SkinName = ''
|
|
||||||
Style.ButtonStyle = bts3D
|
|
||||||
Style.PopupBorderStyle = epbsFrame3D
|
|
||||||
StyleDisabled.LookAndFeel.Kind = lfStandard
|
|
||||||
StyleDisabled.LookAndFeel.NativeStyle = True
|
|
||||||
StyleDisabled.LookAndFeel.SkinName = ''
|
|
||||||
StyleFocused.LookAndFeel.Kind = lfStandard
|
|
||||||
StyleFocused.LookAndFeel.NativeStyle = True
|
|
||||||
StyleFocused.LookAndFeel.SkinName = ''
|
|
||||||
StyleHot.LookAndFeel.Kind = lfStandard
|
|
||||||
StyleHot.LookAndFeel.NativeStyle = True
|
|
||||||
StyleHot.LookAndFeel.SkinName = ''
|
|
||||||
TabOrder = 5
|
|
||||||
Width = 223
|
|
||||||
end
|
end
|
||||||
object dxLayoutControl1Group_Root: TdxLayoutGroup
|
object dxLayoutControl1Group_Root: TdxLayoutGroup
|
||||||
ShowCaption = False
|
ShowCaption = False
|
||||||
@ -565,6 +589,11 @@ inherited frViewEmpresa: TfrViewEmpresa
|
|||||||
Control = memRegistroMercantil
|
Control = memRegistroMercantil
|
||||||
ControlOptions.ShowBorder = False
|
ControlOptions.ShowBorder = False
|
||||||
end
|
end
|
||||||
|
object dxLayoutControl1Item24: TdxLayoutItem
|
||||||
|
Caption = 'Validez presupuestos en dias:'
|
||||||
|
Control = eValidez
|
||||||
|
ControlOptions.ShowBorder = False
|
||||||
|
end
|
||||||
object dxLayoutControl1Item16: TdxLayoutItem
|
object dxLayoutControl1Item16: TdxLayoutItem
|
||||||
Caption = 'IVA por defecto:'
|
Caption = 'IVA por defecto:'
|
||||||
Control = cbTipoIVA
|
Control = cbTipoIVA
|
||||||
|
|||||||
@ -92,6 +92,8 @@ type
|
|||||||
cbTipoIVA: TcxComboBox;
|
cbTipoIVA: TcxComboBox;
|
||||||
dxLayoutControl1Item23: TdxLayoutItem;
|
dxLayoutControl1Item23: TdxLayoutItem;
|
||||||
cbAlmacen: TcxComboBox;
|
cbAlmacen: TcxComboBox;
|
||||||
|
dxLayoutControl1Item24: TdxLayoutItem;
|
||||||
|
eValidez: TcxDBSpinEdit;
|
||||||
procedure actAnadirExecute(Sender: TObject);
|
procedure actAnadirExecute(Sender: TObject);
|
||||||
procedure actEliminarExecute(Sender: TObject);
|
procedure actEliminarExecute(Sender: TObject);
|
||||||
procedure actEliminarUpdate(Sender: TObject);
|
procedure actEliminarUpdate(Sender: TObject);
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -61,6 +61,7 @@ type
|
|||||||
|
|
||||||
function DarListaAnosFacturas: TStringList;
|
function DarListaAnosFacturas: TStringList;
|
||||||
procedure FiltrarAno(AFactura: IBizFacturaProforma; ADynWhereDataTable: WideString; const Ano: String);
|
procedure FiltrarAno(AFactura: IBizFacturaProforma; ADynWhereDataTable: WideString; const Ano: String);
|
||||||
|
function CambiarSituacion(AFactura : IBizFacturaProforma; Situacion: String; AllItems: Boolean = false): Boolean;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TFacturasProformaController = class(TControllerBase, IFacturasProformaController)
|
TFacturasProformaController = class(TControllerBase, IFacturasProformaController)
|
||||||
@ -134,6 +135,8 @@ type
|
|||||||
|
|
||||||
function DarListaAnosFacturas: TStringList;
|
function DarListaAnosFacturas: TStringList;
|
||||||
procedure FiltrarAno(AFactura: IBizFacturaProforma; ADynWhereDataTable: WideString; const Ano: String);
|
procedure FiltrarAno(AFactura: IBizFacturaProforma; ADynWhereDataTable: WideString; const Ano: String);
|
||||||
|
|
||||||
|
function CambiarSituacion(AFactura : IBizFacturaProforma; Situacion: String; AllItems: Boolean = false): Boolean;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
@ -431,6 +434,56 @@ begin
|
|||||||
FiltrarEmpresa(Result);
|
FiltrarEmpresa(Result);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TFacturasProformaController.CambiarSituacion(AFactura: IBizFacturaProforma; Situacion: String; AllItems: Boolean): Boolean;
|
||||||
|
// En el caso de cambiar almenos un elemento del conjunto se devuelve true
|
||||||
|
begin
|
||||||
|
if not Assigned(AFactura) then
|
||||||
|
raise Exception.Create ('AFactura no asignado');
|
||||||
|
|
||||||
|
ShowHourglassCursor;
|
||||||
|
try
|
||||||
|
if not AFactura.DataTable.Active then
|
||||||
|
AFactura.DataTable.Active := True;
|
||||||
|
|
||||||
|
if (AFactura.State in dsEditModes) then
|
||||||
|
AFactura.Cancel;
|
||||||
|
|
||||||
|
//Siempre cambiaremos de situacion el seleccionado
|
||||||
|
if AFactura.SITUACION <> Situacion then
|
||||||
|
begin
|
||||||
|
AFactura.DataTable.Edit;
|
||||||
|
AFactura.SITUACION := Situacion;
|
||||||
|
AFactura.DataTable.Post;
|
||||||
|
end;
|
||||||
|
|
||||||
|
//En el caso de querer modificar todos los items del objeto
|
||||||
|
if AllItems then
|
||||||
|
begin
|
||||||
|
with AFactura.DataTable do
|
||||||
|
begin
|
||||||
|
First;
|
||||||
|
while not EOF do
|
||||||
|
begin
|
||||||
|
if AFactura.SITUACION <> Situacion then
|
||||||
|
begin
|
||||||
|
AFactura.DataTable.Edit;
|
||||||
|
AFactura.SITUACION := Situacion;
|
||||||
|
AFactura.DataTable.Post;
|
||||||
|
end;
|
||||||
|
Next;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
AFactura.DataTable.ApplyUpdates;
|
||||||
|
Result := True;
|
||||||
|
|
||||||
|
finally
|
||||||
|
HideHourglassCursor;
|
||||||
|
end;
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
constructor TFacturasProformaController.Create;
|
constructor TFacturasProformaController.Create;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
|
|||||||
@ -67,11 +67,15 @@ inherited fEditorFacturasProforma: TfEditorFacturasProforma
|
|||||||
Left = 427
|
Left = 427
|
||||||
Visible = True
|
Visible = True
|
||||||
ExplicitLeft = 427
|
ExplicitLeft = 427
|
||||||
ExplicitWidth = 117
|
ExplicitWidth = 76
|
||||||
object TBXItem38: TTBXItem
|
object TBXItem38: TTBXItem
|
||||||
Action = actGenerarFactura
|
Action = actGenerarFactura
|
||||||
DisplayMode = nbdmImageAndText
|
DisplayMode = nbdmImageAndText
|
||||||
end
|
end
|
||||||
|
object TBXItem39: TTBXItem
|
||||||
|
Action = actPagada
|
||||||
|
DisplayMode = nbdmImageAndText
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
inherited StatusBar: TJvStatusBar
|
inherited StatusBar: TJvStatusBar
|
||||||
@ -160,6 +164,9 @@ inherited fEditorFacturasProforma: TfEditorFacturasProforma
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
inherited ActionList1: TActionList
|
||||||
|
Left = 272
|
||||||
|
end
|
||||||
end
|
end
|
||||||
inherited pnlAgrupaciones: TTBXDockablePanel
|
inherited pnlAgrupaciones: TTBXDockablePanel
|
||||||
Top = 519
|
Top = 519
|
||||||
@ -190,8 +197,8 @@ inherited fEditorFacturasProforma: TfEditorFacturasProforma
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
inherited EditorActionList: TActionList [4]
|
inherited EditorActionList: TActionList [4]
|
||||||
Left = 136
|
Left = 192
|
||||||
Top = 176
|
Top = 192
|
||||||
inherited actNuevo: TAction
|
inherited actNuevo: TAction
|
||||||
ImageIndex = 22
|
ImageIndex = 22
|
||||||
end
|
end
|
||||||
@ -223,10 +230,19 @@ inherited fEditorFacturasProforma: TfEditorFacturasProforma
|
|||||||
object actGenerarFactura: TAction
|
object actGenerarFactura: TAction
|
||||||
Category = 'Archivo'
|
Category = 'Archivo'
|
||||||
Caption = 'Generar factura'
|
Caption = 'Generar factura'
|
||||||
|
Enabled = False
|
||||||
ImageIndex = 25
|
ImageIndex = 25
|
||||||
|
Visible = False
|
||||||
OnExecute = actGenerarFacturaExecute
|
OnExecute = actGenerarFacturaExecute
|
||||||
OnUpdate = actGenerarFacturaUpdate
|
OnUpdate = actGenerarFacturaUpdate
|
||||||
end
|
end
|
||||||
|
object actPagada: TAction
|
||||||
|
Category = 'Acciones'
|
||||||
|
Caption = 'Pagada'
|
||||||
|
ImageIndex = 25
|
||||||
|
OnExecute = actPagadaExecute
|
||||||
|
OnUpdate = actPagadaUpdate
|
||||||
|
end
|
||||||
end
|
end
|
||||||
inherited SmallImages: TPngImageList [5]
|
inherited SmallImages: TPngImageList [5]
|
||||||
PngImages = <
|
PngImages = <
|
||||||
|
|||||||
@ -38,6 +38,8 @@ type
|
|||||||
frViewFacturasProforma1: TfrViewFacturasProforma;
|
frViewFacturasProforma1: TfrViewFacturasProforma;
|
||||||
actGenerarFactura: TAction;
|
actGenerarFactura: TAction;
|
||||||
TBXItem38: TTBXItem;
|
TBXItem38: TTBXItem;
|
||||||
|
actPagada: TAction;
|
||||||
|
TBXItem39: TTBXItem;
|
||||||
procedure FormShow(Sender: TObject);
|
procedure FormShow(Sender: TObject);
|
||||||
procedure actEliminarUpdate(Sender: TObject);
|
procedure actEliminarUpdate(Sender: TObject);
|
||||||
procedure actNuevaFacturaExecute(Sender: TObject);
|
procedure actNuevaFacturaExecute(Sender: TObject);
|
||||||
@ -46,6 +48,8 @@ type
|
|||||||
procedure OnListaAnosChange(Sender: TObject; const Text: string);
|
procedure OnListaAnosChange(Sender: TObject; const Text: string);
|
||||||
procedure actGenerarFacturaExecute(Sender: TObject);
|
procedure actGenerarFacturaExecute(Sender: TObject);
|
||||||
procedure actGenerarFacturaUpdate(Sender: TObject);
|
procedure actGenerarFacturaUpdate(Sender: TObject);
|
||||||
|
procedure actPagadaUpdate(Sender: TObject);
|
||||||
|
procedure actPagadaExecute(Sender: TObject);
|
||||||
|
|
||||||
private
|
private
|
||||||
FFacturas: IBizFacturaProforma;
|
FFacturas: IBizFacturaProforma;
|
||||||
@ -152,6 +156,44 @@ begin
|
|||||||
actNuevo.Execute;
|
actNuevo.Execute;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TfEditorFacturasProforma.actPagadaExecute(Sender: TObject);
|
||||||
|
var
|
||||||
|
AFacturas: IBizFacturaProforma;
|
||||||
|
AllItems: Boolean;
|
||||||
|
AFecha: Variant;
|
||||||
|
begin
|
||||||
|
AFacturas := Nil;
|
||||||
|
AllItems := False;
|
||||||
|
|
||||||
|
if MultiSelect and Assigned(ViewGrid) then
|
||||||
|
AllItems := (ViewGrid.NumSeleccionados > 1);
|
||||||
|
|
||||||
|
if AllItems then
|
||||||
|
begin
|
||||||
|
SeleccionarFilasDesdeGrid(ViewGrid._FocusedView, (Facturas as ISeleccionable).SelectedRecords);
|
||||||
|
AFacturas := (Controller as IFacturasProformaController).ExtraerSeleccionados(Facturas) as IBizFacturaProforma;
|
||||||
|
end
|
||||||
|
else begin
|
||||||
|
AFacturas := Facturas;
|
||||||
|
end;
|
||||||
|
|
||||||
|
ViewGrid._Grid.BeginUpdate;
|
||||||
|
if Assigned(AFacturas) then
|
||||||
|
begin
|
||||||
|
FController.CambiarSituacion(AFacturas, CTE_PAGADA, AllItems);
|
||||||
|
actRefrescar.Execute;
|
||||||
|
end;
|
||||||
|
ViewGrid._Grid.EndUpdate;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfEditorFacturasProforma.actPagadaUpdate(Sender: TObject);
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
(Sender as TAction).Enabled := HayDatos
|
||||||
|
and ViewGrid.esSeleccionCeldaDatos
|
||||||
|
and (FFacturas.SITUACION = CTE_PENDIENTE);
|
||||||
|
end;
|
||||||
|
|
||||||
constructor TfEditorFacturasProforma.Create(AOwner: TComponent);
|
constructor TfEditorFacturasProforma.Create(AOwner: TComponent);
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
@ -325,6 +367,7 @@ var
|
|||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
|
|
||||||
|
{
|
||||||
Respuesta := JsNuevaFacturaDialog.Execute;
|
Respuesta := JsNuevaFacturaDialog.Execute;
|
||||||
|
|
||||||
if Respuesta <> IDCANCEL then
|
if Respuesta <> IDCANCEL then
|
||||||
@ -339,11 +382,14 @@ begin
|
|||||||
actRefrescar.Execute;
|
actRefrescar.Execute;
|
||||||
end;
|
end;
|
||||||
100 : begin // Albaran nuevo vacio
|
100 : begin // Albaran nuevo vacio
|
||||||
|
}
|
||||||
if FController.Anadir(Facturas) then
|
if FController.Anadir(Facturas) then
|
||||||
FController.Ver(Facturas);
|
FController.Ver(Facturas);
|
||||||
|
{
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfEditorFacturasProforma.OnListaAnosChange(Sender: TObject; const Text: string);
|
procedure TfEditorFacturasProforma.OnListaAnosChange(Sender: TObject; const Text: string);
|
||||||
|
|||||||
@ -185,7 +185,9 @@ inherited frViewFacturasProforma: TfrViewFacturasProforma
|
|||||||
DataBinding.FieldName = 'REFERENCIA_FACTURA_FINAL'
|
DataBinding.FieldName = 'REFERENCIA_FACTURA_FINAL'
|
||||||
PropertiesClassName = 'TcxTextEditProperties'
|
PropertiesClassName = 'TcxTextEditProperties'
|
||||||
Properties.Alignment.Horz = taRightJustify
|
Properties.Alignment.Horz = taRightJustify
|
||||||
|
Visible = False
|
||||||
HeaderAlignmentHorz = taRightJustify
|
HeaderAlignmentHorz = taRightJustify
|
||||||
|
VisibleForCustomization = False
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
inherited cxGridLevel: TcxGridLevel
|
inherited cxGridLevel: TcxGridLevel
|
||||||
|
|||||||
@ -34,7 +34,8 @@ type
|
|||||||
const AHeaderText: String = '');
|
const AHeaderText: String = '');
|
||||||
procedure VerDireccionEntrega(APedido : IBizPedidoCliente);
|
procedure VerDireccionEntrega(APedido : IBizPedidoCliente);
|
||||||
|
|
||||||
procedure VerProcesoCompleto(APedidos: IBizPedidoCliente; AllItems: Boolean = True);
|
function VerProcesoCompleto(APresupuesto: Integer): Boolean; overload;
|
||||||
|
procedure VerProcesoCompleto(APedidos: IBizPedidoCliente; AllItems: Boolean = True); overload;
|
||||||
|
|
||||||
function Nuevo : IBizPedidoCliente;
|
function Nuevo : IBizPedidoCliente;
|
||||||
procedure Anadir(APedido : IBizPedidoCliente);
|
procedure Anadir(APedido : IBizPedidoCliente);
|
||||||
@ -123,6 +124,7 @@ type
|
|||||||
function BuscarTodos(const AID_Cliente: Integer): IBizPedidoCliente; overload;
|
function BuscarTodos(const AID_Cliente: Integer): IBizPedidoCliente; overload;
|
||||||
function BuscarPendientes : IBizPedidoCliente;
|
function BuscarPendientes : IBizPedidoCliente;
|
||||||
function BuscarSituacion(Const ASituacion: String) : IBizPedidoCliente;
|
function BuscarSituacion(Const ASituacion: String) : IBizPedidoCliente;
|
||||||
|
function BuscarPedidosDePresupuesto(const IdPresupuesto: Integer): IBizPedidoCliente;
|
||||||
|
|
||||||
function BuscarPendientesPedir(const ID : Integer): IBizPedidoClienteArticulosPendientesPedirAProv;
|
function BuscarPendientesPedir(const ID : Integer): IBizPedidoClienteArticulosPendientesPedirAProv;
|
||||||
function BuscarPendientesPedirNoArticulos(const ID : Integer): IBizPedidoClienteArticulosPendientesPedirAProv;
|
function BuscarPendientesPedirNoArticulos(const ID : Integer): IBizPedidoClienteArticulosPendientesPedirAProv;
|
||||||
@ -137,7 +139,8 @@ type
|
|||||||
procedure VerDireccionEntrega(APedido : IBizPedidoCliente);
|
procedure VerDireccionEntrega(APedido : IBizPedidoCliente);
|
||||||
function Duplicar(APedido: IBizPedidoCliente): IBizPedidoCliente;
|
function Duplicar(APedido: IBizPedidoCliente): IBizPedidoCliente;
|
||||||
|
|
||||||
procedure VerProcesoCompleto(APedidos: IBizPedidoCliente; AllItems: Boolean = True);
|
function VerProcesoCompleto(APresupuesto: Integer): Boolean; overload;
|
||||||
|
procedure VerProcesoCompleto(APedidos: IBizPedidoCliente; AllItems: Boolean = True); overload;
|
||||||
|
|
||||||
procedure Preview(APedido : IBizPedidoCliente; AllItems: Boolean = False;
|
procedure Preview(APedido : IBizPedidoCliente; AllItems: Boolean = False;
|
||||||
const VerPrecios: Boolean = True; const VerRefProveedor: Boolean = True);
|
const VerPrecios: Boolean = True; const VerRefProveedor: Boolean = True);
|
||||||
@ -242,6 +245,30 @@ begin
|
|||||||
FiltrarEmpresa(Result);
|
FiltrarEmpresa(Result);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TPedidosClienteController.BuscarPedidosDePresupuesto(const IdPresupuesto: Integer): IBizPedidoCliente;
|
||||||
|
var
|
||||||
|
Condicion: TDAWhereExpression;
|
||||||
|
begin
|
||||||
|
ShowHourglassCursor;
|
||||||
|
try
|
||||||
|
Result := BuscarTodos;
|
||||||
|
|
||||||
|
// Filtrar los pedidos pendientes de recepcion
|
||||||
|
with Result.DataTable.DynamicWhere do
|
||||||
|
begin
|
||||||
|
// (ID_PRESUPUESTO = IdPresupuesto)
|
||||||
|
Condicion := NewBinaryExpression(NewField('', fld_PedidosClienteID_PRESUPUESTO), NewConstant(IdPresupuesto, datInteger), dboEqual);
|
||||||
|
|
||||||
|
if IsEmpty then
|
||||||
|
Expression := Condicion
|
||||||
|
else
|
||||||
|
Expression := NewBinaryExpression(Expression, Condicion, dboAnd);
|
||||||
|
end;
|
||||||
|
finally
|
||||||
|
HideHourglassCursor;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
function TPedidosClienteController.BuscarPendientes: IBizPedidoCliente;
|
function TPedidosClienteController.BuscarPendientes: IBizPedidoCliente;
|
||||||
var
|
var
|
||||||
Condicion: TDAWhereExpression;
|
Condicion: TDAWhereExpression;
|
||||||
@ -622,11 +649,30 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TPedidosClienteController.VerProcesoCompleto(APresupuesto: Integer): Boolean;
|
||||||
|
var
|
||||||
|
APedidos: IBizPedidoCliente;
|
||||||
|
begin
|
||||||
|
Result := True;
|
||||||
|
APedidos := BuscarPedidosDePresupuesto(APresupuesto);
|
||||||
|
|
||||||
|
if not Assigned(APedidos) then
|
||||||
|
raise Exception.Create ('Pedidos no asignado (VerProcesoCompleto)');
|
||||||
|
|
||||||
|
if not APedidos.DataTable.Active then
|
||||||
|
APedidos.DataTable.Active := True;
|
||||||
|
|
||||||
|
if (APedidos.DataTable.RecordCount > 0) then
|
||||||
|
VerProcesoCompleto(APedidos, True)
|
||||||
|
else
|
||||||
|
Result := False;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TPedidosClienteController.VerProcesoCompleto(APedidos: IBizPedidoCliente; AllItems: Boolean = True);
|
procedure TPedidosClienteController.VerProcesoCompleto(APedidos: IBizPedidoCliente; AllItems: Boolean = True);
|
||||||
var
|
var
|
||||||
AModule : TModuleController;
|
AModule : TModuleController;
|
||||||
APlugin : IMCProcesoPresupuestosCliente;
|
APlugin : IMCProcesoPresupuestosCliente;
|
||||||
ListaIDPedidosCliente: TIntegerArray;
|
ListaIDPedidosCliente: TIntegerArray;
|
||||||
begin
|
begin
|
||||||
if not Assigned(APedidos) then
|
if not Assigned(APedidos) then
|
||||||
raise Exception.Create ('Pedidos no asignado (VerProcesoCompleto)');
|
raise Exception.Create ('Pedidos no asignado (VerProcesoCompleto)');
|
||||||
|
|||||||
@ -31,6 +31,7 @@
|
|||||||
<Projects Include="..\Pedidos a proveedor\Data\PedidosProveedor_data.dproj" />
|
<Projects Include="..\Pedidos a proveedor\Data\PedidosProveedor_data.dproj" />
|
||||||
<Projects Include="..\Pedidos a proveedor\Model\PedidosProveedor_model.dproj" />
|
<Projects Include="..\Pedidos a proveedor\Model\PedidosProveedor_model.dproj" />
|
||||||
<Projects Include="..\Pedidos a proveedor\Plugin\PedidosProveedor_plugin.dproj" />
|
<Projects Include="..\Pedidos a proveedor\Plugin\PedidosProveedor_plugin.dproj" />
|
||||||
|
<Projects Include="..\Presupuestos de cliente\Controller\PresupuestosCliente_controller.dproj" />
|
||||||
<Projects Include="..\Presupuestos de cliente\Views\PresupuestosCliente_view.dproj" />
|
<Projects Include="..\Presupuestos de cliente\Views\PresupuestosCliente_view.dproj" />
|
||||||
<Projects Include="..\ProcesoPresupuestoCliente\Controller\ProcesoPresupuestosCliente_controller.dproj" />
|
<Projects Include="..\ProcesoPresupuestoCliente\Controller\ProcesoPresupuestosCliente_controller.dproj" />
|
||||||
<Projects Include="..\ProcesoPresupuestoCliente\Plugin\ProcesoPresupuestosCliente_plugin.dproj" />
|
<Projects Include="..\ProcesoPresupuestoCliente\Plugin\ProcesoPresupuestosCliente_plugin.dproj" />
|
||||||
@ -402,6 +403,15 @@
|
|||||||
<Target Name="FacturasProforma_data:Make">
|
<Target Name="FacturasProforma_data:Make">
|
||||||
<MSBuild Projects="..\Facturas proforma\Data\FacturasProforma_data.dproj" Targets="Make" />
|
<MSBuild Projects="..\Facturas proforma\Data\FacturasProforma_data.dproj" Targets="Make" />
|
||||||
</Target>
|
</Target>
|
||||||
|
<Target Name="PresupuestosCliente_controller">
|
||||||
|
<MSBuild Projects="..\Presupuestos de cliente\Controller\PresupuestosCliente_controller.dproj" Targets="" />
|
||||||
|
</Target>
|
||||||
|
<Target Name="PresupuestosCliente_controller:Clean">
|
||||||
|
<MSBuild Projects="..\Presupuestos de cliente\Controller\PresupuestosCliente_controller.dproj" Targets="Clean" />
|
||||||
|
</Target>
|
||||||
|
<Target Name="PresupuestosCliente_controller:Make">
|
||||||
|
<MSBuild Projects="..\Presupuestos de cliente\Controller\PresupuestosCliente_controller.dproj" Targets="Make" />
|
||||||
|
</Target>
|
||||||
<Target Name="PresupuestosCliente_view">
|
<Target Name="PresupuestosCliente_view">
|
||||||
<MSBuild Projects="..\Presupuestos de cliente\Views\PresupuestosCliente_view.dproj" Targets="" />
|
<MSBuild Projects="..\Presupuestos de cliente\Views\PresupuestosCliente_view.dproj" Targets="" />
|
||||||
</Target>
|
</Target>
|
||||||
@ -412,13 +422,13 @@
|
|||||||
<MSBuild Projects="..\Presupuestos de cliente\Views\PresupuestosCliente_view.dproj" Targets="Make" />
|
<MSBuild Projects="..\Presupuestos de cliente\Views\PresupuestosCliente_view.dproj" Targets="Make" />
|
||||||
</Target>
|
</Target>
|
||||||
<Target Name="Build">
|
<Target Name="Build">
|
||||||
<CallTarget Targets="Base;ApplicationBase;GUIBase;Contactos_model;Contactos_data;Contactos_controller;Contactos_view;Articulos_model;Articulos_data;Articulos_controller;Articulos_view;PedidosCliente_model;PedidosCliente_data;PedidosCliente_controller;AlbaranesProveedor_controller;Inventario_controller;PedProv_AlbProv_relation;PedCli_AlbCli_relation;PedCli_PedProv_relation;FacturasProveedor_controller;PedidosCliente_view;PedidosCliente_plugin;AlbaranesProveedor_data;AlbaranesCliente_data;FactuGES;FactuGES_Server;Inventario_data;Inventario_view;AlbaranesProveedor_view;FacturasCliente_view;PedidosProveedor_model;PedidosProveedor_data;PedidosProveedor_controller;PedidosProveedor_plugin;ProcesoPresupuestosCliente_controller;ProcesoPresupuestosCliente_view;ProcesoPresupuestosCliente_plugin;PedCli_FacProforma_relation;FacturasProforma_data;PresupuestosCliente_view" />
|
<CallTarget Targets="Base;ApplicationBase;GUIBase;Contactos_model;Contactos_data;Contactos_controller;Contactos_view;Articulos_model;Articulos_data;Articulos_controller;Articulos_view;PedidosCliente_model;PedidosCliente_data;PedidosCliente_controller;AlbaranesProveedor_controller;Inventario_controller;PedProv_AlbProv_relation;PedCli_AlbCli_relation;PedCli_PedProv_relation;FacturasProveedor_controller;PedidosCliente_view;PedidosCliente_plugin;AlbaranesProveedor_data;AlbaranesCliente_data;FactuGES;FactuGES_Server;Inventario_data;Inventario_view;AlbaranesProveedor_view;FacturasCliente_view;PedidosProveedor_model;PedidosProveedor_data;PedidosProveedor_controller;PedidosProveedor_plugin;ProcesoPresupuestosCliente_controller;ProcesoPresupuestosCliente_view;ProcesoPresupuestosCliente_plugin;PedCli_FacProforma_relation;FacturasProforma_data;PresupuestosCliente_controller;PresupuestosCliente_view" />
|
||||||
</Target>
|
</Target>
|
||||||
<Target Name="Clean">
|
<Target Name="Clean">
|
||||||
<CallTarget Targets="Base:Clean;ApplicationBase:Clean;GUIBase:Clean;Contactos_model:Clean;Contactos_data:Clean;Contactos_controller:Clean;Contactos_view:Clean;Articulos_model:Clean;Articulos_data:Clean;Articulos_controller:Clean;Articulos_view:Clean;PedidosCliente_model:Clean;PedidosCliente_data:Clean;PedidosCliente_controller:Clean;AlbaranesProveedor_controller:Clean;Inventario_controller:Clean;PedProv_AlbProv_relation:Clean;PedCli_AlbCli_relation:Clean;PedCli_PedProv_relation:Clean;FacturasProveedor_controller:Clean;PedidosCliente_view:Clean;PedidosCliente_plugin:Clean;AlbaranesProveedor_data:Clean;AlbaranesCliente_data:Clean;FactuGES:Clean;FactuGES_Server:Clean;Inventario_data:Clean;Inventario_view:Clean;AlbaranesProveedor_view:Clean;FacturasCliente_view:Clean;PedidosProveedor_model:Clean;PedidosProveedor_data:Clean;PedidosProveedor_controller:Clean;PedidosProveedor_plugin:Clean;ProcesoPresupuestosCliente_controller:Clean;ProcesoPresupuestosCliente_view:Clean;ProcesoPresupuestosCliente_plugin:Clean;PedCli_FacProforma_relation:Clean;FacturasProforma_data:Clean;PresupuestosCliente_view:Clean" />
|
<CallTarget Targets="Base:Clean;ApplicationBase:Clean;GUIBase:Clean;Contactos_model:Clean;Contactos_data:Clean;Contactos_controller:Clean;Contactos_view:Clean;Articulos_model:Clean;Articulos_data:Clean;Articulos_controller:Clean;Articulos_view:Clean;PedidosCliente_model:Clean;PedidosCliente_data:Clean;PedidosCliente_controller:Clean;AlbaranesProveedor_controller:Clean;Inventario_controller:Clean;PedProv_AlbProv_relation:Clean;PedCli_AlbCli_relation:Clean;PedCli_PedProv_relation:Clean;FacturasProveedor_controller:Clean;PedidosCliente_view:Clean;PedidosCliente_plugin:Clean;AlbaranesProveedor_data:Clean;AlbaranesCliente_data:Clean;FactuGES:Clean;FactuGES_Server:Clean;Inventario_data:Clean;Inventario_view:Clean;AlbaranesProveedor_view:Clean;FacturasCliente_view:Clean;PedidosProveedor_model:Clean;PedidosProveedor_data:Clean;PedidosProveedor_controller:Clean;PedidosProveedor_plugin:Clean;ProcesoPresupuestosCliente_controller:Clean;ProcesoPresupuestosCliente_view:Clean;ProcesoPresupuestosCliente_plugin:Clean;PedCli_FacProforma_relation:Clean;FacturasProforma_data:Clean;PresupuestosCliente_controller:Clean;PresupuestosCliente_view:Clean" />
|
||||||
</Target>
|
</Target>
|
||||||
<Target Name="Make">
|
<Target Name="Make">
|
||||||
<CallTarget Targets="Base:Make;ApplicationBase:Make;GUIBase:Make;Contactos_model:Make;Contactos_data:Make;Contactos_controller:Make;Contactos_view:Make;Articulos_model:Make;Articulos_data:Make;Articulos_controller:Make;Articulos_view:Make;PedidosCliente_model:Make;PedidosCliente_data:Make;PedidosCliente_controller:Make;AlbaranesProveedor_controller:Make;Inventario_controller:Make;PedProv_AlbProv_relation:Make;PedCli_AlbCli_relation:Make;PedCli_PedProv_relation:Make;FacturasProveedor_controller:Make;PedidosCliente_view:Make;PedidosCliente_plugin:Make;AlbaranesProveedor_data:Make;AlbaranesCliente_data:Make;FactuGES:Make;FactuGES_Server:Make;Inventario_data:Make;Inventario_view:Make;AlbaranesProveedor_view:Make;FacturasCliente_view:Make;PedidosProveedor_model:Make;PedidosProveedor_data:Make;PedidosProveedor_controller:Make;PedidosProveedor_plugin:Make;ProcesoPresupuestosCliente_controller:Make;ProcesoPresupuestosCliente_view:Make;ProcesoPresupuestosCliente_plugin:Make;PedCli_FacProforma_relation:Make;FacturasProforma_data:Make;PresupuestosCliente_view:Make" />
|
<CallTarget Targets="Base:Make;ApplicationBase:Make;GUIBase:Make;Contactos_model:Make;Contactos_data:Make;Contactos_controller:Make;Contactos_view:Make;Articulos_model:Make;Articulos_data:Make;Articulos_controller:Make;Articulos_view:Make;PedidosCliente_model:Make;PedidosCliente_data:Make;PedidosCliente_controller:Make;AlbaranesProveedor_controller:Make;Inventario_controller:Make;PedProv_AlbProv_relation:Make;PedCli_AlbCli_relation:Make;PedCli_PedProv_relation:Make;FacturasProveedor_controller:Make;PedidosCliente_view:Make;PedidosCliente_plugin:Make;AlbaranesProveedor_data:Make;AlbaranesCliente_data:Make;FactuGES:Make;FactuGES_Server:Make;Inventario_data:Make;Inventario_view:Make;AlbaranesProveedor_view:Make;FacturasCliente_view:Make;PedidosProveedor_model:Make;PedidosProveedor_data:Make;PedidosProveedor_controller:Make;PedidosProveedor_plugin:Make;ProcesoPresupuestosCliente_controller:Make;ProcesoPresupuestosCliente_view:Make;ProcesoPresupuestosCliente_plugin:Make;PedCli_FacProforma_relation:Make;FacturasProforma_data:Make;PresupuestosCliente_controller:Make;PresupuestosCliente_view:Make" />
|
||||||
</Target>
|
</Target>
|
||||||
<Import Condition="Exists('$(MSBuildBinPath)\Borland.Group.Targets')" Project="$(MSBuildBinPath)\Borland.Group.Targets" />
|
<Import Condition="Exists('$(MSBuildBinPath)\Borland.Group.Targets')" Project="$(MSBuildBinPath)\Borland.Group.Targets" />
|
||||||
</Project>
|
</Project>
|
||||||
@ -154,6 +154,7 @@ type
|
|||||||
|
|
||||||
procedure BorrarBonificacion(APresupuesto : IBizPresupuestoCliente);
|
procedure BorrarBonificacion(APresupuesto : IBizPresupuestoCliente);
|
||||||
|
|
||||||
|
|
||||||
function DarListaAnosPresupuestos: TStringList;
|
function DarListaAnosPresupuestos: TStringList;
|
||||||
procedure FiltrarAno(APresupuesto: IBizPresupuestoCliente; ADynWhereDataTable: WideString; const Ano: String);
|
procedure FiltrarAno(APresupuesto: IBizPresupuestoCliente; ADynWhereDataTable: WideString; const Ano: String);
|
||||||
end;
|
end;
|
||||||
@ -568,7 +569,7 @@ begin
|
|||||||
AEditor := NIL;
|
AEditor := NIL;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
}
|
}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TPresupuestosClienteController.VerTodos(APresupuestos: IBizPresupuestoCliente;
|
procedure TPresupuestosClienteController.VerTodos(APresupuestos: IBizPresupuestoCliente;
|
||||||
|
|||||||
@ -244,10 +244,12 @@ begin
|
|||||||
ID_TIPO_IVA := AppFactuGES.EmpresaActiva.ID_TIPO_IVA;
|
ID_TIPO_IVA := AppFactuGES.EmpresaActiva.ID_TIPO_IVA;
|
||||||
|
|
||||||
FECHA_PRESUPUESTO := DateOf(Date);
|
FECHA_PRESUPUESTO := DateOf(Date);
|
||||||
|
FECHA_VIGENCIA := IncDay(Date, AppFactuGES.EmpresaActiva.VALIDEZ_PRESUPUESTOS);
|
||||||
INCIDENCIAS_ACTIVAS := 0;
|
INCIDENCIAS_ACTIVAS := 0;
|
||||||
// INCIDENCIAS := NIL;
|
// INCIDENCIAS := NIL;
|
||||||
REFERENCIA := '';
|
REFERENCIA := '';
|
||||||
SITUACION := SITUACION_PRESUPUESTO_PENDIENTE;
|
SITUACION := SITUACION_PRESUPUESTO_PENDIENTE;
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TBizPresupuestoCliente.IVAOnChange(Sender: TDACustomField);
|
procedure TBizPresupuestoCliente.IVAOnChange(Sender: TDACustomField);
|
||||||
|
|||||||
@ -20,6 +20,7 @@
|
|||||||
<Projects Include="..\Facturas de cliente\Model\FacturasCliente_model.dproj" />
|
<Projects Include="..\Facturas de cliente\Model\FacturasCliente_model.dproj" />
|
||||||
<Projects Include="..\Facturas de cliente\Views\FacturasCliente_view.dproj" />
|
<Projects Include="..\Facturas de cliente\Views\FacturasCliente_view.dproj" />
|
||||||
<Projects Include="..\Facturas proforma\Plugin\FacturasProforma_plugin.dproj" />
|
<Projects Include="..\Facturas proforma\Plugin\FacturasProforma_plugin.dproj" />
|
||||||
|
<Projects Include="..\Facturas proforma\Views\FacturasProforma_view.dproj" />
|
||||||
<Projects Include="..\Gestion de documentos\Controller\GestorDocumentos_controller.dproj" />
|
<Projects Include="..\Gestion de documentos\Controller\GestorDocumentos_controller.dproj" />
|
||||||
<Projects Include="..\Gestion de documentos\Data\GestorDocumentos_data.dproj" />
|
<Projects Include="..\Gestion de documentos\Data\GestorDocumentos_data.dproj" />
|
||||||
<Projects Include="..\Gestor de informes\Views\GestorInformes_view.dproj" />
|
<Projects Include="..\Gestor de informes\Views\GestorInformes_view.dproj" />
|
||||||
@ -291,14 +292,23 @@
|
|||||||
<Target Name="FacturasCliente_model:Make">
|
<Target Name="FacturasCliente_model:Make">
|
||||||
<MSBuild Projects="..\Facturas de cliente\Model\FacturasCliente_model.dproj" Targets="Make" />
|
<MSBuild Projects="..\Facturas de cliente\Model\FacturasCliente_model.dproj" Targets="Make" />
|
||||||
</Target>
|
</Target>
|
||||||
|
<Target Name="FacturasProforma_view">
|
||||||
|
<MSBuild Projects="..\Facturas proforma\Views\FacturasProforma_view.dproj" Targets="" />
|
||||||
|
</Target>
|
||||||
|
<Target Name="FacturasProforma_view:Clean">
|
||||||
|
<MSBuild Projects="..\Facturas proforma\Views\FacturasProforma_view.dproj" Targets="Clean" />
|
||||||
|
</Target>
|
||||||
|
<Target Name="FacturasProforma_view:Make">
|
||||||
|
<MSBuild Projects="..\Facturas proforma\Views\FacturasProforma_view.dproj" Targets="Make" />
|
||||||
|
</Target>
|
||||||
<Target Name="Build">
|
<Target Name="Build">
|
||||||
<CallTarget Targets="Base;GUIBase;ApplicationBase;Contactos_model;Contactos_data;Contactos_controller;Contactos_view;Articulos_data;Articulos_controller;Articulos_view;PresupuestosCliente_model;PresupuestosCliente_data;GestorDocumentos_data;GestorDocumentos_controller;PresupuestosCliente_controller;PreCli_FacPro_relation;PreCli_PedCli_relation;PresupuestosCliente_view;PresupuestosCliente_plugin;FactuGES;FactuGES_Server;FacturasCliente_view;GestorInformes_view;PedidosProveedor_view;Articulos_model;FacturasProforma_plugin;PedidosCliente_view;FacturasCliente_model" />
|
<CallTarget Targets="Base;GUIBase;ApplicationBase;Contactos_model;Contactos_data;Contactos_controller;Contactos_view;Articulos_data;Articulos_controller;Articulos_view;PresupuestosCliente_model;PresupuestosCliente_data;GestorDocumentos_data;GestorDocumentos_controller;PresupuestosCliente_controller;PreCli_FacPro_relation;PreCli_PedCli_relation;PresupuestosCliente_view;PresupuestosCliente_plugin;FactuGES;FactuGES_Server;FacturasCliente_view;GestorInformes_view;PedidosProveedor_view;Articulos_model;FacturasProforma_plugin;PedidosCliente_view;FacturasCliente_model;FacturasProforma_view" />
|
||||||
</Target>
|
</Target>
|
||||||
<Target Name="Clean">
|
<Target Name="Clean">
|
||||||
<CallTarget Targets="Base:Clean;GUIBase:Clean;ApplicationBase:Clean;Contactos_model:Clean;Contactos_data:Clean;Contactos_controller:Clean;Contactos_view:Clean;Articulos_data:Clean;Articulos_controller:Clean;Articulos_view:Clean;PresupuestosCliente_model:Clean;PresupuestosCliente_data:Clean;GestorDocumentos_data:Clean;GestorDocumentos_controller:Clean;PresupuestosCliente_controller:Clean;PreCli_FacPro_relation:Clean;PreCli_PedCli_relation:Clean;PresupuestosCliente_view:Clean;PresupuestosCliente_plugin:Clean;FactuGES:Clean;FactuGES_Server:Clean;FacturasCliente_view:Clean;GestorInformes_view:Clean;PedidosProveedor_view:Clean;Articulos_model:Clean;FacturasProforma_plugin:Clean;PedidosCliente_view:Clean;FacturasCliente_model:Clean" />
|
<CallTarget Targets="Base:Clean;GUIBase:Clean;ApplicationBase:Clean;Contactos_model:Clean;Contactos_data:Clean;Contactos_controller:Clean;Contactos_view:Clean;Articulos_data:Clean;Articulos_controller:Clean;Articulos_view:Clean;PresupuestosCliente_model:Clean;PresupuestosCliente_data:Clean;GestorDocumentos_data:Clean;GestorDocumentos_controller:Clean;PresupuestosCliente_controller:Clean;PreCli_FacPro_relation:Clean;PreCli_PedCli_relation:Clean;PresupuestosCliente_view:Clean;PresupuestosCliente_plugin:Clean;FactuGES:Clean;FactuGES_Server:Clean;FacturasCliente_view:Clean;GestorInformes_view:Clean;PedidosProveedor_view:Clean;Articulos_model:Clean;FacturasProforma_plugin:Clean;PedidosCliente_view:Clean;FacturasCliente_model:Clean;FacturasProforma_view:Clean" />
|
||||||
</Target>
|
</Target>
|
||||||
<Target Name="Make">
|
<Target Name="Make">
|
||||||
<CallTarget Targets="Base:Make;GUIBase:Make;ApplicationBase:Make;Contactos_model:Make;Contactos_data:Make;Contactos_controller:Make;Contactos_view:Make;Articulos_data:Make;Articulos_controller:Make;Articulos_view:Make;PresupuestosCliente_model:Make;PresupuestosCliente_data:Make;GestorDocumentos_data:Make;GestorDocumentos_controller:Make;PresupuestosCliente_controller:Make;PreCli_FacPro_relation:Make;PreCli_PedCli_relation:Make;PresupuestosCliente_view:Make;PresupuestosCliente_plugin:Make;FactuGES:Make;FactuGES_Server:Make;FacturasCliente_view:Make;GestorInformes_view:Make;PedidosProveedor_view:Make;Articulos_model:Make;FacturasProforma_plugin:Make;PedidosCliente_view:Make;FacturasCliente_model:Make" />
|
<CallTarget Targets="Base:Make;GUIBase:Make;ApplicationBase:Make;Contactos_model:Make;Contactos_data:Make;Contactos_controller:Make;Contactos_view:Make;Articulos_data:Make;Articulos_controller:Make;Articulos_view:Make;PresupuestosCliente_model:Make;PresupuestosCliente_data:Make;GestorDocumentos_data:Make;GestorDocumentos_controller:Make;PresupuestosCliente_controller:Make;PreCli_FacPro_relation:Make;PreCli_PedCli_relation:Make;PresupuestosCliente_view:Make;PresupuestosCliente_plugin:Make;FactuGES:Make;FactuGES_Server:Make;FacturasCliente_view:Make;GestorInformes_view:Make;PedidosProveedor_view:Make;Articulos_model:Make;FacturasProforma_plugin:Make;PedidosCliente_view:Make;FacturasCliente_model:Make;FacturasProforma_view:Make" />
|
||||||
</Target>
|
</Target>
|
||||||
<Import Condition="Exists('$(MSBuildBinPath)\Borland.Group.Targets')" Project="$(MSBuildBinPath)\Borland.Group.Targets" />
|
<Import Condition="Exists('$(MSBuildBinPath)\Borland.Group.Targets')" Project="$(MSBuildBinPath)\Borland.Group.Targets" />
|
||||||
</Project>
|
</Project>
|
||||||
@ -208,14 +208,15 @@ object RptPresupuestosCliente: TRptPresupuestosCliente
|
|||||||
Name = 'IBX'
|
Name = 'IBX'
|
||||||
SQL =
|
SQL =
|
||||||
'SELECT DET.ID, DET.ID_PRESUPUESTO,'#10' DET.POSICION, DET.TIPO' +
|
'SELECT DET.ID, DET.ID_PRESUPUESTO,'#10' DET.POSICION, DET.TIPO' +
|
||||||
'_DETALLE,'#10' ARTICULOS.REFERENCIA, DET.CONCEPTO, DET.CANTIDA' +
|
'_DETALLE,'#10' ARTICULOS.REFERENCIA, F_RTFTOTEXT(DET.CONCEPTO)' +
|
||||||
'D, DET.IMPORTE_UNIDAD,'#10' DET.DESCUENTO, DET.IMPORTE_UNIDAD ' +
|
' as CONCEPTO, DET.CANTIDAD, DET.IMPORTE_UNIDAD,'#10' DET.DESCU' +
|
||||||
'- (DET.IMPORTE_UNIDAD * (COALESCE(DET.DESCUENTO,0) / 100)) as IM' +
|
'ENTO, DET.IMPORTE_UNIDAD - (DET.IMPORTE_UNIDAD * (COALESCE(DET.D' +
|
||||||
'PORTE_NETO, DET.IMPORTE_TOTAL,'#10' ARTICULOS.REFERENCIA_PROV ' +
|
'ESCUENTO,0) / 100)) as IMPORTE_NETO, DET.IMPORTE_TOTAL,'#10' A' +
|
||||||
'as REFERENCIA_PROVEEDOR, DET.VISIBLE'#10'FROM PRESUPUESTOS_CLIENTE_D' +
|
'RTICULOS.REFERENCIA_PROV as REFERENCIA_PROVEEDOR, DET.VISIBLE'#10'FR' +
|
||||||
'ETALLES DET'#10'LEFT OUTER JOIN ARTICULOS ON (DET.ID_ARTICULO = ARTI' +
|
'OM PRESUPUESTOS_CLIENTE_DETALLES DET'#10'LEFT OUTER JOIN ARTICULOS O' +
|
||||||
'CULOS.ID)'#10#10'WHERE DET.ID_PRESUPUESTO = :ID_PRESUPUESTO AND {Where' +
|
'N (DET.ID_ARTICULO = ARTICULOS.ID)'#10#10'WHERE DET.ID_PRESUPUESTO = :' +
|
||||||
'}'#10'ORDER BY DET.ID_PRESUPUESTO, DET.POSICION;'#10#10#10
|
'ID_PRESUPUESTO AND {Where}'#10'ORDER BY DET.ID_PRESUPUESTO, DET.POSI' +
|
||||||
|
'CION;'#10#10#10
|
||||||
StatementType = stSQL
|
StatementType = stSQL
|
||||||
ColumnMappings = <
|
ColumnMappings = <
|
||||||
item
|
item
|
||||||
@ -298,7 +299,7 @@ object RptPresupuestosCliente: TRptPresupuestosCliente
|
|||||||
item
|
item
|
||||||
Name = 'CONCEPTO'
|
Name = 'CONCEPTO'
|
||||||
DataType = datString
|
DataType = datString
|
||||||
Size = 2000
|
Size = 32765
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'CANTIDAD'
|
Name = 'CANTIDAD'
|
||||||
|
|||||||
@ -73,9 +73,9 @@ type
|
|||||||
frxDBInformeListadoPresupuestosResumen: TfrxDBDataset;
|
frxDBInformeListadoPresupuestosResumen: TfrxDBDataset;
|
||||||
DADSInformeListadoPresupuestosResumen: TDADataSource;
|
DADSInformeListadoPresupuestosResumen: TDADataSource;
|
||||||
tbl_InformeListadoPresupuestosResumen: TDAMemDataTable;
|
tbl_InformeListadoPresupuestosResumen: TDAMemDataTable;
|
||||||
|
tbl_Detalles: TDAMemDataTable;
|
||||||
schReport: TDASchema;
|
schReport: TDASchema;
|
||||||
DataDictionary: TDADataDictionary;
|
DataDictionary: TDADataDictionary;
|
||||||
tbl_Detalles: TDAMemDataTable;
|
|
||||||
procedure DataModuleCreate(Sender: TObject);
|
procedure DataModuleCreate(Sender: TObject);
|
||||||
procedure DataModuleDestroy(Sender: TObject);
|
procedure DataModuleDestroy(Sender: TObject);
|
||||||
function frxReportUserFunction(const MethodName: string;
|
function frxReportUserFunction(const MethodName: string;
|
||||||
|
|||||||
@ -167,7 +167,7 @@ inherited fEditorPresupuestosCliente: TfEditorPresupuestosCliente
|
|||||||
DockPos = 343
|
DockPos = 343
|
||||||
Visible = True
|
Visible = True
|
||||||
ExplicitLeft = 427
|
ExplicitLeft = 427
|
||||||
ExplicitWidth = 378
|
ExplicitWidth = 373
|
||||||
object TBXItem43: TTBXItem
|
object TBXItem43: TTBXItem
|
||||||
Action = actAceptar
|
Action = actAceptar
|
||||||
DisplayMode = nbdmImageAndText
|
DisplayMode = nbdmImageAndText
|
||||||
@ -189,6 +189,10 @@ inherited fEditorPresupuestosCliente: TfEditorPresupuestosCliente
|
|||||||
object TBXItem46: TTBXItem
|
object TBXItem46: TTBXItem
|
||||||
Action = actInformes
|
Action = actInformes
|
||||||
end
|
end
|
||||||
|
object TBXItem48: TTBXItem
|
||||||
|
Action = actVerProcesoCompleto
|
||||||
|
DisplayMode = nbdmImageAndText
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
inherited StatusBar: TJvStatusBar
|
inherited StatusBar: TJvStatusBar
|
||||||
@ -208,13 +212,17 @@ inherited fEditorPresupuestosCliente: TfEditorPresupuestosCliente
|
|||||||
object actGenerarAlbaranCli: TAction
|
object actGenerarAlbaranCli: TAction
|
||||||
Category = 'Acciones'
|
Category = 'Acciones'
|
||||||
Caption = 'Generar albar'#225'n de cliente'
|
Caption = 'Generar albar'#225'n de cliente'
|
||||||
|
Enabled = False
|
||||||
ImageIndex = 23
|
ImageIndex = 23
|
||||||
|
Visible = False
|
||||||
OnExecute = actGenerarAlbaranCliExecute
|
OnExecute = actGenerarAlbaranCliExecute
|
||||||
end
|
end
|
||||||
object actGenerarFacturaProforma: TAction
|
object actGenerarFacturaProforma: TAction
|
||||||
Category = 'Acciones'
|
Category = 'Acciones'
|
||||||
Caption = 'Generar factura proforma'
|
Caption = 'Generar factura proforma'
|
||||||
|
Enabled = False
|
||||||
ImageIndex = 24
|
ImageIndex = 24
|
||||||
|
Visible = False
|
||||||
OnExecute = actGenerarFacturaProformaExecute
|
OnExecute = actGenerarFacturaProformaExecute
|
||||||
OnUpdate = actGenerarFacturaProformaUpdate
|
OnUpdate = actGenerarFacturaProformaUpdate
|
||||||
end
|
end
|
||||||
@ -262,6 +270,13 @@ inherited fEditorPresupuestosCliente: TfEditorPresupuestosCliente
|
|||||||
OnExecute = actGenerarPedidoExecute
|
OnExecute = actGenerarPedidoExecute
|
||||||
OnUpdate = actGenerarPedidoUpdate
|
OnUpdate = actGenerarPedidoUpdate
|
||||||
end
|
end
|
||||||
|
object actVerProcesoCompleto: TAction
|
||||||
|
Category = 'Acciones'
|
||||||
|
Caption = 'Ver proceso completo'
|
||||||
|
ImageIndex = 2
|
||||||
|
OnExecute = actVerProcesoCompletoExecute
|
||||||
|
OnUpdate = actVerProcesoCompletoUpdate
|
||||||
|
end
|
||||||
end
|
end
|
||||||
inherited SmallImages: TPngImageList
|
inherited SmallImages: TPngImageList
|
||||||
PngImages = <
|
PngImages = <
|
||||||
|
|||||||
@ -47,6 +47,8 @@ type
|
|||||||
JSInformesDialog: TJSDialog;
|
JSInformesDialog: TJSDialog;
|
||||||
TBXItem47: TTBXItem;
|
TBXItem47: TTBXItem;
|
||||||
actGenerarPedido: TAction;
|
actGenerarPedido: TAction;
|
||||||
|
actVerProcesoCompleto: TAction;
|
||||||
|
TBXItem48: TTBXItem;
|
||||||
procedure FormShow(Sender: TObject);
|
procedure FormShow(Sender: TObject);
|
||||||
procedure actGenerarAlbaranCliExecute(Sender: TObject);
|
procedure actGenerarAlbaranCliExecute(Sender: TObject);
|
||||||
procedure actEliminarUpdate(Sender: TObject);
|
procedure actEliminarUpdate(Sender: TObject);
|
||||||
@ -66,6 +68,8 @@ type
|
|||||||
procedure OnListaAnosChange(Sender: TObject; const Text: string);
|
procedure OnListaAnosChange(Sender: TObject; const Text: string);
|
||||||
procedure actGenerarPedidoExecute(Sender: TObject);
|
procedure actGenerarPedidoExecute(Sender: TObject);
|
||||||
procedure actGenerarPedidoUpdate(Sender: TObject);
|
procedure actGenerarPedidoUpdate(Sender: TObject);
|
||||||
|
procedure actVerProcesoCompletoUpdate(Sender: TObject);
|
||||||
|
procedure actVerProcesoCompletoExecute(Sender: TObject);
|
||||||
|
|
||||||
protected
|
protected
|
||||||
FPresupuestos: IBizPresupuestoCliente;
|
FPresupuestos: IBizPresupuestoCliente;
|
||||||
@ -391,6 +395,24 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TfEditorPresupuestosCliente.actVerProcesoCompletoExecute(
|
||||||
|
Sender: TObject);
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
if not VerProcesoCompletoDeLosPedidosDelPresupuesto(FPresupuestos.ID) then
|
||||||
|
showmessage('El presupuesto no tiene pedidos relacionados, por lo que no se puede consultar el listado de documentos relacionados en el proceso del pedido del cliente');
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfEditorPresupuestosCliente.actVerProcesoCompletoUpdate(
|
||||||
|
Sender: TObject);
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
(Sender as TAction).Enabled := HayDatos
|
||||||
|
and not (ViewGrid.NumSeleccionados > 1)
|
||||||
|
and ViewGrid.esSeleccionCeldaDatos
|
||||||
|
and (FPresupuestos.SITUACION = SITUACION_PRESUPUESTO_ACEPTADO);
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TfEditorPresupuestosCliente.AsignarVista;
|
procedure TfEditorPresupuestosCliente.AsignarVista;
|
||||||
begin
|
begin
|
||||||
ViewGrid := CreateView(TfrViewPresupuestosCliente) as IViewPresupuestosCliente;
|
ViewGrid := CreateView(TfrViewPresupuestosCliente) as IViewPresupuestosCliente;
|
||||||
|
|||||||
@ -136,7 +136,9 @@ inherited frViewPresupuestosCliente: TfrViewPresupuestosCliente
|
|||||||
object cxGridViewFACTURA_PROFORMA: TcxGridDBColumn
|
object cxGridViewFACTURA_PROFORMA: TcxGridDBColumn
|
||||||
Caption = 'Ref. factura proforma'
|
Caption = 'Ref. factura proforma'
|
||||||
DataBinding.FieldName = 'FACTURA_PROFORMA'
|
DataBinding.FieldName = 'FACTURA_PROFORMA'
|
||||||
|
Visible = False
|
||||||
BestFitMaxWidth = 25
|
BestFitMaxWidth = 25
|
||||||
|
VisibleForCustomization = False
|
||||||
Width = 25
|
Width = 25
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,9 +1,11 @@
|
|||||||
inherited fEditorProcesoPresupuestosCliente: TfEditorProcesoPresupuestosCliente
|
inherited fEditorProcesoPresupuestosCliente: TfEditorProcesoPresupuestosCliente
|
||||||
Caption = 'fEditorProcesoPresupuestosCliente'
|
Caption = 'Listado de documentos relacionados con un pedido de cliente'
|
||||||
PixelsPerInch = 96
|
PixelsPerInch = 96
|
||||||
TextHeight = 13
|
TextHeight = 13
|
||||||
inherited JvNavPanelHeader: TJvNavPanelHeader
|
inherited JvNavPanelHeader: TJvNavPanelHeader
|
||||||
Caption = 'Listado de proceso completo de presupuesto de cliente'
|
Caption =
|
||||||
|
'Listado de documentos relacionados en un proceso completo de ped' +
|
||||||
|
'ido de cliente'
|
||||||
end
|
end
|
||||||
inherited TBXDock: TTBXDock
|
inherited TBXDock: TTBXDock
|
||||||
inherited tbxMain: TTBXToolbar
|
inherited tbxMain: TTBXToolbar
|
||||||
@ -39,6 +41,13 @@ inherited fEditorProcesoPresupuestosCliente: TfEditorProcesoPresupuestosCliente
|
|||||||
Height = 255
|
Height = 255
|
||||||
ExplicitWidth = 894
|
ExplicitWidth = 894
|
||||||
ExplicitHeight = 255
|
ExplicitHeight = 255
|
||||||
|
inherited cxGridView: TcxGridDBTableView
|
||||||
|
inherited cxGridViewREFERENCIA_PRESUPUESTO: TcxGridDBColumn
|
||||||
|
PropertiesClassName = 'TcxTextEditProperties'
|
||||||
|
Properties.Alignment.Horz = taRightJustify
|
||||||
|
HeaderAlignmentHorz = taRightJustify
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
inherited frViewFiltroBase1: TfrViewFiltroBase
|
inherited frViewFiltroBase1: TfrViewFiltroBase
|
||||||
Width = 894
|
Width = 894
|
||||||
|
|||||||
@ -52,6 +52,7 @@ type
|
|||||||
property FacturasProforma: IBizFacturaProforma read GetFacturasProforma write SetFacturasProforma;
|
property FacturasProforma: IBizFacturaProforma read GetFacturasProforma write SetFacturasProforma;
|
||||||
property FacturasCliente: IBizFacturaCliente read GetFacturasCliente write SetFacturasCliente;
|
property FacturasCliente: IBizFacturaCliente read GetFacturasCliente write SetFacturasCliente;
|
||||||
|
|
||||||
|
procedure PonerTitulos(const ATitulo: string = ''); override;
|
||||||
constructor Create(AOwner: TComponent); override;
|
constructor Create(AOwner: TComponent); override;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
end;
|
end;
|
||||||
@ -155,6 +156,12 @@ begin
|
|||||||
Result := FPedidosProveedor;
|
Result := FPedidosProveedor;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TfEditorProcesoPresupuestosCliente.PonerTitulos(
|
||||||
|
const ATitulo: string);
|
||||||
|
begin
|
||||||
|
// inherited; Para que no borre el caption
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TfEditorProcesoPresupuestosCliente.SetAlbaranesCliente(const Value: IBizAlbaranCliente);
|
procedure TfEditorProcesoPresupuestosCliente.SetAlbaranesCliente(const Value: IBizAlbaranCliente);
|
||||||
begin
|
begin
|
||||||
FAlbaranesCliente := Value;
|
FAlbaranesCliente := Value;
|
||||||
|
|||||||
@ -28,6 +28,13 @@ inherited frViewProcesoPresupuestosCliente: TfrViewProcesoPresupuestosCliente
|
|||||||
object cxGridViewFECHA_PEDIDO: TcxGridDBColumn
|
object cxGridViewFECHA_PEDIDO: TcxGridDBColumn
|
||||||
Caption = 'Fecha del pedido'
|
Caption = 'Fecha del pedido'
|
||||||
DataBinding.FieldName = 'FECHA_PEDIDO'
|
DataBinding.FieldName = 'FECHA_PEDIDO'
|
||||||
|
PropertiesClassName = 'TcxDateEditProperties'
|
||||||
|
Properties.Alignment.Horz = taRightJustify
|
||||||
|
HeaderAlignmentHorz = taRightJustify
|
||||||
|
end
|
||||||
|
object cxGridViewREFERENCIA_PRESUPUESTO: TcxGridDBColumn
|
||||||
|
Caption = 'Ref. presupuesto'
|
||||||
|
DataBinding.FieldName = 'REFERENCIA_PRESUPUESTO'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object cxGridViewPedidosProveedor: TcxGridDBTableView [1]
|
object cxGridViewPedidosProveedor: TcxGridDBTableView [1]
|
||||||
@ -72,6 +79,9 @@ inherited frViewProcesoPresupuestosCliente: TfrViewProcesoPresupuestosCliente
|
|||||||
object cxGridViewPedidosProveedorFECHA_PEDIDO: TcxGridDBColumn
|
object cxGridViewPedidosProveedorFECHA_PEDIDO: TcxGridDBColumn
|
||||||
Caption = 'Fecha del pedido'
|
Caption = 'Fecha del pedido'
|
||||||
DataBinding.FieldName = 'FECHA_PEDIDO'
|
DataBinding.FieldName = 'FECHA_PEDIDO'
|
||||||
|
PropertiesClassName = 'TcxDateEditProperties'
|
||||||
|
Properties.Alignment.Horz = taRightJustify
|
||||||
|
HeaderAlignmentHorz = taRightJustify
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object cxGridViewAlbaranesProveedor: TcxGridDBTableView [2]
|
object cxGridViewAlbaranesProveedor: TcxGridDBTableView [2]
|
||||||
@ -112,6 +122,9 @@ inherited frViewProcesoPresupuestosCliente: TfrViewProcesoPresupuestosCliente
|
|||||||
object cxGridViewAlbaranesProveedorFECHA_ALBARAN: TcxGridDBColumn
|
object cxGridViewAlbaranesProveedorFECHA_ALBARAN: TcxGridDBColumn
|
||||||
Caption = 'Fecha de albar'#225'n'
|
Caption = 'Fecha de albar'#225'n'
|
||||||
DataBinding.FieldName = 'FECHA_ALBARAN'
|
DataBinding.FieldName = 'FECHA_ALBARAN'
|
||||||
|
PropertiesClassName = 'TcxDateEditProperties'
|
||||||
|
Properties.Alignment.Horz = taRightJustify
|
||||||
|
HeaderAlignmentHorz = taRightJustify
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object cxGridViewFacturasProveedor: TcxGridDBTableView [3]
|
object cxGridViewFacturasProveedor: TcxGridDBTableView [3]
|
||||||
@ -156,6 +169,9 @@ inherited frViewProcesoPresupuestosCliente: TfrViewProcesoPresupuestosCliente
|
|||||||
object cxGridViewFacturasProveedorFECHA_FACTURA: TcxGridDBColumn
|
object cxGridViewFacturasProveedorFECHA_FACTURA: TcxGridDBColumn
|
||||||
Caption = 'Fecha factura'
|
Caption = 'Fecha factura'
|
||||||
DataBinding.FieldName = 'FECHA_FACTURA'
|
DataBinding.FieldName = 'FECHA_FACTURA'
|
||||||
|
PropertiesClassName = 'TcxDateEditProperties'
|
||||||
|
Properties.Alignment.Horz = taRightJustify
|
||||||
|
HeaderAlignmentHorz = taRightJustify
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object cxGridViewAlbaranesCliente: TcxGridDBTableView [4]
|
object cxGridViewAlbaranesCliente: TcxGridDBTableView [4]
|
||||||
@ -196,6 +212,9 @@ inherited frViewProcesoPresupuestosCliente: TfrViewProcesoPresupuestosCliente
|
|||||||
object cxGridViewAlbaranesClienteFECHA_ALBARAN: TcxGridDBColumn
|
object cxGridViewAlbaranesClienteFECHA_ALBARAN: TcxGridDBColumn
|
||||||
Caption = 'Fecha albar'#225'n'
|
Caption = 'Fecha albar'#225'n'
|
||||||
DataBinding.FieldName = 'FECHA_ALBARAN'
|
DataBinding.FieldName = 'FECHA_ALBARAN'
|
||||||
|
PropertiesClassName = 'TcxDateEditProperties'
|
||||||
|
Properties.Alignment.Horz = taRightJustify
|
||||||
|
HeaderAlignmentHorz = taRightJustify
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object cxGridViewFacturasCliente: TcxGridDBTableView [5]
|
object cxGridViewFacturasCliente: TcxGridDBTableView [5]
|
||||||
@ -236,6 +255,9 @@ inherited frViewProcesoPresupuestosCliente: TfrViewProcesoPresupuestosCliente
|
|||||||
object cxGridViewFacturasClienteFECHA_FACTURA: TcxGridDBColumn
|
object cxGridViewFacturasClienteFECHA_FACTURA: TcxGridDBColumn
|
||||||
Caption = 'Fecha'
|
Caption = 'Fecha'
|
||||||
DataBinding.FieldName = 'FECHA_FACTURA'
|
DataBinding.FieldName = 'FECHA_FACTURA'
|
||||||
|
PropertiesClassName = 'TcxDateEditProperties'
|
||||||
|
Properties.Alignment.Horz = taRightJustify
|
||||||
|
HeaderAlignmentHorz = taRightJustify
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object cxGridViewFacturasProforma: TcxGridDBTableView [6]
|
object cxGridViewFacturasProforma: TcxGridDBTableView [6]
|
||||||
@ -276,13 +298,16 @@ inherited frViewProcesoPresupuestosCliente: TfrViewProcesoPresupuestosCliente
|
|||||||
object cxGridViewFacturasProformaFECHA_FACTURA: TcxGridDBColumn
|
object cxGridViewFacturasProformaFECHA_FACTURA: TcxGridDBColumn
|
||||||
Caption = 'Fecha'
|
Caption = 'Fecha'
|
||||||
DataBinding.FieldName = 'FECHA_FACTURA'
|
DataBinding.FieldName = 'FECHA_FACTURA'
|
||||||
|
PropertiesClassName = 'TcxDateEditProperties'
|
||||||
|
Properties.Alignment.Horz = taRightJustify
|
||||||
|
HeaderAlignmentHorz = taRightJustify
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
inherited cxGridLevel: TcxGridLevel
|
inherited cxGridLevel: TcxGridLevel
|
||||||
Options.DetailFrameColor = cl3DLight
|
Options.DetailFrameColor = cl3DLight
|
||||||
Options.DetailTabsPosition = dtpTop
|
Options.DetailTabsPosition = dtpTop
|
||||||
object cxGridLevelPedidosProveedor: TcxGridLevel
|
object cxGridLevelPedidosProveedor: TcxGridLevel
|
||||||
Caption = 'Documentos de Proveedor'
|
Caption = 'Pedidos/Albaranes/Facturas de Proveedor'
|
||||||
GridView = cxGridViewPedidosProveedor
|
GridView = cxGridViewPedidosProveedor
|
||||||
object cxGridLevelAlbaranesProveedor: TcxGridLevel
|
object cxGridLevelAlbaranesProveedor: TcxGridLevel
|
||||||
GridView = cxGridViewAlbaranesProveedor
|
GridView = cxGridViewAlbaranesProveedor
|
||||||
@ -292,13 +317,13 @@ inherited frViewProcesoPresupuestosCliente: TfrViewProcesoPresupuestosCliente
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
object cxGridAlbaranesCliente: TcxGridLevel
|
object cxGridAlbaranesCliente: TcxGridLevel
|
||||||
Caption = 'Documentos de Cliente'
|
Caption = 'Albaranes/Facturas de Cliente'
|
||||||
GridView = cxGridViewAlbaranesCliente
|
GridView = cxGridViewAlbaranesCliente
|
||||||
object cxGridFacturasCliente: TcxGridLevel
|
object cxGridFacturasCliente: TcxGridLevel
|
||||||
GridView = cxGridViewFacturasCliente
|
GridView = cxGridViewFacturasCliente
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object cxGridLevel1: TcxGridLevel
|
object cxGridFacturasProforma: TcxGridLevel
|
||||||
Caption = 'Facturas Proforma'
|
Caption = 'Facturas Proforma'
|
||||||
GridView = cxGridViewFacturasProforma
|
GridView = cxGridViewFacturasProforma
|
||||||
end
|
end
|
||||||
|
|||||||
@ -14,7 +14,7 @@ uses
|
|||||||
cxGridTableView, cxGridDBTableView, cxClasses, cxControls, cxGridCustomView,
|
cxGridTableView, cxGridDBTableView, cxClasses, cxControls, cxGridCustomView,
|
||||||
cxGrid, uBizPedidosCliente, uBizPedidosProveedor, uBizAlbaranesProveedor,
|
cxGrid, uBizPedidosCliente, uBizPedidosProveedor, uBizAlbaranesProveedor,
|
||||||
uBizFacturasProveedor, uBizAlbaranesCliente, uBizFacturasCliente, uBizFacturasProforma,
|
uBizFacturasProveedor, uBizAlbaranesCliente, uBizFacturasCliente, uBizFacturasProforma,
|
||||||
Grids, DBGrids;
|
Grids, DBGrids, cxCalendar;
|
||||||
|
|
||||||
type
|
type
|
||||||
IViewListadoProcesoPedidoCliente = interface(IViewGrid)
|
IViewListadoProcesoPedidoCliente = interface(IViewGrid)
|
||||||
@ -85,9 +85,10 @@ type
|
|||||||
dsFacturasProforma: TDADataSource;
|
dsFacturasProforma: TDADataSource;
|
||||||
cxGridViewFacturasProforma: TcxGridDBTableView;
|
cxGridViewFacturasProforma: TcxGridDBTableView;
|
||||||
cxGridViewFacturasProformaREFERENCIA: TcxGridDBColumn;
|
cxGridViewFacturasProformaREFERENCIA: TcxGridDBColumn;
|
||||||
cxGridLevel1: TcxGridLevel;
|
cxGridFacturasProforma: TcxGridLevel;
|
||||||
cxGridViewFacturasProformaSITUACION: TcxGridDBColumn;
|
cxGridViewFacturasProformaSITUACION: TcxGridDBColumn;
|
||||||
cxGridViewFacturasProformaFECHA_FACTURA: TcxGridDBColumn;
|
cxGridViewFacturasProformaFECHA_FACTURA: TcxGridDBColumn;
|
||||||
|
cxGridViewREFERENCIA_PRESUPUESTO: TcxGridDBColumn;
|
||||||
procedure CustomViewShow(Sender: TObject);
|
procedure CustomViewShow(Sender: TObject);
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|||||||
@ -175,7 +175,7 @@ begin
|
|||||||
FPagos := NIL;
|
FPagos := NIL;
|
||||||
FRecibosCompensados := Nil;
|
FRecibosCompensados := Nil;
|
||||||
FreeAndNIL(FPagosLink);
|
FreeAndNIL(FPagosLink);
|
||||||
FreeAndNIL(FRecibosCompensadosLink);
|
// FreeAndNIL(FRecibosCompensadosLink);
|
||||||
FSeleccionableInterface := NIL;
|
FSeleccionableInterface := NIL;
|
||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
|
|||||||
@ -14,6 +14,8 @@ type
|
|||||||
function GenerarPedidoCliPre(const IDPresupuesto : Integer) : Boolean; overload;
|
function GenerarPedidoCliPre(const IDPresupuesto : Integer) : Boolean; overload;
|
||||||
function GenerarPedidoCliPre(APresupuesto : IBizPresupuestoCliente) : Boolean; overload;
|
function GenerarPedidoCliPre(APresupuesto : IBizPresupuestoCliente) : Boolean; overload;
|
||||||
|
|
||||||
|
function VerProcesoCompletoDeLosPedidosDelPresupuesto(APresupuesto: Integer):Boolean;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
{$R *.dfm}
|
{$R *.dfm}
|
||||||
@ -33,6 +35,7 @@ var
|
|||||||
AClientesController : IClientesController;
|
AClientesController : IClientesController;
|
||||||
|
|
||||||
{ Métodos auxiliares }
|
{ Métodos auxiliares }
|
||||||
|
|
||||||
procedure CopiarPresupuestoAPedido(APresupuesto: IBizPresupuestoCliente; APedido : IBizPedidoCliente);
|
procedure CopiarPresupuestoAPedido(APresupuesto: IBizPresupuestoCliente; APedido : IBizPedidoCliente);
|
||||||
begin
|
begin
|
||||||
if not Assigned(APedido) then
|
if not Assigned(APedido) then
|
||||||
@ -47,7 +50,7 @@ begin
|
|||||||
// El albarán tiene que venir ya abierto y posicionado donde hay que copiar
|
// El albarán tiene que venir ya abierto y posicionado donde hay que copiar
|
||||||
APedido.ID_PRESUPUESTO := APresupuesto.ID;
|
APedido.ID_PRESUPUESTO := APresupuesto.ID;
|
||||||
APedido.REFERENCIA_CLIENTE := APresupuesto.REFERENCIA_CLIENTE;
|
APedido.REFERENCIA_CLIENTE := APresupuesto.REFERENCIA_CLIENTE;
|
||||||
APedido.TIPO_PEDIDO := APresupuesto.TIPO_PRESUPUESTO;
|
APedido.TIPO_PEDIDO := APresupuesto.TIPO_PRESUPUESTO;
|
||||||
APedido.IMPORTE_NETO := APresupuesto.IMPORTE_NETO;
|
APedido.IMPORTE_NETO := APresupuesto.IMPORTE_NETO;
|
||||||
APedido.IMPORTE_PORTE := APresupuesto.IMPORTE_PORTE;
|
APedido.IMPORTE_PORTE := APresupuesto.IMPORTE_PORTE;
|
||||||
APedido.DESCUENTO := APresupuesto.DESCUENTO;
|
APedido.DESCUENTO := APresupuesto.DESCUENTO;
|
||||||
@ -61,7 +64,7 @@ begin
|
|||||||
|
|
||||||
APresupuestosClienteController.RecuperarCliente(APresupuesto);
|
APresupuestosClienteController.RecuperarCliente(APresupuesto);
|
||||||
APedido.Cliente := APresupuesto.Cliente;
|
APedido.Cliente := APresupuesto.Cliente;
|
||||||
|
|
||||||
//Siempre cogeremos la primera direcci¢n del contacto para el envio
|
//Siempre cogeremos la primera direcci¢n del contacto para el envio
|
||||||
APedido.CALLE := APedido.Cliente.Direcciones.CALLE;
|
APedido.CALLE := APedido.Cliente.Direcciones.CALLE;
|
||||||
APedido.CODIGO_POSTAL := APedido.Cliente.Direcciones.CODIGO_POSTAL;
|
APedido.CODIGO_POSTAL := APedido.Cliente.Direcciones.CODIGO_POSTAL;
|
||||||
@ -393,4 +396,16 @@ begin
|
|||||||
end;
|
end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function VerProcesoCompletoDeLosPedidosDelPresupuesto(APresupuesto: Integer):Boolean;
|
||||||
|
begin
|
||||||
|
if not Assigned(APedidosClienteController) then
|
||||||
|
Inicializar;
|
||||||
|
|
||||||
|
Result := APedidosClienteController.VerProcesoCompleto(APresupuesto);
|
||||||
|
|
||||||
|
if Assigned(APedidosClienteController) then
|
||||||
|
Finalizar;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|||||||
@ -396,4 +396,3 @@ end;
|
|||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
| |||||||