TG.WXCRM.V4/Model/MAP/BAS_COMPANY.cs

67 lines
2.8 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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; } }
}
}