예제 #1
0
        public void SetSummarySelections(ResultsSummary sel)
        {
            int i = sel.SortStratum ? 2 : 0;  // column 2 is strata, 0 is detector, 1 is item id, 3 is date time, 4 is path, 5 is comment

            cols[i] = SortOrder.Ascending;
            ListItemSorter(listView1, new ColumnClickEventArgs(i));
        }
예제 #2
0
        public void SetSummarySelections(ResultsSummary sel)
        {
            int i = sel.SortStratum ? 3 : 1;              // column 3 is strata, 1 is detector, 0 is option, 2 is item id, 4 is date time

            cols[i]           = SortOrder.Ascending;
            SummarySelections = sel;
            ListItemSorter(listView1, new ColumnClickEventArgs(i));
        }
예제 #3
0
 public IDDMeasurementList(AssaySelector.MeasurementOption filter, bool alltypes, EndGoal goal, Detector detector = null)
 {
     InitializeComponent();
     System.Windows.Input.Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait;
     try
     {
         InitSort();
         PrepNotepad();
         SetTitlesAndChoices(filter, alltypes, goal,
             detector == null ? string.Empty : detector.Id.DetectorId, string.Empty);
         mlist = N.App.DB.MeasurementsFor(detector == null ? string.Empty : detector.Id.DetectorId, filter);
         bGood = PrepList(filter, detector);
     } finally
     {
         System.Windows.Input.Mouse.OverrideCursor = null;
     }
     SummarySelections = null;
 }
예제 #4
0
 public IDDAssaySummary(string whuchuwan)
 {
     InitializeComponent();
     mlist = N.App.DB.IndexedResultsFor(whuchuwan);
     if (sel == null)
         sel = new ResultsSummary();
     sel.Option = whuchuwan;
     LoadInspNumCombo();
     SortByStratRadioBtn.Checked = sel.SortStratum;
     DefaultCurrentRadioBtn.Checked = sel.WithCurrentEndDate;
     StartDateTimePicker.Value = sel.Start.DateTime;
     LoadSelections(treeView1.Nodes);
     string l = option.PrintName();
     if (!Enum.TryParse(whuchuwan, out option))
     {
         option = AssaySelector.MeasurementOption.unspecified;
         l = "Measurement";
     }
     Text = l + " " + Text;
 }
예제 #5
0
        public IDDAssaySummary(string whuchuwan)
        {
            InitializeComponent();
            mlist = N.App.DB.IndexedResultsFor(whuchuwan);
            if (sel == null)
            {
                sel = new ResultsSummary();
            }
            sel.Option = whuchuwan;
            LoadInspNumCombo();
            SortByStratRadioBtn.Checked    = sel.SortStratum;
            DefaultCurrentRadioBtn.Checked = sel.WithCurrentEndDate;
            StartDateTimePicker.Value      = sel.Start.DateTime;
            LoadSelections(treeView1.Nodes);
            string l = option.PrintName();

            if (!Enum.TryParse(whuchuwan, out option))
            {
                option = AssaySelector.MeasurementOption.unspecified;
                l      = "Measurement";
            }
            Text = l + " " + Text;
        }
예제 #6
0
 public void SetSummarySelections(ResultsSummary sel)
 {
     int i = sel.SortStratum ? 2 : 0;  // column 2 is strata, 0 is detector, 1 is item id, 3 is date time, 4 is path, 5 is comment
     cols[i] = SortOrder.Ascending;
     ListItemSorter(listView1, new ColumnClickEventArgs(i));
 }
예제 #7
0
 public IDDMeasurementList()
 {
     InitializeComponent();
     SummarySelections = null;
     InitSort();
 }
예제 #8
0
 public void SetSummarySelections(ResultsSummary sel)
 {
     int i = sel.SortStratum ? 3 : 1;  // column 3 is strata, 1 is detector, 0 is option, 2 is item id, 4 is date time
     cols[i] = SortOrder.Ascending;
     SummarySelections = sel;
     ListItemSorter(listView1, new ColumnClickEventArgs(i));
 }