using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace SuperMap.RealEstate.Contract.Common { public partial class ReportDefault :SuperMap.RealEstate.Web.UI.PageValid { protected override void OnInit(EventArgs e) { base.OnInit(e); 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/Contract/" + Request["ReportXmlPath"].ToString(); } } } }