补充公司级别树

This commit is contained in:
2025-04-09 19:14:54 +08:00
parent 8514fb0156
commit 023e3d33cf
86 changed files with 5694 additions and 3375 deletions
@@ -42,13 +42,37 @@ namespace FineUIPro.Web.HSSE.InformationProject
this.ProjectId = Request.Params["projectId"];
}
Funs.DropDownPageSize(this.ddlPageSize);
////权限按钮方法
this.GetButtonPower();
this.ucTree.UnitId = this.CurrUser.UnitId;
this.ucTree.ProjectId = this.ProjectId;
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
{
this.panelLeftRegion.Hidden = true;
////权限按钮方法
this.GetButtonPower();
}
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
// 绑定表格
BindGrid();
}
}
/// <summary>
/// 公司级树加载
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void changeTree(object sender, EventArgs e)
{
this.ProjectId = this.ucTree.ProjectId;
this.BindGrid();
this.GetButtonPower();
if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
{
btnNew.Hidden = true;
}
}
#endregion
#region
@@ -67,6 +91,10 @@ namespace FineUIPro.Web.HSSE.InformationProject
/// </summary>
private void BindGrid()
{
if (string.IsNullOrEmpty(this.ProjectId))
{
return;
}
string strSql = "select LawRegulationIdentify.LawRegulationIdentifyId,LawRegulationIdentify.VersionNumber,LawRegulationIdentify.ProjectId,Users.UserName as IdentifyPersonName,LawRegulationIdentify.IdentifyDate,CodeRecords.Code AS LawRegulationIdentifyCode "
+ @" ,(CASE WHEN LawRegulationIdentify.States = " + BLL.Const.State_0 + " OR LawRegulationIdentify.States IS NULL THEN '待['+OperateUser.UserName+']提交' WHEN LawRegulationIdentify.States = " + BLL.Const.State_2 + " THEN '审核/审批完成' ELSE '待['+OperateUser.UserName+']办理' END) AS FlowOperateName"
+ @",LawRegulationIdentify.UpdateDate"
@@ -85,7 +113,7 @@ namespace FineUIPro.Web.HSSE.InformationProject
}
else
{
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
listStr.Add(new SqlParameter("@ProjectId", this.ProjectId));
}
if (!string.IsNullOrEmpty(this.txtLawRegulationIdentifyCode.Text.Trim()))
{
@@ -150,7 +178,7 @@ namespace FineUIPro.Web.HSSE.InformationProject
/// <param name="e"></param>
protected void btnNew_Click(object sender, EventArgs e)
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("LawRegulationIdentifyEdit.aspx?LawRegulationIdentifyId={0}", string.Empty, "编辑 - ")));
}
@@ -230,7 +258,7 @@ namespace FineUIPro.Web.HSSE.InformationProject
{
return;
}
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.LawRegulationIdentifyMenuId);
var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.LawRegulationIdentifyMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnAdd))
@@ -305,8 +333,8 @@ namespace FineUIPro.Web.HSSE.InformationProject
return sb.ToString();
}
#endregion
#endregion
/// <summary>
/// 排序
/// </summary>