移交管理调优:
1、尾项管理,补充责任单位下拉查询条件; 2、尾项管理,补充完成时间查询条件; 3、移交图表-尾项完成统计表,展示优化;
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 责任单位下拉框
|
||||
/// </summary>
|
||||
/// <param name="projectId">项目id</param>
|
||||
/// <param name="dropName">下拉框名字</param>
|
||||
/// <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);
|
||||
dropName.DataBind();
|
||||
if (isShowPlease)
|
||||
{
|
||||
Funs.FineUIPleaseSelect(dropName);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取责任单位下拉选项
|
||||
/// </summary>
|
||||
/// <param name="projectId">项目id</param>
|
||||
/// <returns></returns>
|
||||
public static List<string> 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user