123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280 |
- using AutoMapper.Execution;
- using OASystem.Domain.ViewModels.CRM;
- using Org.BouncyCastle.Asn1.Ocsp;
- using Org.BouncyCastle.Asn1.X9;
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
- using System.Reflection;
- using System.Text;
- using System.Threading.Tasks;
- using static Google.Protobuf.Reflection.SourceCodeInfo.Types;
- namespace OASystem.Domain.Dtos.CRM
- {
- public class NewClientDataQueryDto:DtoBase
- {
- public int OperationUserId { get; set; }
- /// <summary>
- /// 联系人
- /// </summary>
- public string Contact { get; set; }
- /// <summary>
- /// 地区
- /// </summary>
- public string Location { get; set; }
- /// <summary>
- /// 单位
- /// </summary>
- public string Client { get; set; }
- /// <summary>
- /// 负责人
- /// </summary>
- public string Userid { get; set; }
- /// <summary>
- /// 客户级别(地市州)
- /// </summary>
- public int Lvlid { get; set; }
- /// <summary>
- /// 业务分类
- /// </summary>
- public string Business { get; set; }
- /// <summary>
- /// 省域
- /// </summary>
- public int Range { get; set; }
- /// <summary>
- /// 客户类别
- /// </summary>
- public int Category { get; set; }
- }
- public class NewClientDataExcelDownloadDto : NewClientDataQueryDto
- {
- public int PageId { get; set; }
- }
- public class NewClientOpDto:PortDtoBase
- {
- /// <summary>
- /// 操作状态
- /// 1 添加
- /// 2 修改
- /// </summary>
- public int Status { get; set; }
- /// <summary>
- /// 编号
- /// </summary>
- public int Id { get; set; }
- /// <summary>
- /// 序号
- /// </summary>
- public int Number { get; set; }
- /// <summary>
- /// 地市州Id
- /// </summary>
- public int Lvlid { get; set; }
- /// <summary>
- /// 客户单位
- /// </summary>
- public string Client { get; set; }
- /// <summary>
- /// 权重
- /// </summary>
- public string Weight { get; set; }
- /// <summary>
- /// 客户单位简写
- /// </summary>
- public string Clientshort { get; set; }
- /// <summary>
- /// 联系人
- /// </summary>
- public string Contact { get; set; }
- /// <summary>
- /// 联系人性别
- /// </summary>
- public int Gender { get; set; }
- /// <summary>
- /// 护照
- /// </summary>
- public string Passport { get; set; }
- /// <summary>
- /// 护照日期
- /// </summary>
- public string PassportDate { get; set; }
- /// <summary>
- /// 职位
- /// </summary>
- public string Job { get; set; }
- /// <summary>
- /// 联系手机号
- /// </summary>
- public string Telephone { get; set; }
- /// <summary>
- /// 联系座机号
- /// </summary>
- public string Phone { get; set; }
- /// <summary>
- /// 邮件
- /// </summary>
- public string Email { get; set; }
- /// <summary>
- /// 所属区域(所在城市)
- /// </summary>
- public string Location { get; set; }
- /// <summary>
- /// 地址
- /// </summary>
- public string Address { get; set; }
- /// <summary>
- /// 生日
- /// </summary>
- public string Birthday { get; set; }
- /// <summary>
- /// 其他信息
- /// </summary>
- public string Otherinfo { get; set; }
- /// <summary>
- /// 微信
- /// </summary>
- public string Wechat { get; set; }
- /// <summary>
- /// 分类
- /// </summary>
- public int Category { get; set; }
- /// <summary>
- /// 预计出团
- /// </summary>
- public int Predele { get; set; }
- /// <summary>
- /// 已出团
- /// </summary>
- public int FinlishedDele { get; set; }
- /// <summary>
- /// 创建者Id
- /// </summary>
- public int CreateUserId { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- public string Remark { get; set; }
- /// <summary>
- /// 负责人
- /// </summary>
- public List<int> AscribedUser { get; set; }
- /// <summary>
- /// 业务归属
- /// </summary>
- public List<int> AscribedDepartment { get; set; }
- }
- /// <summary>
- /// 详情 Dto
- /// </summary>
- public class NewClientDataDetailsDto:PortDtoBase
- {
- public int UserId { get; set; }
- public int Id { get; set; }
- }
- /// <summary>
- /// 批量指派
- /// </summary>
- public class BatchAssignmentDto : PortDtoBase
- {
- public int UserId { get; set; }
- /// <summary>
- /// 客户资料表Id集合
- /// </summary>
- public List<int>? ClientDataIdItem { get; set; }
- /// <summary>
- /// 用户Id集合
- /// </summary>
- public List<int>? UserIdItem { get; set; }
- }
- public class MarketCustomerInitDto : PortDtoBase
- {
- public int UserId { get; set;}
- }
- public class QueryClientTypeDto
- {
- public List<int> SetDataIdArr { get; set; }
- }
- public class MCRLvSettingDto
- {
- public List<int> SetDataIdArr { get; set; }
- }
- public class RemakeComparer : IComparer
- {
- public int Compare(object x, object y)
- {
- // 使用反射获取remake属性的值
- PropertyInfo xProperty = x.GetType().GetProperty("Remark");
- PropertyInfo yProperty = y.GetType().GetProperty("Remark");
- if (xProperty == null || yProperty == null)
- {
- throw new ArgumentException("Both objects must have a 'remake' property.");
- }
- string xRemake = xProperty.GetValue(x, null) as string;
- string yRemake = yProperty.GetValue(y, null) as string;
- // 使用TryParse安全地将字符串转换为整数
- bool xIsInt = int.TryParse(xRemake, out int xValue);
- bool yIsInt = int.TryParse(yRemake, out int yValue);
- // 如果x是整数而y不是,则x应该排在y前面
- if (xIsInt && !yIsInt)
- return -1;
- // 如果y是整数而x不是,则x应该排在后面
- else if (!xIsInt && yIsInt)
- return 1;
- // 如果x和y都是整数,则比较它们的值
- else if (xIsInt && yIsInt)
- return xValue.CompareTo(yValue);
- // 如果x和y都不是整数,则认为它们相等
- else
- return 0;
- }
- }
- }
|