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.

111 lines
3.0 KiB
Plaintext

11 months ago
unit u_code_trade;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, dxExEdtr, BusinessSkinForm, dxDBTLCl, dxGrClms, dxDBGrid, dxTL,
dxDBCtrl, dxCntner, bsSkinCtrls, ExtCtrls, ComCtrls, bsSkinTabs, StdCtrls,
Mask, DBCtrls, DB, ADODB, bsdbctrls, RxLookup;
type
Tfrm_code_trade = class(TForm)
dxDBGrid1: TdxDBGrid;
bsBusinessSkinForm1: TbsBusinessSkinForm;
dxDBGrid1Column1: TdxDBGridMaskColumn;
dxDBGrid1Column2: TdxDBGridMaskColumn;
bsSkinPanel1: TbsSkinPanel;
Panel1: TPanel;
bsSkinButton1: TbsSkinButton;
bsSkinButton2: TbsSkinButton;
bsSkinButton4: TbsSkinButton;
bsSkinButton3: TbsSkinButton;
bsSkinButton5: TbsSkinButton;
bsSkinPanel2: TbsSkinPanel;
bsSkinPageControl1: TbsSkinPageControl;
bsSkinTabSheet1: TbsSkinTabSheet;
bsSkinTabSheet2: TbsSkinTabSheet;
Label1: TLabel;
DBEdit1: TDBEdit;
DBEdit2: TDBEdit;
Label2: TLabel;
t_code_trade_map: TADOQuery;
t_code_trade_map1: TDataSource;
t_code_trade_mapDSDesigner: TStringField;
t_code_trade_mapDSDesigner2: TBlobField;
bsSkinDBImage1: TbsSkinDBImage;
t_code_disport: TADOQuery;
t_code_disport1: TDataSource;
dxDBGrid2: TdxDBGrid;
dxDBGrid1EDI: TdxDBGridMaskColumn;
dxDBGrid1Column3: TdxDBGridMaskColumn;
dxDBGrid1Column4: TdxDBGridMaskColumn;
dxDBGrid1Column6: TdxDBGridLookupColumn;
dxDBGrid1Column5: TdxDBGridColumn;
Label3: TLabel;
dbedtEDI: TDBEdit;
dxDBGrid1Column7: TdxDBGridColumn;
Label4: TLabel;
RxDBLookupCombo14: TRxDBLookupCombo;
procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
procedure FormShow(Sender: TObject);
procedure bsSkinButton5Click(Sender: TObject);
procedure bsSkinButton1Click(Sender: TObject);
procedure bsSkinButton2Click(Sender: TObject);
procedure bsSkinButton4Click(Sender: TObject);
procedure bsSkinButton3Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frm_code_trade: Tfrm_code_trade;
implementation
uses my_sys_function, u_data_share, u_main;
{$R *.dfm}
procedure Tfrm_code_trade.FormCloseQuery(Sender: TObject;
var CanClose: Boolean);
begin
CanClose:=frm_close_query(frm_data_share.t_code_trade);
end;
procedure Tfrm_code_trade.FormShow(Sender: TObject);
begin
frm_data_share.t_code_trade.requery;
t_code_trade_map.open;
t_code_disport.OPEN;
end;
procedure Tfrm_code_trade.bsSkinButton5Click(Sender: TObject);
begin
close;
end;
procedure Tfrm_code_trade.bsSkinButton1Click(Sender: TObject);
begin
frm_data_share.t_code_trade.Insert;
end;
procedure Tfrm_code_trade.bsSkinButton2Click(Sender: TObject);
begin
table_post(frm_data_share.t_code_trade);
end;
procedure Tfrm_code_trade.bsSkinButton4Click(Sender: TObject);
begin
table_delete(frm_data_share.t_code_trade);
end;
procedure Tfrm_code_trade.bsSkinButton3Click(Sender: TObject);
begin
table_cancel(frm_data_share.t_code_trade);
end;
end.