public void LoadPalletLocation(int palletId,int shlefId=0) { _pl = new BLL.PalletLocation(); _pl.loadByPalletID(palletId); txtPalletLocation.Text = _pl.FullName; lblStorageType.Text = _pl.FullName; _rpl = new BLL.ReceivePallet(); gridMovement.DataSource = _rpl.GetPalletLocationReadyForMovement( palletId ); _itm = new BLL.Item(); _itm.LoadByPrimaryKey(Convert.ToInt32(_rpl.GetColumn("ItemID"))); txtItemName.Text = _itm.FullItemName; lblItemName.Text = _itm.FullItemName; lkFreePalletLocations.Properties.DataSource = BLL.PalletLocation.GetAllFreeFor(_itm.ID, shlefId); }