using System;
using System.Data;
using WX.CRM.Common;
using WX.CRM.DAL.TS;
using WX.CRM.IBLL.TS;
namespace WX.CRM.BLL.TS
{
public class WX_TSADDFRIEND_BL : IWX_TSADDFRIEND
{
///
/// 获取可以推送的工作微信号
///
/// 用户ID
///
public DataTable GetCanSendWorkAlias(decimal v_userid)
{
return new WX_TSADDFRIEND_DAL().GetCanSendWorkAlias(v_userid);
}
///
/// 获取资源
///
/// 批次号
///
public DataTable GetTsAddFriendRes(decimal pici)
{
return new WX_TSADDFRIEND_DAL().GetTsAddFriendRes(pici);
}
///
/// 获取批次信息
///
///
public DataTable GetTsSendPici()
{
return new WX_TSADDFRIEND_DAL().GetTsSendPici();
}
public bool UpdateSendResStutas(string v_alias, decimal v_pici, DateTime v_senddate, decimal v_stutas, string v_msg)
{
return new WX_TSADDFRIEND_DAL().UpdateSendResStutas(v_alias, v_pici, v_senddate, v_stutas, v_msg);
}
public bool AddFriendRelation(string v_jobusername, string v_username, string v_resid, DateTime v_createtime)
{
return new WX_TSADDFRIEND_DAL().AddFriendRelation(v_jobusername, v_username, v_resid, v_createtime);
}
///
/// 获取资源by cookie
///
///
public DataTable GetResByCookiResid(string resids)
{
return new WX_TSADDFRIEND_DAL().GetResByCookiResid(resids);
}
///
/// 获取验证的不通过的客户ID
///
///
public DataTable GetCheckErroRes(string resids)
{
return new WX_TSADDFRIEND_DAL().GetCheckErroRes(resids);
}
///
/// 获取最新的触动精灵脚本
///
///
public DataTable GetNewestScriptVersion()
{
return new WX_TSADDFRIEND_DAL().GetNewestScriptVersion();
}
public bool CreatePici(string v_resid, string v_alias, string v_helloMsg, int v_timeType, string v_exe_date, string v_exe_time, ref ValidationErrors errors)
{
return new WX_TSADDFRIEND_DAL().CreatePici(v_resid, v_alias, v_helloMsg, v_timeType, v_exe_date, v_exe_time, ref errors);
}
///
/// 上传并修 执行状态
///
///
///
///
///
///
///
///
public bool UpdatePiciExecStatus(long v_pici, int? v_isStart, DateTime? v_startTime, int? v_isEnd, DateTime? v_endTime, string v_erromsg, ref ValidationErrors errors)
{
return new WX_TSADDFRIEND_DAL().UpdatePiciExecStatus(v_pici, v_isStart, v_startTime, v_isEnd, v_endTime, v_erromsg, ref errors);
}
public bool AddFriendPiciLog(string v_alias, string v_resid, decimal v_eid, decimal v_pici, decimal v_state, string v_remark, long v_zitime, DateTime v_zdtime)
{
return new WX_TSADDFRIEND_DAL().AddFriendPiciLog(v_alias, v_resid, v_eid, v_pici, v_state, v_remark, v_zitime, v_zdtime);
}
///
/// 白板资源申请
///
/// 工作微信号
/// 打招呼内容
/// 时间类型
/// 年月日
/// 时分秒
/// 资源数
/// 工号
///
///
public bool WhiteResApply(string v_alias, string v_helloMsg, int v_timeType, string v_exe_date, string v_exe_time, int v_rescount, decimal v_eid, int dept, ref ValidationErrors errors)
{
return new WX_TSADDFRIEND_DAL().WhiteResApply(v_alias, v_helloMsg, v_timeType, v_exe_date, v_exe_time, v_rescount, v_eid, dept, ref errors);
}
public DataTable ResLogReport(Decimal v_eid, string v_alias, ref Pager pager)
{
return new WX_TSADDFRIEND_DAL().ResLogReport(v_eid, v_alias, ref pager);
}
///
/// 加人日志查询
///
/// 工号
/// 微信号
/// 分页信息
///
public DataTable ResLogReport_Manager(Decimal v_eid, string v_alias, ref Pager pager)
{
return new WX_TSADDFRIEND_DAL().ResLogReport_Manager(v_eid, v_alias, ref pager);
}
///
/// 加人日志查询 详细查询
///
/// 工号
///
public DataTable ResLogReport_Detial(Decimal v_pici)
{
return new WX_TSADDFRIEND_DAL().ResLogReport_Detial(v_pici);
}
///
/// 是否可以作为推送
///
///
///
public bool IsCanSend(string v_resid)
{
return new WX_TSADDFRIEND_DAL().IsCanSend(v_resid);
}
}
}