|
@@ -34,6 +34,32 @@ var bootstrap = function ($, learun) { |
|
|
$('.personT').text(data.schoolName); |
|
|
$('.personT').text(data.schoolName); |
|
|
$('.perSemester').text(data.semester); |
|
|
$('.perSemester').text(data.semester); |
|
|
$('.perFestivalsBox table').html(html); |
|
|
$('.perFestivalsBox table').html(html); |
|
|
|
|
|
$(".leave").on('click', function () { |
|
|
|
|
|
var $this = $(this); |
|
|
|
|
|
var lessonNo = $this.attr("lessonno"); |
|
|
|
|
|
var lessonTime = $this.attr("lessonTime"); |
|
|
|
|
|
var lessonDate = $this.attr("lessonDate"); |
|
|
|
|
|
//var lessonName = $this.attr("lessonName"); |
|
|
|
|
|
var academicyear = $this.attr("academicyear"); |
|
|
|
|
|
var semester = $this.attr("semester"); |
|
|
|
|
|
var empNo = $this.attr("empNo"); |
|
|
|
|
|
var classRoomNo = $this.attr("classRoomNo"); |
|
|
|
|
|
var lessonSortNo = $this.attr("lessonSortNo"); |
|
|
|
|
|
var teachClassNo = $this.attr("teachClassNo"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
learun.layerForm({ |
|
|
|
|
|
id: 'form', |
|
|
|
|
|
title: '请假申请', |
|
|
|
|
|
url: top.$.rootUrl + '/PersonnelManagement/TimeTable/Leave?lessonNo=' + lessonNo + '&lessonTime=' + lessonTime + '&lessonDate=' + lessonDate + '&empNo=' + empNo + '&academicyear=' + academicyear + '&semester=' + semester + '&classRoomNo=' + classRoomNo + '&lessonSortNo=' + lessonSortNo + '&teachClassNo=' + teachClassNo, |
|
|
|
|
|
width: 600, |
|
|
|
|
|
height: 600, |
|
|
|
|
|
callBack: function (id) { |
|
|
|
|
|
return top[id].acceptClick(change($this)); |
|
|
|
|
|
}.bind(this) |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
function flogs(num, data, obj) { |
|
|
function flogs(num, data, obj) { |
|
|
var flog = false; |
|
|
var flog = false; |
|
@@ -86,8 +112,28 @@ var bootstrap = function ($, learun) { |
|
|
item.teacher + |
|
|
item.teacher + |
|
|
'</div>' + |
|
|
'</div>' + |
|
|
'<div>' + |
|
|
'<div>' + |
|
|
|
|
|
item.className + |
|
|
|
|
|
'</div>' + |
|
|
|
|
|
'<div>' + |
|
|
item.classRoom + |
|
|
item.classRoom + |
|
|
'</div>'; |
|
|
'</div>'; |
|
|
|
|
|
|
|
|
|
|
|
var loginInfo = learun.clientdata.get(['userinfo']); |
|
|
|
|
|
if (loginInfo.Description == "学生") { |
|
|
|
|
|
if (item.leaveType == 1) { |
|
|
|
|
|
if (item.checkType == 1) { |
|
|
|
|
|
html += '<div><span>请假通过</span></div>'; |
|
|
|
|
|
} else if (item.checkType == 2) { |
|
|
|
|
|
html += '<div><span>请假未通过</span></div>'; |
|
|
|
|
|
} else { |
|
|
|
|
|
html += '<div><span>请假申请中</span></div>'; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
html += '<div><span class="leave" lessonNo="' + item.lessonNo + '" lessonTime="' + item.lessonTime + '" lessonDate="' + item.lessonDate + '" lessonName="' + item.curriculum + '" empNo="' + item.empno + '" academicyear="' + item.academicyear + '" semester="' + item.semester + '" lessonSortNo="' + item.lessonSortNo + '" classRoomNo="' + item.classRoomNo + '" teachClassNo="' + item.teachClassNo + '">请假</span></div>'; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//html += '<div>课程:' + |
|
|
//html += '<div>课程:' + |
|
|
// item.curriculum + |
|
|
// item.curriculum + |
|
|
// '</div>' + |
|
|
// '</div>' + |
|
@@ -104,7 +150,7 @@ var bootstrap = function ($, learun) { |
|
|
html += '</td>'; |
|
|
html += '</td>'; |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
html += '<td class="active" id="" num="' + k + '"><div></div><div></div><div></div><div></div></td>'; |
|
|
|
|
|
|
|
|
html += '<td class="active" id="" num="' + k + '"><div></div><div></div><div></div><div></div><div></div></td>'; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
})(k); |
|
|
})(k); |
|
@@ -196,7 +242,6 @@ var bootstrap = function ($, learun) { |
|
|
//当前第几周 |
|
|
//当前第几周 |
|
|
param.curWeek = curWeek; |
|
|
param.curWeek = curWeek; |
|
|
//班级 |
|
|
//班级 |
|
|
console.log("ClassNo:", classNo) |
|
|
|
|
|
param.classNo = ClassNo;//'202010';// |
|
|
param.classNo = ClassNo;//'202010';// |
|
|
page.loadData(param); |
|
|
page.loadData(param); |
|
|
|
|
|
|
|
@@ -215,4 +260,8 @@ var bootstrap = function ($, learun) { |
|
|
page.search(); |
|
|
page.search(); |
|
|
}; |
|
|
}; |
|
|
page.init(); |
|
|
page.init(); |
|
|
|
|
|
change = function (obj) { |
|
|
|
|
|
obj.off("click"); |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
}; |