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.
79 lines
1.9 KiB
79 lines
1.9 KiB
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace RoadFlow.Data.Interface
|
|
{
|
|
public interface IOrganize
|
|
{
|
|
/// <summary>
|
|
/// 新增
|
|
/// </summary>
|
|
int Add(RoadFlow.Data.Model.Organize model);
|
|
|
|
/// <summary>
|
|
/// 更新
|
|
/// </summary>
|
|
int Update(RoadFlow.Data.Model.Organize model);
|
|
|
|
/// <summary>
|
|
/// 查询所有记录
|
|
/// </summary>
|
|
List<RoadFlow.Data.Model.Organize> GetAll();
|
|
|
|
/// <summary>
|
|
/// 查询单条记录
|
|
/// </summary>
|
|
Model.Organize Get(string id);
|
|
|
|
/// <summary>
|
|
/// 删除
|
|
/// </summary>
|
|
int Delete(string id);
|
|
|
|
/// <summary>
|
|
/// 查询记录条数
|
|
/// </summary>
|
|
long GetCount();
|
|
|
|
/// <summary>
|
|
/// 根据根记录
|
|
/// </summary>
|
|
RoadFlow.Data.Model.Organize GetRoot();
|
|
|
|
/// <summary>
|
|
/// 查询下级记录
|
|
/// </summary>
|
|
List<RoadFlow.Data.Model.Organize> GetChilds(string ID);
|
|
|
|
/// <summary>
|
|
/// 得到最大排序值
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
int GetMaxSort(Guid id);
|
|
|
|
/// <summary>
|
|
/// 更新下级数
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
int UpdateChildsLength(string id, int length);
|
|
|
|
/// <summary>
|
|
/// 更新排序
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
int UpdateSort(Guid id, int sort);
|
|
|
|
/// <summary>
|
|
/// 查询一个组织的所有上级
|
|
/// </summary>
|
|
List<RoadFlow.Data.Model.Organize> GetAllParent(string number);
|
|
|
|
/// <summary>
|
|
/// 查询一个组织的所有下级
|
|
/// </summary>
|
|
/// <param name="number">编号</param>
|
|
/// <returns></returns>
|
|
List<RoadFlow.Data.Model.Organize> GetAllChild(string number);
|
|
|
|
}
|
|
}
|
|
|