private void lkStorageType_EditValueChanged(object sender, EventArgs e) { Shelf shlf = new Shelf(); shlf.LoadShelvesByStorageType(lkStorageType.EditValue.ToString()); lkRacks.Properties.DataSource = shlf.DefaultView; lkRacks.ItemIndex = 0; }
private void lkStorageType2_EditValueChanged(object sender, EventArgs e) { Shelf shlf = new Shelf(); int storageType = Convert.ToInt32(lkStorageType2.EditValue); shlf.LoadShelvesByStorageType(storageType.ToString(),(int)lkPhysicalStore.EditValue); lkRackID2.Properties.DataSource = shlf.DefaultView; if (shlf.RowCount > 0) { lkRackID2.EditValue = shlf.ID; } else { gridItemMovementView.Columns.Clear(); gridItemDetailByLocation.DataSource = null; } }
private void lkStorageType2_EditValueChanged(object sender, EventArgs e) { Shelf shlf = new Shelf(); int storageType = Convert.ToInt32(lkStorageType2.EditValue); shlf.LoadShelvesByStorageType(storageType.ToString()); lkRackID2.Properties.DataSource = shlf.DefaultView; if (shlf.RowCount > 0) { lkRackID2.EditValue = shlf.ID; //lookUpEdit1_EditValueChanged(new object(), new EventArgs()); } }
private void cmbStorageType_SelectedIndexChanged(object sender, EventArgs e) { layoutStackStored.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; gridPickfaceLocationsContainer.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; isStorageTypeChanged = true; if (cmbStorageType.SelectedValue.ToString() == StorageType.BulkStore) { layoutStackStored.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; gridPickfaceLocationsContainer.Text = "Preffered Pallet Locations"; // Bind it if possible. if (itemId != 0) { PalletLocation pl = new PalletLocation(); pl.LoadPreferredLocationsFor(itemId); lstPreferredPalletLocation.DataSource = pl.DefaultView; // lstPreferredPalletLocation.DataSource = ipr.DefaultView; gridPickfaceLocationsContainer.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; grpPrefferedLocation.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; // Bind Pickface Location DataTable dt = pf.GetPalletLocationsForItemLookup(itemId); DataRow drw = dt.NewRow(); //drw["ID"] = null; drw["Label"] = "No Pick Face Location Set"; dt.Rows.Add(drw); lkRepositoryPickFaces.DataSource = dt; //pf.PalletLocationForItem(itemId); pf.LoadPalletLocationForItemGrid(itemId); gridPickfaceLocations.DataSource = pf.DefaultView; } layoutControlItem10.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; } else { grpPrefferedLocation.Text = @"Fixed Locations"; grpPrefferedLocation.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; gridPickfaceLocationsContainer.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; } Shelf slf = new Shelf(); slf.LoadShelvesByStorageType(cmbStorageType.SelectedValue.ToString()); cmbRack.DataSource = slf.DefaultView; }
private void OnFilterStorageTypeChanged(object sender, EventArgs e) { // populate the shelf grid Shelf s = new Shelf(); if ( cmbStorageTypeFilter.EditValue != null && cmbStorageTypeFilter.EditValue.ToString() != "") { s.LoadForMergedView(cmbStorageTypeFilter.EditValue.ToString()); gridShelfDetails.DataSource = s.DefaultView; s.LoadShelvesByStorageType(cmbStorageTypeFilter.EditValue.ToString()); } else { s.LoadForMergedView(); s.LoadAllShelves(); } // populate the shelf combo box. cmbShelfCodes.Properties.DataSource = s.DefaultView; cmbShelfCodes.EditValue = null; }