|
|
@@ -21,26 +21,25 @@ var bootstrap = function ($, learun) { |
|
|
|
value: 'id', |
|
|
|
text: 'awardname', |
|
|
|
headData: |
|
|
|
[ |
|
|
|
{ label: "奖励类型", name: "awardname", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: '奖励属性', name: 'naturetype', width: 100, align: "left", |
|
|
|
formatter: function (val) { |
|
|
|
if (val == '0') { return '集体'; } |
|
|
|
else { return '个人'; } |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "奖励级别", name: "awardtype", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value) { |
|
|
|
learun.clientdata.getAsync('dataItem', |
|
|
|
{ |
|
|
|
key: value,code: 'AwardType', |
|
|
|
callback: function (_data) {callback(_data.text);} |
|
|
|
}); |
|
|
|
[ |
|
|
|
{ label: "奖励类型", name: "awardname", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: '奖励属性', name: 'naturetype', width: 100, align: "left", |
|
|
|
formatter: function (val) { |
|
|
|
if (val == '0') { return '集体'; } |
|
|
|
else { return '个人'; } |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
], |
|
|
|
{ |
|
|
|
label: "奖励级别", name: "awardtype", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value) { |
|
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
key: value, code: 'EncouragementDegree', |
|
|
|
callback: function (_data) { callback(_data.text); } |
|
|
|
}); |
|
|
|
}, |
|
|
|
} |
|
|
|
], |
|
|
|
select: function (item) { |
|
|
|
$("#NatureType").val(item.awardname); |
|
|
|
$("#shuxing").val(item.naturetype); |
|
|
@@ -53,23 +52,23 @@ var bootstrap = function ($, learun) { |
|
|
|
value: 'stuno', |
|
|
|
text: 'stuname', |
|
|
|
headData: |
|
|
|
[ |
|
|
|
{ label: "学号", name: "stuno", width: 100, align: "left" }, |
|
|
|
{ label: "姓名", name: "stuname", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "班级", name: "classno", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', |
|
|
|
key: value, |
|
|
|
keyId: 'classno', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['classname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
], |
|
|
|
[ |
|
|
|
{ label: "学号", name: "stuno", width: 100, align: "left" }, |
|
|
|
{ label: "姓名", name: "stuname", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "班级", name: "classno", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', |
|
|
|
key: value, |
|
|
|
keyId: 'classno', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['classname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
], |
|
|
|
select: function (item) { |
|
|
|
$("#StuId").val(item.stuno); |
|
|
|
$("#RewardObjects").val(item.stuname); |
|
|
@@ -86,7 +85,7 @@ var bootstrap = function ($, learun) { |
|
|
|
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/AwardPunishInfo/GetFormData?keyValue=' + keyValue, function (data) { |
|
|
|
for (var id in data) { |
|
|
|
if (!!data[id].length && data[id].length > 0) { |
|
|
|
$('#' + id ).jfGridSet('refreshdata', data[id]); |
|
|
|
$('#' + id).jfGridSet('refreshdata', data[id]); |
|
|
|
} |
|
|
|
else { |
|
|
|
$('[data-table="' + id + '"]').lrSetFormData(data[id]); |
|
|
@@ -94,7 +93,7 @@ var bootstrap = function ($, learun) { |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
$('#IsVaild').val('0'); |
|
|
|
$('#IsVaild').val('0'); |
|
|
|
} |
|
|
|
}; |
|
|
|
// 保存数据 |
|
|
|