diff --git a/EOM.TSHotelManagement.Application/Business/Asset/AssetService.cs b/EOM.TSHotelManagement.Application/Business/Asset/AssetService.cs index c039351590f8a6025f005dd6dac20139c8a37d93..65974821b1bc84e48f327eb6fea82ba3deb48acd 100644 --- a/EOM.TSHotelManagement.Application/Business/Asset/AssetService.cs +++ b/EOM.TSHotelManagement.Application/Business/Asset/AssetService.cs @@ -71,11 +71,15 @@ namespace EOM.TSHotelManagement.Application { try { + if (assetRepository.IsAny(a => a.AssetNumber == asset.AssetNumber)) + { + return new BaseOutputDto() { Message = LocalizationHelper.GetLocalizedString("the asset number already exists.", "资产编号已存在"), StatusCode = StatusCodeConstants.InternalServerError }; + } var result = assetRepository.Insert(EntityMapper.Map(asset)); } catch (Exception ex) { - return new BaseOutputDto() { Message = LocalizationHelper.GetLocalizedString(ex.Message,ex.Message),StatusCode = StatusCodeConstants.InternalServerError }; + return new BaseOutputDto() { Message = LocalizationHelper.GetLocalizedString(ex.Message, ex.Message), StatusCode = StatusCodeConstants.InternalServerError }; } return new BaseOutputDto(); } @@ -100,16 +104,16 @@ namespace EOM.TSHotelManagement.Application int totalCount = 0; if (asset.Page != 0 && asset.PageSize != 0) { - cs.listSource = EntityMapper.MapList(assetRepository.AsQueryable().Where(where.ToExpression()).OrderBy(a => a.AssetNumber) + cs.listSource = EntityMapper.MapList(assetRepository.AsQueryable().Where(where.ToExpression()).OrderBy(a => a.AssetNumber) .ToPageList((int)asset.Page, (int)asset.PageSize, ref totalCount)); cs.total = totalCount; } cs.listSource.ForEach(source => { - var dept = depts.FirstOrDefault(a => a.DepartmentNumber.Equals(source.DepartmentCode)); + var dept = depts.SingleOrDefault(a => a.DepartmentNumber.Equals(source.DepartmentCode)); source.DepartmentName = dept == null ? "" : dept.DepartmentName; - var worker = employees.FirstOrDefault(a => a.EmployeeId.Equals(source.AcquiredByEmployeeId)); + var worker = employees.SingleOrDefault(a => a.EmployeeId.Equals(source.AcquiredByEmployeeId)); source.AcquiredByEmployeeName = worker == null ? "" : worker.EmployeeName; source.AssetValueFormatted = source.AssetValue == 0 ? "" : Decimal.Parse(source.AssetValue.ToString()).ToString("#,##0.00").ToString(); @@ -128,6 +132,10 @@ namespace EOM.TSHotelManagement.Application { try { + if (!assetRepository.IsAny(a => a.AssetNumber == asset.AssetNumber)) + { + return new BaseOutputDto() { Message = LocalizationHelper.GetLocalizedString("asset number does not exist.", "资产编号不存在"), StatusCode = StatusCodeConstants.InternalServerError }; + } assetRepository.Update(EntityMapper.Map(asset)); } catch (Exception ex) @@ -146,6 +154,10 @@ namespace EOM.TSHotelManagement.Application { try { + if (!assetRepository.IsAny(a => a.AssetNumber == asset.AssetNumber)) + { + return new BaseOutputDto() { Message = LocalizationHelper.GetLocalizedString("asset number does not exist.", "资产编号不存在"), StatusCode = StatusCodeConstants.InternalServerError }; + } assetRepository.Update(EntityMapper.Map(asset)); } catch (Exception ex) diff --git a/EOM.TSHotelManagement.Application/Business/Asset/IAssetService.cs b/EOM.TSHotelManagement.Application/Business/Asset/IAssetService.cs index bb66f3e87fc67e40022010665f11d11d0b79854d..09129a4afc23138c8d3e6a827094ad7145bfcf65 100644 --- a/EOM.TSHotelManagement.Application/Business/Asset/IAssetService.cs +++ b/EOM.TSHotelManagement.Application/Business/Asset/IAssetService.cs @@ -22,7 +22,6 @@ * */ using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; namespace EOM.TSHotelManagement.Application { diff --git a/EOM.TSHotelManagement.Application/Business/Customer/CustomerService.cs b/EOM.TSHotelManagement.Application/Business/Customer/CustomerService.cs index ec12ff0883d0bbf8c1766bb576a60598628555be..3c747860e6d255fe004ce03a128b783ebbb9b3b9 100644 --- a/EOM.TSHotelManagement.Application/Business/Customer/CustomerService.cs +++ b/EOM.TSHotelManagement.Application/Business/Customer/CustomerService.cs @@ -21,18 +21,14 @@ *SOFTWARE. * */ -using EOM.TSHotelManagement.Shared; +using EOM.TSHotelManagement.Common.Contract; using EOM.TSHotelManagement.Common.Core; +using EOM.TSHotelManagement.Common.Util; using EOM.TSHotelManagement.EntityFramework; +using EOM.TSHotelManagement.Shared; using jvncorelib.EntityLib; -using SqlSugar; -using System.ComponentModel; -using EOM.TSHotelManagement.Common; using Microsoft.AspNetCore.DataProtection; -using jvncorelib.EncryptorLib; -using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Util; -using System.Linq; +using SqlSugar; namespace EOM.TSHotelManagement.Application { @@ -96,7 +92,11 @@ namespace EOM.TSHotelManagement.Application custo.CustomerPhoneNumber = NewTel; try { - var result = custoRepository.Insert(EntityMapper.Map(custo)); + if (custoRepository.IsAny(a => a.CustomerNumber == custo.CustomerNumber)) + { + return new BaseOutputDto() { Message = LocalizationHelper.GetLocalizedString("customer number already exist.", "客户编号已存在"), StatusCode = StatusCodeConstants.InternalServerError }; + } + var result = custoRepository.Insert(EntityMapper.Map(custo)); } catch (Exception ex) { @@ -120,6 +120,10 @@ namespace EOM.TSHotelManagement.Application custo.CustomerPhoneNumber = NewTel; try { + if (!custoRepository.IsAny(a => a.CustomerNumber == custo.CustomerNumber)) + { + return new BaseOutputDto() { Message = LocalizationHelper.GetLocalizedString("customer number does not exist.", "客户编号不存在"), StatusCode = StatusCodeConstants.InternalServerError }; + } var result = custoRepository.Update(EntityMapper.Map(custo)); if (result) @@ -145,6 +149,10 @@ namespace EOM.TSHotelManagement.Application /// public BaseOutputDto DelCustomerInfo(DeleteCustomerInputDto custo) { + if (!custoRepository.IsAny(a => a.CustomerNumber == custo.CustomerNumber)) + { + return new BaseOutputDto() { Message = LocalizationHelper.GetLocalizedString("customer number does not exist.", "客户编号不存在"), StatusCode = StatusCodeConstants.InternalServerError }; + } var occupied = Convert.ToInt32(RoomState.Occupied); var isOccupied = custoRepository.Change().IsAny(a => a.CustomerNumber == custo.CustomerNumber && a.RoomStateId == occupied); var haveUnSettle = custoRepository.Change().IsAny(a => a.CustomerNumber == custo.CustomerNumber && a.SettlementStatus == SpendConsts.UnSettle); @@ -179,6 +187,10 @@ namespace EOM.TSHotelManagement.Application { try { + if (!custoRepository.IsAny(a => a.CustomerNumber == updateCustomerInputDto.CustomerNumber)) + { + return new BaseOutputDto() { Message = LocalizationHelper.GetLocalizedString("customer number does not exist.", "客户编号不存在"), StatusCode = StatusCodeConstants.InternalServerError }; + } var result = custoRepository.Update(EntityMapper.Map(updateCustomerInputDto)); if (result) @@ -306,15 +318,15 @@ namespace EOM.TSHotelManagement.Application } //性别类型 - var sexType = genders.FirstOrDefault(a => a.Id == source.CustomerGender); + var sexType = genders.SingleOrDefault(a => a.Id == source.CustomerGender); source.GenderName = sexType?.Description ?? ""; //证件类型 - var passPortType = passPortTypes.FirstOrDefault(a => a.PassportId == source.PassportId); + var passPortType = passPortTypes.SingleOrDefault(a => a.PassportId == source.PassportId); source.PassportName = passPortType?.PassportName ?? ""; //客户类型 - var custoType = custoTypes.FirstOrDefault(a => a.CustomerType == source.CustomerType); + var custoType = custoTypes.SingleOrDefault(a => a.CustomerType == source.CustomerType); source.CustomerTypeName = custoType?.CustomerTypeName ?? ""; }); @@ -324,92 +336,6 @@ namespace EOM.TSHotelManagement.Application return oSelectCustoAllDto; } - /// - /// 查询指定客户信息 - /// - /// - //public ListOutputDto SelectCustomers(Customer custo) - //{ - // var customers = new ListOutputDto(); - - // var where = Expressionable.Create(); - - // //查询出所有性别类型 - // List sexTypes = new List(); - // sexTypes = sexTypeRepository.GetList(); - // //查询出所有证件类型 - // List passPortTypes = new List(); - // passPortTypes = passPortTypeRepository.GetList(); - // //查询出所有客户类型 - // List custoTypes = new List(); - // custoTypes = custoTypeRepository.GetList(); - // //查询出所有客户信息 - // List custos = new List(); - - // if (!custo.CustomerNumber.IsNullOrEmpty()) - // { - // where = where.And(a => a.CustomerNumber.Equals(custo.CustomerNumber)); - // } - // if (!custo.CustomerName.IsNullOrEmpty()) - // { - // where = where.And(a => a.CustomerName.Contains(custo.CustomerName)); - // } - // if (!custo.CustomerPhoneNumber.IsNullOrEmpty()) - // { - // where = where.And(a => a.CustomerPhoneNumber.Contains(custo.CustomerPhoneNumber)); - // } - // if (!custo.CustomerAddress.IsNullOrEmpty()) - // { - // where = where.And(a => a.CustomerAddress.Contains(custo.CustomerAddress)); - // } - // if (!custo.PassportID.IsNullOrEmpty()) - // { - // where = where.And(a => a.PassportID.Contains(custo.PassportID)); - // } - // if (!custo.IsDelete.IsNullOrEmpty()) - // { - // where = where.And(a => a.IsDelete == custo.IsDelete); - // } - - // int totalCount = 0; - // if (custo.Page != 0 && custo.PageSize != 0) - // { - // customers.listSource = custoRepository.AsQueryable().Where(where.ToExpression()).OrderBy(a => a.CustomerNumber) - // .ToPageList((int)custo.Page, (int)custo.PageSize, ref totalCount); - // customers.total = totalCount; - // } - - // customers.listSource.ForEach(source => - // { - // try - // { - // //解密身份证号码 - // var sourceStr = source.PassportID.Contains('·') ? encrypt.Decryption(source.PassportID) : dataProtector.Unprotect(source.PassportID); - // source.PassportID = sourceStr; - // //解密联系方式 - // var sourceTelStr = source.CustomerPhoneNumber.Contains('·') ? encrypt.Decryption(source.CustomerPhoneNumber) : dataProtector.Unprotect(source.CustomerPhoneNumber); - // source.CustomerPhoneNumber = sourceTelStr; - // } - // catch (Exception) - // { - // source.PassportID = source.PassportID; - // source.CustomerPhoneNumber = source.CustomerPhoneNumber; - // } - // //性别类型 - // var sexType = sexTypes.FirstOrDefault(a => a.GenderId == source.CustomerGender); - // source.GenderName = sexType.GenderName.IsNullOrEmpty() ? "" : sexType.GenderName; - // //证件类型 - // var passPortType = passPortTypes.FirstOrDefault(a => a.PassportId == source.PassportType); - // source.PassportTypeName = passPortType.PassportName.IsNullOrEmpty() ? "" : passPortType.PassportName; - // //客户类型 - // var custoType = custoTypes.FirstOrDefault(a => a.CustomerType == source.CustomerType); - // source.CustomerTypeName = custoType.CustomerTypeName.IsNullOrEmpty() ? "" : custoType.CustomerTypeName; - // }); - - // return customers; - - //} - /// /// 查询指定客户信息 /// @@ -464,13 +390,13 @@ namespace EOM.TSHotelManagement.Application customer.CustomerPhoneNumber = customer.CustomerPhoneNumber; } //性别类型 - var sexType = genders.FirstOrDefault(a => a.Id == customer.CustomerGender); + var sexType = genders.SingleOrDefault(a => a.Id == customer.CustomerGender); customer.GenderName = sexType.Description.IsNullOrEmpty() ? "" : sexType.Description; //证件类型 - var passPortType = passPortTypes.FirstOrDefault(a => a.PassportId == customer.PassportId); + var passPortType = passPortTypes.SingleOrDefault(a => a.PassportId == customer.PassportId); customer.PassportName = passPortType.PassportName.IsNullOrEmpty() ? "" : passPortType.PassportName; //客户类型 - var custoType = custoTypes.FirstOrDefault(a => a.CustomerType == customer.CustomerType); + var custoType = custoTypes.SingleOrDefault(a => a.CustomerType == customer.CustomerType); customer.CustomerTypeName = custoType.CustomerTypeName.IsNullOrEmpty() ? "" : custoType.CustomerTypeName; singleOutputDto.Source = EntityMapper.Map(customer); @@ -478,35 +404,5 @@ namespace EOM.TSHotelManagement.Application return singleOutputDto; } - /// - /// 根据客户编号查询客户信息 - /// - /// - /// - //public Customer SelectCardInfoByCustoNo(string CustoNo) - //{ - // Customer c = custoRepository.GetSingle(a => a.CustomerNumber.Equals(CustoNo)); - // if (c.IsNullOrEmpty()) - // { - // return null; - // } - // //性别类型 - // var sexType = sexTypeRepository.GetSingle(a => a.GenderId == c.CustomerGender); - // c.GenderName = sexType.GenderName.IsNullOrEmpty() ? "" : sexType.GenderName; - // //证件类型 - // var passPortType = passPortTypeRepository.GetSingle(a => a.PassportId == c.PassportType); - // c.PassportTypeName = passPortType.PassportName.IsNullOrEmpty() ? "" : passPortType.PassportName; - // //客户类型 - // var custoType = custoTypeRepository.GetSingle(a => a.CustomerType == c.CustomerType); - // c.CustomerTypeName = custoType.CustomerTypeName.IsNullOrEmpty() ? "" : custoType.CustomerTypeName; - // //解密身份证号码 - // var sourceStr = c.PassportID.Contains("·") ? encrypt.Decryption(c.PassportID) : c.PassportID; - // c.PassportID = sourceStr; - // //解密联系方式 - // var sourceTelStr = c.CustomerPhoneNumber.Contains("·") ? encrypt.Decryption(c.CustomerPhoneNumber) : c.CustomerPhoneNumber; - // c.CustomerPhoneNumber = sourceTelStr; - // return c; - //} - } } diff --git a/EOM.TSHotelManagement.Application/Business/EnergyManagement/EnergyManagementService.cs b/EOM.TSHotelManagement.Application/Business/EnergyManagement/EnergyManagementService.cs index bb4610c7939b21233fb29083bed7a5a424bfca28..675de59aaab2b5edb2aa502f5c78a0ec6e30b699 100644 --- a/EOM.TSHotelManagement.Application/Business/EnergyManagement/EnergyManagementService.cs +++ b/EOM.TSHotelManagement.Application/Business/EnergyManagement/EnergyManagementService.cs @@ -27,7 +27,6 @@ using EOM.TSHotelManagement.Common.Util; using EOM.TSHotelManagement.EntityFramework; using jvncorelib.EntityLib; using SqlSugar; -using System.Linq.Expressions; namespace EOM.TSHotelManagement.Application { @@ -82,7 +81,7 @@ namespace EOM.TSHotelManagement.Application var count = 0; var listSource = wtiRepository.AsQueryable() - .Where(where.ToExpression()).ToPageList(readEnergyManagementInputDto.Page,readEnergyManagementInputDto.PageSize,ref count); + .Where(where.ToExpression()).ToPageList(readEnergyManagementInputDto.Page, readEnergyManagementInputDto.PageSize, ref count); var readEnergies = EntityMapper.MapList(listSource); @@ -98,6 +97,10 @@ namespace EOM.TSHotelManagement.Application { try { + if (wtiRepository.IsAny(a => a.InformationId == w.InformationNumber)) + { + return new BaseOutputDto() { Message = LocalizationHelper.GetLocalizedString("information number already exist.", "信息编号已存在"), StatusCode = StatusCodeConstants.InternalServerError }; + } var result = wtiRepository.Insert(EntityMapper.Map(w)); } catch (Exception ex) @@ -118,6 +121,10 @@ namespace EOM.TSHotelManagement.Application { try { + if (!wtiRepository.IsAny(a => a.InformationId == w.InformationId)) + { + return new BaseOutputDto() { Message = LocalizationHelper.GetLocalizedString("information number does not exist.", "信息编号不存在"), StatusCode = StatusCodeConstants.InternalServerError }; + } var result = wtiRepository.Update(EntityMapper.Map(w)); if (result) @@ -144,7 +151,7 @@ namespace EOM.TSHotelManagement.Application { try { - var result = wtiRepository.Update(EntityMapper.Map(hydroelectricity)); + var result = wtiRepository.Update(EntityMapper.Map(hydroelectricity)); if (result) { diff --git a/EOM.TSHotelManagement.Application/Business/EnergyManagement/IEnergyManagementService.cs b/EOM.TSHotelManagement.Application/Business/EnergyManagement/IEnergyManagementService.cs index ba981f7778c52cd9b1a216e75924cf28c640d985..3ca644def57f681232d26f2b7d8ab0d46c04398b 100644 --- a/EOM.TSHotelManagement.Application/Business/EnergyManagement/IEnergyManagementService.cs +++ b/EOM.TSHotelManagement.Application/Business/EnergyManagement/IEnergyManagementService.cs @@ -22,7 +22,6 @@ * */ using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; /// /// 水电信息接口 diff --git a/EOM.TSHotelManagement.Application/Business/PromotionContent/IPromotionContentService.cs b/EOM.TSHotelManagement.Application/Business/PromotionContent/IPromotionContentService.cs index fe52c39a86f1ce18fd0f59ce50d850efd45be7e0..0746465a40eb353531eb46b743b369d06831e27d 100644 --- a/EOM.TSHotelManagement.Application/Business/PromotionContent/IPromotionContentService.cs +++ b/EOM.TSHotelManagement.Application/Business/PromotionContent/IPromotionContentService.cs @@ -22,7 +22,6 @@ * */ using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; namespace EOM.TSHotelManagement.Application { @@ -42,5 +41,26 @@ namespace EOM.TSHotelManagement.Application /// /// ListOutputDto SelectPromotionContents(); + + /// + /// 添加宣传联动内容 + /// + /// + /// + BaseOutputDto AddPromotionContent(CreatePromotionContentInputDto createPromotionContentInputDto); + + /// + /// 删除宣传联动内容 + /// + /// + /// + BaseOutputDto DeletePromotionContent(DeletePromotionContentInputDto deletePromotionContentInputDto); + + /// + /// 更新宣传联动内容 + /// + /// + /// + BaseOutputDto UpdatePromotionContent(UpdatePromotionContentInputDto updatePromotionContentInputDto); } } \ No newline at end of file diff --git a/EOM.TSHotelManagement.Application/Business/PromotionContent/PromotionContentService.cs b/EOM.TSHotelManagement.Application/Business/PromotionContent/PromotionContentService.cs index 82d4b402935c6d312c66e9d5369fc09ed16d74ab..e310c8c18469dc557850518411c3238accec8b7f 100644 --- a/EOM.TSHotelManagement.Application/Business/PromotionContent/PromotionContentService.cs +++ b/EOM.TSHotelManagement.Application/Business/PromotionContent/PromotionContentService.cs @@ -58,7 +58,7 @@ namespace EOM.TSHotelManagement.Application var listSource = fontsRepository.AsQueryable().ToPageList(readPromotionContentInputDto.Page, readPromotionContentInputDto.PageSize, ref count); - fonts.listSource = EntityMapper.MapList(listSource); + fonts.listSource = EntityMapper.MapList(listSource); fonts.total = count; return fonts; } @@ -74,5 +74,66 @@ namespace EOM.TSHotelManagement.Application fonts.listSource = EntityMapper.MapList(listSource); return fonts; } + + /// + /// 添加宣传联动内容 + /// + /// + /// + public BaseOutputDto AddPromotionContent(CreatePromotionContentInputDto createPromotionContentInputDto) + { + try + { + fontsRepository.Insert(EntityMapper.Map(createPromotionContentInputDto)); + } + catch (Exception ex) + { + LogHelper.LogError(LocalizationHelper.GetLocalizedString("Insert Promotion Content Failed", "宣传联动内容添加失败"), ex); + return new BaseOutputDto(StatusCodeConstants.InternalServerError, LocalizationHelper.GetLocalizedString("Insert Promotion Content Failed", "宣传联动内容添加失败")); + } + + return new BaseOutputDto(StatusCodeConstants.Success, LocalizationHelper.GetLocalizedString("Insert Promotion Content Success", "宣传联动内容添加成功")); + } + + /// + /// 删除宣传联动内容 + /// + /// + /// + public BaseOutputDto DeletePromotionContent(DeletePromotionContentInputDto deletePromotionContentInputDto) + { + try + { + fontsRepository.Update(EntityMapper.Map(deletePromotionContentInputDto)); + } + catch (Exception ex) + { + LogHelper.LogError(LocalizationHelper.GetLocalizedString("Delete Promotion Content Failed", "宣传联动内容删除失败"), ex); + return new BaseOutputDto(StatusCodeConstants.InternalServerError, LocalizationHelper.GetLocalizedString("Delete Promotion Content Failed", "宣传联动内容删除失败")); + } + + return new BaseOutputDto(StatusCodeConstants.Success, LocalizationHelper.GetLocalizedString("Delete Promotion Content Success", "宣传联动内容删除成功")); + } + + /// + /// 更新宣传联动内容 + /// + /// + /// + public BaseOutputDto UpdatePromotionContent(UpdatePromotionContentInputDto updatePromotionContentInputDto) + { + try + { + fontsRepository.Update(EntityMapper.Map(updatePromotionContentInputDto)); + } + catch (Exception ex) + { + LogHelper.LogError(LocalizationHelper.GetLocalizedString("Update Promotion Content Failed", "宣传联动内容更新失败"), ex); + return new BaseOutputDto(StatusCodeConstants.InternalServerError, LocalizationHelper.GetLocalizedString("Update Promotion Content Failed", "宣传联动内容更新失败")); + } + + return new BaseOutputDto(StatusCodeConstants.Success, LocalizationHelper.GetLocalizedString("Update Promotion Content Success", "宣传联动内容更新成功")); + + } } } diff --git a/EOM.TSHotelManagement.Application/Business/Reser/IReserService.cs b/EOM.TSHotelManagement.Application/Business/Reser/IReserService.cs index 636e6134f7e073a539a536bc406751512a501025..3abca1db99c7bb37c7858d7824e68c0b01c02112 100644 --- a/EOM.TSHotelManagement.Application/Business/Reser/IReserService.cs +++ b/EOM.TSHotelManagement.Application/Business/Reser/IReserService.cs @@ -22,7 +22,6 @@ * */ using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; namespace EOM.TSHotelManagement.Application { diff --git a/EOM.TSHotelManagement.Application/Business/Reser/ReserService.cs b/EOM.TSHotelManagement.Application/Business/Reser/ReserService.cs index b083496517e201abb6ee0ebcefb6cb7ea8383070..b8a04447ac60bbaa04d8b30d1e13f7ab4b90ecee 100644 --- a/EOM.TSHotelManagement.Application/Business/Reser/ReserService.cs +++ b/EOM.TSHotelManagement.Application/Business/Reser/ReserService.cs @@ -26,7 +26,6 @@ using EOM.TSHotelManagement.Common.Core; using EOM.TSHotelManagement.Common.Util; using EOM.TSHotelManagement.EntityFramework; using EOM.TSHotelManagement.Shared; -using jvncorelib.EncryptorLib; using Microsoft.AspNetCore.DataProtection; using SqlSugar; @@ -124,7 +123,7 @@ namespace EOM.TSHotelManagement.Application var outputReser = EntityMapper.Map(res); - return new SingleOutputDto { Source = outputReser}; + return new SingleOutputDto { Source = outputReser }; } /// diff --git a/EOM.TSHotelManagement.Application/Business/Room/IRoomService.cs b/EOM.TSHotelManagement.Application/Business/Room/IRoomService.cs index a0a4c2083781fd055e2aa7a8aa0b3a80c25e54fc..19be8480e018560e6bacff93e20b9e532baf625d 100644 --- a/EOM.TSHotelManagement.Application/Business/Room/IRoomService.cs +++ b/EOM.TSHotelManagement.Application/Business/Room/IRoomService.cs @@ -22,7 +22,6 @@ * */ using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; namespace EOM.TSHotelManagement.Application { diff --git a/EOM.TSHotelManagement.Application/Business/Room/IRoomTypeService.cs b/EOM.TSHotelManagement.Application/Business/Room/IRoomTypeService.cs index 173c0c7cb02cfc45cc91a590348a5356019af713..04c7fe619b8bc363f5306c575266536d99c08de0 100644 --- a/EOM.TSHotelManagement.Application/Business/Room/IRoomTypeService.cs +++ b/EOM.TSHotelManagement.Application/Business/Room/IRoomTypeService.cs @@ -22,7 +22,6 @@ * */ using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; namespace EOM.TSHotelManagement.Application { diff --git a/EOM.TSHotelManagement.Application/Business/Room/RoomService.cs b/EOM.TSHotelManagement.Application/Business/Room/RoomService.cs index 77bfdc77299cc1d760a733b465a07ddb987a160e..72f42f208d3ef4e93e4244cbe1a579c9d7a3cc95 100644 --- a/EOM.TSHotelManagement.Application/Business/Room/RoomService.cs +++ b/EOM.TSHotelManagement.Application/Business/Room/RoomService.cs @@ -88,9 +88,9 @@ namespace EOM.TSHotelManagement.Application rooms = roomRepository.GetList(a => a.IsDelete != 1 && a.RoomStateId == readRoomInputDto.RoomStateId).OrderBy(a => a.RoomNumber).ToList(); rooms.ForEach(source => { - var roomState = roomStates.FirstOrDefault(a => a.Id == source.RoomStateId); + var roomState = roomStates.SingleOrDefault(a => a.Id == source.RoomStateId); source.RoomState = roomState.Description.IsNullOrEmpty() ? "" : roomState.Description; - var roomType = roomTypes.FirstOrDefault(a => a.RoomTypeId == source.RoomTypeId); + var roomType = roomTypes.SingleOrDefault(a => a.RoomTypeId == source.RoomTypeId); source.RoomName = roomType.RoomTypeName.IsNullOrEmpty() ? "" : roomType.RoomTypeName; }); @@ -122,9 +122,9 @@ namespace EOM.TSHotelManagement.Application rooms = roomRepository.GetList(a => a.IsDelete != 1 && a.RoomStateId == 0).OrderBy(a => a.RoomNumber).ToList(); rooms.ForEach(source => { - var roomState = roomStates.FirstOrDefault(a => a.Id == source.RoomStateId); + var roomState = roomStates.SingleOrDefault(a => a.Id == source.RoomStateId); source.RoomState = roomState.Description.IsNullOrEmpty() ? "" : roomState.Description; - var roomType = roomTypes.FirstOrDefault(a => a.RoomTypeId == source.RoomTypeId); + var roomType = roomTypes.SingleOrDefault(a => a.RoomTypeId == source.RoomTypeId); source.RoomName = roomType.RoomTypeName.IsNullOrEmpty() ? "" : roomType.RoomTypeName; }); @@ -167,7 +167,7 @@ namespace EOM.TSHotelManagement.Application if (!readRoomInputDto.IgnorePaging && readRoomInputDto.Page != 0 && readRoomInputDto.PageSize != 0) { - rooms = roomRepository.AsQueryable().Where(where.ToExpression()).OrderBy(a => a.RoomNumber).ToPageList(readRoomInputDto.Page,readRoomInputDto.PageSize,ref count); + rooms = roomRepository.AsQueryable().Where(where.ToExpression()).OrderBy(a => a.RoomNumber).ToPageList(readRoomInputDto.Page, readRoomInputDto.PageSize, ref count); } else { @@ -180,12 +180,12 @@ namespace EOM.TSHotelManagement.Application rooms.ForEach(source => { - var roomState = roomStates.FirstOrDefault(a => a.Id == source.RoomStateId); + var roomState = roomStates.SingleOrDefault(a => a.Id == source.RoomStateId); source.RoomState = roomState.Description.IsNullOrEmpty() ? "" : roomState.Description; - var roomType = roomTypes.FirstOrDefault(a => a.RoomTypeId == source.RoomTypeId); + var roomType = roomTypes.SingleOrDefault(a => a.RoomTypeId == source.RoomTypeId); source.RoomName = roomType.RoomTypeName.IsNullOrEmpty() ? "" : roomType.RoomTypeName; - var custo = custos.FirstOrDefault(a => a.CustomerNumber.Equals(source.CustomerNumber)); + var custo = custos.SingleOrDefault(a => a.CustomerNumber.Equals(source.CustomerNumber)); source.CustomerName = custo.IsNullOrEmpty() ? "" : custo.CustomerName; //把入住时间格式化 @@ -195,7 +195,7 @@ namespace EOM.TSHotelManagement.Application }); var listSource = EntityMapper.MapList(rooms); - return new ListOutputDto { listSource = listSource,total = count }; + return new ListOutputDto { listSource = listSource, total = count }; } /// @@ -225,12 +225,12 @@ namespace EOM.TSHotelManagement.Application custos = custoRepository.GetList(a => listCustoNo.Contains(a.CustomerNumber)); rooms.ForEach(source => { - var roomState = roomStates.FirstOrDefault(a => a.Id == source.RoomStateId); + var roomState = roomStates.SingleOrDefault(a => a.Id == source.RoomStateId); source.RoomState = roomState.Description.IsNullOrEmpty() ? "" : roomState.Description; - var roomType = roomTypes.FirstOrDefault(a => a.RoomTypeId == source.RoomTypeId); + var roomType = roomTypes.SingleOrDefault(a => a.RoomTypeId == source.RoomTypeId); source.RoomName = roomType.RoomTypeName.IsNullOrEmpty() ? "" : roomType.RoomTypeName; - var custo = custos.FirstOrDefault(a => a.CustomerNumber.Equals(source.CustomerNumber)); + var custo = custos.SingleOrDefault(a => a.CustomerNumber.Equals(source.CustomerNumber)); source.CustomerName = custo.IsNullOrEmpty() ? "" : custo.CustomerName; }); @@ -261,7 +261,7 @@ namespace EOM.TSHotelManagement.Application room = roomRepository.GetSingle(a => a.IsDelete != 1 && a.RoomNumber == readRoomInputDto.RoomNumber); if (!room.IsNullOrEmpty()) { - var roomSate = roomStates.FirstOrDefault(a => a.Id == room.RoomStateId); + var roomSate = roomStates.SingleOrDefault(a => a.Id == room.RoomStateId); room.RoomState = roomSate.Description.IsNullOrEmpty() ? "" : roomSate.Description; var roomType = roomTypeRepository.GetSingle(a => a.RoomTypeId == room.RoomTypeId); room.RoomName = roomType.RoomTypeName.IsNullOrEmpty() ? "" : roomType.RoomTypeName; @@ -519,7 +519,7 @@ namespace EOM.TSHotelManagement.Application { var isExist = roomRepository.IsAny(a => a.RoomNumber == rn.RoomNumber); if (isExist) - return new BaseOutputDto { Message = LocalizationHelper.GetLocalizedString("This room already exists.", "房间已存在。"),StatusCode = StatusCodeConstants.InternalServerError}; + return new BaseOutputDto { Message = LocalizationHelper.GetLocalizedString("This room already exists.", "房间已存在。"), StatusCode = StatusCodeConstants.InternalServerError }; roomRepository.Insert(EntityMapper.Map(rn)); } @@ -598,9 +598,9 @@ namespace EOM.TSHotelManagement.Application rooms = roomRepository.GetList(a => a.IsDelete != 1 && a.RoomStateId == 1).OrderBy(a => a.RoomNumber).ToList(); rooms.ForEach(source => { - var roomState = roomStates.FirstOrDefault(a => a.Id == source.RoomStateId); + var roomState = roomStates.SingleOrDefault(a => a.Id == source.RoomStateId); source.RoomState = roomState.Description.IsNullOrEmpty() ? "" : roomState.Description; - var roomType = roomTypes.FirstOrDefault(a => a.RoomTypeId == source.RoomTypeId); + var roomType = roomTypes.SingleOrDefault(a => a.RoomTypeId == source.RoomTypeId); source.RoomName = roomType.RoomTypeName.IsNullOrEmpty() ? "" : roomType.RoomTypeName; }); diff --git a/EOM.TSHotelManagement.Application/Business/Room/RoomTypeService.cs b/EOM.TSHotelManagement.Application/Business/Room/RoomTypeService.cs index 289ce7ccfcc900ab2018e269a8044863b6c6ee7e..c1f032d7e646e09e5a704fc6ac7c11a4f69c82dd 100644 --- a/EOM.TSHotelManagement.Application/Business/Room/RoomTypeService.cs +++ b/EOM.TSHotelManagement.Application/Business/Room/RoomTypeService.cs @@ -116,7 +116,7 @@ namespace EOM.TSHotelManagement.Application var source = EntityMapper.Map(roomtype); - return new SingleOutputDto { Source = source}; + return new SingleOutputDto { Source = source }; } #endregion @@ -150,7 +150,7 @@ namespace EOM.TSHotelManagement.Application } catch (Exception ex) { - return new BaseOutputDto { Message = LocalizationHelper.GetLocalizedString(ex.Message,ex.Message), StatusCode = StatusCodeConstants.InternalServerError }; + return new BaseOutputDto { Message = LocalizationHelper.GetLocalizedString(ex.Message, ex.Message), StatusCode = StatusCodeConstants.InternalServerError }; } return new BaseOutputDto(); } diff --git a/EOM.TSHotelManagement.Application/Business/Sellthing/SellService.cs b/EOM.TSHotelManagement.Application/Business/Sellthing/SellService.cs index 9fa96392f238acf521b9cffecad7ac3918ac7dac..855ce9ebdd775772b2c907a90adb95a2aca94710 100644 --- a/EOM.TSHotelManagement.Application/Business/Sellthing/SellService.cs +++ b/EOM.TSHotelManagement.Application/Business/Sellthing/SellService.cs @@ -25,7 +25,6 @@ using EOM.TSHotelManagement.Common.Contract; using EOM.TSHotelManagement.Common.Core; using EOM.TSHotelManagement.Common.Util; using EOM.TSHotelManagement.EntityFramework; -using EOM.TSHotelManagement.Shared; using jvncorelib.EntityLib; using SqlSugar; @@ -253,7 +252,7 @@ namespace EOM.TSHotelManagement.Application SellThing sellThing = null; sellThing = sellThingRepository.GetSingle(a => a.ProductNumber == readSellThingInputDto.ProductNumber || (a.ProductName == readSellThingInputDto.ProductName && a.ProductPrice == Convert.ToDecimal(readSellThingInputDto.ProductPrice))); - + var source = EntityMapper.Map(sellThing); return new SingleOutputDto() { Source = source }; diff --git a/EOM.TSHotelManagement.Application/Business/Spend/ISpendService.cs b/EOM.TSHotelManagement.Application/Business/Spend/ISpendService.cs index d0faa2634bb9bc7af9bbf6588060d39bec0b2f42..3f4388d718bc8c0aa477881e86e024f7c593d41a 100644 --- a/EOM.TSHotelManagement.Application/Business/Spend/ISpendService.cs +++ b/EOM.TSHotelManagement.Application/Business/Spend/ISpendService.cs @@ -22,7 +22,6 @@ * */ using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; namespace EOM.TSHotelManagement.Application { diff --git a/EOM.TSHotelManagement.Application/Business/Spend/SpendService.cs b/EOM.TSHotelManagement.Application/Business/Spend/SpendService.cs index 2de96c5126d0a08480d8dab2af766192cdb58175..07654e9075f7ccbec94831be8101d9376fc91a9d 100644 --- a/EOM.TSHotelManagement.Application/Business/Spend/SpendService.cs +++ b/EOM.TSHotelManagement.Application/Business/Spend/SpendService.cs @@ -21,12 +21,12 @@ *SOFTWARE. * */ +using EOM.TSHotelManagement.Common.Contract; using EOM.TSHotelManagement.Common.Core; +using EOM.TSHotelManagement.Common.Util; using EOM.TSHotelManagement.EntityFramework; -using jvncorelib.EntityLib; using EOM.TSHotelManagement.Shared; -using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Util; +using jvncorelib.EntityLib; using SqlSugar; namespace EOM.TSHotelManagement.Application @@ -67,7 +67,7 @@ namespace EOM.TSHotelManagement.Application { try { - spendRepository.Insert(EntityMapper.Map(s)); + spendRepository.Insert(EntityMapper.Map(s)); } catch (Exception ex) { @@ -149,7 +149,7 @@ namespace EOM.TSHotelManagement.Application { if (source.ProductNumber.IsNullOrEmpty()) { - var spendInfo = spendInfos.FirstOrDefault(a => a.ProductName.Equals(source.ProductName)); + var spendInfo = spendInfos.SingleOrDefault(a => a.ProductName.Equals(source.ProductName)); if (spendInfo != null) { source.ProductNumber = spendInfo.ProductNumber; diff --git a/EOM.TSHotelManagement.Application/Employee/Check/EmployeeCheckService.cs b/EOM.TSHotelManagement.Application/Employee/Check/EmployeeCheckService.cs index 00a02a6a54380130cb8bff5929832bbf26ddef7e..5624b21c4d50f4ffd326e0e5a0d5b5bf0d5208d8 100644 --- a/EOM.TSHotelManagement.Application/Employee/Check/EmployeeCheckService.cs +++ b/EOM.TSHotelManagement.Application/Employee/Check/EmployeeCheckService.cs @@ -146,7 +146,7 @@ namespace EOM.TSHotelManagement.Application { return new SingleOutputDto { StatusCode = StatusCodeConstants.InternalServerError, Message = LocalizationHelper.GetLocalizedString($"Error:\n{ex.Message}", $"错误:\n{ex.Message}") }; } - return new SingleOutputDto { Source = new ReadEmployeeCheckOutputDto { IsChecked = isChecked} }; + return new SingleOutputDto { Source = new ReadEmployeeCheckOutputDto { IsChecked = isChecked } }; } /// diff --git a/EOM.TSHotelManagement.Application/Employee/Check/IEmployeeCheckService.cs b/EOM.TSHotelManagement.Application/Employee/Check/IEmployeeCheckService.cs index f030099be960cd297f265dc38d753782d854e15e..e852513d81ecc9c515fe3d0d235d1100228fbf93 100644 --- a/EOM.TSHotelManagement.Application/Employee/Check/IEmployeeCheckService.cs +++ b/EOM.TSHotelManagement.Application/Employee/Check/IEmployeeCheckService.cs @@ -22,7 +22,6 @@ * */ using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; namespace EOM.TSHotelManagement.Application { diff --git a/EOM.TSHotelManagement.Application/Employee/EmployeeService.cs b/EOM.TSHotelManagement.Application/Employee/EmployeeService.cs index d9b389c2f9d52f0cd32d9cb94cb99019c3757139..80aab99506e8c78028814c425b57bf503d54845b 100644 --- a/EOM.TSHotelManagement.Application/Employee/EmployeeService.cs +++ b/EOM.TSHotelManagement.Application/Employee/EmployeeService.cs @@ -21,24 +21,17 @@ *SOFTWARE. * */ -using EOM.TSHotelManagement.Common; using EOM.TSHotelManagement.Common.Contract; using EOM.TSHotelManagement.Common.Core; using EOM.TSHotelManagement.Common.Util; using EOM.TSHotelManagement.EntityFramework; using EOM.TSHotelManagement.Shared; -using jvncorelib.EncryptorLib; using jvncorelib.EntityLib; -using jvncorelib.CodeLib; using Microsoft.AspNetCore.DataProtection; -using Microsoft.IdentityModel.Tokens; using SqlSugar; -using SqlSugar.DistributedSystem.Snowflake; using System.ComponentModel; -using System.IdentityModel.Tokens.Jwt; using System.Reflection; using System.Security.Claims; -using System.Text; namespace EOM.TSHotelManagement.Application { @@ -57,7 +50,7 @@ namespace EOM.TSHotelManagement.Application /// /// /// - public class EmployeeService(GenericRepository workerRepository, GenericRepository educationRepository, GenericRepository nationRepository, GenericRepository deptRepository, GenericRepository positionRepository, GenericRepository passportTypeRepository, IDataProtectionProvider dataProtectionProvider, JWTHelper jWTHelper,MailHelper mailHelper) : IEmployeeService + public class EmployeeService(GenericRepository workerRepository, GenericRepository educationRepository, GenericRepository nationRepository, GenericRepository deptRepository, GenericRepository positionRepository, GenericRepository passportTypeRepository, IDataProtectionProvider dataProtectionProvider, JWTHelper jWTHelper, MailHelper mailHelper) : IEmployeeService { /// /// 员工信息 @@ -288,19 +281,19 @@ namespace EOM.TSHotelManagement.Application source.PhoneNumber = source.PhoneNumber; } //性别类型 - var sexType = genders.FirstOrDefault(a => a.Id == source.Gender); + var sexType = genders.SingleOrDefault(a => a.Id == source.Gender); source.GenderName = sexType.IsNullOrEmpty() ? "" : sexType.Description; //教育程度 - var eduction = educations.FirstOrDefault(a => a.EducationNumber == source.EducationLevel); + var eduction = educations.SingleOrDefault(a => a.EducationNumber == source.EducationLevel); source.EducationLevelName = eduction.IsNullOrEmpty() ? "" : eduction.EducationName; //民族类型 - var nation = nations.FirstOrDefault(a => a.NationNumber == source.Ethnicity); + var nation = nations.SingleOrDefault(a => a.NationNumber == source.Ethnicity); source.EthnicityName = nation.IsNullOrEmpty() ? "" : nation.NationName; //部门 - var dept = depts.FirstOrDefault(a => a.DepartmentNumber == source.Department); + var dept = depts.SingleOrDefault(a => a.DepartmentNumber == source.Department); source.DepartmentName = dept.IsNullOrEmpty() ? "" : dept.DepartmentName; //职位 - var position = positions.FirstOrDefault(a => a.PositionNumber == source.Position); + var position = positions.SingleOrDefault(a => a.PositionNumber == source.Position); source.PositionName = position.IsNullOrEmpty() ? "" : position.PositionName; var passport = passportTypes.SingleOrDefault(a => a.PassportId == source.IdCardType); source.IdCardTypeName = passport.IsNullOrEmpty() ? "" : passport.PassportName; @@ -310,7 +303,7 @@ namespace EOM.TSHotelManagement.Application var listSource = EntityMapper.MapList(employees); - return new ListOutputDto { listSource = listSource,total = count }; + return new ListOutputDto { listSource = listSource, total = count }; } /// @@ -372,7 +365,7 @@ namespace EOM.TSHotelManagement.Application var source = EntityMapper.Map(w); - return new SingleOutputDto { Source = source}; + return new SingleOutputDto { Source = source }; } /// @@ -405,7 +398,7 @@ namespace EOM.TSHotelManagement.Application if (dbPwd != readEmployeeInputDto.Password) { w = null; - return new SingleOutputDto { Source = EntityMapper.Map(w) }; + return new SingleOutputDto { Source = EntityMapper.Map(w) }; } w.Password = ""; //性别类型 @@ -470,11 +463,15 @@ namespace EOM.TSHotelManagement.Application if (employeeMailAddress.IsNullOrEmpty()) { - return new BaseOutputDto() { Message = LocalizationHelper.GetLocalizedString("No bound email address was found for the employee. Password reset cannot be completed." - , "未找到员工绑定的电子邮箱,无法重置密码。"),StatusCode = StatusCodeConstants.InternalServerError}; + return new BaseOutputDto() + { + Message = LocalizationHelper.GetLocalizedString("No bound email address was found for the employee. Password reset cannot be completed." + , "未找到员工绑定的电子邮箱,无法重置密码。"), + StatusCode = StatusCodeConstants.InternalServerError + }; } - var Subject = LocalizationHelper.GetLocalizedString("Reset Password Notice","重置密码通知"); + var Subject = LocalizationHelper.GetLocalizedString("Reset Password Notice", "重置密码通知"); var Body = $@"

{LocalizationHelper.GetLocalizedString("Dear User,", "尊敬的用户:")}

{LocalizationHelper.GetLocalizedString( $"Your password was reset at {DateTime.Now:yyyy/MM/dd}. New password:", @@ -512,7 +509,7 @@ namespace EOM.TSHotelManagement.Application FieldInfo field = enumType.GetField(enumName); DescriptionAttribute attribute = field? .GetCustomAttributes(typeof(DescriptionAttribute), false) - .FirstOrDefault() as DescriptionAttribute; + .SingleOrDefault() as DescriptionAttribute; string description = attribute?.Description ?? enumName; diff --git a/EOM.TSHotelManagement.Application/Employee/IEmployeeService.cs b/EOM.TSHotelManagement.Application/Employee/IEmployeeService.cs index 5b6c797409e945eb78f91836931b36a5a8c4e432..f819c2555678c6756154e55cc054c4ac70d54c4d 100644 --- a/EOM.TSHotelManagement.Application/Employee/IEmployeeService.cs +++ b/EOM.TSHotelManagement.Application/Employee/IEmployeeService.cs @@ -22,7 +22,6 @@ * */ using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; namespace EOM.TSHotelManagement.Application { diff --git a/EOM.TSHotelManagement.Application/Employee/Photo/EmployeePhotoService.cs b/EOM.TSHotelManagement.Application/Employee/Photo/EmployeePhotoService.cs index 63f15a3ddc919bef7a9385137dfb50c296fb8ea5..f75c0e2c877c9b48375c2057629ed1075b734e95 100644 --- a/EOM.TSHotelManagement.Application/Employee/Photo/EmployeePhotoService.cs +++ b/EOM.TSHotelManagement.Application/Employee/Photo/EmployeePhotoService.cs @@ -2,10 +2,8 @@ using EOM.TSHotelManagement.Common.Core; using EOM.TSHotelManagement.Common.Util; using EOM.TSHotelManagement.EntityFramework; -using jvncorelib.EncryptorLib; using jvncorelib.EntityLib; using Microsoft.AspNetCore.Http; -using System.Drawing; namespace EOM.TSHotelManagement.Application { @@ -76,7 +74,7 @@ namespace EOM.TSHotelManagement.Application { if (file == null || file.Length == 0) { - return new SingleOutputDto { Message = LocalizationHelper.GetLocalizedString("File cannot null","文件不能为空"), StatusCode = StatusCodeConstants.BadRequest }; + return new SingleOutputDto { Message = LocalizationHelper.GetLocalizedString("File cannot null", "文件不能为空"), StatusCode = StatusCodeConstants.BadRequest }; } if (file.Length > 1048576) @@ -87,7 +85,7 @@ namespace EOM.TSHotelManagement.Application StatusCode = StatusCodeConstants.BadRequest }; } - if (file.ContentType != "image/jpeg" && file.ContentType != "image/png") + if (file.ContentType != "image/jpeg" && file.ContentType != "image/png") { return new SingleOutputDto { diff --git a/EOM.TSHotelManagement.Application/Employee/Photo/IEmployeePhotoService.cs b/EOM.TSHotelManagement.Application/Employee/Photo/IEmployeePhotoService.cs index c6dc8b0f8afe4791969c93030882200dff15e491..c521cfc5f1799d1bec241689ef1e8937048a8f7a 100644 --- a/EOM.TSHotelManagement.Application/Employee/Photo/IEmployeePhotoService.cs +++ b/EOM.TSHotelManagement.Application/Employee/Photo/IEmployeePhotoService.cs @@ -1,6 +1,5 @@ using EOM.TSHotelManagement.Common.Contract; using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Http.Internal; namespace EOM.TSHotelManagement.Application { @@ -21,7 +20,7 @@ namespace EOM.TSHotelManagement.Application /// /// /// - SingleOutputDto InsertWorkerPhoto(CreateEmployeePhotoInputDto createEmployeePhotoInputDto,IFormFile formFile); + SingleOutputDto InsertWorkerPhoto(CreateEmployeePhotoInputDto createEmployeePhotoInputDto, IFormFile formFile); ///

/// 删除员工照片 /// diff --git a/EOM.TSHotelManagement.Application/Employee/RewardPunishment/RewardPunishmentService.cs b/EOM.TSHotelManagement.Application/Employee/RewardPunishment/RewardPunishmentService.cs index 5cd6352ee60c8daebb2ff5436c099905f50a3f7a..311d2d9f6e64a2c32bdaa309211a6d817ed38dd7 100644 --- a/EOM.TSHotelManagement.Application/Employee/RewardPunishment/RewardPunishmentService.cs +++ b/EOM.TSHotelManagement.Application/Employee/RewardPunishment/RewardPunishmentService.cs @@ -125,11 +125,11 @@ namespace EOM.TSHotelManagement.Application gb.ForEach(source => { //奖惩类型 - var gbType = gBTypes.FirstOrDefault(a => a.RewardPunishmentTypeId == source.RewardPunishmentType); + var gbType = gBTypes.SingleOrDefault(a => a.RewardPunishmentTypeId == source.RewardPunishmentType); source.RewardPunishmentTypeName = gbType.RewardPunishmentTypeName.IsNullOrEmpty() ? "" : gbType.RewardPunishmentTypeName; //操作人 - var admin = admins.FirstOrDefault(a => a.Account == source.RewardPunishmentOperator); + var admin = admins.SingleOrDefault(a => a.Account == source.RewardPunishmentOperator); source.OperatorName = admin.Name.IsNullOrEmpty() ? "" : admin.Name; }); diff --git a/EOM.TSHotelManagement.Application/Sys/NavBar/INavBarService.cs b/EOM.TSHotelManagement.Application/Sys/NavBar/INavBarService.cs index f3c95efae8e37257abcc5fed4ffc7dadffaed4b5..8bb4838c261198ec966f04be7a6457f681171d5e 100644 --- a/EOM.TSHotelManagement.Application/Sys/NavBar/INavBarService.cs +++ b/EOM.TSHotelManagement.Application/Sys/NavBar/INavBarService.cs @@ -1,5 +1,4 @@ using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; namespace EOM.TSHotelManagement.Application { diff --git a/EOM.TSHotelManagement.Application/SystemManagement/Administrator/AdminService.cs b/EOM.TSHotelManagement.Application/SystemManagement/Administrator/AdminService.cs index 7521d1c346e3c342c9b0a4d3939f742c17f1d7f0..ebbff17c9961f4ed6baa016b8f3eb440f5538205 100644 --- a/EOM.TSHotelManagement.Application/SystemManagement/Administrator/AdminService.cs +++ b/EOM.TSHotelManagement.Application/SystemManagement/Administrator/AdminService.cs @@ -25,16 +25,11 @@ using EOM.TSHotelManagement.Common.Contract; using EOM.TSHotelManagement.Common.Core; using EOM.TSHotelManagement.Common.Util; using EOM.TSHotelManagement.EntityFramework; -using EOM.TSHotelManagement.Shared; using jvncorelib.EncryptorLib; using jvncorelib.EntityLib; using Microsoft.AspNetCore.DataProtection; -using Microsoft.IdentityModel.Tokens; using SqlSugar; -using System.ComponentModel; -using System.IdentityModel.Tokens.Jwt; using System.Security.Claims; -using System.Text; namespace EOM.TSHotelManagement.Application { @@ -252,7 +247,7 @@ namespace EOM.TSHotelManagement.Application var isAdminType = admins.IsSuperAdmin == 1 ? "是" : "否"; admins.IsSuperAdminDescription = isAdminType; - var adminType = listAdminType.FirstOrDefault(a => a.TypeId.Equals(admins.Type)); + var adminType = listAdminType.SingleOrDefault(a => a.TypeId.Equals(admins.Type)); admins.TypeName = adminType == null ? "" : adminType.TypeName; var adminDelete = admins.IsDelete == 1 ? "是" : "否"; diff --git a/EOM.TSHotelManagement.Application/SystemManagement/Base/BaseService.cs b/EOM.TSHotelManagement.Application/SystemManagement/Base/BaseService.cs index ddec7a09fb1d5f95782e8a6da52340c424a355f1..c97c287b8147432db55dc9b0f23ec39e461ccce5 100644 --- a/EOM.TSHotelManagement.Application/SystemManagement/Base/BaseService.cs +++ b/EOM.TSHotelManagement.Application/SystemManagement/Base/BaseService.cs @@ -21,18 +21,13 @@ *SOFTWARE. * */ -using EOM.TSHotelManagement.Common; using EOM.TSHotelManagement.Common.Contract; using EOM.TSHotelManagement.Common.Core; using EOM.TSHotelManagement.Common.Util; using EOM.TSHotelManagement.EntityFramework; using EOM.TSHotelManagement.Shared; using jvncorelib.EntityLib; -using Microsoft.Extensions.Options; using SqlSugar; -using System; -using System.ComponentModel; -using System.Reflection; namespace EOM.TSHotelManagement.Application { @@ -86,6 +81,11 @@ namespace EOM.TSHotelManagement.Application ///
private readonly GenericRepository baseRepository; + /// + /// 公告类型 + /// + private readonly GenericRepository appointmentNoticeTypeRepository; + /// /// /// @@ -98,7 +98,8 @@ namespace EOM.TSHotelManagement.Application /// /// /// - public BaseService(GenericRepository workerRepository, GenericRepository educationRepository, GenericRepository nationRepository, GenericRepository deptRepository, GenericRepository positionRepository, GenericRepository passPortTypeRepository, GenericRepository custoTypeRepository, GenericRepository goodbadTypeRepository, GenericRepository baseRepository) + /// + public BaseService(GenericRepository workerRepository, GenericRepository educationRepository, GenericRepository nationRepository, GenericRepository deptRepository, GenericRepository positionRepository, GenericRepository passPortTypeRepository, GenericRepository custoTypeRepository, GenericRepository goodbadTypeRepository, GenericRepository baseRepository, GenericRepository appointmentNoticeTypeRepository) { this.workerRepository = workerRepository; this.educationRepository = educationRepository; @@ -109,6 +110,7 @@ namespace EOM.TSHotelManagement.Application this.custoTypeRepository = custoTypeRepository; this.goodbadTypeRepository = goodbadTypeRepository; this.baseRepository = baseRepository; + this.appointmentNoticeTypeRepository = appointmentNoticeTypeRepository; } #region 性别模块 @@ -878,5 +880,118 @@ namespace EOM.TSHotelManagement.Application } #endregion + + #region 公告类型模块 + + /// + /// 查询所有公告类型 + /// + /// + public ListOutputDto SelectAppointmentNoticeTypeAll(ReadAppointmentNoticeTypeInputDto readAppointmentNoticeTypeInputDto) + { + var listSource = new List(); + + var where = Expressionable.Create(); + + if (!readAppointmentNoticeTypeInputDto.IsDelete.IsNullOrEmpty()) + { + where = where.And(a => a.IsDelete == readAppointmentNoticeTypeInputDto.IsDelete); + } + + var count = 0; + + if (!readAppointmentNoticeTypeInputDto.IgnorePaging && readAppointmentNoticeTypeInputDto.Page != 0 && readAppointmentNoticeTypeInputDto.PageSize != 0) + { + listSource = appointmentNoticeTypeRepository.AsQueryable().Where(where.ToExpression()) + .ToPageList(readAppointmentNoticeTypeInputDto.Page, readAppointmentNoticeTypeInputDto.PageSize, ref count); + } + else + { + listSource = appointmentNoticeTypeRepository.AsQueryable().Where(where.ToExpression()).ToList(); + } + + var result = EntityMapper.MapList(listSource); + + return new ListOutputDto { listSource = result, total = count }; + } + + /// + /// 添加公告类型 + /// + /// + /// + public BaseOutputDto CreateAppointmentNoticeType(CreateAppointmentNoticeTypeInputDto createAppointmentNoticeTypeInputDto) + { + try + { + if (appointmentNoticeTypeRepository.IsAny(a => a.NoticeTypeNumber == createAppointmentNoticeTypeInputDto.NoticeTypeNumber)) + { + return new BaseOutputDto { StatusCode = StatusCodeConstants.InternalServerError, Message = LocalizationHelper.GetLocalizedString("appointment notice number already exits.","公告类型编号已存在") }; + } + appointmentNoticeTypeRepository.Insert(EntityMapper.Map(createAppointmentNoticeTypeInputDto)); + } + catch (Exception ex) + { + LogHelper.LogError(LocalizationHelper.GetLocalizedString("insert appointment notice failed.", "公告类型添加失败"), ex); + return new BaseOutputDto { StatusCode = StatusCodeConstants.InternalServerError, Message = LocalizationHelper.GetLocalizedString("insert appointment notice failed.", "公告类型添加失败") }; + } + + return new BaseOutputDto { StatusCode = StatusCodeConstants.Success, Message = LocalizationHelper.GetLocalizedString("insert appointment notice successful.", "公告类型添加成功") }; + } + + /// + /// 删除公告类型 + /// + /// + /// + public BaseOutputDto DeleteAppointmentNoticeType(DeleteAppointmentNoticeTypeInputDto deleteAppointmentNoticeTypeInputDto) + { + try + { + if (!appointmentNoticeTypeRepository.IsAny(a => a.NoticeTypeNumber == deleteAppointmentNoticeTypeInputDto.NoticeTypeNumber)) + { + return new BaseOutputDto { StatusCode = StatusCodeConstants.InternalServerError, Message = LocalizationHelper.GetLocalizedString("appointment notice number does not already.", "公告类型编号不存在") }; + } + appointmentNoticeTypeRepository.Update(a => new AppointmentNoticeType + { + IsDelete = 1, + DataChgUsr = deleteAppointmentNoticeTypeInputDto.DataChgUsr, + DataChgDate = deleteAppointmentNoticeTypeInputDto.DataChgDate + }, a => a.NoticeTypeNumber == deleteAppointmentNoticeTypeInputDto.NoticeTypeNumber); + } + catch (Exception ex) + { + LogHelper.LogError(LocalizationHelper.GetLocalizedString("delete appointment notice failed.", "公告类型删除失败"), ex); + return new BaseOutputDto { StatusCode = StatusCodeConstants.InternalServerError, Message = LocalizationHelper.GetLocalizedString("delete appointment notice failed.", "公告类型删除失败") }; + } + + return new BaseOutputDto { StatusCode = StatusCodeConstants.Success, Message = LocalizationHelper.GetLocalizedString("delete appointment notice successful.", "公告类型删除成功") }; + } + + /// + /// 更新公告类型 + /// + /// + /// + public BaseOutputDto UpdateAppointmentNoticeType(UpdateAppointmentNoticeTypeInputDto updateAppointmentNoticeTypeInputDto) + { + try + { + if (!appointmentNoticeTypeRepository.IsAny(a => a.NoticeTypeNumber == updateAppointmentNoticeTypeInputDto.NoticeTypeNumber)) + { + return new BaseOutputDto { StatusCode = StatusCodeConstants.InternalServerError, Message = LocalizationHelper.GetLocalizedString("appointment notice number does not already.", "公告类型编号不存在") }; + } + appointmentNoticeTypeRepository.Update(EntityMapper.Map(updateAppointmentNoticeTypeInputDto)); + } + catch (Exception ex) + { + LogHelper.LogError(LocalizationHelper.GetLocalizedString("update appointment notice failed.", "公告类型更新失败"), ex); + return new BaseOutputDto { StatusCode = StatusCodeConstants.InternalServerError, Message = LocalizationHelper.GetLocalizedString("update appointment notice failed.", "公告类型更新失败") }; + } + + return new BaseOutputDto { StatusCode = StatusCodeConstants.Success, Message = LocalizationHelper.GetLocalizedString("update appointment notice successful.", "公告类型更新成功") }; + } + + #endregion } } diff --git a/EOM.TSHotelManagement.Application/SystemManagement/Base/IBaseService.cs b/EOM.TSHotelManagement.Application/SystemManagement/Base/IBaseService.cs index 6067d9633a93955068914deb249f917c4cb0c237..5f6fb99b5011a4b606a4667eeb18634c2c4b5c48 100644 --- a/EOM.TSHotelManagement.Application/SystemManagement/Base/IBaseService.cs +++ b/EOM.TSHotelManagement.Application/SystemManagement/Base/IBaseService.cs @@ -21,9 +21,7 @@ *SOFTWARE. * */ -using EOM.TSHotelManagement.Common; using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; namespace EOM.TSHotelManagement.Application { @@ -352,5 +350,36 @@ namespace EOM.TSHotelManagement.Application /// SingleOutputDto GetBase(); #endregion + + #region 公告类型模块 + + /// + /// 查询所有公告类型 + /// + /// + ListOutputDto SelectAppointmentNoticeTypeAll(ReadAppointmentNoticeTypeInputDto readAppointmentNoticeTypeInputDto); + + /// + /// 添加公告类型 + /// + /// + /// + BaseOutputDto CreateAppointmentNoticeType(CreateAppointmentNoticeTypeInputDto createAppointmentNoticeTypeInputDto); + + /// + /// 删除公告类型 + /// + /// + /// + BaseOutputDto DeleteAppointmentNoticeType(DeleteAppointmentNoticeTypeInputDto deleteAppointmentNoticeTypeInputDto); + + /// + /// 更新公告类型 + /// + /// + /// + BaseOutputDto UpdateAppointmentNoticeType(UpdateAppointmentNoticeTypeInputDto updateAppointmentNoticeTypeInputDto); + + #endregion } } diff --git a/EOM.TSHotelManagement.Application/SystemManagement/Notice/INoticeService.cs b/EOM.TSHotelManagement.Application/SystemManagement/Notice/INoticeService.cs index c38abc0db490ea43fafb764eed2c319771582cca..b2a72979f324078d2f82cad8ab132115c392845f 100644 --- a/EOM.TSHotelManagement.Application/SystemManagement/Notice/INoticeService.cs +++ b/EOM.TSHotelManagement.Application/SystemManagement/Notice/INoticeService.cs @@ -22,7 +22,6 @@ * */ using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; namespace EOM.TSHotelManagement.Application { @@ -31,14 +30,12 @@ namespace EOM.TSHotelManagement.Application ///
public interface INoticeService { - #region 获取所有公告信息 /// /// 获取所有公告信息 /// /// ListOutputDto SelectNoticeAll(ReadAppointmentNoticeInputDto readAppointmentNoticeInputDto); - #endregion - + /// /// 查询公告 /// @@ -46,7 +43,6 @@ namespace EOM.TSHotelManagement.Application /// ReadAppointmentNoticeOutputDto SelectNoticeByNoticeNo(ReadAppointmentNoticeInputDto readAppointmentNoticeInputDto); - #region 上传公告信息 /// /// 上传公告信息 /// @@ -54,6 +50,19 @@ namespace EOM.TSHotelManagement.Application /// BaseOutputDto InsertNotice(CreateAppointmentNoticeInputDto createAppointmentNoticeInputDto); - #endregion + /// + /// 删除公告信息 + /// + /// + /// + BaseOutputDto DeleteNotice(DeleteAppointmentNoticeInputDto deleteAppointmentNoticeInputDto); + + /// + /// 更新公告信息 + /// + /// + /// + BaseOutputDto UpdateNotice(UpdateAppointmentNoticeInputDto updateAppointmentNoticeInputDto); + } } \ No newline at end of file diff --git a/EOM.TSHotelManagement.Application/SystemManagement/Notice/NoticeService.cs b/EOM.TSHotelManagement.Application/SystemManagement/Notice/NoticeService.cs index 9404dbb47e4bdd4057dd368e6ae63ca7dee5f87f..bc0ff20c85a8e7c2a2b0f2f2a2c6ad23e2feb623 100644 --- a/EOM.TSHotelManagement.Application/SystemManagement/Notice/NoticeService.cs +++ b/EOM.TSHotelManagement.Application/SystemManagement/Notice/NoticeService.cs @@ -49,7 +49,6 @@ namespace EOM.TSHotelManagement.Application this.noticeRepository = noticeRepository; } - #region 获取所有公告信息 /// /// 获取所有公告信息 /// @@ -93,7 +92,6 @@ namespace EOM.TSHotelManagement.Application total = listSource.Count }; } - #endregion /// /// 根据公告编号查找公告信息 @@ -118,7 +116,6 @@ namespace EOM.TSHotelManagement.Application return source; } - #region 上传公告信息 /// /// 上传公告信息 /// @@ -137,7 +134,43 @@ namespace EOM.TSHotelManagement.Application return new BaseOutputDto(); } - #endregion + /// + /// 删除公告信息 + /// + /// + /// + public BaseOutputDto DeleteNotice(DeleteAppointmentNoticeInputDto deleteAppointmentNoticeInputDto) + { + try + { + noticeRepository.Update(EntityMapper.Map(deleteAppointmentNoticeInputDto)); + } + catch (Exception ex) + { + LogHelper.LogError(LocalizationHelper.GetLocalizedString("delete appointment notice failed","删除公告失败"),ex); + return new BaseOutputDto { Message = LocalizationHelper.GetLocalizedString("delete appointment notice failed", "删除公告失败"), StatusCode = StatusCodeConstants.InternalServerError }; + } + return new BaseOutputDto(); + } + + /// + /// 更新公告信息 + /// + /// + /// + public BaseOutputDto UpdateNotice(UpdateAppointmentNoticeInputDto updateAppointmentNoticeInputDto) + { + try + { + noticeRepository.Update(EntityMapper.Map(updateAppointmentNoticeInputDto)); + } + catch (Exception ex) + { + LogHelper.LogError(LocalizationHelper.GetLocalizedString("update appointment notice failed", "更新公告失败"), ex); + return new BaseOutputDto { Message = LocalizationHelper.GetLocalizedString("update appointment notice failed", "更新公告失败"), StatusCode = StatusCodeConstants.InternalServerError }; + } + return new BaseOutputDto(); + } } } diff --git a/EOM.TSHotelManagement.Application/SystemManagement/Role/IRoleAppService.cs b/EOM.TSHotelManagement.Application/SystemManagement/Role/IRoleAppService.cs index 57c84b22f85e70c13dfa916f0cab250e8113b6bf..cd241789896d43354ca76d40168bbc407d75c50a 100644 --- a/EOM.TSHotelManagement.Application/SystemManagement/Role/IRoleAppService.cs +++ b/EOM.TSHotelManagement.Application/SystemManagement/Role/IRoleAppService.cs @@ -1,9 +1,4 @@ using EOM.TSHotelManagement.Common.Contract; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace EOM.TSHotelManagement.Application { diff --git a/EOM.TSHotelManagement.Application/SystemManagement/Role/RoleAppService.cs b/EOM.TSHotelManagement.Application/SystemManagement/Role/RoleAppService.cs index a1d88876ac001732bdfbb908b4056b5825284e50..3c7a148afaff4f9c9185d3f372f392dd2b72f619 100644 --- a/EOM.TSHotelManagement.Application/SystemManagement/Role/RoleAppService.cs +++ b/EOM.TSHotelManagement.Application/SystemManagement/Role/RoleAppService.cs @@ -4,11 +4,6 @@ using EOM.TSHotelManagement.Common.Util; using EOM.TSHotelManagement.EntityFramework; using jvncorelib.EntityLib; using SqlSugar; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace EOM.TSHotelManagement.Application { @@ -41,7 +36,7 @@ namespace EOM.TSHotelManagement.Application { try { - roleRepository.Delete(EntityMapper.Map(deleteRoleInputDto)); + roleRepository.Delete(EntityMapper.Map(deleteRoleInputDto)); } catch (Exception) { diff --git a/EOM.TSHotelManagement.Application/SystemManagement/SupervisionStatistics/ISupervisionStatisticsService.cs b/EOM.TSHotelManagement.Application/SystemManagement/SupervisionStatistics/ISupervisionStatisticsService.cs index 1b8c02ffd551b5e12af576a709236438a9996235..85bc35e5800bb70664e49f10a66bd859c6a1b0f6 100644 --- a/EOM.TSHotelManagement.Application/SystemManagement/SupervisionStatistics/ISupervisionStatisticsService.cs +++ b/EOM.TSHotelManagement.Application/SystemManagement/SupervisionStatistics/ISupervisionStatisticsService.cs @@ -22,7 +22,6 @@ * */ using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; namespace EOM.TSHotelManagement.Application { diff --git a/EOM.TSHotelManagement.Application/SystemManagement/VipRule/IVipRuleAppService.cs b/EOM.TSHotelManagement.Application/SystemManagement/VipRule/IVipRuleAppService.cs index 96deb6142ed70319b6c8fd3cafbc5656f0cd2b1a..be701985172d514090f79ece3ecbf100605ebdd5 100644 --- a/EOM.TSHotelManagement.Application/SystemManagement/VipRule/IVipRuleAppService.cs +++ b/EOM.TSHotelManagement.Application/SystemManagement/VipRule/IVipRuleAppService.cs @@ -23,7 +23,6 @@ *模块说明:会员等级规则功能模块接口 */ using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; namespace EOM.TSHotelManagement.Application { diff --git a/EOM.TSHotelManagement.Application/SystemManagement/VipRule/VipRuleAppService.cs b/EOM.TSHotelManagement.Application/SystemManagement/VipRule/VipRuleAppService.cs index edb992387674b5b07cf0a78e28dd357f7be0d65d..5c2001e95fa70d614f14efb994f806b070c5dc20 100644 --- a/EOM.TSHotelManagement.Application/SystemManagement/VipRule/VipRuleAppService.cs +++ b/EOM.TSHotelManagement.Application/SystemManagement/VipRule/VipRuleAppService.cs @@ -75,7 +75,7 @@ namespace EOM.TSHotelManagement.Application listSource.ForEach(source => { - var userType = listUserType.FirstOrDefault(a => a.CustomerType == source.VipLevelId); + var userType = listUserType.SingleOrDefault(a => a.CustomerType == source.VipLevelId); source.VipLevelName = userType == null ? "" : userType.CustomerTypeName; }); diff --git a/EOM.TSHotelManagement.Application/Util/IUtilService.cs b/EOM.TSHotelManagement.Application/Util/IUtilService.cs index c6e79a76a791a02406ebd4967a93d1fe472af726..5b67667803837b498a7bfa1bd395d09e12c3fc1f 100644 --- a/EOM.TSHotelManagement.Application/Util/IUtilService.cs +++ b/EOM.TSHotelManagement.Application/Util/IUtilService.cs @@ -1,5 +1,4 @@ using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; namespace EOM.TSHotelManagement.Application { diff --git a/EOM.TSHotelManagement.Application/Util/UtilService.cs b/EOM.TSHotelManagement.Application/Util/UtilService.cs index 522a2c5f8208f6c9dbc39962f0cbda4d66c1b52d..2a393ea3a4ca21076fa79615dfcf209be2b87818 100644 --- a/EOM.TSHotelManagement.Application/Util/UtilService.cs +++ b/EOM.TSHotelManagement.Application/Util/UtilService.cs @@ -63,7 +63,7 @@ namespace EOM.TSHotelManagement.Application /// public ReadApplicationVersionOutputDto CheckBaseVersion() { - var source = EntityMapper.Map(applicationRepository.GetSingle(a => a.ApplicationVersionId == 1)); + var source = EntityMapper.Map(applicationRepository.GetSingle(a => a.ApplicationVersionId == 1)); return source; } @@ -77,7 +77,7 @@ namespace EOM.TSHotelManagement.Application { try { - operationLogRepository.Insert(EntityMapper.Map(opr)); + operationLogRepository.Insert(EntityMapper.Map(opr)); } catch (Exception ex) { @@ -120,7 +120,7 @@ namespace EOM.TSHotelManagement.Application operationLogs.ForEach(source => { - source.LogLevelName = source.LogLevel == LogLevel.Normal ? LocalizationHelper.GetLocalizedString("INFO","常规操作") : source.LogLevel == LogLevel.Warning ? LocalizationHelper.GetLocalizedString("WARNING","敏感操作") : LocalizationHelper.GetLocalizedString("ERROR","严重操作"); + source.LogLevelName = source.LogLevel == LogLevel.Normal ? LocalizationHelper.GetLocalizedString("INFO", "常规操作") : source.LogLevel == LogLevel.Warning ? LocalizationHelper.GetLocalizedString("WARNING", "敏感操作") : LocalizationHelper.GetLocalizedString("ERROR", "严重操作"); }); var listSource = EntityMapper.MapList(operationLogs); diff --git a/EOM.TSHotelManagement.Common.Contract/BaseDto/BaseDto.cs b/EOM.TSHotelManagement.Common.Contract/BaseDto/BaseDto.cs index d1afb156ca61800d8d83bb7cdf839c9ca6095713..ee5b8c26b25f40ea0fe178557abb6b2685adadcc 100644 --- a/EOM.TSHotelManagement.Common.Contract/BaseDto/BaseDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/BaseDto/BaseDto.cs @@ -1,6 +1,4 @@ -using System; - -namespace EOM.TSHotelManagement.Common.Contract +namespace EOM.TSHotelManagement.Common.Contract { public class BaseDto { diff --git a/EOM.TSHotelManagement.Common.Contract/BaseDto/BaseInputDto.cs b/EOM.TSHotelManagement.Common.Contract/BaseDto/BaseInputDto.cs index ff04582dc80743b61badad5d4779c3afebd16437..fea47ad929401eb38e5d3d8c590c86a1396e391a 100644 --- a/EOM.TSHotelManagement.Common.Contract/BaseDto/BaseInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/BaseDto/BaseInputDto.cs @@ -1,12 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace EOM.TSHotelManagement.Common.Contract +namespace EOM.TSHotelManagement.Common.Contract { - public class BaseInputDto: BaseDto + public class BaseInputDto : BaseDto { public int Id { get; set; } /// diff --git a/EOM.TSHotelManagement.Common.Contract/BaseDto/BaseOutputDto.cs b/EOM.TSHotelManagement.Common.Contract/BaseDto/BaseOutputDto.cs index 7d1a38003c9fbcb021b4a6caad5fd47ef4b2e33b..be52c5ce178cf5d4c05418a0455e48ff53ad73bb 100644 --- a/EOM.TSHotelManagement.Common.Contract/BaseDto/BaseOutputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/BaseDto/BaseOutputDto.cs @@ -1,9 +1,4 @@ using EOM.TSHotelManagement.Common.Util; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace EOM.TSHotelManagement.Common.Contract { @@ -17,7 +12,7 @@ namespace EOM.TSHotelManagement.Common.Contract /// /// 返回消息,用于描述请求结果 /// - public string Message { get; set; } = LocalizationHelper.GetLocalizedString("Success","成功"); + public string Message { get; set; } = LocalizationHelper.GetLocalizedString("Success", "成功"); /// /// diff --git a/EOM.TSHotelManagement.Common.Contract/BaseDto/ListInputDto.cs b/EOM.TSHotelManagement.Common.Contract/BaseDto/ListInputDto.cs index 7fb4d65b72471f9688a12cd7d8298a57925980ff..b535ed30605222da57ae332a30d7f616d140a1f1 100644 --- a/EOM.TSHotelManagement.Common.Contract/BaseDto/ListInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/BaseDto/ListInputDto.cs @@ -1,12 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace EOM.TSHotelManagement.Common.Contract +namespace EOM.TSHotelManagement.Common.Contract { - public class ListInputDto:BaseInputDto + public class ListInputDto : BaseInputDto { /// /// 页数 diff --git a/EOM.TSHotelManagement.Common.Contract/BaseDto/ListOutputDto.cs b/EOM.TSHotelManagement.Common.Contract/BaseDto/ListOutputDto.cs index 28f017bdd773f5d88d3905f2da452bd7403e3f1c..4455a60490409e9f871f9eca0902bfdb21739215 100644 --- a/EOM.TSHotelManagement.Common.Contract/BaseDto/ListOutputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/BaseDto/ListOutputDto.cs @@ -21,8 +21,6 @@ *SOFTWARE. * */ -using System.Collections.Generic; - namespace EOM.TSHotelManagement.Common.Contract { /// diff --git a/EOM.TSHotelManagement.Common.Contract/BaseDto/SingleOutputDto.cs b/EOM.TSHotelManagement.Common.Contract/BaseDto/SingleOutputDto.cs index fa49ea7401585346428f865872aaa76ba496d3f5..ce2acaa3db88e6b9a611acf6fa8d1f7973d51793 100644 --- a/EOM.TSHotelManagement.Common.Contract/BaseDto/SingleOutputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/BaseDto/SingleOutputDto.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace EOM.TSHotelManagement.Common.Contract +namespace EOM.TSHotelManagement.Common.Contract { public class SingleOutputDto : BaseOutputDto { diff --git a/EOM.TSHotelManagement.Common.Contract/BaseDto/StatusCodeConstants.cs b/EOM.TSHotelManagement.Common.Contract/BaseDto/StatusCodeConstants.cs index 0310ee877409f679028fd4ea2f15393dbd3d5179..1ebed1e83dfae4ade9e29c13c9ed5390778f25e8 100644 --- a/EOM.TSHotelManagement.Common.Contract/BaseDto/StatusCodeConstants.cs +++ b/EOM.TSHotelManagement.Common.Contract/BaseDto/StatusCodeConstants.cs @@ -1,20 +1,105 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace EOM.TSHotelManagement.Common.Contract +namespace EOM.TSHotelManagement.Common.Contract { public static class StatusCodeConstants { + // 2xx Success + /// + /// 请求成功 + /// public const int Success = 200; + + /// + /// 创建成功(常用于 POST 请求) + /// public const int Created = 201; + + /// + /// 已接受(请求已接收但未处理完成) + /// + public const int Accepted = 202; + + /// + /// 无内容(响应体为空) + /// + public const int NoContent = 204; + + // 3xx Redirection + /// + /// 永久重定向 + /// + public const int MovedPermanently = 301; + + /// + /// 临时重定向 + /// + public const int Found = 302; + + /// + /// 查看其他地址(常用于 POST 后重定向) + /// + public const int SeeOther = 303; + + /// + /// 资源未修改(缓存用) + /// + public const int NotModified = 304; + + // 4xx Client Errors + /// + /// 错误请求(参数或格式错误) + /// public const int BadRequest = 400; + + /// + /// 未授权(身份验证失败) + /// public const int Unauthorized = 401; + + /// + /// 禁止访问(无权限) + /// public const int Forbidden = 403; + + /// + /// 未找到资源 + /// public const int NotFound = 404; + + /// + /// 方法不允许(如 GET 接口用 POST 访问) + /// + public const int MethodNotAllowed = 405; + + /// + /// 请求超时 + /// + public const int RequestTimeout = 408; + + /// + /// 资源冲突(如重复提交) + /// + public const int Conflict = 409; + + // 5xx Server Errors + /// + /// 服务器内部错误 + /// public const int InternalServerError = 500; + + /// + /// 网关错误(上游服务异常) + /// + public const int BadGateway = 502; + + /// + /// 服务不可用(维护或过载) + /// + public const int ServiceUnavailable = 503; + + /// + /// 网关超时(上游服务响应超时) + /// + public const int GatewayTimeout = 504; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Asset/Dto/Asset/CreateAssetInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Asset/Dto/Asset/CreateAssetInputDto.cs index 18ad7f10cfb5b9ea1c63827bd593840669dfea6b..bd654d1b7dabd0429c42bd9a9542222186a153a4 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Asset/Dto/Asset/CreateAssetInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Asset/Dto/Asset/CreateAssetInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateAssetInputDto:BaseInputDto + public class CreateAssetInputDto : BaseInputDto { public string AssetNumber { get; set; } public string AssetName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Asset/Dto/Asset/DeleteAssetInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Asset/Dto/Asset/DeleteAssetInputDto.cs index 9bd786ceb24630d06528dbf8d12ab82b32255877..f9a7b9c130720982a9dc219f613b0aa05c0defba 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Asset/Dto/Asset/DeleteAssetInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Asset/Dto/Asset/DeleteAssetInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteAssetInputDto: BaseInputDto + public class DeleteAssetInputDto : BaseInputDto { public string AssetNumber { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Asset/Dto/Asset/ReadAssetInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Asset/Dto/Asset/ReadAssetInputDto.cs index cf8ffc96dcd55c6776989fe3aa517608b8578383..2d3c6f1dd94a95f410d95356f2c8afbe55bedb6c 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Asset/Dto/Asset/ReadAssetInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Asset/Dto/Asset/ReadAssetInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadAssetInputDto: ListInputDto + public class ReadAssetInputDto : ListInputDto { public string AssetNumber { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Asset/Dto/Asset/UpdateAssetInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Asset/Dto/Asset/UpdateAssetInputDto.cs index 55b8f9df66fdd40f9915659baf8faabfd9fc2d8f..bfa40d9b15c6384f988c4739f2aee112de61514a 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Asset/Dto/Asset/UpdateAssetInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Asset/Dto/Asset/UpdateAssetInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateAssetInputDto: BaseInputDto + public class UpdateAssetInputDto : BaseInputDto { public string AssetNumber { get; set; } public string AssetName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/CustoType/CreateCustoTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/CustoType/CreateCustoTypeInputDto.cs index 18d3b313b25fbd16afeea43e8d67d3965b3574d0..49ca22cc130be24557b89504f78deb9ed3613219 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/CustoType/CreateCustoTypeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/CustoType/CreateCustoTypeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateCustoTypeInputDto: BaseInputDto + public class CreateCustoTypeInputDto : BaseInputDto { /// /// ͻ (Customer Type) diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/CustoType/DeleteCustoTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/CustoType/DeleteCustoTypeInputDto.cs index 3eed652367783084829b0675bbdc594ae1bd47e0..34e834c9738c985313681d20a77e2fe6ce91601b 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/CustoType/DeleteCustoTypeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/CustoType/DeleteCustoTypeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteCustoTypeInputDto: BaseInputDto + public class DeleteCustoTypeInputDto : BaseInputDto { public int CustomerType { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/CustoType/ReadCustoTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/CustoType/ReadCustoTypeInputDto.cs index a51fad3387e5700594e10328864f585347534666..5fd557535d648198e228573ba54ac6e3c9762d3e 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/CustoType/ReadCustoTypeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/CustoType/ReadCustoTypeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadCustoTypeInputDto:ListInputDto + public class ReadCustoTypeInputDto : ListInputDto { public int CustomerType { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/CustoType/UpdateCustoTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/CustoType/UpdateCustoTypeInputDto.cs index 41caac015d5b03736e1dbb063f8103d761a87eeb..4420fec30019e21b8eb17f11537273f875d2b0f7 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/CustoType/UpdateCustoTypeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/CustoType/UpdateCustoTypeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateCustoTypeInputDto: BaseInputDto + public class UpdateCustoTypeInputDto : BaseInputDto { public int CustomerType { get; set; } public string CustomerTypeName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/Customer/CreateCustomerInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/Customer/CreateCustomerInputDto.cs index ca56c28b41dbc7799c6208fbcfb3a8f601aacf8f..992a6078e400caeb771be4a9657f1d0dfbec7ba6 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/Customer/CreateCustomerInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/Customer/CreateCustomerInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateCustomerInputDto:BaseInputDto + public class CreateCustomerInputDto : BaseInputDto { public string CustomerNumber { get; set; } public string CustomerName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/Customer/DeleteCustomerInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/Customer/DeleteCustomerInputDto.cs index c78cf70a1ea27fd15f343d3abea81e0e94918121..e0f07b4b6944cdf673040bf67d0a75337955cf1d 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/Customer/DeleteCustomerInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/Customer/DeleteCustomerInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteCustomerInputDto:BaseInputDto + public class DeleteCustomerInputDto : BaseInputDto { public string CustomerNumber { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/Customer/ReadCustomerInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/Customer/ReadCustomerInputDto.cs index b22fe5643ff5f7c37c2fcc6425ab60d3b7a38470..ccbba1c8a2aabab2d6dff33c587ef525499d8db2 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/Customer/ReadCustomerInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/Customer/ReadCustomerInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadCustomerInputDto:ListInputDto + public class ReadCustomerInputDto : ListInputDto { public string CustomerName { get; set; } public string CustomerNumber { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/Customer/UpdateCustomerInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/Customer/UpdateCustomerInputDto.cs index c87a5da782aeb5f0e2543366acb855c279ac7bca..f733cc708f098abd9543f9712eb8718a36aed868 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/Customer/UpdateCustomerInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/Customer/UpdateCustomerInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateCustomerInputDto: BaseInputDto + public class UpdateCustomerInputDto : BaseInputDto { public string CustomerNumber { get; set; } public string CustomerName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/GenderType/CreateGenderTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/GenderType/CreateGenderTypeInputDto.cs index 9315a2ae866a04e9a9704427b27bafa76ce10d9e..48a48a1cf719defbedea7d1a0f5c6a068e24403e 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/GenderType/CreateGenderTypeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/GenderType/CreateGenderTypeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateGenderTypeInputDto: BaseInputDto + public class CreateGenderTypeInputDto : BaseInputDto { public string GenderName { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/GenderType/DeleteGenderTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/GenderType/DeleteGenderTypeInputDto.cs index 1805d1cd1247145dd4cc011e4bb07b40c07d2c9f..0f478a9ccd5bcd28057f7c30ee065b47078e462f 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/GenderType/DeleteGenderTypeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/GenderType/DeleteGenderTypeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteGenderTypeInputDto: BaseInputDto + public class DeleteGenderTypeInputDto : BaseInputDto { public int GenderId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/GenderType/ReadGenderTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/GenderType/ReadGenderTypeInputDto.cs index ad8dfb5c3559999da45ab9218680985ec155f862..9ad19ea6f9c819612a3689241bd50653adf196ed 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/GenderType/ReadGenderTypeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/GenderType/ReadGenderTypeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadGenderTypeInputDto:ListInputDto + public class ReadGenderTypeInputDto : ListInputDto { public int GenderId { get; set; } public string GenderName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/GenderType/UpdateGenderTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/GenderType/UpdateGenderTypeInputDto.cs index eb173c97b07b048ce48046a6550c6d5f9d9c7894..fe5925faa9d60b930b4bfba767af507b85f001de 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/GenderType/UpdateGenderTypeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/GenderType/UpdateGenderTypeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateGenderTypeInputDto: BaseInputDto + public class UpdateGenderTypeInputDto : BaseInputDto { public int GenderId { get; set; } public string GenderName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/PassportType/CreatePassportTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/PassportType/CreatePassportTypeInputDto.cs index df95dd1bbc3056ece74251cb9d9c2e776a9b826c..2c3bf67ffb67214d91297d026912bc4f48b88bc8 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/PassportType/CreatePassportTypeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/PassportType/CreatePassportTypeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreatePassportTypeInputDto: BaseInputDto + public class CreatePassportTypeInputDto : BaseInputDto { public int PassportId { get; set; } public string PassportName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/PassportType/DeletePassportTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/PassportType/DeletePassportTypeInputDto.cs index f62c6fd32371138a74ac0049bf1d014abda20993..bfe418b409f49fb1415ca2614baed8116374c72b 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/PassportType/DeletePassportTypeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/PassportType/DeletePassportTypeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeletePassportTypeInputDto: BaseInputDto + public class DeletePassportTypeInputDto : BaseInputDto { public int PassportId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/PassportType/ReadPassportTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/PassportType/ReadPassportTypeInputDto.cs index f10f8fd25187ecb4fe1fcfc7a7b7e756892244af..627079608e18562900eb73a59956906453ba93df 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/PassportType/ReadPassportTypeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/PassportType/ReadPassportTypeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadPassportTypeInputDto:ListInputDto + public class ReadPassportTypeInputDto : ListInputDto { public int PassportId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/PassportType/UpdatePassportTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/PassportType/UpdatePassportTypeInputDto.cs index b027d5dd07bf81e03f569ad62f4d987080c1ea71..8783e483bc3e209a6cd3a784e39b0ee0fb96047f 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/PassportType/UpdatePassportTypeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Customer/Dto/PassportType/UpdatePassportTypeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdatePassportTypeInputDto: BaseInputDto + public class UpdatePassportTypeInputDto : BaseInputDto { public int PassportId { get; set; } public string PassportName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/EnergyManagement/Dto/DeleteEnergyManagementInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/EnergyManagement/Dto/DeleteEnergyManagementInputDto.cs index 85c2de8a499330ef873a4e3da214592764e3bd46..ec8564d33ee734d850483d87441fcbc1f840ea71 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/EnergyManagement/Dto/DeleteEnergyManagementInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/EnergyManagement/Dto/DeleteEnergyManagementInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteEnergyManagementInputDto: BaseInputDto + public class DeleteEnergyManagementInputDto : BaseInputDto { public int InformationId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/EnergyManagement/Dto/ReadEnergyManagementInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/EnergyManagement/Dto/ReadEnergyManagementInputDto.cs index 025458784ee87b54e9dea63ebbd088e78e1bf6a3..fd4c952fd1df1caee6325d3038d947dd6ca6d920 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/EnergyManagement/Dto/ReadEnergyManagementInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/EnergyManagement/Dto/ReadEnergyManagementInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadEnergyManagementInputDto:ListInputDto + public class ReadEnergyManagementInputDto : ListInputDto { public int InformationId { get; set; } public string RoomNo { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/EnergyManagement/Dto/UpdateEnergyManagementInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/EnergyManagement/Dto/UpdateEnergyManagementInputDto.cs index 171add6849e1347a66b6cb486e9343af116326b8..f25fb489ac18fc977db45dd0d125f7ce3b62674a 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/EnergyManagement/Dto/UpdateEnergyManagementInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/EnergyManagement/Dto/UpdateEnergyManagementInputDto.cs @@ -1,8 +1,8 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateEnergyManagementInputDto: BaseInputDto + public class UpdateEnergyManagementInputDto : BaseInputDto { - public int InformationId { get; set; } + public string InformationId { get; set; } public string RoomNumber { get; set; } public string CustomerNumber { get; set; } public DateTime StartDate { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/PromotionContent/Dto/CreatePromotionContentInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/PromotionContent/Dto/CreatePromotionContentInputDto.cs index f911e22b73f369b2d81a6685b3d660f7af118ece..3d714aea97636e1fc491c88802a2bbcb928e66fe 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/PromotionContent/Dto/CreatePromotionContentInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/PromotionContent/Dto/CreatePromotionContentInputDto.cs @@ -1,11 +1,8 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreatePromotionContentInputDto: BaseInputDto + public class CreatePromotionContentInputDto : BaseInputDto { - public string PromotionTitle { get; set; } - public string PromotionContent { get; set; } - public DateTime StartDate { get; set; } - public DateTime EndDate { get; set; } + public string PromotionContentMessage { get; set; } } } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/PromotionContent/Dto/DeletePromotionContentInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/PromotionContent/Dto/DeletePromotionContentInputDto.cs index 2a9125910938ae1772a2e0a7733a7c6312624476..6ca169ec4ed95afd3f3f331d779fdc8f4e4c120c 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/PromotionContent/Dto/DeletePromotionContentInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/PromotionContent/Dto/DeletePromotionContentInputDto.cs @@ -1,8 +1,7 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeletePromotionContentInputDto: BaseInputDto + public class DeletePromotionContentInputDto : BaseInputDto { - public int PromotionId { get; set; } } } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/PromotionContent/Dto/ReadPromotionContentInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/PromotionContent/Dto/ReadPromotionContentInputDto.cs index 8d89226fa1d95e544dde2e35c5bebae6abebecfa..0ec70e0ad0692897d4798ae4fbc545d974dc5360 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/PromotionContent/Dto/ReadPromotionContentInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/PromotionContent/Dto/ReadPromotionContentInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadPromotionContentInputDto:ListInputDto + public class ReadPromotionContentInputDto : ListInputDto { public int PromotionId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/PromotionContent/Dto/UpdatePromotionContentInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/PromotionContent/Dto/UpdatePromotionContentInputDto.cs index 327a636d47a40f31fe3a5ccdde98643b4824d676..b2b847aca373cf12fdd40f0864d7146ceb8199d5 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/PromotionContent/Dto/UpdatePromotionContentInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/PromotionContent/Dto/UpdatePromotionContentInputDto.cs @@ -1,12 +1,8 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdatePromotionContentInputDto: BaseInputDto + public class UpdatePromotionContentInputDto : BaseInputDto { - public int PromotionId { get; set; } - public string PromotionTitle { get; set; } - public string PromotionContent { get; set; } - public DateTime StartDate { get; set; } - public DateTime EndDate { get; set; } + public string PromotionContentMessage { get; set; } } } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Reser/Dto/CreateReserInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Reser/Dto/CreateReserInputDto.cs index 9a78cbd3fe1dbe836a35d42267f88d1408364080..9bfa66be4e345a6484e10032e9ede7a3ad37de7d 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Reser/Dto/CreateReserInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Reser/Dto/CreateReserInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateReserInputDto: BaseInputDto + public class CreateReserInputDto : BaseInputDto { public string ReservationId { get; set; } public string CustomerName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Reser/Dto/DeleteReserInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Reser/Dto/DeleteReserInputDto.cs index 9e01050bfc552ba6b198429de22bfeeeb8761ce6..43b70943d3a9b0141aa456b1c9430683d653238a 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Reser/Dto/DeleteReserInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Reser/Dto/DeleteReserInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteReserInputDto:BaseInputDto + public class DeleteReserInputDto : BaseInputDto { public string ReservationId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Reser/Dto/ReadReserInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Reser/Dto/ReadReserInputDto.cs index aed513fcb48631f4f99b17eb5021b26b2ab8da42..c03af87d0c567067245dc22aa1dce9bb06a1ddce 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Reser/Dto/ReadReserInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Reser/Dto/ReadReserInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadReserInputDto:ListInputDto + public class ReadReserInputDto : ListInputDto { public string ReservationId { get; set; } public string CustomerName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Reser/Dto/UpdateReserInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Reser/Dto/UpdateReserInputDto.cs index 92a2d7e9df4ee01813e34130c820bc01797db179..15669475c104ebf17f3474244e1ff08610b92ae7 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Reser/Dto/UpdateReserInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Reser/Dto/UpdateReserInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateReserInputDto: BaseInputDto + public class UpdateReserInputDto : BaseInputDto { public string ReservationId { get; set; } public string CustomerName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomState/CreateRoomStateInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomState/CreateRoomStateInputDto.cs index 67b3ef0bc8db5bf3a7516e8baa23b0ef6b1a21c9..e0e9972a8c0ce4dcbbc1a52670e6e64247a55ff4 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomState/CreateRoomStateInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomState/CreateRoomStateInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateRoomStateInputDto: BaseInputDto + public class CreateRoomStateInputDto : BaseInputDto { public string RoomStateName { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomState/DeleteRoomStateInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomState/DeleteRoomStateInputDto.cs index 5d0d46f10f4f11070ceadcf87a07fb59596d2802..c32cc97de7312e843e30dae443ec405dcde62f6f 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomState/DeleteRoomStateInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomState/DeleteRoomStateInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteRoomStateInputDto: BaseInputDto + public class DeleteRoomStateInputDto : BaseInputDto { public int RoomStateId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomState/ReadRoomStateInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomState/ReadRoomStateInputDto.cs index 0c192f5b652db52b4cad83b2e42e391daf4769c7..85f2fb26a4425cbbdcb45e9c567710da06000160 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomState/ReadRoomStateInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomState/ReadRoomStateInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadRoomStateInputDto:ListInputDto + public class ReadRoomStateInputDto : ListInputDto { public int RoomStateId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomState/UpdateRoomStateInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomState/UpdateRoomStateInputDto.cs index a48eea38cf71f9a1a2da283e0e00a3edcd9456ed..b939ca661850754adae424ea6963f3b5a7588c01 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomState/UpdateRoomStateInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomState/UpdateRoomStateInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateRoomStateInputDto: BaseInputDto + public class UpdateRoomStateInputDto : BaseInputDto { public int RoomStateId { get; set; } public string RoomStateName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomType/CreateRoomTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomType/CreateRoomTypeInputDto.cs index 52d67833101d74f9ee3d9a9de19e7b0a84875b44..013104f7b00006926532dff1ccc50bbd7cced0ab 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomType/CreateRoomTypeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomType/CreateRoomTypeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateRoomTypeInputDto: BaseInputDto + public class CreateRoomTypeInputDto : BaseInputDto { public int RoomTypeId { get; set; } public string RoomTypeName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomType/DeleteRoomTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomType/DeleteRoomTypeInputDto.cs index 046819cc73bc3d1364d14d67142e0f2b70980de6..f87287157a29f13b8e691305b99508f6239bdc1e 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomType/DeleteRoomTypeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomType/DeleteRoomTypeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteRoomTypeInputDto: BaseInputDto + public class DeleteRoomTypeInputDto : BaseInputDto { public int RoomTypeId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomType/ReadRoomTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomType/ReadRoomTypeInputDto.cs index e7fc121938449f90d44b7cf88fd920817d7d0ed4..372e766ce235d6fea71940a06ac462407575986c 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomType/ReadRoomTypeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomType/ReadRoomTypeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadRoomTypeInputDto:ListInputDto + public class ReadRoomTypeInputDto : ListInputDto { public string RoomNumber { get; set; } public int RoomTypeId { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomType/UpdateRoomTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomType/UpdateRoomTypeInputDto.cs index 96165ceca611a18fbed1d5309dd30ca2d67665ac..8a691217b0ed70c663f9695535604c552384e49f 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomType/UpdateRoomTypeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Room/Dto/RoomType/UpdateRoomTypeInputDto.cs @@ -1,9 +1,6 @@ -using EOM.TSHotelManagement.Common.Util; -using SqlSugar; - namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateRoomTypeInputDto: BaseInputDto + public class UpdateRoomTypeInputDto : BaseInputDto { public int RoomTypeId { get; set; } public string RoomTypeName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Sellthing/Dto/CreateSellThingInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Sellthing/Dto/CreateSellThingInputDto.cs index 6ee8f743511a4dfb4f526b2557a6a746d4938c73..5e08c5990136f0d200e2d01fef5da15147fb72af 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Sellthing/Dto/CreateSellThingInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Sellthing/Dto/CreateSellThingInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateSellThingInputDto: BaseInputDto + public class CreateSellThingInputDto : BaseInputDto { public string ProductNumber { get; set; } public string ProductName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Sellthing/Dto/DeleteSellThingInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Sellthing/Dto/DeleteSellThingInputDto.cs index dc47ed7f016d60055061336a9799d737ce64877e..24b5e590942f7fa8dc332fed1fd47a4e6f52382c 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Sellthing/Dto/DeleteSellThingInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Sellthing/Dto/DeleteSellThingInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteSellThingInputDto: BaseInputDto + public class DeleteSellThingInputDto : BaseInputDto { public string RoomNumber { get; set; } public string CustomerNumber { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Sellthing/Dto/ReadSellThingInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Sellthing/Dto/ReadSellThingInputDto.cs index 4d58b83247a5aac972001eb4973dda01b23481a5..aee16ab04acfde0cc43b669164ca03aeeaa39ea7 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Sellthing/Dto/ReadSellThingInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Sellthing/Dto/ReadSellThingInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadSellThingInputDto:ListInputDto + public class ReadSellThingInputDto : ListInputDto { public string ProductNumber { get; set; } public string ProductName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Sellthing/Dto/UpdateSellThingInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Sellthing/Dto/UpdateSellThingInputDto.cs index 6d824dddcb0d490879a824d14a635ee5cf54798b..35ec42ae3ec5ac611270747d4991a28ae57c4536 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Sellthing/Dto/UpdateSellThingInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Sellthing/Dto/UpdateSellThingInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateSellThingInputDto: BaseInputDto + public class UpdateSellThingInputDto : BaseInputDto { public string ProductNumber { get; set; } public string ProductName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Spend/Dto/Spend/CreateSpendInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Spend/Dto/Spend/CreateSpendInputDto.cs index 66a6913b73c4f28c6ee509538bbe495982c85d8f..ecaed44b3e33713d32d8e60e9b9975c62c3d04b5 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Spend/Dto/Spend/CreateSpendInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Spend/Dto/Spend/CreateSpendInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateSpendInputDto: BaseInputDto + public class CreateSpendInputDto : BaseInputDto { public string SpendNumber { get; set; } public string RoomNumber { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Spend/Dto/Spend/DeleteSpendInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Spend/Dto/Spend/DeleteSpendInputDto.cs index adcf7269bd74e7fe7319da23d9709b8ae1010b26..c283bbc5f44765c567251d959708bf8eee422191 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Spend/Dto/Spend/DeleteSpendInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Spend/Dto/Spend/DeleteSpendInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteSpendInputDto: BaseInputDto + public class DeleteSpendInputDto : BaseInputDto { public string RoomNumber { get; set; } public string CustomerNumber { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Spend/Dto/Spend/ReadSpendInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Spend/Dto/Spend/ReadSpendInputDto.cs index cf392ea201ddd8a1df8e371e2d04aa6790a441cd..d1c3e19859e58edfd85e330103e08c9899910f0f 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Spend/Dto/Spend/ReadSpendInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Spend/Dto/Spend/ReadSpendInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadSpendInputDto:ListInputDto + public class ReadSpendInputDto : ListInputDto { public string SpendNumber { get; set; } public string RoomNumber { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Spend/Dto/Spend/ReadSpendOutputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Spend/Dto/Spend/ReadSpendOutputDto.cs index 59f64f982656acaeddd7901c9c755d5e05491c80..280038c4ff5bff420b90bfada4b5b74400b8aaa5 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Spend/Dto/Spend/ReadSpendOutputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Spend/Dto/Spend/ReadSpendOutputDto.cs @@ -10,7 +10,7 @@ namespace EOM.TSHotelManagement.Common.Contract public string RoomNumber { get; set; } [UIDisplay("ͻ")] public string CustomerNumber { get; set; } - [UIDisplay("Ʒ",false,false)] + [UIDisplay("Ʒ", false, false)] public string ProductNumber { get; set; } [UIDisplay("Ʒ")] public string ProductName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Business/Spend/Dto/Spend/UpdateSpendInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Business/Spend/Dto/Spend/UpdateSpendInputDto.cs index a43b9ab34e04ae2b2da2f6d231dc0e58926afafa..d8c6b404c0d48a79eed35b392ef78429051633c9 100644 --- a/EOM.TSHotelManagement.Common.Contract/Business/Spend/Dto/Spend/UpdateSpendInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Business/Spend/Dto/Spend/UpdateSpendInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateSpendInputDto: BaseInputDto + public class UpdateSpendInputDto : BaseInputDto { public string SpendNumber { get; set; } public string RoomNumber { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/Employee/CreateEmployeeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/Employee/CreateEmployeeInputDto.cs index 45a3ff3c93003d4d13790aa61212478fb19f16a0..629e964311722d699e5430e6556c3431622e7ab6 100644 --- a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/Employee/CreateEmployeeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/Employee/CreateEmployeeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateEmployeeInputDto: BaseInputDto + public class CreateEmployeeInputDto : BaseInputDto { public string EmployeeId { get; set; } public string EmployeeName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/Employee/DeleteEmployeeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/Employee/DeleteEmployeeInputDto.cs index 8e55f709b6899e3b14f6c0a4b73ebe3316db3a0f..6734d23dd1eed9e429dce4aecb097c6d244b35f9 100644 --- a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/Employee/DeleteEmployeeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/Employee/DeleteEmployeeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteEmployeeInputDto: BaseInputDto + public class DeleteEmployeeInputDto : BaseInputDto { public string EmployeeId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/Employee/ReadEmployeeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/Employee/ReadEmployeeInputDto.cs index bc630024a0518e27dbf8e0d9da45cfd57ebab9ed..bc10e79efa3afe24847d4d38a569a1c010e56972 100644 --- a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/Employee/ReadEmployeeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/Employee/ReadEmployeeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadEmployeeInputDto:ListInputDto + public class ReadEmployeeInputDto : ListInputDto { public string EmployeeId { get; set; } public string EmployeeName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/Employee/ReadEmployeeOutputDto.cs b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/Employee/ReadEmployeeOutputDto.cs index fcf106276ca49e1b2e7fc4965f2832f782553c3d..1b7972b826dfead43aa7ffc66ea4a98df2a198fa 100644 --- a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/Employee/ReadEmployeeOutputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/Employee/ReadEmployeeOutputDto.cs @@ -1,7 +1,7 @@  namespace EOM.TSHotelManagement.Common.Contract { - public class ReadEmployeeOutputDto:BaseDto + public class ReadEmployeeOutputDto : BaseDto { public string EmployeeId { get; set; } public string EmployeeName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/Employee/UpdateEmployeeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/Employee/UpdateEmployeeInputDto.cs index 7c5bc98e7733b5dd349bb3feb38bb4d551706774..c8d9b905a231688fb80496c147dfeca68bc1169d 100644 --- a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/Employee/UpdateEmployeeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/Employee/UpdateEmployeeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateEmployeeInputDto: BaseInputDto + public class UpdateEmployeeInputDto : BaseInputDto { public string EmployeeId { get; set; } public string EmployeeName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeCheck/CreateEmployeeCheckInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeCheck/CreateEmployeeCheckInputDto.cs index edb42b05f46b6f7950b22b98ad868f657788be63..98cf3aa2ceb6cb3a42a40a8ae97e6ba98029fcff 100644 --- a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeCheck/CreateEmployeeCheckInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeCheck/CreateEmployeeCheckInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateEmployeeCheckInputDto: BaseInputDto + public class CreateEmployeeCheckInputDto : BaseInputDto { /// /// 򿨱 (Check-in/Check-out Number) diff --git a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeCheck/DeleteEmployeeCheckInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeCheck/DeleteEmployeeCheckInputDto.cs index 86924e651279340185947184ad297b76df87b567..773f12d0a6e510987b9d3a3d5df489d4a5f8e645 100644 --- a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeCheck/DeleteEmployeeCheckInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeCheck/DeleteEmployeeCheckInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteEmployeeCheckInputDto: BaseInputDto + public class DeleteEmployeeCheckInputDto : BaseInputDto { public int CheckId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeCheck/ReadEmployeeCheckInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeCheck/ReadEmployeeCheckInputDto.cs index ac32f7eb22c232714f278bd8a019104ed1b75495..83e9f6d28c068fce65064ed8d9978cfbad3b1ae4 100644 --- a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeCheck/ReadEmployeeCheckInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeCheck/ReadEmployeeCheckInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadEmployeeCheckInputDto:ListInputDto + public class ReadEmployeeCheckInputDto : ListInputDto { public int CheckId { get; set; } public string EmployeeId { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeCheck/UpdateEmployeeCheckInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeCheck/UpdateEmployeeCheckInputDto.cs index 2ffb398a84a9c7348ffdc24c42d93f2ae94be5c9..1f30efa97209ab11a63444c524e06b3d21f4c5f6 100644 --- a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeCheck/UpdateEmployeeCheckInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeCheck/UpdateEmployeeCheckInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateEmployeeCheckInputDto: BaseInputDto + public class UpdateEmployeeCheckInputDto : BaseInputDto { public int CheckId { get; set; } public string EmployeeId { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeHistory/CreateEmployeeHistoryInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeHistory/CreateEmployeeHistoryInputDto.cs index d3e2aa68784b34c1b96789ba948f401f3ba377d2..cb5ff0805c6b324fbfd9cbf0166594fe01d1ff0f 100644 --- a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeHistory/CreateEmployeeHistoryInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeHistory/CreateEmployeeHistoryInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateEmployeeHistoryInputDto: BaseInputDto + public class CreateEmployeeHistoryInputDto : BaseInputDto { public string EmployeeId { get; set; } public DateTime ChangeDate { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeHistory/DeleteEmployeeHistoryInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeHistory/DeleteEmployeeHistoryInputDto.cs index efe91708704d5e70fdce1b90fcde6541fd049dac..7908c236ecd1f35e8e23600bc155ff706c44c284 100644 --- a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeHistory/DeleteEmployeeHistoryInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeHistory/DeleteEmployeeHistoryInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteEmployeeHistoryInputDto: BaseInputDto + public class DeleteEmployeeHistoryInputDto : BaseInputDto { public int HistoryId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeHistory/ReadEmployeeHistoryInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeHistory/ReadEmployeeHistoryInputDto.cs index 85fb3d9e40e954c51a8659a9dda6a26d950d6908..19921f5100257188a0612fd1d5a8a15536128625 100644 --- a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeHistory/ReadEmployeeHistoryInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeHistory/ReadEmployeeHistoryInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadEmployeeHistoryInputDto:ListInputDto + public class ReadEmployeeHistoryInputDto : ListInputDto { public int HistoryId { get; set; } public string EmployeeId { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeHistory/UpdateEmployeeHistoryInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeHistory/UpdateEmployeeHistoryInputDto.cs index b8fb583b1a60e659fbc3b4a0dfea765809b1693c..77d4349b55e03bce57867962bcdf4750fe3eaa46 100644 --- a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeHistory/UpdateEmployeeHistoryInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeHistory/UpdateEmployeeHistoryInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateEmployeeHistoryInputDto: BaseInputDto + public class UpdateEmployeeHistoryInputDto : BaseInputDto { public int HistoryId { get; set; } public string EmployeeId { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeePhoto/CreateEmployeePhotoInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeePhoto/CreateEmployeePhotoInputDto.cs index c92e2b04c7d1231e659974646b72ebeaf87fdc79..af0b5437b62f8dcad1253bd1439960dade647ac3 100644 --- a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeePhoto/CreateEmployeePhotoInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeePhoto/CreateEmployeePhotoInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateEmployeePhotoInputDto: BaseInputDto + public class CreateEmployeePhotoInputDto : BaseInputDto { public string EmployeeId { get; set; } public string PhotoUrl { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeePhoto/DeleteEmployeePhotoInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeePhoto/DeleteEmployeePhotoInputDto.cs index 37c254578933fc6bb3e4138a3ae4ed847708444e..4e888b14a41a781ce0742b5d7db14bdef308d878 100644 --- a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeePhoto/DeleteEmployeePhotoInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeePhoto/DeleteEmployeePhotoInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteEmployeePhotoInputDto:ListInputDto + public class DeleteEmployeePhotoInputDto : ListInputDto { public int PhotoId { get; set; } public string EmployeeId { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeePhoto/ReadEmployeePhotoInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeePhoto/ReadEmployeePhotoInputDto.cs index d8a382381dafe4c511cc72c857e02845580076b6..2c799b369aa2d5d06ae15e1584926b7c2ea5231b 100644 --- a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeePhoto/ReadEmployeePhotoInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeePhoto/ReadEmployeePhotoInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadEmployeePhotoInputDto:ListInputDto + public class ReadEmployeePhotoInputDto : ListInputDto { public int PhotoId { get; set; } public string EmployeeId { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeePhoto/UpdateEmployeePhotoInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeePhoto/UpdateEmployeePhotoInputDto.cs index 63674ecc54d3de5734162e811bfad5d65f3b987d..19999ff154841251a36927f5dbfd9f7554994d88 100644 --- a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeePhoto/UpdateEmployeePhotoInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeePhoto/UpdateEmployeePhotoInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateEmployeePhotoInputDto: BaseInputDto + public class UpdateEmployeePhotoInputDto : BaseInputDto { public int PhotoId { get; set; } public string EmployeeId { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeRewardPunishment/CreateEmployeeRewardPunishmentInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeRewardPunishment/CreateEmployeeRewardPunishmentInputDto.cs index f6142c2e654e6b1b65a5764050b84d4fbe3f695f..0a4ad80c0cc1e525056263c025a16c41f3b30ba8 100644 --- a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeRewardPunishment/CreateEmployeeRewardPunishmentInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeRewardPunishment/CreateEmployeeRewardPunishmentInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateEmployeeRewardPunishmentInputDto: BaseInputDto + public class CreateEmployeeRewardPunishmentInputDto : BaseInputDto { public string EmployeeId { get; set; } public DateTime RewardPunishmentDate { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeRewardPunishment/DeleteEmployeeRewardPunishmentInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeRewardPunishment/DeleteEmployeeRewardPunishmentInputDto.cs index 3c2c937861d7ae2bf3d07d3743d6bfdf5ad81aba..7bcd36173a1ac7fbba840f86c7e2d964c01c2c22 100644 --- a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeRewardPunishment/DeleteEmployeeRewardPunishmentInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeRewardPunishment/DeleteEmployeeRewardPunishmentInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteEmployeeRewardPunishmentInputDto: BaseInputDto + public class DeleteEmployeeRewardPunishmentInputDto : BaseInputDto { public int RewardPunishmentId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeRewardPunishment/ReadEmployeeRewardPunishmentInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeRewardPunishment/ReadEmployeeRewardPunishmentInputDto.cs index 9a58abc4f2f2093ac06a29ab36a2886e02588186..4cddcc60a9375feb5f38050512f6e62457acbc63 100644 --- a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeRewardPunishment/ReadEmployeeRewardPunishmentInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeRewardPunishment/ReadEmployeeRewardPunishmentInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadEmployeeRewardPunishmentInputDto:ListInputDto + public class ReadEmployeeRewardPunishmentInputDto : ListInputDto { public int RewardPunishmentId { get; set; } public string EmployeeId { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeRewardPunishment/UpdateEmployeeRewardPunishmentInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeRewardPunishment/UpdateEmployeeRewardPunishmentInputDto.cs index 6300a4f87985904625877f26f7109004a22608bd..2b1426f262aeee09f4309d0ee961e1b620cce81e 100644 --- a/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeRewardPunishment/UpdateEmployeeRewardPunishmentInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Employee/Dto/EmployeeRewardPunishment/UpdateEmployeeRewardPunishmentInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateEmployeeRewardPunishmentInputDto: BaseInputDto + public class UpdateEmployeeRewardPunishmentInputDto : BaseInputDto { public int RewardPunishmentId { get; set; } public string EmployeeId { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Sys/NavBar/Dto/CreateNavBarInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Sys/NavBar/Dto/CreateNavBarInputDto.cs index ddf66dbe3f94c3b231c58283616b50b9dea2f9d0..8033167de75922e620a77efe66407b59a7eb4a9f 100644 --- a/EOM.TSHotelManagement.Common.Contract/Sys/NavBar/Dto/CreateNavBarInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Sys/NavBar/Dto/CreateNavBarInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateNavBarInputDto: BaseInputDto + public class CreateNavBarInputDto : BaseInputDto { public string NavigationBarName { get; set; } public int NavigationBarOrder { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Sys/NavBar/Dto/DeleteNavBarInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Sys/NavBar/Dto/DeleteNavBarInputDto.cs index d3fd5f9fdd6ce9a231b8d1b395120fc094c80ad1..2b38dfcfcc1ef4fa02c6f66d2c644d56c5a8e1c3 100644 --- a/EOM.TSHotelManagement.Common.Contract/Sys/NavBar/Dto/DeleteNavBarInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Sys/NavBar/Dto/DeleteNavBarInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteNavBarInputDto: BaseInputDto + public class DeleteNavBarInputDto : BaseInputDto { public int NavigationBarId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Sys/NavBar/Dto/ReadNavBarInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Sys/NavBar/Dto/ReadNavBarInputDto.cs index 2188ae55a72c81370a82a9ab58c482c15ab67bcf..ad486ee5a64463d8206e2858170803c8f2262335 100644 --- a/EOM.TSHotelManagement.Common.Contract/Sys/NavBar/Dto/ReadNavBarInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Sys/NavBar/Dto/ReadNavBarInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadNavBarInputDto:ListInputDto + public class ReadNavBarInputDto : ListInputDto { public int NavigationBarId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Sys/NavBar/Dto/UpdateNavBarInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Sys/NavBar/Dto/UpdateNavBarInputDto.cs index 94ebad3ec9713d6e2a2a0a59552be6a8eb12ca68..2b74d9d57d2110e40cde082b8db521096fdfbbe3 100644 --- a/EOM.TSHotelManagement.Common.Contract/Sys/NavBar/Dto/UpdateNavBarInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Sys/NavBar/Dto/UpdateNavBarInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateNavBarInputDto: BaseInputDto + public class UpdateNavBarInputDto : BaseInputDto { public int NavigationBarId { get; set; } public string NavigationBarName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Administrator/CreateAdministratorInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Administrator/CreateAdministratorInputDto.cs index 32821e211a500066ed5a37bc60c2c15aebd40751..0a25e3d2a71d54b2954a7e663d4b88a3e083f2be 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Administrator/CreateAdministratorInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Administrator/CreateAdministratorInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateAdministratorInputDto: BaseInputDto + public class CreateAdministratorInputDto : BaseInputDto { public string Number { get; set; } public string Account { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Administrator/DeleteAdministratorInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Administrator/DeleteAdministratorInputDto.cs index c95c66ef1ea6ee00b45b9fd650cafaba9271f112..978f3d1b0fc6da850f9562d2e7c6e9ff5d86ecc6 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Administrator/DeleteAdministratorInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Administrator/DeleteAdministratorInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteAdministratorInputDto: BaseInputDto + public class DeleteAdministratorInputDto : BaseInputDto { public string Number { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Administrator/ReadAdministratorInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Administrator/ReadAdministratorInputDto.cs index 99482d869d570fe8bf1f1e6f091dce7a71f6cfe8..40bd5506b0e8c5372ed522ec1913c24913696056 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Administrator/ReadAdministratorInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Administrator/ReadAdministratorInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadAdministratorInputDto:ListInputDto + public class ReadAdministratorInputDto : ListInputDto { public int Id { get; set; } public string Account { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Administrator/ReadAdministratorOutputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Administrator/ReadAdministratorOutputDto.cs index 4125a458274511b21abb59d27417838f17fe08cf..e85cf4c157aafc4a2121a0df19140b3fc0362441 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Administrator/ReadAdministratorOutputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Administrator/ReadAdministratorOutputDto.cs @@ -1,8 +1,6 @@ -using SqlSugar; - namespace EOM.TSHotelManagement.Common.Contract { - public class ReadAdministratorOutputDto:BaseDto + public class ReadAdministratorOutputDto : BaseDto { public string Number { get; set; } public string Account { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Administrator/UpdateAdministratorInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Administrator/UpdateAdministratorInputDto.cs index dad9a56a8cd06ae0367fe4524501feeab680de23..e0eb0ff803afc0402db6c3e840b0be7d7770c9d6 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Administrator/UpdateAdministratorInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Administrator/UpdateAdministratorInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateAdministratorInputDto: BaseInputDto + public class UpdateAdministratorInputDto : BaseInputDto { public string Number { get; set; } public string Account { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AdministratorType/CreateAdministratorTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AdministratorType/CreateAdministratorTypeInputDto.cs index 7721184662254b9c79d9f657575c4098e8547793..7984fc38ff1dbddb647ec3c528b1ba0bfea9d9e4 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AdministratorType/CreateAdministratorTypeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AdministratorType/CreateAdministratorTypeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateAdministratorTypeInputDto: BaseInputDto + public class CreateAdministratorTypeInputDto : BaseInputDto { public string TypeId { get; set; } public string TypeName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AdministratorType/DeleteAdministratorTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AdministratorType/DeleteAdministratorTypeInputDto.cs index 8242519007b41f0e857917cc1b9bc1794bbd4cbb..381cdc1afd188e29d3d598f067e6d8cf4471115c 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AdministratorType/DeleteAdministratorTypeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AdministratorType/DeleteAdministratorTypeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteAdministratorTypeInputDto: BaseInputDto + public class DeleteAdministratorTypeInputDto : BaseInputDto { public int Id { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AdministratorType/ReadAdministratorTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AdministratorType/ReadAdministratorTypeInputDto.cs index 28dd5e6d86160120f58be5a639605e12f6e05e1b..8c5413b7b7d1b45acb2e27655ce84347caaa66db 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AdministratorType/ReadAdministratorTypeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AdministratorType/ReadAdministratorTypeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadAdministratorTypeInputDto:ListInputDto + public class ReadAdministratorTypeInputDto : ListInputDto { public int Id { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AdministratorType/UpdateAdministratorTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AdministratorType/UpdateAdministratorTypeInputDto.cs index 0714a4d3031434d4eac6504059d5003c77c562e9..bdbb5fff37738fd2454c9799fd4dbd3b2426cb1f 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AdministratorType/UpdateAdministratorTypeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AdministratorType/UpdateAdministratorTypeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateAdministratorTypeInputDto: BaseInputDto + public class UpdateAdministratorTypeInputDto : BaseInputDto { public int Id { get; set; } public string TypeId { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNotice/CreateAppointmentNoticeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNotice/CreateAppointmentNoticeInputDto.cs index fcfc952495f9f4ab224ebacf88665cf7f58cbdbb..a0fb2fd475ed423d902b0b1f171542af8530f96d 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNotice/CreateAppointmentNoticeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNotice/CreateAppointmentNoticeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateAppointmentNoticeInputDto: BaseInputDto + public class CreateAppointmentNoticeInputDto : BaseInputDto { public string NoticeId { get; set; } public string NoticeTheme { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNotice/DeleteAppointmentNoticeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNotice/DeleteAppointmentNoticeInputDto.cs index 5eaafae6a9b01080d668938b1ad24d292c057223..07d311e1bc2d6285255a4cf1fd90cd6a725c0a0e 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNotice/DeleteAppointmentNoticeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNotice/DeleteAppointmentNoticeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteAppointmentNoticeInputDto: BaseInputDto + public class DeleteAppointmentNoticeInputDto : BaseInputDto { public string NoticeId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNotice/ReadAppointmentNoticeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNotice/ReadAppointmentNoticeInputDto.cs index 90c995b1a069401dc57f566d96e04abda7ded7e8..f5232844a023130a099d69de5c35b8208f24c686 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNotice/ReadAppointmentNoticeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNotice/ReadAppointmentNoticeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadAppointmentNoticeInputDto:ListInputDto + public class ReadAppointmentNoticeInputDto : ListInputDto { public string NoticeId { get; set; } public string NoticeTheme { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNotice/UpdateAppointmentNoticeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNotice/UpdateAppointmentNoticeInputDto.cs index 930e1214bd6bce71b6c14a8cbddbb4abe2a787f9..e9d62cdb478884b9ba6b0f771bbb71657c2a602d 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNotice/UpdateAppointmentNoticeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNotice/UpdateAppointmentNoticeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateAppointmentNoticeInputDto: BaseInputDto + public class UpdateAppointmentNoticeInputDto : BaseInputDto { public string NoticeId { get; set; } public string NoticeTitle { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNoticeType/CreateAppointmentNoticeTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNoticeType/CreateAppointmentNoticeTypeInputDto.cs new file mode 100644 index 0000000000000000000000000000000000000000..fc908d2afed1bcab0e615df4ac778c833384bda8 --- /dev/null +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNoticeType/CreateAppointmentNoticeTypeInputDto.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace EOM.TSHotelManagement.Common.Contract +{ + public class CreateAppointmentNoticeTypeInputDto:BaseInputDto + { + /// + /// 公告类型编号 (AppointmentNotice Type Number) + /// + public string NoticeTypeNumber { get; set; } + + /// + /// 公告类型名称 (AppointmentNotice Type Name) + /// + public string NoticeTypeName { get; set; } + } +} diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNoticeType/DeleteAppointmentNoticeTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNoticeType/DeleteAppointmentNoticeTypeInputDto.cs new file mode 100644 index 0000000000000000000000000000000000000000..87b6c76dc23a21e2991e4a5a082b7d8ec886549c --- /dev/null +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNoticeType/DeleteAppointmentNoticeTypeInputDto.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace EOM.TSHotelManagement.Common.Contract +{ + public class DeleteAppointmentNoticeTypeInputDto:BaseInputDto + { + /// + /// 公告类型编号 (AppointmentNotice Type Number) + /// + public string NoticeTypeNumber { get; set; } + } +} diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNoticeType/ReadAppointmentNoticeTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNoticeType/ReadAppointmentNoticeTypeInputDto.cs new file mode 100644 index 0000000000000000000000000000000000000000..f7dab2fe7df8d9afd88cf41406ea20731f293950 --- /dev/null +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNoticeType/ReadAppointmentNoticeTypeInputDto.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace EOM.TSHotelManagement.Common.Contract +{ + public class ReadAppointmentNoticeTypeInputDto:ListInputDto + { + /// + /// 公告类型编号 (AppointmentNotice Type Number) + /// + public string NoticeTypeNumber { get; set; } + + /// + /// 公告类型名称 (AppointmentNotice Type Name) + /// + public string NoticeTypeName { get; set; } + } +} diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNoticeType/ReadAppointmentNoticeTypeOutputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNoticeType/ReadAppointmentNoticeTypeOutputDto.cs new file mode 100644 index 0000000000000000000000000000000000000000..81538bd6d3a8313be1c0315693e558f32de8eb22 --- /dev/null +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNoticeType/ReadAppointmentNoticeTypeOutputDto.cs @@ -0,0 +1,46 @@ +using SqlSugar; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace EOM.TSHotelManagement.Common.Contract +{ + public class ReadAppointmentNoticeTypeOutputDto + { + /// + /// ID + /// + public int Id { get; set; } + /// + /// 公告类型编号 (AppointmentNotice Type Number) + /// + public string NoticeTypeNumber { get; set; } + + /// + /// 公告类型名称 (AppointmentNotice Type Name) + /// + public string NoticeTypeName { get; set; } + /// + /// 删除标识 + /// + public int? IsDelete { get; set; } = 0; + /// + /// 资料创建人 + /// + public string DataInsUsr { get; set; } + /// + /// 资料创建时间 + /// + public DateTime? DataInsDate { get; set; } + /// + /// 资料更新人 + /// + public string DataChgUsr { get; set; } + /// + /// 资料更新时间 + /// + public DateTime? DataChgDate { get; set; } + } +} diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNoticeType/UpdateAppointmentNoticeTypeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNoticeType/UpdateAppointmentNoticeTypeInputDto.cs new file mode 100644 index 0000000000000000000000000000000000000000..60c897bcb978f8959da03844706557849084251d --- /dev/null +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/AppointmentNoticeType/UpdateAppointmentNoticeTypeInputDto.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace EOM.TSHotelManagement.Common.Contract +{ + public class UpdateAppointmentNoticeTypeInputDto:BaseInputDto + { + /// + /// 公告类型编号 (AppointmentNotice Type Number) + /// + public string NoticeTypeNumber { get; set; } + + /// + /// 公告类型名称 (AppointmentNotice Type Name) + /// + public string NoticeTypeName { get; set; } + } +} diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Department/CreateDepartmentInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Department/CreateDepartmentInputDto.cs index e3faadf9ce423b82e57fae4116598368988a4955..d7137b4dd6db268b889debf2e186054cfabfaf1d 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Department/CreateDepartmentInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Department/CreateDepartmentInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateDepartmentInputDto: BaseInputDto + public class CreateDepartmentInputDto : BaseInputDto { public int Id { get; set; } public string DepartmentNumber { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Department/DeleteDepartmentInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Department/DeleteDepartmentInputDto.cs index 8be620d9d186518bb6f48aaf0728eed140e7a4e8..0f98c55e068a6a9fab3dbe82dd8a5b5742ddb6ba 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Department/DeleteDepartmentInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Department/DeleteDepartmentInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteDepartmentInputDto: BaseInputDto + public class DeleteDepartmentInputDto : BaseInputDto { public int Id { get; set; } public string DepartmentNumber { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Department/ReadDepartmentInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Department/ReadDepartmentInputDto.cs index 5d773b325a83cc853c8e1914fdbfa5d040b5052c..165bc30ef9aab06533810a9c402371011b70028c 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Department/ReadDepartmentInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Department/ReadDepartmentInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadDepartmentInputDto:ListInputDto + public class ReadDepartmentInputDto : ListInputDto { public int Id { get; set; } public string DepartmentNumber { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Department/UpdateDepartmentInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Department/UpdateDepartmentInputDto.cs index 26d6f1e8bc275f04c3fbb765af7a02d516359038..599c29a841d29cf1d361868ce5fc09a910483bd4 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Department/UpdateDepartmentInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Department/UpdateDepartmentInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateDepartmentInputDto: BaseInputDto + public class UpdateDepartmentInputDto : BaseInputDto { public int Id { get; set; } public string DepartmentNumber { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/EnumDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/EnumDto.cs index d40158b8cdeb6db0c3f079e09386898eaa6f7392..25b7ae03b842e2d138d2050c71148607463829f0 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/EnumDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/EnumDto.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace EOM.TSHotelManagement.Common.Contract +namespace EOM.TSHotelManagement.Common.Contract { public class EnumDto { diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Menu/CreateMenuInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Menu/CreateMenuInputDto.cs index 98fdefa4c18814b52897fe24ef94942d3f869dc4..e212c54a9734162ec1f13d1bd3e14cbdb54bfcb5 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Menu/CreateMenuInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Menu/CreateMenuInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateMenuInputDto: BaseInputDto + public class CreateMenuInputDto : BaseInputDto { public string Key { get; set; } public string Title { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Menu/DeleteMenuInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Menu/DeleteMenuInputDto.cs index cd22ae2465d7f7e4acde27b854132b4127bf219d..b2350257c9e2bb157ef6749b6198b1623fda7486 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Menu/DeleteMenuInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Menu/DeleteMenuInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteMenuInputDto: BaseInputDto + public class DeleteMenuInputDto : BaseInputDto { public string Key { get; set; } public string Title { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Menu/MenuViewModel.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Menu/MenuViewModel.cs index d5c5bb9b24bbbc84472af3838a86843505ea7011..5ad6cfffe857c3d6f34d5b15447cc4f44ebca9ec 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Menu/MenuViewModel.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Menu/MenuViewModel.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace EOM.TSHotelManagement.Common.Contract.Menu +namespace EOM.TSHotelManagement.Common.Contract.Menu { /// /// 菜单视图模型 (Menu View Model) diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Menu/ReadMenuInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Menu/ReadMenuInputDto.cs index 8b37af2484bbe2740707f4262f5bd992a5be2aa2..673e6495530f5c537ce8fa718b86a094f3097fab 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Menu/ReadMenuInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Menu/ReadMenuInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadMenuInputDto:ListInputDto + public class ReadMenuInputDto : ListInputDto { public int Id { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Menu/UpdateMenuInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Menu/UpdateMenuInputDto.cs index 839950efc5d0ac7007d8d9ef07a2ec285ff01984..bfb5dac37687ef31f561fa3bea45004ffb810e82 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Menu/UpdateMenuInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Menu/UpdateMenuInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateMenuInputDto: BaseInputDto + public class UpdateMenuInputDto : BaseInputDto { public string Key { get; set; } public string Title { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Module/CreateModuleInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Module/CreateModuleInputDto.cs index 634950e979832274c0680e890d89605a59744e4a..a057872e123bdaa19bbda2bf48adf4d1f86e2231 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Module/CreateModuleInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Module/CreateModuleInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateModuleInputDto: BaseInputDto + public class CreateModuleInputDto : BaseInputDto { public string ModuleName { get; set; } public string ModuleDescription { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Module/DeleteModuleInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Module/DeleteModuleInputDto.cs index a3e338178965307f7bf83a4cac0c1a1eac99212f..6c7514dd9c5ef80d8bbd478996a53e7e51edd938 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Module/DeleteModuleInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Module/DeleteModuleInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteModuleInputDto: BaseInputDto + public class DeleteModuleInputDto : BaseInputDto { public int ModuleId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Module/ReadModuleInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Module/ReadModuleInputDto.cs index f96c6968051cb7257646330c78018107fae8b68c..023e4a61088a5a530d389db7f8573fbd628eadda 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Module/ReadModuleInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Module/ReadModuleInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadModuleInputDto:ListInputDto + public class ReadModuleInputDto : ListInputDto { public int ModuleId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Module/UpdateModuleInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Module/UpdateModuleInputDto.cs index 1e69b296dc5f181f0994911ac4a5d0df59744177..8a7210a32c9a5b7f2000697a26a1490c4d519651 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Module/UpdateModuleInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Module/UpdateModuleInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateModuleInputDto: BaseInputDto + public class UpdateModuleInputDto : BaseInputDto { public int ModuleId { get; set; } public string ModuleName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/ModulePermission/CreateModulePermissionInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/ModulePermission/CreateModulePermissionInputDto.cs index 6798706eaf336e92ffd8714c3b4672a8ee1b6cb8..8e64ba67020c87c57b8f494819f1bf805023bc74 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/ModulePermission/CreateModulePermissionInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/ModulePermission/CreateModulePermissionInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateModulePermissionInputDto: BaseInputDto + public class CreateModulePermissionInputDto : BaseInputDto { public int ModuleId { get; set; } public string PermissionName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/ModulePermission/DeleteModulePermissionInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/ModulePermission/DeleteModulePermissionInputDto.cs index 188e2201605093daa323c5c95d8699debda755cd..d43fc6f277f900db9c7e4eb6beea78d81843e54e 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/ModulePermission/DeleteModulePermissionInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/ModulePermission/DeleteModulePermissionInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteModulePermissionInputDto: BaseInputDto + public class DeleteModulePermissionInputDto : BaseInputDto { public int PermissionId { get; set; } public string AdministratorAccount { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/ModulePermission/ReadModulePermissionInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/ModulePermission/ReadModulePermissionInputDto.cs index 307498956af2e751c8d4c06ef91bdd58ee3adff9..81cb27f60357387c271481c6f652a49bdf673b13 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/ModulePermission/ReadModulePermissionInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/ModulePermission/ReadModulePermissionInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadModulePermissionInputDto:ListInputDto + public class ReadModulePermissionInputDto : ListInputDto { public int PermissionId { get; set; } public string Account { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/ModulePermission/ReadModulePermissionOutputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/ModulePermission/ReadModulePermissionOutputDto.cs index 4e97fcce792ad8b491dd10a0fc9345f599eb4d40..99ea8ae5d3cd1af892562b7c2f0b9eca3d3620eb 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/ModulePermission/ReadModulePermissionOutputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/ModulePermission/ReadModulePermissionOutputDto.cs @@ -1,5 +1,3 @@ -using SqlSugar; - namespace EOM.TSHotelManagement.Common.Contract { public class ReadModulePermissionOutputDto diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/ModulePermission/UpdateModulePermissionInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/ModulePermission/UpdateModulePermissionInputDto.cs index c306b90ed246df0f33a6a8f20294f4adbe03661e..439b75b38aa1938903e50302ab6c90265b5fc6f5 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/ModulePermission/UpdateModulePermissionInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/ModulePermission/UpdateModulePermissionInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateModulePermissionInputDto: BaseInputDto + public class UpdateModulePermissionInputDto : BaseInputDto { public int PermissionId { get; set; } public int ModuleId { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Nation/CreateNationInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Nation/CreateNationInputDto.cs index 1ff8441a667c638196175a4f7ca33cc26933cef1..5f67972ee40a2475a3cfc166158e7d3bc7ffbc8d 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Nation/CreateNationInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Nation/CreateNationInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateNationInputDto: BaseInputDto + public class CreateNationInputDto : BaseInputDto { public string NationNumber { get; set; } public string NationName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Nation/DeleteNationInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Nation/DeleteNationInputDto.cs index 7063535bab8237f316f7d80f3b9a6bab96c6178a..6f8e6266561c97804f1eb8ed9b310e660b547e55 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Nation/DeleteNationInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Nation/DeleteNationInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteNationInputDto: BaseInputDto + public class DeleteNationInputDto : BaseInputDto { public int NationId { get; set; } public string NationNumber { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Nation/ReadNationInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Nation/ReadNationInputDto.cs index 61e0b14a53a864b3e41804dcced7a75ca5d58f4d..741a8fade434d7ef4897d32687a4b3a4c39fcd23 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Nation/ReadNationInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Nation/ReadNationInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadNationInputDto:ListInputDto + public class ReadNationInputDto : ListInputDto { public int NationId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Nation/UpdateNationInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Nation/UpdateNationInputDto.cs index 3d194d57ceda0176a7a69299dab7610fa094f811..58badd9294fce26e3b6df07122a3f831dc886c03 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Nation/UpdateNationInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Nation/UpdateNationInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateNationInputDto: BaseInputDto + public class UpdateNationInputDto : BaseInputDto { public string NationNumber { get; set; } public string NationName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Position/CreatePositionInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Position/CreatePositionInputDto.cs index c2703091238f82725bf4643d3511e5fecf5852a4..54e65ca95817f8deca18e8c07a6a4d2527ffa594 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Position/CreatePositionInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Position/CreatePositionInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreatePositionInputDto: BaseInputDto + public class CreatePositionInputDto : BaseInputDto { public string PositionNumber { get; set; } public string PositionName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Position/DeletePositionInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Position/DeletePositionInputDto.cs index c8052679f7b52f15937509261fcad45ecf7082a6..53428bebde17e010a54b1be8e290097f6f233de6 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Position/DeletePositionInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Position/DeletePositionInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeletePositionInputDto: BaseInputDto + public class DeletePositionInputDto : BaseInputDto { public string PositionNumber { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Position/ReadPositionInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Position/ReadPositionInputDto.cs index 938b699bf07881f4654d2a3ca53b681a1f2b6e97..a2c3a62ba28f900bc4532dd9690a5cb25f62dbe0 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Position/ReadPositionInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Position/ReadPositionInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadPositionInputDto:ListInputDto + public class ReadPositionInputDto : ListInputDto { public int PositionId { get; set; } public string PositionName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Position/UpdatePositionInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Position/UpdatePositionInputDto.cs index c8c9f05d8fadb19745e67e3bbbfd3db1fee6b539..98fc2d5ea4139e08b4e509623e5d6ce45f9c0f2e 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Position/UpdatePositionInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Position/UpdatePositionInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdatePositionInputDto: BaseInputDto + public class UpdatePositionInputDto : BaseInputDto { public int PositionId { get; set; } public string PositionNumber { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Qualification/CreateEducationInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Qualification/CreateEducationInputDto.cs index e63d249b1c05d79f914f8f2553c346fdac8c5d39..edb2d517689d59806577d3dd2bf8434c80c1b948 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Qualification/CreateEducationInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Qualification/CreateEducationInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateEducationInputDto: BaseInputDto + public class CreateEducationInputDto : BaseInputDto { public string EducationNumber { get; set; } public string EducationName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Qualification/DeleteEducationInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Qualification/DeleteEducationInputDto.cs index f04a770bcba5b993034825ba9272da0f9b180f2a..ce86d27f2c3fafc71454fb961edf584a6ef52e63 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Qualification/DeleteEducationInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Qualification/DeleteEducationInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteEducationInputDto: BaseInputDto + public class DeleteEducationInputDto : BaseInputDto { public string EducationNumber { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Qualification/ReadEducationInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Qualification/ReadEducationInputDto.cs index 9341c90b084cacce46ed57030d95ed02ae2ca6ca..0c9754e3ec889bd9895746a46d957e461c37b463 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Qualification/ReadEducationInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Qualification/ReadEducationInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadEducationInputDto:ListInputDto + public class ReadEducationInputDto : ListInputDto { public string EducationNumber { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Qualification/UpdateEducationInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Qualification/UpdateEducationInputDto.cs index c25e95230abec0454ad88fc3c98e1450598e29b4..347c9aa09e71d41355205ac7aa403951037ccbea 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Qualification/UpdateEducationInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Qualification/UpdateEducationInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateEducationInputDto: BaseInputDto + public class UpdateEducationInputDto : BaseInputDto { public string EducationNumber { get; set; } public string EducationName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Role/CreateRoleInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Role/CreateRoleInputDto.cs index 413ebf58eeb17293078778c139894be7ddf27db2..761488dd61a5db0776a1aa7700325414ca2a7269 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Role/CreateRoleInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Role/CreateRoleInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateRoleInputDto: BaseInputDto + public class CreateRoleInputDto : BaseInputDto { /// /// ע:ɫ diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Role/DeleteRoleInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Role/DeleteRoleInputDto.cs index 7193760281344f5be1bedd4fa61d0557b2ffd041..63174f64d653cb9606ad41c682e09392a0abf237 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Role/DeleteRoleInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Role/DeleteRoleInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteRoleInputDto: BaseInputDto + public class DeleteRoleInputDto : BaseInputDto { /// /// ע:ɫ diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Role/ReadRoleInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Role/ReadRoleInputDto.cs index b697ab34f6f5f4828a771ac17ebf46b285260f32..6a7bba9d1e508f7f246106ec3a0289c18acd0c2e 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Role/ReadRoleInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Role/ReadRoleInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadRoleInputDto:ListInputDto + public class ReadRoleInputDto : ListInputDto { /// /// ע:ɫ diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Role/UpdateRoleInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Role/UpdateRoleInputDto.cs index 2666f637f56c324503009332abb6b97650d5c443..e34795cbb37653760e912d912e1e1f3403b58919 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Role/UpdateRoleInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/Role/UpdateRoleInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateRoleInputDto: BaseInputDto + public class UpdateRoleInputDto : BaseInputDto { /// /// ע:ɫ diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SupervisionStatistics/CreateSupervisionStatisticsInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SupervisionStatistics/CreateSupervisionStatisticsInputDto.cs index e002b46e76dc6b56b1682a93e63a74771aaac910..5670609183e0d36cbf000adaf36626385fa3fe55 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SupervisionStatistics/CreateSupervisionStatisticsInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SupervisionStatistics/CreateSupervisionStatisticsInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateSupervisionStatisticsInputDto: BaseInputDto + public class CreateSupervisionStatisticsInputDto : BaseInputDto { public string StatisticsNumber { get; set; } public string SupervisingDepartment { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SupervisionStatistics/DeleteSupervisionStatisticsInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SupervisionStatistics/DeleteSupervisionStatisticsInputDto.cs index 1a3cad421d5643622020f87b1703dcb4852b9b7f..516fcb8db5050818c921152788e6dc58610b692a 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SupervisionStatistics/DeleteSupervisionStatisticsInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SupervisionStatistics/DeleteSupervisionStatisticsInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteSupervisionStatisticsInputDto: BaseInputDto + public class DeleteSupervisionStatisticsInputDto : BaseInputDto { public string StatisticsNumber { get; set; } public string SupervisingDepartment { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SupervisionStatistics/ReadSupervisionStatisticsInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SupervisionStatistics/ReadSupervisionStatisticsInputDto.cs index 2879ef8f870365a4a40b46a89f88f7027d46f1cd..371789ae6671f395384a2865ac6a4769ae0b8751 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SupervisionStatistics/ReadSupervisionStatisticsInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SupervisionStatistics/ReadSupervisionStatisticsInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadSupervisionStatisticsInputDto:ListInputDto + public class ReadSupervisionStatisticsInputDto : ListInputDto { public string StatisticsNumber { get; set; } public string SupervisingDepartment { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SupervisionStatistics/UpdateSupervisionStatisticsInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SupervisionStatistics/UpdateSupervisionStatisticsInputDto.cs index 5edc406ec2a8e2eb35803033a2fa7df1da372a67..0bdde34c765945dc36e8bd7af02629b189e575e8 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SupervisionStatistics/UpdateSupervisionStatisticsInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SupervisionStatistics/UpdateSupervisionStatisticsInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateSupervisionStatisticsInputDto: BaseInputDto + public class UpdateSupervisionStatisticsInputDto : BaseInputDto { public string StatisticsNumber { get; set; } public string SupervisingDepartment { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SystemInformation/CreateSystemInformationInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SystemInformation/CreateSystemInformationInputDto.cs index 9cbc093f80876c06df9b54bf07be8173ebffc3bf..9c0b7604494378cdaa127ecfbeb359931c49267d 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SystemInformation/CreateSystemInformationInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SystemInformation/CreateSystemInformationInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateSystemInformationInputDto: BaseInputDto + public class CreateSystemInformationInputDto : BaseInputDto { public string InformationTitle { get; set; } public string InformationContent { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SystemInformation/DeleteSystemInformationInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SystemInformation/DeleteSystemInformationInputDto.cs index 41f466b16c844abe4af41f9162613f85e4390299..ff0c488a458ec57bf99f409c0826a26250342adb 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SystemInformation/DeleteSystemInformationInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SystemInformation/DeleteSystemInformationInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteSystemInformationInputDto: BaseInputDto + public class DeleteSystemInformationInputDto : BaseInputDto { public int InformationId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SystemInformation/ReadSystemInformationInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SystemInformation/ReadSystemInformationInputDto.cs index 59c9316d0df57cee0424115c5f0aaf1c526d5919..aca3569cacf074162884b1d525b09fd7ca725895 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SystemInformation/ReadSystemInformationInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SystemInformation/ReadSystemInformationInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadSystemInformationInputDto:ListInputDto + public class ReadSystemInformationInputDto : ListInputDto { public int InformationId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SystemInformation/UpdateSystemInformationInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SystemInformation/UpdateSystemInformationInputDto.cs index 2c981045110114e6de302fe66e12b8a0d4efdb63..534ccd0d7155f2ca6dd3321385e63707e6d4616c 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SystemInformation/UpdateSystemInformationInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/SystemInformation/UpdateSystemInformationInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateSystemInformationInputDto: BaseInputDto + public class UpdateSystemInformationInputDto : BaseInputDto { public int InformationId { get; set; } public string InformationTitle { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/VipLevelRule/CreateVipLevelRuleInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/VipLevelRule/CreateVipLevelRuleInputDto.cs index 8d747403c0a7e3c6e99fa6cf383029724427bd9a..dc91fc69189ae8aa111e13a9f29d52e2ea53ea3a 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/VipLevelRule/CreateVipLevelRuleInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/VipLevelRule/CreateVipLevelRuleInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateVipLevelRuleInputDto: BaseInputDto + public class CreateVipLevelRuleInputDto : BaseInputDto { public int Id { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/VipLevelRule/DeleteVipLevelRuleInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/VipLevelRule/DeleteVipLevelRuleInputDto.cs index 690ff800326030224049a1e388b837cf43f07658..44187cf652a634633cc2f98330a0d8eca7ddfe27 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/VipLevelRule/DeleteVipLevelRuleInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/VipLevelRule/DeleteVipLevelRuleInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteVipLevelRuleInputDto: BaseInputDto + public class DeleteVipLevelRuleInputDto : BaseInputDto { public int Id { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/VipLevelRule/ReadVipLevelRuleInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/VipLevelRule/ReadVipLevelRuleInputDto.cs index f1b4556012f272198ec9ef3b3281dff35b2cdd38..306aa32bd1399292d48dc48cde59e6aefbeac59b 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/VipLevelRule/ReadVipLevelRuleInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/VipLevelRule/ReadVipLevelRuleInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadVipLevelRuleInputDto:ListInputDto + public class ReadVipLevelRuleInputDto : ListInputDto { public int RuleId { get; set; } public string RuleSerialNumber { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/VipLevelRule/ReadVipLevelRuleOutputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/VipLevelRule/ReadVipLevelRuleOutputDto.cs index 71e98a1921754eff632a586cfdc501cd3d0ecd6e..1f3a26af1326d07c6cd9d88c19eaa781e42e8cf4 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/VipLevelRule/ReadVipLevelRuleOutputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/VipLevelRule/ReadVipLevelRuleOutputDto.cs @@ -1,8 +1,6 @@ -using SqlSugar; - namespace EOM.TSHotelManagement.Common.Contract { - public class ReadVipLevelRuleOutputDto:BaseOutputDto + public class ReadVipLevelRuleOutputDto : BaseOutputDto { public int Id { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/VipLevelRule/UpdateVipLevelRuleInputDto.cs b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/VipLevelRule/UpdateVipLevelRuleInputDto.cs index 88f0164e8cbc6d222b1b306f9acb275e00215edf..9174513abef59ecd681a90c2197ef8dcaea3090d 100644 --- a/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/VipLevelRule/UpdateVipLevelRuleInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/SystemManagement/Dto/VipLevelRule/UpdateVipLevelRuleInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateVipLevelRuleInputDto: BaseInputDto + public class UpdateVipLevelRuleInputDto : BaseInputDto { public int Id { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Util/Dto/ApplicationVersion/CreateApplicationVersionInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Util/Dto/ApplicationVersion/CreateApplicationVersionInputDto.cs index fadba28bccf7e0cbd62f3ffab1f746630ce8a12a..0fecea39025f3dae34cc9a26dbbcdadde94f2a15 100644 --- a/EOM.TSHotelManagement.Common.Contract/Util/Dto/ApplicationVersion/CreateApplicationVersionInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Util/Dto/ApplicationVersion/CreateApplicationVersionInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateApplicationVersionInputDto: BaseInputDto + public class CreateApplicationVersionInputDto : BaseInputDto { public string VersionNumber { get; set; } public string VersionDescription { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Util/Dto/ApplicationVersion/DeleteApplicationVersionInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Util/Dto/ApplicationVersion/DeleteApplicationVersionInputDto.cs index 123f57a7a1700b38e1c8979b3abd66fcbe8df67a..67839e4d2381580a5b031ce12e30cfe5e392513f 100644 --- a/EOM.TSHotelManagement.Common.Contract/Util/Dto/ApplicationVersion/DeleteApplicationVersionInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Util/Dto/ApplicationVersion/DeleteApplicationVersionInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteApplicationVersionInputDto: BaseInputDto + public class DeleteApplicationVersionInputDto : BaseInputDto { public int VersionId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Util/Dto/ApplicationVersion/ReadApplicationVersionInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Util/Dto/ApplicationVersion/ReadApplicationVersionInputDto.cs index 50812a3c1619f7ce89e927e5188f71baf62ae303..88cd83e28ffa1ca6f92b967c2f1d8e0a8502f097 100644 --- a/EOM.TSHotelManagement.Common.Contract/Util/Dto/ApplicationVersion/ReadApplicationVersionInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Util/Dto/ApplicationVersion/ReadApplicationVersionInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadApplicationVersionInputDto:ListInputDto + public class ReadApplicationVersionInputDto : ListInputDto { public int VersionId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Util/Dto/ApplicationVersion/UpdateApplicationVersionInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Util/Dto/ApplicationVersion/UpdateApplicationVersionInputDto.cs index d3c7ce99253595ed2c3eb51581dea175e507205f..8034fc80bfd5fc4e31846aa972a11ad452120023 100644 --- a/EOM.TSHotelManagement.Common.Contract/Util/Dto/ApplicationVersion/UpdateApplicationVersionInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Util/Dto/ApplicationVersion/UpdateApplicationVersionInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateApplicationVersionInputDto: BaseInputDto + public class UpdateApplicationVersionInputDto : BaseInputDto { public int VersionId { get; set; } public string VersionNumber { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Util/Dto/CardCode/CreateCardCodeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Util/Dto/CardCode/CreateCardCodeInputDto.cs index ac5a8cc12b59738120c36f64007e6f860d9de162..53debea227aa1d2c020863b4ac81a2ab481c67dd 100644 --- a/EOM.TSHotelManagement.Common.Contract/Util/Dto/CardCode/CreateCardCodeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Util/Dto/CardCode/CreateCardCodeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class CreateCardCodeInputDto:BaseInputDto + public class CreateCardCodeInputDto : BaseInputDto { public long Id { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Util/Dto/CardCode/DeleteCardCodeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Util/Dto/CardCode/DeleteCardCodeInputDto.cs index e134e6286c2625c007d19a71218e59cac0e2fcc8..6e11185e758271287660c44efab85e850d3204ba 100644 --- a/EOM.TSHotelManagement.Common.Contract/Util/Dto/CardCode/DeleteCardCodeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Util/Dto/CardCode/DeleteCardCodeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteCardCodeInputDto: BaseInputDto + public class DeleteCardCodeInputDto : BaseInputDto { public long Id { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Util/Dto/CardCode/ReadCardCodeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Util/Dto/CardCode/ReadCardCodeInputDto.cs index 987a745879b20a47c4fa4a586b151cfb64008034..acc9f674bbae470f71a4ecdfd8b901ccdfc50e65 100644 --- a/EOM.TSHotelManagement.Common.Contract/Util/Dto/CardCode/ReadCardCodeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Util/Dto/CardCode/ReadCardCodeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadCardCodeInputDto:ListInputDto + public class ReadCardCodeInputDto : ListInputDto { public long Id { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Util/Dto/CardCode/UpdateCardCodeInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Util/Dto/CardCode/UpdateCardCodeInputDto.cs index 8959e9c8a24f591a44650e650f6ebab817129f41..424c8f9dda93991b89376b88efd830642121effb 100644 --- a/EOM.TSHotelManagement.Common.Contract/Util/Dto/CardCode/UpdateCardCodeInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Util/Dto/CardCode/UpdateCardCodeInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateCardCodeInputDto: BaseInputDto + public class UpdateCardCodeInputDto : BaseInputDto { public long Id { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Util/Dto/OperationLog/CreateOperationLogInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Util/Dto/OperationLog/CreateOperationLogInputDto.cs index e97dcaff9b2b9b05b16c49be6031ce3daa68385f..7ec26aac06debf4655259d7dada6a5155fa81a7c 100644 --- a/EOM.TSHotelManagement.Common.Contract/Util/Dto/OperationLog/CreateOperationLogInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Util/Dto/OperationLog/CreateOperationLogInputDto.cs @@ -2,7 +2,7 @@ using EOM.TSHotelManagement.Common.Core; namespace EOM.TSHotelManagement.Common.Contract { - public class CreateOperationLogInputDto: BaseInputDto + public class CreateOperationLogInputDto : BaseInputDto { public DateTime OperationTime { get; set; } public string LogContent { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Util/Dto/OperationLog/DeleteOperationLogInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Util/Dto/OperationLog/DeleteOperationLogInputDto.cs index b84346e3852bbeb0c87aa90e5905aa1e06a8d378..2b542cacdad54cb662d80568e009e2a1346510f0 100644 --- a/EOM.TSHotelManagement.Common.Contract/Util/Dto/OperationLog/DeleteOperationLogInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Util/Dto/OperationLog/DeleteOperationLogInputDto.cs @@ -1,6 +1,6 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class DeleteOperationLogInputDto: BaseInputDto + public class DeleteOperationLogInputDto : BaseInputDto { public string OperationId { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Contract/Util/Dto/OperationLog/ReadOperationLogInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Util/Dto/OperationLog/ReadOperationLogInputDto.cs index ff3a926cfccd1666c76461477f43b442fbe36fe6..24944714058025b76e24188dfdf919ad19abecef 100644 --- a/EOM.TSHotelManagement.Common.Contract/Util/Dto/OperationLog/ReadOperationLogInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Util/Dto/OperationLog/ReadOperationLogInputDto.cs @@ -1,7 +1,7 @@ namespace EOM.TSHotelManagement.Common.Contract { - public class ReadOperationLogInputDto:ListInputDto + public class ReadOperationLogInputDto : ListInputDto { public string OperationId { get; set; } public int? LogLevel { get; set; } diff --git a/EOM.TSHotelManagement.Common.Contract/Util/Dto/OperationLog/ReadOperationLogOutputDto.cs b/EOM.TSHotelManagement.Common.Contract/Util/Dto/OperationLog/ReadOperationLogOutputDto.cs index 9118475808d03b2af36c98a2e1627d98825ebd0d..d10db6a1f68f8ee5363b29f31cb89bd6c5d60b69 100644 --- a/EOM.TSHotelManagement.Common.Contract/Util/Dto/OperationLog/ReadOperationLogOutputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Util/Dto/OperationLog/ReadOperationLogOutputDto.cs @@ -1,5 +1,4 @@ using EOM.TSHotelManagement.Common.Core; -using SqlSugar; namespace EOM.TSHotelManagement.Common.Contract { diff --git a/EOM.TSHotelManagement.Common.Contract/Util/Dto/OperationLog/UpdateOperationLogInputDto.cs b/EOM.TSHotelManagement.Common.Contract/Util/Dto/OperationLog/UpdateOperationLogInputDto.cs index 29e0fff18683777faf171f980413689b8ea63abb..f443e81f3cd59f9b3813757669a3c03da89fa9b4 100644 --- a/EOM.TSHotelManagement.Common.Contract/Util/Dto/OperationLog/UpdateOperationLogInputDto.cs +++ b/EOM.TSHotelManagement.Common.Contract/Util/Dto/OperationLog/UpdateOperationLogInputDto.cs @@ -2,7 +2,7 @@ using EOM.TSHotelManagement.Common.Core; namespace EOM.TSHotelManagement.Common.Contract { - public class UpdateOperationLogInputDto: BaseInputDto + public class UpdateOperationLogInputDto : BaseInputDto { public int OperationId { get; set; } public DateTime OperationTime { get; set; } diff --git a/EOM.TSHotelManagement.Common.Core/BaseEntity.cs b/EOM.TSHotelManagement.Common.Core/BaseEntity.cs index 1e7c46ba2c563191b527704ae1051488d1d341c6..520bf9dda49addaa4815832eb3bd9f62278ccbe2 100644 --- a/EOM.TSHotelManagement.Common.Core/BaseEntity.cs +++ b/EOM.TSHotelManagement.Common.Core/BaseEntity.cs @@ -1,39 +1,35 @@ using SqlSugar; using System; +using System.Security.Principal; namespace EOM.TSHotelManagement.Common.Core { public class BaseEntity { - /// - /// 编号 (ID) - /// - [SugarColumn(ColumnName = "id", IsIdentity = true)] - public int Id { get; set; } /// /// 删除标识 /// - [SqlSugar.SugarColumn(ColumnName = "delete_mk")] + [SqlSugar.SugarColumn(ColumnName = "delete_mk", Length = 11, IsNullable = false, DefaultValue = "0")] public int? IsDelete { get; set; } = 0; /// /// 资料创建人 /// - [SqlSugar.SugarColumn(ColumnName = "datains_usr", IsOnlyIgnoreUpdate = true)] + [SqlSugar.SugarColumn(ColumnName = "datains_usr", Length = 128, IsOnlyIgnoreUpdate = true, IsNullable = true)] public string DataInsUsr { get; set; } /// /// 资料创建时间 /// - [SqlSugar.SugarColumn(ColumnName = "datains_date", IsOnlyIgnoreUpdate = true)] + [SqlSugar.SugarColumn(ColumnName = "datains_date", IsOnlyIgnoreUpdate = true, InsertServerTime = true, IsNullable = true)] public DateTime? DataInsDate { get; set; } /// /// 资料更新人 /// - [SqlSugar.SugarColumn(ColumnName = "datachg_usr", IsOnlyIgnoreInsert = true)] + [SqlSugar.SugarColumn(ColumnName = "datachg_usr", Length = 128, IsOnlyIgnoreInsert = true, IsNullable = true)] public string DataChgUsr { get; set; } /// /// 资料更新时间 /// - [SqlSugar.SugarColumn(ColumnName = "datachg_date", IsOnlyIgnoreInsert = true)] + [SqlSugar.SugarColumn(ColumnName = "datachg_date", IsOnlyIgnoreInsert = true, InsertServerTime = true, IsNullable = true)] public DateTime? DataChgDate { get; set; } /// /// Token diff --git a/EOM.TSHotelManagement.Common.Core/Business/Asset/Asset.cs b/EOM.TSHotelManagement.Common.Core/Business/Asset/Asset.cs index a390af386ca94854adcff4f9231ee90335cb7c53..317618b6fbd18bd0ecd6bb7b5fb221a3fe2383ea 100644 --- a/EOM.TSHotelManagement.Common.Core/Business/Asset/Asset.cs +++ b/EOM.TSHotelManagement.Common.Core/Business/Asset/Asset.cs @@ -23,6 +23,7 @@ *模块说明:资产类 */ using EOM.TSHotelManagement.Common.Util; +using SqlSugar; using System; namespace EOM.TSHotelManagement.Common.Core { @@ -32,24 +33,30 @@ namespace EOM.TSHotelManagement.Common.Core [SqlSugar.SugarTable("asset")] public class Asset : BaseEntity { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 资产编号 (Asset Number) /// - [SqlSugar.SugarColumn(ColumnName = "asset_number",IsPrimaryKey = true)] + [SqlSugar.SugarColumn(ColumnName = "asset_number", IsNullable = false, IsPrimaryKey = true, Length = 128, ColumnDescription = "资产编号")] [NeedValid] public string AssetNumber { get; set; } /// /// 资产名称 (Asset Name) /// - [SqlSugar.SugarColumn(ColumnName = "asset_name")] + [SqlSugar.SugarColumn(ColumnName = "asset_name", IsNullable = false, Length = 200, ColumnDescription = "资产名称")] [NeedValid] public string AssetName { get; set; } /// /// 资产总值 (Asset Value) /// - [SqlSugar.SugarColumn(ColumnName = "asset_value")] + [SqlSugar.SugarColumn(ColumnName = "asset_value", IsNullable = false, DecimalDigits = 2, Length = 18, ColumnDescription = "资产名称")] [NeedValid] public decimal AssetValue { get; set; } @@ -63,7 +70,7 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 所属部门代码 (Department Code) /// - [SqlSugar.SugarColumn(ColumnName = "department_code")] + [SqlSugar.SugarColumn(ColumnName = "department_code", IsNullable = false, Length = 128, ColumnDescription = "所属部门代码 (Department Code)")] [NeedValid] public string DepartmentCode { get; set; } @@ -76,21 +83,21 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 入库时间 (购置日期) (Acquisition Date) /// - [SqlSugar.SugarColumn(ColumnName = "acquisition_date")] + [SqlSugar.SugarColumn(ColumnName = "acquisition_date", IsNullable = false, ColumnDescription = "入库时间 (购置日期) (Acquisition Date)")] [NeedValid] public DateTime AcquisitionDate { get; set; } /// /// 资产来源 (Asset Source) /// - [SqlSugar.SugarColumn(ColumnName = "asset_source")] + [SqlSugar.SugarColumn(ColumnName = "asset_source", IsNullable = false, Length = 500, ColumnDescription = "资产来源 (Asset Source)")] [NeedValid] public string AssetSource { get; set; } /// /// 资产经办人 (员工ID) (Acquired By - Employee ID) /// - [SqlSugar.SugarColumn(ColumnName = "acquired_by_employee")] + [SqlSugar.SugarColumn(ColumnName = "acquired_by_employee", IsNullable = false, Length = 128, ColumnDescription = "资产经办人 (员工ID) (Acquired By - Employee ID)")] [NeedValid] public string AcquiredByEmployeeId { get; set; } diff --git a/EOM.TSHotelManagement.Common.Core/Business/Customer/CustoType.cs b/EOM.TSHotelManagement.Common.Core/Business/Customer/CustoType.cs index 500852331237a17447a17afb8c4cd1687ae4f3e1..d3d498981aa60ca876993c329c56a3e2f8779f77 100644 --- a/EOM.TSHotelManagement.Common.Core/Business/Customer/CustoType.cs +++ b/EOM.TSHotelManagement.Common.Core/Business/Customer/CustoType.cs @@ -22,6 +22,8 @@ * *模块说明:客户类型类 */ +using SqlSugar; + namespace EOM.TSHotelManagement.Common.Core { /// @@ -30,16 +32,22 @@ namespace EOM.TSHotelManagement.Common.Core [SqlSugar.SugarTable("custo_type")] public class CustoType : BaseEntity { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 客户类型 (Customer Type) /// - [SqlSugar.SugarColumn(ColumnName = "custo_type", IsPrimaryKey = true)] + [SqlSugar.SugarColumn(ColumnName = "custo_type", IsPrimaryKey = true, IsNullable = false, ColumnDescription = "客户类型 (Customer Type)")] public int CustomerType { get; set; } /// /// 客户类型名称 (Customer Type Name) /// - [SqlSugar.SugarColumn(ColumnName = "type_name")] + [SqlSugar.SugarColumn(ColumnName = "type_name",IsNullable = false, Length = 256, ColumnDescription = "客户类型名称 (Customer Type Name)")] public string CustomerTypeName { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Core/Business/Customer/Customer.cs b/EOM.TSHotelManagement.Common.Core/Business/Customer/Customer.cs index 33ff9cb1b2c55ff67e84f305d36025b006d8e76b..b51d06e8a684ff3528274bdb6552586b7805cdd3 100644 --- a/EOM.TSHotelManagement.Common.Core/Business/Customer/Customer.cs +++ b/EOM.TSHotelManagement.Common.Core/Business/Customer/Customer.cs @@ -22,6 +22,7 @@ * *模块说明:客户信息类 */ +using SqlSugar; using System; namespace EOM.TSHotelManagement.Common.Core @@ -32,28 +33,34 @@ namespace EOM.TSHotelManagement.Common.Core [SqlSugar.SugarTable("customer")] public class Customer : BaseEntity { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 客户编号 (Customer Number) /// - [SqlSugar.SugarColumn(ColumnName = "custo_no", IsPrimaryKey = true)] + [SqlSugar.SugarColumn(ColumnName = "custo_no", IsPrimaryKey = true, IsNullable = false, Length = 128, ColumnDescription = "客户编号 (Customer Number)")] public string CustomerNumber { get; set; } /// /// 客户名称 (Customer Name) /// - [SqlSugar.SugarColumn(ColumnName = "custo_name", IsNullable = false)] + [SqlSugar.SugarColumn(ColumnName = "custo_name", IsNullable = false, Length = 250, ColumnDescription = "客户名称 (Customer Name)")] public string CustomerName { get; set; } /// /// 客户性别 (Customer Gender) /// - [SqlSugar.SugarColumn(ColumnName = "custo_gender", IsNullable = true)] + [SqlSugar.SugarColumn(ColumnName = "custo_gender", IsNullable = false, ColumnDescription = "客户性别 (Customer Gender)")] public int? CustomerGender { get; set; } /// /// 证件类型 (Passport Type) /// - [SqlSugar.SugarColumn(ColumnName = "passport_type", IsNullable = false)] + [SqlSugar.SugarColumn(ColumnName = "passport_type", IsNullable = false, ColumnDescription = "客户性别 (Customer Gender)")] public int PassportId { get; set; } /// @@ -65,14 +72,14 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 客户电话 (Customer Phone Number) /// - [SqlSugar.SugarColumn(ColumnName = "custo_tel", IsNullable = false)] + [SqlSugar.SugarColumn(ColumnName = "custo_tel", IsNullable = false, Length = 256, ColumnDescription = "客户电话 (Customer Phone Number)")] public string CustomerPhoneNumber { get; set; } /// /// 出生日期 (Date of Birth) /// - [SqlSugar.SugarColumn(ColumnName = "custo_birth", IsNullable = true)] - public DateTime DateOfBirth { get; set; } + [SqlSugar.SugarColumn(ColumnName = "custo_birth", IsNullable = false, ColumnDescription = "出生日期 (Date of Birth)")] + public DateOnly DateOfBirth { get; set; } /// /// 客户类型名称 (Customer Type Name) @@ -89,19 +96,19 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 证件号码 (Passport ID) /// - [SqlSugar.SugarColumn(ColumnName = "passport_id", IsNullable = false)] + [SqlSugar.SugarColumn(ColumnName = "passport_id", IsNullable = false, Length = 256, ColumnDescription = "证件号码 (Passport ID)")] public string IdCardNumber { get; set; } /// /// 居住地址 (Customer Address) /// - [SqlSugar.SugarColumn(ColumnName = "custo_address", IsNullable = true)] + [SqlSugar.SugarColumn(ColumnName = "custo_address", IsNullable = true, Length = 256, ColumnDescription = "居住地址 (Customer Address)")] public string CustomerAddress { get; set; } /// /// 客户类型 (Customer Type) /// - [SqlSugar.SugarColumn(ColumnName = "custo_type", IsNullable = false)] + [SqlSugar.SugarColumn(ColumnName = "custo_type", IsNullable = false, ColumnDescription = "客户类型 (Customer Type)")] public int CustomerType { get; set; } } } diff --git a/EOM.TSHotelManagement.Common.Core/Business/EnergyManagement/EnergyManagement.cs b/EOM.TSHotelManagement.Common.Core/Business/EnergyManagement/EnergyManagement.cs index 2c6193980e5a460bbd83fdd447af623dc9eff93d..f4b263a927913fa3b21c4c3f4bee95a5f49d9472 100644 --- a/EOM.TSHotelManagement.Common.Core/Business/EnergyManagement/EnergyManagement.cs +++ b/EOM.TSHotelManagement.Common.Core/Business/EnergyManagement/EnergyManagement.cs @@ -22,6 +22,7 @@ * *模块说明:水电信息类 */ +using SqlSugar; using System; namespace EOM.TSHotelManagement.Common.Core @@ -29,9 +30,15 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 水电信息 /// - [SqlSugar.SugarTable("energy_management")] + [SqlSugar.SugarTable("energy_management", "水电信息")] public class EnergyManagement : BaseEntity { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 信息编号 (Information ID) /// @@ -41,43 +48,43 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 房间编号 (Room Number) /// - [SqlSugar.SugarColumn(ColumnName = "room_no")] + [SqlSugar.SugarColumn(ColumnName = "room_no", Length = 128, IsNullable = false, ColumnDescription = "房间编号 (Room Number)")] public string RoomNumber { get; set; } /// /// 开始使用时间 (Start Date) /// - [SqlSugar.SugarColumn(ColumnName = "use_date")] + [SqlSugar.SugarColumn(ColumnName = "use_date", IsNullable = false, ColumnDescription = "开始使用时间 (Start Date)")] public DateTime StartDate { get; set; } /// /// 结束使用时间 (End Date) /// - [SqlSugar.SugarColumn(ColumnName = "end_date")] + [SqlSugar.SugarColumn(ColumnName = "end_date", IsNullable = false, ColumnDescription = "结束使用时间 (End Date)")] public DateTime EndDate { get; set; } /// /// 水费 (Water Usage) /// - [SqlSugar.SugarColumn(ColumnName = "water_use")] + [SqlSugar.SugarColumn(ColumnName = "water_use", IsNullable = false, Length = 18, DecimalDigits = 2, ColumnDescription = "水费 (Water Usage)")] public decimal WaterUsage { get; set; } /// /// 电费 (Power Usage) /// - [SqlSugar.SugarColumn(ColumnName = "power_use")] + [SqlSugar.SugarColumn(ColumnName = "power_use", IsNullable = false, Length = 18, DecimalDigits = 2, ColumnDescription = "电费 (Power Usage)")] public decimal PowerUsage { get; set; } /// /// 记录员 (Recorder) /// - [SqlSugar.SugarColumn(ColumnName = "recorder", DefaultValue = "Administrator")] + [SqlSugar.SugarColumn(ColumnName = "recorder", DefaultValue = "Administrator", IsNullable = false, Length = 150, ColumnDescription = "记录员 (Recorder)")] public string Recorder { get; set; } /// /// 客户编号 (Customer Number) /// - [SqlSugar.SugarColumn(ColumnName = "custo_no")] + [SqlSugar.SugarColumn(ColumnName = "custo_no", IsNullable = false, Length = 128, ColumnDescription = "客户编号 (Customer Number)")] public string CustomerNumber { get; set; } } } diff --git a/EOM.TSHotelManagement.Common.Core/Business/PromotionContent/PromotionContent.cs b/EOM.TSHotelManagement.Common.Core/Business/PromotionContent/PromotionContent.cs index 456dd7f3d31f35bba8355c35261ad516137539c8..c17de3bdd9811c68a297fd703bc038d9ae2899f9 100644 --- a/EOM.TSHotelManagement.Common.Core/Business/PromotionContent/PromotionContent.cs +++ b/EOM.TSHotelManagement.Common.Core/Business/PromotionContent/PromotionContent.cs @@ -22,25 +22,31 @@ * *模块说明:宣传联动类 */ +using SqlSugar; + namespace EOM.TSHotelManagement.Common.Core { /// - /// 酒店宣传联动内容 + /// APP横幅配置表 (APP Banner Configuration) /// - [SqlSugar.SugarTable("app_banner")] - public class PromotionContent + [SugarTable("app_banner", "APP横幅配置表 (APP Banner Configuration)")] + public class PromotionContent:BaseEntity { /// - /// 宣传内容编号 (Promotion Content ID) + /// 编号 (ID) /// - [SqlSugar.SugarColumn(ColumnName = "banner_number", IsPrimaryKey = true)] - public int PromotionContentId { get; set; } + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } /// /// 宣传内容 (Promotion Content Message) /// - [SqlSugar.SugarColumn(ColumnName = "banner_content")] + [SugarColumn( + ColumnName = "banner_content", + ColumnDescription = "宣传内容(支持富文本) (Promotion Content with Rich Text)", + IsNullable = false, + Length = 2000 + )] public string PromotionContentMessage { get; set; } - } } diff --git a/EOM.TSHotelManagement.Common.Core/Business/Reser/Reser.cs b/EOM.TSHotelManagement.Common.Core/Business/Reser/Reser.cs index ffc47f6bcad3c68986fafe177e8e94edb9c3f619..a0c04a77b10d9ae33a68312d964dadcd594801c5 100644 --- a/EOM.TSHotelManagement.Common.Core/Business/Reser/Reser.cs +++ b/EOM.TSHotelManagement.Common.Core/Business/Reser/Reser.cs @@ -22,56 +22,119 @@ * *模块说明:预约类 */ +using SqlSugar; using System; namespace EOM.TSHotelManagement.Common.Core { /// - /// 预约列表 + /// 预约信息表 (Reservation Information) /// - [SqlSugar.SugarTable("reser")] + [SugarTable("reser", "预约信息表 (Reservation Information)")] public class Reser : BaseEntity { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 预约编号 (Reservation ID) /// - [SqlSugar.SugarColumn(ColumnName = "reser_number", IsPrimaryKey = true)] + [SugarColumn( + ColumnName = "reser_number", + IsPrimaryKey = true, + ColumnDescription = "预约唯一编号 (Unique Reservation ID)", + IsNullable = false, + Length = 128 + )] public string ReservationId { get; set; } /// /// 客户名称 (Customer Name) /// - [SqlSugar.SugarColumn(ColumnName = "custo_name")] + [SugarColumn( + ColumnName = "custo_name", + ColumnDescription = "客户姓名 (Customer Full Name)", + IsNullable = false, + Length = 200 + )] public string CustomerName { get; set; } /// /// 预约电话 (Reservation Phone Number) /// - [SqlSugar.SugarColumn(ColumnName = "custo_tel")] + [SugarColumn( + ColumnName = "custo_tel", + ColumnDescription = "客户联系电话 (Contact Phone Number)", + IsNullable = false, + Length = 20 + )] public string ReservationPhoneNumber { get; set; } /// /// 预约渠道 (Reservation Channel) /// - [SqlSugar.SugarColumn(ColumnName = "reser_way")] + [SugarColumn( + ColumnName = "reser_way", + ColumnDescription = "预约来源渠道 (如官网/APP/第三方平台)", + IsNullable = false, + Length = 50 + )] public string ReservationChannel { get; set; } /// /// 预约房号 (Reservation Room Number) /// - [SqlSugar.SugarColumn(ColumnName = "reser_room")] + [SugarColumn( + ColumnName = "reser_room", + ColumnDescription = "预定房间编号 (关联房间表)", + IsNullable = false, + Length = 128, + IndexGroupNameList = new[] { "IX_reser_room" } + )] public string ReservationRoomNumber { get; set; } /// /// 预约起始日期 (Reservation Start Date) /// - [SqlSugar.SugarColumn(ColumnName = "reser_date")] + [SugarColumn( + ColumnName = "reser_date", + ColumnDescription = "入住日期(格式:yyyy-MM-dd) (Check-In Date)", + IsNullable = false + )] public DateTime ReservationStartDate { get; set; } /// /// 预约结束日期 (Reservation End Date) /// - [SqlSugar.SugarColumn(ColumnName = "reser_end_date")] + [SugarColumn( + ColumnName = "reser_end_date", + ColumnDescription = "离店日期(格式:yyyy-MM-dd) (Check-Out Date)", + IsNullable = false + )] public DateTime ReservationEndDate { get; set; } + + /// + /// 预约状态 (Reservation Status) + /// + [SugarColumn( + ColumnName = "reser_status", + ColumnDescription = "预约状态(0-待确认/1-已确认/2-已取消)", + DefaultValue = "0" + )] + public int ReservationStatus { get; set; } + + /// + /// 备注信息 (Remarks) + /// + [SugarColumn( + ColumnName = "remarks", + ColumnDescription = "特殊需求备注 (Special Requests)", + IsNullable = true, + Length = 500 + )] + public string Remarks { get; set; } } } diff --git a/EOM.TSHotelManagement.Common.Core/Business/Room/Room.cs b/EOM.TSHotelManagement.Common.Core/Business/Room/Room.cs index f595f8a94f460d375f4302bf7eef15bc5b940979..ea5783a803b663fc214cda24427869bbf85d656b 100644 --- a/EOM.TSHotelManagement.Common.Core/Business/Room/Room.cs +++ b/EOM.TSHotelManagement.Common.Core/Business/Room/Room.cs @@ -29,33 +29,54 @@ using System; namespace EOM.TSHotelManagement.Common.Core { /// - /// 房间实体类 (Room Entity) + /// 酒店房间信息表 (Hotel Room Information) /// - [SugarTable("room")] + [SugarTable("room", "酒店房间信息表 (Hotel Room Information)")] public class Room : BaseEntity { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 房间编号 (Room Number) /// - [SugarColumn(ColumnName = "room_no", IsPrimaryKey = true)] - [NeedValid] + [SugarColumn( + ColumnName = "room_no", + IsPrimaryKey = true, + ColumnDescription = "房间唯一编号 (Unique Room Number)", + IsNullable = false, + Length = 128 + )] + [NeedValid] // 假设此特性用于业务验证 public string RoomNumber { get; set; } /// - /// 房间类型 (Room Type) + /// 房间类型ID (Room Type ID) /// - [SugarColumn(ColumnName = "room_type")] + [SugarColumn( + ColumnName = "room_type", + ColumnDescription = "房间类型ID (关联房间类型表)", + IsNullable = false + )] [NeedValid] public int RoomTypeId { get; set; } /// /// 客户编号 (Customer Number) /// - [SugarColumn(ColumnName = "custo_no")] + [SugarColumn( + ColumnName = "custo_no", + ColumnDescription = "当前入住客户编号 (Linked Customer ID)", + IsNullable = true, + Length = 128 + )] public string CustomerNumber { get; set; } /// - /// 客户姓名 (Customer Name) + /// 客户姓名 (Customer Name)(不存储到数据库) /// [SugarColumn(IsIgnore = true)] public string CustomerName { get; set; } @@ -63,24 +84,36 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 最后一次入住时间 (Last Check-In Time) /// - [SugarColumn(ColumnName = "check_in_time")] + [SugarColumn( + ColumnName = "check_in_time", + ColumnDescription = "最后一次入住时间 (Last Check-In Time)", + IsNullable = true + )] public DateTime? LastCheckInTime { get; set; } /// /// 最后一次退房时间 (Last Check-Out Time) /// - [SugarColumn(ColumnName = "check_out_time")] + [SugarColumn( + ColumnName = "check_out_time", + ColumnDescription = "最后一次退房时间 (Last Check-Out Time)", + IsNullable = true + )] public DateTime? LastCheckOutTime { get; set; } /// /// 房间状态ID (Room State ID) /// - [SugarColumn(ColumnName = "room_state_id")] + [SugarColumn( + ColumnName = "room_state_id", + ColumnDescription = "房间状态ID (如0-空闲/1-已入住)", + IsNullable = false + )] [NeedValid] public int RoomStateId { get; set; } /// - /// 房间状态 (Room State) + /// 房间状态名称 (Room State Name)(不存储到数据库) /// [SugarColumn(IsIgnore = true)] public string RoomState { get; set; } @@ -88,38 +121,54 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 房间单价 (Room Rent) /// - [SugarColumn(ColumnName = "room_rent")] + [SugarColumn( + ColumnName = "room_rent", + ColumnDescription = "房间单价(单位:元) (Price per Night in CNY)", + IsNullable = false, + DecimalDigits = 2 + )] [NeedValid] public decimal RoomRent { get; set; } /// /// 房间押金 (Room Deposit) /// - [SugarColumn(ColumnName = "room_deposit")] + [SugarColumn( + ColumnName = "room_deposit", + ColumnDescription = "房间押金(单位:元) (Deposit Amount in CNY)", + IsNullable = false, + DecimalDigits = 2, + DefaultValue = "0.00" + )] [NeedValid] public decimal RoomDeposit { get; set; } /// /// 房间位置 (Room Location) /// - [SugarColumn(ColumnName = "room_position")] + [SugarColumn( + ColumnName = "room_position", + ColumnDescription = "房间位置描述 (如楼层+门牌号)", + IsNullable = false, + Length = 200 + )] [NeedValid] public string RoomLocation { get; set; } /// - /// 客户类型名称 (Customer Type Name) + /// 客户类型名称 (Customer Type Name)(不存储到数据库) /// [SugarColumn(IsIgnore = true)] public string CustomerTypeName { get; set; } /// - /// 房间名称 (Room Name) + /// 房间名称 (Room Name)(不存储到数据库) /// [SugarColumn(IsIgnore = true)] public string RoomName { get; set; } /// - /// 最后一次入住时间 (格式化后的字符串) (Last Check-In Time Formatted) + /// 最后一次入住时间(格式化字符串) (Last Check-In Time Formatted) /// [SugarColumn(IsIgnore = true)] public string LastCheckInTimeFormatted { get; set; } diff --git a/EOM.TSHotelManagement.Common.Core/Business/Room/RoomState.cs b/EOM.TSHotelManagement.Common.Core/Business/Room/RoomState.cs index 1e727c32650ced6558f08e9ea0f2038e2334a0e4..91937ff6dc0286a8111054d517c907b443684be4 100644 --- a/EOM.TSHotelManagement.Common.Core/Business/Room/RoomState.cs +++ b/EOM.TSHotelManagement.Common.Core/Business/Room/RoomState.cs @@ -22,7 +22,6 @@ * *模块说明:房间状态类 */ -using SqlSugar; using System.ComponentModel; namespace EOM.TSHotelManagement.Common.Core diff --git a/EOM.TSHotelManagement.Common.Core/Business/Room/RoomType.cs b/EOM.TSHotelManagement.Common.Core/Business/Room/RoomType.cs index d314070c41734bf946f194da3584157db232abab..d9c1205800fe20aa241f4fde59c7d8dc59523a34 100644 --- a/EOM.TSHotelManagement.Common.Core/Business/Room/RoomType.cs +++ b/EOM.TSHotelManagement.Common.Core/Business/Room/RoomType.cs @@ -28,41 +28,70 @@ using SqlSugar; namespace EOM.TSHotelManagement.Common.Core { /// - /// 房间类型 (Room Type) + /// 房间类型配置表 (Room Type Configuration) /// - [SugarTable("room_type")] + [SugarTable("room_type", "房间类型配置表 (Room Type Configuration)")] public class RoomType : BaseEntity { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 类型编号 (Room Type ID) /// - [SugarColumn(ColumnName = "room_type", IsPrimaryKey = true)] - [NeedValid] + [SugarColumn( + ColumnName = "room_type", + IsPrimaryKey = true, + ColumnDescription = "房间类型唯一编号 (Unique Room Type ID)", + IsNullable = false + )] + [NeedValid] public int RoomTypeId { get; set; } /// /// 房间类型名称 (Room Type Name) /// - [SugarColumn(ColumnName = "room_name")] + [SugarColumn( + ColumnName = "room_name", + ColumnDescription = "房间类型名称 (如标准间/豪华套房)", + IsNullable = false, + Length = 200 + )] [NeedValid] public string RoomTypeName { get; set; } /// /// 房间租金 (Room Rent) /// - [SugarColumn(ColumnName = "room_rent", ColumnDataType = "decimal")] + [SugarColumn( + ColumnName = "room_rent", + Length = 18, + ColumnDescription = "每日租金(单位:元) (Price per Day in CNY)", + IsNullable = false, + DecimalDigits = 2 + )] [NeedValid] public decimal RoomRent { get; set; } /// /// 房间押金 (Room Deposit) /// - [SugarColumn(ColumnName = "room_deposit")] + [SugarColumn( + ColumnName = "room_deposit", + Length = 18, + ColumnDescription = "入住押金(单位:元) (Deposit Amount in CNY)", + IsNullable = false, + DecimalDigits = 2, + DefaultValue = "0.00" + )] [NeedValid] public decimal RoomDeposit { get; set; } /// - /// 删除标记描述 (Delete Mark Description) + /// 删除标记描述 (Delete Mark Description)(不存储到数据库) /// [SugarColumn(IsIgnore = true)] public string DeleteMarkDescription { get; set; } diff --git a/EOM.TSHotelManagement.Common.Core/Business/Sellthing/SellThing.cs b/EOM.TSHotelManagement.Common.Core/Business/Sellthing/SellThing.cs index d3718a9d346635421c5f54364efa003e9d00d0e0..9d40a9af3558a0c9e2c08c2ec110c45c74344497 100644 --- a/EOM.TSHotelManagement.Common.Core/Business/Sellthing/SellThing.cs +++ b/EOM.TSHotelManagement.Common.Core/Business/Sellthing/SellThing.cs @@ -24,37 +24,59 @@ */ //using System.ComponentModel.DataAnnotations.Schema; -using EOM.TSHotelManagement.Common.Util; using SqlSugar; namespace EOM.TSHotelManagement.Common.Core { /// - /// 商品信息 (Product Information) + /// 商品信息表 (Product Information) /// - [SugarTable("sellthing")] + [SugarTable("sellthing", "商品信息表 (Product Information)")] public class SellThing : BaseEntity { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 商品编号 (Product Number) /// - [SugarColumn(ColumnName = "sell_no", IsPrimaryKey = true)] + [SugarColumn( + ColumnName = "sell_no", + IsPrimaryKey = true, + ColumnDescription = "商品唯一编号 (Unique Product ID)", + IsNullable = false, + Length = 128 + )] public string ProductNumber { get; set; } /// /// 商品名称 (Product Name) /// - [SugarColumn(ColumnName = "sell_name")] + [SugarColumn( + ColumnName = "sell_name", + ColumnDescription = "商品名称(如『西湖龙井茶叶500g』)", + IsNullable = false, + Length = 500 + )] public string ProductName { get; set; } /// /// 商品价格 (Product Price) /// - [SugarColumn(ColumnName = "sell_price")] + [SugarColumn( + ColumnName = "sell_price", + Length = 18, + ColumnDescription = "商品单价(单位:元)", + IsNullable = false, + DecimalDigits = 2 + )] public decimal ProductPrice { get; set; } /// - /// 商品价格描述 (Product Price Description - Formatted) + /// 商品价格描述(格式化显示,如¥100.00) (Formatted Price) /// [SugarColumn(IsIgnore = true)] public string ProductPriceFormatted { get; set; } @@ -62,13 +84,24 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 规格型号 (Specification) /// - [SugarColumn(ColumnName = "specification")] + [SugarColumn( + ColumnName = "specification", + ColumnDescription = "规格描述(如『500g/罐,陶瓷包装』)", + IsNullable = true, + Length = 1000 + )] public string Specification { get; set; } /// - /// 库存 (Stock) + /// 库存数量 (Stock Quantity) /// - [SugarColumn(ColumnName = "stock")] + [SugarColumn( + ColumnName = "stock", + ColumnDescription = "当前库存数量(单位:件/个)", + IsNullable = false, + DecimalDigits = 0, + DefaultValue = "0" + )] public decimal Stock { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Core/Business/Spend/Spend.cs b/EOM.TSHotelManagement.Common.Core/Business/Spend/Spend.cs index 13bdb35bf1f1e356c907d3830d1de10a8025d274..c200fd2ab79a4f9a70ec9985079811707fae2a34 100644 --- a/EOM.TSHotelManagement.Common.Core/Business/Spend/Spend.cs +++ b/EOM.TSHotelManagement.Common.Core/Business/Spend/Spend.cs @@ -22,9 +22,8 @@ * *模块说明:消费信息类 */ -using EOM.TSHotelManagement.Common.Util; -using System; using SqlSugar; +using System; namespace EOM.TSHotelManagement.Common.Core { diff --git a/EOM.TSHotelManagement.Common.Core/Employee/Employee.cs b/EOM.TSHotelManagement.Common.Core/Employee/Employee.cs index 32c5f32fe366a926dea29ea4cd72337f6cbe99b1..012d8143daf39e9bd932f8b25f5456514175e2f5 100644 --- a/EOM.TSHotelManagement.Common.Core/Employee/Employee.cs +++ b/EOM.TSHotelManagement.Common.Core/Employee/Employee.cs @@ -33,28 +33,34 @@ namespace EOM.TSHotelManagement.Common.Core [SugarTable("employee")] public class Employee : BaseEntity { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 员工账号/工号 (Employee Account/ID) /// - [SugarColumn(ColumnName = "employee_number", IsPrimaryKey = true)] + [SugarColumn(ColumnName = "employee_number", IsPrimaryKey = true, IsNullable = false, Length = 128, ColumnDescription = "员工账号/工号 (Employee Account/ID)")] public string EmployeeId { get; set; } /// /// 员工姓名 (Employee Name) /// - [SugarColumn(ColumnName = "employee_name")] + [SugarColumn(ColumnName = "employee_name", IsNullable = false, Length = 250, ColumnDescription = "员工姓名 (Employee Name)")] public string EmployeeName { get; set; } /// /// 出生日期 (Date of Birth) /// - [SugarColumn(ColumnName = "employee_date_of_birth")] - public DateTime DateOfBirth { get; set; } + [SugarColumn(ColumnName = "employee_date_of_birth", IsNullable = false, ColumnDescription = "出生日期 (Date of Birth)")] + public DateOnly DateOfBirth { get; set; } /// /// 员工性别 (Employee Gender) /// - [SugarColumn(ColumnName = "employee_gender")] + [SugarColumn(ColumnName = "employee_gender", IsNullable = false, ColumnDescription = "员工性别 (Employee Gender)")] public int Gender { get; set; } /// @@ -66,7 +72,7 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 民族类型 (Ethnicity) /// - [SugarColumn(ColumnName = "employee_nation")] + [SugarColumn(ColumnName = "employee_nation", IsNullable = false, Length = 128, ColumnDescription = "民族类型 (Ethnicity)")] public string Ethnicity { get; set; } /// @@ -78,13 +84,13 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 员工电话 (Employee Phone Number) /// - [SugarColumn(ColumnName = "employee_tel")] + [SugarColumn(ColumnName = "employee_tel", IsNullable = false, Length = 256, ColumnDescription = "员工电话 (Employee Phone Number)")] public string PhoneNumber { get; set; } /// /// 所属部门 (Department) /// - [SugarColumn(ColumnName = "employee_department")] + [SugarColumn(ColumnName = "employee_department", IsNullable = false, Length = 128, ColumnDescription = "所属部门 (Department)")] public string Department { get; set; } /// @@ -96,13 +102,13 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 居住地址 (Residential Address) /// - [SugarColumn(ColumnName = "employee_address")] + [SugarColumn(ColumnName = "employee_address", IsNullable = true, Length = 500, ColumnDescription = "居住地址 (Residential Address)")] public string Address { get; set; } /// /// 员工职位 (Employee Position) /// - [SugarColumn(ColumnName = "employee_postion")] + [SugarColumn(ColumnName = "employee_postion", IsNullable = false, Length = 128, ColumnDescription = "员工职位 (Employee Position)")] public string Position { get; set; } /// @@ -114,31 +120,31 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 证件类型 (ID Card Type) /// - [SugarColumn(ColumnName = "card_type")] + [SugarColumn(ColumnName = "card_type", IsNullable = false, ColumnDescription = "证件类型 (ID Card Type)")] public int IdCardType { get; set; } /// /// 证件号码 (ID Card Number) /// - [SugarColumn(ColumnName = "card_number")] + [SugarColumn(ColumnName = "card_number", IsNullable = false, Length = 256, ColumnDescription = "证件号码 (ID Card Number)")] public string IdCardNumber { get; set; } /// /// 员工密码 (Employee Password) /// - [SugarColumn(ColumnName = "employee_password")] + [SugarColumn(ColumnName = "employee_password", IsNullable = false, Length = 256, ColumnDescription = "员工密码 (Employee Password)")] public string Password { get; set; } /// /// 员工入职时间 (Hire Date) /// - [SugarColumn(ColumnName = "hire_time")] - public DateTime HireDate { get; set; } + [SugarColumn(ColumnName = "hire_time", IsNullable = false, ColumnDescription = "员工入职时间 (Hire Date)")] + public DateOnly HireDate { get; set; } /// /// 员工面貌 (Political Affiliation) /// - [SugarColumn(ColumnName = "employee_political")] + [SugarColumn(ColumnName = "employee_political", IsNullable = false, Length = 128, ColumnDescription = "员工面貌 (Political Affiliation)")] public string PoliticalAffiliation { get; set; } /// @@ -156,7 +162,7 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 教育程度 (Education Level) /// - [SugarColumn(ColumnName = "employee_quality")] + [SugarColumn(ColumnName = "employee_quality", IsNullable = false, Length = 128, ColumnDescription = "教育程度 (Education Level)")] public string EducationLevel { get; set; } /// @@ -168,13 +174,13 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 禁用标记 /// - [SugarColumn(ColumnName = "enable_mk")] - public int IsEnable { get; set; } + [SugarColumn(ColumnName = "enable_mk", IsNullable = false, ColumnDescription = "禁用标记")] + public int IsEnable { get; set; } = 0; /// /// 邮箱地址 /// - [SugarColumn(ColumnName = "email_address")] + [SugarColumn(ColumnName = "email_address", IsNullable = false, Length = 256, ColumnDescription = "邮箱地址")] public string EmailAddress { get; set; } } } diff --git a/EOM.TSHotelManagement.Common.Core/Employee/EmployeeCheck.cs b/EOM.TSHotelManagement.Common.Core/Employee/EmployeeCheck.cs index 99c76a93c29e7132c6add5d28dc0568ebc45b631..79c3dca60648a5265b77df1485ee38db5168ad4e 100644 --- a/EOM.TSHotelManagement.Common.Core/Employee/EmployeeCheck.cs +++ b/EOM.TSHotelManagement.Common.Core/Employee/EmployeeCheck.cs @@ -30,36 +30,42 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 员工打卡考勤 (Employee Check-in/Check-out Record) /// - [SugarTable("employee_check")] + [SugarTable("employee_check", "员工打卡考勤 (Employee Check-in/Check-out Record)")] public class EmployeeCheck : BaseEntity { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 打卡编号 /// - [SugarColumn(ColumnName = "check_number")] + [SugarColumn(ColumnName = "check_number", Length = 128, ColumnDescription = "打卡编号", IsPrimaryKey = true, IsNullable = false)] public string CheckNumber { get; set; } /// /// 员工工号 (Employee ID) /// - [SugarColumn(ColumnName = "employee_number")] + [SugarColumn(ColumnName = "employee_number", Length = 128, ColumnDescription = "员工工号 (Employee ID)", IsNullable = false)] public string EmployeeId { get; set; } /// /// 打卡时间 (Check-in/Check-out Time) /// - [SugarColumn(ColumnName = "check_time")] + [SugarColumn(ColumnName = "check_time", ColumnDescription = "打卡时间 (Check-in/Check-out Time)", IsNullable = false)] public DateTime CheckTime { get; set; } /// /// 打卡方式 (Check-in/Check-out Method) /// - [SugarColumn(ColumnName = "check_way")] + [SugarColumn(ColumnName = "check_way", Length = 128, ColumnDescription = "打卡方式 (Check-in/Check-out Method)", IsNullable = true)] public string CheckMethod { get; set; } /// /// 打卡状态 (Check-in/Check-out Status) /// - [SugarColumn(ColumnName = "check_state")] + [SugarColumn(ColumnName = "check_state", ColumnDescription = "打卡状态 (Check-in/Check-out Status)", IsNullable = false)] public int CheckStatus { get; set; } /// diff --git a/EOM.TSHotelManagement.Common.Core/Employee/EmployeeHistory.cs b/EOM.TSHotelManagement.Common.Core/Employee/EmployeeHistory.cs index 93c49c4d54d970740f338f88f4484e87743afb48..f5ba6fde2ca16a3c8e445fcb3d979b9287761098 100644 --- a/EOM.TSHotelManagement.Common.Core/Employee/EmployeeHistory.cs +++ b/EOM.TSHotelManagement.Common.Core/Employee/EmployeeHistory.cs @@ -33,39 +33,45 @@ namespace EOM.TSHotelManagement.Common.Core [SugarTable("employee_history")] public class EmployeeHistory : BaseEntity { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 履历编号 /// - [SugarColumn(ColumnName = "history_number")] + [SugarColumn(ColumnName = "history_number", ColumnDescription = "履历编号", Length = 128, IsNullable = false, IsPrimaryKey = true)] public string HistoryNumber { get; set; } /// /// 员工工号 (Employee ID) /// - [SugarColumn(ColumnName = "employee_number")] + [SugarColumn(ColumnName = "employee_number", ColumnDescription = "员工工号 (Employee ID)", Length = 128, IsNullable = false)] public string EmployeeId { get; set; } /// /// 开始时间 (Start Date) /// - [SugarColumn(ColumnName = "start_date")] - public DateTime StartDate { get; set; } + [SugarColumn(ColumnName = "start_date", ColumnDescription = "开始时间 (Start Date)", IsNullable = false)] + public DateOnly StartDate { get; set; } /// /// 结束时间 (End Date) /// - [SugarColumn(ColumnName = "end_date")] - public DateTime EndDate { get; set; } + [SugarColumn(ColumnName = "end_date", ColumnDescription = "结束时间 (End Date)", IsNullable = false)] + public DateOnly EndDate { get; set; } /// /// 职位 (Position) /// - [SugarColumn(ColumnName = "position")] + [SugarColumn(ColumnName = "position", ColumnDescription = "职位 (Position)", Length = 128, IsNullable = true)] public string Position { get; set; } /// /// 公司 (Company) /// - [SugarColumn(ColumnName = "company")] + [SugarColumn(ColumnName = "company", ColumnDescription = "公司 (Company)", Length = 256, IsNullable = true)] public string Company { get; set; } } } diff --git a/EOM.TSHotelManagement.Common.Core/Employee/EmployeePhoto.cs b/EOM.TSHotelManagement.Common.Core/Employee/EmployeePhoto.cs index d5fb7464397d2f1fec8bb8a26e34326adf1815b9..8bdb765e82951a42eaa18c9391a7fce52d4df476 100644 --- a/EOM.TSHotelManagement.Common.Core/Employee/EmployeePhoto.cs +++ b/EOM.TSHotelManagement.Common.Core/Employee/EmployeePhoto.cs @@ -5,19 +5,25 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 员工照片 (Employee Photo) /// - [SugarTable("employee_pic")] - public class EmployeePhoto + [SugarTable("employee_pic", "员工照片 (Employee Photo)")] + public class EmployeePhoto:BaseEntity { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 员工工号 (Employee ID) /// - [SugarColumn(ColumnName = "employee_number")] + [SugarColumn(ColumnName = "employee_number", ColumnDescription = "员工工号 (Employee ID)", Length = 128, IsNullable = false, IsPrimaryKey = true)] public string EmployeeId { get; set; } /// /// 照片路径 (Photo Path) /// - [SugarColumn(ColumnName = "pic_url")] + [SugarColumn(ColumnName = "pic_url", ColumnDescription = "照片路径 (Photo Path)", Length = 256, IsNullable = true)] public string PhotoPath { get; set; } } } diff --git a/EOM.TSHotelManagement.Common.Core/Employee/EmployeeRewardPunishment.cs b/EOM.TSHotelManagement.Common.Core/Employee/EmployeeRewardPunishment.cs index 8b9f5b64b55cce91a75cfd663f9c77bc6b286059..cb94fd448d3827999160b0d75fdefea188ce110f 100644 --- a/EOM.TSHotelManagement.Common.Core/Employee/EmployeeRewardPunishment.cs +++ b/EOM.TSHotelManagement.Common.Core/Employee/EmployeeRewardPunishment.cs @@ -30,31 +30,42 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 员工奖惩 (Employee Rewards/Punishments) /// - [SugarTable("reward_punishment")] + [SugarTable("reward_punishment", "员工奖惩 (Employee Rewards/Punishments)")] public class EmployeeRewardPunishment : BaseEntity { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + + /// + /// 奖惩编号 (Reward/Punishment ID) + /// + [SugarColumn(ColumnName = "reward_punishment_id", IsPrimaryKey = true, IsNullable = false, Length = 128, ColumnDescription = "奖惩编号 (Reward/Punishment ID)")] + public string RewardPunishmentId { get; set; } /// /// 员工工号 (Employee ID) /// - [SugarColumn(ColumnName = "employee_number")] + [SugarColumn(ColumnName = "employee_number", IsNullable = false, Length = 128, ColumnDescription = "员工工号 (Employee ID)")] public string EmployeeId { get; set; } /// /// 奖惩信息 (Reward/Punishment Information) /// - [SugarColumn(ColumnName = "reward_punishment_information")] + [SugarColumn(ColumnName = "reward_punishment_information", IsNullable = false, Length = 256, ColumnDescription = "奖惩信息 (Reward/Punishment Information)")] public string RewardPunishmentInformation { get; set; } /// /// 奖惩类型 (Reward/Punishment Type) /// - [SugarColumn(ColumnName = "reward_punishment_type")] + [SugarColumn(ColumnName = "reward_punishment_type", IsNullable = false, Length = 128, ColumnDescription = "奖惩类型 (Reward/Punishment Type)")] public string RewardPunishmentType { get; set; } /// /// 奖惩操作人 (Reward/Punishment Operator) /// - [SugarColumn(ColumnName = "reward_punishment_operator")] + [SugarColumn(ColumnName = "reward_punishment_operator", IsNullable = false, Length = 128, ColumnDescription = "奖惩操作人 (Reward/Punishment Operator)")] public string RewardPunishmentOperator { get; set; } /// @@ -66,7 +77,7 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 奖惩时间 (Reward/Punishment Time) /// - [SugarColumn(ColumnName = "reward_punishment_time")] + [SugarColumn(ColumnName = "reward_punishment_time", IsNullable = false, ColumnDescription = "奖惩时间 (Reward/Punishment Time)")] public DateTime RewardPunishmentTime { get; set; } /// diff --git a/EOM.TSHotelManagement.Common.Core/Employee/RewardPunishmentType.cs b/EOM.TSHotelManagement.Common.Core/Employee/RewardPunishmentType.cs index b47b5b5cd23ce333c9d556b12b780b4b73130d62..ccb71079abad7267409b0242c1af7c8abac2aa24 100644 --- a/EOM.TSHotelManagement.Common.Core/Employee/RewardPunishmentType.cs +++ b/EOM.TSHotelManagement.Common.Core/Employee/RewardPunishmentType.cs @@ -28,21 +28,38 @@ using SqlSugar; namespace EOM.TSHotelManagement.Common.Core { /// - /// 奖惩类型实体类 (Reward/Punishment Type Entity) + /// 奖惩类型配置表 (Reward/Punishment Type Configuration) /// - [SugarTable("reward_punishment_type")] + [SugarTable("reward_punishment_type", "奖惩类型配置表 (Reward/Punishment Type Configuration)")] public class RewardPunishmentType : BaseEntity { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 奖惩类型编号 (Reward/Punishment Type ID) /// - [SugarColumn(ColumnName = "reward_punishment_type_number", IsPrimaryKey = true)] + [SugarColumn( + ColumnName = "reward_punishment_type_number", + IsPrimaryKey = true, + ColumnDescription = "奖惩类型唯一编号 (Unique Reward/Punishment Type ID)", + IsNullable = false, + Length = 128 + )] public string RewardPunishmentTypeId { get; set; } /// /// 奖惩类型名称 (Reward/Punishment Type Name) /// - [SugarColumn(ColumnName = "reward_punishment_type_name")] + [SugarColumn( + ColumnName = "reward_punishment_type_name", + ColumnDescription = "奖惩类型名称(如优秀员工奖/迟到警告)", + IsNullable = false, + Length = 200 + )] public string RewardPunishmentTypeName { get; set; } } } \ No newline at end of file diff --git a/EOM.TSHotelManagement.Common.Core/Sys/NavBar/NavBar.cs b/EOM.TSHotelManagement.Common.Core/Sys/NavBar/NavBar.cs index c84b61c839a7728ea28639dee5bdacc0b6bed535..cc6549905d271b82e27e0d0d369397a8535cf4ab 100644 --- a/EOM.TSHotelManagement.Common.Core/Sys/NavBar/NavBar.cs +++ b/EOM.TSHotelManagement.Common.Core/Sys/NavBar/NavBar.cs @@ -3,45 +3,70 @@ namespace EOM.TSHotelManagement.Common.Core { /// - /// 导航控件实体类 (Navigation Bar Entity) + /// 导航栏配置表 (Navigation Bar Configuration) /// - [SugarTable("nav_bar")] + [SugarTable("nav_bar", "导航栏配置表 (Navigation Bar Configuration)", true)] public class NavBar : BaseEntity { /// - /// 导航控件ID (Navigation Bar ID) + /// 编号 (ID) /// - [SugarColumn(IsIdentity = true, ColumnName = "nav_id", IsPrimaryKey = true)] - public int NavigationBarId { get; set; } + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } /// /// 导航控件名称 (Navigation Bar Name) /// - [SugarColumn(ColumnName = "nav_name")] + [SugarColumn( + ColumnName = "nav_name", + ColumnDescription = "导航控件名称 (Navigation Bar Name)", + IsNullable = false, + Length = 50 + )] public string NavigationBarName { get; set; } /// /// 导航控件排序 (Navigation Bar Order) /// - [SugarColumn(ColumnName = "nav_or")] + [SugarColumn( + ColumnName = "nav_or", + ColumnDescription = "导航控件排序 (Navigation Bar Order)", + IsNullable = false, + DefaultValue = "0" + )] public int NavigationBarOrder { get; set; } /// /// 导航控件图片 (Navigation Bar Image) /// - [SugarColumn(ColumnName = "nav_pic")] + [SugarColumn( + ColumnName = "nav_pic", + ColumnDescription = "导航控件图片路径 (Navigation Bar Image Path)", + IsNullable = true, + Length = 255 + )] public string NavigationBarImage { get; set; } /// /// 导航控件事件 (Navigation Bar Event) /// - [SugarColumn(ColumnName = "nav_event")] + [SugarColumn( + ColumnName = "nav_event", + ColumnDescription = "导航控件事件标识 (Navigation Bar Event Identifier)", + IsNullable = true, + Length = 200 + )] public string NavigationBarEvent { get; set; } /// /// 导航控件左边距 (Navigation Bar Margin Left) /// - [SugarColumn(ColumnName = "margin_left")] + [SugarColumn( + ColumnName = "margin_left", + ColumnDescription = "导航控件左边距像素值 (Margin Left in Pixels)", + IsNullable = false, + DefaultValue = "0" + )] public int MarginLeft { get; set; } } } diff --git a/EOM.TSHotelManagement.Common.Core/SystemManagement/Administrator.cs b/EOM.TSHotelManagement.Common.Core/SystemManagement/Administrator.cs index 34de4286de7b4dcc687d8178529cd708b47ad7b1..223d68055bd83ec227070062ceee11a85b856234 100644 --- a/EOM.TSHotelManagement.Common.Core/SystemManagement/Administrator.cs +++ b/EOM.TSHotelManagement.Common.Core/SystemManagement/Administrator.cs @@ -30,21 +30,20 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 管理员实体类 (Administrator Entity) /// - [SugarTable("administrator")] + [SugarTable("administrator", "管理员实体类 (Administrator Entity)", true)] public class Administrator : BaseEntity { /// - /// 构造函数 (Constructor) + /// 编号 (ID) /// - public Administrator() - { - } + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } /// /// 管理员账号 (Administrator Account) /// [UIDisplay("管理员账号")] - [SugarColumn(ColumnName = "admin_number", IsNullable = false)] + [SugarColumn(ColumnName = "admin_number", IsPrimaryKey = true, IsNullable = false, Length = 128, ColumnDescription = "管理员账号 (Administrator Account)")] [NeedValid] public string Number { get; set; } @@ -52,21 +51,21 @@ namespace EOM.TSHotelManagement.Common.Core /// 管理员账号 (Administrator Account) /// [UIDisplay("管理员账号")] - [SugarColumn(ColumnName = "admin_account", IsNullable = false)] + [SugarColumn(ColumnName = "admin_account", IsNullable = false, Length = 128, ColumnDescription = "管理员名称 (Administrator Name)")] [NeedValid] public string Account { get; set; } /// /// 管理员密码 (Administrator Password) /// - [SugarColumn(ColumnName = "admin_password", IsNullable = false)] + [SugarColumn(ColumnName = "admin_password", IsNullable = false, Length = 256, ColumnDescription = "管理员密码 (Administrator Password)")] [NeedValid] public string Password { get; set; } /// /// 管理员类型 (Administrator Type) /// - [SugarColumn(ColumnName = "admin_type", IsNullable = false)] + [SugarColumn(ColumnName = "admin_type", IsNullable = false, Length = 150, ColumnDescription = "管理员类型 (Administrator Type)")] [NeedValid] public string Type { get; set; } @@ -74,7 +73,7 @@ namespace EOM.TSHotelManagement.Common.Core /// 管理员名称 (Administrator Name) /// [UIDisplay("管理员名称")] - [SugarColumn(ColumnName = "admin_name", IsNullable = false)] + [SugarColumn(ColumnName = "admin_name", IsNullable = false, Length = 200, ColumnDescription = "管理员名称 (Administrator Name)")] [NeedValid] public string Name { get; set; } @@ -82,7 +81,7 @@ namespace EOM.TSHotelManagement.Common.Core /// 是否为超级管理员 (Is Super Administrator) /// [UIDisplay("超级管理员?")] - [SugarColumn(ColumnName = "is_admin")] + [SugarColumn(ColumnName = "is_admin", IsNullable = false, ColumnDescription = "是否为超级管理员 (Is Super Administrator)")] public int IsSuperAdmin { get; set; } /// diff --git a/EOM.TSHotelManagement.Common.Core/SystemManagement/AdministratorType.cs b/EOM.TSHotelManagement.Common.Core/SystemManagement/AdministratorType.cs index 6034ee6f926e53e044a4a07440d1b847581eaf47..94f0e104c4b28d670f22862f1478b3e2dcf3d43c 100644 --- a/EOM.TSHotelManagement.Common.Core/SystemManagement/AdministratorType.cs +++ b/EOM.TSHotelManagement.Common.Core/SystemManagement/AdministratorType.cs @@ -29,19 +29,25 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 管理员类型 (Administrator Type) /// - [SugarTable("administrator_type")] + [SugarTable("administrator_type", "管理员类型 (Administrator Type)", true)] public class AdministratorType : BaseEntity { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 类型编号 (Type ID) /// - [SugarColumn(ColumnName = "type_id")] + [SugarColumn(ColumnName = "type_id", IsPrimaryKey = true, IsNullable = false, Length = 128, ColumnDescription = "类型编号 (Type ID)")] public string TypeId { get; set; } /// /// 类型名称 (Type Name) /// - [SugarColumn(ColumnName = "type_name")] + [SugarColumn(ColumnName = "type_name", Length = 256, IsNullable = false, ColumnDescription = "类型名称 (Type Name)")] public string TypeName { get; set; } } } diff --git a/EOM.TSHotelManagement.Common.Core/SystemManagement/AppointmentNotice.cs b/EOM.TSHotelManagement.Common.Core/SystemManagement/AppointmentNotice.cs index 096b6a6d76d801142121d54160a9c6d584f49a84..daa7d2026787a1ecbf26e92f3a595778d06eff9f 100644 --- a/EOM.TSHotelManagement.Common.Core/SystemManagement/AppointmentNotice.cs +++ b/EOM.TSHotelManagement.Common.Core/SystemManagement/AppointmentNotice.cs @@ -30,25 +30,31 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 任命公告 (Appointment AppointmentNotice) /// - [SugarTable("appointment_notice")] + [SugarTable("appointment_notice", "任命公告 (Appointment AppointmentNotice)")] public class AppointmentNotice : BaseEntity { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 公告编号 (AppointmentNotice Number) /// - [SugarColumn(ColumnName = "notice_no", IsPrimaryKey = true)] + [SugarColumn(ColumnName = "notice_no", IsPrimaryKey = true, IsNullable = false, Length = 128, ColumnDescription = "公告编号 (AppointmentNotice Number)")] public string NoticeNumber { get; set; } /// /// 公告主题 (AppointmentNotice Theme) /// - [SugarColumn(ColumnName = "notice_theme")] + [SugarColumn(ColumnName = "notice_theme", IsNullable = false, Length = 256, ColumnDescription = "公告主题 (AppointmentNotice Theme)")] public string NoticeTheme { get; set; } /// /// 公告类型 (AppointmentNotice Type) /// - [SugarColumn(ColumnName = "notice_type")] + [SugarColumn(ColumnName = "notice_type", IsNullable = false, Length = 150, ColumnDescription = "公告类型 (AppointmentNotice Type)")] public string NoticeType { get; set; } /// @@ -60,19 +66,19 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 公告时间 (AppointmentNotice Time) /// - [SugarColumn(ColumnName = "notice_time")] + [SugarColumn(ColumnName = "notice_time", IsNullable = false, ColumnDescription = "公告时间 (AppointmentNotice Time)")] public DateTime NoticeTime { get; set; } /// /// 公告正文 (AppointmentNotice Content) /// - [SugarColumn(ColumnName = "notice_content")] + [SugarColumn(ColumnName = "notice_content", IsNullable = true, ColumnDataType = "text", ColumnDescription = "公告正文 (AppointmentNotice Content)")] public string NoticeContent { get; set; } /// /// 发文部门 (Issuing Department) /// - [SugarColumn(ColumnName = "notice_department")] + [SugarColumn(ColumnName = "notice_department", IsNullable = false, Length = 128, ColumnDescription = "发文部门 (Issuing Department)")] public string IssuingDepartment { get; set; } } } diff --git a/EOM.TSHotelManagement.Common.Core/SystemManagement/AppointmentNoticeType.cs b/EOM.TSHotelManagement.Common.Core/SystemManagement/AppointmentNoticeType.cs new file mode 100644 index 0000000000000000000000000000000000000000..3d1becb966ede02e9e8d7d81b691b196952ecc6c --- /dev/null +++ b/EOM.TSHotelManagement.Common.Core/SystemManagement/AppointmentNoticeType.cs @@ -0,0 +1,31 @@ +using SqlSugar; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace EOM.TSHotelManagement.Common.Core +{ + [SugarTable("appointment_notice_type", "任命公告类型 (Appointment AppointmentNotice Type)")] + public class AppointmentNoticeType : BaseEntity + { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + + /// + /// 公告类型编号 (AppointmentNotice Type Number) + /// + [SugarColumn(ColumnName = "notice_type_number", IsPrimaryKey = true, IsNullable = false, Length = 128, ColumnDescription = "公告类型编号 (AppointmentNotice Type Number)")] + public string NoticeTypeNumber { get; set; } + + /// + /// 公告类型名称 (AppointmentNotice Type Name) + /// + [SugarColumn(ColumnName = "notice_type_name", IsNullable = false, Length = 200, ColumnDescription = "公告类型名称 (AppointmentNotice Type Name)")] + public string NoticeTypeName { get; set; } + } +} diff --git a/EOM.TSHotelManagement.Common.Core/SystemManagement/Department.cs b/EOM.TSHotelManagement.Common.Core/SystemManagement/Department.cs index 366325dc411c226291dfb0f75a585ae20d8087ee..044321d9e6f91ec3f32d8bc16c346aedce7a1b5b 100644 --- a/EOM.TSHotelManagement.Common.Core/SystemManagement/Department.cs +++ b/EOM.TSHotelManagement.Common.Core/SystemManagement/Department.cs @@ -33,34 +33,40 @@ namespace EOM.TSHotelManagement.Common.Core [SugarTable("department")] public class Department : BaseEntity { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 部门编号 (Department Number) /// - [SugarColumn(ColumnName = "dept_no")] + [SugarColumn(ColumnName = "dept_no", IsNullable = false, Length = 128, ColumnDescription = "部门编号 (Department Number)")] public string DepartmentNumber { get; set; } /// /// 部门名称 (Department Name) /// - [SugarColumn(ColumnName = "dept_name")] + [SugarColumn(ColumnName = "dept_name", IsNullable = false, Length = 256, ColumnDescription = "部门名称 (Department Name)")] public string DepartmentName { get; set; } /// /// 部门描述 (Department Description) /// - [SugarColumn(ColumnName = "dept_desc")] + [SugarColumn(ColumnName = "dept_desc", IsNullable = true, Length = 500, ColumnDescription = "部门描述 (Department Description)")] public string DepartmentDescription { get; set; } /// /// 创建时间(部门) (Department Creation Date) /// - [SugarColumn(ColumnName = "dept_date")] + [SugarColumn(ColumnName = "dept_date", IsNullable = true, ColumnDescription = "创建时间(部门) (Department Creation Date)")] public DateTime DepartmentCreationDate { get; set; } /// /// 部门主管 (Department Leader) /// - [SugarColumn(ColumnName = "dept_leader")] + [SugarColumn(ColumnName = "dept_leader", IsNullable = false, Length = 128, ColumnDescription = "部门主管 (Department Leader)")] public string DepartmentLeader { get; set; } /// @@ -72,7 +78,7 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 上级部门编号 (Parent Department Number) /// - [SugarColumn(ColumnName = "dept_parent")] + [SugarColumn(ColumnName = "dept_parent", IsNullable = true, Length = 128, ColumnDescription = "上级部门编号 (Parent Department Number)")] public string ParentDepartmentNumber { get; set; } /// diff --git a/EOM.TSHotelManagement.Common.Core/SystemManagement/Education.cs b/EOM.TSHotelManagement.Common.Core/SystemManagement/Education.cs index fbea359e3f2616f5c21b1a7e7ea49dbaf2b8763d..bb3b1e67c14e706eca5b0aa804f17694069649cb 100644 --- a/EOM.TSHotelManagement.Common.Core/SystemManagement/Education.cs +++ b/EOM.TSHotelManagement.Common.Core/SystemManagement/Education.cs @@ -29,19 +29,25 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 学历 (Education) /// - [SugarTable("qualification")] + [SugarTable("qualification", "学历 (Education)")] public class Education : BaseEntity { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 学历编号 (Education Number) /// - [SugarColumn(ColumnName = "education_no")] + [SugarColumn(ColumnName = "education_no",ColumnDescription = "学历编号 (Education Number)", IsNullable = false, IsPrimaryKey = true, Length = 128)] public string EducationNumber { get; set; } /// /// 学历名称 (Education Name) /// - [SugarColumn(ColumnName = "education_name")] + [SugarColumn(ColumnName = "education_name", ColumnDescription = "学历名称 (Education Name)", IsNullable = false, Length = 200)] public string EducationName { get; set; } } } diff --git a/EOM.TSHotelManagement.Common.Core/SystemManagement/Menu.cs b/EOM.TSHotelManagement.Common.Core/SystemManagement/Menu.cs index 9b95319326e243ec7da114eb9abc6f7c03d0737a..a46cff1e588cb403cd77b5f2ed1e915d1e99e67e 100644 --- a/EOM.TSHotelManagement.Common.Core/SystemManagement/Menu.cs +++ b/EOM.TSHotelManagement.Common.Core/SystemManagement/Menu.cs @@ -22,52 +22,53 @@ * *模块说明:菜单表 */ -using System; -using System.Collections.Generic; -using System.Linq; using SqlSugar; namespace EOM.TSHotelManagement.Common.Core { /// /// 菜单表 (Menu Table) /// - [SugarTable("menu")] + [SugarTable("menu", "菜单表 (Menu Table)", true)] public class Menu : BaseEntity { - [SugarColumn(ColumnName = "id",IsPrimaryKey = true,IsIdentity = true)] - public new int Id { get; set; } + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 备 注:菜单键 (Menu Key) /// 默认值: /// - [SugarColumn(ColumnName = "key")] + [SugarColumn(ColumnName = "key", IsNullable = true, ColumnDescription = "菜单键 (Menu Key)", Length = 256)] public string? Key { get; set; } /// /// 备 注:菜单标题 (Menu Title) /// 默认值: /// - [SugarColumn(ColumnName = "title")] + [SugarColumn(ColumnName = "title", IsNullable = false, ColumnDescription = "菜单标题 (Menu Title)", Length = 256)] public string Title { get; set; } = null!; /// /// 备 注:菜单路径 (Menu Path) /// 默认值: /// - [SugarColumn(ColumnName = "path")] + [SugarColumn(ColumnName = "path", IsNullable = false, ColumnDescription = "菜单路径 (Menu Path)", ColumnDataType = "text")] public string? Path { get; set; } /// /// 备 注:父级ID (Parent ID) /// 默认值: /// - [SugarColumn(ColumnName = "parent")] + [SugarColumn(ColumnName = "parent", IsNullable = true, ColumnDescription = "父级ID (Parent ID)")] public int? Parent { get; set; } /// /// 图标 /// - [SugarColumn(ColumnName = "icon")] + [SugarColumn(ColumnName = "icon", IsNullable = true, ColumnDescription = "图标", Length = 256)] public string Icon { get; set; } } diff --git a/EOM.TSHotelManagement.Common.Core/SystemManagement/MenuViewModel.cs b/EOM.TSHotelManagement.Common.Core/SystemManagement/MenuViewModel.cs index dee1fd889f2134e19193a4e708444db159904ad5..fac79c6d13e6bfb8e31e85af43d56c7665f4b803 100644 --- a/EOM.TSHotelManagement.Common.Core/SystemManagement/MenuViewModel.cs +++ b/EOM.TSHotelManagement.Common.Core/SystemManagement/MenuViewModel.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.Collections.Generic; namespace EOM.TSHotelManagement.Common.Core { diff --git a/EOM.TSHotelManagement.Common.Core/SystemManagement/Nation.cs b/EOM.TSHotelManagement.Common.Core/SystemManagement/Nation.cs index 42a7261335630132766551f8fb1486172d4bbeb4..1db54564cc48ade7edef77a163f199046e2664f5 100644 --- a/EOM.TSHotelManagement.Common.Core/SystemManagement/Nation.cs +++ b/EOM.TSHotelManagement.Common.Core/SystemManagement/Nation.cs @@ -29,19 +29,36 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 民族 (Nation) /// - [SugarTable("nation")] + [SugarTable("nation", "民族信息表 (Nation Information)")] public class Nation : BaseEntity { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 民族编号 (Nation Number) /// - [SugarColumn(ColumnName = "nation_no")] + [SugarColumn( + ColumnName = "nation_no", + ColumnDescription = "民族编号 (Nation Number)", + IsNullable = false, + IsPrimaryKey = true, + Length = 128 + )] public string NationNumber { get; set; } /// /// 民族名称 (Nation Name) /// - [SugarColumn(ColumnName = "nation_name")] + [SugarColumn( + ColumnName = "nation_name", + ColumnDescription = "民族名称 (Nation Name)", + IsNullable = false, + Length = 50 + )] public string NationName { get; set; } } } diff --git a/EOM.TSHotelManagement.Common.Core/SystemManagement/PoliticalAffiliation.cs b/EOM.TSHotelManagement.Common.Core/SystemManagement/PoliticalAffiliation.cs index 290cc0d9b623a0bc451d7a3f278c3b93df44aa22..94fbaa1aa57979403a1493ff774457541650e9c1 100644 --- a/EOM.TSHotelManagement.Common.Core/SystemManagement/PoliticalAffiliation.cs +++ b/EOM.TSHotelManagement.Common.Core/SystemManagement/PoliticalAffiliation.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.ComponentModel; namespace EOM.TSHotelManagement.Common.Core { diff --git a/EOM.TSHotelManagement.Common.Core/SystemManagement/Position.cs b/EOM.TSHotelManagement.Common.Core/SystemManagement/Position.cs index ac6c1f5dc2c0a8264c17330acb0aea0a98f96cae..50a31cd0676a76766ed2d688a9b24134ca1a2a22 100644 --- a/EOM.TSHotelManagement.Common.Core/SystemManagement/Position.cs +++ b/EOM.TSHotelManagement.Common.Core/SystemManagement/Position.cs @@ -27,21 +27,38 @@ using SqlSugar; namespace EOM.TSHotelManagement.Common.Core { /// - /// 职位 (Position) + /// 职位信息表 (Position Information) /// - [SugarTable("position")] + [SugarTable("position", "职位信息表 (Position Information)")] public class Position : BaseEntity { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 职位编号 (Position Number) /// - [SugarColumn(ColumnName = "position_no")] + [SugarColumn( + ColumnName = "position_no", + ColumnDescription = "职位编号 (Position Number)", + IsPrimaryKey = true, + IsNullable = false, + Length = 128 + )] public string PositionNumber { get; set; } /// /// 职位名称 (Position Name) /// - [SugarColumn(ColumnName = "position_name")] + [SugarColumn( + ColumnName = "position_name", + ColumnDescription = "职位名称 (Position Name)", + IsNullable = false, + Length = 200 + )] public string PositionName { get; set; } } } diff --git a/EOM.TSHotelManagement.Common.Core/SystemManagement/Role.cs b/EOM.TSHotelManagement.Common.Core/SystemManagement/Role.cs index ea7c0cbfe1bd1140ad8aecbb0f46fb3671888047..99d4574d0dd1af7c499d3d0e967ecc6eb8830f5f 100644 --- a/EOM.TSHotelManagement.Common.Core/SystemManagement/Role.cs +++ b/EOM.TSHotelManagement.Common.Core/SystemManagement/Role.cs @@ -1,35 +1,51 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using SqlSugar; +using SqlSugar; namespace EOM.TSHotelManagement.Common.Core { /// - /// 角色 - /// - [SugarTable("role")] + /// 系统角色配置表 (System Role Configuration) + /// + [SugarTable("role", "系统角色配置表 (System Role Configuration)")] public class Role : BaseEntity { /// - /// 备 注:角色编码 - /// 默认值: - /// - [SugarColumn(ColumnName = "role_number", IsPrimaryKey = true)] + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + + /// + /// 角色编码 (Role Code) + /// + [SugarColumn( + ColumnName = "role_number", + IsPrimaryKey = true, + ColumnDescription = "角色唯一标识编码 (Unique Role Identifier)", + IsNullable = false, + Length = 128 + )] public string RoleNumber { get; set; } = null!; /// - /// 备 注:角色名字 - /// 默认值: - /// - [SugarColumn(ColumnName = "role_name")] + /// 角色名称 (Role Name) + /// + [SugarColumn( + ColumnName = "role_name", + ColumnDescription = "角色名称(如管理员/前台接待)", + IsNullable = false, + Length = 200 + )] public string RoleName { get; set; } = null!; /// - /// 备 注:角色描述 - /// 默认值: - /// - [SugarColumn(ColumnName = "role_description")] + /// 角色描述 (Role Description) + /// + [SugarColumn( + ColumnName = "role_description", + ColumnDescription = "角色详细权限描述 (Detailed Permissions Description)", + IsNullable = true, + Length = 500 + )] public string? RoleDescription { get; set; } } - + } \ No newline at end of file diff --git a/EOM.TSHotelManagement.Common.Core/SystemManagement/RolePermission.cs b/EOM.TSHotelManagement.Common.Core/SystemManagement/RolePermission.cs index e7812561a8601d0e0b5217d2a7d11e8a74b62672..bcb13f11148976cb7916682636ee3bf8a5f6e853 100644 --- a/EOM.TSHotelManagement.Common.Core/SystemManagement/RolePermission.cs +++ b/EOM.TSHotelManagement.Common.Core/SystemManagement/RolePermission.cs @@ -1,27 +1,42 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using SqlSugar; +using SqlSugar; namespace EOM.TSHotelManagement.Common.Core { /// - /// 角色权限关联表 - /// - [SugarTable("role_permission")] + /// 角色权限关联表 (Role-Permission Mapping) + /// + [SugarTable("role_permission", "角色权限关联表 (Role-Permission Mapping)")] public class RolePermission : BaseEntity { /// - /// 备 注:角色编码 - /// 默认值: - /// - [SugarColumn(ColumnName = "role_number")] + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + + /// + /// 角色编码(关联角色表) (Role Code) + /// + [SugarColumn( + ColumnName = "role_number", + IsPrimaryKey = true, + ColumnDescription = "关联角色编码 (Linked Role Code)", + IsNullable = false, + Length = 128, + IndexGroupNameList = new[] { "IX_role_number" } + )] public string RoleNumber { get; set; } = null!; /// - /// 备 注:权限编码 - /// 默认值: - /// - [SugarColumn(ColumnName = "permission_number")] + /// 权限编码(关联权限表) (Permission Code) + /// + [SugarColumn( + ColumnName = "permission_number", + IsPrimaryKey = true, + ColumnDescription = "关联权限编码 (Linked Permission Code)", + IsNullable = false, + Length = 128, + IndexGroupNameList = new[] { "IX_permission_number" } + )] public string PermissionNumber { get; set; } = null!; } diff --git a/EOM.TSHotelManagement.Common.Core/SystemManagement/SupervisionStatistics.cs b/EOM.TSHotelManagement.Common.Core/SystemManagement/SupervisionStatistics.cs index 6f0355f562fc5b6f43e45343b2403d9303fb7053..23142d6b7138ad03e3855589674a20a48047e44d 100644 --- a/EOM.TSHotelManagement.Common.Core/SystemManagement/SupervisionStatistics.cs +++ b/EOM.TSHotelManagement.Common.Core/SystemManagement/SupervisionStatistics.cs @@ -23,61 +23,123 @@ *模块说明:监管统计类 */ using SqlSugar; +using System; namespace EOM.TSHotelManagement.Common.Core { - /// - /// 监管统计 (Supervision Statistics) + // + /// 监管统计信息表 (Supervision Statistics) /// - [SugarTable("supervision_statistics")] + [SugarTable("supervision_statistics", "监管统计信息表 (Supervision Statistics)")] public class SupervisionStatistics : BaseEntity { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 监管统计编号 (Supervision Statistics Number) /// - [SugarColumn(ColumnName = "statistics_number", IsPrimaryKey = true)] + [SugarColumn( + ColumnName = "statistics_number", + IsPrimaryKey = true, + ColumnDescription = "监管记录唯一编号 (Unique Statistics ID)", + IsNullable = false, + Length = 128 + )] public string StatisticsNumber { get; set; } /// - /// 本次监管部门 (Supervising Department) + /// 监管部门编码 (Supervising Department Code) /// - [SugarColumn(ColumnName = "supervising_department")] + [SugarColumn( + ColumnName = "supervising_department", + ColumnDescription = "监管部门编码(关联部门表)", + IsNullable = false, + Length = 128 + )] public string SupervisingDepartment { get; set; } /// - /// 本次监管部门名称 (Supervising Department Name) + /// 监管部门名称 (Supervising Department Name)(不存储到数据库) /// [SugarColumn(IsIgnore = true)] public string SupervisingDepartmentName { get; set; } /// - /// 本次监管进度 (Supervision Progress) + /// 监管进度 (Supervision Progress) /// - [SugarColumn(ColumnName = "supervision_progress")] + [SugarColumn( + ColumnName = "supervision_progress", + ColumnDescription = "监管进度描述(如:已完成/整改中)", + IsNullable = false, + Length = 200 + )] public string SupervisionProgress { get; set; } /// - /// 本次监管损失 (Supervision Loss) + /// 监管损失金额 (Supervision Loss Amount) /// - [SugarColumn(ColumnName = "supervision_loss")] + [SugarColumn( + ColumnName = "supervision_loss", + ColumnDescription = "监管造成的经济损失", + IsNullable = false + )] public string SupervisionLoss { get; set; } /// - /// 本次评分 (Supervision Score) + /// 监管评分 (Supervision Score) /// - [SugarColumn(ColumnName = "supervision_score")] + [SugarColumn( + ColumnName = "supervision_score", + ColumnDescription = "监管评分(范围:0-100分)", + IsNullable = false, + DefaultValue = "100" + )] public int SupervisionScore { get; set; } /// - /// 监管统计人 (Supervision Statistician) + /// 统计人员 (Supervision Statistician) /// - [SugarColumn(ColumnName = "supervision_statistician")] + [SugarColumn( + ColumnName = "supervision_statistician", + ColumnDescription = "统计责任人姓名", + IsNullable = false, + Length = 50 + )] public string SupervisionStatistician { get; set; } /// - /// 本次监管建议 (Supervision Advice) + /// 监管建议 (Supervision Advice) /// - [SugarColumn(ColumnName = "supervision_advice")] + [SugarColumn( + ColumnName = "supervision_advice", + ColumnDescription = "监管整改建议内容", + IsNullable = true, + Length = 1000 + )] public string SupervisionAdvice { get; set; } + + /// + /// 监管时间 (Supervision Time) + /// + [SugarColumn( + ColumnName = "supervision_time", + ColumnDescription = "监管检查时间", + IsNullable = false + )] + public DateTime SupervisionTime { get; set; } + + /// + /// 整改状态 (Rectification Status) + /// + [SugarColumn( + ColumnName = "rectification_status", + ColumnDescription = "0-未整改/1-已整改", + DefaultValue = "0" + )] + public int RectificationStatus { get; set; } } } diff --git a/EOM.TSHotelManagement.Common.Core/SystemManagement/SystemInformation.cs b/EOM.TSHotelManagement.Common.Core/SystemManagement/SystemInformation.cs index 97e48a33fbb58a75e5bb9fc688edddd35bf9521e..22c71199dbbb14f401c450ea63e4ab3db0d8bc6a 100644 --- a/EOM.TSHotelManagement.Common.Core/SystemManagement/SystemInformation.cs +++ b/EOM.TSHotelManagement.Common.Core/SystemManagement/SystemInformation.cs @@ -29,19 +29,25 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 系统信息 (System Information) /// - [SugarTable("app_config_base")] + [SugarTable("app_config_base", "系统信息 (System Information)", true)] public class SystemInformation { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 地址编号 (URL Number) /// - [SugarColumn(ColumnName = "url_no", IsPrimaryKey = true)] + [SugarColumn(ColumnName = "url_no", IsPrimaryKey = true, ColumnDescription = "地址编号 (URL Number)")] public int UrlNumber { get; set; } /// /// 地址 (URL Address) /// - [SugarColumn(ColumnName = "url_addr")] + [SugarColumn(ColumnName = "url_addr", Length = 256,ColumnDescription = "地址 (URL Address)")] public string UrlAddress { get; set; } } } diff --git a/EOM.TSHotelManagement.Common.Core/SystemManagement/UserRole.cs b/EOM.TSHotelManagement.Common.Core/SystemManagement/UserRole.cs index 728a0687eafc34a8f7119757995675f8135b2cad..34d45698b1b91d96084dc2fcb7e2fc17f7b9163b 100644 --- a/EOM.TSHotelManagement.Common.Core/SystemManagement/UserRole.cs +++ b/EOM.TSHotelManagement.Common.Core/SystemManagement/UserRole.cs @@ -1,28 +1,43 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using SqlSugar; +using SqlSugar; namespace EOM.TSHotelManagement.Common.Core { - /// - /// 用户角色关联表 - /// - [SugarTable("user_role")] - public class UserRole:BaseEntity + // + /// 用户角色关联表 (User-Role Mapping) + /// + [SugarTable("user_role", "用户角色关联表 (User-Role Mapping)")] + public class UserRole : BaseEntity { /// - /// 备 注:角色编码 - /// 默认值: - /// - [SugarColumn(ColumnName="role_number" ) ] - public string RoleNumber { get; set; } = null!; - + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// - /// 备 注:用户编码 - /// 默认值: - /// - [SugarColumn(ColumnName="user_number" ) ] - public string UserNumber { get; set; } = null!; + /// 角色编码(关联角色表) (Role Code) + /// + [SugarColumn( + ColumnName = "role_number", + IsPrimaryKey = true, + ColumnDescription = "关联角色编码 (Linked Role Code)", + IsNullable = false, + Length = 128, + IndexGroupNameList = new[] { "IX_role_number" } + )] + public string RoleNumber { get; set; } = null!; + + /// + /// 用户编码(关联用户表) (User Code) + /// + [SugarColumn( + ColumnName = "user_number", + IsPrimaryKey = true, + ColumnDescription = "关联用户编码 (Linked User Code)", + IsNullable = false, + Length = 128, + IndexGroupNameList = new[] { "IX_user_number" } + )] + public string UserNumber { get; set; } = null!; } - + } \ No newline at end of file diff --git a/EOM.TSHotelManagement.Common.Core/SystemManagement/VipLevelRule.cs b/EOM.TSHotelManagement.Common.Core/SystemManagement/VipLevelRule.cs index c549dc69e4da41d5de9632a471bd166dea25d670..f1bca5ba6ab0d06da5df71969c63924b83dfb530 100644 --- a/EOM.TSHotelManagement.Common.Core/SystemManagement/VipLevelRule.cs +++ b/EOM.TSHotelManagement.Common.Core/SystemManagement/VipLevelRule.cs @@ -27,43 +27,65 @@ using SqlSugar; namespace EOM.TSHotelManagement.Common.Core { /// - /// 会员等级规则类 (VIP Level Rule Class) + /// 会员等级规则表 (VIP Level Rules) /// - [SugarTable("vip_rule")] + [SugarTable("vip_rule", "会员等级规则配置表 (VIP Level Rule Configuration)")] public class VipLevelRule : BaseEntity { /// - /// 索引ID (Index ID) + /// 编号 (ID) /// - [SugarColumn(ColumnName = "id", IsIdentity = true)] + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] public int Id { get; set; } + /// /// 会员规则流水号 (VIP Rule Serial Number) /// - [SugarColumn(ColumnName = "rule_id", IsPrimaryKey = true)] + [SugarColumn( + ColumnName = "rule_id", + IsPrimaryKey = true, + ColumnDescription = "规则业务唯一编号 (如VIPR-2023-001)", + IsNullable = false, + Length = 128 + )] public string RuleSerialNumber { get; set; } /// /// 会员规则名称 (VIP Rule Name) /// - [SugarColumn(ColumnName = "rule_name")] + [SugarColumn( + ColumnName = "rule_name", + ColumnDescription = "规则名称(如『黄金会员准入规则』)", + IsNullable = false, + Length = 200 + )] public string RuleName { get; set; } /// - /// 预设数值(历史消费总额) (Preset Value - Total Historical Spending) + /// 预设消费总额 (Preset Total Spending) /// - [SugarColumn(ColumnName = "rule_value")] + [SugarColumn( + ColumnName = "rule_value", + Length = 18, + ColumnDescription = "累计消费金额阈值(单位:元)", + IsNullable = false, + DecimalDigits = 2 + )] public decimal RuleValue { get; set; } /// - /// 会员等级 (VIP Level) + /// 会员等级ID (VIP Level ID) /// - [SugarColumn(ColumnName = "type_id")] + [SugarColumn( + ColumnName = "type_id", + ColumnDescription = "关联会员等级表 (Linked VIP Level)", + IsNullable = false + )] public int VipLevelId { get; set; } /// - /// 会员等级描述 (VIP Level Description) + /// 会员等级名称 (VIP Level Name)(不存储到数据库) /// [SugarColumn(IsIgnore = true)] public string VipLevelName { get; set; } diff --git a/EOM.TSHotelManagement.Common.Core/Util/ApplicationVersion.cs b/EOM.TSHotelManagement.Common.Core/Util/ApplicationVersion.cs index 4007b72721e7089ebe1d5812ed8b135af354d514..a408f825c30cbbba6d613ee6827f86f5170048fc 100644 --- a/EOM.TSHotelManagement.Common.Core/Util/ApplicationVersion.cs +++ b/EOM.TSHotelManagement.Common.Core/Util/ApplicationVersion.cs @@ -5,19 +5,19 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 应用版本 (Application Version) /// - [SugarTable("app_version")] + [SugarTable("app_version", "应用版本 (Application Version)")] public class ApplicationVersion { /// /// 流水号 (Sequence Number) /// - [SugarColumn(ColumnName = "base_versionId", IsIdentity = true, IsPrimaryKey = true)] + [SugarColumn(ColumnName = "base_versionId", IsIdentity = true, IsPrimaryKey = true, ColumnDescription = "流水号 (Sequence Number)")] public int ApplicationVersionId { get; set; } /// /// 版本号 (Version Number) /// - [SugarColumn(ColumnName = "base_version")] + [SugarColumn(ColumnName = "base_version", Length = 100, ColumnDescription = "版本号 (Version Number)")] public string VersionNumber { get; set; } } } diff --git a/EOM.TSHotelManagement.Common.Core/Util/CardCode.cs b/EOM.TSHotelManagement.Common.Core/Util/CardCode.cs index a0ac63024f3796c3dcf77659b275cffaedad375c..f3dfc6664ec8a1658dfa3e803fb139559063bf0b 100644 --- a/EOM.TSHotelManagement.Common.Core/Util/CardCode.cs +++ b/EOM.TSHotelManagement.Common.Core/Util/CardCode.cs @@ -5,44 +5,37 @@ namespace EOM.TSHotelManagement.Common.Core /// /// 卡片代码 (Card Codes) /// - [SugarTable("card_code")] - public class CardCode + [SugarTable("card_code", "卡片代码 (Card Codes)", true)] + public class CardCode:BaseEntity { - /// - /// 卡片代码 (Card Code) - /// - public CardCode() - { - } - /// /// 编号 (ID) /// - [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)] - public long Id { get; set; } + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } /// /// 省份 (Province) /// - [SugarColumn(ColumnName = "province")] + [SugarColumn(ColumnName = "province",IsNullable = false,Length =100,ColumnDescription = "省份 (Province)")] public string Province { get; set; } /// /// 城市 (City) /// - [SugarColumn(ColumnName = "city")] + [SugarColumn(ColumnName = "city", IsNullable = true, Length = 100, ColumnDescription = "城市 (City)")] public string City { get; set; } /// /// 地区 (District) /// - [SugarColumn(ColumnName = "district")] + [SugarColumn(ColumnName = "district", IsNullable = true, Length = 100, ColumnDescription = "地区 (District)")] public string District { get; set; } /// /// 地区识别码 (Area Code) /// - [SugarColumn(ColumnName = "district_code")] + [SugarColumn(ColumnName = "district_code", IsNullable = false, Length = 50, ColumnDescription = "地区识别码 (Area Code)")] public string AreaCode { get; set; } } } diff --git a/EOM.TSHotelManagement.Common.Core/Util/OperationLog.cs b/EOM.TSHotelManagement.Common.Core/Util/OperationLog.cs index 9b75877a875283befba4272e981e3186e11f251b..c31ebd42c01ab250c282ed7d281b8d8d9630e8c8 100644 --- a/EOM.TSHotelManagement.Common.Core/Util/OperationLog.cs +++ b/EOM.TSHotelManagement.Common.Core/Util/OperationLog.cs @@ -48,95 +48,175 @@ namespace EOM.TSHotelManagement.Common.Core Critical = 300 } - /// - /// 操作日志 (Operation Log) + // + /// 操作日志表 (Operation Log) /// - [SugarTable("operation_log")] + [SugarTable("operation_log", "操作日志表 (Operation Log)")] public class OperationLog : BaseEntity { + /// + /// 编号 (ID) + /// + [SugarColumn(ColumnName = "id", IsIdentity = true, IsPrimaryKey = true, IsNullable = false, ColumnDescription = "编号 (ID)")] + public int Id { get; set; } + /// /// 日志ID (Log ID) /// - [SugarColumn(ColumnName = "operation_number",IsPrimaryKey = true)] + [SugarColumn( + ColumnName = "operation_number", + IsPrimaryKey = true, + ColumnDescription = "日志ID (Log ID)", + IsNullable = false, + Length = 128 + )] public string OperationId { get; set; } /// /// 操作时间 (Operation Time) /// - [SugarColumn(ColumnName = "operation_time")] + [SugarColumn( + ColumnName = "operation_time", + ColumnDescription = "操作时间 (Operation Time)", + IsNullable = false + )] public DateTime OperationTime { get; set; } /// /// 操作信息 (Log Content) /// - [SugarColumn(ColumnName = "log_content")] + [SugarColumn( + ColumnName = "log_content", + ColumnDescription = "操作信息 (Log Content)", + IsNullable = false, + Length = 2000 + )] public string LogContent { get; set; } /// /// 操作账号 (Operation Account) /// - [SugarColumn(ColumnName = "operation_account")] + [SugarColumn( + ColumnName = "operation_account", + ColumnDescription = "操作账号 (Operation Account)", + IsNullable = false, + Length = 50 + )] public string OperationAccount { get; set; } /// /// 日志等级 (Log Level) /// - [SugarColumn(ColumnName = "operation_level")] + [SugarColumn( + ColumnName = "operation_level", + ColumnDescription = "日志等级枚举值 (Log Level Enum)", + IsNullable = false + )] public LogLevel LogLevel { get; set; } /// /// 软件版本 (Software Version) /// - [SugarColumn(ColumnName = "software_version")] + [SugarColumn( + ColumnName = "software_version", + ColumnDescription = "软件版本号 (Software Version)", + IsNullable = true, + Length = 50 + )] public string SoftwareVersion { get; set; } /// /// 登录IP (Login IP Address) /// - [SugarColumn(ColumnName = "login_ip")] + [SugarColumn( + ColumnName = "login_ip", + ColumnDescription = "登录IP地址 (Login IP Address)", + IsNullable = false, + Length = 45 + )] public string LoginIpAddress { get; set; } /// - /// 日志等级名称 (Log Level Name) + /// 日志等级名称 (Log Level Name)(不存储到数据库) /// [SugarColumn(IsIgnore = true)] public string LogLevelName { get; set; } - /// /// 请求路径 (Request Path) /// - [SugarColumn(ColumnName = "request_path")] + [SugarColumn( + ColumnName = "request_path", + ColumnDescription = "请求路径 (Request Path)", + IsNullable = false, + Length = 500 + )] public string RequestPath { get; set; } + /// /// 查询字符串 (Query String) /// - [SugarColumn(ColumnName = "query_string")] + [SugarColumn( + ColumnName = "query_string", + ColumnDescription = "查询参数 (Query String)", + IsNullable = true, + Length = 2000 + )] public string QueryString { get; set; } + /// /// 响应时间 (Elapsed Time) /// - [SugarColumn(ColumnName = "elapsed_time")] + [SugarColumn( + ColumnName = "elapsed_time", + ColumnDescription = "响应时间(毫秒) (Elapsed Time in ms)", + IsNullable = false, + DefaultValue = "0" + )] public long ElapsedTime { get; set; } + /// /// 请求方法 (Http Method) /// - [SugarColumn(ColumnName = "http_method")] + [SugarColumn( + ColumnName = "http_method", + ColumnDescription = "HTTP请求方法 (HTTP Method)", + IsNullable = false, + Length = 10 + )] public string HttpMethod { get; set; } + /// /// 状态码 (Status Code) /// - [SugarColumn(ColumnName = "status_code")] + [SugarColumn( + ColumnName = "status_code", + ColumnDescription = "HTTP状态码 (HTTP Status Code)", + IsNullable = false, + DefaultValue = "200" + )] public int StatusCode { get; set; } + /// /// 异常消息 (Exception Message) /// - [SugarColumn(ColumnName = "exception_message")] + [SugarColumn( + ColumnName = "exception_message", + ColumnDescription = "异常消息内容 (Exception Message)", + IsNullable = true, + Length = 2000 + )] public string ExceptionMessage { get; set; } + /// /// 异常堆栈 (Exception Stack Trace) /// - [SugarColumn(ColumnName = "exception_stacktrace")] + [SugarColumn( + ColumnName = "exception_stacktrace", + ColumnDescription = "异常堆栈信息 (Exception Stack Trace)", + IsNullable = true, + Length = 4000 + )] public string ExceptionStackTrace { get; set; } } } diff --git a/EOM.TSHotelManagement.Common.Util/GenerateJWT/JWTHelper.cs b/EOM.TSHotelManagement.Common.Util/GenerateJWT/JWTHelper.cs index 2b8c10a5ccc0d7adffd88589fc4ef1b795f6b303..6622659986a22668808685249ec32d13ebc14b57 100644 --- a/EOM.TSHotelManagement.Common.Util/GenerateJWT/JWTHelper.cs +++ b/EOM.TSHotelManagement.Common.Util/GenerateJWT/JWTHelper.cs @@ -3,10 +3,8 @@ using Microsoft.IdentityModel.Tokens; using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; -using System.Linq; using System.Security.Claims; using System.Text; -using System.Threading.Tasks; namespace EOM.TSHotelManagement.Common.Util { diff --git a/EOM.TSHotelManagement.Common.Util/Helper/LskyHelper.cs b/EOM.TSHotelManagement.Common.Util/Helper/LskyHelper.cs index 3bba4f03193406be3f23a720aa0b0855ce2e74b0..3bfa342887b8ecd8cd1ff80f7f58e05e02fc2e31 100644 --- a/EOM.TSHotelManagement.Common.Util/Helper/LskyHelper.cs +++ b/EOM.TSHotelManagement.Common.Util/Helper/LskyHelper.cs @@ -1,13 +1,10 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net.Http.Headers; +using EOM.TSHotelManagement.Shared; +using System; +using System.IO; using System.Net.Http; -using System.Text; -using System.Threading.Tasks; +using System.Net.Http.Headers; using System.Net.Http.Json; -using EOM.TSHotelManagement.Shared; -using System.IO; +using System.Threading.Tasks; namespace EOM.TSHotelManagement.Common.Util { @@ -47,7 +44,7 @@ namespace EOM.TSHotelManagement.Common.Util try { if (fileStream == null || fileStream.Length == 0) - throw new ArgumentException(LocalizationHelper.GetLocalizedString("File stream cannot be empty","文件流不能为空")); + throw new ArgumentException(LocalizationHelper.GetLocalizedString("File stream cannot be empty", "文件流不能为空")); if (string.IsNullOrWhiteSpace(fileName)) throw new ArgumentException(LocalizationHelper.GetLocalizedString("File name cannot be empty", "文件名不能为空")); @@ -75,7 +72,7 @@ namespace EOM.TSHotelManagement.Common.Util httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); var response = await httpClient.PostAsync( - $"{lskConfig.BaseAddress}{lskConfig.UploadApi}", + $"{lskConfig.BaseAddress}{lskConfig.UploadApi}", content ); @@ -88,7 +85,7 @@ namespace EOM.TSHotelManagement.Common.Util var result = await response.Content.ReadFromJsonAsync(); return result?.Data?.Links?.Url ?? throw new Exception("响应中未包含有效URL"); } - catch (Exception ex) + catch (Exception) { throw; } diff --git a/EOM.TSHotelManagement.Common.Util/Helper/MailHelper.cs b/EOM.TSHotelManagement.Common.Util/Helper/MailHelper.cs index be10022b55143b83138bbace114e6a2b3253c155..9a8eeb1bb06a1715756205d15152a5f2fd7d6f22 100644 --- a/EOM.TSHotelManagement.Common.Util/Helper/MailHelper.cs +++ b/EOM.TSHotelManagement.Common.Util/Helper/MailHelper.cs @@ -1,11 +1,11 @@ -using MimeKit; +using EOM.TSHotelManagement.Shared; using MailKit.Net.Smtp; using MailKit.Security; +using MimeKit; using System; using System.Collections.Generic; using System.IO; using System.Linq; -using EOM.TSHotelManagement.Shared; using System.Net.Mime; namespace EOM.TSHotelManagement.Common.Util diff --git a/EOM.TSHotelManagement.Common.Util/Helper/RandomStringGenerator.cs b/EOM.TSHotelManagement.Common.Util/Helper/RandomStringGenerator.cs index e0ab59f109c3f544abdf69c596d49dc00013dd8e..91a7451054e446f5c22823329c615baf9f59def6 100644 --- a/EOM.TSHotelManagement.Common.Util/Helper/RandomStringGenerator.cs +++ b/EOM.TSHotelManagement.Common.Util/Helper/RandomStringGenerator.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Security.Cryptography; -using System.Text; -using System.Threading.Tasks; +using System.Security.Cryptography; namespace EOM.TSHotelManagement.Common.Util { diff --git a/EOM.TSHotelManagement.Common.Util/Validator/UIDisplayAttribute.cs b/EOM.TSHotelManagement.Common.Util/Validator/UIDisplayAttribute.cs index 093a64826a68e696492bf30aacccdf747cbdd294..adbbca2e537040571814596af647c25489c0bc4f 100644 --- a/EOM.TSHotelManagement.Common.Util/Validator/UIDisplayAttribute.cs +++ b/EOM.TSHotelManagement.Common.Util/Validator/UIDisplayAttribute.cs @@ -11,7 +11,7 @@ namespace EOM.TSHotelManagement.Common.Util public bool IsVisible { get; set; } = true; - public UIDisplayAttribute(string displayName,bool isNumber = false,bool isVisible = true) + public UIDisplayAttribute(string displayName, bool isNumber = false, bool isVisible = true) { DisplayName = displayName; IsNumber = isNumber; diff --git a/EOM.TSHotelManagement.EntityFramework/Repository/GenericRepository.cs b/EOM.TSHotelManagement.EntityFramework/Repository/GenericRepository.cs index 58c92477cdf9e7f7bfdaea0feb5353bc0d0e3adb..01a9fe4ddb4db862eb601804579759dee7416afd 100644 --- a/EOM.TSHotelManagement.EntityFramework/Repository/GenericRepository.cs +++ b/EOM.TSHotelManagement.EntityFramework/Repository/GenericRepository.cs @@ -6,7 +6,7 @@ namespace EOM.TSHotelManagement.EntityFramework { public GenericRepository(ISqlSugarClient client) : base(client) { - base.Context.Aop.OnError = (ex) => {}; + base.Context.Aop.OnError = (ex) => { }; } } } diff --git a/EOM.TSHotelManagement.Migration/EOM.TSHotelManagement.Migration.csproj b/EOM.TSHotelManagement.Migration/EOM.TSHotelManagement.Migration.csproj new file mode 100644 index 0000000000000000000000000000000000000000..030f286a54825876bb916ce0f7d0aa43a4a572f2 --- /dev/null +++ b/EOM.TSHotelManagement.Migration/EOM.TSHotelManagement.Migration.csproj @@ -0,0 +1,17 @@ + + + + net8.0 + enable + enable + + + + + + + + + + + diff --git a/EOM.TSHotelManagement.Migration/EntityBuilder.cs b/EOM.TSHotelManagement.Migration/EntityBuilder.cs new file mode 100644 index 0000000000000000000000000000000000000000..2f52f53bfa65d65125bd4c3ba29e8587360e299c --- /dev/null +++ b/EOM.TSHotelManagement.Migration/EntityBuilder.cs @@ -0,0 +1,543 @@ +using EOM.TSHotelManagement.Common.Core; +using SqlSugar; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace EOM.TSHotelManagement.Migration +{ + public class EntityBuilder + { + private readonly Type[] entityTypes = + { + typeof(ApplicationVersion), + typeof(Administrator), + typeof(AdministratorType), + typeof(AppointmentNotice), + typeof(AppointmentNoticeType), + typeof(Asset), + typeof(Customer), + typeof(CustoType), + typeof(CardCode), + typeof(Department), + typeof(Employee), + typeof(EmployeeCheck), + typeof(EmployeeHistory), + typeof(EmployeePhoto), + typeof(EmployeeRewardPunishment), + typeof(EnergyManagement), + typeof(Education), + typeof(Menu), + typeof(Nation), + typeof(NavBar), + typeof(OperationLog), + typeof(Position), + typeof(PromotionContent), + typeof(PassportType), + typeof(Room), + typeof(RoomType), + typeof(Reser), + typeof(RewardPunishmentType), + typeof(Role), + typeof(RolePermission), + typeof(SellThing), + typeof(Spend), + typeof(SupervisionStatistics), + typeof(SystemInformation), + typeof(UserRole), + typeof(VipLevelRule), + }; + + private readonly List entityDatas = new() + { + new AdministratorType + { + TypeId = "Admin", + TypeName = "超级管理员", + IsDelete = 0, + DataInsUsr = "System", + DataInsDate = DateTime.Now, + }, + new Administrator + { + Number = "1263785187301658678", + Account = "admin", + Password = "clUKFMeIUWp6YflZweR0Cw==·#c0fbb?;*$>#;^b%$?>#%% entityTypes; + + public List GetEntityDatas() => entityDatas; + } +} diff --git a/EOM.TSHotelManagement.Shared/BrotliHelper.cs b/EOM.TSHotelManagement.Shared/BrotliHelper.cs index 6bf31d811ac4c175f8531b54abb799be884ff0b8..dfc510d45494cb0a4cc0196cb9089e3b6eb95f9e 100644 --- a/EOM.TSHotelManagement.Shared/BrotliHelper.cs +++ b/EOM.TSHotelManagement.Shared/BrotliHelper.cs @@ -1,10 +1,5 @@ -using System; -using System.Buffers; -using System.Collections.Generic; -using System.IO.Compression; -using System.Linq; +using System.IO.Compression; using System.Text; -using System.Threading.Tasks; namespace EOM.TSHotelManagement.Shared { diff --git a/EOM.TSHotelManagement.Shared/EnumHelper.cs b/EOM.TSHotelManagement.Shared/EnumHelper.cs index aee8ccfa86e4919ce94011f962d7580cb677c178..453693cb9e7d4dd8998c7da154f2ffe372f697f4 100644 --- a/EOM.TSHotelManagement.Shared/EnumHelper.cs +++ b/EOM.TSHotelManagement.Shared/EnumHelper.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; +using System.ComponentModel; using System.Reflection; -using System.Text; -using System.Threading.Tasks; namespace EOM.TSHotelManagement.Shared { diff --git a/EOM.TSHotelManagement.Shared/Interfaces/ILskyConfigFactory.cs b/EOM.TSHotelManagement.Shared/Interfaces/ILskyConfigFactory.cs index 86a5210a2b146672371a543d4f46422cec6c7c19..eeb55e8c68680cb6f80b8d4252a21f32d52a660e 100644 --- a/EOM.TSHotelManagement.Shared/Interfaces/ILskyConfigFactory.cs +++ b/EOM.TSHotelManagement.Shared/Interfaces/ILskyConfigFactory.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace EOM.TSHotelManagement.Shared +namespace EOM.TSHotelManagement.Shared { public interface ILskyConfigFactory { diff --git a/EOM.TSHotelManagement.Shared/Interfaces/IMailConfigFactory.cs b/EOM.TSHotelManagement.Shared/Interfaces/IMailConfigFactory.cs index 35af71daa6a8f59dacbe7105a5d6dcb21bfa58ff..c78f76d9994c5139e9dddffed5bc9b222abf3abb 100644 --- a/EOM.TSHotelManagement.Shared/Interfaces/IMailConfigFactory.cs +++ b/EOM.TSHotelManagement.Shared/Interfaces/IMailConfigFactory.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace EOM.TSHotelManagement.Shared +namespace EOM.TSHotelManagement.Shared { public interface IMailConfigFactory { diff --git a/EOM.TSHotelManagement.Shared/Interfaces/LskyConfig.cs b/EOM.TSHotelManagement.Shared/Interfaces/LskyConfig.cs index 219396c4d7f7067127fff6f6a2ed7a00a4eada17..61ef6be3a325a7f1ec89f88f94be6150da3edfa3 100644 --- a/EOM.TSHotelManagement.Shared/Interfaces/LskyConfig.cs +++ b/EOM.TSHotelManagement.Shared/Interfaces/LskyConfig.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace EOM.TSHotelManagement.Shared +namespace EOM.TSHotelManagement.Shared { public class LskyConfig { diff --git a/EOM.TSHotelManagement.Shared/MailConfig.cs b/EOM.TSHotelManagement.Shared/MailConfig.cs index 4fa7523cbe9b5b278cd321422df3c74243d3b102..290e38c05f8fc99fa8f20fdd14c984241ac27c35 100644 --- a/EOM.TSHotelManagement.Shared/MailConfig.cs +++ b/EOM.TSHotelManagement.Shared/MailConfig.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace EOM.TSHotelManagement.Shared +namespace EOM.TSHotelManagement.Shared { public class MailConfig { diff --git a/EOM.TSHotelManagement.Web.sln b/EOM.TSHotelManagement.Web.sln index 1cc368dacf2452fd56827440d47d5fd9b6b2e39b..c293f21e1eb3d1d6ceda0bda3ec6cce162698ad3 100644 --- a/EOM.TSHotelManagement.Web.sln +++ b/EOM.TSHotelManagement.Web.sln @@ -15,6 +15,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EOM.TSHotelManagement.Commo EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EOM.TSHotelManagement.Shared", "EOM.TSHotelManagement.Shared\EOM.TSHotelManagement.Shared.csproj", "{1DC1D6E4-9FEB-4AD3-B1A4-0C20241C6D85}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EOM.TSHotelManagement.Migration", "EOM.TSHotelManagement.Migration\EOM.TSHotelManagement.Migration.csproj", "{A1A986E0-E59D-4913-B63E-D965453B8CC0}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -45,6 +47,10 @@ Global {1DC1D6E4-9FEB-4AD3-B1A4-0C20241C6D85}.Debug|Any CPU.Build.0 = Debug|Any CPU {1DC1D6E4-9FEB-4AD3-B1A4-0C20241C6D85}.Release|Any CPU.ActiveCfg = Release|Any CPU {1DC1D6E4-9FEB-4AD3-B1A4-0C20241C6D85}.Release|Any CPU.Build.0 = Release|Any CPU + {A1A986E0-E59D-4913-B63E-D965453B8CC0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A1A986E0-E59D-4913-B63E-D965453B8CC0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A1A986E0-E59D-4913-B63E-D965453B8CC0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A1A986E0-E59D-4913-B63E-D965453B8CC0}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/EOM.TSHotelManagement.WebApi/Controllers/Business/Asset/AssetController.cs b/EOM.TSHotelManagement.WebApi/Controllers/Business/Asset/AssetController.cs index 09f059f74ef87a467dc36040d8a8dcc7406e47b8..0022e1fb7a27331bba0f7b574034a648562a1427 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/Business/Asset/AssetController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/Business/Asset/AssetController.cs @@ -1,8 +1,6 @@ using EOM.TSHotelManagement.Application; using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; using Microsoft.AspNetCore.Mvc; -using System.Collections.Generic; namespace EOM.TSHotelManagement.WebApi.Controllers { @@ -52,7 +50,7 @@ namespace EOM.TSHotelManagement.WebApi.Controllers /// /// [HttpPost] - public BaseOutputDto UpdAssetInfo([FromBody]UpdateAssetInputDto asset) + public BaseOutputDto UpdAssetInfo([FromBody] UpdateAssetInputDto asset) { return assetService.UpdAssetInfo(asset); } @@ -63,7 +61,7 @@ namespace EOM.TSHotelManagement.WebApi.Controllers /// /// [HttpPost] - public BaseOutputDto DelAssetInfo([FromBody]DeleteAssetInputDto asset) + public BaseOutputDto DelAssetInfo([FromBody] DeleteAssetInputDto asset) { return assetService.DelAssetInfo(asset); } diff --git a/EOM.TSHotelManagement.WebApi/Controllers/Business/Customer/CustomerController.cs b/EOM.TSHotelManagement.WebApi/Controllers/Business/Customer/CustomerController.cs index e89d6eec2774b216d78e1ff07eeb6b7047329b66..b9a3e0566ed0b4d4e5db8232a736600a4e61b1d7 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/Business/Customer/CustomerController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/Business/Customer/CustomerController.cs @@ -64,7 +64,7 @@ namespace EOM.TSHotelManagement.WebApi.Controllers /// /// [HttpPost] - public BaseOutputDto UpdCustomerTypeByCustoNo([FromBody]UpdateCustomerInputDto updateCustomerInputDto) + public BaseOutputDto UpdCustomerTypeByCustoNo([FromBody] UpdateCustomerInputDto updateCustomerInputDto) { return customerService.UpdCustomerTypeByCustoNo(updateCustomerInputDto); } diff --git a/EOM.TSHotelManagement.WebApi/Controllers/Business/EnergyManagement/EnergyManagementController.cs b/EOM.TSHotelManagement.WebApi/Controllers/Business/EnergyManagement/EnergyManagementController.cs index e92dd002c37d119a6c882636db8eee244b478eef..2af8bad4c0435e3330e43f638b07dc2224436640 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/Business/EnergyManagement/EnergyManagementController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/Business/EnergyManagement/EnergyManagementController.cs @@ -1,9 +1,5 @@ -using EOM.TSHotelManagement.Application; -using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; +using EOM.TSHotelManagement.Common.Contract; using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; namespace EOM.TSHotelManagement.WebApi.Controllers { @@ -33,7 +29,7 @@ namespace EOM.TSHotelManagement.WebApi.Controllers /// Dto /// 符合条件的水电费信息列表 [HttpGet] - public ListOutputDto SelectEnergyManagementInfo([FromQuery]ReadEnergyManagementInputDto readEnergyManagementInputDto) + public ListOutputDto SelectEnergyManagementInfo([FromQuery] ReadEnergyManagementInputDto readEnergyManagementInputDto) { return this.hydroelectricPowerService.SelectEnergyManagementInfo(readEnergyManagementInputDto); } diff --git a/EOM.TSHotelManagement.WebApi/Controllers/Business/PromotionContent/FontsController.cs b/EOM.TSHotelManagement.WebApi/Controllers/Business/PromotionContent/FontsController.cs index f1bfc6b92b58e86c983afed4a3665f9acdbae1d9..b8123cda185cf0fdd50509943078ac30acc38376 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/Business/PromotionContent/FontsController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/Business/PromotionContent/FontsController.cs @@ -1,9 +1,6 @@ using EOM.TSHotelManagement.Application; using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; -using EOM.TSHotelManagement.Common.Util; using Microsoft.AspNetCore.Mvc; -using System.Collections.Generic; namespace EOM.TSHotelManagement.WebApi.Controllers { @@ -31,7 +28,7 @@ namespace EOM.TSHotelManagement.WebApi.Controllers /// /// [HttpGet] - public ListOutputDto SelectPromotionContentAll([FromQuery]ReadPromotionContentInputDto readPromotionContentInputDto) + public ListOutputDto SelectPromotionContentAll([FromQuery] ReadPromotionContentInputDto readPromotionContentInputDto) { return fontsService.SelectPromotionContentAll(readPromotionContentInputDto); } @@ -45,5 +42,38 @@ namespace EOM.TSHotelManagement.WebApi.Controllers { return fontsService.SelectPromotionContents(); } + + /// + /// 添加宣传联动内容 + /// + /// + /// + [HttpPost] + public BaseOutputDto AddPromotionContent([FromBody]CreatePromotionContentInputDto createPromotionContentInputDto) + { + return fontsService.AddPromotionContent(createPromotionContentInputDto); + } + + /// + /// 删除宣传联动内容 + /// + /// + /// + [HttpPost] + public BaseOutputDto DeletePromotionContent([FromBody] DeletePromotionContentInputDto deletePromotionContentInputDto) + { + return fontsService.DeletePromotionContent(deletePromotionContentInputDto); + } + + /// + /// 更新宣传联动内容 + /// + /// + /// + [HttpPost] + public BaseOutputDto UpdatePromotionContent([FromBody] UpdatePromotionContentInputDto updatePromotionContentInputDto) + { + return fontsService.UpdatePromotionContent(updatePromotionContentInputDto); + } } } diff --git a/EOM.TSHotelManagement.WebApi/Controllers/Business/Reser/ReserController.cs b/EOM.TSHotelManagement.WebApi/Controllers/Business/Reser/ReserController.cs index 59cb87fe3c1daa9db0a7478c287b94f2c9fc9905..f65a5fd182f589bdea2291e2df696625948bb752 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/Business/Reser/ReserController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/Business/Reser/ReserController.cs @@ -1,8 +1,6 @@ using EOM.TSHotelManagement.Application; using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; using Microsoft.AspNetCore.Mvc; -using System.Collections.Generic; namespace EOM.TSHotelManagement.WebApi.Controllers { diff --git a/EOM.TSHotelManagement.WebApi/Controllers/Business/Room/RoomController.cs b/EOM.TSHotelManagement.WebApi/Controllers/Business/Room/RoomController.cs index 740f78bb04b6b0ce04ccf78b2d56a5d81d6196d7..3ceba7ba29a5054a57a4c55d04afefc92c2e5072 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/Business/Room/RoomController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/Business/Room/RoomController.cs @@ -1,8 +1,6 @@ using EOM.TSHotelManagement.Application; -using EOM.TSHotelManagement.Common.Core; using EOM.TSHotelManagement.Common.Contract; using Microsoft.AspNetCore.Mvc; -using System.Collections.Generic; namespace EOM.TSHotelManagement.WebApi.Controllers { @@ -44,7 +42,7 @@ namespace EOM.TSHotelManagement.WebApi.Controllers /// /// [HttpGet] - public ListOutputDto SelectRoomAll([FromQuery]ReadRoomInputDto readRoomInputDto) + public ListOutputDto SelectRoomAll([FromQuery] ReadRoomInputDto readRoomInputDto) { return roomService.SelectRoomAll(readRoomInputDto); } diff --git a/EOM.TSHotelManagement.WebApi/Controllers/Business/Room/RoomTypeController.cs b/EOM.TSHotelManagement.WebApi/Controllers/Business/Room/RoomTypeController.cs index bbb3283c861a12f6c4e3d70afbc02f5430aaa2d3..a4a1e7c2cad56f636b857194d8e59b926dc55e64 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/Business/Room/RoomTypeController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/Business/Room/RoomTypeController.cs @@ -1,8 +1,6 @@ using EOM.TSHotelManagement.Application; -using EOM.TSHotelManagement.Common.Core; using EOM.TSHotelManagement.Common.Contract; using Microsoft.AspNetCore.Mvc; -using System.Collections.Generic; namespace EOM.TSHotelManagement.WebApi.Controllers { diff --git a/EOM.TSHotelManagement.WebApi/Controllers/Business/Sellthing/SellthingController.cs b/EOM.TSHotelManagement.WebApi/Controllers/Business/Sellthing/SellthingController.cs index f5652b0826ef357da816a078e32514f2db8d9693..94eceacba585f13acf3c177397ab5bfe95091b5b 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/Business/Sellthing/SellthingController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/Business/Sellthing/SellthingController.cs @@ -1,8 +1,6 @@ using EOM.TSHotelManagement.Application; -using EOM.TSHotelManagement.Common.Core; using EOM.TSHotelManagement.Common.Contract; using Microsoft.AspNetCore.Mvc; -using System.Collections.Generic; namespace EOM.TSHotelManagement.WebApi.Controllers { diff --git a/EOM.TSHotelManagement.WebApi/Controllers/Business/Spend/SpendController.cs b/EOM.TSHotelManagement.WebApi/Controllers/Business/Spend/SpendController.cs index f7c4ced04a78c2b337376fd2599017be89f749d1..a68c3220dad3c24467c807acbf7d9127b1d14db5 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/Business/Spend/SpendController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/Business/Spend/SpendController.cs @@ -1,11 +1,6 @@ using EOM.TSHotelManagement.Application; -using EOM.TSHotelManagement.Common.Core; using EOM.TSHotelManagement.Common.Contract; using Microsoft.AspNetCore.Mvc; -using System.Collections.Generic; -using System; -using EOM.TSHotelManagement.Common.Util; -using Microsoft.AspNetCore.Components.Forms; namespace EOM.TSHotelManagement.WebApi.Controllers { @@ -70,7 +65,7 @@ namespace EOM.TSHotelManagement.WebApi.Controllers /// /// [HttpGet] - public ListOutputDto SelectSpendInfoAll([FromQuery]ReadSpendInputDto readSpendInputDto) + public ListOutputDto SelectSpendInfoAll([FromQuery] ReadSpendInputDto readSpendInputDto) { return spendService.SelectSpendInfoAll(readSpendInputDto); } diff --git a/EOM.TSHotelManagement.WebApi/Controllers/Employee/Check/EmployeeCheckController.cs b/EOM.TSHotelManagement.WebApi/Controllers/Employee/Check/EmployeeCheckController.cs index 97c491d0f1d67d39b91242dc05d5719751c7c2cb..6686a293bed646268796b13878486f9a67715652 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/Employee/Check/EmployeeCheckController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/Employee/Check/EmployeeCheckController.cs @@ -1,8 +1,6 @@ using EOM.TSHotelManagement.Application; -using EOM.TSHotelManagement.Common.Core; using EOM.TSHotelManagement.Common.Contract; using Microsoft.AspNetCore.Mvc; -using System.Collections.Generic; namespace EOM.TSHotelManagement.WebApi.Controllers { diff --git a/EOM.TSHotelManagement.WebApi/Controllers/Employee/EmployeeController.cs b/EOM.TSHotelManagement.WebApi/Controllers/Employee/EmployeeController.cs index 4bbeb0adee5a91d4b1e1d0195cf08f91e8f4f11d..87fc04be51726077d24b80a9c4b1e6d14339a80a 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/Employee/EmployeeController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/Employee/EmployeeController.cs @@ -1,10 +1,7 @@ using EOM.TSHotelManagement.Application; -using EOM.TSHotelManagement.Common.Core; using EOM.TSHotelManagement.Common.Contract; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using System.Collections.Generic; -using SqlSugar.DistributedSystem.Snowflake; namespace EOM.TSHotelManagement.WebApi.Controllers { diff --git a/EOM.TSHotelManagement.WebApi/Controllers/Employee/History/EmployeeHistoryController.cs b/EOM.TSHotelManagement.WebApi/Controllers/Employee/History/EmployeeHistoryController.cs index 1278dba05e0230a457f97cdf1ff8ad378fbc6d4d..af883fa35239342ce634b9cd78f56e63a78c73bc 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/Employee/History/EmployeeHistoryController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/Employee/History/EmployeeHistoryController.cs @@ -1,8 +1,6 @@ using EOM.TSHotelManagement.Application; -using EOM.TSHotelManagement.Common.Core; using EOM.TSHotelManagement.Common.Contract; using Microsoft.AspNetCore.Mvc; -using System.Collections.Generic; namespace EOM.TSHotelManagement.WebApi.Controllers { diff --git a/EOM.TSHotelManagement.WebApi/Controllers/Employee/Photo/EmployeePhotoController.cs b/EOM.TSHotelManagement.WebApi/Controllers/Employee/Photo/EmployeePhotoController.cs index c5ac2808d6d7ab77bc319598db459482c5246ecf..04656961c83b553b3a548be8b0e07e024a140271 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/Employee/Photo/EmployeePhotoController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/Employee/Photo/EmployeePhotoController.cs @@ -1,8 +1,7 @@ using EOM.TSHotelManagement.Application; -using EOM.TSHotelManagement.Common.Core; using EOM.TSHotelManagement.Common.Contract; -using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; namespace EOM.TSHotelManagement.WebApi.Controllers { @@ -38,7 +37,7 @@ namespace EOM.TSHotelManagement.WebApi.Controllers [HttpPost] public SingleOutputDto InsertWorkerPhoto([FromForm] CreateEmployeePhotoInputDto inputDto, IFormFile file) { - return workerPicService.InsertWorkerPhoto(inputDto,file); + return workerPicService.InsertWorkerPhoto(inputDto, file); } /// diff --git a/EOM.TSHotelManagement.WebApi/Controllers/Employee/RewardPunishment/RewardPunishmentController.cs b/EOM.TSHotelManagement.WebApi/Controllers/Employee/RewardPunishment/RewardPunishmentController.cs index b5810ab8827a5b7d219dbd3194a0ce6f7f3694ec..4148dca9cb1255f8724bcdfdb40aa0f31b9f396b 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/Employee/RewardPunishment/RewardPunishmentController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/Employee/RewardPunishment/RewardPunishmentController.cs @@ -1,8 +1,6 @@ using EOM.TSHotelManagement.Application; using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; using Microsoft.AspNetCore.Mvc; -using System.Collections.Generic; namespace EOM.TSHotelManagement.WebApi.Controllers { diff --git a/EOM.TSHotelManagement.WebApi/Controllers/Sys/NavBar/NavBarController.cs b/EOM.TSHotelManagement.WebApi/Controllers/Sys/NavBar/NavBarController.cs index 613d7fa89d141e457be81c7364cb06c625969476..6fdefc30d3e1f4e0a539af65538b575295e03b0d 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/Sys/NavBar/NavBarController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/Sys/NavBar/NavBarController.cs @@ -1,8 +1,6 @@ using EOM.TSHotelManagement.Application; using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; using Microsoft.AspNetCore.Mvc; -using System.Collections.Generic; namespace EOM.TSHotelManagement.WebApi.Controllers { diff --git a/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/Administrator/AdminController.cs b/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/Administrator/AdminController.cs index aa4e9fc86eb1471fe44c1374f3dc2647404d7cd6..b4d143bddf8c5896e75b5ebb03b109ab767f85b5 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/Administrator/AdminController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/Administrator/AdminController.cs @@ -1,11 +1,7 @@ using EOM.TSHotelManagement.Application; using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; -using EOM.TSHotelManagement.Common.Util; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; namespace EOM.TSHotelManagement.WebApi.Controllers { @@ -144,7 +140,7 @@ namespace EOM.TSHotelManagement.WebApi.Controllers /// /// [HttpPost] - public BaseOutputDto AddAdminType([FromBody]CreateAdministratorTypeInputDto createAdministratorTypeInputDto) + public BaseOutputDto AddAdminType([FromBody] CreateAdministratorTypeInputDto createAdministratorTypeInputDto) { return adminService.AddAdminType(createAdministratorTypeInputDto); } diff --git a/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/Base/BaseController.cs b/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/Base/BaseController.cs index 392869afa3f57334e3dba85971dd06841cad36cd..cf5610f3494b7a71f8d5204b33a22064a9105da6 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/Base/BaseController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/Base/BaseController.cs @@ -1,11 +1,6 @@ using EOM.TSHotelManagement.Application; -using EOM.TSHotelManagement.Common; using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; namespace EOM.TSHotelManagement.WebApi.Controllers { @@ -167,7 +162,7 @@ namespace EOM.TSHotelManagement.WebApi.Controllers } [HttpGet] - public ListOutputDto SelectDeptAll([FromQuery]ReadDepartmentInputDto readDepartmentInputDto) + public ListOutputDto SelectDeptAll([FromQuery] ReadDepartmentInputDto readDepartmentInputDto) { return baseService.SelectDeptAll(readDepartmentInputDto); } @@ -207,7 +202,7 @@ namespace EOM.TSHotelManagement.WebApi.Controllers } [HttpGet] - public ListOutputDto SelectCustoTypeAll([FromQuery]ReadCustoTypeInputDto readCustoTypeInputDto) + public ListOutputDto SelectCustoTypeAll([FromQuery] ReadCustoTypeInputDto readCustoTypeInputDto) { return baseService.SelectCustoTypeAll(readCustoTypeInputDto); } @@ -247,7 +242,7 @@ namespace EOM.TSHotelManagement.WebApi.Controllers } [HttpGet] - public ListOutputDto SelectPassPortTypeAll([FromQuery]ReadPassportTypeInputDto readPassportTypeInputDto) + public ListOutputDto SelectPassPortTypeAll([FromQuery] ReadPassportTypeInputDto readPassportTypeInputDto) { return baseService.SelectPassPortTypeAll(readPassportTypeInputDto); } @@ -287,7 +282,7 @@ namespace EOM.TSHotelManagement.WebApi.Controllers } [HttpGet] - public ListOutputDto SelectRewardPunishmentTypeAll([FromQuery]ReadRewardPunishmentTypeInputDto readRewardPunishmentTypeInputDto) + public ListOutputDto SelectRewardPunishmentTypeAll([FromQuery] ReadRewardPunishmentTypeInputDto readRewardPunishmentTypeInputDto) { return baseService.SelectRewardPunishmentTypeAll(readRewardPunishmentTypeInputDto); } @@ -327,5 +322,52 @@ namespace EOM.TSHotelManagement.WebApi.Controllers } #endregion + + #region 公告类型模块 + + /// + /// 查询所有公告类型 + /// + /// + [HttpGet] + public ListOutputDto SelectAppointmentNoticeTypeAll([FromQuery] ReadAppointmentNoticeTypeInputDto readAppointmentNoticeTypeInputDto) + { + return baseService.SelectAppointmentNoticeTypeAll(readAppointmentNoticeTypeInputDto); + } + + /// + /// 添加公告类型 + /// + /// + /// + [HttpPost] + public BaseOutputDto CreateAppointmentNoticeType([FromBody] CreateAppointmentNoticeTypeInputDto createAppointmentNoticeTypeInputDto) + { + return baseService.CreateAppointmentNoticeType(createAppointmentNoticeTypeInputDto); + } + + /// + /// 删除公告类型 + /// + /// + /// + [HttpPost] + public BaseOutputDto DeleteAppointmentNoticeType([FromBody] DeleteAppointmentNoticeTypeInputDto deleteAppointmentNoticeTypeInputDto) + { + return baseService.DeleteAppointmentNoticeType(deleteAppointmentNoticeTypeInputDto); + } + + /// + /// 更新公告类型 + /// + /// + /// + [HttpPost] + public BaseOutputDto UpdateAppointmentNoticeType([FromBody] UpdateAppointmentNoticeTypeInputDto updateAppointmentNoticeTypeInputDto) + { + return baseService.UpdateAppointmentNoticeType(updateAppointmentNoticeTypeInputDto); + } + + #endregion } } diff --git a/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/Menu/MenuController.cs b/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/Menu/MenuController.cs index 15f87912dc23c8cf6a70f4c3f7781a3290a96ceb..55f754436b32bfeb46029411905fc4e80b838abb 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/Menu/MenuController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/Menu/MenuController.cs @@ -1,8 +1,6 @@ using EOM.TSHotelManagement.Application; using EOM.TSHotelManagement.Common.Contract; using EOM.TSHotelManagement.Common.Core; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; @@ -35,7 +33,7 @@ namespace EOM.TSHotelManagement.WebApi.Controllers /// /// [HttpPost] - public List BuildMenuAll([FromBody]BaseInputDto baseInputDto) + public List BuildMenuAll([FromBody] BaseInputDto baseInputDto) { return menuService.BuildMenuAll(baseInputDto); } @@ -46,7 +44,7 @@ namespace EOM.TSHotelManagement.WebApi.Controllers /// /// [HttpPost] - public BaseOutputDto InsertMenu([FromBody]CreateMenuInputDto menu) + public BaseOutputDto InsertMenu([FromBody] CreateMenuInputDto menu) { return menuService.InsertMenu(menu); } diff --git a/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/Notice/NoticeController.cs b/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/Notice/NoticeController.cs index 6f2711d43f1168fa437bd35ec80f3c459a544882..ed3187404ae5ab2fb2082caaf5e2fde765354172 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/Notice/NoticeController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/Notice/NoticeController.cs @@ -1,8 +1,6 @@ -using EOM.TSHotelManagement.Common.Core; +using EOM.TSHotelManagement.Application; using EOM.TSHotelManagement.Common.Contract; using Microsoft.AspNetCore.Mvc; -using System.Collections.Generic; -using EOM.TSHotelManagement.Application; namespace EOM.TSHotelManagement.WebApi.Controllers { diff --git a/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/Role/RoleController.cs b/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/Role/RoleController.cs index c1562f6d7f8290df7c88921c9a3879bca11f9a20..17e3989bdda29a19de289749b3d5191c91b8e64e 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/Role/RoleController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/Role/RoleController.cs @@ -1,6 +1,5 @@ using EOM.TSHotelManagement.Application; using EOM.TSHotelManagement.Common.Contract; -using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace EOM.TSHotelManagement.WebApi.Controllers @@ -20,7 +19,7 @@ namespace EOM.TSHotelManagement.WebApi.Controllers /// /// [HttpGet] - public ListOutputDto SelectRoleList([FromQuery]ReadRoleInputDto readRoleInputDto) + public ListOutputDto SelectRoleList([FromQuery] ReadRoleInputDto readRoleInputDto) { return _roleAppService.SelectRoleList(readRoleInputDto); } @@ -31,7 +30,7 @@ namespace EOM.TSHotelManagement.WebApi.Controllers /// /// [HttpPost] - public BaseOutputDto InsertRole([FromBody]CreateRoleInputDto createRoleInputDto) + public BaseOutputDto InsertRole([FromBody] CreateRoleInputDto createRoleInputDto) { return _roleAppService.InsertRole(createRoleInputDto); } diff --git a/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/SupervisionStatistics/SupervisionStatisticsController.cs b/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/SupervisionStatistics/SupervisionStatisticsController.cs index 19db8ca30be50b69031f08139019ef81311946a8..00e4808cb02af0722847de916f19b440e2b1c624 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/SupervisionStatistics/SupervisionStatisticsController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/SupervisionStatistics/SupervisionStatisticsController.cs @@ -1,8 +1,6 @@ -using EOM.TSHotelManagement.Common.Core; +using EOM.TSHotelManagement.Application; using EOM.TSHotelManagement.Common.Contract; using Microsoft.AspNetCore.Mvc; -using System.Collections.Generic; -using EOM.TSHotelManagement.Application; namespace EOM.TSHotelManagement.WebApi.Controllers { diff --git a/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/VipRule/VipRuleController.cs b/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/VipRule/VipRuleController.cs index 31ce6f68381748469097cd3c35d03f727da66e4f..0d8f6003c062dd707ea61ef6a8811071bc07161a 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/VipRule/VipRuleController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/SystemManagement/VipRule/VipRuleController.cs @@ -1,8 +1,6 @@ -using EOM.TSHotelManagement.Common.Core; +using EOM.TSHotelManagement.Application; using EOM.TSHotelManagement.Common.Contract; using Microsoft.AspNetCore.Mvc; -using System.Collections.Generic; -using EOM.TSHotelManagement.Application; namespace EOM.TSHotelManagement.WebApi.Controllers { diff --git a/EOM.TSHotelManagement.WebApi/Controllers/Util/UtilityController.cs b/EOM.TSHotelManagement.WebApi/Controllers/Util/UtilityController.cs index 181e58ab2f226a866cdb57959d1d674295772f41..8b5a64bbc9740edead4efa7d6ccb709ba00d99be 100644 --- a/EOM.TSHotelManagement.WebApi/Controllers/Util/UtilityController.cs +++ b/EOM.TSHotelManagement.WebApi/Controllers/Util/UtilityController.cs @@ -1,6 +1,5 @@ using EOM.TSHotelManagement.Application; using EOM.TSHotelManagement.Common.Contract; -using EOM.TSHotelManagement.Common.Core; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; @@ -67,7 +66,7 @@ namespace EOM.TSHotelManagement.WebApi.Controllers /// /// [HttpPost] - public BaseOutputDto DeleteOperationlogByRange([FromBody]ReadOperationLogInputDto readOperationLogInputDto) + public BaseOutputDto DeleteOperationlogByRange([FromBody] ReadOperationLogInputDto readOperationLogInputDto) { return utilService.DeleteOperationlogByRange(readOperationLogInputDto); } diff --git a/EOM.TSHotelManagement.WebApi/EOM.TSHotelManagement.WebApi.csproj b/EOM.TSHotelManagement.WebApi/EOM.TSHotelManagement.WebApi.csproj index 8f65b1e234df3675440b45d4877b2b98677b9274..cfb7fb3b588f6089029a2f7cf31cdac3edb1bcad 100644 --- a/EOM.TSHotelManagement.WebApi/EOM.TSHotelManagement.WebApi.csproj +++ b/EOM.TSHotelManagement.WebApi/EOM.TSHotelManagement.WebApi.csproj @@ -30,6 +30,7 @@ + diff --git a/EOM.TSHotelManagement.WebApi/Factory/LskyConfigFactory.cs b/EOM.TSHotelManagement.WebApi/Factory/LskyConfigFactory.cs index fed78747caeb88d90ceb6230e436f67b4409b6a8..794efc5946f9c39b31a66357dc5b4b3fee3de4e5 100644 --- a/EOM.TSHotelManagement.WebApi/Factory/LskyConfigFactory.cs +++ b/EOM.TSHotelManagement.WebApi/Factory/LskyConfigFactory.cs @@ -3,7 +3,7 @@ using Microsoft.Extensions.Configuration; namespace EOM.TSHotelManagement.WebApi { - public class LskyConfigFactory:ILskyConfigFactory + public class LskyConfigFactory : ILskyConfigFactory { private readonly IConfiguration _configuration; diff --git a/EOM.TSHotelManagement.WebApi/Factory/SqlSugarClientFactory.cs b/EOM.TSHotelManagement.WebApi/Factory/SqlSugarClientFactory.cs index 206ada512393139591c8e88512b93c05edade6d7..f236486f9e6a522d7862aa7495f3566c4a245089 100644 --- a/EOM.TSHotelManagement.WebApi/Factory/SqlSugarClientFactory.cs +++ b/EOM.TSHotelManagement.WebApi/Factory/SqlSugarClientFactory.cs @@ -57,7 +57,7 @@ namespace EOM.TSHotelManagement.WebApi return new SqlSugarClient(config); } - private DbType GetDbType(string dbName) + public static DbType GetDbType(string dbName) { return dbName switch { diff --git a/EOM.TSHotelManagement.WebApi/Filter/RequestLoggingMiddleware.cs b/EOM.TSHotelManagement.WebApi/Filter/RequestLoggingMiddleware.cs index 352e7651a274a6ada798bec31f256d0fae0e34d1..76ac7b1aaab2ce27405cc0efeca1de8c9000b958 100644 --- a/EOM.TSHotelManagement.WebApi/Filter/RequestLoggingMiddleware.cs +++ b/EOM.TSHotelManagement.WebApi/Filter/RequestLoggingMiddleware.cs @@ -1,16 +1,13 @@ -using System; -using System.Diagnostics; -using System.IO; -using System.Text; -using System.Threading.Tasks; -using EOM.TSHotelManagement.Common.Core; +using EOM.TSHotelManagement.Common.Core; using EOM.TSHotelManagement.EntityFramework; -using EOM.TSHotelManagement.Shared; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; -using SqlSugar; +using System; +using System.Diagnostics; +using System.IO; +using System.Threading.Tasks; public class RequestLoggingMiddleware { diff --git a/EOM.TSHotelManagement.WebApi/MigrationConfig/InitializeConfig.cs b/EOM.TSHotelManagement.WebApi/MigrationConfig/InitializeConfig.cs new file mode 100644 index 0000000000000000000000000000000000000000..07d9cd01065f912d3ef8c502d0a21ef3e1efd3b1 --- /dev/null +++ b/EOM.TSHotelManagement.WebApi/MigrationConfig/InitializeConfig.cs @@ -0,0 +1,175 @@ +using EOM.TSHotelManagement.Common.Core; +using EOM.TSHotelManagement.Migration; +using EOM.TSHotelManagement.Shared; +using jvncorelib.EncryptorLib; +using Microsoft.AspNetCore.Builder; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; +using MySqlConnector; +using SqlSugar; +using System; +using System.Collections.Generic; +using System.Linq; + +namespace EOM.TSHotelManagement.WebApi +{ + public class InitializeConfig + { + #region initlize database + public void InitializeDatabase(IApplicationBuilder app) + { + using var scope = app.ApplicationServices.CreateScope(); + var logger = scope.ServiceProvider.GetRequiredService>(); + var config = scope.ServiceProvider.GetRequiredService(); + var factory = scope.ServiceProvider.GetRequiredService(); + + try + { + var dbName = config["DefaultDatabase"] ?? "MariaDB"; + + using (var masterDb = CreateMasterConnection(config, dbName)) + { + var dbSettings = GetDatabaseSettings(config, dbName); + if (!masterDb.DbMaintenance.GetDataBaseList().Contains(dbSettings.Database)) + { + Console.WriteLine($"Creating database {dbSettings.Database}..."); + masterDb.DbMaintenance.CreateDatabase(dbSettings.Database); + Console.WriteLine("Database created successfully"); + } + } + + using (var db = factory.CreateClient(dbName)) + { + Console.WriteLine("Initializing database schema..."); + + var entityBuilder = new EntityBuilder(); + + var dbTables = db.DbMaintenance.GetTableInfoList() + .Select(a => a.Name.Trim().ToLower()) + .ToList(); + + var initializeTables = entityBuilder.EntityTypes + .Select(a => a.Name.Trim().ToLower()) + .ToList(); + + var needCreateTable = initializeTables + .Except(dbTables, StringComparer.OrdinalIgnoreCase) + .ToList(); + + var needCreateTableTypes = needCreateTable + .Select(tableName => entityBuilder.EntityTypes.SingleOrDefault(type => type.Name.Trim().Equals(tableName, StringComparison.OrdinalIgnoreCase))) + .Where(type => type != null) + .ToArray(); + + db.CodeFirst.InitTables(needCreateTableTypes); + + Console.WriteLine("Database schema initialized"); + + SeedInitialData(db); + } + } + catch (Exception ex) + { + Console.WriteLine($"Database initialization failed:{ex.Message}"); + throw; + } + } + + private (string Database, DbType DbType) GetDatabaseSettings(IConfiguration config, string dbName) + { + var dbType = SqlSugarClientFactory.GetDbType(dbName); + var connectionString = GetConnectionString(config, dbName); + var builder = new MySqlConnectionStringBuilder(connectionString); + return (builder.Database, dbType); + } + + private SqlSugarClient CreateMasterConnection(IConfiguration config, string dbName) + { + var connectionString = GetConnectionString(config, dbName); + var builder = new MySqlConnectionStringBuilder(connectionString) + { + Database = null + }; + + var dbType = SqlSugarClientFactory.GetDbType(dbName); + + return new SqlSugarClient(new ConnectionConfig + { + ConnectionString = builder.ConnectionString, + DbType = dbType, + IsAutoCloseConnection = true + }); + } + + private string GetConnectionString(IConfiguration config, string dbName) + { + if (Environment.GetEnvironmentVariable("DOCKER_ENV") != null) + { + return Environment.GetEnvironmentVariable($"{dbName}ConnectStr") + ?? throw new ArgumentException($"Environment variable {dbName}ConnectStr not found"); + } + return config.GetConnectionString($"{dbName}ConnectStr"); + } + + private void SeedInitialData(ISqlSugarClient db) + { + Console.WriteLine("Initializing database data..."); + + try + { + var entityBuilder = new EntityBuilder(); + var entitiesToAdd = new List(); + + foreach (var entityData in entityBuilder.GetEntityDatas()) + { + switch (entityData) + { + case Menu menu when db.Queryable().Any(a => a.Key == menu.Key): + continue; + + case Administrator admin when db.Queryable().Any(a => admin.Account == admin.Account): + continue; + + case AdministratorType adminType when db.Queryable().Any(a => adminType.TypeName == adminType.TypeName): + continue; + + case NavBar navBar when db.Queryable().Any(a => navBar.NavigationBarName == navBar.NavigationBarName): + continue; + + case PromotionContent promoContent when db.Queryable().Any(a => promoContent.PromotionContentMessage == promoContent.PromotionContentMessage): + continue; + + case SystemInformation sysInfo when db.Queryable().Any(a => sysInfo.UrlNumber == sysInfo.UrlNumber): + continue; + } + entitiesToAdd.Add(entityData); + } + + if (entitiesToAdd.Count > 0) + { + foreach (var data in entitiesToAdd) + { + db.InsertableByObject(data).ExecuteCommand(); + } + Console.WriteLine($"Adding {entitiesToAdd.Count} initial data records"); + } + else + { + Console.WriteLine("No initial data to add"); + } + } + catch (Exception ex) + { + Console.WriteLine($"Database data initialization failed: {ex.Message}"); + throw; + } + finally + { + Console.WriteLine("Database data initialization completed"); + Console.WriteLine($"administrator account:admin\nadministrator password:admin"); + } + } + #endregion + } +} diff --git a/EOM.TSHotelManagement.WebApi/Startup.cs b/EOM.TSHotelManagement.WebApi/Startup.cs index 43d43f1ab35da79f86d0a8d20a40d51fecf83288..0f58de68eb55d2c5d7acbeea805eb57316c07808 100644 --- a/EOM.TSHotelManagement.WebApi/Startup.cs +++ b/EOM.TSHotelManagement.WebApi/Startup.cs @@ -1,4 +1,5 @@ using Autofac; +using EOM.TSHotelManagement.Common.Core; using EOM.TSHotelManagement.Common.Util; using EOM.TSHotelManagement.EntityFramework; using EOM.TSHotelManagement.Shared; @@ -11,8 +12,10 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; +using Microsoft.Extensions.Logging; using Microsoft.IdentityModel.Tokens; using Microsoft.OpenApi.Models; +using MySqlConnector; using Newtonsoft.Json.Serialization; using SqlSugar; using System; @@ -146,6 +149,8 @@ namespace EOM.TSHotelManagement.WebApi // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { + new InitializeConfig().InitializeDatabase(app); + if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); @@ -227,5 +232,7 @@ namespace EOM.TSHotelManagement.WebApi } #endregion } + + } } diff --git "a/\346\225\260\346\215\256\345\272\223\350\204\232\346\234\254/MariaDB\347\211\210\346\234\254/MDB_tshotel_script_data.sql" "b/\346\225\260\346\215\256\345\272\223\350\204\232\346\234\254/MariaDB\347\211\210\346\234\254/MDB_tshotel_script_data.sql" new file mode 100644 index 0000000000000000000000000000000000000000..1c1b51f660c6b7232a45a56097cf059029db2706 --- /dev/null +++ "b/\346\225\260\346\215\256\345\272\223\350\204\232\346\234\254/MariaDB\347\211\210\346\234\254/MDB_tshotel_script_data.sql" @@ -0,0 +1,4533 @@ +INSERT INTO `administrator` (`id`, `admin_number`, `admin_account`, `admin_password`, `admin_type`, `admin_name`, `is_admin`, `delete_mk`, `datains_usr`, `datains_date`, `datachg_usr`, `datachg_date`) VALUES (1, '1263785187301658678', 'admin', 'clUKFMeIUWp6YflZweR0Cw==·#c0fbb?;*$>#;^b%$?>#%%#;^b%$?>#%%#;^b%$?>#%%#;^b%$?>#%%