From 8fe54fc9c153f662cdc7775972329be9ce8b846b Mon Sep 17 00:00:00 2001 From: yhw0507 Date: Mon, 3 Jul 2023 15:08:29 +0800 Subject: [PATCH] =?UTF-8?q?20230703=E4=B8=93=E9=A1=B9=E6=A3=80=E6=9F=A5?= =?UTF-8?q?=E5=8D=95=E4=BD=8D=E4=B8=8B=E6=8B=89=E6=A1=86=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/BLL/SysManage/UnitService.cs | 19 +++++++++++++++++++ SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 2 +- .../HSSE/Check/CheckSpecialEdit.aspx.cs | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/SGGL/BLL/SysManage/UnitService.cs b/SGGL/BLL/SysManage/UnitService.cs index a4bb89e0..a28964ea 100644 --- a/SGGL/BLL/SysManage/UnitService.cs +++ b/SGGL/BLL/SysManage/UnitService.cs @@ -473,6 +473,25 @@ namespace BLL Funs.FineUIPleaseSelect(dropName); } } + + /// + /// 用于编辑列表 --下拉框 + /// + /// + /// + /// + /// + public static void InitUnitNameByProjectIdUnitTypeDropDownList(FineUIPro.DropDownList dropName, string projectId, string unitType, bool isShowPlease) + { + dropName.DataValueField = "UnitName"; + dropName.DataTextField = "UnitName"; + dropName.DataSource = BLL.UnitService.GetUnitByProjectIdUnitTypeList(projectId, unitType); + dropName.DataBind(); + if (isShowPlease) + { + Funs.FineUIPleaseSelect(dropName); + } + } #endregion /// diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 5b1e9826..2f3854be 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -13943,7 +13943,7 @@ True 0 / - http://localhost:10675/ + http://localhost:2146/ False False diff --git a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialEdit.aspx.cs index b9593049..79bac991 100644 --- a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialEdit.aspx.cs @@ -139,7 +139,7 @@ namespace FineUIPro.Web.HSSE.Check Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpPartInPersons, this.ProjectId, null, null, true); ConstValue.InitConstNameDropDownList(this.drpHandleStep, ConstValue.Group_HandleStep, true); ///责任单位 - UnitService.InitUnitByProjectIdUnitTypeDropDownList(this.drpWorkUnit, this.ProjectId, Const.ProjectUnitType_2, false); + UnitService.InitUnitNameByProjectIdUnitTypeDropDownList(this.drpWorkUnit, this.ProjectId, Const.ProjectUnitType_2, false); ///单位工程 UnitWorkService.InitUnitWorkNameDropDownList(this.drpCheckArea, this.ProjectId, false); }