Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
Ftt_Common
Project
Project
Details
Activity
Releases
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
Administrator
Ftt_Common
Commits
d338c5bb
Commit
d338c5bb
authored
Jun 02, 2021
by
tr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、员工考核:优化
parent
e2caa08f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
wEvaluationOfEmployee.Designer.cs
Tools/UI/wEvaluationOfEmployee.Designer.cs
+7
-1
wEvaluationOfEmployee.cs
Tools/UI/wEvaluationOfEmployee.cs
+6
-3
No files found.
Tools/UI/wEvaluationOfEmployee.Designer.cs
View file @
d338c5bb
...
@@ -108,7 +108,9 @@
...
@@ -108,7 +108,9 @@
this
.
cbWho
.
FormattingEnabled
=
true
;
this
.
cbWho
.
FormattingEnabled
=
true
;
this
.
cbWho
.
Items
.
AddRange
(
new
object
[]
{
this
.
cbWho
.
Items
.
AddRange
(
new
object
[]
{
"段廷瑞"
,
"段廷瑞"
,
"王奇誉"
});
"王奇誉"
,
"盛俊杰"
,
"金燚波"
});
this
.
cbWho
.
Location
=
new
System
.
Drawing
.
Point
(
296
,
7
);
this
.
cbWho
.
Location
=
new
System
.
Drawing
.
Point
(
296
,
7
);
this
.
cbWho
.
Name
=
"cbWho"
;
this
.
cbWho
.
Name
=
"cbWho"
;
this
.
cbWho
.
Size
=
new
System
.
Drawing
.
Size
(
108
,
20
);
this
.
cbWho
.
Size
=
new
System
.
Drawing
.
Size
(
108
,
20
);
...
@@ -193,24 +195,28 @@
...
@@ -193,24 +195,28 @@
this
.
Column4
.
DataPropertyName
=
"ID"
;
this
.
Column4
.
DataPropertyName
=
"ID"
;
this
.
Column4
.
HeaderText
=
"记录编号"
;
this
.
Column4
.
HeaderText
=
"记录编号"
;
this
.
Column4
.
Name
=
"Column4"
;
this
.
Column4
.
Name
=
"Column4"
;
this
.
Column4
.
ReadOnly
=
true
;
//
//
// Column2
// Column2
//
//
this
.
Column2
.
DataPropertyName
=
"Who"
;
this
.
Column2
.
DataPropertyName
=
"Who"
;
this
.
Column2
.
HeaderText
=
"员工姓名"
;
this
.
Column2
.
HeaderText
=
"员工姓名"
;
this
.
Column2
.
Name
=
"Column2"
;
this
.
Column2
.
Name
=
"Column2"
;
this
.
Column2
.
ReadOnly
=
true
;
//
//
// Column1
// Column1
//
//
this
.
Column1
.
DataPropertyName
=
"Minus"
;
this
.
Column1
.
DataPropertyName
=
"Minus"
;
this
.
Column1
.
HeaderText
=
"减分"
;
this
.
Column1
.
HeaderText
=
"减分"
;
this
.
Column1
.
Name
=
"Column1"
;
this
.
Column1
.
Name
=
"Column1"
;
this
.
Column1
.
ReadOnly
=
true
;
//
//
// Column3
// Column3
//
//
this
.
Column3
.
DataPropertyName
=
"Reason"
;
this
.
Column3
.
DataPropertyName
=
"Reason"
;
this
.
Column3
.
HeaderText
=
"减分原因"
;
this
.
Column3
.
HeaderText
=
"减分原因"
;
this
.
Column3
.
Name
=
"Column3"
;
this
.
Column3
.
Name
=
"Column3"
;
this
.
Column3
.
ReadOnly
=
true
;
//
//
// wEvaluationOfEmployee
// wEvaluationOfEmployee
//
//
...
...
Tools/UI/wEvaluationOfEmployee.cs
View file @
d338c5bb
...
@@ -66,7 +66,8 @@ namespace Tools.UI
...
@@ -66,7 +66,8 @@ namespace Tools.UI
}
}
else
else
{
{
this
.
EditRow
();
if
(!
this
.
EditRow
())
return
false
;
}
}
return
base
.
SaveCheck
();
return
base
.
SaveCheck
();
}
}
...
@@ -116,20 +117,22 @@ namespace Tools.UI
...
@@ -116,20 +117,22 @@ namespace Tools.UI
/// <summary>
/// <summary>
/// 更新数据
/// 更新数据
/// </summary>
/// </summary>
private
void
EditRow
()
private
bool
EditRow
()
{
{
//查找编辑行
//查找编辑行
var
drEdit
=
this
.
_ds
.
Tables
[
0
].
Select
(
$"ID=
{
this
.
EditID
}
"
).
FirstOrDefault
();
var
drEdit
=
this
.
_ds
.
Tables
[
0
].
Select
(
$"ID=
{
this
.
EditID
}
"
).
FirstOrDefault
();
if
(
this
.
EditID
==
0
||
drEdit
==
null
)
if
(
this
.
EditID
==
0
||
drEdit
==
null
)
{
{
Utils
.
Tip
(
"请选择您要编辑的行!"
);
Utils
.
Tip
(
"请选择您要编辑的行!"
);
return
;
return
false
;
}
}
//编辑赋值
//编辑赋值
drEdit
[
"Minus"
]
=
this
.
nbMinus
.
Value
;
drEdit
[
"Minus"
]
=
this
.
nbMinus
.
Value
;
drEdit
[
"Who"
]
=
this
.
cbWho
.
Text
;
drEdit
[
"Who"
]
=
this
.
cbWho
.
Text
;
drEdit
[
"Reason"
]
=
this
.
tbReason
.
Text
.
Trim
();
drEdit
[
"Reason"
]
=
this
.
tbReason
.
Text
.
Trim
();
drEdit
.
EndEdit
();
drEdit
.
EndEdit
();
return
true
;
}
}
}
}
}
}
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