/// <summary>
/// 获取附件中的文件
/// </summary>
/// <returns></returns>
public string GetFuJianPic(string FuJianStr)
{
TKF.Common.showinfo.ShowInfo("FuJianStr=========" + FuJianStr);
string PicStr = "";
JsonSerializerSettings jss = new JsonSerializerSettings();
jss.NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore;
FuJianJson[] __tags = JsonConvert.DeserializeObject<FuJianJson[]>(FuJianStr, jss);
if (__tags != null && __tags.Length > 0)
{
TKF.Common.showinfo.ShowInfo("__tags.Length=========" + __tags.Length);
foreach (FuJianJson tgg in __tags)
{
if (DataFormat.FormatNVarChar(tgg.ImgUrl).Trim() != "")
{
string re = DataFormat.FormatNVarChar(tgg.ImgUrl).Replace("%3a", ":");
PicStr += "<a target=\"_blank\" href=\"" + re + "\"><img alt=\"\" class=\"img_t\" style='width:100px;height:100px' src=\"" + re + "\" /></a>";
}
}
}
return PicStr;
}
public class FuJianJson
{
public int Id{get;set;}
public int Orders { get; set; }
public int Deleted { get; set; }
public int Size { get; set; }
public string ImgUrl { get; set; }
public int IsIndex { get; set; }
public string ImgTitle { get; set; }
public string ImgIntro { get; set; }
}