using Learun.Util;
using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace Learun.Application.Organization
{
///
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创建人:陈彬彬
/// 日 期:2017.03.04
/// 描 述:公司管理
///
public class CompanyEntity
{
#region 实体成员
///
/// 公司主键
///
///
[Column("F_COMPANYID")]
public string F_CompanyId { get; set; }
///
/// 公司分类
///
///
[Column("F_CATEGORY")]
public int? F_Category { get; set; }
///
/// 父级主键
///
///
[Column("F_PARENTID")]
public string F_ParentId { get; set; }
///
/// 公司代码
///
///
[Column("F_ENCODE")]
public string F_EnCode { get; set; }
///
/// 公司简称
///
///
[Column("F_SHORTNAME")]
public string F_ShortName { get; set; }
///
/// 公司名称
///
///
[Column("F_FULLNAME")]
public string F_FullName { get; set; }
///
/// 公司性质
///
///
[Column("F_NATURE")]
public string F_Nature { get; set; }
///
/// 外线电话
///
///
[Column("F_OUTERPHONE")]
public string F_OuterPhone { get; set; }
///
/// 内线电话
///
///
[Column("F_INNERPHONE")]
public string F_InnerPhone { get; set; }
///
/// 传真
///
///
[Column("F_FAX")]
public string F_Fax { get; set; }
///
/// 邮编
///
///
[Column("F_POSTALCODE")]
public string F_Postalcode { get; set; }
///
/// 电子邮箱
///
///
[Column("F_EMAIL")]
public string F_Email { get; set; }
///
/// 负责人
///
///
[Column("F_MANAGER")]
public string F_Manager { get; set; }
///
/// 省主键
///
///
[Column("F_PROVINCEID")]
public string F_ProvinceId { get; set; }
///
/// 市主键
///
///
[Column("F_CITYID")]
public string F_CityId { get; set; }
///
/// 县/区主键
///
///
[Column("F_COUNTYID")]
public string F_CountyId { get; set; }
///
/// 详细地址
///
///
[Column("F_ADDRESS")]
public string F_Address { get; set; }
///
/// 公司主页
///
///
[Column("F_WEBADDRESS")]
public string F_WebAddress { get; set; }
///
/// 成立时间
///
///
[Column("F_FOUNDEDTIME")]
public DateTime? F_FoundedTime { get; set; }
///
/// 经营范围
///
///
[Column("F_BUSINESSSCOPE")]
public string F_BusinessScope { get; set; }
///
/// 排序码
///
///
[Column("F_SORTCODE")]
public int? F_SortCode { get; set; }
///
/// 删除标记
///
///
[Column("F_DELETEMARK")]
public int? F_DeleteMark { get; set; }
///
/// 有效标志
///
///
[Column("F_ENABLEDMARK")]
public int? F_EnabledMark { get; set; }
///
/// 备注
///
///
[Column("F_DESCRIPTION")]
public string F_Description { get; set; }
///
/// 创建日期
///
///
[Column("F_CREATEDATE")]
public DateTime? F_CreateDate { get; set; }
///
/// 创建用户主键
///
///
[Column("F_CREATEUSERID")]
public string F_CreateUserId { get; set; }
///
/// 创建用户
///
///
[Column("F_CREATEUSERNAME")]
public string F_CreateUserName { get; set; }
///
/// 修改日期
///
///
[Column("F_MODIFYDATE")]
public DateTime? F_ModifyDate { get; set; }
///
/// 修改用户主键
///
///
[Column("F_MODIFYUSERID")]
public string F_ModifyUserId { get; set; }
///
/// 修改用户
///
///
[Column("F_MODIFYUSERNAME")]
public string F_ModifyUserName { get; set; }
///
/// SyncFlag
///
[Column("SYNCFLAG")]
public bool? SyncFlag { get; set; }
///
/// 照片
///
[Column("F_PHOTO")]
public string F_Photo { get; set; }
///
/// 校区信息
///
[Column("F_BRIEFINTRODUCTION")]
public string F_BriefIntroduction { get; set; }
///
/// 招生信息
///
[Column("F_EnrollmentInformation")]
public string F_EnrollmentInformation { get; set; }
#endregion
#region 扩展操作
///
/// 新增调用
///
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;
}
///
/// 编辑调用
///
/// 主键
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
}
}