Browse Source

学生请假管理列表去掉系主任判断条件

新疆体育高职分支
zhangli 1 year ago
parent
commit
5509e9f7e4
1 changed files with 33 additions and 33 deletions
  1. +33
    -33
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuLeaveManagement/StuLeaveManagementService.cs

+ 33
- 33
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuLeaveManagement/StuLeaveManagementService.cs View File

@@ -61,39 +61,39 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
if (!queryParam["ClassManagerNo"].IsEmpty())
{
dp.Add("ClassManagerNo", queryParam["ClassManagerNo"].ToString(), DbType.String);
strSql.Append(" AND (c.ClassDiredctorNo = @ClassManagerNo or c.ClassTutorNo = @ClassManagerNo ");
//登录用户是否是系主任:若是,展示大于2天的请假记录;
var deptDirectorRoleId = Config.GetValue("DeptDirectorRoleId");
if (deptDirectorRoleId != null)
{
var loginInfoRoleIds = LoginUserInfo.Get().roleIds;
if (loginInfoRoleIds.IndexOf(',') == -1)
{
if (loginInfoRoleIds == deptDirectorRoleId)
{
strSql.Append(" or t.LeaveDay>2 )");
}
else
{
strSql.Append(" ) ");
}
}
else
{
if (loginInfoRoleIds.Split(',').Contains(deptDirectorRoleId))
{
strSql.Append(" or t.LeaveDay>2 )");
}
else
{
strSql.Append(" ) ");
}
}
}
else
{
strSql.Append(" ) ");
}
strSql.Append(" AND (c.ClassDiredctorNo = @ClassManagerNo or c.ClassTutorNo = @ClassManagerNo) ");
////登录用户是否是系主任:若是,展示大于2天的请假记录;
//var deptDirectorRoleId = Config.GetValue("DeptDirectorRoleId");
//if (deptDirectorRoleId != null)
//{
// var loginInfoRoleIds = LoginUserInfo.Get().roleIds;
// if (loginInfoRoleIds.IndexOf(',') == -1)
// {
// if (loginInfoRoleIds == deptDirectorRoleId)
// {
// strSql.Append(" or t.LeaveDay>2 )");
// }
// else
// {
// strSql.Append(" ) ");
// }
// }
// else
// {
// if (loginInfoRoleIds.Split(',').Contains(deptDirectorRoleId))
// {
// strSql.Append(" or t.LeaveDay>2 )");
// }
// else
// {
// strSql.Append(" ) ");
// }
// }
//}
//else
//{
// strSql.Append(" ) ");
//}
}
return this.BaseRepository("CollegeMIS").FindList<StuLeaveManagementEntity>(strSql.ToString(), dp, pagination);
}


Loading…
Cancel
Save