This commit is contained in:
he
2022-04-06 14:47:21 +08:00
parent fe62c051d7
commit 30f912a6a0
2 changed files with 26 additions and 7 deletions
@@ -1,4 +1,5 @@
using IRaCIS.Application.Contracts;
using Castle.Core.Internal;
using IRaCIS.Application.Contracts;
using IRaCIS.Core.Application.Contracts;
using Newtonsoft.Json;
using System;
@@ -141,15 +142,34 @@ namespace IRaCIS.Core.Application.Service.Inspection.DTO
#endregion
public class DataInspectionDto<T> : InspectionBase, IInspectionDTO, ISignDTO
public class DataInspectionDto<T> : IInspectionDTO, ISignDTO
{
public DataInspectionDto()
{
this.AuditInfo.JsonDetail= JsonConvert.SerializeObject(this.OptCommand);
}
public T OptCommand { get; set; }
public DataInspectionAddDTO AuditInfo
{
get
{
if (auditInfo.JsonDetail.IsNullOrEmpty())
{
auditInfo.JsonDetail = JsonConvert.SerializeObject(OptCommand);
}
return auditInfo;
}
set
{
auditInfo = value;
}
}
private DataInspectionAddDTO auditInfo=new DataInspectionAddDTO ();
public SignDTO SignInfo { get; set; } = new SignDTO() { };
}
#region