|
|
@@ -62,10 +62,10 @@ var bootstrap = function ($, learun) { |
|
|
|
//}); |
|
|
|
|
|
|
|
$('#NoDistribution').lrRadioCheckbox({ |
|
|
|
type: 'checkbox', |
|
|
|
type: 'checkbox', |
|
|
|
code: 'NoDistribution' |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
$('#Distribution').lrRadioCheckbox({ |
|
|
|
type: 'checkbox', |
|
|
|
code: 'NoDistribution' |
|
|
@@ -260,14 +260,13 @@ var bootstrap = function ($, learun) { |
|
|
|
if (arr.some(x => x != '4')) { |
|
|
|
return learun.alert.warning("只能选择宿舍进行分配!"); |
|
|
|
} |
|
|
|
var arrDept = Dept.split(','); |
|
|
|
if (arrDept.some(function (value, index) { |
|
|
|
return value.length === 0; |
|
|
|
})) { |
|
|
|
return learun.alert.warning("选中记录包含未分配系的数据!"); |
|
|
|
} |
|
|
|
|
|
|
|
var arrDept = Dept.split(','); |
|
|
|
if (keyValue.indexOf(',') > 0) { |
|
|
|
if (arrDept.some(function(value, index) { |
|
|
|
return value.length == 0; |
|
|
|
})) { |
|
|
|
return learun.alert.warning("选中记录包含未分配专业的数据!"); |
|
|
|
} |
|
|
|
if (arrDept.some(function (value, index) { |
|
|
|
return value != arrDept[0]; |
|
|
|
})) { |
|
|
@@ -275,7 +274,7 @@ var bootstrap = function ($, learun) { |
|
|
|
} |
|
|
|
} |
|
|
|
learun.layerForm({ |
|
|
|
id: 'formClass', |
|
|
|
id: 'formDept', |
|
|
|
title: '分配专业班级', |
|
|
|
url: top.$.rootUrl + '/LogisticsManagement/Accommodation/FormClass?keyValue=' + keyValue + '&Dept=' + arrDept[0], |
|
|
|
width: 400, |
|
|
@@ -285,37 +284,6 @@ var bootstrap = function ($, learun) { |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
//分配宿舍 |
|
|
|
$("#lr_Bed").on("click", function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID'); |
|
|
|
var Sex = $('#gridtable').jfGridValue('Sex'); |
|
|
|
var BuildType = $('#gridtable').jfGridValue('BuildType'); |
|
|
|
var Name = $('#gridtable').jfGridValue('Name'); |
|
|
|
var Class = $('#gridtable').jfGridValue('Class'); |
|
|
|
var arr = BuildType.split(','); |
|
|
|
if (arr.some(x => x != '4')) { |
|
|
|
return learun.alert.warning("只能选择宿舍进行分配!"); |
|
|
|
} |
|
|
|
if (keyValue.indexOf(',') != -1) { |
|
|
|
return learun.alert.warning("只能选择一条记录进行分配!"); |
|
|
|
} |
|
|
|
if (Class.length == 0) { |
|
|
|
return learun.alert.warning("请先分配班级!"); |
|
|
|
} |
|
|
|
learun.layerForm({ |
|
|
|
id: 'formRoom', |
|
|
|
title: '分配宿舍--' + Name, |
|
|
|
url: top.$.rootUrl + '/LogisticsManagement/Accommodation/FormRoom?keyValue=' + keyValue + '&Class=' + Class + '&Sex=' + Sex, |
|
|
|
width: 600, |
|
|
|
height: 400, |
|
|
|
callBack: function (id) { |
|
|
|
return top[id].acceptClick(refreshGirdData); |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
//初始化左侧树 |
|
|
|
initTree: function () { |
|
|
@@ -339,273 +307,260 @@ var bootstrap = function ($, learun) { |
|
|
|
if (item.text.indexOf("室") > -1) { |
|
|
|
selectedParent.ChildType = "5"; |
|
|
|
} |
|
|
|
var param = {}; |
|
|
|
|
|
|
|
if (item.title == '1') |
|
|
|
param.ApartmentId = item.value; |
|
|
|
else if (item.title == '2') |
|
|
|
param.UnitId = item.value; |
|
|
|
else if (item.title == '3') |
|
|
|
param.FloorId = item.value; |
|
|
|
|
|
|
|
//page.initGird(); |
|
|
|
//page.search({ ParentID: item.value }); |
|
|
|
page.search(param); |
|
|
|
page.initGird(); |
|
|
|
page.search({ ParentID: item.value }); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 初始化列表 |
|
|
|
initGird: function () { |
|
|
|
//宿舍数据 |
|
|
|
$('#gridtable').jfGrid({ |
|
|
|
url: top.$.rootUrl + '/LogisticsManagement/Accommodation/GetPageList', |
|
|
|
headData: [ |
|
|
|
{ label: "名称", name: "Name", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "宿舍楼", name: "ApartmentName", width: 100, align: "left" |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "单元", name: "UnitName", width: 100, align: "left" |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "楼层", name: "FloorName", width: 100, align: "left" |
|
|
|
}, |
|
|
|
//{ |
|
|
|
// label: "学生", name: "StudentID", 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: 'stuid', |
|
|
|
// callback: function (_data) { |
|
|
|
// callback(_data['stuname']); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// } |
|
|
|
//}, |
|
|
|
{ label: "位置", name: "Address", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "校区", name: "Campus", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
|
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company', |
|
|
|
key: value, |
|
|
|
keyId: 'f_companyid', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['f_fullname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "系", name: "Dept", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', |
|
|
|
key: value, |
|
|
|
keyId: 'deptno', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['deptname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "专业", name: "Major", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', |
|
|
|
key: value, |
|
|
|
keyId: 'majorno', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['majorname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "班级", name: "Class", 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']); |
|
|
|
$("#gridtable").empty(); |
|
|
|
$("#gridtable")[0].dfop = undefined; |
|
|
|
if (selectedParent.BuildType == undefined || selectedParent.BuildType === "3") { |
|
|
|
//宿舍数据 |
|
|
|
$('#gridtable').jfGrid({ |
|
|
|
url: top.$.rootUrl + '/LogisticsManagement/Accommodation/GetPageList', |
|
|
|
headData: [ |
|
|
|
{ label: "名称", name: "Name", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "宿舍楼", name: "ApartmentName", width: 100, align: "left" |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "单元", name: "UnitName", width: 100, align: "left" |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "楼层", name: "FloorName", width: 100, align: "left" |
|
|
|
}, |
|
|
|
//{ |
|
|
|
// label: "学生", name: "StudentID", 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: 'stuid', |
|
|
|
// callback: function (_data) { |
|
|
|
// callback(_data['stuname']); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// } |
|
|
|
//}, |
|
|
|
{ label: "位置", name: "Address", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "校区", name: "Campus", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
|
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company', |
|
|
|
key: value, |
|
|
|
keyId: 'f_companyid', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['f_fullname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "系", name: "Dept", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', |
|
|
|
key: value, |
|
|
|
keyId: 'deptno', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['deptname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "专业", name: "Major", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', |
|
|
|
key: value, |
|
|
|
keyId: 'majorno', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['majorname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "班级", name: "Class", 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']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} }, |
|
|
|
{ |
|
|
|
label: "寝室类型", name: "RoomType", width: 100, align: "left", |
|
|
|
formatter: function (value, row) { |
|
|
|
if (value) { |
|
|
|
return value + '人寝'; |
|
|
|
} else { |
|
|
|
return ''; |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "寝室类型", name: "RoomType", width: 100, align: "left", |
|
|
|
formatter: function (value, row) { |
|
|
|
if (value) { |
|
|
|
return value + '人寝'; |
|
|
|
} else { |
|
|
|
return ''; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "入住人数", name: "CheckInStu", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "性别", name: "Sex", width: 100, align: "left", |
|
|
|
formatter: function (value, row) { |
|
|
|
if (value == '0') |
|
|
|
return '女'; |
|
|
|
else if (value == '1') |
|
|
|
return '男'; |
|
|
|
else |
|
|
|
return ''; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "入住人数", name: "CheckInStu", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "性别", name: "Sex", width: 100, align: "left", |
|
|
|
formatter: function (callback, value, row, op, $cell) { |
|
|
|
if (value == '0') |
|
|
|
return '女'; |
|
|
|
else if (value == '1') |
|
|
|
return '男'; |
|
|
|
else |
|
|
|
return ''; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "负责人", name: "Functionary", width: 100, align: "left" }, |
|
|
|
{ label: "负责人电话", name: "Phone", width: 100, align: "left" }, |
|
|
|
{ label: "备注", name: "Remark", width: 100, align: "left" }, |
|
|
|
], |
|
|
|
mainId: 'ID', |
|
|
|
isPage: true, |
|
|
|
isMultiselect: true, |
|
|
|
sidx: 'CheckInStu desc,ApartmentId asc,UnitId asc ,FloorId asc ', |
|
|
|
//sord: 'ASC', |
|
|
|
isSubGrid: true, // 是否有子表 |
|
|
|
subGridExpanded: function (subContentId, rowItem) { |
|
|
|
$('#' + subContentId).jfGrid({ |
|
|
|
url: top.$.rootUrl + '/LogisticsManagement/Accommodation/GetBedListByRoomId?RoomId=' + rowItem.ID, |
|
|
|
headData: [ |
|
|
|
{ label: "名称", name: "Name", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "学生", name: "StudentID", 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: 'stuid', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['stuname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
], |
|
|
|
mainId: 'ID', |
|
|
|
isPage: false, |
|
|
|
//sidx: 'DNo', |
|
|
|
//sord: 'ASC', |
|
|
|
}); |
|
|
|
//var param; |
|
|
|
//param = param || {}; |
|
|
|
//param.ParentID = rowItem.Id; |
|
|
|
$('#' + subContentId).jfGridSet('reload'); |
|
|
|
}, |
|
|
|
{ label: "负责人", name: "Functionary", width: 100, align: "left" }, |
|
|
|
{ label: "负责人电话", name: "Phone", width: 100, align: "left" }, |
|
|
|
{ label: "备注", name: "Remark", width: 100, align: "left" }, |
|
|
|
], |
|
|
|
mainId: 'ID', |
|
|
|
isPage: true, |
|
|
|
isMultiselect: true, |
|
|
|
sidx: 'CheckInStu asc,ApartmentId asc,UnitId asc ,FloorId asc ', |
|
|
|
//sord: 'ASC', |
|
|
|
isSubGrid: true, // 是否有子表 |
|
|
|
subGridExpanded: function (subContentId, rowItem) { |
|
|
|
$('#' + subContentId).jfGrid({ |
|
|
|
url: top.$.rootUrl + '/LogisticsManagement/Accommodation/GetBedListByRoomId?RoomId=' + rowItem.ID, |
|
|
|
headData: [ |
|
|
|
{ label: "名称", name: "Name", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "学生", name: "StudentID", 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: 'stuid', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['stuname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
], |
|
|
|
mainId: 'ID', |
|
|
|
isPage: false, |
|
|
|
//sidx: 'DNo', |
|
|
|
//sord: 'ASC', |
|
|
|
}); |
|
|
|
//var param; |
|
|
|
//param = param || {}; |
|
|
|
//param.ParentID = rowItem.Id; |
|
|
|
$('#' + subContentId).jfGridSet('reload'); |
|
|
|
}, |
|
|
|
subGridHeight: 250, |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
//$("#gridtable").empty(); |
|
|
|
//$("#gridtable")[0].dfop = undefined; |
|
|
|
//if (selectedParent.BuildType == undefined || selectedParent.BuildType === "3") { |
|
|
|
|
|
|
|
//} else { |
|
|
|
// //lrAuthorizeJfGridLei |
|
|
|
// $('#gridtable').jfGrid({ |
|
|
|
// url: top.$.rootUrl + '/LogisticsManagement/Accommodation/GetPageList', |
|
|
|
// headData: [ |
|
|
|
// { label: "名称", name: "Name", width: 100, align: "left" }, |
|
|
|
// { |
|
|
|
// label: "宿舍楼", name: "ApartmentName", width: 100, align: "left" |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// label: "单元", name: "UnitName", width: 100, align: "left" |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// label: "楼层", name: "FloorName", width: 100, align: "left" |
|
|
|
// }, |
|
|
|
// //{ |
|
|
|
// // label: "学生", name: "StudentID", 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: 'stuid', |
|
|
|
// // callback: function (_data) { |
|
|
|
// // callback(_data['stuname']); |
|
|
|
// // } |
|
|
|
// // }); |
|
|
|
// // } |
|
|
|
// //}, |
|
|
|
// { label: "位置", name: "Address", width: 100, align: "left" }, |
|
|
|
// { |
|
|
|
// label: "校区", name: "Campus", width: 100, align: "left", |
|
|
|
// formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
|
|
|
|
// learun.clientdata.getAsync('custmerData', { |
|
|
|
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company', |
|
|
|
// key: value, |
|
|
|
// keyId: 'f_companyid', |
|
|
|
// callback: function (_data) { |
|
|
|
// callback(_data['f_fullname']); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// }, |
|
|
|
// //{ |
|
|
|
// // label: "系", name: "Dept", width: 100, align: "left", |
|
|
|
// // formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
// // learun.clientdata.getAsync('custmerData', { |
|
|
|
// // url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', |
|
|
|
// // key: value, |
|
|
|
// // keyId: 'deptno', |
|
|
|
// // callback: function (_data) { |
|
|
|
// // callback(_data['deptname']); |
|
|
|
// // } |
|
|
|
// // }); |
|
|
|
// // } |
|
|
|
// //}, |
|
|
|
// //{ |
|
|
|
// // label: "专业", name: "Major", width: 100, align: "left", |
|
|
|
// // formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
// // learun.clientdata.getAsync('custmerData', { |
|
|
|
// // url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', |
|
|
|
// // key: value, |
|
|
|
// // keyId: 'id', |
|
|
|
// // callback: function (_data) { |
|
|
|
// // callback(_data['majorname']); |
|
|
|
// // } |
|
|
|
// // }); |
|
|
|
// // } |
|
|
|
// //}, |
|
|
|
// //{ label: "班级", name: "Class", width: 100, align: "left" }, |
|
|
|
// //{ |
|
|
|
// // label: "性别", name: "Sex", width: 100, align: "left", |
|
|
|
// // formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
// // learun.clientdata.getAsync('dataItem', { |
|
|
|
// // key: value, |
|
|
|
// // code: 'usersex', |
|
|
|
// // callback: function (_data) { |
|
|
|
// // callback(_data.text); |
|
|
|
// // } |
|
|
|
// // }); |
|
|
|
// // } |
|
|
|
// //}, |
|
|
|
// { label: "负责人", name: "Functionary", width: 100, align: "left" }, |
|
|
|
// { label: "负责人电话", name: "Phone", width: 100, align: "left" }, |
|
|
|
// { label: "备注", name: "Remark", width: 100, align: "left" }, |
|
|
|
// ], |
|
|
|
// mainId: 'ID', |
|
|
|
// isPage: true, |
|
|
|
// //isMultiselect: true |
|
|
|
// //sidx: 'ApartmentId asc,UnitId asc ,FloorId asc ', |
|
|
|
// //sord: 'ASC', |
|
|
|
// }); |
|
|
|
//} |
|
|
|
|
|
|
|
subGridHeight: 250, |
|
|
|
}); |
|
|
|
} else { |
|
|
|
//lrAuthorizeJfGridLei |
|
|
|
$('#gridtable').jfGrid({ |
|
|
|
url: top.$.rootUrl + '/LogisticsManagement/Accommodation/GetPageList', |
|
|
|
headData: [ |
|
|
|
{ label: "名称", name: "Name", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "宿舍楼", name: "ApartmentName", width: 100, align: "left" |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "单元", name: "UnitName", width: 100, align: "left" |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "楼层", name: "FloorName", width: 100, align: "left" |
|
|
|
}, |
|
|
|
//{ |
|
|
|
// label: "学生", name: "StudentID", 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: 'stuid', |
|
|
|
// callback: function (_data) { |
|
|
|
// callback(_data['stuname']); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// } |
|
|
|
//}, |
|
|
|
{ label: "位置", name: "Address", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "校区", name: "Campus", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
|
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company', |
|
|
|
key: value, |
|
|
|
keyId: 'f_companyid', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['f_fullname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
//{ |
|
|
|
// label: "系", name: "Dept", width: 100, align: "left", |
|
|
|
// formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
// learun.clientdata.getAsync('custmerData', { |
|
|
|
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', |
|
|
|
// key: value, |
|
|
|
// keyId: 'deptno', |
|
|
|
// callback: function (_data) { |
|
|
|
// callback(_data['deptname']); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// } |
|
|
|
//}, |
|
|
|
//{ |
|
|
|
// label: "专业", name: "Major", width: 100, align: "left", |
|
|
|
// formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
// learun.clientdata.getAsync('custmerData', { |
|
|
|
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', |
|
|
|
// key: value, |
|
|
|
// keyId: 'id', |
|
|
|
// callback: function (_data) { |
|
|
|
// callback(_data['majorname']); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// } |
|
|
|
//}, |
|
|
|
//{ label: "班级", name: "Class", width: 100, align: "left" }, |
|
|
|
//{ |
|
|
|
// label: "性别", name: "Sex", width: 100, align: "left", |
|
|
|
// formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
// learun.clientdata.getAsync('dataItem', { |
|
|
|
// key: value, |
|
|
|
// code: 'usersex', |
|
|
|
// callback: function (_data) { |
|
|
|
// callback(_data.text); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// } |
|
|
|
//}, |
|
|
|
{ label: "负责人", name: "Functionary", width: 100, align: "left" }, |
|
|
|
{ label: "负责人电话", name: "Phone", width: 100, align: "left" }, |
|
|
|
{ label: "备注", name: "Remark", width: 100, align: "left" }, |
|
|
|
], |
|
|
|
mainId: 'ID', |
|
|
|
isPage: true, |
|
|
|
//isMultiselect: true |
|
|
|
//sidx: 'ApartmentId asc,UnitId asc ,FloorId asc ', |
|
|
|
//sord: 'ASC', |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
//page.search(); |
|
|
|
}, |
|
|
|
search: function (param) { |
|
|
|
//console.log(param); |
|
|
|
|
|
|
|
param = param || {}; |
|
|
|
param.SqlParameter = " AND t.BuildType ='4' "; |
|
|
|
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); |
|
|
|
} |
|
|
|
}; |
|
|
|