代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace FineUIPro.Mobile.AttachFile
|
||||
{
|
||||
@@ -12,19 +13,42 @@ namespace FineUIPro.Mobile.AttachFile
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
|
||||
var url = Request.Params["fileUrl"];
|
||||
var newurl = Funs.SGGLUrl + url.Replace(Funs.RootPath, "");
|
||||
this.LookHtml.Src = newurl;
|
||||
var Baseurl = "https://view.officeapps.live.com/op/embed.aspx?src=";
|
||||
// var Baseurl = "https://view.xdocin.com/view?src=";
|
||||
var Fileurl = Funs.SGGLUrl + url.Replace(Funs.RootPath, "");
|
||||
var newurl = "";
|
||||
var FiletExtension = Path.GetExtension(url);
|
||||
if (FiletExtension == ".docx" || FiletExtension == ".doc" || FiletExtension == ".xls" || FiletExtension == ".xlsx")
|
||||
{
|
||||
newurl = Baseurl + Fileurl;
|
||||
}
|
||||
else if (FiletExtension == ".txt" || FiletExtension == "pdf")
|
||||
{
|
||||
newurl = Fileurl;
|
||||
}
|
||||
else
|
||||
{
|
||||
newurl = Fileurl;
|
||||
}
|
||||
if (AttachFileService.IsImage(FiletExtension) && 1 > 2)
|
||||
{
|
||||
this.TabStrip1.Hidden = true;
|
||||
this.Image1.Hidden = false;
|
||||
this.Image1.ImageUrl = newurl;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.TabStrip1.Hidden = false;
|
||||
this.Image1.Hidden = true;
|
||||
this.LookHtml.Src = newurl;
|
||||
this.Tab1.IFrameUrl = newurl;
|
||||
}
|
||||
//StreamReader fread = new StreamReader(url, System.Text.Encoding.GetEncoding("gb2312"));
|
||||
//string ss = fread.ReadToEnd();
|
||||
//Response.Write(ss);
|
||||
//fread.Close();
|
||||
//fread.Dispose();
|
||||
|
||||
// Response.Redirect(url);
|
||||
//Process process = new Process();
|
||||
//process.StartInfo.UseShellExecute = true;
|
||||
//process.StartInfo.FileName = url;
|
||||
//process.Start();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user