private void GetItems() { long startTicks = PLLog.Trace("HISSchema Start()", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1); double beginTicks; double bindingTicks; double firstTicks = startTicks; double frequency = Stopwatch.Frequency; beginTicks = startTicks; // Initialize the Schema so it is available when we start accessing items. HIS.Library.HISSchema schema = HIS.Library.Common.HISSchema; itemsAll = HIS.Library.ItemsAll2.Get(); itemsECLDataGrid.ItemsSource = itemsAll.Items; ////HIS.Library.HISSchema_ChildLoad hisSchema = HIS.Library.HISSchema_ChildLoad.Get(); //hisSchema = HIS.Library.HISSchema_ChildLoad.Get(); //startTicks = PLLog.Trace("HISSchemaECL_ChildLoad.Get", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1, startTicks); //lblLoadTimeHISSchema.Content = string.Format("HISSchemaECL_ChildLoad.Get Parent Time ({0:f4}) seconds", (startTicks - beginTicks) / frequency); //beginTicks = startTicks; ////HIS.Library.ConstrainedValueListsECBL _ConstrainedValueLists = hisSchema.ConstrainedValueLists; //HIS.Library.ConstrainedValueListsECL _ConstrainedValueLists = hisSchema.ConstrainedValueLists; //bindingTicks = PLLog.Trace("HISSchemaECL_ChildLoad.ConstrainedValueLists()", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1, startTicks); ////constrainedValueListsECBLBindingSource.DataSource = _ConstrainedValueLists; //constrainedValueListsECLDataGrid.ItemsSource = _ConstrainedValueLists; //startTicks = PLLog.Trace("HISSchemaECL_ChildLoad.ConstrainedValueLists() Binding", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1, startTicks); //lblConstrainedValueLists.Content = string.Format("ConstrainedValueLists Time {0:f4} ({1:f4}) seconds", (startTicks - bindingTicks) / frequency, (bindingTicks - beginTicks) / frequency); //beginTicks = startTicks; //HIS.Library.ConstrainedValuesECL _ConstrainedValues = hisSchema.ConstrainedValues; //bindingTicks = PLLog.Trace("HISSchemaECL_ChildLoad.Tables()", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1, startTicks); //// This shows all the values in the ConstrainedValues ////constrainedValuesECLDataGrid.ItemsSource = _ConstrainedValues; //// Instead we will selective load them from the SelectionChanged event. //startTicks = PLLog.Trace("HISSchemaECL_ChildLoad.ConstrainedValues() Binding", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1, startTicks); //lblConstrainedValues.Content = string.Format("ConstrainedValues Time {0:f4} ({1:f4}) seconds", (startTicks - bindingTicks) / frequency, (bindingTicks - beginTicks) / frequency); //lblLoadTimeTotal.Content = string.Format("Total Time ({0:f4}) seconds", (startTicks - firstTicks) / frequency); }
private void LoadItems() { long startTicks; long fetchTicks; long bindingTicks; double frequency = Stopwatch.Frequency; startTicks = PLLog.Trace("Start", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1); HIS.Library.ItemsAll2 _Items = HIS.Library.ItemsAll2.Get(); fetchTicks = PLLog.Trace("HIS.Library.ItemsAll", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1, startTicks); itemsBindingSource.DataSource = _Items.Items; bindingTicks = PLLog.Trace("HIS.Library.ItemsAll", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1, fetchTicks); lblItems.Text = string.Format("Items Time {0:f4} (F:{1:f4} B:{2:f4}) seconds", (bindingTicks - startTicks) / frequency, (fetchTicks - startTicks) / frequency, (bindingTicks - fetchTicks) / frequency); // TODO(crhodes): Need to get the item_id from the selected row in the datagrid // and use that to get the AttributeValues property from that row. //attributeValuesECBLBindingSource.DataSource = ; }
private void GetItems() { long startTicks = PLLog.Trace("GetItems Start()", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1); double beginTicks; double bindingTicks; double fetchTicks; double firstTicks = startTicks; double frequency = Stopwatch.Frequency; beginTicks = startTicks; //// Initialize the Schema so it is available when we start accessing items. //HIS.Library.HISSchema schema = HIS.Library.Common.HISSchema; itemsAll = HIS.Library.ItemsAll2.Get(); itemsECLDataGrid.ItemsSource = itemsAll.Items; fetchTicks = PLLog.Trace("ItemsAll.Get()", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1, startTicks); lblLoadTimeTotal.Content = string.Format("ItemsAll.Get() Load Time ({0:f4}) seconds", (fetchTicks - startTicks) / frequency); }