using System;
using System.Collections.Generic;
using System.Data;
using WX.CRM.Common;
using WX.CRM.DAL.TS;
using WX.CRM.IBLL.TS;
using WX.CRM.Model.DTO;
using WX.CRM.Model.MAP;
namespace WX.CRM.BLL.TS
{
public class WX_TS_BATCHMSG_BL : IWX_TS_BATCHMSG
{
///
/// 获取 工作微信好友列表(用于消息助手,好友选择)
///
///
///
///
///
///
///
///
///
///
public List GetRcontactByJobusername(string v_jobusername, string v_username, string v_alias, string v_nickname, DateTime? v_stime, DateTime? v_etime, int v_rtype, int isnofriend, string v_column, string v_sort)
{
return new WX_TS_BATCHMSG_DAL().GetRcontactByJobusername(v_jobusername, v_username, v_alias, v_nickname, v_stime, v_etime, v_rtype, isnofriend, v_column, v_sort);
}
///
/// 提交发送批次
///
/// Rcontact的pkid集合
/// 工作微信号
/// 发送内容
/// 时间类型
/// 执行日期
/// 执行时间
/// 错误信息
///
public bool CreateBatchPici(string v_rid, string v_alias, string v_sendMsg, int v_timeType, string v_exe_date, string v_exe_time, ref ValidationErrors errors)
{
return new WX_TS_BATCHMSG_DAL().CreateBatchPici(v_rid, v_alias, v_sendMsg, v_timeType, v_exe_date, v_exe_time, ref errors);
}
///
/// 获取推送批次
///
///
public DataTable GetTsMsgSendPici()
{
return new WX_TS_BATCHMSG_DAL().GetTsMsgSendPici();
}
///
/// 根据批次获取详细数据
///
/// 批次
///
public DataTable GetTsMsgDetailByPici(decimal pici)
{
return new WX_TS_BATCHMSG_DAL().GetTsMsgDetailByPici(pici);
}
///
/// 修改批次推送状态
///
/// 批次
/// 时间
/// 状态
/// 推送结果
///
public bool UpdateSendMsgStutas(decimal v_pici, DateTime v_senddate, decimal v_stutas, string v_msg)
{
return new WX_TS_BATCHMSG_DAL().UpdateSendMsgStutas(v_pici, v_senddate, v_stutas, v_msg);
}
///
/// 上传执行日志
///
/// 日志信息
public void BatchMsgLogUP(batchmsg info, ref ValidationErrors errors)
{
new WX_TS_BATCHMSG_DAL().BatchMsgLogUP(info, ref errors);
}
///
/// 加人日志查询
///
/// 工号
/// 微信号
/// 分页信息
///
public DataTable BatchMsgLogReport(Decimal v_eid, string v_alias, ref Pager pager)
{
return new WX_TS_BATCHMSG_DAL().BatchMsgLogReport(v_eid, v_alias, ref pager);
}
///
/// 批量详细详细日志
///
///
///
public DataTable LogReport_Detial(Decimal v_pici, string v_key)
{
return new WX_TS_BATCHMSG_DAL().LogReport_Detial(v_pici, v_key);
}
///
/// 添加拉黑好友
///
///
///
public bool AddBlackFriend(string v_jobusername, string v_username)
{
return new WX_TS_BATCHMSG_DAL().AddBlackFriend(v_jobusername, v_username);
}
}
}