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.
147 lines
4.0 KiB
147 lines
4.0 KiB
9 months ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
using FangYar.Model.TBL;
|
||
|
|
||
|
namespace FangYar.BLL.TBL
|
||
|
{
|
||
|
public class SysMenuBLL
|
||
|
{
|
||
|
|
||
|
private static readonly FangYar.IDAL.TBL.SysMenuIDAL dal = FangYar.DALFactory.Factory.GetSysMenuDAl();
|
||
|
|
||
|
|
||
|
/// <summary>
|
||
|
/// 根据id获取model
|
||
|
/// </summary>
|
||
|
public TBL_SYS_MENU_Model GetModelByID(string ID)
|
||
|
{
|
||
|
return dal.GetModelByID(ID);
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 根据menuCode获得实体类对象
|
||
|
/// </summary>
|
||
|
public TBL_SYS_MENU_Model GetModelByAppCode(string AppId)
|
||
|
{
|
||
|
return dal.GetModelByAppId(AppId);
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 添加一条记录
|
||
|
/// </summary>
|
||
|
public bool Add(TBL_SYS_MENU_Model model)
|
||
|
{
|
||
|
return dal.Add(model);
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 编辑
|
||
|
/// </summary>
|
||
|
/// <param name="model"></param>
|
||
|
/// <returns></returns>
|
||
|
public bool Edit(TBL_SYS_MENU_Model model)
|
||
|
{
|
||
|
return dal.Edit(model);
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 删除
|
||
|
/// </summary>
|
||
|
/// <param name="strlist"></param>
|
||
|
/// <returns></returns>
|
||
|
public bool Delete(string strlist)
|
||
|
{
|
||
|
return dal.Delete(strlist);
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 记录总数
|
||
|
/// </summary>
|
||
|
/// <param name="where"></param>
|
||
|
/// <returns></returns>
|
||
|
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_MENU_Model> QueryList(int PageIndex, int PageSize, string strwhere, string order)
|
||
|
{
|
||
|
return dal.QueryList(PageIndex, PageSize, strwhere, order);
|
||
|
}
|
||
|
|
||
|
public List<FangYar.Model.TBL.TBL_SYS_MENU_Model> QueryWhere(string strwhere)
|
||
|
{
|
||
|
return dal.QueryWhere(strwhere);
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/// <summary>
|
||
|
/// flow用的
|
||
|
/// 添加一条记录
|
||
|
/// </summary>
|
||
|
public bool flowAdd(TBL_SYS_MENU_Model model)
|
||
|
{
|
||
|
return dal.flowAdd(model);
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// flow用的
|
||
|
/// 编辑
|
||
|
/// </summary>
|
||
|
/// <param name="model"></param>
|
||
|
/// <returns></returns>
|
||
|
public bool flowEdit(TBL_SYS_MENU_Model model)
|
||
|
{
|
||
|
return dal.flowEdit(model);
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// flow用的
|
||
|
/// 根据type字段查询list集合
|
||
|
/// </summary>
|
||
|
/// <param name="model"></param>
|
||
|
/// <returns></returns>
|
||
|
public List<FangYar.Model.TBL.TBL_SYS_MENU_Model> typegetmenu(string type)
|
||
|
{
|
||
|
return dal.typegetmenu(type);
|
||
|
}
|
||
|
|
||
|
|
||
|
/// <summary>
|
||
|
/// flow用的
|
||
|
/// 根据CODE获取实体对象
|
||
|
/// </summary>
|
||
|
public Model.TBL.TBL_SYS_MENU_Model GetModelByCODE(string code)
|
||
|
{
|
||
|
return dal.GetModelByCODE(code);
|
||
|
}
|
||
|
|
||
|
|
||
|
/// <summary>
|
||
|
/// 删除 角色与菜单关联表
|
||
|
/// </summary>
|
||
|
/// <param name="strlist"></param>
|
||
|
/// <returns></returns>
|
||
|
public bool DeleteRoleMenu(string strlist)
|
||
|
{
|
||
|
return dal.DeleteRoleMenu(strlist);
|
||
|
}
|
||
|
}
|
||
|
}
|