123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311 |
- using AutoMapper.Execution;
- using OASystem.Domain.Dtos.System;
- using OASystem.Domain.ViewModels;
- 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; }
-
-
-
- public string Contact { get; set; }
-
-
-
- public string Location { get; set; }
-
-
-
- public string Client { get; set; }
-
-
-
- public string Userid { get; set; }
-
-
-
- public int Lvlid { get; set; }
-
-
-
- public string Business { get; set; }
-
-
-
- public int Range { get; set; }
-
-
-
- public int Category { get; set; }
- }
- public class NewClientDataExcelDownloadDto : NewClientDataQueryDto
- {
- public int PageId { get; set; }
- }
- public class NewClientDataRecordInitDto : UserPageFuncDtoBase
- { }
- public class NewClientDataRecordDto : UserPageFuncDtoBase
- {
- public int PageIndex { get; set; } = 1;
- public int PageSize { get; set; } = 10;
-
-
-
-
- public string OpTypeLabel { get; set; }
-
-
-
-
-
- public string OpUserLabel { get; set; }
- public string BeginTime { get; set; }
- public string EndTime { get; set; }
- }
- public class NewClientOpDto:PortDtoBase
- {
-
-
-
-
-
- public int Status { get; set; }
-
-
-
- public int Id { get; set; }
-
-
-
- public int Number { get; set; }
-
-
-
- public int Lvlid { get; set; }
-
-
-
- public string Client { get; set; }
-
-
-
- public string Weight { get; set; }
-
-
-
- public string Clientshort { get; set; }
-
-
-
- public string Contact { get; set; }
-
-
-
- public int Gender { get; set; }
-
-
-
- public string Passport { get; set; }
-
-
-
- public DateTime PassportDate { get; set; }
-
-
-
- public string Job { get; set; }
-
-
-
- public string Telephone { get; set; }
-
-
-
- public string Phone { get; set; }
-
-
-
- public string Email { get; set; }
-
-
-
- public string Location { get; set; }
-
-
-
- public string Address { get; set; }
-
-
-
- public string Birthday { get; set; }
-
-
-
- public string Otherinfo { get; set; }
-
-
-
- public string Wechat { get; set; }
-
-
-
- public int Category { get; set; }
-
-
-
- public int Predele { get; set; }
-
-
-
- public int FinlishedDele { get; set; }
-
-
-
- public int CreateUserId { get; set; }
-
-
-
- public string Remark { get; set; }
-
-
-
- public List<int> AscribedUser { get; set; }
-
-
-
- public List<int> AscribedDepartment { get; set; }
- }
-
-
-
- public class NewClientDataDetailsDto:PortDtoBase
- {
- public int UserId { get; set; }
- public int Id { get; set; }
- }
-
-
-
- public class BatchAssignmentDto : PortDtoBase
- {
- public int UserId { get; set; }
-
-
-
- public List<int>? ClientDataIdItem { get; set; }
-
-
-
- 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)
- {
-
- 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;
-
- bool xIsInt = int.TryParse(xRemake, out int xValue);
- bool yIsInt = int.TryParse(yRemake, out int yValue);
-
- if (xIsInt && !yIsInt)
- return -1;
-
- else if (!xIsInt && yIsInt)
- return 1;
-
- else if (xIsInt && yIsInt)
- return xValue.CompareTo(yValue);
-
- else
- return 0;
- }
- }
-
- }
|