Kaynağa Gözat

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

金隅分支
zhichao lei 3 yıl önce
ebeveyn
işleme
276ecdded9
1 değiştirilmiş dosya ile 21 ekleme ve 15 silme
  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 Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet