Ver a proveniência

班级学籍管理 除代课老师查看代课班级学生 角色内的人员可查看所有班级学生

新疆警官学校中职
ndbs há 5 meses
ascendente
cometimento
b5a7955c2a
2 ficheiros alterados com 8 adições e 6 eliminações
  1. +7
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/MyClass.js
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs

+ 7
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/MyClass.js Ver ficheiro

@@ -35,11 +35,11 @@ var bootstrap = function ($, learun) {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetPageList',
headData: [
{ label: "学号", name: "StuNo", width: 200, align: "left" },
{ label: "学籍号", name: "StuCode", width: 200, align: "left" },
{ label: "姓名", name: "StuName", width: 100, align: "left" },
{ label: "学号", name: "StuNo", width: 100, align: "left" },
{ label: "学籍号", name: "StuCode", width: 150, align: "left" },
{ label: "姓名", name: "StuName", width: 150, align: "left" },
{
label: "性别", name: "GenderNo", width: 80, align: "left",
label: "性别", name: "GenderNo", width: 50, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "男" : "女";
}
@@ -171,7 +171,9 @@ var bootstrap = function ($, learun) {
page.search();
},
search: function (param) {
if (learun.clientdata.get(['userinfo']).account.toLowerCase() != "system") {//登录用户是system时,列表展示所有学生;其他用户登录时,必须选择左侧班级才能查看学生;
var user = learun.clientdata.get(['userinfo']);
//登录用户是system或登录用户的角色是班级学籍信息管理,列表展示所有学生;其他用户登录时,必须选择左侧班级才能查看学生;
if (user.account.toLowerCase() != "system" && user.roleIds.indexOf("818c298e-ea1d-41d5-be4a-f06b092a420f") != 0) {
if (Class == "" || Class == undefined || Class == null) {
learun.alert.warning("请选择左侧班级!");
return false;


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs Ver ficheiro

@@ -479,7 +479,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
var ClassDiredctorNo = LoginUserInfo.Get().account;
string sql = " SELECT * FROM dbo.ClassInfo where CheckMark=1 ";
if (ClassDiredctorNo.ToUpper() != "SYSTEM")
if (ClassDiredctorNo.ToUpper() != "SYSTEM" && !LoginUserInfo.Get().roleIds.Contains("818c298e-ea1d-41d5-be4a-f06b092a420f"))
{
sql += $" and ClassDiredctorNo='{ClassDiredctorNo}' or ClassTutorNo='{ClassDiredctorNo}'";
}


Carregando…
Cancelar
Guardar