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
33b39b4f
Commit
33b39b4f
authored
Jun 29, 2021
by
钟博
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/划拨' into release/v20210625二次绩效划拨合并
parents
5551f6bc
d4731f46
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
60 additions
and
18 deletions
+60
-18
performance/Performance.Api/Controllers/CostTransferController.cs
+20
-4
performance/Performance.Api/wwwroot/Performance.Api.xml
+8
-1
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
+14
-4
performance/Performance.DtoModels/Enum.cs
+0
-3
performance/Performance.DtoModels/Request/CostTransferItemRequest.cs
+1
-1
performance/Performance.DtoModels/Response/CostTransferResponse.cs
+2
-0
performance/Performance.EntityModels/Entity/cost_transfer_item.cs
+14
-4
performance/Performance.Services/CostTransfer/CostTransferService.cs
+0
-0
performance/Performance.Services/ExtractExcelService/SheetDataWrite/CostTransferDataWrite.cs
+1
-1
No files found.
performance/Performance.Api/Controllers/CostTransferController.cs
View file @
33b39b4f
...
@@ -50,7 +50,7 @@ public ApiResponse SubmitApplications([FromBody] CostTransferRequest request)
...
@@ -50,7 +50,7 @@ public ApiResponse SubmitApplications([FromBody] CostTransferRequest request)
/// <returns></returns>
/// <returns></returns>
[
Route
(
"common/{hospitalId}/allot/{allotId}"
)]
[
Route
(
"common/{hospitalId}/allot/{allotId}"
)]
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
Common
(
int
hospitalId
,
int
allotId
)
public
ApiResponse
Common
(
int
hospitalId
,
int
allotId
,
[
FromBody
]
DepartmentDetail
detail
)
{
{
if
(
hospitalId
<=
0
)
if
(
hospitalId
<=
0
)
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"参数HospitalId无效!"
);
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"参数HospitalId无效!"
);
...
@@ -61,13 +61,29 @@ public ApiResponse Common(int hospitalId, int allotId)
...
@@ -61,13 +61,29 @@ public ApiResponse Common(int hospitalId, int allotId)
var
user
=
userService
.
GetUser
(
userid
);
var
user
=
userService
.
GetUser
(
userid
);
var
role
=
roleService
.
GetARole
(
user
.
UserID
);
var
role
=
roleService
.
GetARole
(
user
.
UserID
);
var
result
=
costTransferService
.
Common
(
allotId
,
hospitalId
,
role
.
Type
.
Value
,
user
.
Department
);
var
result
=
costTransferService
.
Common
(
allotId
,
hospitalId
,
role
.
Type
.
Value
,
user
.
Department
,
detail
);
result
.
deparment
=
user
.
Department
??
""
;
result
.
deparment
=
user
.
Department
??
""
;
return
new
ApiResponse
(
ResponseType
.
OK
,
result
);
return
new
ApiResponse
(
ResponseType
.
OK
,
result
);
}
}
/// <summary>
/// <summary>
/// 撤回提交
/// </summary>
/// <param name="itemId"></param>
/// <returns></returns>
[
Route
(
"withdrawsubmit/{itemId}"
)]
[
HttpPost
]
public
ApiResponse
WithdrawSubmit
(
int
itemId
)
{
if
(
itemId
<=
0
)
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"参数itemId无效!"
);
costTransferService
.
WithdrawSubmit
(
itemId
);
return
new
ApiResponse
(
ResponseType
.
OK
);
}
/// <summary>
/// 审核列表
/// 审核列表
/// </summary>
/// </summary>
/// <param name="allotId"></param>
/// <param name="allotId"></param>
...
@@ -75,7 +91,7 @@ public ApiResponse Common(int hospitalId, int allotId)
...
@@ -75,7 +91,7 @@ public ApiResponse Common(int hospitalId, int allotId)
/// <returns></returns>
/// <returns></returns>
[
Route
(
"auditlist/{allotId}/menuType/{menuType}"
)]
[
Route
(
"auditlist/{allotId}/menuType/{menuType}"
)]
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
AuditList
(
int
allotId
,
int
menuType
)
public
ApiResponse
AuditList
(
int
allotId
,
int
menuType
)
{
{
if
(
allotId
<=
0
)
if
(
allotId
<=
0
)
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"参数AllotId无效!"
);
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"参数AllotId无效!"
);
...
@@ -83,7 +99,7 @@ public ApiResponse AuditList(int allotId,int menuType)
...
@@ -83,7 +99,7 @@ public ApiResponse AuditList(int allotId,int menuType)
var
userid
=
claim
.
GetUserId
();
var
userid
=
claim
.
GetUserId
();
var
user
=
userService
.
GetUser
(
userid
);
var
user
=
userService
.
GetUser
(
userid
);
var
role
=
roleService
.
GetARole
(
user
.
UserID
);
var
role
=
roleService
.
GetARole
(
user
.
UserID
);
var
result
=
costTransferService
.
GetAuditList
(
allotId
,
menuType
,
role
.
Type
.
Value
,
user
.
Department
);
var
result
=
costTransferService
.
GetAuditList
(
allotId
,
menuType
,
role
.
Type
.
Value
,
user
.
Department
);
return
new
ApiResponse
(
ResponseType
.
OK
,
result
);
return
new
ApiResponse
(
ResponseType
.
OK
,
result
);
...
...
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
33b39b4f
...
@@ -703,12 +703,19 @@
...
@@ -703,12 +703,19 @@
</summary>
</summary>
<returns></returns>
<returns></returns>
</member>
</member>
<member
name=
"M:Performance.Api.Controllers.CostTransferController.Common(System.Int32,System.Int32)"
>
<member
name=
"M:Performance.Api.Controllers.CostTransferController.Common(System.Int32,System.Int32
,Performance.DtoModels.DepartmentDetail
)"
>
<summary>
<summary>
</summary>
</summary>
<returns></returns>
<returns></returns>
</member>
</member>
<member
name=
"M:Performance.Api.Controllers.CostTransferController.WithdrawSubmit(System.Int32)"
>
<summary>
撤回提交
</summary>
<param
name=
"itemId"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.CostTransferController.AuditList(System.Int32,System.Int32)"
>
<member
name=
"M:Performance.Api.Controllers.CostTransferController.AuditList(System.Int32,System.Int32)"
>
<summary>
<summary>
审核列表
审核列表
...
...
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
View file @
33b39b4f
...
@@ -2314,19 +2314,29 @@
...
@@ -2314,19 +2314,29 @@
是否使用分割比例
是否使用分割比例
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.EntityModels.cost_transfer_item.Remark"
>
<member
name=
"P:Performance.EntityModels.cost_transfer_item.
Application
Remark"
>
<summary>
<summary>
备注
申请理由
</summary>
</member>
<member
name=
"P:Performance.EntityModels.cost_transfer_item.DepartmentRemark"
>
<summary>
科室备注
</summary>
</member>
<member
name=
"P:Performance.EntityModels.cost_transfer_item.AdminRemark"
>
<summary>
管理员备注
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.EntityModels.cost_transfer_item.Status"
>
<member
name=
"P:Performance.EntityModels.cost_transfer_item.Status"
>
<summary>
<summary>
0 默认 1 通过 2 驳回 3 下发驳回
0 默认 1 通过 2 驳回 3 下发驳回
4 撤回
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.EntityModels.cost_transfer_item.AdminStatus"
>
<member
name=
"P:Performance.EntityModels.cost_transfer_item.AdminStatus"
>
<summary>
<summary>
0 默认 1 通过 2 驳回 3 下发驳回
0 默认 1 通过 2 驳回 3 下发驳回
4 撤回
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.EntityModels.cost_transfer_item.IsWrited"
>
<member
name=
"P:Performance.EntityModels.cost_transfer_item.IsWrited"
>
...
...
performance/Performance.DtoModels/Enum.cs
View file @
33b39b4f
...
@@ -80,9 +80,6 @@ public enum AllotStates
...
@@ -80,9 +80,6 @@ public enum AllotStates
/// <summary> 绩效结果解析成功 </summary>
/// <summary> 绩效结果解析成功 </summary>
[
Description
(
"数据验证通过"
)]
[
Description
(
"数据验证通过"
)]
GenerateAccomplish
=
10
,
GenerateAccomplish
=
10
,
/// <summary> 下发 </summary>
[
Description
(
"下发"
)]
Issue
=
11
}
}
public
enum
AgWorkloadType
public
enum
AgWorkloadType
...
...
performance/Performance.DtoModels/Request/CostTransferItemRequest.cs
View file @
33b39b4f
...
@@ -18,6 +18,6 @@ public class CostTransferItemRequest
...
@@ -18,6 +18,6 @@ public class CostTransferItemRequest
public
int
IsUseRatio
{
get
;
set
;
}
public
int
IsUseRatio
{
get
;
set
;
}
public
string
Remark
{
get
;
set
;
}
public
string
Application
Remark
{
get
;
set
;
}
}
}
}
}
performance/Performance.DtoModels/Response/CostTransferResponse.cs
View file @
33b39b4f
...
@@ -41,6 +41,8 @@ public class CostTransferResponse
...
@@ -41,6 +41,8 @@ public class CostTransferResponse
public
int
AdminStatus
{
get
;
set
;
}
public
int
AdminStatus
{
get
;
set
;
}
public
decimal
AmountSum
{
get
;
set
;
}
public
List
<
Option
>
Items
{
get
;
set
;
}
public
List
<
Option
>
Items
{
get
;
set
;
}
}
}
...
...
performance/Performance.EntityModels/Entity/cost_transfer_item.cs
View file @
33b39b4f
...
@@ -57,17 +57,27 @@ public class cost_transfer_item
...
@@ -57,17 +57,27 @@ public class cost_transfer_item
public
int
IsUseRatio
{
get
;
set
;
}
public
int
IsUseRatio
{
get
;
set
;
}
/// <summary>
/// <summary>
///
备注
///
申请理由
/// </summary>
/// </summary>
public
string
Remark
{
get
;
set
;
}
public
string
Application
Remark
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 0 默认 1 通过 2 驳回 3 下发驳回
/// 科室备注
/// </summary>
public
string
DepartmentRemark
{
get
;
set
;
}
/// <summary>
/// 管理员备注
/// </summary>
public
string
AdminRemark
{
get
;
set
;
}
/// <summary>
/// 0 默认 1 通过 2 驳回 3 下发驳回 4 撤回
/// </summary>
/// </summary>
public
int
Status
{
get
;
set
;
}
public
int
Status
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 0 默认 1 通过 2 驳回 3 下发驳回
/// 0 默认 1 通过 2 驳回 3 下发驳回
4 撤回
/// </summary>
/// </summary>
public
int
AdminStatus
{
get
;
set
;
}
public
int
AdminStatus
{
get
;
set
;
}
...
...
performance/Performance.Services/CostTransfer/CostTransferService.cs
View file @
33b39b4f
This diff is collapsed.
Click to expand it.
performance/Performance.Services/ExtractExcelService/SheetDataWrite/CostTransferDataWrite.cs
View file @
33b39b4f
...
@@ -41,7 +41,7 @@ public void WriteSheetData(ISheet sheet, PerSheetPoint point, ExcelStyle style,
...
@@ -41,7 +41,7 @@ public void WriteSheetData(ISheet sheet, PerSheetPoint point, ExcelStyle style,
var
costTransfers
=
costtransferRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allotId
);
var
costTransfers
=
costtransferRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allotId
);
if
(
costTransfers
==
null
||
!
costTransfers
.
Any
())
return
;
if
(
costTransfers
==
null
||
!
costTransfers
.
Any
())
return
;
var
costTransferItems
=
costtransferitemRepository
.
GetEntities
(
t
=>
costTransfers
.
Select
(
c
=>
c
.
Id
).
Contains
(
t
.
TransferId
)
&&
t
.
Status
==
1
&&
t
.
AdminStatus
==
1
&&
t
.
IsWrited
==
0
);
var
costTransferItems
=
costtransferitemRepository
.
GetEntities
(
t
=>
costTransfers
.
Select
(
c
=>
c
.
Id
).
Contains
(
t
.
TransferId
)
&&
t
.
Status
==
1
&&
t
.
AdminStatus
==
1
);
if
(
costTransferItems
==
null
||
!
costTransferItems
.
Any
())
return
;
if
(
costTransferItems
==
null
||
!
costTransferItems
.
Any
())
return
;
var
departments
=
costTransfers
.
Select
(
t
=>
t
.
AdoptedDepartment
??
""
).
Union
(
costTransfers
.
Select
(
t
=>
t
.
ApplicantDepartment
??
""
)).
Distinct
().
ToList
();
var
departments
=
costTransfers
.
Select
(
t
=>
t
.
AdoptedDepartment
??
""
).
Union
(
costTransfers
.
Select
(
t
=>
t
.
ApplicantDepartment
??
""
)).
Distinct
().
ToList
();
...
...
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