Пример #1
0
 public void ShowOther()
 {
     Detector det = Integ.GetCurrentAcquireDetector();
     IDDMeasurementList measlist = new IDDMeasurementList();
     measlist.Init(mlist,
                 AssaySelector.MeasurementOption.verification,
                 goal: IDDMeasurementList.EndGoal.Reanalysis, lmonly: false, inspnum: "All", detector: det);
     if (measlist.bGood)
     {
         DialogResult = measlist.ShowDialog();
         if (DialogResult == DialogResult.OK)
         {
             Measurement m = measlist.GetSingleSelectedMeas();
             if (m == null)
                 return;
             det = m.Detector; // use detector as re-constructed from the original measurement
             // get the cycles for the selected measurement from the database, and add them to the current measurement
             CycleList cl = N.App.DB.GetCycles(det, m.MeasurementId, DetectorDefs.ConstructedSource.DB, m.AnalysisParams); // APluralityOfMultiplicityAnalyzers: // URGENT: get all the cycles associated with each analyzer, restoring into the correct key->result pair
             m.Add(cl);
             new IDDReanalysisAssay(m, det).ShowDialog();
         }
     }
     else
         DialogResult = DialogResult.None;
 }
Пример #2
0
        private void OKBtn_Click(object sender, EventArgs e)
        {
            List <INCCDB.IndexedResults> list = null;
            string inspnum = string.Copy(InspectionNumberComboBox.SelectedItem.ToString());

            if (string.Compare(inspnum, "All", true) == 0)
            {
                inspnum = "";
                list    = mlist;
            }
            else
            {
                list = mlist.FindAll(ir => (string.Compare(inspnum, ir.Campaign, true) == 0));
            }
            SaveAcquireState();
            IDDMeasurementList measlist = new IDDMeasurementList();

            measlist.TextReport = DisplayResultsInTextRadioButton.Checked;
            measlist.Init(list,
                          AssaySelector.MeasurementOption.unspecified,
                          lmonly: bLMOnly, goal: IDDMeasurementList.EndGoal.Report, inspnum: inspnum, detector: det);
            measlist.Sections = acq.review;
            if (measlist.bGood)
            {
                measlist.ShowDialog();
            }
            if (!DisplayResultsInTextRadioButton.Checked)
            {
                List <Measurement> mlist = measlist.GetSelectedMeas();
                foreach (Measurement m in mlist)
                {
                    new PlotSDTChart(m).Show();
                }
            }
        }
Пример #3
0
        public void ShowOther()
        {
            Detector           det      = Integ.GetCurrentAcquireDetector();
            IDDMeasurementList measlist = new IDDMeasurementList();

            measlist.Init(mlist,
                          AssaySelector.MeasurementOption.verification,
                          goal: IDDMeasurementList.EndGoal.Reanalysis, lmonly: false, inspnum: "All", detector: det);
            if (measlist.bGood)
            {
                DialogResult = measlist.ShowDialog();
                if (DialogResult == DialogResult.OK)
                {
                    Measurement m = measlist.GetSingleSelectedMeas();
                    if (m == null)
                    {
                        return;
                    }
                    det = m.Detector;                                                                                             // use detector as re-constructed from the original measurement
                    // get the cycles for the selected measurement from the database, and add them to the current measurement
                    CycleList cl = N.App.DB.GetCycles(det, m.MeasurementId, DetectorDefs.ConstructedSource.DB, m.AnalysisParams); // APluralityOfMultiplicityAnalyzers: // URGENT: get all the cycles associated with each analzyer, restoring into the correct key->result pair
                    m.Add(cl);
                    new IDDReanalysisAssay(m, det).ShowDialog();
                }
            }
            else
            {
                DialogResult = DialogResult.None;
            }
        }
Пример #4
0
        private void OKBtn_Click(object sender, EventArgs e)
        {
            //AssaySelector.MeasurementOption option =
            //    AssaySelector.MeasurementOption
            sel.InspectionNumber = InspectionNumComboBox.SelectedItem.ToString();
            sel.Start            = StartDateTimePicker.Value;
            sel.End = EndDateTimePicker.Value;
            List <INCCDB.IndexedResults> list = null;

            list = mlist.FindAll(ir => CheckForMeasIDMatch(ir));
            IDDMeasurementList measlist = new IDDMeasurementList();

            measlist.Init(list, option, IDDMeasurementList.EndGoal.Summary, false, sel.InspectionNumber);
            measlist.SetSummarySelections(sel); // does a pre-sort before display
            if (measlist.bGood)
            {
                measlist.ShowDialog();
            }
        }
