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.

65 lines
1.3 KiB
Plaintext

unit u_op_modify;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, BusinessSkinForm, DB, ADODB, bsSkinCtrls, StdCtrls, DBCtrls,
Mask;
type
Tfrm_op_modify = class(TForm)
bsBusinessSkinForm1: TbsBusinessSkinForm;
DBEdit27: TDBEdit;
Label33: TLabel;
DBMemo7: TDBMemo;
Label46: TLabel;
ds_op_modify1: TDataSource;
bsSkinButton1: TbsSkinButton;
t_op_modify: TADOQuery;
Label1: TLabel;
DBEdit1: TDBEdit;
Label2: TLabel;
DBEdit2: TDBEdit;
Label3: TLabel;
DBEdit3: TDBEdit;
Label4: TLabel;
DBEdit4: TDBEdit;
Label5: TLabel;
DBEdit5: TDBEdit;
bsSkinButton2: TbsSkinButton;
procedure bsSkinButton1Click(Sender: TObject);
procedure bsSkinButton2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frm_op_modify: Tfrm_op_modify;
implementation
uses u_main;
{$R *.dfm}
procedure Tfrm_op_modify.bsSkinButton1Click(Sender: TObject);
begin
if t_op_modify.State in [dsedit,dsinsert] then
t_op_modify.Post;
Close;
end;
procedure Tfrm_op_modify.bsSkinButton2Click(Sender: TObject);
begin
if t_op_modify.State in [dsedit,dsinsert] then
t_op_modify.Cancel;
Close;
end;
end.