Version 2.4.0
git-svn-id: https://192.168.0.254/svn/Proyectos.Tecsitel_FactuGES2/trunk@1168 0c75b7a4-871f-7646-8a2f-f78d34cc349f
This commit is contained in:
parent
82393c1405
commit
bf321b65a8
@ -53,7 +53,7 @@
|
||||
<Borland.Personality>Delphi.Personality</Borland.Personality>
|
||||
<Borland.ProjectType>VCLApplication</Borland.ProjectType>
|
||||
<BorlandProject>
|
||||
<BorlandProject><Delphi.Personality><Parameters><Parameters Name="UseLauncher">False</Parameters><Parameters Name="LoadAllSymbols">True</Parameters><Parameters Name="LoadUnspecifiedSymbols">False</Parameters></Parameters><Language><Language Name="RootDir">C:\Archivos de programa\Borland\Delphi7\Bin\</Language></Language><VersionInfo><VersionInfo Name="IncludeVerInfo">True</VersionInfo><VersionInfo Name="AutoIncBuild">False</VersionInfo><VersionInfo Name="MajorVer">2</VersionInfo><VersionInfo Name="MinorVer">3</VersionInfo><VersionInfo Name="Release">4</VersionInfo><VersionInfo Name="Build">0</VersionInfo><VersionInfo Name="Debug">False</VersionInfo><VersionInfo Name="PreRelease">False</VersionInfo><VersionInfo Name="Special">False</VersionInfo><VersionInfo Name="Private">False</VersionInfo><VersionInfo Name="DLL">False</VersionInfo><VersionInfo Name="Locale">3082</VersionInfo><VersionInfo Name="CodePage">1252</VersionInfo></VersionInfo><VersionInfoKeys><VersionInfoKeys Name="CompanyName">Rodax Software S.L.</VersionInfoKeys><VersionInfoKeys Name="FileDescription"></VersionInfoKeys><VersionInfoKeys Name="FileVersion">2.3.4.0</VersionInfoKeys><VersionInfoKeys Name="InternalName">FactuGES</VersionInfoKeys><VersionInfoKeys Name="LegalCopyright"></VersionInfoKeys><VersionInfoKeys Name="LegalTrademarks"></VersionInfoKeys><VersionInfoKeys Name="OriginalFilename"></VersionInfoKeys><VersionInfoKeys Name="ProductName">FactuGES</VersionInfoKeys><VersionInfoKeys Name="ProductVersion">2.3.4.0</VersionInfoKeys><VersionInfoKeys Name="Comments"></VersionInfoKeys></VersionInfoKeys><Excluded_Packages></Excluded_Packages><Source><Source Name="MainSource">FactuGES.dpr</Source></Source></Delphi.Personality><ModelSupport>False</ModelSupport></BorlandProject></BorlandProject>
|
||||
<BorlandProject><Delphi.Personality><Parameters><Parameters Name="UseLauncher">False</Parameters><Parameters Name="LoadAllSymbols">True</Parameters><Parameters Name="LoadUnspecifiedSymbols">False</Parameters></Parameters><Language><Language Name="RootDir">C:\Archivos de programa\Borland\Delphi7\Bin\</Language></Language><VersionInfo><VersionInfo Name="IncludeVerInfo">True</VersionInfo><VersionInfo Name="AutoIncBuild">False</VersionInfo><VersionInfo Name="MajorVer">2</VersionInfo><VersionInfo Name="MinorVer">4</VersionInfo><VersionInfo Name="Release">0</VersionInfo><VersionInfo Name="Build">0</VersionInfo><VersionInfo Name="Debug">False</VersionInfo><VersionInfo Name="PreRelease">False</VersionInfo><VersionInfo Name="Special">False</VersionInfo><VersionInfo Name="Private">False</VersionInfo><VersionInfo Name="DLL">False</VersionInfo><VersionInfo Name="Locale">3082</VersionInfo><VersionInfo Name="CodePage">1252</VersionInfo></VersionInfo><VersionInfoKeys><VersionInfoKeys Name="CompanyName">Rodax Software S.L.</VersionInfoKeys><VersionInfoKeys Name="FileDescription"></VersionInfoKeys><VersionInfoKeys Name="FileVersion">2.4.0.0</VersionInfoKeys><VersionInfoKeys Name="InternalName">FactuGES</VersionInfoKeys><VersionInfoKeys Name="LegalCopyright"></VersionInfoKeys><VersionInfoKeys Name="LegalTrademarks"></VersionInfoKeys><VersionInfoKeys Name="OriginalFilename"></VersionInfoKeys><VersionInfoKeys Name="ProductName">FactuGES</VersionInfoKeys><VersionInfoKeys Name="ProductVersion">2.4.0.0</VersionInfoKeys><VersionInfoKeys Name="Comments"></VersionInfoKeys></VersionInfoKeys><Excluded_Packages></Excluded_Packages><Source><Source Name="MainSource">FactuGES.dpr</Source></Source></Delphi.Personality><ModelSupport>False</ModelSupport></BorlandProject></BorlandProject>
|
||||
</ProjectExtensions>
|
||||
<Import Project="$(MSBuildBinPath)\Borland.Delphi.Targets" />
|
||||
<ItemGroup>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
MAINICON ICON "C:\Codigo tecsitel\Resources\Iconos\Factuges.ico"
|
||||
1 VERSIONINFO
|
||||
FILEVERSION 2,3,4,0
|
||||
PRODUCTVERSION 2,3,4,0
|
||||
FILEVERSION 2,4,0,0
|
||||
PRODUCTVERSION 2,4,0,0
|
||||
FILEFLAGSMASK 0x3FL
|
||||
FILEFLAGS 0x00L
|
||||
FILEOS 0x40004L
|
||||
@ -13,10 +13,10 @@ BEGIN
|
||||
BLOCK "0C0A04E4"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "Rodax Software S.L.\0"
|
||||
VALUE "FileVersion", "2.3.4.0\0"
|
||||
VALUE "FileVersion", "2.4.0.0\0"
|
||||
VALUE "InternalName", "FactuGES\0"
|
||||
VALUE "ProductName", "FactuGES\0"
|
||||
VALUE "ProductVersion", "2.3.4.0\0"
|
||||
VALUE "ProductVersion", "2.4.0.0\0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -180,6 +180,18 @@ begin
|
||||
ReplaceBookmark('FaxEmpresa', tbl_Empresa.FieldByName('FAX').AsString);
|
||||
if BookmarkExists('CorreoEmpresa') then
|
||||
ReplaceBookmark('CorreoEmpresa', tbl_Empresa.FieldByName('EMAIL_1').AsString);
|
||||
|
||||
if BookmarkExists('ImporteTotal') then
|
||||
if ImprimirPrecio then
|
||||
begin
|
||||
ReplaceBookmark('ImporteTotal', FormatFloat(DISPLAY_EUROS2, FieldByName('IMPORTE_TOTAL').AsFloat));
|
||||
end
|
||||
else
|
||||
begin
|
||||
ReplaceBookmark('ImporteTotal', '');
|
||||
if BookmarkExists('DescripcionImporteTotal') then
|
||||
ReplaceBookmark('DescripcionImporteTotal', '');
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
@ -2379,7 +2379,63 @@ object RptFacturasCliente: TRptFacturasCliente
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'ID_TIPO_GASTO'
|
||||
Name = 'T1'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T2'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T3'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T4'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T5'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T6'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T7'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T8'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T9'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T10'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T11'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T12'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T13'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T14'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T15'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
@ -2449,19 +2505,21 @@ object RptFacturasCliente: TRptFacturasCliente
|
||||
'(VALOR = periodo_ingresos1.NFILA)'#10#10'left join'#10'(select comp2.ID_EM' +
|
||||
'PRESA, comp2.ANO, MES as NFILA, SUM(comp2.BASE_IMPONIBLE) as IMP' +
|
||||
'ORTE_TOTAL'#10'from V_INF_FAC_PROVEEDOR comp2'#10'where ID_EMPRESA = :ID' +
|
||||
'_EMPRESA1'#10'and (ANO = :ANO1)'#10'and (comp2.ID_TIPO_FACTURA = :ID_TIP' +
|
||||
'O_GASTO)'#10'group by 1,2,3'#10'order by 1 desc,2 asc) periodo_gastos1 o' +
|
||||
'n (VALOR = periodo_gastos1.NFILA)'#10#10'left join'#10'(select comp3.ID_EM' +
|
||||
'PRESA, comp3.ANO, MES as NFILA, SUM(comp3.BASE_IMPONIBLE) as IMP' +
|
||||
'ORTE_TOTAL'#10'from V_INF_FAC_CLIENTE comp3'#10'where ID_EMPRESA = :ID_E' +
|
||||
'MPRESA2'#10'and (ANO = :ANO2)'#10'group by 1,2,3'#10'order by 1 desc,2 asc) ' +
|
||||
'periodo_ingresos2 on (VALOR = periodo_ingresos2.NFILA)'#10#10'left joi' +
|
||||
'n'#10'(select comp4.ID_EMPRESA, comp4.ANO, MES as NFILA, SUM(comp4.B' +
|
||||
'ASE_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_PROVEEDOR comp4'#10'w' +
|
||||
'here ID_EMPRESA = :ID_EMPRESA2'#10'and (ANO = :ANO2)'#10'and (comp4.ID_T' +
|
||||
'IPO_FACTURA = :ID_TIPO_GASTO)'#10'group by 1,2,3'#10'order by 1 desc,2 a' +
|
||||
'sc) periodo_gastos2 on (VALOR = periodo_gastos2.NFILA)'#10#10#10'where p' +
|
||||
'eriodo= '#39'MENSUAL'#39#10'order by valor asc'#10
|
||||
'_EMPRESA1'#10'and (ANO = :ANO1)'#10'AND comp2.ID_TIPO_FACTURA in (:T1,:T' +
|
||||
'2,:T3,:T4,:T5,:T6,:T7,:T8,:T9,:T10,:T11,:T12,:T13,:T14,:T15)'#10'gro' +
|
||||
'up by 1,2,3'#10'order by 1 desc,2 asc) periodo_gastos1 on (VALOR = p' +
|
||||
'eriodo_gastos1.NFILA)'#10#10'left join'#10'(select comp3.ID_EMPRESA, comp3' +
|
||||
'.ANO, MES as NFILA, SUM(comp3.BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'f' +
|
||||
'rom V_INF_FAC_CLIENTE comp3'#10'where ID_EMPRESA = :ID_EMPRESA2'#10'and ' +
|
||||
'(ANO = :ANO2)'#10'group by 1,2,3'#10'order by 1 desc,2 asc) periodo_ingr' +
|
||||
'esos2 on (VALOR = periodo_ingresos2.NFILA)'#10#10'left join'#10'(select co' +
|
||||
'mp4.ID_EMPRESA, comp4.ANO, MES as NFILA, SUM(comp4.BASE_IMPONIBL' +
|
||||
'E) as IMPORTE_TOTAL'#10'from V_INF_FAC_PROVEEDOR comp4'#10'where ID_EMPR' +
|
||||
'ESA = :ID_EMPRESA2'#10'and (ANO = :ANO2)'#10'AND comp4.ID_TIPO_FACTURA i' +
|
||||
'n (:T1,:T2,:T3,:T4,:T5,:T6,:T7,:T8,:T9,:T10,:T11,:T12,:T13,:T14,' +
|
||||
':T15)'#10'group by 1,2,3'#10'order by 1 desc,2 asc) periodo_gastos2 on (' +
|
||||
'VALOR = periodo_gastos2.NFILA)'#10#10#10'where periodo= '#39'MENSUAL'#39#10'order ' +
|
||||
'by valor asc'#10
|
||||
StatementType = stSQL
|
||||
ColumnMappings = <
|
||||
item
|
||||
@ -2640,7 +2698,63 @@ object RptFacturasCliente: TRptFacturasCliente
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'ID_TIPO_GASTO'
|
||||
Name = 'T1'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T2'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T3'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T4'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T5'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T6'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T7'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T8'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T9'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T10'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T11'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T12'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T13'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T14'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T15'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
@ -2710,19 +2824,21 @@ object RptFacturasCliente: TRptFacturasCliente
|
||||
's1 on (VALOR = periodo_ingresos1.NFILA)'#10#10'left join'#10'(select comp2' +
|
||||
'.ID_EMPRESA, comp2.ANO, SEMESTRE as NFILA, SUM(comp2.BASE_IMPONI' +
|
||||
'BLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_PROVEEDOR comp2'#10'where ID_EM' +
|
||||
'PRESA = :ID_EMPRESA1'#10'and (ANO = :ANO1)'#10'and (comp2.ID_TIPO_FACTUR' +
|
||||
'A = :ID_TIPO_GASTO)'#10'group by 1,2,3'#10'order by 1 desc,2 asc) period' +
|
||||
'o_gastos1 on (VALOR = periodo_gastos1.NFILA)'#10#10'left join'#10'(select ' +
|
||||
'comp3.ID_EMPRESA, comp3.ANO, SEMESTRE as NFILA, SUM(comp3.BASE_I' +
|
||||
'MPONIBLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_CLIENTE comp3'#10'where ID' +
|
||||
'_EMPRESA = :ID_EMPRESA2'#10'and (ANO = :ANO2)'#10'group by 1,2,3'#10'order b' +
|
||||
'y 1 desc,2 asc) periodo_ingresos2 on (VALOR = periodo_ingresos2.' +
|
||||
'NFILA)'#10#10'left join'#10'(select comp4.ID_EMPRESA, comp4.ANO, SEMESTRE ' +
|
||||
'as NFILA, SUM(comp4.BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_INF_' +
|
||||
'FAC_PROVEEDOR comp4'#10'where ID_EMPRESA = :ID_EMPRESA2'#10'and (ANO = :' +
|
||||
'ANO2)'#10'and (comp4.ID_TIPO_FACTURA = :ID_TIPO_GASTO)'#10'group by 1,2,' +
|
||||
'3'#10'order by 1 desc,2 asc) periodo_gastos2 on (VALOR = periodo_gas' +
|
||||
'tos2.NFILA)'#10#10#10'where periodo= '#39'SEMESTRAL'#39#10'order by valor asc'#10
|
||||
'PRESA = :ID_EMPRESA1'#10'and (ANO = :ANO1)'#10'AND comp2.ID_TIPO_FACTURA' +
|
||||
' in (:T1,:T2,:T3,:T4,:T5,:T6,:T7,:T8,:T9,:T10,:T11,:T12,:T13,:T1' +
|
||||
'4,:T15)'#10'group by 1,2,3'#10'order by 1 desc,2 asc) periodo_gastos1 on' +
|
||||
' (VALOR = periodo_gastos1.NFILA)'#10#10'left join'#10'(select comp3.ID_EMP' +
|
||||
'RESA, comp3.ANO, SEMESTRE as NFILA, SUM(comp3.BASE_IMPONIBLE) as' +
|
||||
' IMPORTE_TOTAL'#10'from V_INF_FAC_CLIENTE comp3'#10'where ID_EMPRESA = :' +
|
||||
'ID_EMPRESA2'#10'and (ANO = :ANO2)'#10'group by 1,2,3'#10'order by 1 desc,2 a' +
|
||||
'sc) periodo_ingresos2 on (VALOR = periodo_ingresos2.NFILA)'#10#10'left' +
|
||||
' join'#10'(select comp4.ID_EMPRESA, comp4.ANO, SEMESTRE as NFILA, SU' +
|
||||
'M(comp4.BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_PROVEEDO' +
|
||||
'R comp4'#10'where ID_EMPRESA = :ID_EMPRESA2'#10'and (ANO = :ANO2)'#10'AND co' +
|
||||
'mp4.ID_TIPO_FACTURA in (:T1,:T2,:T3,:T4,:T5,:T6,:T7,:T8,:T9,:T10' +
|
||||
',:T11,:T12,:T13,:T14,:T15)'#10'group by 1,2,3'#10'order by 1 desc,2 asc)' +
|
||||
' periodo_gastos2 on (VALOR = periodo_gastos2.NFILA)'#10#10#10'where peri' +
|
||||
'odo= '#39'SEMESTRAL'#39#10'order by valor asc'#10
|
||||
StatementType = stSQL
|
||||
ColumnMappings = <
|
||||
item
|
||||
@ -2901,7 +3017,63 @@ object RptFacturasCliente: TRptFacturasCliente
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'ID_TIPO_GASTO'
|
||||
Name = 'T1'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T2'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T3'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T4'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T5'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T6'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T7'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T8'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T9'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T10'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T11'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T12'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T13'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T14'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T15'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
@ -2971,20 +3143,21 @@ object RptFacturasCliente: TRptFacturasCliente
|
||||
'os1 on (VALOR = periodo_ingresos1.NFILA)'#10#10'left join'#10'(select comp' +
|
||||
'2.ID_EMPRESA, comp2.ANO, TRIMESTRE as NFILA, SUM(comp2.BASE_IMPO' +
|
||||
'NIBLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_PROVEEDOR comp2'#10'where ID_' +
|
||||
'EMPRESA = :ID_EMPRESA1'#10'and (ANO = :ANO1)'#10'and (comp2.ID_TIPO_FACT' +
|
||||
'URA = :ID_TIPO_GASTO)'#10'group by 1,2,3'#10'order by 1 desc,2 asc) peri' +
|
||||
'odo_gastos1 on (VALOR = periodo_gastos1.NFILA)'#10#10'left join'#10'(selec' +
|
||||
't comp3.ID_EMPRESA, comp3.ANO, TRIMESTRE as NFILA, SUM(comp3.BAS' +
|
||||
'E_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_CLIENTE comp3'#10'where' +
|
||||
' ID_EMPRESA = :ID_EMPRESA2'#10'and (ANO = :ANO2)'#10'group by 1,2,3'#10'orde' +
|
||||
'r by 1 desc,2 asc) periodo_ingresos2 on (VALOR = periodo_ingreso' +
|
||||
's2.NFILA)'#10#10'left join'#10'(select comp4.ID_EMPRESA, comp4.ANO, TRIMES' +
|
||||
'TRE as NFILA, SUM(comp4.BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_' +
|
||||
'INF_FAC_PROVEEDOR comp4'#10'where ID_EMPRESA = :ID_EMPRESA2'#10'and (ANO' +
|
||||
' = :ANO2)'#10'and (comp4.ID_TIPO_FACTURA = :ID_TIPO_GASTO)'#10'group by ' +
|
||||
'1,2,3'#10'order by 1 desc,2 asc) periodo_gastos2 on (VALOR = periodo' +
|
||||
'_gastos2.NFILA)'#10#10#10'where periodo= '#39'TRIMESTRAL'#39#10'order by valor asc' +
|
||||
#10
|
||||
'EMPRESA = :ID_EMPRESA1'#10'and (ANO = :ANO1)'#10'AND comp2.ID_TIPO_FACTU' +
|
||||
'RA in (:T1,:T2,:T3,:T4,:T5,:T6,:T7,:T8,:T9,:T10,:T11,:T12,:T13,:' +
|
||||
'T14,:T15)'#10'group by 1,2,3'#10'order by 1 desc,2 asc) periodo_gastos1 ' +
|
||||
'on (VALOR = periodo_gastos1.NFILA)'#10#10'left join'#10'(select comp3.ID_E' +
|
||||
'MPRESA, comp3.ANO, TRIMESTRE as NFILA, SUM(comp3.BASE_IMPONIBLE)' +
|
||||
' as IMPORTE_TOTAL'#10'from V_INF_FAC_CLIENTE comp3'#10'where ID_EMPRESA ' +
|
||||
'= :ID_EMPRESA2'#10'and (ANO = :ANO2)'#10'group by 1,2,3'#10'order by 1 desc,' +
|
||||
'2 asc) periodo_ingresos2 on (VALOR = periodo_ingresos2.NFILA)'#10#10'l' +
|
||||
'eft join'#10'(select comp4.ID_EMPRESA, comp4.ANO, TRIMESTRE as NFILA' +
|
||||
', SUM(comp4.BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_PROV' +
|
||||
'EEDOR comp4'#10'where ID_EMPRESA = :ID_EMPRESA2'#10'and (ANO = :ANO2)'#10'AN' +
|
||||
'D comp4.ID_TIPO_FACTURA in (:T1,:T2,:T3,:T4,:T5,:T6,:T7,:T8,:T9,' +
|
||||
':T10,:T11,:T12,:T13,:T14,:T15)'#10'group by 1,2,3'#10'order by 1 desc,2 ' +
|
||||
'asc) periodo_gastos2 on (VALOR = periodo_gastos2.NFILA)'#10#10#10'where ' +
|
||||
'periodo= '#39'TRIMESTRAL'#39#10'order by valor asc'#10
|
||||
StatementType = stSQL
|
||||
ColumnMappings = <
|
||||
item
|
||||
@ -5321,7 +5494,63 @@ object RptFacturasCliente: TRptFacturasCliente
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'ID_TIPO_GASTO'
|
||||
Name = 'T1'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T2'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T3'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T4'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T5'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T6'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T7'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T8'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T9'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T10'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T11'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T12'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T13'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T14'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T15'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
@ -5436,7 +5665,63 @@ object RptFacturasCliente: TRptFacturasCliente
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'ID_TIPO_GASTO'
|
||||
Name = 'T1'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T2'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T3'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T4'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T5'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T6'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T7'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T8'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T9'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T10'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T11'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T12'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T13'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T14'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T15'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
@ -5551,7 +5836,63 @@ object RptFacturasCliente: TRptFacturasCliente
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'ID_TIPO_GASTO'
|
||||
Name = 'T1'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T2'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T3'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T4'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T5'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T6'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T7'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T8'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T9'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T10'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T11'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T12'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T13'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T14'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T15'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
|
||||
@ -110,10 +110,10 @@ type
|
||||
frxDBDInformeIVAComparativoFacturasPro: TfrxDBDataset;
|
||||
DADSInformeIVAComparativoFacturasPro: TDADataSource;
|
||||
tbl_InformeIVAComparativoFacturasPro: TDAMemDataTable;
|
||||
schReport: TDASchema;
|
||||
tbl_InformeListadoBeneficiosGrafCompSemestralTipoGasto: TDAMemDataTable;
|
||||
tbl_InformeListadoBeneficiosGrafCompTrimestralTipoGasto: TDAMemDataTable;
|
||||
tbl_InformeListadoBeneficiosGrafCompMensualTipoGasto: TDAMemDataTable;
|
||||
schReport: TDASchema;
|
||||
procedure DataModuleCreate(Sender: TObject);
|
||||
procedure DataModuleDestroy(Sender: TObject);
|
||||
private
|
||||
@ -141,6 +141,7 @@ type
|
||||
procedure PrepararTablaResumenInforme(ATabla: IDADataset);
|
||||
procedure PrepararTablaInformeGrafComp(ATabla: TDAMemDataTable);
|
||||
procedure PrepararTablaResumenInformeGrafComp(ATabla: TDAMemDataTable);
|
||||
procedure RellenarParametro(ANombreParametro: String; AID: Integer; AListaIDTiposGasto: TIntegerArray; ATabla: TDADataSource);
|
||||
function _GenerarInforme(const TipoInforme: String): Binary;
|
||||
procedure IniciarParametrosInforme;
|
||||
procedure RecuperarNombresClientes;
|
||||
@ -246,6 +247,7 @@ var
|
||||
AStream: TMemoryStream;
|
||||
AInforme: Variant;
|
||||
ACadena: TStringList;
|
||||
i: Integer;
|
||||
|
||||
begin
|
||||
FConnection.BeginTransaction; //<--- Creo que no va a hacer falta. "PUES SI ES NECESARIO"
|
||||
@ -267,28 +269,18 @@ begin
|
||||
FListaNombreTiposGasto := ListaNombreTiposGasto;
|
||||
|
||||
//Cargamos las tablas con parametro ID_TIPO_GASTO
|
||||
if (FListaIDTiposdeGasto.Count = 1) then
|
||||
begin
|
||||
//Preparamos la tabla correspondiente y la abrimos para el informe
|
||||
if (FIntervalo = CTE_MENSUAL) then
|
||||
PrepararTablaInformeGrafComp(tbl_InformeListadoBeneficiosGrafCompMensualTipoGasto)
|
||||
else if (FIntervalo = CTE_TRIMESTRAL) then
|
||||
PrepararTablaInformeGrafComp(tbl_InformeListadoBeneficiosGrafCompTrimestralTipoGasto)
|
||||
else
|
||||
PrepararTablaInformeGrafComp(tbl_InformeListadoBeneficiosGrafCompSemestralTipoGasto);
|
||||
|
||||
DASInformeListadoFacturasGrafComp.DataTable.ParamByName('ID_TIPO_GASTO').AsInteger := FListaIDTiposdeGasto.Items[0];
|
||||
end
|
||||
//Preparamos la tabla correspondiente y la abrimos para el informe
|
||||
if (FIntervalo = CTE_MENSUAL) then
|
||||
PrepararTablaInformeGrafComp(tbl_InformeListadoBeneficiosGrafCompMensualTipoGasto)
|
||||
else if (FIntervalo = CTE_TRIMESTRAL) then
|
||||
PrepararTablaInformeGrafComp(tbl_InformeListadoBeneficiosGrafCompTrimestralTipoGasto)
|
||||
else
|
||||
begin
|
||||
//Preparamos la tabla correspondiente y la abrimos para el informe
|
||||
if (FIntervalo = CTE_MENSUAL) then
|
||||
PrepararTablaInformeGrafComp(tbl_InformeListadoBeneficiosGrafCompMensual)
|
||||
else if (FIntervalo = CTE_TRIMESTRAL) then
|
||||
PrepararTablaInformeGrafComp(tbl_InformeListadoBeneficiosGrafCompTrimestral)
|
||||
else
|
||||
PrepararTablaInformeGrafComp(tbl_InformeListadoBeneficiosGrafCompSemestral);
|
||||
end;
|
||||
PrepararTablaInformeGrafComp(tbl_InformeListadoBeneficiosGrafCompSemestralTipoGasto);
|
||||
|
||||
//Rellenamos los 15 parametros de tipos de gasto (1..15, en caso de estar filtrado a 0
|
||||
for i := 1 to 15 do
|
||||
RellenarParametro('T' + IntToStr(i), i, FListaIDTiposdeGasto, DASInformeListadoFacturasGrafComp);
|
||||
// DASInformeListadoFacturasGrafComp.DataTable.ParamByName('ID_TIPO_GASTO').AsInteger := FListaIDTiposdeGasto.Items[0];
|
||||
|
||||
DASInformeListadoFacturasGrafComp.DataTable.Active := True;
|
||||
Result := Binary.Create;
|
||||
@ -305,7 +297,9 @@ begin
|
||||
if Assigned(FListaIDTiposdeGasto) and (FListaIDTiposdeGasto.Count > 0) then
|
||||
begin
|
||||
ACadena.Clear;
|
||||
ACadena.Add('Solo tipo de gasto ' + FListaNombreTiposGasto.Items[0]);
|
||||
ACadena.Add('Solo tipo de gasto: ');
|
||||
for i := 0 to FListaNombreTiposGasto.Count - 1 do
|
||||
ACadena.Add(FListaNombreTiposGasto.Items[i]);
|
||||
end;
|
||||
|
||||
frxReport.Variables.Variables['TextoParametros']:= ACadena.Text;
|
||||
@ -889,6 +883,15 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TRptFacturasCliente.RellenarParametro(ANombreParametro: String; AID: Integer; AListaIDTiposGasto: TIntegerArray; ATabla: TDADataSource);
|
||||
begin
|
||||
if (AListaIDTiposGasto.Count > AID-1)
|
||||
then ATabla.DataTable.ParamByName(ANombreParametro).AsInteger := FListaIDTiposdeGasto.Items[AID-1]
|
||||
else if (AListaIDTiposGasto.Count <> 0) then
|
||||
ATabla.DataTable.ParamByName(ANombreParametro).AsInteger := 0
|
||||
else ATabla.DataTable.ParamByName(ANombreParametro).AsInteger := AID;
|
||||
end;
|
||||
|
||||
procedure TRptFacturasCliente._GenerarFactura(const ID: Integer; const VerSello: Boolean = True; const VerCopia: Boolean = True);
|
||||
var
|
||||
AInforme: Variant;
|
||||
|
||||
@ -50,7 +50,8 @@ type
|
||||
function EsEliminable(AFactura: IBizFacturaProveedor): Boolean;
|
||||
|
||||
function ElegirFacturas(AFacturas : IBizFacturaProveedor; AMensaje: String; AMultiSelect: Boolean): IBizFacturaProveedor;
|
||||
function ExtraerSeleccionados(ARecibosProveedor: IBizFacturaProveedor) : IBizFacturaProveedor;
|
||||
function ExtraerSeleccionados(ARecibosProveedor: IBizFacturaProveedor) : IBizFacturaProveedor; overload;
|
||||
function ExtraerSeleccionados(ATiposFacturasProveedor: IBizTiposFacturaProveedor) : IBizTiposFacturaProveedor; overload;
|
||||
|
||||
function DarListaAnosFacturas: TStringList;
|
||||
procedure FiltrarAno(AFactura: IBizFacturaProveedor; ADynWhereDataTable: WideString; const Ano: String);
|
||||
@ -122,7 +123,8 @@ type
|
||||
function EsEliminable(AFactura: IBizFacturaProveedor): Boolean;
|
||||
|
||||
function ElegirFacturas(AFacturas : IBizFacturaProveedor; AMensaje: String; AMultiSelect: Boolean): IBizFacturaProveedor;
|
||||
function ExtraerSeleccionados(AFacturasProveedor: IBizFacturaProveedor) : IBizFacturaProveedor;
|
||||
function ExtraerSeleccionados(AFacturasProveedor: IBizFacturaProveedor) : IBizFacturaProveedor; overload;
|
||||
function ExtraerSeleccionados(ATiposFacturasProveedor: IBizTiposFacturaProveedor) : IBizTiposFacturaProveedor; overload;
|
||||
|
||||
function DarListaAnosFacturas: TStringList;
|
||||
procedure FiltrarAno(AFactura: IBizFacturaProveedor; ADynWhereDataTable: WideString; const Ano: String);
|
||||
@ -621,6 +623,11 @@ begin
|
||||
if (AFactura.Detalles.DataTable.RecordCount = 0) then
|
||||
raise Exception.Create('La factura debe tener al menos un concepto en su contenido');
|
||||
|
||||
{ Esta validación puede saltar cuando se generan facturas automáticamente
|
||||
por albaranes o pedidos y el Proveedor no tiene Tipo de IVA puesto. }
|
||||
if (AFactura.ID_TIPO_FACTURA = 0) then
|
||||
raise Exception.Create('Debe indicar un tipo de gasto para esta factura');
|
||||
|
||||
{ Esta validación puede saltar cuando se generan facturas automáticamente
|
||||
por albaranes o pedidos y el Proveedor no tiene Tipo de IVA puesto. }
|
||||
{ if (AFactura.ID_TIPO_IVA = 0) then
|
||||
@ -919,6 +926,15 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
function TFacturasProveedorController.ExtraerSeleccionados(ATiposFacturasProveedor: IBizTiposFacturaProveedor): IBizTiposFacturaProveedor;
|
||||
var
|
||||
ASeleccionados : IBizTiposFacturaProveedor;
|
||||
begin
|
||||
ASeleccionados := (darTiposFacturaProveedor as IBizTiposFacturaProveedor);
|
||||
CopyDataTableDA5(ATiposFacturasProveedor.DataTable, ASeleccionados.DataTable, True);
|
||||
Result := ASeleccionados;
|
||||
end;
|
||||
|
||||
function TFacturasProveedorController.ExtraerSeleccionados(AFacturasProveedor: IBizFacturaProveedor): IBizFacturaProveedor;
|
||||
var
|
||||
ASeleccionados : IBizFacturaProveedor;
|
||||
|
||||
@ -48,7 +48,14 @@ type
|
||||
procedure CalcularImporteTotal;
|
||||
end;
|
||||
|
||||
TBizTiposFacturaProveedor = class(TTiposFacturaProveedorDataTableRules, IBizTiposFacturaProveedor)
|
||||
TBizTiposFacturaProveedor = class(TTiposFacturaProveedorDataTableRules, IBizTiposFacturaProveedor, ISeleccionable)
|
||||
private
|
||||
FSeleccionableInterface : ISeleccionable;
|
||||
public
|
||||
property SeleccionableInterface : ISeleccionable read FSeleccionableInterface
|
||||
write FSeleccionableInterface implements ISeleccionable;
|
||||
constructor Create(aDataTable: TDADataTable); override;
|
||||
destructor Destroy; override;
|
||||
end;
|
||||
|
||||
TBizFacturaProveedor = class(TFacturasProveedorDataTableRules, IBizFacturaProveedor, ISeleccionable)
|
||||
@ -303,6 +310,7 @@ begin
|
||||
RE := 0;
|
||||
SITUACION := CTE_PENDIENTE;
|
||||
FACTURA_WEB := 0;
|
||||
ID_TIPO_FACTURA := 15; //COMPRAS POR DEFECTO
|
||||
end;
|
||||
|
||||
procedure TBizFacturaProveedor.IVAOnChange(Sender: TDACustomField);
|
||||
@ -388,6 +396,20 @@ begin
|
||||
FProveedor := AValue;
|
||||
end;
|
||||
|
||||
{ TBizTiposFacturaProveedor }
|
||||
|
||||
constructor TBizTiposFacturaProveedor.Create(aDataTable: TDADataTable);
|
||||
begin
|
||||
inherited;
|
||||
FSeleccionableInterface := TSeleccionable.Create(aDataTable);
|
||||
end;
|
||||
|
||||
destructor TBizTiposFacturaProveedor.Destroy;
|
||||
begin
|
||||
FSeleccionableInterface := NIL;
|
||||
inherited;
|
||||
end;
|
||||
|
||||
initialization
|
||||
RegisterDataTableRules(BIZ_CLIENT_FACTURA_PROVEEDOR, TBizFacturaProveedor);
|
||||
RegisterDataTableRules(BIZ_CLIENT_TIPOS_FACTURA_PROVEEDOR, TBizTiposFacturaProveedor);
|
||||
|
||||
@ -1537,7 +1537,63 @@ object RptFacturasProveedor: TRptFacturasProveedor
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'ID_TIPO_GASTO'
|
||||
Name = 'T1'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T2'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T3'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T4'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T5'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T6'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T7'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T8'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T9'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T10'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T11'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T12'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T13'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T14'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T15'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
@ -1562,14 +1618,15 @@ object RptFacturasProveedor: TRptFacturasProveedor
|
||||
'periodos_aux'#10'left join'#10'(select comp1.ID_EMPRESA, comp1.ANO, MES ' +
|
||||
'as NFILA, SUM(comp1.BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_INF_' +
|
||||
'FAC_PROVEEDOR comp1'#10'where ID_EMPRESA = :ID_EMPRESA1'#10'and (ANO = :' +
|
||||
'ANO1)'#10'and (ID_TIPO_FACTURA = :ID_TIPO_GASTO)'#10'group by 1,2,3'#10'orde' +
|
||||
'r by 1 desc,2 asc) periodo1 on (VALOR = periodo1.NFILA)'#10#10'left jo' +
|
||||
'in'#10'(select comp2.ID_EMPRESA, comp2.ANO, MES as NFILA, SUM(comp2.' +
|
||||
'BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_PROVEEDOR comp2'#10 +
|
||||
'where ID_EMPRESA = :ID_EMPRESA2'#10'and (ANO = :ANO2)'#10'and (ID_TIPO_F' +
|
||||
'ACTURA = :ID_TIPO_GASTO)'#10'group by 1,2,3'#10'order by 1 desc,2 asc) p' +
|
||||
'eriodo2 on (VALOR = periodo2.NFILA)'#10#10'where periodo= '#39'MENSUAL'#39#10'or' +
|
||||
'der by valor asc'#10#10
|
||||
'ANO1)'#10'AND ID_TIPO_FACTURA in (:T1,:T2,:T3,:T4,:T5,:T6,:T7,:T8,:T' +
|
||||
'9,:T10,:T11,:T12,:T13,:T14,:T15)'#10'group by 1,2,3'#10'order by 1 desc,' +
|
||||
'2 asc) periodo1 on (VALOR = periodo1.NFILA)'#10#10'left join'#10'(select c' +
|
||||
'omp2.ID_EMPRESA, comp2.ANO, MES as NFILA, SUM(comp2.BASE_IMPONIB' +
|
||||
'LE) as IMPORTE_TOTAL'#10'from V_INF_FAC_PROVEEDOR comp2'#10'where ID_EMP' +
|
||||
'RESA = :ID_EMPRESA2'#10'and (ANO = :ANO2)'#10'AND ID_TIPO_FACTURA in (:T' +
|
||||
'1,:T2,:T3,:T4,:T5,:T6,:T7,:T8,:T9,:T10,:T11,:T12,:T13,:T14,:T15)' +
|
||||
#10'group by 1,2,3'#10'order by 1 desc,2 asc) periodo2 on (VALOR = peri' +
|
||||
'odo2.NFILA)'#10#10'where periodo= '#39'MENSUAL'#39#10'order by valor asc'#10#10
|
||||
StatementType = stSQL
|
||||
ColumnMappings = <
|
||||
item
|
||||
@ -1652,7 +1709,63 @@ object RptFacturasProveedor: TRptFacturasProveedor
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'ID_TIPO_GASTO'
|
||||
Name = 'T1'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T2'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T3'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T4'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T5'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T6'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T7'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T8'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T9'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T10'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T11'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T12'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T13'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T14'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T15'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
@ -1677,14 +1790,16 @@ object RptFacturasProveedor: TRptFacturasProveedor
|
||||
'periodos_aux'#10'left join'#10'(select comp1.ID_EMPRESA, comp1.ANO, SEME' +
|
||||
'STRE as NFILA, SUM(comp1.BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'from V' +
|
||||
'_INF_FAC_PROVEEDOR comp1'#10'where ID_EMPRESA = :ID_EMPRESA1'#10'and (AN' +
|
||||
'O = :ANO1)'#10'and (ID_TIPO_FACTURA = :ID_TIPO_GASTO)'#10'group by 1,2,3' +
|
||||
#10'order by 1 desc,2 asc) periodo1 on (VALOR = periodo1.NFILA)'#10#10'le' +
|
||||
'ft join'#10'(select comp2.ID_EMPRESA, comp2.ANO, SEMESTRE as NFILA, ' +
|
||||
'SUM(comp2.BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_PROVEE' +
|
||||
'DOR comp2'#10'where ID_EMPRESA = :ID_EMPRESA2'#10'and (ANO = :ANO2)'#10'and ' +
|
||||
'(ID_TIPO_FACTURA = :ID_TIPO_GASTO)'#10'group by 1,2,3'#10'order by 1 des' +
|
||||
'c,2 asc) periodo2 on (VALOR = periodo2.NFILA)'#10#10'where periodo= '#39'S' +
|
||||
'EMESTRAL'#39#10'order by valor asc'#10#10#10
|
||||
'O = :ANO1)'#10'AND ID_TIPO_FACTURA in (:T1,:T2,:T3,:T4,:T5,:T6,:T7,:' +
|
||||
'T8,:T9,:T10,:T11,:T12,:T13,:T14,:T15)'#10'group by 1,2,3'#10'order by 1 ' +
|
||||
'desc,2 asc) periodo1 on (VALOR = periodo1.NFILA)'#10#10'left join'#10'(sel' +
|
||||
'ect comp2.ID_EMPRESA, comp2.ANO, SEMESTRE as NFILA, SUM(comp2.BA' +
|
||||
'SE_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_PROVEEDOR comp2'#10'wh' +
|
||||
'ere ID_EMPRESA = :ID_EMPRESA2'#10'and (ANO = :ANO2)'#10'AND ID_TIPO_FACT' +
|
||||
'URA in (:T1,:T2,:T3,:T4,:T5,:T6,:T7,:T8,:T9,:T10,:T11,:T12,:T13,' +
|
||||
':T14,:T15)'#10'group by 1,2,3'#10'order by 1 desc,2 asc) periodo2 on (VA' +
|
||||
'LOR = periodo2.NFILA)'#10#10'where periodo= '#39'SEMESTRAL'#39#10'order by valor' +
|
||||
' asc'#10#10#10
|
||||
StatementType = stSQL
|
||||
ColumnMappings = <
|
||||
item
|
||||
@ -1767,7 +1882,63 @@ object RptFacturasProveedor: TRptFacturasProveedor
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'ID_TIPO_GASTO'
|
||||
Name = 'T1'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T2'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T3'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T4'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T5'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T6'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T7'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T8'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T9'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T10'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T11'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T12'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T13'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T14'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T15'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
@ -1792,14 +1963,16 @@ object RptFacturasProveedor: TRptFacturasProveedor
|
||||
'periodos_aux'#10'left join'#10'(select comp1.ID_EMPRESA, comp1.ANO, TRIM' +
|
||||
'ESTRE as NFILA, SUM(comp1.BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'from ' +
|
||||
'V_INF_FAC_PROVEEDOR comp1'#10'where ID_EMPRESA = :ID_EMPRESA1'#10'and (A' +
|
||||
'NO = :ANO1)'#10'and (ID_TIPO_FACTURA = :ID_TIPO_GASTO)'#10'group by 1,2,' +
|
||||
'3'#10'order by 1 desc,2 asc) periodo1 on (VALOR = periodo1.NFILA)'#10#10'l' +
|
||||
'eft join'#10'(select comp2.ID_EMPRESA, comp2.ANO, TRIMESTRE as NFILA' +
|
||||
', SUM(comp2.BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_PROV' +
|
||||
'EEDOR comp2'#10'where ID_EMPRESA = :ID_EMPRESA2'#10'and (ANO = :ANO2)'#10'an' +
|
||||
'd (ID_TIPO_FACTURA = :ID_TIPO_GASTO)'#10'group by 1,2,3'#10'order by 1 d' +
|
||||
'esc,2 asc) periodo2 on (VALOR = periodo2.NFILA)'#10#10'where periodo= ' +
|
||||
#39'TRIMESTRAL'#39#10'order by valor asc'#10#10#10
|
||||
'NO = :ANO1)'#10'AND ID_TIPO_FACTURA in (:T1,:T2,:T3,:T4,:T5,:T6,:T7,' +
|
||||
':T8,:T9,:T10,:T11,:T12,:T13,:T14,:T15)'#10'group by 1,2,3'#10'order by 1' +
|
||||
' desc,2 asc) periodo1 on (VALOR = periodo1.NFILA)'#10#10'left join'#10'(se' +
|
||||
'lect comp2.ID_EMPRESA, comp2.ANO, TRIMESTRE as NFILA, SUM(comp2.' +
|
||||
'BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_PROVEEDOR comp2'#10 +
|
||||
'where ID_EMPRESA = :ID_EMPRESA2'#10'and (ANO = :ANO2)'#10'AND ID_TIPO_FA' +
|
||||
'CTURA in (:T1,:T2,:T3,:T4,:T5,:T6,:T7,:T8,:T9,:T10,:T11,:T12,:T1' +
|
||||
'3,:T14,:T15)'#10'group by 1,2,3'#10'order by 1 desc,2 asc) periodo2 on (' +
|
||||
'VALOR = periodo2.NFILA)'#10#10'where periodo= '#39'TRIMESTRAL'#39#10'order by va' +
|
||||
'lor asc'#10#10#10
|
||||
StatementType = stSQL
|
||||
ColumnMappings = <
|
||||
item
|
||||
@ -1882,7 +2055,63 @@ object RptFacturasProveedor: TRptFacturasProveedor
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'ID_TIPO_GASTO'
|
||||
Name = 'T1'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T2'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T3'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T4'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T5'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T6'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T7'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T8'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T9'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T10'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T11'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T12'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T13'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T14'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T15'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
@ -1900,8 +2129,9 @@ object RptFacturasProveedor: TRptFacturasProveedor
|
||||
' 0 then 0'#10'else ((SUM(P.IMPORTE_DESCUENTO) * 100) / SUM(P.IMPORTE' +
|
||||
'_TOTAL)) end as PORCENTAJE'#10#10'from V_INF_FAC_PROVEEDOR P'#10'left join' +
|
||||
' CONTACTOS C on P.ID_PROVEEDOR = C.ID'#10#10'where p.ID_EMPRESA = :ID_' +
|
||||
'EMPRESA'#10'and P.ANO = :ANO'#10'and ID_TIPO_FACTURA = :ID_TIPO_GASTO'#10'gr' +
|
||||
'oup by 1,2,3'#10'order by 1,5 desc'#10'rows 1 to :NTOP'#10#10#10
|
||||
'EMPRESA'#10'and P.ANO = :ANO'#10'AND ID_TIPO_FACTURA in (:T1,:T2,:T3,:T4' +
|
||||
',:T5,:T6,:T7,:T8,:T9,:T10,:T11,:T12,:T13,:T14,:T15)'#10'group by 1,2' +
|
||||
',3'#10'order by 1,5 desc'#10'rows 1 to :NTOP'#10#10#10
|
||||
StatementType = stSQL
|
||||
ColumnMappings = <
|
||||
item
|
||||
@ -1980,7 +2210,63 @@ object RptFacturasProveedor: TRptFacturasProveedor
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'ID_TIPO_GASTO'
|
||||
Name = 'T1'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T2'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T3'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T4'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T5'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T6'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T7'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T8'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T9'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T10'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T11'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T12'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T13'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T14'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T15'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
@ -1997,8 +2283,9 @@ object RptFacturasProveedor: TRptFacturasProveedor
|
||||
'= 0 then 0'#10'else ((SUM(P.IMPORTE_TOTAL)*100)/p.Importe_TOTAL_ANO)' +
|
||||
#10'end as PORCENTAJE'#10#10'from V_INF_FAC_PROVEEDOR P'#10'left join CONTACT' +
|
||||
'OS C on P.ID_PROVEEDOR = C.ID'#10#10'where p.ID_EMPRESA = :ID_EMPRESA'#10 +
|
||||
'and P.ANO = :ANO'#10'and P.ID_TIPO_FACTURA = :ID_TIPO_GASTO'#10'group by' +
|
||||
' 1,2,3,4'#10'order by 1,6 desc'#10'rows 1 to :NTOP'#10#10#10
|
||||
'and P.ANO = :ANO'#10'AND ID_TIPO_FACTURA in (:T1,:T2,:T3,:T4,:T5,:T6' +
|
||||
',:T7,:T8,:T9,:T10,:T11,:T12,:T13,:T14,:T15)'#10'group by 1,2,3,4'#10'ord' +
|
||||
'er by 1,6 desc'#10'rows 1 to :NTOP'#10#10#10
|
||||
StatementType = stSQL
|
||||
ColumnMappings = <
|
||||
item
|
||||
@ -3023,7 +3310,63 @@ object RptFacturasProveedor: TRptFacturasProveedor
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'ID_TIPO_GASTO'
|
||||
Name = 'T1'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T2'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T3'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T4'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T5'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T6'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T7'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T8'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T9'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T10'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T11'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T12'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T13'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T14'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T15'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
@ -3090,7 +3433,63 @@ object RptFacturasProveedor: TRptFacturasProveedor
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'ID_TIPO_GASTO'
|
||||
Name = 'T1'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T2'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T3'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T4'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T5'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T6'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T7'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T8'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T9'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T10'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T11'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T12'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T13'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T14'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T15'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
@ -3108,7 +3507,7 @@ object RptFacturasProveedor: TRptFacturasProveedor
|
||||
LocalDataStreamer = Bin2DataStreamer
|
||||
LogicalName = 'InformeListadoFacturasGrafCompTrimestralTipoGasto'
|
||||
IndexDefs = <>
|
||||
Left = 304
|
||||
Left = 296
|
||||
Top = 448
|
||||
end
|
||||
object tbl_InformeListadoFacturasGrafCompSemestralTipoGasto: TDAMemDataTable
|
||||
@ -3157,7 +3556,63 @@ object RptFacturasProveedor: TRptFacturasProveedor
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'ID_TIPO_GASTO'
|
||||
Name = 'T1'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T2'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T3'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T4'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T5'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T6'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T7'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T8'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T9'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T10'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T11'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T12'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T13'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T14'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T15'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
@ -3221,7 +3676,63 @@ object RptFacturasProveedor: TRptFacturasProveedor
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'ID_TIPO_GASTO'
|
||||
Name = 'T1'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T2'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T3'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T4'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T5'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T6'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T7'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T8'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T9'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T10'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T11'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T12'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T13'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T14'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T15'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
@ -3281,7 +3792,63 @@ object RptFacturasProveedor: TRptFacturasProveedor
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'ID_TIPO_GASTO'
|
||||
Name = 'T1'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T2'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T3'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T4'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T5'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T6'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T7'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T8'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T9'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T10'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T11'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T12'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T13'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T14'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
Name = 'T15'
|
||||
Value = ''
|
||||
end
|
||||
item
|
||||
|
||||
@ -81,6 +81,7 @@ type
|
||||
procedure PrepararTablaResumenInforme(ATabla: IDADataset);
|
||||
procedure PrepararTablaInformeGrafComp(ATabla: TDAMemDataTable);
|
||||
procedure PrepararTablaResumenInformeGrafComp(ATabla: TDAMemDataTable);
|
||||
procedure RellenarParametro(ANombreParametro: String; AID: Integer; AListaIDTiposGasto: TIntegerArray; ATabla: TDADataSource);
|
||||
procedure IniciarParametrosInforme;
|
||||
function _GenerarInforme(const TipoInforme: String): Binary;
|
||||
public
|
||||
@ -142,6 +143,7 @@ var
|
||||
AStream: TMemoryStream;
|
||||
AInforme: Variant;
|
||||
ACadena: TStringList;
|
||||
i: Integer;
|
||||
|
||||
begin
|
||||
FConnection.BeginTransaction; //<--- Creo que no va a hacer falta. "PUES SI ES NECESARIO"
|
||||
@ -167,17 +169,13 @@ begin
|
||||
FreeAndNil(FListaNombreTiposGasto);
|
||||
FListaNombreTiposGasto := ListaNombreTiposGasto;
|
||||
|
||||
//Cargamos las tablas con parametro ID_TIPO_GASTO
|
||||
if (FListaIDTiposdeGasto.Count = 1) then
|
||||
begin
|
||||
//Preparamos la tabla correspondiente y la abrimos para el informe
|
||||
if (FIntervalo = CTE_MENSUAL) then
|
||||
PrepararTablaInformeGrafComp(InformeListadoFacturasGrafCompMensualTipoGasto)
|
||||
else if (FIntervalo = CTE_TRIMESTRAL) then
|
||||
PrepararTablaInformeGrafComp(tbl_InformeListadoFacturasGrafCompTrimestralTipoGasto)
|
||||
else
|
||||
PrepararTablaInformeGrafComp(tbl_InformeListadoFacturasGrafCompSemestralTipoGasto);
|
||||
|
||||
//Preparamos la tabla correspondiente y la abrimos para el informe
|
||||
if (FIntervalo = CTE_MENSUAL) then
|
||||
PrepararTablaInformeGrafComp(InformeListadoFacturasGrafCompMensualTipoGasto)
|
||||
else if (FIntervalo = CTE_TRIMESTRAL) then
|
||||
PrepararTablaInformeGrafComp(tbl_InformeListadoFacturasGrafCompTrimestralTipoGasto)
|
||||
else
|
||||
PrepararTablaInformeGrafComp(tbl_InformeListadoFacturasGrafCompSemestralTipoGasto);
|
||||
|
||||
//Se preparan las tablas del listado resumen del informe
|
||||
PrepararTablaResumenInformeGrafComp(tbl_InformeListadoProveedoresMayorFacturacionResumenTipoGasto);
|
||||
@ -185,27 +183,9 @@ begin
|
||||
DADSInformeListadoProveedoresMayorFacturacionResumen.DataTable := tbl_InformeListadoProveedoresMayorFacturacionResumenTipoGasto;
|
||||
DADSInformeListadoProveedoresMayorDescuentoResumen.DataTable := tbl_InformeListadoProveedoresMayorDescuentoResumenTipoGasto;
|
||||
|
||||
DASInformeListadoFacturasGrafComp.DataTable.ParamByName('ID_TIPO_GASTO').AsInteger := FListaIDTiposdeGasto.Items[0];
|
||||
DADSInformeListadoProveedoresMayorFacturacionResumen.DataTable.ParamByName('ID_TIPO_GASTO').AsInteger := FListaIDTiposdeGasto.Items[0];
|
||||
DADSInformeListadoProveedoresMayorDescuentoResumen.DataTable.ParamByName('ID_TIPO_GASTO').AsInteger := FListaIDTiposdeGasto.Items[0];
|
||||
end
|
||||
//El el caso de todas las facturas llamaremos a las tablas sin filtro
|
||||
else
|
||||
begin
|
||||
//Preparamos la tabla correspondiente y la abrimos para el informe
|
||||
if (FIntervalo = CTE_MENSUAL) then
|
||||
PrepararTablaInformeGrafComp(tbl_InformeListadoFacturasGrafCompMensual)
|
||||
else if (FIntervalo = CTE_TRIMESTRAL) then
|
||||
PrepararTablaInformeGrafComp(tbl_InformeListadoFacturasGrafCompTrimestral)
|
||||
else
|
||||
PrepararTablaInformeGrafComp(tbl_InformeListadoFacturasGrafCompSemestral);
|
||||
|
||||
//Se preparan las tablas del listado resumen del informe
|
||||
PrepararTablaResumenInformeGrafComp(tbl_InformeListadoProveedoresMayorFacturacionResumen);
|
||||
PrepararTablaResumenInformeGrafComp(tbl_InformeListadoProveedoresMayorDescuentoResumen);
|
||||
DADSInformeListadoProveedoresMayorFacturacionResumen.DataTable := tbl_InformeListadoProveedoresMayorFacturacionResumen;
|
||||
DADSInformeListadoProveedoresMayorDescuentoResumen.DataTable := tbl_InformeListadoProveedoresMayorDescuentoResumen;
|
||||
end;
|
||||
//Rellenamos los 15 parametros de tipos de gasto (1..15, en caso de estar filtrado a 0
|
||||
for i := 1 to 15 do
|
||||
RellenarParametro('T' + IntToStr(i), i, FListaIDTiposdeGasto, DASInformeListadoFacturasGrafComp);
|
||||
|
||||
DASInformeListadoFacturasGrafComp.DataTable.Active := True;
|
||||
DADSInformeListadoProveedoresMayorFacturacionResumen.DataTable.Active := True;
|
||||
@ -224,8 +204,10 @@ begin
|
||||
ACadena.Add('Todos los tipos de gasto');
|
||||
if Assigned(FListaIDTiposdeGasto) and (FListaIDTiposdeGasto.Count > 0) then
|
||||
begin
|
||||
ACadena.Clear;
|
||||
ACadena.Add('Solo tipo de gasto ' + FListaNombreTiposGasto.Items[0]);
|
||||
ACadena.Clear;
|
||||
ACadena.Add('Solo tipo de gasto: ');
|
||||
for i := 0 to FListaNombreTiposGasto.Count - 1 do
|
||||
ACadena.Add(FListaNombreTiposGasto.Items[i]);
|
||||
end;
|
||||
|
||||
frxReport.Variables.Variables['TextoParametros']:= ACadena.Text;
|
||||
@ -478,6 +460,7 @@ procedure TRptFacturasProveedor.IniciarParametrosInforme;
|
||||
var
|
||||
ATextos : TStringList;
|
||||
ACadena : String;
|
||||
i: Integer;
|
||||
begin
|
||||
ATextos := TStringList.Create;
|
||||
|
||||
@ -515,9 +498,11 @@ begin
|
||||
ACadena := ACadena + ' (desglosados)'
|
||||
end;
|
||||
|
||||
if Assigned(FListaIDTiposdeGasto) and (FListaIDTiposdeGasto.Count > 0) then
|
||||
if Assigned(FListaIDTiposdeGasto) and (FListaNombreTiposGasto.Count > 0) then
|
||||
begin
|
||||
ACadena := 'Solo tipo de gasto ' + FListaNombreTiposGasto.Items[0];
|
||||
ACadena := 'Solo tipo de gasto: ';
|
||||
for i := 0 to FListaNombreTiposGasto.Count - 1 do
|
||||
ACadena := ACadena + FListaNombreTiposGasto.Items[i] + #13;
|
||||
end
|
||||
else begin
|
||||
ACadena := 'Todos los tipos de gasto';
|
||||
@ -600,20 +585,25 @@ begin
|
||||
end;
|
||||
|
||||
// Filtrar el informe por tipo de gasto
|
||||
if Assigned(FListaIDTiposdeGasto) then
|
||||
if Assigned(FListaIDTiposdeGasto)
|
||||
and (FListaIDTiposdeGasto.Count > 0) then
|
||||
begin
|
||||
with ATabla.DynamicWhere do
|
||||
begin
|
||||
Condicion := Nil;
|
||||
for i := 0 to FListaIDTiposdeGasto.Count - 1 do
|
||||
begin
|
||||
|
||||
// (ID_PROVEEDOR = ID)
|
||||
Condicion := NewBinaryExpression(NewField('', fld_FacturasProveedorID_TIPO_FACTURA), NewConstant(FListaIDTiposdeGasto.Items[i], datInteger), dboEqual);
|
||||
if IsEmpty then
|
||||
Expression := Condicion
|
||||
if (Condicion = Nil) then
|
||||
// (ID_TIPO_FACTURA = ID)
|
||||
Condicion := NewBinaryExpression(NewField('', fld_FacturasProveedorID_TIPO_FACTURA), NewConstant(FListaIDTiposdeGasto.Items[i], datInteger), dboEqual)
|
||||
else
|
||||
Expression := NewBinaryExpression(Expression, Condicion, dboAnd);
|
||||
end;
|
||||
Condicion := NewBinaryExpression(NewBinaryExpression(NewField('', fld_FacturasProveedorID_TIPO_FACTURA), NewConstant(FListaIDTiposdeGasto.Items[i], datInteger), dboEqual), Condicion, dboOr);
|
||||
end;
|
||||
|
||||
if IsEmpty then
|
||||
Expression := Condicion
|
||||
else
|
||||
Expression := NewBinaryExpression(Expression, Condicion, dboAnd);
|
||||
end;
|
||||
end;
|
||||
|
||||
@ -810,6 +800,15 @@ begin
|
||||
end;
|
||||
|
||||
|
||||
procedure TRptFacturasProveedor.RellenarParametro(ANombreParametro: String; AID: Integer; AListaIDTiposGasto: TIntegerArray; ATabla: TDADataSource);
|
||||
begin
|
||||
if (AListaIDTiposGasto.Count > AID-1)
|
||||
then ATabla.DataTable.ParamByName(ANombreParametro).AsInteger := FListaIDTiposdeGasto.Items[AID-1]
|
||||
else if (AListaIDTiposGasto.Count <> 0) then
|
||||
ATabla.DataTable.ParamByName(ANombreParametro).AsInteger := 0
|
||||
else ATabla.DataTable.ParamByName(ANombreParametro).AsInteger := AID;
|
||||
end;
|
||||
|
||||
function TRptFacturasProveedor._GenerarInforme(const TipoInforme: String): Binary;
|
||||
var
|
||||
AInforme: Variant;
|
||||
|
||||
@ -3,7 +3,7 @@ object fEditorElegirTipoGasto: TfEditorElegirTipoGasto
|
||||
Top = 0
|
||||
BorderStyle = bsDialog
|
||||
Caption = 'Tipo de gasto'
|
||||
ClientHeight = 124
|
||||
ClientHeight = 138
|
||||
ClientWidth = 500
|
||||
Color = clWindow
|
||||
Font.Charset = DEFAULT_CHARSET
|
||||
@ -34,11 +34,12 @@ object fEditorElegirTipoGasto: TfEditorElegirTipoGasto
|
||||
end
|
||||
object Panel1: TPanel
|
||||
Left = 0
|
||||
Top = 83
|
||||
Top = 97
|
||||
Width = 500
|
||||
Height = 41
|
||||
Align = alBottom
|
||||
TabOrder = 0
|
||||
ExplicitTop = 381
|
||||
DesignSize = (
|
||||
500
|
||||
41)
|
||||
|
||||
@ -7,7 +7,10 @@ uses
|
||||
Dialogs, StdCtrls, cxControls, cxContainer, cxEdit, cxTextEdit, cxMaskEdit,
|
||||
cxDropDownEdit, cxCalendar, ExtCtrls, uEditorBasico, uIEditorElegirTipoGasto,
|
||||
cxGraphics, DB, uDAInterfaces, uDADataTable, cxDBEdit, uFacturasProveedorController,
|
||||
cxLookupEdit, cxDBLookupEdit, cxDBLookupComboBox, uBizFacturasProveedor;
|
||||
cxLookupEdit, cxDBLookupEdit, cxDBLookupComboBox, uBizFacturasProveedor,
|
||||
cxStyles, cxCustomData, cxFilter, cxData, cxDataStorage, cxDBData,
|
||||
cxGridCustomTableView, cxGridTableView, cxGridDBTableView, cxGridLevel,
|
||||
cxClasses, cxGridCustomView, cxGrid;
|
||||
|
||||
type
|
||||
TfEditorElegirTipoGasto = class(TfEditorBasico, IEditorElegirTipoGasto)
|
||||
|
||||
@ -9,6 +9,7 @@
|
||||
<Projects Include="..\..\Cliente\FactuGES.dproj" />
|
||||
<Projects Include="..\..\GUIBase\GUIBase.dproj" />
|
||||
<Projects Include="..\..\Servidor\FactuGES_Server.dproj" />
|
||||
<Projects Include="..\Albaranes de proveedor\Views\AlbaranesProveedor_view.dproj" />
|
||||
<Projects Include="..\Contactos\Model\Contactos_model.dproj" />
|
||||
<Projects Include="..\Facturas de proveedor\Controller\FacturasProveedor_controller.dproj" />
|
||||
<Projects Include="..\Facturas de proveedor\Data\FacturasProveedor_data.dproj" />
|
||||
@ -161,14 +162,23 @@
|
||||
<Target Name="FacturasProveedor_model:Make">
|
||||
<MSBuild Projects="..\Facturas de proveedor\Model\FacturasProveedor_model.dproj" Targets="Make" />
|
||||
</Target>
|
||||
<Target Name="AlbaranesProveedor_view">
|
||||
<MSBuild Projects="..\Albaranes de proveedor\Views\AlbaranesProveedor_view.dproj" Targets="" />
|
||||
</Target>
|
||||
<Target Name="AlbaranesProveedor_view:Clean">
|
||||
<MSBuild Projects="..\Albaranes de proveedor\Views\AlbaranesProveedor_view.dproj" Targets="Clean" />
|
||||
</Target>
|
||||
<Target Name="AlbaranesProveedor_view:Make">
|
||||
<MSBuild Projects="..\Albaranes de proveedor\Views\AlbaranesProveedor_view.dproj" Targets="Make" />
|
||||
</Target>
|
||||
<Target Name="Build">
|
||||
<CallTarget Targets="Base;GUIBase;ApplicationBase;Contactos_model;GestorInformes_model;GestorInformes_data;GestorInformes_controller;GestorInformes_view;GestorInformes_plugin;FactuGES;FactuGES_Server;FacturasProveedor_view;FacturasProveedor_controller;FacturasProveedor_data;FacturasProveedor_model" />
|
||||
<CallTarget Targets="Base;GUIBase;ApplicationBase;Contactos_model;GestorInformes_model;GestorInformes_data;GestorInformes_controller;GestorInformes_view;GestorInformes_plugin;FactuGES;FactuGES_Server;FacturasProveedor_view;FacturasProveedor_controller;FacturasProveedor_data;FacturasProveedor_model;AlbaranesProveedor_view" />
|
||||
</Target>
|
||||
<Target Name="Clean">
|
||||
<CallTarget Targets="Base:Clean;GUIBase:Clean;ApplicationBase:Clean;Contactos_model:Clean;GestorInformes_model:Clean;GestorInformes_data:Clean;GestorInformes_controller:Clean;GestorInformes_view:Clean;GestorInformes_plugin:Clean;FactuGES:Clean;FactuGES_Server:Clean;FacturasProveedor_view:Clean;FacturasProveedor_controller:Clean;FacturasProveedor_data:Clean;FacturasProveedor_model:Clean" />
|
||||
<CallTarget Targets="Base:Clean;GUIBase:Clean;ApplicationBase:Clean;Contactos_model:Clean;GestorInformes_model:Clean;GestorInformes_data:Clean;GestorInformes_controller:Clean;GestorInformes_view:Clean;GestorInformes_plugin:Clean;FactuGES:Clean;FactuGES_Server:Clean;FacturasProveedor_view:Clean;FacturasProveedor_controller:Clean;FacturasProveedor_data:Clean;FacturasProveedor_model:Clean;AlbaranesProveedor_view:Clean" />
|
||||
</Target>
|
||||
<Target Name="Make">
|
||||
<CallTarget Targets="Base:Make;GUIBase:Make;ApplicationBase:Make;Contactos_model:Make;GestorInformes_model:Make;GestorInformes_data:Make;GestorInformes_controller:Make;GestorInformes_view:Make;GestorInformes_plugin:Make;FactuGES:Make;FactuGES_Server:Make;FacturasProveedor_view:Make;FacturasProveedor_controller:Make;FacturasProveedor_data:Make;FacturasProveedor_model:Make" />
|
||||
<CallTarget Targets="Base:Make;GUIBase:Make;ApplicationBase:Make;Contactos_model:Make;GestorInformes_model:Make;GestorInformes_data:Make;GestorInformes_controller:Make;GestorInformes_view:Make;GestorInformes_plugin:Make;FactuGES:Make;FactuGES_Server:Make;FacturasProveedor_view:Make;FacturasProveedor_controller:Make;FacturasProveedor_data:Make;FacturasProveedor_model:Make;AlbaranesProveedor_view:Make" />
|
||||
</Target>
|
||||
<Import Condition="Exists('$(MSBuildBinPath)\Borland.Group.Targets')" Project="$(MSBuildBinPath)\Borland.Group.Targets" />
|
||||
</Project>
|
||||
@ -38,48 +38,54 @@
|
||||
<DelphiCompile Include="GestorInformes_view.dpk">
|
||||
<MainSource>MainSource</MainSource>
|
||||
</DelphiCompile>
|
||||
<DCCReference Include="adortl.dcp" />
|
||||
<DCCReference Include="ApplicationBase.dcp" />
|
||||
<DCCReference Include="Base.dcp" />
|
||||
<DCCReference Include="bdertl.dcp" />
|
||||
<DCCReference Include="ccpackD11.dcp" />
|
||||
<DCCReference Include="cfpack_d11.dcp" />
|
||||
<DCCReference Include="Contactos_controller.dcp" />
|
||||
<DCCReference Include="Contactos_model.dcp" />
|
||||
<DCCReference Include="Contactos_view.dcp" />
|
||||
<DCCReference Include="cxDataD11.dcp" />
|
||||
<DCCReference Include="cxEditorsD11.dcp" />
|
||||
<DCCReference Include="cxLibraryD11.dcp" />
|
||||
<DCCReference Include="DataAbstract_Core_D11.dcp" />
|
||||
<DCCReference Include="dbrtl.dcp" />
|
||||
<DCCReference Include="designide.dcp" />
|
||||
<DCCReference Include="dsnap.dcp" />
|
||||
<DCCReference Include="dxComnD11.dcp" />
|
||||
<DCCReference Include="dxCoreD11.dcp" />
|
||||
<DCCReference Include="dxGDIPlusD11.dcp" />
|
||||
<DCCReference Include="dxLayoutControlD11.dcp" />
|
||||
<DCCReference Include="dxThemeD11.dcp" />
|
||||
<DCCReference Include="FacturasProveedor_controller.dcp" />
|
||||
<DCCReference Include="FacturasProveedor_model.dcp" />
|
||||
<DCCReference Include="fqb110.dcp" />
|
||||
<DCCReference Include="frx11.dcp" />
|
||||
<DCCReference Include="frxe11.dcp" />
|
||||
<DCCReference Include="fs11.dcp" />
|
||||
<DCCReference Include="GestorInformes_controller.dcp" />
|
||||
<DCCReference Include="GUIBase.dcp" />
|
||||
<DCCReference Include="GUISDK_D11R.dcp" />
|
||||
<DCCReference Include="Jcl.dcp" />
|
||||
<DCCReference Include="JclVcl.dcp" />
|
||||
<DCCReference Include="JvCoreD11R.dcp" />
|
||||
<DCCReference Include="JvPageCompsD11R.dcp" />
|
||||
<DCCReference Include="JvStdCtrlsD11R.dcp" />
|
||||
<DCCReference Include="JvSystemD11R.dcp" />
|
||||
<DCCReference Include="PngComponentsD10.dcp" />
|
||||
<DCCReference Include="PNG_D10.dcp" />
|
||||
<DCCReference Include="RemObjects_Core_D11.dcp" />
|
||||
<DCCReference Include="rtl.dcp" />
|
||||
<DCCReference Include="tb2k_d10.dcp" />
|
||||
<DCCReference Include="tbx_d10.dcp" />
|
||||
<DCCReference Include="..\adortl.dcp" />
|
||||
<DCCReference Include="..\ApplicationBase.dcp" />
|
||||
<DCCReference Include="..\Base.dcp" />
|
||||
<DCCReference Include="..\bdertl.dcp" />
|
||||
<DCCReference Include="..\ccpackD11.dcp" />
|
||||
<DCCReference Include="..\cfpack_d11.dcp" />
|
||||
<DCCReference Include="..\Contactos_controller.dcp" />
|
||||
<DCCReference Include="..\Contactos_model.dcp" />
|
||||
<DCCReference Include="..\Contactos_view.dcp" />
|
||||
<DCCReference Include="..\cxDataD11.dcp" />
|
||||
<DCCReference Include="..\cxEditorsD11.dcp" />
|
||||
<DCCReference Include="..\cxLibraryD11.dcp" />
|
||||
<DCCReference Include="..\DataAbstract_Core_D11.dcp" />
|
||||
<DCCReference Include="..\dbrtl.dcp" />
|
||||
<DCCReference Include="..\designide.dcp" />
|
||||
<DCCReference Include="..\dsnap.dcp" />
|
||||
<DCCReference Include="..\dxComnD11.dcp" />
|
||||
<DCCReference Include="..\dxCoreD11.dcp" />
|
||||
<DCCReference Include="..\dxGDIPlusD11.dcp" />
|
||||
<DCCReference Include="..\dxLayoutControlD11.dcp" />
|
||||
<DCCReference Include="..\dxThemeD11.dcp" />
|
||||
<DCCReference Include="..\FacturasProveedor_controller.dcp" />
|
||||
<DCCReference Include="..\FacturasProveedor_model.dcp" />
|
||||
<DCCReference Include="..\fqb110.dcp" />
|
||||
<DCCReference Include="..\frx11.dcp" />
|
||||
<DCCReference Include="..\frxe11.dcp" />
|
||||
<DCCReference Include="..\fs11.dcp" />
|
||||
<DCCReference Include="..\GestorInformes_controller.dcp" />
|
||||
<DCCReference Include="..\GUIBase.dcp" />
|
||||
<DCCReference Include="..\GUISDK_D11R.dcp" />
|
||||
<DCCReference Include="..\Jcl.dcp" />
|
||||
<DCCReference Include="..\JclVcl.dcp" />
|
||||
<DCCReference Include="..\JvCoreD11R.dcp" />
|
||||
<DCCReference Include="..\JvPageCompsD11R.dcp" />
|
||||
<DCCReference Include="..\JvStdCtrlsD11R.dcp" />
|
||||
<DCCReference Include="..\JvSystemD11R.dcp" />
|
||||
<DCCReference Include="..\PngComponentsD10.dcp" />
|
||||
<DCCReference Include="..\PNG_D10.dcp" />
|
||||
<DCCReference Include="..\RemObjects_Core_D11.dcp" />
|
||||
<DCCReference Include="..\rtl.dcp" />
|
||||
<DCCReference Include="..\tb2k_d10.dcp" />
|
||||
<DCCReference Include="..\tbx_d10.dcp" />
|
||||
<DCCReference Include="..\vcl.dcp" />
|
||||
<DCCReference Include="..\vclactnband.dcp" />
|
||||
<DCCReference Include="..\vcldb.dcp" />
|
||||
<DCCReference Include="..\vcljpg.dcp" />
|
||||
<DCCReference Include="..\vclx.dcp" />
|
||||
<DCCReference Include="..\xmlrtl.dcp" />
|
||||
<DCCReference Include="uEditorInformeBase.pas">
|
||||
<Form>fEditorInformeBase</Form>
|
||||
<DesignClass>TForm</DesignClass>
|
||||
@ -181,12 +187,6 @@
|
||||
<Form>frViewPeriodoFechas</Form>
|
||||
<DesignClass>TFrame</DesignClass>
|
||||
</DCCReference>
|
||||
<DCCReference Include="vcl.dcp" />
|
||||
<DCCReference Include="vclactnband.dcp" />
|
||||
<DCCReference Include="vcldb.dcp" />
|
||||
<DCCReference Include="vcljpg.dcp" />
|
||||
<DCCReference Include="vclx.dcp" />
|
||||
<DCCReference Include="xmlrtl.dcp" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
<!-- EurekaLog First Line
|
||||
|
||||
@ -40,25 +40,25 @@ inherited fEditorInformeBeneficiosReportGrafComp: TfEditorInformeBeneficiosRepor
|
||||
ExplicitHeight = 534
|
||||
end
|
||||
inherited TBXMultiDockDerecho: TTBXMultiDock
|
||||
Left = 703
|
||||
Width = 192
|
||||
Left = 675
|
||||
Width = 220
|
||||
Height = 534
|
||||
ExplicitLeft = 703
|
||||
ExplicitWidth = 192
|
||||
ExplicitLeft = 675
|
||||
ExplicitWidth = 220
|
||||
ExplicitHeight = 534
|
||||
inherited pnlParametros: TTBXDockablePanel
|
||||
DockedWidth = 188
|
||||
ExplicitWidth = 192
|
||||
DockedWidth = 216
|
||||
ExplicitWidth = 220
|
||||
ExplicitHeight = 518
|
||||
inherited TBXDockablePanel1: TTBXDockablePanel
|
||||
Top = 368
|
||||
Top = 446
|
||||
ExplicitTop = 368
|
||||
ExplicitWidth = 188
|
||||
inherited TBXButton1: TTBXButton
|
||||
AlignWithMargins = True
|
||||
Left = 3
|
||||
Top = 3
|
||||
Width = 182
|
||||
Width = 210
|
||||
Height = 37
|
||||
Margins.Left = 8
|
||||
Margins.Top = 8
|
||||
@ -74,7 +74,7 @@ inherited fEditorInformeBeneficiosReportGrafComp: TfEditorInformeBeneficiosRepor
|
||||
inline frViewIntervaloComparativo1: TfrViewIntervaloComparativo
|
||||
Left = 0
|
||||
Top = 0
|
||||
Width = 188
|
||||
Width = 216
|
||||
Height = 230
|
||||
Align = alTop
|
||||
Font.Charset = DEFAULT_CHARSET
|
||||
@ -88,13 +88,13 @@ inherited fEditorInformeBeneficiosReportGrafComp: TfEditorInformeBeneficiosRepor
|
||||
ExplicitWidth = 188
|
||||
ExplicitHeight = 230
|
||||
inherited TBXAlignmentPanel2: TTBXAlignmentPanel
|
||||
Width = 182
|
||||
Width = 210
|
||||
ExplicitWidth = 182
|
||||
DesignSize = (
|
||||
182
|
||||
210
|
||||
42)
|
||||
inherited Label3: TLabel
|
||||
Width = 172
|
||||
Width = 200
|
||||
end
|
||||
inherited cbIntervalo: TcxComboBox
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
@ -102,21 +102,21 @@ inherited fEditorInformeBeneficiosReportGrafComp: TfEditorInformeBeneficiosRepor
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitWidth = 166
|
||||
Width = 166
|
||||
Width = 194
|
||||
end
|
||||
end
|
||||
inherited TBXLabel2: TTBXLabel
|
||||
Width = 188
|
||||
Width = 216
|
||||
ExplicitWidth = 188
|
||||
end
|
||||
inherited TBXAlignmentPanel3: TTBXAlignmentPanel
|
||||
Width = 182
|
||||
Width = 210
|
||||
ExplicitWidth = 182
|
||||
DesignSize = (
|
||||
182
|
||||
210
|
||||
42)
|
||||
inherited lis: TLabel
|
||||
Width = 172
|
||||
Width = 200
|
||||
end
|
||||
inherited cbAno1: TcxComboBox
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
@ -124,17 +124,17 @@ inherited fEditorInformeBeneficiosReportGrafComp: TfEditorInformeBeneficiosRepor
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitWidth = 166
|
||||
Width = 166
|
||||
Width = 194
|
||||
end
|
||||
end
|
||||
inherited TBXAlignmentPanel1: TTBXAlignmentPanel
|
||||
Width = 182
|
||||
Width = 210
|
||||
ExplicitWidth = 182
|
||||
DesignSize = (
|
||||
182
|
||||
210
|
||||
42)
|
||||
inherited Label1: TLabel
|
||||
Width = 172
|
||||
Width = 200
|
||||
end
|
||||
inherited cbAno2: TcxComboBox
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
@ -142,22 +142,22 @@ inherited fEditorInformeBeneficiosReportGrafComp: TfEditorInformeBeneficiosRepor
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitWidth = 166
|
||||
Width = 166
|
||||
Width = 194
|
||||
end
|
||||
end
|
||||
inherited TBXAlignmentPanel4: TTBXAlignmentPanel
|
||||
Width = 182
|
||||
Width = 210
|
||||
Visible = False
|
||||
ExplicitWidth = 182
|
||||
inherited Label2: TLabel
|
||||
Width = 172
|
||||
Width = 200
|
||||
end
|
||||
end
|
||||
inherited TBXAlignmentPanel5: TTBXAlignmentPanel
|
||||
Width = 182
|
||||
Width = 210
|
||||
ExplicitWidth = 182
|
||||
inherited Label4: TLabel
|
||||
Width = 172
|
||||
Width = 200
|
||||
end
|
||||
inherited cbSerie: TcxComboBox
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
@ -165,14 +165,14 @@ inherited fEditorInformeBeneficiosReportGrafComp: TfEditorInformeBeneficiosRepor
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitWidth = 166
|
||||
Width = 166
|
||||
Width = 194
|
||||
end
|
||||
end
|
||||
end
|
||||
inline frViewFiltroClientes1: TfrViewFiltroClientes
|
||||
Left = 0
|
||||
Top = 356
|
||||
Width = 188
|
||||
Top = 460
|
||||
Width = 216
|
||||
Height = 195
|
||||
Align = alTop
|
||||
Font.Charset = DEFAULT_CHARSET
|
||||
@ -187,11 +187,11 @@ inherited fEditorInformeBeneficiosReportGrafComp: TfEditorInformeBeneficiosRepor
|
||||
ExplicitTop = 356
|
||||
ExplicitWidth = 188
|
||||
inherited TBXLabel2: TTBXLabel
|
||||
Width = 188
|
||||
Width = 216
|
||||
ExplicitWidth = 188
|
||||
end
|
||||
inherited bElegirCliente: TBitBtn
|
||||
Width = 119
|
||||
Width = 147
|
||||
ExplicitWidth = 119
|
||||
end
|
||||
inherited edtCliente: TcxTextEdit
|
||||
@ -200,14 +200,14 @@ inherited fEditorInformeBeneficiosReportGrafComp: TfEditorInformeBeneficiosRepor
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitWidth = 152
|
||||
Width = 152
|
||||
Width = 180
|
||||
end
|
||||
end
|
||||
inline frViewFiltroTipoGasto1: TfrViewFiltroTipoGasto
|
||||
Left = 0
|
||||
Top = 230
|
||||
Width = 188
|
||||
Height = 126
|
||||
Width = 216
|
||||
Height = 230
|
||||
Align = alTop
|
||||
Font.Charset = DEFAULT_CHARSET
|
||||
Font.Color = clWindowText
|
||||
@ -218,14 +218,15 @@ inherited fEditorInformeBeneficiosReportGrafComp: TfEditorInformeBeneficiosRepor
|
||||
TabOrder = 3
|
||||
ReadOnly = False
|
||||
ExplicitTop = 230
|
||||
ExplicitWidth = 188
|
||||
ExplicitWidth = 216
|
||||
ExplicitHeight = 230
|
||||
inherited TBXLabel1: TTBXLabel
|
||||
Width = 188
|
||||
Width = 216
|
||||
ExplicitWidth = 188
|
||||
end
|
||||
inherited cbTipoGasto: TcxLookupComboBox
|
||||
ExplicitWidth = 127
|
||||
Width = 127
|
||||
Width = 155
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -123,8 +123,10 @@ end;
|
||||
function TfEditorInformeBeneficiosReportGrafComp.GetListaIDTiposGasto: TIntegerArray;
|
||||
begin
|
||||
FListaIDTiposGasto.Clear;
|
||||
if frViewFiltroTipoGasto1.rdUnTipoGasto.Checked then
|
||||
FListaIDTiposGasto.Add(frViewFiltroTipoGasto1.TipoGastoID);
|
||||
|
||||
// if frViewFiltroTipoGasto1.rdUnTipoGasto.Checked then
|
||||
// FListaIDTiposGasto.Add(frViewFiltroTipoGasto1.TipoGastoID);
|
||||
FListaIDTiposGasto := frViewFiltroTipoGasto1.TipoGastoID.ToIntegerArray;
|
||||
|
||||
Result := FListaIDTiposGasto;
|
||||
end;
|
||||
@ -132,9 +134,10 @@ end;
|
||||
function TfEditorInformeBeneficiosReportGrafComp.GetListaNombreTiposGasto: StringArray;
|
||||
begin
|
||||
FListaNombreTiposGasto.Clear;
|
||||
if Assigned(frViewFiltroTipoGasto1.rdUnTipoGasto) then
|
||||
FListaNombreTiposGasto.Add(frViewFiltroTipoGasto1.TipoGastoNombre);
|
||||
|
||||
// if Assigned(frViewFiltroTipoGasto1.rdUnTipoGasto) then
|
||||
// FListaNombreTiposGasto.Add(frViewFiltroTipoGasto1.TipoGastoNombre);
|
||||
FListaNombreTiposGasto := frViewFiltroTipoGasto1.TipoGastoNombre;
|
||||
|
||||
Result := FListaNombreTiposGasto;
|
||||
end;
|
||||
|
||||
|
||||
@ -2,6 +2,7 @@ inherited fEditorInformeFacturasProveedorPendientesReport: TfEditorInformeFactur
|
||||
Caption = 'fEditorInformeFacturasProveedorPendientesReport'
|
||||
ClientHeight = 871
|
||||
ClientWidth = 970
|
||||
ExplicitTop = -200
|
||||
ExplicitWidth = 978
|
||||
ExplicitHeight = 905
|
||||
PixelsPerInch = 96
|
||||
@ -167,7 +168,7 @@ inherited fEditorInformeFacturasProveedorPendientesReport: TfEditorInformeFactur
|
||||
end
|
||||
inline frViewFiltroImportes1: TfrViewFiltroImportes
|
||||
Left = 0
|
||||
Top = 240
|
||||
Top = 632
|
||||
Width = 216
|
||||
Height = 88
|
||||
Align = alTop
|
||||
@ -201,7 +202,7 @@ inherited fEditorInformeFacturasProveedorPendientesReport: TfEditorInformeFactur
|
||||
end
|
||||
inline frViewFiltroProveedores1: TfrViewFiltroProveedores
|
||||
Left = 0
|
||||
Top = 328
|
||||
Top = 470
|
||||
Width = 216
|
||||
Height = 162
|
||||
Align = alTop
|
||||
@ -236,9 +237,9 @@ inherited fEditorInformeFacturasProveedorPendientesReport: TfEditorInformeFactur
|
||||
end
|
||||
inline frViewFiltroTipoGasto1: TfrViewFiltroTipoGasto
|
||||
Left = 0
|
||||
Top = 490
|
||||
Top = 240
|
||||
Width = 216
|
||||
Height = 126
|
||||
Height = 230
|
||||
Align = alTop
|
||||
Font.Charset = DEFAULT_CHARSET
|
||||
Font.Color = clWindowText
|
||||
@ -250,6 +251,7 @@ inherited fEditorInformeFacturasProveedorPendientesReport: TfEditorInformeFactur
|
||||
ReadOnly = False
|
||||
ExplicitTop = 490
|
||||
ExplicitWidth = 216
|
||||
ExplicitHeight = 230
|
||||
inherited TBXLabel1: TTBXLabel
|
||||
Width = 216
|
||||
ExplicitWidth = 216
|
||||
|
||||
@ -144,18 +144,21 @@ end;
|
||||
function TfEditorInformeFacturasProveedorPendientesReport.GetListaIDTiposGasto: TIntegerArray;
|
||||
begin
|
||||
FListaIDTiposGasto.Clear;
|
||||
if frViewFiltroTipoGasto1.rdUnTipoGasto.Checked then
|
||||
FListaIDTiposGasto.Add(frViewFiltroTipoGasto1.TipoGastoID);
|
||||
|
||||
// if frViewFiltroTipoGasto1.rdUnTipoGasto.Checked then
|
||||
// FListaIDTiposGasto.Add(frViewFiltroTipoGasto1.TipoGastoID);
|
||||
FListaIDTiposGasto := frViewFiltroTipoGasto1.TipoGastoID.ToIntegerArray;
|
||||
|
||||
Result := FListaIDTiposGasto;
|
||||
end;
|
||||
|
||||
function TfEditorInformeFacturasProveedorPendientesReport.GetListaNombreTiposGasto: StringArray;
|
||||
begin
|
||||
FListaNombreTiposGasto.Clear;
|
||||
if Assigned(frViewFiltroTipoGasto1.rdUnTipoGasto) then
|
||||
FListaNombreTiposGasto.Add(frViewFiltroTipoGasto1.TipoGastoNombre);
|
||||
|
||||
// if Assigned(frViewFiltroTipoGasto1.rdUnTipoGasto) then
|
||||
// FListaNombreTiposGasto.Add(frViewFiltroTipoGasto1.TipoGastoNombre);
|
||||
FListaNombreTiposGasto := frViewFiltroTipoGasto1.TipoGastoNombre;
|
||||
|
||||
Result := FListaNombreTiposGasto;
|
||||
end;
|
||||
|
||||
|
||||
@ -40,20 +40,20 @@ inherited fEditorInformeFacturasProveedorReport: TfEditorInformeFacturasProveedo
|
||||
ExplicitHeight = 534
|
||||
end
|
||||
inherited TBXMultiDockDerecho: TTBXMultiDock
|
||||
Left = 703
|
||||
Width = 192
|
||||
Left = 675
|
||||
Width = 220
|
||||
Height = 534
|
||||
ExplicitLeft = 703
|
||||
ExplicitWidth = 192
|
||||
ExplicitLeft = 675
|
||||
ExplicitWidth = 220
|
||||
ExplicitHeight = 534
|
||||
inherited pnlParametros: TTBXDockablePanel
|
||||
DockedWidth = 188
|
||||
ExplicitWidth = 192
|
||||
DockedWidth = 216
|
||||
ExplicitWidth = 220
|
||||
ExplicitHeight = 518
|
||||
inline frViewPeriodoFechas1: TfrViewPeriodoFechas [0]
|
||||
Left = 0
|
||||
Top = 0
|
||||
Width = 188
|
||||
Width = 216
|
||||
Height = 240
|
||||
Align = alTop
|
||||
Font.Charset = DEFAULT_CHARSET
|
||||
@ -67,10 +67,10 @@ inherited fEditorInformeFacturasProveedorReport: TfEditorInformeFacturasProveedo
|
||||
ExplicitWidth = 188
|
||||
ExplicitHeight = 240
|
||||
inherited TBXAlignmentPanel2: TTBXAlignmentPanel
|
||||
Width = 182
|
||||
Width = 210
|
||||
ExplicitWidth = 182
|
||||
inherited Label3: TLabel
|
||||
Width = 172
|
||||
Width = 200
|
||||
end
|
||||
inherited edtFechaFin: TcxDateEdit
|
||||
Left = 77
|
||||
@ -80,7 +80,7 @@ inherited fEditorInformeFacturasProveedorReport: TfEditorInformeFacturasProveedo
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitLeft = 77
|
||||
ExplicitWidth = 96
|
||||
Width = 96
|
||||
Width = 124
|
||||
end
|
||||
inherited edtFechaIni: TcxDateEdit
|
||||
Left = 76
|
||||
@ -90,7 +90,7 @@ inherited fEditorInformeFacturasProveedorReport: TfEditorInformeFacturasProveedo
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitLeft = 76
|
||||
ExplicitWidth = 97
|
||||
Width = 97
|
||||
Width = 125
|
||||
end
|
||||
inherited cbPeriodo: TcxComboBox
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
@ -98,18 +98,18 @@ inherited fEditorInformeFacturasProveedorReport: TfEditorInformeFacturasProveedo
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitWidth = 170
|
||||
Width = 170
|
||||
Width = 198
|
||||
end
|
||||
end
|
||||
inherited TBXLabel2: TTBXLabel
|
||||
Width = 188
|
||||
Width = 216
|
||||
ExplicitWidth = 188
|
||||
end
|
||||
inherited TBXAlignmentPanel3: TTBXAlignmentPanel
|
||||
Width = 182
|
||||
Width = 210
|
||||
ExplicitWidth = 182
|
||||
inherited Label4: TLabel
|
||||
Width = 172
|
||||
Width = 200
|
||||
end
|
||||
inherited edtFechaVenFin: TcxDateEdit
|
||||
Left = 77
|
||||
@ -119,7 +119,7 @@ inherited fEditorInformeFacturasProveedorReport: TfEditorInformeFacturasProveedo
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitLeft = 77
|
||||
ExplicitWidth = 96
|
||||
Width = 96
|
||||
Width = 124
|
||||
end
|
||||
inherited edtFechaVenIni: TcxDateEdit
|
||||
Left = 76
|
||||
@ -129,7 +129,7 @@ inherited fEditorInformeFacturasProveedorReport: TfEditorInformeFacturasProveedo
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitLeft = 76
|
||||
ExplicitWidth = 97
|
||||
Width = 97
|
||||
Width = 125
|
||||
end
|
||||
inherited cbPeriodo2: TcxComboBox
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
@ -137,12 +137,12 @@ inherited fEditorInformeFacturasProveedorReport: TfEditorInformeFacturasProveedo
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitWidth = 170
|
||||
Width = 170
|
||||
Width = 198
|
||||
end
|
||||
end
|
||||
end
|
||||
inherited TBXDockablePanel1: TTBXDockablePanel
|
||||
Top = 368
|
||||
Top = 446
|
||||
TabOrder = 2
|
||||
ExplicitTop = 368
|
||||
ExplicitWidth = 188
|
||||
@ -150,7 +150,7 @@ inherited fEditorInformeFacturasProveedorReport: TfEditorInformeFacturasProveedo
|
||||
AlignWithMargins = True
|
||||
Left = 3
|
||||
Top = 3
|
||||
Width = 182
|
||||
Width = 210
|
||||
Height = 37
|
||||
Margins.Left = 8
|
||||
Margins.Top = 8
|
||||
@ -165,8 +165,8 @@ inherited fEditorInformeFacturasProveedorReport: TfEditorInformeFacturasProveedo
|
||||
end
|
||||
inline frViewFiltroImportes1: TfrViewFiltroImportes
|
||||
Left = 0
|
||||
Top = 366
|
||||
Width = 188
|
||||
Top = 470
|
||||
Width = 216
|
||||
Height = 88
|
||||
Align = alTop
|
||||
AutoSize = True
|
||||
@ -182,11 +182,11 @@ inherited fEditorInformeFacturasProveedorReport: TfEditorInformeFacturasProveedo
|
||||
ExplicitWidth = 188
|
||||
ExplicitHeight = 88
|
||||
inherited TBXLabel2: TTBXLabel
|
||||
Width = 188
|
||||
Width = 216
|
||||
ExplicitWidth = 188
|
||||
end
|
||||
inherited TBXAlignmentPanel1: TTBXAlignmentPanel
|
||||
Width = 182
|
||||
Width = 210
|
||||
ExplicitTop = 43
|
||||
ExplicitWidth = 182
|
||||
inherited eImporte: TcxSpinEdit
|
||||
@ -199,8 +199,8 @@ inherited fEditorInformeFacturasProveedorReport: TfEditorInformeFacturasProveedo
|
||||
end
|
||||
inline frViewFiltroProveedores1: TfrViewFiltroProveedores
|
||||
Left = 0
|
||||
Top = 454
|
||||
Width = 188
|
||||
Top = 558
|
||||
Width = 216
|
||||
Height = 162
|
||||
Align = alTop
|
||||
AutoSize = True
|
||||
@ -216,14 +216,14 @@ inherited fEditorInformeFacturasProveedorReport: TfEditorInformeFacturasProveedo
|
||||
ExplicitWidth = 188
|
||||
ExplicitHeight = 162
|
||||
DesignSize = (
|
||||
188
|
||||
216
|
||||
162)
|
||||
inherited TBXLabel2: TTBXLabel
|
||||
Width = 188
|
||||
Width = 216
|
||||
ExplicitWidth = 188
|
||||
end
|
||||
inherited bElegirProveedor: TBitBtn
|
||||
Width = 108
|
||||
Width = 136
|
||||
ExplicitWidth = 108
|
||||
end
|
||||
inherited edtProveedor: TcxTextEdit
|
||||
@ -232,14 +232,14 @@ inherited fEditorInformeFacturasProveedorReport: TfEditorInformeFacturasProveedo
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitWidth = 141
|
||||
Width = 141
|
||||
Width = 169
|
||||
end
|
||||
end
|
||||
inline frViewFiltroTipoGasto1: TfrViewFiltroTipoGasto
|
||||
Left = 0
|
||||
Top = 240
|
||||
Width = 188
|
||||
Height = 126
|
||||
Width = 216
|
||||
Height = 230
|
||||
Align = alTop
|
||||
Font.Charset = DEFAULT_CHARSET
|
||||
Font.Color = clWindowText
|
||||
@ -250,14 +250,26 @@ inherited fEditorInformeFacturasProveedorReport: TfEditorInformeFacturasProveedo
|
||||
TabOrder = 4
|
||||
ReadOnly = False
|
||||
ExplicitTop = 240
|
||||
ExplicitWidth = 188
|
||||
ExplicitWidth = 216
|
||||
ExplicitHeight = 230
|
||||
inherited TBXLabel1: TTBXLabel
|
||||
Width = 188
|
||||
Width = 216
|
||||
ExplicitWidth = 188
|
||||
end
|
||||
inherited cbTipoGasto: TcxLookupComboBox
|
||||
ExplicitWidth = 127
|
||||
Width = 127
|
||||
Width = 155
|
||||
end
|
||||
inherited cxGrid: TcxGrid
|
||||
Width = 210
|
||||
Height = 128
|
||||
ExplicitWidth = 210
|
||||
ExplicitHeight = 128
|
||||
inherited cxGridDBTableView: TcxGridDBTableView
|
||||
inherited cxGridDBTableViewDESCRIPCION: TcxGridDBColumn
|
||||
Width = 190
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -143,8 +143,9 @@ end;
|
||||
function TfEditorInformeFacturasProveedorReport.GetListaIDTiposGasto: TIntegerArray;
|
||||
begin
|
||||
FListaIDTiposGasto.Clear;
|
||||
if frViewFiltroTipoGasto1.rdUnTipoGasto.Checked then
|
||||
FListaIDTiposGasto.Add(frViewFiltroTipoGasto1.TipoGastoID);
|
||||
// if frViewFiltroTipoGasto1.rdUnTipoGasto.Checked then
|
||||
// FListaIDTiposGasto.Add(frViewFiltroTipoGasto1.TipoGastoID);
|
||||
FListaIDTiposGasto := frViewFiltroTipoGasto1.TipoGastoID.ToIntegerArray;
|
||||
|
||||
Result := FListaIDTiposGasto;
|
||||
end;
|
||||
@ -152,8 +153,9 @@ end;
|
||||
function TfEditorInformeFacturasProveedorReport.GetListaNombreTiposGasto: StringArray;
|
||||
begin
|
||||
FListaNombreTiposGasto.Clear;
|
||||
if Assigned(frViewFiltroTipoGasto1.rdUnTipoGasto) then
|
||||
FListaNombreTiposGasto.Add(frViewFiltroTipoGasto1.TipoGastoNombre);
|
||||
// if Assigned(frViewFiltroTipoGasto1.rdUnTipoGasto) then
|
||||
// FListaNombreTiposGasto.Add(frViewFiltroTipoGasto1.TipoGastoNombre);
|
||||
FListaNombreTiposGasto := frViewFiltroTipoGasto1.TipoGastoNombre;
|
||||
|
||||
Result := FListaNombreTiposGasto;
|
||||
end;
|
||||
|
||||
@ -40,26 +40,26 @@ inherited fEditorInformeFacturasProveedorReportGrafComp: TfEditorInformeFacturas
|
||||
ExplicitHeight = 550
|
||||
end
|
||||
inherited TBXMultiDockDerecho: TTBXMultiDock
|
||||
Left = 766
|
||||
Width = 192
|
||||
Left = 738
|
||||
Width = 220
|
||||
Height = 550
|
||||
ExplicitLeft = 766
|
||||
ExplicitWidth = 192
|
||||
ExplicitLeft = 738
|
||||
ExplicitWidth = 220
|
||||
ExplicitHeight = 550
|
||||
inherited pnlParametros: TTBXDockablePanel
|
||||
DockedWidth = 188
|
||||
DockedWidth = 216
|
||||
DockPos = -136
|
||||
ExplicitWidth = 192
|
||||
ExplicitWidth = 220
|
||||
ExplicitHeight = 534
|
||||
inherited TBXDockablePanel1: TTBXDockablePanel
|
||||
Top = 384
|
||||
Top = 462
|
||||
ExplicitTop = 384
|
||||
ExplicitWidth = 188
|
||||
inherited TBXButton1: TTBXButton
|
||||
AlignWithMargins = True
|
||||
Left = 3
|
||||
Top = 3
|
||||
Width = 182
|
||||
Width = 210
|
||||
Height = 37
|
||||
Margins.Left = 8
|
||||
Margins.Top = 8
|
||||
@ -75,7 +75,7 @@ inherited fEditorInformeFacturasProveedorReportGrafComp: TfEditorInformeFacturas
|
||||
inline frViewIntervaloComparativo1: TfrViewIntervaloComparativo
|
||||
Left = 0
|
||||
Top = 0
|
||||
Width = 188
|
||||
Width = 216
|
||||
Height = 230
|
||||
Align = alTop
|
||||
Font.Charset = DEFAULT_CHARSET
|
||||
@ -89,10 +89,10 @@ inherited fEditorInformeFacturasProveedorReportGrafComp: TfEditorInformeFacturas
|
||||
ExplicitWidth = 188
|
||||
ExplicitHeight = 230
|
||||
inherited TBXAlignmentPanel2: TTBXAlignmentPanel
|
||||
Width = 182
|
||||
Width = 210
|
||||
ExplicitWidth = 182
|
||||
inherited Label3: TLabel
|
||||
Width = 172
|
||||
Width = 200
|
||||
end
|
||||
inherited cbIntervalo: TcxComboBox
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
@ -100,18 +100,18 @@ inherited fEditorInformeFacturasProveedorReportGrafComp: TfEditorInformeFacturas
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitWidth = 166
|
||||
Width = 166
|
||||
Width = 194
|
||||
end
|
||||
end
|
||||
inherited TBXLabel2: TTBXLabel
|
||||
Width = 188
|
||||
Width = 216
|
||||
ExplicitWidth = 188
|
||||
end
|
||||
inherited TBXAlignmentPanel3: TTBXAlignmentPanel
|
||||
Width = 182
|
||||
Width = 210
|
||||
ExplicitWidth = 182
|
||||
inherited lis: TLabel
|
||||
Width = 172
|
||||
Width = 200
|
||||
end
|
||||
inherited cbAno1: TcxComboBox
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
@ -119,14 +119,14 @@ inherited fEditorInformeFacturasProveedorReportGrafComp: TfEditorInformeFacturas
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitWidth = 166
|
||||
Width = 166
|
||||
Width = 194
|
||||
end
|
||||
end
|
||||
inherited TBXAlignmentPanel1: TTBXAlignmentPanel
|
||||
Width = 182
|
||||
Width = 210
|
||||
ExplicitWidth = 182
|
||||
inherited Label1: TLabel
|
||||
Width = 172
|
||||
Width = 200
|
||||
end
|
||||
inherited cbAno2: TcxComboBox
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
@ -134,21 +134,21 @@ inherited fEditorInformeFacturasProveedorReportGrafComp: TfEditorInformeFacturas
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitWidth = 166
|
||||
Width = 166
|
||||
Width = 194
|
||||
end
|
||||
end
|
||||
inherited TBXAlignmentPanel4: TTBXAlignmentPanel
|
||||
Width = 182
|
||||
Width = 210
|
||||
ExplicitWidth = 182
|
||||
inherited Label2: TLabel
|
||||
Width = 172
|
||||
Width = 200
|
||||
end
|
||||
end
|
||||
inherited TBXAlignmentPanel5: TTBXAlignmentPanel
|
||||
Width = 182
|
||||
Width = 210
|
||||
ExplicitWidth = 182
|
||||
inherited Label4: TLabel
|
||||
Width = 172
|
||||
Width = 200
|
||||
end
|
||||
inherited cbSerie: TcxComboBox
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
@ -156,14 +156,14 @@ inherited fEditorInformeFacturasProveedorReportGrafComp: TfEditorInformeFacturas
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitWidth = 166
|
||||
Width = 166
|
||||
Width = 194
|
||||
end
|
||||
end
|
||||
end
|
||||
inline frViewFiltroProveedores1: TfrViewFiltroProveedores
|
||||
Left = 0
|
||||
Top = 359
|
||||
Width = 188
|
||||
Top = 460
|
||||
Width = 216
|
||||
Height = 195
|
||||
Align = alTop
|
||||
Font.Charset = DEFAULT_CHARSET
|
||||
@ -175,15 +175,15 @@ inherited fEditorInformeFacturasProveedorReportGrafComp: TfEditorInformeFacturas
|
||||
TabOrder = 2
|
||||
Visible = False
|
||||
ReadOnly = False
|
||||
ExplicitTop = 359
|
||||
ExplicitTop = 480
|
||||
ExplicitWidth = 188
|
||||
ExplicitHeight = 195
|
||||
inherited TBXLabel2: TTBXLabel
|
||||
Width = 188
|
||||
Width = 216
|
||||
ExplicitWidth = 188
|
||||
end
|
||||
inherited bElegirProveedor: TBitBtn
|
||||
Width = 119
|
||||
Width = 147
|
||||
ExplicitWidth = 119
|
||||
end
|
||||
inherited edtProveedor: TcxTextEdit
|
||||
@ -192,14 +192,14 @@ inherited fEditorInformeFacturasProveedorReportGrafComp: TfEditorInformeFacturas
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitWidth = 152
|
||||
Width = 152
|
||||
Width = 180
|
||||
end
|
||||
end
|
||||
inline frViewFiltroTipoGasto1: TfrViewFiltroTipoGasto
|
||||
Left = 0
|
||||
Top = 230
|
||||
Width = 188
|
||||
Height = 129
|
||||
Width = 216
|
||||
Height = 230
|
||||
Align = alTop
|
||||
Font.Charset = DEFAULT_CHARSET
|
||||
Font.Color = clWindowText
|
||||
@ -211,14 +211,21 @@ inherited fEditorInformeFacturasProveedorReportGrafComp: TfEditorInformeFacturas
|
||||
ReadOnly = False
|
||||
ExplicitTop = 230
|
||||
ExplicitWidth = 188
|
||||
ExplicitHeight = 129
|
||||
ExplicitHeight = 230
|
||||
DesignSize = (
|
||||
216
|
||||
230)
|
||||
inherited TBXLabel1: TTBXLabel
|
||||
Width = 188
|
||||
Width = 216
|
||||
ExplicitWidth = 188
|
||||
end
|
||||
inherited cbTipoGasto: TcxLookupComboBox
|
||||
ExplicitWidth = 126
|
||||
Width = 126
|
||||
Width = 154
|
||||
end
|
||||
inherited cxGrid: TcxGrid
|
||||
Height = 128
|
||||
ExplicitHeight = 128
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -121,19 +121,22 @@ end;
|
||||
|
||||
function TfEditorInformeFacturasProveedorReportGrafComp.GetListaIDTiposGasto: TIntegerArray;
|
||||
begin
|
||||
FListaIDTiposGasto.Clear;
|
||||
if frViewFiltroTipoGasto1.rdUnTipoGasto.Checked then
|
||||
FListaIDTiposGasto.Add(frViewFiltroTipoGasto1.TipoGastoID);
|
||||
|
||||
// FListaIDTiposGasto.Clear;
|
||||
// if frViewFiltroTipoGasto1.rdUnTipoGasto.Checked then
|
||||
// FListaIDTiposGasto.Add(frViewFiltroTipoGasto1.TipoGastoID);
|
||||
|
||||
FListaIDTiposGasto := frViewFiltroTipoGasto1.TipoGastoID.ToIntegerArray;
|
||||
Result := FListaIDTiposGasto;
|
||||
end;
|
||||
|
||||
function TfEditorInformeFacturasProveedorReportGrafComp.GetListaNombreTiposGasto: StringArray;
|
||||
begin
|
||||
FListaNombreTiposGasto.Clear;
|
||||
if Assigned(frViewFiltroTipoGasto1.rdUnTipoGasto) then
|
||||
FListaNombreTiposGasto.Add(frViewFiltroTipoGasto1.TipoGastoNombre);
|
||||
|
||||
// if Assigned(frViewFiltroTipoGasto1.rdUnTipoGasto) then
|
||||
// FListaNombreTiposGasto.Add(frViewFiltroTipoGasto1.TipoGastoNombre);
|
||||
FListaNombreTiposGasto := frViewFiltroTipoGasto1.TipoGastoNombre;
|
||||
|
||||
Result := FListaNombreTiposGasto;
|
||||
end;
|
||||
|
||||
|
||||
@ -40,20 +40,20 @@ inherited fEditorInformeIVAProveedoresReport: TfEditorInformeIVAProveedoresRepor
|
||||
ExplicitHeight = 534
|
||||
end
|
||||
inherited TBXMultiDockDerecho: TTBXMultiDock
|
||||
Left = 703
|
||||
Width = 192
|
||||
Left = 675
|
||||
Width = 220
|
||||
Height = 534
|
||||
ExplicitLeft = 703
|
||||
ExplicitWidth = 192
|
||||
ExplicitLeft = 675
|
||||
ExplicitWidth = 220
|
||||
ExplicitHeight = 534
|
||||
inherited pnlParametros: TTBXDockablePanel
|
||||
DockedWidth = 188
|
||||
ExplicitWidth = 192
|
||||
DockedWidth = 216
|
||||
ExplicitWidth = 220
|
||||
ExplicitHeight = 518
|
||||
inline frViewPeriodoFechas1: TfrViewPeriodoFechas [0]
|
||||
Left = 0
|
||||
Top = 0
|
||||
Width = 188
|
||||
Width = 216
|
||||
Height = 136
|
||||
Align = alTop
|
||||
Font.Charset = DEFAULT_CHARSET
|
||||
@ -64,13 +64,13 @@ inherited fEditorInformeIVAProveedoresReport: TfEditorInformeIVAProveedoresRepor
|
||||
ParentFont = False
|
||||
TabOrder = 0
|
||||
ReadOnly = False
|
||||
ExplicitWidth = 188
|
||||
ExplicitWidth = 216
|
||||
ExplicitHeight = 136
|
||||
inherited TBXAlignmentPanel2: TTBXAlignmentPanel
|
||||
Width = 182
|
||||
ExplicitWidth = 182
|
||||
Width = 210
|
||||
ExplicitWidth = 210
|
||||
inherited Label3: TLabel
|
||||
Width = 172
|
||||
Width = 200
|
||||
end
|
||||
inherited edtFechaFin: TcxDateEdit
|
||||
Left = 76
|
||||
@ -79,8 +79,8 @@ inherited fEditorInformeIVAProveedoresReport: TfEditorInformeIVAProveedoresRepor
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitLeft = 76
|
||||
ExplicitWidth = 97
|
||||
Width = 97
|
||||
ExplicitWidth = 125
|
||||
Width = 125
|
||||
end
|
||||
inherited edtFechaIni: TcxDateEdit
|
||||
Left = 76
|
||||
@ -89,50 +89,52 @@ inherited fEditorInformeIVAProveedoresReport: TfEditorInformeIVAProveedoresRepor
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitLeft = 76
|
||||
ExplicitWidth = 97
|
||||
Width = 97
|
||||
ExplicitWidth = 125
|
||||
Width = 125
|
||||
end
|
||||
inherited cbPeriodo: TcxComboBox
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
StyleDisabled.LookAndFeel.SkinName = ''
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitWidth = 170
|
||||
Width = 170
|
||||
ExplicitWidth = 198
|
||||
Width = 198
|
||||
end
|
||||
end
|
||||
inherited TBXLabel2: TTBXLabel
|
||||
Width = 188
|
||||
ExplicitWidth = 188
|
||||
Width = 216
|
||||
ExplicitWidth = 216
|
||||
end
|
||||
inherited TBXAlignmentPanel3: TTBXAlignmentPanel
|
||||
Width = 182
|
||||
Width = 210
|
||||
Visible = False
|
||||
ExplicitWidth = 182
|
||||
ExplicitWidth = 210
|
||||
inherited Label4: TLabel
|
||||
Width = 172
|
||||
Width = 200
|
||||
end
|
||||
inherited edtFechaVenFin: TcxDateEdit
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
StyleDisabled.LookAndFeel.SkinName = ''
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitWidth = 99
|
||||
Width = 99
|
||||
ExplicitWidth = 127
|
||||
Width = 127
|
||||
end
|
||||
inherited edtFechaVenIni: TcxDateEdit
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
StyleDisabled.LookAndFeel.SkinName = ''
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitWidth = 97
|
||||
Width = 97
|
||||
ExplicitWidth = 125
|
||||
Width = 125
|
||||
end
|
||||
inherited cbPeriodo2: TcxComboBox
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
StyleDisabled.LookAndFeel.SkinName = ''
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitWidth = 457
|
||||
Width = 457
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -140,12 +142,12 @@ inherited fEditorInformeIVAProveedoresReport: TfEditorInformeIVAProveedoresRepor
|
||||
Top = 368
|
||||
TabOrder = 2
|
||||
ExplicitTop = 368
|
||||
ExplicitWidth = 188
|
||||
ExplicitWidth = 216
|
||||
inherited TBXButton1: TTBXButton
|
||||
AlignWithMargins = True
|
||||
Left = 3
|
||||
Top = 3
|
||||
Width = 182
|
||||
Width = 210
|
||||
Height = 37
|
||||
Margins.Left = 8
|
||||
Margins.Top = 8
|
||||
@ -154,14 +156,14 @@ inherited fEditorInformeIVAProveedoresReport: TfEditorInformeIVAProveedoresRepor
|
||||
Align = alTop
|
||||
ExplicitLeft = 3
|
||||
ExplicitTop = 3
|
||||
ExplicitWidth = 182
|
||||
ExplicitWidth = 210
|
||||
ExplicitHeight = 37
|
||||
end
|
||||
end
|
||||
inline frViewFiltroImportes1: TfrViewFiltroImportes
|
||||
Left = 0
|
||||
Top = 262
|
||||
Width = 188
|
||||
Top = 366
|
||||
Width = 216
|
||||
Height = 88
|
||||
Align = alTop
|
||||
AutoSize = True
|
||||
@ -173,17 +175,17 @@ inherited fEditorInformeIVAProveedoresReport: TfEditorInformeIVAProveedoresRepor
|
||||
ParentFont = False
|
||||
TabOrder = 1
|
||||
ReadOnly = False
|
||||
ExplicitTop = 262
|
||||
ExplicitWidth = 188
|
||||
ExplicitTop = 366
|
||||
ExplicitWidth = 216
|
||||
ExplicitHeight = 88
|
||||
inherited TBXLabel2: TTBXLabel
|
||||
Width = 188
|
||||
ExplicitWidth = 188
|
||||
Width = 216
|
||||
ExplicitWidth = 216
|
||||
end
|
||||
inherited TBXAlignmentPanel1: TTBXAlignmentPanel
|
||||
Width = 182
|
||||
Width = 210
|
||||
ExplicitTop = 43
|
||||
ExplicitWidth = 182
|
||||
ExplicitWidth = 210
|
||||
inherited eImporte: TcxSpinEdit
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
StyleDisabled.LookAndFeel.SkinName = ''
|
||||
@ -194,8 +196,8 @@ inherited fEditorInformeIVAProveedoresReport: TfEditorInformeIVAProveedoresRepor
|
||||
end
|
||||
inline frViewFiltroProveedores1: TfrViewFiltroProveedores
|
||||
Left = 0
|
||||
Top = 350
|
||||
Width = 188
|
||||
Top = 454
|
||||
Width = 216
|
||||
Height = 162
|
||||
Align = alTop
|
||||
AutoSize = True
|
||||
@ -207,31 +209,31 @@ inherited fEditorInformeIVAProveedoresReport: TfEditorInformeIVAProveedoresRepor
|
||||
ParentFont = False
|
||||
TabOrder = 3
|
||||
ReadOnly = False
|
||||
ExplicitTop = 350
|
||||
ExplicitWidth = 188
|
||||
ExplicitTop = 454
|
||||
ExplicitWidth = 216
|
||||
ExplicitHeight = 162
|
||||
inherited TBXLabel2: TTBXLabel
|
||||
Width = 188
|
||||
ExplicitWidth = 188
|
||||
Width = 216
|
||||
ExplicitWidth = 216
|
||||
end
|
||||
inherited bElegirProveedor: TBitBtn
|
||||
Width = 108
|
||||
ExplicitWidth = 108
|
||||
Width = 136
|
||||
ExplicitWidth = 136
|
||||
end
|
||||
inherited edtProveedor: TcxTextEdit
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
StyleDisabled.LookAndFeel.SkinName = ''
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitWidth = 141
|
||||
Width = 141
|
||||
ExplicitWidth = 169
|
||||
Width = 169
|
||||
end
|
||||
end
|
||||
inline frViewFiltroTipoGasto1: TfrViewFiltroTipoGasto
|
||||
Left = 0
|
||||
Top = 136
|
||||
Width = 188
|
||||
Height = 126
|
||||
Width = 216
|
||||
Height = 230
|
||||
Align = alTop
|
||||
Font.Charset = DEFAULT_CHARSET
|
||||
Font.Color = clWindowText
|
||||
@ -242,14 +244,22 @@ inherited fEditorInformeIVAProveedoresReport: TfEditorInformeIVAProveedoresRepor
|
||||
TabOrder = 4
|
||||
ReadOnly = False
|
||||
ExplicitTop = 136
|
||||
ExplicitWidth = 188
|
||||
ExplicitWidth = 216
|
||||
ExplicitHeight = 230
|
||||
DesignSize = (
|
||||
216
|
||||
230)
|
||||
inherited TBXLabel1: TTBXLabel
|
||||
Width = 188
|
||||
ExplicitWidth = 188
|
||||
Width = 216
|
||||
ExplicitWidth = 216
|
||||
end
|
||||
inherited cbTipoGasto: TcxLookupComboBox
|
||||
ExplicitWidth = 127
|
||||
Width = 127
|
||||
ExplicitWidth = 155
|
||||
Width = 155
|
||||
end
|
||||
inherited cxGrid: TcxGrid
|
||||
Height = 128
|
||||
ExplicitHeight = 128
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -125,8 +125,10 @@ end;
|
||||
function TfEditorInformeIVAProveedoresReport.GetListaIDTiposGasto: TIntegerArray;
|
||||
begin
|
||||
FListaIDTiposGasto.Clear;
|
||||
if frViewFiltroTipoGasto1.rdUnTipoGasto.Checked then
|
||||
FListaIDTiposGasto.Add(frViewFiltroTipoGasto1.TipoGastoID);
|
||||
|
||||
// if frViewFiltroTipoGasto1.rdUnTipoGasto.Checked then
|
||||
// FListaIDTiposGasto.Add(frViewFiltroTipoGasto1.TipoGastoID);
|
||||
FListaIDTiposGasto := frViewFiltroTipoGasto1.TipoGastoID.ToIntegerArray;
|
||||
|
||||
Result := FListaIDTiposGasto;
|
||||
end;
|
||||
@ -134,8 +136,9 @@ end;
|
||||
function TfEditorInformeIVAProveedoresReport.GetListaNombreTiposGasto: StringArray;
|
||||
begin
|
||||
FListaNombreTiposGasto.Clear;
|
||||
if Assigned(frViewFiltroTipoGasto1.rdUnTipoGasto) then
|
||||
FListaNombreTiposGasto.Add(frViewFiltroTipoGasto1.TipoGastoNombre);
|
||||
// if Assigned(frViewFiltroTipoGasto1.rdUnTipoGasto) then
|
||||
// FListaNombreTiposGasto.Add(frViewFiltroTipoGasto1.TipoGastoNombre);
|
||||
FListaNombreTiposGasto := frViewFiltroTipoGasto1.TipoGastoNombre;
|
||||
|
||||
Result := FListaNombreTiposGasto;
|
||||
end;
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
inherited frViewFiltroTipoGasto: TfrViewFiltroTipoGasto
|
||||
Width = 451
|
||||
Height = 126
|
||||
Height = 287
|
||||
Align = alTop
|
||||
OnCreate = CustomViewCreate
|
||||
OnDestroy = CustomViewDestroy
|
||||
ExplicitWidth = 451
|
||||
ExplicitHeight = 126
|
||||
ExplicitHeight = 287
|
||||
DesignSize = (
|
||||
451
|
||||
126)
|
||||
287)
|
||||
object TBXLabel1: TTBXLabel
|
||||
Left = 0
|
||||
Top = 0
|
||||
@ -63,7 +63,6 @@ inherited frViewFiltroTipoGasto: TfrViewFiltroTipoGasto
|
||||
end>
|
||||
Properties.ListOptions.ShowHeader = False
|
||||
Properties.ListOptions.SyncMode = True
|
||||
Properties.ListSource = dsTiposFactura
|
||||
Style.LookAndFeel.Kind = lfOffice11
|
||||
StyleDisabled.LookAndFeel.Kind = lfOffice11
|
||||
StyleFocused.LookAndFeel.Kind = lfOffice11
|
||||
@ -72,8 +71,45 @@ inherited frViewFiltroTipoGasto: TfrViewFiltroTipoGasto
|
||||
Height = 21
|
||||
Width = 390
|
||||
end
|
||||
object cxGrid: TcxGrid
|
||||
Left = 3
|
||||
Top = 94
|
||||
Width = 210
|
||||
Height = 146
|
||||
TabOrder = 4
|
||||
LookAndFeel.Kind = lfOffice11
|
||||
object cxGridDBTableView: TcxGridDBTableView
|
||||
NavigatorButtons.ConfirmDelete = False
|
||||
DataController.DataSource = dsTiposFactura
|
||||
DataController.Summary.DefaultGroupSummaryItems = <>
|
||||
DataController.Summary.FooterSummaryItems = <>
|
||||
DataController.Summary.SummaryGroups = <>
|
||||
OptionsData.CancelOnExit = False
|
||||
OptionsData.Deleting = False
|
||||
OptionsData.DeletingConfirmation = False
|
||||
OptionsData.Editing = False
|
||||
OptionsData.Inserting = False
|
||||
OptionsSelection.CellSelect = False
|
||||
OptionsSelection.MultiSelect = True
|
||||
OptionsView.GroupByBox = False
|
||||
OptionsView.Header = False
|
||||
object cxGridDBTableViewID: TcxGridDBColumn
|
||||
DataBinding.FieldName = 'ID'
|
||||
Visible = False
|
||||
VisibleForCustomization = False
|
||||
Width = 20
|
||||
end
|
||||
object cxGridDBTableViewDESCRIPCION: TcxGridDBColumn
|
||||
DataBinding.FieldName = 'DESCRIPCION'
|
||||
Width = 190
|
||||
end
|
||||
end
|
||||
object cxGridLevel: TcxGridLevel
|
||||
GridView = cxGridDBTableView
|
||||
end
|
||||
end
|
||||
object dsTiposFactura: TDADataSource
|
||||
Left = 232
|
||||
Top = 60
|
||||
Left = 192
|
||||
Top = 28
|
||||
end
|
||||
end
|
||||
|
||||
@ -5,19 +5,21 @@ interface
|
||||
uses
|
||||
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
||||
Dialogs, uViewBase, cxControls, cxContainer, cxEdit, cxTextEdit, cxDBEdit,
|
||||
StdCtrls, Buttons, TBXDkPanels, uViewParametrosInforme,
|
||||
uBizFacturasProveedor, uFacturasProveedorController,
|
||||
StdCtrls, Buttons, TBXDkPanels, uViewParametrosInforme, DataAbstract4_Intf,
|
||||
uBizFacturasProveedor, uFacturasProveedorController, uIntegerListUtils,
|
||||
cxGraphics, cxMaskEdit, cxDropDownEdit, cxLookupEdit, cxDBLookupEdit,
|
||||
cxDBLookupComboBox, DB, uDAInterfaces, uDADataTable;
|
||||
cxDBLookupComboBox, DB, uDAInterfaces, uDADataTable, cxStyles, cxCustomData,
|
||||
cxFilter, cxData, cxDataStorage, cxDBData, cxGridLevel, cxGridCustomTableView,
|
||||
cxGridTableView, cxGridDBTableView, cxClasses, cxGridCustomView, cxGrid;
|
||||
|
||||
|
||||
type
|
||||
IViewFiltroTipoGasto = interface(IViewParametrosInforme)
|
||||
['{B87F5712-9E24-4CE2-8FE6-7D60C4E505D6}']
|
||||
function getTipoGastoID: Integer;
|
||||
function getTipoGastoNombre: String;
|
||||
property TipoGastoID : Integer read getTipoGastoID;
|
||||
property TipoGastoNombre : String read getTipoGastoNombre;
|
||||
function getTipoGastoNombre: StringArray;
|
||||
function getTipoGastoID: TIntegerList;
|
||||
property TipoGastoID : TIntegerList read getTipoGastoID;
|
||||
property TipoGastoNombre : StringArray read getTipoGastoNombre;
|
||||
end;
|
||||
|
||||
TfrViewFiltroTipoGasto = class(TfrViewParametrosInforme, IViewFiltroTipoGasto)
|
||||
@ -26,6 +28,11 @@ type
|
||||
rdUnTipoGasto: TRadioButton;
|
||||
dsTiposFactura: TDADataSource;
|
||||
cbTipoGasto: TcxLookupComboBox;
|
||||
cxGrid: TcxGrid;
|
||||
cxGridDBTableView: TcxGridDBTableView;
|
||||
cxGridDBTableViewID: TcxGridDBColumn;
|
||||
cxGridDBTableViewDESCRIPCION: TcxGridDBColumn;
|
||||
cxGridLevel: TcxGridLevel;
|
||||
procedure CustomViewCreate(Sender: TObject);
|
||||
procedure CustomViewDestroy(Sender: TObject);
|
||||
procedure rdUnTipoGastoClick(Sender: TObject);
|
||||
@ -33,49 +40,98 @@ type
|
||||
private
|
||||
FTiposGasto : IBizTiposFacturaProveedor;
|
||||
FFacturasProveedorController : IFacturasProveedorController;
|
||||
function getTipoGastoID: Integer;
|
||||
function getTipoGastoNombre: String;
|
||||
FTiposGastoID: TIntegerList;
|
||||
FTiposGastoNombre: StringArray;
|
||||
function getTipoGastoID: TIntegerList;
|
||||
function getTipoGastoNombre: StringArray;
|
||||
|
||||
public
|
||||
property TipoGastoID : Integer read getTipoGastoID;
|
||||
property TipoGastoNombre : String read getTipoGastoNombre;
|
||||
property TipoGastoID : TIntegerList read getTipoGastoID;
|
||||
property TipoGastoNombre : StringArray read getTipoGastoNombre;
|
||||
end;
|
||||
|
||||
implementation
|
||||
|
||||
{$R *.dfm}
|
||||
|
||||
uses uGridStatusUtils, uDBSelectionListUtils;
|
||||
|
||||
procedure TfrViewFiltroTipoGasto.CustomViewCreate(Sender: TObject);
|
||||
begin
|
||||
inherited;
|
||||
FTiposGastoID:= Nil;
|
||||
FTiposGastoNombre:= Nil;
|
||||
|
||||
FTiposGasto := NIL;
|
||||
FFacturasProveedorController := NIL;
|
||||
if not Assigned(FFacturasProveedorController) then
|
||||
begin
|
||||
FFacturasProveedorController := TFacturasProveedorController.Create;
|
||||
FTiposGasto := FFacturasProveedorController.darTiposFacturaProveedor;
|
||||
FTiposGasto.DataTable.Active := True;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrViewFiltroTipoGasto.CustomViewDestroy(Sender: TObject);
|
||||
begin
|
||||
inherited;
|
||||
FTiposGasto := NIL;
|
||||
FFacturasProveedorController := NIL;
|
||||
FTiposGastoID:= Nil;
|
||||
FTiposGastoNombre:= Nil;
|
||||
inherited;
|
||||
end;
|
||||
|
||||
function TfrViewFiltroTipoGasto.getTipoGastoID: Integer;
|
||||
function TfrViewFiltroTipoGasto.getTipoGastoID: TIntegerList;
|
||||
var
|
||||
ATiposGasto: TIntegerList;
|
||||
ATiposGastoNombre : StringArray;
|
||||
ATiposGastoSeleccionados : IBizTiposFacturaProveedor;
|
||||
|
||||
AGridStatus : TcxGridStatus;
|
||||
|
||||
begin
|
||||
if Assigned(FTiposGasto) then
|
||||
Result := FTiposGasto.ID;
|
||||
ATiposGasto := TIntegerList.Create;
|
||||
ATiposGastoNombre := StringArray.Create;
|
||||
|
||||
if Assigned(FTiposGasto)
|
||||
and rdUnTipoGasto.Checked then
|
||||
begin
|
||||
SeleccionarFilasDesdeGrid(cxGridDBTableView, (FTiposGasto as ISeleccionable).SelectedRecords);
|
||||
if Assigned(FFacturasProveedorController) then
|
||||
ATiposGastoSeleccionados := (FFacturasProveedorController as IFacturasProveedorController).ExtraerSeleccionados(FTiposGasto) as IBizTiposFacturaProveedor;
|
||||
|
||||
if (ATiposGastoSeleccionados.DataTable.RecordCount > 0) then
|
||||
begin
|
||||
with ATiposGastoSeleccionados.DataTable do
|
||||
begin
|
||||
First;
|
||||
while not EOF do
|
||||
begin
|
||||
ATiposGasto.Add(ATiposGastoSeleccionados.ID);
|
||||
ATiposGastoNombre.Add(ATiposGastoSeleccionados.DESCRIPCION);
|
||||
Next;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
FTiposGastoID := ATiposGasto;
|
||||
FTiposGastoNombre := ATiposGastoNombre;
|
||||
|
||||
Result := FTiposGastoID;
|
||||
end;
|
||||
|
||||
function TfrViewFiltroTipoGasto.getTipoGastoNombre: String;
|
||||
function TfrViewFiltroTipoGasto.getTipoGastoNombre: StringArray;
|
||||
begin
|
||||
if Assigned(FTiposGasto) then
|
||||
Result := FTiposGasto.DESCRIPCION;
|
||||
Result := FTiposGastoNombre;
|
||||
end;
|
||||
|
||||
procedure TfrViewFiltroTipoGasto.rdTodosLosTipoGastoClick(Sender: TObject);
|
||||
begin
|
||||
if rdTodosLosTipoGasto.Checked then
|
||||
begin
|
||||
cbTipoGasto.Enabled := False;
|
||||
// cbTipoGasto.Enabled := False;
|
||||
cxGrid.Enabled := False;
|
||||
dsTiposFactura.DataTable := Nil;
|
||||
end;
|
||||
end;
|
||||
|
||||
@ -83,14 +139,11 @@ procedure TfrViewFiltroTipoGasto.rdUnTipoGastoClick(Sender: TObject);
|
||||
begin
|
||||
if rdUnTipoGasto.Checked then
|
||||
begin
|
||||
cbTipoGasto.Enabled := True;
|
||||
if not Assigned(FFacturasProveedorController) then
|
||||
begin
|
||||
FFacturasProveedorController := TFacturasProveedorController.Create;
|
||||
FTiposGasto := FFacturasProveedorController.darTiposFacturaProveedor;
|
||||
FTiposGasto.DataTable.Active := True;
|
||||
dsTiposFactura.DataTable := FTiposGasto.DataTable;
|
||||
end;
|
||||
// cbTipoGasto.Enabled := True;
|
||||
cxGrid.Enabled := True;
|
||||
dsTiposFactura.DataTable := FTiposGasto.DataTable;
|
||||
FTiposGastoID:= Nil;
|
||||
FTiposGastoNombre:= Nil;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
@ -211,16 +211,16 @@ object RptWordPedidoProveedor: TRptWordPedidoProveedor
|
||||
'LLE,'#10' ARTICULOS.REFERENCIA, F_RTFTOTEXT(DET.CONCEPTO) as C' +
|
||||
'ONCEPTO, DET.CONCEPTO as CONCEPTO_RTF,'#10' DET.CANTIDAD,'#10' ' +
|
||||
' DET.UNIDAD_MEDIDA, DET.IMPORTE_UNIDAD - (DET.IMPORTE_UNIDAD *' +
|
||||
' (DET.DESCUENTO / 100)) as IMPORTE_UNIDAD, DET.IMPORTE_TOTAL,'#10' ' +
|
||||
' ARTICULOS_PROVEEDORES.REFERENCIA_PROV as REFERENCIA_PROVEED' +
|
||||
'OR,'#10' ARTICULOS.REFERENCIA_FABR as REFERENCIA_FABRICANTE'#10'FR' +
|
||||
'OM PEDIDOS_PROVEEDOR_DETALLES DET'#10'LEFT OUTER JOIN ARTICULOS ON (' +
|
||||
'DET.ID_ARTICULO = ARTICULOS.ID)'#10'LEFT JOIN PEDIDOS_PROVEEDOR ON (' +
|
||||
'PEDIDOS_PROVEEDOR.ID = DET.ID_PEDIDO)'#10'LEFT JOIN ARTICULOS_PROVEE' +
|
||||
'DORES ON ((ARTICULOS_PROVEEDORES.ID_ARTICULO = ARTICULOS.ID) AND' +
|
||||
' (ARTICULOS_PROVEEDORES.ID_PROVEEDOR = PEDIDOS_PROVEEDOR.ID_PROV' +
|
||||
'EEDOR))'#10#10'WHERE DET.ID_PEDIDO = :ID_PEDIDO AND DET.VISIBLE = 1 AN' +
|
||||
'D {Where}'#10'ORDER BY DET.ID_PEDIDO, DET.POSICION;'#10#10
|
||||
' (coalesce(DET.DESCUENTO,0) / 100)) as IMPORTE_UNIDAD, DET.IMPOR' +
|
||||
'TE_TOTAL,'#10' ARTICULOS_PROVEEDORES.REFERENCIA_PROV as REFERE' +
|
||||
'NCIA_PROVEEDOR,'#10' ARTICULOS.REFERENCIA_FABR as REFERENCIA_F' +
|
||||
'ABRICANTE'#10'FROM PEDIDOS_PROVEEDOR_DETALLES DET'#10'LEFT OUTER JOIN AR' +
|
||||
'TICULOS ON (DET.ID_ARTICULO = ARTICULOS.ID)'#10'LEFT JOIN PEDIDOS_PR' +
|
||||
'OVEEDOR ON (PEDIDOS_PROVEEDOR.ID = DET.ID_PEDIDO)'#10'LEFT JOIN ARTI' +
|
||||
'CULOS_PROVEEDORES ON ((ARTICULOS_PROVEEDORES.ID_ARTICULO = ARTIC' +
|
||||
'ULOS.ID) AND (ARTICULOS_PROVEEDORES.ID_PROVEEDOR = PEDIDOS_PROVE' +
|
||||
'EDOR.ID_PROVEEDOR))'#10#10'WHERE DET.ID_PEDIDO = :ID_PEDIDO AND DET.VI' +
|
||||
'SIBLE = 1 AND {Where}'#10'ORDER BY DET.ID_PEDIDO, DET.POSICION;'#10#10
|
||||
StatementType = stSQL
|
||||
ColumnMappings = <
|
||||
item
|
||||
@ -312,7 +312,7 @@ object RptWordPedidoProveedor: TRptWordPedidoProveedor
|
||||
end
|
||||
item
|
||||
Name = 'CANTIDAD'
|
||||
DataType = datFloat
|
||||
DataType = datCurrency
|
||||
end
|
||||
item
|
||||
Name = 'UNIDAD_MEDIDA'
|
||||
@ -321,7 +321,7 @@ object RptWordPedidoProveedor: TRptWordPedidoProveedor
|
||||
end
|
||||
item
|
||||
Name = 'IMPORTE_UNIDAD'
|
||||
DataType = datFloat
|
||||
DataType = datDecimal
|
||||
end
|
||||
item
|
||||
Name = 'IMPORTE_TOTAL'
|
||||
|
||||
Binary file not shown.
@ -35,7 +35,7 @@
|
||||
<Borland.Personality>Delphi.Personality</Borland.Personality>
|
||||
<Borland.ProjectType/>
|
||||
<BorlandProject>
|
||||
<BorlandProject><Delphi.Personality><Parameters><Parameters Name="UseLauncher">False</Parameters><Parameters Name="LoadAllSymbols">True</Parameters><Parameters Name="LoadUnspecifiedSymbols">False</Parameters><Parameters Name="RunParams">/standalone</Parameters></Parameters><VersionInfo><VersionInfo Name="IncludeVerInfo">True</VersionInfo><VersionInfo Name="AutoIncBuild">False</VersionInfo><VersionInfo Name="MajorVer">2</VersionInfo><VersionInfo Name="MinorVer">3</VersionInfo><VersionInfo Name="Release">4</VersionInfo><VersionInfo Name="Build">0</VersionInfo><VersionInfo Name="Debug">False</VersionInfo><VersionInfo Name="PreRelease">False</VersionInfo><VersionInfo Name="Special">False</VersionInfo><VersionInfo Name="Private">False</VersionInfo><VersionInfo Name="DLL">False</VersionInfo><VersionInfo Name="Locale">3082</VersionInfo><VersionInfo Name="CodePage">1252</VersionInfo></VersionInfo><VersionInfoKeys><VersionInfoKeys Name="CompanyName">Rodax Software S.L.</VersionInfoKeys><VersionInfoKeys Name="FileDescription"></VersionInfoKeys><VersionInfoKeys Name="FileVersion">2.3.4.0</VersionInfoKeys><VersionInfoKeys Name="InternalName"></VersionInfoKeys><VersionInfoKeys Name="LegalCopyright"></VersionInfoKeys><VersionInfoKeys Name="LegalTrademarks"></VersionInfoKeys><VersionInfoKeys Name="OriginalFilename"></VersionInfoKeys><VersionInfoKeys Name="ProductName">FactuGES Servidor</VersionInfoKeys><VersionInfoKeys Name="ProductVersion">2.3.4.0</VersionInfoKeys><VersionInfoKeys Name="Comments"></VersionInfoKeys><VersionInfoKeys Name="CompileDate">miércoles, 17 de junio de 2020 17:22</VersionInfoKeys></VersionInfoKeys><Excluded_Packages>
|
||||
<BorlandProject><Delphi.Personality><Parameters><Parameters Name="UseLauncher">False</Parameters><Parameters Name="LoadAllSymbols">True</Parameters><Parameters Name="LoadUnspecifiedSymbols">False</Parameters><Parameters Name="RunParams">/standalone</Parameters></Parameters><VersionInfo><VersionInfo Name="IncludeVerInfo">True</VersionInfo><VersionInfo Name="AutoIncBuild">False</VersionInfo><VersionInfo Name="MajorVer">2</VersionInfo><VersionInfo Name="MinorVer">4</VersionInfo><VersionInfo Name="Release">0</VersionInfo><VersionInfo Name="Build">0</VersionInfo><VersionInfo Name="Debug">False</VersionInfo><VersionInfo Name="PreRelease">False</VersionInfo><VersionInfo Name="Special">False</VersionInfo><VersionInfo Name="Private">False</VersionInfo><VersionInfo Name="DLL">False</VersionInfo><VersionInfo Name="Locale">3082</VersionInfo><VersionInfo Name="CodePage">1252</VersionInfo></VersionInfo><VersionInfoKeys><VersionInfoKeys Name="CompanyName">Rodax Software S.L.</VersionInfoKeys><VersionInfoKeys Name="FileDescription"></VersionInfoKeys><VersionInfoKeys Name="FileVersion">2.4.0.0</VersionInfoKeys><VersionInfoKeys Name="InternalName"></VersionInfoKeys><VersionInfoKeys Name="LegalCopyright"></VersionInfoKeys><VersionInfoKeys Name="LegalTrademarks"></VersionInfoKeys><VersionInfoKeys Name="OriginalFilename"></VersionInfoKeys><VersionInfoKeys Name="ProductName">FactuGES Servidor</VersionInfoKeys><VersionInfoKeys Name="ProductVersion">2.4.0.0</VersionInfoKeys><VersionInfoKeys Name="Comments"></VersionInfoKeys><VersionInfoKeys Name="CompileDate">viernes, 03 de septiembre de 2021 19:33</VersionInfoKeys></VersionInfoKeys><Excluded_Packages>
|
||||
<Excluded_Packages Name="C:\Documents and Settings\All Users\Documentos\RAD Studio\5.0\Bpl\dxPSCoreD11.bpl">ExpressPrinting System by Developer Express Inc.</Excluded_Packages>
|
||||
</Excluded_Packages><Source><Source Name="MainSource">FactuGES_Server.dpr</Source></Source></Delphi.Personality></BorlandProject></BorlandProject>
|
||||
</ProjectExtensions>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
MAINICON ICON "C:\Codigo tecsitel\Resources\Iconos\Servidor.ico"
|
||||
1 VERSIONINFO
|
||||
FILEVERSION 2,3,4,0
|
||||
PRODUCTVERSION 2,3,4,0
|
||||
FILEVERSION 2,4,0,0
|
||||
PRODUCTVERSION 2,4,0,0
|
||||
FILEFLAGSMASK 0x3FL
|
||||
FILEFLAGS 0x00L
|
||||
FILEOS 0x40004L
|
||||
@ -13,10 +13,10 @@ BEGIN
|
||||
BLOCK "0C0A04E4"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "Rodax Software S.L.\0"
|
||||
VALUE "FileVersion", "2.3.4.0\0"
|
||||
VALUE "FileVersion", "2.4.0.0\0"
|
||||
VALUE "ProductName", "FactuGES Servidor\0"
|
||||
VALUE "ProductVersion", "2.3.4.0\0"
|
||||
VALUE "CompileDate", "miércoles, 07 de octubre de 2020 18:37\0"
|
||||
VALUE "ProductVersion", "2.4.0.0\0"
|
||||
VALUE "CompileDate", "miércoles, 08 de septiembre de 2021 18:46\0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
|
||||
@ -167,10 +167,13 @@ begin
|
||||
FEscribirLog := TCriticalSection.Create;
|
||||
|
||||
JvLogFile1.Active := False;
|
||||
// JvLogFile1.FileName := ExtractFilePath(Application.ExeName) + 'ServerLog.txt';
|
||||
// JvLogFile1.AutoSave := True;
|
||||
// JvLogFile1.Active := True;
|
||||
// JvLogFile1.Clear;
|
||||
|
||||
{
|
||||
JvLogFile1.FileName := ExtractFilePath(Application.ExeName) + 'ServerLog.txt';
|
||||
JvLogFile1.AutoSave := True;
|
||||
JvLogFile1.Active := True;
|
||||
JvLogFile1.Clear;
|
||||
}
|
||||
end;
|
||||
|
||||
procedure TdmServer.DataModuleCreate(Sender: TObject);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user