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