|
|
unit u_code_edi_port;
|
|
|
|
|
|
interface
|
|
|
|
|
|
uses
|
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
|
Dialogs, BusinessSkinForm, bsSkinCtrls, ExtCtrls, Grids, Wwdbigrd,
|
|
|
Wwdbgrid, StdCtrls, Mask, bsSkinBoxCtrls;
|
|
|
|
|
|
type
|
|
|
Tfrm_code_edi_port = class(TForm)
|
|
|
Panel1: TPanel;
|
|
|
bsSkinButton1: TbsSkinButton;
|
|
|
bsSkinButton2: TbsSkinButton;
|
|
|
bsSkinButton4: TbsSkinButton;
|
|
|
bsSkinButton3: TbsSkinButton;
|
|
|
bsSkinButton5: TbsSkinButton;
|
|
|
bsBusinessSkinForm1: TbsBusinessSkinForm;
|
|
|
wwDBGrid1: TwwDBGrid;
|
|
|
bsSkinEdit1: TbsSkinEdit;
|
|
|
bsSkinButton10: TbsSkinButton;
|
|
|
procedure FormShow(Sender: TObject);
|
|
|
procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
|
|
|
procedure bsSkinButton5Click(Sender: TObject);
|
|
|
procedure bsSkinButton3Click(Sender: TObject);
|
|
|
procedure bsSkinButton2Click(Sender: TObject);
|
|
|
procedure bsSkinButton4Click(Sender: TObject);
|
|
|
procedure bsSkinButton1Click(Sender: TObject);
|
|
|
procedure bsSkinButton10Click(Sender: TObject);
|
|
|
private
|
|
|
{ Private declarations }
|
|
|
public
|
|
|
{ Public declarations }
|
|
|
end;
|
|
|
|
|
|
var
|
|
|
frm_code_edi_port: Tfrm_code_edi_port;
|
|
|
|
|
|
implementation
|
|
|
|
|
|
uses u_data_share, my_sys_function;
|
|
|
|
|
|
{$R *.dfm}
|
|
|
|
|
|
procedure Tfrm_code_edi_port.FormShow(Sender: TObject);
|
|
|
begin
|
|
|
frm_data_share.t_code_edi_port.requery;
|
|
|
end;
|
|
|
|
|
|
procedure Tfrm_code_edi_port.FormCloseQuery(Sender: TObject;
|
|
|
var CanClose: Boolean);
|
|
|
begin
|
|
|
CanClose:=frm_close_query(frm_data_share.t_code_edi_port);
|
|
|
end;
|
|
|
|
|
|
procedure Tfrm_code_edi_port.bsSkinButton5Click(Sender: TObject);
|
|
|
begin
|
|
|
close;
|
|
|
end;
|
|
|
|
|
|
procedure Tfrm_code_edi_port.bsSkinButton3Click(Sender: TObject);
|
|
|
begin
|
|
|
table_cancel(frm_data_share.t_code_edi_port);
|
|
|
end;
|
|
|
|
|
|
procedure Tfrm_code_edi_port.bsSkinButton2Click(Sender: TObject);
|
|
|
begin
|
|
|
table_post(frm_data_share.t_code_edi_port);
|
|
|
end;
|
|
|
|
|
|
procedure Tfrm_code_edi_port.bsSkinButton4Click(Sender: TObject);
|
|
|
begin
|
|
|
table_delete(frm_data_share.t_code_edi_port);
|
|
|
end;
|
|
|
|
|
|
procedure Tfrm_code_edi_port.bsSkinButton1Click(Sender: TObject);
|
|
|
begin
|
|
|
frm_data_share.t_code_edi_port.Insert;
|
|
|
end;
|
|
|
|
|
|
procedure Tfrm_code_edi_port.bsSkinButton10Click(Sender: TObject);
|
|
|
begin
|
|
|
if not frm_data_share.t_code_edi_port.IsEmpty then begin
|
|
|
frm_data_share.t_code_edi_port.Locate('<27>ۿ<EFBFBD><DBBF><EFBFBD><EFBFBD><EFBFBD>',trim(bsSkinEdit1.text),[])
|
|
|
end;
|
|
|
|
|
|
end;
|
|
|
|
|
|
end.
|