📄 ujyzxx.~pas
字号:
end;
Memo1.Color := clWindow;
Memo1.ReadOnly := False;
SpeedButton1.Enabled:=False;
SpeedButton2.Enabled:=False;
SpeedButton3.Enabled:=True;
SpeedButton4.Enabled:=True;
Panel2.Enabled:=True;
end;
procedure TJYZXX.DIS;
var
i:integer;
begin
for i:=ComponentCount-1 downto 0 do
begin
if (Components[i] is Tedit) then
begin
TEdit(Components[i]).Color:=$00d8d8d8;
TEdit(Components[i]).ReadOnly:=true;
end;
end;
Memo1.Color := $00D8D8D8;
Memo1.ReadOnly := true;
SpeedButton1.Enabled:=True;
SpeedButton2.Enabled:=True;
SpeedButton3.Enabled:=False;
SpeedButton4.Enabled:=False;
Panel2.Enabled:=False;
end;
procedure TJYZXX.CLS;
var
i:integer;
begin
for i:=ComponentCount-1 downto 0 do
begin
if(Components[i] is tedit) then
TEdit(Components[i]).Clear;
end;
Memo1.Clear;
end;
procedure TJYZXX.SpeedButton5Click(Sender: TObject);
begin
DIS;
ActionCD:='';
Close;
end;
procedure TJYZXX.SpeedButton1Click(Sender: TObject);
begin
CLS;
ENA;
ActionCD := 'N';
Edit3.SetFocus;
bh;
end;
procedure TJYZXX.SpeedButton2Click(Sender: TObject);
begin
ENA;
ACtionCD := 'M';
end;
procedure TJYZXX.SpeedButton3Click(Sender: TObject);
begin
if (cansave) then
begin
Posting;
DIS;
DM.ADODSJYZXX.Close;
DM.ADODSJYZXX.Open;
Application.MessageBox('保存成功!','提示!',64);
actioncd:='';
self.Close;
end;
end;
{※--------※--------※--------※--------※--------※--------※--------※--------※
★★《Delphi编程词典》软件是由吉林省明日科技有限公司开发的面向程序员和编程爱好者
的技术最全、案例最多和使用最方便的Delphi编程技术词典。它包含30个实际项目的开发过
程和源码(每月新增加一个实际开发项目);最完整、最全面、最实用的函数、控件和基础
技术大全;上千个编程技巧和几百个典型实例;同时还提供了编程中所需的各种素材和资源。
价值无限,服务无限。技术服务及升级请访问www.cccxy.com , 电话:(0431)4978981,49
78982
★★《Delphi编程词典》软件源码项目部分对所有代码都作了详细的注释和说明,同时提供
了所有源码项目详尽、完整的开发过程文档和录像。技术支持及升级请访问www.cccxy.com
电话:(0431)4978981,4978982
★★《Delphi编程词典》对所有实例的开发过程和设计思路都作了详细的介绍。技术支持及
升级请访问www.cccxy.com 电话:(0431)4978981,4978982
★★如果您在使用《Delphi编程词典》中有疑问或好的建议,请访问我公司"编程词典"技术
服务网站www.cccxy.com或拨打我公司电话(0431-4978981,4978982),我们愿为广大编程
者提供最好的产品和最佳的服务。对于提出好的建议的读者,我们将给与奖励,详情请访问
www.cccxy.com。电话:(0431)4978981,4978982
※--------※--------※--------※--------※--------※--------※--------※--------※}
procedure TJYZXX.SpeedButton4Click(Sender: TObject);
begin
DIS;
JYZXX.GetAll;
actioncd:='';
end;
procedure TJYZXX.FormShow(Sender: TObject);
begin
DIS;
if ActionCD = 'M' then
GetAll
else if ActionCD = 'N' then
begin
CLS;
ENA;
end;
end;
procedure TJYZXX.FormCreate(Sender: TObject);
begin
with DM.QJYZXX do
begin
Close;
SQL.Clear;
SQL.Add('select * from JYZXX');
Open;
end;
dm.ADODSJYZXX.Open;
end;
procedure TJYZXX.DBGrid1MouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
GETALL;
end;
{※--------※--------※--------※--------※--------※--------※--------※--------※
★★《Delphi编程词典》软件是由吉林省明日科技有限公司开发的面向程序员和编程爱好者
的技术最全、案例最多和使用最方便的Delphi编程技术词典。它包含30个实际项目的开发过
程和源码(每月新增加一个实际开发项目);最完整、最全面、最实用的函数、控件和基础
技术大全;上千个编程技巧和几百个典型实例;同时还提供了编程中所需的各种素材和资源。
价值无限,服务无限。技术服务及升级请访问www.cccxy.com , 电话:(0431)4978981,49
78982
★★《Delphi编程词典》软件源码项目部分对所有代码都作了详细的注释和说明,同时提供
了所有源码项目详尽、完整的开发过程文档和录像。技术支持及升级请访问www.cccxy.com
电话:(0431)4978981,4978982
★★《Delphi编程词典》对所有实例的开发过程和设计思路都作了详细的介绍。技术支持及
升级请访问www.cccxy.com 电话:(0431)4978981,4978982
★★如果您在使用《Delphi编程词典》中有疑问或好的建议,请访问我公司"编程词典"技术
服务网站www.cccxy.com或拨打我公司电话(0431-4978981,4978982),我们愿为广大编程
者提供最好的产品和最佳的服务。对于提出好的建议的读者,我们将给与奖励,详情请访问
www.cccxy.com。电话:(0431)4978981,4978982
※--------※--------※--------※--------※--------※--------※--------※--------※}
procedure TJYZXX.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
if (key in['0'..'9','a'..'z',#46]) then
key:=#0;
if key =#13 then
Edit4.SetFocus;
end;
procedure TJYZXX.Edit4KeyPress(Sender: TObject; var Key: Char);
begin
if not (key in['0'..'9','-',#8,#13]) then
key:=#0;
if key=#13 then
Edit5.SetFocus;
end;
procedure TJYZXX.Edit3KeyPress(Sender: TObject; var Key: Char);
begin
if (key in['0'..'9','a'..'z','A'..'Z',#46]) then
key:=#0;
if key=#13 then
edit1.SetFocus;
end;
procedure TJYZXX.Edit8KeyPress(Sender: TObject; var Key: Char);
begin
if key=#13 then
memo1.SetFocus;
end;
procedure TJYZXX.Edit5KeyPress(Sender: TObject; var Key: Char);
begin
if not (key in['0'..'9','-',#8,#13]) then
key:=#0;
if key=#13 then
Edit6.SetFocus;
end;
procedure TJYZXX.Edit6KeyPress(Sender: TObject; var Key: Char);
begin
if not (key in['0'..'9',#8,#13]) then
key:=#0;
if key=#13 then
Edit7.SetFocus;
end;
procedure TJYZXX.Edit1Change(Sender: TObject);
begin
TR
end;
procedure TJYZXX.Edit3Change(Sender: TObject);
begin
TR
end;
procedure TJYZXX.Edit4Change(Sender: TObject);
begin
TR
end;
procedure TJYZXX.Edit5Change(Sender: TObject);
begin
TR
end;
procedure TJYZXX.Edit6Change(Sender: TObject);
begin
TR
end;
procedure TJYZXX.Edit7Change(Sender: TObject);
begin
TR
end;
procedure TJYZXX.Edit8Change(Sender: TObject);
begin
TR
end;
procedure TJYZXX.Memo1Change(Sender: TObject);
begin
MEMO1.Text:=TRIM(MEMO1.Text);
end;
procedure TJYZXX.Edit7KeyPress(Sender: TObject; var Key: Char);
begin
if key=#13 then
Edit8.SetFocus;
end;
end.
{※-------------※--------------※-------------※--------------※--------------※
★★ 版权说明:吉林省明日科技有限公司享有本软件的所有版权,如果本软件用于商业
用途,必须经过吉林省明日科技有限公司授权。如果提供网上免费下载,必须经过吉林省
明日科技有限公司授权,并保证程序的完整(不得修改代码、注释和相关内容),否则,
我公司将追究其法律责任。
★★《Delphi编程词典》软件是由吉林省明日科技有限公司开发的面向程序员和编程爱好
者的技术最全、案例最多和使用最方便的Delphi编程技术词典。它包含30个实际项目的开
发过程和源码(每月新增加一个实际开发项目源码);最完整、最全面、最实用的函数、
控件和基础技术大全;上千个编程技巧和几百个典型实例;同时还提供了编程中所需的各
种素材和资源。价值无限,服务无限。技术服务及升级请访问www.cccxy.com
★★《Delphi编程词典》是各级编程人员不可缺少的编程技术资源管理软件。如果您是初
学者,本软件提供了大量实例、项目的源码及其详尽、完整的开发过程文档和技术说明文
件,同时还配有各方面的学习录像,让您快速入门,快速精通;如果您是编程设计高手,
本软件提供了大量编程技巧、源码速查和全方位的技术资源,让您轻松编程、轻松赚钱。
★★《Delphi编程词典》软件是软件开发商和软件服务商的资源宝库,它提供了几十个实
际项目案例的项目源码、软件升级和有限服务支持,同时每月还提供新的行业软件,让您
用最好、最多的软件资源开拓您的软件市场,创造更多的利润空间。价值无限,服务无限。
技术服务及升级请访问www.cccxy.com
★★《Delphi编程词典》对所有源码项目的实例的开发过程和代码功能都作了详细说明,
让您真正融会贯通,迅速提高编程本领。
★★如果您在使用《Delphi编程词典》中有疑问或好的建议,请访问我公司"编程词典"技
术服务网站www.cccxy.com或拨打我公司电话(0431-4978981,4978982),我们愿为广大
编程者提供最好的产品和最佳的服务。对于提出好的建议的读者,我们将给与奖励,
详情请访问www.cccxy.com。
★★吉林省明日科技有限公司 www.mingrisoft.com www.cccxy.com 价值无限,服务无
限(0431)4978981,4978982
※-------------※--------------※-------------※--------------※--------------※}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -