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
d0649f89
Commit
d0649f89
authored
Dec 21, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
使用graphql,新增数据库实体类
parent
3667cd9c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
69 changed files
with
1190 additions
and
599 deletions
+1190
-599
performance/Performance.Api/Controllers/GraphQLController.cs
+49
-0
performance/Performance.Api/GraphQLSchema/ChartDataType.cs
+18
-0
performance/Performance.Api/GraphQLSchema/Extensions/GraphQLExtension.cs
+26
-0
performance/Performance.Api/GraphQLSchema/GraphQLRequest.cs
+12
-0
performance/Performance.Api/GraphQLSchema/PerformanceQuery.cs
+30
-0
performance/Performance.Api/GraphQLSchema/PerformanceSchema.cs
+14
-0
performance/Performance.Api/GraphQLSchema/QueryParams.cs
+18
-0
performance/Performance.Api/GraphQLSchema/ReportDataType.cs
+28
-0
performance/Performance.Api/GraphQLSchema/ReportPerformanceType.cs
+26
-0
performance/Performance.Api/Performance.Api.csproj
+1
-0
performance/Performance.Api/Startup.cs
+2
-0
performance/Performance.Api/wwwroot/Performance.Api.xml
+7
-0
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
+0
-0
performance/Performance.EntityModels/Context/PerformanceDbContext.cs
+30
-11
performance/Performance.EntityModels/Entity/ag_compute.cs
+10
-1
performance/Performance.EntityModels/Entity/ag_fixatitem.cs
+0
-0
performance/Performance.EntityModels/Entity/ag_othersource.cs
+0
-0
performance/Performance.EntityModels/Entity/ag_secondallot.cs
+25
-5
performance/Performance.EntityModels/Entity/cof_workitem.cs
+0
-0
performance/Performance.EntityModels/Entity/collect_data.cs
+14
-7
performance/Performance.EntityModels/Entity/collect_permission.cs
+16
-11
performance/Performance.EntityModels/Entity/cust_script.cs
+15
-3
performance/Performance.EntityModels/Entity/ex_script.cs
+0
-0
performance/Performance.EntityModels/Entity/im_accountbasic.cs
+82
-80
performance/Performance.EntityModels/Entity/im_data.cs
+9
-8
performance/Performance.EntityModels/Entity/im_employee.cs
+18
-0
performance/Performance.EntityModels/Entity/im_employee_clinic.cs
+23
-15
performance/Performance.EntityModels/Entity/im_employee_logistics.cs
+4
-32
performance/Performance.EntityModels/Entity/log_dbug.cs
+0
-0
performance/Performance.EntityModels/Entity/mod_extract.cs
+59
-59
performance/Performance.EntityModels/Entity/mod_item.cs
+59
-59
performance/Performance.EntityModels/Entity/mod_module.cs
+55
-55
performance/Performance.EntityModels/Entity/mod_special.cs
+59
-59
performance/Performance.EntityModels/Entity/per_allot.cs
+0
-0
performance/Performance.EntityModels/Entity/per_apr_amount.cs
+6
-6
performance/Performance.EntityModels/Entity/per_employee.cs
+0
-0
performance/Performance.EntityModels/Entity/report_global.cs
+44
-0
performance/Performance.EntityModels/Entity/report_original_persontime.cs
+5
-5
performance/Performance.EntityModels/Entity/report_original_stays.cs
+5
-5
performance/Performance.EntityModels/Entity/report_original_surgery.cs
+5
-5
performance/Performance.EntityModels/Entity/report_original_workload.cs
+0
-0
performance/Performance.EntityModels/Entity/report_performance.cs
+86
-0
performance/Performance.EntityModels/Entity/res_account.cs
+21
-18
performance/Performance.EntityModels/Entity/res_compute.cs
+24
-7
performance/Performance.EntityModels/Entity/res_reserved.cs
+3
-0
performance/Performance.EntityModels/Entity/res_specialunit.cs
+4
-0
performance/Performance.EntityModels/Entity/sys_hospital.cs
+0
-0
performance/Performance.EntityModels/Entity/sys_role.cs
+0
-0
performance/Performance.Repository/Repository/PerforImemployeelogisticsRepository.cs
+3
-3
performance/Performance.Repository/Repository/PerforModextractRepository.cs
+19
-19
performance/Performance.Repository/Repository/PerforModitemRepository.cs
+19
-19
performance/Performance.Repository/Repository/PerforModmoduleRepository.cs
+19
-19
performance/Performance.Repository/Repository/PerforModspecialRepository.cs
+19
-19
performance/Performance.Repository/Repository/PerforReportglobalRepository.cs
+20
-0
performance/Performance.Repository/Repository/PerforReportoriginalpersontimeRepository.cs
+2
-2
performance/Performance.Repository/Repository/PerforReportoriginalstaysRepository.cs
+4
-3
performance/Performance.Repository/Repository/PerforReportoriginalsurgeryRepository.cs
+4
-3
performance/Performance.Repository/Repository/PerforReportperformanceRepository.cs
+26
-0
performance/Performance.Repository/Repository/PerforcollectdataRepository.cs
+5
-5
performance/Performance.Repository/Repository/PerforcollectpermissionRepository.cs
+5
-5
performance/Performance.Repository/Repository/PerforcustscriptRepository.cs
+6
-6
performance/Performance.Repository/Repository/PerforresreservedRepository.cs
+5
-5
performance/Performance.Services/AllotCompute/ResultComputeService.cs
+4
-5
performance/Performance.Services/AllotService.cs
+2
-2
performance/Performance.Services/CollectService.cs
+13
-14
performance/Performance.Services/CustomExtractService.cs
+5
-3
performance/Performance.Services/DFExtractService.cs
+27
-14
performance/Performance.Services/ExtractExcelService/ExtractService.cs
+2
-2
performance/Performance.Services/GraphQLService.cs
+69
-0
No files found.
performance/Performance.Api/Controllers/GraphQLController.cs
0 → 100644
View file @
d0649f89
using
GraphQL
;
using
GraphQL.Types
;
using
Microsoft.AspNetCore.Authorization
;
using
Microsoft.AspNetCore.Mvc
;
using
Microsoft.Extensions.Logging
;
using
Performance.DtoModels
;
using
System.Threading.Tasks
;
namespace
Performance.Api
{
[
AllowAnonymous
]
[
Route
(
"api/graphql"
)]
[
ApiController
]
public
class
GraphQLController
:
ControllerBase
{
public
ISchema
performanceSchema
{
get
;
}
public
IDocumentExecuter
documentExecuter
{
get
;
}
public
ILogger
logger
{
get
;
set
;
}
public
GraphQLController
(
ISchema
performanceSchema
,
IDocumentExecuter
documentExecuter
,
ILogger
<
GraphQLController
>
logger
)
{
this
.
performanceSchema
=
performanceSchema
;
this
.
documentExecuter
=
documentExecuter
;
this
.
logger
=
logger
;
}
/// <summary>
/// GraphQL请求地址
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
[
HttpPost
]
public
async
Task
<
ApiResponse
>
Post
(
GraphQLRequest
query
)
{
var
result
=
await
documentExecuter
.
ExecuteAsync
(
options
=>
{
options
.
Schema
=
performanceSchema
;
options
.
Query
=
query
.
Query
;
});
if
(
result
.
Errors
?.
Count
>
0
)
{
return
new
ApiResponse
(
ResponseType
.
Error
,
result
.
Errors
);
}
return
new
ApiResponse
(
ResponseType
.
OK
,
result
.
Data
);
}
}
}
performance/Performance.Api/GraphQLSchema/ChartDataType.cs
0 → 100644
View file @
d0649f89
using
GraphQL.Types
;
using
Performance.DtoModels
;
namespace
Performance.Api
{
public
class
ChartDataType
:
ObjectGraphType
<
ChartData
>
{
public
ChartDataType
()
{
Field
(
x
=>
x
.
X
);
Field
(
x
=>
x
.
Y
);
Field
(
x
=>
x
.
Name
);
Field
(
x
=>
x
.
Value
);
Field
(
x
=>
x
.
Total
);
Field
(
x
=>
x
.
Type
);
}
}
}
performance/Performance.Api/GraphQLSchema/Extensions/GraphQLExtension.cs
0 → 100644
View file @
d0649f89
using
GraphQL
;
using
GraphQL.Types
;
using
Microsoft.Extensions.DependencyInjection
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
namespace
Performance.Api
{
public
static
class
GraphQLExtension
{
public
static
void
AddGraphQLSchemaAndTypes
(
this
IServiceCollection
services
)
{
//services.AddScoped<ReportDataType>();
services
.
AddScoped
<
ReportPerformanceType
>();
services
.
AddScoped
<
PerformanceQuery
>();
services
.
AddScoped
<
ISchema
,
PerformanceSchema
>();
services
.
AddScoped
<
IDocumentExecuter
,
DocumentExecuter
>();
services
.
AddScoped
<
IDependencyResolver
>(
provider
=>
new
FuncDependencyResolver
(
type
=>
provider
.
GetRequiredService
(
type
)
));
}
}
}
performance/Performance.Api/GraphQLSchema/GraphQLRequest.cs
0 → 100644
View file @
d0649f89
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
namespace
Performance.Api
{
public
class
GraphQLRequest
{
public
string
Query
{
get
;
set
;
}
}
}
performance/Performance.Api/GraphQLSchema/PerformanceQuery.cs
0 → 100644
View file @
d0649f89
using
GraphQL.Types
;
using
Performance.Infrastructure
;
using
Performance.Services
;
namespace
Performance.Api
{
public
class
PerformanceQuery
:
ObjectGraphType
{
public
PerformanceQuery
(
GraphQLService
service
)
{
Field
<
ListGraphType
<
ReportPerformanceType
>>(
"performances"
,
arguments
:
new
QueryArguments
(
new
QueryArgument
<
IntGraphType
>()
{
Name
=
QueryParams
.
hospitalId
},
new
QueryArgument
<
IntGraphType
>()
{
Name
=
QueryParams
.
year
},
new
QueryArgument
<
IntGraphType
>()
{
Name
=
QueryParams
.
month
},
new
QueryArgument
<
StringGraphType
>()
{
Name
=
QueryParams
.
category
}
),
resolve
:
context
=>
{
int
hospitalId
=
context
.
Arguments
.
ContainsKey
(
QueryParams
.
hospitalId
)
?
ConvertHelper
.
TryInt
(
context
.
Arguments
[
QueryParams
.
hospitalId
].
ToString
())
:
default
;
int
year
=
context
.
Arguments
.
ContainsKey
(
QueryParams
.
year
)
?
ConvertHelper
.
TryInt
(
context
.
Arguments
[
QueryParams
.
year
].
ToString
())
:
default
;
int
month
=
context
.
Arguments
.
ContainsKey
(
QueryParams
.
month
)
?
ConvertHelper
.
TryInt
(
context
.
Arguments
[
QueryParams
.
month
].
ToString
())
:
default
;
string
category
=
context
.
Arguments
.
ContainsKey
(
QueryParams
.
category
)
?
context
.
Arguments
[
QueryParams
.
category
].
ToString
()
:
string
.
Empty
;
return
service
.
GetPerformances
(
hospitalId
,
year
,
month
,
category
);
}
);
}
}
}
performance/Performance.Api/GraphQLSchema/PerformanceSchema.cs
0 → 100644
View file @
d0649f89
using
GraphQL
;
using
GraphQL.Types
;
namespace
Performance.Api
{
public
class
PerformanceSchema
:
Schema
{
public
PerformanceSchema
(
PerformanceQuery
query
,
IDependencyResolver
dependencyResolver
)
{
Query
=
query
;
DependencyResolver
=
dependencyResolver
;
}
}
}
performance/Performance.Api/GraphQLSchema/QueryParams.cs
0 → 100644
View file @
d0649f89
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
namespace
Performance.Api
{
public
struct
QueryParams
{
public
const
string
hospitalId
=
"hospitalId"
;
public
const
string
year
=
"year"
;
public
const
string
month
=
"month"
;
public
const
string
category
=
"category"
;
}
}
performance/Performance.Api/GraphQLSchema/ReportDataType.cs
0 → 100644
View file @
d0649f89
using
GraphQL.Types
;
using
Performance.DtoModels
;
namespace
Performance.Api
{
public
class
ReportDataType
:
ObjectGraphType
<
ReportData
>
{
public
ReportDataType
()
{
Field
(
x
=>
x
.
ReportID
);
Field
(
x
=>
x
.
ChartType
,
type
:
typeof
(
IdGraphType
));
Field
(
x
=>
x
.
Sort
);
Field
(
x
=>
x
.
Title
);
Field
(
x
=>
x
.
XTitle
);
Field
(
x
=>
x
.
XUnit
);
Field
(
x
=>
x
.
YTitle
);
Field
(
x
=>
x
.
YUnit
);
Field
(
x
=>
x
.
VTitle
);
Field
(
x
=>
x
.
VUnit
);
Field
(
x
=>
x
.
NTitle
);
Field
(
x
=>
x
.
NUnit
);
Field
(
x
=>
x
.
Formula
);
Field
(
x
=>
x
.
DataType
);
Field
(
x
=>
x
.
FilterValue
);
Field
<
ListGraphType
<
ChartDataType
>>(
"charData"
);
}
}
}
performance/Performance.Api/GraphQLSchema/ReportPerformanceType.cs
0 → 100644
View file @
d0649f89
using
GraphQL.Types
;
using
Performance.EntityModels
;
namespace
Performance.Api
{
public
class
ReportPerformanceType
:
ObjectGraphType
<
report_performance
>
{
public
ReportPerformanceType
()
{
Field
(
x
=>
x
.
Id
);
Field
(
x
=>
x
.
HospitalId
);
Field
(
x
=>
x
.
Year
);
Field
(
x
=>
x
.
Month
);
Field
(
x
=>
x
.
PersonnelName
);
Field
(
x
=>
x
.
PersonnelNumber
);
Field
(
x
=>
x
.
AccountingUnit
);
Field
(
x
=>
x
.
Department
);
Field
(
x
=>
x
.
Category
);
Field
(
x
=>
x
.
ItemName
);
Field
(
x
=>
x
.
CurrentValue
);
Field
(
x
=>
x
.
LastIssueValue
);
Field
(
x
=>
x
.
SamePeriodValue
);
Field
(
x
=>
x
.
BudgetValue
);
}
}
}
performance/Performance.Api/Performance.Api.csproj
View file @
d0649f89
...
...
@@ -39,6 +39,7 @@
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="6.0.0" />
<PackageReference Include="CSRedisCore" Version="3.0.45" />
<PackageReference Include="FluentValidation.AspNetCore" Version="8.1.3" />
<PackageReference Include="GraphQL" Version="2.4.0" />
<PackageReference Include="Hangfire" Version="1.6.22" />
<PackageReference Include="Hangfire.MySql.Core" Version="2.2.2" />
<PackageReference Include="Microsoft.AspNetCore.App" />
...
...
performance/Performance.Api/Startup.cs
View file @
d0649f89
...
...
@@ -54,6 +54,8 @@ public void ConfigureServices(IServiceCollection services)
var
connection
=
services
.
BuildServiceProvider
().
GetService
<
IOptions
<
AppConnection
>>();
services
.
AddGraphQLSchemaAndTypes
();
#
region
json
&
fluentvalidation
&
filter
services
...
...
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
d0649f89
...
...
@@ -1388,6 +1388,13 @@
返回日志
</summary>
</member>
<member
name=
"M:Performance.Api.GraphQLController.Post(Performance.Api.GraphQLRequest)"
>
<summary>
GraphQL请求地址
</summary>
<param
name=
"query"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.ClaimService.GetUserId"
>
<summary>
获取当前请求登录ID
...
...
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
View file @
d0649f89
This diff is collapsed.
Click to expand it.
performance/Performance.EntityModels/Context/PerformanceDbContext.cs
View file @
d0649f89
...
...
@@ -110,8 +110,9 @@ public PerformanceDbContext(DbContextOptions<PerformanceDbContext> options)
/// <summary> </summary>
public
virtual
DbSet
<
collect_permission
>
collect_permission
{
get
;
set
;
}
/// <summary> </summary>
/// <summary>
自定义导出
</summary>
public
virtual
DbSet
<
cust_script
>
cust_script
{
get
;
set
;
}
/// <summary> </summary>
public
virtual
DbSet
<
ex_item
>
ex_item
{
get
;
set
;
}
...
...
@@ -163,14 +164,18 @@ public PerformanceDbContext(DbContextOptions<PerformanceDbContext> options)
/// <summary> 部分公共数据抽取SQL </summary>
public
virtual
DbSet
<
mod_dic
>
mod_dic
{
get
;
set
;
}
///// <summary> 医院数据提取脚本 </summary>
// public virtual DbSet<mod_extract> mod_extract { get; set; }
///// <summary> </summary>
// public virtual DbSet<mod_item> mod_item { get; set; }
///// <summary> </summary>
// public virtual DbSet<mod_module> mod_module { get; set; }
///// <summary> </summary>
// public virtual DbSet<mod_special> mod_special { get; set; }
/// <summary> 医院数据提取脚本 </summary>
public
virtual
DbSet
<
mod_extract
>
mod_extract
{
get
;
set
;
}
/// <summary> </summary>
public
virtual
DbSet
<
mod_item
>
mod_item
{
get
;
set
;
}
/// <summary> </summary>
public
virtual
DbSet
<
mod_module
>
mod_module
{
get
;
set
;
}
/// <summary> </summary>
public
virtual
DbSet
<
mod_special
>
mod_special
{
get
;
set
;
}
/// <summary> </summary>
public
virtual
DbSet
<
per_againallot
>
per_againallot
{
get
;
set
;
}
...
...
@@ -216,10 +221,24 @@ public PerformanceDbContext(DbContextOptions<PerformanceDbContext> options)
/// <summary> 条件表 </summary>
public
virtual
DbSet
<
rep_selection
>
rep_selection
{
get
;
set
;
}
public
virtual
DbSet
<
report_original_surgery
>
report_original_surgery
{
get
;
set
;
}
public
virtual
DbSet
<
report_original_stays
>
report_original_stays
{
get
;
set
;
}
/// <summary> </summary>
public
virtual
DbSet
<
report_global
>
report_global
{
get
;
set
;
}
/// <summary> 医院门诊住院人次 </summary>
public
virtual
DbSet
<
report_original_persontime
>
report_original_persontime
{
get
;
set
;
}
/// <summary> 医院门诊住院人次 </summary>
public
virtual
DbSet
<
report_original_stays
>
report_original_stays
{
get
;
set
;
}
/// <summary> 医院手术人次 </summary>
public
virtual
DbSet
<
report_original_surgery
>
report_original_surgery
{
get
;
set
;
}
/// <summary> </summary>
public
virtual
DbSet
<
report_original_workload
>
report_original_workload
{
get
;
set
;
}
/// <summary> </summary>
public
virtual
DbSet
<
report_performance
>
report_performance
{
get
;
set
;
}
/// <summary> 科室核算结果 </summary>
public
virtual
DbSet
<
res_account
>
res_account
{
get
;
set
;
}
...
...
performance/Performance.EntityModels/Entity/ag_compute.cs
View file @
d0649f89
...
...
@@ -30,6 +30,10 @@ public class ag_compute
/// 二次绩效ID
/// </summary>
public
Nullable
<
int
>
SecondId
{
get
;
set
;
}
/// <summary>
/// 科室类型
/// </summary>
public
string
UnitType
{
get
;
set
;
}
/// <summary>
...
...
@@ -58,12 +62,17 @@ public class ag_compute
public
Nullable
<
decimal
>
PerforSumFee
{
get
;
set
;
}
/// <summary>
/// 管理绩效
/// </summary>
public
Nullable
<
decimal
>
PerforManagementFee
{
get
;
set
;
}
/// <summary>
/// 医院其他绩效
/// </summary>
public
Nullable
<
decimal
>
OthePerfor
{
get
;
set
;
}
/// <summary>
///
实发绩效工资金额
///
夜班工作量绩效
/// </summary>
public
Nullable
<
decimal
>
NightWorkPerfor
{
get
;
set
;
}
...
...
performance/Performance.EntityModels/Entity/ag_fixatitem.cs
View file @
d0649f89
performance/Performance.EntityModels/Entity/ag_othersource.cs
View file @
d0649f89
performance/Performance.EntityModels/Entity/ag_secondallot.cs
View file @
d0649f89
...
...
@@ -57,6 +57,26 @@ public class ag_secondallot
public
Nullable
<
decimal
>
RealGiveFee
{
get
;
set
;
}
/// <summary>
/// 效率绩效
/// </summary>
public
Nullable
<
decimal
>
Efficiency
{
get
;
set
;
}
/// <summary>
/// 规模绩效
/// </summary>
public
Nullable
<
decimal
>
Scale
{
get
;
set
;
}
/// <summary>
/// 发放系数
/// </summary>
public
Nullable
<
decimal
>
Grant
{
get
;
set
;
}
/// <summary>
/// 应发管理绩效
/// </summary>
public
Nullable
<
decimal
>
ShouldGiveFee
{
get
;
set
;
}
/// <summary>
/// 状态 1 未提交 2 等待审核 3 审核通过 4 驳回
/// </summary>
public
Nullable
<
int
>
Status
{
get
;
set
;
}
...
...
@@ -87,11 +107,6 @@ public class ag_secondallot
public
string
Remark
{
get
;
set
;
}
/// <summary>
/// 护理部审核状态 1 未提交 2 等待审核 3 审核通过 4 驳回
/// </summary>
public
Nullable
<
int
>
NursingDeptStatus
{
get
;
set
;
}
/// <summary>
/// 护理部审核时间
/// </summary>
public
Nullable
<
DateTime
>
NursingDeptAuditTime
{
get
;
set
;
}
...
...
@@ -105,5 +120,10 @@ public class ag_secondallot
/// 护理部备注
/// </summary>
public
string
NursingDeptRemark
{
get
;
set
;
}
/// <summary>
/// 护理部审核状态 2 等待审核 3 审核通过 4 驳回
/// </summary>
public
Nullable
<
int
>
NursingDeptStatus
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/cof_workitem.cs
View file @
d0649f89
performance/Performance.EntityModels/Entity/collect_data.cs
View file @
d0649f89
//-----------------------------------------------------------------------
// <copyright file="
ag
_data.cs">
// * FileName:
二次分配不固定数据
.cs
// <copyright file="
collect
_data.cs">
// * FileName: .cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -10,7 +10,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
采集数据
///
/// </summary>
[
Table
(
"collect_data"
)]
public
class
collect_data
...
...
@@ -32,7 +32,7 @@ public class collect_data
public
string
SheetName
{
get
;
set
;
}
/// <summary>
///
///
核算单元类别 1 医生组 2护理组 3医技组
/// </summary>
public
string
UnitType
{
get
;
set
;
}
...
...
@@ -45,30 +45,37 @@ public class collect_data
/// 人员姓名
/// </summary>
public
string
EmployeeName
{
get
;
set
;
}
/// <summary>
/// 人员工号
/// </summary>
public
string
JobNumber
{
get
;
set
;
}
/// <summary>
/// 核算单元名称
医技
/// 核算单元名称医技
/// </summary>
public
string
AccountingUnitTechnician
{
get
;
set
;
}
/// <summary>
/// 核算单元名称
护士
/// 核算单元名称护士
/// </summary>
public
string
AccountingUnitNurse
{
get
;
set
;
}
/// <summary>
/// 核算单元名称
医生
/// 核算单元名称医生
/// </summary>
public
string
AccountingUnitDoctor
{
get
;
set
;
}
/// <summary>
/// 科室名称
/// </summary>
public
string
Department
{
get
;
set
;
}
/// <summary>
/// 列头类型名称
/// </summary>
public
string
TypeName
{
get
;
set
;
}
/// <summary>
/// 单元格value
/// </summary>
...
...
performance/Performance.EntityModels/Entity/collect_permission.cs
View file @
d0649f89
//-----------------------------------------------------------------------
// <copyright file="
ag_data
.cs">
// * FileName:
二次分配不固定数据
.cs
// <copyright file="
collect_permission
.cs">
// * FileName: .cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -19,7 +19,7 @@ public class collect_permission
///
/// </summary>
[
Key
]
public
int
ID
{
get
;
set
;
}
public
int
Id
{
get
;
set
;
}
/// <summary>
///
...
...
@@ -32,7 +32,12 @@ public class collect_permission
public
int
UserId
{
get
;
set
;
}
/// <summary>
/// 列头类型名称
///
/// </summary>
public
int
SheetType
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
string
SheetName
{
get
;
set
;
}
...
...
@@ -42,18 +47,18 @@ public class collect_permission
public
string
HeadName
{
get
;
set
;
}
/// <summary>
/// 0 可
读可写
1 只读
/// 0 可
见
1 只读
/// </summary>
public
int
?
Readnoly
{
get
;
set
;
}
public
int
Visible
{
get
;
set
;
}
/// <summary>
///
是否附带上次绩效 0 不附带 1 附带
///
0 可读可写 1 只读
/// </summary>
public
int
AttachLast
{
get
;
set
;
}
public
int
SheetType
{
get
;
set
;
}
public
int
Readnoly
{
get
;
set
;
}
/// <summary>
///
0 可见 1 不可见
///
是否附带上次绩效 0 附带 1 不附带
/// </summary>
public
int
Visible
{
get
;
set
;
}
public
int
AttachLast
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/cust_script.cs
View file @
d0649f89
//-----------------------------------------------------------------------
// <copyright file="cust_script.cs">
// * FileName:
cust_script
.cs
// <copyright file="
cust_script.cs">
// * FileName:
自定义导出
.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -19,26 +19,38 @@ public class cust_script
///
/// </summary>
[
Key
]
public
int
ID
{
get
;
set
;
}
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 医院ID
/// </summary>
public
int
HospitalId
{
get
;
set
;
}
/// <summary>
/// 是否允许一次分配下载 1 允许 2 禁止
/// </summary>
public
int
IsOnceAllot
{
get
;
set
;
}
/// <summary>
/// 是否允许二次分配下载 1 允许 2 禁止
/// </summary>
public
int
IsSecondAllot
{
get
;
set
;
}
/// <summary>
/// 名称
/// </summary>
public
string
Name
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
string
Script
{
get
;
set
;
}
/// <summary>
/// 配置Id
/// </summary>
public
int
ConfigId
{
get
;
set
;
}
/// <summary>
/// 是否可用 1 可用 2 不可用
/// </summary>
...
...
performance/Performance.EntityModels/Entity/ex_script.cs
View file @
d0649f89
performance/Performance.EntityModels/Entity/im_accountbasic.cs
View file @
d0649f89
...
...
@@ -46,10 +46,10 @@ public class im_accountbasic
/// </summary>
public
string
NurseAccountingUnit
{
get
;
set
;
}
///
//
<summary>
///
//
科室
///
//
</summary>
//
public string Department { get; set; }
/// <summary>
/// 科室
/// </summary>
public
string
Department
{
get
;
set
;
}
/// <summary>
/// 是否带入平均计算 是 否
...
...
@@ -61,10 +61,10 @@ public class im_accountbasic
/// </summary>
public
Nullable
<
decimal
>
PermanentStaff
{
get
;
set
;
}
///
//
<summary>
///
//
科主任数量
///
//
</summary>
//
public Nullable<decimal> DoctorDirectorNumber { get; set; }
/// <summary>
/// 科主任数量
/// </summary>
public
Nullable
<
decimal
>
DoctorDirectorNumber
{
get
;
set
;
}
/// <summary>
/// 核算单元医生数量
...
...
@@ -76,10 +76,10 @@ public class im_accountbasic
/// </summary>
public
Nullable
<
decimal
>
DoctorBasicFactor
{
get
;
set
;
}
///
//
<summary>
///
//
倾斜系数
///
//
</summary>
//
public Nullable<decimal> DoctorSlopeFactor { get; set; }
/// <summary>
/// 倾斜系数
/// </summary>
public
Nullable
<
decimal
>
DoctorSlopeFactor
{
get
;
set
;
}
/// <summary>
/// 规模绩效系数
...
...
@@ -116,10 +116,10 @@ public class im_accountbasic
/// </summary>
public
Nullable
<
decimal
>
MaterialsExtra
{
get
;
set
;
}
///
//
<summary>
///
//
医院奖罚
///
//
</summary>
//
public Nullable<decimal> DoctorExtra { get; set; }
/// <summary>
/// 医院奖罚
/// </summary>
public
Nullable
<
decimal
>
DoctorExtra
{
get
;
set
;
}
/// <summary>
/// 考核对分率
...
...
@@ -141,70 +141,70 @@ public class im_accountbasic
/// </summary>
public
Nullable
<
decimal
>
MinimumFactor
{
get
;
set
;
}
///
//
<summary>
///
//
护士长人数
///
//
</summary>
//
public Nullable<decimal> NurseHeadNumber { get; set; }
///
//
<summary>
///
//
护士人数
///
//
</summary>
//
public Nullable<decimal> NurseNumber { get; set; }
///
//
<summary>
///
//
护理基础系数
///
//
</summary>
//
public Nullable<decimal> NurseBasicFactor { get; set; }
///
//
<summary>
///
//
倾斜系数
///
//
</summary>
//
public Nullable<decimal> NurseSlopeFactor { get; set; }
///
//
<summary>
///
//
规模绩效系数
///
//
</summary>
//
public Nullable<decimal> NurseScale { get; set; }
///
//
<summary>
///
//
效率绩效系数
///
//
</summary>
//
public Nullable<decimal> NurseEffic { get; set; }
///
//
<summary>
///
//
发放系数
///
//
</summary>
//
public Nullable<decimal> NurseGrant { get; set; }
///
//
<summary>
///
//
其他绩效1
///
//
</summary>
//
public Nullable<decimal> NurseOtherPerfor1 { get; set; }
///
//
<summary>
///
//
其他绩效2
///
//
</summary>
//
public Nullable<decimal> NurseOtherPerfor2 { get; set; }
///
//
<summary>
///
//
医院奖罚
///
//
</summary>
//
public Nullable<decimal> NurseExtra { get; set; }
///
//
<summary>
///
//
考核对分率
///
//
</summary>
//
public Nullable<decimal> NurseScoringAverage { get; set; }
///
//
<summary>
///
//
调节系数
///
//
</summary>
//
public Nullable<decimal> NurseAdjustFactor { get; set; }
///
//
<summary>
///
//
工作量倾斜系数
///
//
</summary>
//
public Nullable<decimal> WorkSlopeFactor { get; set; }
/// <summary>
/// 护士长人数
/// </summary>
public
Nullable
<
decimal
>
NurseHeadNumber
{
get
;
set
;
}
/// <summary>
/// 护士人数
/// </summary>
public
Nullable
<
decimal
>
NurseNumber
{
get
;
set
;
}
/// <summary>
/// 护理基础系数
/// </summary>
public
Nullable
<
decimal
>
NurseBasicFactor
{
get
;
set
;
}
/// <summary>
/// 倾斜系数
/// </summary>
public
Nullable
<
decimal
>
NurseSlopeFactor
{
get
;
set
;
}
/// <summary>
/// 规模绩效系数
/// </summary>
public
Nullable
<
decimal
>
NurseScale
{
get
;
set
;
}
/// <summary>
/// 效率绩效系数
/// </summary>
public
Nullable
<
decimal
>
NurseEffic
{
get
;
set
;
}
/// <summary>
/// 发放系数
/// </summary>
public
Nullable
<
decimal
>
NurseGrant
{
get
;
set
;
}
/// <summary>
/// 其他绩效1
/// </summary>
public
Nullable
<
decimal
>
NurseOtherPerfor1
{
get
;
set
;
}
/// <summary>
/// 其他绩效2
/// </summary>
public
Nullable
<
decimal
>
NurseOtherPerfor2
{
get
;
set
;
}
/// <summary>
/// 医院奖罚
/// </summary>
public
Nullable
<
decimal
>
NurseExtra
{
get
;
set
;
}
/// <summary>
/// 考核对分率
/// </summary>
public
Nullable
<
decimal
>
NurseScoringAverage
{
get
;
set
;
}
/// <summary>
/// 调节系数
/// </summary>
public
Nullable
<
decimal
>
NurseAdjustFactor
{
get
;
set
;
}
/// <summary>
/// 工作量倾斜系数
/// </summary>
public
Nullable
<
decimal
>
WorkSlopeFactor
{
get
;
set
;
}
/// <summary>
///
...
...
@@ -220,10 +220,12 @@ public class im_accountbasic
/// 考核前其他绩效
/// </summary>
public
Nullable
<
decimal
>
AssessBeforeOtherFee
{
get
;
set
;
}
/// <summary>
/// 考核后其他绩效
/// </summary>
public
Nullable
<
decimal
>
AssessLaterOtherFee
{
get
;
set
;
}
/// <summary>
/// 调节后其他绩效
/// </summary>
...
...
performance/Performance.EntityModels/Entity/im_data.cs
View file @
d0649f89
...
...
@@ -42,23 +42,24 @@ public class im_data
public
Nullable
<
int
>
RowNumber
{
get
;
set
;
}
/// <summary>
///
核算单元名称
///
人员姓名
/// </summary>
public
string
AccountingUnit
{
get
;
set
;
}
public
string
EmployeeName
{
get
;
set
;
}
/// <summary>
///
科室名称
///
人员工号
/// </summary>
public
string
Department
{
get
;
set
;
}
public
string
JobNumber
{
get
;
set
;
}
/// <summary>
///
人员姓名
///
核算单元名称
/// </summary>
public
string
EmployeeName
{
get
;
set
;
}
public
string
AccountingUnit
{
get
;
set
;
}
/// <summary>
///
人员工号
///
科室名称
/// </summary>
public
string
JobNumber
{
get
;
set
;
}
public
string
Department
{
get
;
set
;
}
/// <summary>
/// 列头类型名称
...
...
performance/Performance.EntityModels/Entity/im_employee.cs
View file @
d0649f89
...
...
@@ -117,6 +117,21 @@ public class im_employee
public
Nullable
<
decimal
>
OtherPerfor
{
get
;
set
;
}
/// <summary>
/// 其他绩效2
/// </summary>
public
Nullable
<
decimal
>
OtherPerfor2
{
get
;
set
;
}
/// <summary>
/// 其他绩效3
/// </summary>
public
Nullable
<
decimal
>
OtherPerfor3
{
get
;
set
;
}
/// <summary>
/// 其他绩效4
/// </summary>
public
Nullable
<
decimal
>
OtherPerfor4
{
get
;
set
;
}
/// <summary>
/// 夜班费
/// </summary>
public
Nullable
<
decimal
>
NightWorkPerfor
{
get
;
set
;
}
...
...
@@ -145,14 +160,17 @@ public class im_employee
///
/// </summary>
public
Nullable
<
int
>
UpdateUser
{
get
;
set
;
}
/// <summary>
/// 考核前其他绩效
/// </summary>
public
Nullable
<
decimal
>
AssessBeforeOtherFee
{
get
;
set
;
}
/// <summary>
/// 考核后其他绩效
/// </summary>
public
Nullable
<
decimal
>
AssessLaterOtherFee
{
get
;
set
;
}
/// <summary>
/// 调节后其他绩效
/// </summary>
...
...
performance/Performance.EntityModels/Entity/im_employee_clinic.cs
View file @
d0649f89
...
...
@@ -72,21 +72,11 @@ public class im_employee_clinic
public
Nullable
<
decimal
>
Basics
{
get
;
set
;
}
/// <summary>
/// 实际人均绩效
/// </summary>
public
Nullable
<
decimal
>
FitPeopleValue
{
get
;
set
;
}
/// <summary>
/// 岗位系数
/// </summary>
public
Nullable
<
decimal
>
PostCoefficient
{
get
;
set
;
}
/// <summary>
/// 效率绩效人数
/// </summary>
public
Nullable
<
decimal
>
PermanentStaff
{
get
;
set
;
}
/// <summary>
/// 效率绩效系数
/// </summary>
public
Nullable
<
decimal
>
Efficiency
{
get
;
set
;
}
...
...
@@ -102,11 +92,6 @@ public class im_employee_clinic
public
Nullable
<
decimal
>
Management
{
get
;
set
;
}
/// <summary>
/// 其他管理绩效
/// </summary>
public
Nullable
<
decimal
>
OtherManagePerfor
{
get
;
set
;
}
/// <summary>
/// 考核得分率
/// </summary>
public
Nullable
<
decimal
>
ScoreAverageRate
{
get
;
set
;
}
...
...
@@ -132,6 +117,16 @@ public class im_employee_clinic
public
Nullable
<
decimal
>
OtherPerfor
{
get
;
set
;
}
/// <summary>
/// 其他管理绩效
/// </summary>
public
Nullable
<
decimal
>
OtherManagePerfor
{
get
;
set
;
}
/// <summary>
/// 夜班费
/// </summary>
public
Nullable
<
decimal
>
NightWorkPerfor
{
get
;
set
;
}
/// <summary>
/// 医院奖罚
/// </summary>
public
Nullable
<
decimal
>
Punishment
{
get
;
set
;
}
...
...
@@ -155,14 +150,27 @@ public class im_employee_clinic
///
/// </summary>
public
Nullable
<
int
>
UpdateUser
{
get
;
set
;
}
/// <summary>
/// 效率绩效人数
/// </summary>
public
Nullable
<
decimal
>
PermanentStaff
{
get
;
set
;
}
/// <summary>
/// 实际人均绩效
/// </summary>
public
Nullable
<
decimal
>
FitPeopleValue
{
get
;
set
;
}
/// <summary>
/// 考核前其他绩效
/// </summary>
public
Nullable
<
decimal
>
AssessBeforeOtherFee
{
get
;
set
;
}
/// <summary>
/// 考核后其他绩效
/// </summary>
public
Nullable
<
decimal
>
AssessLaterOtherFee
{
get
;
set
;
}
/// <summary>
/// 调节后其他绩效
/// </summary>
...
...
performance/Performance.EntityModels/Entity/im_employee_logistics.cs
View file @
d0649f89
//-----------------------------------------------------------------------
// <copyright file=" im_employee_
clinic
.cs">
// <copyright file=" im_employee_
logistics
.cs">
// * FileName: .cs
// </copyright>
//-----------------------------------------------------------------------
...
...
@@ -72,7 +72,7 @@ public class im_employee_logistics
public
string
PersonnelNumber
{
get
;
set
;
}
/// <summary>
///
医生
姓名
/// 姓名
/// </summary>
public
string
DoctorName
{
get
;
set
;
}
...
...
@@ -86,11 +86,6 @@ public class im_employee_logistics
/// </summary>
public
Nullable
<
decimal
>
PostCoefficient
{
get
;
set
;
}
///// <summary>
///// 参加工作时间
///// </summary>
//public Nullable<DateTime> WorkTime { get; set; }
/// <summary>
/// 考核得分率
/// </summary>
...
...
@@ -101,36 +96,11 @@ public class im_employee_logistics
/// </summary>
public
Nullable
<
decimal
>
Attendance
{
get
;
set
;
}
///// <summary>
///// 核算单元医生数
///// </summary>
//public Nullable<int> PeopleNumber { get; set; }
///// <summary>
///// 工作量绩效
///// </summary>
//public Nullable<decimal> Workload { get; set; }
/// <summary>
/// 其他绩效
/// </summary>
public
Nullable
<
decimal
>
OtherPerfor
{
get
;
set
;
}
///// <summary>
///// 医院奖罚
///// </summary>
//public Nullable<decimal> Punishment { get; set; }
///// <summary>
///// 调节系数
///// </summary>
//public Nullable<decimal> Adjust { get; set; }
///// <summary>
///// 发放系数
///// </summary>
//public Nullable<decimal> Grant { get; set; }
/// <summary>
///
/// </summary>
...
...
@@ -145,10 +115,12 @@ public class im_employee_logistics
/// 考核前其他绩效
/// </summary>
public
Nullable
<
decimal
>
AssessBeforeOtherFee
{
get
;
set
;
}
/// <summary>
/// 考核后其他绩效
/// </summary>
public
Nullable
<
decimal
>
AssessLaterOtherFee
{
get
;
set
;
}
/// <summary>
/// 调节后其他绩效
/// </summary>
...
...
performance/Performance.EntityModels/Entity/log_dbug.cs
View file @
d0649f89
performance/Performance.EntityModels/Entity/mod_extract.cs
View file @
d0649f89
//
//
-----------------------------------------------------------------------
//
//
<copyright file=" mod_extract.cs">
//
//
* FileName: 医院数据提取脚本.cs
//
//
</copyright>
//
//
-----------------------------------------------------------------------
//
using System;
//
using System.ComponentModel.DataAnnotations;
//
using System.ComponentModel.DataAnnotations.Schema;
//
namespace Performance.EntityModels
//
{
//
/// <summary>
//
/// 医院数据提取脚本
//
/// </summary>
//
[Table("mod_extract")]
//
public class mod_extract
//
{
//
/// <summary>
//
///
//
/// </summary>
//
[Key]
//
public int Id { get; set; }
//
/// <summary>
//
/// 医院ID
//
/// </summary>
//
public Nullable<int> HospitalId { get; set; }
//
/// <summary>
//
/// 当前脚本提取内容名称
//
/// </summary>
//
public string EName { get; set; }
//
/// <summary>
//
/// 执行脚本
//
/// </summary>
//
public string ExecuteScript { get; set; }
//
/// <summary>
//
/// 当前脚本类型 1 收入整表 2 单项数据提取
//
/// </summary>
//
public Nullable<int> ExecuteType { get; set; }
//
/// <summary>
//
/// 数据库来源类型 1 标准库 2 绩效库
//
/// </summary>
//
public Nullable<int> SourceType { get; set; }
//
/// <summary>
//
/// 描述
//
/// </summary>
//
public string Description { get; set; }
//
/// <summary>
//
/// 是否可用 1 可用 2 不可用
//
/// </summary>
//
public Nullable<int> IsEnable { get; set; }
//
}
//
}
//-----------------------------------------------------------------------
// <copyright file=" mod_extract.cs">
// * FileName: 医院数据提取脚本.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
{
/// <summary>
/// 医院数据提取脚本
/// </summary>
[
Table
(
"mod_extract"
)]
public
class
mod_extract
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 医院ID
/// </summary>
public
Nullable
<
int
>
HospitalId
{
get
;
set
;
}
/// <summary>
/// 当前脚本提取内容名称
/// </summary>
public
string
EName
{
get
;
set
;
}
/// <summary>
/// 执行脚本
/// </summary>
public
string
ExecuteScript
{
get
;
set
;
}
/// <summary>
/// 当前脚本类型 1 收入整表 2 单项数据提取
/// </summary>
public
Nullable
<
int
>
ExecuteType
{
get
;
set
;
}
/// <summary>
/// 数据库来源类型 1 标准库 2 绩效库
/// </summary>
public
Nullable
<
int
>
SourceType
{
get
;
set
;
}
/// <summary>
/// 描述
/// </summary>
public
string
Description
{
get
;
set
;
}
/// <summary>
/// 是否可用 1 可用 2 不可用
/// </summary>
public
Nullable
<
int
>
IsEnable
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/mod_item.cs
View file @
d0649f89
//
//
-----------------------------------------------------------------------
//
//
<copyright file=" mod_item.cs">
//
//
* FileName: .cs
//
//
</copyright>
//
//
-----------------------------------------------------------------------
//
using System;
//
using System.ComponentModel.DataAnnotations;
//
using System.ComponentModel.DataAnnotations.Schema;
//-----------------------------------------------------------------------
// <copyright file=" mod_item.cs">
// * FileName: .cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
//
namespace Performance.EntityModels
//
{
//
/// <summary>
//
///
//
/// </summary>
//
[Table("mod_item")]
//
public class mod_item
//
{
//
/// <summary>
//
///
//
/// </summary>
//
[Key]
//
public int Id { get; set; }
namespace
Performance.EntityModels
{
/// <summary>
///
/// </summary>
[
Table
(
"mod_item"
)]
public
class
mod_item
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
//
/// <summary>
//
///
//
/// </summary>
//
public Nullable<int> ModuleId { get; set; }
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
ModuleId
{
get
;
set
;
}
//
/// <summary>
//
/// 绩效考核项
//
/// </summary>
//
public string ItemName { get; set; }
/// <summary>
/// 绩效考核项
/// </summary>
public
string
ItemName
{
get
;
set
;
}
//
/// <summary>
//
/// 默认系数或医生系数
//
/// </summary>
//
public Nullable<decimal> FactorValue1 { get; set; }
/// <summary>
/// 默认系数或医生系数
/// </summary>
public
Nullable
<
decimal
>
FactorValue1
{
get
;
set
;
}
//
/// <summary>
//
/// 护理系数
//
/// </summary>
//
public Nullable<decimal> FactorValue2 { get; set; }
/// <summary>
/// 护理系数
/// </summary>
public
Nullable
<
decimal
>
FactorValue2
{
get
;
set
;
}
//
/// <summary>
//
/// 医技系数
//
/// </summary>
//
public Nullable<decimal> FactorValue3 { get; set; }
/// <summary>
/// 医技系数
/// </summary>
public
Nullable
<
decimal
>
FactorValue3
{
get
;
set
;
}
//
/// <summary>
//
/// 抽取绩效值SQL
//
/// </summary>
//
public Nullable<int> ExtractId { get; set; }
/// <summary>
/// 抽取绩效值SQL
/// </summary>
public
Nullable
<
int
>
ExtractId
{
get
;
set
;
}
//
/// <summary>
//
/// 数据库地址
//
/// </summary>
//
public Nullable<int> ConfigId { get; set; }
/// <summary>
/// 数据库地址
/// </summary>
public
Nullable
<
int
>
ConfigId
{
get
;
set
;
}
//
/// <summary>
//
/// 用户选定抽取范围
//
/// </summary>
//
public string SelectionRange { get; set; }
/// <summary>
/// 用户选定抽取范围
/// </summary>
public
string
SelectionRange
{
get
;
set
;
}
//
/// <summary>
//
/// 只读 0、否 1、是
//
/// </summary>
//
public Nullable<int> ReadOnly { get; set; }
//
}
//
}
/// <summary>
/// 只读 0、否 1、是
/// </summary>
public
Nullable
<
int
>
ReadOnly
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/mod_module.cs
View file @
d0649f89
//
//
-----------------------------------------------------------------------
//
//
<copyright file=" mod_module.cs">
//
//
* FileName: .cs
//
//
</copyright>
//
//
-----------------------------------------------------------------------
//
using System;
//
using System.ComponentModel.DataAnnotations;
//
using System.ComponentModel.DataAnnotations.Schema;
//-----------------------------------------------------------------------
// <copyright file=" mod_module.cs">
// * FileName: .cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
//
namespace Performance.EntityModels
//
{
//
/// <summary>
//
///
//
/// </summary>
//
[Table("mod_module")]
//
public class mod_module
//
{
//
/// <summary>
//
///
//
/// </summary>
//
[Key]
//
public int Id { get; set; }
namespace
Performance.EntityModels
{
/// <summary>
///
/// </summary>
[
Table
(
"mod_module"
)]
public
class
mod_module
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
//
/// <summary>
//
///
//
/// </summary>
//
public Nullable<int> HospitalId { get; set; }
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
HospitalId
{
get
;
set
;
}
//
/// <summary>
//
///
//
/// </summary>
//
public Nullable<int> SheetType { get; set; }
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
SheetType
{
get
;
set
;
}
//
/// <summary>
//
///
//
/// </summary>
//
public string ModuleName { get; set; }
/// <summary>
///
/// </summary>
public
string
ModuleName
{
get
;
set
;
}
//
/// <summary>
//
///
//
/// </summary>
//
public string Description { get; set; }
/// <summary>
///
/// </summary>
public
string
Description
{
get
;
set
;
}
//
/// <summary>
//
/// 提取脚本ID
//
/// </summary>
//
public Nullable<int> ExtractId { get; set; }
/// <summary>
/// 提取脚本ID
/// </summary>
public
Nullable
<
int
>
ExtractId
{
get
;
set
;
}
//
/// <summary>
//
/// 数据库地址
//
/// </summary>
//
public Nullable<int> ConfigId { get; set; }
/// <summary>
/// 数据库地址
/// </summary>
public
Nullable
<
int
>
ConfigId
{
get
;
set
;
}
//
/// <summary>
//
/// 只读 0、否 1、是
//
/// </summary>
//
public Nullable<int> ReadOnly { get; set; }
/// <summary>
/// 只读 0、否 1、是
/// </summary>
public
Nullable
<
int
>
ReadOnly
{
get
;
set
;
}
//
/// <summary>
//
/// 是否生成Item 0、否 1、是
//
/// </summary>
//
public Nullable<int> IsGenerated { get; set; }
//
}
//
}
/// <summary>
/// 是否生成Item 0、否 1、是
/// </summary>
public
Nullable
<
int
>
IsGenerated
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/mod_special.cs
View file @
d0649f89
//
//
-----------------------------------------------------------------------
//
//
<copyright file=" mod_special.cs">
//
//
* FileName: .cs
//
//
</copyright>
//
//
-----------------------------------------------------------------------
//
using System;
//
using System.ComponentModel.DataAnnotations;
//
using System.ComponentModel.DataAnnotations.Schema;
//
namespace Performance.EntityModels
//
{
//
/// <summary>
//
///
//
/// </summary>
//
[Table("mod_special")]
//
public class mod_special
//
{
//
/// <summary>
//
///
//
/// </summary>
//
[Key]
//
public int Id { get; set; }
//
/// <summary>
//
///
//
/// </summary>
//
public Nullable<int> HospitalId { get; set; }
//
/// <summary>
//
/// 科室
//
/// </summary>
//
public string Department { get; set; }
//
/// <summary>
//
/// 量化指标
//
/// </summary>
//
public string Target { get; set; }
//
/// <summary>
//
/// 量化指标绩效分值
//
/// </summary>
//
public Nullable<decimal> TargetFactor { get; set; }
//
/// <summary>
//
/// 调节系数
//
/// </summary>
//
public Nullable<decimal> AdjustFactor { get; set; }
//
/// <summary>
//
/// 抽取绩效值SQL
//
/// </summary>
//
public Nullable<int> ExtractId { get; set; }
//
/// <summary>
//
/// 数据库地址
//
/// </summary>
//
public Nullable<int> ConfigId { get; set; }
//
}
//
}
//-----------------------------------------------------------------------
// <copyright file=" mod_special.cs">
// * FileName: .cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
{
/// <summary>
///
/// </summary>
[
Table
(
"mod_special"
)]
public
class
mod_special
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
HospitalId
{
get
;
set
;
}
/// <summary>
/// 科室
/// </summary>
public
string
Department
{
get
;
set
;
}
/// <summary>
/// 量化指标
/// </summary>
public
string
Target
{
get
;
set
;
}
/// <summary>
/// 量化指标绩效分值
/// </summary>
public
Nullable
<
decimal
>
TargetFactor
{
get
;
set
;
}
/// <summary>
/// 调节系数
/// </summary>
public
Nullable
<
decimal
>
AdjustFactor
{
get
;
set
;
}
/// <summary>
/// 抽取绩效值SQL
/// </summary>
public
Nullable
<
int
>
ExtractId
{
get
;
set
;
}
/// <summary>
/// 数据库地址
/// </summary>
public
Nullable
<
int
>
ConfigId
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/per_allot.cs
View file @
d0649f89
performance/Performance.EntityModels/Entity/per_apr_amount.cs
View file @
d0649f89
...
...
@@ -59,7 +59,7 @@ public class per_apr_amount
/// <summary>
/// 状态 1 未提交 2 等待审核 3 审核通过 4 驳回
/// </summary>
public
int
Status
{
get
;
set
;
}
public
Nullable
<
int
>
Status
{
get
;
set
;
}
/// <summary>
/// 审核时间
...
...
@@ -72,11 +72,6 @@ public class per_apr_amount
public
Nullable
<
int
>
AuditUser
{
get
;
set
;
}
/// <summary>
/// 备注
/// </summary>
public
string
Remark
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
DateTime
>
CreateDate
{
get
;
set
;
}
...
...
@@ -85,5 +80,10 @@ public class per_apr_amount
///
/// </summary>
public
Nullable
<
int
>
CreateUser
{
get
;
set
;
}
/// <summary>
/// 备注
/// </summary>
public
string
Remark
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/per_employee.cs
View file @
d0649f89
performance/Performance.EntityModels/Entity/report_global.cs
0 → 100644
View file @
d0649f89
//-----------------------------------------------------------------------
// <copyright file=" report_global.cs">
// * FileName: .cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
{
/// <summary>
///
/// </summary>
[
Table
(
"report_global"
)]
public
class
report_global
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 医院ID
/// </summary>
public
int
HospitalID
{
get
;
set
;
}
/// <summary>
/// 类别
/// </summary>
public
string
Category
{
get
;
set
;
}
/// <summary>
/// 年份
/// </summary>
public
Nullable
<
int
>
Year
{
get
;
set
;
}
/// <summary>
/// 值
/// </summary>
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/report_original_persontime.cs
View file @
d0649f89
//-----------------------------------------------------------------------
// <copyright file=" report_original_
workload
.cs">
// * FileName: .cs
//-----------------------------------------------------------------------
// <copyright file=" report_original_
persontime
.cs">
// * FileName:
医院门诊住院人次
.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -10,7 +10,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
///
医院门诊住院人次
/// </summary>
[
Table
(
"report_original_persontime"
)]
public
class
report_original_persontime
...
...
@@ -19,7 +19,7 @@ public class report_original_persontime
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
public
int
ID
{
get
;
set
;
}
/// <summary>
///
...
...
performance/Performance.EntityModels/Entity/report_original_stays.cs
View file @
d0649f89
//-----------------------------------------------------------------------
// <copyright file=" report_original_
workload
.cs">
// * FileName: .cs
//-----------------------------------------------------------------------
// <copyright file=" report_original_
stays
.cs">
// * FileName:
医院门诊住院人次
.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -10,7 +10,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
///
医院门诊住院人次
/// </summary>
[
Table
(
"report_original_stays"
)]
public
class
report_original_stays
...
...
@@ -19,7 +19,7 @@ public class report_original_stays
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
public
int
ID
{
get
;
set
;
}
/// <summary>
///
...
...
performance/Performance.EntityModels/Entity/report_original_surgery.cs
View file @
d0649f89
//-----------------------------------------------------------------------
// <copyright file=" report_original_
workload
.cs">
// * FileName: .cs
//-----------------------------------------------------------------------
// <copyright file=" report_original_
surgery
.cs">
// * FileName:
医院手术人次
.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -10,7 +10,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
///
医院手术人次
/// </summary>
[
Table
(
"report_original_surgery"
)]
public
class
report_original_surgery
...
...
@@ -19,7 +19,7 @@ public class report_original_surgery
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
public
int
ID
{
get
;
set
;
}
/// <summary>
///
...
...
performance/Performance.EntityModels/Entity/report_original_workload.cs
View file @
d0649f89
performance/Performance.EntityModels/Entity/report_performance.cs
0 → 100644
View file @
d0649f89
//-----------------------------------------------------------------------
// <copyright file=" report_performance.cs">
// * FileName: .cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
{
[
Table
(
"report_performance"
)]
public
class
report_performance
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 医院Id
/// </summary>
public
int
HospitalId
{
get
;
set
;
}
/// <summary>
/// 年
/// </summary>
public
int
Year
{
get
;
set
;
}
/// <summary>
/// 月
/// </summary>
public
int
Month
{
get
;
set
;
}
/// <summary>
/// 人员信息
/// </summary>
public
string
PersonnelName
{
get
;
set
;
}
/// <summary>
/// 人员工号
/// </summary>
public
string
PersonnelNumber
{
get
;
set
;
}
/// <summary>
/// 核算单元
/// </summary>
public
string
AccountingUnit
{
get
;
set
;
}
/// <summary>
/// 医院科室
/// </summary>
public
string
Department
{
get
;
set
;
}
/// <summary>
/// 统计大分类
/// </summary>
public
string
Category
{
get
;
set
;
}
/// <summary>
/// 统计小分类
/// </summary>
public
string
ItemName
{
get
;
set
;
}
/// <summary>
/// 本期
/// </summary>
public
decimal
CurrentValue
{
get
;
set
;
}
/// <summary>
/// 上期
/// </summary>
public
decimal
LastIssueValue
{
get
;
set
;
}
/// <summary>
/// 同期
/// </summary>
public
decimal
SamePeriodValue
{
get
;
set
;
}
/// <summary>
/// 预算
/// </summary>
public
decimal
BudgetValue
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/res_account.cs
View file @
d0649f89
...
...
@@ -51,15 +51,15 @@ public class res_account
/// </summary>
public
string
IncludeAvgCalculate
{
get
;
set
;
}
///
//
<summary>
///
//
定科人数
///
//
</summary>
//
public Nullable<decimal> PermanentStaff { get; set; }
/// <summary>
/// 定科人数
/// </summary>
public
Nullable
<
decimal
>
PermanentStaff
{
get
;
set
;
}
///
//
<summary>
///
//
科主任/护士长数量
///
//
</summary>
//
public Nullable<decimal> ManagerNumber { get; set; }
/// <summary>
/// 科主任/护士长数量
/// </summary>
public
Nullable
<
decimal
>
ManagerNumber
{
get
;
set
;
}
/// <summary>
/// 核算单元医生数量
...
...
@@ -162,30 +162,33 @@ public class res_account
public
Nullable
<
decimal
>
RealGiveFee
{
get
;
set
;
}
/// <summary>
/// 备注
/// </summary>
public
string
Remark
{
get
;
set
;
}
/// <summary>
/// 变更日志
/// </summary>
public
string
ChangeLog
{
get
;
set
;
}
/// <summary>
/// 考核前其他绩效
/// </summary>
public
Nullable
<
decimal
>
AssessBeforeOtherFee
{
get
;
set
;
}
/// <summary>
/// 考核后其他绩效
/// </summary>
public
Nullable
<
decimal
>
AssessLaterOtherFee
{
get
;
set
;
}
/// <summary>
/// 调节后其他绩效
/// </summary>
public
Nullable
<
decimal
>
AdjustLaterOtherFee
{
get
;
set
;
}
/// <summary>
/// 考核后绩效
/// </summary>
public
Nullable
<
decimal
>
AssessLaterPerforTotal
{
get
;
set
;
}
/// <summary>
/// 备注
/// </summary>
public
string
Remark
{
get
;
set
;
}
/// <summary>
/// 变更日志
/// </summary>
public
string
ChangeLog
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/res_compute.cs
View file @
d0649f89
...
...
@@ -52,12 +52,12 @@ public class res_compute
public
string
FitPeople
{
get
;
set
;
}
/// <summary>
///
绩效基础核算参考值
///
/// </summary>
public
Nullable
<
decimal
>
FitPeopleValue
{
get
;
set
;
}
/// <summary>
///
绩效基数核算参考对象取值比例(如临床科室护士*95%)
///
/// </summary>
public
Nullable
<
decimal
>
FitPeopleRatio
{
get
;
set
;
}
...
...
@@ -137,6 +137,26 @@ public class res_compute
public
Nullable
<
decimal
>
OtherPerfor
{
get
;
set
;
}
/// <summary>
/// 其他绩效2(来自人员名单)
/// </summary>
public
Nullable
<
decimal
>
OtherPerfor2
{
get
;
set
;
}
/// <summary>
/// 其他绩效3(来自人员名单)
/// </summary>
public
Nullable
<
decimal
>
OtherPerfor3
{
get
;
set
;
}
/// <summary>
/// 其他绩效4(来自人员名单)
/// </summary>
public
Nullable
<
decimal
>
OtherPerfor4
{
get
;
set
;
}
/// <summary>
/// 其他管理绩效(来自人员名单)
/// </summary>
public
Nullable
<
decimal
>
OtherManagePerfor
{
get
;
set
;
}
/// <summary>
/// 夜班费
/// </summary>
public
Nullable
<
decimal
>
NightWorkPerfor
{
get
;
set
;
}
...
...
@@ -197,11 +217,6 @@ public class res_compute
public
Nullable
<
decimal
>
ManagerNumber
{
get
;
set
;
}
/// <summary>
/// 其他管理绩效
/// </summary>
public
Nullable
<
decimal
>
OtherManagePerfor
{
get
;
set
;
}
/// <summary>
/// 核算单元人员数量
/// </summary>
public
Nullable
<
decimal
>
MedicalNumber
{
get
;
set
;
}
...
...
@@ -215,10 +230,12 @@ public class res_compute
/// 考核前其他绩效
/// </summary>
public
Nullable
<
decimal
>
AssessBeforeOtherFee
{
get
;
set
;
}
/// <summary>
/// 考核后其他绩效
/// </summary>
public
Nullable
<
decimal
>
AssessLaterOtherFee
{
get
;
set
;
}
/// <summary>
/// 调节后其他绩效
/// </summary>
...
...
performance/Performance.EntityModels/Entity/res_reserved.cs
View file @
d0649f89
...
...
@@ -31,6 +31,9 @@ public class res_reserved
/// </summary>
public
int
Year
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
string
UnitType
{
get
;
set
;
}
/// <summary>
...
...
performance/Performance.EntityModels/Entity/res_specialunit.cs
View file @
d0649f89
...
...
@@ -115,18 +115,22 @@ public class res_specialunit
/// 业绩总绩效
/// </summary>
public
Nullable
<
decimal
>
ResultsTotalFee
{
get
;
set
;
}
/// <summary>
/// 考核前绩效
/// </summary>
public
Nullable
<
decimal
>
PerforTotal
{
get
;
set
;
}
/// <summary>
/// 考核前其他绩效
/// </summary>
public
Nullable
<
decimal
>
AssessBeforeOtherFee
{
get
;
set
;
}
/// <summary>
/// 考核后其他绩效
/// </summary>
public
Nullable
<
decimal
>
AssessLaterOtherFee
{
get
;
set
;
}
/// <summary>
/// 调节后其他绩效
/// </summary>
...
...
performance/Performance.EntityModels/Entity/sys_hospital.cs
View file @
d0649f89
performance/Performance.EntityModels/Entity/sys_role.cs
View file @
d0649f89
performance/Performance.Repository/Repository/PerforImemployeelogisticsRepository.cs
View file @
d0649f89
//-----------------------------------------------------------------------
// <copyright file=" im_employee_
clinic
.cs">
// * FileName: im_employee_
clinic
.cs
// <copyright file=" im_employee_
logistics
.cs">
// * FileName: im_employee_
logistics
.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -9,7 +9,7 @@
namespace
Performance.Repository
{
/// <summary>
/// im_employee_
clinic
Repository
/// im_employee_
logistics
Repository
/// </summary>
public
partial
class
PerforImemployeelogisticsRepository
:
PerforRepository
<
im_employee_logistics
>
{
...
...
performance/Performance.Repository/Repository/PerforModextractRepository.cs
View file @
d0649f89
//
//
-----------------------------------------------------------------------
//
//
<copyright file=" mod_extract.cs">
//
//
* FileName: mod_extract.cs
//
//
</copyright>
//
//
-----------------------------------------------------------------------
//
using System;
//
using Performance.EntityModels;
//-----------------------------------------------------------------------
// <copyright file=" mod_extract.cs">
// * FileName: mod_extract.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
Performance.EntityModels
;
//
namespace Performance.Repository
//
{
//
/// <summary>
//
/// mod_extract Repository
//
/// </summary>
//
public partial class PerforModextractRepository : PerforRepository<mod_extract>
//
{
//
public PerforModextractRepository(PerformanceDbContext context) : base(context)
//
{
//
}
//
}
//
}
namespace
Performance.Repository
{
/// <summary>
/// mod_extract Repository
/// </summary>
public
partial
class
PerforModextractRepository
:
PerforRepository
<
mod_extract
>
{
public
PerforModextractRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/Repository/PerforModitemRepository.cs
View file @
d0649f89
//
//
-----------------------------------------------------------------------
//
//
<copyright file=" mod_item.cs">
//
//
* FileName: mod_item.cs
//
//
</copyright>
//
//
-----------------------------------------------------------------------
//
using System;
//
using Performance.EntityModels;
//-----------------------------------------------------------------------
// <copyright file=" mod_item.cs">
// * FileName: mod_item.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
Performance.EntityModels
;
//
namespace Performance.Repository
//
{
//
/// <summary>
//
/// mod_item Repository
//
/// </summary>
//
public partial class PerforModitemRepository : PerforRepository<mod_item>
//
{
//
public PerforModitemRepository(PerformanceDbContext context) : base(context)
//
{
//
}
//
}
//
}
namespace
Performance.Repository
{
/// <summary>
/// mod_item Repository
/// </summary>
public
partial
class
PerforModitemRepository
:
PerforRepository
<
mod_item
>
{
public
PerforModitemRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/Repository/PerforModmoduleRepository.cs
View file @
d0649f89
//
//
-----------------------------------------------------------------------
//
//
<copyright file=" mod_module.cs">
//
//
* FileName: mod_module.cs
//
//
</copyright>
//
//
-----------------------------------------------------------------------
//
using System;
//
using Performance.EntityModels;
//-----------------------------------------------------------------------
// <copyright file=" mod_module.cs">
// * FileName: mod_module.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
Performance.EntityModels
;
//
namespace Performance.Repository
//
{
//
/// <summary>
//
/// mod_module Repository
//
/// </summary>
//
public partial class PerforModmoduleRepository : PerforRepository<mod_module>
//
{
//
public PerforModmoduleRepository(PerformanceDbContext context) : base(context)
//
{
//
}
//
}
//
}
namespace
Performance.Repository
{
/// <summary>
/// mod_module Repository
/// </summary>
public
partial
class
PerforModmoduleRepository
:
PerforRepository
<
mod_module
>
{
public
PerforModmoduleRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/Repository/PerforModspecialRepository.cs
View file @
d0649f89
//
//
-----------------------------------------------------------------------
//
//
<copyright file=" mod_special.cs">
//
//
* FileName: mod_special.cs
//
//
</copyright>
//
//
-----------------------------------------------------------------------
//
using System;
//
using Performance.EntityModels;
//-----------------------------------------------------------------------
// <copyright file=" mod_special.cs">
// * FileName: mod_special.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
Performance.EntityModels
;
//
namespace Performance.Repository
//
{
//
/// <summary>
//
/// mod_special Repository
//
/// </summary>
//
public partial class PerforModspecialRepository : PerforRepository<mod_special>
//
{
//
public PerforModspecialRepository(PerformanceDbContext context) : base(context)
//
{
//
}
//
}
//
}
namespace
Performance.Repository
{
/// <summary>
/// mod_special Repository
/// </summary>
public
partial
class
PerforModspecialRepository
:
PerforRepository
<
mod_special
>
{
public
PerforModspecialRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/Repository/PerforReportglobalRepository.cs
0 → 100644
View file @
d0649f89
//-----------------------------------------------------------------------
// <copyright file=" report_global.cs">
// * FileName: report_global.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// report_global Repository
/// </summary>
public
partial
class
PerforReportglobalRepository
:
PerforRepository
<
report_global
>
{
public
PerforReportglobalRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/Repository/PerforReportoriginalpersontimeRepository.cs
View file @
d0649f89
//-----------------------------------------------------------------------
// <copyright file="
ag_header
.cs">
// * FileName:
ag_header
.cs
// <copyright file="
report_original_persontime
.cs">
// * FileName:
report_original_persontime
.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
performance/Performance.Repository/Repository/PerforReportoriginalstaysRepository.cs
View file @
d0649f89
//-----------------------------------------------------------------------
// <copyright file="
ag_header
.cs">
// * FileName:
ag_header
.cs
//-----------------------------------------------------------------------
// <copyright file="
report_original_stays
.cs">
// * FileName:
report_original_stays
.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
...
...
performance/Performance.Repository/Repository/PerforReportoriginalsurgeryRepository.cs
View file @
d0649f89
//-----------------------------------------------------------------------
// <copyright file="
ag_header
.cs">
// * FileName:
ag_header
.cs
//-----------------------------------------------------------------------
// <copyright file="
report_original_surgery
.cs">
// * FileName:
report_original_surgery
.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
...
...
performance/Performance.Repository/Repository/PerforReportperformanceRepository.cs
0 → 100644
View file @
d0649f89
//-----------------------------------------------------------------------
// <copyright file=" report_performance.cs">
// * FileName: report_performance.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
Microsoft.EntityFrameworkCore
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// report_performance Repository
/// </summary>
public
partial
class
PerforReportperformanceRepository
:
PerforRepository
<
report_performance
>
{
private
readonly
PerformanceDbContext
_db
;
public
PerforReportperformanceRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
_db
=
context
;
}
}
}
performance/Performance.Repository/Repository/PerforcollectdataRepository.cs
View file @
d0649f89
//-----------------------------------------------------------------------
// <copyright file="
ag_againsituation
.cs">
// * FileName:
ag_againsituation
.cs
// <copyright file="
collect_data
.cs">
// * FileName:
collect_data
.cs
// </copyright>
//-----------------------------------------------------------------------
using
Performance.EntityModels
;
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// collect_data Repository
/// </summary>
public
partial
class
Perfor
c
ollectdataRepository
:
PerforRepository
<
collect_data
>
public
partial
class
Perfor
C
ollectdataRepository
:
PerforRepository
<
collect_data
>
{
public
Perforc
ollectdataRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
public
PerforC
ollectdataRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
...
...
performance/Performance.Repository/Repository/PerforcollectpermissionRepository.cs
View file @
d0649f89
//-----------------------------------------------------------------------
// <copyright file="
ag_againsituat
ion.cs">
// * FileName:
ag_againsituat
ion.cs
// <copyright file="
collect_permiss
ion.cs">
// * FileName:
collect_permiss
ion.cs
// </copyright>
//-----------------------------------------------------------------------
using
Performance.EntityModels
;
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// collect_permission Repository
/// </summary>
public
partial
class
Perfor
c
ollectpermissionRepository
:
PerforRepository
<
collect_permission
>
public
partial
class
Perfor
C
ollectpermissionRepository
:
PerforRepository
<
collect_permission
>
{
public
Perforc
ollectpermissionRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
public
PerforC
ollectpermissionRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
...
...
performance/Performance.Repository/Repository/PerforcustscriptRepository.cs
View file @
d0649f89
//-----------------------------------------------------------------------
// <copyright file="
ag_againsituation
.cs">
// * FileName:
ag_againsituation
.cs
// <copyright file="
cust_script
.cs">
// * FileName:
cust_script
.cs
// </copyright>
//-----------------------------------------------------------------------
using
Performance.EntityModels
;
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// c
ollect_data
Repository
/// c
ust_script
Repository
/// </summary>
public
partial
class
Perfor
c
ustscriptRepository
:
PerforRepository
<
cust_script
>
public
partial
class
Perfor
C
ustscriptRepository
:
PerforRepository
<
cust_script
>
{
public
Perfor
c
ustscriptRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
public
Perfor
C
ustscriptRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
...
...
performance/Performance.Repository/Repository/PerforresreservedRepository.cs
View file @
d0649f89
//-----------------------------------------------------------------------
// <copyright file="
cof_guarantee
.cs">
// * FileName:
cof_guarantee
.cs
// <copyright file="
res_reserved
.cs">
// * FileName:
res_reserved
.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -9,11 +9,11 @@
namespace
Performance.Repository
{
/// <summary>
///
cof_guarantee
Repository
///
res_reserved
Repository
/// </summary>
public
partial
class
Perfor
r
esreservedRepository
:
PerforRepository
<
res_reserved
>
public
partial
class
Perfor
R
esreservedRepository
:
PerforRepository
<
res_reserved
>
{
public
Perfor
r
esreservedRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
public
Perfor
R
esreservedRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
...
...
performance/Performance.Services/AllotCompute/ResultComputeService.cs
View file @
d0649f89
...
...
@@ -22,7 +22,7 @@ public class ResultComputeService : IAutoInjection
private
readonly
PerforPerallotRepository
perforPerallotRepository
;
private
readonly
PerforAgcomputeRepository
perforAgcomputeRepository
;
private
readonly
PerforAgsecondallotRepository
perforAgsecondallotRepository
;
private
readonly
Perfor
r
esreservedRepository
perforresreservedRepository
;
private
readonly
Perfor
R
esreservedRepository
perforresreservedRepository
;
private
readonly
PerforHospitalRepository
hospitalRepository
;
private
readonly
PerforImemployeeRepository
perforImEmployeeRepository
;
private
readonly
PerforRescomputeRepository
perforRescomputeRepository
;
...
...
@@ -48,7 +48,7 @@ public class ResultComputeService : IAutoInjection
PerforPerallotRepository
perforPerallotRepository
,
PerforAgcomputeRepository
perforAgcomputeRepository
,
PerforAgsecondallotRepository
perforAgsecondallotRepository
,
Perfor
r
esreservedRepository
perforresreservedRepository
,
Perfor
R
esreservedRepository
perforresreservedRepository
,
PerforImemployeeclinicRepository
perforImemployeeclinicRepository
,
PerforImemployeelogisticsRepository
perforImemployeelogisticsRepository
)
{
...
...
@@ -118,7 +118,6 @@ public List<res_baiscnorm> Compute(per_allot allot, List<PerSheet> accountSheet)
return
baiscnormList
;
}
/// <summary>
/// 特殊科室绩效计算
/// </summary>
...
...
@@ -166,7 +165,6 @@ public void SpecialUnitCompute(PerExcel excel, per_allot allot, List<res_baiscno
return
t
.
Quantity
*
t
.
QuantitativeIndicatorsValue
*
headcount
;
});
foreach
(
var
item
in
accountDataList
)
{
//科室奖罚汇总结果
...
...
@@ -503,7 +501,8 @@ private void ChangeRealGiveFee(res_reserved reserved, per_allot allot, decimal r
reserved
.
DecRatio
=
ratio
;
}
}
#
endregion
#
endregion
预留金额
/// <summary>
/// 创建科室二次分配
...
...
performance/Performance.Services/AllotService.cs
View file @
d0649f89
...
...
@@ -25,7 +25,7 @@ public class AllotService : IAutoInjection
private
ProcessComputService
processComputService
;
private
ResultComputeService
resultComputeService
;
private
PerforLogdbugRepository
logdbug
;
private
readonly
Perfor
r
esreservedRepository
perforresreservedRepository
;
private
readonly
Perfor
R
esreservedRepository
perforresreservedRepository
;
private
ConfigService
configService
;
private
IHostingEnvironment
_evn
;
private
ILogger
<
AllotService
>
_logger
;
...
...
@@ -55,7 +55,7 @@ public class AllotService : IAutoInjection
ResultComputeService
resultComputeService
,
ConfigService
configService
,
PerforLogdbugRepository
logdbug
,
Perfor
r
esreservedRepository
perforresreservedRepository
,
Perfor
R
esreservedRepository
perforresreservedRepository
,
IHostingEnvironment
evn
,
ILogger
<
AllotService
>
logger
,
IEmailService
emailService
,
IOptions
<
Application
>
options
,
...
...
performance/Performance.Services/CollectService.cs
View file @
d0649f89
...
...
@@ -23,8 +23,8 @@ public class CollectService : IAutoInjection
private
readonly
PerforImemployeeRepository
perforImEmployeeRepository
;
private
readonly
PerforImemployeeclinicRepository
perforImemployeeclinicRepository
;
private
readonly
PerforImemployeelogisticsRepository
perforImemployeelogisticsRepository
;
private
readonly
Perfor
c
ollectdataRepository
perforcollectdataRepository
;
private
readonly
Perfor
c
ollectpermissionRepository
perforcollectpermissionRepository
;
private
readonly
Perfor
C
ollectdataRepository
perforcollectdataRepository
;
private
readonly
Perfor
C
ollectpermissionRepository
perforcollectpermissionRepository
;
private
readonly
PerforUserroleRepository
userroleRepository
;
private
readonly
Application
options
;
...
...
@@ -37,8 +37,8 @@ public class CollectService : IAutoInjection
PerforImemployeeRepository
perforImEmployeeRepository
,
PerforImemployeeclinicRepository
perforImemployeeclinicRepository
,
PerforImemployeelogisticsRepository
perforImemployeelogisticsRepository
,
Perfor
c
ollectdataRepository
perforcollectdataRepository
,
Perfor
c
ollectpermissionRepository
perforcollectpermissionRepository
,
Perfor
C
ollectdataRepository
perforcollectdataRepository
,
Perfor
C
ollectpermissionRepository
perforcollectpermissionRepository
,
PerforUserroleRepository
userroleRepository
,
IOptions
<
Application
>
options
)
{
...
...
@@ -113,7 +113,7 @@ into emppmss
SheetName
=
sh
.
SheetName
,
SheetType
=
sh
.
SheetType
.
Value
,
HeadName
=
sh
.
HeadName
,
PermissionId
=
item
?.
I
D
,
PermissionId
=
item
?.
I
d
,
Readnoly
=
item
?.
Readnoly
??
0
,
AttachLast
=
item
?.
AttachLast
??
0
,
Visible
=
item
?.
Visible
??
0
...
...
@@ -148,7 +148,7 @@ public void SetPermission(int userid, IEnumerable<CollectPermission> collects)
if
(
data3
!=
null
)
{
var
ids
=
data3
.
Select
(
t
=>
t
.
PermissionId
).
ToList
();
var
deletes
=
perforcollectpermissionRepository
.
GetEntities
(
w
=>
ids
.
Contains
(
w
.
I
D
));
var
deletes
=
perforcollectpermissionRepository
.
GetEntities
(
w
=>
ids
.
Contains
(
w
.
I
d
));
if
(
deletes
!=
null
)
perforcollectpermissionRepository
.
RemoveRange
(
deletes
.
ToArray
());
}
...
...
@@ -158,14 +158,14 @@ public void SetPermission(int userid, IEnumerable<CollectPermission> collects)
if
(
data1
!=
null
)
{
var
ids
=
data1
.
Select
(
t
=>
t
.
PermissionId
).
ToList
();
var
updates
=
perforcollectpermissionRepository
.
GetEntities
(
w
=>
ids
.
Contains
(
w
.
I
D
));
var
updates
=
perforcollectpermissionRepository
.
GetEntities
(
w
=>
ids
.
Contains
(
w
.
I
d
));
if
(
updates
!=
null
)
{
foreach
(
var
item
in
updates
)
{
item
.
AttachLast
=
data1
.
FirstOrDefault
(
w
=>
w
.
PermissionId
==
item
.
I
D
).
AttachLast
;
item
.
Readnoly
=
data1
.
FirstOrDefault
(
w
=>
w
.
PermissionId
==
item
.
I
D
).
Readnoly
;
item
.
Visible
=
data1
.
FirstOrDefault
(
w
=>
w
.
PermissionId
==
item
.
I
D
).
Visible
;
item
.
AttachLast
=
data1
.
FirstOrDefault
(
w
=>
w
.
PermissionId
==
item
.
I
d
).
AttachLast
;
item
.
Readnoly
=
data1
.
FirstOrDefault
(
w
=>
w
.
PermissionId
==
item
.
I
d
).
Readnoly
;
item
.
Visible
=
data1
.
FirstOrDefault
(
w
=>
w
.
PermissionId
==
item
.
I
d
).
Visible
;
}
perforcollectpermissionRepository
.
UpdateRange
(
updates
.
ToArray
());
}
...
...
@@ -264,6 +264,7 @@ private IEnumerable<collect_permission> GetCollectSheetByAllot(int hospitalId, i
}
#
region
加载采集内容
/// <summary>
/// 加载采集内容
/// </summary>
...
...
@@ -311,7 +312,6 @@ public HandsonTable GetCollectData(int userId, int allotId, string sheetName)
if
(
permissions
==
null
||
!
permissions
.
Any
())
throw
new
PerformanceException
(
"用户没有权限编辑当前SHEET页"
);
List
<
HandsonRowData
>
rowDatas
=
null
;
var
collectdata
=
perforcollectdataRepository
.
GetEntities
(
w
=>
w
.
SheetName
==
sheet
.
SheetName
&&
w
.
AllotID
==
allotId
);
if
(
collectdata
!=
null
)
...
...
@@ -438,7 +438,6 @@ private List<HandsonRowData> GerEmployee(per_sheet sheet)
return
new
List
<
HandsonRowData
>();
}
private
HandsonRowData
CreateRowData
(
int
row
,
ColumnInfo
[]
columns
,
SortedDictionary
<
string
,
object
>
dic
)
{
var
setdata
=
from
cfg
in
columns
...
...
@@ -446,7 +445,8 @@ private HandsonRowData CreateRowData(int row, ColumnInfo[] columns, SortedDictio
select
new
HandsonCellData
(
cfg
.
Description
,
dic
[
d
]);
return
new
HandsonRowData
(
row
,
setdata
);
}
#
endregion
#
endregion
加载采集内容
public
void
SaveCollectData
(
int
allotId
,
SaveCollectData
request
)
{
...
...
@@ -474,7 +474,6 @@ public void SaveCollectData(int allotId, SaveCollectData request)
else
config
=
CollectDataConfig
.
Default
;
var
dicData
=
CreateDataRow
(
allotId
,
request
,
config
);
List
<
collect_data
>
datas
=
new
List
<
collect_data
>();
foreach
(
var
item
in
dicData
)
...
...
performance/Performance.Services/CustomExtractService.cs
View file @
d0649f89
...
...
@@ -25,7 +25,7 @@ public class CustomExtractService : IAutoInjection
private
readonly
PerforPerallotRepository
_perallotRepository
;
private
readonly
PerforPerdeptdicRepository
_perforPerdeptdicRepository
;
private
readonly
PerforHospitalconfigRepository
_perforHospitalconfigRepository
;
private
readonly
Perfor
c
ustscriptRepository
_perforcustscriptRepository
;
private
readonly
Perfor
C
ustscriptRepository
_perforcustscriptRepository
;
public
CustomExtractService
(
ILogger
<
CustomExtractService
>
logger
,
...
...
@@ -35,7 +35,7 @@ public class CustomExtractService : IAutoInjection
PerforPerallotRepository
perallotRepository
,
PerforPerdeptdicRepository
perforPerdeptdicRepository
,
PerforHospitalconfigRepository
perforHospitalconfigRepository
,
Perfor
c
ustscriptRepository
perforcustscriptRepository
)
Perfor
C
ustscriptRepository
perforcustscriptRepository
)
{
_logger
=
logger
;
_options
=
options
;
...
...
@@ -46,6 +46,7 @@ public class CustomExtractService : IAutoInjection
_perforHospitalconfigRepository
=
perforHospitalconfigRepository
;
_perforcustscriptRepository
=
perforcustscriptRepository
;
}
public
bool
CheckConfigScript
(
int
userId
,
int
allotId
)
{
var
allot
=
_perallotRepository
.
GetEntity
(
w
=>
w
.
ID
==
allotId
)
...
...
@@ -201,7 +202,8 @@ private void WriteDataToFile(int userId, per_allot allot, List<cust_script> scri
if
(
string
.
IsNullOrEmpty
(
atUnitType
)
||
!
atUnitTypeList
.
Contains
(
atUnitType
))
continue
;
}
}
#
endregion
#
endregion
替换原始科室名称及跳过写入
EXCEL
逻辑
int
col
=
4
;
for
(
int
c
=
0
;
c
<
headers
.
Count
;
c
++)
...
...
performance/Performance.Services/DFExtractService.cs
View file @
d0649f89
This diff is collapsed.
Click to expand it.
performance/Performance.Services/ExtractExcelService/ExtractService.cs
View file @
d0649f89
...
...
@@ -21,7 +21,7 @@ public class ExtractService : IAutoInjection
private
readonly
PerSheetService
perSheetService
;
private
readonly
PerforHospitalRepository
hospitalRepository
;
private
readonly
PerforPerallotRepository
perallotRepository
;
private
readonly
Perfor
c
ollectdataRepository
collectdataRepository
;
private
readonly
Perfor
C
ollectdataRepository
collectdataRepository
;
private
readonly
PerforPeremployeeRepository
peremployeeRepository
;
public
ExtractService
(
...
...
@@ -32,7 +32,7 @@ public class ExtractService : IAutoInjection
PerSheetService
perSheetService
,
PerforHospitalRepository
hospitalRepository
,
PerforPerallotRepository
perallotRepository
,
Perfor
c
ollectdataRepository
collectdataRepository
,
Perfor
C
ollectdataRepository
collectdataRepository
,
PerforPeremployeeRepository
peremployeeRepository
)
{
...
...
performance/Performance.Services/GraphQLService.cs
0 → 100644
View file @
d0649f89
using
Performance.DtoModels
;
using
Performance.EntityModels
;
using
Performance.Repository
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq.Expressions
;
using
System.Text
;
namespace
Performance.Services
{
public
class
GraphQLService
:
IAutoInjection
{
private
readonly
PerforPeremployeeRepository
peremployeeRepository
;
private
readonly
PerforReportperformanceRepository
reportperformanceRepository
;
public
GraphQLService
(
PerforPeremployeeRepository
peremployeeRepository
,
PerforReportperformanceRepository
reportperformanceRepository
)
{
this
.
peremployeeRepository
=
peremployeeRepository
;
this
.
reportperformanceRepository
=
reportperformanceRepository
;
}
public
ReportData
Test
(
int
hospitalId
,
int
year
,
int
month
)
{
return
new
ReportData
(
new
rep_report
())
{
ChartData
=
new
List
<
ChartData
>
{
new
ChartData
{
X
=
"张三"
,
Y
=
"语文"
,
Value
=
89
},
new
ChartData
{
X
=
"张三"
,
Y
=
"数学"
,
Value
=
99
},
new
ChartData
{
X
=
"张三"
,
Y
=
"英语"
,
Value
=
72
},
new
ChartData
{
X
=
"李四"
,
Y
=
"语文"
,
Value
=
92
},
new
ChartData
{
X
=
"李四"
,
Y
=
"数学"
,
Value
=
93
},
new
ChartData
{
X
=
"李四"
,
Y
=
"英语"
,
Value
=
80
},
}
};
}
public
List
<
report_performance
>
GetPerformances
(
int
hospitalId
,
int
year
,
int
month
,
string
category
)
{
Expression
<
Func
<
report_performance
,
bool
>>
exp
=
(
t
)
=>
true
;
if
(
hospitalId
!=
0
)
{
exp
=
exp
.
And
(
t
=>
t
.
HospitalId
==
hospitalId
);
}
if
(
year
!=
0
)
{
exp
=
exp
.
And
(
t
=>
t
.
Year
==
year
);
}
if
(
month
!=
0
)
{
exp
=
exp
.
And
(
t
=>
t
.
Month
==
month
);
}
if
(!
string
.
IsNullOrEmpty
(
category
))
{
exp
=
exp
.
And
(
t
=>
category
.
Split
(
','
).
Contains
(
t
.
Category
));
}
return
reportperformanceRepository
.
GetEntities
(
exp
);
}
}
}
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