Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
acf46419
Commit
acf46419
authored
Jun 24, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后端控制宽度
parent
f981c990
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
16 deletions
+19
-16
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+2
-2
performance/Performance.DtoModels/Second/SecondColumnDictionary.cs
+4
-4
performance/Performance.Services/RedistributionService.cs
+4
-4
performance/Performance.Services/SecondAllot/SecondAllotDetails.cs
+9
-6
No files found.
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
acf46419
...
...
@@ -3806,9 +3806,9 @@
是否显示 true显示
</summary>
</member>
<member
name=
"P:Performance.DtoModels.SecondColumnDictionary.
Fixed
"
>
<member
name=
"P:Performance.DtoModels.SecondColumnDictionary.
Width
"
>
<summary>
是否固定
宽度
</summary>
</member>
<member
name=
"P:Performance.DtoModels.SecondColumnDictionary.Sort"
>
...
...
performance/Performance.DtoModels/Second/SecondColumnDictionary.cs
View file @
acf46419
...
...
@@ -15,9 +15,9 @@ public class SecondColumnDictionary
/// </summary>
public
bool
IsTrue
{
get
;
set
;
}
/// <summary>
///
是否固定
///
宽度
/// </summary>
public
string
Fixed
{
get
;
set
;
}
public
string
Width
{
get
;
set
;
}
/// <summary>
/// 排序
/// </summary>
...
...
@@ -39,16 +39,16 @@ public SecondColumnDictionary()
{
}
public
SecondColumnDictionary
(
string
label
,
string
key
,
bool
isTrue
,
int
sort
,
string
site
=
"Table"
,
string
fix
=
""
,
string
type
=
""
,
string
color
=
""
)
public
SecondColumnDictionary
(
string
label
,
string
key
,
bool
isTrue
,
int
sort
,
string
site
=
"Table"
,
string
type
=
""
,
string
color
=
""
)
{
Label
=
label
;
Key
=
key
;
IsTrue
=
isTrue
;
Sort
=
sort
;
Site
=
site
;
Fixed
=
fix
;
Type
=
type
;
Color
=
color
;
Width
=
((
label
??
""
).
Length
*
20
+
10
).
ToString
();
}
}
}
performance/Performance.Services/RedistributionService.cs
View file @
acf46419
...
...
@@ -147,9 +147,9 @@ public List<SecondColumnDictionary> GetTableHeaderDictionary(ComputeMode compute
{
var
maps
=
new
List
<
SecondColumnDictionary
>()
{
new
SecondColumnDictionary
(
"人员工号"
,
nameof
(
ag_bodysource
.
WorkNumber
),
true
,
100
,
fix
:
"Left"
),
new
SecondColumnDictionary
(
"姓名"
,
nameof
(
ag_bodysource
.
Name
),
true
,
100
,
fix
:
"Left"
),
new
SecondColumnDictionary
(
"科室"
,
nameof
(
ag_bodysource
.
Department
),
true
,
100
,
fix
:
"Left"
),
new
SecondColumnDictionary
(
"人员工号"
,
nameof
(
ag_bodysource
.
WorkNumber
),
true
,
100
),
new
SecondColumnDictionary
(
"姓名"
,
nameof
(
ag_bodysource
.
Name
),
true
,
100
),
new
SecondColumnDictionary
(
"科室"
,
nameof
(
ag_bodysource
.
Department
),
true
,
100
),
new
SecondColumnDictionary
(
"领取平均绩效"
,
nameof
(
ag_bodysource
.
Post
),
true
,
100
),
new
SecondColumnDictionary
(
"人员系数"
,
nameof
(
ag_bodysource
.
StaffCoefficient
),
false
,
200
,
color
:
"title_color"
),
...
...
@@ -163,7 +163,7 @@ public List<SecondColumnDictionary> GetTableHeaderDictionary(ComputeMode compute
new
SecondColumnDictionary
(
"单项奖励合计"
,
nameof
(
ag_bodysource
.
DeptReward
),
true
,
499
),
new
SecondColumnDictionary
(
"可分配绩效"
,
nameof
(
ag_bodysource
.
DistPerformance
),
true
,
500
),
new
SecondColumnDictionary
(
"医院其他绩效
(参考)
"
,
nameof
(
ag_bodysource
.
OtherPerformance
),
true
,
501
),
new
SecondColumnDictionary
(
"医院其他绩效"
,
nameof
(
ag_bodysource
.
OtherPerformance
),
true
,
501
),
new
SecondColumnDictionary
(
"夜班工作量绩效"
,
nameof
(
ag_bodysource
.
NightWorkPerformance
),
true
,
502
),
//new SecondColumnDictionary("预留比例",nameof(ag_bodysource.ReservedRatio),false,601 ),
...
...
performance/Performance.Services/SecondAllot/SecondAllotDetails.cs
View file @
acf46419
...
...
@@ -530,10 +530,11 @@ private void SupplementOtherPerfor(ag_secondallot secondAllot, List<BodyItem> bo
new
Tuple
<
string
,
string
,
Func
<
per_employee
,
object
>>(
"人员系数"
,
"StaffCoefficient"
,
(
t
)
=>
1
),
new
Tuple
<
string
,
string
,
Func
<
per_employee
,
object
>>(
"职称"
,
"JobTitle"
,
(
t
)
=>
t
.
JobTitle
),
new
Tuple
<
string
,
string
,
Func
<
per_employee
,
object
>>(
"预留年度考核比例"
,
"ReservedRatio"
,
(
t
)
=>
t
.
ReservedRatio
),
new
Tuple
<
string
,
string
,
Func
<
per_employee
,
object
>>(
"医院其他绩效"
,
"OtherPerformance"
,
(
t
)
=>
0
)
new
Tuple
<
string
,
string
,
Func
<
per_employee
,
object
>>(
"医院其他绩效"
,
"OtherPerformance"
,
(
t
)
=>
0
),
new
Tuple
<
string
,
string
,
Func
<
per_employee
,
object
>>(
"实发绩效工资金额"
,
"ShifaAmountOfPerformancePay"
,
(
t
)
=>
0
)
};
var
specialColumns
=
new
string
[]
{
"FullName"
,
"OtherPerformance"
};
var
specialColumns
=
new
string
[]
{
"FullName"
,
"OtherPerformance"
,
"ShifaAmountOfPerformancePay"
};
foreach
(
var
item
in
groupData
)
{
...
...
@@ -548,10 +549,12 @@ private void SupplementOtherPerfor(ag_secondallot secondAllot, List<BodyItem> bo
var
data
=
new
BodyItem
(
headItem
);
data
.
RowNumber
=
lastNumber
;
if
(
specialColumns
.
Contains
(
column
.
Item2
))
{
data
.
Value
=
column
.
Item2
==
"OtherPerformance"
?
item
.
Amount
:
item
.
DoctorName
;
}
if
(
column
.
Item2
==
"FullName"
)
data
.
Value
=
item
.
DoctorName
;
else
if
(
column
.
Item2
==
"OtherPerformance"
)
data
.
Value
=
item
.
Amount
;
else
if
(
column
.
Item2
==
"ShifaAmountOfPerformancePay"
)
data
.
Value
=
item
.
Amount
;
else
{
var
value
=
column
.
Item3
.
Invoke
(
employee
);
...
...
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