using OASystem.Domain.Attributes;
using OASystem.Domain.Entities.Customer;
using Org.BouncyCastle.Asn1.Ocsp;
using Org.BouncyCastle.Asn1.X9;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Google.Protobuf.Reflection.SourceCodeInfo.Types;
namespace OASystem.Domain.ViewModels.CRM
{
public class DetailsView
{
public int Id { get; set; }
///
/// 客户分类
///
public int Category { get; set; }
///
/// 地市州Id
///
public int Lvlid { get; set; }
///
/// 权重
///
[Encrypted]
public string Weight { get; set; }
///
/// 联系人
///
[Encrypted]
public string Contact { get; set; }
///
/// 联系人性别
///
public int Gender { get; set; }
///
/// 联系手机号
///
[Encrypted]
public string Telephone { get; set; }
///
/// 联系座机号
///
[Encrypted]
public string Phone { get; set; }
///
/// 邮件
///
[Encrypted]
public string Email { get; set; }
///
/// 职位
///
[Encrypted]
public string Job { get; set; }
///
/// 客户单位
///
[Encrypted]
public string Client { get; set; }
///
/// 客户单位简写
///
[Encrypted]
public string ClientShort { get; set; }
///
/// 所属区域(所在城市)
///
[Encrypted]
public string Location { get; set; }
///
/// 地址
///
[Encrypted]
public string Address { get; set; }
///
/// 护照
///
[Encrypted]
public string Passport { get; set; }
///
/// 护照日期
///
[Encrypted]
public string? PassportDate { get; set; }
///
/// 生日
///
[Encrypted]
public string Birthday { get; set; }
///
/// 预计出团
///
public int PreDele { get; set; }
///
/// 已出团
///
public int FinlishedDele { get; set; }
///
/// 归属人员
///
public List? AscribedUser { get; set; }
///
/// 归属部门
///
public List? AscribedDepartment { get; set; }
///
/// 微信
///
[Encrypted]
public string WeChat { get; set; }
///
/// 备注
///
[Encrypted]
public string Remark { get; set; }
}
public class NewClientDataAndroidIOSView
{
///
/// 编号
///
public int RowNumber { get; set; }
public int Id { get; set; }
///
/// 客户单位
///
public string? Client { get; set; }
///
/// 联系人
///
public string? Contact { get; set; }
///
/// 职位
///
public string? Job { get; set; }
///
/// 联系手机号
///
public string? Telephone { get; set; }
///
/// 所在区域
///
public string? Location { get; set; }
}
public class NewClientDataView : Crm_NewClientData
{
///
/// 总条数
///
public int countPage { get; set; }
///
/// 编号
///
public int RowNumber { get; set; }
///
/// 客户分类
///
public string CategoryStr { get; set; }
///
/// 地市州Id
///
public string LvlidStr { get; set; }
///
/// 归属人员
///
public dynamic AscribedUser { get; set; }
///
/// 归属部门
///
public dynamic AscribedDepartment { get; set; }
}
///
///归属人员
///
public class AscribedUser
{
///
/// 人员Id
///
public int UserId { get; set; }
///
/// 归属人员姓名
///
public string CnName { get; set; }
public int NewClientDataId { get; set; }
}
///
///归属部门
///
public class AscribedDepartment
{
///
/// setData部门部门Id
///
public int Id { get; set; }
///
/// 归属部门名称
///
public string Name { get; set; }
public int NewClientDataId { get; set; }
}
public class NewClientDataExcelDownloadView : Crm_NewClientData
{
///
/// 编号
///
public int RowNumber { get; set; }
///
/// 客户分类
///
public string CategoryStr { get; set; }
///
/// 地市州Id
///
public string LvlidStr { get; set; }
public string CreateUserName { get; set; }
public string WeightLable {
get
{
if (int.TryParse(Weight,out int weightId))
{
if (weightId == 393) return "A";
else if (weightId == 392) return "B";
else if (weightId == 391) return "C";
else return "D";
}
return "D";
}
}
public string SexLable
{
get
{
return Gender == 0 ? "男" : Gender == 1 ? "女" : "未设置";
}
}
public string AscribedUserLable { get; set; } = "";
public string AscribedDepartmentLable { get; set; } = "";
}
public class CRMWeekStatisticsView
{
public string UserName { get; set; }
public int InsertNum { get; set; }
public int DeleteNum { get; set; }
}
}