using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace Model.ModelVm.SysVm
{
public class AddCustomerVm
{
///
/// 客户号
///
[Required]
[MaxLength(20)]
public string CustomerNo { get; set; }
///
/// 客户名称
///
[Required]
[MaxLength(50)]
public string CustomerName { get; set; }
///
/// 类型 0 销售客户/货主 1 供货商
///
public int Type { get; set; }
///
/// 地址
///
public string Address { get; set; }
///
/// 联系人
///
[MaxLength(20)]
public string LinkMan { get; set; }
///
/// 电话
///
[MaxLength(20)]
public string Phone { get; set; }
///
/// 银行卡号
///
[MaxLength(30)]
public string BankAccount { get; set; }
///
/// 信用等级
///
[MaxLength(3)]
public string CreditRating { get; set; }
///
/// 备注
///
[MaxLength(100)]
public string Demo { get; set; }
}
public class EditCustomerVm
{
public int Id { get; set; }
///
/// 客户号
///
[Required]
[MaxLength(20)]
public string CustomerNo { get; set; }
///
/// 客户名称
///
[Required]
[MaxLength(50)]
public string CustomerName { get; set; }
///
/// 类型 0 销售客户/货主 1 供货商
///
public int Type { get; set; }
///
/// 地址
///
public string Address { get; set; }
///
/// 联系人
///
[MaxLength(20)]
public string LinkMan { get; set; }
///
/// 电话
///
[MaxLength(20)]
public string Phone { get; set; }
///
/// 银行卡号
///
[MaxLength(30)]
public string BankAccount { get; set; }
///
/// 信用等级
///
[MaxLength(3)]
public string CreditRating { get; set; }
///
/// 备注
///
[MaxLength(100)]
public string Demo { get; set; }
}
///
/// 查询客户信息Model
///
public class GetCustomerVm:IndexPage
{
///
/// 客户编码
///
public string CustomerNo { get; set; }
///
/// 客户名称
///
public string CustomerName { get; set; }
///
/// 客户类型
///
public int? Type { get; set; }
///
/// 联系人
///
public string LinkMan { get; set; }
///
/// 电话
///
public string Phone { get; set; }
}
}