mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-04-05 17:38:01 +08:00
48 lines
1.3 KiB
C#
48 lines
1.3 KiB
C#
using System;
|
|
using System.Linq;
|
|
using OpenAuth.App.Request;
|
|
using OpenAuth.App.Response;
|
|
using OpenAuth.Repository.Domain;
|
|
|
|
namespace OpenAuth.App
|
|
{
|
|
/// <summary>
|
|
/// 流程设计服务
|
|
/// <para>李玉宝新增于2017-01-16 16:18:35</para>
|
|
/// </summary>
|
|
public class FlowSchemeApp :BaseApp<FlowScheme>
|
|
{
|
|
|
|
public void UpdateState(string keyValue, int state)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
|
|
public void Add(FlowScheme flowScheme)
|
|
{
|
|
Repository.Add(flowScheme);
|
|
}
|
|
|
|
public void Update(FlowScheme flowScheme)
|
|
{
|
|
UnitWork.Update<FlowScheme>(u => u.Id == flowScheme.Id, u => new FlowScheme
|
|
{
|
|
SchemeContent = flowScheme.SchemeContent,
|
|
SchemeName = flowScheme.SchemeName,
|
|
ModifyDate = DateTime.Now,
|
|
FrmId = flowScheme.FrmId
|
|
});
|
|
}
|
|
|
|
public TableData Load(QueryFlowSchemeListReq request)
|
|
{
|
|
return new TableData
|
|
{
|
|
count = Repository.GetCount(null),
|
|
data = Repository.Find(request.page, request.limit, "CreateDate desc")
|
|
};
|
|
}
|
|
}
|
|
}
|