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
0d17a785
Commit
0d17a785
authored
May 07, 2019
by
李承祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增文件
parent
f16410ad
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
244 additions
and
0 deletions
+244
-0
performance/Performance.Api/Controllers/TemplateController.cs
+31
-0
performance/Performance.EntityModels/Context/PerformanceDbContext.cs
+6
-0
performance/Performance.EntityModels/Entity/per_first.cs
+54
-0
performance/Performance.EntityModels/Entity/sys_extract.cs
+44
-0
performance/Performance.EntityModels/Entity/sys_hospitalconfig.cs
+49
-0
performance/Performance.Repository/Repository/PerforExtractRepository.cs
+20
-0
performance/Performance.Repository/Repository/PerforHospitalconfigRepository.cs
+20
-0
performance/Performance.Repository/Repository/PerforPerfirstRepository.cs
+20
-0
No files found.
performance/Performance.Api/Controllers/TemplateController.cs
0 → 100644
View file @
0d17a785
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
using
Microsoft.AspNetCore.Mvc
;
using
Microsoft.Extensions.Options
;
using
Performance.DtoModels
;
using
Performance.DtoModels.AppSettings
;
using
Performance.EntityModels
;
using
Performance.Infrastructure
;
namespace
Performance.Api.Controllers
{
[
Route
(
"api/[controller]"
)]
public
class
TemplateController
:
Controller
{
public
Application
emailOptions
;
public
TemplateController
(
IOptions
<
Application
>
emailOptions
)
{
this
.
emailOptions
=
emailOptions
.
Value
;
}
[
Route
(
"gettest"
)]
public
ApiResponse
apiResponse
()
{
var
a
=
emailOptions
.
Receiver
;
return
new
ApiResponse
(
ResponseType
.
OK
,
""
,
new
per_allot
{
});
}
}
}
\ No newline at end of file
performance/Performance.EntityModels/Context/PerformanceDbContext.cs
View file @
0d17a785
...
...
@@ -60,6 +60,8 @@ public PerformanceDbContext(DbContextOptions<PerformanceDbContext> options)
public
virtual
DbSet
<
per_againallot
>
per_againallot
{
get
;
set
;
}
/// <summary> 医院绩效分配 <summary>
public
virtual
DbSet
<
per_allot
>
per_allot
{
get
;
set
;
}
/// <summary> 首次上传文件地址(当医院存在标准库时,首次上传用户提交固定格式的excel,开发人员配置SQL脚本) <summary>
public
virtual
DbSet
<
per_first
>
per_first
{
get
;
set
;
}
/// <summary> 上传数据解析 <summary>
public
virtual
DbSet
<
per_sheet
>
per_sheet
{
get
;
set
;
}
/// <summary> 医生科室核算结果 <summary>
...
...
@@ -72,8 +74,12 @@ public PerformanceDbContext(DbContextOptions<PerformanceDbContext> options)
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_extract
>
sys_extract
{
get
;
set
;
}
/// <summary> 医院信息 <summary>
public
virtual
DbSet
<
sys_hospital
>
sys_hospital
{
get
;
set
;
}
/// <summary> <summary>
public
virtual
DbSet
<
sys_hospitalconfig
>
sys_hospitalconfig
{
get
;
set
;
}
/// <summary> 菜单表 <summary>
public
virtual
DbSet
<
sys_menu
>
sys_menu
{
get
;
set
;
}
/// <summary> 角色表 <summary>
...
...
performance/Performance.EntityModels/Entity/per_first.cs
0 → 100644
View file @
0d17a785
//-----------------------------------------------------------------------
// <copyright file=" per_first.cs">
// * FileName: 首次上传文件地址(当医院存在标准库时,首次上传用户提交固定格式的excel,开发人员配置SQL脚本).cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
{
/// <summary>
/// 首次上传文件地址(当医院存在标准库时,首次上传用户提交固定格式的excel,开发人员配置SQL脚本)
/// </summary>
[
Table
(
"per_first"
)]
public
class
per_first
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
HospitalId
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
CreateUser
{
get
;
set
;
}
/// <summary>
/// 上传时间
/// </summary>
public
Nullable
<
DateTime
>
CreateDate
{
get
;
set
;
}
/// <summary>
/// 文件路径
/// </summary>
public
string
Path
{
get
;
set
;
}
/// <summary>
/// 上传日期
/// </summary>
public
Nullable
<
DateTime
>
UploadDate
{
get
;
set
;
}
/// <summary>
/// 备注
/// </summary>
public
string
Remark
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/sys_extract.cs
0 → 100644
View file @
0d17a785
//-----------------------------------------------------------------------
// <copyright file=" sys_extract.cs">
// * FileName: 医院数据提取脚本.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
{
/// <summary>
/// 医院数据提取脚本
/// </summary>
[
Table
(
"sys_extract"
)]
public
class
sys_extract
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 医院ID
/// </summary>
public
Nullable
<
int
>
HospitalId
{
get
;
set
;
}
/// <summary>
/// EXCEL中SHEET名称
/// </summary>
public
string
SheetName
{
get
;
set
;
}
/// <summary>
/// 执行脚本
/// </summary>
public
string
ExecuteScript
{
get
;
set
;
}
/// <summary>
/// 是否可用 1 可用 2 不可用
/// </summary>
public
string
IsEnable
{
get
;
set
;
}
}
}
performance/Performance.EntityModels/Entity/sys_hospitalconfig.cs
0 → 100644
View file @
0d17a785
//-----------------------------------------------------------------------
// <copyright file=" sys_hospitalconfig.cs">
// * FileName: .cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Performance.EntityModels
{
/// <summary>
///
/// </summary>
[
Table
(
"sys_hospitalconfig"
)]
public
class
sys_hospitalconfig
{
/// <summary>
///
/// </summary>
[
Key
]
public
int
Id
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
HospitalId
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
string
DbSource
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
string
DbName
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
DbUser
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
string
DbPassword
{
get
;
set
;
}
}
}
performance/Performance.Repository/Repository/PerforExtractRepository.cs
0 → 100644
View file @
0d17a785
//-----------------------------------------------------------------------
// <copyright file=" sys_extract.cs">
// * FileName: sys_extract.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// sys_extract Repository
/// </summary>
public
partial
class
PerforExtractRepository
:
PerforRepository
<
sys_extract
>
{
public
PerforExtractRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/Repository/PerforHospitalconfigRepository.cs
0 → 100644
View file @
0d17a785
//-----------------------------------------------------------------------
// <copyright file=" sys_hospitalconfig.cs">
// * FileName: sys_hospitalconfig.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// sys_hospitalconfig Repository
/// </summary>
public
partial
class
PerforHospitalconfigRepository
:
PerforRepository
<
sys_hospitalconfig
>
{
public
PerforHospitalconfigRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
}
}
performance/Performance.Repository/Repository/PerforPerfirstRepository.cs
0 → 100644
View file @
0d17a785
//-----------------------------------------------------------------------
// <copyright file=" per_first.cs">
// * FileName: per_first.cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
Performance.EntityModels
;
namespace
Performance.Repository
{
/// <summary>
/// per_first Repository
/// </summary>
public
partial
class
PerforPerfirstRepository
:
PerforRepository
<
per_first
>
{
public
PerforPerfirstRepository
(
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