移交管理查询优化,单选条件修改多选查询

This commit is contained in:
2025-02-24 15:36:00 +08:00
parent 062d7bf0fd
commit c3699e594e
6 changed files with 85 additions and 19 deletions
+31 -5
View File
@@ -1,14 +1,41 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
{
public class PunchlistFromService
{
/// <summary>
/// Turnover System Code下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <param name="dropName">下拉框名字</param>
/// <param name="isShowPlease">是否显示请选择</param>
public static void InitTurnoverSystemCodeUnitDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease)
{
dropName.DataValueField = "string";
dropName.DataTextField = "string";
dropName.DataSource = GetTurnoverSystemCodeUnitDropDownList(projectId);
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
/// <summary>
/// 获取Turnover System Code下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <returns></returns>
public static List<string> GetTurnoverSystemCodeUnitDropDownList(string projectId)
{
var list = (from x in Funs.DB.Transfer_PunchlistFrom
where x.ProjectId == projectId
select x.Sub_Sys_No).Distinct().OrderBy(x => x).ToList();
return list;
}
/// <summary>
/// 责任单位下拉框
@@ -18,7 +45,6 @@ namespace BLL
/// <param name="isShowPlease">是否显示请选择</param>
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);