diff --git a/HJGL_DS/.vs/SGGL/v15/.suo b/HJGL_DS/.vs/SGGL/v15/.suo index 51b7b70..350198f 100644 Binary files a/HJGL_DS/.vs/SGGL/v15/.suo and b/HJGL_DS/.vs/SGGL/v15/.suo differ diff --git a/HJGL_DS/.vs/SGGL/v15/Server/sqlite3/storage.ide b/HJGL_DS/.vs/SGGL/v15/Server/sqlite3/storage.ide index a6ec2a9..89474d8 100644 Binary files a/HJGL_DS/.vs/SGGL/v15/Server/sqlite3/storage.ide and b/HJGL_DS/.vs/SGGL/v15/Server/sqlite3/storage.ide differ diff --git a/HJGL_DS/.vs/SGGL/v15/Server/sqlite3/storage.ide-shm b/HJGL_DS/.vs/SGGL/v15/Server/sqlite3/storage.ide-shm index 56927bc..bc53c42 100644 Binary files a/HJGL_DS/.vs/SGGL/v15/Server/sqlite3/storage.ide-shm and b/HJGL_DS/.vs/SGGL/v15/Server/sqlite3/storage.ide-shm differ diff --git a/HJGL_DS/.vs/SGGL/v15/Server/sqlite3/storage.ide-wal b/HJGL_DS/.vs/SGGL/v15/Server/sqlite3/storage.ide-wal index ff00cc6..18826ff 100644 Binary files a/HJGL_DS/.vs/SGGL/v15/Server/sqlite3/storage.ide-wal and b/HJGL_DS/.vs/SGGL/v15/Server/sqlite3/storage.ide-wal differ diff --git a/HJGL_DS/FineUIPro.Web/HJGL/HotProessManage/HotProessManageEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/HotProessManage/HotProessManageEdit.aspx.cs index 5137bba..d737a2e 100644 --- a/HJGL_DS/FineUIPro.Web/HJGL/HotProessManage/HotProessManageEdit.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/HJGL/HotProessManage/HotProessManageEdit.aspx.cs @@ -1417,37 +1417,49 @@ namespace FineUIPro.Web.HJGL.HotProessManage if (attachFile1 != null) { string url = BLL.Funs.RootPath + attachFile1.AttachUrl; - System.Drawing.Image image = System.Drawing.Image.FromFile(url); - if (image.Width > col13) + if (File.Exists(url)) { - col13 = image.Width; + System.Drawing.Image image = System.Drawing.Image.FromFile(url); + if (image.Width > col13) + { + col13 = image.Width; + } } } if (attachFile2 != null) { string url = BLL.Funs.RootPath + attachFile2.AttachUrl; - System.Drawing.Image image = System.Drawing.Image.FromFile(url); - if (image.Width > col14) + if (File.Exists(url)) { - col14 = image.Width; + System.Drawing.Image image = System.Drawing.Image.FromFile(url); + if (image.Width > col14) + { + col14 = image.Width; + } } } if (attachFile3 != null) { string url = BLL.Funs.RootPath + attachFile3.AttachUrl; - System.Drawing.Image image = System.Drawing.Image.FromFile(url); - if (image.Width > col15) + if (File.Exists(url)) { - col15 = image.Width; + System.Drawing.Image image = System.Drawing.Image.FromFile(url); + if (image.Width > col15) + { + col15 = image.Width; + } } } if (attachFile4 != null) { string url = BLL.Funs.RootPath + attachFile4.AttachUrl; - System.Drawing.Image image = System.Drawing.Image.FromFile(url); - if (image.Width > col16) + if (File.Exists(url)) { - col16 = image.Width; + System.Drawing.Image image = System.Drawing.Image.FromFile(url); + if (image.Width > col16) + { + col16 = image.Width; + } } } i++; @@ -1486,37 +1498,49 @@ namespace FineUIPro.Web.HJGL.HotProessManage if (attachFile1 != null) { string url = BLL.Funs.RootPath + attachFile1.AttachUrl; - System.Drawing.Image image = System.Drawing.Image.FromFile(url); - if (image.Height > height) + if (File.Exists(url)) { - height = image.Height; + System.Drawing.Image image = System.Drawing.Image.FromFile(url); + if (image.Height > height) + { + height = image.Height; + } } } if (attachFile2 != null) { string url = BLL.Funs.RootPath + attachFile2.AttachUrl; - System.Drawing.Image image = System.Drawing.Image.FromFile(url); - if (image.Height > height) + if (File.Exists(url)) { - height = image.Height; + System.Drawing.Image image = System.Drawing.Image.FromFile(url); + if (image.Height > height) + { + height = image.Height; + } } } if (attachFile3 != null) { string url = BLL.Funs.RootPath + attachFile3.AttachUrl; - System.Drawing.Image image = System.Drawing.Image.FromFile(url); - if (image.Height > height) + if (File.Exists(url)) { - height = image.Height; + System.Drawing.Image image = System.Drawing.Image.FromFile(url); + if (image.Height > height) + { + height = image.Height; + } } } if (attachFile4 != null) { string url = BLL.Funs.RootPath + attachFile4.AttachUrl; - System.Drawing.Image image = System.Drawing.Image.FromFile(url); - if (image.Height > height) + if (File.Exists(url)) { - height = image.Height; + System.Drawing.Image image = System.Drawing.Image.FromFile(url); + if (image.Height > height) + { + height = image.Height; + } } } if (height > 0) @@ -1598,26 +1622,38 @@ namespace FineUIPro.Web.HJGL.HotProessManage if (attachFile1 != null) { string fp = BLL.Funs.RootPath + attachFile1.AttachUrl; - byte[] fileBytes = File.ReadAllBytes(fp); - TryAddPicture(sheet, i, 13, fileBytes, PictureType.PNG); + if (File.Exists(fp)) + { + byte[] fileBytes = File.ReadAllBytes(fp); + TryAddPicture(sheet, i, 13, fileBytes, PictureType.PNG); + } } if (attachFile2 != null) { string fp = BLL.Funs.RootPath + attachFile2.AttachUrl; - byte[] fileBytes = File.ReadAllBytes(fp); - TryAddPicture(sheet, i, 14, fileBytes, PictureType.PNG); + if (File.Exists(fp)) + { + byte[] fileBytes = File.ReadAllBytes(fp); + TryAddPicture(sheet, i, 14, fileBytes, PictureType.PNG); + } } if (attachFile3 != null) { string fp = BLL.Funs.RootPath + attachFile3.AttachUrl; - byte[] fileBytes = File.ReadAllBytes(fp); - TryAddPicture(sheet, i, 15, fileBytes, PictureType.PNG); + if (File.Exists(fp)) + { + byte[] fileBytes = File.ReadAllBytes(fp); + TryAddPicture(sheet, i, 15, fileBytes, PictureType.PNG); + } } if (attachFile4 != null) { string fp = BLL.Funs.RootPath + attachFile4.AttachUrl; - byte[] fileBytes = File.ReadAllBytes(fp); - TryAddPicture(sheet, i, 16, fileBytes, PictureType.PNG); + if (File.Exists(fp)) + { + byte[] fileBytes = File.ReadAllBytes(fp); + TryAddPicture(sheet, i, 16, fileBytes, PictureType.PNG); + } } i++;