Commit 85356fcc by ruyun.zhang

考核接口定义

parent d7a54454
...@@ -2085,6 +2085,56 @@ ...@@ -2085,6 +2085,56 @@
<member name="P:Performance.DtoModels.AprAmountMarkRequest.TypeInDepartments"> <member name="P:Performance.DtoModels.AprAmountMarkRequest.TypeInDepartments">
<summary> 需要审计的科室,支持多个科室一起审计 </summary> <summary> 需要审计的科室,支持多个科室一起审计 </summary>
</member> </member>
<member name="P:Performance.DtoModels.Request.EditAssessSchemeEnterRequest.Score">
<summary>
考核扣分
</summary>
</member>
<member name="P:Performance.DtoModels.Request.EditAssessSchemeEnterRequest.ScoreRemark">
<summary>
扣分原因
</summary>
</member>
<member name="P:Performance.DtoModels.Request.AddAssessSchemeItemsRequest.SchemeId">
<summary>
方案ID
</summary>
</member>
<member name="P:Performance.DtoModels.Request.AddAssessSchemeItemsRequest.ItemName1">
<summary>
一级指标名称
</summary>
</member>
<member name="P:Performance.DtoModels.Request.AddAssessSchemeItemsRequest.ItemName2">
<summary>
二级指标名称
</summary>
</member>
<member name="P:Performance.DtoModels.Request.AddAssessSchemeItemsRequest.AssessScore">
<summary>
考核分值
</summary>
</member>
<member name="P:Performance.DtoModels.Request.AddAssessSchemeItemsRequest.AssessNorm">
<summary>
考核标准
</summary>
</member>
<member name="P:Performance.DtoModels.Request.AddAssessSchemeItemsRequest.UnitCode">
<summary>
责任部门核算单元编码
</summary>
</member>
<member name="P:Performance.DtoModels.Request.AddAssessSchemeItemsRequest.UnitType">
<summary>
责任部门核算组别
</summary>
</member>
<member name="P:Performance.DtoModels.Request.AddAssessSchemeItemsRequest.AccountingUnit">
<summary>
责任部门核算单元
</summary>
</member>
<member name="P:Performance.DtoModels.Request.BatchRequest.Batch"> <member name="P:Performance.DtoModels.Request.BatchRequest.Batch">
<summary> <summary>
批次号 批次号
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Performance.DtoModels.Request
{
public class AddAssessCategoryRequest
{
public int AllotId { get; set; }
public string Category { get; set; }
}
public class UpdateAssessCategoryRequest : AddAssessCategoryRequest
{
public int CategoryId { get; set; }
}
public class BatchAssessCategoryRequest
{
public int[] CategoryId { get; set; }
}
}
using FluentValidation; //using FluentValidation;
using System; //using System;
using System.Collections.Generic; //using System.Collections.Generic;
using System.Text; //using System.Text;
namespace Performance.DtoModels //namespace Performance.DtoModels
{ //{
public class AssessColumnRequest // public class AssessColumnRequest
{ // {
public int ColumnID { get; set; } // public int ColumnID { get; set; }
public int AssessID { get; set; } // public int AssessID { get; set; }
public int ParentID { get; set; } // public int ParentID { get; set; }
public string ColumnName { get; set; } // public string ColumnName { get; set; }
public int Sort { get; set; } // public int Sort { get; set; }
} // }
public class AssessColumnRequestValidator : AbstractValidator<AssessColumnRequest> // public class AssessColumnRequestValidator : AbstractValidator<AssessColumnRequest>
{ // {
public AssessColumnRequestValidator() // public AssessColumnRequestValidator()
{ // {
RuleSet("Del", () => // RuleSet("Del", () =>
{ // {
RuleFor(t => t.ColumnID).NotNull().GreaterThan(0); // RuleFor(t => t.ColumnID).NotNull().GreaterThan(0);
}); // });
RuleSet("Update", () => // RuleSet("Update", () =>
{ // {
RuleFor(t => t.ColumnID).NotNull().GreaterThan(0); // RuleFor(t => t.ColumnID).NotNull().GreaterThan(0);
RuleFor(t => t.ColumnName).NotNull().NotEmpty(); // RuleFor(t => t.ColumnName).NotNull().NotEmpty();
}); // });
RuleSet("Add", () => // RuleSet("Add", () =>
{ // {
RuleFor(t => t.AssessID).NotNull().GreaterThan(0); // RuleFor(t => t.AssessID).NotNull().GreaterThan(0);
RuleFor(t => t.ParentID).NotNull().GreaterThan(-1); // RuleFor(t => t.ParentID).NotNull().GreaterThan(-1);
RuleFor(t => t.ColumnName).NotNull().NotEmpty(); // RuleFor(t => t.ColumnName).NotNull().NotEmpty();
}); // });
RuleSet("List", () => // RuleSet("List", () =>
{ // {
RuleFor(t => t.AssessID).NotNull().GreaterThan(0); // RuleFor(t => t.AssessID).NotNull().GreaterThan(0);
}); // });
} // }
} // }
} //}
using FluentValidation; //using FluentValidation;
using System; //using System;
using System.Collections.Generic; //using System.Collections.Generic;
using System.Text; //using System.Text;
namespace Performance.DtoModels //namespace Performance.DtoModels
{ //{
public class AssessDataRequest // public class AssessDataRequest
{ // {
public int AssessID { get; set; } // public int AssessID { get; set; }
public List<AssessRow> AssessRow { get; set; } // public List<AssessRow> AssessRow { get; set; }
} // }
public class AssessRow // public class AssessRow
{ // {
public int DataID { get; set; } // public int DataID { get; set; }
public string DataValue { get; set; } // public string DataValue { get; set; }
} // }
public class AssessDataRequestValidator : AbstractValidator<AssessDataRequest> // public class AssessDataRequestValidator : AbstractValidator<AssessDataRequest>
{ // {
public AssessDataRequestValidator() // public AssessDataRequestValidator()
{ // {
RuleSet("List", () => // RuleSet("List", () =>
{ // {
RuleFor(t => t.AssessID).NotNull().GreaterThan(0); // RuleFor(t => t.AssessID).NotNull().GreaterThan(0);
}); // });
RuleSet("Edit", () => // RuleSet("Edit", () =>
{ // {
RuleFor(t => t.AssessRow).NotNull().Must(p => p != null && p.Count > 0); // RuleFor(t => t.AssessRow).NotNull().Must(p => p != null && p.Count > 0);
}); // });
} // }
} // }
} //}
using FluentValidation; //using FluentValidation;
using System; //using System;
using System.Collections.Generic; //using System.Collections.Generic;
using System.Text; //using System.Text;
namespace Performance.DtoModels //namespace Performance.DtoModels
{ //{
public class AssessRequest // public class AssessRequest
{ // {
public int AssessID { get; set; } // public int AssessID { get; set; }
public int AllotID { get; set; } // public int AllotID { get; set; }
public string AssessName { get; set; } // public string AssessName { get; set; }
} // }
public class AssessRequestValidator : AbstractValidator<AssessRequest> // public class AssessRequestValidator : AbstractValidator<AssessRequest>
{ // {
public AssessRequestValidator() // public AssessRequestValidator()
{ // {
RuleSet("Del", () => // RuleSet("Del", () =>
{ // {
RuleFor(t => t.AssessID).NotNull().GreaterThan(0); // RuleFor(t => t.AssessID).NotNull().GreaterThan(0);
}); // });
RuleSet("Update", () => // RuleSet("Update", () =>
{ // {
RuleFor(t => t.AssessID).NotNull().GreaterThan(0); // RuleFor(t => t.AssessID).NotNull().GreaterThan(0);
RuleFor(t => t.AssessName).NotNull().NotEmpty(); // RuleFor(t => t.AssessName).NotNull().NotEmpty();
}); // });
RuleSet("Add", () => // RuleSet("Add", () =>
{ // {
RuleFor(t => t.AllotID).NotNull().NotEmpty(); // RuleFor(t => t.AllotID).NotNull().NotEmpty();
RuleFor(t => t.AssessName).NotNull().NotEmpty(); // RuleFor(t => t.AssessName).NotNull().NotEmpty();
}); // });
RuleSet("List", () => // RuleSet("List", () =>
{ // {
RuleFor(t => t.AllotID).NotNull().NotEmpty(); // RuleFor(t => t.AllotID).NotNull().NotEmpty();
}); // });
RuleSet("Use", () => // RuleSet("Use", () =>
{ // {
RuleFor(t => t.AllotID).NotNull().NotEmpty(); // RuleFor(t => t.AllotID).NotNull().NotEmpty();
RuleFor(t => t.AssessID).NotNull().NotEmpty(); // RuleFor(t => t.AssessID).NotNull().NotEmpty();
}); // });
} // }
} // }
} //}
namespace Performance.DtoModels.Request
{
public class EditAssessSchemeEnterRequest
{
public int IssueDetailId { get; set; }
/// <summary>
/// 考核扣分
/// </summary>
public int Score { get; set; }
/// <summary>
/// 扣分原因
/// </summary>
public string ScoreRemark { get; set; }
}
}
namespace Performance.DtoModels.Request
{
public class AddAssessSchemeItemsRequest
{
/// <summary>
/// 方案ID
/// </summary>
public string SchemeId { get; set; }
/// <summary>
/// 一级指标名称
/// </summary>
public string ItemName1 { get; set; }
/// <summary>
/// 二级指标名称
/// </summary>
public string ItemName2 { get; set; }
/// <summary>
/// 考核分值
/// </summary>
public string AssessScore { get; set; }
/// <summary>
/// 考核标准
/// </summary>
public string AssessNorm { get; set; }
/// <summary>
/// 责任部门核算单元编码
/// </summary>
public string UnitCode { get; set; }
/// <summary>
/// 责任部门核算组别
/// </summary>
public string UnitType { get; set; }
/// <summary>
/// 责任部门核算单元
/// </summary>
public string AccountingUnit { get; set; }
}
public class UpdateAssessSchemeItemsRequest : AddAssessSchemeItemsRequest
{
public int SchemeItemsId { get; set; }
}
public class BatchAssessSchemeItemsRequest
{
public int[] SchemeItemsId { get; set; }
}
public class TargetAssessSchemeItemsRequest
{
}
}
namespace Performance.DtoModels.Request
{
public class AddAssessSchemeRequest
{
public int CategoryId { get; set; }
public string SchemeName { get; set; }
}
public class UpdateAssessSchemeRequest : AddAssessSchemeRequest
{
public int SchemeId { get; set; }
}
public class BatchAssessSchemeRequest
{
public int[] SchemeId { get; set; }
}
}
namespace Performance.Services
{
public class AssessNewService : IAutoInjection
{
}
}
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