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
3cec2fbd
Commit
3cec2fbd
authored
Mar 26, 2019
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://192.168.0.110:8880/zry/performance
into develop
parents
a31c4042
b160d0a7
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
234 additions
and
75 deletions
+234
-75
performance/Performance.Api/Controllers/AllotController.cs
+23
-0
performance/Performance.Api/Controllers/ConfigController.cs
+11
-9
performance/Performance.DtoModels/PerExcel/ExcelEnum.cs
+2
-3
performance/Performance.DtoModels/Request/ComputerRequest.cs
+32
-0
performance/Performance.DtoModels/Request/DirectorRequest.cs
+16
-5
performance/Performance.DtoModels/Request/DrugpropRequest.cs
+18
-7
performance/Performance.DtoModels/Request/IncomeRequest.cs
+16
-5
performance/Performance.DtoModels/Request/PositionRequest.cs
+9
-4
performance/Performance.DtoModels/Request/WorkyearRequest.cs
+18
-7
performance/Performance.DtoModels/Response/DirectorResponse.cs
+9
-0
performance/Performance.DtoModels/Response/DrugpropResponse.cs
+9
-0
performance/Performance.DtoModels/Response/IncomeResponse.cs
+9
-0
performance/Performance.DtoModels/Response/WorkyearResponse.cs
+9
-0
performance/Performance.EntityModels/Entity/cof_director.cs
+4
-4
performance/Performance.EntityModels/Entity/cof_drugprop.cs
+3
-3
performance/Performance.EntityModels/Entity/cof_income.cs
+2
-2
performance/Performance.EntityModels/Entity/cof_workyear.cs
+3
-3
performance/Performance.EntityModels/Performance.EntityModels.csproj
+0
-15
performance/Performance.Services/ConfigService.cs
+8
-8
performance/Performance.Services/PerExcelService/PerExcelService.cs
+33
-0
No files found.
performance/Performance.Api/Controllers/AllotController.cs
View file @
3cec2fbd
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
using
Performance.DtoModels
;
using
Performance.DtoModels
;
using
Performance.Infrastructure
;
using
Performance.Infrastructure
;
using
Performance.Services
;
using
Performance.Services
;
using
Performance.EntityModels
;
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.IO
;
using
System.IO
;
...
@@ -155,5 +156,27 @@ public ApiResponse Generate([CustomizeValidator(RuleSet = "Delete"), FromBody]Al
...
@@ -155,5 +156,27 @@ public ApiResponse Generate([CustomizeValidator(RuleSet = "Delete"), FromBody]Al
BackgroundJob
.
Enqueue
(()
=>
_perExcelService
.
Execute
(
allot
));
BackgroundJob
.
Enqueue
(()
=>
_perExcelService
.
Execute
(
allot
));
return
new
ApiResponse
(
ResponseType
.
OK
);
return
new
ApiResponse
(
ResponseType
.
OK
);
}
}
[
Route
(
"getcompute"
)]
[
HttpPost
]
public
ApiResponse
<
List
<
res_compute
>>
GetCompute
([
CustomizeValidator
(
RuleSet
=
"Select"
),
FromBody
]
ComputerRequest
request
)
{
var
allot
=
_allotService
.
GetAllot
(
request
.
AllotId
);
if
(
null
==
allot
)
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
var
list
=
_perExcelService
.
GetCompute
(
request
.
AllotId
,
request
.
Type
);
return
new
ApiResponse
<
List
<
res_compute
>>(
ResponseType
.
OK
,
"ok"
,
list
);
}
[
Route
(
"getspecial"
)]
[
HttpPost
]
public
ApiResponse
<
List
<
res_specialunit
>>
GetSpecial
([
FromBody
]
ComputerRequest
request
)
{
var
allot
=
_allotService
.
GetAllot
(
request
.
AllotId
);
if
(
null
==
allot
)
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
var
list
=
_perExcelService
.
GetSpecial
(
request
.
AllotId
);
return
new
ApiResponse
<
List
<
res_specialunit
>>(
ResponseType
.
OK
,
"ok"
,
list
);
}
}
}
}
}
performance/Performance.Api/Controllers/ConfigController.cs
View file @
3cec2fbd
...
@@ -18,9 +18,11 @@ namespace Performance.Api.Controllers
...
@@ -18,9 +18,11 @@ namespace Performance.Api.Controllers
public
class
ConfigController
:
Controller
public
class
ConfigController
:
Controller
{
{
private
ConfigService
_configService
;
private
ConfigService
_configService
;
public
ConfigController
(
ConfigService
configService
)
private
AllotService
_allotService
;
public
ConfigController
(
ConfigService
configService
,
AllotService
allotService
)
{
{
_configService
=
configService
;
_configService
=
configService
;
_allotService
=
allotService
;
}
}
#
region
director
#
region
director
...
@@ -31,9 +33,9 @@ public ConfigController(ConfigService configService)
...
@@ -31,9 +33,9 @@ public ConfigController(ConfigService configService)
/// <returns></returns>
/// <returns></returns>
[
Route
(
"directorlist"
)]
[
Route
(
"directorlist"
)]
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
<
List
<
DirectorResponse
>>
GetDireList
([
FromBody
]
Api
Request
request
)
public
ApiResponse
<
List
<
DirectorResponse
>>
GetDireList
([
CustomizeValidator
(
RuleSet
=
"Select"
),
FromBody
]
Director
Request
request
)
{
{
var
list
=
_configService
.
GetDireList
();
var
list
=
_configService
.
GetDireList
(
request
.
AllotID
);
return
new
ApiResponse
<
List
<
DirectorResponse
>>(
ResponseType
.
OK
,
"ok"
,
list
);
return
new
ApiResponse
<
List
<
DirectorResponse
>>(
ResponseType
.
OK
,
"ok"
,
list
);
}
}
...
@@ -81,9 +83,9 @@ public ApiResponse DireDelete([CustomizeValidator(RuleSet = "Delete"), FromBody]
...
@@ -81,9 +83,9 @@ public ApiResponse DireDelete([CustomizeValidator(RuleSet = "Delete"), FromBody]
#
region
drugprop
#
region
drugprop
[
Route
(
"drugproplist"
)]
[
Route
(
"drugproplist"
)]
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
<
List
<
DrugpropResponse
>>
GetDrugList
([
FromBody
]
Api
Request
request
)
public
ApiResponse
<
List
<
DrugpropResponse
>>
GetDrugList
([
CustomizeValidator
(
RuleSet
=
"Select"
),
FromBody
]
Drugprop
Request
request
)
{
{
var
list
=
_configService
.
GetDrugList
();
var
list
=
_configService
.
GetDrugList
(
request
.
AllotID
);
return
new
ApiResponse
<
List
<
DrugpropResponse
>>(
ResponseType
.
OK
,
"ok"
,
list
);
return
new
ApiResponse
<
List
<
DrugpropResponse
>>(
ResponseType
.
OK
,
"ok"
,
list
);
}
}
...
@@ -116,9 +118,9 @@ public ApiResponse Delete([CustomizeValidator(RuleSet = "Delete"), FromBody]Drug
...
@@ -116,9 +118,9 @@ public ApiResponse Delete([CustomizeValidator(RuleSet = "Delete"), FromBody]Drug
#
region
income
#
region
income
[
Route
(
"incomelist"
)]
[
Route
(
"incomelist"
)]
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
<
List
<
IncomeResponse
>>
GetIncomeList
([
FromBody
]
Api
Request
request
)
public
ApiResponse
<
List
<
IncomeResponse
>>
GetIncomeList
([
CustomizeValidator
(
RuleSet
=
"Select"
),
FromBody
]
Income
Request
request
)
{
{
var
list
=
_configService
.
GetIncomeList
();
var
list
=
_configService
.
GetIncomeList
(
request
.
AllotID
);
return
new
ApiResponse
<
List
<
IncomeResponse
>>(
ResponseType
.
OK
,
"ok"
,
list
);
return
new
ApiResponse
<
List
<
IncomeResponse
>>(
ResponseType
.
OK
,
"ok"
,
list
);
}
}
...
@@ -151,9 +153,9 @@ public ApiResponse Delete([CustomizeValidator(RuleSet = "Delete"), FromBody]Inco
...
@@ -151,9 +153,9 @@ public ApiResponse Delete([CustomizeValidator(RuleSet = "Delete"), FromBody]Inco
#
region
workyear
#
region
workyear
[
Route
(
"workyearlist"
)]
[
Route
(
"workyearlist"
)]
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
<
List
<
WorkyearResponse
>>
GetWorkList
([
FromBody
]
Api
Request
request
)
public
ApiResponse
<
List
<
WorkyearResponse
>>
GetWorkList
([
CustomizeValidator
(
RuleSet
=
"Select"
),
FromBody
]
Workyear
Request
request
)
{
{
var
list
=
_configService
.
GetWorkList
();
var
list
=
_configService
.
GetWorkList
(
request
.
AllotID
);
return
new
ApiResponse
<
List
<
WorkyearResponse
>>(
ResponseType
.
OK
,
"ok"
,
list
);
return
new
ApiResponse
<
List
<
WorkyearResponse
>>(
ResponseType
.
OK
,
"ok"
,
list
);
}
}
...
...
performance/Performance.DtoModels/PerExcel/ExcelEnum.cs
View file @
3cec2fbd
...
@@ -49,8 +49,8 @@ public enum SheetType
...
@@ -49,8 +49,8 @@ public enum SheetType
/// </summary>
/// </summary>
public
enum
PerformanceType
public
enum
PerformanceType
{
{
/// <summary>
没有绩效
</summary>
/// <summary> </summary>
[
Description
(
"
没有绩效
"
)]
[
Description
(
""
)]
Null
=
0
,
Null
=
0
,
/// <summary> 科室主任人均绩效 </summary>
/// <summary> 科室主任人均绩效 </summary>
...
@@ -75,6 +75,5 @@ public enum PerformanceType
...
@@ -75,6 +75,5 @@ public enum PerformanceType
/// <summary> 临床科室护士长人均绩效 (绩效标准取 护士长 平均值)</summary>
/// <summary> 临床科室护士长人均绩效 (绩效标准取 护士长 平均值)</summary>
[
Description
(
"临床科室护士长人均绩效"
)]
[
Description
(
"临床科室护士长人均绩效"
)]
ReferenceHeadNurse
=
7
,
ReferenceHeadNurse
=
7
,
}
}
}
}
performance/Performance.DtoModels/Request/ComputerRequest.cs
0 → 100644
View file @
3cec2fbd
using
FluentValidation
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Performance.DtoModels
{
public
class
ComputerRequest
:
ApiRequest
{
/// <summary>
/// 绩效id
/// </summary>
public
int
AllotId
{
get
;
set
;
}
/// <summary>
/// 绩效基数核算参考对象
/// </summary>
public
int
Type
{
get
;
set
;
}
}
public
class
ComputerRequestValidator
:
AbstractValidator
<
ComputerRequest
>
{
public
ComputerRequestValidator
()
{
RuleFor
(
x
=>
x
.
AllotId
).
NotNull
().
GreaterThan
(
0
);
RuleSet
(
"Select"
,
()
=>
{
RuleFor
(
x
=>
x
.
Type
).
NotNull
().
NotEmpty
();
});
}
}
}
performance/Performance.DtoModels/Request/DirectorRequest.cs
View file @
3cec2fbd
...
@@ -9,19 +9,30 @@ public class DirectorRequest : ApiRequest
...
@@ -9,19 +9,30 @@ public class DirectorRequest : ApiRequest
{
{
public
int
ID
{
get
;
set
;
}
public
int
ID
{
get
;
set
;
}
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
public
int
AllotID
{
get
;
set
;
}
/// <summary>
/// 绩效类型
/// </summary>
public
string
TypeName
{
get
;
set
;
}
public
string
TypeName
{
get
;
set
;
}
/// <summary>
/// 职务名称
/// </summary>
public
string
JobTitle
{
get
;
set
;
}
public
string
JobTitle
{
get
;
set
;
}
/// <summary>
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
/// 绩效系数
/// </summary>
public
decimal
Value
{
get
;
set
;
}
public
class
DirectorRequestValidator
:
AbstractValidator
<
DirectorRequest
>
public
class
DirectorRequestValidator
:
AbstractValidator
<
DirectorRequest
>
{
{
public
DirectorRequestValidator
()
public
DirectorRequestValidator
()
{
{
RuleSet
(
"Select"
,
()
=>
{
RuleFor
(
x
=>
x
.
AllotID
).
NotNull
().
NotEmpty
().
GreaterThan
(
0
);
});
RuleSet
(
"Update"
,
()
=>
RuleSet
(
"Update"
,
()
=>
{
{
RuleFor
(
x
=>
x
.
ID
).
NotNull
().
GreaterThan
(
0
);
RuleFor
(
x
=>
x
.
ID
).
NotNull
().
GreaterThan
(
0
);
...
...
performance/Performance.DtoModels/Request/DrugpropRequest.cs
View file @
3cec2fbd
...
@@ -9,19 +9,30 @@ public class DrugpropRequest : ApiRequest
...
@@ -9,19 +9,30 @@ public class DrugpropRequest : ApiRequest
{
{
public
int
ID
{
get
;
set
;
}
public
int
ID
{
get
;
set
;
}
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
public
int
AllotID
{
get
;
set
;
}
/// <summary>
public
Nullable
<
decimal
>
MaxRange
{
get
;
set
;
}
/// 药占比最大范围(小于)
/// </summary>
public
Nullable
<
decimal
>
MinRange
{
get
;
set
;
}
public
decimal
MaxRange
{
get
;
set
;
}
/// <summary>
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
/// 药占比最小范围(大于等于)
/// </summary>
public
decimal
MinRange
{
get
;
set
;
}
/// <summary>
/// 药占比对应系数
/// </summary>
public
decimal
Value
{
get
;
set
;
}
public
class
DrugpropRequestValidator
:
AbstractValidator
<
DrugpropRequest
>
public
class
DrugpropRequestValidator
:
AbstractValidator
<
DrugpropRequest
>
{
{
public
DrugpropRequestValidator
()
public
DrugpropRequestValidator
()
{
{
RuleSet
(
"Select"
,
()
=>
{
RuleFor
(
x
=>
x
.
AllotID
).
NotNull
().
NotEmpty
().
GreaterThan
(
0
);
});
RuleSet
(
"Update"
,
()
=>
RuleSet
(
"Update"
,
()
=>
{
{
RuleFor
(
x
=>
x
.
ID
).
NotNull
().
GreaterThan
(
0
);
RuleFor
(
x
=>
x
.
ID
).
NotNull
().
GreaterThan
(
0
);
...
...
performance/Performance.DtoModels/Request/IncomeRequest.cs
View file @
3cec2fbd
...
@@ -9,19 +9,30 @@ public class IncomeRequest : ApiRequest
...
@@ -9,19 +9,30 @@ public class IncomeRequest : ApiRequest
{
{
public
int
ID
{
get
;
set
;
}
public
int
ID
{
get
;
set
;
}
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
public
int
AllotID
{
get
;
set
;
}
/// <summary>
/// 关键字匹配
/// </summary>
public
string
SheetNameKeyword
{
get
;
set
;
}
public
string
SheetNameKeyword
{
get
;
set
;
}
/// <summary>
/// 分组名称(医生、护理)
/// </summary>
public
string
UnitName
{
get
;
set
;
}
public
string
UnitName
{
get
;
set
;
}
/// <summary>
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
/// 有效收入占比
/// </summary>
public
decimal
Value
{
get
;
set
;
}
public
class
IncomeRequestValidator
:
AbstractValidator
<
IncomeRequest
>
public
class
IncomeRequestValidator
:
AbstractValidator
<
IncomeRequest
>
{
{
public
IncomeRequestValidator
()
public
IncomeRequestValidator
()
{
{
RuleSet
(
"Select"
,
()
=>
{
RuleFor
(
x
=>
x
.
AllotID
).
NotNull
().
NotEmpty
().
GreaterThan
(
0
);
});
RuleSet
(
"Update"
,
()
=>
RuleSet
(
"Update"
,
()
=>
{
{
RuleFor
(
x
=>
x
.
ID
).
NotNull
().
GreaterThan
(
0
);
RuleFor
(
x
=>
x
.
ID
).
NotNull
().
GreaterThan
(
0
);
...
...
performance/Performance.DtoModels/Request/PositionRequest.cs
View file @
3cec2fbd
...
@@ -12,7 +12,7 @@ public class PositionRequest : ApiRequest
...
@@ -12,7 +12,7 @@ public class PositionRequest : ApiRequest
/// <summary>
/// <summary>
/// 绩效ID
/// 绩效ID
/// </summary>
/// </summary>
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
public
int
AllotID
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 职位名称
/// 职位名称
...
@@ -22,23 +22,28 @@ public class PositionRequest : ApiRequest
...
@@ -22,23 +22,28 @@ public class PositionRequest : ApiRequest
/// <summary>
/// <summary>
/// 职位归类 1 院领导 2 行政中层 3 行政工勤 4 临床科室主任 5 临床科室副主任 6 临床科室护士长
/// 职位归类 1 院领导 2 行政中层 3 行政工勤 4 临床科室主任 5 临床科室副主任 6 临床科室护士长
/// </summary>
/// </summary>
public
Nullable
<
int
>
JobType
{
get
;
set
;
}
public
int
JobType
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 额外补偿系数
/// 额外补偿系数
/// </summary>
/// </summary>
public
Nullable
<
decimal
>
ExtraFactor
{
get
;
set
;
}
public
decimal
ExtraFactor
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 职位类别 1 普通类别 2 基础绩效来源
/// 职位类别 1 普通类别 2 基础绩效来源
/// </summary>
/// </summary>
public
Nullable
<
int
>
State
{
get
;
set
;
}
public
int
State
{
get
;
set
;
}
public
class
PositionRequestValidator
:
AbstractValidator
<
PositionRequest
>
public
class
PositionRequestValidator
:
AbstractValidator
<
PositionRequest
>
{
{
public
PositionRequestValidator
()
public
PositionRequestValidator
()
{
{
RuleSet
(
"Select"
,
()
=>
{
RuleFor
(
x
=>
x
.
AllotID
).
NotNull
().
NotEmpty
().
GreaterThan
(
0
);
});
RuleSet
(
"Update"
,
()
=>
RuleSet
(
"Update"
,
()
=>
{
{
RuleFor
(
x
=>
x
.
ID
).
NotNull
().
GreaterThan
(
0
);
RuleFor
(
x
=>
x
.
ID
).
NotNull
().
GreaterThan
(
0
);
...
...
performance/Performance.DtoModels/Request/WorkyearRequest.cs
View file @
3cec2fbd
...
@@ -10,19 +10,30 @@ public class WorkyearRequest : ApiRequest
...
@@ -10,19 +10,30 @@ public class WorkyearRequest : ApiRequest
{
{
public
int
ID
{
get
;
set
;
}
public
int
ID
{
get
;
set
;
}
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
public
int
AllotID
{
get
;
set
;
}
/// <summary>
public
Nullable
<
decimal
>
MaxRange
{
get
;
set
;
}
/// 最大工龄范围(小于)
/// </summary>
public
Nullable
<
decimal
>
MinRange
{
get
;
set
;
}
public
decimal
MaxRange
{
get
;
set
;
}
/// <summary>
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
/// 最小工龄范围(大于等于)
/// </summary>
public
decimal
MinRange
{
get
;
set
;
}
/// <summary>
/// 绩效系数
/// </summary>
public
decimal
Value
{
get
;
set
;
}
public
class
WorkyearRequestValidator
:
AbstractValidator
<
WorkyearRequest
>
public
class
WorkyearRequestValidator
:
AbstractValidator
<
WorkyearRequest
>
{
{
public
WorkyearRequestValidator
()
public
WorkyearRequestValidator
()
{
{
RuleSet
(
"Select"
,
()
=>
{
RuleFor
(
x
=>
x
.
AllotID
).
NotNull
().
NotEmpty
().
GreaterThan
(
0
);
});
RuleSet
(
"Update"
,
()
=>
RuleSet
(
"Update"
,
()
=>
{
{
RuleFor
(
x
=>
x
.
ID
).
NotNull
().
GreaterThan
(
0
);
RuleFor
(
x
=>
x
.
ID
).
NotNull
().
GreaterThan
(
0
);
...
...
performance/Performance.DtoModels/Response/DirectorResponse.cs
View file @
3cec2fbd
...
@@ -10,10 +10,19 @@ public class DirectorResponse
...
@@ -10,10 +10,19 @@ public class DirectorResponse
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
/// <summary>
/// 绩效类型
/// </summary>
public
string
TypeName
{
get
;
set
;
}
public
string
TypeName
{
get
;
set
;
}
/// <summary>
/// 职务名称
/// </summary>
public
string
JobTitle
{
get
;
set
;
}
public
string
JobTitle
{
get
;
set
;
}
/// <summary>
/// 绩效系数
/// </summary>
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
}
}
}
}
performance/Performance.DtoModels/Response/DrugpropResponse.cs
View file @
3cec2fbd
...
@@ -10,10 +10,19 @@ public class DrugpropResponse
...
@@ -10,10 +10,19 @@ public class DrugpropResponse
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
/// <summary>
/// 药占比最大范围(小于)
/// </summary>
public
Nullable
<
decimal
>
MaxRange
{
get
;
set
;
}
public
Nullable
<
decimal
>
MaxRange
{
get
;
set
;
}
/// <summary>
/// 药占比最小范围(大于等于)
/// </summary>
public
Nullable
<
decimal
>
MinRange
{
get
;
set
;
}
public
Nullable
<
decimal
>
MinRange
{
get
;
set
;
}
/// <summary>
/// 药占比对应系数
/// </summary>
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
}
}
}
}
performance/Performance.DtoModels/Response/IncomeResponse.cs
View file @
3cec2fbd
...
@@ -10,10 +10,19 @@ public class IncomeResponse
...
@@ -10,10 +10,19 @@ public class IncomeResponse
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
/// <summary>
/// 关键字匹配
/// </summary>
public
string
SheetNameKeyword
{
get
;
set
;
}
public
string
SheetNameKeyword
{
get
;
set
;
}
/// <summary>
/// 分组名称(医生、护理)
/// </summary>
public
string
UnitName
{
get
;
set
;
}
public
string
UnitName
{
get
;
set
;
}
/// <summary>
/// 有效收入占比
/// </summary>
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
}
}
}
}
performance/Performance.DtoModels/Response/WorkyearResponse.cs
View file @
3cec2fbd
...
@@ -10,10 +10,19 @@ public class WorkyearResponse
...
@@ -10,10 +10,19 @@ public class WorkyearResponse
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
/// <summary>
/// 最大工龄范围(小于)
/// </summary>
public
Nullable
<
decimal
>
MaxRange
{
get
;
set
;
}
public
Nullable
<
decimal
>
MaxRange
{
get
;
set
;
}
/// <summary>
/// 最小工龄范围(大于等于)
/// </summary>
public
Nullable
<
decimal
>
MinRange
{
get
;
set
;
}
public
Nullable
<
decimal
>
MinRange
{
get
;
set
;
}
/// <summary>
/// 绩效系数
/// </summary>
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
}
}
}
}
performance/Performance.EntityModels/Entity/cof_director.cs
View file @
3cec2fbd
...
@@ -23,22 +23,22 @@ public class cof_director
...
@@ -23,22 +23,22 @@ public class cof_director
public
int
ID
{
get
;
set
;
}
public
int
ID
{
get
;
set
;
}
/// <summary>
/// <summary>
///
///
绩效id
/// </summary>
/// </summary>
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
/// <summary>
/// <summary>
///
///
绩效类型
/// </summary>
/// </summary>
public
string
TypeName
{
get
;
set
;
}
public
string
TypeName
{
get
;
set
;
}
/// <summary>
/// <summary>
///
///
职务名称
/// </summary>
/// </summary>
public
string
JobTitle
{
get
;
set
;
}
public
string
JobTitle
{
get
;
set
;
}
/// <summary>
/// <summary>
///
///
绩效系数
/// </summary>
/// </summary>
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
}
}
...
...
performance/Performance.EntityModels/Entity/cof_drugprop.cs
View file @
3cec2fbd
...
@@ -28,17 +28,17 @@ public class cof_drugprop
...
@@ -28,17 +28,17 @@ public class cof_drugprop
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
/// <summary>
/// <summary>
///
>
///
药占比最大范围(小于)
/// </summary>
/// </summary>
public
Nullable
<
decimal
>
MaxRange
{
get
;
set
;
}
public
Nullable
<
decimal
>
MaxRange
{
get
;
set
;
}
/// <summary>
/// <summary>
///
<=
///
药占比最小范围(大于等于)
/// </summary>
/// </summary>
public
Nullable
<
decimal
>
MinRange
{
get
;
set
;
}
public
Nullable
<
decimal
>
MinRange
{
get
;
set
;
}
/// <summary>
/// <summary>
///
///
药占比对应系数
/// </summary>
/// </summary>
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
}
}
...
...
performance/Performance.EntityModels/Entity/cof_income.cs
View file @
3cec2fbd
...
@@ -33,12 +33,12 @@ public class cof_income
...
@@ -33,12 +33,12 @@ public class cof_income
public
string
SheetNameKeyword
{
get
;
set
;
}
public
string
SheetNameKeyword
{
get
;
set
;
}
/// <summary>
/// <summary>
///
///
分组名称(医生、护理)
/// </summary>
/// </summary>
public
string
UnitName
{
get
;
set
;
}
public
string
UnitName
{
get
;
set
;
}
/// <summary>
/// <summary>
///
///
有效收入占比
/// </summary>
/// </summary>
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
}
}
...
...
performance/Performance.EntityModels/Entity/cof_workyear.cs
View file @
3cec2fbd
...
@@ -19,17 +19,17 @@ public class cof_workyear
...
@@ -19,17 +19,17 @@ public class cof_workyear
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
/// <summary>
/// <summary>
///
>
///
最大工龄范围(小于)
/// </summary>
/// </summary>
public
Nullable
<
decimal
>
MaxRange
{
get
;
set
;
}
public
Nullable
<
decimal
>
MaxRange
{
get
;
set
;
}
/// <summary>
/// <summary>
///
<=
///
最小工龄范围(大于等于)
/// </summary>
/// </summary>
public
Nullable
<
decimal
>
MinRange
{
get
;
set
;
}
public
Nullable
<
decimal
>
MinRange
{
get
;
set
;
}
/// <summary>
/// <summary>
///
///
绩效系数
/// </summary>
/// </summary>
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
}
}
...
...
performance/Performance.EntityModels/Performance.EntityModels.csproj
View file @
3cec2fbd
...
@@ -42,26 +42,11 @@
...
@@ -42,26 +42,11 @@
</ItemGroup>
</ItemGroup>
<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">
<None Update="T4\AutoContext.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>AutoContext.cs</LastGenOutput>
</None>
</None>
<None Update="T4\AutoEntity.tt">
<None Update="T4\AutoEntity.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>AutoEntity.cs</LastGenOutput>
</None>
</None>
</ItemGroup>
</ItemGroup>
...
...
performance/Performance.Services/ConfigService.cs
View file @
3cec2fbd
...
@@ -31,9 +31,9 @@ public class ConfigService : IAutoInjection
...
@@ -31,9 +31,9 @@ public class ConfigService : IAutoInjection
/// 获取cof_director列表
/// 获取cof_director列表
/// </summary>
/// </summary>
/// <returns></returns>
/// <returns></returns>
public
List
<
DirectorResponse
>
GetDireList
()
public
List
<
DirectorResponse
>
GetDireList
(
int
allotId
)
{
{
var
list
=
_directorRepository
.
GetEntities
();
var
list
=
_directorRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
return
Mapper
.
Map
<
List
<
DirectorResponse
>>(
list
);
return
Mapper
.
Map
<
List
<
DirectorResponse
>>(
list
);
}
}
...
@@ -90,9 +90,9 @@ public bool DireDelete(DirectorRequest request)
...
@@ -90,9 +90,9 @@ public bool DireDelete(DirectorRequest request)
/// 获取cof_drugprop列表
/// 获取cof_drugprop列表
/// </summary>
/// </summary>
/// <returns></returns>
/// <returns></returns>
public
List
<
DrugpropResponse
>
GetDrugList
()
public
List
<
DrugpropResponse
>
GetDrugList
(
int
allotId
)
{
{
var
list
=
_drugpropRepository
.
GetEntities
();
var
list
=
_drugpropRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
return
Mapper
.
Map
<
List
<
DrugpropResponse
>>(
list
);
return
Mapper
.
Map
<
List
<
DrugpropResponse
>>(
list
);
}
}
...
@@ -149,9 +149,9 @@ public bool DrugDelete(DrugpropRequest request)
...
@@ -149,9 +149,9 @@ public bool DrugDelete(DrugpropRequest request)
/// 获取cof_income列表
/// 获取cof_income列表
/// </summary>
/// </summary>
/// <returns></returns>
/// <returns></returns>
public
List
<
IncomeResponse
>
GetIncomeList
()
public
List
<
IncomeResponse
>
GetIncomeList
(
int
allotId
)
{
{
var
list
=
_incomeRepository
.
GetEntities
();
var
list
=
_incomeRepository
.
GetEntities
(
T
=>
T
.
AllotID
==
allotId
);
return
Mapper
.
Map
<
List
<
IncomeResponse
>>(
list
);
return
Mapper
.
Map
<
List
<
IncomeResponse
>>(
list
);
}
}
...
@@ -208,9 +208,9 @@ public bool IncomeDelete(IncomeRequest request)
...
@@ -208,9 +208,9 @@ public bool IncomeDelete(IncomeRequest request)
/// 获取cof_drugprop列表
/// 获取cof_drugprop列表
/// </summary>
/// </summary>
/// <returns></returns>
/// <returns></returns>
public
List
<
WorkyearResponse
>
GetWorkList
()
public
List
<
WorkyearResponse
>
GetWorkList
(
int
allotId
)
{
{
var
list
=
_workyearRepository
.
GetEntities
();
var
list
=
_workyearRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
return
Mapper
.
Map
<
List
<
WorkyearResponse
>>(
list
);
return
Mapper
.
Map
<
List
<
WorkyearResponse
>>(
list
);
}
}
...
...
performance/Performance.Services/PerExcelService/PerExcelService.cs
View file @
3cec2fbd
...
@@ -521,5 +521,38 @@ public List<res_baiscnorm> Compute(per_allot allot, PerExcel excel, res_baiscnor
...
@@ -521,5 +521,38 @@ public List<res_baiscnorm> Compute(per_allot allot, PerExcel excel, res_baiscnor
return
baiscnormList
;
return
baiscnormList
;
}
}
public
List
<
res_compute
>
GetCompute
(
int
allotId
,
int
type
)
{
var
list
=
new
List
<
res_compute
>();
Dictionary
<
int
,
List
<
PerformanceType
>>
keyValues
=
new
Dictionary
<
int
,
List
<
PerformanceType
>>
{
{
1
,
new
List
<
PerformanceType
>{
PerformanceType
.
ReferenceDirector
}
},
{
2
,
new
List
<
PerformanceType
>{
PerformanceType
.
ReferenceDirectorAvg
}
},
{
3
,
new
List
<
PerformanceType
>{
PerformanceType
.
ReferenceNurseAvg95
,
PerformanceType
.
ReferenceHeadNurse
,
PerformanceType
.
Null
}
},
{
5
,
new
List
<
PerformanceType
>{
PerformanceType
.
Director
,
PerformanceType
.
DeputyDirector
}
},
{
6
,
new
List
<
PerformanceType
>{
PerformanceType
.
Nurse
}
}
};
if
(
keyValues
.
ContainsKey
(
type
))
{
var
conList
=
keyValues
[
type
].
Select
(
t
=>
EnumHelper
.
GetDescription
(
t
));
list
=
_perforRescomputeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
conList
.
Contains
(
t
.
FitPeople
));
}
else
if
(
type
==
99
)
{
list
=
_perforRescomputeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
}
else
{
throw
new
PerformanceException
(
"参数错误,type无效"
);
}
return
Mapper
.
Map
<
List
<
res_compute
>>(
list
);
}
public
List
<
res_specialunit
>
GetSpecial
(
int
allotId
)
{
var
list
=
_perforResspecialunitRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
return
Mapper
.
Map
<
List
<
res_specialunit
>>(
list
);
}
}
}
}
}
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