1
This commit is contained in:
@@ -34,7 +34,8 @@ namespace FineUIPro.Web.ZHGL.Supervise
|
||||
CheckMainType = drpCheckMainType.SelectedValue,
|
||||
SearchText = this.txtSearch.Text.Trim(),
|
||||
CheckType = this.drpCheckType.SelectedValue,
|
||||
ProjectId = this.CurrUser.LoginProjectId
|
||||
ProjectId = this.CurrUser.LoginProjectId,
|
||||
CheckUnitId = this.CurrUser.UnitId
|
||||
};
|
||||
|
||||
int totalCount;
|
||||
@@ -112,7 +113,7 @@ namespace FineUIPro.Web.ZHGL.Supervise
|
||||
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
||||
{
|
||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||
if (UnitHazardRegisterService.CanDeleteRegister(rowID) || (this.CurrUser.PersonId == Const.hfnbdId || this.CurrUser.PersonId == Const.sysglyId))
|
||||
if (UnitHazardRegisterService.CanDeleteRegister(rowID) || (this.CurrUser.PersonId ==Const.hfnbdId || this.CurrUser.PersonId == Const.sysglyId))
|
||||
{
|
||||
BLL.UnitHazardRegisterItemService.DeleteItemsByRegisterId(rowID);
|
||||
BLL.UnitHazardRegisterService.DeleteUnitHazardRegisterById(rowID);
|
||||
|
||||
Reference in New Issue
Block a user