Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
cz_012273
WZGL
提交
5a7fbf13
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 搜索 >>
提交
5a7fbf13
编写于
9月 21, 2022
作者:
C
cz_012273
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
发放连续输入,记住品名选择(规格、日期等待完善)
上级
9a47164c
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
24 addition
and
11 deletion
+24
-11
ChuKu.dfm
ChuKu.dfm
+1
-1
ChuKu.pas
ChuKu.pas
+17
-4
DataUnit.pas
DataUnit.pas
+3
-3
WZGL.dproj
WZGL.dproj
+3
-3
WZGL.res
WZGL.res
+0
-0
未找到文件。
ChuKu.dfm
浏览文件 @
5a7fbf13
...
...
@@ -102,7 +102,7 @@ object Form3: TForm3
Top = 343
Width = 111
Height = 41
Caption = #21462#28040
Caption = #
36864#20986'/'#
21462#28040
TabOrder = 1
OnClick = Button2Click
end
...
...
ChuKu.pas
浏览文件 @
5a7fbf13
...
...
@@ -32,13 +32,13 @@ type
DBEdit4
:
TDBEdit
;
DBEdit5
:
TDBEdit
;
Button3
:
TButton
;
procedure
Button1Click
(
Sender
:
TObject
);
procedure
Button2Click
(
Sender
:
TObject
);
procedure
Button1Click
(
Sender
:
TObject
);
//确认
procedure
Button2Click
(
Sender
:
TObject
);
//取消
procedure
FormShow
(
Sender
:
TObject
);
procedure
DBLookupComboBox1CloseUp
(
Sender
:
TObject
);
procedure
DBLookupComboBox2CloseUp
(
Sender
:
TObject
);
procedure
DBLookupComboBox3CloseUp
(
Sender
:
TObject
);
procedure
Button3Click
(
Sender
:
TObject
);
procedure
Button3Click
(
Sender
:
TObject
);
//导出EXCEL
procedure
DBGrid1TitleClick
(
Column
:
TColumn
);
private
...
...
@@ -59,12 +59,17 @@ uses DataUnit;
procedure
TForm3
.
Button1Click
(
Sender
:
TObject
);
var
i
:
integer
;
selkey
:
integer
;
begin
i
:=
0
;
if
DBLookupComboBox1
.
text
=
''
then
begin
application
.
MessageBox
(
'品名不能为空!'
,
'系统提示'
,
mb_ok
+
mb_iconinformation
);
exit
;
end
else
begin
selkey
:=
DBLookupComboBox1
.
keyvalue
;
//记住当前选择的品名序号
end
;
if
DBEdit1
.
text
=
''
then
begin
...
...
@@ -133,7 +138,15 @@ begin
DM1
.
FDQuery5
.
Filter
:=
''
;
DM1
.
FDQuery5
.
Filtered
:=
False
;
// 复位人员表filter状态
DBLookupComboBox1
.
KeyValue
:=
0
;
// 复位品名下拉列表初始状态
close
;
form3
.
hide
;
//隐藏窗口
form3
.
show
;
//重新显示(以便连续输入发放数据)
DBLookupComboBox1
.
keyvalue
:=
selkey
;
//显示上次录入品名
with
DM1
.
FDQuery3
do
begin
FieldByName
(
'品名'
).
value
:=
DBLookupComboBox1
.
text
;
end
;
end
;
procedure
TForm3
.
Button2Click
(
Sender
:
TObject
);
...
...
DataUnit.pas
浏览文件 @
5a7fbf13
...
...
@@ -124,9 +124,9 @@ begin
if
not
(
Column
.
Field
.
FieldKind
in
[
fkData
,
fkLookup
])
then
exit
;
//如果字段类型不属于物理字段或查询字段则退出
if
Column
.
Field
.
FieldKind
=
fkData
then
myFieldName
:=
UpperCase
(
Column
.
Field
.
FieldName
)
//如为物理字段,字段名大写
myFieldName
:=
UpperCase
(
Column
.
Field
.
FieldName
)
//如为物理字段,
取
字段名大写
else
myFieldName
:=
UpperCase
(
Column
.
Field
.
KeyFields
);
//如为查询字段,主键名大写
myFieldName
:=
UpperCase
(
Column
.
Field
.
KeyFields
);
//如为查询字段,
取
主键名大写
while
Pos
(
myFieldName
,
';'
)<>
0
do
//如果名称中包含分号
myFieldName
:=
copy
(
myFieldName
,
1
,
Pos
(
myFieldName
,
';'
)-
1
)
...
...
@@ -141,7 +141,7 @@ begin
Length
(
column
.
Title
.
Caption
)
-
2
);
//如果字段名中包含上下箭头,去掉字段名前两个字符
TitleStr
:=
Column
.
Title
.
Caption
;
//取字段标题
SqlStr
:=
UpperCase
(
Sql
.
Text
);
//SQL语句字符串大写
// if pos(myFieldName,SqlStr)=0 then exit; //如果SQL语句中不存在所选字段名,则退出
if
ParamCount
>
0
then
//如果运行过程时包含参数
begin
SavedParams
:=
TParams
.
Create
;
//创建保存参数变量
...
...
WZGL.dproj
浏览文件 @
5a7fbf13
...
...
@@ -88,9 +88,9 @@
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
<VerInfo_Locale>1033</VerInfo_Locale>
<VerInfo_AutoIncVersion>true</VerInfo_AutoIncVersion>
<VerInfo_Keys>CompanyName=;FileDescription=$(MSBuildProjectName);FileVersion=1.
0.9.3
;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=1.0.0.0;Comments=</VerInfo_Keys>
<VerInfo_
Release>9</VerInfo_Release
>
<VerInfo_
Build>3</VerInfo_Build
>
<VerInfo_Keys>CompanyName=;FileDescription=$(MSBuildProjectName);FileVersion=1.
1.0.2
;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=1.0.0.0;Comments=</VerInfo_Keys>
<VerInfo_
Build>2</VerInfo_Build
>
<VerInfo_
MinorVer>1</VerInfo_MinorVer
>
</PropertyGroup>
<PropertyGroup Condition="'$(Cfg_2)'!=''">
<DCC_LocalDebugSymbols>false</DCC_LocalDebugSymbols>
...
...
WZGL.res
浏览文件 @
5a7fbf13
无法预览此类型文件
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录