ComplianceServer/oldcode/BLL/Wx/WX_MyIllegalRecord_BL.cs

45 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using WX.CRM.Common;
using WX.CRM.DAL.Wx;
using WX.CRM.IBLL.Wx;
using WX.CRM.Model.QueryMap;
namespace WX.CRM.BLL.Wx
{
public class WX_MyIllegalRecord_BL : IWX_MyIllegalRecord
{
public DataSet GetMyIllegalRecord(ref Pager pager, decimal p_userid, DateTime? p_stime, DateTime? p_etime, decimal p_type)
{
return new WX_MyIllegalRecord_DAL().GetMyIllegalRecord(ref pager, p_userid, p_stime, p_etime, p_type);
}
public DataSet IllegalRecordCount(DateTime? p_stime, DateTime? p_etime)
{
if (!p_stime.HasValue)
{
p_stime = DateTime.Now.Date;
}
if (!p_etime.HasValue)
{
p_etime = DateTime.Now.AddDays(1).Date;
}
return new WX_MyIllegalRecord_DAL().IllegalRecordCount(p_stime, p_etime);
}
public List<WxIllegalreCodeNoticeModel> GetNotice(decimal type)
{
DataTable table = new WX_MyIllegalRecord_DAL().GetNotice(type);
if (table == null || table.Rows.Count == 0)
return new List<WxIllegalreCodeNoticeModel>();
List<WxIllegalreCodeNoticeModel> list = table.ToList<WxIllegalreCodeNoticeModel>();
return list;
}
public bool UpadteNoticeLookStatus(decimal userid, decimal type)
{
return new WX_MyIllegalRecord_DAL().UpadteNoticeLookStatus(userid, type);
}
}
}