-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbasedatos.h
264 lines (258 loc) · 12.4 KB
/
basedatos.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
//---------------------------------------------------------------------------
#ifndef basedatosH
#define basedatosH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <DB.hpp>
#include <DBTables.hpp>
#include "AbBase.hpp"
#include "AbBrowse.hpp"
#include "AbZBrows.hpp"
#include "AbZipper.hpp"
#include "AbCabMak.hpp"
#include "AbCBrows.hpp"
//---------------------------------------------------------------------------
class TBD : public TDataModule
{
__published: // IDE-managed Components
TTable *TableClientes;
TTable *TableProductos;
TTable *TableDocumentos;
TTable *TableDocumentosDetalles;
TTable *TableVentasDiario;
TTable *TableCuentasCorrientes;
TTable *TableVentasAnual;
TTable *TableVentasMensual;
TTable *TableLocalidades;
TTable *TableProvincias;
TTable *TableTiposNegocios;
TTable *TableFamilias;
TTable *TableUnidades;
TDataSource *DataSourceProductos;
TDataSource *DataSourceClientes;
TDataSource *DataSourceDocumentosDetalles;
TDataSource *DataSourceDocumentos;
TDataSource *DataSourceVentasDiario;
TDataSource *DataSourceCuentasCorrientes;
TDataSource *DataSourceVentasAnual;
TDataSource *DataSourceVentasMensual;
TDataSource *DataSourceProvincias;
TDataSource *DataSourceLocalidades;
TDataSource *DataSourceTiposNegocios;
TDataSource *DataSourceFamilias;
TDataSource *DataSourceUnidades;
TSmallintField *TableCuentasCorrientesTipoDocumento;
TIntegerField *TableCuentasCorrientesNumeroDocumento;
TMemoField *TableCuentasCorrientesObservacion;
TSmallintField *TableDocumentosTipoDocumento;
TIntegerField *TableCuentasCorrientesNumeroCliente;
TIntegerField *TableCuentasCorrientesNumeroRegistro;
TDateField *TableCuentasCorrientesFecha;
TCurrencyField *TableCuentasCorrientesDebe;
TCurrencyField *TableCuentasCorrientesHaber;
TCurrencyField *TableCuentasCorrientesSaldoParcial;
TIntegerField *TableDocumentosNumeroDocumento;
TIntegerField *TableDocumentosNumeroCliente;
TDateField *TableDocumentosFecha;
TStringField *TableDocumentosNombreFactura;
TCurrencyField *TableDocumentosSubtotal;
TFloatField *TableDocumentosDescuento;
TCurrencyField *TableDocumentosDescuentoTotal;
TCurrencyField *TableDocumentosSubtotal2;
TFloatField *TableDocumentosIVA;
TCurrencyField *TableDocumentosIVATotal;
TCurrencyField *TableDocumentosTotal;
TStringField *TableDocumentosDireccion;
TStringField *TableDocumentosLocalidad;
TStringField *TableDocumentosProvincia;
TStringField *TableDocumentosPosicionIVA;
TStringField *TableDocumentosCUIT;
TMemoField *TableDocumentosComunicado;
TTimeField *TableDocumentosHora;
TTimeField *TableCuentasCorrientesHora;
TSmallintField *TableDocumentosEstado;
TSmallintField *TableVentasMensualAno;
TSmallintField *TableVentasMensualMes;
TCurrencyField *TableVentasMensualMontoRemitos;
TCurrencyField *TableVentasMensualMontoFacturas;
TCurrencyField *TableVentasMensualMontoTotal;
TStringField *TableDocumentosFormaPago;
TTable *TableProductosMensual;
TTable *TableProductosDiario;
TTable *TableProductosAnual;
TDataSource *DataSourceProductosMensual;
TDataSource *DataSourceProductosDiario;
TDataSource *DataSourceProductosAnual;
TIntegerField *TableClientesNumeroCliente;
TDateField *TableClientesFecha;
TStringField *TableClientesNombreCliente;
TStringField *TableClientesDireccion;
TStringField *TableClientesLocalidad;
TStringField *TableClientesProvincia;
TStringField *TableClientesTelefono1;
TStringField *TableClientesTelefono2;
TStringField *TableClientesFax;
TStringField *TableClientesMovil;
TStringField *TableClientesEmail;
TStringField *TableClientesNombreNegocio;
TStringField *TableClientesTipoNegocio;
TStringField *TableClientesNombreFactura;
TStringField *TableClientesPosicionIVA;
TStringField *TableClientesCUIT;
TStringField *TableClientesFormaPago;
TFloatField *TableClientesDescuento;
TIntegerField *TableClientesNumeroRegistrosCC;
TCurrencyField *TableClientesSaldoCC;
TStringField *TableProductosCodigoProducto;
TDateField *TableProductosFecha;
TStringField *TableProductosDescripcion;
TStringField *TableProductosFamilia;
TStringField *TableProductosUnidad;
TCurrencyField *TableProductosPrecio1;
TCurrencyField *TableProductosPrecio2;
TCurrencyField *TableProductosPrecio3;
TSmallintField *TableDocumentosDetallesTipoDocumento;
TIntegerField *TableDocumentosDetallesNumeroDocumento;
TIntegerField *TableDocumentosDetallesNumeroRenglon;
TIntegerField *TableDocumentosDetallesCantidad;
TStringField *TableDocumentosDetallesCodigoProducto;
TStringField *TableDocumentosDetallesUnidad;
TStringField *TableDocumentosDetallesDescripcion;
TCurrencyField *TableDocumentosDetallesPrecio;
TBooleanField *TableDocumentosDetallesSinCargo;
TCurrencyField *TableDocumentosDetallesImporte;
TDateField *TableVentasDiarioFecha;
TCurrencyField *TableVentasDiarioMontoRemitos;
TCurrencyField *TableVentasDiarioMontoFacturas;
TCurrencyField *TableVentasDiarioMontoTotal;
TSmallintField *TableVentasAnualAno;
TCurrencyField *TableVentasAnualMontoRemitos;
TCurrencyField *TableVentasAnualMontoFacturas;
TCurrencyField *TableVentasAnualMontoTotal;
TStringField *TableProvinciasProvincia;
TStringField *TableTiposNegociosTipoNegocio;
TStringField *TableUnidadesUnidad;
TStringField *TableProductosDiarioCodigoProducto;
TDateField *TableProductosDiarioFecha;
TIntegerField *TableProductosDiarioCantidadRemito;
TIntegerField *TableProductosDiarioCantidadFactura;
TIntegerField *TableProductosDiarioCantidadTotal;
TStringField *TableProductosMensualCodigoProducto;
TSmallintField *TableProductosMensualMes;
TSmallintField *TableProductosMensualAno;
TIntegerField *TableProductosMensualCantidadRemito;
TIntegerField *TableProductosMensualCantidadFactura;
TIntegerField *TableProductosMensualCantidadTotal;
TStringField *TableProductosAnualCodigoProducto;
TSmallintField *TableProductosAnualAno;
TIntegerField *TableProductosAnualCantidadRemito;
TIntegerField *TableProductosAnualCantidadFactura;
TIntegerField *TableProductosAnualCantidadTotal;
TTable *TableNumeracion;
TDataSource *DataSourceNumeracion;
TStringField *TableLocalidadesProvincia;
TStringField *TableLocalidadesLocalidad;
TStringField *TableFamiliasFamilia;
TStringField *TableProductosDiarioDescripcion;
TStringField *TableProductosDiarioUnidad;
TStringField *TableProductosMensualDescripcion;
TStringField *TableProductosMensualUnidad;
TStringField *TableProductosAnualDescripcion;
TStringField *TableProductosAnualUnidad;
TAbMakeCab *AbMakeCab;
TDatabase *Database;
TTable *TableFacturaElectronica;
TDataSource *DataSourceFacturaElectronica;
TSmallintField *TableFacturaElectronicaTipoDocumento;
TIntegerField *TableFacturaElectronicaNumeroDocumento;
TSmallintField *TableFacturaElectronicaTipo_cbte;
TIntegerField *TableFacturaElectronicaCbte_nro;
TStringField *TableFacturaElectronicaCae;
TDateField *TableFacturaElectronicaVto_cae;
TMemoField *TableFacturaElectronicaObs_afip;
TStringField *TableFacturaElectronicaNombreAFIP;
TTable *TablePadronAFIP;
TDataSource *DataSourcePadronAFIP;
TStringField *TablePadronAFIPCUIT;
TStringField *TablePadronAFIPNombreAFIP;
TTable *TableKilogramosMensual;
TDataSource *DataSourceKilogramosMensual;
TSmallintField *TableKilogramosMensualMes;
TSmallintField *TableKilogramosMensualAno;
TFloatField *TableKilogramosMensualCantidadRemito;
TFloatField *TableKilogramosMensualCantidadFactura;
TFloatField *TableKilogramosMensualCantidadTotal;
TDataSource *DataSourceFacturaTradicional;
TTable *TableFacturaTradicional;
TSmallintField *TableFacturaTradicionalTipoDocumento;
TIntegerField *TableFacturaTradicionalNumeroDocumento;
TSmallintField *TableFacturaTradicionalTipo_cbte;
TIntegerField *TableFacturaTradicionalCbte_nro;
TIntegerField *TableProductosGramos;
TIntegerField *TableProductosStock;
TIntegerField *TableNumeracionNumeroCliente;
TIntegerField *TableNumeracionNumeroRemito;
TIntegerField *TableNumeracionNumeroFactura;
TIntegerField *TableNumeracionNumeroCreditoRemito;
TIntegerField *TableNumeracionNumeroCreditoFactura;
TIntegerField *TableNumeracionNumeroFacturaElect;
TIntegerField *TableNumeracionNumeroCreditoElect;
TIntegerField *TableNumeracionNumeroDebitoElect;
TIntegerField *TableNumeracionNumeroPedido;
void __fastcall TableProductosPostError(TDataSet *DataSet,
EDatabaseError *E, TDataAction &Action);
void __fastcall TableCuentasCorrientesAfterPost(TDataSet *DataSet);
void __fastcall TableCuentasCorrientesObservacionSetText(
TField *Sender, const AnsiString Text);
void __fastcall TableCuentasCorrientesObservacionGetText(
TField *Sender, AnsiString &Text, bool DisplayText);
void __fastcall TableCuentasCorrientesTipoDocumentoGetText(
TField *Sender, AnsiString &Text, bool DisplayText);
void __fastcall TableCuentasCorrientesNumeroDocumentoGetText(
TField *Sender, AnsiString &Text, bool DisplayText);
void __fastcall TableDocumentosTipoDocumentoGetText(TField *Sender,
AnsiString &Text, bool DisplayText);
void __fastcall TableCuentasCorrientesBeforeEdit(
TDataSet *DataSet);
void __fastcall TableCuentasCorrientesAfterDelete(
TDataSet *DataSet);
void __fastcall TableDocumentosEstadoGetText(TField *Sender,
AnsiString &Text, bool DisplayText);
void __fastcall TableVentasMensualMesGetText(TField *Sender,
AnsiString &Text, bool DisplayText);
void __fastcall TableProductosMensualMesGetText(TField *Sender,
AnsiString &Text, bool DisplayText);
void __fastcall TableProductosDescripcionGetText(
TField *Sender, AnsiString &Text, bool DisplayText);
void __fastcall TableProductosUnidadGetText(TField *Sender,
AnsiString &Text, bool DisplayText);
void __fastcall TableKilogramosMensualMesGetText(TField *Sender,
AnsiString &Text, bool DisplayText);
void __fastcall FlushDataSet(TDataSet *DataSet);
private: // User declarations
/* Mis declaraciones */
int GetBDEError(EDatabaseError *);
void PackParadox(const AnsiString ADatabase, const AnsiString ATable);
public: // User declarations
__fastcall TBD(TComponent* Owner);
/* Mis declaraciones */
void ActivarTableCuentasCorrientesAfterPost(bool);
void ActivarTableCuentasCorrientesBeforeEdit(bool);
bool ActivarBaseDatos(bool estado);
void Compactar();
bool CopiaSeguridad(AnsiString dirdest, AnsiString nombre);
bool SetearAlias(AnsiString alias);
void ReducirBackup(AnsiString dir, int conservar);
bool GuardarSaldos();
void RefrescarTablas();
void CancelarTablas();
void FlushTablas();
void FlushEnabled(bool value);
};
//---------------------------------------------------------------------------
extern PACKAGE TBD *BD;
//---------------------------------------------------------------------------
#endif