11
This commit is contained in:
@@ -55,19 +55,30 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
||||
}
|
||||
private List<Pipeline_WeldJoint> GetDataJointGrid2(string PipelineID)
|
||||
{
|
||||
string[] arr = null;
|
||||
List<string> listData = new List<string>();
|
||||
var tempData = Funs.DB.PTP_PipelineList.Where(t => t.PipelineId == PipelineID && t.IsAll == false)
|
||||
.Select(t => t.WeldJonintCode).FirstOrDefault();
|
||||
.Select(t => t.WeldJonintCode).ToList();
|
||||
|
||||
if (tempData != null)
|
||||
foreach (var item in tempData)
|
||||
{
|
||||
arr = tempData.Split(',');
|
||||
if (!string.IsNullOrEmpty(item))
|
||||
{
|
||||
string[] strcode = item.Split(',');
|
||||
for (int i = 0; i < strcode.Length; i++)
|
||||
{
|
||||
if (!listData.Contains(strcode[i]))
|
||||
{
|
||||
listData.Add(strcode[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
var query = Funs.DB.Pipeline_WeldJoint.Where(t => t.PipelineId == PipelineID)
|
||||
.OrderBy(t => t.WeldJointCode).AsQueryable();
|
||||
if (arr != null)
|
||||
if (listData.Count>0)
|
||||
{
|
||||
query = query.Where(t => !arr.Contains(t.WeldJointCode));
|
||||
query = query.Where(t => !listData.Contains(t.WeldJointCode));
|
||||
}
|
||||
return query.ToList();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user