示例#1
0
        protected void ConstructContextContent(INCCStyleSection sec, Detector det)
        {
            sec.AddTwo("Facility:", meas.AcquireState.facility.Name);
            sec.AddTwo("Material balance area:", meas.AcquireState.mba.Name);
            sec.AddTwo("Detector type:", det.Id.Type); // todo: revisit this, there can be multiple detectors because there can be multiple physical and virtual SR Params used to create results
            sec.AddTwo("Detector id:", det.Id.DetectorId);
            sec.AddTwo("Electronics id:", det.Id.ElectronicsId);
            sec.AddTwo("Inventory change code:", meas.AcquireState.inventory_change_code);
            sec.AddTwo("I/O code:", meas.AcquireState.io_code);
            sec.AddTwo("Measurement date:", meas.MeasDate.ToString("yy.MM.dd     HH:mm:ss"));
            sec.AddTwo("Results file name:", meas.INCCResultsFileNames[meas.INCCResultsFileNames.Count - 1]);
            sec.AddTwo("Inspection number:", meas.AcquireState.campaign_id);

            if (AssaySelector.ForMass(meas.MeasOption) || meas.MeasOption == AssaySelector.MeasurementOption.rates)
            {
                /* item id only if an assay, calibration, holdup or rates only */
                //todo: need to check why item_id not stored in Measurement object directly....hn 5.14.2015
                // it is located on the AcquireParameters
                sec.AddTwo("Item id:", meas.AcquireState.item_id); // or       sec.AddTwo("Item id:",m.AcquireState.item);
            }
            if (AssaySelector.HasStratum(meas.MeasOption))
            {
                sec.AddTwo("Stratum id:", meas.AcquireState.stratum_id.Name);
                if (meas.Stratum != null)
                {
                    sec.AddTwo("Bias uncertainty:", meas.Stratum.bias_uncertainty);
                    sec.AddTwo("Random uncertainty:", meas.Stratum.random_uncertainty);
                    sec.AddTwo("Systematic uncertainty:", meas.Stratum.systematic_uncertainty);
                    sec.AddTwo("Relative std deviation:", meas.Stratum.relative_std_dev);
                }
                else
                {
                    sec.AddTwo("Bias uncertainty:", "0.0000");
                    sec.AddTwo("Random uncertainty:", "0.0000");
                    sec.AddTwo("Systematic uncertainty:", "0.0000");
                    sec.AddTwo("Relative std deviation:", "0.0000");
                }
            }
            if (AssaySelector.ForMass(meas.MeasOption))
            {
                sec.AddTwo("Material type:", meas.AcquireState.item_type);
                sec.AddTwo("Original declared mass:", meas.AcquireState.mass);
            }
            sec.AddTwo("Measurement option:", meas.MeasOption.PrintName());
            if (AssaySelector.DougsBasics(meas.MeasOption))
            {           /* well configuration */
                sec.AddTwo("Detector configuration:", meas.AcquireState.well_config.ToString());
            }
            sec.AddTwo("Data source:", det.Id.source.ToString());
            sec.AddTwo("QC tests:", meas.AcquireState.qc_tests ? "On" : "Off");
            ErrorCalculationTechnique ect = meas.AcquireState.error_calc_method.Override(meas.MeasOption, det.Id.SRType);

            if (ect != ErrorCalculationTechnique.None)
            {
                sec.AddTwo("Error calculation:", ect.ToString() + " method");
            }
            sec.AddTwo("Accidentals method:", meas.Tests.accidentalsMethod != AccidentalsMethod.None ? (meas.Tests.accidentalsMethod.ToString() + "d") : "Not set");
            sec.AddTwo("Inspector name:", meas.AcquireState.user_id);
            sec.AddTwo("Passive comment:", meas.AcquireState.comment);
        }
示例#2
0
 public IDDErrorCalcMethod()
 {
     InitializeComponent();
     ap = Integ.GetCurrentAcquireParams();
     ex = ap.error_calc_method;
     SampleRadioButton.Checked = (ap.error_calc_method == ErrorCalculationTechnique.Sample);
 }
示例#3
0
 public IDDErrorCalcMethod()
 {
     InitializeComponent();
     ap = Integ.GetCurrentAcquireParams();
     ex = ap.error_calc_method;
     SampleRadioButton.Checked = (ap.error_calc_method == ErrorCalculationTechnique.Sample);
 }