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.
82 lines
1.9 KiB
Plaintext
82 lines
1.9 KiB
Plaintext
unit u_code_trade_msc;
|
|
|
|
interface
|
|
|
|
uses
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
Dialogs, BusinessSkinForm, bsSkinCtrls, Grids, Wwdbigrd, Wwdbgrid,
|
|
ExtCtrls, DB, ADODB, StdCtrls, wwdblook;
|
|
|
|
type
|
|
Tfrm_code_trade_msc = class(TForm)
|
|
bsBusinessSkinForm1: TbsBusinessSkinForm;
|
|
Panel1: TPanel;
|
|
bsSkinButton1: TbsSkinButton;
|
|
bsSkinButton2: TbsSkinButton;
|
|
bsSkinButton4: TbsSkinButton;
|
|
bsSkinButton3: TbsSkinButton;
|
|
bsSkinButton5: TbsSkinButton;
|
|
wwDBGrid1: TwwDBGrid;
|
|
t_code_trade_msc: TADOQuery;
|
|
t_code_trade_msc1: TDataSource;
|
|
wwDBLookupCombo25: TwwDBLookupCombo;
|
|
procedure FormShow(Sender: TObject);
|
|
procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
|
|
procedure bsSkinButton5Click(Sender: TObject);
|
|
procedure bsSkinButton3Click(Sender: TObject);
|
|
procedure bsSkinButton2Click(Sender: TObject);
|
|
procedure bsSkinButton4Click(Sender: TObject);
|
|
procedure bsSkinButton1Click(Sender: TObject);
|
|
private
|
|
{ Private declarations }
|
|
public
|
|
{ Public declarations }
|
|
end;
|
|
|
|
var
|
|
frm_code_trade_msc: Tfrm_code_trade_msc;
|
|
|
|
implementation
|
|
|
|
uses u_data_share, my_sys_function;
|
|
|
|
{$R *.dfm}
|
|
|
|
procedure Tfrm_code_trade_msc.FormShow(Sender: TObject);
|
|
begin
|
|
t_code_trade_msc.Open;
|
|
end;
|
|
|
|
procedure Tfrm_code_trade_msc.FormCloseQuery(Sender: TObject;
|
|
var CanClose: Boolean);
|
|
begin
|
|
CanClose:=frm_close_query(t_code_trade_msc);
|
|
end;
|
|
|
|
procedure Tfrm_code_trade_msc.bsSkinButton5Click(Sender: TObject);
|
|
begin
|
|
close;
|
|
end;
|
|
|
|
procedure Tfrm_code_trade_msc.bsSkinButton3Click(Sender: TObject);
|
|
begin
|
|
table_cancel(t_code_trade_msc);
|
|
end;
|
|
|
|
procedure Tfrm_code_trade_msc.bsSkinButton2Click(Sender: TObject);
|
|
begin
|
|
table_post(t_code_trade_msc);
|
|
end;
|
|
|
|
procedure Tfrm_code_trade_msc.bsSkinButton4Click(Sender: TObject);
|
|
begin
|
|
table_delete(t_code_trade_msc);
|
|
end;
|
|
|
|
procedure Tfrm_code_trade_msc.bsSkinButton1Click(Sender: TObject);
|
|
begin
|
|
t_code_trade_msc.Insert;
|
|
end;
|
|
|
|
end.
|