不公示其他绩效验证工号

parent 00c3c793
......@@ -478,7 +478,7 @@ public List<view_per_apr_amount> GetAprList(int allotId, string department, int?
public bool InsertApr(per_apr_amount request, int userId)
{
if (request == null)
return false;
throw new PerformanceException("无效数据");
if (string.IsNullOrEmpty(request.PersonnelNumber))
throw new PerformanceException("文件中存在“工号”为空的数据");
......@@ -503,8 +503,7 @@ public bool InsertApr(per_apr_amount request, int userId)
public bool UpdateApr(per_apr_amount request)
{
if (request == null)
return false;
throw new PerformanceException("无效数据");
if (string.IsNullOrEmpty(request.PersonnelNumber))
throw new PerformanceException("文件中存在“工号”为空的数据");
......@@ -931,13 +930,17 @@ public List<view_per_apr_amount> GetAprHideList(int allotId, string department,
public bool InsertAprHide(per_apr_amount_hide request, int userId)
{
if (request == null)
return false;
throw new PerformanceException("无效数据");
if (string.IsNullOrEmpty(request.PersonnelNumber))
throw new PerformanceException("文件中存在“工号”为空的数据");
if (string.IsNullOrEmpty(request.PerforType) && request.Amount != 0)
throw new PerformanceException("文件中存在“绩效类型”为空的数据");
var employee = peremployeeRepository.GetEntity(t => t.AllotId == request.AllotId && t.PersonnelNumber == request.PersonnelNumber);
if (employee == null)
throw new PerformanceException("工号在字典中不存在");
request.TypeInDepartment = GetTypeInDepartment(userId);
request.Status = 2;
request.CreateDate = DateTime.Now;
......@@ -952,8 +955,7 @@ public bool InsertAprHide(per_apr_amount_hide request, int userId)
public bool UpdateAprHide(per_apr_amount_hide request)
{
if (request == null)
return false;
throw new PerformanceException("无效数据");
if (string.IsNullOrEmpty(request.PersonnelNumber))
throw new PerformanceException("文件中存在“工号”为空的数据");
......@@ -1447,7 +1449,7 @@ public GatherResponse GetGatherTotal(Gather gather)
}
else
{
exresultgather = exresultgatherRepository.GetEntities(t=>t.AllotId == gather.AllotId);
exresultgather = exresultgatherRepository.GetEntities(t => t.AllotId == gather.AllotId);
}
......
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