|
@@ -50,57 +50,57 @@ var bootstrap = function ($, learun) { |
|
|
$('#lr_refresh').on('click', function () { |
|
|
$('#lr_refresh').on('click', function () { |
|
|
location.reload(); |
|
|
location.reload(); |
|
|
}); |
|
|
}); |
|
|
$('#DeptNo').lrselect({ |
|
|
|
|
|
allowSearch: true, |
|
|
|
|
|
value: "deptno", |
|
|
|
|
|
text: "deptname", |
|
|
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', |
|
|
|
|
|
select: function (item) { |
|
|
|
|
|
if (item) { |
|
|
|
|
|
$('#MajorNo').lrselectRefresh({ |
|
|
|
|
|
allowSearch: true, |
|
|
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', |
|
|
|
|
|
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } |
|
|
|
|
|
}); |
|
|
|
|
|
} else { |
|
|
|
|
|
$('#MajorNo').lrselectRefresh({ |
|
|
|
|
|
allowSearch: true, |
|
|
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', |
|
|
|
|
|
param: { strWhere: "1=1 AND CheckMark=1" } |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//$('#DeptNo').lrselect({ |
|
|
|
|
|
// allowSearch: true, |
|
|
|
|
|
// value: "deptno", |
|
|
|
|
|
// text: "deptname", |
|
|
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', |
|
|
|
|
|
// select: function (item) { |
|
|
|
|
|
// if (item) { |
|
|
|
|
|
// $('#MajorNo').lrselectRefresh({ |
|
|
|
|
|
// allowSearch: true, |
|
|
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', |
|
|
|
|
|
// param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } |
|
|
|
|
|
// }); |
|
|
|
|
|
// } else { |
|
|
|
|
|
// $('#MajorNo').lrselectRefresh({ |
|
|
|
|
|
// allowSearch: true, |
|
|
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', |
|
|
|
|
|
// param: { strWhere: "1=1 AND CheckMark=1" } |
|
|
|
|
|
// }); |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
$('#MajorNo').lrselect({ |
|
|
|
|
|
allowSearch: true, |
|
|
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', |
|
|
|
|
|
value: "majorno", |
|
|
|
|
|
text: "majorname", |
|
|
|
|
|
param: { strWhere: "1=1 AND CheckMark=1" }, |
|
|
|
|
|
select: function (item) { |
|
|
|
|
|
if (item) { |
|
|
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
|
|
allowSearch: true, |
|
|
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
|
|
param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1" } |
|
|
|
|
|
}); |
|
|
|
|
|
} else { |
|
|
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
|
|
allowSearch: true, |
|
|
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
|
|
param: { strWhere: "1=1 AND CheckMark=1" } |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
$('#ClassNo').lrselect({ |
|
|
|
|
|
allowSearch: true, |
|
|
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
|
|
param: { strWhere: "1=1 AND CheckMark=1" }, |
|
|
|
|
|
value: "classno", |
|
|
|
|
|
text: "classname" |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
// } |
|
|
|
|
|
//}); |
|
|
|
|
|
//$('#MajorNo').lrselect({ |
|
|
|
|
|
// allowSearch: true, |
|
|
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', |
|
|
|
|
|
// value: "majorno", |
|
|
|
|
|
// text: "majorname", |
|
|
|
|
|
// param: { strWhere: "1=1 AND CheckMark=1" }, |
|
|
|
|
|
// select: function (item) { |
|
|
|
|
|
// if (item) { |
|
|
|
|
|
// $('#ClassNo').lrselectRefresh({ |
|
|
|
|
|
// allowSearch: true, |
|
|
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
|
|
// param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1" } |
|
|
|
|
|
// }); |
|
|
|
|
|
// } else { |
|
|
|
|
|
// $('#ClassNo').lrselectRefresh({ |
|
|
|
|
|
// allowSearch: true, |
|
|
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
|
|
// param: { strWhere: "1=1 AND CheckMark=1" } |
|
|
|
|
|
// }); |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
//}); |
|
|
|
|
|
//$('#ClassNo').lrselect({ |
|
|
|
|
|
// allowSearch: true, |
|
|
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
|
|
// param: { strWhere: "1=1 AND CheckMark=1" }, |
|
|
|
|
|
// value: "classno", |
|
|
|
|
|
// text: "classname" |
|
|
|
|
|
//}); |
|
|
|
|
|
|
|
|
// 新增 |
|
|
// 新增 |
|
|
$('#lr_add').on('click', function () { |
|
|
$('#lr_add').on('click', function () { |
|
@@ -202,19 +202,19 @@ var bootstrap = function ($, learun) { |
|
|
// }); |
|
|
// }); |
|
|
// } |
|
|
// } |
|
|
//}, |
|
|
//}, |
|
|
{ |
|
|
|
|
|
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']); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
//{ |
|
|
|
|
|
// 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']); |
|
|
|
|
|
// } |
|
|
|
|
|
// }); |
|
|
|
|
|
// } |
|
|
|
|
|
//}, |
|
|
{ |
|
|
{ |
|
|
label: "宿舍楼", name: "Dormitory", width: 100, align: "left", |
|
|
label: "宿舍楼", name: "Dormitory", width: 100, align: "left", |
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|