diff --git a/SGGL/FineUIPro.Web/AttachFile/webuploader.aspx.cs b/SGGL/FineUIPro.Web/AttachFile/webuploader.aspx.cs index 4d5fc9b1..259e24ed 100644 --- a/SGGL/FineUIPro.Web/AttachFile/webuploader.aspx.cs +++ b/SGGL/FineUIPro.Web/AttachFile/webuploader.aspx.cs @@ -570,6 +570,7 @@ namespace FineUIPro.Web.AttachFile } File.Delete(Server.MapPath("~/" + attachUrl)); BLL.LogService.AddSys_Log(this.CurrUser, "删除附件!", null, this.MenuId, BLL.Const.BtnDelete); + } catch (Exception) { @@ -580,6 +581,27 @@ namespace FineUIPro.Web.AttachFile } } Session[sessionName] = source; + + //删除附件后,修改附件表数据 + string attachUrlNew = string.Empty; + for (int i = 0, count = source.Count; i < count; i++) + { + JObject item = source[i] as JObject; + if (!string.IsNullOrEmpty(item.Value("folder"))) + { + attachUrlNew += item.Value("folder") + item.Value("savedName") + ","; + } + else + { + attachUrlNew += AttachPath + "/" + DateTime.Now.ToString("yyyy-MM") + "/" + item.Value("savedName") + ","; + } + } + if (!string.IsNullOrEmpty(attachUrlNew)) + { + attachUrlNew = attachUrlNew.Substring(0, attachUrlNew.LastIndexOf(",")).Replace('\\', '/'); + } + ///保存方法 + this.SaveData(source.ToString(), attachUrlNew); } #region 读Excel提取数据 diff --git a/SGGL/FineUIPro.Web/Web.config b/SGGL/FineUIPro.Web/Web.config index dad486f4..6c177656 100644 --- a/SGGL/FineUIPro.Web/Web.config +++ b/SGGL/FineUIPro.Web/Web.config @@ -1,4 +1,4 @@ - + -
+
- + - - - - - + + + + + - - - - + + + + - + - + - - - + + + - + - + - + - - + + - + - + - - - + + + - - + + - - + + - + - + - - + + - - + + - - - + + + - + - + - - + + - + - - - + + + - - - + + + - + - + - - + + - + - + - - - - + + + + - + - + - - + + - - + + @@ -179,24 +179,24 @@ - - + + - - + + - - + + - - + + - - + + diff --git a/SGGL/FineUIPro.Web/common/Menu_HSSE.xml b/SGGL/FineUIPro.Web/common/Menu_HSSE.xml index 7470816f..db103972 100644 --- a/SGGL/FineUIPro.Web/common/Menu_HSSE.xml +++ b/SGGL/FineUIPro.Web/common/Menu_HSSE.xml @@ -25,6 +25,7 @@ + @@ -89,13 +90,10 @@ - - + - - - - + + @@ -121,7 +119,8 @@ - + + diff --git a/SGGL/FineUIPro.Web/common/Menu_Personal.xml b/SGGL/FineUIPro.Web/common/Menu_Personal.xml index 2854ffd9..a9d07855 100644 --- a/SGGL/FineUIPro.Web/common/Menu_Personal.xml +++ b/SGGL/FineUIPro.Web/common/Menu_Personal.xml @@ -6,4 +6,7 @@ + + + \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/common/Menu_TestRun.xml b/SGGL/FineUIPro.Web/common/Menu_TestRun.xml index f8b9fc63..ab8cb41e 100644 --- a/SGGL/FineUIPro.Web/common/Menu_TestRun.xml +++ b/SGGL/FineUIPro.Web/common/Menu_TestRun.xml @@ -46,12 +46,12 @@ - - - + + + + - @@ -119,8 +119,8 @@ - + + - \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/common/Menu_Transfer.xml b/SGGL/FineUIPro.Web/common/Menu_Transfer.xml index 3abd6e40..283e3429 100644 --- a/SGGL/FineUIPro.Web/common/Menu_Transfer.xml +++ b/SGGL/FineUIPro.Web/common/Menu_Transfer.xml @@ -3,4 +3,17 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/common/Menu_ZHGL.xml b/SGGL/FineUIPro.Web/common/Menu_ZHGL.xml index d4c4638d..73660045 100644 --- a/SGGL/FineUIPro.Web/common/Menu_ZHGL.xml +++ b/SGGL/FineUIPro.Web/common/Menu_ZHGL.xml @@ -85,4 +85,8 @@ + + + + \ No newline at end of file