|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- 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 CompanyEntity
- {
- #region 实体成员
- /// <summary>
- /// 公司主键
- /// </summary>
- /// <returns></returns>
- [Column("F_COMPANYID")]
- public string F_CompanyId { get; set; }
- /// <summary>
- /// 公司分类
- /// </summary>
- /// <returns></returns>
- [Column("F_CATEGORY")]
- public int? F_Category { 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_SHORTNAME")]
- public string F_ShortName { get; set; }
- /// <summary>
- /// 公司名称
- /// </summary>
- /// <returns></returns>
- [Column("F_FULLNAME")]
- public string F_FullName { get; set; }
- /// <summary>
- /// 公司性质
- /// </summary>
- /// <returns></returns>
- [Column("F_NATURE")]
- public string F_Nature { 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_FAX")]
- public string F_Fax { get; set; }
- /// <summary>
- /// 邮编
- /// </summary>
- /// <returns></returns>
- [Column("F_POSTALCODE")]
- public string F_Postalcode { get; set; }
- /// <summary>
- /// 电子邮箱
- /// </summary>
- /// <returns></returns>
- [Column("F_EMAIL")]
- public string F_Email { get; set; }
- /// <summary>
- /// 负责人
- /// </summary>
- /// <returns></returns>
- [Column("F_MANAGER")]
- public string F_Manager { get; set; }
- /// <summary>
- /// 省主键
- /// </summary>
- /// <returns></returns>
- [Column("F_PROVINCEID")]
- public string F_ProvinceId { get; set; }
- /// <summary>
- /// 市主键
- /// </summary>
- /// <returns></returns>
- [Column("F_CITYID")]
- public string F_CityId { get; set; }
- /// <summary>
- /// 县/区主键
- /// </summary>
- /// <returns></returns>
- [Column("F_COUNTYID")]
- public string F_CountyId { get; set; }
- /// <summary>
- /// 详细地址
- /// </summary>
- /// <returns></returns>
- [Column("F_ADDRESS")]
- public string F_Address { get; set; }
- /// <summary>
- /// 公司主页
- /// </summary>
- /// <returns></returns>
- [Column("F_WEBADDRESS")]
- public string F_WebAddress { get; set; }
- /// <summary>
- /// 成立时间
- /// </summary>
- /// <returns></returns>
- [Column("F_FOUNDEDTIME")]
- public DateTime? F_FoundedTime { get; set; }
- /// <summary>
- /// 经营范围
- /// </summary>
- /// <returns></returns>
- [Column("F_BUSINESSSCOPE")]
- public string F_BusinessScope { 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>
- /// SyncFlag
- /// </summary>
- [Column("SYNCFLAG")]
- public bool? SyncFlag { get; set; }
- /// <summary>
- /// 照片
- /// </summary>
- [Column("F_PHOTO")]
- public string F_Photo { get; set; }
- /// <summary>
- /// 校区信息
- /// </summary>
- [Column("F_BRIEFINTRODUCTION")]
- public string F_BriefIntroduction { get; set; }
- /// <summary>
- /// 招生信息
- /// </summary>
- [Column("F_EnrollmentInformation")]
- public string F_EnrollmentInformation { get; set; }
- #endregion
-
- #region 扩展操作
- /// <summary>
- /// 新增调用
- /// </summary>
- public void Create()
- {
- this.F_CompanyId = 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>
- /// 编辑调用
- /// </summary>
- /// <param name="keyValue">主键</param>
- public void Modify(string keyValue)
- {
- UserInfo userInfo = LoginUserInfo.Get();
- this.F_ModifyUserId = userInfo.userId;
- this.F_ModifyUserName = userInfo.realName;
-
- this.F_CompanyId = keyValue;
- this.F_ModifyDate = DateTime.Now;
- }
- #endregion
- }
- }
|