From 154f7b20e4cbfafab9089f47f73c047fa76cc8e9 Mon Sep 17 00:00:00 2001 From: ndbs Date: Fri, 25 Feb 2022 16:30:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=BF=E8=88=8D=E7=BC=BA=E5=A4=B1=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/AccommodationController.cs | 43 +------------------ .../Accommodation/AccommodationBLL.cs | 19 ++++++++ .../Accommodation/AccommodationIBLL.cs | 1 + 3 files changed, 21 insertions(+), 42 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/AccommodationController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/AccommodationController.cs index fb9ec9227..7dc28ac73 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/AccommodationController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/AccommodationController.cs @@ -207,45 +207,6 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers { return View(); } - - /// - /// 分配专业和班级 - /// - /// - [HttpGet] - public ActionResult FormClass() - { - return View(); - } - /// - /// 分配宿舍 - /// - /// - [HttpGet] - public ActionResult FormRoom() - { - return View(); - } - /// - /// 床位管理 - /// - /// - [HttpGet] - public ActionResult IndexBed() - { - return View(); - } - /// - /// 床位管理 - /// - /// - [HttpGet] - public ActionResult FormBed() - { - return View(); - } - - #endregion #region 获取数据 @@ -531,9 +492,7 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers { accommodationIBLL.SyncData(); return Success("同步成功"); - - - //public ActionResult DormitoryAdd(string a,string ) + } #endregion diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/AccommodationBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/AccommodationBLL.cs index 9abf5aa4d..6e64aeadc 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/AccommodationBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/AccommodationBLL.cs @@ -757,7 +757,26 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement } } + public void SyncData() + { + try + { + accommodationService.SyncData(); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + + } + } #endregion } diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/AccommodationIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/AccommodationIBLL.cs index 8fc202a97..0f72b5a99 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/AccommodationIBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/AccommodationIBLL.cs @@ -97,6 +97,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement void Automatic_allocation_accommodation(bool noNation, bool noPlace); + void SyncData(); object GetDormitoryList(); object GetUnitList(string ParentID); object GetFloorList(string parentID);