|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208 |
- 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 DepartmentEntity
- {
- #region 实体成员
- /// <summary>
- /// 部门主键
- /// </summary>
- /// <returns></returns>
- [Column("F_DEPARTMENTID")]
- public string F_DepartmentId { get; set; }
- /// <summary>
- /// 公司主键
- /// </summary>
- /// <returns></returns>
- [Column("F_COMPANYID")]
- public string F_CompanyId { get; set; }
- /// <summary>
- /// 父级主键
- /// </summary>
- /// <returns></returns>
- [Column("F_PARENTID")]
- public string F_ParentId { get; set; }
- /// <summary>
- /// 部门代码
- /// </summary>
- /// <returns></returns>
- [Column("F_ENCODE")]
- public string F_EnCode { get; set; }
- /// <summary>
- /// 部门名称
- /// </summary>
- /// <returns></returns>
- [Column("F_FULLNAME")]
- public string F_FullName { get; set; }
- /// <summary>
- /// 部门简称
- /// </summary>
- /// <returns></returns>
- [Column("F_SHORTNAME")]
- public string F_ShortName { get; set; }
- /// <summary>
- /// 部门类型
- /// </summary>
- /// <returns></returns>
- [Column("F_NATURE")]
- public string F_Nature { get; set; }
- /// <summary>
- /// 负责人
- /// </summary>
- /// <returns></returns>
- [Column("F_MANAGER")]
- public string F_Manager { get; set; }
- /// <summary>
- /// 分管校长Id
- /// </summary>
- /// <returns></returns>
- [Column("F_SCHOOLMASTERID")]
- public string F_SchoolMasterId { get; set; }
- /// <summary>
- /// 分管校长
- /// </summary>
- /// <returns></returns>
- [Column("F_SCHOOLMASTER")]
- public string F_SchoolMaster { get; set; }
- /// <summary>
- /// 外线电话
- /// </summary>
- /// <returns></returns>
- [Column("F_OUTERPHONE")]
- public string F_OuterPhone { get; set; }
- /// <summary>
- /// 内线电话
- /// </summary>
- /// <returns></returns>
- [Column("F_INNERPHONE")]
- public string F_InnerPhone { get; set; }
- /// <summary>
- /// 电子邮件
- /// </summary>
- /// <returns></returns>
- [Column("F_EMAIL")]
- public string F_Email { get; set; }
- /// <summary>
- /// 部门传真
- /// </summary>
- /// <returns></returns>
- [Column("F_FAX")]
- public string F_Fax { get; set; }
- /// <summary>
- /// 排序码
- /// </summary>
- /// <returns></returns>
- [Column("F_SORTCODE")]
- public int? F_SortCode { get; set; }
- /// <summary>
- /// 删除标记
- /// </summary>
- /// <returns></returns>
- [Column("F_DELETEMARK")]
- public int? F_DeleteMark { get; set; }
- /// <summary>
- /// 有效标志
- /// </summary>
- /// <returns></returns>
- [Column("F_ENABLEDMARK")]
- public int? F_EnabledMark { 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; }
- /// <summary>
- /// 公告类别
- /// </summary>
- /// <returns></returns>
- [Column("NOTICECATEGORY")]
- public string NoticeCategory { get; set; }
-
-
- /// <summary>
- /// 排序
- /// </summary>
- /// <returns></returns>
- [Column("F_ORDER")]
- public int? F_Order { get; set; }
- #endregion
-
- #region 扩展操作
- /// <summary>
- /// 新增调用
- /// </summary>
- public void Create()
- {
- this.F_DepartmentId = 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;
- this.F_EnabledMark = 1;
- }
- /// <summary>
- /// 编辑调用 nbvcx
- /// </summary>
- /// <param name="keyValue">主键</param>
- public void Modify(string keyValue)
- {
- this.F_DepartmentId = keyValue;
- this.F_ModifyDate = DateTime.Now;
-
- UserInfo userInfo = LoginUserInfo.Get();
- this.F_ModifyUserId = userInfo.userId;
- this.F_ModifyUserName = userInfo.realName;
- }
- #endregion
- }
- }
|