unit u_code_code; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, BusinessSkinForm, bsSkinCtrls, dxExEdtr, dxCntner, dxTL, dxDBCtrl, dxDBGrid, StdCtrls, DBCtrls, Mask, bsdbctrls, dxDBTLCl, dxGrClms, ExtCtrls; type Tfrm_code_code = class(TForm) bsBusinessSkinForm1: TbsBusinessSkinForm; dxDBGrid1: TdxDBGrid; dxDBGrid1Column1: TdxDBGridMaskColumn; dxDBGrid1Column2: TdxDBGridMaskColumn; Label1: TLabel; DBEdit1: TDBEdit; DBEdit2: TDBEdit; Label2: TLabel; Label3: TLabel; DBMemo1: TDBMemo; bsSkinDBCheckRadioBox1: TbsSkinDBCheckRadioBox; bsSkinDBCheckRadioBox2: TbsSkinDBCheckRadioBox; bsSkinDBCheckRadioBox3: TbsSkinDBCheckRadioBox; dxDBGrid1Column3: TdxDBGridCheckColumn; dxDBGrid1Column4: TdxDBGridCheckColumn; dxDBGrid1Column5: TdxDBGridCheckColumn; Panel1: TPanel; bsSkinCheckRadioBox1: TbsSkinCheckRadioBox; bsSkinCheckRadioBox2: TbsSkinCheckRadioBox; bsSkinCheckRadioBox3: TbsSkinCheckRadioBox; bsSkinCheckRadioBox4: TbsSkinCheckRadioBox; bsSkinButton1: TbsSkinButton; bsSkinButton2: TbsSkinButton; bsSkinButton4: TbsSkinButton; bsSkinButton3: TbsSkinButton; bsSkinButton5: TbsSkinButton; bsSkinDBCheckRadioBox4: TbsSkinDBCheckRadioBox; bsSkinCheckRadioBox5: TbsSkinCheckRadioBox; Label4: TLabel; DBEdit3: TDBEdit; Label5: TLabel; DBEdit4: TDBEdit; Label6: TLabel; DBEdit5: TDBEdit; Label7: TLabel; DBEdit6: TDBEdit; dxDBGrid1Column6: TdxDBGridColumn; dxDBGrid1Column7: TdxDBGridColumn; dxDBGrid1Column8: TdxDBGridColumn; dxDBGrid1Column9: TdxDBGridColumn; Label8: TLabel; DBEdit7: TDBEdit; dxDBGrid1Column10: TdxDBGridColumn; procedure bsSkinButton5Click(Sender: TObject); procedure FormShow(Sender: TObject); procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean); procedure bsSkinButton3Click(Sender: TObject); procedure bsSkinButton2Click(Sender: TObject); procedure bsSkinButton4Click(Sender: TObject); procedure bsSkinButton1Click(Sender: TObject); procedure bsSkinCheckRadioBox1Click(Sender: TObject); procedure bsSkinCheckRadioBox2Click(Sender: TObject); procedure bsSkinCheckRadioBox3Click(Sender: TObject); procedure bsSkinCheckRadioBox4Click(Sender: TObject); procedure FormKeyPress(Sender: TObject; var Key: Char); procedure bsSkinCheckRadioBox5Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var frm_code_code: Tfrm_code_code; implementation uses u_data_share, my_sys_function, u_main; {$R *.dfm} procedure Tfrm_code_code.bsSkinButton5Click(Sender: TObject); begin close; end; procedure Tfrm_code_code.FormShow(Sender: TObject); begin frm_data_share.t_code_code.Filtered:=false; frm_data_share.t_code_code.requery; end; procedure Tfrm_code_code.FormCloseQuery(Sender: TObject; var CanClose: Boolean); begin CanClose:=frm_close_query(frm_data_share.t_code_code); end; procedure Tfrm_code_code.bsSkinButton3Click(Sender: TObject); begin table_cancel(frm_data_share.t_code_code); end; procedure Tfrm_code_code.bsSkinButton2Click(Sender: TObject); begin table_post(frm_data_share.t_code_code); end; procedure Tfrm_code_code.bsSkinButton4Click(Sender: TObject); begin table_delete(frm_data_share.t_code_code); end; procedure Tfrm_code_code.bsSkinButton1Click(Sender: TObject); begin frm_data_share.t_code_code.Insert; end; procedure Tfrm_code_code.bsSkinCheckRadioBox1Click(Sender: TObject); begin frm_data_share.t_code_code.Filtered:=false; frm_data_share.t_code_code.Filter:='发货人=1'; frm_data_share.t_code_code.Filtered:=true; end; procedure Tfrm_code_code.bsSkinCheckRadioBox2Click(Sender: TObject); begin frm_data_share.t_code_code.Filtered:=false; frm_data_share.t_code_code.Filter:='收货人=1'; frm_data_share.t_code_code.Filtered:=true; end; procedure Tfrm_code_code.bsSkinCheckRadioBox3Click(Sender: TObject); begin frm_data_share.t_code_code.Filtered:=false; frm_data_share.t_code_code.Filter:='通知人=1'; frm_data_share.t_code_code.Filtered:=true; end; procedure Tfrm_code_code.bsSkinCheckRadioBox4Click(Sender: TObject); begin frm_data_share.t_code_code.Filtered:=false; end; procedure Tfrm_code_code.FormKeyPress(Sender: TObject; var Key: Char); begin if key=#13 then begin if not(activecontrol is Tdbmemo) and not(activecontrol is Tdxdbgrid)then begin Perform(WM_NEXTDLGCTL,0,0); key:=#0; end; end; end; procedure Tfrm_code_code.bsSkinCheckRadioBox5Click(Sender: TObject); begin frm_data_share.t_code_code.Filtered:=false; frm_data_share.t_code_code.Filter:='代理=1'; frm_data_share.t_code_code.Filtered:=true; end; end.