unit u_code_subcomp; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, BusinessSkinForm, bsSkinCtrls, ExtCtrls, dxExEdtr, dxCntner, dxTL, dxDBCtrl, dxDBGrid; type Tfrm_code_subcomp = class(TForm) Panel1: TPanel; bsSkinButton1: TbsSkinButton; bsSkinButton2: TbsSkinButton; bsSkinButton4: TbsSkinButton; bsSkinButton3: TbsSkinButton; bsSkinButton5: TbsSkinButton; bsBusinessSkinForm1: TbsBusinessSkinForm; dxDBGrid1: TdxDBGrid; dxDBGrid1Column1: TdxDBGridMaskColumn; dxDBGrid1Column2: TdxDBGridMaskColumn; dxDBGrid1Column3: TdxDBGridColumn; dxDBGrid1Column4: TdxDBGridColumn; dxDBGrid1Column5: TdxDBGridColumn; dxDBGrid1Column6: TdxDBGridColumn; dxDBGrid1Column7: TdxDBGridColumn; dxDBGrid1Column8: TdxDBGridColumn; dxDBGrid1Column9: TdxDBGridColumn; dxDBGrid1Column10: TdxDBGridColumn; dxDBGrid1Column11: TdxDBGridColumn; dxDBGrid1Column12: TdxDBGridColumn; dxDBGrid1Column13: TdxDBGridColumn; bsSkinButton21: TbsSkinButton; bsSkinButton6: 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 bsSkinButton21Click(Sender: TObject); procedure bsSkinButton6Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var frm_code_subcomp: Tfrm_code_subcomp; implementation uses u_data_share, my_sys_function, u_main; {$R *.dfm} procedure Tfrm_code_subcomp.FormShow(Sender: TObject); begin if not frm_data_share.t_code_subcomp.Active then frm_data_share.t_code_subcomp.Open; frm_data_share.t_code_subcomp.requery; end; procedure Tfrm_code_subcomp.FormCloseQuery(Sender: TObject; var CanClose: Boolean); begin CanClose:=frm_close_query(frm_data_share.t_code_subcomp); end; procedure Tfrm_code_subcomp.bsSkinButton5Click(Sender: TObject); begin close; end; procedure Tfrm_code_subcomp.bsSkinButton3Click(Sender: TObject); begin table_cancel(frm_data_share.t_code_subcomp); end; procedure Tfrm_code_subcomp.bsSkinButton2Click(Sender: TObject); begin table_post(frm_data_share.t_code_subcomp); end; procedure Tfrm_code_subcomp.bsSkinButton4Click(Sender: TObject); begin table_delete(frm_data_share.t_code_subcomp); end; procedure Tfrm_code_subcomp.bsSkinButton1Click(Sender: TObject); begin frm_data_share.t_code_subcomp.Insert; end; procedure Tfrm_code_subcomp.bsSkinButton21Click(Sender: TObject); begin frm_main.view_momo(frm_data_share.t_code_subcomp1,'数据库配置'); end; procedure Tfrm_code_subcomp.bsSkinButton6Click(Sender: TObject); begin frm_main.view_momo(frm_data_share.t_code_subcomp1,'SQL自定义条件'); end; end.