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
db8f153d
Commit
db8f153d
authored
Jul 29, 2021
by
tr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、员工考核:员工姓名取数优化
parent
304a3c29
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
Tools.exe.config
AppHome/Tools.exe.config
+1
-1
wEvaluationOfEmployee.Designer.cs
Tools/UI/wEvaluationOfEmployee.Designer.cs
+0
-5
wEvaluationOfEmployee.cs
Tools/UI/wEvaluationOfEmployee.cs
+13
-1
No files found.
AppHome/Tools.exe.config
View file @
db8f153d
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
appSettings
>
<
add
key
=
"UpdateTime"
value
=
"2021-07-
16 10:51:22.823
"
/>
<
add
key
=
"UpdateTime"
value
=
"2021-07-
29 14:12:41.660
"
/>
</
appSettings
>
<
startup
>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.8"
/>
...
...
Tools/UI/wEvaluationOfEmployee.Designer.cs
View file @
db8f153d
...
...
@@ -139,11 +139,6 @@
// cbWho
//
this
.
cbWho
.
FormattingEnabled
=
true
;
this
.
cbWho
.
Items
.
AddRange
(
new
object
[]
{
"段廷瑞"
,
"王奇誉"
,
"盛俊杰"
,
"金燚波"
});
this
.
cbWho
.
Location
=
new
System
.
Drawing
.
Point
(
296
,
7
);
this
.
cbWho
.
Name
=
"cbWho"
;
this
.
cbWho
.
Size
=
new
System
.
Drawing
.
Size
(
108
,
20
);
...
...
Tools/UI/wEvaluationOfEmployee.cs
View file @
db8f153d
...
...
@@ -24,6 +24,8 @@ namespace Tools.UI
/// </summary>
string
ThisMonthStart
=>
DateTime
.
Now
.
ToString
(
"yyyy-MM-01"
);
List
<
string
>
UserList
=
null
;
bool
IsAdd
=
false
;
int
EditID
=
0
;
...
...
@@ -49,6 +51,13 @@ namespace Tools.UI
//只取最近两个月的数据
string
sql
=
$"SELECT * FROM FTT_EvaluationOfEmployee WHERE CreateDate > '
{
this
.
LastMonthStart
}
'"
;
this
.
_ds
=
this
.
_db
.
GetData
(
sql
,
"FTT_EvaluationOfEmployee"
);
//查询员工姓名
string
userSql
=
$@"SELECT DISTINCT Name FROM dbo.AC_User
WHERE WorkState = '在职' AND IsStop = 0
AND ISNULL(Name, '') NOT IN('', 'test', '王杰平', '李双')
AND UserType NOT IN(5312, 5313)"
;
var
dt
=
this
.
_db
.
GetDataTable
(
userSql
,
"AC_User"
,
false
);
this
.
UserList
=
dt
.
Rows
.
Cast
<
DataRow
>().
Select
(
r
=>
r
[
0
].
ToString
()).
ToList
();
}
public
override
void
InitUI
()
{
...
...
@@ -58,10 +67,13 @@ namespace Tools.UI
this
.
dgvDetail
.
SelectionMode
=
DataGridViewSelectionMode
.
FullRowSelect
;
this
.
dgvDetail
.
DataSource
=
this
.
_ds
.
Tables
[
0
].
DefaultView
;
this
.
dgvDetail
.
CellMouseClick
+=
DgvDetail_CellMouseClick
;
//初始化下拉项
//初始化
工具栏月份
下拉项
this
.
tscbMonth
.
Items
.
Add
(
this
.
ThisMonthStart
);
this
.
tscbMonth
.
Items
.
Add
(
this
.
LastMonthStart
);
this
.
tscbMonth
.
SelectedIndex
=
0
;
//初始化编辑信息-员工姓名下拉项
this
.
cbWho
.
Items
.
Clear
();
this
.
cbWho
.
Items
.
AddRange
(
this
.
UserList
.
ToArray
());
}
public
override
bool
SaveCheck
()
{
...
...
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