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.

162 lines
4.2 KiB
Plaintext

unit u_code_edicode;
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, DB, ADODB;
type
Tfrm_code_edicode = class(TForm)
bsBusinessSkinForm1: TbsBusinessSkinForm;
dxDBGrid1: TdxDBGrid;
dxDBGrid1Column1: TdxDBGridMaskColumn;
dxDBGrid1Column2: TdxDBGridMaskColumn;
Label1: TLabel;
DBEdit1: TDBEdit;
DBEdit2: TDBEdit;
Label2: TLabel;
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;
t_code_edicode: TADOQuery;
t_code_edicode1: TDataSource;
Label6: TLabel;
Label7: TLabel;
Label8: TLabel;
Label9: TLabel;
Label10: TLabel;
Label11: TLabel;
Label12: TLabel;
Label13: TLabel;
Label14: TLabel;
Label15: TLabel;
DBEdit5: TDBEdit;
DBEdit6: TDBEdit;
DBEdit7: TDBEdit;
DBEdit8: TDBEdit;
DBEdit11: TDBEdit;
DBEdit12: TDBEdit;
DBEdit13: TDBEdit;
DBEdit14: TDBEdit;
DBEdit15: TDBEdit;
DBEdit16: TDBEdit;
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);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frm_code_edicode: Tfrm_code_edicode;
implementation
uses u_data_share, my_sys_function, u_main;
{$R *.dfm}
procedure Tfrm_code_edicode.bsSkinButton5Click(Sender: TObject);
begin
close;
end;
procedure Tfrm_code_edicode.FormShow(Sender: TObject);
begin
// t_code_edicode.open;
end;
procedure Tfrm_code_edicode.FormCloseQuery(Sender: TObject;
var CanClose: Boolean);
begin
CanClose:=frm_close_query(t_code_edicode);
end;
procedure Tfrm_code_edicode.bsSkinButton3Click(Sender: TObject);
begin
table_cancel(t_code_edicode);
end;
procedure Tfrm_code_edicode.bsSkinButton2Click(Sender: TObject);
begin
table_post(t_code_edicode);
end;
procedure Tfrm_code_edicode.bsSkinButton4Click(Sender: TObject);
begin
table_delete(t_code_edicode);
end;
procedure Tfrm_code_edicode.bsSkinButton1Click(Sender: TObject);
begin
t_code_edicode.Insert;
end;
procedure Tfrm_code_edicode.bsSkinCheckRadioBox1Click(Sender: TObject);
begin
t_code_edicode.Filtered:=false;
t_code_edicode.Filter:='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>=1';
t_code_edicode.Filtered:=true;
end;
procedure Tfrm_code_edicode.bsSkinCheckRadioBox2Click(Sender: TObject);
begin
t_code_edicode.Filtered:=false;
t_code_edicode.Filter:='<27>ջ<EFBFBD><D5BB><EFBFBD>=1';
t_code_edicode.Filtered:=true;
end;
procedure Tfrm_code_edicode.bsSkinCheckRadioBox3Click(Sender: TObject);
begin
t_code_edicode.Filtered:=false;
t_code_edicode.Filter:='֪ͨ<CDA8><D6AA>=1';
t_code_edicode.Filtered:=true;
end;
procedure Tfrm_code_edicode.bsSkinCheckRadioBox4Click(Sender: TObject);
begin
t_code_edicode.Filtered:=false;
end;
procedure Tfrm_code_edicode.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;
end.