Se habilita la impresion de fichas de empleado, etiquetas de cliente, listados, facturas de cliente
git-svn-id: https://192.168.0.254/svn/Proyectos.Acana_FactuGES2/trunk@95 f4e31baf-9722-1c47-927c-6f952f962d4b
This commit is contained in:
parent
2d1957540b
commit
68e3976390
@ -44,6 +44,13 @@
|
|||||||
<Borland.ProjectType>Package</Borland.ProjectType>
|
<Borland.ProjectType>Package</Borland.ProjectType>
|
||||||
<BorlandProject>
|
<BorlandProject>
|
||||||
<BorlandProject><Delphi.Personality><Parameters><Parameters Name="UseLauncher">False</Parameters><Parameters Name="LoadAllSymbols">True</Parameters><Parameters Name="LoadUnspecifiedSymbols">False</Parameters></Parameters><Package_Options><Package_Options Name="PackageDescription">Libreria base de FactuGES</Package_Options><Package_Options Name="ImplicitBuild">True</Package_Options><Package_Options Name="DesigntimeOnly">False</Package_Options><Package_Options Name="RuntimeOnly">False</Package_Options></Package_Options><VersionInfo><VersionInfo Name="IncludeVerInfo">True</VersionInfo><VersionInfo Name="AutoIncBuild">False</VersionInfo><VersionInfo Name="MajorVer">1</VersionInfo><VersionInfo Name="MinorVer">0</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"></VersionInfoKeys><VersionInfoKeys Name="FileDescription"></VersionInfoKeys><VersionInfoKeys Name="FileVersion">1.0.0.0</VersionInfoKeys><VersionInfoKeys Name="InternalName"></VersionInfoKeys><VersionInfoKeys Name="LegalCopyright"></VersionInfoKeys><VersionInfoKeys Name="LegalTrademarks"></VersionInfoKeys><VersionInfoKeys Name="OriginalFilename"></VersionInfoKeys><VersionInfoKeys Name="ProductName"></VersionInfoKeys><VersionInfoKeys Name="ProductVersion">1.0.0.0</VersionInfoKeys></VersionInfoKeys><Excluded_Packages>
|
<BorlandProject><Delphi.Personality><Parameters><Parameters Name="UseLauncher">False</Parameters><Parameters Name="LoadAllSymbols">True</Parameters><Parameters Name="LoadUnspecifiedSymbols">False</Parameters></Parameters><Package_Options><Package_Options Name="PackageDescription">Libreria base de FactuGES</Package_Options><Package_Options Name="ImplicitBuild">True</Package_Options><Package_Options Name="DesigntimeOnly">False</Package_Options><Package_Options Name="RuntimeOnly">False</Package_Options></Package_Options><VersionInfo><VersionInfo Name="IncludeVerInfo">True</VersionInfo><VersionInfo Name="AutoIncBuild">False</VersionInfo><VersionInfo Name="MajorVer">1</VersionInfo><VersionInfo Name="MinorVer">0</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"></VersionInfoKeys><VersionInfoKeys Name="FileDescription"></VersionInfoKeys><VersionInfoKeys Name="FileVersion">1.0.0.0</VersionInfoKeys><VersionInfoKeys Name="InternalName"></VersionInfoKeys><VersionInfoKeys Name="LegalCopyright"></VersionInfoKeys><VersionInfoKeys Name="LegalTrademarks"></VersionInfoKeys><VersionInfoKeys Name="OriginalFilename"></VersionInfoKeys><VersionInfoKeys Name="ProductName"></VersionInfoKeys><VersionInfoKeys Name="ProductVersion">1.0.0.0</VersionInfoKeys></VersionInfoKeys><Excluded_Packages>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<Excluded_Packages Name="$(BDS)\Bin\dclintraweb_90_100.bpl">VCL for the Web Design Package for CodeGear RAD Studio</Excluded_Packages>
|
<Excluded_Packages Name="$(BDS)\Bin\dclintraweb_90_100.bpl">VCL for the Web Design Package for CodeGear RAD Studio</Excluded_Packages>
|
||||||
<Excluded_Packages Name="$(BDS)\bin\dclwebsnap100.bpl">CodeGear WebSnap Components</Excluded_Packages>
|
<Excluded_Packages Name="$(BDS)\bin\dclwebsnap100.bpl">CodeGear WebSnap Components</Excluded_Packages>
|
||||||
<Excluded_Packages Name="$(BDS)\bin\dclsoap100.bpl">CodeGear SOAP Components</Excluded_Packages>
|
<Excluded_Packages Name="$(BDS)\bin\dclsoap100.bpl">CodeGear SOAP Components</Excluded_Packages>
|
||||||
@ -58,46 +65,46 @@
|
|||||||
<DelphiCompile Include="Base.dpk">
|
<DelphiCompile Include="Base.dpk">
|
||||||
<MainSource>MainSource</MainSource>
|
<MainSource>MainSource</MainSource>
|
||||||
</DelphiCompile>
|
</DelphiCompile>
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\adortl.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\adortl.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\cxIntl6D11.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\cxIntl6D11.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\cxIntlPrintSys3D11.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\cxIntlPrintSys3D11.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\DataAbstract_Core_D11.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\DataAbstract_Core_D11.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\dbrtl.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\dbrtl.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\dclIndyCore.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\dclIndyCore.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\designide.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\designide.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\dsnap.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\dsnap.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\GUISDK_D11.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\GUISDK_D11.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\IndyCore.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\IndyCore.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\IndyProtocols.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\IndyProtocols.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\IndySystem.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\IndySystem.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\Jcl.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\Jcl.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\JclVcl.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\JclVcl.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\JSDialog100.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\JSDialog100.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\JvCmpD11R.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\JvCmpD11R.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\JvCoreD11R.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\JvCoreD11R.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\JvCtrlsD11R.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\JvCtrlsD11R.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\JvDlgsD11R.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\JvDlgsD11R.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\JvMMD11R.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\JvMMD11R.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\JvNetD11R.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\JvNetD11R.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\JvPageCompsD11R.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\JvPageCompsD11R.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\JvStdCtrlsD11R.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\JvStdCtrlsD11R.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\JvSystemD11R.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\JvSystemD11R.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\pckMD5.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\pckMD5.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\pckUCDataConnector.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\pckUCDataConnector.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\pckUserControl_RT.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\pckUserControl_RT.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\PngComponentsD10.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\PngComponentsD10.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\PNG_D10.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\PNG_D10.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\RemObjects_Core_D11.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\RemObjects_Core_D11.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\rtl.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\rtl.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\TB2k_D10.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\TB2k_D10.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\tbx_d10.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\tbx_d10.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\vcl.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\vcl.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\vclactnband.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\vclactnband.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\vcldb.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\vcldb.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\vcljpg.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\vcljpg.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\VclSmp.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\VclSmp.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\vclx.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\vclx.dcp" />
|
||||||
<DCCReference Include="..\..\Output\Debug\Servidor\Informes\xmlrtl.dcp" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\xmlrtl.dcp" />
|
||||||
<DCCReference Include="..\Servicios\FactuGES_Intf.pas" />
|
<DCCReference Include="..\Servicios\FactuGES_Intf.pas" />
|
||||||
<DCCReference Include="Conexion\uConfigurarConexion.pas">
|
<DCCReference Include="Conexion\uConfigurarConexion.pas">
|
||||||
<Form>fConfigurarConexion</Form>
|
<Form>fConfigurarConexion</Form>
|
||||||
|
|||||||
Binary file not shown.
@ -79,42 +79,43 @@ inherited frViewSubCuenta: TfrViewSubCuenta
|
|||||||
Width = 25
|
Width = 25
|
||||||
Height = 25
|
Height = 25
|
||||||
Action = actCuenta
|
Action = actCuenta
|
||||||
|
Caption = 'Cuenta'
|
||||||
TabOrder = 3
|
TabOrder = 3
|
||||||
Glyph.Data = {
|
Glyph.Data = {
|
||||||
36040000424D3604000000000000360000002800000010000000100000000100
|
36040000424D3604000000000000360000002800000010000000100000000100
|
||||||
2000000000000004000000000000000000000000000000000000FF00FF00F81B
|
2000000000000004000000000000000000000000000000000000FF00FF00F818
|
||||||
F400C526AD00B10F9600BA18A000B917A000BA18A000B817A000BB18A000C61C
|
F300CB29B600BD19A500C01CA800BF1CA800C01CA800BF1CA800C11CA800CB20
|
||||||
9F00B917A000B8189E009D186E00A01B7500E20CD700FF00FF00FF00FF00E83E
|
A700BF1CA800C01CA800B11C8E00A5197800E00BD200FF00FF00FF00FF00EA39
|
||||||
DB00D4C6BC00BFADA200BBA79900BCA99A00BBA69800BBA69800BAA79900B3A5
|
DE00CEBEB400BBA89B00B8A49600B8A39700B7A29400B7A29400B7A39500B3A2
|
||||||
9900B19386006C100D00781924007212190099125900FF00FF00FF00FF00E833
|
9500B8A3950097635A00660503007F1F2F0077092100CC02AB00FF00FF00EB34
|
||||||
DB00F2EAE500FFFFFF00FBF6F300FAF3EE00F6EDE700F7EEE900F9EFEA00F9F0
|
DF00EBE2DA00FBF6F300F4ECE900F2E9E300EFE5DE00F0E5DF00F0E6E000F1E6
|
||||||
EA00F9F0EB00B37D7E00F083E400F548EE008F044600D602BC00FF00FF00EA35
|
E000EFE5DF006F141200C767A300F159E800F401EE00AD037900FF00FF00EC35
|
||||||
DD00E9DFD900FAF7F400EFE8E300EDE4DF00ECE3DD00EDE5DF00EDE4DF00EDE4
|
E000E8DED800F5F0ED00EFE7E300ECE4DF00EBE2DD00EDE4DE00ECE3DE00ECE3
|
||||||
DF00ECE4DE00EDE5E000F3ECE600F7B2F000B7038900B7038900FF00FF00EA35
|
DE00D1B7B20078232000EFE7E200F4A9EB00FF00FF00FF00FF00FF00FF00EC35
|
||||||
DD00EBE2DD00FDFAFA00F1EBE700EFE7E300EDE6E100EDE6E100EDE6E100EDE6
|
E000EAE1DB00F8F5F300F3ECE800EFE8E400EEE5E100EDE6E100EDE6E100EDE6
|
||||||
E100EDE6E100EDE6E100ECE5DF00F0A7E400AD037900A3036800FF00FF00ED37
|
E100C9AAA6008A413E00EDE5E000F29EE800FF00FF00FF00FF00FF00FF00ED36
|
||||||
DD00EBE4E000FFFFFF00F5EFED00F2ECE900EFEAE500EFEAE500EFEAE500F0EA
|
E000ECE5E000FCFAF900F5F1EE00F3EDEA00F1EAE600F0EAE600F0EAE600F0EA
|
||||||
E500EFEAE500EFEAE500C29599008E26460066050300CC02AB00FF00FF00ED2E
|
E600CBADA9008B424000F0EAE500F7A7F400FF00FF00FF00FF00FF00FF00EA32
|
||||||
E100FFF4E800FFFFFF00FFFFFA00FFF9F300FFF5ED00FFF4ED00F3EDE900F1EC
|
E100F6ECE500FFFFFF00FCF8F600F9F3EF00F5EDE900F5EEE900F3ECE900F2EC
|
||||||
E900F2ECE900D6BEBB0066050300A30D6800D503B900FC03F700F505FA00B728
|
E900F2ECE90066050300F3ECE900FAABFA00FD03FC00FC03F800F705FA00C12A
|
||||||
D000E8DED200EAECEF00E5E5E700E4E1E100DFDBDB00E7E4E200FFF8F300F7F3
|
D800ECE1DB00EFF2F500EBECEE00E9E8EA00E5E4E400E9E7E600FAF4F000F6F3
|
||||||
F100F7F4F100B38482008E464600F996F100FC02F800FC03F7006A67AD000867
|
F000F6F3F00083353200DAC4C200F9A8F400FC02F800FC04F7006572AA000A6D
|
||||||
AF000E7AAF000F7DB0000E7BAF000F7CAF000778AE001C75A300D7E0E100FFF9
|
AE00107DAF00117EB000107DB000107DAF000E7DB0001576A400CFDFE200FBF2
|
||||||
F100F2EEEB00CEB1AE008C444100FFBAFF00FF00FF00F401EE008B94A50068C2
|
ED00F3EFEC00B2827F009F636000FBADFC00FF00FF00FF00FF008596AA0068BB
|
||||||
D80042D8FD003AC5F10032C1EF0028BAEB0023BCF1000080C200559BB800FFFF
|
D3004BD3F60044C7F0003BC3EE0031BDEB002BBAEC000493CD005FA1BC00FFF7
|
||||||
F600F2E9E300EFE6E20079242200D682BC00F401EE00A30368009FB2CB0098B8
|
F000F2EAE600E7DAD50082333100B65E8600FF00FF00D602BC0095B1C5008DBA
|
||||||
BA0075DBED0068E9FF0061D8F70051D0F30049CDF30020B4E900006FA700D1E3
|
C10070D6EE0064DFFC005AD5F5004DCDF20042C7EF0029B7E9000D80B200C6DE
|
||||||
E300FFFFFB00FFFFFF00D2B7B200700F1700660503008F04460098B9D4008ECE
|
E100FFF7F100F9F5F300D2BDB6007C1B2B00660503007A05250093B7CA008CD1
|
||||||
D30077A7B90064F1FF0063E3FF0055D9FC0049D1F80043D8FF00008ACA0059A0
|
D70079B4C60065E4FF0061DDFB0055D4F70049CEF30040CBF4000C97CF005FA3
|
||||||
C200FBF7F200CCB4A600B09B8B008A245F00FF00FF00FF00FF0099B2CD0096FB
|
C300F6F0EA00D3C1B600B7A3950096326E00FF00FF00FF00FF0094B3C70093F7
|
||||||
FD00859EA90069C4DB0062DEF50061D5F10053CCEE004FCBEE0029C0F2000070
|
FA0084ACB6006CCCE40066D9F50062D4F10056CDEE004EC8EC0032BAE7000F82
|
||||||
B0009E9E9B00B5958300AD988900973F6F00FF00FF00FF00FF0097AAC90098FF
|
B600A1A6A300AF958200A28A7B009B3A7500FE01FE00FF00FF0093B1C60096FF
|
||||||
FF0095E3E30089B1B8007FBFCB007DBECA007BBCCA0073BACC0077ADBC00809A
|
FF0092E1E20088B9C00081BFC9007FBDC9007CBBC90077B9C90078ACBB0085A2
|
||||||
AA00C0BAB600FFFFFF00BB909C00DD0BD100FF00FF00FF00FF008FC2CA0098FF
|
B200C1BBB700FCF4ED00B7849600D910CB00FF00FF00FF00FF008FBAC60096FF
|
||||||
FF0097FFFF0098F3F20096B4B50095B1B40095B5B8008CB2B8008E9EA200F9E6
|
FF0096FFFF0095EDEE0096B7B80097B5B80095B5B80091B3B80095A7AB00E7DD
|
||||||
DD00F7E5DA00A3767700D908CC00FF00FF00FF00FF00FF00FF00AF6FC70094B6
|
D700E5D3C800AA758300DE0BD200FF00FF00FF00FF00FF00FF00AC73C40091B7
|
||||||
C90090B6CA00AB72C200E640D500F04BD800ED4BD600ED4AD600EC4CD700EE53
|
C60090B7C600AA76C200E544D900ED4ADB00EB4ADA00EA4AD900EA4ADA00EC4E
|
||||||
E000E248D100E407DB00FF00FF00FF00FF00FF00FF00FF00FF00}
|
DE00E244D200E30CD900FF00FF00FF00FF00FF00FF00FF00FF00}
|
||||||
Margin = 2
|
Margin = 2
|
||||||
end
|
end
|
||||||
object dxLayoutControlSubCuentaGroup_Root: TdxLayoutGroup
|
object dxLayoutControlSubCuentaGroup_Root: TdxLayoutGroup
|
||||||
@ -167,7 +168,7 @@ inherited frViewSubCuenta: TfrViewSubCuenta
|
|||||||
Top = 144
|
Top = 144
|
||||||
object actCuenta: TAction
|
object actCuenta: TAction
|
||||||
Caption = 'Cuenta'
|
Caption = 'Cuenta'
|
||||||
ImageIndex = 1
|
ImageIndex = 2
|
||||||
OnExecute = actCuentaExecute
|
OnExecute = actCuentaExecute
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@ -3,7 +3,7 @@ unit schContactosClient_Intf;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, DB, SysUtils, uROClasses, uDADataTable, FmtBCD, uROXMLIntf;
|
Classes, DB, schBase_Intf, SysUtils, uROClasses, uDADataTable, FmtBCD, uROXMLIntf;
|
||||||
|
|
||||||
const
|
const
|
||||||
{ Data table rules ids
|
{ Data table rules ids
|
||||||
@ -505,7 +505,7 @@ type
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{ TSubCuentasContactoDataTableRules }
|
{ TSubCuentasContactoDataTableRules }
|
||||||
TSubCuentasContactoDataTableRules = class(TDADataTableRules, ISubCuentasContacto)
|
TSubCuentasContactoDataTableRules = class(TIntfObjectDADataTableRules, ISubCuentasContacto)
|
||||||
private
|
private
|
||||||
protected
|
protected
|
||||||
{ Property getters and setters }
|
{ Property getters and setters }
|
||||||
@ -701,7 +701,7 @@ type
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{ TContactosDataTableRules }
|
{ TContactosDataTableRules }
|
||||||
TContactosDataTableRules = class(TDADataTableRules, IContactos)
|
TContactosDataTableRules = class(TIntfObjectDADataTableRules, IContactos)
|
||||||
private
|
private
|
||||||
f_NOTAS: IROStrings;
|
f_NOTAS: IROStrings;
|
||||||
procedure NOTAS_OnChange(Sender: TObject);
|
procedure NOTAS_OnChange(Sender: TObject);
|
||||||
@ -869,7 +869,7 @@ type
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{ TGruposClienteDataTableRules }
|
{ TGruposClienteDataTableRules }
|
||||||
TGruposClienteDataTableRules = class(TDADataTableRules, IGruposCliente)
|
TGruposClienteDataTableRules = class(TIntfObjectDADataTableRules, IGruposCliente)
|
||||||
private
|
private
|
||||||
protected
|
protected
|
||||||
{ Property getters and setters }
|
{ Property getters and setters }
|
||||||
@ -952,7 +952,7 @@ type
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{ TDatosBancariosDataTableRules }
|
{ TDatosBancariosDataTableRules }
|
||||||
TDatosBancariosDataTableRules = class(TDADataTableRules, IDatosBancarios)
|
TDatosBancariosDataTableRules = class(TIntfObjectDADataTableRules, IDatosBancarios)
|
||||||
private
|
private
|
||||||
protected
|
protected
|
||||||
{ Property getters and setters }
|
{ Property getters and setters }
|
||||||
@ -1244,7 +1244,7 @@ type
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{ TClientesDataTableRules }
|
{ TClientesDataTableRules }
|
||||||
TClientesDataTableRules = class(TDADataTableRules, IClientes)
|
TClientesDataTableRules = class(TIntfObjectDADataTableRules, IClientes)
|
||||||
private
|
private
|
||||||
f_NOTAS: IROStrings;
|
f_NOTAS: IROStrings;
|
||||||
procedure NOTAS_OnChange(Sender: TObject);
|
procedure NOTAS_OnChange(Sender: TObject);
|
||||||
@ -1687,7 +1687,7 @@ type
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{ TProveedoresDataTableRules }
|
{ TProveedoresDataTableRules }
|
||||||
TProveedoresDataTableRules = class(TDADataTableRules, IProveedores)
|
TProveedoresDataTableRules = class(TIntfObjectDADataTableRules, IProveedores)
|
||||||
private
|
private
|
||||||
f_NOTAS: IROStrings;
|
f_NOTAS: IROStrings;
|
||||||
procedure NOTAS_OnChange(Sender: TObject);
|
procedure NOTAS_OnChange(Sender: TObject);
|
||||||
@ -2090,7 +2090,7 @@ type
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{ TEmpleadosDataTableRules }
|
{ TEmpleadosDataTableRules }
|
||||||
TEmpleadosDataTableRules = class(TDADataTableRules, IEmpleados)
|
TEmpleadosDataTableRules = class(TIntfObjectDADataTableRules, IEmpleados)
|
||||||
private
|
private
|
||||||
f_NOTAS: IROStrings;
|
f_NOTAS: IROStrings;
|
||||||
f_FORMACION_BASE: IROStrings;
|
f_FORMACION_BASE: IROStrings;
|
||||||
@ -2393,7 +2393,7 @@ type
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{ TDireccionesContactoDataTableRules }
|
{ TDireccionesContactoDataTableRules }
|
||||||
TDireccionesContactoDataTableRules = class(TDADataTableRules, IDireccionesContacto)
|
TDireccionesContactoDataTableRules = class(TIntfObjectDADataTableRules, IDireccionesContacto)
|
||||||
private
|
private
|
||||||
f_NOTAS: IROStrings;
|
f_NOTAS: IROStrings;
|
||||||
procedure NOTAS_OnChange(Sender: TObject);
|
procedure NOTAS_OnChange(Sender: TObject);
|
||||||
@ -2543,7 +2543,7 @@ type
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{ TClientesDescuentosDataTableRules }
|
{ TClientesDescuentosDataTableRules }
|
||||||
TClientesDescuentosDataTableRules = class(TDADataTableRules, IClientesDescuentos)
|
TClientesDescuentosDataTableRules = class(TIntfObjectDADataTableRules, IClientesDescuentos)
|
||||||
private
|
private
|
||||||
protected
|
protected
|
||||||
{ Property getters and setters }
|
{ Property getters and setters }
|
||||||
@ -2602,7 +2602,7 @@ type
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{ TProcedenciasClienteDataTableRules }
|
{ TProcedenciasClienteDataTableRules }
|
||||||
TProcedenciasClienteDataTableRules = class(TDADataTableRules, IProcedenciasCliente)
|
TProcedenciasClienteDataTableRules = class(TIntfObjectDADataTableRules, IProcedenciasCliente)
|
||||||
private
|
private
|
||||||
protected
|
protected
|
||||||
{ Property getters and setters }
|
{ Property getters and setters }
|
||||||
@ -2637,7 +2637,7 @@ type
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{ TGruposProveedorDataTableRules }
|
{ TGruposProveedorDataTableRules }
|
||||||
TGruposProveedorDataTableRules = class(TDADataTableRules, IGruposProveedor)
|
TGruposProveedorDataTableRules = class(TIntfObjectDADataTableRules, IGruposProveedor)
|
||||||
private
|
private
|
||||||
protected
|
protected
|
||||||
{ Property getters and setters }
|
{ Property getters and setters }
|
||||||
@ -2672,7 +2672,7 @@ type
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{ TGruposEmpleadoDataTableRules }
|
{ TGruposEmpleadoDataTableRules }
|
||||||
TGruposEmpleadoDataTableRules = class(TDADataTableRules, IGruposEmpleado)
|
TGruposEmpleadoDataTableRules = class(TIntfObjectDADataTableRules, IGruposEmpleado)
|
||||||
private
|
private
|
||||||
protected
|
protected
|
||||||
{ Property getters and setters }
|
{ Property getters and setters }
|
||||||
@ -2826,7 +2826,7 @@ type
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{ TContactos_RefreshDataTableRules }
|
{ TContactos_RefreshDataTableRules }
|
||||||
TContactos_RefreshDataTableRules = class(TDADataTableRules, IContactos_Refresh)
|
TContactos_RefreshDataTableRules = class(TIntfObjectDADataTableRules, IContactos_Refresh)
|
||||||
private
|
private
|
||||||
f_NOTAS: IROStrings;
|
f_NOTAS: IROStrings;
|
||||||
procedure NOTAS_OnChange(Sender: TObject);
|
procedure NOTAS_OnChange(Sender: TObject);
|
||||||
|
|||||||
@ -1,949 +0,0 @@
|
|||||||
object RptFichasEmpleado: TRptFichasEmpleado
|
|
||||||
OldCreateOrder = True
|
|
||||||
OnCreate = DataModuleCreate
|
|
||||||
Height = 405
|
|
||||||
Width = 447
|
|
||||||
object DADataCabecera: TDADataSource
|
|
||||||
DataTable = tbl_FichaEmpleado
|
|
||||||
Left = 264
|
|
||||||
Top = 72
|
|
||||||
end
|
|
||||||
object tbl_FichaEmpleado: TDACDSDataTable
|
|
||||||
RemoteUpdatesOptions = []
|
|
||||||
Fields = <>
|
|
||||||
Params = <>
|
|
||||||
MasterMappingMode = mmDataRequest
|
|
||||||
LogChanges = False
|
|
||||||
StreamingOptions = [soDisableEventsWhileStreaming]
|
|
||||||
RemoteFetchEnabled = False
|
|
||||||
SchemaCall.Params = <>
|
|
||||||
DataRequestCall.Params = <>
|
|
||||||
DataUpdateCall.Params = <>
|
|
||||||
ScriptCall.Params = <>
|
|
||||||
ReadOnly = False
|
|
||||||
DetailOptions = [dtCascadeOpenClose, dtCascadeApplyUpdates, dtAutoFetch, dtCascadeDelete, dtCascadeUpdate, dtDisableLogOfCascadeDeletes, dtDisableLogOfCascadeUpdates, dtIncludeInAllInOneFetch]
|
|
||||||
MasterOptions = [moCascadeOpenClose, moCascadeApplyUpdates, moCascadeDelete, moCascadeUpdate, moDisableLogOfCascadeDeletes, moDisableLogOfCascadeUpdates]
|
|
||||||
IndexDefs = <>
|
|
||||||
Left = 264
|
|
||||||
Top = 128
|
|
||||||
end
|
|
||||||
object DABINAdapter: TDABINAdapter
|
|
||||||
Left = 48
|
|
||||||
Top = 80
|
|
||||||
end
|
|
||||||
object frxRichObject1: TfrxRichObject
|
|
||||||
Left = 48
|
|
||||||
Top = 296
|
|
||||||
end
|
|
||||||
object frxBarCodeObject1: TfrxBarCodeObject
|
|
||||||
Left = 144
|
|
||||||
Top = 296
|
|
||||||
end
|
|
||||||
object frxOLEObject1: TfrxOLEObject
|
|
||||||
Left = 48
|
|
||||||
Top = 344
|
|
||||||
end
|
|
||||||
object frxCrossObject1: TfrxCrossObject
|
|
||||||
Left = 144
|
|
||||||
Top = 344
|
|
||||||
end
|
|
||||||
object frxCheckBoxObject1: TfrxCheckBoxObject
|
|
||||||
Left = 256
|
|
||||||
Top = 296
|
|
||||||
end
|
|
||||||
object frxGradientObject1: TfrxGradientObject
|
|
||||||
Left = 360
|
|
||||||
Top = 296
|
|
||||||
end
|
|
||||||
object frxChartObject1: TfrxChartObject
|
|
||||||
Left = 256
|
|
||||||
Top = 344
|
|
||||||
end
|
|
||||||
object schReport: TDASchema
|
|
||||||
ConnectionManager = dmServer.ConnectionManager
|
|
||||||
DataDictionary = DataDictionary
|
|
||||||
Datasets = <
|
|
||||||
item
|
|
||||||
Params = <
|
|
||||||
item
|
|
||||||
Name = 'ID'
|
|
||||||
DataType = datInteger
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
Value = ''
|
|
||||||
ParamType = daptInput
|
|
||||||
end>
|
|
||||||
Statements = <
|
|
||||||
item
|
|
||||||
Connection = 'IBX'
|
|
||||||
TargetTable = 'V_EMPLEADOS'
|
|
||||||
SQL =
|
|
||||||
'select'#10' ID,'#10' ID_CATEGORIA,'#10' NIF_CIF,'#10' NOMBRE,'#10' PE' +
|
|
||||||
'RSONA_CONTACTO,'#10' CALLE,'#10' POBLACION,'#10' PROVINCIA,'#10' COD' +
|
|
||||||
'IGO_POSTAL,'#10' TELEFONO_1,'#10' TELEFONO_2,'#10' MOVIL_1,'#10' MOV' +
|
|
||||||
'IL_2,'#10' FAX,'#10' EMAIL_1,'#10' EMAIL_2,'#10' PAGINA_WEB,'#10' NOT' +
|
|
||||||
'AS,'#10' FECHA_ALTA,'#10' FECHA_MODIFICACION,'#10' USUARIO,'#10' ID_' +
|
|
||||||
'EMPRESA,'#10' REFERENCIA,'#10' FECHA_NACIMIENTO,'#10' CATEGORIA,'#10' ' +
|
|
||||||
' FECHA_ALTA_EMPRESA,'#10' FORMACION_BASE,'#10' FORMACION_COMPLE,'#10 +
|
|
||||||
' FORMACION_RECIBIDA,'#10' EXPERIENCIA'#10'from V_EMPLEADOS'#10'where I' +
|
|
||||||
'D = :ID'
|
|
||||||
StatementType = stSQL
|
|
||||||
ColumnMappings = <
|
|
||||||
item
|
|
||||||
DatasetField = 'ID'
|
|
||||||
TableField = 'ID'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'ID_CATEGORIA'
|
|
||||||
TableField = 'ID_CATEGORIA'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'NIF_CIF'
|
|
||||||
TableField = 'NIF_CIF'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'NOMBRE'
|
|
||||||
TableField = 'NOMBRE'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'PERSONA_CONTACTO'
|
|
||||||
TableField = 'PERSONA_CONTACTO'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'CALLE'
|
|
||||||
TableField = 'CALLE'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'POBLACION'
|
|
||||||
TableField = 'POBLACION'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'PROVINCIA'
|
|
||||||
TableField = 'PROVINCIA'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'CODIGO_POSTAL'
|
|
||||||
TableField = 'CODIGO_POSTAL'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'TELEFONO_1'
|
|
||||||
TableField = 'TELEFONO_1'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'TELEFONO_2'
|
|
||||||
TableField = 'TELEFONO_2'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'MOVIL_1'
|
|
||||||
TableField = 'MOVIL_1'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'MOVIL_2'
|
|
||||||
TableField = 'MOVIL_2'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'FAX'
|
|
||||||
TableField = 'FAX'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'EMAIL_1'
|
|
||||||
TableField = 'EMAIL_1'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'EMAIL_2'
|
|
||||||
TableField = 'EMAIL_2'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'PAGINA_WEB'
|
|
||||||
TableField = 'PAGINA_WEB'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'NOTAS'
|
|
||||||
TableField = 'NOTAS'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'FECHA_ALTA'
|
|
||||||
TableField = 'FECHA_ALTA'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'FECHA_MODIFICACION'
|
|
||||||
TableField = 'FECHA_MODIFICACION'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'USUARIO'
|
|
||||||
TableField = 'USUARIO'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'ID_EMPRESA'
|
|
||||||
TableField = 'ID_EMPRESA'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'REFERENCIA'
|
|
||||||
TableField = 'REFERENCIA'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'FECHA_NACIMIENTO'
|
|
||||||
TableField = 'FECHA_NACIMIENTO'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'CATEGORIA'
|
|
||||||
TableField = 'CATEGORIA'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'FECHA_ALTA_EMPRESA'
|
|
||||||
TableField = 'FECHA_ALTA_EMPRESA'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'FORMACION_BASE'
|
|
||||||
TableField = 'FORMACION_BASE'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'FORMACION_COMPLE'
|
|
||||||
TableField = 'FORMACION_COMPLE'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'FORMACION_RECIBIDA'
|
|
||||||
TableField = 'FORMACION_RECIBIDA'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'EXPERIENCIA'
|
|
||||||
TableField = 'EXPERIENCIA'
|
|
||||||
end>
|
|
||||||
end>
|
|
||||||
Name = 'InformeFichasEmpleado'
|
|
||||||
Fields = <
|
|
||||||
item
|
|
||||||
Name = 'ID'
|
|
||||||
DataType = datInteger
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'ID_CATEGORIA'
|
|
||||||
DataType = datInteger
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'NIF_CIF'
|
|
||||||
DataType = datString
|
|
||||||
Size = 15
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'NOMBRE'
|
|
||||||
DataType = datString
|
|
||||||
Size = 255
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'PERSONA_CONTACTO'
|
|
||||||
DataType = datString
|
|
||||||
Size = 255
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'CALLE'
|
|
||||||
DataType = datString
|
|
||||||
Size = 255
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'POBLACION'
|
|
||||||
DataType = datString
|
|
||||||
Size = 255
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'PROVINCIA'
|
|
||||||
DataType = datString
|
|
||||||
Size = 255
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'CODIGO_POSTAL'
|
|
||||||
DataType = datString
|
|
||||||
Size = 10
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'TELEFONO_1'
|
|
||||||
DataType = datString
|
|
||||||
Size = 25
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'TELEFONO_2'
|
|
||||||
DataType = datString
|
|
||||||
Size = 25
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'MOVIL_1'
|
|
||||||
DataType = datString
|
|
||||||
Size = 25
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'MOVIL_2'
|
|
||||||
DataType = datString
|
|
||||||
Size = 25
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FAX'
|
|
||||||
DataType = datString
|
|
||||||
Size = 25
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'EMAIL_1'
|
|
||||||
DataType = datString
|
|
||||||
Size = 255
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'EMAIL_2'
|
|
||||||
DataType = datString
|
|
||||||
Size = 255
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'PAGINA_WEB'
|
|
||||||
DataType = datString
|
|
||||||
Size = 255
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'NOTAS'
|
|
||||||
DataType = datMemo
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FECHA_ALTA'
|
|
||||||
DataType = datDateTime
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FECHA_MODIFICACION'
|
|
||||||
DataType = datDateTime
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'USUARIO'
|
|
||||||
DataType = datString
|
|
||||||
Size = 20
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'ID_EMPRESA'
|
|
||||||
DataType = datInteger
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'REFERENCIA'
|
|
||||||
DataType = datString
|
|
||||||
Size = 255
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FECHA_NACIMIENTO'
|
|
||||||
DataType = datDateTime
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'CATEGORIA'
|
|
||||||
DataType = datString
|
|
||||||
Size = 255
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FECHA_ALTA_EMPRESA'
|
|
||||||
DataType = datDateTime
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FORMACION_BASE'
|
|
||||||
DataType = datMemo
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FORMACION_COMPLE'
|
|
||||||
DataType = datMemo
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FORMACION_RECIBIDA'
|
|
||||||
DataType = datMemo
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'EXPERIENCIA'
|
|
||||||
DataType = datMemo
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end>
|
|
||||||
BusinessRulesClient.ScriptLanguage = rslPascalScript
|
|
||||||
BusinessRulesServer.ScriptLanguage = rslPascalScript
|
|
||||||
end>
|
|
||||||
Commands = <>
|
|
||||||
RelationShips = <>
|
|
||||||
UpdateRules = <>
|
|
||||||
Left = 48
|
|
||||||
Top = 16
|
|
||||||
end
|
|
||||||
object DataDictionary: TDADataDictionary
|
|
||||||
Fields = <
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_ID'
|
|
||||||
DataType = datAutoInc
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
Required = True
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'ID'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_ID_EMPRESA'
|
|
||||||
DataType = datInteger
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'ID_EMPRESA'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_ID_CONTRATO'
|
|
||||||
DataType = datInteger
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'ID_CONTRATO'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_FECHA_FACTURA'
|
|
||||||
DataType = datDateTime
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Fecha de las factura'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_VENCIMIENTO'
|
|
||||||
DataType = datInteger
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Vencimiento'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_SITUACION'
|
|
||||||
DataType = datString
|
|
||||||
Size = 255
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Situaci'#243'n'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_BASE_IMPONIBLE'
|
|
||||||
DataType = datFloat
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Base imponible'
|
|
||||||
Alignment = taRightJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_IMPORTE_DESCUENTO'
|
|
||||||
DataType = datFloat
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Importe dto.'
|
|
||||||
Alignment = taRightJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_IMPORTE_IVA'
|
|
||||||
DataType = datFloat
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Importe IVA'
|
|
||||||
Alignment = taRightJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_IMPORTE_TOTAL'
|
|
||||||
DataType = datFloat
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Importe total'
|
|
||||||
Alignment = taRightJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_FORMA_PAGO'
|
|
||||||
DataType = datMemo
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Forma de pago'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_ID_CLIENTE'
|
|
||||||
DataType = datInteger
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'ID_CLIENTE'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_NIF_CIF'
|
|
||||||
DataType = datString
|
|
||||||
Size = 15
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'NIF/CIF'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_CODIGO_POSTAL'
|
|
||||||
DataType = datString
|
|
||||||
Size = 10
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'C'#243'd. postal'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_FECHA_ALTA'
|
|
||||||
DataType = datDateTime
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'FECHA_ALTA'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_FECHA_MODIFICACION'
|
|
||||||
DataType = datDateTime
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'FECHA_MODIFICACION'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_OBSERVACIONES'
|
|
||||||
DataType = datMemo
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Observaciones'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_NOMBRE'
|
|
||||||
DataType = datString
|
|
||||||
Size = 100
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Cliente'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_CALLE'
|
|
||||||
DataType = datString
|
|
||||||
Size = 150
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Direcci'#243'n'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_PROVINCIA'
|
|
||||||
DataType = datString
|
|
||||||
Size = 30
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Provincia'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_POBLACION'
|
|
||||||
DataType = datString
|
|
||||||
Size = 150
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Poblaci'#243'n'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_IVA'
|
|
||||||
DataType = datFloat
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'IVA'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_USUARIO'
|
|
||||||
DataType = datString
|
|
||||||
Size = 100
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'USUARIO'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_REFERENCIA'
|
|
||||||
DataType = datString
|
|
||||||
Size = 20
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Referencia'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_DESCUENTO'
|
|
||||||
DataType = datFloat
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Dto.'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_Detalles_ID'
|
|
||||||
DataType = datAutoInc
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
Required = True
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'ID'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_Detalles_ID_FACTURA'
|
|
||||||
DataType = datInteger
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'ID_FACTURA'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_Detalles_TIPO_DETALLE'
|
|
||||||
DataType = datString
|
|
||||||
Size = 10
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Tipo detalle'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_Detalles_CONCEPTO'
|
|
||||||
DataType = datString
|
|
||||||
Size = 2000
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Concepto'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_Detalles_IMPORTE_UNIDAD'
|
|
||||||
DataType = datFloat
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Importe unidad'
|
|
||||||
Alignment = taRightJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_Detalles_IMPORTE_TOTAL'
|
|
||||||
DataType = datFloat
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Importe total'
|
|
||||||
Alignment = taRightJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_Detalles_VISIBLE'
|
|
||||||
DataType = datInteger
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = #191'Visible?'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_Detalles_POSICION'
|
|
||||||
DataType = datInteger
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Posici'#243'n'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'FacturasCliente_Detalles_CANTIDAD'
|
|
||||||
DataType = datInteger
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Cantidad'
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
end>
|
|
||||||
Left = 46
|
|
||||||
Top = 158
|
|
||||||
end
|
|
||||||
object frxReport: TfrxReport
|
|
||||||
Version = '3.23.7'
|
|
||||||
DotMatrixReport = False
|
|
||||||
EngineOptions.DoublePass = True
|
|
||||||
IniFile = '\Software\Fast Reports'
|
|
||||||
PreviewOptions.Buttons = [pbPrint, pbLoad, pbSave, pbExport, pbZoom, pbFind, pbOutline, pbPageSetup, pbTools, pbEdit, pbNavigator, pbExportQuick]
|
|
||||||
PreviewOptions.Zoom = 1.000000000000000000
|
|
||||||
PrintOptions.Printer = 'Por defecto'
|
|
||||||
ReportOptions.CreateDate = 39065.872423495400000000
|
|
||||||
ReportOptions.LastChange = 39325.839120185180000000
|
|
||||||
ScriptLanguage = 'PascalScript'
|
|
||||||
ScriptText.Strings = (
|
|
||||||
'var'
|
|
||||||
' Pagina: Variant;'
|
|
||||||
''
|
|
||||||
''
|
|
||||||
'procedure DatosEmpresaOnBeforePrint(Sender: TfrxComponent);'
|
|
||||||
'var'
|
|
||||||
' Cadena: String;'
|
|
||||||
'begin'
|
|
||||||
'{'
|
|
||||||
' DatosEmpresa.Lines.Clear;'
|
|
||||||
' if (<frxDBCabecera."TELEFONO_1_EMPRESA"> <> '#39#39') then'
|
|
||||||
' Cadena := '#39'TLF: '#39' + <frxDBCabecera."TELEFONO_1_EMPRESA">;'
|
|
||||||
' if (<frxDBCabecera."FAX_EMPRESA"> <> '#39#39') then'
|
|
||||||
|
|
||||||
' Cadena := Cadena + '#39' FAX: '#39' + <frxDBCabecera."FAX_EMPRESA' +
|
|
||||||
'">;'
|
|
||||||
' DatosEmpresa.Lines.Add(Cadena);'
|
|
||||||
'}'
|
|
||||||
'end;'
|
|
||||||
''
|
|
||||||
'procedure NombreEmpresaOnBeforePrint(Sender: TfrxComponent);'
|
|
||||||
'begin'
|
|
||||||
'// NombreEmpresa.Lines.Clear;'
|
|
||||||
'// NombreEmpresa.Lines.Add(<frxDBCabecera."NOMBRE_EMPRESA">);'
|
|
||||||
'end;'
|
|
||||||
''
|
|
||||||
'procedure PageHeader1OnBeforePrint(Sender: TfrxComponent);'
|
|
||||||
'begin'
|
|
||||||
' if not Engine.FinalPass then'
|
|
||||||
' Set('#39'TotalPaginas'#39', (<TotalPaginas> + 1));'
|
|
||||||
''
|
|
||||||
' if Engine.FinalPass then'
|
|
||||||
' Set('#39'Pagina'#39', (<Pagina> + 1));'
|
|
||||||
'end;'
|
|
||||||
''
|
|
||||||
'procedure frxReportOnStartReport(Sender: TfrxComponent);'
|
|
||||||
'begin'
|
|
||||||
' Set('#39'Pagina'#39', 0);'
|
|
||||||
' Set('#39'TotalPaginas'#39', 0);'
|
|
||||||
'end;'
|
|
||||||
''
|
|
||||||
'begin'
|
|
||||||
''
|
|
||||||
'end.')
|
|
||||||
ShowProgress = False
|
|
||||||
StoreInDFM = False
|
|
||||||
OnStartReport = 'frxReportOnStartReport'
|
|
||||||
Left = 169
|
|
||||||
Top = 16
|
|
||||||
Datasets = <
|
|
||||||
item
|
|
||||||
DataSet = frxDBCabecera
|
|
||||||
DataSetName = 'frxDBCabecera'
|
|
||||||
end>
|
|
||||||
Variables = <
|
|
||||||
item
|
|
||||||
Name = ' Paginacion'
|
|
||||||
Value = Null
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'Pagina'
|
|
||||||
Value = Null
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'TotalPaginas'
|
|
||||||
Value = Null
|
|
||||||
end>
|
|
||||||
Style = <>
|
|
||||||
end
|
|
||||||
object frxDBCabecera: TfrxDBDataset
|
|
||||||
UserName = 'frxDBCabecera'
|
|
||||||
CloseDataSource = True
|
|
||||||
DataSource = DADataCabecera
|
|
||||||
Left = 264
|
|
||||||
Top = 16
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@ -1,108 +0,0 @@
|
|||||||
unit uRptFichasEmpleado_Server;
|
|
||||||
|
|
||||||
interface
|
|
||||||
|
|
||||||
uses
|
|
||||||
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
||||||
Dialogs, frxClass, frxDBSet, uDAScriptingProvider,
|
|
||||||
uDADataTable, uDACDSDataTable, DB, uDAClasses, frxChart, frxGradient,
|
|
||||||
frxChBox, frxCross, frxOLE, frxBarcode, frxRich, uDABINAdapter, uROTypes,
|
|
||||||
uDAInterfaces;
|
|
||||||
|
|
||||||
type
|
|
||||||
TRptFichasEmpleado = class(TDataModule)
|
|
||||||
DADataCabecera: TDADataSource;
|
|
||||||
tbl_FichaEmpleado: TDACDSDataTable;
|
|
||||||
DABINAdapter: TDABINAdapter;
|
|
||||||
frxRichObject1: TfrxRichObject;
|
|
||||||
frxBarCodeObject1: TfrxBarCodeObject;
|
|
||||||
frxOLEObject1: TfrxOLEObject;
|
|
||||||
frxCrossObject1: TfrxCrossObject;
|
|
||||||
frxCheckBoxObject1: TfrxCheckBoxObject;
|
|
||||||
frxGradientObject1: TfrxGradientObject;
|
|
||||||
frxChartObject1: TfrxChartObject;
|
|
||||||
frxDBCabecera: TfrxDBDataset;
|
|
||||||
schReport: TDASchema;
|
|
||||||
DataDictionary: TDADataDictionary;
|
|
||||||
frxReport: TfrxReport;
|
|
||||||
procedure DataModuleCreate(Sender: TObject);
|
|
||||||
private
|
|
||||||
FConnection: IDAConnection;
|
|
||||||
//Genera cada uno de los albaranes a imprimir
|
|
||||||
procedure GenerarFicha(const ID: integer); overload;
|
|
||||||
public
|
|
||||||
function GenerarFicha(const AFichaID : String): Binary; overload;
|
|
||||||
end;
|
|
||||||
|
|
||||||
implementation
|
|
||||||
|
|
||||||
{$R *.dfm}
|
|
||||||
|
|
||||||
uses
|
|
||||||
uDataModuleServer, schContactosClient_Intf;
|
|
||||||
|
|
||||||
const
|
|
||||||
rptFichaEmpleado = 'InfFichaEmpleado.fr3';
|
|
||||||
|
|
||||||
{ Dataset names for schReport }
|
|
||||||
ds_InformeFichaEmpleado = 'InformeFichasEmpleado';
|
|
||||||
|
|
||||||
|
|
||||||
{ TRptFichaEmpleado }
|
|
||||||
|
|
||||||
|
|
||||||
procedure TRptFichasEmpleado.DataModuleCreate(Sender: TObject);
|
|
||||||
begin
|
|
||||||
schReport.ConnectionManager := dmServer.ConnectionManager;
|
|
||||||
FConnection := dmServer.DarNuevaConexion;
|
|
||||||
frxReport.EngineOptions.NewSilentMode := simReThrow;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TRptFichasEmpleado.GenerarFicha(const AFichaID: String): Binary;
|
|
||||||
var
|
|
||||||
ID_Fichas: TStringList;
|
|
||||||
i: Integer;
|
|
||||||
|
|
||||||
begin
|
|
||||||
Result := Binary.Create;
|
|
||||||
FConnection.BeginTransaction;
|
|
||||||
|
|
||||||
try
|
|
||||||
ID_Fichas := TStringList.Create;
|
|
||||||
ID_Fichas.CommaText := AFichaID;
|
|
||||||
|
|
||||||
//Vamos generando todos y cada uno de las fichas de empleado
|
|
||||||
for i := 0 to ID_Fichas.Count - 1 do
|
|
||||||
GenerarFicha(StrToInt(ID_Fichas.Strings[i]));
|
|
||||||
|
|
||||||
frxReport.PreviewPages.SaveToStream(Result);
|
|
||||||
|
|
||||||
finally
|
|
||||||
FConnection.RollbackTransaction;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TRptFichasEmpleado.GenerarFicha(const ID: integer);
|
|
||||||
var
|
|
||||||
AStream: TMemoryStream;
|
|
||||||
dsMaster: IDADataset;
|
|
||||||
begin
|
|
||||||
AStream := TMemoryStream.Create;
|
|
||||||
|
|
||||||
try
|
|
||||||
dsMaster := schReport.NewDataset(FConnection, ds_InformeFichaEmpleado, ['ID'], [ID]);
|
|
||||||
|
|
||||||
AStream.Clear;
|
|
||||||
DABINAdapter.WriteDataset(AStream, dsMaster, [woRows, woSchema], -1);
|
|
||||||
DABINAdapter.ReadDataset(AStream, tbl_FichaEmpleado, TRUE, '', TRUE, TRUE);
|
|
||||||
|
|
||||||
frxReport.LoadFromFile(DarRutaInformes + rptFichaEmpleado, True);
|
|
||||||
frxReport.PrepareReport(False);
|
|
||||||
|
|
||||||
finally
|
|
||||||
AStream.Free;
|
|
||||||
dsMaster := Nil;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
end.
|
|
||||||
@ -4,33 +4,67 @@ object RptEtiquetasContacto: TRptEtiquetasContacto
|
|||||||
Height = 405
|
Height = 405
|
||||||
Width = 447
|
Width = 447
|
||||||
object DADataCabecera: TDADataSource
|
object DADataCabecera: TDADataSource
|
||||||
|
DataSet = tbl_Contactos.Dataset
|
||||||
DataTable = tbl_Contactos
|
DataTable = tbl_Contactos
|
||||||
Left = 264
|
Left = 264
|
||||||
Top = 72
|
Top = 72
|
||||||
end
|
end
|
||||||
object tbl_Contactos: TDACDSDataTable
|
object tbl_Contactos: TDAMemDataTable
|
||||||
RemoteUpdatesOptions = []
|
RemoteUpdatesOptions = []
|
||||||
Fields = <>
|
Fields = <
|
||||||
|
item
|
||||||
|
Name = 'ID'
|
||||||
|
DataType = datInteger
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'NIF_CIF'
|
||||||
|
DataType = datString
|
||||||
|
Size = 15
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'NOMBRE'
|
||||||
|
DataType = datString
|
||||||
|
Size = 255
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'PERSONA_CONTACTO'
|
||||||
|
DataType = datString
|
||||||
|
Size = 255
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'CALLE'
|
||||||
|
DataType = datString
|
||||||
|
Size = 255
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'POBLACION'
|
||||||
|
DataType = datString
|
||||||
|
Size = 255
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'PROVINCIA'
|
||||||
|
DataType = datString
|
||||||
|
Size = 255
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'CODIGO_POSTAL'
|
||||||
|
DataType = datString
|
||||||
|
Size = 10
|
||||||
|
end>
|
||||||
Params = <>
|
Params = <>
|
||||||
MasterMappingMode = mmDataRequest
|
MasterMappingMode = mmDataRequest
|
||||||
LogChanges = False
|
LogChanges = False
|
||||||
StreamingOptions = [soDisableEventsWhileStreaming]
|
StreamingOptions = [soDisableEventsWhileStreaming]
|
||||||
RemoteFetchEnabled = False
|
RemoteFetchEnabled = False
|
||||||
SchemaCall.Params = <>
|
LocalSchema = schReport
|
||||||
DataRequestCall.Params = <>
|
LocalDataStreamer = Bin2DataStreamer
|
||||||
DataUpdateCall.Params = <>
|
|
||||||
ScriptCall.Params = <>
|
|
||||||
ReadOnly = False
|
|
||||||
DetailOptions = [dtCascadeOpenClose, dtCascadeApplyUpdates, dtAutoFetch, dtCascadeDelete, dtCascadeUpdate, dtDisableLogOfCascadeDeletes, dtDisableLogOfCascadeUpdates, dtIncludeInAllInOneFetch]
|
DetailOptions = [dtCascadeOpenClose, dtCascadeApplyUpdates, dtAutoFetch, dtCascadeDelete, dtCascadeUpdate, dtDisableLogOfCascadeDeletes, dtDisableLogOfCascadeUpdates, dtIncludeInAllInOneFetch]
|
||||||
MasterOptions = [moCascadeOpenClose, moCascadeApplyUpdates, moCascadeDelete, moCascadeUpdate, moDisableLogOfCascadeDeletes, moDisableLogOfCascadeUpdates]
|
MasterOptions = [moCascadeOpenClose, moCascadeApplyUpdates, moCascadeDelete, moCascadeUpdate, moDisableLogOfCascadeDeletes, moDisableLogOfCascadeUpdates]
|
||||||
|
LogicalName = 'InformeEtiquetasContacto'
|
||||||
IndexDefs = <>
|
IndexDefs = <>
|
||||||
Left = 264
|
Left = 264
|
||||||
Top = 128
|
Top = 128
|
||||||
end
|
end
|
||||||
object DABINAdapter: TDABINAdapter
|
|
||||||
Left = 48
|
|
||||||
Top = 80
|
|
||||||
end
|
|
||||||
object frxRichObject1: TfrxRichObject
|
object frxRichObject1: TfrxRichObject
|
||||||
Left = 48
|
Left = 48
|
||||||
Top = 296
|
Top = 296
|
||||||
@ -113,104 +147,49 @@ object RptEtiquetasContacto: TRptEtiquetasContacto
|
|||||||
item
|
item
|
||||||
Name = 'ID'
|
Name = 'ID'
|
||||||
DataType = datInteger
|
DataType = datInteger
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'NIF_CIF'
|
Name = 'NIF_CIF'
|
||||||
DataType = datString
|
DataType = datString
|
||||||
Size = 15
|
Size = 15
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'NOMBRE'
|
Name = 'NOMBRE'
|
||||||
DataType = datString
|
DataType = datString
|
||||||
Size = 255
|
Size = 255
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'PERSONA_CONTACTO'
|
Name = 'PERSONA_CONTACTO'
|
||||||
DataType = datString
|
DataType = datString
|
||||||
Size = 255
|
Size = 255
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'CALLE'
|
Name = 'CALLE'
|
||||||
DataType = datString
|
DataType = datString
|
||||||
Size = 255
|
Size = 255
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'POBLACION'
|
Name = 'POBLACION'
|
||||||
DataType = datString
|
DataType = datString
|
||||||
Size = 255
|
Size = 255
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'PROVINCIA'
|
Name = 'PROVINCIA'
|
||||||
DataType = datString
|
DataType = datString
|
||||||
Size = 255
|
Size = 255
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'CODIGO_POSTAL'
|
Name = 'CODIGO_POSTAL'
|
||||||
DataType = datString
|
DataType = datString
|
||||||
Size = 10
|
Size = 10
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end>
|
end>
|
||||||
BusinessRulesClient.ScriptLanguage = rslPascalScript
|
|
||||||
BusinessRulesServer.ScriptLanguage = rslPascalScript
|
|
||||||
end>
|
end>
|
||||||
|
JoinDataTables = <>
|
||||||
|
UnionDataTables = <>
|
||||||
Commands = <>
|
Commands = <>
|
||||||
RelationShips = <>
|
RelationShips = <>
|
||||||
UpdateRules = <>
|
UpdateRules = <>
|
||||||
|
Version = 0
|
||||||
Left = 48
|
Left = 48
|
||||||
Top = 16
|
Top = 16
|
||||||
end
|
end
|
||||||
@ -219,298 +198,203 @@ object RptEtiquetasContacto: TRptEtiquetasContacto
|
|||||||
item
|
item
|
||||||
Name = 'FacturasCliente_ID'
|
Name = 'FacturasCliente_ID'
|
||||||
DataType = datAutoInc
|
DataType = datAutoInc
|
||||||
BlobType = dabtUnknown
|
|
||||||
Required = True
|
Required = True
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'ID'
|
DisplayLabel = 'ID'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_ID_EMPRESA'
|
Name = 'FacturasCliente_ID_EMPRESA'
|
||||||
DataType = datInteger
|
DataType = datInteger
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'ID_EMPRESA'
|
DisplayLabel = 'ID_EMPRESA'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_ID_CONTRATO'
|
Name = 'FacturasCliente_ID_CONTRATO'
|
||||||
DataType = datInteger
|
DataType = datInteger
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'ID_CONTRATO'
|
DisplayLabel = 'ID_CONTRATO'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_FECHA_FACTURA'
|
Name = 'FacturasCliente_FECHA_FACTURA'
|
||||||
DataType = datDateTime
|
DataType = datDateTime
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Fecha de las factura'
|
DisplayLabel = 'Fecha de las factura'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_VENCIMIENTO'
|
Name = 'FacturasCliente_VENCIMIENTO'
|
||||||
DataType = datInteger
|
DataType = datInteger
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Vencimiento'
|
DisplayLabel = 'Vencimiento'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_SITUACION'
|
Name = 'FacturasCliente_SITUACION'
|
||||||
DataType = datString
|
DataType = datString
|
||||||
Size = 255
|
Size = 255
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Situaci'#243'n'
|
DisplayLabel = 'Situaci'#243'n'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_BASE_IMPONIBLE'
|
Name = 'FacturasCliente_BASE_IMPONIBLE'
|
||||||
DataType = datFloat
|
DataType = datFloat
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Base imponible'
|
DisplayLabel = 'Base imponible'
|
||||||
Alignment = taRightJustify
|
Alignment = taRightJustify
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_IMPORTE_DESCUENTO'
|
Name = 'FacturasCliente_IMPORTE_DESCUENTO'
|
||||||
DataType = datFloat
|
DataType = datFloat
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Importe dto.'
|
DisplayLabel = 'Importe dto.'
|
||||||
Alignment = taRightJustify
|
Alignment = taRightJustify
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_IMPORTE_IVA'
|
Name = 'FacturasCliente_IMPORTE_IVA'
|
||||||
DataType = datFloat
|
DataType = datFloat
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Importe IVA'
|
DisplayLabel = 'Importe IVA'
|
||||||
Alignment = taRightJustify
|
Alignment = taRightJustify
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_IMPORTE_TOTAL'
|
Name = 'FacturasCliente_IMPORTE_TOTAL'
|
||||||
DataType = datFloat
|
DataType = datFloat
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Importe total'
|
DisplayLabel = 'Importe total'
|
||||||
Alignment = taRightJustify
|
Alignment = taRightJustify
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_FORMA_PAGO'
|
Name = 'FacturasCliente_FORMA_PAGO'
|
||||||
DataType = datMemo
|
DataType = datMemo
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Forma de pago'
|
DisplayLabel = 'Forma de pago'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_ID_CLIENTE'
|
Name = 'FacturasCliente_ID_CLIENTE'
|
||||||
DataType = datInteger
|
DataType = datInteger
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'ID_CLIENTE'
|
DisplayLabel = 'ID_CLIENTE'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_NIF_CIF'
|
Name = 'FacturasCliente_NIF_CIF'
|
||||||
DataType = datString
|
DataType = datString
|
||||||
Size = 15
|
Size = 15
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'NIF/CIF'
|
DisplayLabel = 'NIF/CIF'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_CODIGO_POSTAL'
|
Name = 'FacturasCliente_CODIGO_POSTAL'
|
||||||
DataType = datString
|
DataType = datString
|
||||||
Size = 10
|
Size = 10
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'C'#243'd. postal'
|
DisplayLabel = 'C'#243'd. postal'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_FECHA_ALTA'
|
Name = 'FacturasCliente_FECHA_ALTA'
|
||||||
DataType = datDateTime
|
DataType = datDateTime
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'FECHA_ALTA'
|
DisplayLabel = 'FECHA_ALTA'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_FECHA_MODIFICACION'
|
Name = 'FacturasCliente_FECHA_MODIFICACION'
|
||||||
DataType = datDateTime
|
DataType = datDateTime
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'FECHA_MODIFICACION'
|
DisplayLabel = 'FECHA_MODIFICACION'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_OBSERVACIONES'
|
Name = 'FacturasCliente_OBSERVACIONES'
|
||||||
DataType = datMemo
|
DataType = datMemo
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Observaciones'
|
DisplayLabel = 'Observaciones'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_NOMBRE'
|
Name = 'FacturasCliente_NOMBRE'
|
||||||
DataType = datString
|
DataType = datString
|
||||||
Size = 100
|
Size = 100
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Cliente'
|
DisplayLabel = 'Cliente'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_CALLE'
|
Name = 'FacturasCliente_CALLE'
|
||||||
DataType = datString
|
DataType = datString
|
||||||
Size = 150
|
Size = 150
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Direcci'#243'n'
|
DisplayLabel = 'Direcci'#243'n'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_PROVINCIA'
|
Name = 'FacturasCliente_PROVINCIA'
|
||||||
DataType = datString
|
DataType = datString
|
||||||
Size = 30
|
Size = 30
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Provincia'
|
DisplayLabel = 'Provincia'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_POBLACION'
|
Name = 'FacturasCliente_POBLACION'
|
||||||
DataType = datString
|
DataType = datString
|
||||||
Size = 150
|
Size = 150
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Poblaci'#243'n'
|
DisplayLabel = 'Poblaci'#243'n'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_IVA'
|
Name = 'FacturasCliente_IVA'
|
||||||
DataType = datFloat
|
DataType = datFloat
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'IVA'
|
DisplayLabel = 'IVA'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_USUARIO'
|
Name = 'FacturasCliente_USUARIO'
|
||||||
DataType = datString
|
DataType = datString
|
||||||
Size = 100
|
Size = 100
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'USUARIO'
|
DisplayLabel = 'USUARIO'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_REFERENCIA'
|
Name = 'FacturasCliente_REFERENCIA'
|
||||||
DataType = datString
|
DataType = datString
|
||||||
Size = 20
|
Size = 20
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Referencia'
|
DisplayLabel = 'Referencia'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_DESCUENTO'
|
Name = 'FacturasCliente_DESCUENTO'
|
||||||
DataType = datFloat
|
DataType = datFloat
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Dto.'
|
DisplayLabel = 'Dto.'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_Detalles_ID'
|
Name = 'FacturasCliente_Detalles_ID'
|
||||||
DataType = datAutoInc
|
DataType = datAutoInc
|
||||||
BlobType = dabtUnknown
|
|
||||||
Required = True
|
Required = True
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'ID'
|
DisplayLabel = 'ID'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_Detalles_ID_FACTURA'
|
Name = 'FacturasCliente_Detalles_ID_FACTURA'
|
||||||
DataType = datInteger
|
DataType = datInteger
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'ID_FACTURA'
|
DisplayLabel = 'ID_FACTURA'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_Detalles_TIPO_DETALLE'
|
Name = 'FacturasCliente_Detalles_TIPO_DETALLE'
|
||||||
DataType = datString
|
DataType = datString
|
||||||
Size = 10
|
Size = 10
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Tipo detalle'
|
DisplayLabel = 'Tipo detalle'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_Detalles_CONCEPTO'
|
Name = 'FacturasCliente_Detalles_CONCEPTO'
|
||||||
DataType = datString
|
DataType = datString
|
||||||
Size = 2000
|
Size = 2000
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Concepto'
|
DisplayLabel = 'Concepto'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_Detalles_IMPORTE_UNIDAD'
|
Name = 'FacturasCliente_Detalles_IMPORTE_UNIDAD'
|
||||||
DataType = datFloat
|
DataType = datFloat
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Importe unidad'
|
DisplayLabel = 'Importe unidad'
|
||||||
Alignment = taRightJustify
|
Alignment = taRightJustify
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_Detalles_IMPORTE_TOTAL'
|
Name = 'FacturasCliente_Detalles_IMPORTE_TOTAL'
|
||||||
DataType = datFloat
|
DataType = datFloat
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Importe total'
|
DisplayLabel = 'Importe total'
|
||||||
Alignment = taRightJustify
|
Alignment = taRightJustify
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_Detalles_VISIBLE'
|
Name = 'FacturasCliente_Detalles_VISIBLE'
|
||||||
DataType = datInteger
|
DataType = datInteger
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = #191'Visible?'
|
DisplayLabel = #191'Visible?'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_Detalles_POSICION'
|
Name = 'FacturasCliente_Detalles_POSICION'
|
||||||
DataType = datInteger
|
DataType = datInteger
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Posici'#243'n'
|
DisplayLabel = 'Posici'#243'n'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Name = 'FacturasCliente_Detalles_CANTIDAD'
|
Name = 'FacturasCliente_Detalles_CANTIDAD'
|
||||||
DataType = datInteger
|
DataType = datInteger
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
DisplayLabel = 'Cantidad'
|
DisplayLabel = 'Cantidad'
|
||||||
Alignment = taLeftJustify
|
|
||||||
end>
|
end>
|
||||||
Left = 46
|
Left = 46
|
||||||
Top = 158
|
Top = 158
|
||||||
end
|
end
|
||||||
object frxReport: TfrxReport
|
object frxReport: TfrxReport
|
||||||
Version = '3.23.7'
|
Version = '4.3'
|
||||||
DotMatrixReport = False
|
DotMatrixReport = False
|
||||||
IniFile = '\Software\Fast Reports'
|
IniFile = '\Software\Fast Reports'
|
||||||
PreviewOptions.Buttons = [pbPrint, pbLoad, pbSave, pbExport, pbZoom, pbFind, pbOutline, pbPageSetup, pbTools, pbEdit, pbNavigator, pbExportQuick]
|
PreviewOptions.Buttons = [pbPrint, pbLoad, pbSave, pbExport, pbZoom, pbFind, pbOutline, pbPageSetup, pbTools, pbEdit, pbNavigator, pbExportQuick]
|
||||||
PreviewOptions.Zoom = 1.000000000000000000
|
PreviewOptions.Zoom = 1.000000000000000000
|
||||||
PrintOptions.Printer = 'Por defecto'
|
PrintOptions.Printer = 'Por defecto'
|
||||||
|
PrintOptions.PrintOnSheet = 0
|
||||||
ReportOptions.CreateDate = 38330.712904247710000000
|
ReportOptions.CreateDate = 38330.712904247710000000
|
||||||
ReportOptions.LastChange = 39328.775946539350000000
|
ReportOptions.LastChange = 39328.775946539350000000
|
||||||
ScriptLanguage = 'PascalScript'
|
ScriptLanguage = 'PascalScript'
|
||||||
@ -573,13 +457,6 @@ object RptEtiquetasContacto: TRptEtiquetasContacto
|
|||||||
StoreInDFM = False
|
StoreInDFM = False
|
||||||
Left = 169
|
Left = 169
|
||||||
Top = 16
|
Top = 16
|
||||||
Datasets = <
|
|
||||||
item
|
|
||||||
DataSet = frxDBCabecera
|
|
||||||
DataSetName = 'frxDBCabecera'
|
|
||||||
end>
|
|
||||||
Variables = <>
|
|
||||||
Style = <>
|
|
||||||
end
|
end
|
||||||
object frxDBCabecera: TfrxDBDataset
|
object frxDBCabecera: TfrxDBDataset
|
||||||
UserName = 'frxDBCabecera'
|
UserName = 'frxDBCabecera'
|
||||||
@ -588,4 +465,8 @@ object RptEtiquetasContacto: TRptEtiquetasContacto
|
|||||||
Left = 264
|
Left = 264
|
||||||
Top = 16
|
Top = 16
|
||||||
end
|
end
|
||||||
|
object Bin2DataStreamer: TDABin2DataStreamer
|
||||||
|
Left = 48
|
||||||
|
Top = 80
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -7,13 +7,12 @@ uses
|
|||||||
Dialogs, frxClass, frxDBSet, uDAScriptingProvider,
|
Dialogs, frxClass, frxDBSet, uDAScriptingProvider,
|
||||||
uDADataTable, uDACDSDataTable, DB, uDAClasses, frxChart, frxGradient,
|
uDADataTable, uDACDSDataTable, DB, uDAClasses, frxChart, frxGradient,
|
||||||
frxChBox, frxCross, frxOLE, frxBarcode, frxRich, uDABINAdapter, uROTypes,
|
frxChBox, frxCross, frxOLE, frxBarcode, frxRich, uDABINAdapter, uROTypes,
|
||||||
uDAInterfaces;
|
uDAInterfaces, uDADataStreamer, uDABin2DataStreamer, uDAMemDataTable;
|
||||||
|
|
||||||
type
|
type
|
||||||
TRptEtiquetasContacto = class(TDataModule)
|
TRptEtiquetasContacto = class(TDataModule)
|
||||||
DADataCabecera: TDADataSource;
|
DADataCabecera: TDADataSource;
|
||||||
tbl_Contactos: TDACDSDataTable;
|
tbl_Contactos: TDAMemDataTable;
|
||||||
DABINAdapter: TDABINAdapter;
|
|
||||||
frxRichObject1: TfrxRichObject;
|
frxRichObject1: TfrxRichObject;
|
||||||
frxBarCodeObject1: TfrxBarCodeObject;
|
frxBarCodeObject1: TfrxBarCodeObject;
|
||||||
frxOLEObject1: TfrxOLEObject;
|
frxOLEObject1: TfrxOLEObject;
|
||||||
@ -25,6 +24,7 @@ type
|
|||||||
frxReport: TfrxReport;
|
frxReport: TfrxReport;
|
||||||
schReport: TDASchema;
|
schReport: TDASchema;
|
||||||
DataDictionary: TDADataDictionary;
|
DataDictionary: TDADataDictionary;
|
||||||
|
Bin2DataStreamer: TDABin2DataStreamer;
|
||||||
procedure DataModuleCreate(Sender: TObject);
|
procedure DataModuleCreate(Sender: TObject);
|
||||||
private
|
private
|
||||||
FConnection: IDAConnection;
|
FConnection: IDAConnection;
|
||||||
@ -67,14 +67,18 @@ begin
|
|||||||
FConnection.BeginTransaction;
|
FConnection.BeginTransaction;
|
||||||
|
|
||||||
try
|
try
|
||||||
AStream := TMemoryStream.Create;
|
// AStream := TMemoryStream.Create;
|
||||||
dsMaster := schReport.NewDataset(FConnection, ds_InformeContactos, [], [], False); //, ['ID'], ['611, 751']); //AID]);
|
// dsMaster := schReport.NewDataset(FConnection, ds_InformeContactos, [], [], False); //, ['ID'], ['611, 751']); //AID]);
|
||||||
dsMaster.Where.AddText(fld_ContactosID + ' in (' + AID + ')');
|
// dsMaster.Where.AddText(fld_ContactosID + ' in (' + AID + ')');
|
||||||
dsMaster.Open;
|
// dsMaster.Open;
|
||||||
|
|
||||||
|
// AStream.Clear;
|
||||||
|
// Bin2DataStreamer.WriteDataset(AStream, dsMaster, [woRows, woSchema], -1);
|
||||||
|
// Bin2DataStreamer.ReadDataset(AStream, tbl_Contactos, TRUE, '', TRUE, TRUE);
|
||||||
|
|
||||||
|
tbl_Contactos.Where.AddCondition(fld_ContactosID, cIn, '(' + AID + ')');
|
||||||
|
tbl_Contactos.Active := True;
|
||||||
|
|
||||||
AStream.Clear;
|
|
||||||
DABINAdapter.WriteDataset(AStream, dsMaster, [woRows, woSchema], -1);
|
|
||||||
DABINAdapter.ReadDataset(AStream, tbl_Contactos, TRUE, '', TRUE, TRUE);
|
|
||||||
|
|
||||||
frxReport.LoadFromFile(DarRutaInformes + rptEtiquetasContacto, True);
|
frxReport.LoadFromFile(DarRutaInformes + rptEtiquetasContacto, True);
|
||||||
frxReport.PrepareReport(True);
|
frxReport.PrepareReport(True);
|
||||||
@ -82,8 +86,8 @@ begin
|
|||||||
frxReport.PreviewPages.SaveToStream(Result);
|
frxReport.PreviewPages.SaveToStream(Result);
|
||||||
|
|
||||||
finally
|
finally
|
||||||
AStream.Free;
|
// AStream.Free;
|
||||||
dsMaster := Nil;
|
// dsMaster := Nil;
|
||||||
FConnection.RollbackTransaction;
|
FConnection.RollbackTransaction;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -6,14 +6,14 @@ uses
|
|||||||
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
||||||
Dialogs, frxClass, frxDBSet, uDAScriptingProvider,
|
Dialogs, frxClass, frxDBSet, uDAScriptingProvider,
|
||||||
uDADataTable, uDACDSDataTable, DB, uDAClasses, frxChart, frxGradient,
|
uDADataTable, uDACDSDataTable, DB, uDAClasses, frxChart, frxGradient,
|
||||||
|
uDAInterfaces, uDAMemDataTable, uDABin2DataStreamer,
|
||||||
frxChBox, frxCross, frxOLE, frxBarcode, frxRich, uDABINAdapter, uROTypes,
|
frxChBox, frxCross, frxOLE, frxBarcode, frxRich, uDABINAdapter, uROTypes,
|
||||||
uDAInterfaces;
|
uDADataStreamer, IBDatabase, IBCustomDataSet, IBQuery;
|
||||||
|
|
||||||
type
|
type
|
||||||
TRptFichasEmpleado = class(TDataModule)
|
TRptFichasEmpleado = class(TDataModule)
|
||||||
DADataCabecera: TDADataSource;
|
DADataCabecera: TDADataSource;
|
||||||
tbl_FichaEmpleado: TDACDSDataTable;
|
tbl_FichaEmpleado: TDAMemDataTable;
|
||||||
DABINAdapter: TDABINAdapter;
|
|
||||||
frxRichObject1: TfrxRichObject;
|
frxRichObject1: TfrxRichObject;
|
||||||
frxBarCodeObject1: TfrxBarCodeObject;
|
frxBarCodeObject1: TfrxBarCodeObject;
|
||||||
frxOLEObject1: TfrxOLEObject;
|
frxOLEObject1: TfrxOLEObject;
|
||||||
@ -25,6 +25,11 @@ type
|
|||||||
schReport: TDASchema;
|
schReport: TDASchema;
|
||||||
DataDictionary: TDADataDictionary;
|
DataDictionary: TDADataDictionary;
|
||||||
frxReport: TfrxReport;
|
frxReport: TfrxReport;
|
||||||
|
Bin2DataStreamer: TDABin2DataStreamer;
|
||||||
|
IBDatabase1: TIBDatabase;
|
||||||
|
cabecera: TIBQuery;
|
||||||
|
DataSource1: TDataSource;
|
||||||
|
IBTransaction1: TIBTransaction;
|
||||||
procedure DataModuleCreate(Sender: TObject);
|
procedure DataModuleCreate(Sender: TObject);
|
||||||
private
|
private
|
||||||
FConnection: IDAConnection;
|
FConnection: IDAConnection;
|
||||||
@ -87,21 +92,24 @@ var
|
|||||||
AStream: TMemoryStream;
|
AStream: TMemoryStream;
|
||||||
dsMaster: IDADataset;
|
dsMaster: IDADataset;
|
||||||
begin
|
begin
|
||||||
AStream := TMemoryStream.Create;
|
// AStream := TMemoryStream.Create;
|
||||||
|
|
||||||
try
|
try
|
||||||
dsMaster := schReport.NewDataset(FConnection, ds_InformeFichaEmpleado, ['ID'], [ID]);
|
// dsMaster := schReport.NewDataset(FConnection, ds_InformeFichaEmpleado, ['ID'], [ID]);
|
||||||
|
|
||||||
AStream.Clear;
|
// AStream.Clear;
|
||||||
DABINAdapter.WriteDataset(AStream, dsMaster, [woRows, woSchema], -1);
|
// Bin2DataStreamer.WriteDataset(AStream, dsMaster, [woRows, woSchema], -1);
|
||||||
DABINAdapter.ReadDataset(AStream, tbl_FichaEmpleado, TRUE, '', TRUE, TRUE);
|
// Bin2DataStreamer.ReadDataset(AStream, tbl_FichaEmpleado, TRUE, '', TRUE, TRUE);
|
||||||
|
|
||||||
|
tbl_FichaEmpleado.ParamByName('ID').AsInteger := ID;
|
||||||
|
tbl_FichaEmpleado.Active := True;
|
||||||
|
|
||||||
frxReport.LoadFromFile(DarRutaInformes + rptFichaEmpleado, True);
|
frxReport.LoadFromFile(DarRutaInformes + rptFichaEmpleado, True);
|
||||||
frxReport.PrepareReport(False);
|
frxReport.PrepareReport(False);
|
||||||
|
|
||||||
finally
|
finally
|
||||||
AStream.Free;
|
// AStream.Free;
|
||||||
dsMaster := Nil;
|
// dsMaster := Nil;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
@ -51,8 +51,8 @@ uses
|
|||||||
{Generated:} FactuGES_Invk, Dialogs, uBizContactosServer,
|
{Generated:} FactuGES_Invk, Dialogs, uBizContactosServer,
|
||||||
uDataModuleServer, uDatabaseUtils, uUsersManager,
|
uDataModuleServer, uDatabaseUtils, uUsersManager,
|
||||||
schContactosClient_Intf, uBizEmpleadosServer,
|
schContactosClient_Intf, uBizEmpleadosServer,
|
||||||
uBizClientesServer, uBizProveedoresServer, uRestriccionesUsuarioUtils;
|
uBizClientesServer, uBizProveedoresServer, uRestriccionesUsuarioUtils,
|
||||||
// uRptFichasEmpleado_Server, uRptEtiquetasContacto_Server;
|
uRptFichasEmpleado_Server, uRptEtiquetasContacto_Server;
|
||||||
|
|
||||||
procedure Create_srvContactos(out anInstance : IUnknown);
|
procedure Create_srvContactos(out anInstance : IUnknown);
|
||||||
begin
|
begin
|
||||||
@ -97,30 +97,27 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function TsrvContactos.GenerateEtiquetasReport(const ContactosID: String): Binary;
|
function TsrvContactos.GenerateEtiquetasReport(const ContactosID: String): Binary;
|
||||||
//var
|
var
|
||||||
// AReportGenerator : TRptEtiquetasContacto;
|
AReportGenerator : TRptEtiquetasContacto;
|
||||||
begin
|
begin
|
||||||
{ AReportGenerator := TRptEtiquetasContacto.Create(nil);
|
AReportGenerator := TRptEtiquetasContacto.Create(nil);
|
||||||
try
|
try
|
||||||
Result := AReportGenerator.GenerarInforme(ContactosID);
|
Result := AReportGenerator.GenerarInforme(ContactosID);
|
||||||
finally
|
finally
|
||||||
FreeAndNIL(AReportGenerator);
|
FreeAndNIL(AReportGenerator);
|
||||||
end;
|
end;
|
||||||
}
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TsrvContactos.GenerateFichaEmpleadoReport(const EmpleadoID: String): Binary;
|
function TsrvContactos.GenerateFichaEmpleadoReport(const EmpleadoID: String): Binary;
|
||||||
//var
|
var
|
||||||
// AReportGenerator : TRptFichasEmpleado;
|
AReportGenerator : TRptFichasEmpleado;
|
||||||
begin
|
begin
|
||||||
{
|
|
||||||
AReportGenerator := TRptFichasEmpleado.Create(nil);
|
AReportGenerator := TRptFichasEmpleado.Create(nil);
|
||||||
try
|
try
|
||||||
Result := AReportGenerator.GenerarFicha(EmpleadoID);
|
Result := AReportGenerator.GenerarFicha(EmpleadoID);
|
||||||
finally
|
finally
|
||||||
FreeAndNIL(AReportGenerator);
|
FreeAndNIL(AReportGenerator);
|
||||||
end;
|
end;
|
||||||
}
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
|
|||||||
Binary file not shown.
@ -2166,7 +2166,7 @@ inherited fEditorClientes: TfEditorClientes
|
|||||||
0007F0000007F0000007F0000007F0000007F0000007F0000007800000078000
|
0007F0000007F0000007F0000007F0000007F0000007F0000007800000078000
|
||||||
0007C0000007C000000700000007000000070000000700000007C000000FC000
|
0007C0000007C000000700000007000000070000000700000007C000000FC000
|
||||||
001F8000003F800000FFF8FFFFFF}
|
001F8000003F800000FFF8FFFFFF}
|
||||||
Width = 450
|
Width = 500
|
||||||
Left = 296
|
Left = 296
|
||||||
Top = 144
|
Top = 144
|
||||||
end
|
end
|
||||||
@ -2477,7 +2477,7 @@ inherited fEditorClientes: TfEditorClientes
|
|||||||
0007F0000007F0000007F0000007F0000007F0000007F0000007800000078000
|
0007F0000007F0000007F0000007F0000007F0000007F0000007800000078000
|
||||||
0007C0000007C000000700000007000000070000000700000007C000000FC000
|
0007C0000007C000000700000007000000070000000700000007C000000FC000
|
||||||
001F8000003F800000FFF8FFFFFF}
|
001F8000003F800000FFF8FFFFFF}
|
||||||
Width = 450
|
Width = 500
|
||||||
Left = 328
|
Left = 328
|
||||||
Top = 144
|
Top = 144
|
||||||
end
|
end
|
||||||
|
|||||||
@ -2,7 +2,6 @@ inherited fEditorContactos: TfEditorContactos
|
|||||||
Left = 285
|
Left = 285
|
||||||
Top = 448
|
Top = 448
|
||||||
Caption = 'Lista de contactos'
|
Caption = 'Lista de contactos'
|
||||||
ExplicitWidth = 320
|
|
||||||
ExplicitHeight = 471
|
ExplicitHeight = 471
|
||||||
PixelsPerInch = 96
|
PixelsPerInch = 96
|
||||||
TextHeight = 13
|
TextHeight = 13
|
||||||
|
|||||||
@ -80,10 +80,7 @@ end;
|
|||||||
|
|
||||||
procedure TfEditorContactos.ImprimirInterno;
|
procedure TfEditorContactos.ImprimirInterno;
|
||||||
begin
|
begin
|
||||||
AppFactuGES.ShowCapado;
|
|
||||||
{
|
|
||||||
inherited;
|
inherited;
|
||||||
}
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfEditorContactos.ModificarInterno;
|
procedure TfEditorContactos.ModificarInterno;
|
||||||
@ -111,10 +108,7 @@ end;
|
|||||||
|
|
||||||
procedure TfEditorContactos.PrevisualizarInterno;
|
procedure TfEditorContactos.PrevisualizarInterno;
|
||||||
begin
|
begin
|
||||||
AppFactuGES.ShowCapado;
|
|
||||||
{
|
|
||||||
inherited;
|
inherited;
|
||||||
}
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfEditorContactos.SetContactos(const Value: IBizContacto);
|
procedure TfEditorContactos.SetContactos(const Value: IBizContacto);
|
||||||
|
|||||||
@ -3,10 +3,9 @@ inherited frViewEmpleados: TfrViewEmpleados
|
|||||||
inherited cxGridView: TcxGridDBTableView
|
inherited cxGridView: TcxGridDBTableView
|
||||||
DataController.Summary.FooterSummaryItems = <
|
DataController.Summary.FooterSummaryItems = <
|
||||||
item
|
item
|
||||||
Format = '0 agentes'
|
Format = '0 empleados'
|
||||||
Kind = skCount
|
Kind = skCount
|
||||||
FieldName = 'ID'
|
Column = cxGridViewNOMBRE
|
||||||
Column = cxGridViewNIF_CIF
|
|
||||||
end>
|
end>
|
||||||
inherited cxGridViewICONO: TcxGridDBColumn
|
inherited cxGridViewICONO: TcxGridDBColumn
|
||||||
BestFitMaxWidth = 22
|
BestFitMaxWidth = 22
|
||||||
@ -31,20 +30,23 @@ inherited frViewEmpleados: TfrViewEmpleados
|
|||||||
inherited frViewFiltroBase1: TfrViewFiltroBase
|
inherited frViewFiltroBase1: TfrViewFiltroBase
|
||||||
inherited TBXDockablePanel1: TTBXDockablePanel
|
inherited TBXDockablePanel1: TTBXDockablePanel
|
||||||
inherited dxLayoutControl1: TdxLayoutControl
|
inherited dxLayoutControl1: TdxLayoutControl
|
||||||
|
inherited txtFiltroTodo: TcxTextEdit
|
||||||
|
ExplicitWidth = 457
|
||||||
|
Width = 457
|
||||||
|
end
|
||||||
inherited edtFechaIniFiltro: TcxDateEdit
|
inherited edtFechaIniFiltro: TcxDateEdit
|
||||||
ExplicitWidth = 239
|
ExplicitWidth = 239
|
||||||
Width = 239
|
Width = 239
|
||||||
end
|
end
|
||||||
inherited edtFechaFinFiltro: TcxDateEdit
|
inherited edtFechaFinFiltro: TcxDateEdit
|
||||||
|
Left = 341
|
||||||
|
ExplicitLeft = 341
|
||||||
ExplicitWidth = 207
|
ExplicitWidth = 207
|
||||||
Width = 207
|
Width = 207
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
inherited pnlAgrupaciones: TTBXDockablePanel
|
|
||||||
ExplicitWidth = 128
|
|
||||||
end
|
|
||||||
inherited dxComponentPrinter: TdxComponentPrinter
|
inherited dxComponentPrinter: TdxComponentPrinter
|
||||||
inherited dxComponentPrinterLink: TdxGridReportLink
|
inherited dxComponentPrinterLink: TdxGridReportLink
|
||||||
ReportDocument.CreationDate = 39211.791248726860000000
|
ReportDocument.CreationDate = 39211.791248726860000000
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -30,7 +30,6 @@ type
|
|||||||
BitBtn3: TBitBtn;
|
BitBtn3: TBitBtn;
|
||||||
actLista: TActionList;
|
actLista: TActionList;
|
||||||
actElegirSubCuenta: TAction;
|
actElegirSubCuenta: TAction;
|
||||||
LargeImages: TPngImageList;
|
|
||||||
layoutApunteItem5: TdxLayoutItem;
|
layoutApunteItem5: TdxLayoutItem;
|
||||||
eSubCuenta: TcxDBTextEdit;
|
eSubCuenta: TcxDBTextEdit;
|
||||||
layoutApunteGroup3: TdxLayoutGroup;
|
layoutApunteGroup3: TdxLayoutGroup;
|
||||||
@ -43,6 +42,7 @@ type
|
|||||||
layoutApunteItem6: TdxLayoutItem;
|
layoutApunteItem6: TdxLayoutItem;
|
||||||
cbIgnorarContabilidad: TcxDBCheckBox;
|
cbIgnorarContabilidad: TcxDBCheckBox;
|
||||||
layoutApunteGroup2: TdxLayoutGroup;
|
layoutApunteGroup2: TdxLayoutGroup;
|
||||||
|
SmallImages: TPngImageList;
|
||||||
procedure CustomViewCreate(Sender: TObject);
|
procedure CustomViewCreate(Sender: TObject);
|
||||||
procedure CustomViewDestroy(Sender: TObject);
|
procedure CustomViewDestroy(Sender: TObject);
|
||||||
procedure actElegirSubCuentaExecute(Sender: TObject);
|
procedure actElegirSubCuentaExecute(Sender: TObject);
|
||||||
|
|||||||
@ -51,7 +51,7 @@ end;
|
|||||||
|
|
||||||
function TDataModuleFacturasCliente.GetReport(const AFacturaID: String): Binary;
|
function TDataModuleFacturasCliente.GetReport(const AFacturaID: String): Binary;
|
||||||
begin
|
begin
|
||||||
// Result := (RORemoteService as IsrvFacturasCliente).GenerateReport(AFacturaID)
|
Result := (RORemoteService as IsrvFacturasCliente).GenerateReport(AFacturaID)
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TDataModuleFacturasCliente.NewItem: IBizFacturaCliente;
|
function TDataModuleFacturasCliente.NewItem: IBizFacturaCliente;
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -1,130 +0,0 @@
|
|||||||
unit uRptFacturasCliente_Server;
|
|
||||||
|
|
||||||
interface
|
|
||||||
|
|
||||||
uses
|
|
||||||
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
||||||
Dialogs, frxClass, frxDBSet, uDAScriptingProvider,
|
|
||||||
uDADataTable, uDACDSDataTable, DB, uDAClasses, frxChart, frxGradient,
|
|
||||||
frxChBox, frxCross, frxOLE, frxBarcode, frxRich, uDABINAdapter, uROTypes,
|
|
||||||
uDAInterfaces;
|
|
||||||
|
|
||||||
type
|
|
||||||
TRptFacturasCliente = class(TDataModule)
|
|
||||||
DADataCabecera: TDADataSource;
|
|
||||||
DADataDetalles: TDADataSource;
|
|
||||||
tbl_FacturaCliente: TDACDSDataTable;
|
|
||||||
tbl_DetallesFacturaCliente: TDACDSDataTable;
|
|
||||||
DABINAdapter: TDABINAdapter;
|
|
||||||
frxRichObject1: TfrxRichObject;
|
|
||||||
frxBarCodeObject1: TfrxBarCodeObject;
|
|
||||||
frxOLEObject1: TfrxOLEObject;
|
|
||||||
frxCrossObject1: TfrxCrossObject;
|
|
||||||
frxCheckBoxObject1: TfrxCheckBoxObject;
|
|
||||||
frxGradientObject1: TfrxGradientObject;
|
|
||||||
frxChartObject1: TfrxChartObject;
|
|
||||||
frxDBCabecera: TfrxDBDataset;
|
|
||||||
frxDBDetalles: TfrxDBDataset;
|
|
||||||
DADataVencimientos: TDADataSource;
|
|
||||||
tbl_Vencimientos: TDACDSDataTable;
|
|
||||||
frxDBDataset1: TfrxDBDataset;
|
|
||||||
schReport: TDASchema;
|
|
||||||
DataDictionary: TDADataDictionary;
|
|
||||||
frxReport: TfrxReport;
|
|
||||||
procedure DataModuleCreate(Sender: TObject);
|
|
||||||
private
|
|
||||||
FConnection: IDAConnection;
|
|
||||||
//Genera cada uno de los albaranes a imprimir
|
|
||||||
procedure GenerarFactura(const ID: integer); overload;
|
|
||||||
public
|
|
||||||
function GenerarFactura(const AFacturaID : String): Binary; overload;
|
|
||||||
end;
|
|
||||||
|
|
||||||
implementation
|
|
||||||
|
|
||||||
{$R *.dfm}
|
|
||||||
|
|
||||||
uses
|
|
||||||
uDataModuleServer, schFacturasClienteClient_Intf;
|
|
||||||
|
|
||||||
const
|
|
||||||
rptFacturaCliente = 'InfFacturaCliente.fr3';
|
|
||||||
|
|
||||||
{ Dataset names for schReport }
|
|
||||||
ds_InformeFacturasCliente = 'InformeFacturasCliente';
|
|
||||||
ds_InformeFacturasCliente_Detalles = 'InformeFacturasCliente_Detalles';
|
|
||||||
ds_InformeFacturasCliente_Vencimientos = 'InformeFacturasCliente_Vencimientos';
|
|
||||||
|
|
||||||
|
|
||||||
{ TRptFacturasCliente }
|
|
||||||
|
|
||||||
|
|
||||||
procedure TRptFacturasCliente.DataModuleCreate(Sender: TObject);
|
|
||||||
begin
|
|
||||||
schReport.ConnectionManager := dmServer.ConnectionManager;
|
|
||||||
FConnection := dmServer.DarNuevaConexion;
|
|
||||||
frxReport.EngineOptions.NewSilentMode := simReThrow;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TRptFacturasCliente.GenerarFactura(const AFacturaID: String): Binary;
|
|
||||||
var
|
|
||||||
ID_Facturas: TStringList;
|
|
||||||
i: Integer;
|
|
||||||
|
|
||||||
begin
|
|
||||||
Result := Binary.Create;
|
|
||||||
FConnection.BeginTransaction;
|
|
||||||
|
|
||||||
try
|
|
||||||
ID_Facturas := TStringList.Create;
|
|
||||||
ID_Facturas.CommaText := AFacturaID;
|
|
||||||
|
|
||||||
//Vamos generando todos y cada uno de los albaranes recibidos
|
|
||||||
for i := 0 to ID_Facturas.Count - 1 do
|
|
||||||
GenerarFactura(StrToInt(ID_Facturas.Strings[i]));
|
|
||||||
|
|
||||||
frxReport.PreviewPages.SaveToStream(Result);
|
|
||||||
|
|
||||||
finally
|
|
||||||
FConnection.RollbackTransaction;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TRptFacturasCliente.GenerarFactura(const ID: integer);
|
|
||||||
var
|
|
||||||
AStream: TMemoryStream;
|
|
||||||
dsMaster: IDADataset;
|
|
||||||
dsDetail: IDADataset;
|
|
||||||
dsVencimientos : IDADataset;
|
|
||||||
begin
|
|
||||||
AStream := TMemoryStream.Create;
|
|
||||||
|
|
||||||
try
|
|
||||||
dsMaster := schReport.NewDataset(FConnection, ds_InformeFacturasCliente, ['ID'], [ID]);
|
|
||||||
dsDetail := schReport.NewDataset(FConnection, ds_InformeFacturasCliente_Detalles, ['ID_FACTURA'], [ID], False);
|
|
||||||
dsVencimientos := schReport.NewDataset(FConnection, ds_InformeFacturasCliente_Vencimientos, ['ID_FACTURA'], [ID], False);
|
|
||||||
|
|
||||||
AStream.Clear;
|
|
||||||
DABINAdapter.WriteDataset(AStream, dsMaster, [woRows, woSchema], -1);
|
|
||||||
DABINAdapter.ReadDataset(AStream, tbl_FacturaCliente, TRUE, '', TRUE, TRUE);
|
|
||||||
|
|
||||||
AStream.Clear;
|
|
||||||
DABINAdapter.WriteDataset(AStream, dsDetail, [woRows, woSchema], -1);
|
|
||||||
DABINAdapter.ReadDataset(AStream, tbl_DetallesFacturaCliente, TRUE, '', TRUE, TRUE);
|
|
||||||
|
|
||||||
AStream.Clear;
|
|
||||||
DABINAdapter.WriteDataset(AStream, dsVencimientos, [woRows, woSchema], -1);
|
|
||||||
DABINAdapter.ReadDataset(AStream, tbl_Vencimientos, TRUE, '', TRUE, TRUE);
|
|
||||||
|
|
||||||
|
|
||||||
frxReport.LoadFromFile(DarRutaInformes + rptFacturaCliente, True);
|
|
||||||
frxReport.PrepareReport(False);
|
|
||||||
|
|
||||||
finally
|
|
||||||
AStream.Free;
|
|
||||||
dsMaster := Nil;
|
|
||||||
dsDetail := Nil;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
end.
|
|
||||||
@ -1,48 +1,319 @@
|
|||||||
object RptFacturasCliente: TRptFacturasCliente
|
object RptFacturasCliente: TRptFacturasCliente
|
||||||
OldCreateOrder = True
|
OldCreateOrder = True
|
||||||
OnCreate = DataModuleCreate
|
OnCreate = DataModuleCreate
|
||||||
Height = 405
|
Height = 464
|
||||||
Width = 447
|
Width = 589
|
||||||
object DADataCabecera: TDADataSource
|
object DADataCabecera: TDADataSource
|
||||||
|
DataSet = tbl_FacturaCliente.Dataset
|
||||||
|
DataTable = tbl_FacturaCliente
|
||||||
Left = 264
|
Left = 264
|
||||||
Top = 72
|
Top = 72
|
||||||
end
|
end
|
||||||
object DADataDetalles: TDADataSource
|
object DADataDetalles: TDADataSource
|
||||||
|
DataSet = tbl_DetallesFacturaCliente.Dataset
|
||||||
|
DataTable = tbl_DetallesFacturaCliente
|
||||||
Left = 344
|
Left = 344
|
||||||
Top = 72
|
Top = 72
|
||||||
end
|
end
|
||||||
object tbl_FacturaCliente: TDACDSDataTable
|
object tbl_FacturaCliente: TDAMemDataTable
|
||||||
RemoteUpdatesOptions = []
|
RemoteUpdatesOptions = []
|
||||||
Fields = <>
|
Fields = <
|
||||||
Params = <>
|
item
|
||||||
|
Name = 'ID'
|
||||||
|
DataType = datAutoInc
|
||||||
|
DictionaryEntry = 'FacturasCliente_ID'
|
||||||
|
InPrimaryKey = True
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'ID_EMPRESA'
|
||||||
|
DataType = datInteger
|
||||||
|
DictionaryEntry = 'FacturasCliente_ID_EMPRESA'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'FECHA_FACTURA'
|
||||||
|
DataType = datDateTime
|
||||||
|
DictionaryEntry = 'FacturasCliente_FECHA_FACTURA'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'BASE_IMPONIBLE'
|
||||||
|
DataType = datFloat
|
||||||
|
DictionaryEntry = 'FacturasCliente_BASE_IMPONIBLE'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'REFERENCIA'
|
||||||
|
DataType = datString
|
||||||
|
Size = 20
|
||||||
|
DictionaryEntry = 'FacturasCliente_REFERENCIA'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'IMPORTE_DESCUENTO'
|
||||||
|
DataType = datFloat
|
||||||
|
DictionaryEntry = 'FacturasCliente_IMPORTE_DESCUENTO'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'DESCUENTO'
|
||||||
|
DataType = datFloat
|
||||||
|
DictionaryEntry = 'FacturasCliente_DESCUENTO'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'IMPORTE_IVA'
|
||||||
|
DataType = datFloat
|
||||||
|
DictionaryEntry = 'FacturasCliente_IMPORTE_IVA'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'RE'
|
||||||
|
DataType = datFloat
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'IMPORTE_RE'
|
||||||
|
DataType = datFloat
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'IMPORTE_TOTAL'
|
||||||
|
DataType = datFloat
|
||||||
|
DictionaryEntry = 'FacturasCliente_IMPORTE_TOTAL'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'IVA'
|
||||||
|
DataType = datFloat
|
||||||
|
DictionaryEntry = 'FacturasCliente_IVA'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'FORMA_PAGO'
|
||||||
|
DataType = datString
|
||||||
|
Size = 255
|
||||||
|
DisplayLabel = 'Forma de pago'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'ID_CLIENTE'
|
||||||
|
DataType = datInteger
|
||||||
|
DictionaryEntry = 'FacturasCliente_ID_CLIENTE'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'NIF_CIF'
|
||||||
|
DataType = datString
|
||||||
|
Size = 15
|
||||||
|
DictionaryEntry = 'FacturasCliente_NIF_CIF'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'OBSERVACIONES'
|
||||||
|
DataType = datMemo
|
||||||
|
DictionaryEntry = 'FacturasCliente_OBSERVACIONES'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'NOMBRE'
|
||||||
|
DataType = datString
|
||||||
|
Size = 100
|
||||||
|
DictionaryEntry = 'FacturasCliente_NOMBRE'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'CALLE'
|
||||||
|
DataType = datString
|
||||||
|
Size = 150
|
||||||
|
DictionaryEntry = 'FacturasCliente_CALLE'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'PROVINCIA'
|
||||||
|
DataType = datString
|
||||||
|
Size = 30
|
||||||
|
DictionaryEntry = 'FacturasCliente_PROVINCIA'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'CODIGO_POSTAL'
|
||||||
|
DataType = datString
|
||||||
|
Size = 10
|
||||||
|
DictionaryEntry = 'FacturasCliente_CODIGO_POSTAL'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'TITULAR'
|
||||||
|
DataType = datString
|
||||||
|
Size = 255
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'ENTIDAD'
|
||||||
|
DataType = datString
|
||||||
|
Size = 15
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'SUCURSAL'
|
||||||
|
DataType = datString
|
||||||
|
Size = 15
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'DC'
|
||||||
|
DataType = datString
|
||||||
|
Size = 15
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'CUENTA'
|
||||||
|
DataType = datString
|
||||||
|
Size = 15
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'POBLACION'
|
||||||
|
DataType = datString
|
||||||
|
Size = 150
|
||||||
|
DictionaryEntry = 'FacturasCliente_POBLACION'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'NIF_CIF_EMPRESA'
|
||||||
|
DataType = datString
|
||||||
|
Size = 15
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'RAZON_SOCIAL'
|
||||||
|
DataType = datString
|
||||||
|
Size = 255
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'CALLE_EMPRESA'
|
||||||
|
DataType = datString
|
||||||
|
Size = 255
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'POBLACION_EMPRESA'
|
||||||
|
DataType = datString
|
||||||
|
Size = 255
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'PROVINCIA_EMPRESA'
|
||||||
|
DataType = datString
|
||||||
|
Size = 255
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'CODIGO_POSTAL_EMPRESA'
|
||||||
|
DataType = datString
|
||||||
|
Size = 10
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'TELEFONO_1'
|
||||||
|
DataType = datString
|
||||||
|
Size = 25
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'FAX'
|
||||||
|
DataType = datString
|
||||||
|
Size = 25
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'MOVIL_1'
|
||||||
|
DataType = datString
|
||||||
|
Size = 25
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'EMAIL_1'
|
||||||
|
DataType = datString
|
||||||
|
Size = 255
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'PAGINA_WEB'
|
||||||
|
DataType = datString
|
||||||
|
Size = 255
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'REGISTRO_MERCANTIL'
|
||||||
|
DataType = datString
|
||||||
|
Size = 255
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'LOGOTIPO'
|
||||||
|
DataType = datBlob
|
||||||
|
end>
|
||||||
|
Params = <
|
||||||
|
item
|
||||||
|
Name = 'ID'
|
||||||
|
DataType = datInteger
|
||||||
|
Value = '1'
|
||||||
|
ParamType = daptInput
|
||||||
|
end>
|
||||||
MasterMappingMode = mmDataRequest
|
MasterMappingMode = mmDataRequest
|
||||||
LogChanges = False
|
LogChanges = False
|
||||||
StreamingOptions = [soDisableEventsWhileStreaming]
|
StreamingOptions = [soDisableEventsWhileStreaming]
|
||||||
RemoteFetchEnabled = False
|
RemoteFetchEnabled = False
|
||||||
|
LocalSchema = schReport
|
||||||
|
LocalDataStreamer = Bin2DataStreamer
|
||||||
DetailOptions = [dtCascadeOpenClose, dtCascadeApplyUpdates, dtAutoFetch, dtCascadeDelete, dtCascadeUpdate, dtDisableLogOfCascadeDeletes, dtDisableLogOfCascadeUpdates, dtIncludeInAllInOneFetch]
|
DetailOptions = [dtCascadeOpenClose, dtCascadeApplyUpdates, dtAutoFetch, dtCascadeDelete, dtCascadeUpdate, dtDisableLogOfCascadeDeletes, dtDisableLogOfCascadeUpdates, dtIncludeInAllInOneFetch]
|
||||||
MasterOptions = [moCascadeOpenClose, moCascadeApplyUpdates, moCascadeDelete, moCascadeUpdate, moDisableLogOfCascadeDeletes, moDisableLogOfCascadeUpdates]
|
MasterOptions = [moCascadeOpenClose, moCascadeApplyUpdates, moCascadeDelete, moCascadeUpdate, moDisableLogOfCascadeDeletes, moDisableLogOfCascadeUpdates]
|
||||||
|
LogicalName = 'InformeFacturasCliente'
|
||||||
IndexDefs = <>
|
IndexDefs = <>
|
||||||
Left = 264
|
Left = 264
|
||||||
Top = 128
|
Top = 128
|
||||||
end
|
end
|
||||||
object tbl_DetallesFacturaCliente: TDACDSDataTable
|
object tbl_DetallesFacturaCliente: TDAMemDataTable
|
||||||
RemoteUpdatesOptions = []
|
RemoteUpdatesOptions = []
|
||||||
Fields = <>
|
Fields = <
|
||||||
Params = <>
|
item
|
||||||
|
Name = 'ID'
|
||||||
|
DataType = datAutoInc
|
||||||
|
DictionaryEntry = 'FacturasCliente_Detalles_ID'
|
||||||
|
InPrimaryKey = True
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'ID_FACTURA'
|
||||||
|
DataType = datInteger
|
||||||
|
DictionaryEntry = 'FacturasCliente_Detalles_ID_FACTURA'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'POSICION'
|
||||||
|
DataType = datInteger
|
||||||
|
DictionaryEntry = 'FacturasCliente_Detalles_POSICION'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'TIPO_DETALLE'
|
||||||
|
DataType = datString
|
||||||
|
Size = 10
|
||||||
|
DictionaryEntry = 'FacturasCliente_Detalles_TIPO_DETALLE'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'CONCEPTO'
|
||||||
|
DataType = datString
|
||||||
|
Size = 2000
|
||||||
|
DictionaryEntry = 'FacturasCliente_Detalles_CONCEPTO'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'CANTIDAD'
|
||||||
|
DataType = datInteger
|
||||||
|
DictionaryEntry = 'FacturasCliente_Detalles_CANTIDAD'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'IMPORTE_UNIDAD'
|
||||||
|
DataType = datFloat
|
||||||
|
DictionaryEntry = 'FacturasCliente_Detalles_IMPORTE_UNIDAD'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'DESCUENTO'
|
||||||
|
DataType = datFloat
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'IMPORTE_TOTAL'
|
||||||
|
DataType = datFloat
|
||||||
|
DictionaryEntry = 'FacturasCliente_Detalles_IMPORTE_TOTAL'
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'VISIBLE'
|
||||||
|
DataType = datInteger
|
||||||
|
DictionaryEntry = 'FacturasCliente_Detalles_VISIBLE'
|
||||||
|
end>
|
||||||
|
Params = <
|
||||||
|
item
|
||||||
|
Name = 'ID_FACTURA'
|
||||||
|
DataType = datInteger
|
||||||
|
Value = '13'
|
||||||
|
ParamType = daptInput
|
||||||
|
end>
|
||||||
MasterMappingMode = mmDataRequest
|
MasterMappingMode = mmDataRequest
|
||||||
LogChanges = False
|
LogChanges = False
|
||||||
StreamingOptions = [soDisableEventsWhileStreaming]
|
StreamingOptions = [soDisableEventsWhileStreaming]
|
||||||
RemoteFetchEnabled = False
|
RemoteFetchEnabled = False
|
||||||
|
LocalSchema = schReport
|
||||||
|
LocalDataStreamer = Bin2DataStreamer
|
||||||
DetailOptions = [dtCascadeOpenClose, dtCascadeApplyUpdates, dtAutoFetch, dtCascadeDelete, dtCascadeUpdate, dtDisableLogOfCascadeDeletes, dtDisableLogOfCascadeUpdates, dtIncludeInAllInOneFetch]
|
DetailOptions = [dtCascadeOpenClose, dtCascadeApplyUpdates, dtAutoFetch, dtCascadeDelete, dtCascadeUpdate, dtDisableLogOfCascadeDeletes, dtDisableLogOfCascadeUpdates, dtIncludeInAllInOneFetch]
|
||||||
MasterOptions = [moCascadeOpenClose, moCascadeApplyUpdates, moCascadeDelete, moCascadeUpdate, moDisableLogOfCascadeDeletes, moDisableLogOfCascadeUpdates]
|
MasterOptions = [moCascadeOpenClose, moCascadeApplyUpdates, moCascadeDelete, moCascadeUpdate, moDisableLogOfCascadeDeletes, moDisableLogOfCascadeUpdates]
|
||||||
|
LogicalName = 'InformeFacturasCliente_Detalles'
|
||||||
IndexDefs = <>
|
IndexDefs = <>
|
||||||
Left = 344
|
Left = 344
|
||||||
Top = 128
|
Top = 128
|
||||||
end
|
end
|
||||||
object DABINAdapter: TDABINAdapter
|
|
||||||
Left = 48
|
|
||||||
Top = 80
|
|
||||||
end
|
|
||||||
object frxRichObject1: TfrxRichObject
|
object frxRichObject1: TfrxRichObject
|
||||||
Left = 48
|
Left = 48
|
||||||
Top = 296
|
Top = 296
|
||||||
@ -820,10 +1091,10 @@ object RptFacturasCliente: TRptFacturasCliente
|
|||||||
DisplayLabel = 'Cantidad'
|
DisplayLabel = 'Cantidad'
|
||||||
end>
|
end>
|
||||||
Left = 46
|
Left = 46
|
||||||
Top = 158
|
Top = 142
|
||||||
end
|
end
|
||||||
object frxReport: TfrxReport
|
object frxReport: TfrxReport
|
||||||
Version = '3.23.7'
|
Version = '4.3'
|
||||||
DotMatrixReport = False
|
DotMatrixReport = False
|
||||||
EngineOptions.DoublePass = True
|
EngineOptions.DoublePass = True
|
||||||
IniFile = '\Software\Fast Reports'
|
IniFile = '\Software\Fast Reports'
|
||||||
@ -831,6 +1102,7 @@ object RptFacturasCliente: TRptFacturasCliente
|
|||||||
PreviewOptions.OutlineWidth = 180
|
PreviewOptions.OutlineWidth = 180
|
||||||
PreviewOptions.Zoom = 1.000000000000000000
|
PreviewOptions.Zoom = 1.000000000000000000
|
||||||
PrintOptions.Printer = 'Default'
|
PrintOptions.Printer = 'Default'
|
||||||
|
PrintOptions.PrintOnSheet = 0
|
||||||
ReportOptions.CreateDate = 37871.995398692100000000
|
ReportOptions.CreateDate = 37871.995398692100000000
|
||||||
ReportOptions.LastChange = 39290.847101226850000000
|
ReportOptions.LastChange = 39290.847101226850000000
|
||||||
ReportOptions.VersionBuild = '1'
|
ReportOptions.VersionBuild = '1'
|
||||||
@ -986,105 +1258,66 @@ object RptFacturasCliente: TRptFacturasCliente
|
|||||||
OnStartReport = 'frxReportOnStartReport'
|
OnStartReport = 'frxReportOnStartReport'
|
||||||
Left = 169
|
Left = 169
|
||||||
Top = 16
|
Top = 16
|
||||||
Datasets = <
|
|
||||||
item
|
|
||||||
DataSet = frxDBCabecera
|
|
||||||
DataSetName = 'frxDBCabecera'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DataSet = frxDBDetalles
|
|
||||||
DataSetName = 'frxDBDetalles'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DataSet = frxDBDataset1
|
|
||||||
DataSetName = 'frxDBVencimientos'
|
|
||||||
end>
|
|
||||||
Variables = <
|
|
||||||
item
|
|
||||||
Name = ' Paginacion'
|
|
||||||
Value = Null
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'Pagina'
|
|
||||||
Value = Null
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'TotalPaginas'
|
|
||||||
Value = Null
|
|
||||||
end>
|
|
||||||
Style = <
|
|
||||||
item
|
|
||||||
Name = 'Concepto normal'
|
|
||||||
Color = clNone
|
|
||||||
Font.Charset = ANSI_CHARSET
|
|
||||||
Font.Color = clWindowText
|
|
||||||
Font.Height = -12
|
|
||||||
Font.Name = 'Tahoma'
|
|
||||||
Font.Style = []
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'Concepto subtotal'
|
|
||||||
Color = clNone
|
|
||||||
Font.Charset = ANSI_CHARSET
|
|
||||||
Font.Color = clWindowText
|
|
||||||
Font.Height = -12
|
|
||||||
Font.Name = 'Tahoma'
|
|
||||||
Font.Style = [fsBold]
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'Cabecera de columna'
|
|
||||||
Color = 15790320
|
|
||||||
Font.Charset = ANSI_CHARSET
|
|
||||||
Font.Color = clWindowText
|
|
||||||
Font.Height = -12
|
|
||||||
Font.Name = 'Tahoma'
|
|
||||||
Font.Style = [fsBold]
|
|
||||||
Frame.Typ = [ftLeft, ftRight, ftTop, ftBottom]
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'Concepto titulo'
|
|
||||||
Color = clNone
|
|
||||||
Font.Charset = ANSI_CHARSET
|
|
||||||
Font.Color = clWindowText
|
|
||||||
Font.Height = -13
|
|
||||||
Font.Name = 'Tahoma'
|
|
||||||
Font.Style = [fsBold]
|
|
||||||
end>
|
|
||||||
end
|
end
|
||||||
object frxDBCabecera: TfrxDBDataset
|
object frxDBCabecera: TfrxDBDataset
|
||||||
UserName = 'frxDBCabecera'
|
UserName = 'frxDBCabecera'
|
||||||
CloseDataSource = True
|
CloseDataSource = True
|
||||||
|
DataSource = DADataCabecera
|
||||||
Left = 264
|
Left = 264
|
||||||
Top = 16
|
Top = 16
|
||||||
end
|
end
|
||||||
object frxDBDetalles: TfrxDBDataset
|
object frxDBDetalles: TfrxDBDataset
|
||||||
UserName = 'frxDBDetalles'
|
UserName = 'frxDBDetalles'
|
||||||
CloseDataSource = False
|
CloseDataSource = False
|
||||||
|
DataSource = DADataDetalles
|
||||||
Left = 344
|
Left = 344
|
||||||
Top = 16
|
Top = 16
|
||||||
end
|
end
|
||||||
object DADataVencimientos: TDADataSource
|
object DADataVencimientos: TDADataSource
|
||||||
Left = 264
|
DataSet = tbl_Vencimientos.Dataset
|
||||||
Top = 184
|
DataTable = tbl_Vencimientos
|
||||||
|
Left = 456
|
||||||
|
Top = 72
|
||||||
end
|
end
|
||||||
object tbl_Vencimientos: TDACDSDataTable
|
object tbl_Vencimientos: TDAMemDataTable
|
||||||
RemoteUpdatesOptions = []
|
RemoteUpdatesOptions = []
|
||||||
Fields = <>
|
Fields = <
|
||||||
Params = <>
|
item
|
||||||
|
Name = 'FECHA_VENCIMIENTO'
|
||||||
|
DataType = datDateTime
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Name = 'IMPORTE_TOTAL'
|
||||||
|
DataType = datFloat
|
||||||
|
end>
|
||||||
|
Params = <
|
||||||
|
item
|
||||||
|
Name = 'ID_FACTURA'
|
||||||
|
Value = ''
|
||||||
|
ParamType = daptInput
|
||||||
|
end>
|
||||||
MasterMappingMode = mmDataRequest
|
MasterMappingMode = mmDataRequest
|
||||||
LogChanges = False
|
LogChanges = False
|
||||||
StreamingOptions = [soDisableEventsWhileStreaming]
|
StreamingOptions = [soDisableEventsWhileStreaming]
|
||||||
RemoteFetchEnabled = False
|
RemoteFetchEnabled = False
|
||||||
|
LocalSchema = schReport
|
||||||
|
LocalDataStreamer = Bin2DataStreamer
|
||||||
DetailOptions = [dtCascadeOpenClose, dtCascadeApplyUpdates, dtAutoFetch, dtCascadeDelete, dtCascadeUpdate, dtDisableLogOfCascadeDeletes, dtDisableLogOfCascadeUpdates, dtIncludeInAllInOneFetch]
|
DetailOptions = [dtCascadeOpenClose, dtCascadeApplyUpdates, dtAutoFetch, dtCascadeDelete, dtCascadeUpdate, dtDisableLogOfCascadeDeletes, dtDisableLogOfCascadeUpdates, dtIncludeInAllInOneFetch]
|
||||||
MasterOptions = [moCascadeOpenClose, moCascadeApplyUpdates, moCascadeDelete, moCascadeUpdate, moDisableLogOfCascadeDeletes, moDisableLogOfCascadeUpdates]
|
MasterOptions = [moCascadeOpenClose, moCascadeApplyUpdates, moCascadeDelete, moCascadeUpdate, moDisableLogOfCascadeDeletes, moDisableLogOfCascadeUpdates]
|
||||||
|
LogicalName = 'InformeFacturasCliente_Vencimientos'
|
||||||
IndexDefs = <>
|
IndexDefs = <>
|
||||||
Left = 264
|
Left = 456
|
||||||
Top = 240
|
Top = 128
|
||||||
end
|
end
|
||||||
object frxDBDataset1: TfrxDBDataset
|
object frxDBDataset1: TfrxDBDataset
|
||||||
UserName = 'frxDBVencimientos'
|
UserName = 'frxDBVencimientos'
|
||||||
CloseDataSource = True
|
CloseDataSource = True
|
||||||
Left = 344
|
DataSource = DADataVencimientos
|
||||||
Top = 184
|
Left = 456
|
||||||
|
Top = 16
|
||||||
|
end
|
||||||
|
object Bin2DataStreamer: TDABin2DataStreamer
|
||||||
|
Left = 48
|
||||||
|
Top = 80
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -7,15 +7,14 @@ uses
|
|||||||
Dialogs, frxClass, frxDBSet, uDAScriptingProvider,
|
Dialogs, frxClass, frxDBSet, uDAScriptingProvider,
|
||||||
uDADataTable, uDACDSDataTable, DB, uDAClasses, frxChart, frxGradient,
|
uDADataTable, uDACDSDataTable, DB, uDAClasses, frxChart, frxGradient,
|
||||||
frxChBox, frxCross, frxOLE, frxBarcode, frxRich, uDABINAdapter, uROTypes,
|
frxChBox, frxCross, frxOLE, frxBarcode, frxRich, uDABINAdapter, uROTypes,
|
||||||
uDAInterfaces, uDADataStreamer;
|
uDAInterfaces, uDADataStreamer, uDABin2DataStreamer, uDAMemDataTable;
|
||||||
|
|
||||||
type
|
type
|
||||||
TRptFacturasCliente = class(TDataModule)
|
TRptFacturasCliente = class(TDataModule)
|
||||||
DADataCabecera: TDADataSource;
|
DADataCabecera: TDADataSource;
|
||||||
DADataDetalles: TDADataSource;
|
DADataDetalles: TDADataSource;
|
||||||
tbl_FacturaCliente: TDACDSDataTable;
|
tbl_FacturaCliente: TDAMemDataTable;
|
||||||
tbl_DetallesFacturaCliente: TDACDSDataTable;
|
tbl_DetallesFacturaCliente: TDAMemDataTable;
|
||||||
DABINAdapter: TDABINAdapter;
|
|
||||||
frxRichObject1: TfrxRichObject;
|
frxRichObject1: TfrxRichObject;
|
||||||
frxBarCodeObject1: TfrxBarCodeObject;
|
frxBarCodeObject1: TfrxBarCodeObject;
|
||||||
frxOLEObject1: TfrxOLEObject;
|
frxOLEObject1: TfrxOLEObject;
|
||||||
@ -25,11 +24,12 @@ type
|
|||||||
frxDBCabecera: TfrxDBDataset;
|
frxDBCabecera: TfrxDBDataset;
|
||||||
frxDBDetalles: TfrxDBDataset;
|
frxDBDetalles: TfrxDBDataset;
|
||||||
DADataVencimientos: TDADataSource;
|
DADataVencimientos: TDADataSource;
|
||||||
tbl_Vencimientos: TDACDSDataTable;
|
tbl_Vencimientos: TDAMemDataTable;
|
||||||
frxDBDataset1: TfrxDBDataset;
|
frxDBDataset1: TfrxDBDataset;
|
||||||
schReport: TDASchema;
|
schReport: TDASchema;
|
||||||
DataDictionary: TDADataDictionary;
|
DataDictionary: TDADataDictionary;
|
||||||
frxReport: TfrxReport;
|
frxReport: TfrxReport;
|
||||||
|
Bin2DataStreamer: TDABin2DataStreamer;
|
||||||
procedure DataModuleCreate(Sender: TObject);
|
procedure DataModuleCreate(Sender: TObject);
|
||||||
private
|
private
|
||||||
FConnection: IDAConnection;
|
FConnection: IDAConnection;
|
||||||
@ -96,25 +96,31 @@ var
|
|||||||
dsDetail: IDADataset;
|
dsDetail: IDADataset;
|
||||||
dsVencimientos : IDADataset;
|
dsVencimientos : IDADataset;
|
||||||
begin
|
begin
|
||||||
AStream := TMemoryStream.Create;
|
// AStream := TMemoryStream.Create;
|
||||||
|
|
||||||
try
|
try
|
||||||
dsMaster := schReport.NewDataset(FConnection, ds_InformeFacturasCliente, ['ID'], [ID]);
|
// dsMaster := schReport.NewDataset(FConnection, ds_InformeFacturasCliente, ['ID'], [ID]);
|
||||||
dsDetail := schReport.NewDataset(FConnection, ds_InformeFacturasCliente_Detalles, ['ID_FACTURA'], [ID], False);
|
// dsDetail := schReport.NewDataset(FConnection, ds_InformeFacturasCliente_Detalles, ['ID_FACTURA'], [ID], False);
|
||||||
dsVencimientos := schReport.NewDataset(FConnection, ds_InformeFacturasCliente_Vencimientos, ['ID_FACTURA'], [ID], False);
|
// dsVencimientos := schReport.NewDataset(FConnection, ds_InformeFacturasCliente_Vencimientos, ['ID_FACTURA'], [ID], False);
|
||||||
|
|
||||||
AStream.Clear;
|
// AStream.Clear;
|
||||||
DABINAdapter.WriteDataset(AStream, dsMaster, [woRows, woSchema], -1);
|
// DABINAdapter.WriteDataset(AStream, dsMaster, [woRows, woSchema], -1);
|
||||||
DABINAdapter.ReadDataset(AStream, tbl_FacturaCliente, TRUE, '', TRUE, TRUE);
|
// DABINAdapter.ReadDataset(AStream, tbl_FacturaCliente, TRUE, '', TRUE, TRUE);
|
||||||
|
|
||||||
AStream.Clear;
|
// AStream.Clear;
|
||||||
DABINAdapter.WriteDataset(AStream, dsDetail, [woRows, woSchema], -1);
|
// DABINAdapter.WriteDataset(AStream, dsDetail, [woRows, woSchema], -1);
|
||||||
DABINAdapter.ReadDataset(AStream, tbl_DetallesFacturaCliente, TRUE, '', TRUE, TRUE);
|
// DABINAdapter.ReadDataset(AStream, tbl_DetallesFacturaCliente, TRUE, '', TRUE, TRUE);
|
||||||
|
|
||||||
AStream.Clear;
|
// AStream.Clear;
|
||||||
DABINAdapter.WriteDataset(AStream, dsVencimientos, [woRows, woSchema], -1);
|
// DABINAdapter.WriteDataset(AStream, dsVencimientos, [woRows, woSchema], -1);
|
||||||
DABINAdapter.ReadDataset(AStream, tbl_Vencimientos, TRUE, '', TRUE, TRUE);
|
// DABINAdapter.ReadDataset(AStream, tbl_Vencimientos, TRUE, '', TRUE, TRUE);
|
||||||
|
|
||||||
|
tbl_FacturaCliente.ParamByName('ID').AsInteger := ID;
|
||||||
|
tbl_DetallesFacturaCliente.ParamByName('ID_FACTURA').AsInteger := ID;
|
||||||
|
tbl_Vencimientos.ParamByName('ID_FACTURA').AsInteger := ID;
|
||||||
|
tbl_FacturaCliente.Active := True;
|
||||||
|
tbl_DetallesFacturaCliente.Active := True;
|
||||||
|
tbl_Vencimientos.Active := True;
|
||||||
|
|
||||||
frxReport.LoadFromFile(DarRutaInformes + rptFacturaCliente, True);
|
frxReport.LoadFromFile(DarRutaInformes + rptFacturaCliente, True);
|
||||||
frxReport.PrepareReport(False);
|
frxReport.PrepareReport(False);
|
||||||
|
|||||||
@ -44,9 +44,7 @@ implementation
|
|||||||
uses
|
uses
|
||||||
{Generated:} FactuGES_Invk, Dialogs,
|
{Generated:} FactuGES_Invk, Dialogs,
|
||||||
uDataModuleServer, uDatabaseUtils, uUsersManager, schFacturasClienteClient_Intf,
|
uDataModuleServer, uDatabaseUtils, uUsersManager, schFacturasClienteClient_Intf,
|
||||||
uRestriccionesUsuarioUtils,
|
uRestriccionesUsuarioUtils, uRptFacturasCliente_Server, uBizFacturasClienteServer;
|
||||||
// uRptFacturasCliente_Server,
|
|
||||||
uBizFacturasClienteServer;
|
|
||||||
|
|
||||||
procedure Create_srvFacturasCliente(out anInstance : IUnknown);
|
procedure Create_srvFacturasCliente(out anInstance : IUnknown);
|
||||||
begin
|
begin
|
||||||
@ -55,19 +53,16 @@ end;
|
|||||||
|
|
||||||
{ srvFacturasCliente }
|
{ srvFacturasCliente }
|
||||||
|
|
||||||
procedure TsrvFacturasCliente.DARemoteServiceBeforeGetDatasetData(
|
procedure TsrvFacturasCliente.DARemoteServiceBeforeGetDatasetData(const Dataset: IDADataset; const IncludeSchema: Boolean;
|
||||||
const Dataset: IDADataset; const IncludeSchema: Boolean;
|
|
||||||
const MaxRecords: Integer);
|
const MaxRecords: Integer);
|
||||||
begin
|
begin
|
||||||
{
|
|
||||||
if DataSet.Name = nme_FacturasCliente then
|
if DataSet.Name = nme_FacturasCliente then
|
||||||
begin
|
begin
|
||||||
{ Aquí se asegura que el usuario sólo accede a facturas
|
{ Aquí se asegura que el usuario sólo accede a facturas
|
||||||
de las empresas a las que tiene permiso para acceder
|
de las empresas a las que tiene permiso para acceder
|
||||||
filtrando DataSet por ID_EMPRESA. }
|
filtrando DataSet por ID_EMPRESA. }
|
||||||
{ FiltrarAccesoUsuario(Session, Connection, schFacturasCliente, DataSet, fld_FacturasClienteID_EMPRESA);
|
FiltrarAccesoUsuario(Session, Connection, schFacturasCliente, DataSet, fld_FacturasClienteID_EMPRESA);
|
||||||
end;
|
end;
|
||||||
}
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TsrvFacturasCliente.DARemoteServiceCreate(Sender: TObject);
|
procedure TsrvFacturasCliente.DARemoteServiceCreate(Sender: TObject);
|
||||||
@ -83,16 +78,15 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function TsrvFacturasCliente.GenerateReport(const FacturaID: String): Binary;
|
function TsrvFacturasCliente.GenerateReport(const FacturaID: String): Binary;
|
||||||
//var
|
var
|
||||||
// AReportGenerator : TRptFacturasCliente;
|
AReportGenerator : TRptFacturasCliente;
|
||||||
begin
|
begin
|
||||||
{ AReportGenerator := TRptFacturasCliente.Create(nil);
|
AReportGenerator := TRptFacturasCliente.Create(nil);
|
||||||
try
|
try
|
||||||
Result := AReportGenerator.GenerarFactura(FacturaID);
|
Result := AReportGenerator.GenerarFactura(FacturaID);
|
||||||
finally
|
finally
|
||||||
FreeAndNIL(AReportGenerator);
|
FreeAndNIL(AReportGenerator);
|
||||||
end;
|
end;
|
||||||
}
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
|
|||||||
@ -2,7 +2,6 @@ inherited fEditorFacturasCliente: TfEditorFacturasCliente
|
|||||||
Caption = 'Lista de facturas de cliente'
|
Caption = 'Lista de facturas de cliente'
|
||||||
ClientHeight = 666
|
ClientHeight = 666
|
||||||
ClientWidth = 640
|
ClientWidth = 640
|
||||||
ExplicitTop = -136
|
|
||||||
ExplicitWidth = 648
|
ExplicitWidth = 648
|
||||||
ExplicitHeight = 693
|
ExplicitHeight = 693
|
||||||
PixelsPerInch = 96
|
PixelsPerInch = 96
|
||||||
@ -142,10 +141,10 @@ inherited fEditorFacturasCliente: TfEditorFacturasCliente
|
|||||||
Width = 240
|
Width = 240
|
||||||
end
|
end
|
||||||
inherited edtFechaFinFiltro: TcxDateEdit
|
inherited edtFechaFinFiltro: TcxDateEdit
|
||||||
Left = 367
|
Left = 351
|
||||||
ExplicitLeft = 367
|
ExplicitLeft = 351
|
||||||
ExplicitWidth = 244
|
ExplicitWidth = 273
|
||||||
Width = 244
|
Width = 273
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
inherited TBXAlignmentPanel1: TTBXAlignmentPanel
|
inherited TBXAlignmentPanel1: TTBXAlignmentPanel
|
||||||
|
|||||||
@ -229,8 +229,6 @@ var
|
|||||||
AFacturas: IBizFacturaCliente;
|
AFacturas: IBizFacturaCliente;
|
||||||
AllItems: Boolean;
|
AllItems: Boolean;
|
||||||
begin
|
begin
|
||||||
AppFactuGES.ShowCapado;
|
|
||||||
{
|
|
||||||
AFacturas := Nil;
|
AFacturas := Nil;
|
||||||
AllItems := False;
|
AllItems := False;
|
||||||
|
|
||||||
@ -264,7 +262,6 @@ AppFactuGES.ShowCapado;
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
}
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfEditorFacturasCliente.ModificarInterno;
|
procedure TfEditorFacturasCliente.ModificarInterno;
|
||||||
@ -332,8 +329,6 @@ var
|
|||||||
AFacturas: IBizFacturaCliente;
|
AFacturas: IBizFacturaCliente;
|
||||||
AllItems: Boolean;
|
AllItems: Boolean;
|
||||||
begin
|
begin
|
||||||
AppFactuGES.ShowCapado;
|
|
||||||
{
|
|
||||||
AFacturas := Nil;
|
AFacturas := Nil;
|
||||||
AllItems := False;
|
AllItems := False;
|
||||||
|
|
||||||
@ -367,7 +362,6 @@ AppFactuGES.ShowCapado;
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
}
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfEditorFacturasCliente.SetController(const Value: IFacturasClienteController);
|
procedure TfEditorFacturasCliente.SetController(const Value: IFacturasClienteController);
|
||||||
|
|||||||
@ -6,9 +6,9 @@ uses
|
|||||||
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
||||||
Dialogs, frxClass, frxDBSet, uDAScriptingProvider,
|
Dialogs, frxClass, frxDBSet, uDAScriptingProvider,
|
||||||
uDADataTable, uDACDSDataTable, DB, uDAClasses, uDABINAdapter, uROTypes,
|
uDADataTable, uDACDSDataTable, DB, uDAClasses, uDABINAdapter, uROTypes,
|
||||||
uDAInterfaces, uDAMemDataTable, uDADataStreamer, uDABin2DataStreamer,
|
uDAInterfaces, uDAMemDataTable, uDABin2DataStreamer,
|
||||||
frxGradient, frxChBox, frxCross, frxOLE, frxBarcode, frxRich, uDAEngine,
|
frxGradient, frxChBox, frxCross, frxOLE, frxBarcode, frxRich, uDAEngine,
|
||||||
IBSQL, IBDatabase, IBCustomDataSet, IBQuery;
|
IBSQL, IBDatabase, IBCustomDataSet, IBQuery, uDADataStreamer;
|
||||||
|
|
||||||
type
|
type
|
||||||
TRptPresupuestosCliente = class(TDataModule)
|
TRptPresupuestosCliente = class(TDataModule)
|
||||||
|
|||||||
Binary file not shown.
@ -110,7 +110,10 @@ uses
|
|||||||
schFacturasProveedorClient_Intf in '..\Modulos\Facturas de proveedor\Model\schFacturasProveedorClient_Intf.pas',
|
schFacturasProveedorClient_Intf in '..\Modulos\Facturas de proveedor\Model\schFacturasProveedorClient_Intf.pas',
|
||||||
schFacturasProveedorServer_Intf in '..\Modulos\Facturas de proveedor\Model\schFacturasProveedorServer_Intf.pas',
|
schFacturasProveedorServer_Intf in '..\Modulos\Facturas de proveedor\Model\schFacturasProveedorServer_Intf.pas',
|
||||||
schContactosClient_Intf in '..\Modulos\Contactos\Model\schContactosClient_Intf.pas',
|
schContactosClient_Intf in '..\Modulos\Contactos\Model\schContactosClient_Intf.pas',
|
||||||
schContactosServer_Intf in '..\Modulos\Contactos\Model\schContactosServer_Intf.pas';
|
schContactosServer_Intf in '..\Modulos\Contactos\Model\schContactosServer_Intf.pas',
|
||||||
|
uRptFichasEmpleado_Server in '..\Modulos\Contactos\Reports\uRptFichasEmpleado_Server.pas' {RptFichasEmpleado: TDataModule},
|
||||||
|
uRptEtiquetasContacto_Server in '..\Modulos\Contactos\Reports\uRptEtiquetasContacto_Server.pas' {RptEtiquetasContacto: TDataModule},
|
||||||
|
uRptFacturasCliente_Server in '..\Modulos\Facturas de cliente\Reports\uRptFacturasCliente_Server.pas' {RptFacturasCliente: TDataModule};
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
{$R ..\Servicios\RODLFile.res}
|
{$R ..\Servicios\RODLFile.res}
|
||||||
|
|||||||
@ -91,6 +91,14 @@
|
|||||||
<DCCReference Include="..\Modulos\Contactos\Model\uBizContactosServer.pas" />
|
<DCCReference Include="..\Modulos\Contactos\Model\uBizContactosServer.pas" />
|
||||||
<DCCReference Include="..\Modulos\Contactos\Model\uBizEmpleadosServer.pas" />
|
<DCCReference Include="..\Modulos\Contactos\Model\uBizEmpleadosServer.pas" />
|
||||||
<DCCReference Include="..\Modulos\Contactos\Model\uBizProveedoresServer.pas" />
|
<DCCReference Include="..\Modulos\Contactos\Model\uBizProveedoresServer.pas" />
|
||||||
|
<DCCReference Include="..\Modulos\Contactos\Reports\uRptEtiquetasContacto_Server.pas">
|
||||||
|
<Form>RptEtiquetasContacto</Form>
|
||||||
|
<DesignClass>TDataModule</DesignClass>
|
||||||
|
</DCCReference>
|
||||||
|
<DCCReference Include="..\Modulos\Contactos\Reports\uRptFichasEmpleado_Server.pas">
|
||||||
|
<Form>RptFichasEmpleado</Form>
|
||||||
|
<DesignClass>TDataModule</DesignClass>
|
||||||
|
</DCCReference>
|
||||||
<DCCReference Include="..\Modulos\Contactos\Servidor\srvContactos_Impl.pas">
|
<DCCReference Include="..\Modulos\Contactos\Servidor\srvContactos_Impl.pas">
|
||||||
<Form>srvContactos</Form>
|
<Form>srvContactos</Form>
|
||||||
<DesignClass>TDARemoteService</DesignClass>
|
<DesignClass>TDARemoteService</DesignClass>
|
||||||
@ -98,6 +106,10 @@
|
|||||||
<DCCReference Include="..\Modulos\Facturas de cliente\Model\schFacturasClienteClient_Intf.pas" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\Model\schFacturasClienteClient_Intf.pas" />
|
||||||
<DCCReference Include="..\Modulos\Facturas de cliente\Model\schFacturasClienteServer_Intf.pas" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\Model\schFacturasClienteServer_Intf.pas" />
|
||||||
<DCCReference Include="..\Modulos\Facturas de cliente\Model\uBizFacturasClienteServer.pas" />
|
<DCCReference Include="..\Modulos\Facturas de cliente\Model\uBizFacturasClienteServer.pas" />
|
||||||
|
<DCCReference Include="..\Modulos\Facturas de cliente\Reports\uRptFacturasCliente_Server.pas">
|
||||||
|
<Form>RptFacturasCliente</Form>
|
||||||
|
<DesignClass>TDataModule</DesignClass>
|
||||||
|
</DCCReference>
|
||||||
<DCCReference Include="..\Modulos\Facturas de cliente\Servidor\srvFacturasCliente_Impl.pas">
|
<DCCReference Include="..\Modulos\Facturas de cliente\Servidor\srvFacturasCliente_Impl.pas">
|
||||||
<Form>srvFacturasCliente</Form>
|
<Form>srvFacturasCliente</Form>
|
||||||
<DesignClass>TDataAbstractService</DesignClass>
|
<DesignClass>TDataAbstractService</DesignClass>
|
||||||
|
|||||||
@ -14,7 +14,7 @@ BEGIN
|
|||||||
BEGIN
|
BEGIN
|
||||||
VALUE "FileVersion", "1.0.0.0\0"
|
VALUE "FileVersion", "1.0.0.0\0"
|
||||||
VALUE "ProductVersion", "1.0.0.0\0"
|
VALUE "ProductVersion", "1.0.0.0\0"
|
||||||
VALUE "CompileDate", "viernes, 04 de enero de 2008 12:34\0"
|
VALUE "CompileDate", "martes, 08 de enero de 2008 10:35\0"
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user