2025-03-27 15:05:14 +08:00

33 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace SuperMap.RealEstate.HighWay.Common
{
public partial class ReportDefault :SuperMap.RealEstate.Web.UI.PageValid
{
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
SuperMap.RealEstate.HighWay.Common.PageHelper.CreateHeaderStyle(this);
}
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack)
return;
if (Request["ReportXmlPath"] == null || Request["ReportXslPath"] == null)
{
throw new Exception("请设置ReportXmlPath | ReportXslPath报表路径!");
}
else
{
Xml1.TransformSource = Request["ReportXslPath"].ToString();
Xml1.DocumentSource ="/Temporary/Temp/HighWay/"+ Request["ReportXmlPath"].ToString();
//this.Response.Redirect("/Temporary/Temp/PropertyManage/" + Request["ReportXmlPath"] + "?r=" + Guid.NewGuid().ToString());
}
}
}
}