11
This commit is contained in:
@@ -66,7 +66,7 @@ namespace FineUIPro.Web.HJGL.DataIn
|
||||
}
|
||||
string fileUrl = initFullPath + BLL.Funs.GetNewFileName() + IsXls;
|
||||
this.FileExcel.PostedFile.SaveAs(fileUrl);
|
||||
RegionPanel1.IFrameUrl = "./DrawingRecognitionContent.aspx?fileUrl=" + fileUrl.Replace(rootPath,"");
|
||||
RegionPanel1.IFrameUrl = "./DrawingRecognitionContent.aspx?fileUrl=" + fileUrl.Replace(rootPath,"")+ "&fileName=" + FileExcel.FileName;
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
@@ -32,6 +32,18 @@ namespace FineUIPro.Web.HJGL.DataIn
|
||||
ViewState["URL"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string fileName
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["fileName"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["fileName"] = value;
|
||||
}
|
||||
}
|
||||
public string fileUrl
|
||||
{
|
||||
get
|
||||
@@ -86,7 +98,7 @@ namespace FineUIPro.Web.HJGL.DataIn
|
||||
URL = Funs.HJGLUrl + Request.Params["fileUrl"].Replace("\\", "/");
|
||||
string rootPath = Server.MapPath("~/");
|
||||
fileUrl = rootPath + Request.Params["fileUrl"];
|
||||
|
||||
fileName = Request.Params["fileName"];
|
||||
// 加载PDF文档
|
||||
|
||||
if (!File.Exists(fileUrl))
|
||||
@@ -604,11 +616,11 @@ namespace FineUIPro.Web.HJGL.DataIn
|
||||
/// </summary>
|
||||
private string GetUrlFileName()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(URL))
|
||||
if (!string.IsNullOrEmpty(fileName))
|
||||
{
|
||||
try
|
||||
{
|
||||
return System.IO.Path.GetFileNameWithoutExtension(URL);
|
||||
return System.IO.Path.GetFileNameWithoutExtension(fileName);
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user