Commit 0d17a785 by 李承祥

新增文件

parent f16410ad
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
......@@ -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>
......
//-----------------------------------------------------------------------
// <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; }
}
}
//-----------------------------------------------------------------------
// <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; }
}
}
//-----------------------------------------------------------------------
// <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; }
}
}
//-----------------------------------------------------------------------
// <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)
{
}
}
}
//-----------------------------------------------------------------------
// <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)
{
}
}
}
//-----------------------------------------------------------------------
// <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)
{
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment