private void BindFormContents() { if (!BLL.Settings.IsCenter) { lkAccount.SetupActivityEditor().SetDefaultActivity(); } else { colLocation.Visible = false; layoutAccount.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; } //Warehouse lkWarehouse.Properties.DataSource = BLL.Warehouse.GetWarehouseWithCluster(CurrentContext.UserId); PalletLocation pl = new PalletLocation(); lkPalletLocations.DataSource = PalletLocation.GetAll(); gridReceives.DataSource = pl.GetDraftReceives(CurrentContext.UserId); if (BLL.Settings.UseNewUserManagement) { if (this.HasPermission("Cancel")) { lcCancelReceive.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; } if (this.HasPermission("Confirm")) { layoutConfirm.Visibility = LayoutVisibility.Always; } } else { lcCancelReceive.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; layoutConfirm.Visibility = LayoutVisibility.Always; } }