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.
77 lines
3.0 KiB
77 lines
3.0 KiB
9 months ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Text;
|
||
|
using System.Data;
|
||
|
|
||
|
namespace FangYar.BLL
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 设备(BLL)
|
||
|
/// </summary>
|
||
|
public class ToTree_BLL
|
||
|
{
|
||
|
private static readonly FangYar.IDAL.ToTreeIDAL dal = FangYar.DALFactory.Factory.GeToTreeDAL();
|
||
|
|
||
|
/// <summary>
|
||
|
/// 获取树
|
||
|
/// </summary>
|
||
|
/// <param name="PageIndex"></param>
|
||
|
/// <param name="PageSize"></param>
|
||
|
/// <param name="strwhere"></param>
|
||
|
/// <param name="order"></param>
|
||
|
/// <returns></returns>
|
||
|
public List<FangYar.Model.TreeNodeModel> GetTree(string treeid, string treepid, string name, string table, string strwhere, List<FangYar.Model.TreeNodeModel> treelist)
|
||
|
{
|
||
|
return dal.GetTree(treeid, treepid, name, table, strwhere, treelist);
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 获取树 根据单位ID获取本节点及所有级子节点树
|
||
|
/// </summary>
|
||
|
/// <param name="PageIndex"></param>
|
||
|
/// <param name="PageSize"></param>
|
||
|
/// <param name="strwhere"></param>
|
||
|
/// <param name="order"></param>
|
||
|
/// <returns></returns>
|
||
|
public List<FangYar.Model.TreeNodeModel> GetTree2(string treeid, string treepid, string name, string table, string strwhere, List<FangYar.Model.TreeNodeModel> treelist)
|
||
|
{
|
||
|
return dal.GetTree2(treeid, treepid, name, table, strwhere, treelist);
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 获取树 只查询一遍
|
||
|
/// </summary>
|
||
|
/// <param name="PageIndex"></param>
|
||
|
/// <param name="PageSize"></param>
|
||
|
/// <param name="strwhere"></param>
|
||
|
/// <param name="order"></param>
|
||
|
/// <returns></returns>
|
||
|
public List<FangYar.Model.TreeNodeModel> GetTree3(string treeid, string treepid, string name, string table, string strwhere, List<FangYar.Model.TreeNodeModel> treelist)
|
||
|
{
|
||
|
return dal.GetTree3(treeid, treepid, name, table, strwhere, treelist);
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 获取树
|
||
|
/// </summary>
|
||
|
/// <param name="PageIndex"></param>
|
||
|
/// <param name="PageSize"></param>
|
||
|
/// <param name="strwhere"></param>
|
||
|
/// <param name="order"></param>
|
||
|
/// <returns></returns>
|
||
|
public List<FangYar.Model.TreeNodeModel> GetNodeTree(string treeid, string treepid, string name, string table, string strwhere)
|
||
|
{
|
||
|
return dal.GetNodeTree(treeid, treepid, name, table, strwhere);
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 获取树节点
|
||
|
/// </summary>
|
||
|
/// <param name="PageIndex"></param>
|
||
|
/// <param name="PageSize"></param>
|
||
|
/// <param name="strwhere"></param>
|
||
|
/// <param name="order"></param>
|
||
|
/// <returns></returns>
|
||
|
public List<FangYar.Model.TreeNodeModel> GetTreeNodeModelToList(string treeid, string treepid, string name, string table, string strwhere)
|
||
|
{
|
||
|
return dal.GetTreeNodeModelToList(treeid, treepid, name, table, strwhere);
|
||
|
}
|
||
|
}
|
||
|
}
|