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
6ddd7e07
Commit
6ddd7e07
authored
Jun 06, 2023
by
wyc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
科室绩效详情添加默认值修改显示的条件
parent
5c9ea246
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
10 deletions
+20
-10
performance/Performance.Api/wwwroot/Performance.Api.xml
+7
-0
performance/Performance.Services/ComputeService.UniteDeptDetail.cs
+13
-10
No files found.
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
6ddd7e07
...
@@ -1067,6 +1067,13 @@
...
@@ -1067,6 +1067,13 @@
<param
name=
"request"
></param>
<param
name=
"request"
></param>
<returns></returns>
<returns></returns>
</member>
</member>
<member
name=
"M:Performance.Api.Controllers.ComputeController.DownloadUniteDeptdetail(Performance.DtoModels.UniteDeptDetailRequest)"
>
<summary>
科室绩效详情下载
</summary>
<param
name=
"request"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.ComputeController.DeptDetail(Performance.DtoModels.DeptDetailRequest)"
>
<member
name=
"M:Performance.Api.Controllers.ComputeController.DeptDetail(Performance.DtoModels.DeptDetailRequest)"
>
<summary>
<summary>
科室绩效详情
科室绩效详情
...
...
performance/Performance.Services/ComputeService.UniteDeptDetail.cs
View file @
6ddd7e07
...
@@ -357,17 +357,19 @@ public UniteDeptDetailResponse UniteDeptDetail(int allotId, UnitType unitType, s
...
@@ -357,17 +357,19 @@ public UniteDeptDetailResponse UniteDeptDetail(int allotId, UnitType unitType, s
if
(
string
.
IsNullOrEmpty
(
gs
.
Display
))
if
(
string
.
IsNullOrEmpty
(
gs
.
Display
))
gs
.
Display
=
UniteDept
.
DisplayRule
.
始终显示
.
ToString
();
gs
.
Display
=
UniteDept
.
DisplayRule
.
始终显示
.
ToString
();
if
(
gs
.
Display
==
UniteDept
.
DisplayRule
.
始终显示
.
ToString
()
||
!
userInfo
.
IsSecondAdmin
||
allot
.
States
==
(
int
)
AllotStates
.
绩效下发
||
allot
.
States
==
(
int
)
AllotStates
.
归档
)
if
(
gs
.
Display
==
UniteDept
.
DisplayRule
.
始终隐藏
.
ToString
())
continue
;
var
states
=
new
int
[]
{
(
int
)
AllotStates
.
绩效下发
,
(
int
)
AllotStates
.
归档
};
if
(
gs
.
Display
==
UniteDept
.
DisplayRule
.
下发显示
.
ToString
()
&&
userInfo
.
IsSecondAdmin
&&
!
states
.
Contains
(
allot
.
States
))
continue
;
var
fz
=
post
.
Sum
(
group
=>
group
.
IsFactor
==
1
?
(
group
.
CellValue
*
(
group
.
FactorValue
??
0
))
:
group
.
CellValue
);
var
row
=
new
Dictionary
<
string
,
object
>
{
{
var
fz
=
post
.
Sum
(
group
=>
group
.
IsFactor
==
1
?
(
group
.
CellValue
*
(
group
.
FactorValue
??
0
))
:
group
.
CellValue
);
{
"指标"
,
post
.
Key
.
TypeName
},
var
row
=
new
Dictionary
<
string
,
object
>
{
"分值"
,
ValueFormating
(
fz
,
gs
.
Format
)
},
{
{
"说明"
,
gs
.
Remark
},
{
"指标"
,
post
.
Key
.
TypeName
},
};
{
"分值"
,
ValueFormating
(
fz
,
gs
.
Format
)
},
items
.
Add
(
row
);
{
"说明"
,
gs
.
Remark
},
};
items
.
Add
(
row
);
}
}
}
DeleteBlankColumn
(
items
);
DeleteBlankColumn
(
items
);
var
amount
=
basicData
?.
Where
(
t
=>
t
.
SheetID
==
sheet
.
ID
&&
t
.
UnitType
==
(
int
)
type
&&
t
.
IsTotal
==
1
)?.
FirstOrDefault
()?.
CellValue
??
0
;
var
amount
=
basicData
?.
Where
(
t
=>
t
.
SheetID
==
sheet
.
ID
&&
t
.
UnitType
==
(
int
)
type
&&
t
.
IsTotal
==
1
)?.
FirstOrDefault
()?.
CellValue
??
0
;
...
@@ -572,6 +574,7 @@ public List<UniteDeptDetailItem> GetUniteDeptDetailSetting(int allotId)
...
@@ -572,6 +574,7 @@ public List<UniteDeptDetailItem> GetUniteDeptDetailSetting(int allotId)
{
{
item
.
Id
=
SnowFlake
.
GetInstance
().
GetLongId
().
ToString
();
item
.
Id
=
SnowFlake
.
GetInstance
().
GetLongId
().
ToString
();
item
.
ParentId
=
detail
.
Id
;
item
.
ParentId
=
detail
.
Id
;
item
.
Display
=
UniteDept
.
DisplayRule
.
始终显示
.
ToString
();
}
}
var
cfg
=
enumItems
.
FirstOrDefault
(
w
=>
w
.
Name
==
detail
.
Title
);
var
cfg
=
enumItems
.
FirstOrDefault
(
w
=>
w
.
Name
==
detail
.
Title
);
...
...
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