IDP设计图纸管理

This commit is contained in:
2025-07-18 11:07:06 +08:00
parent 58b237b0cf
commit 41ba702346
10 changed files with 686 additions and 119 deletions
@@ -114,7 +114,7 @@ namespace BLL
public static List<string> GetWbsFullPathDropDownList(string projectId)
{
var list = (from x in Funs.DB.IDP_DesignDrawing
where x.ProjectId == projectId && x.WbsFullPath != null
where x.ProjectId == projectId && x.WbsFullPath != null && x.WbsFullPath != ""
select x.WbsFullPath).Distinct().OrderBy(x => x).ToList();
return list;
}
@@ -146,7 +146,7 @@ namespace BLL
public static List<string> GetFileVersionDropDownList(string projectId)
{
var list = (from x in Funs.DB.IDP_DesignDrawing
where x.ProjectId == projectId && x.FileVersion != null
where x.ProjectId == projectId && x.FileVersion != null && x.FileVersion != ""
select x.FileVersion).Distinct().OrderBy(x => x).ToList();
return list;
}
@@ -178,7 +178,7 @@ namespace BLL
public static List<string> GetMajorNoDropDownList(string projectId)
{
var list = (from x in Funs.DB.IDP_DesignDrawing
where x.ProjectId == projectId && x.MajorNo != null
where x.ProjectId == projectId && x.MajorNo != null && x.MajorNo != ""
select x.MajorNo).Distinct().OrderBy(x => x).ToList();
return list;
}
@@ -209,7 +209,7 @@ namespace BLL
public static List<string> GetMajorNameDropDownList(string projectId)
{
var list = (from x in Funs.DB.IDP_DesignDrawing
where x.ProjectId == projectId && x.MajorName != null
where x.ProjectId == projectId && x.MajorName != null && x.MajorName != ""
select x.MajorName).Distinct().OrderBy(x => x).ToList();
return list;
}
@@ -241,41 +241,195 @@ namespace BLL
public static List<string> GetStatusDropDownList(string projectId)
{
var list = (from x in Funs.DB.IDP_DesignDrawing
where x.ProjectId == projectId && x.Status != null
where x.ProjectId == projectId && x.Status != null && x.Status != ""
select x.Status).Distinct().OrderBy(x => x).ToList();
return list;
}
///// <summary>
// /// 装工主名称下拉框
// /// </summary>
// /// <param name="projectId">项目id</param>
// /// <returns></returns>
//public static List<string> GetWbsFullPathDropDownList(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;
//}
///// <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)
//{
// dropName.DataValueField = "string";
// dropName.DataTextField = "string";
// dropName.DataSource = GetActionByUnitDropDownList(projectId);
// dropName.DataBind();
// if (isShowPlease)
// {
// Funs.FineUIPleaseSelect(dropName);
// }
//}
/// <summary>
/// 保密等级下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <param name="dropName">下拉框名字</param>
/// <param name="isShowPlease">是否显示请选择</param>
public static void InitClassDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease)
{
dropName.DataValueField = "string";
dropName.DataTextField = "string";
dropName.DataSource = GetClassDropDownList(projectId);
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
/// <summary>
/// 保密等级下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <returns></returns>
public static List<string> GetClassDropDownList(string projectId)
{
var list = (from x in Funs.DB.IDP_DesignDrawing
where x.ProjectId == projectId && x.ClassificationLevelInProject != null && x.ClassificationLevelInProject != ""
select x.ClassificationLevelInProject).Distinct().OrderBy(x => x).ToList();
return list;
}
/// <summary>
/// 设计人下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <param name="dropName">下拉框名字</param>
/// <param name="isShowPlease">是否显示请选择</param>
public static void InitDesignUserNameDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease)
{
dropName.DataValueField = "string";
dropName.DataTextField = "string";
dropName.DataSource = GetDesignUserNameDropDownList(projectId);
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
/// <summary>
/// 设计人下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <returns></returns>
public static List<string> GetDesignUserNameDropDownList(string projectId)
{
var list = (from x in Funs.DB.IDP_DesignDrawing
where x.ProjectId == projectId && x.DesignUserName != null && x.DesignUserName != ""
select x.DesignUserName).Distinct().OrderBy(x => x).ToList();
return list;
}
/// <summary>
/// 校核人下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <param name="dropName">下拉框名字</param>
/// <param name="isShowPlease">是否显示请选择</param>
public static void InitJiaoheUserNameDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease)
{
dropName.DataValueField = "string";
dropName.DataTextField = "string";
dropName.DataSource = GetJiaoheUserNameDropDownList(projectId);
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
/// <summary>
/// 校核人下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <returns></returns>
public static List<string> GetJiaoheUserNameDropDownList(string projectId)
{
var list = (from x in Funs.DB.IDP_DesignDrawing
where x.ProjectId == projectId && x.JiaoheUserName != null && x.JiaoheUserName != ""
select x.JiaoheUserName).Distinct().OrderBy(x => x).ToList();
return list;
}
/// <summary>
/// 审核人下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <param name="dropName">下拉框名字</param>
/// <param name="isShowPlease">是否显示请选择</param>
public static void InitShenheUserNameDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease)
{
dropName.DataValueField = "string";
dropName.DataTextField = "string";
dropName.DataSource = GetShenheUserNameDropDownList(projectId);
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
/// <summary>
/// 审核人下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <returns></returns>
public static List<string> GetShenheUserNameDropDownList(string projectId)
{
var list = (from x in Funs.DB.IDP_DesignDrawing
where x.ProjectId == projectId && x.ShenheUserName != null && x.ShenheUserName != ""
select x.ShenheUserName).Distinct().OrderBy(x => x).ToList();
return list;
}
/// <summary>
/// 审定人下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <param name="dropName">下拉框名字</param>
/// <param name="isShowPlease">是否显示请选择</param>
public static void InitShendingUserNameDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease)
{
dropName.DataValueField = "string";
dropName.DataTextField = "string";
dropName.DataSource = GetShendingUserNameDropDownList(projectId);
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
/// <summary>
/// 审定人下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <returns></returns>
public static List<string> GetShendingUserNameDropDownList(string projectId)
{
var list = (from x in Funs.DB.IDP_DesignDrawing
where x.ProjectId == projectId && x.ShendingUserName != null && x.ShendingUserName != ""
select x.ShendingUserName).Distinct().OrderBy(x => x).ToList();
return list;
}
/// <summary>
/// 专业负责人下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <param name="dropName">下拉框名字</param>
/// <param name="isShowPlease">是否显示请选择</param>
public static void InitMajorResponsibleUserNameDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease)
{
dropName.DataValueField = "string";
dropName.DataTextField = "string";
dropName.DataSource = GetMajorResponsibleUserNameDropDownList(projectId);
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
/// <summary>
/// 专业负责人下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <returns></returns>
public static List<string> GetMajorResponsibleUserNameDropDownList(string projectId)
{
var list = (from x in Funs.DB.IDP_DesignDrawing
where x.ProjectId == projectId && x.MajorResponsibleUserName != null && x.MajorResponsibleUserName != ""
select x.MajorResponsibleUserName).Distinct().OrderBy(x => x).ToList();
return list;
}
}
}