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
89150e7f
Commit
89150e7f
authored
Mar 29, 2019
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改t4
parent
0671b2b7
Hide whitespace changes
Inline
Side-by-side
Showing
65 changed files
with
514 additions
and
320 deletions
+514
-320
performance/Performance.EntityModels/Context/PerformanceDbContext.cs
+52
-25
performance/Performance.EntityModels/Entity/Sys_User.cs
+3
-3
performance/Performance.EntityModels/Entity/cof_director.cs
+11
-11
performance/Performance.EntityModels/Entity/cof_drugprop.cs
+9
-9
performance/Performance.EntityModels/Entity/cof_income.cs
+10
-10
performance/Performance.EntityModels/Entity/cof_workyear.cs
+19
-10
performance/Performance.EntityModels/Entity/im_accountbasic.cs
+3
-3
performance/Performance.EntityModels/Entity/im_data.cs
+3
-3
performance/Performance.EntityModels/Entity/im_employee.cs
+3
-3
performance/Performance.EntityModels/Entity/im_header.cs
+3
-3
performance/Performance.EntityModels/Entity/im_specialunit.cs
+3
-3
performance/Performance.EntityModels/Entity/log_dbug.cs
+45
-0
performance/Performance.EntityModels/Entity/per_allot.cs
+17
-17
performance/Performance.EntityModels/Entity/per_sheet.cs
+3
-3
performance/Performance.EntityModels/Entity/res_accountdoctor.cs
+3
-3
performance/Performance.EntityModels/Entity/res_accountnurse.cs
+3
-3
performance/Performance.EntityModels/Entity/res_baiscnorm.cs
+3
-3
performance/Performance.EntityModels/Entity/res_compute.cs
+45
-30
performance/Performance.EntityModels/Entity/res_specialunit.cs
+3
-3
performance/Performance.EntityModels/Entity/sys_hospital.cs
+3
-3
performance/Performance.EntityModels/Entity/sys_menu.cs
+3
-3
performance/Performance.EntityModels/Entity/sys_role.cs
+3
-3
performance/Performance.EntityModels/Entity/sys_role_menu.cs
+3
-3
performance/Performance.EntityModels/Entity/sys_sms.cs
+3
-3
performance/Performance.EntityModels/Entity/sys_user_hospital.cs
+3
-3
performance/Performance.EntityModels/Entity/sys_user_role.cs
+3
-3
performance/Performance.EntityModels/Performance.EntityModels.csproj
+19
-0
performance/Performance.EntityModels/T4/EntityHelper.ttinclude
+1
-0
performance/Performance.Repository/PerforCofdirectorRepository.cs
+1
-4
performance/Performance.Repository/PerforMenuRepository.cs
+1
-4
performance/Performance.Repository/PerforPerAllotRepository.cs
+1
-5
performance/Performance.Repository/PerforUserHospitalRepository.cs
+1
-5
performance/Performance.Repository/Repository/PerforCofdirectorRepository.cs
+21
-0
performance/Performance.Repository/Repository/PerforCofdrugpropRepository.cs
+2
-2
performance/Performance.Repository/Repository/PerforCofincomeRepository.cs
+2
-2
performance/Performance.Repository/Repository/PerforCofworkyearRepository.cs
+4
-7
performance/Performance.Repository/Repository/PerforHospitalRepository.cs
+4
-7
performance/Performance.Repository/Repository/PerforImaccountbasicRepository.cs
+2
-2
performance/Performance.Repository/Repository/PerforImdataRepository.cs
+3
-3
performance/Performance.Repository/Repository/PerforImemployeeRepository.cs
+3
-3
performance/Performance.Repository/Repository/PerforImheaderRepository.cs
+3
-3
performance/Performance.Repository/Repository/PerforImspecialunitRepository.cs
+2
-2
performance/Performance.Repository/Repository/PerforLogdbugRepository.cs
+6
-6
performance/Performance.Repository/Repository/PerforMenuRepository.cs
+21
-0
performance/Performance.Repository/Repository/PerforPerallotRepository.cs
+21
-0
performance/Performance.Repository/Repository/PerforPersheetRepository.cs
+21
-0
performance/Performance.Repository/Repository/PerforResaccountdoctorRepository.cs
+6
-6
performance/Performance.Repository/Repository/PerforResaccountnurseRepository.cs
+6
-6
performance/Performance.Repository/Repository/PerforResbaiscnormRepository.cs
+2
-2
performance/Performance.Repository/Repository/PerforRescomputeRepository.cs
+2
-2
performance/Performance.Repository/Repository/PerforResspecialunitRepository.cs
+2
-2
performance/Performance.Repository/Repository/PerforRoleRepository.cs
+3
-3
performance/Performance.Repository/Repository/PerforRolemenuRepository.cs
+3
-3
performance/Performance.Repository/Repository/PerforSmsRepository.cs
+3
-3
performance/Performance.Repository/Repository/PerforUserRepository.cs
+4
-4
performance/Performance.Repository/Repository/PerforUserhospitalRepository.cs
+21
-0
performance/Performance.Repository/Repository/PerforUserroleRepository.cs
+3
-3
performance/Performance.Repository/T4/AutoRepository.tt
+2
-2
performance/Performance.Services/AllotCompute/ImportDataService.cs
+8
-8
performance/Performance.Services/AllotCompute/ProcessComputService.cs
+12
-12
performance/Performance.Services/AllotCompute/ResultComputeService.cs
+6
-6
performance/Performance.Services/AllotService.cs
+6
-13
performance/Performance.Services/ComputeService.cs
+8
-8
performance/Performance.Services/ConfigService.cs
+2
-2
performance/Performance.Services/SheetSevice.cs
+14
-14
No files found.
performance/Performance.EntityModels/Context/PerformanceDbContext.cs
View file @
89150e7f
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.EntityFrameworkCore.Metadata
;
using
System
;
...
...
@@ -11,29 +12,55 @@ public PerformanceDbContext(DbContextOptions<PerformanceDbContext> options)
{
}
public
virtual
DbSet
<
sys_user
>
Sys_User
{
get
;
set
;
}
public
virtual
DbSet
<
sys_hospital
>
Sys_Hospital
{
get
;
set
;
}
public
virtual
DbSet
<
sys_sms
>
Sys_Sms
{
get
;
set
;
}
public
virtual
DbSet
<
sys_user_hospital
>
Sys_User_Hospital
{
get
;
set
;
}
public
virtual
DbSet
<
sys_menu
>
Sys_Menu
{
get
;
set
;
}
public
virtual
DbSet
<
sys_role
>
Sys_Role
{
get
;
set
;
}
public
virtual
DbSet
<
sys_role_menu
>
Sys_Role_Menu
{
get
;
set
;
}
public
virtual
DbSet
<
sys_user_role
>
Sys_User_Role
{
get
;
set
;
}
public
virtual
DbSet
<
per_allot
>
Per_Allot
{
get
;
set
;
}
public
virtual
DbSet
<
per_sheet
>
Per_Sheet
{
get
;
set
;
}
public
virtual
DbSet
<
im_employee
>
Im_Employee
{
get
;
set
;
}
public
virtual
DbSet
<
im_header
>
Im_Header
{
get
;
set
;
}
public
virtual
DbSet
<
im_data
>
Im_Data
{
get
;
set
;
}
public
virtual
DbSet
<
im_accountbasic
>
Im_AccountBasic
{
get
;
set
;
}
public
virtual
DbSet
<
res_accountdoctor
>
Res_Accountdoctor
{
get
;
set
;
}
public
virtual
DbSet
<
res_accountnurse
>
Res_Accountnurse
{
get
;
set
;
}
public
virtual
DbSet
<
cof_drugprop
>
Cof_DrugProp
{
get
;
set
;
}
public
virtual
DbSet
<
cof_income
>
Cof_Income
{
get
;
set
;
}
public
virtual
DbSet
<
cof_director
>
Cof_Director
{
get
;
set
;
}
public
virtual
DbSet
<
res_baiscnorm
>
Res_Baiscnorm
{
get
;
set
;
}
public
virtual
DbSet
<
res_compute
>
Res_Compute
{
get
;
set
;
}
public
virtual
DbSet
<
cof_workyear
>
Cof_Workyear
{
get
;
set
;
}
public
virtual
DbSet
<
im_specialunit
>
Im_SpecialUnit
{
get
;
set
;
}
public
virtual
DbSet
<
res_specialunit
>
Res_SpecialUnit
{
get
;
set
;
}
/// <summary> 医院表 <summary>
public
virtual
DbSet
<
sys_hospital
>
sys_hospital
{
get
;
set
;
}
/// <summary> 菜单表 <summary>
public
virtual
DbSet
<
sys_menu
>
sys_menu
{
get
;
set
;
}
/// <summary> 用户表 <summary>
public
virtual
DbSet
<
sys_user
>
sys_user
{
get
;
set
;
}
/// <summary> 用户与医院关联表 <summary>
public
virtual
DbSet
<
sys_user_hospital
>
sys_user_hospital
{
get
;
set
;
}
/// <summary> <summary>
public
virtual
DbSet
<
sys_role
>
sys_role
{
get
;
set
;
}
/// <summary> 规模绩效、效率绩效计算系数配置 <summary>
public
virtual
DbSet
<
cof_director
>
cof_director
{
get
;
set
;
}
/// <summary> 工作量门诊药占比系数 <summary>
public
virtual
DbSet
<
cof_drugprop
>
cof_drugprop
{
get
;
set
;
}
/// <summary> ICU医生护士有效收入汇总计算系数 <summary>
public
virtual
DbSet
<
cof_income
>
cof_income
{
get
;
set
;
}
/// <summary> 工龄对应绩效系数配置 <summary>
public
virtual
DbSet
<
cof_workyear
>
cof_workyear
{
get
;
set
;
}
/// <summary> 科室核算导入信息 <summary>
public
virtual
DbSet
<
im_accountbasic
>
im_accountbasic
{
get
;
set
;
}
/// <summary> <summary>
public
virtual
DbSet
<
im_data
>
im_data
{
get
;
set
;
}
/// <summary> <summary>
public
virtual
DbSet
<
im_employee
>
im_employee
{
get
;
set
;
}
/// <summary> <summary>
public
virtual
DbSet
<
im_header
>
im_header
{
get
;
set
;
}
/// <summary> 特殊科室核算 <summary>
public
virtual
DbSet
<
im_specialunit
>
im_specialunit
{
get
;
set
;
}
/// <summary> <summary>
public
virtual
DbSet
<
log_dbug
>
log_dbug
{
get
;
set
;
}
/// <summary> 医院绩效分配 <summary>
public
virtual
DbSet
<
per_allot
>
per_allot
{
get
;
set
;
}
/// <summary> 上传数据解析 <summary>
public
virtual
DbSet
<
per_sheet
>
per_sheet
{
get
;
set
;
}
/// <summary> 医生科室核算结果 <summary>
public
virtual
DbSet
<
res_accountdoctor
>
res_accountdoctor
{
get
;
set
;
}
/// <summary> 护理科室核算结果 <summary>
public
virtual
DbSet
<
res_accountnurse
>
res_accountnurse
{
get
;
set
;
}
/// <summary> 核算基础标准 <summary>
public
virtual
DbSet
<
res_baiscnorm
>
res_baiscnorm
{
get
;
set
;
}
/// <summary> <summary>
public
virtual
DbSet
<
res_compute
>
res_compute
{
get
;
set
;
}
/// <summary> <summary>
public
virtual
DbSet
<
res_specialunit
>
res_specialunit
{
get
;
set
;
}
/// <summary> 角色菜单关联表 <summary>
public
virtual
DbSet
<
sys_role_menu
>
sys_role_menu
{
get
;
set
;
}
/// <summary> <summary>
public
virtual
DbSet
<
sys_sms
>
sys_sms
{
get
;
set
;
}
/// <summary> 用户角色关联表 <summary>
public
virtual
DbSet
<
sys_user_role
>
sys_user_role
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/Sys_User.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" sys_user.cs">
// * FileName:
sys_user.cs
// * history : 2019-03-2
5 11:33:1
4
// * FileName:
.cs
// * history : 2019-03-2
9 12:36:4
4
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -11,7 +11,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
sys_user Entity Model
///
/// </summary>
[
Table
(
"sys_user"
)]
public
class
sys_user
...
...
performance/Performance.EntityModels/Entity/cof_director.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" cof_director.cs">
// * FileName:
cof_director.cs
// * history : 2019-03-2
5 11:33:1
4
// * FileName:
规模绩效、效率绩效计算系数配置.cs
// * history : 2019-03-2
9 12:36:4
4
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -11,7 +11,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
cof_director Entity Model
///
规模绩效、效率绩效计算系数配置
/// </summary>
[
Table
(
"cof_director"
)]
public
class
cof_director
...
...
@@ -21,24 +21,24 @@ public class cof_director
/// </summary>
[
Key
]
public
int
ID
{
get
;
set
;
}
/// <summary>
///
绩效i
d
///
/// </summary>
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
/// <summary>
///
绩
效类型
///
绩效类型
/// </summary>
public
string
TypeName
{
get
;
set
;
}
/// <summary>
///
职
务名称
///
职务名称
/// </summary>
public
string
JobTitle
{
get
;
set
;
}
/// <summary>
///
绩效
系数
///
绩效系数
/// </summary>
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
}
...
...
performance/Performance.EntityModels/Entity/cof_drugprop.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" cof_drugprop.cs">
// * FileName:
cof_drugprop.cs
// * history : 2019-03-2
5 11:33:1
4
// * FileName:
工作量门诊药占比系数.cs
// * history : 2019-03-2
9 12:36:4
4
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -11,7 +11,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
cof_drugprop Entity Model
///
工作量门诊药占比系数
/// </summary>
[
Table
(
"cof_drugprop"
)]
public
class
cof_drugprop
...
...
@@ -26,19 +26,19 @@ public class cof_drugprop
///
/// </summary>
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
/// <summary>
///
药占比最大范围(小于)
///
药占比最大范围(小于)
/// </summary>
public
Nullable
<
decimal
>
MaxRange
{
get
;
set
;
}
/// <summary>
///
药占比最小范围(大于等于)
///
药占比最小范围(大于等于)
/// </summary>
public
Nullable
<
decimal
>
MinRange
{
get
;
set
;
}
/// <summary>
///
药占比对应系数
///
药占比对应系数
/// </summary>
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
}
...
...
performance/Performance.EntityModels/Entity/cof_income.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" cof_income.cs">
// * FileName:
cof_income.cs
// * history : 2019-03-2
5 11:33:1
4
// * FileName:
ICU医生护士有效收入汇总计算系数.cs
// * history : 2019-03-2
9 12:36:4
4
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
namespace
Performance.EntityModels
{
/// <summary>
///
cof_income Entity Model
///
ICU医生护士有效收入汇总计算系数
/// </summary>
[
Table
(
"cof_income"
)]
public
class
cof_income
public
class
cof_income
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
ID
{
get
;
set
;
}
public
int
ID
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
/// <summary>
/// 关键字匹配
/// </summary>
public
string
SheetNameKeyword
{
get
;
set
;
}
/// <summary>
/// 分组名称(医生、护理)
/// </summary>
public
string
UnitName
{
get
;
set
;
}
/// <summary>
/// 有效收入占比
/// </summary>
...
...
performance/Performance.EntityModels/Entity/cof_workyear.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" cof_workyear.cs">
// * FileName: 工龄对应绩效系数配置.cs
// * history : 2019-03-29 12:36:44
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
namespace
Performance.EntityModels
{
/// <summary>
/// 工龄对应绩效系数配置
/// </summary>
[
Table
(
"cof_workyear"
)]
public
class
cof_workyear
public
class
cof_workyear
{
/// <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
<
decimal
>
MaxRange
{
get
;
set
;
}
/// <summary>
///
最小工龄范围(大于等于)
///
最小工龄范围(大于等于)
/// </summary>
public
Nullable
<
decimal
>
MinRange
{
get
;
set
;
}
/// <summary>
///
绩效系数
///
绩效系数
/// </summary>
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
}
...
...
performance/Performance.EntityModels/Entity/im_accountbasic.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" im_accountbasic.cs">
// * FileName:
im_accountbasic.cs
// * history : 2019-03-2
5 11:33:1
4
// * FileName:
科室核算导入信息.cs
// * history : 2019-03-2
9 12:36:4
4
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -11,7 +11,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
im_accountbasic Entity Model
///
科室核算导入信息
/// </summary>
[
Table
(
"im_accountbasic"
)]
public
class
im_accountbasic
...
...
performance/Performance.EntityModels/Entity/im_data.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" im_data.cs">
// * FileName:
im_data.cs
// * history : 2019-03-2
5 11:33:1
4
// * FileName:
.cs
// * history : 2019-03-2
9 12:36:4
4
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -11,7 +11,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
im_data Entity Model
///
/// </summary>
[
Table
(
"im_data"
)]
public
class
im_data
...
...
performance/Performance.EntityModels/Entity/im_employee.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" im_employee.cs">
// * FileName:
im_employee.cs
// * history : 2019-03-2
5 11:33:1
4
// * FileName:
.cs
// * history : 2019-03-2
9 12:36:4
4
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -11,7 +11,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
im_employee Entity Model
///
/// </summary>
[
Table
(
"im_employee"
)]
public
class
im_employee
...
...
performance/Performance.EntityModels/Entity/im_header.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" im_header.cs">
// * FileName:
im_header.cs
// * history : 2019-03-2
5 11:33:1
4
// * FileName:
.cs
// * history : 2019-03-2
9 12:36:4
4
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -11,7 +11,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
im_header Entity Model
///
/// </summary>
[
Table
(
"im_header"
)]
public
class
im_header
...
...
performance/Performance.EntityModels/Entity/im_specialunit.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" im_specialunit.cs">
// * FileName:
im_specialunit.cs
// * history : 2019-03-2
6 09:51:09
// * FileName:
特殊科室核算.cs
// * history : 2019-03-2
9 12:36:44
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -11,7 +11,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
im_specialunit Entity Model
///
特殊科室核算
/// </summary>
[
Table
(
"im_specialunit"
)]
public
class
im_specialunit
...
...
performance/Performance.EntityModels/Entity/log_dbug.cs
0 → 100644
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" log_dbug.cs">
// * FileName: .cs
// * history : 2019-03-29 12:36:44
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
{
/// <summary>
///
/// </summary>
[
Table
(
"log_dbug"
)]
public
class
log_dbug
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
ID
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
DateTime
>
CreateTime
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
string
Titile
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
string
Message
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/per_allot.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" per_allot.cs">
// * FileName:
per_allot.cs
// * history : 2019-03-2
5 11:33:1
4
// * FileName:
医院绩效分配.cs
// * history : 2019-03-2
9 12:36:4
4
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
namespace
Performance.EntityModels
{
/// <summary>
///
per_allot Entity Model
///
医院绩效分配
/// </summary>
[
Table
(
"per_allot"
)]
public
class
per_allot
public
class
per_allot
{
/// <summary>
/// ID
/// </summary>
[
Key
]
public
int
ID
{
get
;
set
;
}
public
int
ID
{
get
;
set
;
}
/// <summary>
/// 医院ID
/// </summary>
public
int
HospitalId
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
CreateUser
{
get
;
set
;
}
/// <summary>
/// 绩效统计时间
/// </summary>
public
Nullable
<
DateTime
>
CreateDate
{
get
;
set
;
}
/// <summary>
/// 绩效发放年
/// </summary>
public
int
Year
{
get
;
set
;
}
/// <summary>
/// 绩效发放月
/// </summary>
public
int
Month
{
get
;
set
;
}
/// <summary>
/// 绩效发放总金额
/// </summary>
public
Nullable
<
decimal
>
AllotFee
{
get
;
set
;
}
/// <summary>
/// 文件路径
/// </summary>
public
string
Path
{
get
;
set
;
}
/// <summary>
/// 上传日期
/// </summary>
public
Nullable
<
DateTime
>
UploadDate
{
get
;
set
;
}
/// <summary>
/// 0 数据未上传 1 数据已上传 2 正在校验数据 3 数据验证通过 4 数据错误 5 正在生成绩效 6 绩效结果解析成功 7 绩效解析失败 8 归档
/// </summary>
public
int
States
{
get
;
set
;
}
/// <summary>
///
///
备注
/// </summary>
public
string
Remark
{
get
;
set
;
}
}
...
...
performance/Performance.EntityModels/Entity/per_sheet.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" per_sheet.cs">
// * FileName:
per_sheet.cs
// * history : 2019-03-2
5 11:33:1
4
// * FileName:
上传数据解析.cs
// * history : 2019-03-2
9 12:36:4
4
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -11,7 +11,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
per_sheet Entity Model
///
上传数据解析
/// </summary>
[
Table
(
"per_sheet"
)]
public
class
per_sheet
...
...
performance/Performance.EntityModels/Entity/res_accountdoctor.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" res_accountdoctor.cs">
// * FileName:
res_accountdoctor.cs
// * history : 2019-03-2
5 11:33:1
4
// * FileName:
医生科室核算结果.cs
// * history : 2019-03-2
9 12:36:4
4
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -11,7 +11,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
res_accountdoctor Entity Model
///
医生科室核算结果
/// </summary>
[
Table
(
"res_accountdoctor"
)]
public
class
res_accountdoctor
...
...
performance/Performance.EntityModels/Entity/res_accountnurse.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" res_accountnurse.cs">
// * FileName:
res_accountnurse.cs
// * history : 2019-03-2
5 11:33:1
4
// * FileName:
护理科室核算结果.cs
// * history : 2019-03-2
9 12:36:4
4
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -11,7 +11,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
res_accountnurse Entity Model
///
护理科室核算结果
/// </summary>
[
Table
(
"res_accountnurse"
)]
public
class
res_accountnurse
...
...
performance/Performance.EntityModels/Entity/res_baiscnorm.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" res_baiscnorm.cs">
// * FileName:
res_baiscnorm.cs
// * history : 2019-03-2
5 11:33:1
4
// * FileName:
核算基础标准.cs
// * history : 2019-03-2
9 12:36:4
4
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -11,7 +11,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
res_baiscnorm Entity Model
///
核算基础标准
/// </summary>
[
Table
(
"res_baiscnorm"
)]
public
class
res_baiscnorm
...
...
performance/Performance.EntityModels/Entity/res_compute.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" res_compute.cs">
// * FileName:
res_compute.cs
// * history : 2019-03-2
5 19:35:46
// * FileName:
.cs
// * history : 2019-03-2
9 12:36:44
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
namespace
Performance.EntityModels
{
/// <summary>
///
res_compute Entity Model
///
/// </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
AccountingUnit
{
get
;
set
;
}
/// <summary>
/// 绩效基数核算参考对象
/// </summary>
public
string
FitPeople
{
get
;
set
;
}
/// <summary>
/// 人员姓名
/// </summary>
public
string
EmployeeName
{
get
;
set
;
}
/// <summary>
/// 职称
/// </summary>
public
string
JobTitle
{
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>
/// 应发绩效(需计算)
/// </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
;
}
}
}
performance/Performance.EntityModels/Entity/res_specialunit.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" res_specialunit.cs">
// * FileName:
res_specialunit.cs
// * history : 2019-03-2
6 10:25:00
// * FileName:
.cs
// * history : 2019-03-2
9 12:36:44
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -11,7 +11,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
res_specialunit Entity Model
///
/// </summary>
[
Table
(
"res_specialunit"
)]
public
class
res_specialunit
...
...
performance/Performance.EntityModels/Entity/sys_hospital.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" sys_hospital.cs">
// * FileName:
sys_hospital.cs
// * history : 2019-03-2
5 11:33:1
4
// * FileName:
医院信息.cs
// * history : 2019-03-2
9 12:36:4
4
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -11,7 +11,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
sys_hospital Entity Model
///
医院信息
/// </summary>
[
Table
(
"sys_hospital"
)]
public
class
sys_hospital
...
...
performance/Performance.EntityModels/Entity/sys_menu.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" sys_menu.cs">
// * FileName:
sys_menu.cs
// * history : 2019-03-2
5 11:33:1
4
// * FileName:
菜单表.cs
// * history : 2019-03-2
9 12:36:4
4
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -11,7 +11,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
sys_menu Entity Model
///
菜单表
/// </summary>
[
Table
(
"sys_menu"
)]
public
class
sys_menu
...
...
performance/Performance.EntityModels/Entity/sys_role.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" sys_role.cs">
// * FileName:
sys_role.cs
// * history : 2019-03-2
5 11:33:1
4
// * FileName:
角色表.cs
// * history : 2019-03-2
9 12:36:4
4
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -11,7 +11,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
sys_role Entity Model
///
角色表
/// </summary>
[
Table
(
"sys_role"
)]
public
class
sys_role
...
...
performance/Performance.EntityModels/Entity/sys_role_menu.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" sys_role_menu.cs">
// * FileName:
sys_role_menu.cs
// * history : 2019-03-2
5 11:33:1
4
// * FileName:
角色菜单关联表.cs
// * history : 2019-03-2
9 12:36:4
4
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -11,7 +11,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
sys_role_menu Entity Model
///
角色菜单关联表
/// </summary>
[
Table
(
"sys_role_menu"
)]
public
class
sys_role_menu
...
...
performance/Performance.EntityModels/Entity/sys_sms.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" sys_sms.cs">
// * FileName:
sys_sms.cs
// * history : 2019-03-2
5 11:33:1
4
// * FileName:
.cs
// * history : 2019-03-2
9 12:36:4
4
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -11,7 +11,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
sys_sms Entity Model
///
/// </summary>
[
Table
(
"sys_sms"
)]
public
class
sys_sms
...
...
performance/Performance.EntityModels/Entity/sys_user_hospital.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" sys_user_hospital.cs">
// * FileName:
sys_user_hospital.cs
// * history : 2019-03-2
5 11:33:1
4
// * FileName:
.cs
// * history : 2019-03-2
9 12:36:4
4
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -11,7 +11,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
sys_user_hospital Entity Model
///
/// </summary>
[
Table
(
"sys_user_hospital"
)]
public
class
sys_user_hospital
...
...
performance/Performance.EntityModels/Entity/sys_user_role.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" sys_user_role.cs">
// * FileName:
sys_user_role.cs
// * history : 2019-03-2
5 11:33:1
4
// * FileName:
用户角色关联表.cs
// * history : 2019-03-2
9 12:36:4
4
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -11,7 +11,7 @@
namespace
Performance.EntityModels
{
/// <summary>
///
sys_user_role Entity Model
///
用户角色关联表
/// </summary>
[
Table
(
"sys_user_role"
)]
public
class
sys_user_role
...
...
performance/Performance.EntityModels/Performance.EntityModels.csproj
View file @
89150e7f
...
...
@@ -42,12 +42,31 @@
</ItemGroup>
<ItemGroup>
<Compile Update="T4\AutoContext.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>AutoContext.tt</DependentUpon>
</Compile>
<Compile Update="T4\AutoEntity.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>AutoEntity.tt</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<None Update="T4\AutoContext.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>AutoContext.cs</LastGenOutput>
</None>
<None Update="T4\AutoEntity.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>AutoEntity.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<Folder Include="Entity\" />
</ItemGroup>
</Project>
performance/Performance.EntityModels/T4/EntityHelper.ttinclude
View file @
89150e7f
...
...
@@ -28,6 +28,7 @@
FROM `information_schema`.`TABLES`
LEFT JOIN `information_schema`.`COLUMNS`
ON `information_schema`.`TABLES`.`TABLE_NAME`=`information_schema`.`COLUMNS`.`TABLE_NAME`
AND `information_schema`.`TABLES`.`TABLE_SCHEMA`=`information_schema`.`COLUMNS`.`TABLE_SCHEMA`
WHERE `information_schema`.`COLUMNS`.`TABLE_SCHEMA` IN ('{0}') ", dbs);
using (var reader = MySqlHelper.ExecuteReader(conn, cmd))
{
...
...
performance/Performance.Repository/PerforCofdirectorRepository.cs
View file @
89150e7f
...
...
@@ -13,11 +13,8 @@ namespace Performance.Repository
/// <summary>
/// cof_director Repository
/// </summary>
public
class
PerforCofdirectorRepository
:
PerforRepository
<
cof_director
>
public
partial
class
PerforCofdirectorRepository
:
PerforRepository
<
cof_director
>
{
public
PerforCofdirectorRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
public
int
DeleteData
(
int
allotId
)
{
List
<
string
>
tableArray
=
new
List
<
string
>
...
...
performance/Performance.Repository/PerforMenuRepository.cs
View file @
89150e7f
...
...
@@ -14,11 +14,8 @@ namespace Performance.Repository
/// <summary>
/// sys_menu Repository
/// </summary>
public
class
PerforMenuRepository
:
PerforRepository
<
sys_menu
>
public
partial
class
PerforMenuRepository
:
PerforRepository
<
sys_menu
>
{
public
PerforMenuRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
public
List
<
sys_menu
>
GetMenuList
(
int
userid
)
{
...
...
performance/Performance.Repository/PerforPerAllotRepository.cs
View file @
89150e7f
...
...
@@ -12,12 +12,8 @@ namespace Performance.Repository
/// <summary>
/// sys_allot Repository
/// </summary>
public
class
PerforPerA
llotRepository
:
PerforRepository
<
per_allot
>
public
partial
class
PerforPera
llotRepository
:
PerforRepository
<
per_allot
>
{
public
PerforPerAllotRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
public
bool
UpdateAllotStates
(
int
allotId
,
int
states
,
string
remark
)
{
var
allot
=
GetEntity
(
t
=>
t
.
ID
==
allotId
);
...
...
performance/Performance.Repository/PerforUserHospitalRepository.cs
View file @
89150e7f
...
...
@@ -14,12 +14,8 @@ namespace Performance.Repository
/// <summary>
/// sys_user_hospital Repository
/// </summary>
public
class
PerforUserhospitalRepository
:
PerforRepository
<
sys_user_hospital
>
public
partial
class
PerforUserhospitalRepository
:
PerforRepository
<
sys_user_hospital
>
{
public
PerforUserhospitalRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
public
List
<
sys_user_hospital
>
GetUserHospital
(
int
userid
)
{
string
sql
=
"select * from sys_user_hospital where userid=@userid"
;
...
...
performance/Performance.Repository/Repository/PerforCofdirectorRepository.cs
0 → 100644
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" cof_director.cs">
// * FileName: cof_director.cs
// * history : Created by T4 2019-03-29 11:36:36
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// cof_director Repository
/// </summary>
public
partial
class
PerforCofdirectorRepository
:
PerforRepository
<
cof_director
>
{
public
PerforCofdirectorRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/PerforCofdrugpropRepository.cs
→
performance/Performance.Repository/
Repository/
PerforCofdrugpropRepository.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" cof_drugprop.cs">
// * FileName: cof_drugprop.cs
// * history : Created by T4 2019-03-2
0 16:16:18
// * history : Created by T4 2019-03-2
9 11:36:36
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -12,7 +12,7 @@ namespace Performance.Repository
/// <summary>
/// cof_drugprop Repository
/// </summary>
public
class
PerforCofdrugpropRepository
:
PerforRepository
<
cof_drugprop
>
public
partial
class
PerforCofdrugpropRepository
:
PerforRepository
<
cof_drugprop
>
{
public
PerforCofdrugpropRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
...
...
performance/Performance.Repository/PerforCofincomeRepository.cs
→
performance/Performance.Repository/
Repository/
PerforCofincomeRepository.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" cof_income.cs">
// * FileName: cof_income.cs
// * history : Created by T4 2019-03-2
1 15:03:54
// * history : Created by T4 2019-03-2
9 11:36:36
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -12,7 +12,7 @@ namespace Performance.Repository
/// <summary>
/// cof_income Repository
/// </summary>
public
class
PerforCofincomeRepository
:
PerforRepository
<
cof_income
>
public
partial
class
PerforCofincomeRepository
:
PerforRepository
<
cof_income
>
{
public
PerforCofincomeRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
...
...
performance/Performance.Repository/PerforCofworkyearRepository.cs
→
performance/Performance.Repository/
Repository/
PerforCofworkyearRepository.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" cof_workyear.cs">
// * FileName: cof_workyear.cs
// * history : Created by T4 2019-03-2
5 11:32:42
// * history : Created by T4 2019-03-2
9 11:36:36
// </copyright>
//-----------------------------------------------------------------------
using
Performance.EntityModels
;
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// cof_workyear Repository
/// </summary>
public
class
PerforCofworkyearRepository
:
PerforRepository
<
cof_workyear
>
public
partial
class
PerforCofworkyearRepository
:
PerforRepository
<
cof_workyear
>
{
public
PerforCofworkyearRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
public
PerforCofworkyearRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
...
...
performance/Performance.Repository/PerforHospitalRepository.cs
→
performance/Performance.Repository/
Repository/
PerforHospitalRepository.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" sys_hospital.cs">
// * FileName: sys_hospital.cs
// * history : Created by T4 2019-03-
04 14:41:21
// * history : Created by T4 2019-03-
29 11:36:36
// </copyright>
//-----------------------------------------------------------------------
using
Performance.EntityModels
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// sys_hospital Repository
/// </summary>
public
class
PerforHospitalRepository
:
PerforRepository
<
sys_hospital
>
public
partial
class
PerforHospitalRepository
:
PerforRepository
<
sys_hospital
>
{
public
PerforHospitalRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
public
PerforHospitalRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/PerforImaccountbasicRepository.cs
→
performance/Performance.Repository/
Repository/
PerforImaccountbasicRepository.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" im_accountbasic.cs">
// * FileName: im_accountbasic.cs
// * history : Created by T4 2019-03-2
0 09:47
:36
// * history : Created by T4 2019-03-2
9 11:36
:36
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -12,7 +12,7 @@ namespace Performance.Repository
/// <summary>
/// im_accountbasic Repository
/// </summary>
public
class
PerforImaccountbasicRepository
:
PerforRepository
<
im_accountbasic
>
public
partial
class
PerforImaccountbasicRepository
:
PerforRepository
<
im_accountbasic
>
{
public
PerforImaccountbasicRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
...
...
performance/Performance.Repository/
PerforImD
ataRepository.cs
→
performance/Performance.Repository/
Repository/PerforImd
ataRepository.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" im_data.cs">
// * FileName: im_data.cs
// * history : Created by T4 2019-03-
14 10:26:02
// * history : Created by T4 2019-03-
29 11:36:36
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -12,9 +12,9 @@ namespace Performance.Repository
/// <summary>
/// im_data Repository
/// </summary>
public
class
PerforImD
ataRepository
:
PerforRepository
<
im_data
>
public
partial
class
PerforImd
ataRepository
:
PerforRepository
<
im_data
>
{
public
PerforIm
D
ataRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
public
PerforIm
d
ataRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
...
...
performance/Performance.Repository/PerforImemployeeRepository.cs
→
performance/Performance.Repository/
Repository/
PerforImemployeeRepository.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" im_employee.cs">
// * FileName: im_employee.cs
// * history : Created by T4 2019-03-
08 15:45:50
// * history : Created by T4 2019-03-
29 11:36:36
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -12,9 +12,9 @@ namespace Performance.Repository
/// <summary>
/// im_employee Repository
/// </summary>
public
class
PerforImE
mployeeRepository
:
PerforRepository
<
im_employee
>
public
partial
class
PerforIme
mployeeRepository
:
PerforRepository
<
im_employee
>
{
public
PerforIm
E
mployeeRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
public
PerforIm
e
mployeeRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
...
...
performance/Performance.Repository/
PerforImH
eaderRepository.cs
→
performance/Performance.Repository/
Repository/PerforImh
eaderRepository.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" im_header.cs">
// * FileName: im_header.cs
// * history : Created by T4 2019-03-
14 10:26:02
// * history : Created by T4 2019-03-
29 11:36:36
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -12,9 +12,9 @@ namespace Performance.Repository
/// <summary>
/// im_header Repository
/// </summary>
public
class
PerforImH
eaderRepository
:
PerforRepository
<
im_header
>
public
partial
class
PerforImh
eaderRepository
:
PerforRepository
<
im_header
>
{
public
PerforIm
H
eaderRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
public
PerforIm
h
eaderRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
...
...
performance/Performance.Repository/PerforImspecialunitRepository.cs
→
performance/Performance.Repository/
Repository/
PerforImspecialunitRepository.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" im_specialunit.cs">
// * FileName: im_specialunit.cs
// * history : Created by T4 2019-03-2
6 09:51:44
// * history : Created by T4 2019-03-2
9 11:36:36
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -12,7 +12,7 @@ namespace Performance.Repository
/// <summary>
/// im_specialunit Repository
/// </summary>
public
class
PerforImspecialunitRepository
:
PerforRepository
<
im_specialunit
>
public
partial
class
PerforImspecialunitRepository
:
PerforRepository
<
im_specialunit
>
{
public
PerforImspecialunitRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
...
...
performance/Performance.Repository/
PerforPerSheet
Repository.cs
→
performance/Performance.Repository/
Repository/PerforLogdbug
Repository.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file="
im_sheet
.cs">
// * FileName:
im_sheet
.cs
// * history : Created by T4 2019-03-
14 10:26:02
// <copyright file="
log_dbug
.cs">
// * FileName:
log_dbug
.cs
// * history : Created by T4 2019-03-
29 11:36:36
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -10,11 +10,11 @@
namespace
Performance.Repository
{
/// <summary>
///
im_sheet
Repository
///
log_dbug
Repository
/// </summary>
public
class
PerforPerSheetRepository
:
PerforRepository
<
per_sheet
>
public
partial
class
PerforLogdbugRepository
:
PerforRepository
<
log_dbug
>
{
public
Perfor
PerSheet
Repository
(
PerformanceDbContext
context
)
:
base
(
context
)
public
Perfor
Logdbug
Repository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
...
...
performance/Performance.Repository/Repository/PerforMenuRepository.cs
0 → 100644
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" sys_menu.cs">
// * FileName: sys_menu.cs
// * history : Created by T4 2019-03-29 11:36:36
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// sys_menu Repository
/// </summary>
public
partial
class
PerforMenuRepository
:
PerforRepository
<
sys_menu
>
{
public
PerforMenuRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/Repository/PerforPerallotRepository.cs
0 → 100644
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" per_allot.cs">
// * FileName: per_allot.cs
// * history : Created by T4 2019-03-29 11:36:36
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// per_allot Repository
/// </summary>
public
partial
class
PerforPerallotRepository
:
PerforRepository
<
per_allot
>
{
public
PerforPerallotRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/Repository/PerforPersheetRepository.cs
0 → 100644
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" per_sheet.cs">
// * FileName: per_sheet.cs
// * history : Created by T4 2019-03-29 11:36:36
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// per_sheet Repository
/// </summary>
public
partial
class
PerforPersheetRepository
:
PerforRepository
<
per_sheet
>
{
public
PerforPersheetRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/
PerforResA
ccountdoctorRepository.cs
→
performance/Performance.Repository/
Repository/PerforResa
ccountdoctorRepository.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file="
im
_accountdoctor.cs">
// * FileName:
im
_accountdoctor.cs
// * history : Created by T4 2019-03-2
0 09:47
:36
// <copyright file="
res
_accountdoctor.cs">
// * FileName:
res
_accountdoctor.cs
// * history : Created by T4 2019-03-2
9 11:36
:36
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -10,11 +10,11 @@
namespace
Performance.Repository
{
/// <summary>
///
im
_accountdoctor Repository
///
res
_accountdoctor Repository
/// </summary>
public
class
PerforResA
ccountdoctorRepository
:
PerforRepository
<
res_accountdoctor
>
public
partial
class
PerforResa
ccountdoctorRepository
:
PerforRepository
<
res_accountdoctor
>
{
public
PerforRes
A
ccountdoctorRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
public
PerforRes
a
ccountdoctorRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
...
...
performance/Performance.Repository/
PerforResA
ccountnurseRepository.cs
→
performance/Performance.Repository/
Repository/PerforResa
ccountnurseRepository.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file="
im
_accountnurse.cs">
// * FileName:
im
_accountnurse.cs
// * history : Created by T4 2019-03-2
0 09:47
:36
// <copyright file="
res
_accountnurse.cs">
// * FileName:
res
_accountnurse.cs
// * history : Created by T4 2019-03-2
9 11:36
:36
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -10,11 +10,11 @@
namespace
Performance.Repository
{
/// <summary>
///
im
_accountnurse Repository
///
res
_accountnurse Repository
/// </summary>
public
class
PerforResA
ccountnurseRepository
:
PerforRepository
<
res_accountnurse
>
public
partial
class
PerforResa
ccountnurseRepository
:
PerforRepository
<
res_accountnurse
>
{
public
PerforRes
A
ccountnurseRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
public
PerforRes
a
ccountnurseRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
...
...
performance/Performance.Repository/PerforResbaiscnormRepository.cs
→
performance/Performance.Repository/
Repository/
PerforResbaiscnormRepository.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" res_baiscnorm.cs">
// * FileName: res_baiscnorm.cs
// * history : Created by T4 2019-03-2
2 15:48:55
// * history : Created by T4 2019-03-2
9 11:36:36
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -12,7 +12,7 @@ namespace Performance.Repository
/// <summary>
/// res_baiscnorm Repository
/// </summary>
public
class
PerforResbaiscnormRepository
:
PerforRepository
<
res_baiscnorm
>
public
partial
class
PerforResbaiscnormRepository
:
PerforRepository
<
res_baiscnorm
>
{
public
PerforResbaiscnormRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
...
...
performance/Performance.Repository/PerforRescomputeRepository.cs
→
performance/Performance.Repository/
Repository/
PerforRescomputeRepository.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" res_compute.cs">
// * FileName: res_compute.cs
// * history : Created by T4 2019-03-2
2 15:48:55
// * history : Created by T4 2019-03-2
9 11:36:36
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -12,7 +12,7 @@ namespace Performance.Repository
/// <summary>
/// res_compute Repository
/// </summary>
public
class
PerforRescomputeRepository
:
PerforRepository
<
res_compute
>
public
partial
class
PerforRescomputeRepository
:
PerforRepository
<
res_compute
>
{
public
PerforRescomputeRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
...
...
performance/Performance.Repository/PerforResspecialunitRepository.cs
→
performance/Performance.Repository/
Repository/
PerforResspecialunitRepository.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" res_specialunit.cs">
// * FileName: res_specialunit.cs
// * history : Created by T4 2019-03-2
6 10:25:0
6
// * history : Created by T4 2019-03-2
9 11:36:3
6
// </copyright>
//-----------------------------------------------------------------------
using
System
;
...
...
@@ -12,7 +12,7 @@ namespace Performance.Repository
/// <summary>
/// res_specialunit Repository
/// </summary>
public
class
PerforResspecialunitRepository
:
PerforRepository
<
res_specialunit
>
public
partial
class
PerforResspecialunitRepository
:
PerforRepository
<
res_specialunit
>
{
public
PerforResspecialunitRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
...
...
performance/Performance.Repository/PerforRoleRepository.cs
→
performance/Performance.Repository/
Repository/
PerforRoleRepository.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" sys_role.cs">
// * FileName: sys_role.cs
// * history : Created by T4 2019-03-
05 16:58:02
// * history : Created by T4 2019-03-
29 11:36:36
// </copyright>
//-----------------------------------------------------------------------
using
Performance.EntityModels
;
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// sys_role Repository
/// </summary>
public
class
PerforRoleRepository
:
PerforRepository
<
sys_role
>
public
partial
class
PerforRoleRepository
:
PerforRepository
<
sys_role
>
{
public
PerforRoleRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
...
...
performance/Performance.Repository/PerforRolemenuRepository.cs
→
performance/Performance.Repository/
Repository/
PerforRolemenuRepository.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" sys_role_menu.cs">
// * FileName: sys_role_menu.cs
// * history : Created by T4 2019-03-
05 16:58:02
// * history : Created by T4 2019-03-
29 11:36:36
// </copyright>
//-----------------------------------------------------------------------
using
Performance.EntityModels
;
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// sys_role_menu Repository
/// </summary>
public
class
PerforRolemenuRepository
:
PerforRepository
<
sys_role_menu
>
public
partial
class
PerforRolemenuRepository
:
PerforRepository
<
sys_role_menu
>
{
public
PerforRolemenuRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
...
...
performance/Performance.Repository/PerforSmsRepository.cs
→
performance/Performance.Repository/
Repository/
PerforSmsRepository.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" sys_sms.cs">
// * FileName: sys_sms.cs
// * history : Created by T4 2019-03-
04 14:41:21
// * history : Created by T4 2019-03-
29 11:36:36
// </copyright>
//-----------------------------------------------------------------------
using
Performance.EntityModels
;
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// sys_sms Repository
/// </summary>
public
class
PerforSmsRepository
:
PerforRepository
<
sys_sms
>
public
partial
class
PerforSmsRepository
:
PerforRepository
<
sys_sms
>
{
public
PerforSmsRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
...
...
performance/Performance.Repository/PerforUserRepository.cs
→
performance/Performance.Repository/
Repository/
PerforUserRepository.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" sys_user.cs">
// * FileName: sys_user.cs
// * history : Created by T4 2019-03-
04 14:41:21
// * history : Created by T4 2019-03-
29 11:36:36
// </copyright>
//-----------------------------------------------------------------------
using
Performance.EntityModels
;
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// sys_user Repository
/// </summary>
public
class
PerforUserRepository
:
PerforRepository
<
sys_user
>
public
partial
class
PerforUserRepository
:
PerforRepository
<
sys_user
>
{
public
PerforUserRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
public
PerforUserRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
...
...
performance/Performance.Repository/Repository/PerforUserhospitalRepository.cs
0 → 100644
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" sys_user_hospital.cs">
// * FileName: sys_user_hospital.cs
// * history : Created by T4 2019-03-29 11:36:36
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// sys_user_hospital Repository
/// </summary>
public
partial
class
PerforUserhospitalRepository
:
PerforRepository
<
sys_user_hospital
>
{
public
PerforUserhospitalRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/PerforUserroleRepository.cs
→
performance/Performance.Repository/
Repository/
PerforUserroleRepository.cs
View file @
89150e7f
//-----------------------------------------------------------------------
// <copyright file=" sys_user_role.cs">
// * FileName: sys_user_role.cs
// * history : Created by T4 2019-03-
05 16:58:02
// * history : Created by T4 2019-03-
29 11:36:36
// </copyright>
//-----------------------------------------------------------------------
using
Performance.EntityModels
;
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// sys_user_role Repository
/// </summary>
public
class
PerforUserroleRepository
:
PerforRepository
<
sys_user_role
>
public
partial
class
PerforUserroleRepository
:
PerforRepository
<
sys_user_role
>
{
public
PerforUserroleRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
...
...
performance/Performance.Repository/T4/AutoRepository.tt
View file @
89150e7f
...
...
@@ -9,7 +9,7 @@
var database = new List<string> { "db_performance" };
DirectoryInfo directory = new DirectoryInfo(Host.TemplateFile);
var outputPath = Path.Combine(directory.Parent.Parent.FullName);
var outputPath = Path.Combine(directory.Parent.Parent.FullName
,"Repository"
);
new DirectoryInfo(outputPath).Create();
var manager = new Manager(Host, GenerationEnvironment, true) { OutputPath = outputPath };
...
...
@@ -35,7 +35,7 @@ namespace Performance.Repository
/// <summary>
/// <#= entity.EntityName #> Repository
/// </summary>
public class <#= entityName #>Repository : PerforRepository<<#= entity.EntityName #>>
public
partial
class <#= entityName #>Repository : PerforRepository<<#= entity.EntityName #>>
{
public <#= entityName #>Repository(PerformanceDbContext context) : base(context)
{
...
...
performance/Performance.Services/AllotCompute/ImportDataService.cs
View file @
89150e7f
...
...
@@ -20,17 +20,17 @@ namespace Performance.Services.AllotCompute
public
class
ImportDataService
:
IAutoInjection
{
private
PerSheetService
perSheetService
;
private
PerforPer
S
heetRepository
perforPerSheetRepository
;
private
PerforIm
D
ataRepository
perforImDataRepository
;
private
PerforIm
H
eaderRepository
perforImHeaderRepository
;
private
PerforIm
E
mployeeRepository
perforImEmployeeRepository
;
private
PerforPer
s
heetRepository
perforPerSheetRepository
;
private
PerforIm
d
ataRepository
perforImDataRepository
;
private
PerforIm
h
eaderRepository
perforImHeaderRepository
;
private
PerforIm
e
mployeeRepository
perforImEmployeeRepository
;
private
PerforImaccountbasicRepository
perforImaccountbasicRepository
;
private
PerforImspecialunitRepository
perforImspecialunitRepository
;
public
ImportDataService
(
PerSheetService
perSheetService
,
PerforPer
S
heetRepository
perforPerSheetRepository
,
PerforIm
D
ataRepository
perforImDataRepository
,
PerforIm
H
eaderRepository
perforImHeaderRepository
,
PerforIm
E
mployeeRepository
perforImEmployeeRepository
,
PerforPer
s
heetRepository
perforPerSheetRepository
,
PerforIm
d
ataRepository
perforImDataRepository
,
PerforIm
h
eaderRepository
perforImHeaderRepository
,
PerforIm
e
mployeeRepository
perforImEmployeeRepository
,
PerforImaccountbasicRepository
perforImaccountbasicRepository
,
PerforImspecialunitRepository
perforImspecialunitRepository
)
{
...
...
performance/Performance.Services/AllotCompute/ProcessComputService.cs
View file @
89150e7f
...
...
@@ -16,20 +16,20 @@ public class ProcessComputService : IAutoInjection
{
private
PerforCofincomeRepository
perforCofincomeRepository
;
private
PerforCofdrugpropRepository
perforCofdrugpropRepository
;
private
PerforPer
S
heetRepository
perforPerSheetRepository
;
private
PerforIm
D
ataRepository
perforImDataRepository
;
private
PerforIm
H
eaderRepository
perforImHeaderRepository
;
private
PerforIm
E
mployeeRepository
perforImEmployeeRepository
;
private
PerforRes
A
ccountdoctorRepository
perforResAccountdoctorRepository
;
private
PerforRes
A
ccountnurseRepository
perforResAccountnurseRepository
;
private
PerforPer
s
heetRepository
perforPerSheetRepository
;
private
PerforIm
d
ataRepository
perforImDataRepository
;
private
PerforIm
h
eaderRepository
perforImHeaderRepository
;
private
PerforIm
e
mployeeRepository
perforImEmployeeRepository
;
private
PerforRes
a
ccountdoctorRepository
perforResAccountdoctorRepository
;
private
PerforRes
a
ccountnurseRepository
perforResAccountnurseRepository
;
public
ProcessComputService
(
PerforCofincomeRepository
perforCofincomeRepository
,
PerforCofdrugpropRepository
perforCofdrugpropRepository
,
PerforPer
S
heetRepository
perforPerSheetRepository
,
PerforIm
D
ataRepository
perforImDataRepository
,
PerforIm
H
eaderRepository
perforImHeaderRepository
,
PerforIm
E
mployeeRepository
perforImEmployeeRepository
,
PerforRes
A
ccountdoctorRepository
perforResAccountdoctorRepository
,
PerforRes
A
ccountnurseRepository
perforResAccountnurseRepository
)
PerforPer
s
heetRepository
perforPerSheetRepository
,
PerforIm
d
ataRepository
perforImDataRepository
,
PerforIm
h
eaderRepository
perforImHeaderRepository
,
PerforIm
e
mployeeRepository
perforImEmployeeRepository
,
PerforRes
a
ccountdoctorRepository
perforResAccountdoctorRepository
,
PerforRes
a
ccountnurseRepository
perforResAccountnurseRepository
)
{
this
.
perforCofincomeRepository
=
perforCofincomeRepository
;
this
.
perforCofdrugpropRepository
=
perforCofdrugpropRepository
;
...
...
performance/Performance.Services/AllotCompute/ResultComputeService.cs
View file @
89150e7f
...
...
@@ -16,20 +16,20 @@ namespace Performance.Services.AllotCompute
public
class
ResultComputeService
:
IAutoInjection
{
private
ComputeDirector
computeDirector
;
private
PerforIm
E
mployeeRepository
perforImEmployeeRepository
;
private
PerforIm
e
mployeeRepository
perforImEmployeeRepository
;
private
PerforCofworkyearRepository
perforCofworkyearRepository
;
private
PerforCofdirectorRepository
perforCofdirectorRepository
;
private
PerforRes
A
ccountdoctorRepository
perforResAccountdoctorRepository
;
private
PerforRes
A
ccountnurseRepository
perforResAccountnurseRepository
;
private
PerforRes
a
ccountdoctorRepository
perforResAccountdoctorRepository
;
private
PerforRes
a
ccountnurseRepository
perforResAccountnurseRepository
;
private
PerforRescomputeRepository
perforRescomputeRepository
;
private
PerforResbaiscnormRepository
perforResbaiscnormRepository
;
private
PerforResspecialunitRepository
perforResspecialunitRepository
;
public
ResultComputeService
(
PerforIm
E
mployeeRepository
perforImEmployeeRepository
,
PerforIm
e
mployeeRepository
perforImEmployeeRepository
,
PerforCofworkyearRepository
perforCofworkyearRepository
,
PerforCofdirectorRepository
perforCofdirectorRepository
,
PerforRes
A
ccountdoctorRepository
perforResAccountdoctorRepository
,
PerforRes
A
ccountnurseRepository
perforResAccountnurseRepository
,
PerforRes
a
ccountdoctorRepository
perforResAccountdoctorRepository
,
PerforRes
a
ccountnurseRepository
perforResAccountnurseRepository
,
PerforRescomputeRepository
perforRescomputeRepository
,
PerforResbaiscnormRepository
perforResbaiscnormRepository
,
PerforResspecialunitRepository
perforResspecialunitRepository
,
...
...
performance/Performance.Services/AllotService.cs
View file @
89150e7f
...
...
@@ -25,10 +25,10 @@ public class AllotService : IAutoInjection
private
ConfigService
configService
;
private
IHostingEnvironment
_evn
;
private
ILogger
<
AllotService
>
_logger
;
private
PerforPer
A
llotRepository
_allotRepository
;
private
PerforPer
a
llotRepository
_allotRepository
;
private
IEmailService
emailService
;
public
AllotService
(
PerforPer
A
llotRepository
allotRepository
,
public
AllotService
(
PerforPer
a
llotRepository
allotRepository
,
BaiscNormService
baiscNormService
,
CheckDataService
checkDataService
,
ImportDataService
importDataService
,
...
...
@@ -185,7 +185,7 @@ public void Generate(per_allot allot, UserIdentity user)
if
(!
checkDataService
.
Check
(
excel
,
allot
))
{
_allotRepository
.
UpdateAllotStates
(
allot
.
ID
,
(
int
)
AllotStates
.
CheckFail
,
EnumHelper
.
GetDescription
(
AllotStates
.
CheckFail
));
SendEmail
(
allot
,
user
.
Mail
,
false
);
SendEmail
(
allot
,
user
.
Mail
,
"数值健康,绩效数据校验失败"
,
"绩效数据校验失败"
);
return
;
}
_allotRepository
.
UpdateAllotStates
(
allot
.
ID
,
(
int
)
AllotStates
.
InGenerate
,
EnumHelper
.
GetDescription
(
AllotStates
.
InGenerate
));
...
...
@@ -200,25 +200,18 @@ public void Generate(per_allot allot, UserIdentity user)
_allotRepository
.
UpdateAllotStates
(
allot
.
ID
,
(
int
)
AllotStates
.
GenerateSucceed
,
EnumHelper
.
GetDescription
(
AllotStates
.
GenerateSucceed
));
//发送邮件
SendEmail
(
allot
,
user
.
Mail
,
true
);
SendEmail
(
allot
,
user
.
Mail
,
"绩效生成成功"
,
"绩效生成成功"
);
}
catch
(
Exception
ex
)
{
_allotRepository
.
UpdateAllotStates
(
allot
.
ID
,
(
int
)
AllotStates
.
GenerateFail
,
EnumHelper
.
GetDescription
(
AllotStates
.
GenerateFail
));
SendEmail
(
allot
,
user
.
Mail
,
"绩效生成失败"
,
ex
.
ToString
());
throw
ex
;
}
}
private
void
SendEmail
(
per_allot
allot
,
string
mail
,
bool
isPass
)
private
void
SendEmail
(
per_allot
allot
,
string
mail
,
string
subject
,
string
body
)
{
string
body
=
"绩效生成结束"
;
string
subject
=
"绩效生成结束"
;
if
(!
isPass
)
{
//获取所有检查未通过的数据提示
subject
=
"绩效数据校验未通过"
;
body
=
"绩效数据校验未通过,详情如下:"
;
}
var
message
=
new
EmailMessage
{
To
=
new
List
<
string
>
{
mail
},
...
...
performance/Performance.Services/ComputeService.cs
View file @
89150e7f
...
...
@@ -12,16 +12,16 @@ namespace Performance.Services
{
public
class
ComputeService
:
IAutoInjection
{
private
PerforRes
A
ccountdoctorRepository
_perforResAccountdoctorRepository
;
private
PerforRes
A
ccountnurseRepository
_perforResAccountnurseRepository
;
private
PerforPer
S
heetRepository
_perforPerSheetRepository
;
private
PerforIm
D
ataRepository
_perforImDataRepository
;
private
PerforRes
a
ccountdoctorRepository
_perforResAccountdoctorRepository
;
private
PerforRes
a
ccountnurseRepository
_perforResAccountnurseRepository
;
private
PerforPer
s
heetRepository
_perforPerSheetRepository
;
private
PerforIm
d
ataRepository
_perforImDataRepository
;
private
PerforRescomputeRepository
_perforRescomputeRepository
;
private
PerforResspecialunitRepository
_perforResspecialunitRepository
;
public
ComputeService
(
PerforRes
A
ccountdoctorRepository
perforResAccountdoctorRepository
,
PerforRes
A
ccountnurseRepository
perforResAccountnurseRepository
,
PerforPer
S
heetRepository
perforPerSheetRepository
,
PerforIm
D
ataRepository
perforImDataRepository
,
public
ComputeService
(
PerforRes
a
ccountdoctorRepository
perforResAccountdoctorRepository
,
PerforRes
a
ccountnurseRepository
perforResAccountnurseRepository
,
PerforPer
s
heetRepository
perforPerSheetRepository
,
PerforIm
d
ataRepository
perforImDataRepository
,
PerforRescomputeRepository
perforRescomputeRepository
,
PerforResspecialunitRepository
perforResspecialunitRepository
)
{
...
...
performance/Performance.Services/ConfigService.cs
View file @
89150e7f
...
...
@@ -16,12 +16,12 @@ public class ConfigService : IAutoInjection
private
PerforCofdrugpropRepository
_drugpropRepository
;
private
PerforCofincomeRepository
_incomeRepository
;
private
PerforCofworkyearRepository
_workyearRepository
;
private
PerforPer
A
llotRepository
perforPerAllotRepository
;
private
PerforPer
a
llotRepository
perforPerAllotRepository
;
public
ConfigService
(
PerforCofdirectorRepository
cofdirectorRepository
,
PerforCofdrugpropRepository
cofdrugpropRepository
,
PerforCofincomeRepository
cofincomeRepository
,
PerforCofworkyearRepository
cofworkyearRepository
,
PerforPer
A
llotRepository
perforPerAllotRepository
)
PerforPer
a
llotRepository
perforPerAllotRepository
)
{
this
.
_directorRepository
=
cofdirectorRepository
;
this
.
_drugpropRepository
=
cofdrugpropRepository
;
...
...
performance/Performance.Services/SheetSevice.cs
View file @
89150e7f
...
...
@@ -14,24 +14,24 @@ namespace Performance.Services
/// </summary>
public
class
SheetSevice
:
IAutoInjection
{
private
PerforPer
A
llotRepository
_perforAllotRepository
;
private
PerforPer
S
heetRepository
_perforImSheetRepository
;
private
PerforIm
D
ataRepository
_perforImDataRepository
;
private
PerforIm
H
eaderRepository
_perforImHeaderRepository
;
private
PerforIm
E
mployeeRepository
_perforImEmployeeRepository
;
private
PerforPer
a
llotRepository
_perforAllotRepository
;
private
PerforPer
s
heetRepository
_perforImSheetRepository
;
private
PerforIm
d
ataRepository
_perforImDataRepository
;
private
PerforIm
h
eaderRepository
_perforImHeaderRepository
;
private
PerforIm
e
mployeeRepository
_perforImEmployeeRepository
;
private
PerforImaccountbasicRepository
_perforImaccountbasicRepository
;
private
PerforRes
A
ccountdoctorRepository
_perforImaccountdoctorRepository
;
private
PerforRes
A
ccountnurseRepository
_perforImaccountnurseRepository
;
private
PerforRes
a
ccountdoctorRepository
_perforImaccountdoctorRepository
;
private
PerforRes
a
ccountnurseRepository
_perforImaccountnurseRepository
;
private
PerforImspecialunitRepository
_perforImspecialunitRepository
;
public
SheetSevice
(
PerforPer
A
llotRepository
perforAllotRepository
,
PerforPer
S
heetRepository
perforImSheetRepository
,
PerforIm
D
ataRepository
perforImDataRepository
,
PerforIm
H
eaderRepository
perforImHeaderRepository
,
PerforIm
E
mployeeRepository
perforImEmployeeRepository
,
public
SheetSevice
(
PerforPer
a
llotRepository
perforAllotRepository
,
PerforPer
s
heetRepository
perforImSheetRepository
,
PerforIm
d
ataRepository
perforImDataRepository
,
PerforIm
h
eaderRepository
perforImHeaderRepository
,
PerforIm
e
mployeeRepository
perforImEmployeeRepository
,
PerforImaccountbasicRepository
perforImaccountbasicRepository
,
PerforRes
A
ccountdoctorRepository
perforImaccountdoctorRepository
,
PerforRes
A
ccountnurseRepository
perforImaccountnurseRepository
,
PerforRes
a
ccountdoctorRepository
perforImaccountdoctorRepository
,
PerforRes
a
ccountnurseRepository
perforImaccountnurseRepository
,
PerforImspecialunitRepository
perforImspecialunitRepository
)
{
_perforAllotRepository
=
perforAllotRepository
;
...
...
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