This commit is contained in:
gaofei
2022-04-14 11:15:34 +08:00
parent 274010da92
commit 8e73412eb6
49 changed files with 1609 additions and 2301 deletions
+11 -13
View File
@@ -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);
}
}