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
Hide whitespace changes
Inline
Side-by-side
Showing
69 changed files
with
1477 additions
and
888 deletions
+1477
-888
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
+3
-2
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
+23
-14
performance/Performance.EntityModels/Entity/ag_fixatitem.cs
+18
-18
performance/Performance.EntityModels/Entity/ag_othersource.cs
+2
-2
performance/Performance.EntityModels/Entity/ag_secondallot.cs
+28
-8
performance/Performance.EntityModels/Entity/cof_workitem.cs
+1
-1
performance/Performance.EntityModels/Entity/collect_data.cs
+22
-15
performance/Performance.EntityModels/Entity/collect_permission.cs
+24
-19
performance/Performance.EntityModels/Entity/cust_script.cs
+18
-6
performance/Performance.EntityModels/Entity/ex_script.cs
+8
-8
performance/Performance.EntityModels/Entity/im_accountbasic.cs
+83
-81
performance/Performance.EntityModels/Entity/im_data.cs
+11
-10
performance/Performance.EntityModels/Entity/im_employee.cs
+21
-3
performance/Performance.EntityModels/Entity/im_employee_clinic.cs
+50
-42
performance/Performance.EntityModels/Entity/im_employee_logistics.cs
+24
-52
performance/Performance.EntityModels/Entity/log_dbug.cs
+1
-1
performance/Performance.EntityModels/Entity/mod_extract.cs
+51
-51
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
+51
-51
performance/Performance.EntityModels/Entity/per_allot.cs
+1
-1
performance/Performance.EntityModels/Entity/per_apr_amount.cs
+12
-12
performance/Performance.EntityModels/Entity/per_employee.cs
+3
-3
performance/Performance.EntityModels/Entity/report_global.cs
+44
-0
performance/Performance.EntityModels/Entity/report_original_persontime.cs
+15
-15
performance/Performance.EntityModels/Entity/report_original_stays.cs
+15
-15
performance/Performance.EntityModels/Entity/report_original_surgery.cs
+15
-15
performance/Performance.EntityModels/Entity/report_original_workload.cs
+1
-1
performance/Performance.EntityModels/Entity/report_performance.cs
+86
-0
performance/Performance.EntityModels/Entity/res_account.cs
+25
-22
performance/Performance.EntityModels/Entity/res_compute.cs
+65
-48
performance/Performance.EntityModels/Entity/res_reserved.cs
+36
-33
performance/Performance.EntityModels/Entity/res_specialunit.cs
+26
-22
performance/Performance.EntityModels/Entity/sys_hospital.cs
+21
-21
performance/Performance.EntityModels/Entity/sys_role.cs
+1
-1
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
+3
-3
performance/Performance.Repository/Repository/PerforReportoriginalstaysRepository.cs
+5
-4
performance/Performance.Repository/Repository/PerforReportoriginalsurgeryRepository.cs
+5
-4
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
+6
-7
performance/Performance.Services/AllotService.cs
+2
-2
performance/Performance.Services/CollectService.cs
+13
-14
performance/Performance.Services/CustomExtractService.cs
+9
-8
performance/Performance.Services/DFExtractService.cs
+39
-26
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
...
...
@@ -261,4 +263,4 @@ public bool Authorize(Hangfire.Dashboard.DashboardContext context)
}
#
endregion
hangfire
权限
}
\ No newline at end of file
}
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
...
...
@@ -7,66 +7,75 @@
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
namespace
Performance.EntityModels
{
/// <summary>
/// 二次绩效结果表
/// </summary>
[
Table
(
"ag_compute"
)]
public
class
ag_compute
public
class
ag_compute
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 绩效ID
/// </summary>
public
Nullable
<
int
>
AllotId
{
get
;
set
;
}
/// <summary>
/// 二次绩效ID
/// </summary>
public
Nullable
<
int
>
SecondId
{
get
;
set
;
}
/// <summary>
/// 科室类型
/// </summary>
public
string
UnitType
{
get
;
set
;
}
/// <summary>
/// 科室
/// </summary>
public
string
Department
{
get
;
set
;
}
/// <summary>
/// 职称
/// </summary>
public
string
WorkPost
{
get
;
set
;
}
/// <summary>
/// 工号
/// </summary>
public
string
JobNumber
{
get
;
set
;
}
/// <summary>
/// 人员名称
/// </summary>
public
string
PersonName
{
get
;
set
;
}
/// <summary>
/// 可分配绩效
/// </summary>
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
;
}
/// <summary>
/// 实发金额
/// </summary>
...
...
performance/Performance.EntityModels/Entity/ag_fixatitem.cs
View file @
d0649f89
//-----------------------------------------------------------------------
// <copyright file=" ag_fixatitem.cs">
// * FileName: 二次绩效固定项.cs
// * FileName: 二次绩效固定项.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
namespace
Performance.EntityModels
{
/// <summary>
/// 二次绩效固定项
/// </summary>
[
Table
(
"ag_fixatitem"
)]
public
class
ag_fixatitem
public
class
ag_fixatitem
{
/// <summary>
///
///
/// </summary>
[
Key
]
public
int
ID
{
get
;
set
;
}
public
int
ID
{
get
;
set
;
}
/// <summary>
///
///
/// </summary>
public
Nullable
<
int
>
AllotId
{
get
;
set
;
}
/// <summary>
/// 二次绩效ID
/// </summary>
public
Nullable
<
int
>
SecondId
{
get
;
set
;
}
/// <summary>
///
///
/// </summary>
public
string
UnitType
{
get
;
set
;
}
/// <summary>
/// 行号
/// </summary>
public
Nullable
<
int
>
RowNumber
{
get
;
set
;
}
/// <summary>
/// 项目名
/// </summary>
public
string
ItemName
{
get
;
set
;
}
/// <summary>
/// 值
/// </summary>
public
string
ItemValue
{
get
;
set
;
}
/// <summary>
/// 系数
/// </summary>
public
Nullable
<
decimal
>
FactorValue
{
get
;
set
;
}
/// <summary>
/// 排序
/// </summary>
public
Nullable
<
decimal
>
Sort
{
get
;
set
;
}
/// <summary>
/// 字段类型 1 顶部概况 2 表格固定 3 工作量
/// </summary>
public
Nullable
<
int
>
Type
{
get
;
set
;
}
/// <summary>
/// 1 自动带出 2 计算得出
/// </summary>
public
Nullable
<
int
>
SourceType
{
get
;
set
;
}
/// <summary>
/// 1 value相加值为1
/// </summary>
...
...
performance/Performance.EntityModels/Entity/ag_othersource.cs
View file @
d0649f89
...
...
@@ -80,12 +80,12 @@ public class ag_othersource
/// 实发绩效工资金额
/// </summary>
public
Nullable
<
decimal
>
RealAmount
{
get
;
set
;
}
/// <summary>
/// 预留比例
/// </summary>
public
Nullable
<
decimal
>
ReservedRatio
{
get
;
set
;
}
/// <summary>
/// 预留金额
/// </summary>
...
...
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
;
}
...
...
@@ -85,25 +105,25 @@ public class ag_secondallot
/// 备注
/// </summary>
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
;
}
/// <summary>
/// 护理部审核人
/// </summary>
public
Nullable
<
int
>
NursingDeptAuditUser
{
get
;
set
;
}
/// <summary>
/// 护理部备注
/// </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
...
...
@@ -30,7 +30,7 @@ public class cof_workitem
/// 工作量中需做运算的项
/// </summary>
public
string
Item
{
get
;
set
;
}
/// <summary>
/// 1. 药占比 2. CMI
/// </summary>
...
...
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
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
namespace
Performance.EntityModels
{
/// <summary>
///
采集数据
///
/// </summary>
[
Table
(
"collect_data"
)]
public
class
collect_data
public
class
collect_data
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
ID
{
get
;
set
;
}
public
int
ID
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
int
AllotID
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
string
SheetName
{
get
;
set
;
}
/// <summary>
///
///
核算单元类别 1 医生组 2护理组 3医技组
/// </summary>
public
string
UnitType
{
get
;
set
;
}
/// <summary>
/// 行号
/// </summary>
public
int
RowNumber
{
get
;
set
;
}
/// <summary>
/// 人员姓名
/// </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
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
namespace
Performance.EntityModels
{
/// <summary>
///
/// </summary>
[
Table
(
"collect_permission"
)]
public
class
collect_permission
public
class
collect_permission
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
ID
{
get
;
set
;
}
public
int
Id
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
int
HospitalId
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
int
UserId
{
get
;
set
;
}
/// <summary>
/// 列头类型名称
///
/// </summary>
public
int
SheetType
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
string
SheetName
{
get
;
set
;
}
/// <summary>
/// 列头名称
/// </summary>
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
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
namespace
Performance.EntityModels
{
/// <summary>
/// 自定义导出
/// </summary>
[
Table
(
"cust_script"
)]
public
class
cust_script
public
class
cust_script
{
/// <summary>
///
/// </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
...
...
@@ -7,40 +7,40 @@
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
namespace
Performance.EntityModels
{
/// <summary>
///
/// </summary>
[
Table
(
"ex_script"
)]
public
class
ex_script
public
class
ex_script
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 执行sql
/// </summary>
public
string
ExecScript
{
get
;
set
;
}
/// <summary>
/// 数据库类型1、Sql Server 2、Orcale
/// </summary>
public
int
DatabaseType
{
get
;
set
;
}
/// <summary>
/// ExTypeId
/// </summary>
public
int
TypeId
{
get
;
set
;
}
/// <summary>
/// 配置Id
/// </summary>
public
int
ConfigId
{
get
;
set
;
}
/// <summary>
/// 是否可用 1 可用 2 不可用
/// </summary>
...
...
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>
///
...
...
@@ -215,15 +215,17 @@ public class im_accountbasic
///
/// </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_data.cs
View file @
d0649f89
...
...
@@ -42,24 +42,25 @@ 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>
/// 列头类型名称
/// </summary>
...
...
performance/Performance.EntityModels/Entity/im_employee.cs
View file @
d0649f89
...
...
@@ -55,12 +55,12 @@ public class im_employee
/// 绩效基数核算参考对象
/// </summary>
public
string
FitPeople
{
get
;
set
;
}
/// <summary>
/// 绩效基础核算参考值
/// </summary>
public
Nullable
<
decimal
>
FitPeopleValue
{
get
;
set
;
}
/// <summary>
/// 绩效基数核算参考对象取值比例(如临床科室护士*95%)
/// </summary>
...
...
@@ -115,7 +115,22 @@ public class im_employee
/// 其他绩效
/// </summary>
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>
...
...
@@ -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
...
...
@@ -7,162 +7,170 @@
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
namespace
Performance.EntityModels
{
/// <summary>
///
/// </summary>
[
Table
(
"im_employee_clinic"
)]
public
class
im_employee_clinic
public
class
im_employee_clinic
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
ID
{
get
;
set
;
}
public
int
ID
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
/// <summary>
/// sheet页id
/// </summary>
public
Nullable
<
int
>
SheetID
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
RowNumber
{
get
;
set
;
}
/// <summary>
/// 核算单元分类
/// </summary>
public
string
UnitType
{
get
;
set
;
}
/// <summary>
/// 核算单元
/// </summary>
public
string
AccountingUnit
{
get
;
set
;
}
/// <summary>
/// 科室名称
/// </summary>
public
string
Department
{
get
;
set
;
}
/// <summary>
/// 人员工号
/// </summary>
public
string
PersonnelNumber
{
get
;
set
;
}
/// <summary>
/// 医生姓名
/// </summary>
public
string
DoctorName
{
get
;
set
;
}
/// <summary>
/// 职称
/// </summary>
public
string
JobTitle
{
get
;
set
;
}
/// <summary>
/// 基础绩效系数
/// </summary>
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
;
}
/// <summary>
/// 规模绩效系数
/// </summary>
public
Nullable
<
decimal
>
Scale
{
get
;
set
;
}
/// <summary>
/// 管理绩效发放系数
/// </summary>
public
Nullable
<
decimal
>
Management
{
get
;
set
;
}
/// <summary>
/// 其他管理绩效
/// </summary>
public
Nullable
<
decimal
>
OtherManagePerfor
{
get
;
set
;
}
/// <summary>
/// 考核得分率
/// </summary>
public
Nullable
<
decimal
>
ScoreAverageRate
{
get
;
set
;
}
/// <summary>
/// 出勤率
/// </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
>
OtherManagePerfor
{
get
;
set
;
}
/// <summary>
/// 夜班费
/// </summary>
public
Nullable
<
decimal
>
NightWorkPerfor
{
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>
public
Nullable
<
DateTime
>
UpdateDate
{
get
;
set
;
}
/// <summary>
///
/// </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>
//-----------------------------------------------------------------------
...
...
@@ -19,136 +19,108 @@ public class im_employee_logistics
///
/// </summary>
[
Key
]
public
int
ID
{
get
;
set
;
}
public
int
ID
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
/// <summary>
/// sheet页id
/// </summary>
public
Nullable
<
int
>
SheetID
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
RowNumber
{
get
;
set
;
}
/// <summary>
/// 科室类别(例如 医技科室 临床科室 其他科室)
/// </summary>
public
string
AccountType
{
get
;
set
;
}
/// <summary>
/// 核算单元
/// </summary>
public
string
AccountingUnit
{
get
;
set
;
}
/// <summary>
/// 科室名称
/// </summary>
public
string
Department
{
get
;
set
;
}
/// <summary>
/// 绩效基数核算参考对象
/// </summary>
public
string
FitPeople
{
get
;
set
;
}
/// <summary>
/// 绩效基础核算参考值
/// </summary>
public
Nullable
<
decimal
>
FitPeopleValue
{
get
;
set
;
}
/// <summary>
/// 绩效基数核算参考对象取值比例(如临床科室护士*95%)
/// </summary>
public
Nullable
<
decimal
>
FitPeopleRatio
{
get
;
set
;
}
/// <summary>
/// 人员工号
/// </summary>
public
string
PersonnelNumber
{
get
;
set
;
}
/// <summary>
///
医生
姓名
/// 姓名
/// </summary>
public
string
DoctorName
{
get
;
set
;
}
/// <summary>
/// 职称
/// </summary>
public
string
JobTitle
{
get
;
set
;
}
/// <summary>
/// 岗位系数
/// </summary>
public
Nullable
<
decimal
>
PostCoefficient
{
get
;
set
;
}
///// <summary>
///// 参加工作时间
///// </summary>
//public Nullable<DateTime> WorkTime { get; set; }
/// <summary>
/// 考核得分率
/// </summary>
public
Nullable
<
decimal
>
ScoreAverageRate
{
get
;
set
;
}
/// <summary>
/// 出勤率
/// </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>
public
Nullable
<
DateTime
>
UpdateDate
{
get
;
set
;
}
/// <summary>
///
/// </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/log_dbug.cs
View file @
d0649f89
...
...
@@ -45,7 +45,7 @@ public class log_dbug
/// 1、信息(info)2、警告(warn)3、错误(error)4、异常(exception)5、成功(success)
/// </summary>
public
Nullable
<
int
>
Level
{
get
;
set
;
}
/// <summary>
/// 1、绩效生成日志 2、绩效提取日志 3、绩效提取进度
/// </summary>
...
...
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;
//-----------------------------------------------------------------------
// <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; }
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>
/// 医院ID
/// </summary>
public
Nullable
<
int
>
HospitalId
{
get
;
set
;
}
//
/// <summary>
//
/// 当前脚本提取内容名称
//
/// </summary>
//
public string EName { get; set; }
/// <summary>
/// 当前脚本提取内容名称
/// </summary>
public
string
EName
{
get
;
set
;
}
//
/// <summary>
//
/// 执行脚本
//
/// </summary>
//
public string ExecuteScript { 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
>
ExecuteType
{
get
;
set
;
}
//
/// <summary>
//
/// 数据库来源类型 1 标准库 2 绩效库
//
/// </summary>
//
public Nullable<int> SourceType { get; set; }
/// <summary>
/// 数据库来源类型 1 标准库 2 绩效库
/// </summary>
public
Nullable
<
int
>
SourceType
{
get
;
set
;
}
//
/// <summary>
//
/// 描述
//
/// </summary>
//
public string Description { get; set; }
/// <summary>
/// 描述
/// </summary>
public
string
Description
{
get
;
set
;
}
//
/// <summary>
//
/// 是否可用 1 可用 2 不可用
//
/// </summary>
//
public Nullable<int> IsEnable { 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;
//-----------------------------------------------------------------------
// <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; }
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
Nullable
<
int
>
HospitalId
{
get
;
set
;
}
//
/// <summary>
//
/// 科室
//
/// </summary>
//
public string Department { get; set; }
/// <summary>
/// 科室
/// </summary>
public
string
Department
{
get
;
set
;
}
//
/// <summary>
//
/// 量化指标
//
/// </summary>
//
public string Target { get; set; }
/// <summary>
/// 量化指标
/// </summary>
public
string
Target
{
get
;
set
;
}
//
/// <summary>
//
/// 量化指标绩效分值
//
/// </summary>
//
public Nullable<decimal> TargetFactor { get; set; }
/// <summary>
/// 量化指标绩效分值
/// </summary>
public
Nullable
<
decimal
>
TargetFactor
{
get
;
set
;
}
//
/// <summary>
//
/// 调节系数
//
/// </summary>
//
public Nullable<decimal> AdjustFactor { get; set; }
/// <summary>
/// 调节系数
/// </summary>
public
Nullable
<
decimal
>
AdjustFactor
{
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
;
}
}
}
performance/Performance.EntityModels/Entity/per_allot.cs
View file @
d0649f89
...
...
@@ -90,7 +90,7 @@ public class per_allot
/// 0 不显示 1 显示
/// </summary>
public
int
ShowFormula
{
get
;
set
;
}
/// <summary>
/// 自定义提取绩效数据文件生成路径
/// </summary>
...
...
performance/Performance.EntityModels/Entity/per_apr_amount.cs
View file @
d0649f89
...
...
@@ -45,37 +45,32 @@ public class per_apr_amount
/// 金额
/// </summary>
public
Nullable
<
decimal
>
Amount
{
get
;
set
;
}
/// <summary>
/// 录入科室
/// </summary>
public
string
TypeInDepartment
{
get
;
set
;
}
/// <summary>
/// 核算单元
/// </summary>
public
string
AccountingUnit
{
get
;
set
;
}
/// <summary>
/// 状态 1 未提交 2 等待审核 3 审核通过 4 驳回
/// </summary>
public
int
Status
{
get
;
set
;
}
public
Nullable
<
int
>
Status
{
get
;
set
;
}
/// <summary>
/// 审核时间
/// </summary>
public
Nullable
<
DateTime
>
AuditTime
{
get
;
set
;
}
/// <summary>
/// 审核人
/// </summary>
public
Nullable
<
int
>
AuditUser
{
get
;
set
;
}
/// <summary>
/// 备注
/// </summary>
public
string
Remark
{
get
;
set
;
}
/// <summary>
///
/// </summary>
...
...
@@ -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
...
...
@@ -45,17 +45,17 @@ public class per_employee
/// 姓名
/// </summary>
public
string
DoctorName
{
get
;
set
;
}
/// <summary>
/// 员工工号
/// </summary>
public
string
PersonnelNumber
{
get
;
set
;
}
/// <summary>
/// 员工工号(HIS)
/// </summary>
public
string
JobNumber
{
get
;
set
;
}
/// <summary>
/// 正式/临聘
/// </summary>
...
...
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
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
namespace
Performance.EntityModels
{
/// <summary>
///
///
医院门诊住院人次
/// </summary>
[
Table
(
"report_original_persontime"
)]
public
class
report_original_persontime
public
class
report_original_persontime
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
public
int
ID
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
/// <summary>
/// 年
/// </summary>
public
int
Year
{
get
;
set
;
}
/// <summary>
/// 月
/// </summary>
public
int
Month
{
get
;
set
;
}
/// <summary>
/// 医院ID
/// </summary>
public
int
HospitalID
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
string
SourceType
{
get
;
set
;
}
/// <summary>
/// 科室核算单元
/// </summary>
public
string
AccountingUnit
{
get
;
set
;
}
/// <summary>
/// 科室
/// </summary>
public
string
Department
{
get
;
set
;
}
/// <summary>
/// 人次
/// </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
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
namespace
Performance.EntityModels
{
/// <summary>
///
///
医院门诊住院人次
/// </summary>
[
Table
(
"report_original_stays"
)]
public
class
report_original_stays
public
class
report_original_stays
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
public
int
ID
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
/// <summary>
/// 年
/// </summary>
public
int
Year
{
get
;
set
;
}
/// <summary>
/// 月
/// </summary>
public
int
Month
{
get
;
set
;
}
/// <summary>
/// 医院ID
/// </summary>
public
int
HospitalID
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
string
SourceType
{
get
;
set
;
}
/// <summary>
/// 科室核算单元
/// </summary>
public
string
AccountingUnit
{
get
;
set
;
}
/// <summary>
/// 科室
/// </summary>
public
string
Department
{
get
;
set
;
}
/// <summary>
/// 住院时长
/// </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
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
namespace
Performance.EntityModels
{
/// <summary>
///
///
医院手术人次
/// </summary>
[
Table
(
"report_original_surgery"
)]
public
class
report_original_surgery
public
class
report_original_surgery
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
public
int
ID
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
/// <summary>
/// 年
/// </summary>
public
int
Year
{
get
;
set
;
}
/// <summary>
/// 月
/// </summary>
public
int
Month
{
get
;
set
;
}
/// <summary>
/// 医院ID
/// </summary>
public
int
HospitalID
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
string
SourceType
{
get
;
set
;
}
/// <summary>
/// 科室核算单元
/// </summary>
public
string
AccountingUnit
{
get
;
set
;
}
/// <summary>
/// 科室
/// </summary>
public
string
Department
{
get
;
set
;
}
/// <summary>
/// 人次
/// </summary>
...
...
performance/Performance.EntityModels/Entity/report_original_workload.cs
View file @
d0649f89
...
...
@@ -7,7 +7,7 @@
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
namespace
Performance.EntityModels
{
/// <summary>
///
...
...
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>
/// 核算单元医生数量
...
...
@@ -75,12 +75,12 @@ public class res_account
/// 倾斜系数
/// </summary>
public
Nullable
<
decimal
>
SlopeFactor
{
get
;
set
;
}
/// <summary>
/// 药占比系数
/// </summary>
public
Nullable
<
decimal
>
MedicineFactor
{
get
;
set
;
}
/// <summary>
/// 保底绩效参考标准
/// </summary>
...
...
@@ -160,32 +160,35 @@ public class res_account
/// 实发绩效
/// </summary>
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
;
}
public
Nullable
<
decimal
>
AssessLaterPerforTotal
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/res_compute.cs
View file @
d0649f89
...
...
@@ -7,218 +7,235 @@
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
namespace
Performance.EntityModels
{
/// <summary>
///
/// </summary>
[
Table
(
"res_compute"
)]
public
class
res_compute
public
class
res_compute
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
ID
{
get
;
set
;
}
public
int
ID
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
/// <summary>
/// sheet页id
/// </summary>
public
Nullable
<
int
>
SheetID
{
get
;
set
;
}
/// <summary>
/// 核算单元分类
/// </summary>
public
string
UnitType
{
get
;
set
;
}
/// <summary>
/// 核算单元类型(医技科室、临床科室等)
/// </summary>
public
string
AccountType
{
get
;
set
;
}
/// <summary>
/// 核算单元
/// </summary>
public
string
AccountingUnit
{
get
;
set
;
}
/// <summary>
/// 绩效基数核算参考对象
/// </summary>
public
string
FitPeople
{
get
;
set
;
}
/// <summary>
///
绩效基础核算参考值
///
/// </summary>
public
Nullable
<
decimal
>
FitPeopleValue
{
get
;
set
;
}
/// <summary>
///
绩效基数核算参考对象取值比例(如临床科室护士*95%)
///
/// </summary>
public
Nullable
<
decimal
>
FitPeopleRatio
{
get
;
set
;
}
/// <summary>
/// 人员姓名
/// </summary>
public
string
EmployeeName
{
get
;
set
;
}
/// <summary>
/// 职称
/// </summary>
public
string
JobTitle
{
get
;
set
;
}
/// <summary>
/// 工号
/// </summary>
public
string
JobNumber
{
get
;
set
;
}
/// <summary>
/// 绩效合计(来自科室经济测算表)
/// </summary>
public
Nullable
<
decimal
>
PerforTotal
{
get
;
set
;
}
/// <summary>
/// 核算单元医生数量(来自科室经济测算表)
/// </summary>
public
Nullable
<
decimal
>
Number
{
get
;
set
;
}
/// <summary>
/// 人均绩效(来自科室经济测算表)
/// </summary>
public
Nullable
<
decimal
>
Avg
{
get
;
set
;
}
/// <summary>
/// 效率绩效(需计算)
/// </summary>
public
Nullable
<
decimal
>
Efficiency
{
get
;
set
;
}
/// <summary>
/// 规模绩效(需计算)
/// </summary>
public
Nullable
<
decimal
>
Scale
{
get
;
set
;
}
/// <summary>
/// 岗位系数
/// </summary>
public
Nullable
<
decimal
>
PostCoefficient
{
get
;
set
;
}
/// <summary>
/// 发放系数(来自人员名单)
/// </summary>
public
Nullable
<
decimal
>
Grant
{
get
;
set
;
}
/// <summary>
/// 应发管理绩效(需计算,科主任护士长独有)
/// </summary>
public
Nullable
<
decimal
>
ShouldGiveFee
{
get
;
set
;
}
/// <summary>
/// 绩效合计(需计算)
/// </summary>
public
Nullable
<
decimal
>
PerforSumFee
{
get
;
set
;
}
/// <summary>
/// 考核对分率(来自人员名单)
/// </summary>
public
Nullable
<
decimal
>
ScoreAverageRate
{
get
;
set
;
}
/// <summary>
/// 医院奖罚(来自人员名单)
/// </summary>
public
Nullable
<
decimal
>
Punishment
{
get
;
set
;
}
/// <summary>
/// 其他绩效(来自人员名单)
/// </summary>
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
;
}
/// <summary>
/// 应发绩效(需计算)
/// </summary>
public
Nullable
<
decimal
>
GiveFee
{
get
;
set
;
}
/// <summary>
/// 出勤率(来自人员名单)
/// </summary>
public
Nullable
<
decimal
>
Attendance
{
get
;
set
;
}
/// <summary>
/// 参加工作时间(来自人员名单)
/// </summary>
public
Nullable
<
DateTime
>
WorkTime
{
get
;
set
;
}
/// <summary>
/// 绩效基础金额(计算)
/// </summary>
public
Nullable
<
decimal
>
BaiscNormValue
{
get
;
set
;
}
/// <summary>
/// 年资系数(来自人员名单)
/// </summary>
public
Nullable
<
decimal
>
WorkYear
{
get
;
set
;
}
/// <summary>
/// 调节系数
/// </summary>
public
Nullable
<
decimal
>
Adjust
{
get
;
set
;
}
/// <summary>
/// 工作量绩效
/// </summary>
public
Nullable
<
decimal
>
Workload
{
get
;
set
;
}
/// <summary>
/// 实发绩效
/// </summary>
public
Nullable
<
decimal
>
RealGiveFee
{
get
;
set
;
}
/// <summary>
/// 变更日志
/// </summary>
public
string
ChangeLog
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
string
Remark
{
get
;
set
;
}
/// <summary>
/// 科主任/护士长人数
/// </summary>
public
Nullable
<
decimal
>
ManagerNumber
{
get
;
set
;
}
/// <summary>
/// 其他管理绩效
/// </summary>
public
Nullable
<
decimal
>
OtherManagePerfor
{
get
;
set
;
}
/// <summary>
/// 核算单元人员数量
/// </summary>
public
Nullable
<
decimal
>
MedicalNumber
{
get
;
set
;
}
/// <summary>
/// 效率绩效人数
/// </summary>
public
Nullable
<
decimal
>
PermanentStaff
{
get
;
set
;
}
/// <summary>
/// 考核前其他绩效
/// </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
...
...
@@ -7,162 +7,165 @@
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
namespace
Performance.EntityModels
{
/// <summary>
///
/// </summary>
[
Table
(
"res_reserved"
)]
public
class
res_reserved
public
class
res_reserved
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
public
int
Id
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
int
HospitalId
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
int
Year
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
string
UnitType
{
get
;
set
;
}
/// <summary>
/// 核算单元
/// </summary>
public
string
AccountingUnit
{
get
;
set
;
}
/// <summary>
/// 人员姓名
/// </summary>
public
string
EmployeeName
{
get
;
set
;
}
/// <summary>
/// 工号
/// </summary>
public
string
JobNumber
{
get
;
set
;
}
/// <summary>
/// 一月
/// </summary>
public
Nullable
<
decimal
>
JanFee
{
get
;
set
;
}
/// <summary>
/// 一月
/// </summary>
public
Nullable
<
decimal
>
JanRatio
{
get
;
set
;
}
/// <summary>
/// 二月
/// </summary>
public
Nullable
<
decimal
>
FebFee
{
get
;
set
;
}
/// <summary>
/// 二月
/// </summary>
public
Nullable
<
decimal
>
FebRatio
{
get
;
set
;
}
/// <summary>
/// 三月
/// </summary>
public
Nullable
<
decimal
>
MarFee
{
get
;
set
;
}
/// <summary>
/// 三月
/// </summary>
public
Nullable
<
decimal
>
MarRatio
{
get
;
set
;
}
/// <summary>
/// 四月
/// </summary>
public
Nullable
<
decimal
>
AprFee
{
get
;
set
;
}
/// <summary>
/// 四月
/// </summary>
public
Nullable
<
decimal
>
AprRatio
{
get
;
set
;
}
/// <summary>
/// 五月
/// </summary>
public
Nullable
<
decimal
>
MayFee
{
get
;
set
;
}
/// <summary>
/// 五月
/// </summary>
public
Nullable
<
decimal
>
MayRatio
{
get
;
set
;
}
/// <summary>
/// 六月
/// </summary>
public
Nullable
<
decimal
>
JunFee
{
get
;
set
;
}
/// <summary>
/// 六月
/// </summary>
public
Nullable
<
decimal
>
JunRatio
{
get
;
set
;
}
/// <summary>
/// 七月
/// </summary>
public
Nullable
<
decimal
>
JulFee
{
get
;
set
;
}
/// <summary>
/// 七月
/// </summary>
public
Nullable
<
decimal
>
JulRatio
{
get
;
set
;
}
/// <summary>
/// 八月
/// </summary>
public
Nullable
<
decimal
>
AugFee
{
get
;
set
;
}
/// <summary>
/// 八月
/// </summary>
public
Nullable
<
decimal
>
AugRatio
{
get
;
set
;
}
/// <summary>
/// 九月
/// </summary>
public
Nullable
<
decimal
>
SepFee
{
get
;
set
;
}
/// <summary>
/// 九月
/// </summary>
public
Nullable
<
decimal
>
SepRatio
{
get
;
set
;
}
/// <summary>
/// 十月
/// </summary>
public
Nullable
<
decimal
>
OctFee
{
get
;
set
;
}
/// <summary>
/// 十月
/// </summary>
public
Nullable
<
decimal
>
OctRatio
{
get
;
set
;
}
/// <summary>
/// 十一月
/// </summary>
public
Nullable
<
decimal
>
NovFee
{
get
;
set
;
}
/// <summary>
/// 十一月
/// </summary>
public
Nullable
<
decimal
>
NovRatio
{
get
;
set
;
}
/// <summary>
/// 十二月
/// </summary>
public
Nullable
<
decimal
>
DecFee
{
get
;
set
;
}
/// <summary>
/// 十二月
/// </summary>
...
...
performance/Performance.EntityModels/Entity/res_specialunit.cs
View file @
d0649f89
...
...
@@ -7,126 +7,130 @@
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
namespace
Performance.EntityModels
{
/// <summary>
///
/// </summary>
[
Table
(
"res_specialunit"
)]
public
class
res_specialunit
public
class
res_specialunit
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
ID
{
get
;
set
;
}
public
int
ID
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
SheetID
{
get
;
set
;
}
/// <summary>
/// 核算单元
/// </summary>
public
string
AccountingUnit
{
get
;
set
;
}
/// <summary>
/// 科室名称
/// </summary>
public
string
Department
{
get
;
set
;
}
/// <summary>
/// 人数
/// </summary>
public
Nullable
<
decimal
>
Number
{
get
;
set
;
}
/// <summary>
/// 量化指标
/// </summary>
public
string
QuantitativeIndicators
{
get
;
set
;
}
/// <summary>
/// 数量
/// </summary>
public
Nullable
<
decimal
>
Quantity
{
get
;
set
;
}
/// <summary>
/// 量化指标绩效分值
/// </summary>
public
Nullable
<
decimal
>
QuantitativeIndicatorsValue
{
get
;
set
;
}
/// <summary>
/// 量化指标绩效金额
/// </summary>
public
Nullable
<
decimal
>
QuantitativeFee
{
get
;
set
;
}
/// <summary>
/// 考核得分率
/// </summary>
public
Nullable
<
decimal
>
ScoringAverage
{
get
;
set
;
}
/// <summary>
/// 其他绩效
/// </summary>
public
Nullable
<
decimal
>
OtherPerfor
{
get
;
set
;
}
/// <summary>
/// 医院奖罚
/// </summary>
public
Nullable
<
decimal
>
Punishment
{
get
;
set
;
}
/// <summary>
/// 药占比奖罚
/// </summary>
public
Nullable
<
decimal
>
MedicineExtra
{
get
;
set
;
}
/// <summary>
/// 材料占比奖罚
/// </summary>
public
Nullable
<
decimal
>
MaterialsExtra
{
get
;
set
;
}
/// <summary>
/// 调节系数
/// </summary>
public
Nullable
<
decimal
>
Adjust
{
get
;
set
;
}
/// <summary>
/// 人均绩效
/// </summary>
public
Nullable
<
decimal
>
Avg
{
get
;
set
;
}
/// <summary>
/// 应发绩效
/// </summary>
public
Nullable
<
decimal
>
GiveFee
{
get
;
set
;
}
/// <summary>
/// 实发绩效
/// </summary>
public
Nullable
<
decimal
>
RealGiveFee
{
get
;
set
;
}
/// <summary>
/// 业绩总绩效
/// </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
...
...
@@ -7,105 +7,105 @@
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
namespace
Performance.EntityModels
{
/// <summary>
/// 医院信息
/// </summary>
[
Table
(
"sys_hospital"
)]
public
class
sys_hospital
public
class
sys_hospital
{
/// <summary>
/// ID
/// </summary>
[
Key
]
public
int
ID
{
get
;
set
;
}
public
int
ID
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
DateTime
>
CreateDate
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
CreateUser
{
get
;
set
;
}
/// <summary>
/// 医院名称
/// </summary>
public
string
HosName
{
get
;
set
;
}
/// <summary>
/// 简称
/// </summary>
public
string
ShortName
{
get
;
set
;
}
/// <summary>
/// 医院区域编码
/// </summary>
public
string
AreaCode
{
get
;
set
;
}
/// <summary>
/// 医院等级
/// </summary>
public
string
HosLevel
{
get
;
set
;
}
/// <summary>
/// 医院类型
/// </summary>
public
string
HosType
{
get
;
set
;
}
/// <summary>
/// 医院状态 1 启用 2 禁用
/// </summary>
public
Nullable
<
int
>
States
{
get
;
set
;
}
/// <summary>
/// 是否开启年资系数 1 启用 2 禁用
/// </summary>
public
Nullable
<
int
>
IsOpenWorkYear
{
get
;
set
;
}
/// <summary>
/// 是否开启药占比系数 1 启用 2 禁用
/// </summary>
public
Nullable
<
int
>
IsOpenDrugprop
{
get
;
set
;
}
/// <summary>
/// 是否开启ICU有效收入系数 1 启用 2 禁用
/// </summary>
public
Nullable
<
int
>
IsOpenIncome
{
get
;
set
;
}
/// <summary>
/// 是否开启规模/效率绩效 1 启用 2 禁用
/// </summary>
public
Nullable
<
int
>
IsOpenDirector
{
get
;
set
;
}
/// <summary>
/// 是否显示绩效合计 1 显示绩效合计 2 显示管理绩效
/// </summary>
public
Nullable
<
int
>
IsShowManage
{
get
;
set
;
}
/// <summary>
/// 是否开启科室CMI占比 1 启用 2 禁用
/// </summary>
public
Nullable
<
int
>
IsOpenCMIPercent
{
get
;
set
;
}
/// <summary>
/// 是否开启护理部审核 1 启用 2 禁用
/// </summary>
public
Nullable
<
int
>
IsOpenNursingDeptAudit
{
get
;
set
;
}
/// <summary>
/// 是否显示二次绩效科主任1 启用 2 禁用
/// </summary>
public
Nullable
<
int
>
IsShowSecondDirector
{
get
;
set
;
}
/// <summary>
/// 是否开启行政后勤二次绩效分配 1 启用 2 禁用
/// </summary>
public
Nullable
<
int
>
IsOpenLogisticsSecondAllot
{
get
;
set
;
}
/// <summary>
/// 抽取项目是否在同一环境 1 是 2 否
/// </summary>
...
...
performance/Performance.EntityModels/Entity/sys_role.cs
View file @
d0649f89
...
...
@@ -55,7 +55,7 @@ public class sys_role
///
/// </summary>
public
Nullable
<
int
>
Sort
{
get
;
set
;
}
/// <summary>
/// 是否查看所有用户 1 启用 2禁用
/// </summary>
...
...
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
;
...
...
@@ -13,7 +13,7 @@ namespace Performance.Repository
/// </summary>
public
partial
class
PerforReportoriginalpersontimeRepository
:
PerforRepository
<
report_original_persontime
>
{
public
PerforReportoriginalpersontimeRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
public
PerforReportoriginalpersontimeRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
...
...
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
...
...
@@ -12,7 +13,7 @@ namespace Performance.Repository
/// </summary>
public
partial
class
PerforReportoriginalstaysRepository
:
PerforRepository
<
report_original_stays
>
{
public
PerforReportoriginalstaysRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
public
PerforReportoriginalstaysRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
...
...
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
...
...
@@ -12,7 +13,7 @@ namespace Performance.Repository
/// </summary>
public
partial
class
PerforReportoriginalsurgeryRepository
:
PerforRepository
<
report_original_surgery
>
{
public
PerforReportoriginalsurgeryRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
public
PerforReportoriginalsurgeryRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
...
...
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
)
{
...
...
@@ -78,7 +78,7 @@ public class ResultComputeService : IAutoInjection
/// <param name="excel"></param>
public
List
<
res_baiscnorm
>
Compute
(
per_allot
allot
,
List
<
PerSheet
>
accountSheet
)
{
//取出人员信息
//取出人员信息
var
empolyeeList
=
perforImemployeeclinicRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allot
.
ID
);
var
accountbasicList
=
perforImaccountbasicRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allot
.
ID
);
...
...
@@ -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
)
{
//科室奖罚汇总结果
...
...
@@ -194,7 +192,7 @@ public void SpecialUnitCompute(PerExcel excel, per_allot allot, List<res_baiscno
Quantity
=
item
.
Quantity
,
QuantitativeIndicatorsValue
=
item
.
QuantitativeIndicatorsValue
,
QuantitativeFee
=
item
.
Quantity
*
item
.
QuantitativeIndicatorsValue
*
headcount
,
//ScoringAverage = scoreAverage.HasValue ? scoreAverage : dept?.ScoringAverage,
//ScoringAverage = scoreAverage.HasValue ? scoreAverage : dept?.ScoringAverage,
ScoringAverage
=
dept
?.
ScoringAverage
??
1
,
//OtherPerfor = dept?.OtherPerfor1,
//Punishment = (extra ?? 0),
...
...
@@ -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
)
...
...
@@ -170,8 +171,8 @@ private void WriteDataToFile(int userId, per_allot allot, List<cust_script> scri
// “科室名称”必须存在 “来源”必须存在
if
(
deptIndex
>
-
1
)
{
string
atDepartment
=
temp
.
ElementAt
(
deptIndex
).
Value
?.
ToString
()
??
""
;
// 当前行“科室名称”
string
atUnitType
=
(
unitIndex
>
-
1
)
?
temp
.
ElementAt
(
unitIndex
).
Value
?.
ToString
()
:
""
;
// 当前行“核算单元类别”
string
atDepartment
=
temp
.
ElementAt
(
deptIndex
).
Value
?.
ToString
()
??
""
;
// 当前行“科室名称”
string
atUnitType
=
(
unitIndex
>
-
1
)
?
temp
.
ElementAt
(
unitIndex
).
Value
?.
ToString
()
:
""
;
// 当前行“核算单元类别”
// 如果是科主任护士长 则取角色的 核算单元类别
// 如果是核算办 则取数据中 核算单元类别
...
...
@@ -190,7 +191,7 @@ private void WriteDataToFile(int userId, per_allot allot, List<cust_script> scri
}
else
{
string
atSource
=
temp
.
ElementAt
(
sourceIndex
).
Value
?.
ToString
()
??
""
;
// 当前行“来源”
string
atSource
=
temp
.
ElementAt
(
sourceIndex
).
Value
?.
ToString
()
??
""
;
// 当前行“来源”
accountUnit
=
tempDepts
.
FirstOrDefault
(
w
=>
w
.
Source
==
atSource
)?.
AccountingUnit
??
""
;
}
}
...
...
@@ -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
++)
...
...
@@ -316,4 +318,4 @@ private bool IsSecondAdmin(int userId, out string[] unitType)
return
(
isSecondAdmin
,
department
,
unitType
);
}
}
}
\ No newline at end of file
}
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