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
71e6cdf2
Commit
71e6cdf2
authored
Nov 03, 2023
by
wyc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
考核结果汇总(分值计算改为视图来计算)
parent
ef059846
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
performance/Performance.EntityModels/Other/view_assess_result.cs
+2
-2
performance/Performance.Services/AssessNewService.cs
+3
-3
performance/Performance.Services/ComputeService.UniteDeptDetail.cs
+1
-1
No files found.
performance/Performance.EntityModels/Other/view_assess_result.cs
View file @
71e6cdf2
...
...
@@ -9,7 +9,6 @@ public class view_assess_result
/// 绩效ID
/// </summary>
public
Nullable
<
int
>
AllotId
{
get
;
set
;
}
/// <summary>
/// 考核类型ID
/// </summary>
...
...
@@ -22,6 +21,7 @@ public class view_assess_result
/// 指标Id
/// </summary>
public
int
ItemId
{
get
;
set
;
}
/// <summary>
/// 二级指标名称
/// </summary>
public
string
ItemName2
{
get
;
set
;
}
...
...
@@ -34,7 +34,7 @@ public class view_assess_result
/// </summary>
public
decimal
?
AssessScore
{
get
;
set
;
}
/// <summary>
///
扣分值
///
最后得分
/// </summary>
public
decimal
?
Score
{
get
;
set
;
}
/// <summary>
...
...
performance/Performance.Services/AssessNewService.cs
View file @
71e6cdf2
...
...
@@ -910,7 +910,7 @@ public PagedList<AssessSchemeResultListResponse> SchemeResultList(QuerySchemeRes
TargetUnitType
=
item
.
TargetUnitType
,
TargetAccountingUnit
=
item
.
TargetAccountingUnit
,
ItemName2
=
item
.
ItemName2
,
Score
=
(
item
.
Score
==
null
?
0
:
item
.
Score
)
+
item
.
Assess
Score
,
Score
=
item
.
Score
,
};
}).
ToList
();
...
...
@@ -1088,8 +1088,8 @@ public ApiResponse SchemeEnterUpload(int itemId, IFormCollection form, int useri
error
.
AddIf
(
string
.
IsNullOrEmpty
(
eTargetUnitType
),
item
.
index
,
eTargetAccountingUnit
,
eTargetUnitType
,
eItemName1
,
eItemName2
,
eAssessScore
,
eBonusPoint
,
eBonusPointRemark
,
eDeduction
,
eDeductionRemark
,
"核算单元空值无效,请检查后重试!"
);
error
.
AddIf
(!
decimal
.
TryParse
(
eBonusPoint
,
out
decimal
ebonusPoint
),
item
.
index
,
eTargetAccountingUnit
,
eTargetUnitType
,
eItemName1
,
eItemName2
,
eAssessScore
,
eBonusPoint
,
eBonusPointRemark
,
eDeduction
,
eDeductionRemark
,
"考核加分值无效,请检查后重试!"
);
error
.
AddIf
(!
decimal
.
TryParse
(
eDeduction
,
out
decimal
ededuction
),
item
.
index
,
eTargetAccountingUnit
,
eTargetUnitType
,
eItemName1
,
eItemName2
,
eAssessScore
,
eBonusPoint
,
eBonusPointRemark
,
eDeduction
,
eDeductionRemark
,
"考核扣分值无效,请检查后重试!"
);
error
.
AddIf
(
ebonusPoint
<
0
,
item
.
index
,
eTargetAccountingUnit
,
eTargetUnitType
,
eItemName1
,
eItemName2
,
eAssessScore
,
eBonusPoint
,
eBonusPointRemark
,
eDeduction
,
eDeductionRemark
,
"考核加分值无效,请检查后重试!"
);
error
.
AddIf
(
ededuction
>
0
,
item
.
index
,
eTargetAccountingUnit
,
eTargetUnitType
,
eItemName1
,
eItemName2
,
eAssessScore
,
eBonusPoint
,
eBonusPointRemark
,
eDeduction
,
eDeductionRemark
,
"考核扣分值无效,请检查后重试!"
);
error
.
AddIf
(
ebonusPoint
<
0
,
item
.
index
,
eTargetAccountingUnit
,
eTargetUnitType
,
eItemName1
,
eItemName2
,
eAssessScore
,
eBonusPoint
,
eBonusPointRemark
,
eDeduction
,
eDeductionRemark
,
"考核加分值无效,请检查后重试!"
);
error
.
AddIf
(
ededuction
>
0
,
item
.
index
,
eTargetAccountingUnit
,
eTargetUnitType
,
eItemName1
,
eItemName2
,
eAssessScore
,
eBonusPoint
,
eBonusPointRemark
,
eDeduction
,
eDeductionRemark
,
"考核扣分值无效,请检查后重试!"
);
var
issueData
=
issueDatas
.
FirstOrDefault
(
w
=>
w
.
ItemId
==
itemId
&&
w
.
TargetAccountingUnit
==
eTargetAccountingUnit
&&
w
.
TargetUnitType
==
eTargetUnitType
);
error
.
AddIf
(
issueData
==
null
,
item
.
index
,
eTargetAccountingUnit
,
eTargetUnitType
,
eItemName1
,
eItemName2
,
eAssessScore
,
eBonusPoint
,
eBonusPointRemark
,
eDeduction
,
eDeductionRemark
,
"未找到部门,请检查后重试!"
);
...
...
performance/Performance.Services/ComputeService.UniteDeptDetail.cs
View file @
71e6cdf2
...
...
@@ -569,7 +569,7 @@ private string ValueFormating(decimal? value, string format)
}
else
if
(
format
==
UniteDept
.
Format
.
四位小数
.
ToString
())
{
total
=
Math
.
Round
(
total
,
3
,
MidpointRounding
.
AwayFromZero
);
total
=
Math
.
Round
(
total
,
4
,
MidpointRounding
.
AwayFromZero
);
return
string
.
Format
(
"{0:0.####}"
,
total
);
}
return
string
.
Format
(
"{0:0.####}"
,
total
);
...
...
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