Se adaptan los detalles para que puedan ser las cantidades decimales
git-svn-id: https://192.168.0.254/svn/Proyectos.Tecsitel_FactuGES2/trunk@645 0c75b7a4-871f-7646-8a2f-f78d34cc349f
This commit is contained in:
parent
f6773e2e7e
commit
92747b05ba
@ -287,7 +287,7 @@ inherited DataModulePresupuestosCliente: TDataModulePresupuestosCliente
|
||||
end
|
||||
item
|
||||
Name = 'CANTIDAD'
|
||||
DataType = datInteger
|
||||
DataType = datFloat
|
||||
Alignment = taRightJustify
|
||||
DictionaryEntry = 'PresupuestosCliente_Detalles_CANTIDAD'
|
||||
end
|
||||
|
||||
@ -3,14 +3,14 @@ unit schPresupuestosClienteClient_Intf;
|
||||
interface
|
||||
|
||||
uses
|
||||
Classes, DB, schBase_Intf, SysUtils, uROClasses, uDADataTable, FmtBCD, uROXMLIntf;
|
||||
Classes, DB, SysUtils, uROClasses, uDADataTable, FmtBCD, uROXMLIntf;
|
||||
|
||||
const
|
||||
{ Data table rules ids
|
||||
Feel free to change them to something more human readable
|
||||
but make sure they are unique in the context of your application }
|
||||
RID_PresupuestosCliente = '{853B1352-8912-4CFB-BB4D-CE8837BCB54A}';
|
||||
RID_PresupuestosCliente_Detalles = '{E5A90E27-F23F-4302-A58A-DF95BF1CEC8C}';
|
||||
RID_PresupuestosCliente = '{A622155D-B03A-44D8-BA3F-20591688D917}';
|
||||
RID_PresupuestosCliente_Detalles = '{4043BD1E-2206-47B4-AE7F-CB23FFF5E21B}';
|
||||
|
||||
{ Data table names }
|
||||
nme_PresupuestosCliente = 'PresupuestosCliente';
|
||||
@ -123,7 +123,7 @@ const
|
||||
type
|
||||
{ IPresupuestosCliente }
|
||||
IPresupuestosCliente = interface(IDAStronglyTypedDataTable)
|
||||
['{B6DA7C30-16B2-407A-BDF4-E8DC9F734A75}']
|
||||
['{67536976-E430-4AB7-875D-BE24887EFF02}']
|
||||
{ Property getters and setters }
|
||||
function GetIDValue: Integer;
|
||||
procedure SetIDValue(const aValue: Integer);
|
||||
@ -325,7 +325,7 @@ type
|
||||
end;
|
||||
|
||||
{ TPresupuestosClienteDataTableRules }
|
||||
TPresupuestosClienteDataTableRules = class(TIntfObjectDADataTableRules, IPresupuestosCliente)
|
||||
TPresupuestosClienteDataTableRules = class(TDADataTableRules, IPresupuestosCliente)
|
||||
private
|
||||
f_PORTADA: IROStrings;
|
||||
f_MEMORIA: IROStrings;
|
||||
@ -542,7 +542,7 @@ type
|
||||
|
||||
{ IPresupuestosCliente_Detalles }
|
||||
IPresupuestosCliente_Detalles = interface(IDAStronglyTypedDataTable)
|
||||
['{5ADC3764-FB8C-42A8-8750-8CD02EDDEB75}']
|
||||
['{55378B5F-C9F6-4E4F-ABB3-AD8C69CC1A79}']
|
||||
{ Property getters and setters }
|
||||
function GetIDValue: Integer;
|
||||
procedure SetIDValue(const aValue: Integer);
|
||||
@ -564,8 +564,8 @@ type
|
||||
procedure SetCONCEPTOValue(const aValue: String);
|
||||
function GetCONCEPTOIsNull: Boolean;
|
||||
procedure SetCONCEPTOIsNull(const aValue: Boolean);
|
||||
function GetCANTIDADValue: Integer;
|
||||
procedure SetCANTIDADValue(const aValue: Integer);
|
||||
function GetCANTIDADValue: Float;
|
||||
procedure SetCANTIDADValue(const aValue: Float);
|
||||
function GetCANTIDADIsNull: Boolean;
|
||||
procedure SetCANTIDADIsNull(const aValue: Boolean);
|
||||
function GetUNIDAD_MEDIDAValue: String;
|
||||
@ -617,7 +617,7 @@ type
|
||||
property TIPO_DETALLEIsNull: Boolean read GetTIPO_DETALLEIsNull write SetTIPO_DETALLEIsNull;
|
||||
property CONCEPTO: String read GetCONCEPTOValue write SetCONCEPTOValue;
|
||||
property CONCEPTOIsNull: Boolean read GetCONCEPTOIsNull write SetCONCEPTOIsNull;
|
||||
property CANTIDAD: Integer read GetCANTIDADValue write SetCANTIDADValue;
|
||||
property CANTIDAD: Float read GetCANTIDADValue write SetCANTIDADValue;
|
||||
property CANTIDADIsNull: Boolean read GetCANTIDADIsNull write SetCANTIDADIsNull;
|
||||
property UNIDAD_MEDIDA: String read GetUNIDAD_MEDIDAValue write SetUNIDAD_MEDIDAValue;
|
||||
property UNIDAD_MEDIDAIsNull: Boolean read GetUNIDAD_MEDIDAIsNull write SetUNIDAD_MEDIDAIsNull;
|
||||
@ -640,7 +640,7 @@ type
|
||||
end;
|
||||
|
||||
{ TPresupuestosCliente_DetallesDataTableRules }
|
||||
TPresupuestosCliente_DetallesDataTableRules = class(TIntfObjectDADataTableRules, IPresupuestosCliente_Detalles)
|
||||
TPresupuestosCliente_DetallesDataTableRules = class(TDADataTableRules, IPresupuestosCliente_Detalles)
|
||||
private
|
||||
protected
|
||||
{ Property getters and setters }
|
||||
@ -664,8 +664,8 @@ type
|
||||
procedure SetCONCEPTOValue(const aValue: String); virtual;
|
||||
function GetCONCEPTOIsNull: Boolean; virtual;
|
||||
procedure SetCONCEPTOIsNull(const aValue: Boolean); virtual;
|
||||
function GetCANTIDADValue: Integer; virtual;
|
||||
procedure SetCANTIDADValue(const aValue: Integer); virtual;
|
||||
function GetCANTIDADValue: Float; virtual;
|
||||
procedure SetCANTIDADValue(const aValue: Float); virtual;
|
||||
function GetCANTIDADIsNull: Boolean; virtual;
|
||||
procedure SetCANTIDADIsNull(const aValue: Boolean); virtual;
|
||||
function GetUNIDAD_MEDIDAValue: String; virtual;
|
||||
@ -716,7 +716,7 @@ type
|
||||
property TIPO_DETALLEIsNull: Boolean read GetTIPO_DETALLEIsNull write SetTIPO_DETALLEIsNull;
|
||||
property CONCEPTO: String read GetCONCEPTOValue write SetCONCEPTOValue;
|
||||
property CONCEPTOIsNull: Boolean read GetCONCEPTOIsNull write SetCONCEPTOIsNull;
|
||||
property CANTIDAD: Integer read GetCANTIDADValue write SetCANTIDADValue;
|
||||
property CANTIDAD: Float read GetCANTIDADValue write SetCANTIDADValue;
|
||||
property CANTIDADIsNull: Boolean read GetCANTIDADIsNull write SetCANTIDADIsNull;
|
||||
property UNIDAD_MEDIDA: String read GetUNIDAD_MEDIDAValue write SetUNIDAD_MEDIDAValue;
|
||||
property UNIDAD_MEDIDAIsNull: Boolean read GetUNIDAD_MEDIDAIsNull write SetUNIDAD_MEDIDAIsNull;
|
||||
@ -1590,14 +1590,14 @@ begin
|
||||
DataTable.Fields[idx_PresupuestosCliente_DetallesCONCEPTO].AsVariant := Null;
|
||||
end;
|
||||
|
||||
function TPresupuestosCliente_DetallesDataTableRules.GetCANTIDADValue: Integer;
|
||||
function TPresupuestosCliente_DetallesDataTableRules.GetCANTIDADValue: Float;
|
||||
begin
|
||||
result := DataTable.Fields[idx_PresupuestosCliente_DetallesCANTIDAD].AsInteger;
|
||||
result := DataTable.Fields[idx_PresupuestosCliente_DetallesCANTIDAD].AsFloat;
|
||||
end;
|
||||
|
||||
procedure TPresupuestosCliente_DetallesDataTableRules.SetCANTIDADValue(const aValue: Integer);
|
||||
procedure TPresupuestosCliente_DetallesDataTableRules.SetCANTIDADValue(const aValue: Float);
|
||||
begin
|
||||
DataTable.Fields[idx_PresupuestosCliente_DetallesCANTIDAD].AsInteger := aValue;
|
||||
DataTable.Fields[idx_PresupuestosCliente_DetallesCANTIDAD].AsFloat := aValue;
|
||||
end;
|
||||
|
||||
function TPresupuestosCliente_DetallesDataTableRules.GetCANTIDADIsNull: boolean;
|
||||
|
||||
@ -9,13 +9,13 @@ const
|
||||
{ Delta rules ids
|
||||
Feel free to change them to something more human readable
|
||||
but make sure they are unique in the context of your application }
|
||||
RID_PresupuestosClienteDelta = '{96398599-ED77-4ED9-B88E-F52E17B3D835}';
|
||||
RID_PresupuestosCliente_DetallesDelta = '{D8D82042-F4DD-4056-B2D4-946CDF61FF5B}';
|
||||
RID_PresupuestosClienteDelta = '{4B300EEA-2519-4A6B-84AC-CB23A152A6EF}';
|
||||
RID_PresupuestosCliente_DetallesDelta = '{CC67839F-FC02-4599-85F7-E28542F181F7}';
|
||||
|
||||
type
|
||||
{ IPresupuestosClienteDelta }
|
||||
IPresupuestosClienteDelta = interface(IPresupuestosCliente)
|
||||
['{96398599-ED77-4ED9-B88E-F52E17B3D835}']
|
||||
['{4B300EEA-2519-4A6B-84AC-CB23A152A6EF}']
|
||||
{ Property getters and setters }
|
||||
function GetOldIDValue : Integer;
|
||||
function GetOldID_EMPRESAValue : Integer;
|
||||
@ -437,14 +437,14 @@ type
|
||||
|
||||
{ IPresupuestosCliente_DetallesDelta }
|
||||
IPresupuestosCliente_DetallesDelta = interface(IPresupuestosCliente_Detalles)
|
||||
['{D8D82042-F4DD-4056-B2D4-946CDF61FF5B}']
|
||||
['{CC67839F-FC02-4599-85F7-E28542F181F7}']
|
||||
{ Property getters and setters }
|
||||
function GetOldIDValue : Integer;
|
||||
function GetOldID_PRESUPUESTOValue : Integer;
|
||||
function GetOldPOSICIONValue : Integer;
|
||||
function GetOldTIPO_DETALLEValue : String;
|
||||
function GetOldCONCEPTOValue : String;
|
||||
function GetOldCANTIDADValue : Integer;
|
||||
function GetOldCANTIDADValue : Float;
|
||||
function GetOldUNIDAD_MEDIDAValue : String;
|
||||
function GetOldIMPORTE_UNIDADValue : Currency;
|
||||
function GetOldIMPORTE_TOTALValue : Currency;
|
||||
@ -461,7 +461,7 @@ type
|
||||
property OldPOSICION : Integer read GetOldPOSICIONValue;
|
||||
property OldTIPO_DETALLE : String read GetOldTIPO_DETALLEValue;
|
||||
property OldCONCEPTO : String read GetOldCONCEPTOValue;
|
||||
property OldCANTIDAD : Integer read GetOldCANTIDADValue;
|
||||
property OldCANTIDAD : Float read GetOldCANTIDADValue;
|
||||
property OldUNIDAD_MEDIDA : String read GetOldUNIDAD_MEDIDAValue;
|
||||
property OldIMPORTE_UNIDAD : Currency read GetOldIMPORTE_UNIDADValue;
|
||||
property OldIMPORTE_TOTAL : Currency read GetOldIMPORTE_TOTALValue;
|
||||
@ -508,11 +508,11 @@ type
|
||||
function GetOldCONCEPTOIsNull: Boolean; virtual;
|
||||
procedure SetCONCEPTOValue(const aValue: String); virtual;
|
||||
procedure SetCONCEPTOIsNull(const aValue: Boolean); virtual;
|
||||
function GetCANTIDADValue: Integer; virtual;
|
||||
function GetCANTIDADValue: Float; virtual;
|
||||
function GetCANTIDADIsNull: Boolean; virtual;
|
||||
function GetOldCANTIDADValue: Integer; virtual;
|
||||
function GetOldCANTIDADValue: Float; virtual;
|
||||
function GetOldCANTIDADIsNull: Boolean; virtual;
|
||||
procedure SetCANTIDADValue(const aValue: Integer); virtual;
|
||||
procedure SetCANTIDADValue(const aValue: Float); virtual;
|
||||
procedure SetCANTIDADIsNull(const aValue: Boolean); virtual;
|
||||
function GetUNIDAD_MEDIDAValue: String; virtual;
|
||||
function GetUNIDAD_MEDIDAIsNull: Boolean; virtual;
|
||||
@ -590,9 +590,9 @@ type
|
||||
property CONCEPTOIsNull : Boolean read GetCONCEPTOIsNull write SetCONCEPTOIsNull;
|
||||
property OldCONCEPTO : String read GetOldCONCEPTOValue;
|
||||
property OldCONCEPTOIsNull : Boolean read GetOldCONCEPTOIsNull;
|
||||
property CANTIDAD : Integer read GetCANTIDADValue write SetCANTIDADValue;
|
||||
property CANTIDAD : Float read GetCANTIDADValue write SetCANTIDADValue;
|
||||
property CANTIDADIsNull : Boolean read GetCANTIDADIsNull write SetCANTIDADIsNull;
|
||||
property OldCANTIDAD : Integer read GetOldCANTIDADValue;
|
||||
property OldCANTIDAD : Float read GetOldCANTIDADValue;
|
||||
property OldCANTIDADIsNull : Boolean read GetOldCANTIDADIsNull;
|
||||
property UNIDAD_MEDIDA : String read GetUNIDAD_MEDIDAValue write SetUNIDAD_MEDIDAValue;
|
||||
property UNIDAD_MEDIDAIsNull : Boolean read GetUNIDAD_MEDIDAIsNull write SetUNIDAD_MEDIDAIsNull;
|
||||
@ -1869,7 +1869,7 @@ begin
|
||||
BusinessProcessor.CurrentChange.NewValueByName[fld_PresupuestosCliente_DetallesCONCEPTO] := Null;
|
||||
end;
|
||||
|
||||
function TPresupuestosCliente_DetallesBusinessProcessorRules.GetCANTIDADValue: Integer;
|
||||
function TPresupuestosCliente_DetallesBusinessProcessorRules.GetCANTIDADValue: Float;
|
||||
begin
|
||||
result := BusinessProcessor.CurrentChange.NewValueByName[fld_PresupuestosCliente_DetallesCANTIDAD];
|
||||
end;
|
||||
@ -1879,7 +1879,7 @@ begin
|
||||
result := VarIsNull(BusinessProcessor.CurrentChange.NewValueByName[fld_PresupuestosCliente_DetallesCANTIDAD]);
|
||||
end;
|
||||
|
||||
function TPresupuestosCliente_DetallesBusinessProcessorRules.GetOldCANTIDADValue: Integer;
|
||||
function TPresupuestosCliente_DetallesBusinessProcessorRules.GetOldCANTIDADValue: Float;
|
||||
begin
|
||||
result := BusinessProcessor.CurrentChange.OldValueByName[fld_PresupuestosCliente_DetallesCANTIDAD];
|
||||
end;
|
||||
@ -1889,7 +1889,7 @@ begin
|
||||
result := VarIsNull(BusinessProcessor.CurrentChange.OldValueByName[fld_PresupuestosCliente_DetallesCANTIDAD]);
|
||||
end;
|
||||
|
||||
procedure TPresupuestosCliente_DetallesBusinessProcessorRules.SetCANTIDADValue(const aValue: Integer);
|
||||
procedure TPresupuestosCliente_DetallesBusinessProcessorRules.SetCANTIDADValue(const aValue: Float);
|
||||
begin
|
||||
BusinessProcessor.CurrentChange.NewValueByName[fld_PresupuestosCliente_DetallesCANTIDAD] := aValue;
|
||||
end;
|
||||
|
||||
@ -409,7 +409,7 @@ object RptPresupuestosCliente: TRptPresupuestosCliente
|
||||
end
|
||||
item
|
||||
Name = 'CANTIDAD'
|
||||
DataType = datInteger
|
||||
DataType = datFloat
|
||||
end
|
||||
item
|
||||
Name = 'UNIDAD_MEDIDA'
|
||||
@ -963,7 +963,7 @@ object RptPresupuestosCliente: TRptPresupuestosCliente
|
||||
end
|
||||
item
|
||||
Name = 'CANTIDAD'
|
||||
DataType = datInteger
|
||||
DataType = datFloat
|
||||
end
|
||||
item
|
||||
Name = 'UNIDAD_MEDIDA'
|
||||
|
||||
@ -382,7 +382,7 @@ object RptWordPresupuestoCliente: TRptWordPresupuestoCliente
|
||||
end
|
||||
item
|
||||
Name = 'CANTIDAD'
|
||||
DataType = datInteger
|
||||
DataType = datFloat
|
||||
end
|
||||
item
|
||||
Name = 'UNIDAD_MEDIDA'
|
||||
|
||||
@ -456,7 +456,7 @@ object srvPresupuestosCliente: TsrvPresupuestosCliente
|
||||
end
|
||||
item
|
||||
Name = 'CANTIDAD'
|
||||
DataType = datInteger
|
||||
DataType = datFloat
|
||||
DictionaryEntry = 'PresupuestosCliente_Detalles_CANTIDAD'
|
||||
end
|
||||
item
|
||||
@ -1243,7 +1243,7 @@ object srvPresupuestosCliente: TsrvPresupuestosCliente
|
||||
end
|
||||
item
|
||||
Name = 'PresupuestosCliente_Detalles_CANTIDAD'
|
||||
DataType = datInteger
|
||||
DataType = datFloat
|
||||
DisplayLabel = 'CANTIDAD'
|
||||
Alignment = taRightJustify
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user