using System; using LeaRun.Application.Code; namespace LeaRun.Application.Entity.BaseManage { /// /// 版 本 6.1 /// Copyright (c) 2013-2016 上海力软信息技术有限公司 /// 创建人:佘赐雄 /// 日 期:2015.11.02 14:27 /// 描 述:部门管理 /// public class DepartmentEntity : BaseEntity { #region 实体成员 /// /// 部门主键 /// public string DepartmentId { get; set; } /// /// 机构主键 /// public string OrganizeId { get; set; } /// /// 父级主键 /// public string ParentId { get; set; } /// /// 部门代码 /// public string EnCode { get; set; } /// /// 部门名称 /// public string FullName { get; set; } /// /// 部门简称 /// public string ShortName { get; set; } /// /// 部门类型 /// public string Nature { get; set; } /// /// 负责人主键 /// public string ManagerId { get; set; } /// /// 负责人 /// public string Manager { get; set; } /// /// 外线电话 /// public string OuterPhone { get; set; } /// /// 内线电话 /// public string InnerPhone { get; set; } /// /// 电子邮件 /// public string Email { get; set; } /// /// 部门传真 /// public string Fax { get; set; } /// /// 层 /// public int? Layer { get; set; } /// /// 排序码 /// public int? SortCode { get; set; } /// /// 删除标记 /// public int? DeleteMark { get; set; } /// /// 有效标志 /// public int? EnabledMark { get; set; } /// /// 备注 /// public string Description { get; set; } /// /// 创建日期 /// public DateTime? CreateDate { get; set; } /// /// 创建用户主键 /// public string CreateUserId { get; set; } /// /// 创建用户 /// public string CreateUserName { get; set; } /// /// 修改日期 /// public DateTime? ModifyDate { get; set; } /// /// 修改用户主键 /// public string ModifyUserId { get; set; } /// /// 修改用户 /// public string ModifyUserName { get; set; } /// /// 是否是营业所 /// public int? IsBusinessAddress { get; set; } /// /// 营业所编号 /// public string BusinessNum { get; set; } #endregion #region 扩展操作 /// /// 新增调用 /// public override void Create() { this.DepartmentId = Guid.NewGuid().ToString(); this.CreateDate = DateTime.Now; this.CreateUserId = OperatorProvider.Provider.Current().UserId; this.CreateUserName = OperatorProvider.Provider.Current().UserName; this.DeleteMark = 0; } /// /// 编辑调用 /// /// public override void Modify(string keyValue) { this.DepartmentId = keyValue; this.ModifyDate = DateTime.Now; this.ModifyUserId = OperatorProvider.Provider.Current().UserId; this.ModifyUserName = OperatorProvider.Provider.Current().UserName; } #endregion } }