补充公司级树
This commit is contained in:
+8
-4
@@ -47,6 +47,7 @@ namespace FineUIPro.Web.ThreeYearAction.FireGasSafety
|
||||
{
|
||||
this.ProjectId = Request.Params["projectId"];
|
||||
}
|
||||
this.InitDropDownList();
|
||||
////权限按钮方法
|
||||
this.ucTree.UnitId = this.CurrUser.UnitId;
|
||||
this.ucTree.ProjectId = this.ProjectId;
|
||||
@@ -57,7 +58,6 @@ namespace FineUIPro.Web.ThreeYearAction.FireGasSafety
|
||||
this.GetButtonPower();
|
||||
}
|
||||
this.btnNew.OnClientClick = Window1.GetShowReference("EquipmentAndMaterialInspectionEdit.aspx") + "return false;";
|
||||
BLL.UnitService.InitUnitDownList(this.sdrpUnitId, this.CurrUser.LoginProjectId, true);
|
||||
// 绑定表格
|
||||
this.BindGrid();
|
||||
}
|
||||
@@ -68,16 +68,20 @@ namespace FineUIPro.Web.ThreeYearAction.FireGasSafety
|
||||
// BindGrid();
|
||||
//}
|
||||
}
|
||||
|
||||
private void InitDropDownList()
|
||||
{
|
||||
BLL.UnitService.InitUnitDownList(this.sdrpUnitId, this.ProjectId, true);
|
||||
}
|
||||
protected void changeTree(object sender, EventArgs e)
|
||||
{
|
||||
this.ProjectId = this.ucTree.ProjectId;
|
||||
this.BindGrid();
|
||||
this.InitDropDownList();
|
||||
this.GetButtonPower();
|
||||
if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
||||
{
|
||||
btnNew.Hidden = true;
|
||||
}
|
||||
this.BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -98,7 +102,7 @@ namespace FineUIPro.Web.ThreeYearAction.FireGasSafety
|
||||
where C.ProjectId = @ProjectId";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.ProjectId));
|
||||
if (sdrpUnitId.SelectedValue != BLL.Const._Null)
|
||||
if (this.sdrpUnitId.SelectedValue != null && this.sdrpUnitId.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
strSql += " AND C.UnitId=@UnitId";
|
||||
listStr.Add(new SqlParameter("@UnitId", sdrpUnitId.SelectedValue));
|
||||
|
||||
Reference in New Issue
Block a user