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_CarrepairBLL
|
{
|
IOA_CarrepairDAL iOA_CarrepairDAL = null;
|
|
public OA_CarrepairBLL()
|
{
|
iOA_CarrepairDAL = Factory.GetDALByInterfaceName(DALInterface.IOA_CarrepairDAL) as IOA_CarrepairDAL;
|
}
|
|
/// <summary>
|
/// 添加
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool InsertModel(Model.OA_Carrepair model)
|
{
|
return iOA_CarrepairDAL.InserModel(model);
|
}
|
|
/// <summary>
|
/// 更新
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool UpdateModel(Model.OA_Carrepair model)
|
{
|
|
return iOA_CarrepairDAL.UpdateModel(model);
|
}
|
|
/// <summary>
|
/// 删除
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool DeleteModel(Model.OA_Carrepair model)
|
{
|
|
return iOA_CarrepairDAL.DeleteModel(model);
|
}
|
|
/// <summary>
|
/// 根据编号获得信息
|
/// </summary>
|
/// <param name="Keyid">编号</param>
|
/// <returns></returns>
|
public OA_Carrepair GetModelByKeyid(int? Keyid)
|
{
|
return iOA_CarrepairDAL.GetModelByKeyid(Keyid);
|
}
|
|
/// <summary>
|
/// 分页查询
|
/// </summary>
|
/// <param name="pagination"></param>
|
/// <returns></returns>
|
public IEnumerable<Model.OA_Carrepair> SelectModelPage(Infrastructure.Query.Pagination pagination, int? _CarId, string _repairPerson, DateTime? _BeginrepairTime, DateTime? _EndrepairTime, string _repairType, decimal? _repairMoney, string _repairRecord, DateTime? _BeginLastUpdateTime, DateTime? _EndLastUpdateTime, string _Operator)
|
{
|
return iOA_CarrepairDAL.SelectModelPage(pagination, _CarId, _repairPerson, _BeginrepairTime, _EndrepairTime, _repairType, _repairMoney, _repairRecord, _BeginLastUpdateTime, _EndLastUpdateTime, _Operator);
|
}
|
}
|
}
|