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
b2ccb395
Commit
b2ccb395
authored
Oct 09, 2019
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次绩效
parent
155b6ca0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
680 additions
and
0 deletions
+680
-0
performance/Performance.Api/Controllers/SecondAllotController.cs
+124
-0
performance/Performance.Api/wwwroot/Performance.Api.xml
+54
-0
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
+0
-0
performance/Performance.EntityModels/Context/PerformanceDbContext.cs
+14
-0
performance/Performance.EntityModels/Entity/ag_compute.cs
+44
-0
performance/Performance.EntityModels/Entity/ag_fixatitem.cs
+64
-0
performance/Performance.EntityModels/Entity/ag_itemvalue.cs
+44
-0
performance/Performance.EntityModels/Entity/ag_secondallot.cs
+54
-0
performance/Performance.EntityModels/Entity/ag_temp.cs
+34
-0
performance/Performance.EntityModels/Entity/ag_tempitem.cs
+54
-0
performance/Performance.EntityModels/Entity/ag_workload.cs
+54
-0
performance/Performance.Repository/Repository/PerforAgcomputeRepository.cs
+20
-0
performance/Performance.Repository/Repository/PerforAgfixatitemRepository.cs
+20
-0
performance/Performance.Repository/Repository/PerforAgitemvalueRepository.cs
+20
-0
performance/Performance.Repository/Repository/PerforAgsecondallotRepository.cs
+20
-0
performance/Performance.Repository/Repository/PerforAgtempRepository.cs
+20
-0
performance/Performance.Repository/Repository/PerforAgtempitemRepository.cs
+20
-0
performance/Performance.Repository/Repository/PerforAgworkloadRepository.cs
+20
-0
No files found.
performance/Performance.Api/Controllers/SecondAllotController.cs
0 → 100644
View file @
b2ccb395
using
Microsoft.AspNetCore.Http
;
using
Microsoft.AspNetCore.Mvc
;
using
Performance.DtoModels
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
namespace
Performance.Api.Controllers
{
[
ApiController
]
public
class
SecondAllotController
:
ControllerBase
{
private
readonly
ClaimService
claimService
;
public
SecondAllotController
(
ClaimService
claimService
)
{
this
.
claimService
=
claimService
;
}
/// <summary>
/// 二次绩效列表(没有需要初始化)
/// </summary>
/// <returns></returns>
[
Route
(
"api/second/list"
)]
[
HttpPost
]
public
ApiResponse
List
()
{
var
userId
=
claimService
.
GetUserId
();
return
new
ApiResponse
(
ResponseType
.
OK
);
}
/// <summary>
/// 二次绩效项目内容保存
/// </summary>
/// <returns></returns>
[
Route
(
"api/second/savevalue"
)]
[
HttpPost
]
public
ApiResponse
SaveValue
()
{
return
new
ApiResponse
(
ResponseType
.
OK
);
}
/// <summary>
/// 二次绩效分配结果保存
/// </summary>
/// <returns></returns>
[
Route
(
"api/second/savecompute"
)]
[
HttpPost
]
public
ApiResponse
SaveCompute
()
{
return
new
ApiResponse
(
ResponseType
.
OK
);
}
/// <summary>
/// 二次绩效工作量列表
/// </summary>
/// <returns></returns>
[
Route
(
"api/second/workload/list"
)]
[
HttpPost
]
public
ApiResponse
WorkloadList
()
{
return
new
ApiResponse
(
ResponseType
.
OK
);
}
/// <summary>
/// 二次绩效工作量新增
/// </summary>
/// <returns></returns>
[
Route
(
"api/second/workload/add"
)]
[
HttpPost
]
public
ApiResponse
WorkloadAdd
()
{
return
new
ApiResponse
(
ResponseType
.
OK
);
}
/// <summary>
/// 二次绩效工作量修改
/// </summary>
/// <returns></returns>
[
Route
(
"api/second/workload/update"
)]
[
HttpPost
]
public
ApiResponse
WorkloadUpdate
()
{
return
new
ApiResponse
(
ResponseType
.
OK
);
}
/// <summary>
/// 二次绩效工作量删除
/// </summary>
/// <returns></returns>
[
Route
(
"api/second/workload/delete"
)]
[
HttpPost
]
public
ApiResponse
WorkloadDelete
()
{
return
new
ApiResponse
(
ResponseType
.
OK
);
}
/// <summary>
/// 二次绩效模板列表
/// </summary>
/// <returns></returns>
[
Route
(
"api/temp/list"
)]
[
HttpPost
]
public
ApiResponse
Temp
()
{
return
new
ApiResponse
(
ResponseType
.
OK
);
}
/// <summary>
/// 使用二次绩效模板
/// </summary>
/// <returns></returns>
[
Route
(
"api/temp/usetemp"
)]
[
HttpPost
]
public
ApiResponse
UseTemp
()
{
return
new
ApiResponse
(
ResponseType
.
OK
);
}
}
}
\ No newline at end of file
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
b2ccb395
...
...
@@ -715,6 +715,60 @@
<param
name=
"request"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.SecondAllotController.List"
>
<summary>
二次绩效列表(没有需要初始化)
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.SecondAllotController.SaveValue"
>
<summary>
二次绩效项目内容保存
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.SecondAllotController.SaveCompute"
>
<summary>
二次绩效分配结果保存
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.SecondAllotController.WorkloadList"
>
<summary>
二次绩效工作量列表
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.SecondAllotController.WorkloadAdd"
>
<summary>
二次绩效工作量新增
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.SecondAllotController.WorkloadUpdate"
>
<summary>
二次绩效工作量修改
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.SecondAllotController.WorkloadDelete"
>
<summary>
二次绩效工作量删除
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.SecondAllotController.Temp"
>
<summary>
二次绩效模板列表
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.SecondAllotController.UseTemp"
>
<summary>
使用二次绩效模板
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.SheetController.SheetList(Performance.DtoModels.SheetRequest)"
>
<summary>
sheet 列表
...
...
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
View file @
b2ccb395
This diff is collapsed.
Click to expand it.
performance/Performance.EntityModels/Context/PerformanceDbContext.cs
View file @
b2ccb395
...
...
@@ -14,12 +14,26 @@ public PerformanceDbContext(DbContextOptions<PerformanceDbContext> options)
/// <summary> 二次分配概览 </summary>
public
virtual
DbSet
<
ag_againsituation
>
ag_againsituation
{
get
;
set
;
}
/// <summary> 二次绩效结果表 </summary>
public
virtual
DbSet
<
ag_compute
>
ag_compute
{
get
;
set
;
}
/// <summary> 二次分配不固定数据 </summary>
public
virtual
DbSet
<
ag_data
>
ag_data
{
get
;
set
;
}
/// <summary> 二次分配人员名单 </summary>
public
virtual
DbSet
<
ag_employee
>
ag_employee
{
get
;
set
;
}
/// <summary> 二次绩效固定项 </summary>
public
virtual
DbSet
<
ag_fixatitem
>
ag_fixatitem
{
get
;
set
;
}
/// <summary> 二次分配不固定列头数据 </summary>
public
virtual
DbSet
<
ag_header
>
ag_header
{
get
;
set
;
}
/// <summary> 科室二次绩效录入内容 </summary>
public
virtual
DbSet
<
ag_itemvalue
>
ag_itemvalue
{
get
;
set
;
}
/// <summary> 二次绩效列表 </summary>
public
virtual
DbSet
<
ag_secondallot
>
ag_secondallot
{
get
;
set
;
}
/// <summary> 二次绩效模板 </summary>
public
virtual
DbSet
<
ag_temp
>
ag_temp
{
get
;
set
;
}
/// <summary> 二次绩效模板项 </summary>
public
virtual
DbSet
<
ag_tempitem
>
ag_tempitem
{
get
;
set
;
}
/// <summary> 二次绩效工作量绩效 </summary>
public
virtual
DbSet
<
ag_workload
>
ag_workload
{
get
;
set
;
}
/// <summary> 考核类别 </summary>
public
virtual
DbSet
<
as_assess
>
as_assess
{
get
;
set
;
}
/// <summary> 考核列头 </summary>
...
...
performance/Performance.EntityModels/Entity/ag_compute.cs
0 → 100644
View file @
b2ccb395
//-----------------------------------------------------------------------
// <copyright file=" ag_compute.cs">
// * FileName: 二次绩效结果表.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
{
/// <summary>
/// 二次绩效结果表
/// </summary>
[
Table
(
"ag_compute"
)]
public
class
ag_compute
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 绩效ID
/// </summary>
public
Nullable
<
int
>
AllotId
{
get
;
set
;
}
/// <summary>
/// 科室
/// </summary>
public
string
Department
{
get
;
set
;
}
/// <summary>
/// 人员名称
/// </summary>
public
string
PersonName
{
get
;
set
;
}
/// <summary>
/// 实发金额
/// </summary>
public
Nullable
<
decimal
>
RealGiveFee
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/ag_fixatitem.cs
0 → 100644
View file @
b2ccb395
//-----------------------------------------------------------------------
// <copyright file=" ag_fixatitem.cs">
// * FileName: 二次绩效固定项.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
{
/// <summary>
/// 二次绩效固定项
/// </summary>
[
Table
(
"ag_fixatitem"
)]
public
class
ag_fixatitem
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
AllotId
{
get
;
set
;
}
/// <summary>
/// 二次绩效ID
/// </summary>
public
Nullable
<
int
>
SecondId
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
string
UnitType
{
get
;
set
;
}
/// <summary>
/// 项目名
/// </summary>
public
string
ItemName
{
get
;
set
;
}
/// <summary>
/// 值
/// </summary>
public
Nullable
<
decimal
>
ItemValue
{
get
;
set
;
}
/// <summary>
/// 排序
/// </summary>
public
Nullable
<
decimal
>
Sort
{
get
;
set
;
}
/// <summary>
/// 字段类型 1 顶部概况 2 表格固定
/// </summary>
public
Nullable
<
int
>
Type
{
get
;
set
;
}
/// <summary>
/// 1 自动带出 2 计算得出
/// </summary>
public
Nullable
<
int
>
SourceType
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/ag_itemvalue.cs
0 → 100644
View file @
b2ccb395
//-----------------------------------------------------------------------
// <copyright file=" ag_itemvalue.cs">
// * FileName: 科室二次绩效录入内容.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
{
/// <summary>
/// 科室二次绩效录入内容
/// </summary>
[
Table
(
"ag_itemvalue"
)]
public
class
ag_itemvalue
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 绩效Id
/// </summary>
public
Nullable
<
int
>
AllotId
{
get
;
set
;
}
/// <summary>
/// 二次绩效ID
/// </summary>
public
Nullable
<
int
>
SecondId
{
get
;
set
;
}
/// <summary>
/// 绩效项来源 1 模板 2 工作量
/// </summary>
public
Nullable
<
int
>
SourceType
{
get
;
set
;
}
/// <summary>
/// 值
/// </summary>
public
string
Value
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/ag_secondallot.cs
0 → 100644
View file @
b2ccb395
//-----------------------------------------------------------------------
// <copyright file=" ag_secondallot.cs">
// * FileName: 二次绩效列表.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
{
/// <summary>
/// 二次绩效列表
/// </summary>
[
Table
(
"ag_secondallot"
)]
public
class
ag_secondallot
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 绩效ID
/// </summary>
public
Nullable
<
int
>
AllotId
{
get
;
set
;
}
/// <summary>
/// 科室类型
/// </summary>
public
string
UnitType
{
get
;
set
;
}
/// <summary>
/// 年
/// </summary>
public
Nullable
<
int
>
Year
{
get
;
set
;
}
/// <summary>
/// 月
/// </summary>
public
Nullable
<
int
>
Month
{
get
;
set
;
}
/// <summary>
/// 科室
/// </summary>
public
string
Department
{
get
;
set
;
}
/// <summary>
/// 科室实发金额
/// </summary>
public
Nullable
<
decimal
>
RealGiveFee
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/ag_temp.cs
0 → 100644
View file @
b2ccb395
//-----------------------------------------------------------------------
// <copyright file=" ag_temp.cs">
// * FileName: 二次绩效模板.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
{
/// <summary>
/// 二次绩效模板
/// </summary>
[
Table
(
"ag_temp"
)]
public
class
ag_temp
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 模板名称
/// </summary>
public
string
TempName
{
get
;
set
;
}
/// <summary>
/// 类型
/// </summary>
public
string
UnitType
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/ag_tempitem.cs
0 → 100644
View file @
b2ccb395
//-----------------------------------------------------------------------
// <copyright file=" ag_tempitem.cs">
// * FileName: 二次绩效模板项.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
{
/// <summary>
/// 二次绩效模板项
/// </summary>
[
Table
(
"ag_tempitem"
)]
public
class
ag_tempitem
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 模板ID
/// </summary>
public
Nullable
<
int
>
TempId
{
get
;
set
;
}
/// <summary>
/// 字段ID
/// </summary>
public
string
FiledId
{
get
;
set
;
}
/// <summary>
/// 字段名称
/// </summary>
public
string
FiledName
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
decimal
>
Sort
{
get
;
set
;
}
/// <summary>
/// 字段类型 1 顶部概况 2 表格固定
/// </summary>
public
Nullable
<
int
>
Type
{
get
;
set
;
}
/// <summary>
/// 1 自动带出 2 计算得出
/// </summary>
public
Nullable
<
int
>
SourceType
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/ag_workload.cs
0 → 100644
View file @
b2ccb395
//-----------------------------------------------------------------------
// <copyright file=" ag_workload.cs">
// * FileName: 二次绩效工作量绩效.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
{
/// <summary>
/// 二次绩效工作量绩效
/// </summary>
[
Table
(
"ag_workload"
)]
public
class
ag_workload
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 绩效ID
/// </summary>
public
Nullable
<
int
>
AllotId
{
get
;
set
;
}
/// <summary>
/// 二次绩效ID
/// </summary>
public
Nullable
<
int
>
SecondId
{
get
;
set
;
}
/// <summary>
/// 工作量考核项ID
/// </summary>
public
string
ItemId
{
get
;
set
;
}
/// <summary>
/// 工作量名称
/// </summary>
public
string
ItemName
{
get
;
set
;
}
/// <summary>
/// 工作量系数
/// </summary>
public
Nullable
<
decimal
>
FactorValue
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
decimal
>
Sort
{
get
;
set
;
}
}
}
performance/Performance.Repository/Repository/PerforAgcomputeRepository.cs
0 → 100644
View file @
b2ccb395
//-----------------------------------------------------------------------
// <copyright file=" ag_compute.cs">
// * FileName: ag_compute.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// ag_compute Repository
/// </summary>
public
partial
class
PerforAgcomputeRepository
:
PerforRepository
<
ag_compute
>
{
public
PerforAgcomputeRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/Repository/PerforAgfixatitemRepository.cs
0 → 100644
View file @
b2ccb395
//-----------------------------------------------------------------------
// <copyright file=" ag_fixatitem.cs">
// * FileName: ag_fixatitem.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// ag_fixatitem Repository
/// </summary>
public
partial
class
PerforAgfixatitemRepository
:
PerforRepository
<
ag_fixatitem
>
{
public
PerforAgfixatitemRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/Repository/PerforAgitemvalueRepository.cs
0 → 100644
View file @
b2ccb395
//-----------------------------------------------------------------------
// <copyright file=" ag_itemvalue.cs">
// * FileName: ag_itemvalue.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// ag_itemvalue Repository
/// </summary>
public
partial
class
PerforAgitemvalueRepository
:
PerforRepository
<
ag_itemvalue
>
{
public
PerforAgitemvalueRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/Repository/PerforAgsecondallotRepository.cs
0 → 100644
View file @
b2ccb395
//-----------------------------------------------------------------------
// <copyright file=" ag_secondallot.cs">
// * FileName: ag_secondallot.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// ag_secondallot Repository
/// </summary>
public
partial
class
PerforAgsecondallotRepository
:
PerforRepository
<
ag_secondallot
>
{
public
PerforAgsecondallotRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/Repository/PerforAgtempRepository.cs
0 → 100644
View file @
b2ccb395
//-----------------------------------------------------------------------
// <copyright file=" ag_temp.cs">
// * FileName: ag_temp.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// ag_temp Repository
/// </summary>
public
partial
class
PerforAgtempRepository
:
PerforRepository
<
ag_temp
>
{
public
PerforAgtempRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/Repository/PerforAgtempitemRepository.cs
0 → 100644
View file @
b2ccb395
//-----------------------------------------------------------------------
// <copyright file=" ag_tempitem.cs">
// * FileName: ag_tempitem.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// ag_tempitem Repository
/// </summary>
public
partial
class
PerforAgtempitemRepository
:
PerforRepository
<
ag_tempitem
>
{
public
PerforAgtempitemRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/Repository/PerforAgworkloadRepository.cs
0 → 100644
View file @
b2ccb395
//-----------------------------------------------------------------------
// <copyright file=" ag_workload.cs">
// * FileName: ag_workload.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// ag_workload Repository
/// </summary>
public
partial
class
PerforAgworkloadRepository
:
PerforRepository
<
ag_workload
>
{
public
PerforAgworkloadRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
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