예제 #1
0
        private void AddSubcontractType()
        {
            var allowedValues = POOrderType.RegularSubcontract.CreateArray();
            var allowedLabels = Messages.Subcontract.CreateArray();

            PXStringListAttribute.AppendList <POOrder.orderType>(Base.PurchaseOrders.Cache, null, allowedValues,
                                                                 allowedLabels);
        }
 protected virtual void EPAssignmentMap_GraphType_FieldSelecting(
     PXCache cache, PXFieldSelectingEventArgs args, PXFieldSelecting baseHandler)
 {
     baseHandler(cache, args);
     PXStringListAttribute.AppendList <EPAssignmentMap.graphType>(cache, args.Row,
                                                                  typeof(SubcontractEntry).FullName.CreateArray(),
                                                                  Constants.SubcontractTypeName.CreateArray());
 }
        private void AppendOpperation()
        {
            var cache      = Graph.Caches[typeof(OperationParam)];
            var field      = typeof(OperationParam.action).Name;
            var state      = cache.GetStateExt(null, field) as PXStringState;
            var actionName = ActionName;

            if (state == null || state.AllowedValues == null || !state.AllowedValues.Contains(actionName))
            {
                PXStringListAttribute.AppendList(cache, null, field, new[] { actionName }, new[] { actionName });
            }
        }
예제 #4
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" });
        }
예제 #5
0
        private void AddSubcontractType()
        {
            var allowedValues = POOrderType.RegularSubcontract.CreateArray();

            PXStringListAttribute.AppendList <POOrder.orderType>(Document.Cache, null, allowedValues, allowedValues);
        }