public void Decorate() { string fieldName = parameter.FieldName; if (fieldName.Equals("Batch") && securityManager.CanViewReleaseTab()) { BatchRecord record = grid.GetRow(parameter.RowIndex) as BatchRecord; if (record != null && record.IsInvoice) { Decorate(Cff_WebResource.batchNumberLinkTooltip); } } else if (fieldName.Equals("ClientName") && securityManager.CanChangeSelectedClient()) { Decorate(Cff_WebResource.clientNameLinkTooltip); } else if (fieldName.Equals("CustomerName") && securityManager.CanChangeSelectedCustomer()) { Decorate(Cff_WebResource.customerNameLinkTooltip); } }
public void LoadBatchDetailsAndRedirect(BatchRecord transaction) { ArgumentChecker.ThrowIfNull(transaction, "transaction"); redirectionService.RedirectToInvoiceBatches(transaction.Batch); }
public EmbeddedSpec(IDictionary <string, FixtureModel> fixtures, BatchRecord record) { Specification = record.specification; Results = record.results; Fixtures = record.specification.Children.OfType <Section>().Select(x => fixtures.ContainsKey(x.Key) ? fixtures[x.Key] : null).ToArray(); }