This commit is contained in:
2026-06-14 18:45:18 +08:00
parent 251e17facd
commit 7f14011663
2 changed files with 16 additions and 4 deletions
@@ -66,7 +66,7 @@ namespace FineUIPro.Web.HJGL.DataIn
} }
string fileUrl = initFullPath + BLL.Funs.GetNewFileName() + IsXls; string fileUrl = initFullPath + BLL.Funs.GetNewFileName() + IsXls;
this.FileExcel.PostedFile.SaveAs(fileUrl); 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) catch (Exception ex)
@@ -32,6 +32,18 @@ namespace FineUIPro.Web.HJGL.DataIn
ViewState["URL"] = value; ViewState["URL"] = value;
} }
} }
public string fileName
{
get
{
return (string)ViewState["fileName"];
}
set
{
ViewState["fileName"] = value;
}
}
public string fileUrl public string fileUrl
{ {
get get
@@ -86,7 +98,7 @@ namespace FineUIPro.Web.HJGL.DataIn
URL = Funs.HJGLUrl + Request.Params["fileUrl"].Replace("\\", "/"); URL = Funs.HJGLUrl + Request.Params["fileUrl"].Replace("\\", "/");
string rootPath = Server.MapPath("~/"); string rootPath = Server.MapPath("~/");
fileUrl = rootPath + Request.Params["fileUrl"]; fileUrl = rootPath + Request.Params["fileUrl"];
fileName = Request.Params["fileName"];
// 加载PDF文档 // 加载PDF文档
if (!File.Exists(fileUrl)) if (!File.Exists(fileUrl))
@@ -604,11 +616,11 @@ namespace FineUIPro.Web.HJGL.DataIn
/// </summary> /// </summary>
private string GetUrlFileName() private string GetUrlFileName()
{ {
if (!string.IsNullOrEmpty(URL)) if (!string.IsNullOrEmpty(fileName))
{ {
try try
{ {
return System.IO.Path.GetFileNameWithoutExtension(URL); return System.IO.Path.GetFileNameWithoutExtension(fileName);
} }
catch { } catch { }
} }