using CRM.Core.DTO.Res; using System; using System.Collections.Generic; using WX.CRM.Common; using WX.CRM.Model.DTO; using WX.CRM.Model.Entity; using WX.CRM.Model.MAP; namespace WX.CRM.IBLL.Res { public interface IRES_MYALLOCATERES : IRepository { RES_MYALLOCATERES GetLastSale(string resId, int? deptid); IList GetSeniorDistribution(ref Pager pg, SeniorDistributionQuery query); IList GetMySeniorDistribution(ref Pager pg, MySeniorDistributionQuery query); IList GetKFBSeniorDistribution(ref Pager pg, SeniorDistributionQuery query, QueryUserComboDto usercomboDto); IList GetKFBMySeniorDistribution(ref Pager pg, MySeniorDistributionQuery query, QueryUserComboDto usercomboDto); void ExeSeniorDistribute(SeniorDistributionQuery query); void ExeSeniorDistributeByResId(decimal fenpeiUser, decimal pici, string remark, decimal isNew = 1); void ExecDistribute(string mobile, string resid, int? ch, decimal? restypeid, string remark); IEnumerable GetToDayAllocateRes(); List GetAllocateRes3List(AllocateRes3Para dto, ref int total); List GetSeniorNotice(); void UpdateNoticeExe(int? userId); bool CreateRelation(RelationDto relation); bool InsertResCutomerRelation(int channel, string resid); } public class ToDayAllocateRes { public string ResId { get; set; } public decimal Eid { get; set; } public DateTime? DisTime { get; set; } public DateTime? CTime { get; set; } public int IsNew { get; set; } } public class AllocateRes3View { public string ResId { get; set; } public int? QwStatus { get; set; } public int? RjStauts { get; set; } public int? Eid { get; set; } public string UName { get; set; } public DateTime? LastActiveTime { get; set; } public DateTime? LastCallTime { get; set; } public DateTime? CTime { get; set; } public DateTime? DisTime { get; set; } } public class AllocateRes3Para { public int page { get; set; } public int? QwStatus { get; set; } public int? RjStatus { get; set; } public string TkStatus { get; set; } public string stime { get; set; } public string etime { get; set; } } public class AllocateRes3RequestDto { public string conditions { get; set; } public List dates { get; set; } public string ch { get; set; } public string isAnd { get; set; } public int iPageIndex { get; set; } } public class Even { public int eventid { get; set; } public bool isNo { get; set; } } public class AllocateRes3List { public string appid { get; set; } public string appuserid { get; set; } public int uid { get; set; } public string mobile { get; set; } public string unionid { get; set; } public int ch { get; set; } public string ctime { get; set; } public int customerid { get; set; } public string appname { get; set; } public string nickname { get; set; } public string appTypeName { get; set; } public string resid { get; set; } } public class AllocateRes3Rsp { public int ret { get; set; } public string retMsg { get; set; } public List list { get; set; } public int total { get; set; } } }