提交代码
This commit is contained in:
parent
f5e78fe21f
commit
f357c2236a
|
|
@ -241,7 +241,7 @@
|
|||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu2" />
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu3" />
|
||||
</Listeners>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
|
|
@ -282,13 +282,13 @@
|
|||
</f:MenuButton>
|
||||
</f:Menu>
|
||||
<f:Menu ID="Menu2" runat="server">
|
||||
<f:MenuButton ID="btnDelMat" OnClick="btnDelMat_Click" EnablePostBack="true"
|
||||
<f:MenuButton ID="btnDelMat" OnClick="btnDelMatGrid2_Click" EnablePostBack="true"
|
||||
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server"
|
||||
Text="删除" Icon="Delete">
|
||||
</f:MenuButton>
|
||||
</f:Menu>
|
||||
<f:Menu ID="Menu3" runat="server">
|
||||
<f:MenuButton ID="btnDelMat2" OnClick="btnDelMat_Click" EnablePostBack="true"
|
||||
<f:MenuButton ID="btnDelMat2" OnClick="btnDelMatGrid3_Click" EnablePostBack="true"
|
||||
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server"
|
||||
Text="删除" Icon="Delete">
|
||||
</f:MenuButton>
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue