20250805 试压管理

This commit is contained in:
2025-08-05 23:34:06 +08:00
parent 151bdde705
commit 4e366b3827
22 changed files with 369 additions and 159 deletions
@@ -94,9 +94,20 @@ namespace FineUIPro.Web.HJGL.TestPackage
where x.ProjectId == this.CurrUser.LoginProjectId
&& x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null
select x).ToList();
List<Model.PTP_TestPackage> testPackageLists = (from x in Funs.DB.PTP_TestPackage
where x.ProjectId == this.CurrUser.LoginProjectId
select x).ToList();
List<Model.PTP_TestPackage> testPackageLists = new List<Model.PTP_TestPackage>();
if (!string.IsNullOrEmpty(this.txtCode.Text.Trim()))
{
testPackageLists = (from x in Funs.DB.PTP_TestPackage
where x.ProjectId == this.CurrUser.LoginProjectId
&& x.TestPackageNo.Contains(this.txtCode.Text.Trim())
select x).ToList();
}
else
{
testPackageLists = (from x in Funs.DB.PTP_TestPackage
where x.ProjectId == this.CurrUser.LoginProjectId
select x).ToList();
}
List<Model.WBS_UnitWork> unitWork1 = null;
List<Model.WBS_UnitWork> unitWork2 = null;
@@ -112,8 +123,8 @@ namespace FineUIPro.Web.HJGL.TestPackage
//}
//else
//{
unitWork1 = (from x in unitWorkList where x.ProjectType == "1" select x).ToList();
unitWork2 = (from x in unitWorkList where x.ProjectType == "2" select x).ToList();
unitWork1 = (from x in unitWorkList where x.ProjectType == "1" select x).ToList();
unitWork2 = (from x in unitWorkList where x.ProjectType == "2" select x).ToList();
//}
if (unitWork1.Count() > 0)
@@ -187,7 +198,6 @@ namespace FineUIPro.Web.HJGL.TestPackage
}
}
}
#endregion
#region TreeView
@@ -627,5 +637,17 @@ namespace FineUIPro.Web.HJGL.TestPackage
ShowNotify("非单位工程类型无法导入!", MessageBoxIcon.Warning);
}
}
#region
/// <summary>
/// 查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void txtCode_TextChanged(object sender, EventArgs e)
{
InitTreeMenu();
}
#endregion
}
}