First commit 14/02/1999
34
-- TPVwin --.bpg
Normal file
@ -0,0 +1,34 @@
|
||||
#------------------------------------------------------------------------------
|
||||
VERSION = BWS.01
|
||||
#------------------------------------------------------------------------------
|
||||
!ifndef ROOT
|
||||
ROOT = $(MAKEDIR)\..
|
||||
!endif
|
||||
#------------------------------------------------------------------------------
|
||||
MAKE = $(ROOT)\bin\make.exe -$(MAKEFLAGS) -f$**
|
||||
DCC = $(ROOT)\bin\dcc32.exe $**
|
||||
BRCC = $(ROOT)\bin\brcc32.exe $**
|
||||
#------------------------------------------------------------------------------
|
||||
PROJECTS = TPV.exe TPV_Ventas.exe TPV_BuscarEntreLineas.exe TPV_SAT.exe
|
||||
#------------------------------------------------------------------------------
|
||||
default: $(PROJECTS)
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
||||
TPV.exe: TPV.bpr
|
||||
$(ROOT)\bin\bpr2mak $**
|
||||
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
|
||||
|
||||
TPV_Ventas.exe: TPV_Ventas.bpr
|
||||
$(ROOT)\bin\bpr2mak $**
|
||||
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
|
||||
|
||||
TPV_BuscarEntreLineas.exe: TPV_BuscarEntreLineas.bpr
|
||||
$(ROOT)\bin\bpr2mak $**
|
||||
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
|
||||
|
||||
TPV_SAT.exe: TPV_SAT.bpr
|
||||
$(ROOT)\bin\bpr2mak $**
|
||||
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
|
||||
|
||||
|
BIN
AgendaLlamadas.exe
Normal file
77
BuscarEntreLineas.cpp
Normal file
@ -0,0 +1,77 @@
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
#include <vcl.h>
|
||||
#pragma hdrstop
|
||||
|
||||
#include "BuscarEntreLineas.h"
|
||||
#include "TDlgBuscar.h"
|
||||
#include "TpvVntAlbPrint.h"
|
||||
#include "TpvVntFctPrint.h"
|
||||
//---------------------------------------------------------------------------
|
||||
#pragma package(smart_init)
|
||||
#pragma resource "*.dfm"
|
||||
TForm1 *Form1;
|
||||
//---------------------------------------------------------------------------
|
||||
__fastcall TForm1::TForm1(TComponent* Owner)
|
||||
: TForm(Owner)
|
||||
{
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
void __fastcall TForm1::Button2Click(TObject *Sender)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
void __fastcall TForm1::Button1Click(TObject *Sender)
|
||||
{
|
||||
int CodFactura;
|
||||
// Mostramos la zona de busqueda de clientes...
|
||||
// Mostramos el dialogo, buscar Vendedores
|
||||
TDlgBuscar *DlgBuscar;
|
||||
|
||||
DlgBuscar = new TDlgBuscar(this);
|
||||
DlgBuscar -> DefaultField = "NombreProducto";
|
||||
DlgBuscar -> TbBusquedas -> TableName = "Ventas (cuerpo).db";
|
||||
DlgBuscar -> TbBusquedas -> Active = true;
|
||||
|
||||
DlgBuscar -> ShowModal();
|
||||
|
||||
if ( DlgBuscar -> ModalResult == mrOk )
|
||||
{
|
||||
CodFactura = DlgBuscar -> TbBusquedas -> FieldByName( "EnlaceFactura" ) -> AsInteger;
|
||||
TbVentasC -> Active = true;
|
||||
if ( ( TbVentasC -> Locate( "EnlaceFactura", CodFactura, TLocateOptions() << loCaseInsensitive ) ) )
|
||||
{
|
||||
if ( TbVentasC->FieldByName("CodFactura")->AsInteger <= 0 )
|
||||
{
|
||||
// Imprime Ticket
|
||||
TQRMDFacturaVnt1 *QRMDFacturaVnt;
|
||||
// Creamos una ficha del tipo TProductos
|
||||
// Guardando la referencia en la variable TProductos
|
||||
QRMDFacturaVnt = new TQRMDFacturaVnt1(this);
|
||||
// Mostrarla como modal y según el valor devuelto
|
||||
QRMDFacturaVnt -> TbVntCabecera -> GotoCurrent( TbVentasC );
|
||||
QRMDFacturaVnt -> Preview();
|
||||
// Destruimos la ficha
|
||||
delete QRMDFacturaVnt;
|
||||
} else {
|
||||
// Imprime factura
|
||||
TQRMDFacturaVnt *QRMDFacturaVnt;
|
||||
// Creamos una ficha del tipo TProductos
|
||||
// Guardando la referencia en la variable TProductos
|
||||
QRMDFacturaVnt = new TQRMDFacturaVnt(this);
|
||||
// Mostrarla como modal y según el valor devuelto
|
||||
QRMDFacturaVnt -> TbVntCabecera -> GotoCurrent( TbVentasC );
|
||||
QRMDFacturaVnt -> Preview();
|
||||
// Destruimos la ficha
|
||||
delete QRMDFacturaVnt;
|
||||
}
|
||||
TbVentasC -> Active = false;
|
||||
}
|
||||
}
|
||||
|
||||
delete DlgBuscar;
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
|
72
BuscarEntreLineas.dfm
Normal file
@ -0,0 +1,72 @@
|
||||
object Form1: TForm1
|
||||
Left = 206
|
||||
Top = 126
|
||||
Width = 413
|
||||
Height = 180
|
||||
Caption = 'Form1'
|
||||
Color = clBtnFace
|
||||
Font.Charset = DEFAULT_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -11
|
||||
Font.Name = 'MS Sans Serif'
|
||||
Font.Style = []
|
||||
OldCreateOrder = False
|
||||
PixelsPerInch = 96
|
||||
TextHeight = 13
|
||||
object Label1: TLabel
|
||||
Left = 0
|
||||
Top = 0
|
||||
Width = 401
|
||||
Height = 57
|
||||
Alignment = taCenter
|
||||
Caption = 'Busqueda de Facturas por CONTENIDO'
|
||||
Font.Charset = ANSI_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -19
|
||||
Font.Name = 'Arial Black'
|
||||
Font.Style = []
|
||||
ParentFont = False
|
||||
WordWrap = True
|
||||
end
|
||||
object Button1: TButton
|
||||
Left = 128
|
||||
Top = 88
|
||||
Width = 145
|
||||
Height = 25
|
||||
Caption = '&Localizar Factura'
|
||||
TabOrder = 0
|
||||
OnClick = Button1Click
|
||||
end
|
||||
object Button2: TButton
|
||||
Left = 128
|
||||
Top = 120
|
||||
Width = 145
|
||||
Height = 25
|
||||
Caption = '&Salir'
|
||||
TabOrder = 1
|
||||
OnClick = Button2Click
|
||||
end
|
||||
object Empresas: TDatabase
|
||||
Connected = True
|
||||
DatabaseName = 'TpvWin'
|
||||
DriverName = 'STANDARD'
|
||||
Params.Strings = (
|
||||
'PATH=DATOS\'
|
||||
'DEFAULT DRIVER=PARADOX'
|
||||
'ENABLE BCD=FALSE')
|
||||
SessionName = 'Default'
|
||||
Top = 48
|
||||
end
|
||||
object TbVentasC: TTable
|
||||
DatabaseName = 'TpvWin'
|
||||
TableName = 'Ventas (cabecera).db'
|
||||
Left = 40
|
||||
Top = 80
|
||||
object TbVentasCEnlaceFactura: TAutoIncField
|
||||
FieldName = 'EnlaceFactura'
|
||||
end
|
||||
object TbVentasCCodFactura: TIntegerField
|
||||
FieldName = 'CodFactura'
|
||||
end
|
||||
end
|
||||
end
|
32
BuscarEntreLineas.h
Normal file
@ -0,0 +1,32 @@
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
#ifndef BuscarEntreLineasH
|
||||
#define BuscarEntreLineasH
|
||||
//---------------------------------------------------------------------------
|
||||
#include <Classes.hpp>
|
||||
#include <Controls.hpp>
|
||||
#include <StdCtrls.hpp>
|
||||
#include <Forms.hpp>
|
||||
#include <Db.hpp>
|
||||
#include <DBTables.hpp>
|
||||
//---------------------------------------------------------------------------
|
||||
class TForm1 : public TForm
|
||||
{
|
||||
__published: // IDE-managed Components
|
||||
TLabel *Label1;
|
||||
TButton *Button1;
|
||||
TButton *Button2;
|
||||
TDatabase *Empresas;
|
||||
TTable *TbVentasC;
|
||||
TAutoIncField *TbVentasCEnlaceFactura;
|
||||
TIntegerField *TbVentasCCodFactura;
|
||||
void __fastcall Button2Click(TObject *Sender);
|
||||
void __fastcall Button1Click(TObject *Sender);
|
||||
private: // User declarations
|
||||
public: // User declarations
|
||||
__fastcall TForm1(TComponent* Owner);
|
||||
};
|
||||
//---------------------------------------------------------------------------
|
||||
extern PACKAGE TForm1 *Form1;
|
||||
//---------------------------------------------------------------------------
|
||||
#endif
|
BIN
Cerezas.jpg
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
Datos/AccessControl.PX
Normal file
BIN
Datos/AccessControl.db
Normal file
BIN
Datos/Compras (cabecera).PX
Normal file
BIN
Datos/Compras (cabecera).VAL
Normal file
BIN
Datos/Compras (cabecera).XG0
Normal file
BIN
Datos/Compras (cabecera).YG0
Normal file
BIN
Datos/Compras (cabecera).db
Normal file
BIN
Datos/Compras (cuerpo).PX
Normal file
BIN
Datos/Compras (cuerpo).XG0
Normal file
BIN
Datos/Compras (cuerpo).YG0
Normal file
BIN
Datos/Compras (cuerpo).db
Normal file
1
Datos/DBDWORK.INI
Normal file
@ -0,0 +1 @@
|
||||
|
BIN
Datos/ProdTMP vnt.db
Normal file
BIN
Datos/Tb_CarteraClt.PX
Normal file
BIN
Datos/Tb_CarteraClt.XG0
Normal file
BIN
Datos/Tb_CarteraClt.XG1
Normal file
BIN
Datos/Tb_CarteraClt.YG0
Normal file
BIN
Datos/Tb_CarteraClt.YG1
Normal file
BIN
Datos/Tb_CarteraClt.db
Normal file
BIN
Datos/Tb_CarteraProv.PX
Normal file
BIN
Datos/Tb_CarteraProv.XG0
Normal file
BIN
Datos/Tb_CarteraProv.XG1
Normal file
BIN
Datos/Tb_CarteraProv.YG0
Normal file
BIN
Datos/Tb_CarteraProv.YG1
Normal file
BIN
Datos/Tb_CarteraProv.db
Normal file
BIN
Datos/Tb_CtblCC.PX
Normal file
BIN
Datos/Tb_CtblCC.XG0
Normal file
BIN
Datos/Tb_CtblCC.YG0
Normal file
BIN
Datos/Tb_CtblCC.db
Normal file
BIN
Datos/Tb_CtblPteC.PX
Normal file
BIN
Datos/Tb_CtblPteC.XG0
Normal file
BIN
Datos/Tb_CtblPteC.XG1
Normal file
BIN
Datos/Tb_CtblPteC.YG0
Normal file
BIN
Datos/Tb_CtblPteC.YG1
Normal file
BIN
Datos/Tb_CtblPteC.db
Normal file
BIN
Datos/Tb_Ref.PX
Normal file
BIN
Datos/Tb_Ref.XG0
Normal file
BIN
Datos/Tb_Ref.XG1
Normal file
BIN
Datos/Tb_Ref.YG0
Normal file
BIN
Datos/Tb_Ref.YG1
Normal file
BIN
Datos/Tb_Ref.db
Normal file
BIN
Datos/Tb_RefC.PX
Normal file
BIN
Datos/Tb_RefC.XG0
Normal file
BIN
Datos/Tb_RefC.YG0
Normal file
BIN
Datos/Tb_RefC.db
Normal file
BIN
Datos/Tb_RefH.DB
Normal file
BIN
Datos/Tb_RefH.PX
Normal file
BIN
Datos/Tb_RefH.XG0
Normal file
BIN
Datos/Tb_RefH.YG0
Normal file
BIN
Datos/Ventas (Factura).PX
Normal file
BIN
Datos/Ventas (Factura).VAL
Normal file
BIN
Datos/Ventas (Factura).db
Normal file
BIN
Datos/Ventas (cabecera).DB
Normal file
BIN
Datos/Ventas (cabecera).MB
Normal file
BIN
Datos/Ventas (cabecera).PX
Normal file
BIN
Datos/Ventas (cabecera).VAL
Normal file
BIN
Datos/Ventas (cabecera).XG0
Normal file
BIN
Datos/Ventas (cabecera).XG1
Normal file
BIN
Datos/Ventas (cabecera).XG2
Normal file
BIN
Datos/Ventas (cabecera).YG0
Normal file
BIN
Datos/Ventas (cabecera).YG1
Normal file
BIN
Datos/Ventas (cabecera).YG2
Normal file
BIN
Datos/Ventas (caja).MB
Normal file
BIN
Datos/Ventas (caja).PX
Normal file
BIN
Datos/Ventas (caja).db
Normal file
BIN
Datos/Ventas (cuerpo).PX
Normal file
BIN
Datos/Ventas (cuerpo).XG0
Normal file
BIN
Datos/Ventas (cuerpo).YG0
Normal file
BIN
Datos/Ventas (cuerpo).db
Normal file
BIN
Datos/carpetas.DB
Normal file
BIN
Datos/imgprod/AMD-Duron.jpg
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
Datos/imgprod/AdaptadorPPGA.jpg
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
Datos/imgprod/DIMM.jpg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
Datos/imgprod/DTT2500_parts.jpg
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
Datos/imgprod/DisipadorAMD.jpg
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
Datos/imgprod/FPS1000_parts.jpg
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
Datos/imgprod/FPS1500_parts.jpg
Normal file
After Width: | Height: | Size: 8.6 KiB |
BIN
Datos/imgprod/GeForce2-dual-mx.jpg
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
Datos/imgprod/GeForce2-ultra.jpg
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
Datos/imgprod/GeForce2Pro-s.jpg
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
Datos/imgprod/HardDisk.jpg
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
Datos/imgprod/PSX-RF_UNIT.jpg
Normal file
After Width: | Height: | Size: 9.7 KiB |
BIN
Datos/imgprod/PSX-Trans_Wheel.jpg
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
Datos/imgprod/PSX-dual_shock_new.jpg
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
Datos/imgprod/PSX-mandoNormal.jpg
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
Datos/imgprod/PSX-raton.jpg
Normal file
After Width: | Height: | Size: 9.0 KiB |
BIN
Datos/imgprod/PSX-rgb_stereo.jpg
Normal file
After Width: | Height: | Size: 8.0 KiB |
BIN
Datos/imgprod/PentiumIV.jpg
Normal file
After Width: | Height: | Size: 9.4 KiB |
BIN
Datos/imgprod/SB_player51_parts.jpg
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
Datos/imgprod/cd74intenso.jpg
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
Datos/imgprod/cd74verbatim.jpg
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
Datos/imgprod/cdrw-hp9510.jpg
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
Datos/imgprod/cdrw74kprinco.JPG
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
Datos/imgprod/dlink-dfe2616fr.jpg
Normal file
After Width: | Height: | Size: 22 KiB |