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.

94 lines
2.3 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

unit u_code_airtrade;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, dxExEdtr, BusinessSkinForm, dxDBTLCl, dxGrClms, dxDBGrid, dxTL,
dxDBCtrl, dxCntner, bsSkinCtrls, ExtCtrls, ComCtrls, bsSkinTabs, StdCtrls,
Mask, DBCtrls, DB, ADODB, bsdbctrls;
type
Tfrm_code_airtrade = class(TForm)
bsBusinessSkinForm1: TbsBusinessSkinForm;
bsSkinPanel1: TbsSkinPanel;
Panel1: TPanel;
bsSkinButton1: TbsSkinButton;
bsSkinButton2: TbsSkinButton;
bsSkinButton4: TbsSkinButton;
bsSkinButton3: TbsSkinButton;
bsSkinButton5: TbsSkinButton;
dxDBGrid1: TdxDBGrid;
dxDBGrid1Column1: TdxDBGridMaskColumn;
dxDBGrid1Column2: TdxDBGridMaskColumn;
dxDBGrid1Column5: TdxDBGridColumn;
t_code_trade: TADOQuery;
t_code_trade1: TDataSource;
procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
procedure FormShow(Sender: TObject);
procedure bsSkinButton5Click(Sender: TObject);
procedure bsSkinButton1Click(Sender: TObject);
procedure bsSkinButton2Click(Sender: TObject);
procedure bsSkinButton4Click(Sender: TObject);
procedure bsSkinButton3Click(Sender: TObject);
procedure t_code_tradeBeforePost(DataSet: TDataSet);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frm_code_airtrade: Tfrm_code_airtrade;
implementation
uses my_sys_function, u_data_share, u_main;
{$R *.dfm}
procedure Tfrm_code_airtrade.FormCloseQuery(Sender: TObject;
var CanClose: Boolean);
begin
CanClose:=frm_close_query(t_code_trade);
end;
procedure Tfrm_code_airtrade.FormShow(Sender: TObject);
begin
t_code_trade.open;
end;
procedure Tfrm_code_airtrade.bsSkinButton5Click(Sender: TObject);
begin
close;
end;
procedure Tfrm_code_airtrade.bsSkinButton1Click(Sender: TObject);
begin
t_code_trade.Insert;
end;
procedure Tfrm_code_airtrade.bsSkinButton2Click(Sender: TObject);
begin
table_post(t_code_trade);
end;
procedure Tfrm_code_airtrade.bsSkinButton4Click(Sender: TObject);
begin
table_delete(t_code_trade);
end;
procedure Tfrm_code_airtrade.bsSkinButton3Click(Sender: TObject);
begin
table_cancel(t_code_trade);
end;
procedure Tfrm_code_airtrade.t_code_tradeBeforePost(DataSet: TDataSet);
begin
table_before_post(t_code_trade,'<27><><EFBFBD>ߴ<EFBFBD><DFB4><EFBFBD>');
table_before_post(t_code_trade,'<27><><EFBFBD><EFBFBD>');
end;
end.