示例#1
0
 public void CrossReferenceFieldFiller(INCCAnalysisParams.collar_combined_rec col)
 {
     MaterialTypeComboBox.SelectedIndex = MaterialTypeComboBox.FindStringExact(mp.acq.item_type) >= 0?MaterialTypeComboBox.FindStringExact(mp.acq.item_type):0;
     ModeComboBox.SelectedIndex         = col.collar_det.collar_mode;
     RelativeDoublesRateTextBox.Value   = col.collar_det.relative_doubles_rate;
     ReferenceDateTimePicker.Value      = col.collar_det.reference_date;
     poison = NCC.CentralizedState.App.DB.PoisonRods.GetList();
     SetHelp();
 }
示例#2
0
 public void CrossReferenceFieldFiller(INCCAnalysisParams.collar_combined_rec col)
 {
     MaterialTypeComboBox.SelectedIndex = MaterialTypeComboBox.FindStringExact(mp.acq.item_type) >= 0?MaterialTypeComboBox.FindStringExact(mp.acq.item_type):0;
     ModeComboBox.SelectedIndex         = Convert.ToInt32(col.collar_det.collar_mode);
     RelativeDoublesRateTextBox.Value   = col.collar_det.relative_doubles_rate;
     ReferenceDateTimePicker.Value      = col.collar_det.reference_date;
     poison = NCC.CentralizedState.App.DB.PoisonRods.GetList();
     for (int i = 0; i < poison.Count; i++)
     {
         PoisonRodTypesComboBox.Items.Add(poison[i].rod_type);
     }
     if (PoisonRodTypesComboBox.Items.Count > 0)
     {
         int idx = PoisonRodTypesComboBox.FindStringExact(col.collar.poison_rod_type[0]);
         PoisonRodTypesComboBox.SelectedIndex = idx;
         PoisonAbsorptionFactorTextBox.Value  = poison[idx].absorption_factor;
     }
     else
     {
         PoisonRodTypesComboBox.Items.Add("No types defined");
         PoisonAbsorptionFactorTextBox.Value = 0;
     }
     SetHelp();
 }