|
|
@@ -21,15 +21,17 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
21
|
21
|
if (Request.IsAuthenticated)
|
|
22
|
22
|
{
|
|
23
|
23
|
DataTable dt = new DataTable();
|
|
24
|
|
- if(deptid==null || deptid=="")
|
|
25
|
|
- deptid = CurrentUser.UserData.F_DeptId.ToString();
|
|
|
24
|
+ string deptids = CurrentUser.UserData.F_SeartGroupID.ToString();
|
|
26
|
25
|
int roleid = CurrentUser.UserData.F_RoleId;
|
|
27
|
26
|
BLL.T_Sys_UserAccount bll = new BLL.T_Sys_UserAccount();
|
|
28
|
27
|
|
|
29
|
28
|
string sql = "";
|
|
30
|
29
|
if (roleid != 17)
|
|
|
30
|
+ sql = " and F_SeartGroupID=" + deptids;
|
|
|
31
|
+ else
|
|
31
|
32
|
{
|
|
32
|
|
- sql = " and F_DeptId=" + deptid;
|
|
|
33
|
+ if (deptid != null && deptid.Trim() != "")
|
|
|
34
|
+ sql = " and F_SeartGroupID=" + deptid;
|
|
33
|
35
|
}
|
|
34
|
36
|
|
|
35
|
37
|
dt = bll.GetList(" f_seatflag=1 and F_DeleteFlag=0 " + sql + " order by F_SeartGroupID,F_UserCode desc ").Tables[0];
|