unit u_code_send_address; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, dxExEdtr, BusinessSkinForm, bsSkinCtrls, ExtCtrls, bsdbctrls, StdCtrls, DBCtrls, Mask, dxDBTLCl, dxGrClms, dxTL, dxDBCtrl, dxDBGrid, dxCntner; type Tfrm_code_send_address = class(TForm) dxDBGrid1: TdxDBGrid; Panel1: TPanel; bsSkinButton1: TbsSkinButton; bsSkinButton2: TbsSkinButton; bsSkinButton4: TbsSkinButton; bsSkinButton3: TbsSkinButton; bsSkinButton5: TbsSkinButton; bsBusinessSkinForm1: TbsBusinessSkinForm; dxDBGrid1Column1: TdxDBGridMaskColumn; dxDBGrid1Column2: TdxDBGridMaskColumn; Label13: TLabel; DBEdit9: TDBEdit; Label14: TLabel; DBEdit12: TDBEdit; DBMemo2: TDBMemo; Label15: TLabel; Label16: TLabel; DBEdit13: TDBEdit; Label17: TLabel; DBEdit14: TDBEdit; DBEdit15: TDBEdit; Label18: TLabel; bsSkinButton6: TbsSkinButton; procedure bsSkinButton5Click(Sender: TObject); procedure FormShow(Sender: TObject); procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean); procedure bsSkinButton6Click(Sender: TObject); procedure bsSkinButton2Click(Sender: TObject); procedure bsSkinButton4Click(Sender: TObject); procedure bsSkinButton1Click(Sender: TObject); procedure FormKeyPress(Sender: TObject; var Key: Char); procedure bsSkinButton3Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var frm_code_send_address: Tfrm_code_send_address; implementation uses u_data_share, my_sys_function; {$R *.dfm} procedure Tfrm_code_send_address.bsSkinButton5Click(Sender: TObject); begin close; end; procedure Tfrm_code_send_address.FormShow(Sender: TObject); begin frm_data_share.t_code_send_address.requery; end; procedure Tfrm_code_send_address.FormCloseQuery(Sender: TObject; var CanClose: Boolean); begin CanClose:=frm_close_query(frm_data_share.t_code_send_address); end; procedure Tfrm_code_send_address.bsSkinButton6Click(Sender: TObject); begin table_cancel(frm_data_share.t_code_send_address); end; procedure Tfrm_code_send_address.bsSkinButton2Click(Sender: TObject); begin table_post(frm_data_share.t_code_send_address); end; procedure Tfrm_code_send_address.bsSkinButton4Click(Sender: TObject); begin table_delete(frm_data_share.t_code_send_address); end; procedure Tfrm_code_send_address.bsSkinButton1Click(Sender: TObject); begin frm_data_share.t_code_send_address.Insert; end; procedure Tfrm_code_send_address.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_send_address.bsSkinButton3Click(Sender: TObject); begin if frm_data_share.t_code_send_address.IsEmpty then exit; { frm_op_kuaidi_shen.t_op_kuaidi.edit; frm_op_kuaidi_shen.t_op_kuaidi['收件人姓名']:=frm_data_share.t_code_send_address['收件人姓名']; frm_op_kuaidi_shen.t_op_kuaidi['收件人公司']:=frm_data_share.t_code_send_address['收件人公司']; frm_op_kuaidi_shen.t_op_kuaidi['收件人地址']:=frm_data_share.t_code_send_address['收件人地址']; frm_op_kuaidi_shen.t_op_kuaidi['目的地']:=frm_data_share.t_code_send_address['目的地']; frm_op_kuaidi_shen.t_op_kuaidi['收件人电话']:=frm_data_share.t_code_send_address['收件人电话']; frm_op_kuaidi_shen.t_op_kuaidi['收件人邮编']:=frm_data_share.t_code_send_address['收件人邮编']; } close; end; end.