提交代码

This commit is contained in:
高飞 2025-03-18 11:47:01 +08:00
parent 90c8ddb7ab
commit a58f774e58
5 changed files with 68 additions and 32 deletions

Binary file not shown.

View File

@ -1417,39 +1417,51 @@ namespace FineUIPro.Web.HJGL.HotProessManage
if (attachFile1 != null)
{
string url = BLL.Funs.RootPath + attachFile1.AttachUrl;
if (File.Exists(url))
{
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;
if (File.Exists(url))
{
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;
if (File.Exists(url))
{
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;
if (File.Exists(url))
{
System.Drawing.Image image = System.Drawing.Image.FromFile(url);
if (image.Width > col16)
{
col16 = image.Width;
}
}
}
i++;
}
}
@ -1486,39 +1498,51 @@ namespace FineUIPro.Web.HJGL.HotProessManage
if (attachFile1 != null)
{
string url = BLL.Funs.RootPath + attachFile1.AttachUrl;
if (File.Exists(url))
{
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;
if (File.Exists(url))
{
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;
if (File.Exists(url))
{
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;
if (File.Exists(url))
{
System.Drawing.Image image = System.Drawing.Image.FromFile(url);
if (image.Height > height)
{
height = image.Height;
}
}
}
if (height > 0)
{
row.Height = (short)(height * 17);
@ -1598,27 +1622,39 @@ namespace FineUIPro.Web.HJGL.HotProessManage
if (attachFile1 != null)
{
string fp = BLL.Funs.RootPath + attachFile1.AttachUrl;
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;
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;
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;
if (File.Exists(fp))
{
byte[] fileBytes = File.ReadAllBytes(fp);
TryAddPicture(sheet, i, 16, fileBytes, PictureType.PNG);
}
}
i++;
}