using iWare.Wms.Core;
|
using Microsoft.EntityFrameworkCore;
|
using System;
|
using System.Collections.Generic;
|
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations.Schema;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace iWare.Wms.Application
|
{
|
/// <summary>
|
/// 添加外部访问日志参数
|
/// </summary>
|
public class AddAccessInterfaceLogOutnput
|
{
|
|
/// <summary>
|
/// 主键Id
|
/// </summary>
|
[Key]
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
[Comment("Id主键")]
|
public virtual long Id { get; set; }
|
|
/// <summary>
|
/// 创建时间
|
/// </summary>
|
[Comment("创建时间")]
|
public virtual DateTimeOffset? CreatedTime { get; set; }
|
|
/// <summary>
|
/// 更新时间
|
/// </summary>
|
[Comment("更新时间")]
|
public virtual DateTimeOffset? UpdatedTime { get; set; }
|
|
/// <summary>
|
/// 创建者Id
|
/// </summary>
|
[Comment("创建者Id")]
|
public virtual long? CreatedUserId { get; set; }
|
|
/// <summary>
|
/// 创建者名称
|
/// </summary>
|
[Comment("创建者名称")]
|
[MaxLength(50)]
|
public virtual string CreatedUserName { get; set; }
|
|
/// <summary>
|
/// 修改者Id
|
/// </summary>
|
[Comment("修改者Id")]
|
public virtual long? UpdatedUserId { get; set; }
|
|
/// <summary>
|
/// 修改者名称
|
/// </summary>
|
[Comment("修改者名称")]
|
[MaxLength(50)]
|
public virtual string UpdatedUserName { get; set; }
|
|
|
/// <summary>
|
/// 工件号
|
/// </summary>
|
[Comment("工件号")]
|
|
public string WorkPieceID { get; set; }
|
|
|
/// <summary>
|
/// 当前工序;进入下一工序前,此工序不变化
|
/// </summary>
|
[Comment("当前工序")]
|
|
public string WorkingProcedureCurrent { get; set; }
|
|
/// <summary>
|
/// 质量状态
|
/// </summary>
|
public int? QualityState { get; set; }
|
|
/// <summary>
|
/// 调用行为
|
/// </summary>
|
[Comment("调用行为")]
|
[Required]
|
public int Action { get; set; }
|
|
/// <summary>
|
/// 操作接口
|
/// </summary>
|
[Comment("操作接口")]
|
[MaxLength(200)]
|
public string OperateAddress { get; set; }
|
|
[Comment("操作人Id")]
|
[MaxLength(200)]
|
public string OperateUserId { get; set; }
|
|
[Comment("操作人名称")]
|
[MaxLength(200)]
|
public string OperateUserName { get; set; }
|
|
/// <summary>
|
/// 操作Ip
|
/// </summary>
|
[Comment("操作Ip")]
|
[MaxLength(50)]
|
public string IPAddress { get; set; }
|
|
/// <summary>
|
/// 参数1
|
/// </summary>
|
[Comment("参数1")]
|
[MaxLength(200)]
|
public string Param1 { get; set; }
|
|
/// <summary>
|
/// 参数2
|
/// </summary>
|
[Comment("参数2")]
|
[MaxLength(200)]
|
public string Param2 { get; set; }
|
|
/// <summary>
|
/// 参数3
|
/// </summary>
|
[Comment("参数3")]
|
[MaxLength(200)]
|
public string Param3 { get; set; }
|
|
/// <summary>
|
/// 请求参数json
|
/// </summary>
|
[Comment("请求参数json")]
|
public string ParaJSON { get; set; }
|
|
/// <summary>
|
/// 返回结果
|
/// </summary>
|
[Comment("返回结果")]
|
public string ResultJson { get; set; }
|
|
/// <summary>
|
/// 关键字集合
|
/// </summary>
|
[Comment("关键字集合")]
|
public string Keys { get; set; }
|
|
/// <summary>
|
/// 质量状态名称
|
/// </summary>
|
public string QualityStateName
|
{
|
get
|
{
|
if (1 == QualityState)
|
{
|
return "合格";
|
|
}
|
else if (2 == QualityState)
|
{
|
|
return "不合格";
|
}
|
else if (3 == QualityState)
|
{
|
|
return "疑似";
|
}
|
else
|
{
|
return "";
|
}
|
}
|
}
|
}
|
}
|