Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
cz_012273
WZGL
提交
8d0a10fe
W
WZGL
项目概览
cz_012273
/
WZGL
通知
2
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
WZGL
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
8d0a10fe
编写于
4月 08, 2022
作者:
cz_012273
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
上传新文件
上级
cc6c47f4
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
88 addition
and
0 deletion
+88
-0
ChaXun.pas
ChaXun.pas
+88
-0
未找到文件。
ChaXun.pas
0 → 100644
浏览文件 @
8d0a10fe
unit
ChaXun
;
interface
uses
Winapi
.
Windows
,
Winapi
.
Messages
,
System
.
SysUtils
,
System
.
Variants
,
System
.
Classes
,
Vcl
.
Graphics
,
Vcl
.
Controls
,
Vcl
.
Forms
,
Vcl
.
Dialogs
,
Vcl
.
StdCtrls
,
FireDAC
.
Stan
.
Intf
,
FireDAC
.
Stan
.
Option
,
FireDAC
.
Stan
.
Param
,
FireDAC
.
Stan
.
Error
,
FireDAC
.
DatS
,
FireDAC
.
Phys
.
Intf
,
FireDAC
.
DApt
.
Intf
,
FireDAC
.
Stan
.
Async
,
FireDAC
.
DApt
,
FireDAC
.
UI
.
Intf
,
FireDAC
.
Stan
.
Def
,
FireDAC
.
Stan
.
Pool
,
FireDAC
.
Phys
,
FireDAC
.
Phys
.
SQLite
,
FireDAC
.
Phys
.
SQLiteDef
,
FireDAC
.
Stan
.
ExprFuncs
,
FireDAC
.
Phys
.
SQLiteWrapper
.
Stat
,
FireDAC
.
VCLUI
.
Wait
,
Vcl
.
Mask
,
Vcl
.
DBCtrls
,
Data
.
DB
,
FireDAC
.
Comp
.
Client
,
FireDAC
.
Comp
.
DataSet
,
Vcl
.
ExtCtrls
,
Vcl
.
Grids
,
Vcl
.
DBGrids
;
type
TForm4
=
class
(
TForm
)
Label1
:
TLabel
;
FDQuery1
:
TFDQuery
;
FDConnection1
:
TFDConnection
;
DataSource1
:
TDataSource
;
Label2
:
TLabel
;
Label3
:
TLabel
;
Label4
:
TLabel
;
Label5
:
TLabel
;
Label6
:
TLabel
;
Label7
:
TLabel
;
Button1
:
TButton
;
Button2
:
TButton
;
DBGrid1
:
TDBGrid
;
DBText1
:
TDBText
;
DBText2
:
TDBText
;
DBText3
:
TDBText
;
DBText4
:
TDBText
;
DBText5
:
TDBText
;
DBText6
:
TDBText
;
DBText7
:
TDBText
;
Label8
:
TLabel
;
DBText8
:
TDBText
;
procedure
Button1Click
(
Sender
:
TObject
);
procedure
Button2Click
(
Sender
:
TObject
);
procedure
FormShow
(
Sender
:
TObject
);
private
{ Private declarations }
public
{ Public declarations }
end
;
var
Form4
:
TForm4
;
implementation
uses
pubunit
;
{$R *.dfm}
procedure
TForm4
.
Button1Click
(
Sender
:
TObject
);
begin
close
;
end
;
procedure
TForm4
.
Button2Click
(
Sender
:
TObject
);
begin
close
;
end
;
procedure
TForm4
.
FormShow
(
Sender
:
TObject
);
begin
FDConnection1
.
Params
.
Add
(
'Database='
+
dbName
);
FDConnection1
.
Connected
:=
True
;
with
FDQuery1
do
begin
Close
;
Open
(
'SELECT * FROM 库存表'
);
Fields
[
0
].
DisplayWidth
:=
4
;
//这个宽度指字符数
Fields
[
1
].
DisplayWidth
:=
20
;
Fields
[
2
].
DisplayWidth
:=
6
;
Fields
[
3
].
DisplayWidth
:=
6
;
Fields
[
4
].
DisplayWidth
:=
10
;
Fields
[
5
].
DisplayWidth
:=
6
;
end
;
end
;
end
.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录