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
f40cbd61
Commit
f40cbd61
authored
Jun 22, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
cf96e1ed
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
47 deletions
+11
-47
performance/Performance.Api/Controllers/SecondAllotController.cs
+3
-3
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+0
-20
performance/Performance.DtoModels/Second/Constant.cs
+3
-23
performance/Performance.DtoModels/Second/SecondColumnDictionary.cs
+5
-1
performance/Performance.Services/RedistributionService.cs
+0
-0
No files found.
performance/Performance.Api/Controllers/SecondAllotController.cs
View file @
f40cbd61
...
...
@@ -552,9 +552,9 @@ public ApiResponse RedistributionLoad([FromBody] SecondLoadDto request)
if
(!
Enum
.
IsDefined
(
typeof
(
ComputeMode
),
request
.
ComputeMode
))
throw
new
PerformanceException
(
"暂不支持当前计算方式!"
);
var
overrideMode
=
OverrideMod
e
.
Initial
;
if
(
Enum
.
IsDefined
(
typeof
(
OverrideMod
e
),
request
.
OverrideMode
))
overrideMode
=
(
OverrideMod
e
)
request
.
OverrideMode
;
var
overrideMode
=
EmployeeSourc
e
.
Initial
;
if
(
Enum
.
IsDefined
(
typeof
(
EmployeeSourc
e
),
request
.
OverrideMode
))
overrideMode
=
(
EmployeeSourc
e
)
request
.
OverrideMode
;
var
result
=
_redistributionService
.
Load
(
request
.
SecondId
,
(
ComputeMode
)
request
.
ComputeMode
,
overrideMode
);
return
new
ApiResponse
(
ResponseType
.
OK
,
result
);
...
...
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
f40cbd61
...
...
@@ -3781,26 +3781,6 @@
纵向计算
</summary>
</member>
<member
name=
"T:Performance.DtoModels.Second.OverrideMode"
>
<summary>
人员带出方式 已保存,上次,字典,测算表
</summary>
</member>
<member
name=
"F:Performance.DtoModels.Second.OverrideMode.Initial"
>
<summary>
初始化(用户保存后的数据)
</summary>
</member>
<member
name=
"F:Performance.DtoModels.Second.OverrideMode.PrevSecondAllot"
>
<summary>
上一个二次绩效记录
</summary>
</member>
<member
name=
"F:Performance.DtoModels.Second.OverrideMode.EmployeeDict"
>
<summary>
人员字典
</summary>
</member>
<member
name=
"P:Performance.DtoModels.SecondLoadDto.ComputeMode"
>
<summary>
计算方式:1 不计算 2 横向计算 3 纵向计算
...
...
performance/Performance.DtoModels/Second/Constant.cs
View file @
f40cbd61
...
...
@@ -12,34 +12,14 @@ public enum ComputeMode
/// <summary>
/// 不计算
/// </summary>
NotCalculate
=
1
,
NotCalculate
=
1
1
,
/// <summary>
/// 横向计算
/// </summary>
Horizontal
=
2
,
Horizontal
=
1
2
,
/// <summary>
/// 纵向计算
/// </summary>
Vertical
=
3
,
}
/// <summary>
/// 人员带出方式 已保存,上次,字典,测算表
/// </summary>
public
enum
OverrideMode
{
/// <summary>
/// 初始化(用户保存后的数据)
/// </summary>
Initial
=
0
,
/// <summary>
/// 上一个二次绩效记录
/// </summary>
PrevSecondAllot
=
1
,
/// <summary>
/// 人员字典
/// </summary>
EmployeeDict
=
2
,
Vertical
=
13
,
}
}
performance/Performance.DtoModels/Second/SecondColumnDictionary.cs
View file @
f40cbd61
...
...
@@ -5,20 +5,24 @@ public class SecondColumnDictionary
public
string
Label
{
get
;
set
;
}
public
string
Key
{
get
;
set
;
}
public
bool
IsTrue
{
get
;
set
;
}
public
string
Fixed
{
get
;
set
;
}
public
int
Sort
{
get
;
set
;
}
public
string
Site
{
get
;
set
;
}
public
string
Type
{
get
;
set
;
}
public
SecondColumnDictionary
()
{
}
public
SecondColumnDictionary
(
string
label
,
string
key
,
bool
isTrue
,
int
sort
,
string
site
=
"Table"
)
public
SecondColumnDictionary
(
string
label
,
string
key
,
bool
isTrue
,
int
sort
,
string
site
=
"Table"
,
string
fix
=
""
,
string
type
=
""
)
{
Label
=
label
;
Key
=
key
;
IsTrue
=
isTrue
;
Sort
=
sort
;
Site
=
site
;
Fixed
=
fix
;
Type
=
type
;
}
}
}
performance/Performance.Services/RedistributionService.cs
View file @
f40cbd61
This diff is collapsed.
Click to expand it.
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