XH.LAB.UTILS 1.0.41.19

There is a newer version of this package available.
See the version list below for details.
dotnet add package XH.LAB.UTILS --version 1.0.41.19
                    
NuGet\Install-Package XH.LAB.UTILS -Version 1.0.41.19
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="XH.LAB.UTILS" Version="1.0.41.19" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="XH.LAB.UTILS" Version="1.0.41.19" />
                    
Directory.Packages.props
<PackageReference Include="XH.LAB.UTILS" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add XH.LAB.UTILS --version 1.0.41.19
                    
#r "nuget: XH.LAB.UTILS, 1.0.41.19"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=XH.LAB.UTILS&version=1.0.41.19
                    
Install XH.LAB.UTILS as a Cake Addin
#tool nuget:?package=XH.LAB.UTILS&version=1.0.41.19
                    
Install XH.LAB.UTILS as a Cake Tool

XH.LAB.UTILS

介绍

XH.LAB通用方法库

  • PathCombine方法优化,兼容了原来系统的Path Combine因为第二个参数前有/导致无法正常拼接路径的问题

  • 引用公共组件后,业务代码需做一下相应修改:

  • 1、AutofacModuleRegister类增加一下代码,注册依赖注入

    //文件上传 builder.RegisterType<UploadFileService>().As<IUploadFileService>().InstancePerLifetimeScope() .EnableInterfaceInterceptors()//启用拦截器 .InterceptedBy(interceptType.ToArray());

    //权限服务 builder.RegisterType<AuthorityService>().As<IAuthorityService>().InstancePerLifetimeScope() .EnableInterfaceInterceptors()//启用拦截器 .InterceptedBy(interceptType.ToArray());

  • 2、SugarDbContext_Base类(也有其它命名,总之是SugarUnitOfWork的继承类)更改基类,如:

    public class SugarDbContext_Base : SugarUnitOfWork   
    
    更改为:
    
    public class SugarDbContext_Base : SugarDbContext_Base_Utils
    
  • 3、Program.cs 增加语句 //启用全程序集扫描 AppSettingsProvider.ContextScanAll = true;

  • 4、删除或修改本地重名模型、更新引用

  • IAuthorityService相关服务功能介绍

  • 1、 方法 GetUserMenuList 用于获取用户的岗位权限许可的功能菜单列表(或按钮列表,权限类列表)

  • 2、 方法 CheckUserMenuPermission 用于判断用户在具体条件下(医院、科室、专业)是否存在某一权限(页面/按钮/权限类),常用于操作权限校验

  • 3、 方法 GetUserPermissionPgroup 用于获取用户某一权限(页面/按钮/权限类)下的专业组列表,返回结果包含所有状态的专业组,业务代码需要做无效过滤

  • 4、 方法 GetUserPermissionLab 用于获取用户某一权限(页面/按钮/权限类)下的科室列表,返回结果包含所有状态的科室

  • 6、 方法 GetAreaGroupTree 用于按条件查询权限范围的管理专业组-检验专业组树(tree是以树结构多层节点返回,line是相同对象以平铺列表返回),各系统使用此方法重构专业组树

  • 7、 方法 GetAreaLabGroupTree 按条件查询权限范围的科室/管理专业组-检验专业组树(tree是以树结构多层节点返回,line是相同对象以平铺列表返回),树顶部可带有科室节点,各系统使用此方法重构专业组树

  • 8、 方法 GetAreaGroupDropDownList 按条件查询权限范围的院区-检验专业组两层下拉列表,各系统使用此方法重构专业组树下拉列表

  • 5、增加2个中间件

  • 1、LabExceptionMiddleware:异常日志记录中间件 Program.cs里用法:全局异常中间件app.UseMiddleware<LabExceptionMiddleware>();
    **原来的是app.UseMiddleware<GlobalExceptionMiddleware>(); **

  • 2、LabTimeWatchMiddleware:超时长打印日志中间件 超时长打印 默认的计数是超500ms打印,如需修改,在任一地方调用LabTimeWatchMiddleware.SetSpanTimeWarnLine Program.cs里用法:app.UseMiddleware<TraceResposeHeadMiddleware>();app.UseMiddleware<LabTimeWatchMiddleware>(); 日志会在接口超过设置的预警毫秒数时打印出 【接口超时阀值预警】 关键字,这样可以时不时定位下现场哪个接口存在性能问题

  • 6、修复下entity代码

  • 7、1.0.30 ⇒ 上次访问记录增加科室、院区id

  • 8、1.0.35 ⇒ 增加添加一系列枚举工具方法

  • 9、1.0.37 ⇒ 1)增加科室病区专业组树接口IAuthorityService.GetLabAreaGroupTree 2)支持模块ID(如“H98”)通配模块全部权限 3)支持返回模块全部带XhDict特性的字典,支持IsIgnore跳过字典项

  • 10、1.0.37.6 ⇒ 枚举工具方法增加Fill方法(用于枚举输出(通用名.key)、value)和FillByID方法(用于通过枚举的ID,转换并输出(通用名.key)、value)

  • 11、1.0.37.8 ⇒ 增加上传返回文件完整预览地址及PDF封面Base64

  • 11、1.0.38.2 ⇒ 更新公司框架

  • 12、1.0.38.3 ⇒ 科室下增加检验专业组节点

  • 13、1.0.38.4 ⇒ 增加上传文件增加原始文件及预览等字段

  • 14、1.0.38.5 ⇒ 去除OFFICE复杂操作,解耦.后续office操作慢慢从公共库移除,留下DTO跟ENTITY

  • 15、1.0.38.6 ⇒ 升级.net库为3.4.30版本

  • 16、1.0.38.7 ⇒ 修复水印报错问题

  • 17、1.0.38.8 ⇒ 公司框架回退至 3.4.15

  • 18、1.0.38.9-pre1 ⇒ 公司框架切换至 3.4.22

  • 19、1.0.39 ⇒ SqlSugar单独升级到5.1.4.162

  • 20、1.0.39.1 ⇒ 添加页眉页脚代码115代理

  • 21、1.0.40 ⇒ 增加资源代码中间件

  • 22、1.0.40.1 ⇒ 增加清单的公共方法和排序的公共方法

  • 23、1.0.40.2 ⇒ AddVisLocation新增当前模块访问记录3个入参转成可空类型

  • 24、1.0.40.5 ⇒ 增加接口:按条件查询权限范围的院区列表

  • 24、1.0.40.6 ⇒ 设备请求资源最长时间默认为10分钟

  • 25、1.0.40.7 ⇒ 增加接口:按条件查询权限范围的用户树(格式为:科室/管理专业组-检验专业组-用户)

  • 26、1.0.40.8 ⇒ 检验专业组树节点管理专业组无效时,也放在科室节点下

  • 27、1.0.40.9 ⇒ 文件上传增加获取PDF总数字段及请求条件

  • 28、1.0.40.10 ⇒ 异常中间件添加异常处理分支,支持鉴权异常返回401、业务异常(BIZ)返回200、其他异常返回500响应、业务系统中尽可能暴露明确异常

  • 29、1.0.40.11 ⇒ 调整清单功能的GetTemplateList接口、补充OfficeFlag入参

  • 30、1.0.40.13 ⇒ 专业组树增加SOURCE_PATH业务主键路径字段_

  • 31、1.0.40.14 ⇒ 更新框架组的依赖版本为6.24.8

  • 32、1.0.40.15 ⇒ 因业务系统依赖easyCache,故框架组的依赖版本降低为6.24.7(6.24.8以移除easyCache)

  • 33、1.0.40.16 ⇒ 补充H115通用接口GetServiceAndCallBackUrl

  • 34、1.0.40.19 ⇒ 专业组树方法排除外送专业组

  • 35、1.0.40.20 ⇒ 增加生安登录选择机构、科室、备案实验室列表接口

  • 36、1.0.40.21 ⇒ 增加树节点类型等

  • 37、1.0.40.22 ⇒ 小注释

  • 38、1.0.40.23 ⇒ 增加公共树服务、接口及生安相关实体

  • 39、1.0.40.24 ⇒ Utility升级到6.24.13 用到redis模块需自行更改

  • 40、1.0.40.27 ⇒ 中间版本

  • 41、1.0.40.28 ⇒ Utility退回到6.24.7 优化公共树服务

  • 42、1.0.40.29 ⇒ 补充yarp反向代理中间件拓展方法 AddCustomReverseProxy()

  • 43、1.0.40.30 ⇒ 优化树的计数

  • 44、1.0.40.31 ⇒ 实现编号Lab_A、Lab_B的公共方法,增加规评方案实体与dto

  • 45、1.0.40.32 ⇒ 增加自动去重树节点计数方法RefreshTreeUnique

  • 46、1.0.40.35 ⇒ 返回生安登录选择机构、科室、备案实验室列表各级增加机构ID、科室ID

  • 47、1.0.40.36 ⇒ 备案实验室树节点名称取CNAME

  • 48、1.0.40.37 ⇒ 登录入口选择方法GetLogonHospitalLabList的备案实验室名称取CNAME

  • 49、1.0.40.39 ⇒ 增加生安组织节点实体SMBL_DEPT_NODE

  • 50、1.0.40.40 ⇒ 生安机构树过滤掉非生安科室

  • 51、1.0.40.41 ⇒ 增加规评方案适用类型、规评方案类型等枚举

  • 52、1.0.40.42 ⇒ 更新OaEvaluatePlanDict的必填性等

  • 53、1.0.40.43 ⇒ 规评几个实体迁移到公共库

  • 54、1.0.40.44 ⇒ 增加生安目录树(机构-科室-管理专业组-备案实验室)接口GetOrgTreeType_Smbl_C

  • 55、1.0.40.46 ⇒ 规评实体小修改

  • 56、1.0.40.47 ⇒ 增加岗位、岗位角色等

  • 57、1.0.40.48 ⇒ 生安目录树补充机构节点

  • 58、1.0.40.50 ⇒ 增加目录树方法:RefreshTreeWithoutNum(只更新SOURCE_PATH、NODE_NO,不更新NUM计数);RefreshTreeAddedNum(更新SOURCE_PATH、NODE_NO,累计叶子节点NUM计数(叶子节点NUM由业务代码赋值))

  • 59、1.0.40.51 ⇒ 生安入口查询接口不判断备案实验室数据权限,增加有效性校验

  • 60、1.0.40.52 ⇒ 生安目录树(机构-科室-管理专业组-备案实验室)

  • 61、1.0.40.53 ⇒ 增加_httpContext.GetSmblLabId()获取前端登录备案实验室ID(机构ID、科室ID同理);增加生安目录树修复备案实验室过滤问题

  • 62、1.0.40.54 ⇒ 增加FileConvertPdfDto的图片水印相关字段

  • 63、1.0.40.55 ⇒ 更新规评用户结果实体等

  • 64、1.0.40.56 ⇒ 上传文件增加图片增加水印

  • 65、1.0.40.57 ⇒ 上传图片增加水印调整调用H115接口

  • 66、1.0.40.60 ⇒ 新增H05模块相关消息接口,通用消息发送、取消已发送消息、查询个人发送消息列表

  • 66、1.0.40.62 ⇒ 新增写入人员规评结果公共方法:WriteEvaluatePlanUserResult

  • 67、1.0.40.63 ⇒ 新增备案实验室时间更新方法,支持批量、单个UpdateSmblLabTimeByIds UpdateSmblLabTimeById

  • 66、1.0.40.64 ⇒ 新增获取拥有某一权限(页面/按钮/权限类)下的用户列表的方法:IAuthorityService.GetPermissionUser

  • 67、1.0.40.65 ⇒ 更新生安入口获取接口(IAuthorityService.GetLogonHospitalLabList)逻辑,改为以科室权限判断

  • 68、1.0.40.66 ⇒ SYS6_USER实体增加VSIGNATURE_PIC字段

  • 69、1.0.40.67 ⇒ IAuthorityService.GetPermissionUser修复

  • 70、1.0.40.68 ⇒ 增加SYS6_USER_CLASS_DICT实体

  • 71、1.0.41.0 ⇒ 新增S10统一平台的调用方法

  • 72、1.0.41.1 ⇒ 增加SYS6_USER_TYPE_DICT实体

  • 73、1.0.41.2 ⇒ 增加OA_BASE_DATA实体

  • 74、1.0.41.3 ⇒ 根据权限获取检验专业组增加更严格的判断条件

  • 75、1.0.41.10 ⇒ 更新权限查询条件

  • 76、1.0.41.16 ⇒ 修复

  • 77、1.0.41.18 ⇒ 录入规评结果时生成规评事件

  • 78、1.0.41.19 ⇒ 权限判断增加规评限权

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.41.39 158 4/1/2025
1.0.41.38 142 4/1/2025
1.0.41.37 140 3/31/2025
1.0.41.36 119 3/27/2025
1.0.41.35 455 3/26/2025
1.0.41.33 461 3/25/2025
1.0.41.32 469 3/25/2025
1.0.41.31 410 3/24/2025
1.0.41.30 95 3/21/2025
1.0.41.29 149 3/20/2025
1.0.41.28 144 3/19/2025
1.0.41.27 146 3/18/2025
1.0.41.26 139 3/17/2025
1.0.41.25 147 3/13/2025
1.0.41.23 132 3/13/2025
1.0.41.21 130 3/13/2025
1.0.41.20 165 3/10/2025
1.0.41.19 211 3/7/2025
1.0.41.18 199 3/5/2025
1.0.41.17 217 3/5/2025
1.0.41.16 150 3/3/2025
1.0.41.15 148 2/20/2025
1.0.41.13 105 2/20/2025
1.0.41.12 125 2/18/2025
1.0.41.11 118 2/17/2025
1.0.41.10 108 2/16/2025
1.0.41.9 123 2/16/2025
1.0.41.8 113 2/16/2025
1.0.41.7 111 2/16/2025
1.0.41.6 105 2/16/2025
1.0.41.5 119 2/16/2025
1.0.41.4 133 2/15/2025
1.0.41.3 115 2/15/2025
1.0.41.2 97 2/15/2025
1.0.41.1 111 2/14/2025
1.0.41 126 2/14/2025
1.0.40.69 116 2/14/2025
1.0.40.68 92 2/13/2025
1.0.40.67 108 2/10/2025
1.0.40.66 84 1/24/2025
1.0.40.65 88 1/24/2025
1.0.40.64 80 1/23/2025
1.0.40.63 112 1/22/2025
1.0.40.62 117 1/21/2025
1.0.40.61 100 1/21/2025
1.0.40.60 92 1/16/2025
1.0.40.58 59 1/15/2025
1.0.40.57 53 1/15/2025
1.0.40.56 101 1/15/2025
1.0.40.55 101 1/14/2025
1.0.40.54 105 1/14/2025
1.0.40.53 113 1/11/2025
1.0.40.52 126 1/10/2025
1.0.40.51 97 1/9/2025
1.0.40.50 85 1/8/2025
1.0.40.49 85 1/8/2025
1.0.40.48 88 1/8/2025
1.0.40.47 89 1/8/2025
1.0.40.46 129 1/7/2025
1.0.40.45 86 1/7/2025
1.0.40.44 110 1/7/2025
1.0.40.43 101 1/6/2025
1.0.40.42 142 1/3/2025
1.0.40.41 125 1/2/2025
1.0.40.40 112 12/25/2024
1.0.40.39 96 12/24/2024
1.0.40.38 124 12/24/2024
1.0.40.36 113 12/21/2024
1.0.40.35 126 12/20/2024
1.0.40.34 112 12/19/2024
1.0.40.33 135 12/17/2024
1.0.40.32 119 12/16/2024
1.0.40.31 114 12/14/2024
1.0.40.30 134 12/11/2024
1.0.40.29 125 12/10/2024
1.0.40.27 100 12/9/2024
1.0.40.26 121 12/6/2024
1.0.40.25 128 12/6/2024
1.0.40.24 142 12/6/2024
1.0.40.23 141 12/5/2024
1.0.40.22 101 11/28/2024
1.0.40.21 121 11/26/2024
1.0.40.20 140 11/14/2024
1.0.40.19 104 11/13/2024
1.0.40.18 116 11/8/2024
1.0.40.17 136 11/8/2024
1.0.40.16 118 11/4/2024
1.0.40.15 119 10/29/2024
1.0.40.14 116 10/29/2024
1.0.40.13 109 10/17/2024
1.0.40.12 136 10/15/2024
1.0.40.11 139 9/20/2024
1.0.40.10 125 9/13/2024
1.0.40.9 168 9/6/2024
1.0.40.8 120 9/3/2024
1.0.40.7 106 8/30/2024
1.0.40.6 130 8/23/2024
1.0.40.5 110 8/21/2024
1.0.40.3 125 8/21/2024
1.0.40.2 120 8/13/2024
1.0.40.1 124 8/13/2024
1.0.40 121 7/23/2024
1.0.39.2 120 7/23/2024
1.0.39.1 114 7/17/2024
1.0.39 91 7/17/2024
1.0.38.9-pre1 87 7/10/2024
1.0.38.8 126 7/10/2024
1.0.38.7 116 6/28/2024
1.0.38.6 137 6/27/2024
1.0.38.6-pre3 119 6/12/2024
1.0.38.6-pre2 116 6/12/2024
1.0.38.6-pre1 77 6/11/2024
1.0.38.5 94 6/11/2024
1.0.38.5-pre3 91 6/11/2024
1.0.38.5-pre2 106 6/11/2024
1.0.38.5-pre1 102 6/11/2024
1.0.38.4 111 6/7/2024
1.0.38.3 111 6/5/2024
1.0.38.2 114 6/3/2024
1.0.38-pre3 132 6/3/2024
1.0.38-pre2 117 5/27/2024
1.0.38-pre1 120 5/25/2024
1.0.37.10 123 5/25/2024
1.0.37.9 117 5/25/2024
1.0.37.8 150 5/25/2024
1.0.37.7 153 5/24/2024
1.0.37.6 135 5/23/2024
1.0.37 143 5/22/2024
1.0.37-pre1 101 5/25/2024
1.0.37-alpha1 99 5/25/2024
1.0.36 131 5/20/2024
1.0.35 151 5/20/2024
1.0.33 125 5/17/2024
1.0.32 154 5/7/2024
1.0.31 139 5/7/2024
1.0.30 118 4/28/2024
1.0.29 127 4/28/2024
1.0.28 123 4/26/2024
1.0.27 134 4/26/2024
1.0.26 134 4/25/2024
1.0.25 133 4/16/2024
1.0.24 131 4/16/2024
1.0.23 123 4/15/2024
1.0.22 121 4/15/2024
1.0.21 121 4/10/2024
1.0.20 121 4/8/2024
1.0.19 148 4/3/2024
1.0.18 134 3/31/2024
1.0.17 126 3/27/2024
1.0.16 132 3/26/2024
1.0.15 140 3/20/2024
1.0.14 141 3/20/2024
1.0.13 125 3/18/2024
1.0.12 126 3/18/2024
1.0.11 142 3/14/2024
1.0.10 127 3/14/2024
1.0.9 142 3/14/2024
1.0.8 149 3/14/2024
1.0.7 140 3/14/2024
1.0.6 142 2/28/2024
1.0.5 122 2/22/2024
1.0.4 112 2/19/2024
1.0.3 134 2/18/2024
1.0.2 132 2/6/2024
1.0.1 121 1/29/2024

升级XH.Utility版本为6.24.13