You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
2.4 KiB
82 lines
2.4 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using FangYar.Model.TBL;
|
|
|
|
namespace FangYar.BLL.TBL
|
|
{
|
|
public class SysAreaBLL
|
|
{
|
|
private static readonly IDAL.TBL.SysAreaIDAL dal = FangYar.DALFactory.Factory.GetSysAreaDAL();
|
|
/// <summary>
|
|
/// 根据ID获取实体对象
|
|
/// </summary>
|
|
public TBL_SYS_AREA_Model GetModelByID(string AreaCode)
|
|
{
|
|
return dal.GetModelByID(AreaCode);
|
|
}
|
|
/// <summary>
|
|
/// 根据区域码获取实体类对象
|
|
/// </summary>
|
|
public TBL_SYS_AREA_Model GetModelByAreaCode(string code)
|
|
{
|
|
|
|
return dal.GetModelByAreaCode(code);
|
|
}
|
|
public bool Add(TBL_SYS_AREA_Model model)
|
|
{
|
|
|
|
return dal.Add(model);
|
|
}
|
|
public bool Edit(TBL_SYS_AREA_Model model)
|
|
{
|
|
return dal.Edit(model);
|
|
}
|
|
public bool Delete(string IDList)
|
|
{
|
|
return dal.Delete(IDList);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取记录数
|
|
/// </summary>
|
|
public int Count(string where)
|
|
{
|
|
return dal.Count(where);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 分页
|
|
/// </summary>
|
|
/// <param name="PageIndex"></param>
|
|
/// <param name="PageSize"></param>
|
|
/// <param name="strwhere"></param>
|
|
/// <param name="order"></param>
|
|
public void QueryProc(int PageIndex, int PageSize, string strwhere, string order)
|
|
{
|
|
dal.QueryProc(PageIndex, PageSize, strwhere, order);
|
|
}
|
|
/// <summary>
|
|
/// 分页
|
|
/// </summary>
|
|
/// <param name="PageIndex"></param>
|
|
/// <param name="PageSize"></param>
|
|
/// <param name="strwhere"></param>
|
|
/// <param name="order"></param>
|
|
/// <returns></returns>
|
|
public List<FangYar.Model.TBL.TBL_SYS_AREA_Model> QueryList(int PageIndex, int PageSize, string strwhere, string order)
|
|
{
|
|
return dal.QueryList(PageIndex, PageSize, strwhere, order);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据区域码获取所有父级区域码以及区域名称
|
|
/// </summary>
|
|
public FangYar.Model.TBL.TBL_SYS_AREA_PID_Model GetPIDS(string code)
|
|
{
|
|
FangYar.Model.TBL.TBL_SYS_AREA_PID_Model area_s = new TBL_SYS_AREA_PID_Model();
|
|
return dal.GetPIDS(code, area_s);
|
|
}
|
|
}
|
|
}
|
|
|