网站地图| 免费获取|
毕业论文网
  • 网站首页|
  • 论文范文|
  • 论文降重|
  • 职称论文发表|
  • 合作期刊|
  • 论文下载|
  • 计算机论文|
  • 外文翻译|
  • 免费论文|
  • 论文资料|
  • 论文开题报告
搜索

当前位置:毕业论文网 -> 免费论文 -> 计算机论文 -> delphi+access设备保养管理系统[开题报告+文档+源代码+答辩ppt+外文翻译](五)
计算机论文资料| ASP设计| Delphi| VB设计| JSP设计| ASP.NET设计| VB.NET| java设计| VC| pb| VS| dreamweaver| c#.net| vf| VC++| 计算机论文范文| 论文下载| 自动化论文

delphi+access设备保养管理系统[开题报告+文档+源代码+答辩ppt+外文翻译](五)

最新活动:微信集50个赞就可获取任意一篇钻石会员文档。详情见微信集赞换文档
delphi+access设备保养管理系统[开题报告+文档+源代码+答辩ppt+外文翻译](五) TObject);
    procedure tblrefClick(Sender: TObject);
    procedure tbltableClick(Sender: TObject);
    procedure tblprintClick(Sender: TObject);
    procedure tblcloseClick(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure cbounitChange(Sender: TObject);
    procedure FormActivate(Sender: TObject);
    procedure dbgridDrawColumnCell(Sender: TObject; const Rect: TRect;
      DataCol: Integer; Column: TColumn; State: TGridDrawState);
    procedure cbounitClick(Sender: TObject);
    procedure cboorderbyChange(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frmmaintable: Tfrmmaintable;
  myinifile:tinifile; //声明INI文件
  tablename :string;   //当前查询表格的名称
  savesql:string;//当前执行的SQL语句的内容
implementation

uses Unit2, Unit3,unit5;


const
  ScreenWidth: LongInt = 800;
  ScreenHeight: LongInt = 600;


{$R *.dfm}

procedure Tfrmmaintable.FormCreate(Sender: TObject);
begin
myinifile:=tinifile.Create(extractfilepath(paramstr(0))+'data.ini');
myinifile.ReadSection('username',(dbgrid.Columns.Items[5].PickList));// 读取INI文件中的用户
myinifile.ReadSection('username',(dbgrid.Columns.Items[6].PickList));
myinifile.ReadSection('area',(dbgrid.Columns.Items[1].PickList));

frmmaintable.Height:=300;          //初始窗体大小
frmmaintable.Width:=500;

scaled := true;                    //根据分辩率调整荧幕大小
  if (screen.width <> ScreenWidth) then
  begin
    height := longint(height) * longint(screen.height) div ScreenHeight;
    width := longint(width) * longint(screen.width) div ScreenWidth;
    scaleBy(screen.width, ScreenWidth);
end;

adoque.Connection:=frmmain.adocon;    //建立数据链接
adoque.SQL.Clear;
tablename:='e_table';
adoque.SQL.Add('select * from '+tablename);
adoque.Open;
adods.DataSet:=adoque;
dbgrid.DataSource:=adods;
savesql:=adoque.SQL.Text;      //保存当前查询语句的内容
frmmain.statusbar1.Panels[1].Text:='共有'+inttostr(adoque.RecordCount)+'条信息' ;
end;

procedure Tfrmmaintable.cboareaChange(Sender: TObject);
begin
with adoque do
begin
if cboarea.Text='ALL' then
begin
close;
sql.clear;
sql.Add('select * from '+tablename);
open;
savesql:=adoque.SQL.Text;      //保存当前查询语句的内容
frmmain.statusbar1.Panels[1].Text:='共有'+inttostr(adoque.RecordCount)+'条信息'
end
else
begin
close;
sql.clear;
sql.Add('select * from e_table where 区域 = '+'"'+cboarea.Text+'"' );
open;
savesql:=adoque.SQL.Text;      //保存当前查询语句的内容:=adoque.SQL.Text;      //保存当前查询语句的内容
frmmain.statusbar1.Panels[1].Text:='共查询到'+inttostr

首页 上一页 2 3 4 5 6 7 8 下一页 尾页 5/10/10

delphi+access设备保养管理系统[开题报告+文档+源代码+答辩ppt+外文翻译](五)由毕业论文网(www.huoyuandh.com)会员上传。
原创论文资料流程 相关论文
上一篇:delphi气象服务业务系统+sql[开.. 下一篇:delphi实验室仪器管理系统
推荐论文 本专业最新论文
Tags:delphi access 设备 保养 管理系统 2010-04-17 08:37:54【返回顶部】
精彩推荐
发表论文

联系方式 | 论文说明 | 网站地图 | 免费获取 | 钻石会员 | 硕士论文资料


毕业论文网提供论文范文,论文代发,原创论文资料

本站部分文章来自网友投稿上传,如发现侵犯了您的版权,请联系指出,本站及时确认并删除  E-mail: 17304545@qq.com

Copyright@ 2009-2020 毕业论文网 版权所有