Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public string TabName(TabElement tab)
 {
     return (String.IsNullOrEmpty(tab.GetObjectName()) ? tab.Wcname : tab.GetObjectName());
 }
Exemplo n.º 3
0
 public void AddTrn(Transaction trn, TabElement node)
 {
     AddTrn(trn, node, new List<TransactionAttribute>());
 }
Exemplo n.º 4
0
 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);
 }
Exemplo n.º 5
0
 private void AddActions(TabElement tabElement)
 {
     tabElement.AddAction(StandardAction.Update);
     tabElement.AddAction(StandardAction.Delete);
 }
Exemplo n.º 6
0
 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);
 }
Exemplo n.º 7
0
 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();
 }