11
This commit is contained in:
@@ -58,10 +58,15 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
||||
private List<Pipeline_WeldJoint> GetDataJointGrid2(string PipelineID)
|
||||
{
|
||||
List<string> listData = new List<string>();
|
||||
var tempData = Funs.DB.PTP_PipelineList.Where(t => t.PipelineId == PipelineID && t.IsAll == false)
|
||||
.Select(t => t.WeldJonintCode).ToList();
|
||||
var tempData = Funs.DB.PTP_PipelineList.Where(t => t.PipelineId == PipelineID && t.IsAll == false)
|
||||
.AsQueryable();
|
||||
|
||||
foreach (var item in tempData)
|
||||
if (!string.IsNullOrEmpty(this.ptpId))
|
||||
{
|
||||
tempData = tempData.Where(t => t.PTP_ID != this.ptpId);
|
||||
}
|
||||
var newData = tempData.Select(t => t.WeldJonintCode).ToList();
|
||||
foreach (var item in newData)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(item))
|
||||
{
|
||||
@@ -78,7 +83,7 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
||||
}
|
||||
var query = Funs.DB.Pipeline_WeldJoint.Where(t => t.PipelineId == PipelineID)
|
||||
.OrderBy(t => t.WeldJointCode).AsQueryable();
|
||||
if (listData.Count>0)
|
||||
if (listData.Count>0 )
|
||||
{
|
||||
query = query.Where(t => !listData.Contains(t.WeldJointCode));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user