补充公司级别树
This commit is contained in:
@@ -64,14 +64,6 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
|
||||
this.ucTree.UnitId = this.CurrUser.UnitId;
|
||||
this.ucTree.ProjectId = this.ProjectId;
|
||||
|
||||
if (this.CurrUser != null && this.CurrUser.PageSize.HasValue)
|
||||
{
|
||||
Grid1.PageSize = this.CurrUser.PageSize.Value;
|
||||
}
|
||||
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||
// 绑定表格
|
||||
this.BindGrid();
|
||||
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
||||
{
|
||||
this.panelLeftRegion.Hidden = true;
|
||||
@@ -80,6 +72,12 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
this.GetButtonPower();
|
||||
}
|
||||
|
||||
|
||||
if (this.CurrUser != null && this.CurrUser.PageSize.HasValue)
|
||||
{
|
||||
Grid1.PageSize = this.CurrUser.PageSize.Value;
|
||||
}
|
||||
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||
//Funs.DropDownPageSize(this.ddlPageSize);
|
||||
//GetButtonPower();
|
||||
this.ItemSelectedList = new List<string>();
|
||||
@@ -90,7 +88,7 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
//this.drpStates.DataBind();
|
||||
//Funs.FineUIPleaseSelect(this.drpStates);
|
||||
// 绑定表格
|
||||
//BindGrid();
|
||||
this.BindGrid();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,6 +107,10 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.ProjectId))
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.ProjectId))
|
||||
{
|
||||
string strSql = @"SELECT a.CheckSpecialCode,(CASE WHEN a.States='2' THEN '已完成' WHEN a.States='1' THEN '待整改' ELSE '待提交' END) AS StatesName,a.CheckTime,b.* FROM Check_CheckSpecial
|
||||
@@ -400,7 +402,7 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
/// <param name="e"></param>
|
||||
protected void btnNew_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.HSSE_HiddenRectificationListMenuId, BLL.Const.BtnAdd))
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.ProjectId, this.CurrUser.UserId, BLL.Const.HSSE_HiddenRectificationListMenuId, BLL.Const.BtnAdd))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../HiddenInspection/HiddenRectificationAdd.aspx", "登记 - ")));
|
||||
}
|
||||
@@ -440,7 +442,7 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
}
|
||||
}
|
||||
if (e.CommandName == "attchUrl")
|
||||
{
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CheckSpecial&menuId={1}&edit=1&type=-1", RegistrationId, BLL.Const.ProjectCheckSpecialMenuId)));
|
||||
}
|
||||
if (e.CommandName == "del")
|
||||
@@ -742,7 +744,7 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
{
|
||||
if (buttonList.Contains(Const.BtnAdd))
|
||||
{
|
||||
// this.btnNew.Hidden = false;
|
||||
// this.btnNew.Hidden = false;
|
||||
this.btnRectify.Hidden = false;
|
||||
this.btnConfirm.Hidden = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user