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.

88 lines
2.2 KiB
Plaintext

unit u_code_tiaokuan;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, dxExEdtr, BusinessSkinForm, bsSkinCtrls, ExtCtrls, dxTL,
dxDBCtrl, dxDBGrid, dxCntner, StdCtrls, Mask, DBCtrls;
type
Tfrm_code_tiaokuan = class(TForm)
dxDBGrid1: TdxDBGrid;
Panel1: TPanel;
bsSkinButton1: TbsSkinButton;
bsSkinButton2: TbsSkinButton;
bsSkinButton4: TbsSkinButton;
bsSkinButton3: TbsSkinButton;
bsSkinButton5: TbsSkinButton;
bsBusinessSkinForm1: TbsBusinessSkinForm;
dxDBGrid1Column1: TdxDBGridMaskColumn;
dxDBGrid1Column2: TdxDBGridMaskColumn;
bsSkinPanel1: TbsSkinPanel;
DBEdit1: TDBEdit;
Label1: TLabel;
Label2: TLabel;
DBEdit2: TDBEdit;
DBMemo1: TDBMemo;
Label3: TLabel;
procedure bsSkinButton5Click(Sender: TObject);
procedure bsSkinButton1Click(Sender: TObject);
procedure bsSkinButton2Click(Sender: TObject);
procedure bsSkinButton4Click(Sender: TObject);
procedure bsSkinButton3Click(Sender: TObject);
procedure FormShow(Sender: TObject);
procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frm_code_tiaokuan: Tfrm_code_tiaokuan;
implementation
uses u_data_share, u_main, my_sys_function;
{$R *.dfm}
procedure Tfrm_code_tiaokuan.bsSkinButton5Click(Sender: TObject);
begin
close;
end;
procedure Tfrm_code_tiaokuan.bsSkinButton1Click(Sender: TObject);
begin
frm_data_share.t_code_tiaokuan.Insert;
end;
procedure Tfrm_code_tiaokuan.bsSkinButton2Click(Sender: TObject);
begin
table_post(frm_data_share.t_code_tiaokuan);
end;
procedure Tfrm_code_tiaokuan.bsSkinButton4Click(Sender: TObject);
begin
table_delete(frm_data_share.t_code_tiaokuan);
end;
procedure Tfrm_code_tiaokuan.bsSkinButton3Click(Sender: TObject);
begin
table_cancel(frm_data_share.t_code_tiaokuan);
end;
procedure Tfrm_code_tiaokuan.FormShow(Sender: TObject);
begin
frm_data_share.t_code_tiaokuan.requery;
end;
procedure Tfrm_code_tiaokuan.FormCloseQuery(Sender: TObject;
var CanClose: Boolean);
begin
CanClose:=frm_close_query(frm_data_share.t_code_tiaokuan);
end;
end.