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"); } } }
private void InitSecurityList(string strRptId) { ////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 = rptFacade.GetRptViewReportSecurityByReportId(strRptId); ////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 }