public void AddTrn(Transaction trn, TabElement tabElement, IList<TransactionAttribute> fatherPK) { tabElement.Transaction = new TransactionElement(); tabElement.Transaction.Transaction = trn; tabElement.Transaction.MasterPage = TransactionElement.MasterPageValue.Default; AddParameters(tabElement.Transaction.Parameters, true, trn.Structure.Root.PrimaryKey, new List<TransactionAttribute>()); AddSuggestActions(tabElement.Transaction.Actions, tabElement.Instance.Settings, true); AddFormTransaction(trn, tabElement.Transaction.Form); }
public string TabName(TabElement tab) { return (String.IsNullOrEmpty(tab.GetObjectName()) ? tab.Wcname : tab.GetObjectName()); }
public void AddTrn(Transaction trn, TabElement node) { AddTrn(trn, node, new List<TransactionAttribute>()); }
private void AddGridTabAttributes(TabElement tabElement, Transaction trn, TransactionLevel level, IList<TransactionAttribute> atts) { tabElement.Attributes = new AttributesElement(); AddTransactionAttributes(tabElement.Attributes, level, atts, AttributeTitle.Column); AddSuggestActionsTab(tabElement.Actions, tabElement.Instance.Settings); }
private void AddActions(TabElement tabElement) { tabElement.AddAction(StandardAction.Update); tabElement.AddAction(StandardAction.Delete); }
private void AddTabularTabAttributes(TabElement tabNode, Transaction trn, TransactionLevel level) { tabNode.Attributes = new AttributesElement(); AddTransactionAttributes(tabNode.Attributes, level, level.Attributes, AttributeTitle.Single); AddSuggestActionsTab(tabNode.Actions, tabNode.Instance.Settings); }
public static string EnableDisableEdit(TabElement tab, string operacao) { StringBuilder ret = new StringBuilder(); foreach (RowElement row in tab.Transaction.GetRows("")) { EnableDisableEditRow(row, ret, operacao); } return ret.ToString(); }