Пример #5
0
 private void OKBtn_Click(object sender, EventArgs e)
 {
     if (CurrentDetectorRadioButton.Checked)
     {
         IDDSaveCampaignId f = new IDDSaveCampaignId();
         DialogResult      r = f.ShowDialog();
         if (r == DialogResult.OK)
         {
             string dest = UIIntegration.GetUsersFolder("Select Directory for Saving Measurement Data", string.Empty);
             if (string.IsNullOrEmpty(dest))
             {
                 return;
             }
             IDDMeasurementList measlist = new IDDMeasurementList();
             measlist.Init(f.FilteredList,
                           AssaySelector.MeasurementOption.unspecified,
                           lmonly: false, goal: IDDMeasurementList.EndGoal.Transfer, inspnum: f.inspnum, detector: f.det);
             DialogResult dr = DialogResult.None;
             if (measlist.bGood)
             {
                 measlist.ShowDialog();
             }
             dr = measlist.DialogResult;
             if (dr != DialogResult.OK)
             {
                 return;
             }
             List <Measurement> mlist = measlist.GetSelectedMeas();
             foreach (Measurement m in mlist)
             {
                 CycleList cl = NC.App.DB.GetCycles(f.det, m.MeasurementId, m.AcquireState.data_src);                         // APluralityOfMultiplicityAnalyzers: // URGENT: get all the cycles associated with each analyzer, restoring into the correct key->result pair
                 m.Cycles.AddRange(cl);
                 // NEXT: m.CFCyles for AAS not used for INCC6 created measurements, only INCC5 transfer measurements have them m.Add(c, i);
                 m.INCCAnalysisResults.TradResultsRec = NC.App.DB.ResultsRecFor(m.MeasurementId);
                 m.ReportRecalc();                         // dev note: not strictly from INCC5, but based on usage complaint from LANL
             }
             List <INCCTransferFile> itdl = INCCKnew.XFerFromMeasurements(mlist);
             foreach (INCCTransferFile itd in itdl)
             {
                 itd.Save(dest);
             }
         }
     }
     else if (AllDetectorsRadioButton.Checked)
     {
         string dest = UIIntegration.GetUsersFolder("Select Directory for Saving Measurement Data", string.Empty);
         if (string.IsNullOrEmpty(dest))
         {
             return;
         }
         List <Detector> l = NC.App.DB.Detectors;
         foreach (Detector det in l)
         {
             List <Measurement> mlist = NC.App.DB.MeasurementsFor(det.Id.DetectorId);
             foreach (Measurement m in mlist)
             {
                 CycleList cl = NC.App.DB.GetCycles(det, m.MeasurementId, m.AcquireState.data_src);                         // APluralityOfMultiplicityAnalyzers: // URGENT: get all the cycles associated with each analyzer, restoring into the correct key->result pair
                 m.Add(cl);
                 if (m.MeasOption == AssaySelector.MeasurementOption.rates)
                 {
                     return;
                 }
                 else
                 {
                     m.INCCAnalysisResults.TradResultsRec = NC.App.DB.ResultsRecFor(m.MeasurementId);
                 }
             }
             List <INCCTransferFile> itdl = INCCKnew.XFerFromMeasurements(mlist);
             foreach (INCCTransferFile itd in itdl)
             {
                 itd.Save(dest);
             }
         }
     }
 }
Пример #6
0
 private void OKBtn_Click(object sender, EventArgs e)
 {
     //AssaySelector.MeasurementOption option =
     //    AssaySelector.MeasurementOption
     sel.InspectionNumber = InspectionNumComboBox.SelectedItem.ToString();
     sel.Start = StartDateTimePicker.Value;
     sel.End = EndDateTimePicker.Value;
     List<INCCDB.IndexedResults> list = null;
     list = mlist.FindAll(ir => CheckForMeasIDMatch(ir));
     IDDMeasurementList measlist = new IDDMeasurementList();
     measlist.Init(list, option, IDDMeasurementList.EndGoal.Summary, false, sel.InspectionNumber);
     measlist.SetSummarySelections(sel); // does a pre-sort before display
     if (measlist.bGood)
         measlist.ShowDialog();
 }
