238 lines
6.9 KiB
C#
238 lines
6.9 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
using WX.CRM.Common.Layui;
|
||
using WX.CRM.Model.Entity;
|
||
using WX.CRM.Model.Enum;
|
||
|
||
namespace WX.CRM.IBLL.MsgTool
|
||
{
|
||
public interface IMsgToolPlan : IRepository<MsgToolPlan>
|
||
{
|
||
List<MsgToolPlanRepeatViewModel> GetPlanList(ref Laypage pager, MsgToolPlanQueryDto dto);
|
||
|
||
bool AddMsgPlan(MsgToolPlanCreateDto model);
|
||
|
||
bool CreateTask(decimal planId);
|
||
|
||
bool CancelTask(decimal planId);
|
||
|
||
MsgEditModel GetMsgPlanEditModel(decimal planId);
|
||
|
||
List<UserGroupModel> GetGroupList(decimal eid);
|
||
}
|
||
|
||
#region 计划表
|
||
|
||
public class MsgToolPlanQueryDto
|
||
{
|
||
public int IndexType { get; set; } //页面类型 区分 普通计划列表或者循环列表
|
||
public string PLANNAME { get; set; }
|
||
public string CREATOR { get; set; }
|
||
public DateTime? xstime { get; set; }
|
||
public DateTime? xetime { get; set; }
|
||
public string SENDTYPE { get; set; }
|
||
public int? STATUS { get; set; }
|
||
|
||
public decimal? txt_companyId { get; set; }
|
||
public string txt_deptId { get; set; }
|
||
public string txt_groupIds { get; set; }
|
||
public decimal? txt_userId { get; set; }
|
||
public string txt_businessId { get; set; }
|
||
}
|
||
|
||
#region 普通列表
|
||
|
||
public class MsgToolPlanViewModel
|
||
{
|
||
public decimal PKID { get; set; }
|
||
public string CREATOR { get; set; }
|
||
public string PLANNAME { get; set; }
|
||
public string JSONDATA { get; set; }
|
||
public string SendObject { get; set; }
|
||
public string SENDTYPE { get; set; }
|
||
public string ReceiveInfo { get; set; }
|
||
public int Unexec { get; set; }
|
||
public int Exec { get; set; }
|
||
public int Cancel { get; set; }
|
||
public int STATUS { get; set; }
|
||
public string StatusName { get; set; }
|
||
public string Remark { get; set; }
|
||
public DateTime? SendTime { get; set; }
|
||
public DateTime? PLANEXETIME { get; set; }
|
||
}
|
||
|
||
#endregion 普通列表
|
||
|
||
#region 循环计划列表
|
||
|
||
public class MsgToolPlanRepeatViewModel
|
||
{
|
||
public decimal PKID { get; set; }
|
||
public string CREATOR { get; set; }
|
||
public string PLANNAME { get; set; }
|
||
public string JSONDATA { get; set; }
|
||
public string SendObject { get; set; }
|
||
public string SENDTYPE { get; set; }
|
||
public string SendTypeName { get; set; }
|
||
public string ReceiveInfo { get; set; }
|
||
|
||
/// <summary>
|
||
/// 周期
|
||
/// </summary>
|
||
public string Cycle { get; set; }
|
||
|
||
public int CycleCount { get; set; }
|
||
public int Unexec { get; set; }
|
||
public int Exec { get; set; }
|
||
public int Cancel { get; set; }
|
||
public int STATUS { get; set; }
|
||
public string StatusName { get; set; }
|
||
public string Remark { get; set; }
|
||
public DateTime? SendTime { get; set; }
|
||
public DateTime? PLANEXETIME { get; set; }
|
||
public DateTime? DUEDATE { get; set; } //截止时间
|
||
}
|
||
|
||
#endregion 循环计划列表
|
||
|
||
public class MsgToolPlanCreateDto
|
||
{
|
||
public decimal? PKID { get; set; }
|
||
public string PLANNAME { get; set; }
|
||
public decimal GROUPID { get; set; }
|
||
public string GROUPNAME { get; set; }
|
||
public string GROUPMEMO { get; set; }
|
||
public string CORPIDS { get; set; }
|
||
public string JSONDATA { get; set; }
|
||
public string ReceiveData { get; set; }
|
||
public string SENDTYPE { get; set; }
|
||
public DateTime? PLANEXETIME { get; set; }
|
||
public DateTime? PLANEXEDATE { get; set; } //开始日期
|
||
public string PLANEXECYCLE { get; set; }
|
||
public decimal Eid { get; set; }
|
||
public string PLANEXEHOUR { get; set; }
|
||
public DateTime? DUEDATE { get; set; }
|
||
public string REMARK { get; set; }
|
||
public int Type { get; set; } // 1 报错草稿 2 确认分发
|
||
}
|
||
|
||
public class ReceiveModel
|
||
{
|
||
public decimal Type { get; set; }
|
||
public decimal Receiverid { get; set; }
|
||
}
|
||
|
||
public class MsgEditModel
|
||
{
|
||
public decimal? PKID { get; set; }
|
||
public string PLANNAME { get; set; }
|
||
public string CORPIDS { get; set; }
|
||
|
||
public List<string> CorplList
|
||
{
|
||
get
|
||
{
|
||
return string.IsNullOrEmpty(CORPIDS) ? new List<string>() :
|
||
CORPIDS.Split(',').ToList();
|
||
}
|
||
}
|
||
|
||
public decimal GROUPID { get; set; }
|
||
public string GROUPNAME { get; set; }
|
||
public string GROUPMEMO { get; set; }
|
||
public string ReceiveData { get; set; }
|
||
public string ShowPeopleText { get; set; }
|
||
public string JSONDATA { get; set; }
|
||
public string SENDTYPE { get; set; }
|
||
public string REMARK { get; set; }
|
||
public string PLANEXECYCLE { get; set; }
|
||
public string PLANEXETIME { get; set; }
|
||
public string PLANEXEDATE { get; set; }
|
||
public string PLANEXEHOUR { get; set; }
|
||
public string DUEDATE { get; set; }
|
||
}
|
||
|
||
public class MsgSendModel
|
||
{
|
||
public decimal? PlanId { get; set; }
|
||
}
|
||
|
||
public class UserGroupModel
|
||
{
|
||
public string id { get; set; }
|
||
public string text { get; set; }
|
||
public bool selected { get; set; }
|
||
public string description { get; set; }
|
||
|
||
/// <summary>
|
||
/// 共享范围
|
||
/// 0:全局
|
||
/// 1:部门
|
||
/// 2:个人
|
||
/// </summary>
|
||
public UserGroupShareWay ShareWay { get; set; }
|
||
|
||
/// <summary>
|
||
/// 用户数量
|
||
/// </summary>
|
||
public int UserCount { get; set; }
|
||
|
||
/// <summary>
|
||
/// 客户数量
|
||
/// </summary>
|
||
public int CustomerCount { get; set; }
|
||
|
||
public int? deptId { get; set; }
|
||
}
|
||
|
||
public class UserGroupDto
|
||
{
|
||
/// <summary>
|
||
/// 人群包id
|
||
/// </summary>
|
||
public int Id { get; set; }
|
||
|
||
/// <summary>
|
||
/// 名称
|
||
/// </summary>
|
||
public string Name { get; set; }
|
||
|
||
/// <summary>
|
||
/// 描述
|
||
/// </summary>
|
||
public string Description { get; set; }
|
||
|
||
/// <summary>
|
||
/// 共享范围
|
||
/// 0:全局
|
||
/// 1:部门
|
||
/// 2:个人
|
||
/// </summary>
|
||
/* public UserGroupShareWay? ShareWay { get; set; }*/
|
||
|
||
/// <summary>
|
||
/// 用户数量
|
||
/// </summary>
|
||
public int UserCount { get; set; }
|
||
|
||
/// <summary>
|
||
/// 客户数量
|
||
/// </summary>
|
||
public int CustomerCount { get; set; }
|
||
|
||
public int? deptId { get; set; }
|
||
public string catekeyName { get; set; }
|
||
}
|
||
|
||
public class JsonDataModel
|
||
{
|
||
public int sort { get; set; }
|
||
public string msgtype { get; set; }
|
||
public string content { get; set; }
|
||
}
|
||
|
||
#endregion 计划表
|
||
} |