提交代码

This commit is contained in:
2023-12-20 15:48:05 +08:00
parent 2516cfbe69
commit f49eba5e5f
58 changed files with 8868 additions and 1411 deletions
@@ -70,18 +70,8 @@ namespace FineUIPro.Web.TestRun.TestRunManage
/// </summary>
public void BindGrid()
{
string strSql = @"select a.WorkInspectId,a.WorkPackId,a.WorkInspectName,a.Remark,a.GroupId,a.AddUser,a.AddTime,a.Sort,b.GroupName from TestRun_WorkInspectTemplate as a inner join TestRun_TemplateItemGroup as b on a.GroupId=b.GroupId where a.WorkPackId=@WorkPackId ";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@WorkPackId", this.tvControlItem.SelectedNodeID));
if (!string.IsNullOrWhiteSpace(txtsWorkInspectName.Text))
{
strSql += "and a.WorkInspectName like '%" + txtsWorkInspectName.Text + "%'";
}
strSql += " order by a.Sort asc";
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
Grid1.DataSource = tb;
var list = Funs.DB.TestRun_WorkInspectTemplate.Where(x => x.WorkPackId == this.tvControlItem.SelectedNodeID).OrderBy(x => x.Sort);
Grid1.DataSource = list;
Grid1.DataBind();
}