private void lkType_EditValueChanged(object sender, EventArgs e)
        {
            TransferTypeID = Convert.ToInt32(lkType.EditValue);
            if (TransferTypeID == 1)
            {
                layoutForFacility.Text = "Hub";
                //layoutFromStore.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                layoutToStore.Visibility     = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                layoutToAccount.Visibility   = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                layoutForFacility.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                lkFromStore.Enabled          = false;
                //lkToStore.Enabled = false;
                //lkToActivity.Enabled = false;
                // lkFromActivity.Enabled = true;
                lkForHub.Enabled = true;


                lkForHub.Properties.DataSource = Institution.LoadHubs();


                lkForHub.Properties.NullText = "Select Hub to Transfer to";
                lkForHub.EditValue           = null;
            }
            else if (TransferTypeID == 2)
            {
                layoutForFacility.Text       = "For Account";
                layoutFromStore.Visibility   = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                layoutToStore.Visibility     = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                layoutToAccount.Visibility   = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                layoutForFacility.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;

                lkFromStore.Enabled  = true;
                lkToStore.Enabled    = true;
                lkToActivity.Enabled = true;
                lkForHub.Enabled     = false;

                lkForHub.Properties.DataSource = null;
                if (lkFromActivity.EditValue != null)
                {
                    FilterAccountType();
                }
                lkForHub.EditValue = null;

                lkToActivity.Enabled = true;
            }

            else if (TransferTypeID == 3)
            {
                layoutForFacility.Text     = "For Store";
                layoutFromStore.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                layoutToStore.Visibility   = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                //lkToActivity.Enabled = false;
                //layoutForFacility.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;

                lkFromStore.Enabled  = true;
                lkToStore.Enabled    = true;
                lkToActivity.Enabled = false;
                lkForHub.Enabled     = false;


                lkForHub.Properties.DataSource = null;
                if (lkFromActivity.EditValue != null)
                {
                    FilterAccountType();
                }
                lkForHub.EditValue = null;
            }
            ResetOrder();
            BindMainOrderGrid();
            PopulateItemsList();
        }
 private void LoadReceivingUnits()
 {
     lkForHub.Properties.DataSource = Institution.LoadHubs();
 }