67 lines
2.8 KiB
C#
67 lines
2.8 KiB
C#
using System;
|
||
using System.ComponentModel;
|
||
using System.ComponentModel.DataAnnotations;
|
||
using System.ComponentModel.DataAnnotations.Schema;
|
||
using WX.CRM.Common.MvcValidation;
|
||
namespace WX.CRM.Model.Entity
|
||
{
|
||
public partial class BAS_COMPANY
|
||
{
|
||
|
||
|
||
[DisplayName("公司ID")]
|
||
[NotMapped]
|
||
public decimal map_COMPANYID { get { return this.COMPANYID; } set { this.COMPANYID = value; } }
|
||
|
||
|
||
[DisplayName("公司名称")]
|
||
[Required(ErrorMessage = "名称不能为空!")]
|
||
[NotMapped]
|
||
public string map_COMPANYNAME { get { return this.COMPANYNAME; } set { this.COMPANYNAME = value; } }
|
||
|
||
[DisplayName("外部公司")]
|
||
[NotMapped]
|
||
public Nullable<short> map_ISOUTERAGENT { get { return this.ISOUTERAGENT; } set { this.ISOUTERAGENT = value; } }
|
||
|
||
[DisplayName("父公司")]
|
||
[NoInput("[0]", ErrorMessage = "不能选中自己作为父级公司!")]
|
||
[NotMapped]
|
||
public Nullable<decimal> map_PARENTID { get { return this.PARENTID; } set { this.PARENTID = value; } }
|
||
|
||
[DisplayName("公司编码")]
|
||
[Required(ErrorMessage = "编码不能为空!")]
|
||
[RegularExpression("[a-zA-Z0-9]{4}", ErrorMessage = "必须是4个字符")]
|
||
[NotMapped]
|
||
public string map_COMPANYCODE { get { return this.COMPANYCODE; } set { this.COMPANYCODE = value; } }
|
||
|
||
[DisplayName("公司业务")]
|
||
[NotMapped]
|
||
public decimal map_BUSINESSVALUE { get { return this.BUSINESSVALUE; } set { this.BUSINESSVALUE = value; } }
|
||
[DisplayName("公司简介")]
|
||
[StringLength(100)]
|
||
[NotMapped]
|
||
public string map_COMMENTS { get { return this.COMMENTS; } set { this.COMMENTS = value; } }
|
||
[DisplayName("系统前缀")]
|
||
[NotMapped]
|
||
[RegularExpression("[a-zA-Z]{1}", ErrorMessage = "必须为一位字母")]
|
||
[Required(ErrorMessage = "不能为空!")]
|
||
public string map_SYSTEMCODE { get { return this.SYSTEMCODE; } set { this.SYSTEMCODE = value; } }
|
||
[DisplayName("创建时间")]
|
||
[NotMapped]
|
||
public DateTime? map_CTIME { get { return this.CTIME; } set { this.CTIME = value; } }
|
||
[DisplayName("创建人")]
|
||
[NotMapped]
|
||
public decimal? map_CREATEUSER { get { return this.CREATEUSER; } set { this.CREATEUSER = value; } }
|
||
[DisplayName("修改时间")]
|
||
[NotMapped]
|
||
public DateTime? map_UTIME { get { return this.UTIME; } set { this.UTIME = value; } }
|
||
[DisplayName("修改人")]
|
||
[NotMapped]
|
||
public decimal? map_UPDATEUSER { get { return this.UPDATEUSER; } set { this.UPDATEUSER = value; } }
|
||
[DisplayName("机构")]
|
||
[Required(ErrorMessage = "机构不能为空!")]
|
||
[NotMapped]
|
||
public string map_ORGANNAME { get { return this.ORGANNAME; } set { this.ORGANNAME = value; } }
|
||
}
|
||
}
|