Переглянути джерело

惩罚和奖励查询下拉框失败

临城职教中职
ndbs 2 роки тому
джерело
коміт
6ec6fc7f45
5 змінених файлів з 21 додано та 9 видалено
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/AwardAndPunishment/Index.js
  2. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/AwardAndPunishment/IndexPunishment.cshtml
  3. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/AwardAndPunishment/IndexPunishment.js
  4. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/AwardPunishInfo/AwardIndex.cshtml
  5. +15
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/AwardPunishInfo/AwardIndex.js

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/AwardAndPunishment/Index.js Переглянути файл

@@ -16,7 +16,7 @@ var bootstrap = function ($, learun) {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
$('#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/IndexPunishment.cshtml Переглянути файл

@@ -14,10 +14,10 @@
<div class="lr-form-item-title">惩罚名称</div>
<input id="AwardName" type="text" class="form-control" />
</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 id="AwardType"></div>
</div>
</div>*@
</div>
</div>
</div>


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/AwardAndPunishment/IndexPunishment.js Переглянути файл

@@ -16,7 +16,7 @@ var bootstrap = function ($, learun) {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
$('#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/AwardPunishInfo/AwardIndex.cshtml Переглянути файл

@@ -14,10 +14,10 @@
<div class="lr-form-item-title">奖励类型</div>
<div id="NatureType"></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 id="StuName"></div>
</div>
</div>*@
</div>
</div>
</div>


+ 15
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/AwardPunishInfo/AwardIndex.js Переглянути файл

@@ -40,7 +40,7 @@ var bootstrap = function ($, learun) {
learun.clientdata.getAsync('dataItem',
{
key: value,
code: 'AwardType',
code: 'EncouragementDegree',
callback: function(_data) {
callback(_data.text);
}
@@ -54,7 +54,7 @@ var bootstrap = function ($, learun) {
$("#awardtype").val(item.awardtype);
}
});
$('#RewardObjects').lrGirdSelect({
$('#StuName').lrGirdSelect({
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuInfoBasic',
selectWord: 'stuno',
value: 'stuno',
@@ -63,7 +63,19 @@ var bootstrap = function ($, learun) {
[
{ label: "学号", name: "stuno", 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) {
$("#StuId").val(item.stuno);


Завантаження…
Відмінити
Зберегти