using iWare.Wms.Core;
using iWare.Wms.Core.Service;
using System.ComponentModel.DataAnnotations;
namespace iWare.Wms.Application
{
///
/// 参数配置
///
public class ConfigPageInput : PageInputBase
{
///
/// 名称
///
public virtual string Name { get; set; }
///
/// 编码
///
public virtual string Code { get; set; }
///
/// 常量所属分类的编码,来自于“常量的分类”字典
///
public virtual string GroupCode { get; set; }
}
public class AddConfigInput
{
///
/// 名称
///
[Required(ErrorMessage = "参数名称不能为空")]
public string Name { get; set; }
///
/// 编码
///
[Required(ErrorMessage = "参数编码不能为空")]
public string Code { get; set; }
///
/// 属性值
///
public string Value { get; set; }
///
/// 是否是系统参数(Y-是,N-否)
///
public string SysFlag { get; set; }
///
/// 备注
///
public string Remark { get; set; }
///
/// 状态(字典 0正常 1停用 2删除)
///
public int Status { get; set; }
///
/// 常量所属分类的编码,来自于“常量的分类”字典
///
public string GroupCode { get; set; }
}
public class DeleteConfigInput : BaseId
{
}
public class UpdateConfigInput
{
///
/// 应用Id
///
[Required(ErrorMessage = "应用Id不能为空")]
public long Id { get; set; }
///
/// 名称
///
[Required(ErrorMessage = "参数名称不能为空")]
public string Name { get; set; }
///
/// 编码
///
[Required(ErrorMessage = "参数编码不能为空")]
public string Code { get; set; }
///
/// 属性值
///
public string Value { get; set; }
///
/// 是否是系统参数(Y-是,N-否)
///
public string SysFlag { get; set; }
///
/// 备注
///
public string Remark { get; set; }
///
/// 状态(字典 0正常 1停用 2删除)
///
public int Status { get; set; }
///
/// 常量所属分类的编码,来自于“常量的分类”字典
///
public string GroupCode { get; set; }
}
public class QueryConfigInput : BaseId
{
}
}