Преглед изворни кода

惩罚奖励列表回显

临城职教中职
ndbs пре 2 година
родитељ
комит
57c25c5d3d
3 измењених фајлова са 40 додато и 41 уклоњено
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/AwardAndPunishment/AwardForm.js
  2. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/AwardAndPunishment/Index.js
  3. +37
    -38
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/AwardPunishInfo/AwardForm.js

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/AwardAndPunishment/AwardForm.js Прегледај датотеку

@@ -15,7 +15,7 @@ var bootstrap = function ($, learun) {
page.initData();
},
bind: function () {
$('#AwardType').lrDataItemSelect({ code: 'AwardType' });
$('#AwardType').lrDataItemSelect({ code: 'EncouragementDegree' });
$('#NatureType').lrselect({
data: [{ text: "集体", value: "0" }, { text: "个人", value: "1" }],
text: "text",


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/AwardAndPunishment/Index.js Прегледај датотеку

@@ -110,10 +110,10 @@ var bootstrap = function ($, learun) {
{ label: "奖励代码", name: "CodePrize", width: 100, align: "left" },
{
label: "奖励级别", name: "AwardType", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
formatterAsync: function(callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'AwardType',
code: 'EncouragementDegree',
callback: function (_data) {
callback(_data.text);
}


+ 37
- 38
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/AwardPunishInfo/AwardForm.js Прегледај датотеку

@@ -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');
}
};
// 保存数据


Loading…
Откажи
Сачувај