private void BindFormContents() { PalletLocation pl = new PalletLocation(); lkPalletLocations.DataSource = PalletLocation.GetAll(); if (currentMode == Modes.GRVPrinting) { gridReceives.DataSource = pl.GetReceivesForGRVPrinting(CurrentContext.UserId, 1); } }
private void BindFormContents() { PalletLocation pl = new PalletLocation(); lkPalletLocations.DataSource = PalletLocation.GetAll(); if (currentMode == Modes.DeliveryNotePrinting) { gridReceives.DataSource = pl.GetReceivesForGRVPrinting(CurrentContext.UserId, 3); colLocation.Visible = false; colInsurance.Visible = false; colMargin.Visible = false; } }
private void BindFormContents() { var pl = new PalletLocation(); lkPalletLocations.DataSource = PalletLocation.GetAll(); gridReceives.DataSource = pl.GetReceivesForGRVPrinting(CurrentContext.UserId, 2); }