private void LossAndAdjustment_Load(object sender, EventArgs e)
        {
            colWriteOff.Visible = false;
            btnAdjustment.Visible = false;
            btnCommit.Visible = false;

            SetPermission();
            BindQuarantine();
            // load the item categories

            lkCategories.Properties.DataSource = BLL.CommodityType.GetAllTypes();
            lkStore.SetupActivityEditor().SetDefaultActivity();

            Shelf shelf = new Shelf();
            shelf.LoadAllShelves();
            //lkRacks.Properties.DataSource = shelf.DefaultView;

            Item itms = new Item();
            gridItemList.DataSource = itms.GetAllItems(1);

            LossAndAdjustmentReason dr = new LossAndAdjustmentReason();
            dr.LoadAll();
            lkDisposalReasons1.DataSource = dr.DefaultView;
            lkDisposalReason2.DataSource = dr.DefaultView;
            lkDisposalReason2.NullText = "Select Reason";
            newpalletlocationrepositoryItemGridLookUpEdit.NullText = "Select New Pallet Location";

            if(!BLL.Settings.UseNewUserManagement)
            {
                // adjust the buttons according to previlages
                if (CurrentContext.LoggedInUser.UserType == UserType.Constants.FINANCE ||
                    CurrentContext.LoggedInUser.UserType == UserType.Constants.SUPER_ADMINISTRATOR)
                {
                    colWriteOff.Visible = true;
                    btnAdjustment.Visible = true;
                    btnCommit.Visible = true;
                    gridColAdjustments.Visible = true;
                }
                else
                {

                }
            }
            // set the default category
            lkCategories.ItemIndex = 0;
            lkCategories_EditValueChanged(null, null);
        }