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
3f1d5319
Commit
3f1d5319
authored
Jul 14, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/新二次分配' into release/v20210709功能分支合并
parents
b7164ee4
d063889a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
performance/Performance.EntityModels/Entity/ag_bodysource.cs
+5
-0
performance/Performance.Services/RedistributionService.cs
+14
-3
No files found.
performance/Performance.EntityModels/Entity/ag_bodysource.cs
View file @
3f1d5319
...
@@ -150,5 +150,10 @@ public class ag_bodysource
...
@@ -150,5 +150,10 @@ public class ag_bodysource
/// 实发绩效(参考,含医院其他绩效)
/// 实发绩效(参考,含医院其他绩效)
/// </summary>
/// </summary>
public
Nullable
<
decimal
>
ReferToRealAmount
{
get
;
set
;
}
public
Nullable
<
decimal
>
ReferToRealAmount
{
get
;
set
;
}
/// <summary>
/// 备注
/// </summary>
public
string
Remark
{
get
;
set
;
}
}
}
}
}
performance/Performance.Services/RedistributionService.cs
View file @
3f1d5319
...
@@ -97,6 +97,9 @@ public SecondDetailDto Load(int secondId, ComputeMode computeMode, EmployeeSourc
...
@@ -97,6 +97,9 @@ public SecondDetailDto Load(int secondId, ComputeMode computeMode, EmployeeSourc
// 先占位,更加选择加载指定范围数据
// 先占位,更加选择加载指定范围数据
// 加载方式分 保存,上次,字典,测算表
// 加载方式分 保存,上次,字典,测算表
var
loadEmployees
=
LoadEmployees
(
allot
,
second
,
overrideMode
,
out
bool
isSave
);
var
loadEmployees
=
LoadEmployees
(
allot
,
second
,
overrideMode
,
out
bool
isSave
);
// 保存后则不再设置默认值
if
(!
isSave
)
{
// 设置固定信息默认值
// 设置固定信息默认值
foreach
(
var
item
in
loadEmployees
)
foreach
(
var
item
in
loadEmployees
)
{
{
...
@@ -104,6 +107,7 @@ public SecondDetailDto Load(int secondId, ComputeMode computeMode, EmployeeSourc
...
@@ -104,6 +107,7 @@ public SecondDetailDto Load(int secondId, ComputeMode computeMode, EmployeeSourc
item
.
ActualAttendance
=
item
.
ActualAttendance
??
DateTime
.
DaysInMonth
(
allot
.
Year
,
allot
.
Month
);
// 出勤
item
.
ActualAttendance
=
item
.
ActualAttendance
??
DateTime
.
DaysInMonth
(
allot
.
Year
,
allot
.
Month
);
// 出勤
item
.
TitleCoefficient
=
item
.
TitleCoefficient
??
1
;
// 职称系数
item
.
TitleCoefficient
=
item
.
TitleCoefficient
??
1
;
// 职称系数
}
}
}
// 加载已保存工作量数据
// 加载已保存工作量数据
handson
.
Data
=
LoadWorkload
(
allot
,
second
,
loadEmployees
,
isSave
);
handson
.
Data
=
LoadWorkload
(
allot
,
second
,
loadEmployees
,
isSave
);
...
@@ -359,8 +363,10 @@ public List<SecondColumnDictionary> GetTableHeaderDictionary(ComputeMode compute
...
@@ -359,8 +363,10 @@ public List<SecondColumnDictionary> GetTableHeaderDictionary(ComputeMode compute
/// <summary>
/// <summary>
/// 按指定方式加载人员数据
/// 按指定方式加载人员数据
/// </summary>
/// </summary>
/// <param name="secondId"></param>
/// <param name="allot"></param>
/// <param name="second"></param>
/// <param name="mode"></param>
/// <param name="mode"></param>
/// <param name="isSave">true 保存 false 未保存</param>
/// <returns></returns>
/// <returns></returns>
private
List
<
ag_bodysource
>
LoadEmployees
(
per_allot
allot
,
ag_secondallot
second
,
EmployeeSource
mode
,
out
bool
isSave
)
private
List
<
ag_bodysource
>
LoadEmployees
(
per_allot
allot
,
ag_secondallot
second
,
EmployeeSource
mode
,
out
bool
isSave
)
{
{
...
@@ -617,7 +623,10 @@ private HandsonTableBase ComputeMode_Format1(List<string> colHeaders, List<Hands
...
@@ -617,7 +623,10 @@ private HandsonTableBase ComputeMode_Format1(List<string> colHeaders, List<Hands
handson
.
Columns
.
AddRange
(
columns
);
handson
.
Columns
.
AddRange
(
columns
);
handson
.
ColHeaders
.
AddRange
(
new
string
[]
{
"夜班绩效"
,
});
handson
.
ColHeaders
.
AddRange
(
new
string
[]
{
"夜班绩效"
,
});
handson
.
Columns
.
AddRange
(
new
HandsonColumn
[]
{
new
HandsonColumn
(
nameof
(
ag_bodysource
.
NightWorkPerformance
).
ToLower
(),
format
:
DataFormat
.
小数
),
});
handson
.
Columns
.
AddRange
(
new
HandsonColumn
[]
{
new
HandsonColumn
(
nameof
(
ag_bodysource
.
NightWorkPerformance
).
ToLower
(),
format
:
DataFormat
.
小数
)
});
handson
.
ColHeaders
.
AddRange
(
new
string
[]
{
"备注"
,
});
handson
.
Columns
.
AddRange
(
new
HandsonColumn
[]
{
new
HandsonColumn
(
nameof
(
ag_bodysource
.
Remark
).
ToLower
())
});
return
handson
;
return
handson
;
}
}
...
@@ -648,8 +657,10 @@ private HandsonTableBase ComputeMode_Format2(List<string> colHeaders, List<Hands
...
@@ -648,8 +657,10 @@ private HandsonTableBase ComputeMode_Format2(List<string> colHeaders, List<Hands
handson
.
Columns
.
AddRange
(
columns
);
handson
.
Columns
.
AddRange
(
columns
);
handson
.
ColHeaders
.
AddRange
(
new
string
[]
{
"夜班绩效"
,
});
handson
.
ColHeaders
.
AddRange
(
new
string
[]
{
"夜班绩效"
,
});
handson
.
Columns
.
AddRange
(
new
HandsonColumn
[]
{
new
HandsonColumn
(
nameof
(
ag_bodysource
.
NightWorkPerformance
).
ToLower
(),
format
:
DataFormat
.
小数
)
,
});
handson
.
Columns
.
AddRange
(
new
HandsonColumn
[]
{
new
HandsonColumn
(
nameof
(
ag_bodysource
.
NightWorkPerformance
).
ToLower
(),
format
:
DataFormat
.
小数
)
});
handson
.
ColHeaders
.
AddRange
(
new
string
[]
{
"备注"
,
});
handson
.
Columns
.
AddRange
(
new
HandsonColumn
[]
{
new
HandsonColumn
(
nameof
(
ag_bodysource
.
Remark
).
ToLower
())
});
return
handson
;
return
handson
;
}
}
...
...
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