大屏展示的两个问题,
一个是质量管理点击报错, 二是点击项目清单后,加载的项目清单页面默认显示所有行
This commit is contained in:
@@ -57,15 +57,16 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
string strSql = @"select * from PreRun_TechnologySysPiping where ProjectId=@ProjectId and SystemId=@SystemId and TechnologyId not in (select TechnologyId from PreRun_SubTechnologySelect where SystemId=@SystemId) ";
|
||||
//string strSql = @"select * from PreRun_TechnologySysPiping where ProjectId=@ProjectId and SystemId=@SystemId and TechnologyId not in (select TechnologyId from PreRun_SubTechnologySelect where SystemId=@SystemId) ";
|
||||
string strSql = @"select * from PreRun_TechnologySysPiping where ProjectId=@ProjectId and SystemId=@SystemId and TechnologyId not in (select TechnologyId from PreRun_SubTechnologySelect ) ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||
listStr.Add(new SqlParameter("@SystemId", this.SystemId));
|
||||
if (!string.IsNullOrWhiteSpace(SelectTechnologyIds))
|
||||
{
|
||||
var ids = SelectTechnologyIds.Split(',').ToList();
|
||||
strSql += $" and TechnologyId not in ('{string.Join("','", ids)}')";
|
||||
}
|
||||
//if (!string.IsNullOrWhiteSpace(SelectTechnologyIds))
|
||||
//{
|
||||
// var ids = SelectTechnologyIds.Split(',').ToList();
|
||||
// strSql += $" and TechnologyId not in ('{string.Join("','", ids)}')";
|
||||
//}
|
||||
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
Reference in New Issue
Block a user