public void Prefetch()
 {
     using (PXDataRecord rec = PXDatabase.SelectSingle <PreferencesSecurity>(new PXDataField <PreferencesSecurityExt.usrApplyWorkgroupRestrictions>()))
     {
         if (rec != null)
         {
             Enabled = rec.GetBoolean(0) ?? false;
         }
     }
 }
Ejemplo n.º 2
0
 public void Prefetch()
 {
     using (PXDataRecord arSetup = PXDatabase.SelectSingle <ARSetup>(
                new PXDataField <ARSetup.migrationMode>()))
     {
         if (arSetup != null)
         {
             isMigrationModeEnabled = (bool)arSetup.GetBoolean(0);
         }
     }
 }
Ejemplo n.º 3
0
            public void Prefetch(PXDatabaseUSProvider provider)
            {
                PXDataRecord record = PXDatabase.SelectSingle <USSetup>(new PXDataField <USSetup.enableInAP>(), new PXDataField <USSetup.simpleNumberingID>());

                if (record == null)
                {
                    _featureActive = false;
                }
                else
                {
                    if (record.GetBoolean(0) ?? false)
                    {
                        _featureActive = true;
                    }
                    else
                    {
                        _featureActive = false;
                    }
                }
            }