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