You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.6 KiB
Plaintext
74 lines
1.6 KiB
Plaintext
11 months ago
|
unit u_code_price_ctn;
|
||
|
|
||
|
interface
|
||
|
|
||
|
uses
|
||
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
||
|
Dialogs, StdCtrls, Mask, DBCtrls, BusinessSkinForm;
|
||
|
|
||
|
type
|
||
|
Tfrm_code_price_ctn = class(TForm)
|
||
|
Label1: TLabel;
|
||
|
DBEdit1: TDBEdit;
|
||
|
DBEdit2: TDBEdit;
|
||
|
Label2: TLabel;
|
||
|
DBEdit3: TDBEdit;
|
||
|
Label3: TLabel;
|
||
|
DBEdit4: TDBEdit;
|
||
|
Label4: TLabel;
|
||
|
DBEdit5: TDBEdit;
|
||
|
Label5: TLabel;
|
||
|
DBEdit6: TDBEdit;
|
||
|
Label6: TLabel;
|
||
|
Label7: TLabel;
|
||
|
DBEdit7: TDBEdit;
|
||
|
Label8: TLabel;
|
||
|
DBEdit8: TDBEdit;
|
||
|
bsBusinessSkinForm1: TbsBusinessSkinForm;
|
||
|
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
||
|
procedure FormShow(Sender: TObject);
|
||
|
procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
|
||
|
procedure FormKeyPress(Sender: TObject; var Key: Char);
|
||
|
private
|
||
|
{ Private declarations }
|
||
|
public
|
||
|
{ Public declarations }
|
||
|
end;
|
||
|
|
||
|
var
|
||
|
frm_code_price_ctn: Tfrm_code_price_ctn;
|
||
|
|
||
|
implementation
|
||
|
|
||
|
uses u_data_share, my_sys_function;
|
||
|
|
||
|
{$R *.dfm}
|
||
|
|
||
|
procedure Tfrm_code_price_ctn.FormClose(Sender: TObject;
|
||
|
var Action: TCloseAction);
|
||
|
begin
|
||
|
frm_code_price_ctn:=nil;
|
||
|
end;
|
||
|
|
||
|
procedure Tfrm_code_price_ctn.FormShow(Sender: TObject);
|
||
|
begin
|
||
|
frm_data_share.t_code_price_ctn.requery;
|
||
|
end;
|
||
|
|
||
|
procedure Tfrm_code_price_ctn.FormCloseQuery(Sender: TObject;
|
||
|
var CanClose: Boolean);
|
||
|
begin
|
||
|
CanClose:=frm_close_query(frm_data_share.t_code_price_ctn);
|
||
|
end;
|
||
|
|
||
|
procedure Tfrm_code_price_ctn.FormKeyPress(Sender: TObject; var Key: Char);
|
||
|
begin
|
||
|
if key=#13 then
|
||
|
begin
|
||
|
Perform(WM_NEXTDLGCTL,0,0);
|
||
|
key:=#0;
|
||
|
end;
|
||
|
end;
|
||
|
|
||
|
end.
|