using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using CY.IDAL;
|
using CY.Model;
|
using AbstractFactory;
|
using CY.IBaseDAL;
|
using CY.Infrastructure.DESEncrypt;
|
using CY.Infrastructure.Query;
|
|
namespace CY.BLL
|
{
|
public class OA_PropertyRecordBLL
|
{
|
IOA_PropertyRecordDAL iOA_PropertyRecordDAL = null;
|
|
public OA_PropertyRecordBLL()
|
{
|
iOA_PropertyRecordDAL = Factory.GetDALByInterfaceName(DALInterface.IOA_PropertyRecordDAL) as IOA_PropertyRecordDAL;
|
}
|
|
/// <summary>
|
/// 添加
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool InsertModel(Model.OA_PropertyRecord model)
|
{
|
return iOA_PropertyRecordDAL.InserModel(model);
|
}
|
|
/// <summary>
|
/// 更新
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool UpdateModel(Model.OA_PropertyRecord model)
|
{
|
|
return iOA_PropertyRecordDAL.UpdateModel(model);
|
}
|
|
/// <summary>
|
/// 删除
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool DeleteModel(Model.OA_PropertyRecord model)
|
{
|
|
return iOA_PropertyRecordDAL.DeleteModel(model);
|
}
|
|
/// <summary>
|
/// 根据编号获得信息
|
/// </summary>
|
/// <param name="Keyid">编号</param>
|
/// <returns></returns>
|
public OA_PropertyRecord GetModelByKeyid(int? Keyid)
|
{
|
return iOA_PropertyRecordDAL.GetModelByKeyid(Keyid);
|
}
|
|
/// <summary>
|
/// 分页查询
|
/// </summary>
|
/// <param name="pagination"></param>
|
/// <returns></returns>
|
public IEnumerable<Model.OA_PropertyRecord> SelectModelPage(Infrastructure.Query.Pagination pagination, Guid _MemberId, Guid _AddId, int? _CateId, int? _PropertyId, int? _Status, string _AddName, DateTime? _BeginAddTime, DateTime? _EndAddTime)
|
{
|
return iOA_PropertyRecordDAL.SelectModelPage(pagination, _MemberId,_AddId, _CateId, _PropertyId, _Status, _AddName, _BeginAddTime, _EndAddTime);
|
}
|
}
|
}
|