diff --git a/SGGL/FineUIPro.Web/HJGL/DataImport/MaterialInformation.aspx b/SGGL/FineUIPro.Web/HJGL/DataImport/MaterialInformation.aspx index 0dca75f9..053453af 100644 --- a/SGGL/FineUIPro.Web/HJGL/DataImport/MaterialInformation.aspx +++ b/SGGL/FineUIPro.Web/HJGL/DataImport/MaterialInformation.aspx @@ -241,7 +241,7 @@ - + @@ -282,13 +282,13 @@ - - diff --git a/SGGL/FineUIPro.Web/HJGL/DataImport/MaterialInformation.aspx.cs b/SGGL/FineUIPro.Web/HJGL/DataImport/MaterialInformation.aspx.cs index 1092e77d..f84e9497 100644 --- a/SGGL/FineUIPro.Web/HJGL/DataImport/MaterialInformation.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/DataImport/MaterialInformation.aspx.cs @@ -487,7 +487,7 @@ namespace FineUIPro.Web.HJGL.DataImport #region 右键菜单删除 - protected void btnDelMat_Click(object sender, EventArgs e) + protected void btnDelMatGrid2_Click(object sender, EventArgs e) { if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, Const.HJGL_WeldJointMenuId, Const.BtnDelete)) { @@ -517,6 +517,38 @@ namespace FineUIPro.Web.HJGL.DataImport ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); } } + + protected void btnDelMatGrid3_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, Const.HJGL_WeldJointMenuId, Const.BtnDelete)) + { + if (Grid3.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning); + return; + } + + foreach (int rowIndex in Grid3.SelectedRowIndexArray) + { + string rowID = Grid3.DataKeys[rowIndex][0].ToString(); + + BLL.PipelineMatService.DeletePipeLineMat(rowID); + //BLL.Sys_LogService.AddLog(BLL.Const.System_6, this.CurrUser.LoginProjectId, this.CurrUser.PersonId, Const.HJGL_PipelineMenuId, Const.BtnDelete, rowID); + ShowNotify("删除成功!", MessageBoxIcon.Success); + + } + + this.BindGrid1(this.tvControlItem.SelectedNodeID, this.hdUnitWorkId.Text); + this.BindGrid2(this.tvControlItem.SelectedNodeID, this.hdUnitWorkId.Text); + this.BindGrid3(this.tvControlItem.SelectedNodeID, this.hdUnitWorkId.Text); + + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + protected void btnDelMatGrid1_Click(object sender, EventArgs e) { if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, Const.HJGL_WeldJointMenuId, Const.BtnDelete))