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
a5ad549c
Commit
a5ad549c
authored
Apr 28, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报表 科主任、护士长相关修改, 获取科室改为获取核算单元
parent
514df09d
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
95 additions
and
12 deletions
+95
-12
performance/Performance.Api/Controllers/BudgetController.cs
+8
-3
performance/Performance.Api/wwwroot/Performance.Api.xml
+2
-1
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+5
-0
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
+22
-2
performance/Performance.DtoModels/Response/BudgetRatioResponse.cs
+5
-0
performance/Performance.EntityModels/Entity/per_budget_result.cs
+10
-0
performance/Performance.Repository/PerforPerAllotRepository.cs
+9
-0
performance/Performance.Services/AllotService.cs
+1
-0
performance/Performance.Services/BudgetService.cs
+3
-3
performance/Performance.Services/ReportDataService.cs
+2
-2
performance/Performance.Services/ReportService.cs
+27
-0
performance/Performance.Services/UserService.cs
+1
-1
No files found.
performance/Performance.Api/Controllers/BudgetController.cs
View file @
a5ad549c
...
...
@@ -50,7 +50,11 @@ public ApiResponse<List<BudgetResponse>> Query([FromBody]BudgetRequest request)
public
ApiResponse
Save
(
int
mainYear
,
[
FromBody
]
List
<
BudgetResponse
>
request
)
{
var
userId
=
claim
.
GetUserId
();
var
result
=
budgetService
.
SaveBudgetData
(
mainYear
,
request
,
userId
);
var
result
=
false
;
if
(
request
!=
null
&&
request
.
Any
(
t
=>
t
.
Id
==
0
))
result
=
budgetService
.
SaveBudgetData
(
mainYear
,
request
,
userId
);
else
result
=
budgetService
.
ModifyBudgetData
(
request
);
return
result
?
new
ApiResponse
(
ResponseType
.
OK
,
"保存成功"
)
:
new
ApiResponse
(
ResponseType
.
Fail
,
"保存失败"
);
}
...
...
@@ -63,8 +67,9 @@ public ApiResponse Save(int mainYear, [FromBody]List<BudgetResponse> request)
[
Route
(
"modify"
)]
public
ApiResponse
Modify
([
FromBody
]
List
<
BudgetResponse
>
request
)
{
var
result
=
budgetService
.
ModifyBudgetData
(
request
);
return
result
?
new
ApiResponse
(
ResponseType
.
OK
,
"修改成功"
)
:
new
ApiResponse
(
ResponseType
.
Fail
,
"修改失败"
);
//var result = budgetService.ModifyBudgetData(request);
//return result ? new ApiResponse(ResponseType.OK, "修改成功") : new ApiResponse(ResponseType.Fail, "修改失败");
return
new
ApiResponse
();
}
/// <summary>
...
...
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
a5ad549c
...
...
@@ -207,10 +207,11 @@
<param
name=
"request"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.BudgetController.Save(System.Collections.Generic.List{Performance.DtoModels.BudgetResponse})"
>
<member
name=
"M:Performance.Api.Controllers.BudgetController.Save(System.
Int32,System.
Collections.Generic.List{Performance.DtoModels.BudgetResponse})"
>
<summary>
保存预算管理数据
</summary>
<param
name=
"mainYear"
></param>
<param
name=
"request"
></param>
<returns></returns>
</member>
...
...
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
a5ad549c
...
...
@@ -2121,6 +2121,11 @@
成本合计实际比例
</summary>
</member>
<member
name=
"P:Performance.DtoModels.BudgetRatioResponse.NoPerformanceExpenditureRatio"
>
<summary>
人员经费(不含绩效)实际比例
</summary>
</member>
<member
name=
"P:Performance.DtoModels.BudgetResponse.Type"
>
<summary>
数据来源 1. 金额 2. 占比
...
...
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
View file @
a5ad549c
...
...
@@ -2462,9 +2462,14 @@
</summary>
</member>
<member
name=
"P:Performance.EntityModels.per_budget_amount.MainYear"
>
<summary>
根据该年份测算下一年
</summary>
</member>
<member
name=
"P:Performance.EntityModels.per_budget_amount.Year"
>
<summary>
实际年份、预算年份
</summary>
</member>
<member
name=
"P:Performance.EntityModels.per_budget_amount.HospitalRevenue"
>
...
...
@@ -2582,9 +2587,14 @@
</summary>
</member>
<member
name=
"P:Performance.EntityModels.per_budget_ratio.MainYear"
>
<summary>
根据该年份测算下一年
</summary>
</member>
<member
name=
"P:Performance.EntityModels.per_budget_ratio.Year"
>
<summary>
实际年份、预算年份
</summary>
</member>
<member
name=
"P:Performance.EntityModels.per_budget_ratio.HospitalRevenue"
>
...
...
@@ -2822,6 +2832,16 @@
成本合计实际比例
</summary>
</member>
<member
name=
"P:Performance.EntityModels.per_budget_result.NoPerformanceExpenditure"
>
<summary>
人员经费(不含绩效)
</summary>
</member>
<member
name=
"P:Performance.EntityModels.per_budget_result.NoPerformanceExpenditureRatio"
>
<summary>
人员经费(不含绩效)实际比例
</summary>
</member>
<member
name=
"P:Performance.EntityModels.per_budget_result.States"
>
<summary>
1.初始 2. 确认使用发放/调节系数
...
...
performance/Performance.DtoModels/Response/BudgetRatioResponse.cs
View file @
a5ad549c
...
...
@@ -60,5 +60,10 @@ public class BudgetRatioResponse
/// 成本合计实际比例
/// </summary>
public
Nullable
<
decimal
>
TheCostCombinedRatio
{
get
;
set
;
}
/// <summary>
/// 人员经费(不含绩效)实际比例
/// </summary>
public
Nullable
<
decimal
>
NoPerformanceExpenditureRatio
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/per_budget_result.cs
View file @
a5ad549c
...
...
@@ -142,6 +142,16 @@ public class per_budget_result
public
Nullable
<
decimal
>
TheCostCombinedRatio
{
get
;
set
;
}
/// <summary>
/// 人员经费(不含绩效)
/// </summary>
public
Nullable
<
decimal
>
NoPerformanceExpenditure
{
get
;
set
;
}
/// <summary>
/// 人员经费(不含绩效)实际比例
/// </summary>
public
Nullable
<
decimal
>
NoPerformanceExpenditureRatio
{
get
;
set
;
}
/// <summary>
/// 1.初始 2. 确认使用发放/调节系数
/// </summary>
public
int
States
{
get
;
set
;
}
...
...
performance/Performance.Repository/PerforPerAllotRepository.cs
View file @
a5ad549c
...
...
@@ -87,5 +87,14 @@ public bool ImportData(rep_importconfig import, Dictionary<string, object> pairs
}
return
true
;
}
public
bool
UpdateData
(
rep_importconfig
import
,
Dictionary
<
string
,
object
>
pairs
)
{
using
(
var
connection
=
context
.
Database
.
GetDbConnection
())
{
var
flag
=
connection
.
Execute
(
import
.
ImportScript
,
new
DynamicParameters
(
pairs
),
commandTimeout
:
60
*
60
);
return
flag
>
0
;
}
}
}
}
performance/Performance.Services/AllotService.cs
View file @
a5ad549c
...
...
@@ -335,6 +335,7 @@ public void Generate(per_allot allot, string mail)
logManageService
.
WriteMsg
(
"正在生成报表数据"
,
"正在生成报表数据"
,
1
,
allot
.
ID
,
"ReceiveMessage"
,
true
);
var
res
=
reportService
.
ImportData
(
allot
);
var
flag
=
reportService
.
UpdateData
(
allot
);
logManageService
.
WriteMsg
(
"正在生成报表数据"
,
$"报表数据生成完成;受影响:
{
res
}
行"
,
1
,
allot
.
ID
,
"ReceiveMessage"
,
true
);
//发送邮件
...
...
performance/Performance.Services/BudgetService.cs
View file @
a5ad549c
...
...
@@ -46,7 +46,7 @@ public List<BudgetResponse> QueryBudgetByYear(int hospitalid, int year)
{
result
.
AddRange
(
Mapper
.
Map
<
List
<
BudgetResponse
>>(
ratios
));
}
return
result
;
return
result
.
OrderBy
(
t
=>
t
.
Year
).
ToList
()
;
}
/// <summary>
...
...
@@ -168,7 +168,7 @@ public bool ModifyBudgetData(List<BudgetResponse> request)
public
List
<
per_budget_result
>
QueryResultByYear
(
int
hospitalid
,
int
year
)
{
var
results
=
perbudgetresultRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalid
&&
t
.
Year
==
year
);
return
results
;
return
results
?.
OrderBy
(
t
=>
t
.
Month
).
ToList
()
;
}
/// <summary>
...
...
@@ -287,7 +287,7 @@ public bool GetAdjustAndGrant(int allotId, ref decimal adjust, ref decimal grant
var
result
=
perbudgetresultRepository
.
GetEntity
(
t
=>
t
.
HospitalId
==
allot
.
HospitalId
&&
t
.
Year
==
allot
.
Year
&&
t
.
Month
==
allot
.
Month
);
if
(
result
==
null
||
result
.
States
!=
2
)
return
false
;
adjust
=
result
.
Adjust
.
Value
;
adjust
=
result
.
Adjust
.
Value
;
grant
=
result
.
Grant
.
Value
;
return
true
;
}
...
...
performance/Performance.Services/ReportDataService.cs
View file @
a5ad549c
...
...
@@ -148,8 +148,8 @@ public List<ReportData> GetReportData(int hospitalId, int groupId, int reportId,
@where
=
GetFilterSelection
(
selections
,
values
);
}
@where
+=
$" and hospitalid=
{
hospitalId
}
"
;
if
(
isMedical
)
@where
+=
$" and
departmen
t='
{
department
}
'"
;
if
(
isMedical
&&
sql
.
IndexOf
(
"report_allot_crowd"
)
<
0
)
@where
+=
$" and
accountinguni
t='
{
department
}
'"
;
// 固定占位符
var
pairs
=
PredefinePlaceholder
(
values
);
pairs
.
Add
(
"wh"
,
@where
);
...
...
performance/Performance.Services/ReportService.cs
View file @
a5ad549c
...
...
@@ -257,6 +257,33 @@ internal int ImportData(per_allot allot)
}
/// <summary>
/// 补充报表数据
/// </summary>
/// <param name="allot"></param>
/// <returns></returns>
internal
int
UpdateData
(
per_allot
allot
)
{
Dictionary
<
string
,
object
>
pairs
=
new
Dictionary
<
string
,
object
>
{
{
"@allotid"
,
allot
.
ID
},
{
"@hospitalid"
,
allot
.
HospitalId
},
};
var
imports
=
repimportconfigRepository
.
GetEntities
(
w
=>
w
.
ScriptType
==
3
);
foreach
(
var
item
in
imports
)
{
try
{
var
flag
=
perforPerallotRepository
.
UpdateData
(
item
,
pairs
);
}
catch
(
Exception
ex
)
{
logger
.
LogError
(
ex
.
ToString
());
}
}
return
0
;
}
/// <summary>
/// 首页
/// </summary>
/// <param name="hospitalId"></param>
...
...
performance/Performance.Services/UserService.cs
View file @
a5ad549c
...
...
@@ -338,7 +338,7 @@ public List<TitleValue> Department(int hospitalID)
//if (department != null && department.Count() > 0)
// result.AddRange(department);
var
department
=
_perforImaccountbasicRepository
.
GetEntities
(
t
=>
t
.
Department
!=
""
&&
idList
.
Contains
(
t
.
AllotID
.
Value
)).
Select
(
t
=>
t
.
Departmen
t
);
var
department
=
_perforImaccountbasicRepository
.
GetEntities
(
t
=>
!
string
.
IsNullOrEmpty
(
t
.
DoctorAccountingUnit
)
&&
idList
.
Contains
(
t
.
AllotID
.
Value
)).
Select
(
t
=>
t
.
DoctorAccountingUni
t
);
if
(
department
!=
null
&&
department
.
Count
()
>
0
)
result
.
AddRange
(
department
);
if
(
result
!=
null
&&
result
.
Any
())
...
...
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