Пример #1
0
        public CustomerActive2Attribute()
        {
            System.Type type1 = BqlCommand.Compose(typeof(Search2 <, ,>), typeof(BAccountR.bAccountID), typeof(LeftJoin <, ,>), typeof(Customer), typeof(On <Customer.bAccountID, Equal <BAccountR.bAccountID>, And <Match <Customer, Current <AccessInfo.userName> > > >), typeof(LeftJoin <, ,>), typeof(PX.Objects.CR.Contact), typeof(On <PX.Objects.CR.Contact.bAccountID, Equal <BAccountR.bAccountID>, And <PX.Objects.CR.Contact.contactID, Equal <BAccountR.defContactID> > >), typeof(LeftJoin <, ,>), typeof(Address), typeof(On <Address.bAccountID, Equal <BAccountR.bAccountID>, And <Address.addressID, Equal <BAccountR.defAddressID> > >), typeof(LeftJoin <, ,>), typeof(PX.Objects.CR.Location), typeof(On <PX.Objects.CR.Location.bAccountID, Equal <BAccountR.bAccountID>, And <PX.Objects.CR.Location.locationID, Equal <BAccountR.defLocationID> > >), typeof(InnerJoin <,>), typeof(CSAnswers), typeof(On <CSAnswers.refNoteID, Equal <BAccountR.noteID>, And <CSAnswers.attributeID, Equal <FLXProjectEntry.BranchAtt>, And <CSAnswers.value, Contains <RTrim <Current <CustomerExt.usrBranchCD> > > > > >), typeof(Where <BAccountR.type, In3 <BAccountType.branchType, BAccountType.organizationType, BAccountType.customerType, BAccountType.combinedType> >));
            PXAggregateAttribute.AggregatedAttributesCollection attributes = this._Attributes;
            System.Type   type2         = type1;
            System.Type   substituteKey = typeof(BAccountR.acctCD);
            System.Type[] typeArray     = new System.Type[13]
            {
                typeof(BAccountR.acctCD),
                typeof(BAccountR.acctName),
                typeof(Address.addressLine1),
                typeof(Address.addressLine2),
                typeof(Address.postalCode),
                typeof(PX.Objects.CR.Contact.phone1),
                typeof(Address.city),
                typeof(Address.countryID),
                typeof(PX.Objects.CR.Location.taxRegistrationID),
                typeof(Customer.curyID),
                typeof(PX.Objects.CR.Contact.attention),
                typeof(Customer.customerClassID),
                typeof(Customer.status)
            };
            PXDimensionSelectorAttribute selectorAttribute1;
            PXDimensionSelectorAttribute selectorAttribute2 = selectorAttribute1 = new PXDimensionSelectorAttribute("BIZACCT", type2, substituteKey, typeArray);

            attributes.Add((PXEventSubscriberAttribute)selectorAttribute1);
            selectorAttribute2.DescriptionField = typeof(Customer.acctName);
            selectorAttribute2.CacheGlobal      = true;
            selectorAttribute2.FilterEntity     = typeof(Customer);
            this._SelAttrIndex = this._Attributes.Count - 1;
            this.Filterable    = true;
        }
Пример #2
0
        public SOLineSelectorAttribute(System.Type inventorType)
        {
            this._inventoryType = inventorType;
            PXAggregateAttribute.AggregatedAttributesCollection attributes = this._Attributes;
            System.Type   type      = BqlCommand.Compose(typeof(Search2 <, ,>), typeof(SOLine.noteID), typeof(InnerJoin <,>), typeof(SOOrder), typeof(On <, ,>), typeof(SOOrder.orderType), typeof(Equal <SOLine.orderType>), typeof(And <,>), typeof(SOOrder.orderNbr), typeof(Equal <SOLine.orderNbr>), typeof(Where <,>), typeof(SOLine.inventoryID), typeof(Equal <>), typeof(Optional <>), this._inventoryType);
            System.Type[] typeArray = new System.Type[6]
            {
                typeof(SOOrder.orderNbr),
                typeof(SOOrder.customerOrderNbr),
                typeof(SOLine.lineNbr),
                typeof(SOLine.inventoryID),
                typeof(SOLine.orderQty),
                typeof(SOLine.requestDate)
            };
            SOLineSelectorAttribute.SOLineSubstituteSelectorAttribute selectorAttribute1;
            PXSelectorAttribute selectorAttribute2 = (PXSelectorAttribute)(selectorAttribute1 = new SOLineSelectorAttribute.SOLineSubstituteSelectorAttribute(type, typeArray));

            attributes.Add((PXEventSubscriberAttribute)selectorAttribute1);
            this._SelAttrIndex = this._Attributes.Count - 1;
            selectorAttribute2.DescriptionField = typeof(SOLine.tranDesc);
            selectorAttribute2.ValidateValue    = true;
            selectorAttribute2.CacheGlobal      = true;
        }