Пример #7
0
 private void OKBtn_Click(object sender, EventArgs e)
 {
     List<INCCDB.IndexedResults> list = null;
     string inspnum = InspectionNumberComboBox.SelectedItem.ToString();
     if (string.Compare(inspnum,"All", true) == 0)
         list = mlist;
     else
         list = mlist.FindAll(ir => (string.Compare(inspnum,ir.Campaign, true) == 0));
     SaveAcquireState();
     IDDMeasurementList measlist = new IDDMeasurementList();
     measlist.TextReport = DisplayResultsInTextRadioButton.Checked;
     measlist.Init(list,
                 AssaySelector.MeasurementOption.verification,
                 goal: IDDMeasurementList.EndGoal.Report, lmonly:false, inspnum:inspnum, detector:det);
     measlist.Sections = acq.review;
     if (measlist.bGood)
         measlist.ShowDialog();
     if (!DisplayResultsInTextRadioButton.Checked)
     {
         List<Measurement> mlist = measlist.GetSelectedMeas();
         foreach (Measurement m in mlist)
         {
             new PlotSDTChart(m).Show();
         }
     }
 }
Пример #8
0
 private void OKBtn_Click(object sender, EventArgs e)
 {
     if (CurrentDetectorRadioButton.Checked)
     {
         IDDSaveCampaignId f = new IDDSaveCampaignId();
         DialogResult r = f.ShowDialog();
         if (r == DialogResult.OK)
         {
             string dest = UIIntegration.GetUsersFolder("Select Directory for Saving Measurement Data", string.Empty);
             if (string.IsNullOrEmpty(dest))
                 return;
             IDDMeasurementList measlist = new IDDMeasurementList();
             measlist.Init(f.FilteredList,
                     AssaySelector.MeasurementOption.unspecified,
                     lmonly: false, goal: IDDMeasurementList.EndGoal.Transfer, inspnum: f.inspnum, detector: f.det);
             DialogResult dr = DialogResult.None;
             if (measlist.bGood)
                 measlist.ShowDialog();
             dr = measlist.DialogResult;
             if (dr != DialogResult.OK)
                 return;
             List<Measurement> mlist = measlist.GetSelectedMeas();
             foreach (Measurement m in mlist)
             {
                 CycleList cl = NC.App.DB.GetCycles(f.det, m.MeasurementId, m.AcquireState.data_src); // APluralityOfMultiplicityAnalyzers: // URGENT: get all the cycles associated with each analyzer, restoring into the correct key->result pair
                 m.Cycles.AddRange(cl);
                 // NEXT: m.CFCyles for AAS not used for INCC6 created measurements, only INCC5 transfer measurements have them m.Add(c, i);
                 m.INCCAnalysisResults.TradResultsRec = NC.App.DB.ResultsRecFor(m.MeasurementId);
             }
             List<INCCTransferFile> itdl = INCCKnew.XFerFromMeasurements(mlist);
             foreach (INCCTransferFile itd in itdl)
             {
                 itd.Save(dest);
             }
         }
     }
     else if (AllDetectorsRadioButton.Checked)
     {
         string dest = UIIntegration.GetUsersFolder("Select Directory for Saving Measurement Data", string.Empty);
         if (string.IsNullOrEmpty(dest))
             return;
         List<Detector> l = NC.App.DB.Detectors;
         foreach (Detector det in l)
         {
             List<Measurement> mlist = NC.App.DB.MeasurementsFor(det.Id.DetectorId);
             foreach (Measurement m in mlist)
             {
                 CycleList cl = NC.App.DB.GetCycles(det, m.MeasurementId, m.AcquireState.data_src); // APluralityOfMultiplicityAnalyzers: // URGENT: get all the cycles associated with each analyzer, restoring into the correct key->result pair
                 m.Add(cl);
                 m.INCCAnalysisResults.TradResultsRec = NC.App.DB.ResultsRecFor(m.MeasurementId);
             }
             List<INCCTransferFile> itdl = INCCKnew.XFerFromMeasurements(mlist);
             foreach (INCCTransferFile itd in itdl)
             {
                 itd.Save(dest);
             }
         }
     }
 }