20250325 工作台
This commit is contained in:
@@ -200,6 +200,45 @@ namespace BLL
|
||||
|
||||
return htmlStr;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 工作台项目图片
|
||||
/// </summary>
|
||||
/// <param name="rootValue"></param>
|
||||
/// <param name="path"></param>
|
||||
/// <returns></returns>
|
||||
public static string ShowProjectImage(string rootValue, string path)
|
||||
{
|
||||
string htmlStr = string.Empty;
|
||||
if (!string.IsNullOrEmpty(path))
|
||||
{
|
||||
htmlStr = "<table runat='server' cellpadding='1' cellspacing='1' style=\"width: 100%\">";
|
||||
string[] arrStr = path.Split(new string[] { "," }, System.StringSplitOptions.RemoveEmptyEntries);
|
||||
for (int i = 0; i < arrStr.Length; i++)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(arrStr[i]))
|
||||
{
|
||||
string[] urlArray = arrStr[i].Split('\\');
|
||||
string scanUrl = string.Empty;
|
||||
for (int j = 0; j < urlArray.Length; j++)
|
||||
{
|
||||
scanUrl += urlArray[j] + "|";
|
||||
}
|
||||
|
||||
string url = rootValue + arrStr[i].Replace('\\', '/');
|
||||
string[] subUrl = url.Split('/');
|
||||
string fileName = subUrl[subUrl.Count() - 1];
|
||||
string newFileName = fileName.Substring(fileName.IndexOf("~") + 1);
|
||||
|
||||
htmlStr += "<tr><td style=\"width: 60%\" align=\"left\"><img width='30' height='30' src='" + url + "'></img><br/></td>";
|
||||
}
|
||||
}
|
||||
|
||||
htmlStr += "</table>";
|
||||
}
|
||||
|
||||
return htmlStr;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 附件上传
|
||||
|
||||
Reference in New Issue
Block a user