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;
using System.Data;
namespace CY.BLL.OA
{
public class OA_SuppliersBLL
{
IOA_SuppliersDAL suppliersDAL = null;
public OA_SuppliersBLL()
{
suppliersDAL = Factory.GetDALByInterfaceName(DALInterface.IOA_SuppliersDAL) as IOA_SuppliersDAL;
}
///
/// 添加一个供应商
///
///
///
public bool InsertModel(OA_Suppliers model)
{
return suppliersDAL.InserModel(model);
}
///
/// 更新供应商
///
///
///
public bool UpdateModel(OA_Suppliers model)
{
return suppliersDAL.UpdateModel(model);
}
///
/// 删除一个供应商
///
///
///
public bool DeleteModel(OA_Suppliers model)
{
return suppliersDAL.DeleteModel(model);
}
///
/// 根据条件获取全部供应商
///
///
///
///
///
///
///
public IEnumerable getAllSuppliers(Pagination pa, Guid FirmId, string CooperativeStateId, string SuppliersLevelId, string SuppliersTypeId, string SuppliersName, string BusinessScope)
{
return suppliersDAL.getAllSuppliers(pa, FirmId, CooperativeStateId, SuppliersLevelId, SuppliersTypeId, SuppliersName, BusinessScope);
}
///
/// 得到单个供应商
///
///
///
public OA_Suppliers getSingleSupplier(string Keyid)
{
return suppliersDAL.getSingleSupplier(Keyid);
}
///
/// 获取table类型的所有供应商
///
///
///
public DataTable getSupplierTable(Guid FirmId)
{
return suppliersDAL.getSupplierTable(FirmId);
}
///
/// 获取table类型的所有供应商
///
///
///
public IEnumerable getSupplierByFirmId(Guid FirmId,string Name)
{
return suppliersDAL.getSupplierByFirmId(FirmId, Name);
}
}
}