20250325 工作台

This commit is contained in:
2025-03-25 15:57:55 +08:00
parent 15bbe21c67
commit ca68870f10
39 changed files with 14178 additions and 95 deletions
@@ -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