补充公司级树
This commit is contained in:
@@ -42,7 +42,7 @@ namespace FineUIPro.Web.CQMS.Solution
|
||||
{
|
||||
return;
|
||||
}
|
||||
var buttonList = CommonService.GetAllButtonList(CurrUser.LoginProjectId, CurrUser.UserId, Const.CQMSConstructSolutionMenuId);
|
||||
var buttonList = CommonService.GetAllButtonList(ProjectId, CurrUser.UserId, Const.CQMSConstructSolutionMenuId);
|
||||
if (buttonList.Count() > 0)
|
||||
{
|
||||
|
||||
@@ -138,7 +138,7 @@ namespace FineUIPro.Web.CQMS.Solution
|
||||
where ProjectId=@ProjectId";
|
||||
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@ProjectId", CurrUser.LoginProjectId));
|
||||
listStr.Add(new SqlParameter("@ProjectId", ProjectId));
|
||||
if (this.CurrUser.UnitId != null && CommonService.GetProjectUnitType(this.ProjectId, this.CurrUser.UnitId) != BLL.Const.ProjectUnitType_1 && this.CurrUser.UnitId != Const.hfnbdId)
|
||||
{
|
||||
strSql += " AND solution.UnitId='" + this.CurrUser.UnitId + "'";
|
||||
@@ -192,6 +192,10 @@ namespace FineUIPro.Web.CQMS.Solution
|
||||
}
|
||||
private void BindGrid()
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.ProjectId))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var list = ChecklistData();
|
||||
Grid1.RecordCount = list.Rows.Count;
|
||||
var CNProfessional = CNProfessionalService.GetCNProfessionalItem();
|
||||
@@ -661,7 +665,7 @@ namespace FineUIPro.Web.CQMS.Solution
|
||||
return;
|
||||
}
|
||||
string id = Grid1.SelectedRowID.Split(',')[0];
|
||||
if (CommonService.GetAllButtonPowerList(CurrUser.LoginProjectId, CurrUser.UserId, Const.CQMSConstructSolutionMenuId, Const.BtnDelete))
|
||||
if (CommonService.GetAllButtonPowerList(ProjectId, CurrUser.UserId, Const.CQMSConstructSolutionMenuId, Const.BtnDelete))
|
||||
{
|
||||
var constructSolution = CQMSConstructSolutionFinalService.GetConstructSolutionByConstructSolutionId(id);
|
||||
CQMSConstructSolutionFinalService.DeleteConstructSolution(id);
|
||||
|
||||
Reference in New Issue
Block a user