@@ -16,7 +16,7 @@ var bootstrap = function ($, learun) { | |||||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | ||||
page.search(queryJson); | page.search(queryJson); | ||||
}, 220, 400); | }, 220, 400); | ||||
$('#AwardType').lrDataItemSelect({ code: 'AwardType' }); | |||||
$('#AwardType').lrDataItemSelect({ code: 'EncouragementDegree' }); | |||||
$('#NatureType').lrselect({ | $('#NatureType').lrselect({ | ||||
data: [{ text: "集体", value: "0" }, { text: "个人", value: "1" }], | data: [{ text: "集体", value: "0" }, { text: "个人", value: "1" }], | ||||
text: "text", | text: "text", | ||||
@@ -14,10 +14,10 @@ | |||||
<div class="lr-form-item-title">惩罚名称</div> | <div class="lr-form-item-title">惩罚名称</div> | ||||
<input id="AwardName" type="text" class="form-control" /> | <input id="AwardName" type="text" class="form-control" /> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | |||||
@*<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">惩罚级别</div> | <div class="lr-form-item-title">惩罚级别</div> | ||||
<div id="AwardType"></div> | <div id="AwardType"></div> | ||||
</div> | |||||
</div>*@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -16,7 +16,7 @@ var bootstrap = function ($, learun) { | |||||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | ||||
page.search(queryJson); | page.search(queryJson); | ||||
}, 220, 400); | }, 220, 400); | ||||
$('#AwardType').lrDataItemSelect({ code: 'AwardType' }); | |||||
//$('#AwardType').lrDataItemSelect({ code: 'EncouragementDegree' }); | |||||
$('#NatureType').lrselect({ | $('#NatureType').lrselect({ | ||||
data: [{ text: "集体", value: "0" }, { text: "个人", value: "1" }], | data: [{ text: "集体", value: "0" }, { text: "个人", value: "1" }], | ||||
text: "text", | text: "text", | ||||
@@ -14,10 +14,10 @@ | |||||
<div class="lr-form-item-title">奖励类型</div> | <div class="lr-form-item-title">奖励类型</div> | ||||
<div id="NatureType"></div> | <div id="NatureType"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | |||||
@*<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">奖励对象</div> | <div class="lr-form-item-title">奖励对象</div> | ||||
<div id="StuName"></div> | <div id="StuName"></div> | ||||
</div> | |||||
</div>*@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -40,7 +40,7 @@ var bootstrap = function ($, learun) { | |||||
learun.clientdata.getAsync('dataItem', | learun.clientdata.getAsync('dataItem', | ||||
{ | { | ||||
key: value, | key: value, | ||||
code: 'AwardType', | |||||
code: 'EncouragementDegree', | |||||
callback: function(_data) { | callback: function(_data) { | ||||
callback(_data.text); | callback(_data.text); | ||||
} | } | ||||
@@ -54,7 +54,7 @@ var bootstrap = function ($, learun) { | |||||
$("#awardtype").val(item.awardtype); | $("#awardtype").val(item.awardtype); | ||||
} | } | ||||
}); | }); | ||||
$('#RewardObjects').lrGirdSelect({ | |||||
$('#StuName').lrGirdSelect({ | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuInfoBasic', | url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuInfoBasic', | ||||
selectWord: 'stuno', | selectWord: 'stuno', | ||||
value: 'stuno', | value: 'stuno', | ||||
@@ -63,7 +63,19 @@ var bootstrap = function ($, learun) { | |||||
[ | [ | ||||
{ label: "学号", name: "stuno", width: 100, align: "left" }, | { label: "学号", name: "stuno", width: 100, align: "left" }, | ||||
{ label: "姓名", name: "stuname", width: 100, align: "left" }, | { label: "姓名", name: "stuname", width: 100, align: "left" }, | ||||
{ label: "班级", name: "classno", 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) { | select: function (item) { | ||||
$("#StuId").val(item.stuno); | $("#StuId").val(item.stuno); | ||||