|
|
@@ -18,7 +18,7 @@ var bootstrap = function ($, learun) { |
|
|
|
bind: function () { |
|
|
|
$('#DormitoryBuildId').lrselect({ |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable', |
|
|
|
param: { code: 'DormitoryInfo', strWhere: "ParentID='" + ParentId + "' and BuildType='5' order by name" }, |
|
|
|
param: { code: 'DormitoryInfo', strWhere: "ParentID='" + ParentId + "' and BuildType='5' and (StudentID is not null and len(StudentID)>0) order by name" }, |
|
|
|
text: 'name', |
|
|
|
value: 'id', |
|
|
|
allowSearch: true |
|
|
@@ -48,7 +48,7 @@ var bootstrap = function ($, learun) { |
|
|
|
var postData = { |
|
|
|
strEntity: JSON.stringify($('body').lrGetFormData()) |
|
|
|
}; |
|
|
|
$.lrSaveForm(top.$.rootUrl + '/LogisticsManagement/DormitoryReturn/SaveForm?keyValue=' + keyValue, postData, function (res) { |
|
|
|
$.lrSaveForm(top.$.rootUrl + '/LogisticsManagement/DormitoryReturn/SaveData?keyValue=' + keyValue, postData, function (res) { |
|
|
|
// 保存成功后才回调 |
|
|
|
if (!!callBack) { |
|
|
|
callBack(); |
|
|
|