|
|
@@ -5,6 +5,7 @@ |
|
|
|
* 描 述:学籍异动 |
|
|
|
*/ |
|
|
|
var acceptClick; |
|
|
|
var Grade; |
|
|
|
var keyValue = request('keyValue'); |
|
|
|
var bootstrap = function ($, learun) { |
|
|
|
"use strict"; |
|
|
@@ -65,29 +66,36 @@ var bootstrap = function ($, learun) { |
|
|
|
param: { strWhere: "deptno='" + item.deptno + "' AND CheckMark=1 order by majorno" } |
|
|
|
}); |
|
|
|
} else { |
|
|
|
$('#NewMajorNo').lrselectRefresh({ |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', |
|
|
|
param: { strWhere: "CheckMark=1 order by majorno" } |
|
|
|
}); |
|
|
|
//$('#NewMajorNo').lrselectRefresh({ |
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', |
|
|
|
// param: { strWhere: "CheckMark=1 order by majorno" } |
|
|
|
//}); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
$('#NewMajorNo').lrDataSourceSelect({ |
|
|
|
code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: function (item) { |
|
|
|
if (item != null && item != undefined) { |
|
|
|
var gradeWhere = ''; |
|
|
|
if (!!Grade) { |
|
|
|
gradeWhere = " and Grade='" + Grade + "'"; |
|
|
|
} |
|
|
|
$('#NewClassNo').lrselectRefresh({ |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
param: { strWhere: "MajorNo='" + item.majorno + "' AND CheckMark=1 order by classno" } |
|
|
|
param: { strWhere: "MajorNo='" + item.majorno + "' AND CheckMark=1" + gradeWhere+" order by classno" } |
|
|
|
}); |
|
|
|
} else { |
|
|
|
$('#NewClassNo').lrselectRefresh({ |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
param: { strWhere: "CheckMark=1 order by classno" } |
|
|
|
}); |
|
|
|
//$('#NewClassNo').lrselectRefresh({ |
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
// param: { strWhere: "CheckMark=1 order by classno" } |
|
|
|
//}); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
$('#NewClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); |
|
|
|
$('#NewClassNo').lrselect({ |
|
|
|
value: 'classno', text: 'classname' |
|
|
|
}); |
|
|
|
//$('#NewClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); |
|
|
|
//监听学号 |
|
|
|
$("#StuNo").on('blur', function () { |
|
|
|
var StuNo = $(this).val(); |
|
|
@@ -99,6 +107,7 @@ var bootstrap = function ($, learun) { |
|
|
|
$("#DeptNo").lrselectSet(data.DeptNo); |
|
|
|
$("#MajorNo").lrselectSet(data.MajorNo); |
|
|
|
$("#ClassNo").lrselectSet(data.ClassNo); |
|
|
|
Grade = data.Grade; |
|
|
|
} else { |
|
|
|
learun.alert.warning("学生不存在!"); |
|
|
|
//return false; |
|
|
@@ -117,6 +126,7 @@ var bootstrap = function ($, learun) { |
|
|
|
$("#DeptNo").lrselectSet(data.DeptNo); |
|
|
|
$("#MajorNo").lrselectSet(data.MajorNo); |
|
|
|
$("#ClassNo").lrselectSet(data.ClassNo); |
|
|
|
Grade = data.Grade; |
|
|
|
} else { |
|
|
|
learun.alert.warning("学生不存在!"); |
|
|
|
return false; |
|
|
@@ -139,7 +149,7 @@ var bootstrap = function ($, learun) { |
|
|
|
} |
|
|
|
else { |
|
|
|
$('[data-table="' + id + '"]').lrSetFormData(data[id]); |
|
|
|
|
|
|
|
Grade = data[id].Grade; |
|
|
|
$(".NewContainer").find('.contentDiv').attr("isvalid", "yes"); |
|
|
|
$(".NewContainer").find('.contentDiv').attr("checkexpession", "NotNull"); |
|
|
|
$(".NewContainer").find('.contentDiv').attr('readonly', 'readonly'); |
|
|
|