Parcourir la source

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

金隅分支
zhichao lei il y a 3 ans
Parent
révision
276ecdded9
1 fichiers modifiés avec 21 ajouts et 15 suppressions
  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 Voir le fichier

@@ -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);
}
}
}
}


Chargement…
Annuler
Enregistrer