ComplianceServer/oldcode/Model/MAP/WX_GROUPPERCENT_Extend.cs

46 lines
908 B
C#

using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
namespace WX.CRM.Model.MAP
{
public class WX_GROUPPERCENT_Extend
{
[DisplayName("组ID")]
[NotMapped]
public decimal GID { get; set; }
[DisplayName("组比例")]
[NotMapped]
public decimal? DIV_PERCENT { get; set; }
[DisplayName("组名")]
[NotMapped]
public string GNAME { get; set; }
}
public class WX_GroupEmployeeNum
{
public decimal GID { get; set; }
public decimal Num { get; set; }
public decimal Rate
{
get
{
if (Num > 0)
{
return Math.Round(100 / Num, 4);
}
else
{
return 0;
}
}
}
}
}