using CRM.Core.DTO; using System; using System.Collections.Generic; using WX.CRM.Common; using WX.CRM.Common.Layui; using WX.CRM.Model.Entity; using WX.CRM.Model.MAP; namespace WX.CRM.IBLL.Res { public interface IRES_SALES_RULE : IRepository { List GetResSalesRule(ref Laypage pager, QueryUserComboDto usercomboDto, decimal userid, ResSalesRuleQueryDto dto); List GetResSalesUnRule(QueryUserComboDto usercomboDto, int? sgid, string uname, decimal userId); IList GetAssignLists(QueryUserComboDto usercomboDto); bool Batch(int[] eids, int level, int sgid, int islimit); bool Create(List data, int level, int sgid, int islimit); bool Update(string eids, int? level, int? islimit, int? isvalid, DateTime? startTime, DateTime? endTime, int? type = 2); bool Delete(string ids); retMsg UpdateLevel(string level); } public class ResSalesRuleQueryDto { public int? level { get; set; } public int? sgid { get; set; } public int? isvalid { get; set; } public string name { get; set; } public string nickname { get; set; } public string appuserid { get; set; } public string phone { get; set; } } public class ResSalesRuleListView { public int ID { get; set; } public int SID { get; set; } public string SGNAME { get; set; } public decimal GID { get; set; } public string GNAME { get; set; } public string DEPTNAME { get; set; } public decimal EID { get; set; } public string UNAME { get; set; } public int LEVEL { get; set; } public string LEVELNAME { get; set; } public int NUM { get; set; } public string ISLIMIT { get; set; } public string ISVALID { get; set; } public string ISDISMISS { get; set; } public int Count { get; set; } public string PHONE { get; set; } public string USERID { get; set; } public string APPNAME { get; set; } public string NickName { get; set; } public DateTime? startTime { get; set; } public DateTime? endTime { get; set; } } public class ResSalesLevelView { public decimal Level { get; set; } public string LevelName { get; set; } public int LevelNum { get; set; } } public class ResSaleUnRuleListView { public int? Id { get; set; } public string AppId { get; set; } public string AppName { get; set; } public string UserId { get; set; } public string GNAME { get; set; } public decimal EID { get; set; } public string UNAME { get; set; } public string NickName { get; set; } /// /// 部门名称 /// public string DEPTNAME { get; set; } public decimal? DeptId { get; set; } public decimal? Gid { get; set; } } public class AssignListView { public string rname { get; set; } public decimal eid { get; set; } public string uname { get; set; } public string gname { get; set; } public int allocations { get; set; } public int todayallocations { get; set; } public int quantity { get; set; } public int tgquantity { get; set; } public int total { get; set; } public int isnew { get; set; } public int isold { get; set; } } public class AssignRuleUpOrDowmDto { /// /// 1 为上下线 2 为换档 /// public int? type { get; set; } = 1; public int? islimit { get; set; } /// /// 是否有效 /// public int? isvalid { get; set; } /// /// 几档 /// public int? levelno { get; set; } public int? num { get; set; } public DateTime? startTime { get; set; } public DateTime? endTime { get; set; } public List ids { get; set; } } }