private void InsertNewRecord(PXCache cache)
        {
            PXUIFieldAttribute.SetVisible(cache, nameof(SOInvoice.RefNbr), true);
            PXUIFieldAttribute.SetEnabled <SOInvoice.refNbr>(cache, null, false);
            PXUIFieldAttribute.SetDisplayName <SOInvoice.refNbr>(cache, "Invoice Nbr.");
            PXUIFieldAttribute.SetRequired <SOInvoice.refNbr>(e.Cache, false);
            PXUIFieldAttribute.SetReadOnly <SOInvoice.refNbr>(e.Cache, null, true);

            Release.SetVisible(true);
            Release.SetEnabled(false);
            Release.SetCaption("Release");
            Release.SetTooltip("Release the document");
        }
Esempio n. 2
0
        public void action1()
        {
            Action1.SetVisible(false);
            Action1.SetEnabled(false);
            Action1.SetCaption("Action1");
            Action1.SetTooltip("Tooltip");
            PXUIFieldAttribute.SetVisible <Users.displayName>(AllUsers.Cache, null);
            PXUIFieldAttribute.SetVisibility <Users.displayName>(AllUsers.Cache, null, PXUIVisibility.Invisible);
            PXUIFieldAttribute.SetEnabled <Users.displayName>(AllUsers.Cache, null);
            PXUIFieldAttribute.SetRequired <Users.displayName>(AllUsers.Cache, false);
            PXUIFieldAttribute.SetReadOnly <Users.displayName>(AllUsers.Cache, null);
            PXUIFieldAttribute.SetDisplayName <Users.displayName>(AllUsers.Cache, "Action1");
            PXUIFieldAttribute.SetNeutralDisplayName(AllUsers.Cache, nameof(Users.displayName), "Action1");

            var newList = new Users.state.List();

            PXStringListAttribute.SetList <Users.state>(AllUsers.Cache, null, newList);
            PXStringListAttribute.AppendList <Users.state>(AllUsers.Cache, null, newList.ValueLabelDic.Keys.ToArray(), newList.ValueLabelDic.Values.ToArray());
            PXStringListAttribute.SetLocalizable <Users.displayName>(AllUsers.Cache, null, false);
            PXIntListAttribute.SetList <Users.loginTypeID>(AllUsers.Cache, null, new[] { 0, 1 }, new[] { "A", "B" });
        }
Esempio n. 3
0
 protected virtual void _(Events.RowPersisted <SOInvoice> e)
 {
     Release.SetTooltip("Release the document");
     PXStringListAttribute.SetList <SOInvoice.refNbr>(e.Cache, null, new [] { "1" }, new [] { "0001" });
     PXIntListAttribute.SetList <SOInvoice.refNbr>(e.Cache, null, new [] { 1 }, new [] { "0001" });
 }