예제 #1
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();
                }
            }
        }
예제 #2
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;
 }
예제 #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)
 {
     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);
             }
         }
     }
 }
예제 #5
0
        private void OKBtn_Click(object sender, EventArgs e)
        {
            /*if (acq.modified)
             *  NC.App.DB.UpdateAcquireParams(det);
             * IDDReviewCalibrationMeas dlg = new IDDReviewCalibrationMeas();
             * DialogResult result = dlg.ShowDialog();*/
            IDDMeasurementList measlist = new IDDMeasurementList("Calibration");

            measlist.ShowDialog();
        }
예제 #6
0
        private void OKBtn_Click(object sender, EventArgs e)
        {
            SaveAcquireState();
            IDDMeasurementList measlist = new IDDMeasurementList(
                AssaySelector.MeasurementOption.holdup,
                alltypes: false, goal: IDDMeasurementList.EndGoal.Report, detector: det);

            measlist.Sections = acq.review;
            if (measlist.bGood)
            {
                measlist.ShowDialog();
            }
        }
예제 #7
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();
            }
        }
예제 #8
0
        private void OKBtn_Click(object sender, EventArgs e)
        {
            SaveAcquireState();
            IDDMeasurementList measlist = new IDDMeasurementList(
                AssaySelector.MeasurementOption.calibration,
                alltypes: false, goal: IDDMeasurementList.EndGoal.Report, detector: det);

            measlist.TextReport = DisplayResultsInTextRadioButton.Checked;
            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();
                }
            }
        }
예제 #9
0
        private void FromDB_Click(object sender, EventArgs e)
        {
            DialogResult dlg = DialogResult.Cancel;
            List<AssaySelector.MeasurementOption> list = new List<AssaySelector.MeasurementOption>();
            list.Add(AssaySelector.MeasurementOption.rates);
            list.Add(AssaySelector.MeasurementOption.verification);
            IDDMeasurementList select = new IDDMeasurementList(list, false, IDDMeasurementList.EndGoal.GetSelection, Integ.GetCurrentAcquireDetector (), ap.ItemId);
            dlg = select.ShowDialog();
            if (dlg == DialogResult.OK)
            {
                //Get the selected measurement
                passive = select.GetCurrentSelection();

            }

            if (passive != null)
            {
                TransferCounts(passive);
                passive.Persist();

            }

        }
예제 #10
0
 private void OKBtn_Click(object sender, EventArgs e)
 {
     IDDMeasurementList measlist = new IDDMeasurementList("InitialSource");
     measlist.ShowDialog();
 }
예제 #11
0
 private void OKBtn_Click(object sender, EventArgs e)
 {
     IDDMeasurementList measlist = new IDDMeasurementList("Verification");
     measlist.ShowDialog();
 }
예제 #12
0
 private void OKBtn_Click(object sender, EventArgs e)
 {
     SaveAcquireState();
     IDDMeasurementList measlist = new IDDMeasurementList(
         AssaySelector.MeasurementOption.precision,
         alltypes: false, goal: IDDMeasurementList.EndGoal.Report, detector: det);
     measlist.TextReport = DisplayResultsInTextRadioButton.Checked;
     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();
         }
     }
 }
예제 #13
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();
 }
예제 #14
0
        private void OKBtn_Click(object sender, EventArgs e)
        {
            IDDMeasurementList measlist = new IDDMeasurementList("Hold Up");

            measlist.ShowDialog();
        }
예제 #15
0
 private void OKBtn_Click(object sender, EventArgs e)
 {
     /*if (acq.modified)
         NC.App.DB.UpdateAcquireParams(det); 
     IDDReviewCalibrationMeas dlg = new IDDReviewCalibrationMeas();
     DialogResult result = dlg.ShowDialog();*/
     IDDMeasurementList measlist = new IDDMeasurementList("Calibration");
     measlist.ShowDialog();
 }
예제 #16
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);
             }
         }
     }
 }
예제 #17
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();
         }
     }
 }
예제 #18
0
 private void OKBtn_Click(object sender, EventArgs e)
 {
     IDDMeasurementList measlist = new IDDMeasurementList("Background");
     measlist.ShowDialog();
 }
예제 #19
0
 private void OKBtn_Click(object sender, EventArgs e)
 {
     SaveAcquireState();
     IDDMeasurementList measlist = new IDDMeasurementList(
         AssaySelector.MeasurementOption.holdup,
         alltypes: false, goal: IDDMeasurementList.EndGoal.Report, detector: det);
     measlist.Sections = acq.review;
     if (measlist.bGood)
         measlist.ShowDialog();
 }