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

41 lines
1.0 KiB
C#

using System.ComponentModel.DataAnnotations.Schema;
namespace WX.CRM.Model.Entity
{
public partial class BAS_INNERUSER_EXT
{
[NotMapped]
public decimal CustomerType
{
get
{
if (this.GJS_CUSTOMERMANAGER == 1)
return 2;
if (this.GENERALCUSTOMER == 1)
return 3;
if (this.SENIORCUSTOMER == 1)
return 4;
return 5;
}
set
{
this.GJS_CUSTOMERMANAGER = 0;
this.GENERALCUSTOMER = 0;
this.SENIORCUSTOMER = 0;
if (value == 2)
{
this.GJS_CUSTOMERMANAGER = 1;
}
if (value == 3)
{
this.GENERALCUSTOMER = 1;
}
if (value == 4)
{
this.SENIORCUSTOMER = 1;
}
}
}
}
}