unit u_code_source; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, BusinessSkinForm, bsSkinCtrls, ExtCtrls, dxExEdtr, dxCntner, dxTL, dxDBCtrl, dxDBGrid; type Tfrm_code_source = class(TForm) bsBusinessSkinForm1: TbsBusinessSkinForm; bsSkinPanel1: TbsSkinPanel; dxDBGrid1: TdxDBGrid; dxDBGrid1Column1: TdxDBGridMaskColumn; dxDBGrid1Column2: TdxDBGridMaskColumn; Panel1: TPanel; bsSkinButton1: TbsSkinButton; bsSkinButton2: TbsSkinButton; bsSkinButton4: TbsSkinButton; bsSkinButton3: TbsSkinButton; bsSkinPanel2: TbsSkinPanel; Panel2: TPanel; bsSkinButton6: TbsSkinButton; bsSkinButton7: TbsSkinButton; bsSkinButton8: TbsSkinButton; bsSkinButton9: TbsSkinButton; bsSkinButton10: TbsSkinButton; bsSkinGroupBox1: TbsSkinGroupBox; dxDBGrid2: TdxDBGrid; dxDBGridMaskColumn1: TdxDBGridMaskColumn; dxDBGridMaskColumn2: TdxDBGridMaskColumn; dxDBGrid1Column3: TdxDBGridColumn; dxDBGrid2Column3: TdxDBGridColumn; dxDBGrid2Column4: TdxDBGridColumn; dxDBGrid2Column5: TdxDBGridColumn; 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 bsSkinButton6Click(Sender: TObject); procedure bsSkinButton7Click(Sender: TObject); procedure bsSkinButton8Click(Sender: TObject); procedure bsSkinButton9Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var frm_code_source: Tfrm_code_source; implementation uses u_data_share, my_sys_function, u_main; {$R *.dfm} procedure Tfrm_code_source.FormShow(Sender: TObject); begin frm_data_share.t_code_source.requery; frm_data_share.t_code_source_dl.requery; end; procedure Tfrm_code_source.FormCloseQuery(Sender: TObject; var CanClose: Boolean); begin CanClose:=frm_close_query(frm_data_share.t_code_source_dl); CanClose:=frm_close_query(frm_data_share.t_code_source); end; procedure Tfrm_code_source.bsSkinButton5Click(Sender: TObject); begin close; end; procedure Tfrm_code_source.bsSkinButton3Click(Sender: TObject); begin table_cancel(frm_data_share.t_code_source); end; procedure Tfrm_code_source.bsSkinButton2Click(Sender: TObject); begin table_post(frm_data_share.t_code_source); end; procedure Tfrm_code_source.bsSkinButton4Click(Sender: TObject); begin table_delete(frm_data_share.t_code_source); end; procedure Tfrm_code_source.bsSkinButton1Click(Sender: TObject); begin frm_data_share.t_code_source.Insert; end; procedure Tfrm_code_source.bsSkinButton6Click(Sender: TObject); begin frm_data_share.t_code_source_dl.Insert; end; procedure Tfrm_code_source.bsSkinButton7Click(Sender: TObject); begin table_post(frm_data_share.t_code_source_dl); end; procedure Tfrm_code_source.bsSkinButton8Click(Sender: TObject); begin table_delete(frm_data_share.t_code_source_dl); end; procedure Tfrm_code_source.bsSkinButton9Click(Sender: TObject); begin table_cancel(frm_data_share.t_code_source_dl); end; end.