-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathu_IntroduceSaldo.pas
70 lines (53 loc) · 1.69 KB
/
u_IntroduceSaldo.pas
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
unit u_IntroduceSaldo;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Mask, Buttons, ExtCtrls, ovcbase, ovcef, ovcpb, ovcnf,
o32editf, o32flxed;
type
Tfr_IntroduceSaldo = class(TForm)
bb_ok: TBitBtn;
bb_cancelar: TBitBtn;
me_NuevoImporte: TMaskEdit;
lb_NuevoImporte: TLabel;
Image1: TImage;
procedure FormCreate(Sender: TObject);
procedure FormActivate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
function ShowModalCambiarImporte: Integer;
end;
var
fr_IntroduceSaldo: Tfr_IntroduceSaldo;
implementation
uses u_Clientes, u_orden_lavado;
{$R *.dfm}
function Tfr_IntroduceSaldo.ShowModalCambiarImporte: Integer;
begin
if fr_orden_lavado.dbg_OrdenLavadoDatos.Fields[2].Value = null then
begin
ShowMessage('El precio debe ser un numero positivo mayor a cero');
exit;
end
else
me_NuevoImporte.Text := fr_orden_lavado.dbg_OrdenLavadoDatos.Fields[2].Value;
{StatusBar1.panels[1].Text :=
'Por favor ingrese la información del nuevo cliente';
StatusBar1.panels[0].Text := fr_orden_lavado.ED_BUSCA_TELEFONO.Text;
ED_Nombre.Text := ''; //NullAsStringValue
fr_Clientes.ED_Nombre.text := fr_orden_lavado.ED_BUSCA_NOMBRE.Text;
ED_Telefono.text := '';
ED_Telefono.text := fr_orden_lavado.ED_BUSCA_TELEFONO.Text;}
Result := ShowModal;
end;
procedure Tfr_IntroduceSaldo.FormCreate(Sender: TObject);
begin
//me_NuevoImporte.SetFocus;
end;
procedure Tfr_IntroduceSaldo.FormActivate(Sender: TObject);
begin
me_NuevoImporte.SetFocus;
end;
end.