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.

70 lines
1.6 KiB
Plaintext

unit u_sys_wtno;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, dxExEdtr, BusinessSkinForm, dxDBTLCl, dxGrClms, dxDBGrid, dxTL,
dxDBCtrl, dxCntner, bsSkinCtrls, ExtCtrls, DB, ADODB;
type
Tfrm_sys_wtno = class(TForm)
dxDBGrid1: TdxDBGrid;
bsBusinessSkinForm1: TbsBusinessSkinForm;
dxDBGrid1Column1: TdxDBGridMaskColumn;
dxDBGrid1Column2: TdxDBGridMaskColumn;
Panel1: TPanel;
bsSkinButton2: TbsSkinButton;
bsSkinButton3: TbsSkinButton;
bsSkinButton5: TbsSkinButton;
t_sys_wtno1: TDataSource;
t_sys_wtno: TADOQuery;
procedure bsSkinButton5Click(Sender: TObject);
procedure bsSkinButton2Click(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_sys_wtno: Tfrm_sys_wtno;
implementation
uses u_data_share, my_sys_function, u_main;
{$R *.dfm}
procedure Tfrm_sys_wtno.bsSkinButton5Click(Sender: TObject);
begin
close;
end;
procedure Tfrm_sys_wtno.bsSkinButton2Click(Sender: TObject);
begin
table_post(t_sys_wtno);
end;
procedure Tfrm_sys_wtno.bsSkinButton3Click(Sender: TObject);
begin
table_cancel(t_sys_wtno);
end;
procedure Tfrm_sys_wtno.FormShow(Sender: TObject);
begin
t_sys_wtno.open;
end;
procedure Tfrm_sys_wtno.FormCloseQuery(Sender: TObject;
var CanClose: Boolean);
begin
CanClose:=frm_close_query(t_sys_wtno);
t_sys_wtno.Close;
end;
end.