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

宿舍管理--床位排序

临城职教中职
zhangli 2 роки тому
джерело
коміт
aa5107f7dc
3 змінених файлів з 10 додано та 12 видалено
  1. +8
    -7
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/Index.js
  2. +1
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/IndexBed.js
  3. +1
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/IndexDistribution.js

+ 8
- 7
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/Index.js Переглянути файл

@@ -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 || {};


+ 1
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/IndexBed.js Переглянути файл

@@ -85,9 +85,7 @@ var bootstrap = function ($, learun) {
], ],
mainId: 'ID', mainId: 'ID',
isPage: false, isPage: false,
//isMultiselect: true,
//sidx: 'ApartmentId asc,UnitId asc ,FloorId asc ',
//sord: 'ASC',
sidx: ' REPLACE(Name,\'床\',\'\')'


}); });
page.search(); page.search();


+ 1
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/IndexDistribution.js Переглянути файл

@@ -490,8 +490,7 @@ var bootstrap = function ($, learun) {
], ],
mainId: 'ID', mainId: 'ID',
isPage: false, isPage: false,
//sidx: 'DNo',
//sord: 'ASC',
sidx: ' REPLACE(Name,\'床\',\'\')'
}); });
//var param; //var param;
//param = param || {}; //param = param || {};


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