Files
Gatedge.NewOrientLandMark.BOS/Gatedge.K3Cloud.Utils/Model/K3Request/Save.cs
liqionghai d758497f93 1
2025-11-18 17:43:12 +08:00

50 lines
1.2 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 Newtonsoft.Json;
namespace Gatedge.K3Cloud.Utils.Model.K3Request
{
/// <summary>
/// 单据保存
/// </summary>
public class Save<T>
{
/// <summary>
/// 更新字段
/// </summary>
public string? NeedUpDateFields { get; set; }
/// <summary>
/// 返回字段
/// </summary>
public string? NeedReturnFields { get; set; }
/// <summary>
/// 清空分录
/// </summary>
public bool IsDeleteEntry { get; set; }
/// <summary>
/// 自动提交审核
/// </summary>
public bool IsAutoSubmitAndAudit { get; set; }
/// <summary>
/// 表单数据包JSON类型必录
/// </summary>
public T Model { get; set; }
/// <summary>
/// 重写
/// </summary>
/// <returns></returns>
public override string ToString()
{
var settings = new JsonSerializerSettings
{
NullValueHandling = NullValueHandling.Ignore
};
return JsonConvert.SerializeObject(this, settings);
}
}
}