2023-09-11
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web.UI.WebControls;
|
||||
using Model;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
@@ -272,17 +273,24 @@ namespace BLL
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取已经验收的预制组件
|
||||
/// </summary>
|
||||
/// <param name="projectid"></param>
|
||||
/// <param name="projectId"></param>
|
||||
/// <param name="pipelineCode"></param>
|
||||
/// <param name="pipelineComponentCode"></param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.HJGL_Pipeline_Component> GetAcceptedPipelineComponent(string projectid)
|
||||
public static List<HJGL_Pipeline_Component> GetAcceptedPipelineComponent(string projectId, string pipelineCode,
|
||||
string pipelineComponentCode,string flowingSection)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
var q = (from x in db.HJGL_Pipeline_Component
|
||||
join y in db.HJGL_Pipeline on x.PipelineId equals y.PipelineId
|
||||
where y.ProjectId.Contains(projectid) && x.State.Equals(state_1)
|
||||
where y.ProjectId.Contains(projectId) && x.State.Equals(state_1) &&
|
||||
(string.IsNullOrEmpty(pipelineCode) || y.PipelineCode.Contains(pipelineCode)) &&
|
||||
(string.IsNullOrEmpty(pipelineComponentCode) || x.PipelineComponentCode.Contains(pipelineComponentCode)) &&
|
||||
(string.IsNullOrEmpty(flowingSection) || y.FlowingSection.Contains(flowingSection))
|
||||
select x).ToList();
|
||||
return q;
|
||||
|
||||
@@ -297,22 +305,23 @@ namespace BLL
|
||||
return q;
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 管线下拉框
|
||||
/// </summary>
|
||||
/// <param name="dropName">下拉框名字</param>
|
||||
/// <param name="isShowPlease">是否显示请选择</param>
|
||||
public static void InitPipelineDownList(FineUIPro.DropDownList dropName,string projectid, bool isShowPlease)
|
||||
{
|
||||
dropName.DataValueField = "PipelineComponentId";
|
||||
dropName.DataTextField = "PipelineComponentCode";
|
||||
dropName.DataSource = GetAcceptedPipelineComponent(projectid);
|
||||
dropName.DataBind();
|
||||
if (isShowPlease)
|
||||
{
|
||||
Funs.FineUIPleaseSelect(dropName);
|
||||
}
|
||||
}
|
||||
///// <summary>
|
||||
///// 管线下拉框
|
||||
///// </summary>
|
||||
///// <param name="dropName">下拉框名字</param>
|
||||
///// <param name="isShowPlease">是否显示请选择</param>
|
||||
//public static void InitPipelineDownList(FineUIPro.DropDownList dropName,string projectid, string pipelineCode,
|
||||
// string pipelineComponentCode, bool isShowPlease)
|
||||
//{
|
||||
// dropName.DataValueField = "PipelineComponentId";
|
||||
// dropName.DataTextField = "PipelineComponentCode";
|
||||
// dropName.DataSource = GetAcceptedPipelineComponent(projectid, pipelineCode, pipelineComponentCode);
|
||||
// dropName.DataBind();
|
||||
// if (isShowPlease)
|
||||
// {
|
||||
// Funs.FineUIPleaseSelect(dropName);
|
||||
// }
|
||||
//}
|
||||
public static void InitMainItemDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
|
||||
{
|
||||
dropName.DataValueField = "Value";
|
||||
|
||||
Reference in New Issue
Block a user