Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
Kivii.Client.SamplePackages.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.SamplePackages.V4.0
Commits
d9aa22e8
Commit
d9aa22e8
authored
Aug 07, 2023
by
任天宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
3904d47e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
13 deletions
+17
-13
FrmMain.Designer.cs
Src/FrmMain.Designer.cs
+3
-10
FrmMain.cs
Src/FrmMain.cs
+12
-1
AssemblyInfo.cs
Src/Properties/AssemblyInfo.cs
+2
-2
No files found.
Src/FrmMain.Designer.cs
View file @
d9aa22e8
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
/// </summary>
/// </summary>
private
void
InitializeComponent
()
private
void
InitializeComponent
()
{
{
System
.
Windows
.
Forms
.
DataGridViewCellStyle
dataGridViewCellStyle2
=
new
System
.
Windows
.
Forms
.
DataGridViewCellStyle
();
System
.
Windows
.
Forms
.
DataGridViewCellStyle
dataGridViewCellStyle1
=
new
System
.
Windows
.
Forms
.
DataGridViewCellStyle
();
System
.
Windows
.
Forms
.
DataGridViewCellStyle
dataGridViewCellStyle1
=
new
System
.
Windows
.
Forms
.
DataGridViewCellStyle
();
System
.
ComponentModel
.
ComponentResourceManager
resources
=
new
System
.
ComponentModel
.
ComponentResourceManager
(
typeof
(
FrmMain
));
System
.
ComponentModel
.
ComponentResourceManager
resources
=
new
System
.
ComponentModel
.
ComponentResourceManager
(
typeof
(
FrmMain
));
this
.
plLeft
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
plLeft
=
new
System
.
Windows
.
Forms
.
Panel
();
...
@@ -477,6 +476,7 @@
...
@@ -477,6 +476,7 @@
//
//
this
.
gbMain
.
Controls
.
Add
(
this
.
dgvSamples
);
this
.
gbMain
.
Controls
.
Add
(
this
.
dgvSamples
);
this
.
gbMain
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
gbMain
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
gbMain
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
9F
);
this
.
gbMain
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
gbMain
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
gbMain
.
Name
=
"gbMain"
;
this
.
gbMain
.
Name
=
"gbMain"
;
this
.
gbMain
.
Size
=
new
System
.
Drawing
.
Size
(
912
,
534
);
this
.
gbMain
.
Size
=
new
System
.
Drawing
.
Size
(
912
,
534
);
...
@@ -498,14 +498,6 @@
...
@@ -498,14 +498,6 @@
this
.
SampleDeadTime
,
this
.
SampleDeadTime
,
this
.
SamplePackageName
,
this
.
SamplePackageName
,
this
.
SampleQuantityUnit
});
this
.
SampleQuantityUnit
});
dataGridViewCellStyle2
.
Alignment
=
System
.
Windows
.
Forms
.
DataGridViewContentAlignment
.
MiddleLeft
;
dataGridViewCellStyle2
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
dataGridViewCellStyle2
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
12F
);
dataGridViewCellStyle2
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
ControlText
;
dataGridViewCellStyle2
.
SelectionBackColor
=
System
.
Drawing
.
SystemColors
.
Highlight
;
dataGridViewCellStyle2
.
SelectionForeColor
=
System
.
Drawing
.
SystemColors
.
HighlightText
;
dataGridViewCellStyle2
.
WrapMode
=
System
.
Windows
.
Forms
.
DataGridViewTriState
.
False
;
this
.
dgvSamples
.
DefaultCellStyle
=
dataGridViewCellStyle2
;
this
.
dgvSamples
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
dgvSamples
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
dgvSamples
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
17
);
this
.
dgvSamples
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
17
);
this
.
dgvSamples
.
Name
=
"dgvSamples"
;
this
.
dgvSamples
.
Name
=
"dgvSamples"
;
...
@@ -513,6 +505,7 @@
...
@@ -513,6 +505,7 @@
this
.
dgvSamples
.
RowTemplate
.
Height
=
23
;
this
.
dgvSamples
.
RowTemplate
.
Height
=
23
;
this
.
dgvSamples
.
Size
=
new
System
.
Drawing
.
Size
(
906
,
514
);
this
.
dgvSamples
.
Size
=
new
System
.
Drawing
.
Size
(
906
,
514
);
this
.
dgvSamples
.
TabIndex
=
0
;
this
.
dgvSamples
.
TabIndex
=
0
;
this
.
dgvSamples
.
DataSourceChanged
+=
new
System
.
EventHandler
(
this
.
dgvSamples_DataSourceChanged
);
this
.
dgvSamples
.
CellContentClick
+=
new
System
.
Windows
.
Forms
.
DataGridViewCellEventHandler
(
this
.
dgvSamples_CellContentClick
);
this
.
dgvSamples
.
CellContentClick
+=
new
System
.
Windows
.
Forms
.
DataGridViewCellEventHandler
(
this
.
dgvSamples_CellContentClick
);
this
.
dgvSamples
.
RowPostPaint
+=
new
System
.
Windows
.
Forms
.
DataGridViewRowPostPaintEventHandler
(
this
.
dgvSamples_RowPostPaint
);
this
.
dgvSamples
.
RowPostPaint
+=
new
System
.
Windows
.
Forms
.
DataGridViewRowPostPaintEventHandler
(
this
.
dgvSamples_RowPostPaint
);
//
//
...
@@ -602,7 +595,7 @@
...
@@ -602,7 +595,7 @@
this
.
Controls
.
Add
(
this
.
plLeft
);
this
.
Controls
.
Add
(
this
.
plLeft
);
this
.
Icon
=
((
System
.
Drawing
.
Icon
)(
resources
.
GetObject
(
"$this.Icon"
)));
this
.
Icon
=
((
System
.
Drawing
.
Icon
)(
resources
.
GetObject
(
"$this.Icon"
)));
this
.
Name
=
"FrmMain"
;
this
.
Name
=
"FrmMain"
;
this
.
Text
=
"样品入箱客户端 1.
6(23.7.2
70 CP2101)"
;
this
.
Text
=
"样品入箱客户端 1.
7(23.8.0
70 CP2101)"
;
this
.
Load
+=
new
System
.
EventHandler
(
this
.
FrmMain_Load
);
this
.
Load
+=
new
System
.
EventHandler
(
this
.
FrmMain_Load
);
this
.
plLeft
.
ResumeLayout
(
false
);
this
.
plLeft
.
ResumeLayout
(
false
);
this
.
gbInfo
.
ResumeLayout
(
false
);
this
.
gbInfo
.
ResumeLayout
(
false
);
...
...
Src/FrmMain.cs
View file @
d9aa22e8
...
@@ -751,7 +751,10 @@ namespace Kivii.Client.SamplePackages
...
@@ -751,7 +751,10 @@ namespace Kivii.Client.SamplePackages
}
}
var
currentRowSample
=
_currentSamples
[
e
.
RowIndex
];
var
currentRowSample
=
_currentSamples
[
e
.
RowIndex
];
if
(
currentRowSample
==
null
)
return
;
if
(
currentRowSample
==
null
)
return
;
sampleUnpackaging
(
currentRowSample
);
if
(
MessageBox
.
Show
(
"是否确认撤销入箱?"
,
"撤销入箱确认"
,
MessageBoxButtons
.
OKCancel
,
MessageBoxIcon
.
Question
)
==
DialogResult
.
OK
)
{
sampleUnpackaging
(
currentRowSample
);
}
}
}
private
void
tbScanSample_KeyDown
(
object
sender
,
KeyEventArgs
e
)
private
void
tbScanSample_KeyDown
(
object
sender
,
KeyEventArgs
e
)
...
@@ -786,5 +789,13 @@ namespace Kivii.Client.SamplePackages
...
@@ -786,5 +789,13 @@ namespace Kivii.Client.SamplePackages
{
{
Reader
.
InstallDriver
();
Reader
.
InstallDriver
();
}
}
private
void
dgvSamples_DataSourceChanged
(
object
sender
,
EventArgs
e
)
{
int
count
=
dgvSamples
.
RowCount
;
if
(
count
<=
0
)
gbMain
.
Text
=
"入箱列表"
;
else
gbMain
.
Text
=
$"当前箱内数量:
{
count
}
"
;
}
}
}
}
}
Src/Properties/AssemblyInfo.cs
View file @
d9aa22e8
...
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
...
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.4.2023.
72
70")]
[assembly: AssemblyVersion("5.4.2023.
80
70")]
[assembly: AssemblyFileVersion("5.4.2023.
72
70")]
[assembly: AssemblyFileVersion("5.4.2023.
80
70")]
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