浏览代码

学生宿舍查看,校区未选择不显示undefined;添加宿舍校区字段自动获取当前所在学校

西昌缴费二期
zhangli 2 年前
父节点
当前提交
d2df70a2c0
共有 3 个文件被更改,包括 12 次插入6 次删除
  1. +6
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/Floor.cshtml
  2. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/Form.js
  3. +5
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/FormClassify.js

+ 6
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/Floor.cshtml 查看文件

@@ -168,7 +168,12 @@
key: value, key: value,
keyId: 'f_companyid', keyId: 'f_companyid',
callback: function (_data) { callback: function (_data) {
result = _data.f_fullname;
if (!_data.f_fullname || _data.f_fullname == '' || _data.f_fullname == 'undefined') {
result = '';
}
else {
result = _data.f_fullname;
}
} }
}); });




+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/Form.js 查看文件

@@ -122,6 +122,7 @@ var bootstrap = function ($, learun) {
param: { parentId: '0' }, param: { parentId: '0' },
} }
$('#Campus').lrselect(dfop); $('#Campus').lrselect(dfop);
$('#Campus').lrselectSet(learun.clientdata.get(['userinfo']).companyId);


} }
}; };


+ 5
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/FormClassify.js 查看文件

@@ -25,7 +25,7 @@ var bootstrap = function ($, learun) {
allowSearch: true, allowSearch: true,
maxHeight: 225, maxHeight: 225,
select: function (item) { select: function (item) {
if (item&&item.id!='-1') {
if (item && item.id != '-1') {
$('#BuildType').lrselectSet(item.title); $('#BuildType').lrselectSet(item.title);
$('#BuildType').attr('readonly', 'readonly'); $('#BuildType').attr('readonly', 'readonly');
} else { } else {
@@ -43,7 +43,7 @@ var bootstrap = function ($, learun) {
type: 'radio', type: 'radio',
code: 'HasToilet', code: 'HasToilet',
}) })
//$('#StudentID').lrDataSourceSelect({ code: 'StuInfoBasic', value: 'stuid', text: 'stuname' }); //$('#StudentID').lrDataSourceSelect({ code: 'StuInfoBasic', value: 'stuid', text: 'stuname' });
//$('#StudentID').lrDataSourceSelect({ code: 'StuInfoTwo', value: 'stuid', text: 'stuname' }); //$('#StudentID').lrDataSourceSelect({ code: 'StuInfoTwo', value: 'stuid', text: 'stuname' });
$('#StudentID').lrselect({ $('#StudentID').lrselect({
@@ -51,7 +51,7 @@ var bootstrap = function ($, learun) {
text: "stuname", text: "stuname",
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuInfoBasic' url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuInfoBasic'
}); });
$('#Class').lrselect({ $('#Class').lrselect({
value: "classno", value: "classno",
text: "classname" text: "classname"
@@ -115,7 +115,7 @@ var bootstrap = function ($, learun) {


if (!!keyValue) { if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Accommodation/GetFormData?keyValue=' + keyValue, $.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Accommodation/GetFormData?keyValue=' + keyValue,
function(data) {
function (data) {
for (var id in data) { for (var id in data) {
if (!!data[id].length && data[id].length > 0) { if (!!data[id].length && data[id].length > 0) {
$('#' + id).jfGridSet('refreshdata', data[id]); $('#' + id).jfGridSet('refreshdata', data[id]);
@@ -141,7 +141,7 @@ var bootstrap = function ($, learun) {
param: { parentId: '0' }, param: { parentId: '0' },
} }
$('#Campus').lrselect(dfop); $('#Campus').lrselect(dfop);
$('#Campus').lrselectSet(learun.clientdata.get(['userinfo']).companyId);
} }
}; };
// 保存数据 // 保存数据


正在加载...
取消
保存