代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -364,25 +364,15 @@ namespace FineUIPro.Mobile.AttachFile
|
||||
info = new FileInfo(url);
|
||||
}
|
||||
var FiletExtension = Path.GetExtension(savedName);
|
||||
if (FiletExtension == ".docx" || FiletExtension == ".pdf")
|
||||
bool isSupportType = AttachFileService.IsSupportFileType(FiletExtension);
|
||||
if (isSupportType)
|
||||
{
|
||||
string httpUrl = BLL.AsposeWordHelper.WordToHtml(url);
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../AttachFile/Look.aspx?fileUrl={0}", httpUrl, "查看 -")));
|
||||
}
|
||||
else if (FiletExtension == ".txt")
|
||||
{
|
||||
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../AttachFile/Look.aspx?fileUrl={0}", url, "查看 -")));
|
||||
}
|
||||
else if (FiletExtension == ".xls")
|
||||
{
|
||||
string httpUrl = BLL.AsposeWordHelper.PriviewExcel(url);
|
||||
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../AttachFile/Look.aspx?fileUrl={0}", httpUrl, "查看 -")));
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("不支持预览", MessageBoxIcon.Warning);
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user