using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace Learun.Application.CRM
{
///
/// 版 本 Learun-ADMS V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创 建:超级管理员
/// 日 期:2017-07-11 14:47
/// 描 述:开票信息
///
public class CrmInvoiceEntity
{
#region 实体成员
///
/// 开票信息主键
///
///
[Column("F_INVOICEID")]
public string F_InvoiceId { get; set; }
///
/// 客户主键
///
///
[Column("F_CUSTOMERID")]
public string F_CustomerId { get; set; }
///
/// 客户编号
///
///
[Column("F_CUSTOMERCODE")]
public string F_CustomerCode { get; set; }
///
/// 客户名称
///
///
[Column("F_CUSTOMERNAME")]
public string F_CustomerName { get; set; }
///
/// 开票信息
///
///
[Column("F_INVOICECONTENT")]
public string F_InvoiceContent { 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; }
#endregion
#region 扩展操作
///
/// 新增调用
///
public void Create()
{
this.F_InvoiceId = Guid.NewGuid().ToString();
this.F_CreateDate = DateTime.Now;
}
///
/// 编辑调用
///
///
public void Modify(string keyValue)
{
this.F_InvoiceId = keyValue;
this.F_ModifyDate = DateTime.Now;
}
#endregion
}
}