|
|
@@ -207,27 +207,6 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers |
|
|
|
{ |
|
|
|
return View(); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 分配专业和班级 |
|
|
|
/// </summary> |
|
|
|
/// <returns></returns> |
|
|
|
[HttpGet] |
|
|
|
public ActionResult FormClass() |
|
|
|
{ |
|
|
|
return View(); |
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// 分配宿舍 |
|
|
|
/// </summary> |
|
|
|
/// <returns></returns> |
|
|
|
[HttpGet] |
|
|
|
public ActionResult FormRoom() |
|
|
|
{ |
|
|
|
return View(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#endregion |
|
|
|
|
|
|
|
#region 获取数据 |
|
|
@@ -397,6 +376,18 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers |
|
|
|
return Success("删除成功!"); |
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// 删除 |
|
|
|
/// <param name="keyValue">主键</param> |
|
|
|
/// <summary> |
|
|
|
/// <returns></returns> |
|
|
|
[HttpPost] |
|
|
|
[AjaxOnly] |
|
|
|
public ActionResult DeleteBed(string keyValue,string ParentID) |
|
|
|
{ |
|
|
|
accommodationIBLL.DeleteBed(keyValue, ParentID); |
|
|
|
return Success("删除成功!"); |
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// 保存实体数据(新增、修改) |
|
|
|
/// <param name="keyValue">主键</param> |
|
|
|
/// <summary> |
|
|
@@ -410,7 +401,21 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers |
|
|
|
accommodationIBLL.SaveEntity(keyValue, entity); |
|
|
|
return Success("保存成功!"); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 保存实体数据(新增、修改) |
|
|
|
/// <param name="keyValue">主键</param> |
|
|
|
/// <summary> |
|
|
|
/// <returns></returns> |
|
|
|
[HttpPost] |
|
|
|
[ValidateAntiForgeryToken] |
|
|
|
[AjaxOnly] |
|
|
|
public ActionResult SaveBedForm(string keyValue,string ParentID, string strEntity) |
|
|
|
{ |
|
|
|
Acc_DormitoryBuildEntity entity = strEntity.ToObject<Acc_DormitoryBuildEntity>(); |
|
|
|
accommodationIBLL.SaveBedEntity(keyValue, ParentID, entity); |
|
|
|
return Success("保存成功!"); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 寝室分配系 |
|
|
|
/// <param name="keyValue">主键</param> |
|
|
@@ -439,6 +444,7 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers |
|
|
|
accommodationIBLL.SaveRoom(RoomId, list); |
|
|
|
return Success("保存成功!"); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 学生宿舍的单元、楼层、房间、床位添加 |
|
|
|
/// </summary> |
|
|
@@ -450,11 +456,6 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers |
|
|
|
[AjaxOnly] |
|
|
|
public ActionResult DormitoryAdd(string keyValue, string strEntity) |
|
|
|
{ |
|
|
|
//dynamic entity = JsonConvert.DeserializeObject(strEntity); |
|
|
|
//var ElementNum = entity.ElementNum; |
|
|
|
//var FloorNum = entity.FloorNum; |
|
|
|
//var RoomNum = entity.RoomNUm; |
|
|
|
//var BedNum = entity.BedNum; |
|
|
|
JObject jsonEntity = JObject.Parse(strEntity); |
|
|
|
|
|
|
|
var elementNum = int.Parse(jsonEntity["ElementNum"].ToString()); |
|
|
@@ -491,9 +492,7 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers |
|
|
|
{ |
|
|
|
accommodationIBLL.SyncData(); |
|
|
|
return Success("同步成功"); |
|
|
|
|
|
|
|
|
|
|
|
//public ActionResult DormitoryAdd(string a,string ) |
|
|
|
} |
|
|
|
|
|
|
|
#endregion |
|
|
|
|
|
|
|