コード例 #1
0
        public void FillReport()
        {
            string selectedServer = "";

            if (this.ServerListFilterListBox.SelectedItems.Count > 0)
            {
                selectedServer = "";
                for (int i = 0; i < this.ServerListFilterListBox.SelectedItems.Count; i++)
                {
                    selectedServer += "'" + this.ServerListFilterListBox.SelectedItems[i].Text + "'" + ",";
                }
                try
                {
                    selectedServer = selectedServer.Substring(0, selectedServer.Length - 1);
                }
                catch
                {
                    selectedServer = "";     // throw ex;
                }
                finally { }
            }
            DashboardReports.DailyMailVolumeXtraRpt report = new DashboardReports.DailyMailVolumeXtraRpt();
            report.Parameters["ServerName"].Value = selectedServer;
            //12/18/2015 NS added for VSPLUS-2291
            report.Parameters["RptType"].Value = DailyMonthlyRadioButtonList.SelectedItem.Value.ToString();
            //26/4/2016 Durga Modified for VSPLUS-2883
            report.Parameters["ServerType"].Value = TypeComboBox.Text;
            report.CreateDocument();
            ASPxDocumentViewer1.Report = report;
            ASPxDocumentViewer1.DataBind();
        }
コード例 #2
0
 protected void ServerListResetButton_Click(object sender, EventArgs e)
 {
     //this.ServerListFilterComboBox.SelectedIndex = -1;
     this.ServerListFilterListBox.UnselectAll();
     DashboardReports.DailyMailVolumeXtraRpt report = new DashboardReports.DailyMailVolumeXtraRpt();
     report.Parameters["ServerName"].Value = "";
     report.CreateDocument();
     ASPxDocumentViewer1.Report = report;
     ASPxDocumentViewer1.DataBind();
 }