diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj index 4a83317b..bf0647b3 100644 --- a/SGGL/BLL/BLL.csproj +++ b/SGGL/BLL/BLL.csproj @@ -806,6 +806,7 @@ + diff --git a/SGGL/BLL/Transfer/PunchlistFromService.cs b/SGGL/BLL/Transfer/PunchlistFromService.cs new file mode 100644 index 00000000..c4b4c34c --- /dev/null +++ b/SGGL/BLL/Transfer/PunchlistFromService.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + public class PunchlistFromService + { + + + /// + /// 责任单位下拉框 + /// + /// 项目id + /// 下拉框名字 + /// 是否显示请选择 + public static void InitActionByUnitDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease) + { + var sss = GetActionByUnitDropDownList(projectId); + dropName.DataValueField = "string"; + dropName.DataTextField = "string"; + dropName.DataSource = GetActionByUnitDropDownList(projectId); + dropName.DataBind(); + if (isShowPlease) + { + Funs.FineUIPleaseSelect(dropName); + } + } + + /// + /// 获取责任单位下拉选项 + /// + /// 项目id + /// + public static List GetActionByUnitDropDownList(string projectId) + { + var list = (from x in Funs.DB.Transfer_PunchlistFrom + where x.ProjectId == projectId + select x.Action_By).Distinct().OrderBy(x => x).ToList(); + return list; + } + } +} diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/GeneralPlanApproval.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/GeneralPlanApproval.aspx index a9e10cb0..6324fab1 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/GeneralPlanApproval.aspx +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/GeneralPlanApproval.aspx @@ -88,7 +88,7 @@ - + diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index b937cbb9..d84e1613 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -19357,7 +19357,7 @@ - + - +