📄 paytype.~pas
字号:
unit PayType;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ImgList, ComCtrls, ToolWin, Grids, DBGrids, DB, ADODB;
type
TFrm_PayType = class(TBaseForm)
CoolBar1: TCoolBar;
ToolBar1: TToolBar;
ToolButton1: TToolButton;
ToolButton2: TToolButton;
ToolButton6: TToolButton;
ToolButton3: TToolButton;
ToolButton4: TToolButton;
ToolButton5: TToolButton;
ImageList1: TImageList;
StatusBar1: TStatusBar;
DBGrid1: TDBGrid;
ADOPayType: TADODataSet;
DSPayType: TDataSource;
procedure FormShow(Sender: TObject);
procedure ToolButton1Click(Sender: TObject);
procedure ToolButton2Click(Sender: TObject);
procedure ToolButton3Click(Sender: TObject);
procedure ToolButton4Click(Sender: TObject);
procedure ToolButton5Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Frm_PayType: TFrm_PayType;
implementation
uses main,DM;
{$R *.dfm}
procedure TFrm_PayType.FormShow(Sender: TObject);
begin
ADOPayType.Close;
ADOPayType.Open;
end;
procedure TFrm_PayType.ToolButton1Click(Sender: TObject);
begin
ADOPayType.Append;
end;
procedure TFrm_PayType.ToolButton2Click(Sender: TObject);
begin
if ADOPayType.RecordCount=0 then
Exit;
if Application.MessageBox('您是否要删除此记录!', '明日科技', MB_OKCANCEL) = IDOK then
begin
ADOPayType.Delete;
ADOPayType.UpdateBatch;
end;
end;
procedure TFrm_PayType.ToolButton3Click(Sender: TObject);
begin
ADOPayType.UpdateBatch;
end;
procedure TFrm_PayType.ToolButton4Click(Sender: TObject);
begin
ADOPayType.CancelBatch;
end;
procedure TFrm_PayType.ToolButton5Click(Sender: TObject);
begin
Close;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -