0414-001
This commit is contained in:
@@ -99,6 +99,10 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
{
|
||||
this.btnMenuEdit.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnDelete))
|
||||
{
|
||||
this.btnMenuDel.Hidden = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -109,7 +113,7 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuDelete_Click(object sender, EventArgs e)
|
||||
protected void btnMenuDel_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.DeleteData();
|
||||
}
|
||||
@@ -125,19 +129,13 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
||||
{
|
||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||
var user = BLL.UserService.GetUserByUserId(rowID);
|
||||
if (user != null)
|
||||
var gjsx = BLL.GJSXService.GetGJSXById(rowID);
|
||||
if (gjsx != null)
|
||||
{
|
||||
string cont = judgementDelete(rowID);
|
||||
if (string.IsNullOrEmpty(cont))
|
||||
{
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, user.UserCode, user.UserId, BLL.Const.GJSXMenuId, BLL.Const.BtnDelete);
|
||||
BLL.GJSXService.DeleteGJSXById(rowID);
|
||||
}
|
||||
else
|
||||
{
|
||||
strShowNotify += "人员:" + user.UserName + cont;
|
||||
}
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, gjsx.Detail, gjsx.GJSXID, BLL.Const.GJSXMenuId, BLL.Const.BtnDelete);
|
||||
BLL.GJSXItemService.DeleteGJSXMXByGJSXID(rowID);
|
||||
BLL.GJSXProcessService.DeleteProcess(rowID);
|
||||
BLL.GJSXService.DeleteGJSXById(rowID);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user