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(); /// /// 根据ID获取实体对象 /// public TBL_SYS_AREA_Model GetModelByID(string AreaCode) { return dal.GetModelByID(AreaCode); } /// /// 根据区域码获取实体类对象 /// 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); } /// /// 获取记录数 /// public int Count(string where) { return dal.Count(where); } /// /// 分页 /// /// /// /// /// public void QueryProc(int PageIndex, int PageSize, string strwhere, string order) { dal.QueryProc(PageIndex, PageSize, strwhere, order); } /// /// 分页 /// /// /// /// /// /// public List QueryList(int PageIndex, int PageSize, string strwhere, string order) { return dal.QueryList(PageIndex, PageSize, strwhere, order); } /// /// 根据区域码获取所有父级区域码以及区域名称 /// 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); } } }