Quellcode durchsuchen

公文接收审批的时候点不同意没有做处理的问题

金隅分支
zhichao lei vor 3 Jahren
Ursprung
Commit
276ecdded9
1 geänderte Dateien mit 21 neuen und 15 gelöschten Zeilen
  1. +21
    -15
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsService.cs

+ 21
- 15
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsService.cs Datei anzeigen

@@ -175,30 +175,36 @@ namespace Learun.Application.OA

public void ChangeStatusByProcessId(string parameterProcessId, int status)
{
if (status == 2)
try
{
try
{
var newEntity = this.BaseRepository()
.FindEntity<NewsEntity>(a => a.F_ProgressId == parameterProcessId);
if (null != newEntity)
{
newEntity.F_Status = "2";
}

this.BaseRepository().Update(newEntity);
}
catch (Exception ex)
var newEntity = this.BaseRepository()
.FindEntity<NewsEntity>(a => a.F_ProgressId == parameterProcessId);
if (null != newEntity)
{
if (ex is ExceptionEx)
if (status == 2)
{
throw;

newEntity.F_Status = "2";
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
newEntity.F_Status = "0";
}
}

this.BaseRepository().Update(newEntity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
}


Laden…
Abbrechen
Speichern