提交代码
This commit is contained in:
parent
90c8ddb7ab
commit
a58f774e58
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue