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.

84 lines
2.0 KiB
Plaintext

unit u_sys_printset;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, bsSkinCtrls, BusinessSkinForm, dxExEdtr, dxCntner, dxTL,
dxDBCtrl, dxDBGrid, dxDBTLCl, dxGrClms, ExtCtrls, DB, ADODB;
type
Tfrm_sys_printset = class(TForm)
bsBusinessSkinForm1: TbsBusinessSkinForm;
dxDBGrid1: TdxDBGrid;
dxDBGrid1Column2: TdxDBGridMaskColumn;
Panel1: TPanel;
bsSkinButton1: TbsSkinButton;
bsSkinButton2: TbsSkinButton;
bsSkinButton4: TbsSkinButton;
bsSkinButton3: TbsSkinButton;
bsSkinButton5: TbsSkinButton;
t_sys_report_new: TADOQuery;
t_sys_report_new1: TDataSource;
dxDBGrid1Column3: TdxDBGridCheckColumn;
procedure bsSkinButton1Click(Sender: TObject);
procedure bsSkinButton4Click(Sender: TObject);
procedure bsSkinButton2Click(Sender: TObject);
procedure bsSkinButton3Click(Sender: TObject);
procedure bsSkinButton5Click(Sender: TObject);
procedure FormShow(Sender: TObject);
procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frm_sys_printset: Tfrm_sys_printset;
implementation
uses u_data_share, my_sys_function, my_sys_chat, u_main;
{$R *.dfm}
procedure Tfrm_sys_printset.bsSkinButton1Click(Sender: TObject);
begin
t_sys_report_new.Insert;
end;
procedure Tfrm_sys_printset.bsSkinButton4Click(Sender: TObject);
begin
table_delete(t_sys_report_new);
end;
procedure Tfrm_sys_printset.bsSkinButton2Click(Sender: TObject);
begin
table_post(t_sys_report_new);
end;
procedure Tfrm_sys_printset.bsSkinButton3Click(Sender: TObject);
begin
table_cancel(t_sys_report_new);
end;
procedure Tfrm_sys_printset.bsSkinButton5Click(Sender: TObject);
begin
close;
end;
procedure Tfrm_sys_printset.FormShow(Sender: TObject);
begin
t_sys_report_new.Open;
end;
procedure Tfrm_sys_printset.FormCloseQuery(Sender: TObject;
var CanClose: Boolean);
begin
CanClose:=frm_close_query(t_sys_report_new);
t_sys_report_new.Close;
end;
end.