using System; using System.ComponentModel.DataAnnotations; using LeaRun.Application.Code; using System.ComponentModel.DataAnnotations.Schema; namespace LeaRun.Application.Entity.BaseManage { /// /// 版 本 6.1 /// Copyright (c) 2013-2016 上海力软信息技术有限公司 /// 创建人:佘赐雄 /// 日 期:2015.11.02 14:27 /// 描 述:机构管理 /// [Table("Base_Organize")] public class OrganizeEntity : BaseEntity { #region 实体成员 /// /// 机构主键 /// public string OrganizeId { get; set; } /// /// 机构分类 /// public int? Category { get; set; } /// /// 父级主键 /// public string ParentId { get; set; } /// /// 公司外文 /// public string EnCode { get; set; } /// /// 公司中文 /// public string ShortName { get; set; } /// /// 公司名称 /// public string FullName { get; set; } /// /// 公司性质 /// public string Nature { get; set; } /// /// 外线电话 /// public string OuterPhone { get; set; } /// /// 内线电话 /// public string InnerPhone { get; set; } /// /// 传真 /// public string Fax { get; set; } /// /// 邮编 /// public string Postalcode { get; set; } /// /// 电子邮箱 /// public string Email { get; set; } /// /// 负责人主键 /// public string ManagerId { get; set; } /// /// 负责人 /// public string Manager { get; set; } /// /// 省主键 /// public string ProvinceId { get; set; } /// /// 市主键 /// public string CityId { get; set; } /// /// 县/区主键 /// public string CountyId { get; set; } /// /// 详细地址 /// public string Address { get; set; } /// /// 公司官方 /// public string WebAddress { get; set; } /// /// 成立时间 /// public DateTime? FoundedTime { get; set; } /// /// 经营范围 /// public string BusinessScope { 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; } #endregion #region 扩展操作 /// /// 新增调用 /// public override void Create() { this.OrganizeId = 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.OrganizeId = keyValue; this.ModifyDate = DateTime.Now; this.ModifyUserId = OperatorProvider.Provider.Current().UserId; this.ModifyUserName = OperatorProvider.Provider.Current().UserName; } #endregion } }