The open source simple and complete warehouse management system is derived from our many years of experience in implementing erp projects. We stripped the original commercial system wms function and opened it up for free, hoping to help the majority of small and medium-sized enterprises. At present, the system supports cross-platform。
/*
* date:2022-12-21
* developer:NoNo
*/
using System;
using System.ComponentModel.DataAnnotations;
using ModernWMS.Core.Utility;
namespace ModernWMS.WMS.Entities.ViewModels
{
/// <summary>
/// supplier viewModel
/// </summary>
public class SupplierViewModel
{
#region constructor
/// <summary>
/// constructor
/// </summary>
public SupplierViewModel()
{
}
#endregion
#region Property
/// <summary>
/// id
/// </summary>
[Display(Name = "id")]
public int id { get; set; } = 0;
/// <summary>
/// supplier_name
/// </summary>
[Display(Name = "supplier_name")]
[MaxLength(256,ErrorMessage = "MaxLength")]
[Required(ErrorMessage = "Required")]
public string supplier_name { get; set; } = string.Empty;
/// <summary>
/// city
/// </summary>
[Display(Name = "city")]
[MaxLength(128,ErrorMessage = "MaxLength")]
public string city { get; set; } = string.Empty;
/// <summary>
/// address
/// </summary>
[Display(Name = "address")]
[MaxLength(256,ErrorMessage = "MaxLength")]
public string address { get; set; } = string.Empty;
/// <summary>
/// email
/// </summary>
[Display(Name = "email")]
[MaxLength(128,ErrorMessage = "MaxLength")]
public string email { get; set; } = string.Empty;
/// <summary>
/// manager
/// </summary>
[Display(Name = "manager")]
[MaxLength(64,ErrorMessage = "MaxLength")]
public string manager { get; set; } = string.Empty;
/// <summary>
/// contact_tel
/// </summary>
[Display(Name = "contact_tel")]
[MaxLength(64,ErrorMessage = "MaxLength")]
public string contact_tel { get; set; } = string.Empty;
/// <summary>
/// creator
/// </summary>
[Display(Name = "creator")]
[MaxLength(64,ErrorMessage = "MaxLength")]
public string creator { get; set; } = string.Empty;
/// <summary>
/// create_time
/// </summary>
[Display(Name = "create_time")]
[DataType(DataType.DateTime, ErrorMessage = "DataType_DateTime")]
public DateTime create_time { get; set; } = UtilConvert.MinDate;
/// <summary>
/// last_update_time
/// </summary>
[Display(Name = "last_update_time")]
[DataType(DataType.DateTime, ErrorMessage = "DataType_DateTime")]
public DateTime last_update_time { get; set; } = UtilConvert.MinDate;
/// <summary>
/// is_valid
/// </summary>
[Display(Name = "is_valid")]
public bool is_valid { get; set; } =true;
/// <summary>
/// tenant_id
/// </summary>
[Display(Name = "tenant_id")]
public long tenant_id { get; set; } = 0;
#endregion
}
}