using Cksoft.Unity; using DllUfpEntity; using System; using System.Collections.Generic; namespace DllUfpEntity { [Table("Staff")] public class Staff : BaseEntity { ////自动产生代码开始&&此行不能删除 #region 自动产生代码 public Staff() { base.EntityStatusID = 1; } [ColDetail(10, "ID", 1, 1, 100, 1, "a.ID", "", 1, 1)] [Key] public string ID { get; set; } [ColDetail(20, "FCode", 1, 1, 100, 1, "a.FCode", "", 1, 1)] public string FCode { get; set; } [ColDetail(30, "FName", 1, 1, 100, 1, "a.FName", "", 1, 1)] public string FName { get; set; } [ColDetail(40, "Password", 1, 1, 100, 1, "a.Password", "", 1, 1)] public string Password { get; set; } [ColDetail(60, "IsSA", 1, 1, 100, 1, "a.IsSA", "", 1, 1)] public int? IsSA { get; set; } [ColDetail(50, "Remark", 1, 1, 100, 1, "a.Remark", "", 1, 1)] public string Remark { get; set; } [ColDetail(60, "FStatus", 1, 1, 100, 1, "a.FStatus", "", 1, 1)] public int FStatus { get; set; } [ColDetail(70, "reccode", 1, 1, 100, 1, "a.RecCode", "", 1, 1)] public string RecCode { get; set; } [ColDetail(80, "rectime", 1, 1, 100, 1, "a.RecTime", "", 1, 1)] public DateTime RecTime { get; set; } [ColDetail(90, "modcode", 1, 1, 100, 1, "a.ModCode", "", 1, 1)] public string ModCode { get; set; } [ColDetail(100, "modtime", 1, 1, 100, 1, "a.ModTime", "", 1, 1)] public DateTime ModTime { get; set; } [Ignore] public string RoleIds { get; set; } [Ignore] public string RoleNames { get; set; } [Ignore] public IEnumerable Roles { get; set; } public override string GetSelectSql() { return string.Format($"select { GetQueryColSql()} from { GetQueryTabSql()}"); } public override string GetQueryColSql() { string sqlstr = "a.ID ID,a.FCode FCode,a.FName FName,a.Password Password,a.Remark Remark,a.FStatus FStatus,a.RecCode RecCode,a.RecTime RecTime,a.ModCode ModCode"; sqlstr += ",a.ModTime ModTime,0 EntityStatusID,a.ISSA IsSA"; return sqlstr; } public override string GetQueryTabSql() { string sqlstr = " Staff a "; return sqlstr; } public override string GetQuerySortSql() { return ""; } #endregion ////自动产生代码结束&&此行不能删除 /// /// 当前员工所拥有的角色 /// } }