📄 billmodeedit.pas
字号:
unit BillmodeEdit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, BaseInfoEdit, StdCtrls, Buttons, Mask, DBCtrlsEh, ADODB;
type
TBillmodeEditForm = class(TBaseInfoEditForm)
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
DBEditEh1: TDBEditEh;
DBEditEh2: TDBEditEh;
DBEditEh3: TDBEditEh;
procedure btnInsClick(Sender: TObject);
procedure btnOKClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
procedure ShowBillmodeEditForm(ADOQryTmp: TADOQuery; sState: string);
implementation
uses SysPublic, Billmode;
{$R *.dfm}
procedure ShowBillmodeEditForm(ADOQryTmp: TADOQuery; sState: string);
var
BillmodeEditForm: TBillmodeEditForm;
begin
BillmodeEditForm:= TBillmodeEditForm.Create(Application);
with BillmodeEditForm do
begin
FADOQuery:= ADOQryTmp;
if sState= sEdit then
FADOQuery.Edit;
if sState = sInsert then
FADOQuery.Insert;
ShowModal;
end;
end;
procedure TBillmodeEditForm.btnInsClick(Sender: TObject);
begin
if not CheckEditEmpty(1, self, [Label1.Name, Label2.Name], [DBEditEh1.Name, DBEditEh2.Name])
then Exit;
inherited;
end;
procedure TBillmodeEditForm.btnOKClick(Sender: TObject);
begin
if not CheckEditEmpty(1, self, [Label1.Name, Label2.Name], [DBEditEh1.Name, DBEditEh2.Name])
then Exit;
inherited;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -