using OASystem.Domain.Entities.Customer;
using OASystem.Domain.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OASystem.Domain.ViewModels.CRM
{
///
///
///
public class TableOperationRecordView : Crm_TableOperationRecord
{
}
///
/// 操作记录page
///
public class TableOperationRecordPageView
{
public int Row_Number { get; set; }
///
/// 表名
/// Crm_NewClientData
///
public string TableName { get; set; }
///
/// 表名
/// Crm_NewClientData
///
public string TableNameStr
{
get
{
string str = "";
if (TableName.Equals("Crm_NewClientData")) str = "客户资料(新)";
return str;
}
}
///
/// 操作端口
///
public int PortType { get; set; }
public string PortTypeStr
{
get
{
string str = "";
if (PortType == 1) str = "Web";
else if (PortType == 2) str = "Android";
else if (PortType == 3) str = "Ios";
return str;
}
}
///
/// 操作项目
///
public OperationEnum OperationItem { get; set; }
public string OperationItemStr
{
get
{
string str = "";
if (OperationItem == OperationEnum.NoOperation) str = "未操作";
else if (OperationItem == OperationEnum.List) str = "浏览列表";
else if (OperationItem == OperationEnum.Details) str = "浏览详情";
else if (OperationItem == OperationEnum.Add) str = "添加";
else if (OperationItem == OperationEnum.Edit) str = "编辑";
else if (OperationItem == OperationEnum.Del) str = "删除";
else if (OperationItem == OperationEnum.Audit) str = "审核";
else if (OperationItem == OperationEnum.Upload) str = "文件上传";
else if (OperationItem == OperationEnum.Download) str = "文件下载";
else if (OperationItem == OperationEnum.BatchAssignment) str = "批量指派";
return str;
}
}
///
/// 数据Id
///
public int DataId { get; set; }
///
/// 操作人
///
public string? OperationUserName { get; set; }
///
/// 操作时间
///
public DateTime CreateTime { get; set; }
///
/// 备注
///
public string Remark { get; set; }
}
}