Beispiel #1
0
 public CDFCompareForm(PredictionGroupsManager pgm, OtherSubSysInterface SubSysInterface)
 {
     this.InitializeComponent();
     this.m_PredictionGroupManager = pgm;
     this.m_SubSysInterface = SubSysInterface;
     this.cboStudy.SelectedIndex = 0;
     this.Init();
     this.m_PredictionStatisticsManager = new PredictionStatisticsManager((string) this.cboStudy.SelectedItem, this.m_pglist, this.m_IsShow, this.m_SubSysInterface, this.zgc);
     this.m_PredictionStatisticsManager.PredictionGroupManager = pgm;
     this.m_PredictionStatisticsManager.LineColor = this.m_Color;
     this.ShowCDF();
     this.cboStudy.SelectedIndexChanged += new EventHandler(this.cboStudy_SelectedIndexChanged);
     this.dgvGroup.CellContentClick += new DataGridViewCellEventHandler(this.dgvGroup_CellContentClick);
 }
 private void ExportStudyDataAsReport()
 {
     this.m_GroupPercentage = 0f;
     this.m_GroupArea = 0f;
     this.m_Group = this.m_PredictionGroupsManager.Find(this.m_TreeNode.Parent.Text);
     if (this.m_Group.IsCalSuccess)
     {
         PredictionStudy ps = this.m_PredictionGroupsManager.Find(this.m_Group, this.m_TreeNode.Text);
         this.psm = new PredictionStatisticsManager(ps, this.m_Group, this.m_SubSysInterface);
         this.dgvExpoertData.Rows.Add();
         this.dgvExpoertData.Rows[0].Cells["GroupNameOrLegend"].Value = this.m_Group.Name + "  " + Enum.GetName(typeof(PredictionStudyType), (int) ps.StudyType);
         this.dgvExpoertData.Rows[0].Cells["GroupNameOrLegend"].Style.Font = new Font("Arial", 11f, FontStyle.Bold);
         this.m_Index++;
         this.ExportStudyDataDisplay(this.m_Group, ps);
         this.dgvExpoertData.Rows[0].Cells["CoverArea"].Value = this.m_GroupArea;
         this.dgvExpoertData.Rows[0].Cells["CoverArea"].Style.Font = new Font("", 10f, FontStyle.Bold);
         if (this.m_GroupPercentage > 0.9999f)
         {
             this.m_GroupPercentage = 1f;
         }
         this.dgvExpoertData.Rows[0].Cells["Percentage"].Value = (this.m_GroupPercentage * 100f) + "%";
         this.dgvExpoertData.Rows[0].Cells["Percentage"].Style.Font = new Font("", 10f, FontStyle.Bold);
     }
 }
 private void ExportGroupDataDisplay()
 {
     foreach (PredictionStudy study in this.m_Group.StudyList)
     {
         this.m_GroupPercentage = 0f;
         this.m_GroupArea = 0f;
         this.dgvExpoertData.Rows.Add();
         int index = this.m_Index;
         this.dgvExpoertData.Rows[this.m_Index].Cells["GroupNameOrLegend"].Value = this.m_Group.Name + "  " + Enum.GetName(typeof(PredictionStudyType), (int) study.StudyType);
         this.dgvExpoertData.Rows[this.m_Index].Cells["GroupNameOrLegend"].Style.Font = new Font("Arial", 11f, FontStyle.Bold);
         this.m_Index++;
         this.psm = new PredictionStatisticsManager(study, this.m_Group, this.m_SubSysInterface);
         this.ExportStudyDataDisplay(this.m_Group, study);
         this.dgvExpoertData.Rows[index].Cells["CoverArea"].Value = this.m_GroupArea;
         this.dgvExpoertData.Rows[index].Cells["CoverArea"].Style.Font = new Font("Arial", 15f, FontStyle.Bold);
         if (this.m_GroupPercentage > 0.9999f)
         {
             this.m_GroupPercentage = 1f;
         }
         this.dgvExpoertData.Rows[index].Cells["Percentage"].Value = (this.m_GroupPercentage * 100f) + "%";
         this.dgvExpoertData.Rows[index].Cells["Percentage"].Style.Font = new Font("Arial", 15f, FontStyle.Bold);
     }
 }
 private void ExportOneGroupDataAsReport(PredictionGroup group)
 {
     List<PredictionStudy> list;
     this.m_Filter.TryGetValue(group, out list);
     if ((list != null) && (list.Count != 0))
     {
         this.m_Group = group;
         foreach (PredictionStudy study in list)
         {
             this.m_GroupPercentage = 0f;
             this.m_GroupArea = 0f;
             this.dgvExpoertData.Rows.Add();
             int index = this.m_Index;
             this.dgvExpoertData.Rows[this.m_Index].Cells["GroupNameOrLegend"].Value = group.Name + "  " + study.StudyType.ToString();
             this.dgvExpoertData.Rows[this.m_Index].Cells["GroupNameOrLegend"].Style.Font = new Font("Arial", 11f, FontStyle.Bold);
             this.psm = new PredictionStatisticsManager(study, group, this.m_SubSysInterface);
             this.m_Index++;
             this.ExportStudyDataDisplay(group, study);
             this.dgvExpoertData.Rows[index].Cells["CoverArea"].Value = this.m_GroupArea;
             this.dgvExpoertData.Rows[index].Cells["CoverArea"].Style.Font = new Font("", 10f, FontStyle.Bold);
             if (this.m_GroupPercentage > 0.9999f)
             {
                 this.m_GroupPercentage = 1f;
             }
             this.dgvExpoertData.Rows[index].Cells["Percentage"].Value = (this.m_GroupPercentage * 100f) + "%";
             this.dgvExpoertData.Rows[index].Cells["Percentage"].Style.Font = new Font("", 10f, FontStyle.Bold);
         }
         this.m_Group = null;
     }
 }
 private void ExportOneGroupDataAsReport()
 {
     int num = 0;
     this.m_GroupPercentage = 0f;
     this.m_GroupArea = 0f;
     this.dgvExpoertData.Rows.Add();
     this.dgvExpoertData.Rows[this.m_Index].Cells["GroupNameOrLegend"].Value = this.m_PredictionGroup.Name + "  DL_RSRP";
     this.dgvExpoertData.Rows[this.m_Index].Cells["GroupNameOrLegend"].Style.Font = new Font("Arial", 11f, FontStyle.Bold);
     this.m_Index++;
     if (this.m_study != null)
     {
         this.psm = new PredictionStatisticsManager(this.m_study, this.m_PredictionGroup, this.m_SubSysInterface);
     }
     else
     {
         this.psm = new PredictionStatisticsManager(this.m_PredictionGroup, this.m_SubSysInterface);
     }
     this.GetRSRPLegend();
     this.dgvExpoertData.Rows[num].Cells["CoverArea"].Value = this.m_GroupArea;
     this.dgvExpoertData.Rows[num].Cells["CoverArea"].Style.Font = new Font("", 10f, FontStyle.Bold);
     if (this.m_GroupPercentage > 0.9999f)
     {
         this.m_GroupPercentage = 1f;
     }
     this.dgvExpoertData.Rows[num].Cells["Percentage"].Value = (this.m_GroupPercentage * 100f) + "%";
     this.dgvExpoertData.Rows[num].Cells["Percentage"].Style.Font = new Font("", 10f, FontStyle.Bold);
     this.dgvExpoertData.Rows[num].Cells["isExport"].Value = false;
     num++;
 }