@@ -22,6 +22,11 @@ var bootstrap = function ($, learun) {
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
$('#ReplyUser').lrDataSourceSelect({ code: 'TeacherInfo', value: 'f_account', text: 'f_realname' });
$('#GenderNo').lrDataItemSelect({ code: 'usersexbit' });
$('#IsSingle').lrDataItemSelect({ code: 'YesOrNoBit' });
$('#Appointor').lrselect({
url: top.$.rootUrl + '/LR_Desktop/PsychologyReplyInfo/GetUserIdLists?objectId=' + objectId,
value: 'F_Account',
text: 'F_RealName',
});
$('#ReplyType').lrselect({
url: top.$.rootUrl + '/LR_SystemModule/DataItem/GetDetailList',
param: { itemCode: 'ReplyType' },
@@ -31,27 +36,23 @@ var bootstrap = function ($, learun) {
function (item) {
if (item) {
if (item.F_ItemValue == '1') {
$('#Appointor').lrselect({
url: top.$.rootUrl + '/LR_Desktop/PsychologyReplyInfo/GetUserIdLists?objectId=' + objectId,
value: 'F_Account',
text: 'F_RealName',
});
//上报
$('#ReplyContent').attr('readonly', 'readonly');
$('#ReplyContent').val('');
$('#ReplyContent').prev().html('回复内容');
$('#ReplyContent').removeAttr('isvalid');
$('#Appointor').removeAttr('readonly');
$('#Appointor').prev().html('指派教师<font face="宋体">*</font>');
$('#Appointor').attr('isvalid', 'yes').attr('checkexpession', 'NotNull');
// $('#Appointor').prev().html('指派教师<font face="宋体">*</font>');
// $('#Appointor').attr('isvalid', 'yes').attr('checkexpession', 'NotNull');
} else {
//回复
$('#ReplyContent').removeAttr('readonly');
$('#ReplyContent').prev().html('回复内容<font face="宋体">*</font>');
$('#ReplyContent').attr('isvalid', 'yes').attr('checkexpession', 'NotNull');
$('#Appointor').attr('readonly', 'readonly');
$('#Appointor').remove();
$('#Appointor').removeAttr('isvalid');
$('#Appointor').lrselectSet('');
//$('#Appointor').remove();
//$('#Appointor').removeAttr('isvalid');
}
}
}