Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
AutoCountMachine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 96d6b947
由
LN
编写于
2020-06-23 14:09:23 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
f36d1d7b
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
31 行增加
和
7 行删除
RC1266-AutoCountMachine/dll/database/SQLite.Interop.dll
RC1266-AutoCountMachine/source/AutoCountClient/FrmAnalyze.cs
RC1266-AutoCountMachine/dll/database/SQLite.Interop.dll
0 → 100644
查看文件 @
96d6b94
此文件类型无法预览
RC1266-AutoCountMachine/source/AutoCountClient/FrmAnalyze.cs
查看文件 @
96d6b94
...
@@ -42,6 +42,11 @@ namespace OnlineStore.AutoCountClient
...
@@ -42,6 +42,11 @@ namespace OnlineStore.AutoCountClient
private
void
btnSearch_Click
(
object
sender
,
EventArgs
e
)
private
void
btnSearch_Click
(
object
sender
,
EventArgs
e
)
{
{
if
(
RobotManager
.
robot
.
sQLite
==
null
)
{
MessageBox
.
Show
(
"数据未初始化完成,请稍后!"
);
return
;
}
DateTime
startTime
=
dtpStartTime
.
Value
;
DateTime
startTime
=
dtpStartTime
.
Value
;
DateTime
endTime
=
dtpEndTime
.
Value
;
DateTime
endTime
=
dtpEndTime
.
Value
;
...
@@ -64,17 +69,36 @@ namespace OnlineStore.AutoCountClient
...
@@ -64,17 +69,36 @@ namespace OnlineStore.AutoCountClient
string
code
=
txtCode
.
Text
.
Trim
();
string
code
=
txtCode
.
Text
.
Trim
();
string
[][]
array
=
null
;
string
[][]
array
=
null
;
bool
result
=
RobotManager
.
robot
.
sQLite
.
Select
(
code
,
startTime
.
ToString
(),
endTime
.
To
LongTime
String
(),
out
array
);
bool
result
=
RobotManager
.
robot
.
sQLite
.
Select
(
code
,
startTime
.
ToString
(),
endTime
.
ToString
(),
out
array
);
LogUtil
.
error
(
"查数据【"
+
code
+
"】【"
+
startTime
.
ToString
()
+
"】【"
+
endTime
.
To
LongTime
String
()
+
"】结果:"
+
result
+
","
+
RobotManager
.
robot
.
sQLite
.
ErrInfo
);
LogUtil
.
error
(
"查数据【"
+
code
+
"】【"
+
startTime
.
ToString
()
+
"】【"
+
endTime
.
ToString
()
+
"】结果:"
+
result
+
","
+
RobotManager
.
robot
.
sQLite
.
ErrInfo
);
if
(
array
!=
null
&&
array
.
Length
>
0
)
if
(
array
!=
null
&&
array
.
Length
>
0
)
{
{
LogUtil
.
info
(
"共查询到【"
+
array
.
Length
+
"】行数据"
);
this
.
dataGridView1
.
Rows
.
Clear
();
foreach
(
string
[]
a
in
array
)
{
DataGridViewRow
view
=
new
DataGridViewRow
();
view
.
CreateCells
(
dataGridView1
);
for
(
int
i
=
0
;
i
<
a
.
Length
;
i
++)
{
view
.
Cells
[
i
].
Value
=
a
[
i
];
}
//view.Cells[0].Value = point.pointNum.ToString();
//view.Cells[1].Value = point.PartNum.ToString();
//view.Cells[2].Value = point.pointName;
//view.Cells[3].Value = point.PositionX.ToString();
//view.Cells[4].Value = point.PositionY.ToString();
//view.Cells[5].Value = point.NodePositionX.ToString();
//view.Cells[6].Value = point.NodePositionY.ToString();
//view.Cells[7].Value = point.PositionNum.ToString();
//view.Cells[8].Value = point.NeedSoldering;
//view.Cells[9].Value = point.WeldTemp;
dataGridView1
.
Rows
.
Add
(
view
);
}
}
}
}
}
private
void
btnBack_Click
(
object
sender
,
EventArgs
e
)
private
void
btnBack_Click
(
object
sender
,
EventArgs
e
)
{
{
this
.
Close
();
this
.
Close
();
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论