Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
Kivii.Client.SampleInbounds.V4.0
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陶然
Kivii.Client.SampleInbounds.V4.0
Commits
05a35dbd
Commit
05a35dbd
authored
Jul 05, 2023
by
任天宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化了扫描到样品后不交接的情况下不能重置箱号的bug
新增了重置箱号和开始交接样品时停止扫描
parent
1643242b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
12 deletions
+19
-12
FrmMain.Designer.cs
Src/FrmMain.Designer.cs
+0
-0
FrmMain.cs
Src/FrmMain.cs
+17
-10
AssemblyInfo.cs
Src/Properties/AssemblyInfo.cs
+2
-2
No files found.
Src/FrmMain.Designer.cs
View file @
05a35dbd
This diff is collapsed.
Click to expand it.
Src/FrmMain.cs
View file @
05a35dbd
...
...
@@ -185,7 +185,7 @@ namespace Kivii.Client.SampleInbounds
//设置回调方法
reader
.
AnalyCallback
=
AnalyData
;
reader
.
GetFrequencyRegion
(
currentSetting
.
btReadId
);
Thread
.
Sleep
(
50
0
);
Thread
.
Sleep
(
50
);
currentInventoryBuffer
.
ClearInventoryPar
();
currentInventoryBuffer
.
btRepeat
=
Convert
.
ToByte
(
1
);
//设置每条命令盘存次数 1次
...
...
@@ -295,7 +295,7 @@ namespace Kivii.Client.SampleInbounds
btnScanRfid
.
BackColor
=
Color
.
PapayaWhip
;
btnScanRfid
.
ForeColor
=
Color
.
Chocolate
;
}));
Thread
.
Sleep
(
40
0
);
Thread
.
Sleep
(
5
0
);
disConnectReader
();
outputMessage
(
"停止扫描"
);
return
;
...
...
@@ -857,6 +857,10 @@ namespace Kivii.Client.SampleInbounds
if
(
_currentScanSamples
==
null
)
_currentScanSamples
=
new
List
<
Sample
>();
foreach
(
var
record
in
resp
.
Results
)
{
this
.
Invoke
(
new
Action
(
delegate
{
dgvRfidSamples
.
DataSource
=
null
;
}));
if
(
_currentScanSamples
.
Exists
(
o
=>
o
.
Kvid
==
record
.
Kvid
))
{
_currentScanSamples
.
RemoveAll
(
o
=>
o
.
Kvid
==
record
.
Kvid
);
...
...
@@ -864,10 +868,6 @@ namespace Kivii.Client.SampleInbounds
}
this
.
Invoke
(
new
Action
(
delegate
{
dgvRfidSamples
.
DataSource
=
null
;
}));
this
.
Invoke
(
new
Action
(
delegate
{
dgvRfidSamples
.
DataSource
=
_currentScanSamples
;
}));
}
...
...
@@ -1080,6 +1080,12 @@ namespace Kivii.Client.SampleInbounds
private
void
btnClearCurrentPackage_Click
(
object
sender
,
EventArgs
e
)
{
btnRealTimeInventory_Stop
();
this
.
Invoke
(
new
Action
(
delegate
{
dgvSamples
.
DataSource
=
null
;
dgvRfidSamples
.
DataSource
=
null
;
}));
_currentPackage
=
null
;
_currentPackageSamples
=
null
;
_currentScanSamples
=
null
;
...
...
@@ -1100,9 +1106,6 @@ namespace Kivii.Client.SampleInbounds
//cbSetCurrentPackageOwner.DisplayMember = "OwnerName";
//cbSetCurrentPackageOwner.ValueMember = "OwnerKvid";
//cbSetCurrentPackageOwner.Enabled = false;
dgvSamples
.
DataSource
=
null
;
dgvRfidSamples
.
DataSource
=
null
;
btnRealTimeInventory_Stop
();
outputMessage
(
$"箱号已重设!"
);
}
...
...
@@ -1189,7 +1192,7 @@ namespace Kivii.Client.SampleInbounds
MessageBox
.
Show
(
"读写器未连接,请查看是否读写器设备!"
);
return
;
}
Thread
.
Sleep
(
20
0
);
Thread
.
Sleep
(
5
0
);
}
if
(
currentInventoryBuffer
.
bLoopInventory
)
{
...
...
@@ -1203,6 +1206,10 @@ namespace Kivii.Client.SampleInbounds
private
void
btnSampleAssign_Click
(
object
sender
,
EventArgs
e
)
{
if
(
currentInventoryBuffer
.
bLoopInventory
)
{
btnRealTimeInventory_Stop
();
}
if
(
cbAssignOperatorName
.
Text
.
IsNullOrEmpty
())
{
MessageBox
.
Show
(
"请先设置好交接人信息"
,
"设置"
);
...
...
Src/Properties/AssemblyInfo.cs
View file @
05a35dbd
...
...
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.
6.2023.6
050")]
[assembly: AssemblyFileVersion("5.
6.2023.6
050")]
[assembly: AssemblyVersion("5.
4.2023.7
050")]
[assembly: AssemblyFileVersion("5.
4.2023.7
050")]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment