From afac07b31fbc0bb4c6999b2583ba689796b5ed8d Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Tue, 4 Nov 2025 16:51:06 +0800 Subject: [PATCH] 1 --- HJGL_DS/BLL/Common/BaseInfo/Base_UnitService.cs | 16 ++++++++++++++++ .../HJGL/WeldingReport/WelderPerformance.aspx.cs | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/HJGL_DS/BLL/Common/BaseInfo/Base_UnitService.cs b/HJGL_DS/BLL/Common/BaseInfo/Base_UnitService.cs index ea172ad..f63c02f 100644 --- a/HJGL_DS/BLL/Common/BaseInfo/Base_UnitService.cs +++ b/HJGL_DS/BLL/Common/BaseInfo/Base_UnitService.cs @@ -221,6 +221,22 @@ return q; } + /// + /// 根据单位id获取单位信息 + /// + /// + /// 一个单位有可能多种类型 + /// + public static List GetAllUnits2() + { + var q = (from x in Funs.DB.Base_Unit + join y in Funs.DB.HJGL_BS_Welder on x.UnitId equals y.WED_Unit + where y.IsOAM == true + orderby x.UnitCode + select x).Distinct().ToList(); + return q; + } + /// /// 根据分包本单位类型ID获取单位项 /// diff --git a/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/WelderPerformance.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/WelderPerformance.aspx.cs index 7682757..725eb59 100644 --- a/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/WelderPerformance.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/WelderPerformance.aspx.cs @@ -23,7 +23,7 @@ if (!IsPostBack) { this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); - var pUnit = BLL.Base_UnitService.GetAllUnits(); + var pUnit = BLL.Base_UnitService.GetAllUnits2(); ///单位 this.drpUnit.DataTextField = "UnitName"; this.drpUnit.DataValueField = "UnitId";