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