wxw
2025-05-12 c7c2f7aa20427204944ba80a2704232b2f281582
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
 
namespace Model.ModelVm.SysVm
{
    public class AddCustomerVm
    {
        /// <summary>
        /// 客户号
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string CustomerNo { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string CustomerName { get; set; }
        /// <summary>
        /// 类型 0 销售客户/货主  1 供货商
        /// </summary>
        public int Type { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        [MaxLength(20)]
        public string LinkMan { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        [MaxLength(20)]
        public string Phone { get; set; }
        /// <summary>
        /// 银行卡号
        /// </summary>
        [MaxLength(30)]
        public string BankAccount { get; set; }
        /// <summary>
        /// 信用等级
        /// </summary>
        [MaxLength(3)]
        public string CreditRating { get; set; }
    }
    public class EditCustomerVm
    {
        public int Id { get; set; }
        /// <summary>
        /// 客户号
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string CustomerNo { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string CustomerName { get; set; }
        /// <summary>
        /// 类型 0 销售客户/货主  1 供货商
        /// </summary>
        public int Type { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        [MaxLength(20)]
        public string LinkMan { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        [MaxLength(20)]
        public string Phone { get; set; }
        /// <summary>
        /// 银行卡号
        /// </summary>
        [MaxLength(30)]
        public string BankAccount { get; set; }
        /// <summary>
        /// 信用等级
        /// </summary>
        [MaxLength(3)]
        public string CreditRating { get; set; }
    }
    /// <summary>
    /// 查询客户信息Model
    /// </summary>
    public class GetCustomerVm:IndexPage
    {
        /// <summary>
        /// 客户名称
        /// </summary>
        public string CustomerName { get; set; }
        /// <summary>
        /// 客户类型
        /// </summary>
        public int? Type { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        public string LinkMan { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string Phone { get; set; }
    }
}