升级
This commit is contained in:
@@ -56,6 +56,18 @@ namespace FineUIPro.Web.ProjectData
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
//手动点击查询按钮,查询全部公司下项目
|
||||
this.trUnit.SelectedNodeID = string.Empty;
|
||||
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
#region 加载树
|
||||
/// <summary>
|
||||
@@ -122,8 +134,11 @@ namespace FineUIPro.Web.ProjectData
|
||||
// strSql += " AND ProjectId = @ProjectId";
|
||||
// listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||
//}
|
||||
strSql += " AND Project.UnitId = @UnitId2";
|
||||
listStr.Add(new SqlParameter("@UnitId2", this.trUnit.SelectedNodeID));
|
||||
if (!string.IsNullOrWhiteSpace(this.trUnit.SelectedNodeID))
|
||||
{
|
||||
strSql += " AND Project.UnitId = @UnitId2";
|
||||
listStr.Add(new SqlParameter("@UnitId2", this.trUnit.SelectedNodeID));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtProjectCode.Text.Trim()))
|
||||
{
|
||||
strSql += " AND ProjectCode LIKE @ProjectCode";
|
||||
|
||||
Reference in New Issue
Block a user