|
@@ -262,10 +262,10 @@ var bootstrap = function ($, learun) { |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//分类管理 |
|
|
//分类管理 |
|
|
$("#lr_Classify").on("click", function () { |
|
|
$("#lr_Classify").on("click", function () { |
|
|
learun.layerForm({ |
|
|
learun.layerForm({ |
|
@@ -304,14 +304,14 @@ var bootstrap = function ($, learun) { |
|
|
selectedParent.ChildType = "5"; |
|
|
selectedParent.ChildType = "5"; |
|
|
} |
|
|
} |
|
|
var param = {}; |
|
|
var param = {}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (item.title == '1') |
|
|
if (item.title == '1') |
|
|
param.ApartmentId = item.value; |
|
|
param.ApartmentId = item.value; |
|
|
else if (item.title == '2') |
|
|
else if (item.title == '2') |
|
|
param.UnitId = item.value; |
|
|
param.UnitId = item.value; |
|
|
else if (item.title == '3') |
|
|
else if (item.title == '3') |
|
|
param.FloorId = item.value; |
|
|
param.FloorId = item.value; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//page.initGird(); |
|
|
//page.initGird(); |
|
|
//page.search({ ParentID: item.value }); |
|
|
//page.search({ ParentID: item.value }); |
|
|
page.search(param); |
|
|
page.search(param); |
|
@@ -433,6 +433,7 @@ var bootstrap = function ($, learun) { |
|
|
sidx: 'ApartmentId asc,UnitId asc ,FloorId asc ', |
|
|
sidx: 'ApartmentId asc,UnitId asc ,FloorId asc ', |
|
|
//sord: 'ASC', |
|
|
//sord: 'ASC', |
|
|
isSubGrid: true, // 是否有子表 |
|
|
isSubGrid: true, // 是否有子表 |
|
|
|
|
|
//床位信息 |
|
|
subGridExpanded: function (subContentId, rowItem) { |
|
|
subGridExpanded: function (subContentId, rowItem) { |
|
|
$('#' + subContentId).jfGrid({ |
|
|
$('#' + subContentId).jfGrid({ |
|
|
url: top.$.rootUrl + '/LogisticsManagement/Accommodation/GetBedListByRoomId?RoomId=' + rowItem.ID, |
|
|
url: top.$.rootUrl + '/LogisticsManagement/Accommodation/GetBedListByRoomId?RoomId=' + rowItem.ID, |
|
@@ -454,7 +455,7 @@ var bootstrap = function ($, learun) { |
|
|
], |
|
|
], |
|
|
mainId: 'ID', |
|
|
mainId: 'ID', |
|
|
isPage: false, |
|
|
isPage: false, |
|
|
//sidx: 'DNo', |
|
|
|
|
|
|
|
|
sidx: ' REPLACE(Name,\'床\',\'\')' |
|
|
//sord: 'ASC', |
|
|
//sord: 'ASC', |
|
|
}); |
|
|
}); |
|
|
//var param; |
|
|
//var param; |
|
@@ -467,7 +468,7 @@ var bootstrap = function ($, learun) { |
|
|
//$("#gridtable").empty(); |
|
|
//$("#gridtable").empty(); |
|
|
//$("#gridtable")[0].dfop = undefined; |
|
|
//$("#gridtable")[0].dfop = undefined; |
|
|
//if (selectedParent.BuildType == undefined || selectedParent.BuildType === "3") { |
|
|
//if (selectedParent.BuildType == undefined || selectedParent.BuildType === "3") { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//} else { |
|
|
//} else { |
|
|
// //lrAuthorizeJfGridLei |
|
|
// //lrAuthorizeJfGridLei |
|
|
// $('#gridtable').jfGrid({ |
|
|
// $('#gridtable').jfGrid({ |
|
@@ -563,7 +564,7 @@ var bootstrap = function ($, learun) { |
|
|
// }); |
|
|
// }); |
|
|
//} |
|
|
//} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
search: function (param) { |
|
|
search: function (param) { |
|
|
param = param || {}; |
|
|
param = param || {}; |
|
|