protected void Page_Load(object sender, System.EventArgs e) { if (this.IsPostBack == false) { // 初始化页面语言 this.InitPageLanguage(this.languageComponent1, false); string strRptId = this.GetRequestParam("reportid"); if (strRptId == "") { throw new Exception("$Error_RequestUrlParameter_Lost"); } ReportViewFacade rptFacade = new ReportViewFacade(this.DataProvider); InitSecurityList(strRptId); object[] objTmps = rptFacade.GetRptViewEntryFolder(); if (objTmps != null) { RptViewEntry[] entityList = new RptViewEntry[objTmps.Length]; objTmps.CopyTo(entityList, 0); InitReportFolderList(entityList); } if (strRptId != "") { RptViewDesignMain rptMain = (RptViewDesignMain)rptFacade.GetRptViewDesignMain(strRptId); this.txtReportName.Text = rptMain.ReportName; if (rptMain != null && rptMain.ParentReportFolder != "") { this.drpReportFolder.SelectedValue = rptMain.ParentReportFolder; } } } }
protected void Page_Load(object sender, System.EventArgs e) { if (this.IsPostBack == false) { // 初始化页面语言 this.InitPageLanguage(this.languageComponent1, false); string strFileName = this.designView.UploadFileName; strFileName = strFileName.Substring(strFileName.LastIndexOf("\\") + 1); this.txtReportFile.Text = strFileName; this.txtReportName.Text = this.designView.DesignMain.ReportName; ////Modified by allen on 20081104 for change to FunctionGroup //BenQGuru.eMES.BaseSetting.UserFacade userFacade = new BenQGuru.eMES.BaseSetting.UserFacade(this.DataProvider); //object[] objGroup = userFacade.GetAllUserGroup(); BenQGuru.eMES.BaseSetting.SystemSettingFacade systemSetFacade = new BenQGuru.eMES.BaseSetting.SystemSettingFacade(this.DataProvider); object[] objGroup = systemSetFacade.GetAllFunctionGroup(); ////End Modified by allen on 20081104 for change to FunctionGroup ReportViewFacade rptFacade = new ReportViewFacade(this.DataProvider); RptViewReportSecurity[] rptSecurity = null; if (this.designView.DesignMain.ReportID != "") { rptSecurity = rptFacade.GetRptViewReportSecurityByReportId(this.designView.DesignMain.ReportID); } ////Modified by allen on 20081104 for change to FunctionGroup //this.rptSecuritySelect.InitData(objGroup, rptSecurity); this.rptSecuritySelect.InitFunctionGroupData(objGroup, rptSecurity); ////End Modified by allen on 20081104 for change to FunctionGroup object[] objTmps = rptFacade.GetRptViewEntryFolder(); if (objTmps != null) { RptViewEntry[] entityList = new RptViewEntry[objTmps.Length]; objTmps.CopyTo(entityList, 0); InitReportFolderList(entityList); } RptViewDesignMain rptMain = this.designView.DesignMain; if (rptMain != null && rptMain.ParentReportFolder != "") { this.drpReportFolder.SelectedValue = rptMain.ParentReportFolder; } if (this.drpReportFolder.Items.Count == 0) { this.cmdPublish.Disabled = true; this.cmdPublish.Attributes.Add("disabled", "disabled"); } } }
protected void Page_Load(object sender, System.EventArgs e) { if (this.IsPostBack == false) { // 初始化页面语言 this.InitPageLanguage(this.languageComponent1, false); InitReportList(); string strRptId = this.GetRequestParam("reportid"); ReportViewFacade rptFacade = new ReportViewFacade(this.DataProvider); InitSecurityList(strRptId); object[] objTmps = rptFacade.GetRptViewEntryFolder(); if (objTmps != null) { RptViewEntry[] entityList = new RptViewEntry[objTmps.Length]; objTmps.CopyTo(entityList, 0); InitReportFolderList(entityList); } if (strRptId != "") { RptViewDesignMain rptMain = (RptViewDesignMain)rptFacade.GetRptViewDesignMain(strRptId); this.drpReportName.SelectedValue = strRptId; this.drpReportName.Enabled = false; if (rptMain != null && rptMain.ParentReportFolder != "") { this.drpReportFolder.SelectedValue = rptMain.ParentReportFolder; } } if (this.drpReportFolder.Items.Count == 0 || this.drpReportName.Items.Count == 0) { this.cmdPublish.Disabled = true; this.cmdPublish.Attributes.Add("disabled", "disabled"); } } }