123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302 |
- 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; }
- /// <summary>
- /// 客户分类
- /// </summary>
- public int Category { get; set; }
- /// <summary>
- /// 地市州Id
- /// </summary>
- public int Lvlid { get; set; }
- /// <summary>
- /// 权重
- /// </summary>
- [Encrypted]
- public string Weight { get; set; }
- /// <summary>
- /// 联系人
- /// </summary>
- [Encrypted]
- public string Contact { get; set; }
- /// <summary>
- /// 联系人性别
- /// </summary>
- public int Gender { get; set; }
- /// <summary>
- /// 联系手机号
- /// </summary>
- [Encrypted]
- public string Telephone { get; set; }
- /// <summary>
- /// 联系座机号
- /// </summary>
- [Encrypted]
- public string Phone { get; set; }
- /// <summary>
- /// 邮件
- /// </summary>
- [Encrypted]
- public string Email { get; set; }
- /// <summary>
- /// 职位
- /// </summary>
- [Encrypted]
- public string Job { get; set; }
- /// <summary>
- /// 客户单位
- /// </summary>
- [Encrypted]
- public string Client { get; set; }
- /// <summary>
- /// 客户单位简写
- /// </summary>
- [Encrypted]
- public string ClientShort { get; set; }
- /// <summary>
- /// 所属区域(所在城市)
- /// </summary>
- [Encrypted]
- public string Location { get; set; }
- /// <summary>
- /// 地址
- /// </summary>
- [Encrypted]
- public string Address { get; set; }
- /// <summary>
- /// 护照
- /// </summary>
- [Encrypted]
- public string Passport { get; set; }
- /// <summary>
- /// 护照日期
- /// </summary>
- [Encrypted]
- public string? PassportDate { get; set; }
- /// <summary>
- /// 生日
- /// </summary>
- [Encrypted]
- public string Birthday { get; set; }
- /// <summary>
- /// 预计出团
- /// </summary>
- public int PreDele { get; set; }
- /// <summary>
- /// 已出团
- /// </summary>
- public int FinlishedDele { get; set; }
- /// <summary>
- /// 归属人员
- /// </summary>
- public List<int>? AscribedUser { get; set; }
- /// <summary>
- /// 归属部门
- /// </summary>
- public List<int>? AscribedDepartment { get; set; }
- /// <summary>
- /// 微信
- /// </summary>
- [Encrypted]
- public string WeChat { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- [Encrypted]
- public string Remark { get; set; }
- }
- public class NewClientDataAndroidIOSView
- {
- /// <summary>
- /// 编号
- /// </summary>
- public int RowNumber { get; set; }
- public int Id { get; set; }
- /// <summary>
- /// 客户单位
- /// </summary>
- public string? Client { get; set; }
- /// <summary>
- /// 联系人
- /// </summary>
- public string? Contact { get; set; }
- /// <summary>
- /// 职位
- /// </summary>
- public string? Job { get; set; }
- /// <summary>
- /// 联系手机号
- /// </summary>
- public string? Telephone { get; set; }
- /// <summary>
- /// 所在区域
- /// </summary>
- public string? Location { get; set; }
- }
- public class NewClientDataView : Crm_NewClientData
- {
- /// <summary>
- /// 总条数
- /// </summary>
- public int countPage { get; set; }
- /// <summary>
- /// 编号
- /// </summary>
- public int RowNumber { get; set; }
- /// <summary>
- /// 客户分类
- /// </summary>
- public string CategoryStr { get; set; }
- /// <summary>
- /// 地市州Id
- /// </summary>
- public string LvlidStr { get; set; }
- /// <summary>
- /// 归属人员
- /// </summary>
- public dynamic AscribedUser { get; set; }
- /// <summary>
- /// 归属部门
- /// </summary>
- public dynamic AscribedDepartment { get; set; }
- }
- /// <summary>
- ///归属人员
- /// </summary>
- public class AscribedUser
- {
- /// <summary>
- /// 人员Id
- /// </summary>
- public int UserId { get; set; }
- /// <summary>
- /// 归属人员姓名
- /// </summary>
- public string CnName { get; set; }
- public int NewClientDataId { get; set; }
- }
- /// <summary>
- ///归属部门
- /// </summary>
- public class AscribedDepartment
- {
- /// <summary>
- /// setData部门部门Id
- /// </summary>
- public int Id { get; set; }
- /// <summary>
- /// 归属部门名称
- /// </summary>
- public string Name { get; set; }
- public int NewClientDataId { get; set; }
- }
- public class NewClientDataExcelDownloadView : Crm_NewClientData
- {
- /// <summary>
- /// 编号
- /// </summary>
- public int RowNumber { get; set; }
- /// <summary>
- /// 客户分类
- /// </summary>
- public string CategoryStr { get; set; }
- /// <summary>
- /// 地市州Id
- /// </summary>
- 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; }
- }
- }
|