Exemplo n.º 1
0
 protected void ServerListResetButton_Click(object sender, EventArgs e)
 {
     this.ServerListFilterListBox.UnselectAll();
     this.ServerTypeFilterListBox.UnselectAll();
     fillcombo("");
     DashboardReports.DominoDiskSpaceXtraRpt report = new DashboardReports.DominoDiskSpaceXtraRpt();
     report.Parameters["ServerName"].Value = "";
     report.Parameters["ServerType"].Value = "";
     report.CreateDocument();
     ASPxDocumentViewer1.Report = report;
     ASPxDocumentViewer1.DataBind();
 }
Exemplo n.º 2
0
        public void Report()
        {
            string selectedServer = "";

            if (this.ServerFilterTextBox.Text != "")
            {
                selectedServer = this.ServerFilterTextBox.Text;
            }
            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 { }
            }
            //2/6/2015 NS added for VSPLUS-1370
            if (this.ServerTypeFilterListBox.SelectedItems.Count > 0)
            {
                selectedType = "";
                for (int i = 0; i < this.ServerTypeFilterListBox.SelectedItems.Count; i++)
                {
                    selectedType += "'" + this.ServerTypeFilterListBox.SelectedItems[i].Text + "'" + ",";
                }
                try
                {
                    selectedType = selectedType.Substring(0, selectedType.Length - 1);
                }
                catch
                {
                    selectedType = "";     // throw ex;
                }
                finally { }
            }
            DashboardReports.DominoDiskSpaceXtraRpt report = new DashboardReports.DominoDiskSpaceXtraRpt();
            report.Parameters["ServerName"].Value = selectedServer;
            //2/6/2015 NS added for VSPLUS-1370
            report.Parameters["ServerType"].Value = selectedType;
            report.CreateDocument();
            ASPxDocumentViewer1.Report = report;
            ASPxDocumentViewer1.DataBind();
        }
Exemplo n.º 3
0
        public void SetGraphForDiskSpace(string serverName, DashboardReports.DominoDiskSpaceXtraRpt report)
        {
            DataTable dt = VSWebBL.DashboardBL.DominoServerDetailsBL.Ins.SetGraphForDiskSpace(serverName, "",
                                                                                              this.ServerType.Value.ToString());

            DiskSpaceChart.Series[0].DataSource         = dt;
            DiskSpaceChart.Series[0].ArgumentDataMember = dt.Columns["DiskName"].ToString();
            DiskSpaceChart.Series[0].ValueDataMembers.AddRange(dt.Columns["DiskUsed"].ToString());
            DiskSpaceChart.Series[0].Visible            = true;
            DiskSpaceChart.Series[1].DataSource         = dt;
            DiskSpaceChart.Series[1].ArgumentDataMember = dt.Columns["DiskName"].ToString();
            DiskSpaceChart.Series[1].ValueDataMembers.AddRange(dt.Columns["DiskFree"].ToString());
            DiskSpaceChart.Series[1].Visible = true;
        }