提交当前本机整理版本
This commit is contained in:
@@ -71,4 +71,25 @@ namespace Lskj.Control
|
||||
if (index >= 0 && index - 1 >= 0)
|
||||
{
|
||||
FocusedColumn = PicUrlColumns[index - 1];
|
||||
|
||||
if (FocusedColumn.Tag != null && FocusedColumn.Tag is GridColumnModel columnModel)
|
||||
{
|
||||
string imageUrl = FocusedRow.Table.Columns.Contains(columnModel.FieldName) ? FocusedRow[columnModel.FieldName] + "" : "";
|
||||
if (string.IsNullOrEmpty(imageUrl))
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (!imageUrl.StartsWith("http"))
|
||||
{
|
||||
string oaUrl = SystemInfo.Instance.OAUrl.EndsWith("/") ? SystemInfo.Instance.OAUrl : $"{SystemInfo.Instance.OAUrl}/";
|
||||
imageUrl = $"{oaUrl}{imageUrl}";
|
||||
}
|
||||
if (columnModel.LabPicUrlImages.ContainsKey(imageUrl))
|
||||
{
|
||||
Image image = ((KeyValuePair<Image, Image>)columnModel.LabPicUrlImages[imageUrl]).Key;
|
||||
Picture = image;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user