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.

48 lines
1.0 KiB
Plaintext

unit u_code_line_edi;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, bsSkinCtrls, bsdbctrls, Grids, Wwdbigrd, Wwdbgrid,
BusinessSkinForm, DB, ADODB;
type
Tfrm_code_line_edi = class(TForm)
wwDBGrid1: TwwDBGrid;
bsSkinDBNavigator1: TbsSkinDBNavigator;
bsBusinessSkinForm1: TbsBusinessSkinForm;
t_code_edi_line: TADOQuery;
ds_code_edi_line1: TDataSource;
procedure FormShow(Sender: TObject);
procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frm_code_line_edi: Tfrm_code_line_edi;
implementation
uses u_main, u_data_share;
{$R *.dfm}
procedure Tfrm_code_line_edi.FormShow(Sender: TObject);
begin
t_code_edi_line.Open;
end;
procedure Tfrm_code_line_edi.FormCloseQuery(Sender: TObject;
var CanClose: Boolean);
begin
if t_code_edi_line.State in [dsedit,dsinsert] then
t_code_edi_line.Post;
t_code_edi_line.Close;
end;
end.