添加项目文件。
This commit is contained in:
1190
HT.Cloud.Service/FlowManage/FlowinstanceService.cs
Normal file
1190
HT.Cloud.Service/FlowManage/FlowinstanceService.cs
Normal file
File diff suppressed because it is too large
Load Diff
47
HT.Cloud.Service/FlowManage/FormTestService.cs
Normal file
47
HT.Cloud.Service/FlowManage/FormTestService.cs
Normal file
@ -0,0 +1,47 @@
|
||||
/*******************************************************************************
|
||||
* Copyright © 2020 HT.Cloud.Framework 版权所有
|
||||
* Author: HT.Cloud
|
||||
* Description: WaterCloud快速开发平台
|
||||
* Website:
|
||||
*********************************************************************************/
|
||||
|
||||
using SqlSugar;
|
||||
using System.Threading.Tasks;
|
||||
using HT.Cloud.Code;
|
||||
using HT.Cloud.Domain.FlowManage;
|
||||
|
||||
namespace HT.Cloud.Service.FlowManage
|
||||
{
|
||||
public class FormTestService : BaseService<FormTestEntity>, IDenpendency, ICustomerForm
|
||||
{
|
||||
public FormTestService(ISqlSugarClient context) : base(context)
|
||||
{
|
||||
}
|
||||
|
||||
public async Task Add(string flowInstanceId, string frmData)
|
||||
{
|
||||
currentuser = OperatorProvider.Provider.GetCurrent();
|
||||
var req = frmData.ToObject<FormTestEntity>();
|
||||
req.F_FlowInstanceId = flowInstanceId;
|
||||
req.Create();
|
||||
req.F_CreatorUserName = currentuser.UserName;
|
||||
await repository.Insert(req);
|
||||
}
|
||||
|
||||
public async Task Edit(string flowInstanceId, string frmData)
|
||||
{
|
||||
currentuser = OperatorProvider.Provider.GetCurrent();
|
||||
var req = frmData.ToObject<FormTestEntity>();
|
||||
req.F_FlowInstanceId = flowInstanceId;
|
||||
await repository.Update(a => a.F_FlowInstanceId == req.F_FlowInstanceId, a => new FormTestEntity
|
||||
{
|
||||
F_Attachment = req.F_Attachment,
|
||||
F_EndTime = req.F_EndTime,
|
||||
F_StartTime = a.F_StartTime,
|
||||
F_RequestComment = a.F_RequestComment,
|
||||
F_RequestType = a.F_RequestType,
|
||||
F_UserName = a.F_UserName
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user