This commit is contained in:
jackchenyang
2024-05-23 13:29:09 +08:00
parent 0a06a9f562
commit 2b85402218
6 changed files with 27 additions and 8 deletions
@@ -14,11 +14,13 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
{
private string rowId=string.Empty;
private string jointcode=string.Empty;
private string ptpId=string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
this.rowId = Request.Params["rowId"];
this.jointcode = Request.Params["jointcode"];
this.ptpId = Request.Params["ptpId"];
if (string.IsNullOrEmpty(this.rowId))
{
ShowNotify("请先选择某条管线信息!", MessageBoxIcon.Warning);
@@ -76,7 +78,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 && string.IsNullOrEmpty(this.ptpId))
{
query = query.Where(t => !listData.Contains(t.WeldJointCode));
}