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
ab88fdff
Commit
ab88fdff
authored
Jun 28, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
申请页面下拉选项修改,划拨数据写入修改
parent
c9acd34c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
74 additions
and
59 deletions
+74
-59
performance/Performance.Api/Controllers/CostTransferController.cs
+4
-4
performance/Performance.Services/CostTransfer/CostTransferService.cs
+67
-52
performance/Performance.Services/ExtractExcelService/SheetDataWrite/CostTransferDataWrite.cs
+3
-3
No files found.
performance/Performance.Api/Controllers/CostTransferController.cs
View file @
ab88fdff
...
@@ -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,7 +61,7 @@ public ApiResponse Common(int hospitalId, int allotId)
...
@@ -61,7 +61,7 @@ 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
);
...
@@ -75,7 +75,7 @@ public ApiResponse Common(int hospitalId, int allotId)
...
@@ -75,7 +75,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 +83,7 @@ public ApiResponse AuditList(int allotId,int menuType)
...
@@ -83,7 +83,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.Services/CostTransfer/CostTransferService.cs
View file @
ab88fdff
This diff is collapsed.
Click to expand it.
performance/Performance.Services/ExtractExcelService/SheetDataWrite/CostTransferDataWrite.cs
View file @
ab88fdff
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
namespace
Performance.Services.ExtractExcelService.SheetDataWrite
namespace
Performance.Services.ExtractExcelService.SheetDataWrite
{
{
public
class
CostTransferDataWrite
:
IAutoInjection
public
class
CostTransferDataWrite
:
IAutoInjection
{
{
private
readonly
ILogger
logger
;
private
readonly
ILogger
logger
;
private
readonly
PerforCosttransferRepository
costtransferRepository
;
private
readonly
PerforCosttransferRepository
costtransferRepository
;
...
@@ -38,7 +38,7 @@ public void WriteSheetData(ISheet sheet, PerSheetPoint point, ExcelStyle style,
...
@@ -38,7 +38,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
columns
=
SupplySheetHeader
(
sheet
,
point
);
var
columns
=
SupplySheetHeader
(
sheet
,
point
);
...
@@ -90,7 +90,7 @@ public void WriteSheetData(ISheet sheet, PerSheetPoint point, ExcelStyle style,
...
@@ -90,7 +90,7 @@ public void WriteSheetData(ISheet sheet, PerSheetPoint point, ExcelStyle style,
var
cell
=
header
.
CreateCell
(
index
);
var
cell
=
header
.
CreateCell
(
index
);
cell
.
SetCellValue
(
column
);
cell
.
SetCellValue
(
column
);
if
(!
pairs
.
ContainsKey
(
column
))
if
(!
pairs
.
ContainsKey
(
column
))
pairs
.
Add
(
column
,
index
);
pairs
.
Add
(
column
,
index
);
index
++;
index
++;
...
...
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