|
|
@@ -11,7 +11,7 @@ using System.Web.Mvc;
|
|
11
|
11
|
|
|
12
|
12
|
namespace CallCenterApi.Interface.Controllers
|
|
13
|
13
|
{
|
|
14
|
|
-
|
|
|
14
|
+ [Authority]
|
|
15
|
15
|
public class DepartmentController : BaseController
|
|
16
|
16
|
{
|
|
17
|
17
|
private BLL.T_Sys_Department departmentBLL = new BLL.T_Sys_Department();
|
|
|
@@ -85,7 +85,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
85
|
85
|
/// 获取二级部门列表
|
|
86
|
86
|
/// </summary>
|
|
87
|
87
|
/// <returns></returns>
|
|
88
|
|
- [Authority]
|
|
|
88
|
+ //[Authority]
|
|
89
|
89
|
public ActionResult GetSecondDeptList()
|
|
90
|
90
|
{
|
|
91
|
91
|
int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
|
|
|
@@ -108,7 +108,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
108
|
108
|
/// 获取部门列表
|
|
109
|
109
|
/// </summary>
|
|
110
|
110
|
/// <returns></returns>
|
|
111
|
|
- [Authority]
|
|
|
111
|
+ //[Authority]
|
|
112
|
112
|
public ActionResult GetDeptListtree(int pId = 0)
|
|
113
|
113
|
{
|
|
114
|
114
|
DataTable dt = new DataTable();
|
|
|
@@ -130,7 +130,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
130
|
130
|
/// <param name="tab"></param>
|
|
131
|
131
|
/// <param name="parentid"></param>
|
|
132
|
132
|
/// <returns></returns>
|
|
133
|
|
- [Authority]
|
|
|
133
|
+ //[Authority]
|
|
134
|
134
|
private List<Model.TreeModel> BindTree(DataTable tab, string parentid)
|
|
135
|
135
|
{
|
|
136
|
136
|
DataTable tab2 = new DataTable();
|
|
|
@@ -168,7 +168,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
168
|
168
|
/// </summary>
|
|
169
|
169
|
/// <param name="deptId"></param>
|
|
170
|
170
|
/// <returns></returns>
|
|
171
|
|
- [Authority]
|
|
|
171
|
+ //[Authority]
|
|
172
|
172
|
public ActionResult GetDept()
|
|
173
|
173
|
{
|
|
174
|
174
|
int id = RequestString.GetInt("id", 0);
|
|
|
@@ -224,7 +224,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
224
|
224
|
/// </summary>
|
|
225
|
225
|
/// <param name="input"></param>
|
|
226
|
226
|
/// <returns></returns>
|
|
227
|
|
- [Authority]
|
|
|
227
|
+ //[Authority]
|
|
228
|
228
|
[HttpPost]
|
|
229
|
229
|
public ActionResult AddDept()
|
|
230
|
230
|
{
|
|
|
@@ -333,7 +333,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
333
|
333
|
}
|
|
334
|
334
|
}
|
|
335
|
335
|
}
|
|
336
|
|
- [Authority]
|
|
|
336
|
+ //[Authority]
|
|
337
|
337
|
[HttpPost]
|
|
338
|
338
|
public ActionResult UpdateDeptRemark()
|
|
339
|
339
|
{
|
|
|
@@ -380,7 +380,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
380
|
380
|
/// </summary>
|
|
381
|
381
|
/// <param name="ids"></param>
|
|
382
|
382
|
/// <returns></returns>
|
|
383
|
|
- [Authority]
|
|
|
383
|
+ //[Authority]
|
|
384
|
384
|
public ActionResult DelDept(string[] ids)
|
|
385
|
385
|
{
|
|
386
|
386
|
if (ids == null || ids.Length <= 0)
|
|
|
@@ -401,7 +401,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
401
|
401
|
/// </summary>
|
|
402
|
402
|
/// <param name="ids"></param>
|
|
403
|
403
|
/// <returns></returns>
|
|
404
|
|
- [Authority]
|
|
|
404
|
+ //[Authority]
|
|
405
|
405
|
public ActionResult DelDepts(int id)
|
|
406
|
406
|
{
|
|
407
|
407
|
if (id > 0)
|
|
|
@@ -419,7 +419,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
419
|
419
|
}
|
|
420
|
420
|
|
|
421
|
421
|
}
|
|
422
|
|
- [Authority]
|
|
|
422
|
+ //[Authority]
|
|
423
|
423
|
public bool DelDeptsByPId(int id)
|
|
424
|
424
|
{
|
|
425
|
425
|
bool bl = true;
|