Browse Source

物品损坏修改破坏者为学生

临城职教中职
ndbs 2 years ago
parent
commit
679440e392
5 changed files with 66 additions and 40 deletions
  1. +0
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/AwardAndPunishment/Index.cshtml
  2. +0
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/AwardPunishInfo/Index.cshtml
  3. +26
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Acc_GoodsDemage/Form.js
  4. +37
    -24
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Acc_GoodsDemage/Index.js
  5. +3
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Acc_Punishment/Index.js

+ 0
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/AwardAndPunishment/Index.cshtml View File

@@ -14,10 +14,6 @@
<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="lr-form-item-title">惩罚级别</div>
<div id="AwardType"></div>
</div>
</div>
</div>
</div>


+ 0
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/AwardPunishInfo/Index.cshtml View File

@@ -14,10 +14,6 @@
<div class="lr-form-item-title">惩罚类型</div>
<div id="NatureType"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">惩罚对象</div>
<div id="StuName"></div>
</div>
</div>
</div>
</div>


+ 26
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Acc_GoodsDemage/Form.js View File

@@ -55,11 +55,32 @@ var bootstrap = function ($, learun) {
value: 'id',
allowSearch: true
})
$('#DeangeUserr').lrformselect({
layerUrl: top.$.rootUrl + '/LR_OrganizationModule/User/SelectOnlyForm',
layerUrlW: 400,
layerUrlH: 300,
dataUrl: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByUserIds'
$('#DeangeUserr').lrGirdSelect({
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuInfoBasic',
selectWord: 'stuno',
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']);
}
});
}
},
],
select: function (item) {
$("#DeangeUserr").val(item.stuno);
}
});
},
initData: function () {


+ 37
- 24
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Acc_GoodsDemage/Index.js View File

@@ -19,7 +19,7 @@ var bootstrap = function ($, learun) {
});
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
learun.layerForm({
id: 'form',
title: '新增',
url: top.$.rootUrl + '/LogisticsManagement/Acc_GoodsDemage/Form',
@@ -50,9 +50,9 @@ var bootstrap = function ($, learun) {
$('#lr_delete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) {
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/Acc_GoodsDemage/DeleteForm', { keyValue: keyValue}, function () {
learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/Acc_GoodsDemage/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
@@ -65,7 +65,8 @@ var bootstrap = function ($, learun) {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/LogisticsManagement/Acc_GoodsDemage/GetPageList',
headData: [
{ label: "宿舍楼", name: "Dormitory", width: 100, align: "left",
{
label: "宿舍楼", name: "Dormitory", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Acc_DormitoryData',
@@ -75,8 +76,10 @@ var bootstrap = function ($, learun) {
callback(_data['name']);
}
});
}},
{ label: "单元", name: "Unit", width: 100, align: "left",
}
},
{
label: "单元", name: "Unit", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Acc_UnitData',
@@ -86,8 +89,10 @@ var bootstrap = function ($, learun) {
callback(_data['name']);
}
});
}},
{ label: "楼层", name: "Floor", width: 100, align: "left",
}
},
{
label: "楼层", name: "Floor", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Acc_FloorData',
@@ -97,8 +102,10 @@ var bootstrap = function ($, learun) {
callback(_data['name']);
}
});
}},
{ label: "宿舍", name: "RId", width: 100, align: "left",
}
},
{
label: "宿舍", name: "RId", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Acc_RoomData',
@@ -108,27 +115,33 @@ var bootstrap = function ($, learun) {
callback(_data['name']);
}
});
}},
{ label: "物品", name: "Goods", width: 100, align: "left"},
{ label: "价格", name: "Price", width: 100, align: "left"},
{ label: "破坏者", name: "DeangeUserr", width: 100, align: "left",
formatterAsync: function (callback, value, row, op,$cell) {
learun.clientdata.getAsync('user', {
key: value,
callback: function (_data) {
callback(_data.name);
}
});
}},
}
},
{ label: "物品", name: "Goods", width: 100, align: "left" },
{ label: "价格", name: "Price", width: 100, align: "left" },
{
label: "破坏者", name: "DeangeUserr", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'StuInfoBasic',
key: value,
keyId: 'stuno',
callback: function (_data) {
console.log(_data,123)
callback(_data['stuname']);
}
});
}
},
],
mainId:'ID',
mainId: 'ID',
isPage: true
});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {


+ 3
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Acc_Punishment/Index.js View File

@@ -148,9 +148,9 @@ var bootstrap = function ($, learun) {
});
}
},
{ label: "奖励", name: "RewardContent", width: 100, align: "left" },
{ label: "奖励时间", name: "RTime", width: 100, align: "left" },
{ label: "奖励原因", name: "RReason", width: 100, align: "left" },
{ label: "惩罚", name: "RewardContent", width: 100, align: "left" },
{ label: "惩罚时间", name: "RTime", width: 100, align: "left" },
{ label: "惩罚原因", name: "RReason", width: 100, align: "left" },
],
mainId: 'ID',
isPage: true


Loading…
Cancel
Save