Repository navigation
Expand file tree
/
Copy pathIOrganize.cs
More file actions
79 lines (65 loc) · 1.89 KB
/
Copy pathIOrganize.cs
File metadata and controls
79 lines (65 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
using System;
using System.Collections.Generic;
namespace Data.Interface
{
public interface IOrganize
{
/// <summary>
/// 新增
/// </summary>
int Add(Data.Model.Organize model);
/// <summary>
/// 更新
/// </summary>
int Update(Data.Model.Organize model);
/// <summary>
/// 查询所有记录
/// </summary>
List<Data.Model.Organize> GetAll();
/// <summary>
/// 查询单条记录
/// </summary>
Model.Organize Get(Guid id);
/// <summary>
/// 删除
/// </summary>
int Delete(Guid id);
/// <summary>
/// 查询记录条数
/// </summary>
long GetCount();
/// <summary>
/// 根据根记录
/// </summary>
Data.Model.Organize GetRoot();
/// <summary>
/// 查询下级记录
/// </summary>
List<Data.Model.Organize> GetChilds(Guid ID);
/// <summary>
/// 得到最大排序值
/// </summary>
/// <returns></returns>
int GetMaxSort(Guid id);
/// <summary>
/// 更新下级数
/// </summary>
/// <returns></returns>
int UpdateChildsLength(Guid id, int length);
/// <summary>
/// 更新排序
/// </summary>
/// <returns></returns>
int UpdateSort(Guid id, int sort);
/// <summary>
/// 查询一个组织的所有上级
/// </summary>
List<Data.Model.Organize> GetAllParent(string number);
/// <summary>
/// 查询一个组织的所有下级
/// </summary>
/// <param name="number">编号</param>
/// <returns></returns>
List<Data.Model.Organize> GetAllChild(string number);
}
}