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
ede57428
Commit
ede57428
authored
May 09, 2022
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
每月汇报表接口定义
parent
84ad6c88
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
991 additions
and
2 deletions
+991
-2
performance/Performance.Api/Controllers/StatisticsController.cs
+235
-0
performance/Performance.Api/wwwroot/Performance.Api.xml
+31
-0
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+50
-0
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
+211
-1
performance/Performance.DtoModels/ReportStatistics/ReportStatisticsInfoDto.cs
+95
-0
performance/Performance.EntityModels/Context/PerformanceDbContext.cs
+5
-1
performance/Performance.EntityModels/Entity/report_statistics.cs
+49
-0
performance/Performance.EntityModels/Entity/report_statistics_selection.cs
+79
-0
performance/Performance.EntityModels/Entity/report_statistics_selection_record.cs
+46
-0
performance/Performance.EntityModels/Entity/report_statistics_store.cs
+72
-0
performance/Performance.EntityModels/Entity/report_statistics_tree.cs
+57
-0
performance/Performance.Repository/Repository/PerforReportStatisticsRepository.cs
+11
-0
performance/Performance.Repository/Repository/PerforReportStatisticsSelectionRecordRepository.cs
+11
-0
performance/Performance.Repository/Repository/PerforReportStatisticsSelectionRepository.cs
+11
-0
performance/Performance.Repository/Repository/PerforReportStatisticsStoreRepository.cs
+11
-0
performance/Performance.Repository/Repository/PerforReportStatisticsTreeRepository.cs
+11
-0
performance/Performance.Services/StatisticsService.cs
+6
-0
No files found.
performance/Performance.Api/Controllers/StatisticsController.cs
0 → 100644
View file @
ede57428
using
Microsoft.AspNetCore.Mvc
;
using
Performance.DtoModels
;
using
Performance.EntityModels
;
using
Performance.Services
;
using
System.Collections.Generic
;
using
System.Linq
;
namespace
Performance.Api.Controllers
{
/// <summary>
/// 每月报表
/// </summary>
[
Route
(
"api/statistics"
)]
public
class
StatisticsController
:
Controller
{
private
readonly
StatisticsService
_service
;
public
StatisticsController
(
StatisticsService
service
)
{
_service
=
service
;
}
/// <summary>
/// 查询报表信息
/// </summary>
/// <param name="statisticsId"></param>
/// <returns></returns>
[
HttpPost
(
"info"
)]
public
ApiResponse
<
StatisticsInfoDto
>
GetInfo
([
FromQuery
]
int
statisticsId
)
{
// 结果示例代码
var
x
=
new
StatisticsInfoDto
{
StatisticsID
=
statisticsId
,
HospitalId
=
12
,
Name
=
"绩效总览"
,
IsComparison
=
1
,
Selections
=
new
List
<
StatisticsSelectionDto
>
{
new
StatisticsSelectionDto
{
SelectionID
=
1
,
StatisticsID
=
statisticsId
,
InputName
=
"YearMonth"
,
InputType
=
"checkbox"
,
Required
=
0
,
Sort
=
1
,
Title
=
"年月"
,
Options
=
new
List
<
TitleValue
>
{
new
TitleValue
(
"2022年01月"
,
"2022年01月"
),
new
TitleValue
(
"2022年02月"
,
"2022年02月"
),
new
TitleValue
(
"2022年03月"
,
"2022年03月"
),
new
TitleValue
(
"2022年04月"
,
"2022年04月"
),
}
},
new
StatisticsSelectionDto
{
SelectionID
=
2
,
StatisticsID
=
statisticsId
,
InputName
=
"UnitType"
,
InputType
=
"checkbox"
,
Required
=
0
,
Sort
=
2
,
Title
=
"核算组别"
,
Options
=
new
List
<
TitleValue
>
{
new
TitleValue
(
"医生组"
,
"医生组"
),
new
TitleValue
(
"医技组"
,
"医技组"
),
new
TitleValue
(
"护理组"
,
"护理组"
),
new
TitleValue
(
"特殊核算组"
,
"特殊核算组"
),
}
},
new
StatisticsSelectionDto
{
SelectionID
=
3
,
StatisticsID
=
statisticsId
,
InputName
=
"AccountingUnit"
,
InputType
=
"checkbox"
,
Required
=
0
,
Sort
=
3
,
Title
=
"核算单元"
,
Options
=
new
List
<
TitleValue
>
{
new
TitleValue
(
"内一科"
,
"内一科"
),
new
TitleValue
(
"骨科"
,
"骨科"
),
new
TitleValue
(
"外科"
,
"外科"
),
new
TitleValue
(
"呼吸内科"
,
"呼吸内科"
),
}
},
}
};
return
new
ApiResponse
<
StatisticsInfoDto
>(
ResponseType
.
OK
,
x
);
}
/// <summary>
/// 查询报表查询记录
/// </summary>
/// <param name="statisticsId"></param>
/// <returns></returns>
[
HttpPost
(
"selection/record"
)]
public
ApiResponse
<
List
<
report_statistics_selection_record
>>
GetSelectionRecord
([
FromQuery
]
int
statisticsId
)
{
var
x
=
new
List
<
report_statistics_selection_record
>
{
};
x
=
x
.
OrderByDescending
(
w
=>
w
.
UpdateDate
).
ToList
();
return
new
ApiResponse
<
List
<
report_statistics_selection_record
>>(
ResponseType
.
OK
,
x
);
}
/// <summary>
/// 保存报表查询记录
/// </summary>
/// <returns></returns>
[
HttpPost
(
"selection/record/save"
)]
public
ApiResponse
SaveSelectionRecord
([
FromBody
]
report_statistics_selection_record
record
)
{
return
new
ApiResponse
(
ResponseType
.
OK
);
}
/// <summary>
/// 查询报表结果
/// </summary>
/// <returns></returns>
[
HttpPost
(
"search"
)]
public
ApiResponse
<
StatisticsQueryResultDto
>
Search
([
FromBody
]
StatisticsQuery
query
)
{
StatisticsQueryResultDto
dto
=
new
StatisticsQueryResultDto
{
IsComparison
=
query
.
IsComparison
,
Columns
=
new
List
<
StatisticsColumn
>
{
new
StatisticsColumn
{
ColumnName
=
"项目"
,
Fixed
=
"left"
,
},
new
StatisticsColumn
{
ColumnName
=
"2022年02月"
,
Fixed
=
""
,
ChildColumns
=
new
List
<
StatisticsColumn
>()
{
new
StatisticsColumn
{
ColumnName
=
"金额"
,
Fixed
=
""
,
},
new
StatisticsColumn
{
ColumnName
=
"占比"
,
Fixed
=
""
,
},
}
},
},
Datas
=
new
List
<
Dictionary
<
string
,
string
>>
{
new
Dictionary
<
string
,
string
>
{
{
"项目"
,
"全院业务收入"
},
{
"金额"
,
""
},
{
"金额公式"
,
"= 门诊收入 + 住院收入"
},
{
"占比"
,
""
},
{
"占比公式"
,
""
},
},
new
Dictionary
<
string
,
string
>
{
{
"项目"
,
"门诊收入"
},
{
"金额"
,
"333"
},
{
"金额公式"
,
""
},
{
"占比"
,
""
},
{
"占比公式"
,
"= 门诊收入 / 全院业务收入"
},
},
new
Dictionary
<
string
,
string
>
{
{
"项目"
,
"住院收入"
},
{
"金额"
,
"333"
},
{
"金额公式"
,
""
},
{
"占比"
,
""
},
{
"占比公式"
,
"= 住院收入 / 全院业务收入"
},
},
new
Dictionary
<
string
,
string
>
{
{
"项目"
,
"全院支出项目"
},
{
"金额"
,
""
},
{
"金额公式"
,
"= 药品收入 + 其他核算成本"
},
{
"占比"
,
""
},
{
"占比公式"
,
""
},
},
new
Dictionary
<
string
,
string
>
{
{
"项目"
,
"药品收入"
},
{
"药品收入公式"
,
""
},
{
"金额"
,
"333"
},
{
"金额公式"
,
""
},
{
"占比"
,
""
},
{
"占比公式"
,
"= 药品收入 / 全院支出项目"
},
},
new
Dictionary
<
string
,
string
>
{
{
"项目"
,
"其他核算成本"
},
{
"其他核算成本公式"
,
""
},
{
"金额"
,
"333"
},
{
"金额公式"
,
""
},
{
"占比"
,
""
},
{
"占比公式"
,
"= 其他核算成本 / 全院支出项目"
},
},
new
Dictionary
<
string
,
string
>
{
{
"项目"
,
"有效结余"
},
{
"有效结余公式"
,
""
},
{
"金额"
,
"333"
},
{
"金额公式"
,
"= 全院业务收入 - 全院支出项目"
},
{
"占比"
,
""
},
{
"占比公式"
,
"= 有效结余 / 全院业务收入"
},
},
new
Dictionary
<
string
,
string
>
{
{
"项目"
,
"绩效发放总额"
},
{
"绩效发放总额公式"
,
""
},
{
"金额"
,
"333"
},
{
"金额公式"
,
""
},
{
"占比"
,
""
},
{
"占比公式"
,
"= 绩效发放总额 / 全院业务收入"
},
},
new
Dictionary
<
string
,
string
>
{
{
"项目"
,
"剩余结余"
},
{
"剩余结余公式"
,
""
},
{
"金额"
,
"333"
},
{
"金额公式"
,
"= 有效结余 - 绩效发放总额"
},
{
"占比"
,
""
},
{
"占比公式"
,
"= 有效结余 / 全院业务收入"
},
},
}
};
return
new
ApiResponse
<
StatisticsQueryResultDto
>(
ResponseType
.
OK
,
dto
);
}
}
}
\ No newline at end of file
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
ede57428
...
@@ -2326,6 +2326,37 @@
...
@@ -2326,6 +2326,37 @@
<param
name=
"request"
></param>
<param
name=
"request"
></param>
<returns></returns>
<returns></returns>
</member>
</member>
<member
name=
"T:Performance.Api.Controllers.StatisticsController"
>
<summary>
每月报表
</summary>
</member>
<member
name=
"M:Performance.Api.Controllers.StatisticsController.GetInfo(System.Int32)"
>
<summary>
查询报表信息
</summary>
<param
name=
"statisticsId"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.StatisticsController.GetSelectionRecord(System.Int32)"
>
<summary>
查询报表查询记录
</summary>
<param
name=
"statisticsId"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.StatisticsController.SaveSelectionRecord(Performance.EntityModels.report_statistics_selection_record)"
>
<summary>
保存报表查询记录
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.StatisticsController.Search(Performance.DtoModels.StatisticsQuery)"
>
<summary>
查询报表结果
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.TemplateController.DownFile(System.Int32)"
>
<member
name=
"M:Performance.Api.Controllers.TemplateController.DownFile(System.Int32)"
>
<summary>
<summary>
从WebAPI下载模板 1、医院绩效模板 2、医院二次分配绩效模板 3、医院绩效模板(无执行科室)
从WebAPI下载模板 1、医院绩效模板 2、医院二次分配绩效模板 3、医院绩效模板(无执行科室)
...
...
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
ede57428
...
@@ -1736,6 +1736,56 @@
...
@@ -1736,6 +1736,56 @@
Not In
Not In
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.DtoModels.StatisticsInfoDto.Name"
>
<summary>
每月汇总表名称
</summary>
</member>
<member
name=
"P:Performance.DtoModels.StatisticsInfoDto.IsComparison"
>
<summary>
报表对比 0 不允许对比 1 允许对比
</summary>
</member>
<member
name=
"P:Performance.DtoModels.StatisticsSelectionDto.Title"
>
<summary>
条件标题
</summary>
</member>
<member
name=
"P:Performance.DtoModels.StatisticsSelectionDto.Sort"
>
<summary>
排序
</summary>
</member>
<member
name=
"P:Performance.DtoModels.StatisticsSelectionDto.InputName"
>
<summary>
控件名称
</summary>
</member>
<member
name=
"P:Performance.DtoModels.StatisticsSelectionDto.InputType"
>
<summary>
控件类型(1:input框、2:radio单选、3:checkbox多选、4:select单选、5:select多选、6:自动补全单选、7:自动补全多选、10:日期区间)
</summary>
</member>
<member
name=
"P:Performance.DtoModels.StatisticsSelectionDto.Required"
>
<summary>
是否必填(1表示必填0表示非必填)
</summary>
</member>
<member
name=
"P:Performance.DtoModels.StatisticsSelectionDto.Options"
>
<summary>
数据集合
</summary>
</member>
<member
name=
"P:Performance.DtoModels.StatisticsQuery.IsComparison"
>
<summary>
结果返回用途 首次查询 0 用于比对 1 用于对比
</summary>
</member>
<member
name=
"P:Performance.DtoModels.StatisticsQueryResultDto.IsComparison"
>
<summary>
结果返回用途 首次查询 0 用于比对 1 用于对比
</summary>
</member>
<member
name=
"P:Performance.DtoModels.ReportTable.PersonnelName"
>
<member
name=
"P:Performance.DtoModels.ReportTable.PersonnelName"
>
<summary>
<summary>
人员信息
人员信息
...
...
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
View file @
ede57428
...
@@ -292,7 +292,7 @@
...
@@ -292,7 +292,7 @@
<member
name=
"P:Performance.EntityModels.PerformanceDbContext.report_performance_person_tags"
>
<member
name=
"P:Performance.EntityModels.PerformanceDbContext.report_performance_person_tags"
>
<summary>
</summary>
<summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.EntityModels.PerformanceDbContext.report_
performance_tag
s"
>
<member
name=
"P:Performance.EntityModels.PerformanceDbContext.report_
statistic
s"
>
<summary>
</summary>
<summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.EntityModels.PerformanceDbContext.res_account"
>
<member
name=
"P:Performance.EntityModels.PerformanceDbContext.res_account"
>
...
@@ -7385,6 +7385,216 @@
...
@@ -7385,6 +7385,216 @@
创建时间
创建时间
</summary>
</summary>
</member>
</member>
<member
name=
"T:Performance.EntityModels.report_statistics"
>
<summary>
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics.Name"
>
<summary>
每月汇总表名称
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics.IsComparison"
>
<summary>
报表对比 0 不允许对比 1 允许对比
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics.TotalScript"
>
<summary>
汇总数值SQL
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics.ProportionScript"
>
<summary>
占比SQL
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics.WeightScript"
>
<summary>
权重SQL
</summary>
</member>
<member
name=
"T:Performance.EntityModels.report_statistics_selection"
>
<summary>
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_selection.Title"
>
<summary>
条件标题
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_selection.Sort"
>
<summary>
排序
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_selection.Content"
>
<summary>
条件SQL语句
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_selection.Type"
>
<summary>
条件类型(1固定条件,2需要通过语句获取)
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_selection.InputName"
>
<summary>
控件名称
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_selection.InputType"
>
<summary>
控件类型(1:input框、2:radio单选、3:checkbox多选、4:select单选、5:select多选、6:自动补全单选、7:自动补全多选、10:日期区间)
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_selection.Required"
>
<summary>
是否必填(1表示必填0表示非必填)
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_selection.LoadType"
>
<summary>
条件加载方式 1 立即加载 2 联动加载 3 自动补全
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_selection.DefaultType"
>
<summary>
默认值类型(1 固定文本 2 动态结果第一项)
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_selection.DefaultValue"
>
<summary>
默认值文本
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_selection.State"
>
<summary>
条件状态 1 正常 2 可用但不显示 3 不显示不可用 4 不可用但显示
</summary>
</member>
<member
name=
"T:Performance.EntityModels.report_statistics_selection_record"
>
<summary>
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_selection_record.CreateDate"
>
<summary>
创建时间
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_selection_record.UpdateDate"
>
<summary>
最后修改时间
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_selection_record.Name"
>
<summary>
自定义名称
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_selection_record.Content"
>
<summary>
条件内容
</summary>
</member>
<member
name=
"T:Performance.EntityModels.report_statistics_store"
>
<summary>
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_store.HospitalId"
>
<summary>
医院ID
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_store.AllotID"
>
<summary>
绩效ID
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_store.Year"
>
<summary>
年
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_store.Month"
>
<summary>
月
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_store.YearMonth"
>
<summary>
年月
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_store.UnitType"
>
<summary>
核算组别
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_store.AccountingUnit"
>
<summary>
核算单元
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_store.Source"
>
<summary>
来源
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_store.Category"
>
<summary>
类别
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_store.Value"
>
<summary>
数值
</summary>
</member>
<member
name=
"T:Performance.EntityModels.report_statistics_tree"
>
<summary>
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_tree.StatisticsID"
>
<summary>
每月汇总表ID
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_tree.ParentID"
>
<summary>
统计层级父级ID
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_tree.Name"
>
<summary>
统计层级名称
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_tree.TotalScript"
>
<summary>
汇总数值SQL
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_tree.TotalFormula"
>
<summary>
汇总数值公式
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_tree.ProportionFormula"
>
<summary>
占比公式
</summary>
</member>
<member
name=
"P:Performance.EntityModels.report_statistics_tree.WeightFormula"
>
<summary>
权重公式
</summary>
</member>
<member
name=
"T:Performance.EntityModels.rep_group"
>
<member
name=
"T:Performance.EntityModels.rep_group"
>
<summary>
<summary>
...
...
performance/Performance.DtoModels/ReportStatistics/ReportStatisticsInfoDto.cs
0 → 100644
View file @
ede57428
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Performance.DtoModels
{
public
class
StatisticsInfoDto
{
public
int
StatisticsID
{
get
;
set
;
}
public
int
HospitalId
{
get
;
set
;
}
/// <summary>
/// 每月汇总表名称
/// </summary>
public
string
Name
{
get
;
set
;
}
/// <summary>
/// 报表对比 0 不允许对比 1 允许对比
/// </summary>
public
int
IsComparison
{
get
;
set
;
}
public
List
<
StatisticsSelectionDto
>
Selections
{
get
;
set
;
}
}
public
class
StatisticsSelectionDto
{
public
int
SelectionID
{
get
;
set
;
}
public
int
?
StatisticsID
{
get
;
set
;
}
/// <summary>
/// 条件标题
/// </summary>
public
string
Title
{
get
;
set
;
}
/// <summary>
/// 排序
/// </summary>
public
decimal
?
Sort
{
get
;
set
;
}
/// <summary>
/// 控件名称
/// </summary>
public
string
InputName
{
get
;
set
;
}
/// <summary>
/// 控件类型(1:input框、2:radio单选、3:checkbox多选、4:select单选、5:select多选、6:自动补全单选、7:自动补全多选、10:日期区间)
/// </summary>
public
string
InputType
{
get
;
set
;
}
/// <summary>
/// 是否必填(1表示必填0表示非必填)
/// </summary>
public
int
?
Required
{
get
;
set
;
}
/// <summary>
/// 数据集合
/// </summary>
public
List
<
TitleValue
>
Options
{
get
;
set
;
}
}
public
class
StatisticsQuery
{
public
int
StatisticsID
{
get
;
set
;
}
/// <summary>
/// 结果返回用途 首次查询 0 用于比对 1 用于对比
/// </summary>
public
int
?
IsComparison
{
get
;
set
;
}
public
List
<
SelectionValues
>
Values
{
get
;
set
;
}
}
public
class
StatisticsQueryResultDto
{
/// <summary>
/// 结果返回用途 首次查询 0 用于比对 1 用于对比
/// </summary>
public
int
?
IsComparison
{
get
;
set
;
}
public
List
<
StatisticsColumn
>
Columns
{
get
;
set
;
}
public
List
<
Dictionary
<
string
,
string
>>
Datas
{
get
;
set
;
}
}
public
class
StatisticsColumn
{
public
StatisticsColumn
()
{
ChildColumns
=
new
List
<
StatisticsColumn
>();
}
public
string
ColumnName
{
get
;
set
;
}
public
string
Fixed
{
get
;
set
;
}
public
List
<
StatisticsColumn
>
ChildColumns
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Context/PerformanceDbContext.cs
View file @
ede57428
...
@@ -208,7 +208,11 @@ public PerformanceDbContext(DbContextOptions<PerformanceDbContext> options)
...
@@ -208,7 +208,11 @@ public PerformanceDbContext(DbContextOptions<PerformanceDbContext> options)
/// <summary> </summary>
/// <summary> </summary>
public
virtual
DbSet
<
report_performance_person_tags
>
report_performance_person_tags
{
get
;
set
;
}
public
virtual
DbSet
<
report_performance_person_tags
>
report_performance_person_tags
{
get
;
set
;
}
/// <summary> </summary>
/// <summary> </summary>
public
virtual
DbSet
<
report_performance_tags
>
report_performance_tags
{
get
;
set
;
}
public
virtual
DbSet
<
report_statistics
>
report_statistics
{
get
;
set
;
}
public
virtual
DbSet
<
report_statistics_selection
>
report_statistics_selection
{
get
;
set
;
}
public
virtual
DbSet
<
report_statistics_selection_record
>
report_statistics_selection_record
{
get
;
set
;
}
public
virtual
DbSet
<
report_statistics_store
>
report_statistics_store
{
get
;
set
;
}
public
virtual
DbSet
<
report_statistics_tree
>
report_statistics_tree
{
get
;
set
;
}
/// <summary> 科室核算结果 </summary>
/// <summary> 科室核算结果 </summary>
public
virtual
DbSet
<
res_account
>
res_account
{
get
;
set
;
}
public
virtual
DbSet
<
res_account
>
res_account
{
get
;
set
;
}
///// <summary> 医生科室核算结果 </summary>
///// <summary> 医生科室核算结果 </summary>
...
...
performance/Performance.EntityModels/Entity/report_statistics.cs
0 → 100644
View file @
ede57428
//-----------------------------------------------------------------------
// <copyright file=" report_performance_tags.cs">
// * FileName: .cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
{
/// <summary>
///
/// </summary>
[
Table
(
"report_statistics"
)]
public
class
report_statistics
{
[
Key
]
public
int
ID
{
get
;
set
;
}
public
int
?
HospitalId
{
get
;
set
;
}
/// <summary>
/// 每月汇总表名称
/// </summary>
public
string
Name
{
get
;
set
;
}
/// <summary>
/// 报表对比 0 不允许对比 1 允许对比
/// </summary>
public
int
?
IsComparison
{
get
;
set
;
}
/// <summary>
/// 汇总数值SQL
/// </summary>
public
string
TotalScript
{
get
;
set
;
}
/// <summary>
/// 占比SQL
/// </summary>
public
string
ProportionScript
{
get
;
set
;
}
/// <summary>
/// 权重SQL
/// </summary>
public
string
WeightScript
{
get
;
set
;
}
}
}
\ No newline at end of file
performance/Performance.EntityModels/Entity/report_statistics_selection.cs
0 → 100644
View file @
ede57428
//-----------------------------------------------------------------------
// <copyright file=" report_statistics_selection.cs">
// * FileName: .cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
{
/// <summary>
///
/// </summary>
[
Table
(
"report_statistics_selection"
)]
public
class
report_statistics_selection
{
[
Key
]
public
int
ID
{
get
;
set
;
}
public
int
?
StatisticsID
{
get
;
set
;
}
/// <summary>
/// 条件标题
/// </summary>
public
string
Title
{
get
;
set
;
}
/// <summary>
/// 排序
/// </summary>
public
decimal
?
Sort
{
get
;
set
;
}
/// <summary>
/// 条件SQL语句
/// </summary>
public
string
Content
{
get
;
set
;
}
/// <summary>
/// 条件类型(1固定条件,2需要通过语句获取)
/// </summary>
public
int
Type
{
get
;
set
;
}
/// <summary>
/// 控件名称
/// </summary>
public
string
InputName
{
get
;
set
;
}
/// <summary>
/// 控件类型(1:input框、2:radio单选、3:checkbox多选、4:select单选、5:select多选、6:自动补全单选、7:自动补全多选、10:日期区间)
/// </summary>
public
string
InputType
{
get
;
set
;
}
/// <summary>
/// 是否必填(1表示必填0表示非必填)
/// </summary>
public
int
?
Required
{
get
;
set
;
}
/// <summary>
/// 条件加载方式 1 立即加载 2 联动加载 3 自动补全
/// </summary>
public
int
LoadType
{
get
;
set
;
}
/// <summary>
/// 默认值类型(1 固定文本 2 动态结果第一项)
/// </summary>
public
int
?
DefaultType
{
get
;
set
;
}
/// <summary>
/// 默认值文本
/// </summary>
public
string
DefaultValue
{
get
;
set
;
}
/// <summary>
/// 条件状态 1 正常 2 可用但不显示 3 不显示不可用 4 不可用但显示
/// </summary>
public
int
?
State
{
get
;
set
;
}
}
}
\ No newline at end of file
performance/Performance.EntityModels/Entity/report_statistics_selection_record.cs
0 → 100644
View file @
ede57428
//-----------------------------------------------------------------------
// <copyright file=" report_statistics_selection_record.cs">
// * FileName: .cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
{
/// <summary>
///
/// </summary>
[
Table
(
"report_statistics_selection_record"
)]
public
class
report_statistics_selection_record
{
[
Key
]
public
int
ID
{
get
;
set
;
}
public
int
?
HospitalId
{
get
;
set
;
}
public
int
?
StatisticsID
{
get
;
set
;
}
/// <summary>
/// 创建时间
/// </summary>
public
DateTime
?
CreateDate
{
get
;
set
;
}
/// <summary>
/// 最后修改时间
/// </summary>
public
DateTime
?
UpdateDate
{
get
;
set
;
}
/// <summary>
/// 自定义名称
/// </summary>
public
string
Name
{
get
;
set
;
}
/// <summary>
/// 条件内容
/// </summary>
public
string
Content
{
get
;
set
;
}
}
}
\ No newline at end of file
performance/Performance.EntityModels/Entity/report_statistics_store.cs
0 → 100644
View file @
ede57428
//-----------------------------------------------------------------------
// <copyright file=" report_statistics_store.cs">
// * FileName: .cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
{
/// <summary>
///
/// </summary>
[
Table
(
"report_statistics_store"
)]
public
class
report_statistics_store
{
[
Key
]
public
int
ID
{
get
;
set
;
}
/// <summary>
/// 医院ID
/// </summary>
public
int
?
HospitalId
{
get
;
set
;
}
/// <summary>
/// 绩效ID
/// </summary>
public
int
?
AllotID
{
get
;
set
;
}
/// <summary>
/// 年
/// </summary>
public
int
?
Year
{
get
;
set
;
}
/// <summary>
/// 月
/// </summary>
public
int
?
Month
{
get
;
set
;
}
/// <summary>
/// 年月
/// </summary>
public
string
YearMonth
{
get
;
set
;
}
/// <summary>
/// 核算组别
/// </summary>
public
string
UnitType
{
get
;
set
;
}
/// <summary>
/// 核算单元
/// </summary>
public
string
AccountingUnit
{
get
;
set
;
}
/// <summary>
/// 来源
/// </summary>
public
string
Source
{
get
;
set
;
}
/// <summary>
/// 类别
/// </summary>
public
string
Category
{
get
;
set
;
}
/// <summary>
/// 数值
/// </summary>
public
decimal
?
Value
{
get
;
set
;
}
}
}
\ No newline at end of file
performance/Performance.EntityModels/Entity/report_statistics_tree.cs
0 → 100644
View file @
ede57428
//-----------------------------------------------------------------------
// <copyright file=" report_statistics_tree.cs">
// * FileName: .cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
{
/// <summary>
///
/// </summary>
[
Table
(
"report_statistics_tree"
)]
public
class
report_statistics_tree
{
[
Key
]
public
int
ID
{
get
;
set
;
}
/// <summary>
/// 每月汇总表ID
/// </summary>
public
int
?
StatisticsID
{
get
;
set
;
}
/// <summary>
/// 统计层级父级ID
/// </summary>
public
int
?
ParentID
{
get
;
set
;
}
/// <summary>
/// 统计层级名称
/// </summary>
public
string
Name
{
get
;
set
;
}
/// <summary>
/// 汇总数值SQL
/// </summary>
public
string
TotalScript
{
get
;
set
;
}
/// <summary>
/// 汇总数值公式
/// </summary>
public
string
TotalFormula
{
get
;
set
;
}
/// <summary>
/// 占比公式
/// </summary>
public
string
ProportionFormula
{
get
;
set
;
}
/// <summary>
/// 权重公式
/// </summary>
public
string
WeightFormula
{
get
;
set
;
}
}
}
\ No newline at end of file
performance/Performance.Repository/Repository/PerforReportStatisticsRepository.cs
0 → 100644
View file @
ede57428
using
Performance.EntityModels
;
namespace
Performance.Repository
{
public
partial
class
PerforReportStatisticsRepository
:
PerforRepository
<
report_statistics
>
{
public
PerforReportStatisticsRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/Repository/PerforReportStatisticsSelectionRecordRepository.cs
0 → 100644
View file @
ede57428
using
Performance.EntityModels
;
namespace
Performance.Repository
{
public
partial
class
PerforReportStatisticsSelectionRecordRepository
:
PerforRepository
<
report_statistics_selection_record
>
{
public
PerforReportStatisticsSelectionRecordRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/Repository/PerforReportStatisticsSelectionRepository.cs
0 → 100644
View file @
ede57428
using
Performance.EntityModels
;
namespace
Performance.Repository
{
public
partial
class
PerforReportStatisticsSelectionRepository
:
PerforRepository
<
report_statistics_selection
>
{
public
PerforReportStatisticsSelectionRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/Repository/PerforReportStatisticsStoreRepository.cs
0 → 100644
View file @
ede57428
using
Performance.EntityModels
;
namespace
Performance.Repository
{
public
partial
class
PerforReportStatisticsStoreRepository
:
PerforRepository
<
report_statistics_store
>
{
public
PerforReportStatisticsStoreRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/Repository/PerforReportStatisticsTreeRepository.cs
0 → 100644
View file @
ede57428
using
Performance.EntityModels
;
namespace
Performance.Repository
{
public
partial
class
PerforReportStatisticsTreeRepository
:
PerforRepository
<
report_statistics_tree
>
{
public
PerforReportStatisticsTreeRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Services/StatisticsService.cs
0 → 100644
View file @
ede57428
namespace
Performance.Services
{
public
class
StatisticsService
:
IAutoInjection
{
}
}
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