95 lines
2.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Learun.Util;
using System;
using System.Collections.Generic;
namespace Learun.Application.WorkFlow
{
/// <summary>
/// 版 本 PIT-ADMS V7.0.3 敏捷开发框架
/// Copyright (c) 2013-2018 Hexagon PPM
/// 创建人:研发部
/// 日 期2017.04.17
/// 描 述:会签记录操作
/// </summary>
public class WfConfluenceBLL : WfConfluenceIBLL
{
private WfConfluenceService wfConfluenceService = new WfConfluenceService();
#region
/// <summary>
/// 获取会签记录
/// </summary>
/// <param name="processId">流程实例主键</param>
/// <param name="nodeId">节点主键</param>
/// <returns></returns>
public IEnumerable<WfConfluenceEntity> GetList(string processId, string nodeId)
{
try
{
return wfConfluenceService.GetList(processId, nodeId);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion
#region
/// <summary>
/// 保存成功的会前记录
/// </summary>
/// <param name="entity">实体</param>
public void SaveEntity(WfConfluenceEntity entity)
{
try
{
wfConfluenceService.SaveEntity(entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
/// <summary>
/// 删除会签节点数据
/// </summary>
/// <param name="processId">实例主键</param>
/// <param name="nodeId">节点主键</param>
public void DeleteEntity(string processId, string nodeId)
{
try
{
wfConfluenceService.DeleteEntity(processId, nodeId);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion
}
}