private void DataPortal_Fetch()
        {
#if TRACE
            long startTicks = PLLog.Trace("Start", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1);
#endif
            // TODO: load values

            // WPF versions

            LoadProperty(AttributesECLProperty, AttributesECL.Get());

            LoadProperty(CharacteristicsECLProperty, CharacteristicsECL.Get());

            LoadProperty(ConstrainedValueListsECLProperty, ConstrainedValueListsECL.Get());

            LoadProperty(ConstrainedValuesECLProperty, ConstrainedValuesECL.Get());

            LoadProperty(DataTypesECLProperty, DataTypesECL.Get());

            LoadProperty(TablesECLProperty, TablesECL.Get());

            LoadProperty(TypeAttributesECLProperty, TypeAttributesECL.Get());

            LoadProperty(TypesECLProperty, TypesECL.Get());

#if TRACE
            PLLog.Trace("End", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 2, startTicks);
#endif
        }
Exemplo n.º 2
0
        //protected override void DataPortal_Create()
        //{
        //    // TODO: load default values
        //    // omit this override if you have no defaults to set
        //    base.DataPortal_Create();
        //}

        private void DataPortal_Fetch()
        {
#if TRACE
            long startTicks = PLLog.Trace("Start", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1);
#endif
            using (var dalManager = HIS.DAL.DALFactory.GetManager())
            {
                var dal = dalManager.GetProvider <HIS.DAL.ISchemaDAL>();

                using (var data = dal.Fetch())
                {
                    // Process the result sets in order (See SP Schema_SelectAll)

                    // Tables
                    LoadProperty(TablesECLProperty, TablesECL.Get(data));

                    // LogFunctions
                    data.NextResult();

                    // Attributes
                    data.NextResult();
                    LoadProperty(AttributesECLProperty, AttributesECL.Get(data));

                    // Types
                    data.NextResult();
                    LoadProperty(TypesECLProperty, TypesECL.Get(data));

                    // TypeAttributes
                    data.NextResult();
                    LoadProperty(TypeAttributesECLProperty, TypeAttributesECL.Get(data));

                    // DataTypes
                    data.NextResult();
                    LoadProperty(DataTypesECLProperty, DataTypesECL.Get(data));

                    // Characteristics
                    data.NextResult();
                    LoadProperty(CharacteristicsECLProperty, CharacteristicsECL.Get(data));

                    // ConstrainedValueLists
                    data.NextResult();
                    LoadProperty(ConstrainedValueListsECLProperty, ConstrainedValueListsECL.Get(data));

                    // ConstrainedValues
                    data.NextResult();
                    LoadProperty(ConstrainedValuesECLProperty, ConstrainedValuesECL.Get(data));
                }
            }

#if TRACE
            PLLog.Trace("End", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 2, startTicks);
#endif
        }
Exemplo n.º 3
0
 private void DataPortal_Fetch(int criteria)
 {
     // TODO: load values
     LoadProperty(TablesECLProperty, TablesECL.Get());
 }