Switch warehouse matching to use IDs
This commit is contained in:
@@ -6,6 +6,7 @@ using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
{
|
||||
@@ -402,13 +403,21 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
|
||||
protected string ConvertImageUrlByImage(object photoUrl)
|
||||
{
|
||||
string url = string.Empty;
|
||||
if (photoUrl != null)
|
||||
if (photoUrl == null || string.IsNullOrEmpty(photoUrl.ToString()))
|
||||
{
|
||||
url = BLL.UploadAttachmentService.ShowImage("../../", photoUrl.ToString());
|
||||
|
||||
return string.Empty;
|
||||
}
|
||||
return url;
|
||||
|
||||
string htmlStr = "<table runat='server' cellpadding='5' cellspacing='5' style=\"width: 100%\">";
|
||||
foreach (string item in photoUrl.ToString().Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries))
|
||||
{
|
||||
string imageUrl = "../../" + item.Replace('\\', '/');
|
||||
// 日报表格图片只用于本页放大预览,不包跳转链接,避免点击时打开新标签页。
|
||||
htmlStr += "<tr><td style=\"width: 60%\" align=\"left\"><img class='img' width='100' height='100' src='"
|
||||
+ HttpUtility.HtmlAttributeEncode(imageUrl) + "'></img></td></tr>";
|
||||
}
|
||||
htmlStr += "</table>";
|
||||
return htmlStr;
|
||||
}
|
||||
|
||||
#region 焊接日报 维护事件
|
||||
|
||||
Reference in New Issue
Block a user