using Learun.Util; using System; using System.ComponentModel.DataAnnotations.Schema; namespace Learun.Application.Organization { /// <summary> /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 /// Copyright (c) 2013-2018 北京泉江科技有限公司 /// 创建人:陈彬彬 /// 日 期:2017.03.04 /// 描 述:岗位管理 /// </summary> public class PostEntity { #region 实体成员 /// <summary> /// 主键 /// </summary> [Column("F_POSTID")] public string F_PostId { get; set; } /// <summary> /// 上级主键 /// </summary> [Column("F_PARENTID")] public string F_ParentId { get; set; } /// <summary> /// 岗位名称 /// </summary> [Column("F_NAME")] public string F_Name { get; set; } /// <summary> /// 岗位编号 /// </summary> [Column("F_ENCODE")] public string F_EnCode { get; set; } /// <summary> /// 公司主键 /// </summary> [Column("F_COMPANYID")] public string F_CompanyId { get; set; } /// <summary> /// 部门主键 /// </summary> [Column("F_DEPARTMENTID")] public string F_DepartmentId { get; set; } /// <summary> /// 删除标记 /// </summary> /// <returns></returns> [Column("F_DELETEMARK")] public int? F_DeleteMark { get; set; } /// <summary> /// 备注 /// </summary> /// <returns></returns> [Column("F_DESCRIPTION")] public string F_Description { get; set; } /// <summary> /// 创建日期 /// </summary> /// <returns></returns> [Column("F_CREATEDATE")] public DateTime? F_CreateDate { get; set; } /// <summary> /// 创建用户主键 /// </summary> /// <returns></returns> [Column("F_CREATEUSERID")] public string F_CreateUserId { get; set; } /// <summary> /// 创建用户 /// </summary> /// <returns></returns> [Column("F_CREATEUSERNAME")] public string F_CreateUserName { get; set; } /// <summary> /// 修改日期 /// </summary> /// <returns></returns> [Column("F_MODIFYDATE")] public DateTime? F_ModifyDate { get; set; } /// <summary> /// 修改用户主键 /// </summary> /// <returns></returns> [Column("F_MODIFYUSERID")] public string F_ModifyUserId { get; set; } /// <summary> /// 修改用户 /// </summary> /// <returns></returns> [Column("F_MODIFYUSERNAME")] public string F_ModifyUserName { get; set; } #endregion #region 扩展操作 /// <summary> /// 新增调用 /// </summary> public void Create() { this.F_PostId = Guid.NewGuid().ToString(); this.F_CreateDate = DateTime.Now; UserInfo userInfo = LoginUserInfo.Get(); this.F_CreateUserId = userInfo.userId; this.F_CreateUserName = userInfo.realName; this.F_DeleteMark = 0; } /// <summary> /// 编辑调用 /// </summary> /// <param name="keyValue">主键</param> public void Modify(string keyValue) { this.F_PostId = keyValue; this.F_ModifyDate = DateTime.Now; UserInfo userInfo = LoginUserInfo.Get(); this.F_ModifyUserId = userInfo.userId; this.F_ModifyUserName = userInfo.realName; } #endregion } }