Commit 0ebc3fd0 by 李承祥

带出failedId

parent ddaf6481
...@@ -23,6 +23,6 @@ public class HeadItem ...@@ -23,6 +23,6 @@ public class HeadItem
public class BodyItem : HeadItem public class BodyItem : HeadItem
{ {
public int RowNumber { get; set; } public int RowNumber { get; set; }
public int Value { get; set; } public string Value { get; set; }
} }
} }
...@@ -7,40 +7,40 @@ ...@@ -7,40 +7,40 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Performance.EntityModels namespace Performance.EntityModels
{ {
/// <summary> /// <summary>
/// 二次绩效结果表 /// 二次绩效结果表
/// </summary> /// </summary>
[Table("ag_compute")] [Table("ag_compute")]
public class ag_compute public class ag_compute
{ {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
[Key] [Key]
public int Id { get; set; } public int Id { get; set; }
/// <summary> /// <summary>
/// 绩效ID /// 绩效ID
/// </summary> /// </summary>
public Nullable<int> AllotId { get; set; } public Nullable<int> AllotId { get; set; }
/// <summary> /// <summary>
/// 二次绩效ID /// 二次绩效ID
/// </summary> /// </summary>
public Nullable<int> SecondId { get; set; } public Nullable<int> SecondId { get; set; }
/// <summary> /// <summary>
/// 科室 /// 科室
/// </summary> /// </summary>
public string Department { get; set; } public string Department { get; set; }
/// <summary> /// <summary>
/// 人员名称 /// 人员名称
/// </summary> /// </summary>
public string PersonName { get; set; } public string PersonName { get; set; }
/// <summary> /// <summary>
/// 实发金额 /// 实发金额
/// </summary> /// </summary>
......
...@@ -7,65 +7,65 @@ ...@@ -7,65 +7,65 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Performance.EntityModels namespace Performance.EntityModels
{ {
/// <summary> /// <summary>
/// 二次绩效固定项 /// 二次绩效固定项
/// </summary> /// </summary>
[Table("ag_fixatitem")] [Table("ag_fixatitem")]
public class ag_fixatitem public class ag_fixatitem
{ {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
[Key] [Key]
public int Id { get; set; } public int Id { get; set; }
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
public Nullable<int> AllotId { get; set; } public Nullable<int> AllotId { get; set; }
/// <summary> /// <summary>
/// 二次绩效ID /// 二次绩效ID
/// </summary> /// </summary>
public Nullable<int> SecondId { get; set; } public Nullable<int> SecondId { get; set; }
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
public string UnitType { get; set; } public string UnitType { get; set; }
/// <summary> /// <summary>
/// 行号 /// 行号
/// </summary> /// </summary>
public Nullable<int> RowNumber { get; set; } public Nullable<int> RowNumber { get; set; }
/// <summary> /// <summary>
/// 项目名 /// 项目名
/// </summary> /// </summary>
public string ItemName { get; set; } public string ItemName { get; set; }
/// <summary> /// <summary>
/// 值 /// 值
/// </summary> /// </summary>
public Nullable<decimal> ItemValue { get; set; } public string ItemValue { get; set; }
/// <summary> /// <summary>
/// 系数 /// 系数
/// </summary> /// </summary>
public Nullable<decimal> FactorValue { get; set; } public Nullable<decimal> FactorValue { get; set; }
/// <summary> /// <summary>
/// 排序 /// 排序
/// </summary> /// </summary>
public Nullable<decimal> Sort { get; set; } public Nullable<decimal> Sort { get; set; }
/// <summary> /// <summary>
/// 字段类型 1 顶部概况 2 表格固定 3 工作量 /// 字段类型 1 顶部概况 2 表格固定 3 工作量
/// </summary> /// </summary>
public Nullable<int> Type { get; set; } public Nullable<int> Type { get; set; }
/// <summary> /// <summary>
/// 1 自动带出 2 计算得出 /// 1 自动带出 2 计算得出
/// </summary> /// </summary>
......
...@@ -50,7 +50,7 @@ public class ag_secondallot ...@@ -50,7 +50,7 @@ public class ag_secondallot
/// 科室实发金额 /// 科室实发金额
/// </summary> /// </summary>
public Nullable<decimal> RealGiveFee { get; set; } public Nullable<decimal> RealGiveFee { get; set; }
/// <summary> /// <summary>
/// 状态 1 未提交 2 提交 /// 状态 1 未提交 2 提交
/// </summary> /// </summary>
......
...@@ -380,7 +380,7 @@ public SecondResponse GetSecondDetail(UseTempRequest request) ...@@ -380,7 +380,7 @@ public SecondResponse GetSecondDetail(UseTempRequest request)
fixatList.AddRange(newItem.Select(t => new ag_fixatitem fixatList.AddRange(newItem.Select(t => new ag_fixatitem
{ {
ItemName = t, ItemName = t,
ItemValue = 0, ItemValue = null,
RowNumber = item.Key, RowNumber = item.Key,
AllotId = fixatList.First().AllotId, AllotId = fixatList.First().AllotId,
SecondId = fixatList.First().SecondId, SecondId = fixatList.First().SecondId,
...@@ -393,6 +393,7 @@ public SecondResponse GetSecondDetail(UseTempRequest request) ...@@ -393,6 +393,7 @@ public SecondResponse GetSecondDetail(UseTempRequest request)
} }
} }
result.BodyItems = Mapper.Map<List<BodyItem>>(fixatList); result.BodyItems = Mapper.Map<List<BodyItem>>(fixatList);
result.BodyItems.ForEach(t => { t.FiledId = result.HeadItems.FirstOrDefault(s => s.FiledName == t.FiledName)?.FiledId; });
} }
return result; return result;
} }
......
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