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
08b4fe05
Commit
08b4fe05
authored
May 31, 2023
by
任天宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
怎么登录状态显示
parent
ec6dd993
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
20 deletions
+38
-20
FrmMain.Designer.cs
Src/FrmMain.Designer.cs
+34
-20
FrmMain.cs
Src/FrmMain.cs
+4
-0
No files found.
Src/FrmMain.Designer.cs
View file @
08b4fe05
...
...
@@ -51,6 +51,7 @@
this
.
tbxUserName
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
plToolBar
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
gbTools
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
ckbAutoCreatePackage
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
lbTips
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lbScanSample
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
tbScanSample
=
new
System
.
Windows
.
Forms
.
TextBox
();
...
...
@@ -71,7 +72,7 @@
this
.
SampleDeadTime
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
SampleQuantityUnit
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
SamplePackageName
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
ckbAutoCreatePackage
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
lbLogStatus
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
plLeft
.
SuspendLayout
();
this
.
gbInfo
.
SuspendLayout
();
this
.
gbLogin
.
SuspendLayout
();
...
...
@@ -103,9 +104,9 @@
this
.
gbInfo
.
Controls
.
Add
(
this
.
tbCurrentLocation
);
this
.
gbInfo
.
Controls
.
Add
(
this
.
tbCurrentDepartment
);
this
.
gbInfo
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
gbInfo
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
3
1
6
);
this
.
gbInfo
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
3
4
6
);
this
.
gbInfo
.
Name
=
"gbInfo"
;
this
.
gbInfo
.
Size
=
new
System
.
Drawing
.
Size
(
265
,
3
4
3
);
this
.
gbInfo
.
Size
=
new
System
.
Drawing
.
Size
(
265
,
3
1
3
);
this
.
gbInfo
.
TabIndex
=
1
;
this
.
gbInfo
.
TabStop
=
false
;
this
.
gbInfo
.
Text
=
"信息"
;
...
...
@@ -116,7 +117,7 @@
this
.
lbCurrentPackageNode
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
12F
);
this
.
lbCurrentPackageNode
.
Location
=
new
System
.
Drawing
.
Point
(
16
,
180
);
this
.
lbCurrentPackageNode
.
Name
=
"lbCurrentPackageNode"
;
this
.
lbCurrentPackageNode
.
Size
=
new
System
.
Drawing
.
Size
(
79
,
16
);
this
.
lbCurrentPackageNode
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
16
);
this
.
lbCurrentPackageNode
.
TabIndex
=
7
;
this
.
lbCurrentPackageNode
.
Text
=
"当前袋子:"
;
//
...
...
@@ -126,7 +127,7 @@
this
.
lbCurrentPackage
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
12F
);
this
.
lbCurrentPackage
.
Location
=
new
System
.
Drawing
.
Point
(
16
,
127
);
this
.
lbCurrentPackage
.
Name
=
"lbCurrentPackage"
;
this
.
lbCurrentPackage
.
Size
=
new
System
.
Drawing
.
Size
(
79
,
16
);
this
.
lbCurrentPackage
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
16
);
this
.
lbCurrentPackage
.
TabIndex
=
6
;
this
.
lbCurrentPackage
.
Text
=
"当前箱号:"
;
//
...
...
@@ -136,7 +137,7 @@
this
.
lbCurrentLocation
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
12F
);
this
.
lbCurrentLocation
.
Location
=
new
System
.
Drawing
.
Point
(
16
,
74
);
this
.
lbCurrentLocation
.
Name
=
"lbCurrentLocation"
;
this
.
lbCurrentLocation
.
Size
=
new
System
.
Drawing
.
Size
(
79
,
16
);
this
.
lbCurrentLocation
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
16
);
this
.
lbCurrentLocation
.
TabIndex
=
5
;
this
.
lbCurrentLocation
.
Text
=
"当前位置:"
;
//
...
...
@@ -146,7 +147,7 @@
this
.
lbCurrentDepartment
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
12F
);
this
.
lbCurrentDepartment
.
Location
=
new
System
.
Drawing
.
Point
(
16
,
21
);
this
.
lbCurrentDepartment
.
Name
=
"lbCurrentDepartment"
;
this
.
lbCurrentDepartment
.
Size
=
new
System
.
Drawing
.
Size
(
79
,
16
);
this
.
lbCurrentDepartment
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
16
);
this
.
lbCurrentDepartment
.
TabIndex
=
4
;
this
.
lbCurrentDepartment
.
Text
=
"当前部门:"
;
//
...
...
@@ -192,6 +193,7 @@
//
// gbLogin
//
this
.
gbLogin
.
Controls
.
Add
(
this
.
lbLogStatus
);
this
.
gbLogin
.
Controls
.
Add
(
this
.
btnLogout
);
this
.
gbLogin
.
Controls
.
Add
(
this
.
btnLogin
);
this
.
gbLogin
.
Controls
.
Add
(
this
.
lblUrl
);
...
...
@@ -203,7 +205,7 @@
this
.
gbLogin
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Top
;
this
.
gbLogin
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
gbLogin
.
Name
=
"gbLogin"
;
this
.
gbLogin
.
Size
=
new
System
.
Drawing
.
Size
(
265
,
3
1
6
);
this
.
gbLogin
.
Size
=
new
System
.
Drawing
.
Size
(
265
,
3
4
6
);
this
.
gbLogin
.
TabIndex
=
0
;
this
.
gbLogin
.
TabStop
=
false
;
this
.
gbLogin
.
Text
=
"登录"
;
...
...
@@ -213,7 +215,7 @@
this
.
btnLogout
.
BackColor
=
System
.
Drawing
.
Color
.
LavenderBlush
;
this
.
btnLogout
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
15F
);
this
.
btnLogout
.
ForeColor
=
System
.
Drawing
.
Color
.
Crimson
;
this
.
btnLogout
.
Location
=
new
System
.
Drawing
.
Point
(
13
5
,
267
);
this
.
btnLogout
.
Location
=
new
System
.
Drawing
.
Point
(
13
1
,
288
);
this
.
btnLogout
.
Name
=
"btnLogout"
;
this
.
btnLogout
.
Size
=
new
System
.
Drawing
.
Size
(
107
,
43
);
this
.
btnLogout
.
TabIndex
=
28
;
...
...
@@ -226,7 +228,7 @@
this
.
btnLogin
.
BackColor
=
System
.
Drawing
.
Color
.
MintCream
;
this
.
btnLogin
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
15F
);
this
.
btnLogin
.
ForeColor
=
System
.
Drawing
.
Color
.
DarkGreen
;
this
.
btnLogin
.
Location
=
new
System
.
Drawing
.
Point
(
1
6
,
267
);
this
.
btnLogin
.
Location
=
new
System
.
Drawing
.
Point
(
1
2
,
288
);
this
.
btnLogin
.
Name
=
"btnLogin"
;
this
.
btnLogin
.
Size
=
new
System
.
Drawing
.
Size
(
107
,
43
);
this
.
btnLogin
.
TabIndex
=
27
;
...
...
@@ -320,6 +322,18 @@
this
.
gbTools
.
TabStop
=
false
;
this
.
gbTools
.
Text
=
"操作台"
;
//
// ckbAutoCreatePackage
//
this
.
ckbAutoCreatePackage
.
AutoSize
=
true
;
this
.
ckbAutoCreatePackage
.
Checked
=
true
;
this
.
ckbAutoCreatePackage
.
CheckState
=
System
.
Windows
.
Forms
.
CheckState
.
Checked
;
this
.
ckbAutoCreatePackage
.
Location
=
new
System
.
Drawing
.
Point
(
196
,
41
);
this
.
ckbAutoCreatePackage
.
Name
=
"ckbAutoCreatePackage"
;
this
.
ckbAutoCreatePackage
.
Size
=
new
System
.
Drawing
.
Size
(
72
,
16
);
this
.
ckbAutoCreatePackage
.
TabIndex
=
81
;
this
.
ckbAutoCreatePackage
.
Text
=
"创建箱号"
;
this
.
ckbAutoCreatePackage
.
UseVisualStyleBackColor
=
true
;
//
// lbTips
//
this
.
lbTips
.
AutoSize
=
true
;
...
...
@@ -542,17 +556,16 @@
this
.
SamplePackageName
.
ReadOnly
=
true
;
this
.
SamplePackageName
.
Width
=
120
;
//
//
ckbAutoCreatePackage
//
lbLogStatus
//
this
.
ckbAutoCreatePackage
.
AutoSize
=
true
;
this
.
ckbAutoCreatePackage
.
Checked
=
true
;
this
.
ckbAutoCreatePackage
.
CheckState
=
System
.
Windows
.
Forms
.
CheckState
.
Checked
;
this
.
ckbAutoCreatePackage
.
Location
=
new
System
.
Drawing
.
Point
(
196
,
41
);
this
.
ckbAutoCreatePackage
.
Name
=
"ckbAutoCreatePackage"
;
this
.
ckbAutoCreatePackage
.
Size
=
new
System
.
Drawing
.
Size
(
72
,
16
);
this
.
ckbAutoCreatePackage
.
TabIndex
=
81
;
this
.
ckbAutoCreatePackage
.
Text
=
"创建箱号"
;
this
.
ckbAutoCreatePackage
.
UseVisualStyleBackColor
=
true
;
this
.
lbLogStatus
.
AutoSize
=
true
;
this
.
lbLogStatus
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
25F
);
this
.
lbLogStatus
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
lbLogStatus
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
242
);
this
.
lbLogStatus
.
Name
=
"lbLogStatus"
;
this
.
lbLogStatus
.
Size
=
new
System
.
Drawing
.
Size
(
117
,
34
);
this
.
lbLogStatus
.
TabIndex
=
29
;
this
.
lbLogStatus
.
Text
=
"未登录"
;
//
// FrmMain
//
...
...
@@ -625,6 +638,7 @@
private
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
SampleQuantityUnit
;
private
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
SamplePackageName
;
private
System
.
Windows
.
Forms
.
CheckBox
ckbAutoCreatePackage
;
private
System
.
Windows
.
Forms
.
Label
lbLogStatus
;
}
}
Src/FrmMain.cs
View file @
08b4fe05
...
...
@@ -510,6 +510,8 @@ namespace Kivii.Client.SamplePackages
tbxServiceUrl
.
Enabled
=
btnLogin
.
Enabled
;
tbxUserName
.
Enabled
=
btnLogin
.
Enabled
;
tbxPassword
.
Enabled
=
btnLogin
.
Enabled
;
lbLogStatus
.
Text
=
"登录成功"
;
lbLogStatus
.
ForeColor
=
Color
.
Green
;
//tbSetCurrentPackage.Enabled = !btnLogin.Enabled;
setDefault
(
tbxServiceUrl
,
tbxUserName
,
tbxPassword
);
},
true
);
...
...
@@ -536,6 +538,8 @@ namespace Kivii.Client.SamplePackages
task
.
Success
(
resp
=>
{
initControls
();
lbLogStatus
.
Text
=
"未登录"
;
lbLogStatus
.
ForeColor
=
Color
.
Red
;
_client
.
Dispose
();
_client
=
null
;
initUserInfo
();
...
...
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