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.OA
{
public class OA_CustomerApplyBLL
{
IOA_CustomerApplyDAL idal_IOA_CustomerApplyDAL = null;
public OA_CustomerApplyBLL()
{
idal_IOA_CustomerApplyDAL = Factory.GetDALByInterfaceName(DALInterface.IOA_CustomerApplyDAL) as IOA_CustomerApplyDAL;
}
///
/// 添加
///
///
///
public bool InsertModel(Model.OA_CustomerApply model)
{
return idal_IOA_CustomerApplyDAL.InserModel(model);
}
///
/// 更新
///
///
///
public bool UpdateModel(Model.OA_CustomerApply model)
{
return idal_IOA_CustomerApplyDAL.UpdateModel(model);
}
///
/// 回复客户转换申请
///
///
///
///
///
///
public bool UpdateModel(int? Keyid, Guid CustomId, Guid MemberId, string Status)
{
return idal_IOA_CustomerApplyDAL.UpdateModel(Keyid, CustomId, MemberId, Status);
}
///
/// 删除
///
///
///
public bool DeleteModel(Model.OA_CustomerApply model)
{
return idal_IOA_CustomerApplyDAL.DeleteModel(model);
}
///
/// 根据编号获得信息
///
/// 编号
///
public OA_CustomerApply GetModelByKeyid(int? Keyid)
{
return idal_IOA_CustomerApplyDAL.GetModelByKeyid(Keyid);
}
///
/// 分页查询
///
///
///
///
public IEnumerable SelectModelPage(Infrastructure.Query.Pagination pagination, Guid MemberId)
{
return idal_IOA_CustomerApplyDAL.SelectModelPage(pagination,MemberId);
}
///
/// 根据客户编号判断申请是否正常
///
///
///
public int IsAlreadyApplication(Guid CustomId)
{
return idal_IOA_CustomerApplyDAL.IsAlreadyApplication(CustomId);
}
}
}