55 lines
1.5 KiB
C#
55 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using dccdc.Models;
|
|
|
|
namespace dccdc.BLL
|
|
{
|
|
public class AreaInfoMaintainBll
|
|
{
|
|
public int getCount(string key)
|
|
{
|
|
return new DAL.AreaInfoMaintainDal().getCount(key);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据地区名称获取地区列表
|
|
/// </summary>
|
|
/// <param name="page"></param>
|
|
/// <param name="pagesize"></param>
|
|
/// <param name="key"></param>
|
|
/// <returns></returns>
|
|
public List<AreaInfoMaintainModel> getList(int page, int pagesize, string key)
|
|
{
|
|
return new DAL.AreaInfoMaintainDal().getList(page, pagesize, key);
|
|
}
|
|
|
|
public List<AreaInfoMaintainModel> GetAllList(string id)
|
|
{
|
|
return new DAL.AreaInfoMaintainDal().GetAllList( id);
|
|
}
|
|
|
|
public List<AreaInfoMaintainModel> GetAllList()
|
|
{
|
|
return new DAL.AreaInfoMaintainDal().GetAllList();
|
|
}
|
|
|
|
public object save(AreaInfoMaintainModel ct, ERPUser user)
|
|
{
|
|
return new DAL.AreaInfoMaintainDal().save(ct, user);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据id删除地区维护
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
public object delAreaInfo(string id)
|
|
{
|
|
return new DAL.AreaInfoMaintainDal().del(id);
|
|
}
|
|
}
|
|
}
|