|
|
@@ -243,7 +243,7 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers |
|
|
|
[AjaxOnly] |
|
|
|
public ActionResult GetBedListByRoomId(string RoomId) |
|
|
|
{ |
|
|
|
var data = accommodationIBLL.GetBedListByRoomId(RoomId).OrderBy(x => x.DNo); |
|
|
|
var data = accommodationIBLL.GetBedListByRoomId(RoomId).OrderBy(x => Convert.ToInt32(x.DNo)); |
|
|
|
return Success(data); |
|
|
|
} |
|
|
|
/// <summary> |
|
|
@@ -434,6 +434,11 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers |
|
|
|
public ActionResult SaveBedForm(string keyValue, string ParentID, string strEntity) |
|
|
|
{ |
|
|
|
Acc_DormitoryBuildEntity entity = strEntity.ToObject<Acc_DormitoryBuildEntity>(); |
|
|
|
if (entity.Name.Contains("床")) |
|
|
|
{ |
|
|
|
entity.DNo = entity.Name.Replace("床", ""); |
|
|
|
} |
|
|
|
|
|
|
|
accommodationIBLL.SaveBedEntity(keyValue, ParentID, entity); |
|
|
|
return Success("保存成功!"); |
|
|
|
} |
|
|
|