补充公司级别树
This commit is contained in:
@@ -8,6 +8,22 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
{
|
||||
public partial class OfficeCheck : PageBase
|
||||
{
|
||||
#region 项目主键
|
||||
/// <summary>
|
||||
/// 项目主键
|
||||
/// </summary>
|
||||
public string ProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["ProjectId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ProjectId"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region 加载
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
@@ -23,12 +39,35 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 公司级树加载
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void changeTree(object sender, EventArgs e)
|
||||
{
|
||||
this.ProjectId = this.ucTree.ProjectId;
|
||||
|
||||
//if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
||||
//{
|
||||
// btnNew.Hidden = true;
|
||||
//}
|
||||
//this.GetButtonPower();
|
||||
this.BindGrid();
|
||||
}
|
||||
|
||||
#region 数据绑定
|
||||
|
||||
/// <summary>
|
||||
/// 绑定明细
|
||||
/// </summary>
|
||||
public void BindGrid()
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.ProjectId))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
string strSql = @"SELECT Item.RectifyItemId,
|
||||
Item.RectifyId,
|
||||
Item.WrongContent,
|
||||
@@ -43,7 +82,7 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
strSql += " WHERE Rectify.ProjectId = @ProjectId";
|
||||
strSql += " AND Rectify.States = @States";
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.ProjectId));
|
||||
listStr.Add(new SqlParameter("@States", this.rbStates.SelectedValue));
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
@@ -51,6 +90,7 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 状态筛选事件
|
||||
|
||||
Reference in New Issue
Block a user